]> git.proxmox.com Git - grub2.git/blob - ChangeLog
5348051c78c116abaa5fde08bdbd7bb5b8ad22f2
[grub2.git] / ChangeLog
1 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4 byte-swap on big-endian.
5 Reported by: Lennart Sorensen
6
7 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8
9 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
10 (allocate_pages): Improve dprintf.
11 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
12 code32_start. Fill code32_start and kernel_alignment in params.
13 (grub_cmd_initrd): Use prot_init_space.
14
15 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
16
17 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
18
19 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
20
21 * util/grub-install.in: Add missing dot at the end of sentence.
22
23 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24
25 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
26 * grub-core/commands/videotest.c: Likewise.
27 * grub-core/loader/i386/linux.c: Likewise.
28
29 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
32 sentence.
33 Reported by: Milo Casagrande.
34
35 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
36
37 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
38 * grub-core/commands/gptsync.c: Likewise.
39 * grub-core/commands/hashsum.c: Likewise.
40 * grub-core/commands/i386/pc/sendkey.c: Likewise.
41 * grub-core/commands/legacycfg.c: Likewise.
42 * grub-core/io/gzio.c: Likewise.
43 * grub-core/net/net.c: Likewise.
44 * grub-core/term/gfxterm.c: Likewise.
45 * grub-core/term/terminfo.c: Likewise.
46 * grub-core/tests/test_blockarg.c: Likewise.
47 * grub-core/video/video.c: Likewise.
48 * util/grub-install.in: Likewise.
49 * util/grub-mkfont.c: Likewise.
50
51 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
52
53 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
54
55 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * grub-core/commands/search_wrap.c (options): Fix a typo.
58 Reported by: David Prévot.
59
60 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
61
62 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
63 description.
64
65 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * util/grub-script-check.c (main): Fix a syntax error message which was
68 unclear.
69
70 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
71
72 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
73
74 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
77 messages.
78
79 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
82 without argument.
83 * util/grub-mount.c (options): Likewise.
84
85 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
86
87 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
88
89 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * grub-core/net/http.c: Add TRANSLATORS comments.
92 * grub-core/normal/cmdline.c: Likewise.
93 * grub-core/normal/misc.c: Likewise.
94 * grub-core/partmap/msdos.c: Likewise.
95 * grub-core/parttool/msdospart.c: Likewise.
96 * grub-core/script/execute.c: Likewise.
97 * grub-core/script/main.c: Likewise.
98 * grub-core/term/terminfo.c: Likewise.
99 * grub-core/video/bitmap.c: Likewise.
100 * util/grub-install.in: Likewise.
101 * util/grub-mkimage.c: Likewise.
102 * util/grub-mklayout.c: Likewise.
103 * util/grub-setup.c: Likewise.
104
105 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
108 with similar messages in grub-fstest.
109
110 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
111
112 * util/grub-install.in: Unify "option requires an argument" message
113 with similar messages in other files.
114 * util/grub-mkconfig.in: Likewise.
115
116 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
117
118 * util/grub-set-default.in: Replace printf with gettext_printf (the
119 string in in question is already translated from grub-reboot)
120
121 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
122
123 * configure.ac: Bump up the version to beta1.
124
125 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
128 case when min_align = 0.
129
130 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
133 and fix a case when line_start overflows.
134
135 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
136
137 * util/grub-reboot.in (usage): Mention id posibility.
138 * util/grub-set-default.in (usage): Likewise.
139
140 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
143 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
144 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
145 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
146 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
147 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
148 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
149
150 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
151
152 * grub-core/commands/menuentry.c (options): Remove
153 GRUB_ARG_OPTION_REPEATABLE.
154 Reported by: Andreas Vogel
155
156 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
157
158 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
159
160 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
161
162 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
163 error.
164
165 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
166
167 Use sort -V by the idea of Georgi Georgiev.
168
169 * util/grub-mkconfig_lib.in (version_sort): New function.
170 (version_test_numeric): Use version_sort.
171
172 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
173
174 Use submenus in grub-mkconfig.
175
176 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
177 * util/grub-mkconfig_lib.in (grub_quote): New function.
178 (gettext_printf): Use gettext and not gettext_quoted to fix several
179 messages.
180 * util/grub.d/10_hurd.in: Use submenus.
181 * util/grub.d/10_kfreebsd.in: Likewise.
182 * util/grub.d/10_linux.in: Likewise.
183 * util/grub.d/10_netbsd.in: Likewise.
184 * util/grub.d/20_linux_xen.in: Likewise.
185 * util/grub.d/30_os-prober.in: Likewise.
186 * util/grub.d/10_illumos.in: Add missing quoting.
187 * util/grub.d/10_windows.in: Likewise.
188
189 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
190
191 Fix menu title instability bug.
192
193 * grub-core/commands/menuentry.c (options): New option --id.
194 (grub_normal_add_menu_entry): New argument id. All users updated.
195 (grub_cmd_menuentry): Handle --id.
196 (grub_menu_init): Accept unknown arguments.
197 * grub-core/normal/main.c (features): Add feature_menuentry_id and
198 feature_menuentry_options.
199 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
200 saved_entry.
201 (get_entry_number): Match with id as well.
202 * include/grub/menu.h (grub_menu_entry): New member id.
203 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
204 * util/grub.d/00_header.in: Define menuentry_id_option.
205 * util/grub.d/10_hurd.in: Define id.
206 * util/grub.d/10_illumos.in: Likewise.
207 * util/grub.d/10_kfreebsd.in: Likewise.
208 * util/grub.d/10_linux.in: Likewise.
209 * util/grub.d/10_netbsd.in: Likewise.
210 * util/grub.d/10_windows.in: Likewise.
211 * util/grub.d/20_linux_xen.in: Likewise.
212 * util/grub.d/30_os-prober.in: Likewise.
213
214 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
215
216 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
217 "scope" with "body".
218
219 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
220
221 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
222 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
223 prot_size and prot_file_size.
224
225 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
226
227 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
228 All users updated. If easily=1 require raid-5/-6 to be full.
229 (is_node_readable): Likewise.
230 (scan_devices): Scan incomplete but readable LVs at the end.
231 (grub_diskfilter_memberlist): Pull missing devices.
232 (insert_array): Skip scanning until device is complete or scan is
233 done otherwise.
234 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
235 check.
236 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
237 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
238
239 2012-03-03 Matthew Garrett <mjg@redhat.com>
240 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
241
242 Avoid EFI boot services when loading Linux.
243
244 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
245 avoid_efi_bootservices. All users updated.
246 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
247 argument avoid_efi_bootservices. All users updated.
248 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
249 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
250 align, min_align, relocatable, prefered_address. All users updated.
251 Allocate avoiding boot services if kernel is relocatable.
252 (grub_cmd_linux): Check if kernel is relocatable.
253 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
254 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
255 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
256 avoid_efi_boot_services.
257 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
258 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
259 (linux_kernel_params): Likewise.
260
261 2012-03-03 Matthew Garrett <mjg@redhat.com>
262 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
263
264 Use EDID on EFI.
265
266 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
267 datasize_out.
268 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
269 modes. Set gop_handle.
270 (grub_video_gop_get_edid): New function.
271 (grub_gop_get_preferred_mode): Likewise.
272 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
273 (grub_video_efi_gop_adapter): Set .get_edid.
274 * include/grub/efi/edid.h: New file.
275 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
276
277 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
278
279 * util/grub-install.in: Load efivars unconditionally.
280
281 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
282
283 * po/Rules-piglatin: Change suffix from .po-update-en to
284 .po-update-en-piglatin.
285
286 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
287
288 Add a pig farm.
289
290 * po/piglatin.sed: New file.
291 * po/en@piglatin.header: Likewise.
292 * po/Rules-piglatin: Likewise.
293 * po/README: Add en@piglatin to autogenerated languages.
294
295 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
298 "Command for ...".
299 * grub-core/commands/hdparm.c (options): Use "Display" rather than
300 "Check" since we don't check anything.
301 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
302 is 64-bit one.
303 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
304 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
305 (grub_md_sha512_real): Likewise.
306
307 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
308
309 * grub-core/commands/gptsync.c: Fix typographic quoting.
310 * grub-core/commands/ieee1275/suspend.c: Likewise.
311 * grub-core/commands/parttool.c: Likewise.
312 * grub-core/commands/search_wrap.c: Likewise.
313 * grub-core/commands/videoinfo.c: Likewise.
314 * grub-core/gfxmenu/gui_label.c: Likewise.
315 * grub-core/hello/hello.c: Likewise.
316 * grub-core/kern/emu/main.c: Likewise.
317 * grub-core/net/net.c: Likewise.
318 * grub-core/normal/menu.c: Likewise.
319 * grub-core/normal/menu_text.c: Likewise.
320 * grub-core/normal/misc.c: Likewise.
321 * util/grub-editenv.c: Likewise.
322 * util/grub-install.in: Likewise.
323 * util/grub-kbdcomp.in: Likewise.
324 * util/grub-mkconfig.in: Likewise.
325 * util/grub-mknetdir.in: Likewise.
326 * util/grub-mkrescue.in: Likewise.
327 * util/grub-mkstandalone.in: Likewise.
328 * util/grub-reboot.in: Likewise.
329 * util/grub-set-default.in: Likewise.
330 * util/grub-setup.c: Likewise.
331 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
332
333 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
334
335 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
336 * grub-core/commands/keystatus.c: Likewise.
337 * grub-core/commands/loadenv.c: Likewise.
338 * grub-core/commands/probe.c: Likewise.
339 * grub-core/commands/regexp.c: Likewise.
340 * grub-core/commands/true.c: Likewise.
341 * grub-core/commands/videoinfo.c: Likewise.
342 * grub-core/disk/cryptodisk.c: Likewise.
343 * grub-core/disk/ldm.c: Likewise.
344 * grub-core/disk/loopback.c: Likewise.
345 * grub-core/disk/luks.c: Likewise.
346 * grub-core/fs/zfs/zfsinfo.c: Likewise.
347 * grub-core/kern/disk.c: Likewise.
348 * grub-core/kern/emu/hostdisk.c: Likewise.
349
350 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
351
352 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
353 * util/grub-install.in: Add missing quote in the comment.
354
355 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
356
357 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
358 * grub-core/commands/lsmmap.c: Likewise.
359 * grub-core/commands/minicmd.c: Likewise.
360 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
361 * grub-core/commands/regexp.c: Likewise.
362 * grub-core/gdb/gdb.c: Likewise.
363 * grub-core/term/gfxterm.c: Likewise.
364 * util/grub-mkconfig.in: Likewise.
365 * util/grub-mkfont.c: Likewise.
366 * util/grub-mklayout.c: Likewise.
367 * util/grub-mknetdir.in: Likewise.
368 * util/grub-mkrescue.in: Likewise.
369 * util/grub.d/30_os-prober.in: Likewise.
370
371 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
372
373 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
374 with "Direct color" and "Packed" with "Packed pixel".
375 (grub_cmd_videoinfo): Simplify legend.
376
377 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
380 absolutely unclear error message.
381
382 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
383
384 * util/grub-mkstandalone.in: Remove confusing leftover print.
385
386 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
389 comments.
390 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
391 (GRUB_MOD_INIT): Likewise.
392 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
393 VGA mode.
394 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
395 comments.
396 * util/grub-install.in (usage): Likewise.
397 Spell ID in whole letters.
398 Add missing ending dot.
399 Quote variables.
400 * util/grub-reboot.in: Fix capitalisation.
401 * util/grub-set-default.in: Likewise.
402
403 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
404
405 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
406 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
407 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
408 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
409 Disable -Werror for -Wdeprecated-declarations.
410 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
411 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
412 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
413 (grub_util_get_grub_dev): Make luks handling dependent on
414 HAVE_DEVICE_MAPPER and not __linux__.
415 (get_win32_path): Fix format security.
416 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
417 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
418 Don't try grub_find_zpool_from_dir.
419 (grub_make_system_path_relative_to_its_root) [!__linux__]:
420 #ifdef-out paresdir.
421
422 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
423
424 * util/grub-pe2elf.c (usage): Add missing noreturn.
425 (write_section_data): Rename name to shname to avoid shadowing.
426 (write_symbol_table): Rename name to symname to avoid shadowing.
427 Fix write_reloc_section call.
428
429 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
432 to ensure that it's after the last byte of .text.
433
434 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * util/ieee1275/ofpath.c (my_isdigit): New function.
437 (trailing_digits): Use my_isdigit.
438 (strip_trailing_digits): Likewise.
439
440 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
441
442 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
443 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
444
445 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
446
447 * grub-core/kern/i386/pc/startup.S: Define __start.
448
449 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
452 strip already transforms he format.
453
454 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
455
456 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
457
458 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
459
460 * util/grub-install.in: Add missing gettext init.
461 * util/grub-kbdcomp.in: Likewise.
462 * util/grub-mkconfig.in: Likewise.
463 * util/grub-mknetdir.in: Likewise.
464 * util/grub-mkrescue.in: Likewise.
465 * util/grub-mkstandalone.in: Likewise.
466 * util/grub-reboot.in: Likewise.
467 * util/grub-set-default.in: Likewise.
468 * util/grub.d/00_header.in: Likewise.
469 * util/grub.d/10_hurd.in: Likewise.
470 * util/grub.d/10_windows.in: Likewise.
471 * util/grub.d/30_os-prober.in: Likewise.
472 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
473
474 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
475
476 * po/Rules-swiss: Fix header comment.
477
478 2012-02-29 Andreas Vogel <anvoit>
479
480 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
481 resulted in leak of arguments.
482
483 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * grub-core/boot/i386/pc/startup_raw.S: Use separate
486 reed_solomon_size const definition instead of computing it since
487 Apple assembler doesn't support the later.
488
489 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * gentpl.py (kernel): Rewrite Apple part.
492
493 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * include/grub/kernel.h (FOR_MODULES): Check module magic.
496
497 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
498
499 * util/grub-mkimagexx.c (locate_sections): Support non-standard
500 ELF section gap.
501 (load_image): Likewise.
502
503 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * configure.ac: Fix a typo in previous commit.
506
507 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
508
509 Don't add -Wl,-N on Apple platform.
510
511 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
512 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
513
514 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
515
516 * grub-core/Makefile.core.def (lzma_decompress): Use
517 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
518
519 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
520
521 * grub-core/genmod.sh.in: Rewrite the Apple part.
522
523 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
526 comparison.
527
528 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * acinclude.m4 (grub_CHECK_PIC): New test.
531 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
532
533 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
534
535 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
536 to avoid the warning.
537
538 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
541 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
542 after. All users updated.
543
544 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
545
546 Use the common size routine in hostfs so we can read disks as well.
547
548 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
549 (grub_util_get_fd_size): ... this. Return size in bytes.
550 All users updated.
551 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
552 grub_util_get_fd_size.
553
554 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
555
556 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
557 Add blocksize retrieval.
558
559 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * configure.ac: Restore CFLAGS after efiemu check.
562
563 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
564
565 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
566 Apple bug.
567
568 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
569
570 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
571
572 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
573
574 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
575 (grub_cmd_halt): Likewise.
576
577 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
578
579 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
580 for local arithmetics.
581 Break %sp init into 2 instructions.
582 Add 0 byte at the end.
583
584 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
585
586 * grub-core/disk/diskfilter.c (read_segment): Initialise err
587 before loops.
588
589 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
590
591 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
592 for context.
593
594 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
595
596 * grub-core/disk/ldm.c (make_vg): Init part.name.
597 (grub_ldm_detect): Silence spurious warning.
598 (grub_util_is_ldm): Likewise.
599
600 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
603 sane value to avoid a spurious warning.
604
605 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
608 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
609
610 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
611
612 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
613 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
614
615 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
618 hardcoding the relevant info.
619
620 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
623 missing const qualifiers.
624 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
625
626 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * util/getroot.c [__APPLE__]: Add missing includes.
629 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
630
631 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * util/grub-mkimage.c (generate_image): Silence spurious warning.
634
635 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
636
637 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
638 avoid conflicts.
639
640 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
643
644 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
647 and grub_file_close call.
648
649 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
650
651 Add LZSS Mach-O support (needed for new xnu kernelcache).
652
653 * grub-core/Makefile.core.def (xnu): Add file lzss.c
654 * grub-core/loader/lzss.c: New file.
655 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
656 on Mach-O open failure.
657 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
658 Don't free cmdsXX in uncompressedXX is set.
659 (grub_macho_file): Init new fields.
660 New argument is_64bit. All users updated.
661 Handle compressed. Error out if no suitable architecture is found.
662 Don't close file.
663 (grub_macho_open): New argument is_64bit. All users updated.
664 * grub-core/loader/macho32.c: Add defines for new fields.
665 * grub-core/loader/macho64.c: Likewise.
666 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
667 (grub_macho_parse): Handle compressed.
668 Defer actual processing if compressed.
669 (grub_macho_cmds_iterate): Decompress if compressed. New argument
670 "filename". All users updated.
671 (grub_macho_size): New argument "filename". All users updated.
672 (grub_macho_get_entry_point): Likewise.
673 (grub_macho_load): Handle compressed.
674 * include/grub/macho.h (grub_macho_lzss_header): New struct.
675 (GRUB_MACHO_LZSS_OFFSET): New define.
676 (grub_decompress_lzss): New proto.
677 * include/grub/machoload.h (grub_macho_file): New fields to handle
678 compressed.
679 (grub_macho_contains_macho64): Remove proto.
680 (grub_macho_contains_macho32): Likewise.
681 * util/grub.d/30_os-prober.in: Use kernel cache if available.
682
683 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
684
685 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
686
687 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
688
689 Fix make dist.
690
691 * Makefile.am (starfield_theme_files): New var.
692 (starfield_DATA): Use starfield_theme_files.
693 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
694 Add bootcheck-related files.
695 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
696 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
697 and font_char_metrics.txt.
698 * grub-core/Makefile.core.def (kernel): Update extra_dist.
699 (setjmp): Add lib/ia64/longjmp.S.
700 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
701 * po/POTFILES.in: Regenerate.
702 * po/Rules-swiss: use DISTFILES.common.extra2 and not
703 DISTFILES.common.extra1.
704 * util/devicemap.c: Removed.
705 * grub-core/lib/i386/relocator_backward.S: Likewise.
706 * util/import_gcry.py: Remove unused files. Add extra_dist for
707 ChangeLog.
708
709 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
710
711 * grub-core/gettext/gettext.c (grub_mofile_open): Call
712 grub_gettext_delete_list before changing grub_gettext_max to avoid
713 running out of array bounds.
714
715 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
716
717 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
718 grub_vga_text_init/grub_vga_text_fini.
719
720 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
721
722 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
723
724 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
725
726 * configure.ac: Bump to 2.00~beta0.
727
728 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
729
730 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
731 missing initialisation.
732
733 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
736
737 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
738
739 Support v2 xnu boot arguments.
740
741 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
742 New argument fsbfreq_out.
743 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
744 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
745 be used.
746 * grub-core/loader/machoXX.c (grub_macho_load): New argument
747 darwin_version.
748 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
749 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
750 (grub_xnu_boot_params): Rename to ...
751 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
752 (grub_xnu_boot_params_v2): New struct.
753
754 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
755
756 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
757 zeroing of CRC field before computing CRC.
758
759 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
760
761 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
762 Change order of allocations to decrease fragmentation.
763
764 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
765
766 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
767
768 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
769
770 Use write-combining MTRR to speed up video with buggy BIOSes.
771
772 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
773 (cpuid): New define.
774 (rdmsr): Likewise.
775 (wrmsr): Likewise.
776 (mtrr_base): Likewise.
777 (mtrr_mask): Likewise.
778 (grub_vbe_enable_mtrr_entry): New function.
779 (grub_vbe_enable_mtrr): Likewise.
780 (grub_vbe_disable_mtrr): Likewise.
781 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
782 control off to BIOS.
783 (grub_video_vbe_init): Fill mtrr.
784 (grub_video_vbe_fini): Disable mtrr.
785 (grub_video_vbe_get_info_and_fini): Likewise.
786 (grub_video_vbe_setup): Enable mtrr.
787
788 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
789
790 * include/grub/partition.h (grub_partition_map): Change prototype of
791 embed to take a maximum value for nsectors.
792 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
793 * include/grub/fs.h (grub_fs): Likewise.
794 * grub-core/partmap/msdos.c (embed_signatures): New array.
795 (pc_partition_map_embed): Check for and avoid sectors matching any
796 of the signatures in embed_signatures, up to max_nsectors.
797 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
798 returned sector map to max_nsectors.
799 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
800 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
801 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
802 * util/grub-setup.c (setup): Allow for the embedding area being
803 split into multiple blocklists. Tell dest_partmap->embed the
804 maximum number of sectors we care about.
805
806 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
807
808 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
809 Specify blocklist_install and reserver_first_sector for all fs.
810 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
811 blocklists.
812
813 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
814
815 * util/grub-install.in: Clarify strings.
816 Fix source dir check.
817
818 2012-02-27 Richard Laager <rlaager@wiktel.com>
819
820 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
821 "zfs" and "fuse.zfs" as synonyms.
822
823 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
824
825 * configure.ac: Put platform and target_cpu substitutions back since
826 they are used for directories.
827
828 2012-02-27 Richard Laager <rlaager@wiktel.com>
829 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * util/grub.d/10_linux.in: Add ZFS-related arguments.
832 * util/grub.d/20_linux_xen.in: Likewise.
833
834 2012-02-27 Richard Laager <rlaager@wiktel.com>
835
836 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
837 with full paths.
838
839 2012-02-27 Richard Laager <rlaager@wiktel.com>
840
841 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
842 unescape.
843
844 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
845
846 Don't use insecure popen in getroot.
847
848 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
849 (exec_pipe): ... here.
850 (find_root_devices_from_poolname): Use exec_pipe.
851
852 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
853
854 Remove platform and target_cpu replacement.
855
856 * configure.ac: Remove platform and target_cpu substitutions.
857 * tests/util/grub-shell.in: Use modinfo.
858 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
859 explicitly.
860
861 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
862
863 Autodetect platform in grub-install but allow override.
864
865 * util/grub-install.in: Autodetect platform. Support --target and
866 --directory. Read platform from modinfo.sh.
867
868 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
869
870 Support btrfs multi-volume probe.
871
872 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
873 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
874 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
875 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
876 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
877 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
878 grub_find_root_devices_from_btrfs if on btrfs.
879
880 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
881
882 Remove any awareness of *.c util files about target.
883
884 * Makefile.util.def (grub-setup): Split to ...
885 (grub-bios-setup): ... and this.
886 (grub-sparc64-setup): ... and this.
887 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
888 * docs/man/grub-setup.h2m: Split into ...
889 * docs/man/grub-sparc64-setup.h2m: ... this.
890 * docs/man/grub-bios-setup.h2m: ... and this.
891 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
892 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
893 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
894 (grub_target_addr_t): Remove.
895 (grub_target_size_t): Remove.
896 (grub_target_ssize_t): Remove.
897 * util/grub-install.in: Use new grub-*-setup.
898 * util/grub-mkimagexx.c (Elf_Word): New define.
899 (Elf_Half): Likewise.
900 (Elf_Section): Likewise.
901 (ELF_ST_TYPE): Likewise.
902 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
903 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
904
905 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
906
907 Replace grub_target_addr with more appropriate types.
908
909 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
910 grub_target_addr with grub_addr.
911 * grub-core/commands/iorw.c (grub_cmd_read): Replace
912 grub_target_addr with grub_port.
913 (grub_cmd_write): Likewise.
914 * grub-core/commands/memrw.c (grub_cmd_read): Replace
915 grub_target_addr with grub_addr.
916 (grub_cmd_write): Likewise.
917 * grub-core/video/efi_uga.c (find_line_len): Likewise.
918
919 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
920
921 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
922 const qualifier for vendor_guid.
923
924 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
927 const qualifier.
928 (efiemu_memequal): Likewise.
929 (find_variable): Likewise.
930
931 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
932
933 Fix missing console prototype on qemu-mips.
934
935 * include/grub/mips/qemu_mips/console.h: New file.
936
937 2012-02-27 Matthew Garrett <mjg@redhat.com>
938 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
939
940 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
941 * include/grub/efi/efi.h: Likewise.
942 * include/grub/efi/api.h: Add guid for EFI-specified variables.
943 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
944 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
945 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
946 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
947 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
948
949 2012-02-27 Matthew Garrett <mjg@redhat.com>
950
951 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
952
953 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
956 error.
957
958 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
959
960 * configure.ac: Remove inappropriate use of program_transform_name
961 on grubdir and bootdir but allow explicit specification of those
962 variables.
963
964 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * util/grub-mknetdir.in (grub_prefix): Removed.
967 (subdir): Use @bootdirname@ and @grubdirname@.
968
969 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
970
971 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
972
973 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * po/POTFILES.in: Regenerated.
976
977 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
978
979 Remove improper use of program_transform_name on pkglibrootdir.
980
981 * configure.ac (pkglibrootdir): Removed.
982 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
983 * util/grub-mkimage.c: Likewise.
984
985 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
986
987 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
988 warning.
989
990 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * util/grub-install.in: Use file identifier if no UUID is available
993 or user explicitly prompted for it.
994
995 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
996
997 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
998 (freebsd_get_zfs): New function.
999 (grub_freebsd_boot): Pass zfs UUID.
1000 (grub_cmd_freebsd): Set zfs UUID.
1001
1002 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 * conf/Makefile.common (platformdir): Base on pkglibdir and not
1005 pkglibrootdir.
1006
1007 2012-02-27 Mike Gilbert <floppym@gentoo.org>
1008
1009 Add configure flag to control libzfs integration.
1010
1011 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
1012
1013 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
1016 device.
1017 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
1018 small devices.
1019
1020 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 Remove grub_{modname}_init and grub_{modname}_fini. They should never
1023 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
1024 be used on non-modules.
1025
1026 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
1027 Rename to grub_boot_init.
1028 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
1029 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
1030 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
1031 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
1032 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
1033 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
1034 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
1035 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
1036 includes.
1037 (grub_machine_init): Remove empty inits.
1038 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
1039 includes.
1040 (grub_machine_init): Remove empty inits.
1041 * grub-core/term/arc/console.c: Remove explicit proto.
1042 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
1043 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
1044 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1045 grub_at_keyboard_fini.
1046 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
1047 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
1048 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1049 grub_gfxterm_fini.
1050 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
1051 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
1052 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1053 grub_vgatext_fini.
1054 * grub-core/term/ieee1275/console.c: Remove explicit proto.
1055 * grub-core/term/serial.c (GRUB_MOD_INIT)
1056 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
1057 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1058 grub_serial_fini.
1059 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
1060 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
1061 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1062 grub_terminfo_fini.
1063 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
1064 (GRUB_MOD_FINI): Likewise.
1065 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
1066 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
1067 (GRUB_MOD_FINI) [LOONGSON]: Rename to
1068 grub_video_radeon_fuloong2e_fini.
1069 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
1070 [LOONGSON]: Rename to grub_video_sis315pro_init.
1071 (GRUB_MOD_FINI) [LOONGSON]: Rename to
1072 grub_video_sis315pro_fini.
1073 * grub-core/video/sm712.c (GRUB_MOD_INIT)
1074 [LOONGSON]: Rename to grub_video_sm712_init.
1075 (GRUB_MOD_FINI) [LOONGSON]: Rename to
1076 grub_video_sm712_fini.
1077 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
1078 (grub_at_keyboard_fini): Likewise.
1079 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
1080 Don't declare grub_{modname}_init.
1081 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
1082 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
1083 New proto.
1084 (grub_keylayouts_fini) [!EMU]: Likewise.
1085 * include/grub/serial.h (grub_serial_init) [!EMU]:
1086 New proto.
1087 (grub_serial_fini) [!EMU]: Likewise.
1088 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
1089 New proto.
1090 (grub_terminfo_fini) [!EMU]: Likewise.
1091 * include/grub/video.h (grub_font_init) [!EMU]:
1092 New proto.
1093 (grub_font_fini) [!EMU]: Likewise.
1094 (grub_gfxterm_init) [!EMU]: Likewise.
1095 (grub_gfxterm_fini) [!EMU]: Likewise.
1096 (grub_video_sm712_init) [!EMU]: Likewise.
1097 (grub_video_sm712_fini) [!EMU]: Likewise.
1098 (grub_video_sis315pro_init) [!EMU]: Likewise.
1099 (grub_video_sis315pro_fini) [!EMU]: Likewise.
1100 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
1101 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
1102
1103 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1104
1105 Make nand a prefix for nand devices.
1106
1107 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
1108
1109 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
1112 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
1113
1114 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * include/grub/env.h (grub_env_find): Remove prototype.
1117 * grub-core/kern/env.c (grub_env_find): Make static.
1118 (grub_env_set): Remove useless set.
1119
1120 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 * grub-core/kern/i386/realmode.S: Remove useless align.
1123
1124 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 * include/grub/dl.h (grub_dl_load_file): Don't export.
1127
1128 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
1131 grub_dprintf.
1132
1133 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1134
1135 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
1136 grub_errors.
1137 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
1138 not reloading whole superblock but only the part which is really needed.
1139 Remove useless grub_errors.
1140 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
1141 grub_errors.
1142
1143 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 Don't export grub_get_rtc.
1146
1147 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
1148 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
1149
1150 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
1153
1154 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
1157 argument since it can be deduced from diskfilter. All users updated.
1158
1159 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 Remove prio_list.
1162
1163 * include/grub/list.h (grub_prio_list): Removed.
1164 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
1165 GRUB_COMMAND_PRIO_MASK.
1166 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
1167 GRUB_COMMAND_FLAG_ACTIVE.
1168 (grub_prio_list_insert): Removed.
1169 (grub_prio_list_remove): Likewise.
1170 (GRUB_AS_PRIO_LIST): Likewise.
1171 (GRUB_AS_PRIO_LIST_P): Likewise.
1172 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
1173 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
1174 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
1175 * grub-core/kern/command.c (grub_register_command_prio): Inline
1176 the prio_list code.
1177 (grub_unregister_command): Likewise.
1178
1179 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 Fix interrupt mixup from previous commit.
1182
1183 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
1184 (grub_realidt): New var.
1185 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
1186 Load idt.
1187 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
1188 New declaration.
1189 (grub_relocator16_boot): Set grub_relocator16_idt.
1190 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
1191 (LOCAL(realidt)): ... this.
1192 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
1193 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
1194 (grub_realidt): New variable.
1195
1196 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
1199 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
1200 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
1201 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
1202 Gettextize.
1203 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
1204 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
1205 * po/POTFILES.in: Regenerate.
1206
1207 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
1210 errors.
1211
1212 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
1215 \0.
1216 (add_length): Likewise.
1217
1218 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1219 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
1220
1221 GDB serial and backtrace support.
1222
1223 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
1224 (prot_to_real): Likewise.
1225 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
1226 * grub-core/Makefile.core.def (backtrace): New module.
1227 (gdb): Likewise.
1228 * grub-core/gdb/cstub.c: New file.
1229 * grub-core/gdb/gdb.c: Likewise.
1230 * grub-core/gdb/i386/idt.c: Likewise.
1231 * grub-core/gdb/i386/machdep.S: Likewise.
1232 * grub-core/gdb/i386/signal.c: Likewise.
1233 * grub-core/lib/i386/backtrace.c: Likewise.
1234 * grub-core/lib/backtrace.c: Likewise.
1235 * include/grub/backtrace.h: Likewise.
1236 * include/grub/gdb.h: Likewise.
1237 * include/grub/i386/gdb.h: Likewise.
1238
1239 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
1242 New function.
1243 (add_length): Likewise.
1244 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
1245 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
1246 proto.
1247 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
1248 __argp_get_display_len.
1249
1250 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 $"..." support in scripts.
1253
1254 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
1255 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
1256 * grub-core/script/yylex.l: Likewise.
1257 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
1258 value.
1259
1260 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 * gentpl.py: Remove obsolete pkglib_DATA handling.
1263
1264 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Don't transform PACKAGE_TARNAME following a discussion on autoconf
1267 mailing list.
1268
1269 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
1270 * util/grub-kbdcomp.in: Likewise.
1271 * util/grub-mkconfig.in: Likewise.
1272 * util/grub-mkconfig_lib.in: Likewise.
1273 * util/grub-mknetdir.in: Likewise.
1274 * util/grub-mkrescue.in: Likewise.
1275 * util/grub-mkstandalone.in: Likewise.
1276 * util/grub-reboot.in: Likewise.
1277 * util/grub-set-default.in: Likewise.
1278 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1279
1280 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 Remove GRUB_PREFIX.
1283
1284 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
1285 * util/grub.d/00_header.in: Compute prefix in the only place it's still
1286 used for backward compatibility.
1287
1288 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 Add new all_video module.
1291
1292 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
1293 * grub-core/Makefile.core.def (all_video): New module.
1294 * grub-core/genmoddep.awk: Generate dependency of all_video from
1295 video.lst.
1296 * grub-core/lib/fake_module.c: New file.
1297 * grub-core/normal/main.c (features): Add feature_all_video_module.
1298 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
1299 don't do explicit search again.
1300 insmod all_video in load_video if available.
1301
1302 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1303
1304 Another round of string clarification and adding TRANSLATORS comments.
1305
1306 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
1309
1310 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1311
1312 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
1313 to grub_ssize_t.
1314 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
1315 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
1316
1317 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
1320 trailing newline implicitly. All users updated.
1321
1322 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 Implement serial on IEEE1275 and EFI.
1325
1326 * docs/grub.texi (Platform-specific limitations): Fix the columen video
1327 on emu. Mention arc and emu as the only platforms without serial
1328 support.
1329 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
1330 ieee1275 platforms.
1331 * grub-core/term/efi/serial.c: New file.
1332 * grub-core/term/ieee1275/serial.c: Likewise.
1333 * grub-core/term/serial.c (grub_serial_find): Disable direct port
1334 specification if no ns8250 driver is available.
1335 (grub_cmd_serial): Likewise.
1336 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
1337 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
1338 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
1339 (grub_efi_parity_type_t): New type.
1340 (grub_efi_stop_bits_t): Likewise.
1341 (grub_efi_serial_io_interface): New struct.
1342 * include/grub/serial.h (grub_serial_port): Make 'broken' field
1343 available for all interfaces.
1344 Add EFI and IEEE1275 fields.
1345 (grub_ofserial_init): New proto.
1346 (grub_efiserial_init): Likeiwse.
1347 * util/grub.d/00_header.in: Don't check for the presence of serial
1348 module.
1349
1350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
1353 name as if it was an alias.
1354
1355 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * grub-core/commands/lsacpi.c (options): Fix typo.
1358
1359 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Convert grub-emu to argp.
1362
1363 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
1364 emu.
1365 * util/argp_common.c: Rename to ...
1366 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
1367 Add missing includes.
1368 * grub-core/kern/emu/main.c: Convert to argp.
1369 * po/POTFILES.in: Regenerate.
1370 * util/grub-install.in (usage): Make first letter lowcase in messages
1371 for uniformity.
1372 * util/grub-setup.c (options): Likewise.
1373
1374 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1375
1376 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
1377 Put back accidently commented-out code.
1378
1379 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
1382 loop check using Brent algorithm.
1383 (grub_hfsplus_btree_search): Likewise.
1384
1385 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * util/grub-install.in: Fix usage of wrong device for PreP install.
1388
1389 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1390
1391 * conf/Makefile.common (CFLAGS_GNULIB): Add
1392 -Wno-unsafe-loop-optimizations.
1393 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
1394 on tools.
1395 * grub-core/commands/legacycfg.c: Add pragma to skip
1396 -Wunsafe-loop-optimizations.
1397 (check_password_md5_real): Fix loop counter type.
1398 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
1399 reading.
1400 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
1401 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
1402 loop condition.
1403 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
1404 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
1405 * grub-core/net/net.c (grub_net_route_address): Add safety loop
1406 condition.
1407 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
1408 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
1409 avoid possible infinite loops.
1410 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
1411 and -Wunsafe-loop-optimizations.
1412 * grub-core/script/yylex.l: Likewise.
1413 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
1414 (print_glyphs): Avoid infinite loops.
1415 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
1416
1417 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
1418
1419 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
1420 to avoid infinite loop.
1421 (disp_acpi_rsdt_table): Likewise.
1422
1423 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * grub-core/font/font.c (grub_font_load): Add support for default
1426 path for fonts ($prefix/fonts).
1427 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
1428 for checking if string is a path.
1429 * grub-core/normal/main.c (features): Add feature_default_font_path.
1430 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
1431 * util/grub.d/00_header.in: Use default directory if possible.
1432 * util/grub-install.in: Install unicode.pf2.
1433
1434 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
1437 * po/Rules-swiss: New file.
1438 * po/swiss.sed: Likewise.
1439
1440 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * grub-core/fs/btrfs.c (find_device): Fix typos.
1443 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
1444 * util/grub-mkrelpath.c (argp_parser): Likewise.
1445 Reported by: Yuri Chornoivan.
1446
1447 2012-02-23 Dalet Omega <daletomega@gmail.com>
1448
1449 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
1450 for usual informative messages.
1451
1452 2012-02-23 Dalet Omega <daletomega@gmail.com>
1453
1454 Starfield theme.
1455
1456 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
1457 * conf/Makefile.common: Define starfielddir.
1458 * configure.ac: Configure starfield.
1459 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
1460 * themes/starfield/README: Likewise.
1461 * themes/starfield/blob_w.png: Likewise.
1462 * themes/starfield/boot_menu_c.png: Likewise.
1463 * themes/starfield/boot_menu_e.png: Likewise.
1464 * themes/starfield/boot_menu_n.png: Likewise.
1465 * themes/starfield/boot_menu_ne.png: Likewise.
1466 * themes/starfield/boot_menu_nw.png: Likewise.
1467 * themes/starfield/boot_menu_s.png: Likewise.
1468 * themes/starfield/boot_menu_se.png: Likewise.
1469 * themes/starfield/boot_menu_sw.png: Likewise.
1470 * themes/starfield/boot_menu_w.png: Likewise.
1471 * themes/starfield/slider_c.png: Likewise.
1472 * themes/starfield/slider_n.png: Likewise.
1473 * themes/starfield/slider_s.png: Likewise.
1474 * themes/starfield/src/blob_nw.xcf: Likewise.
1475 * themes/starfield/src/bootmenu/: Likewise.
1476 * themes/starfield/src/bootmenu/center.xcf: Likewise.
1477 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
1478 * themes/starfield/src/bootmenu/side.xcf: Likewise.
1479 * themes/starfield/src/slider_c.xcf: Likewise.
1480 * themes/starfield/src/slider_n.xcf: Likewise.
1481 * themes/starfield/src/slider_s.xcf: Likewise.
1482 * themes/starfield/src/terminalbox/: Likewise.
1483 * themes/starfield/src/terminalbox/center.xcf: Likewise.
1484 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
1485 * themes/starfield/src/terminalbox/side.xcf: Likewise.
1486 * themes/starfield/starfield.png: Likewise.
1487 * themes/starfield/terminal_box_c.png: Likewise.
1488 * themes/starfield/terminal_box_e.png: Likewise.
1489 * themes/starfield/terminal_box_n.png: Likewise.
1490 * themes/starfield/terminal_box_ne.png: Likewise.
1491 * themes/starfield/terminal_box_nw.png: Likewise.
1492 * themes/starfield/terminal_box_s.png: Likewise.
1493 * themes/starfield/terminal_box_se.png: Likewise.
1494 * themes/starfield/terminal_box_sw.png: Likewise.
1495 * themes/starfield/terminal_box_w.png: Likewise.
1496 * themes/starfield/theme.txt: Likewise.
1497
1498 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * util/grub.d/00_header.in: Add missing export theme.
1501
1502 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
1505 already included.
1506 Reported by: Eren D.
1507
1508 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * conf/Makefile.common (grubdatadir): Removed.
1511 (Makefile.am): Move eveything grubdata to pkgdata.
1512
1513 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * grub-core/commands/acpihalt.c (get_sleep_type):
1516 Remove unused variable.
1517
1518 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
1521 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
1522 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
1523 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
1524 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
1525 i18n with gettext no-op.
1526 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
1527 GRUB_ACPI_OPCODE_STRING_CONST.
1528 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
1529 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
1530
1531 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1532
1533 * po/POTFILES.in: Regenerate.
1534
1535 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
1538 -Wno-error=missing-noreturn.
1539
1540 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
1543 condition to avoid possibly infinite loops.
1544 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
1545 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
1546
1547 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
1550 condition to avoid possibly infinite loops.
1551
1552 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1553
1554 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
1555 on show_error.
1556
1557 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
1560
1561 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
1564
1565 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * util/bin2h.c (usage): Add missing attribute noreturn.
1568
1569 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
1572 if the size isn't divisible by 512.
1573
1574 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 Make list_push and list_remove functions rather than inline functions
1577 to decrease size and avoid aliasing violations.
1578
1579 * include/grub/list.h (grub_list_push): Move to ...
1580 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
1581 * include/grub/list.h (grub_list_remove): Move to ...
1582 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
1583
1584 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
1587 and -Wunused-result.
1588
1589 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
1592 Reported by: Seth Goldberg
1593
1594 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
1597
1598 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
1599
1600 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
1601 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
1602 command line.
1603 * docs/grub.texi (Simple configuration): Document
1604 GRUB_CMDLINE_GNUMACH.
1605
1606 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * conf/Makefile.common (platform_SCRIPTS): New variable.
1609 (platform_PROGRAMS): Likewise.
1610 * gentpl.py: Mark *,module and *.image for install.
1611 * grub-core/gdb_grub.in: Add a notice of expected environment.
1612 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
1613 (gmodule.pl): Likewise.
1614
1615 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 Replace grub_checkkey with grub_getkey_noblock.
1618
1619 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
1620 (grub_getkey_noblock): ... this. All users updated.
1621
1622 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * grub-core/kern/emu/console.c: Move to ...
1625 * grub-core/term/emu/console.c: ...here.
1626 (grub_ncurses_getkey): Fix return value if no key is detected.
1627
1628 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
1631 (grub_unit_test_fini): Likewise.
1632 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
1633
1634 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * include/grub/test.h (GRUB_UNIT_TEST)
1637
1638 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1639
1640 * grub-core/script/execute.c (grub_script_break): Clarify logic.
1641 Better error handling.
1642 (grub_script_return): Likewise.
1643 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
1644
1645 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
1648 rimplicit redifinition.
1649
1650 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
1653 GRUB.
1654
1655 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
1658 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
1659 prompt here.
1660
1661 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
1664 as GRUB_ERR_BUG. Don't malloc if no device is available.
1665
1666 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
1669 Mark calling with invalid term as GRUB_ERR_BUG.
1670
1671 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
1674 packets rather than raising an error.
1675
1676 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1677
1678 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
1679 in if.
1680
1681 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1682
1683 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
1684 diagnostic to dprintf.
1685 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1686
1687 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1688
1689 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
1690 device name.
1691
1692 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
1695 (grub_ntfs_iterate_dir): Likewise.
1696
1697 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 Efiemu stylistic fixes and gettext.
1700
1701 * grub-core/efiemu/i386/loadcore32.c
1702 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
1703 * grub-core/efiemu/i386/loadcore64.c
1704 (grub_arch_efiemu_relocate_symbols64): Likewise.
1705 * grub-core/efiemu/i386/pc/cfgtables.c
1706 (grub_machine_efiemu_init_tables): Likewise.
1707 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
1708 (grub_efiemu_loadcore_initXX): Add a filename argument.
1709 All users updated.
1710 Improved error message.
1711 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
1712 Add a filename argument.
1713 All users updated.
1714 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
1715 Reclassify double relocation as GRUB_ERR_BUG.
1716
1717 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
1720 handling.
1721
1722 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
1725 on partition.
1726
1727 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1728
1729 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
1730
1731 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 Improve string. Gettextize.
1734
1735 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
1738 utils.
1739 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
1740
1741 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
1744 [GRUB_UTIL]: New function.
1745 (insert_array) [GRUB_UTIL]: Store partmaps.
1746 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
1747 partmaps.
1748 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
1749 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
1750 (probe_abstraction): Print diskfilter and not raid.
1751 Reported by: Lennart Sorensen
1752
1753 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
1756 * util/grub-mkimagexx.c (MASK3): New define.
1757 (add_value_to_slot_20b): Use MASK3.
1758 (add_value_to_slot_21): Likewise.
1759 (relocate_addresses): Fix format specification.
1760 (load_image): Explicitly init symtab_section.
1761
1762 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
1765 (grub_util_biosdisk_get_grub_dev): Fix format specification.
1766
1767 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
1770 on powerpc.
1771 Reported by: Lennart Sorensen
1772
1773 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * gentpl.py: Add missing license header.
1776 * docs/grub.texi: Update copyright year.
1777
1778 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1779
1780 Source grub-mkconfig_lib from the build directory at build time.
1781 Suggested by: Vladimir Serbinenko.
1782
1783 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
1784 * util/grub-install.in: Define pkgdatadir if not already set, and source
1785 grub-mkconfig_lib from there.
1786 * util/grub-kbdcomp.in: Likewise.
1787 * util/grub-mkconfig.in: Likewise.
1788 * util/grub-mknetdir.in: Likewise.
1789 * util/grub-mkrescue.in: Likewise.
1790 * util/grub-mkstandalone.in: Likewise.
1791 * util/grub-reboot.in: Likewise.
1792 * util/grub-set-default.in: Likewise.
1793 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1794
1795 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 Increase warning level.
1798
1799 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
1800 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
1801 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
1802 (TARGET_CFLAGS): Likewise.
1803 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
1804 * grub-core/Makefile.core.def (decompressor_xz): Add
1805 -Wno-unreachable-code.
1806 (normal): Add -Wno-redundant-decls.
1807 (xzio): Add -Wno-unreachable-code.
1808 (lzopio): Add -Wno-redundant-decls -Wno-error.
1809 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
1810 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
1811 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
1812 * grub-core/kern/dl.c: Add exception to -Wcast-align.
1813 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
1814 * grub-core/kern/i386/coreboot/init.c: Add exception to
1815 -Wsuggest-attribute=noreturn.
1816 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
1817 * grub-core/kern/ia64/dl_helper.c: Likewise.
1818 * grub-core/kern/mips/dl.c: Likewise.
1819 * grub-core/kern/sparc64/dl.c: Likewise.
1820 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
1821 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
1822 (memcmp): Likewise.
1823 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
1824 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
1825 * grub-core/loader/mips/linux.c: Likewise.
1826 * grub-core/loader/multiboot_elfxx.c: Likewise.
1827 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
1828 * grub-core/video/sm712.c: Add exception to -Wcast-align.
1829 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
1830 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
1831 fixme.
1832 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1833 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
1834 Fix prototype.
1835
1836 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
1839 address.
1840
1841 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
1844 Avoid improper use of strings.
1845 (grub_cmd_legacy_initrdnounzip): Likewise.
1846
1847 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * include/grub/emu/misc.h (grub_util_warn): Add missing format
1850 attribute.
1851 (grub_util_info): Likewise.
1852 (grub_util_error): Likewise.
1853
1854 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
1857 * util/grub-fstest.c (fstest): Likewise.
1858
1859 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1860
1861 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
1862 (grub_md_sha512_real): Likewise.
1863 (grub_util_get_geli_uuid): Likewise.
1864 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
1865 (grub_util_biosdisk_open): Fix format specification.
1866 Respect format security.
1867 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
1868 (xrealloc): Likewise.
1869 (xasprintf): Likewise.
1870
1871 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * util/import_gcry.py: Include grub/crypto.h in init.c.
1874
1875 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
1878 (generate_image): Make prefix a const char *.
1879 Fix format specifications. Respect format security.
1880 Avoid void * arithmetics.
1881 Avoid shadowing.
1882 (argp_parser): Remove unused variable. Respect format security.
1883 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
1884 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
1885 (count_funcs): Remove unused variable.
1886 (relocate_addresses): Fix format specification.
1887 Disable x86-64 with elf32. Remove unused variables.
1888 (add_fixup_entry): Avoid shadowing.
1889 (make_reloc_section): Fix format specification.
1890 Use assert.
1891 (locate_sections): Fix format specifications.
1892 (load_image): Avoid shadowing.
1893
1894 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
1897 Fix format specifications. Respect format security.
1898 Don't translate already translated grub_errmsg.
1899 (argp_parser): Remove unused variable
1900
1901 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1902
1903 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
1904
1905 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1906
1907 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
1908 (main): Likewise. Use xmalloc. Respect format security.
1909
1910 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1911
1912 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
1913 a const char *.
1914 (argp_parser): Remove unused variable.
1915
1916 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
1919 (add_pixel): Make static.
1920 (add_font): Likewise.
1921 (write_string_section): Make name and str a const char *.
1922 (write_be16_section): Make name a const char *.
1923 (print_glyphs): Make static.
1924 (write_font_ascii_bitmap): Likewise.
1925 (write_font_width_spec): Likewise.
1926 (write_font_pf2): Likewise.
1927 (argp_parser): Remove unused variable.
1928 Respect format security.
1929 (main): Avoid shadowing. Respect format security.
1930
1931 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * util/grub-editenv.c (argp_parser): Make static.
1934 (create_envblk_file): Use xmalloc.
1935 (open_envblk_file): Likewise.
1936 Resepect format security.
1937 (set_variables): Respect format security.
1938
1939 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * util/getroot.c (grub_find_device): Respect format security.
1942 (get_mdadm_uuid): Remove unused variable.
1943 (grub_util_pull_device): Dont call gettext on already translated
1944 grub_errmsg.
1945 (find_system_device): Remove unused variable.
1946 (grub_util_get_grub_dev): Likewise.
1947 (grub_make_system_path_relative_to_its_root): Respect format security.
1948
1949 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 * util/grub-fstest.c (execute_command): Make first argument
1952 a const char *.
1953 (read_file): Avoid shadowing.
1954 Reuse underlying error message if device open fails.
1955 (cmd_cmp): Respect format security.
1956 (root): Make const char *.
1957 (fstest): Remove args argument and use global copy.
1958 Respect format security.
1959 (argp_parser): Make static.
1960 (main): Make default_root const char *.
1961
1962 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 * util/grub-mount.c (root): Make const char *.
1965 (execute_command): Make first argument a const char *.
1966 (fuse_init): Respect format security.
1967 (argp_parser): Make static. Remove unused variable.
1968 (main): Make default_root a const char *.
1969 Respect format security.
1970
1971 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * util/grub-probe.c (probe): Don't call gettext on already translated
1974 grub_errmsg.
1975 Remove unused variables.
1976 (argp_parser): Remove unused variable.
1977
1978 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1979
1980 * util/grub-script-check.c (argp_parser): Remove unused variable.
1981 (main): Rename read to curread to avoid shadowing.
1982
1983 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 * util/misc.c (grub_util_write_image_at): Fix format specification.
1986 (grub_util_write_image): Likewise.
1987 (grub_script_execute_argument_to_string): Removed (unused).
1988 (grub_script_execute_menuentry): Likewise.
1989 (grub_putchar): Likewise.
1990
1991 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1992
1993 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
1994 (FUNCTION) [GRUB_UTIL]: Likewise.
1995 (VARIABLE) [GRUB_UTIL]: Likewise.
1996
1997 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1998
1999 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
2000 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
2001
2002 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2003
2004 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
2005 buffer.
2006
2007 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
2010 (LzmaEnc_SaveState): Removed (unused).
2011 (LzmaEnc_RestoreState): Likewise.
2012 (LzmaEnc_InitPriceTables): Made static.
2013 (LzmaEnc_Construct): Likewise.
2014 (LzmaEnc_FreeLits): Likewise.
2015 (LzmaEnc_Destruct): Likewise.
2016 (LzmaEnc_Init): Likewise.
2017 (LzmaEnc_InitPrices): Likewise.
2018 (LzmaEnc_Finish): Likewise.
2019 (LzmaEnc_PrepareForLzma2): Removed (unused).
2020 (LzmaEnc_MemPrepare): Likewise.
2021 (LzmaEnc_GetNumAvailableBytes): Likewise.
2022 (LzmaEnc_GetCurBuf): Likewise.
2023 (LzmaEnc_CodeOneMemBlock): Likewise.
2024
2025 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
2028 (grub_util_ldm_embed): Likewise.
2029
2030 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * util/grub-editenv.c (print_var): Rename name to varname to
2033 avoid shadowing.
2034 (main): Rename index to curindex to avoid shadowing.
2035 Make filename a const char *.
2036
2037 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
2040 to arg_getline to avoid shadowing.
2041
2042 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
2045 disk_ to avoid shadowing.
2046
2047 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
2050 curindex to avoid shadowing.
2051 Make static.
2052 (MatchFinder_GetNumAvailableBytes): Make static.
2053
2054 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
2057 avoid shadowing.
2058
2059 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
2062 argument from encrypt to do_encrypt to avoid shadowing.
2063
2064 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
2067 incorrect nesting of #if's.
2068
2069 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
2072 checks which are always false on some platforms.
2073 (grub_cmd_lsacpi): Likewise.
2074 * grub-core/kern/misc.c (grub_strtoul): Likewise.
2075 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
2076 Likewise.
2077
2078 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2079
2080 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
2081 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
2082
2083 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2084
2085 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
2086 re_dfa_t to avoid breaking alignment invariants.
2087 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
2088 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
2089
2090 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
2093 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
2094
2095 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
2098 Fix declaration.
2099
2100 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
2103 conserve alignment invariants.
2104 (grub_ehci_ehcc_read16): Likewise.
2105 (grub_ehci_oper_read32): Likewise.
2106 (grub_ehci_oper_write32): Likewise.
2107 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
2108 Conserve alignment invariants.
2109
2110 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
2113 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
2114 declarations.
2115
2116 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
2119 Remove unused variable.
2120
2121 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2122
2123 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
2124 Remove set in if.
2125
2126 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 * include/grub/net.h: Remove double declarations.
2129
2130 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2131
2132 Remove "payload" command in ia64 Linux loader since I couldn't
2133 find any evidence of it being used for anything.
2134 Replace "relocate" command with an environment variable
2135
2136 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
2137 fields.
2138 (ia64_boot_payload): Removed.
2139 (last_payload): Likewise.
2140 (RELOCATE_OFF): Likewise.
2141 (RELOCATE_ON): Likewise.
2142 (RELOCATE_FORCE): Likewise.
2143 (relocate): Likewise.
2144 (free_pages): Don't free payloads.
2145 (grub_load_elf64): Use common error messages.
2146 Use "linux_relocate" variable.
2147 Increase the space after boot_params.
2148 (grub_cmd_payload): Removed.
2149 (grub_cmd_relocate): Likewise.
2150 (grub_cmd_fpswa): Improve messages.
2151 (cmd_payload): Removed.
2152 (cmd_relocate): Likewise.
2153 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
2154 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
2155
2156 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 Convert UHCI to DMA framework.
2159
2160 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
2161 (grub_uhci_pci_iter): Fill new members
2162 (grub_alloc_td): Use P2V and V2P functions.
2163 (grub_free_queue): Likewise.
2164 (grub_alloc_qh): Likewise.
2165 (grub_uhci_setup_transfer): Likewise.
2166 (grub_uhci_check_transfer): Likewise.
2167
2168 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
2171 Remove assignment in if while on it.
2172
2173 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 * util/grub-mkstandalone.in: Fix modules directory.
2176
2177 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
2180 on i386-pc target.
2181 (argp_parser): Accept "auto" as compression specification.
2182
2183 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 Fix `help' with unloaded modules.
2186
2187 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
2188 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
2189 (grub_dyncmd_dispatcher): Small stylistic fix.
2190 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
2191 explicit help is requested.
2192
2193 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2194
2195 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
2196 Explicitly init restart while on it.
2197
2198 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
2201 uninited variable.
2202
2203 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 * util/grub-mknetdir.in: Use . rather than source for POSIX
2206 compatibility.
2207
2208 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
2211
2212 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
2215 variable.
2216
2217 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
2220 without quotes.
2221
2222 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2223
2224 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
2225
2226 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
2229 iteration of partitions.
2230
2231 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 Improve gettext support. Stylistic fixes and error handling fixes while
2234 on it.
2235
2236 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2237
2238 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
2239 part. Instead setup the correct stack in RM.
2240 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
2241 for stack.
2242 * include/grub/i386/relocator_private.h: New file.
2243
2244 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2245
2246 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
2247 argument.
2248 * util/grub-fstest.c (options): Add missing DEVICE part.
2249
2250 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 Clarify and unify messages.
2253
2254 * grub-core/commands/hashsum.c (options): Unify messages.
2255 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
2256 literal-only message as translatable.
2257 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
2258 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
2259 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
2260 commands.
2261 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
2262 key, not the key used to unlock. Clarify what it's used for.
2263 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
2264 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
2265 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
2266 * util/grub-editenv.c (options): Unify "verbose" message.
2267 * util/grub-fstest.c (read_file): Unify error message.
2268 (fstest): Add quotes around commands.
2269 (options): Unify "verbose" message.
2270 * util/grub-install.in: Add quotes around variable name.
2271 * util/grub-kbdcomp.in: Unify error message.
2272 * util/grub-mkfont.c (main): Likewise.
2273 * util/grub-mkrescue.in: Likewise.
2274 * util/grub-mklayout.c (options): Unify "verbose" message.
2275 * util/grub-mkstandalone.in: Unify help and verbose messages.
2276 * util/grub-mount.c (options): Unify "verbose" message.
2277 * util/grub-probe.c (options): Likewise.
2278 * util/grub-script-check.c (options): Likewise.
2279 * util/grub-setup.c (setup): Unify no-terminator message.
2280 (options): Use DEVICE and not DEV.
2281 Unify "verbose" message.
2282 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
2283
2284 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 Improve and unify messages.
2287
2288 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
2289 name. All users updated.
2290 Print filename in error.
2291 (read_device_map): Print filename in error.
2292 * util/getroot.c (grub_guess_root_devices): Print filename in error.
2293 (grub_util_get_os_disk): Likewise.
2294 (grub_util_biosdisk_get_grub_dev): Likewise.
2295 (grub_util_check_block_device): Likewise.
2296 (grub_util_check_char_device): Likewise.
2297 (grub_make_system_path_relative_to_its_root): Likewise.
2298 * util/grub-editenv.c (create_envblk_file): Likewise.
2299 (open_envblk_file): Likewise.
2300 (write_envblk): Likewise.
2301 * util/grub-fstest.c (cmd_cp): Likewise.
2302 (cmd_cat): Likewise.
2303 (cmd_cmp): Likewise.
2304 * util/grub-menulst2cfg.c (main): Likewise.
2305 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
2306 (write_font_width_spec): Likewise.
2307 (write_font_pf2): Likewise.
2308 * util/grub-mkimage.c (generate_image): New argument outname.
2309 All users updated.
2310 Remove unreacheable message.
2311 (options): Unify messages.
2312 (help_filter): Likewise.
2313 * util/grub-mklayout.c (usage): Removed (unused).
2314 (main): Print filename in error.
2315 * util/grub-mkrescue.in: Fix wrong quoting.
2316 * util/grub-setup.c (setup): Print filename in error.
2317 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
2318 (check_sas): Likewise.
2319 * util/misc.c (grub_util_get_fp_size): Removed.
2320 (grub_util_get_image_size): Print filename in error.
2321 (grub_util_read_at): Removed.
2322 (grub_util_read_image): Print filename in error.
2323 (grub_util_load_image): Likewise.
2324 (grub_util_write_image_at): New argument filename. All users updated.
2325 Print filename in error.
2326 (grub_util_write_image): New argument filename. All users updated.
2327 Print filename in error.
2328 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
2329 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
2330
2331 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 * grub-core/Makefile.core.def (pxechain): New module.
2334 * grub-core/loader/i386/pc/pxechainloader.c: New file.
2335 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
2336 function.
2337 (grub_pc_net_config_real): Use grub_pxe_get_cached.
2338 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
2339
2340 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
2343 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
2344 * include/grub/err.h (grub_error_saved): New struct.
2345 (grub_errmsg): Make array size explicit.
2346 * include/grub/misc.h (grub_error_save): New function.
2347 (grub_error_load): Likewise.
2348 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
2349 (grub_error_push): Update `errno' member name.
2350 (grub_error_pop): Likewise
2351 * grub-core/net/tftp.c (tftp_data): New member save_err.
2352 (tftp_receive): Save error.
2353 (tftp_open): Restore error.
2354
2355 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2356
2357 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
2358 to real mode down to execute A20-related code in protected mode as
2359 intended.
2360
2361 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
2362
2363 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
2364 NULL when the argument `level' has an unexpected value.
2365
2366 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 Move platform-dependent files from $prefix to $prefix/$platform.
2369
2370 * config.h.in (GRUB_TARGET_CPU): New definition.
2371 (GRUB_PLATFORM): Likewise.
2372 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
2373 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
2374 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
2375 * grub-core/kern/dl.c (grub_dl_load): Likewise.
2376 * grub-core/normal/autofs.c (read_fs_list): Likewise.
2377 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
2378 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
2379 * grub-core/normal/term.c (read_terminal_list): Likewise.
2380 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
2381 $prefix/locale.
2382 (grub_gettext_init_ext): Likewise.
2383 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
2384 grub_platform.
2385 * util/grub-install.in: Update directories.
2386 * util/grub-mknetdir.in: Likewise.
2387 * util/grub-mkrescue.in: Likewise.
2388
2389 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
2392 grub_error framework. All users updated.
2393
2394 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2395
2396 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
2397 lists (by always binsearching), improve caching (cache strings
2398 used for binsearch, not only results), improve
2399 maintainability (by using more structured binary search) and correct
2400 error handling.
2401
2402 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 * grub-core/script/execute.c (grub_script_return): Fix warning.
2405
2406 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/script/execute.c (grub_script_return): Fix potential
2409 NULL-dereference.
2410 Reported by: Jim Meyering.
2411
2412 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 * po/POTFILES.in: Regenerate.
2415 * util/grub-install.in: Gettextize the strings missed in first pass.
2416
2417 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2418
2419 * Makefile.util.def (grub-mkdevicemap): Removed.
2420 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
2421 * include/grub/util/deviceiter.h: Removed.
2422 * util/deviceiter.c: Likewise.
2423 * util/getroot.c (grub_util_get_os_disk): New function.
2424 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
2425 replacement for EFI.
2426 * util/grub-mkdevicemap.c: Removed.
2427 * util/grub-probe.c (probe): Handle PRINT_DISK.
2428 (argp_parser): Handle -t disk.
2429
2430 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2431
2432 * util/grub-mkfont.c: Migrate to argp.
2433 * util/grub-mklayout.c: Likewise.
2434 * util/grub-mkpasswd-pbkdf2.c: Likewise.
2435 * util/grub-mkrelpath.c: Likewise.
2436 * util/grub-probe.c: Likewise.
2437 * util/grub-script-check.c: Likewise.
2438
2439 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * util/grub-reboot.in: Add missing datarootdir.
2442 Add missing newline.
2443 * util/grub-set-default.in: Add missing datarootdir.
2444 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
2445 * util/grub-mkrescue.in: Likewise.
2446
2447 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
2450
2451 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 * util/grub-kbdcomp.in: Add decent help and gettextize.
2454 * docs/man/grub-kbdcomp.h2m: New file.
2455
2456 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 Migrate grub-mkimage.c to argp.
2459
2460 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
2461 (grub-setup): Likewise.
2462 * util/grub-setup.c (print_version): Move to ...
2463 * util/argp_common.c (print_version): ... here.
2464 * util/grub-setup.c (argp_program_version_hook): Move to ...
2465 * util/argp_common.c (argp_program_version_hook): ... here.
2466 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
2467 safety.
2468 * util/grub-mkimage.c (main): Migrate to argp.
2469
2470 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * util/grub-mkrescue.in: Use same message as
2473 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
2474 for better translations.
2475
2476 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2477
2478 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
2479 options with generic grub-mkrescue.in with the goal of future
2480 merge.
2481
2482 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * grub-core/kern/mm.c: Add missing include of i18n.h
2485 * grub-core/lib/relocator.c: Likewise.
2486
2487 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
2490 error.
2491 (allocate_pages): Check return value.
2492 Replace fatal with error.
2493 (grub_linux_boot): Replace printf with dprintf.
2494 Check find_mmap_size return value.
2495 Replace fatal with error.
2496 Don't call grub_machine_fini.
2497 (grub_load_elf64): Replace printf with dprintf.
2498 (grub_cmd_linux): Likewise.
2499 (grub_cmd_initrd): Likewise.
2500 (grub_cmd_payload): Likewise.
2501
2502 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
2505 message.
2506 * grub-core/video/radeon_fuloong2e.c
2507 (grub_video_radeon_fuloong2e_setup): Likewise.
2508 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
2509 * grub-core/video/video.c (grub_video_set_mode): Don't override
2510 standard out of memory message.
2511
2512 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2513
2514 NetBSD disk wedge support.
2515
2516 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
2517 [__NetBSD__]: Handle NetBSD disk wedges.
2518 * util/getroot.c (convert_system_partition_to_system_disk)
2519 [__NetBSD__]: Likewise.
2520
2521 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
2522
2523 * util/grub-mkconfig.in: Use umask rather than chmod to create
2524 grub.cfg.new to avoid insecure grub.cfg.
2525
2526 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * grub-core/commands/ls.c: Gettextize.
2529 * grub-core/commands/setpci.c: Likewise.
2530 * grub-core/commands/videotest.c: Likewise.
2531 * grub-core/disk/geli.c: Likewise.
2532 * grub-core/kern/mm.c: Likewise.
2533 * grub-core/lib/relocator.c: Likewise.
2534 * grub-core/loader/efi/appleloader.c: Likewise.
2535 * grub-core/loader/i386/xnu.c: Likewise.
2536 * grub-core/loader/ia64/efi/linux.c: Likewise.
2537 * grub-core/loader/xnu.c: Likewise.
2538 * grub-core/net/dns.c: Likewise.
2539 * grub-core/net/net.c: Likewise.
2540 * grub-core/script/lexer.c: Likewise.
2541 * grub-core/script/parser.y: Likewise.
2542 * grub-core/script/yylex.l: Likewise.
2543 * util/getroot.c: Likewise.
2544 * util/grub-setup.c: Likewise.
2545
2546 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
2549 number.
2550
2551 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2552
2553 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
2554
2555 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2556
2557 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
2558 macro.
2559 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
2560 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
2561
2562 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
2565 * util/grub-install.in: Gettextize.
2566 * util/grub-mkconfig.in: Likewise.
2567 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
2568 if not available.
2569 (grub_warn): Gettextize.
2570 * util/grub-mknetdir.in: Gettextize.
2571 * util/grub-mkrescue.in: Likewise.
2572 * util/grub-mkstandalone.in: Likewise.
2573 * util/grub-reboot.in: Likewise.
2574 * util/grub-set-default.in: Likewise.
2575 * util/grub.d/00_header.in: Likewise.
2576 * util/grub.d/10_hurd.in: Likewise.
2577 * util/grub.d/10_kfreebsd.in: Likewise.
2578 * util/grub.d/10_linux.in: Likewise.
2579 * util/grub.d/10_netbsd.in: Likewise.
2580 * util/grub.d/10_windows.in: Likewise.
2581 * util/grub.d/20_linux_xen.in: Likewise.
2582 * util/grub.d/30_os-prober.in: Likewise.
2583 * po/POTFILES-shell.in: Regenerate.
2584
2585 2012-02-03 Richard Laager <rlaager@wiktel.com>
2586
2587 * util/grub-mkimage.c (main): Fix format-security warning.
2588 * util/grub-mkrelpath.c (main): Likewise.
2589 * util/grub-probe.c (main): Likewise.
2590
2591 2012-02-03 Richard Laager <rlaager@wiktel.com>
2592
2593 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
2594 failure.
2595 Put back lost PRINT_DRIVE.
2596
2597 2012-02-03 Richard Laager <rlaager@wiktel.com>
2598
2599 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
2600 (grub_guess_root_devices): Replace strlen with sizeof.
2601 Avoid crash.
2602 (find_root_devices_from_poolname): Remove unused variable.
2603 Handle raidzN.
2604
2605 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2606
2607 Support install on multi-device filesystems.
2608
2609 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
2610 (grub_guess_root_devices): ...this. Return char **. All users updated.
2611 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
2612 Removed.
2613 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
2614 (find_root_devices_from_poolname): ... here.
2615 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
2616 Support zfs-fuse.
2617 (grub_guess_root_device): Rename to ...
2618 (grub_guess_root_devices): ... this. Return char **. All users updated.
2619 * util/grub-install.in: Handle multi-device filesystems.
2620 * util/grub-probe.c (probe). Make device_names a char **. Add delim
2621 argument. All users updated.
2622 Handle multi-device filesystems.
2623 Use 'delim' as separator.
2624 Remove device check to allow filesystems on file.
2625 (main): Support -0 argument. Handle multi-device.
2626 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
2627 Fix a cross-device check while on it.
2628 (arguments): Remove root_dev.
2629 (argp_parser): Remove -r.
2630 (main): Remove root_dev.
2631
2632 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
2635
2636 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2637
2638 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
2639 symbol.
2640 Reported by: NODA, Kai <nodakai>.
2641
2642 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2643
2644 Fix ehci on amd64.
2645
2646 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
2647 pointers.
2648 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
2649 (grub_ehci_setup_qh): Likewise.
2650 (grub_ehci_find_qh): Likewise.
2651 (grub_ehci_transaction): Likewise.
2652 (grub_ehci_setup_transfer): Likewise.
2653 (grub_ehci_check_transfer): Likewise.
2654 (grub_ehci_portstatus): Likewise.
2655 (grub_ehci_detect_dev): Likewise.
2656 (grub_ehci_transfer_controller_data): New field td_last_phys.
2657 (grub_ehci_setup_transfer): Fill td_last_phys.
2658 (grub_ehci_check_transfer): Use td_last_phys.
2659
2660 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
2661
2662 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
2663 if no submenu is present.
2664
2665 2012-02-01 Aleš Nesrsta <starous@volny.cz>
2666
2667 CBI support.
2668
2669 * include/grub/usb.h (grub_usbms_protocol_t): New values
2670 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
2671 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
2672 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
2673 (grub_usbms_dev): Add subclass, protocol and intrpt.
2674 Remove in_maxsz and out_maxsz.
2675 (grub_usbms_reset): Rename to ...
2676 (grub_usbms_bo_reset): .. this.
2677 (grub_usbms_cbi_cmd): New function.
2678 (grub_usbms_cbi_reset): Likewise.
2679 (grub_usbms_reset): Likewise.
2680 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
2681 (grub_usbms_transfer): Rename to ...
2682 (grub_usbms_transfer_bo): ... this.
2683 (grub_usbms_transfer_cbi): Likewise.
2684 (grub_usbms_transfer): Likewise.
2685
2686 2012-02-01 Aleš Nesrsta <starous@volny.cz>
2687 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2688
2689 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
2690 the support for the CS5536 modification thereos and few bugfixes.
2691
2692 * grub-core/Makefile.core.def (ehci): New module.
2693 * grub-core/bus/usb/ehci.c: New file.
2694 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
2695 port and hubaddr. All users updated.
2696 Save port and hubaddr into dev structure.
2697 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
2698 define.
2699 * include/grub/pci.h (grub_dma_phys2virt): New function.
2700 (grub_dma_virt2phys): Likewise.
2701 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
2702
2703 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
2706 check as some mkfs implementations omit it.
2707
2708 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * docs/grub.texi (Unicode): Mention identifier and space limitations.
2711
2712 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
2715 Add new member volname2.
2716 (grub_jfs_label): Use volname2 if available.
2717
2718 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
2721 over last_mounted as seen in image generated by mkfs.nilfs2.
2722 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
2723
2724 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2725
2726 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
2727 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
2728 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
2729
2730 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
2733 over the sector.
2734
2735 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
2738 subvolume name (by removing a bogus and useless check).
2739
2740 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
2743 sizeof while on it.
2744
2745 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
2748 (grub_scsi_read_capacity10): ... this.
2749 (grub_scsi_read_capacity16): New function.
2750 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
2751 0xffffffff.
2752 Fix off-by-one error.
2753 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
2754 64-bit unsigned.
2755 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
2756 (grub_scsi_read_capacity10): ... this.
2757 (grub_scsi_read_capacity_data): Rename to ...
2758 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
2759 (grub_scsi_read_capacity16): New struct.
2760 (grub_scsi_read_capacity16_data): Likewise.
2761 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
2762 grub_scsi_cmd_read_capacity10.
2763 New command grub_scsi_cmd_read_capacity16.
2764
2765 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 SCSI >2TiB support.
2768
2769 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
2770 (grub_scsi_write16): Likewise.
2771 (grub_scsi_read): Use read16 when necessary.
2772 (grub_scsi_write): Likewise.
2773 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
2774 (grub_scsi_write16): Likewise.
2775 (grub_scsi_cmd_t): Add READ16 and WRITE16.
2776
2777 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 SCSI write support (for usbms mainly).
2780
2781 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
2782 a const pointer.
2783 (grub_scsi_write): Implement.
2784 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
2785
2786 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
2789 variable.
2790
2791 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 * grub-core/lib/posix_wrap/string.h (memchr): New function.
2794
2795 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * po/POTFILES.in: Regenerate.
2798
2799 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
2802 with grub_printf to avoid unnecessary fatal failure.
2803
2804 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
2807 (INT_MAX): Likewise.
2808 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
2809 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
2810 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
2811 (strcpy): Likewise.
2812 (strstr): Likewise.
2813 (strchr): Likewise.
2814 (strncpy): Likewise.
2815 (strcat): Likewise.
2816 (strncat): Likewise.
2817 (strcoll): Likewise.
2818 * include/grub/types.h (GRUB_SHRT_MAX): New define.
2819 (GRUB_INT_MAX): Likewise.
2820
2821 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
2824 unexpected error.
2825 (optimize_utf8): Likewise.
2826 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
2827
2828 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/boot/i386/pc/lnxboot.S: Use
2831 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
2832 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
2833 location.
2834 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
2835 definition.
2836 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
2837
2838 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
2841 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
2842 now to avoid double free.
2843 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
2844 hostdisk.
2845 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
2846 * util/grub-probe.c (escape_of_path): Always return a new copy.
2847 (print_full_name): Escape path.
2848 (probe): Don't call grub_util_devname_to_ofpath on NULL.
2849 Fix hints on abstractions.
2850
2851 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2852
2853 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
2854 Don't add "root" line if no compatibility hont is available.
2855 Suggested by: Seth Goldberg.
2856
2857 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
2860 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
2861 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
2862 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
2863
2864 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
2867
2868 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * util/grub-pe2elf.c (ehdr): Make static.
2871 (shdr): Likewise.
2872 (num_sections): Likewise.
2873 (offset): Likewise.
2874
2875 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2876
2877 Eliminate ofpath limits and possible overflows.
2878
2879 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
2880 (OF_PATH_MAX): Removed.
2881 (MAX_DISK_CAT): New const.
2882 (find_obppath): Use allocated rather than preallocated buffer.
2883 Return result. Argument of_path removed. All users updated.
2884 Add missing fdstat.
2885 (xrealpath): New function.
2886 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
2887 Allocate rather than use preallocated buffer. All users updated.
2888 (__of_path_common): Use allocated rather than preallocatecd buffer.
2889 Return result. Argument of_path removed. All users updated.
2890 (vendor_is_ATA): Read only needed part form the file.
2891 (check_sas): Allocate depending on contents rather than fixed.
2892 (main) [STANDALONE]: Handle NULL result.
2893
2894 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 * grub-core/normal/completion.c (iterate_dev): Close the disk.
2897
2898 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 Cryptodisk write support.
2901
2902 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
2903 (grub_cryptodisk_decrypt): Moved logic to ...
2904 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
2905 (grub_cryptodisk_write): Implement.
2906 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
2907 (grub_util_fd_write): ... this. Make global.
2908 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
2909
2910 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * include/grub/list.h (grub_list_remove): Don't crash if element is
2913 removed twice.
2914
2915 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 Rename ofconsole to console.
2918
2919 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
2920 as sysnonym to console.
2921 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
2922 * grub-core/term/ieee1275/console.c: ... this. All users updated.
2923 Rename grub_ofconsole_ to grub_console_. All users updated
2924 (grub_console_term_output): Rename "ofconsole" to "console".
2925 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
2926 as "console".
2927
2928 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
2931 handling.
2932 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
2933 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
2934 GRUB_DISK_DEVICE_FILE_ID.
2935
2936 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2937
2938 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
2939 and improve performance.
2940
2941 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
2944 missing ieee1275/ prefix on whole disk.
2945
2946 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
2949 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
2950
2951 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
2954
2955 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 Merge common RAID and LVM logic to an abstract diskfilter.
2958 Add LDM support using the same framework.
2959
2960 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
2961 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
2962 (libgrubmods): Remove grub-core/disk/raid.c and
2963 grub-core/partmap/gpt.c.
2964 * grub-core/Makefile.core.def (ldm): New module.
2965 (raid): Renamed to diskfilter. All users updated.
2966 * grub-core/disk/raid.c: Moved to ...
2967 * grub-core/disk/diskfilter.c: ... here.
2968 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
2969 (lv_num): New var.
2970 (find_array): Renamed to ...
2971 (find_lv): ... this. Support multi-LV. Skip nameless LVs
2972 (grub_is_array_readable): Renamed to ...
2973 (grub_is_lv_readable): ... this. Support multinode hierarchy.
2974 (insert_array): New argument id.
2975 (is_node_readable): New function.
2976 (scan_device): Rename to ...
2977 (scan_disk): .. this. Restrict to one disk.
2978 (scan_devices): New function.
2979 (grub_diskfilter_iterate): Support multi-LV.
2980 Skip invisible and nameless LVs.
2981 (grub_diskfilter_memberlist): Support multi-LV.
2982 (grub_diskfilter_read_node): New function.
2983 (grub_raid_read): Most of logic moved to ...
2984 (read_segment): ... here
2985 (read_lv): New function.
2986 (grub_diskfilter_get_vg_by_uuid): New function.
2987 (grub_diskfilter_make_raid): Likewise.
2988 * grub-core/disk/ldm.c: New file.
2989 * grub-core/disk/lvm.c (vg_list): Removed.
2990 (lv_count): Likewise.
2991 (scan_depth): Likewise.
2992 (is_lv_readable): Likewise.
2993 (grub_lvm_getvalue): Advance pointer past the number.
2994 (find_lv): Removed.
2995 (do_lvm_scan): Refactored into ...
2996 (grub_lvm_detect): ... this. Support raid.
2997 (grub_lvm_iterate): Removed.
2998 (grub_lvm_memberlist): Likewise.
2999 (grub_lvm_open): Likewise.
3000 (grub_lvm_close): Likewise.
3001 (read_lv): Likewise.
3002 (read_node): Likewise.
3003 (is_node_readable): Likewise.
3004 (is_lv_readable): Likewise.
3005 (grub_lvm_read): Likewise.
3006 (grub_lvm_write): Likewise.
3007 (grub_lvm_dev): Use diskfilter
3008 (GRUB_MOD_INIT): Likewise.
3009 (GRUB_MOD_FINI): Likewise.
3010 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
3011 new interface.
3012 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
3013 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3014 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
3015 grub_diskfilter_read_node.
3016 Fix a bug with xor.
3017 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
3018 grub_diskfilter_read_node.
3019 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
3020 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
3021 (grub_disk_dev_iterate): Move from here...
3022 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
3023 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
3024 Make global.
3025 (grub_hostdisk_find_partition_start): Likewise.
3026 (grub_hostdisk_os_dev_to_grub_drive): New function.
3027 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
3028 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
3029 * util/getroot.c (make_device_name): ... here.
3030 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
3031 Move to ...
3032 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
3033 * grub-core/kern/emu/hostdisk.c
3034 (convert_system_partition_to_system_disk): Move to ...
3035 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
3036 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
3037 * util/getroot.c (device_is_wholedisk): ... here.
3038 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
3039 * util/getroot.c (find_system_device): ... here.
3040 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
3041 Move to ...
3042 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
3043 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
3044 Move to ...
3045 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
3046 Handle LDM.
3047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
3048 Move to ...
3049 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
3050 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
3051 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
3052 DISKFILTER.
3053 * include/grub/raid.h: Renamed to ...
3054 * include/grub/diskfilter.h: ... this.
3055 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
3056 (GRUB_RAID_LAYOUT_*): Make into array.
3057 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
3058 (grub_diskfilter_vg): New struct.
3059 (grub_diskfilter_pv_id): Likewise.
3060 (grub_raid_member): Removed.
3061 (grub_raid_array): Likewise.
3062 (grub_diskfilter_pv): New struct.
3063 (grub_diskfilter_lv): Likewise.
3064 (grub_diskfilter_segment): Likewise.
3065 (grub_diskfilter_node): Likewise.
3066 (grub_diskfilter_get_vg_by_uuid): New proto.
3067 (grub_raid_register): Inline.
3068 (grub_diskfilter_unregister): Likewise.
3069 (grub_diskfilter_make_raid): New proto.
3070 (grub_diskfilter_vg_register): Likewise.
3071 (grub_diskfilter_read_node): Likewise.
3072 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
3073 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
3074 (grub_util_is_ldm): Likewise.
3075 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
3076 (grub_hostdisk_find_partition_start): Likewise.
3077 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
3078 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
3079 New definition.
3080 (grub_gpt_partition_map_iterate): New proto.
3081 * include/grub/lvm.h (grub_lvm_vg): Removed.
3082 (grub_lvm_pv): Likewise.
3083 (grub_lvm_lv): Likewise.
3084 (grub_lvm_segment): Likewise.
3085 (grub_lvm_node): Likewise.
3086 * util/getroot.c [...]
3087 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
3088 (probe_abstraction): Likewise.
3089 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
3090 (main): Remove dead logic.
3091
3092 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
3093
3094 Simplify root device discover and don't fail when trying to open
3095 incorrect devices.
3096
3097 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
3098 function.
3099 (get_diskname_from_path): Likewise.
3100 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
3101 of iterating.
3102
3103 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
3106
3107 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
3110 pastthe end.
3111
3112 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * util/grub-install.in: Add missing \.
3115 Reported by: gentoofan
3116
3117 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
3120 (direct_read): Use correct compressed size.
3121 (grub_squash_read_data): Likewise.
3122
3123 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * docs/grub.texi (Platform limitations): New section.
3126 (Platform-specific operations): Likewise.
3127 * docs/grub-dev.texi (Porting): Likewise.
3128
3129 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 IEEE1275 disk write support.
3132
3133 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
3134 const void *.
3135 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
3136 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
3137 and seek loginc to ...
3138 (grub_ofdisk_prepare): ... here.
3139 (grub_ofdisk_write): Implement.
3140
3141 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 ARC disk write support.
3144
3145 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
3146 (reopen): New argument writable. All users updated.
3147 Handle required access mode.
3148 (grub_arcdisk_write): Implement.
3149 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
3150 (grub_arc_firmware_vector): Make buffer to write a const buffer.
3151
3152 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
3155 (read_sblock): Don't attempt to read superblocks outside the disk size.
3156
3157 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
3160 first superblock to find the second one when possible.
3161
3162 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * util/grub-install.in: Fix an ARC bug.
3165 Print a warning if no platform-specific setup is available.
3166
3167 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 Use static allocation rather than scratch pointer in reed_solomon.
3170 It decreases its size significantly and avoids a variable in .text.
3171
3172 * grub-core/lib/reed_solomon.c (scratch): Removed.
3173 (chosenstat): New const or static array.
3174 (sigma): Likewise.
3175 (errpot): Likewise.
3176 (errpos): Likewise.
3177 (sy): Likewise.
3178 (mstat): Likewise.
3179 (errvals): Likewise.
3180 (eqstat): Likewise.
3181 (pol_evaluate): Replace x with log_x argument. All users updated.
3182 (syndroms): Removed.
3183 (gauss_solve): Use statically allocated arrays.
3184 (rs_recover): Likewise.
3185 Calculate syndroms directly.
3186 (decode_block): Use statically allocated arrays.
3187 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
3188 (main) [TEST]: Allow -DTEST -DSTANDALONE.
3189
3190 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 Eliminate fixed limit on reed solomon decoder length.
3193
3194 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
3195 rather than hardcoding the address.
3196 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
3197 no_reed_solomon_length.
3198 Move gate_a20 to no-reed-solomon part.
3199 Don't force a particular size of no reed-solomon part.
3200 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
3201 Removed.
3202 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
3203 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
3204
3205 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * grub-core/commands/wildcard.c (match_files): Handle filenames
3208 without explicit device.
3209 (wildcard_expand): Don't add explicit device if not already present.
3210 * tests/grub_script_echo1.in: Add a new expansion test.
3211
3212 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3213
3214 Replace single-linked with double-linked lists. It results in more
3215 compact and more efficient code.
3216
3217 * grub-core/kern/list.c (grub_list_push): Moved from here ...
3218 * include/grub/list.h (grub_list_push): ... to here. Set prev.
3219 (grub_list_remove): Moved from here ...
3220 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
3221 (grub_prio_list_insert): Set prev.
3222 * include/grub/list.h (grub_list): Add prev. All users updated.
3223
3224 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 Handle newer autotools. Add some missing quotes while on it.
3227
3228 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
3229 (pkglib_DATA): Move grub-mkconfig_lib from here ...
3230 (pkgdata_DATA): ... here.
3231 * Makefile.util.def (update-grub_lib): Removed.
3232 * conf/Makefile.common (pkglib_DATA): Removed.
3233 (pkglib_SCRIPTS): Likewise.
3234 (pkgdata_DATA): New variable.
3235 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
3236 needed.
3237 Add missing quotes.
3238 Remove unused variable while on it.
3239 * tests/util/grub-shell.in: Likewise.
3240 * util/grub-install.in: Likewise.
3241 * util/grub-mkconfig.in: Likewise.
3242 * util/grub-mknetdir.in: Likewise.
3243 * util/grub-mkrescue.in: Likewise.
3244 * util/grub-mkstandalone.in: Likewise.
3245 * util/grub.d/00_header.in: Likewise.
3246 * util/grub.d/10_hurd.in: Likewise.
3247 * util/grub.d/10_illumos.in: Likewise.
3248 * util/grub.d/10_kfreebsd.in: Likewise.
3249 * util/grub.d/10_linux.in: Likewise.
3250 * util/grub.d/10_netbsd.in: Likewise.
3251 * util/grub.d/10_windows.in: Likewise.
3252 * util/grub.d/20_linux_xen.in: Likewise.
3253 * util/grub.d/30_os-prober.in: Likewise.
3254 * util/update-grub_lib.in: Removed.
3255
3256 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
3257
3258 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
3259 a workaround for intel problem.
3260
3261 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
3262 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3263 2012-01-23 pfsmorigo
3264
3265 * util/grub-install.in: Support dd'in into PreP partition.
3266 * util/grub-probe.c (probe): Support discovering partition type.
3267 (main): Support -t msdos_parttype.
3268
3269 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3270
3271 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
3272 infinite recursion using counter.
3273 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
3274 init to skip it if the magic check fails.
3275 (dec_stream_header): Init s->crc32.
3276
3277 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3278 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
3279 2012-01-22 Richard Laager <rlaager@wiktel.com>
3280
3281 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
3282 All users updated.
3283 (find_bestub): Determine correct size.
3284 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
3285 (scan_disk): Align the size down.
3286 Call check pool before find_bestub to have ashift.
3287
3288 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
3291 dprintf in no-malloc zone.
3292
3293 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
3294
3295 * configure.ac: Add back in test for limits.h.
3296
3297 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 Support 4K-sector NTFS.
3300
3301 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
3302 (grub_ntfs_data): Remove blocksize.
3303 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
3304 Remove data argument. All users updated.
3305
3306 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
3309 being in .text to avoid dprel references.
3310 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
3311 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
3312 (grub_arch_highmemsize): Likewise.
3313 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
3314 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
3315 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
3316
3317 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
3320
3321 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
3322 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
3323
3324 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
3327 GRUB_UTIL.
3328 (grub_set_datetime_cmos): Likewise.
3329
3330 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 Make XZ compression parameters dependent on target and not host CPU.
3333
3334 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
3335 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
3336
3337 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
3340 set but not used variable.
3341
3342 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3343
3344 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
3345 created when no uuid support is compiled into mkfs.reiser.
3346
3347 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3348
3349 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
3350 (utf8_to_macroman): Do the opposite.
3351 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
3352
3353 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * configure.ac: Refise build qemu_mips w/o unifont.
3356
3357 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 Eliminate grub_min/grub_max prone to overflow usage.
3360
3361 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
3362 (poll_nonroot_hub): Likewise.
3363 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
3364 (grub_affs_label): Likewise.
3365 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
3366 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
3367 (grub_hfs_label): Likewise.
3368 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
3369 * grub-core/fs/zfs/zfs.c (MIN): Remove.
3370 (zap_leaf_array_equal): Use grub_size. Remove MIN.
3371 (zap_leaf_array_get): Likewise.
3372 (dnode_get_path): Likewise.
3373 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
3374 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
3375 * grub-core/script/execute.c (grub_script_break): Likewise.
3376 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
3377 grub_max.
3378 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
3379 * include/grub/misc.h (grub_min): Removed.
3380 (grub_max): Likewise.
3381
3382 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3383
3384 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
3385 direct.inode = 0.
3386
3387 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
3390
3391 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
3394
3395 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
3398 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
3399
3400 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
3403 rather than a hack for grub_strncasemap.
3404
3405 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 Support multiple initrds
3408 Note: part of this was accidently committed in r3739.
3409
3410 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
3411 initrd.
3412 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
3413 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
3414 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3415 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3416 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3417
3418 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
3421 disks with unknown size.
3422 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
3423
3424 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 Remove defines pertaining to arbitrary limits not affecting GRUB
3427 anymore.
3428
3429 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
3430 (EXT2_MAX_SYMLINKCNT): Likewise.
3431 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
3432 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
3433 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
3434 (GRUB_PXE_MAX_BLKSIZE): Likewise.
3435 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
3436 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
3437 (DN_MAX_OBJECT_SHIFT): Likewise.
3438 (DN_MAX_OFFSET_SHIFT): Likewise.
3439 (DN_MAX_OBJECT): Likewise.
3440 (DNODES_PER_LEVEL_SHIFT): Likewise.
3441 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
3442 (SPA_MAXBLOCKSIZE): Likewise.
3443 (SPA_BLOCKSIZES): Likewise.
3444 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
3445 (MZAP_MAX_BLKSZ): Likewise.
3446
3447 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3448
3449 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
3450 handle NULL appropriately.
3451 Remove MIN.
3452
3453 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 Fix efiemu.
3456
3457 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
3458 cpu/types.h.
3459 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
3460 * configure.ac: Fix efiemu check.
3461
3462 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
3465 grub_probe.
3466 Reported by: adamwill
3467
3468 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
3469
3470 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
3471
3472 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 Fix handling of wide characters in gfxterm.
3475
3476 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
3477 (clear_char): Likewise.
3478 (paint_char): Skip code == NULL chars.
3479 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
3480
3481 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * grub-core/normal/charset.c: Move comment to right place.
3484
3485 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
3488 (GRUB_AFFS_FLAG_FFS): Put back where it was.
3489 (grub_affs_mount): Revert the correct version checking.
3490
3491 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * docs/grub.texi (Unicode): Mention several other unsupported features.
3494
3495 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
3498 case statements as compile-time one.
3499 (direct_read): Prevent spurious warnings.
3500 (grub_squash_read_data): Likewise.
3501
3502 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
3503
3504 Various squash4 fixes and LZO and XZ support.
3505
3506 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
3507 Add xzembed source files.
3508 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
3509 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
3510 (grub_squash_inode): New subtype long_dir.
3511 (SQUASH_TYPE_LONG_DIR): New inode type.
3512 (COMPRESSION): New enum.
3513 (XZBUFSIZ): New const.
3514 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
3515 (read_chunk): Use data->decompress.
3516 (zlib_decompress): New function.
3517 (lzo_decompress): Likewise.
3518 (xz_decompress): Likewise.
3519 (squash_mount): Set new data fields.
3520 (grub_squash_iterate_dir): Handle long dir.
3521 (squash_unmount): Free xzdec and xzbuf.
3522 (grub_squash_open): Check ino type.
3523 (direct_read): Stylistic fixes. Use data->decompress.
3524 (grub_squash_read_data): Likewise.
3525 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
3526 (get_byte): Likewise.
3527 (grub_zlib_disk_read): Removed.
3528 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
3529 (GRUB_POSIX_BOOL_DEFINED): New define.
3530 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
3531 * grub-core/lib/xzembed/xz.h: Addmissing includes.
3532 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
3533 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
3534
3535 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 Don't override more informative errors.
3538
3539 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
3540 * grub-core/font/font.c (open_section): Likewise.
3541 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
3542 filename. Don't override errors.
3543 (grub_cmd_openbsd_ramdisk): Don't override errors.
3544 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
3545 (grub_cmd_initrd): Likewise.
3546 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3547 (grub_cmd_initrd): Likewise.
3548 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
3549 (grub_cmd_linux): Likewise.
3550 (grub_cmd_initrd): Likewise.
3551 (grub_cmd_payload): Likewise.
3552 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3553 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
3554 (grub_cmd_module): Likewise.
3555 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3556 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3557 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
3558 (grub_cmd_xnu_mkext): Likewise.
3559 (grub_cmd_xnu_ramdisk): Likewise.
3560 (grub_xnu_check_os_bundle_required): Likewise.
3561 (grub_xnu_load_kext_from_dir): Likewise.
3562 (grub_cmd_xnu_kextdir): Likewise.
3563 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
3564
3565 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
3568 as 1024 in block size field. Found on one of my test images.
3569 Small optimisation while on it.
3570
3571 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
3574 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
3575 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
3576 performance fixes while on it.
3577 (grub_sfs_close): Fix memory leak while on it.
3578 (grub_sfs_label): Convert Latin1 to UTF-8.
3579
3580 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3581
3582 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
3583 space to avoid overflows.
3584 (grub_hfs_label): Convert from macroman to UTF-8.
3585
3586 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
3589
3590 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3591
3592 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
3593
3594 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3595
3596 * unicode: Import Unicode 6.0 data.
3597
3598 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
3601 outside of range.
3602
3603 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 Avoid cutting in the middle of UTF-8 character.
3606
3607 * include/grub/charset.h (grub_getend): New function.
3608 * grub-core/script/function.c (grub_script_function_find): Use
3609 grub_getend.
3610 * grub-core/normal/completion.c (add_completion): Likewise.
3611
3612 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
3615 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
3616 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
3617 (GRUB_UNICODE_TAG_END): Likewise.
3618 (GRUB_UNICODE_LAST_VALID): Likewise.
3619
3620 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
3623 len and make it smaller. All users updated.
3624 * util/import_unicode.py: Put length and not end character.
3625 Check length.
3626
3627 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 Make better Unicode-compliant and unify some UTF-8 code pathes.
3630
3631 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
3632 valid character.
3633 (grub_is_valid_utf8): Use grub_utf8_process.
3634 Check resulting code range.
3635 (grub_utf8_to_ucs4): Use grub_utf8_process.
3636 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
3637 valid character.
3638
3639 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3640
3641 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
3642
3643 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 * docs/grub.texi (Filesystems): Mention AFS.
3646
3647 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * docs/grub.texi (Filesystems): Clarify restrictions.
3650 (Regexp): Mention non-Unicode regexp behaviour.
3651 (Other): Mention non-Unicode matching behaviour.
3652
3653 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3654
3655 Make HFS implementation use MacRoman.
3656
3657 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
3658 (macroman): New const array.
3659 (macroman_to_utf8): New function.
3660 (utf8_to_macroman): Likewise.
3661 (grub_hfs_find_dir): Use utf8_to_macroman.
3662 (grub_hfs_dir): Use macroman_to_utf8.
3663 Set case_insensitive.
3664
3665 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
3668
3669 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 Integrate hints into autogeneration scripts.
3672
3673 * docs/grub.texi (Filesystems): Add a hostdisk example.
3674 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
3675 (grub-probe): Add ofpath.
3676 * gentpl.py: Remove group nosparc64.
3677 * grub-core/commands/search.c (cache_entry): New struct.
3678 (cache): New var.
3679 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
3680 * grub-core/commands/search_wrap.c (options): Add platform-specific
3681 hint options.
3682 (grub_cmd_search): Handle platform-specific hints.
3683 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
3684 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
3685 (grub_util_biosdisk_data): Likewise.
3686 (grub_util_biosdisk_open): Set device_map.
3687 (read_device_map): Handle "" as indication of no map.
3688 Set device_map.
3689 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
3690 (grub_util_biosdisk_get_compatibility_hint): New function.
3691 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
3692 * include/grub/emu/hostdisk.h
3693 (grub_util_biosdisk_get_compatibility_hint): New proto.
3694 * util/grub-install.in: Don't call grub-mkdevicemap.
3695 Add platform-specific hint to load.cfg.
3696 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
3697 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
3698 hints. Set root preliminary to compatibility hint, not to OS name.
3699 * util/grub-probe.c (PRINT_*): Add hints.
3700 (print): Make static.
3701 (escape_of_path): New function.
3702 (guess_bios_drive): Likewise.
3703 (guess_efi_drive): Likewise.
3704 (guess_baremetal_drive): Likewise.
3705 (print_full_name): Likewise.
3706 (probe): Handle hints.
3707 (main): Likewise.
3708 * util/ieee1275/devicemap.c: Removed.
3709 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
3710 updated.
3711 (grub_util_devname_to_ofpath): Return NULL on failure.
3712
3713 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
3714 resource leak.
3715 * util/getroot.c (grub_util_pull_device): Fix memory leak.
3716
3717 * po/POTFILES.in: Regenerated.
3718
3719 Allow purely long options
3720
3721 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
3722 (SHORT_ARG_USAGE): Likewise.
3723 (grub_arg_show_help): Compare opt with help_options.
3724 (parse_option): Receive opt as argument. If makes big simplificatons.
3725 All users updated
3726
3727 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
3730 Restructure to avoid warning.
3731
3732 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * util/grub-install.in: Account for possible escaped comma in device
3735 name.
3736
3737 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
3740 channel.
3741
3742 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
3745 allocation and zero-setting.
3746 (grub_ieee1275_get_devname): Check that alias is complete.
3747
3748 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
3751 unaligned segments.
3752
3753 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3754
3755 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
3756 prefix.
3757 (grub_ofdisk_open): Check and discard ieee1275 prefix.
3758 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3759 Add ieee1275 prefix.
3760
3761 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 * docs/grub.texi (Filesystems): Update.
3764
3765 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 Support odc, newc and bigendian cpio formats.
3768
3769 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
3770 * grub-core/Makefile.core.def (newc): New module.
3771 (odc): Likewise.
3772 (cpio_be): Likewise.
3773 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
3774 (MAGIC): Likewise.
3775 (MAGIC2): Likewise.
3776 (head) [MODE_ODC]: Adapt for the format.
3777 (head) [MODE_NEWC]: Likewise.
3778 (head) [!MODE_*]: Write fields of interest as arrays.
3779 (MAGIC_USTAR): Removed.
3780 (read_number) [MODE_NEWC]: Change to hex.
3781 (read_number) [!MODE_*]: Parse binary arrays.
3782 (grub_cpio_find_file): Factor out the code for better structure and
3783 always use read_number.
3784 (grub_cpio_mount): Use MAGIC and MAGIC2.
3785 (grub_cpio_dir): Exit on first hook non-0 return.
3786 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
3787 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
3788 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
3789 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
3790 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
3791 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
3792 * grub-core/fs/newc.c: New file.
3793 * grub-core/fs/odc.c: Likewise.
3794 * grub-core/fs/cpio_be.c: Likewise.
3795
3796 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 Fix handling of tar numbers occupying the whole field.
3799
3800 * grub-core/fs/cpio.c (read_number): New function.
3801 (grub_cpio_find_file): Use read_number instead of strtoull.
3802
3803 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3804
3805 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
3806 occupying the whole field size.
3807
3808 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
3809
3810 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
3811
3812 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
3815
3816 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
3817
3818 * grub-core/Makefile.core.def (lzma_decompress): Add missing
3819 TARGET_IMG_LDFLAGS.
3820
3821 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3822
3823 * util/getroot.c (ESCAPED_PATH_MAX): New define.
3824 (mountinfo_entry): Increase the field size to take escaping into
3825 account.
3826 (find_root_device_from_libzfs): Add one byte to size of strings for
3827 security.
3828
3829 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
3832 an assert.
3833 * util/grub-setup.c (setup): Likewise.
3834
3835 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3836
3837 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
3838 _LzmaDecodeA.
3839
3840 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 * docs/grub.texi (Internationalisation): New section.
3843
3844 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * docs/grub.texi (Loopback booting): New section.
3847
3848 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
3849
3850 * util/grub-mkstandalone.in: Fix minor typo errors.
3851
3852 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
3855
3856 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
3857 net/icmp.c and net/icmp6.c.
3858 (http): New module.
3859 (priority_queue): Likewise.
3860 * grub-core/io/bufio.c: Rewritten.
3861 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
3862 TYPE_WITH_CONFIGFILE_OPTION.
3863 (legacy_commands): Add bootp and dhcp.
3864 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
3865 (grub_legacy_parse): Likewise.
3866 * grub-core/lib/priority_queue.c: New file.
3867 * grub-core/net/arp.c: Add missing license header.
3868 (arp_find_entry): Removed.
3869 (arp_find_entry): Likewise.
3870 (grub_net_arp_resolve): Rename to ...
3871 (grub_net_arp_send_request): ...this.
3872 (grub_net_arp_receive): New card argument.
3873 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
3874 Set router and DNS server.
3875 (grub_net_configure_by_dhcp_ack): Handle routing information.
3876 (grub_cmd_bootp): Set checksum.
3877 (grub_bootp_init): Remove net_dhcp.
3878 * grub-core/net/dns.c: New file.
3879 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
3880 completion.
3881 (get_card_packet): Handle allocation.
3882 (grub_efinet_findcards): Set mtu.
3883 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
3884 (get_card_packet): Handle allocation.
3885 (emucard): Set mtu.
3886 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
3887 (GRUB_MOD_INIT): Set mtu.
3888 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
3889 mtu.
3890 (get_card_packet): Handle allocation.
3891 (grub_ofnet_findcards): Set mtu.
3892 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
3893 assert.
3894 (grub_net_recv_ethernet_packet): Handle IPv6.
3895 * grub-core/net/http.c: New file.
3896 * grub-core/net/icmp.c: Likewise.
3897 * grub-core/net/icmp6.c: Likewise.
3898 * grub-core/net/ip.c (ip6addr): New type.
3899 (ip6hdr): Likewise.
3900 (reassemble): Likewise.
3901 (cmp): New function.
3902 (reassembles): New variable.
3903 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
3904 (id): New variable.
3905 (send_fragmented): New function.
3906 (grub_net_send_ip_packet): Rename to ...
3907 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
3908 Handle non-UDP.
3909 (grub_net_recv_ip_packets): Rename to ...
3910 (handle_dgram): ... this. Check checksum. Handle non-UDP.
3911 (free_rsm): New function.
3912 (free_old_fragments): Likewise.
3913 (grub_net_recv_ip4_packets): New function.
3914 (grub_net_send_ip6_packet): Likewise.
3915 (grub_net_send_ip_packet): Likewise.
3916 (grub_net_recv_ip6_packets): Likewise.
3917 (grub_net_recv_ip_packets): Likewise.
3918 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
3919 (LINK_LAYER_CACHE_SIZE): New const.
3920 (link_layer_find_entry): New function.
3921 (grub_net_link_layer_add_address): Likewise.
3922 (grub_net_link_layer_resolve_check): Likewise.
3923 (grub_net_link_layer_resolve): Likewise.
3924 (grub_net_ipv6_get_slaac): Likewise.
3925 (grub_net_ipv6_get_link_local): Likewise.
3926 (grub_cmd_ipv6_autoconf): Likewise.
3927 (parse_ip): Handle one number representation.
3928 (parse_ip6): New functoion.
3929 (match_net): Handle IPv6.
3930 (grub_net_resolve_address): Handle IPv6 and DNS.
3931 (grub_net_resolve_net_address): Handle IPv6.
3932 (route_cmp): New function.
3933 (grub_net_route_address): Find best route.
3934 (grub_net_addr_to_str): Handle IPv6.
3935 (grub_net_addr_cmp): New function.
3936 (grub_net_add_addr): Register local route.
3937 (print_net_address): Handle net address.
3938 (grub_net_poll_cards): Retransmit TCP.
3939 (grub_net_poll_cards_idle_real): Likewise.
3940 (have_ahead): New function.
3941 (grub_net_seek_real): Use underlying seek.
3942 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
3943 * grub-core/net/tcp.c: New file.
3944 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
3945 (cmp): New function.
3946 (ack): Likewise.
3947 (tftp_receive): Handle unordered input.
3948 (destroy_pq): New function.
3949 (tftp_close): Close pq.
3950 * grub-core/net/udp.c: Put missing license header.
3951 (grub_net_udp_socket): New function.
3952 (udp_socket_register): Likewise.
3953 (grub_net_udp_close): Likewise.
3954 (grub_net_recv_udp_packet): Check checksum.
3955 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
3956 * include/grub/misc.h (grub_memchr): New function.
3957 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
3958 (grub_net_card_driver): Return buf in recv.
3959 (grub_net_slaac_mac_list): New struct.
3960 (grub_network_level_protocol_id): Add ipv6.
3961 (grub_net_network_level_addr): Likewise.
3962 (grub_net_network_level_net_addr): Likewise.
3963 (grub_net_app_protocol): Add seek.
3964 (grub_net_socket): Removed.
3965 (grub_net_sockets): Likewise.
3966 (grub_net_socket_register): Likewise.
3967 (grub_net_socket_unregister): Likewise.
3968 (FOR_NET_SOCKETS): Likewise.
3969 (grub_net_add_addr): Add const.
3970 (GRUB_NET_BOOTP_*): New enum.
3971 (grub_net_addr_cmp): New proto.
3972 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
3973 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
3974 (grub_net_hwaddr_to_str): NEw proto.
3975 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
3976 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
3977 (grub_dns_init): New proto.
3978 (grub_dns_fini): Likewise.
3979 (grub_net_tcp_retransmit): Likewise.
3980 (grub_net_link_layer_add_address): Likewise.
3981 (grub_net_link_layer_resolve_check): Likewise.
3982 (grub_net_link_layer_resolve): Likewise.
3983 (grub_net_dns_lookup): Likewise.
3984 (grub_net_add_dns_server): Likewise.
3985 (grub_net_remove_dns_server): Likewise.
3986 (GRUB_NET_TRIES): New const.
3987 (GRUB_NET_INTERVAL): Likewise.
3988 * include/grub/net/arp.h: Mostly rewritten.
3989 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
3990 * include/grub/net/ip.h: Mostly rewritten.
3991 * include/grub/net/netbuff.h: Indent.
3992 * include/grub/net/tcp.h: New file.
3993 * include/grub/net/udp.h: Mostly rewritten.
3994 * include/grub/priority_queue.h: New file.
3995 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
3996 (grub_swap_bytes64_compile_time): Likewise.
3997 (grub_cpu_to_be16_compile_time): Likewise.
3998 (grub_cpu_to_be32_compile_time): Likewise.
3999 (grub_cpu_to_be64_compile_time): Likewise.
4000 (grub_be_to_cpu64_compile_time): Likewise.
4001
4002 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
4005 UINT_TO_PTR with cast.
4006
4007 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
4010 don't use them.
4011
4012 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
4015 already there.
4016
4017 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
4020 confusing ipxe.
4021
4022 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
4025 Add missing const attribute.
4026 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
4027 Likewise.
4028 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
4029 Likewise.
4030
4031 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
4034 misaligned access.
4035 (serpent_setkey): Likewise.
4036 (serpent_encrypt_internal): Likewise.
4037 (serpent_decrypt_internal): Likewise.
4038 (serpent_encrypt): Don't put an alignment-increasing cast.
4039 (serpent_decrypt): Likewise.
4040 (serpent_test): Likewise.
4041
4042 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
4045
4046 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
4049
4050 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
4051 grub_addr_t casts.
4052 (PTR_TO_UINT64): Likewise.
4053 (PTR_TO_UINT32): Likewise.
4054
4055 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * util/grub-mkimage.c (generate_image): Decrease the higher limit
4058 because of stack.
4059 * util/grub-setup.c (setup): Don't add redundancy past the higher load
4060 limit.
4061
4062 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4063
4064 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
4065 text_width > available width a bit more gracefully.
4066
4067 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4068
4069 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
4070 current address calculation.
4071
4072 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
4075 stack.
4076 (encode_block): Likewise.
4077
4078 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
4081 certainety.
4082
4083 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
4086 non-RS part to avoid RS messing with GDT.
4087 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
4088 Increase to suit in realmode routines.
4089
4090 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4091
4092 * grub-core/kern/i386/realmode.S: Increase alignment.
4093 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
4094
4095 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4096
4097 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
4098 be deterministic.
4099 (syndroms): Compute 0 syndrom.
4100 (rs_recover): Use 0 syndrom.
4101
4102 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
4105
4106 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
4109 brackets.
4110
4111 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
4114 account.
4115 (get_top_pad): Likewise.
4116 (get_right_pad): Likewise.
4117 (get_bottom_pad): Likewise.
4118
4119 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
4122
4123 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
4126 attribute as the structure isn't guaranteed to be properly aligned.
4127 (grub_efi_pci_device_path): Likewise.
4128 (grub_efi_pccard_device_path): Likewise.
4129 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
4130 specify the size of `memory_type'.
4131 (grub_efi_vendor_device_path): Likewise.
4132 (grub_efi_controller_device_path): Likewise.
4133 (grub_efi_acpi_device_path): Likewise.
4134 (grub_efi_expanded_acpi_device_path): Likewise.
4135 (grub_efi_atapi_device_path): Likewise.
4136 (grub_efi_scsi_device_path): Likewise.
4137 (grub_efi_fibre_channel_device_path): Likewise.
4138 (grub_efi_1394_device_path): Likewise.
4139 (grub_efi_usb_device_path): Likewise.
4140 (grub_efi_usb_class_device_path): Likewise.
4141 (grub_efi_i2o_device_path): Likewise.
4142 (grub_efi_mac_address_device_path): Likewise.
4143 (grub_efi_ipv4_device_path): Likewise.
4144 (grub_efi_ipv6_device_path): Likewise.
4145 (grub_efi_infiniband_device_path): Likewise.
4146 (grub_efi_uart_device_path): Likewise.
4147 (grub_efi_vendor_messaging_device_path): Likewise.
4148 (grub_efi_hard_drive_device_path): Likewise.
4149 (grub_efi_cdrom_device_path): Likewise.
4150 (grub_efi_vendor_media_device_path): Likewise.
4151 (grub_efi_file_path_device_path): Likewise.
4152 (grub_efi_protocol_device_path): Likewise.
4153 (grub_efi_piwg_device_path): Likewise.
4154 (grub_efi_bios_device_path): Likewise.
4155
4156 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
4159 (grub_ucs4_to_utf8_alloc): Likewise.
4160 (grub_ucs4_to_utf8): Likewise.
4161 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
4162 (grub_ucs4_to_utf8_alloc): Likewise.
4163
4164 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 AFFS never uses unicode.
4167
4168 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
4169 (grub_latin1_to_utf8): New inline function.
4170 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
4171
4172 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
4175 overflow.
4176
4177 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
4180 (grub_squash_dirent_header): Likewise.
4181 (read_chunk): Don't double swap.
4182 (grub_squash_iterate_dir): Fix swap sizes.
4183
4184 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4185
4186 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
4187
4188 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4189
4190 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
4191 (grub_hfs_iterate_dir): Likewise.
4192
4193 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4194
4195 Fix video on platforms where unaligned access is forbidden.
4196 Make several optimisations while on it.
4197
4198 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
4199 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
4200 (grub_video_fbblit_replace_32bit_1bit): Likewise.
4201 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
4202 Disable.
4203 (grub_video_fbblit_replace_16bit_1bit):
4204 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
4205 (grub_video_fbblit_replace_8bit_1bit): Likewise.
4206 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
4207 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
4208 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
4209 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
4210 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
4211 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
4212 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
4213 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
4214 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
4215 (grub_video_fbblit_replace_index_RGB888): Likewise.
4216 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
4217 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
4218 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
4219 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
4220 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
4221 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
4222 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
4223 Disable.
4224 (grub_video_fbblit_blend_XXX565_1bit):
4225 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
4226 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
4227 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
4228 void *.
4229 * grub-core/video/fb/video_fb.c (common_blitter)
4230 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
4231 (grub_video_fb_create_render_target_from_pointer)
4232 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
4233 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
4234 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
4235 definition.
4236 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
4237
4238 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
4241 HH22 and HM10 relocations.
4242
4243 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4244
4245 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
4246
4247 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
4250 allocation succeeded.
4251
4252 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4253
4254 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
4255 argument a u8 pointer. All users updated.
4256 Handle unaligned buffers.
4257
4258 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
4261 add_part to workaround compiler bug.
4262
4263 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4264
4265 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
4266
4267 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
4270 Reserve alignment invariants.
4271 (grub_multiboot_load): Likewise.
4272 (retrieve_video_parameters): Likewise.
4273 (grub_multiboot_make_mbi): Likewise.
4274
4275 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
4278 incorrect pointer.
4279
4280 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
4283 (grub_pata_pio_write): Likewise.
4284
4285 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 Add noreturn attributes and remove unreachable code.
4288
4289 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
4290 code.
4291 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
4292 code. Mark as noreturn.
4293 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
4294 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
4295 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
4296 unreachable code.
4297 * grub-core/kern/main.c (grub_main): Mark as noreturn.
4298 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
4299 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
4300 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
4301 * include/grub/kernel.h (grub_main): Mark as noreturn.
4302 * include/grub/reader.h (grub_rescue_run): Likewise.
4303
4304 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
4307 redundant declaration.
4308
4309 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 * include/grub/net.h (grub_net_network_level_interfaces): Remove
4312 redundant declaration.
4313 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
4314
4315 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
4318 to ensure alignment.
4319 (grub_hdparm_print_identify): Make argument uint16 * to ensure
4320 alignment. Ensure tmp alignment.
4321 (grub_cmd_hdparm): Ensure buf alignment.
4322 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
4323 to ensure alignment.
4324 (grub_ata_dumpinfo): Ensure text alignment.
4325 (grub_atapi_identify): Preserve alignment invariant.
4326 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
4327
4328 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
4331 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
4332 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
4333 * include/grub/misc.h (grub_reboot)
4334 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
4335 (grub_halt) [__mips__]: Likewise.
4336
4337 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
4340 Remove redundant declaration.
4341 (grub_mmap_get_post64): Likewise.
4342 (grub_mmap_get_upper): Likewise.
4343 (grub_mmap_get_lower): Likewise.
4344
4345 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
4348 uint32_t * to ensure alignment.
4349 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
4350
4351 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4352
4353 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
4354 uint16_t * to ensure alignment.
4355 (sun_pc_partition_map_iterate): Make `block' a union to ensure
4356 alignment.
4357
4358 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
4361 to ensure alignment.
4362 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
4363
4364 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * grub-core/fs/ntfs.c (u16at): Make into inline function.
4367 Handle unaligned pointers.
4368 (u32at): Likewise.
4369 (u64at): Likewise.
4370 (fixup): Use byte access instead of v16at.
4371 (find_attr): Fix imporper usage of v32at.
4372 (read_data): Likewise.
4373 (list_file): Handle byte-swapping and unaligned strings.
4374 (grub_ntfs_label): Likewise.
4375
4376 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4377
4378 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
4379 as it's not necessarily aligned.
4380
4381 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
4384 redundant declaration.
4385 (grub_serial_init): Likewise.
4386 (grub_terminfo_init): Likewise.
4387
4388 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
4391 function.
4392 (ZAP_HASH_IDX): Likewise.
4393 (ZAP_LEAF_HASH_SHIFT): Likewise.
4394 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
4395 (LEAF_HASH): Likewise.
4396 (ZAP_LEAF_NUMCHUNKS): Likewise.
4397 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
4398 alignment invariants. Return pointer. All users updated.
4399 (ZAP_LEAF_ENTRY): Make into inline function.
4400 (NBBY): Removed.
4401 (xor): LIkewise.
4402 (xor_out): Use grub_crypto_xor.
4403 (dnode_get_path): Use grub_get_unaligned.
4404 (nvlist_find_value): Likewise.
4405 (grub_zfs_nvlist_lookup_uint64): Likewise.
4406 (grub_zfs_nvlist_lookup_string): Likewise.
4407 (get_nvlist_size): Likewise.
4408 (grub_zfs_open): Likewise.
4409 (fill_fs_info): Likewise.
4410 (grub_zfs_dir): Likewise.
4411 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
4412 alignment invariants.
4413 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
4414 necessarily aligned.
4415
4416 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
4419
4420 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
4423 arithmetic to conserve alignment invariants.
4424
4425 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
4428 redundant declaration.
4429 (grub_efiemu_mm_obtain_request): Likewise.
4430 (grub_efiemu_prepare): Likewise.
4431
4432 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
4435 to match types.
4436
4437 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
4440 case of aunaligned recptr.
4441 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
4442 alignment.
4443 (grub_hfsplus_btree_search): Handle unaligned index.
4444
4445 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
4448 to get freetag and skip.
4449
4450 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
4453 array.
4454 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
4455 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
4456
4457 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
4460 name for checksum and fix allocation algorithm.
4461
4462 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * include/grub/types.h (grub_properly_aligned_t): New type.
4465 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
4466 (grub_get_unaligned16): Add explicit casts.
4467 (grub_get_unaligned32): Likewise.
4468 (grub_get_unaligned64): Likewise.
4469 (grub_set_unaligned16): New function.
4470 (grub_set_unaligned32): Likewise.
4471
4472 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
4475
4476 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
4479 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
4480 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
4481
4482 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
4485 conditionals.
4486
4487 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
4490 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
4491
4492 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 Unify and improve RAID and crypto xor.
4495
4496 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
4497 changed to grub_crypto_xor
4498 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
4499 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
4500 Use bigger types when possible.
4501
4502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * grub-core/disk/raid.c (scan_devices): Fix condition.
4505
4506 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
4509 Make name a const ptr.
4510
4511 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
4514 first argument a const pointer.
4515 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4516 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
4517 proto.
4518 (grub_children_iterate): Likewise.
4519 (grub_machine_mmap_iterate): Remove redundant declaration.
4520
4521 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4522
4523 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
4524 (grub_cmd_acpi) [!x86]: Disable EBDA.
4525
4526 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4527
4528 Enable UTF8 in gnulib regexp.
4529
4530 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
4531 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
4532 (isupper): Use grub_isupper.
4533 (isascii): New inline function.
4534 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
4535 * grub-core/lib/posix_wrap/wctype.h: Likewise.
4536 * grub-core/normal/charset.c (grub_utf8_process): New function.
4537 (grub_utf8_to_utf16): Use grub_utf8_process.
4538 (grub_encode_utf8_character): New function.
4539 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
4540 * include/grub/charset.h (grub_utf8_process): New declaration.
4541 (grub_encode_utf8_character): Likewise.
4542 * include/grub/misc.h (grub_islower): New inline function.
4543 (grub_isupper): Likewise.
4544 (grub_strchrsub): Moved down to fix the definitions.
4545
4546 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
4549 specification.
4550
4551 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 * include/grub/loader.h (grub_loader_register_preboot_hook):
4554 Use struct preboot * and not void * for handle. All users updated.
4555 (grub_loader_unregister_preboot_hook): Likewise.
4556
4557 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
4558
4559 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
4560 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
4561 UTF-16-BE. All users updated.
4562 (grub_hfsplus_cmp_catkey): Fix unicode handling.
4563 (grub_hfsplus_iterate_dir): Likewise.
4564 (grub_hfsplus_label): Likewise.
4565
4566 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
4567
4568 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
4569
4570 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
4571
4572 Add missing const qualifiers.
4573
4574 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
4575 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
4576 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
4577 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
4578 (grub_lvm_check_flag): Likewise.
4579 * grub-core/efiemu/i386/coredetect.c
4580 (grub_efiemu_get_default_core_name): Likewise
4581 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
4582 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
4583 * grub-core/fs/ntfs.c (fixup): Likewise.
4584 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
4585 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
4586 (fzap_lookup): Likewise.
4587 (zap_lookup): Likewise.
4588 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
4589 * grub-core/lib/legacy_parse.c (check_option): Likewise.
4590 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
4591 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
4592 (grub_freebsd_add_meta_module): Likewise.
4593 (grub_cmd_freebsd_module): Likewise.
4594 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
4595 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
4596 (grub_xnu_writetree_get_size): Likewise.
4597 (grub_xnu_writetree_toheap_real): Likewise.
4598 (grub_xnu_find_key): Likewise.
4599 (grub_xnu_create_key): Likewise.
4600 (grub_xnu_create_value): Likewise.
4601 (grub_xnu_register_memory): Likewise.
4602 (grub_xnu_check_os_bundle_required): Likewise.
4603 (grub_xnu_scan_dir_for_kexts): Likewise.
4604 (grub_xnu_load_kext_from_dir): Likewise.
4605 * grub-core/normal/color.c (color_list): Likewise.
4606 * grub-core/normal/completion.c (current_word): Likewise.
4607 * grub-core/normal/menu_entry.c (insert_string): Likewise.
4608 * grub-core/term/serial.c (grub_serial_find): Likewise.
4609 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
4610 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
4611 Likewise.
4612 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
4613 (grub_freebsd_add_meta_module): Likewise.
4614 * include/grub/lib/arg.h (grub_arg_option): Likewise.
4615 * include/grub/net.h (grub_net_card_driver): Likewise.
4616 (grub_net_card): Likewise.
4617 (grub_net_app_protocol): Likewise.
4618 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
4619 * include/grub/serial.h (grub_serial_find): Likewise.
4620 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
4621 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
4622 (grub_xnu_create_value): Likewise.
4623 (grub_xnu_find_key): Likewise.
4624 (grub_xnu_scan_dir_for_kexts): Likewise.
4625 (grub_xnu_load_kext_from_dir): Likewise.
4626
4627 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
4628 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
4629 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
4630 Moved from here ...
4631 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
4632
4633 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
4634
4635 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
4636
4637 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
4640 (read_device): Fix size calculation.
4641
4642 2011-11-25 Robert Millan <rmh@gnu.org>
4643
4644 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
4645 (find_root_device_from_libzfs): Add zpool output parser to be used
4646 as fallback when libzfs isn't available.
4647
4648 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
4649
4650 * po/Makefile.in.in: Add missing escape-continuation.
4651
4652 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
4655
4656 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
4659
4660 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
4663
4664 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
4667
4668 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * grub-core/lib/adler32.c: Add missing license specification.
4671 * grub-core/lib/crc64.c: Likewise.
4672 * grub-core/loader/i386/pc/plan9.c: Likewise.
4673 * grub-core/partmap/plan.c: Likewise.
4674
4675 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
4676
4677 Add facility to debug GRUB with gdb under qemu.
4678
4679 * grub-core/gdb_grub.in: New file.
4680 * grub-core/gmodule.pl.in: Likewise.
4681 * grub-core/Makefile.core.def (gmodule.pl): New script.
4682 (gdb_grub): Likewise.
4683
4684 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4685
4686 * util/grub-mount.c (argp_parser): Accept relative pathes.
4687 * util/grub-fstest.c (argp_parser): Likewise.
4688
4689 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4690
4691 Plan9 support.
4692
4693 * Makefile.util.def (libgrubmods): Add
4694 grub-core/partmap/plan.c.
4695 * docs/grub.texi: Notice Plan9 support.
4696 * grub-core/Makefile.core.def (plan9): New module.
4697 (part_plan): Likewise.
4698 * grub-core/loader/i386/pc/plan9.c: New file.
4699 * grub-core/partmap/plan.c: Likewise.
4700 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
4701 define.
4702 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
4703 * include/grub/mm.h (grub_extend_alloc): New inline function.
4704
4705 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 Make Reed-Solomon faster by using power of generator representation of
4708 GF(256)*.
4709
4710 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
4711 (gf_double_t): Likewise.
4712 (gf_invert): Removed.
4713 (gf_powx): New array.
4714 (gf_powx_inv): Likewise.
4715 (scratch): Move higher.
4716 (gf_reduce): Removed.
4717 (gf_mul): Use powx.
4718 (gf_invert): Likewise.
4719 (init_inverts): Replaced with ...
4720 (init_powx): ...this. All users updated.
4721 (pol_evaluate): Replace multiplications with additions.
4722 (rs_encode): Likewise.
4723 (gauss_eliminate): Call gf_invert.
4724 (grub_reed_solomon_add_redundancy): Call init_powx.
4725 (grub_reed_solomon_recover): Call init_powx unconditionally.
4726
4727 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
4730
4731 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
4734 disk->partiton for safety.
4735
4736 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
4739 Fix a memory leak.
4740 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
4741
4742 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4743
4744 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
4745
4746 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
4749
4750 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 Fix spaces handling in proc/self/mountinfo.
4753
4754 * util/getroot.c (unescape): New function.
4755 (grub_find_root_device_from_mountinfo): Use unescape.
4756
4757 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4758
4759 Support ZFS embedding.
4760
4761 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
4762 (grub_zfs_fs): Register grub_zfs_embed.
4763
4764 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4765
4766 Fix MIPS compilation.
4767
4768 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
4769 * include/grub/offsets.h: Rename decompressor fields from
4770 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
4771 * util/grub-mkimage.c (image_targets): Use new names.
4772
4773 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 Defer multiboot device parsing until we're in compressed part.
4776
4777 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
4778 bsd_part. setdevice has fallen into disuse.
4779 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
4780 (bsd_part): Likewise.
4781 (boot_dev): New variable.
4782 (multiboot_trampoline): Don't parse multiboot device.
4783 Pass multiboot device in %edx.
4784 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
4785 grub_boot_device.
4786 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
4787 Likewise.
4788 * grub-core/kern/i386/pc/startup.S: Save edx.
4789 (grub_boot_drive): Removed.
4790 (grub_install_dos_part): Likewise.
4791 (grub_install_bsd_part): Likewise.
4792 (grub_boot_device): New variable.
4793 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
4794 (grub_install_bsd_part): Likewise.
4795 (grub_boot_drive): Likewise.
4796 (grub_boot_device): New variable.
4797 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
4798 Removed.
4799 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
4800 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
4801 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
4802 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
4803 * util/grub-install.in: Remove redundant condition.
4804
4805 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 Fix bug introduced by previous commit.
4808
4809 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
4810
4811 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4812
4813 Use decompressors framework on i386-pc. It increases core size
4814 by 46 bytes but improves compatibility and maintainability.
4815
4816 * grub-core/Makefile.core.def (lzma_decompress): New image.
4817 (kernel): Add i386_pc_ldflags.
4818 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
4819 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
4820 to real_to_prot, prot_to_real and device info.
4821 * include/grub/offsets.h: Renamed decompressor offsets.
4822 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
4823 (image_target_desc): Remove raw_size and rename decompressor fields.
4824 (compress_kernel): Handle lzma.
4825 (generate_image): Handle decompressors on i386-pc.
4826
4827 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * configure.ac: Add -fno-asynchronous-unwind-tables.
4830
4831 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4832
4833 Move assembly code to C by using intwrap. It increases core size
4834 by 88 bytes but improves compatibility and maintainability.
4835
4836 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
4837 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
4838 ... here. Translated to C.
4839 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
4840 * grub-core/term/i386/pc/console.c (grub_console_getkey):
4841 ... here. Translated to C.
4842 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
4843 * grub-core/term/i386/pc/console.c (grub_console_getxy):
4844 ... here. Translated to C.
4845 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
4846 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
4847 ... here. Translated to C.
4848 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
4849 * grub-core/term/i386/pc/console.c (grub_console_cls):
4850 ... here. Translated to C.
4851 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
4852 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
4853 ... here. Translated to C.
4854 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
4855 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
4856 Translated to C.
4857 * grub-core/term/i386/pc/console.c (int10_9): New function.
4858 (grub_console_putchar): Likewise.
4859 * include/grub/i386/pc/console.h: Removed the not anymore shared
4860 functions.
4861
4862 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 Move grub_chainloader_real_boot out of the kernel.
4865
4866 * grub-core/Makefile.am: Remove machine/loader.h.
4867 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
4868 Removed.
4869 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
4870 variable.
4871 (grub_relocator16_keep_a20_enabled): Likewise.
4872 (grub_relocator16_boot): Fill new variables.
4873 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
4874 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
4875 relocator.
4876 (grub_chainloader_unload): Likewise.
4877 (grub_chainloader_cmd): Likewise.
4878 * include/grub/i386/pc/loader.h: Removed.
4879 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
4880 and esi. All initialisers updated.
4881
4882 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4883 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
4884
4885 * Makefile.util.def (grub-mount): New util.
4886 * .bzrignore: Add grub-mount.
4887 * configure.ac: Check for fuse and enable grub-mount if available.
4888 * docs/man/grub-mount.h2m: New file.
4889 * util/grub-mount.c: Likewise.
4890
4891 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * grub-core/commands/efi/fixvideo.c: Gettextize.
4894 * grub-core/commands/hashsum.c: Likewise.
4895 * grub-core/commands/i386/cmostest.c: Likewise.
4896 * grub-core/commands/i386/pc/drivemap.c: Likewise.
4897 * grub-core/commands/i386/pc/lsapm.c: Likewise.
4898 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4899 * grub-core/commands/lsmmap.c: Likewise.
4900 * grub-core/commands/menuentry.c: Likewise.
4901 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4902 * grub-core/commands/setpci.c: Likewise.
4903 * grub-core/loader/i386/bsd.c: Likewise.
4904 * grub-core/loader/i386/linux.c: Likewise.
4905 * util/getroot.c: Likewise.
4906 * util/grub-editenv.c: Likewise.
4907 * util/grub-fstest.c: Likewise.
4908 * util/grub-mkfont.c: Likewise.
4909 * util/grub-mkimage.c: Likewise.
4910 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4911 * util/grub-pe2elf.c: Likewise.
4912 * util/grub-probe.c: Likewise.
4913 * util/grub-setup.c: Likewise.
4914 * util/ieee1275/ofpath.c: Likewise.
4915 * util/misc.c: Likewise.
4916 * util/raid.c: Likewise.
4917
4918 2011-11-11 Robert Millan <rmh@gnu.org>
4919
4920 * util/getroot.c (grub_util_get_geom_abstraction): Remove
4921 __attribute__((unused)) from `os_dev', which *is* being used.
4922
4923 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
4926 forgotten define.
4927 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
4928 GRUB_IA64_DL_GOT_ALIGN.
4929 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
4930 GRUB_IA64_DL_TRAMP_ALIGN.
4931
4932 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 Replace grub_fatal with normal errors in i386 linux loader.
4935
4936 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
4937 (allocate_pages): Check find_efi_mmap_size return value.
4938 (grub_e820_add_region): Return error.
4939 (grub_linux_boot): Check mmap return value.
4940
4941 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * grub-core/commands/acpihalt.c: Gettextized.
4944 * grub-core/commands/cacheinfo.c: Likewise.
4945 * grub-core/commands/cmp.c: Likewise.
4946 * grub-core/commands/efi/loadbios.c: Likewise.
4947 * grub-core/commands/gptsync.c: Likewise.
4948 * grub-core/commands/ieee1275/suspend.c: Likewise.
4949 * grub-core/commands/legacycfg.c: Likewise.
4950 * grub-core/commands/memrw.c: Likewise.
4951 * grub-core/commands/minicmd.c: Likewise.
4952 * grub-core/commands/parttool.c: Likewise.
4953 * grub-core/commands/time.c: Likewise.
4954 * grub-core/commands/videoinfo.c: Likewise.
4955 * grub-core/disk/geli.c: Likewise.
4956 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
4957 * grub-core/disk/luks.c: Likewise.
4958 * grub-core/disk/lvm.c: Likewise.
4959 * grub-core/font/font_cmd.c: Likewise.
4960 * grub-core/fs/zfs/zfscrypt.c: Likewise.
4961 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4962 * grub-core/gfxmenu/view.c: Likewise.
4963 * grub-core/kern/emu/hostdisk.c: Likewise.
4964 * grub-core/kern/emu/main.c: Likewise.
4965 * grub-core/kern/emu/misc.c: Likewise.
4966 * grub-core/kern/emu/mm.c: Likewise.
4967 * grub-core/kern/mips/arc/init.c: Likewise.
4968 * grub-core/kern/mips/loongson/init.c: Likewise.
4969 * grub-core/kern/partition.c: Likewise.
4970 * grub-core/lib/i386/halt.c: Likewise.
4971 * grub-core/lib/mips/arc/reboot.c: Likewise.
4972 * grub-core/lib/mips/loongson/reboot.c: Likewise.
4973 * grub-core/loader/i386/pc/chainloader.c: Likewise.
4974 * grub-core/loader/i386/xnu.c: Likewise.
4975 * grub-core/loader/multiboot.c: Likewise.
4976 * grub-core/net/bootp.c: Likewise.
4977 * grub-core/net/net.c: Likewise.
4978 * grub-core/normal/term.c: Likewise.
4979 * grub-core/partmap/bsdlabel.c: Likewise.
4980 * grub-core/parttool/msdospart.c: Likewise.
4981 * grub-core/term/gfxterm.c: Likewise.
4982 * grub-core/term/terminfo.c: Likewise.
4983 * grub-core/video/i386/pc/vbe.c: Likewise.
4984 * util/grub-menulst2cfg.c: Likewise.
4985 * util/grub-mkdevicemap.c: Likewise.
4986 * util/grub-mklayout.c: Likewise.
4987 * util/grub-mkrelpath.c: Likewise.
4988 * util/grub-script-check.c: Likewise.
4989 * util/ieee1275/grub-ofpathname.c: Likewise.
4990 * util/resolve.c: Likewise.
4991
4992 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 Support %1$d syntax.
4995
4996 * tests/printf_unit_test.c: New file.
4997 * Makefile.util.def (printf_test): New test.
4998 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
4999
5000 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
5003 fix.
5004
5005 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
5008 dprintf.
5009 * grub-core/font/font.c (grub_font_load): Likewise.
5010
5011 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5012
5013 * util/grub-macho2img.c: Add comment concerning gettext.
5014 * grub-core/lib/legacy_parse.c: Likewise.
5015
5016 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
5019 (grub_xvasprintf): Likewise.
5020
5021 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 Add const keyword to grub_env_get and gettextize week days.
5024
5025 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
5026 (grub_read_hook_datetime): Return const char *.
5027 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
5028 updated.
5029 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
5030 Mark for gettext.
5031 (grub_get_weekday_name): Return const char *. Call gettext.
5032 * grub-core/script/argv.c (grub_script_argv_append): Receive const
5033 char * and len as the argument. All users updated.
5034 (grub_script_argv_split_append): Receive const char *.
5035 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
5036 * include/grub/env.h (grub_env_get): Likewise.
5037 (grub_env_read_hook_t): Return const char *.
5038 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
5039 (grub_script_argv_split_append): Likewise.
5040
5041 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5042
5043 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
5044
5045 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
5048 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
5049
5050 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
5053 Fix prototype.
5054
5055 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5056
5057 Fix mips compilation.
5058
5059 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
5060 normal decoder.
5061 (hashes): Use in embed decoder as well (for sizes).
5062 (dec_stream_header): Fix embed decompressor logic.
5063 (dec_stream_footer): Likewise.
5064
5065 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5066
5067 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
5068 an error and not a fatal on unrecognised relocation types.
5069
5070 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5071
5072 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
5073 Issue error rather than printf on unknown arguments.
5074
5075 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
5078 Make buf a const.
5079
5080 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
5083 Fix module name.
5084
5085 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
5088 leftover debug printf.
5089
5090 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
5093
5094 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5095
5096 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
5097 A stylistic fix.
5098
5099 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
5102
5103 2011-11-10 Shea Levy <slevy@tieronedesign.com>
5104
5105 Allow all modules to perform serial IO
5106
5107 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
5108 * include/grub/serial.h (grub_serial_port_configure): New inline
5109 function.
5110 (grub_serial_port_fetch): Likewise.
5111 (grub_serial_port_put): Likewise.
5112 (grub_serial_port_fini): Likewise.
5113 (grub_serial_find): New proto.
5114
5115 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5116
5117 Put symlink at the end of the node and fix a potential
5118 memory corruption.
5119
5120 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
5121 Make symlink into an array.
5122 (set_rockridge): Set have_symlink and alloc_dirents.
5123 (grub_iso9660_read_symlink): Use new layout.
5124 (grub_iso9660_iterate_dir): Fix memory corruption.
5125 Use new layout.
5126 (grub_iso9660_dir): Set have_symlink.
5127 (grub_iso9660_open): Likewise.
5128
5129 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 Remove local keyword.
5132
5133 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
5134 (version_test_gt): Likewise.
5135 (version_find_latest): Likewise.
5136 (gettext_printf): Likewise.
5137 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
5138
5139 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5140
5141 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
5142
5143 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 Fix ZFS memory and resource leaks.
5146
5147 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
5148 All users updated.
5149 Free type on exit.
5150 (fill_vdev_info): New parameter inserted. All users updated.
5151 (check_pool_label): Likewise.
5152 (scan_disk): Likewise.
5153 (scan_devices): Close non-inserted disks.
5154 (fzap_iterate): Free l.
5155 (unmount_device): Free children descripto memory.
5156
5157 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5158
5159 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
5160 argument (access out of bounds).
5161
5162 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5163
5164 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
5165 >= 6 drives.
5166
5167 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
5170 Fix declaration.
5171
5172 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 Fix several memory leaks.
5175
5176 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
5177 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
5178 (grub_cpio_dir): Likewise.
5179 * grub-core/fs/fat.c (grub_fat_label): Likewise.
5180 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
5181 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
5182 (grub_romfs_label): Likewise.
5183 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
5184 (squash_unmount): New function.
5185 (grub_squash_dir): Fix memory leak.
5186 (grub_squash_open): Likewise.
5187 (grub_squash_read): Likewise.
5188 (grub_squash_mtime): Likewise.
5189 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
5190 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
5191 * util/grub-fstest.c (fstest): Likewise.
5192
5193 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
5196 avoid accessing beyond the array.
5197
5198 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
5201
5202 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5203
5204 Several AFFS fixes.
5205
5206 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
5207 (GRUB_AFFS_FLAG_FFS): Removed.
5208 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
5209 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
5210 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
5211 (grub_fshelp_node): Make block 32-bit.
5212 Add block_cache and last_block_cache.
5213 (grub_affs_read_block): Fill and use block cache.
5214 (grub_affs_read_file): Removed.
5215 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
5216 boot block.
5217 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
5218 safety.
5219 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
5220 space.
5221 (grub_affs_close): Free block cache.
5222 (grub_affs_read): Use grub_fshelp_read_file directly.
5223
5224 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
5227 with no error set.
5228
5229 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
5232 used variable.
5233 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
5234 Likewise.
5235
5236 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
5239
5240 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
5241 byteswap when needed.
5242
5243 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5244
5245 Fix FreeBSD compilation.
5246
5247 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
5248 to avoid circular dependency.
5249 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
5250 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
5251 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
5252
5253 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5254
5255 Fix ZFS crypto error types.
5256
5257 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
5258 (grub_gcm_decrypt): Likewise.
5259 (grub_zfs_load_key_real): Fix error code type. Handle possible error
5260 from PBKDF2.
5261
5262 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 Illumos support.
5265
5266 * Makefile.util.def (10_illumos): New script.
5267 * configure.ac: Set COND_HOST_ILLUMOS.
5268 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
5269 Support Illumos calls.
5270 (find_partition_start) [__sun__]: Likewise.
5271 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
5272 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
5273 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
5274 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
5275 device.
5276 * util/grub-probe.c (probe) [__sun__]: Do character check.
5277 * util/grub.d/10_illumos.in: New file.
5278
5279 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5280
5281 Support escaped commas in hostdisk.
5282
5283 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
5284 (find_grub_drive): Use unescape_cmp.
5285 (make_device_name): Escape commas.
5286
5287 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5288
5289 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
5290
5291 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5292
5293 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
5294 variable.
5295
5296 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 Support trampoline jumps on powerpc.
5299
5300 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
5301 __ia64__ path.
5302 (grub_dl_load_segments): Set mod->sz.
5303 (grub_dl_flush_cache): Flush whole space occupied by module, not just
5304 segments.
5305 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
5306 (jump): Likewise.
5307 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
5308 function.
5309 (trampoline): New struct.
5310 (trampoline_template): New const.
5311 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
5312 * include/grub/dl.h (grub_dl): Add sz element.
5313 [__powerpc__]: Follow __ia64__.
5314 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
5315 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
5316 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
5317 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
5318
5319 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 ZFS crypto support.
5322
5323 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
5324 * grub-core/Makefile.core.def (zfscrypt): New module.
5325 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
5326 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
5327 it. All users updated.
5328 (grub_zfs_decrypt): New var.
5329 (grub_zfs_load_key): Likewise.
5330 (zio_checksum_functions): Add SHA256+MAC.
5331 (zio_checksum_verify): Handle incomplete comparison due to MAC.
5332 (zio_read): Handle encrypted blocks.
5333 (zap_verify): Remove incorrect check.
5334 (fzap_iterate): Handle non-standard fzap.
5335 (zap_iterate): Likewise.
5336 (zap_iterate_u64): New function.
5337 (dnode_get_fullpath): Load keys.
5338 * grub-core/fs/zfs/zfscrypt.c: New file.
5339 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
5340 (grub_crypto_ecb_encrypt): Make input const.
5341 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
5342 (grub_crypto_ecb_encrypt): Make input const.
5343 (GRUB_CIPHER_AES): New macro.
5344 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
5345 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
5346 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
5347 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
5348 prefix. All users updated.
5349 (grub_zfs_add_key): New proto.
5350 (grub_zfs_decrypt): Likewise.
5351 (grub_zfs_load_key): Likewise.
5352 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
5353 * util/grub-fstest.c (options): Add -K option.
5354 (argp_parser): Likewise.
5355
5356 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 Support zle compression on ZFS.
5359
5360 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
5361 (decomp_table): Add zle.
5362 * include/grub/zfs/zio.h (zio_compress): Add zle.
5363
5364 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
5365
5366 Support BtrFS embedding.
5367
5368 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
5369 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
5370 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
5371 * util/grub-setup.c (setup): Use fs embedding if available.
5372 Add additional sanity check.
5373
5374 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
5375
5376 * util/grub-install.in: Fix condition for config_opt.
5377
5378 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5379
5380 Support third redundancy strip on raidz3.
5381
5382 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
5383 Return error on singularity. All users updated.
5384 (read_device): Don't stop on 3rd failure on raidz3.
5385
5386 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 Support case-insensitive ZFS subvolumes.
5389
5390 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
5391 All users updated.
5392 (zap_hash): Likewise.
5393 (name_cmp): New function.
5394 (zap_leaf_array_equal): New parameter case_insensitive.
5395 All users updated.
5396 (zap_leaf_lookup): Likewise.
5397 (fzap_lookup): Likewise.
5398 (zap_lookup): Likewise.
5399 (dnode_get_path): New parameter case_insensitive. Retrieve case
5400 sensitiviness of a volume. All users updated.
5401 (dnode_get_fullpath): New parameter case_insensitive.
5402 All users updated.
5403 (grub_zfs_dir): Set info.case_insensitiveness.
5404
5405 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 Support second redundancy strip on raidz(2,3).
5408
5409 * grub-core/fs/zfs/zfs.c (powx): New array.
5410 (powx_inv): Likewise.
5411 (poly): New const.
5412 (xor_out): New function.
5413 (gf_mul): Likewise.
5414 (recovery): Likewise.
5415 (read_device): Use second redundancy strip.
5416
5417 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5418
5419 Use a power of generator representation of GF(256) multiplication group
5420 to save space time and complexity.
5421
5422 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
5423 (raid6_table2): Likewise.
5424 (powx): New array.
5425 (powx_inv): Likewise.
5426 (poly): New const.
5427 (grub_raid_block_mul): Replace with ...
5428 (grub_raid_block_mulx): ...this.
5429 (grub_raid6_init_table): Rewritten.
5430 (grub_raid6_recover): Use power of generator representation.
5431
5432 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5433
5434 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
5435 for the right device.
5436
5437 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5438
5439 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
5440 expected by grub-mkimage and it's more clear since there is no implicit
5441 padding.
5442
5443 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5444
5445 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
5446 disk.
5447 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
5448
5449 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
5450
5451 * util/grub-mkrescue.in: Fix handling xorriso option.
5452
5453 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5454
5455 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
5456 NULL.
5457
5458 2011-11-03 crocket <crockabiscuit@gmail.com>
5459
5460 * util/grub.d/10_linux.in: Add Slackware initrd naming.
5461
5462 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5463
5464 XZ CRC64 and SHA256 support.
5465
5466 * Makefile.util.def (libgrubmods): Add crc64.c.
5467 * grub-core/Makefile.core.def (crc64): New module.
5468 * grub-core/lib/crc64.c: New file.
5469 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
5470 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
5471 Fix the type.
5472 (MAX_HASH_SIZE): New define.
5473 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
5474 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
5475 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
5476 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
5477 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
5478 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
5479 Handle non-crc32 hashes.
5480 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
5481 (dec_stream_header): Handle non-crc32 hashes.
5482 (dec_stream_footer): Likewise.
5483 (dec_block_header): Likewise.
5484 (dec_main): Likewise.
5485 (xz_dec_init): Likewise.
5486 (xz_dec_reset): Likewise.
5487 (xz_dec_end): Likewise.
5488 * util/import_gcry.py: Add CRC64 line.
5489
5490 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
5493 as well.
5494
5495 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 Make reiserfs label retrieval similar to other *_label functions.
5498
5499 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
5500 (REISERFS_MAX_LABEL_LENGTH): Removed.
5501 (REISERFS_LABEL_OFFSET): Likewise.
5502 (grub_reiserfs_label): Rewritten.
5503
5504 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
5507 field.
5508
5509 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5510
5511 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
5512
5513 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
5516 drive failure on both raidz and raidz2.
5517
5518 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 Fix RAIDZ(2) for >= 5 devices.
5521
5522 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
5523 asize argument. All users updated.
5524
5525 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 Fix RAIDZ(2).
5528
5529 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
5530 (fill_vdev_info_real): Set ashift.
5531 (read_device): Rewrite RAIDZ part based on reverse engineering.
5532
5533 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
5536 don't report potentially unavialiable fields in debug output.
5537 (find_path): Fix double-free and memory leak.
5538
5539 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 Read label on UFS1.
5542
5543 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
5544 (grub_ufs_fs): Always set .label.
5545
5546 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 Use shifts in UFS.
5549
5550 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
5551 (grub_ufs_data): New field log2_blksz.
5552 (grub_ufs_read_file): Use shifts.
5553 (grub_ufs_mount): Check block size and logarithm it.
5554
5555 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
5556
5557 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
5558 long symlinks.
5559
5560 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5561
5562 Handle symlinks and long names on tar and cpio.
5563
5564 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
5565 (ATTR_FILE): Likewise.
5566 (ATTR_DIR): Likewise.
5567 (ATTR_LNK): Likewise.
5568 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
5569 (grub_cpio_find_file): Fill mode, handle linkname field as well as
5570 L and K entries.
5571 (grub_cpio_mount): Zero-fill data.
5572 (handle_symlink): New function.
5573 (grub_cpio_dir): Handle symlinks.
5574 (grub_cpio_open): Likewise.
5575 (grub_cpio_close) [MODE_USTAR]: Free linkname.
5576
5577 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 Fix iso9660 filename limitations and fix memory leaks.
5580
5581 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
5582 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
5583
5584 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 Fix JFS file name length limitations.
5587
5588 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
5589 (grub_jfs_diropen): Fix maximum filename length.
5590 (grub_jfs_getent): Fix filename length.
5591 (grub_jfs_lookup_symlink): Fix size checks.
5592
5593 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
5596 string.
5597
5598 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5599
5600 Leverage BFS implementation to read AFS.
5601
5602 * Makefile.util.def (libgrubmods): Add afs.c.
5603 * grub-core/Makefile.core.def (afs): New module
5604 * grub-core/fs/afs.c: New file.
5605 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
5606
5607 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5608
5609 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
5610
5611 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * grub-core/fs/bfs.c: Run indent.
5614
5615 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 BFS implementation based on the specification.
5618
5619 * grub-core/fs/bfs.c: New file.
5620 * Makefile.util.def (libgrubmods): Add bfs.c.
5621 * grub-core/Makefile.core.def (bfs): New module.
5622
5623 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 * util/grub-fstest.c (cmd_cp): Clarify error message.
5626 (cmd_cmp): Likewise.
5627
5628 2011-10-30 Yves Blusseau <blusseau@zetam.org>
5629
5630 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
5631 and befs_be.
5632
5633 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
5634
5635 Remove afs and befs because of copyright problem.
5636
5637 * grub-core/fs/afs.c: Removed.
5638 * grub-core/fs/afs_be.c: Removed.
5639 * grub-core/fs/befs.c: Removed.
5640 * grub-core/fs/befs_be.c: Removed.
5641 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
5642 * grub-core/Makefile.core.def (afs): Removed.
5643 (afs_be): Likewise.
5644 (befs): Likewise.
5645 (befs_be): Likewise.
5646
5647 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 Prefer rockridge over Joliet.
5650
5651 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
5652 to ...
5653 (set_rockridge): ... here.
5654 (grub_iso9660_mount): Check rockridge on the primary label when
5655 discovering. Ignore Joliet if Rockridge is present.
5656
5657 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5658
5659 Use shifts in nilfs2.
5660
5661 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
5662 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
5663 (grub_nilfs2_palloc_entries_per_group): Replace with ...
5664 (grub_nilfs2_log_palloc_entries_per_group): ... this.
5665 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
5666 (grub_nilfs2_entries_per_block): Replaced with ...
5667 (grub_nilfs2_log_entries_per_block_log): ... this.
5668 (grub_nilfs2_blocks_per_group): Replaced with ...
5669 (grub_nilfs2_blocks_per_group_log): ... this.
5670 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
5671 (grub_nilfs2_blocks_per_desc_block_log): ... this.
5672 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
5673 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
5674 (grub_nilfs2_palloc_entry_offset): Replaced ...
5675 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
5676 (grub_nilfs2_dat_translate): Use shifts.
5677 (grub_nilfs2_read_inode): Likewise.
5678 (GRUB_MOD_INIT): Ensure that logs are correct.
5679
5680 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5681
5682 Use shifts in minix filesystem.
5683
5684 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
5685 (GRUB_MINIX_ZONE2SECT): Likewise.
5686 (grub_minix_data): Replace block_size with log_block_size.
5687 (grub_minix_read_file): Use shifts.
5688 (grub_minix_mount): Check block size and take a logarithm.
5689
5690 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 Use shifts in squash4.
5693
5694 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
5695 (squash_mount): Check block size and take logarithm.
5696 (direct_read): Use shifts.
5697
5698 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5699
5700 Correct befs block counting logic.
5701
5702 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
5703 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
5704 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
5705 (grub_afs_read_inode): Use block_shift.
5706 (RANGE_SHIFT): New definition.
5707 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
5708 unexpected conditions, use shifts and appropriate types.
5709 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
5710
5711 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 * grub-core/disk/raid.c (scan_devices): Check partition.
5714 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
5715
5716 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 Support BFS (befs) UUID.
5719
5720 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
5721 (grub_afs_small_data_element_header): New struct.
5722 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
5723 (grub_afs_read_attribute) [MODE_BFS]: New function.
5724 (grub_afs_iterate_dir): Allocate for complete inode.
5725 (grub_afs_mount): Likewise.
5726 (grub_afs_uuid) [MODE_BFS]: New function.
5727 (grub_afs_fs) [MODE_BFS]: Add .uuid.
5728
5729 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
5730
5731 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
5732 (zfs_unmount): Fix memory leak.
5733
5734 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 Support NTFS reparse points.
5737
5738 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
5739 (symlink_descriptor): New struct.
5740 (grub_ntfs_read_symlink): New function.
5741 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
5742 (grub_ntfs_open): Likewise.
5743
5744 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5745
5746 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
5747
5748 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5749
5750 fstest xnu_uuid subcommand.
5751
5752 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
5753 grub-core/commands/xnu_uuid.c.
5754 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
5755 (fstest): Handle xnu_uuid.
5756 (options): Document xnu_uuid.
5757 (argp_parser): Parse xnu_uuid.
5758
5759 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
5762 -l argument. Add newline at the end if printing.
5763 (GRUB_MOD_INIT): Document -l.
5764
5765 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
5768
5769 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 ZFS multi-device and version 33 support.
5772
5773 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
5774 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
5775 (grub_zfs_data): Add multidev-ice-related fields.
5776 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
5777 (dva_get_offset): Make dva const.
5778 (zfs_fetch_nvlist): New function.
5779 (fill_vdev_info_real): Likewise.
5780 (fill_vdev_info): Likewise.
5781 (check_pool_label): Likewise.
5782 (scan_disk): Likewise.
5783 (scan_devices): Likewise.
5784 (read_device): Likewise.
5785 (read_dva): Likewise.
5786 (zio_read_gang): Use read_dva.
5787 (zio_read_data): Likewise.
5788 (zap_leaf_lookup): Add missing endian conversion.
5789 (zap_verify): Add missing endian conversion. All users updated.
5790 (fzap_lookup): Likewise.
5791 (fzap_iterate): Likewise.
5792 (dnode_get_path): Handle SA bonus.
5793 (nvlist_find_value): Make input const. All users updated.
5794 (unmount_device): New function.
5795 (zfs_unmount): Use unmount_device.
5796 (zfs_mount): Use scan_disk.
5797 (zfs_mtime): New function.
5798 (grub_zfs_open): Handle system attributes.
5799 (fill_fs_info): Likewise.
5800 (grub_zfs_dir): Likewise.
5801 (grub_zfs_fs): Add mtime.
5802 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
5803 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
5804 (SA_MTIME_OFFSET): Likewise.
5805 (SA_SYMLINK_OFFSET): Likewise.
5806 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
5807 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
5808 (fstest): Support zfsinfo.
5809 (argp_parser): Likewise.
5810
5811 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
5814 error.
5815
5816 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 ZFS fixes.
5819
5820 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
5821 sharing the same block. Iterate over correct number of indices.
5822 (dnode_get_path): Handle symlinks correctly.
5823
5824 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
5827
5828 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 Read label on HFS+.
5831
5832 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
5833 (grub_hfsplus_btree_search): Fix types.
5834 (grub_hfsplus_label): Implement.
5835
5836 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
5839
5840 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5841
5842 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
5843
5844 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5845
5846 Fix symlink handling on iso9660.
5847
5848 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
5849 All users updated.
5850 (grub_iso9660_susp_iterate): Accept zero-size iterate.
5851 (grub_iso9660_read_symlink): Moved most of code ...
5852 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
5853
5854 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5857 Use union to avoid breaking strict-aliasing rules.
5858
5859 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 Support multi-extent iso files.
5862
5863 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
5864 Add node.
5865 (grub_fshelp_node): Revamp. All users updated.
5866 (FLAG_*): New enum.
5867 (read_node): New function.
5868 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
5869 All users updated.
5870 (grub_iso9660_mount): Don't attempt to read sua when there is none.
5871 (get_node_size): New function.
5872 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
5873 entries.
5874 Fix memory leak on . and ..
5875 (grub_iso9660_read): Use read_node.
5876 (grub_iso9660_close): Free node.
5877
5878 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5879
5880 Fix tar 4G limit and handle paths containing dot.
5881
5882 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
5883 (canonicalize): New function.
5884 (grub_cpio_find_file): Use canonicalize. Store offs in
5885 grub_disk_addr_t.
5886 (grub_cpio_dir): Use grub_disk_addr_t.
5887 (grub_cpio_open): Likewise.
5888
5889 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5890
5891 Fix handling of uncompressed blocks on squashfs and break 4G limit.
5892
5893 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
5894 unused flags.
5895 (grub_squash_inode): Add long_file and block_size.
5896 (grub_squash_cache_inode): New struct.
5897 (grub_squash_dirent): Make types into enum.
5898 (SQUASH_TYPE_LONG_REGULAR): New type.
5899 (grub_squash_frag_desc): Add field size.
5900 (SQUASH_BLOCK_FLAGS): New enum.
5901 (grub_squash_data): Use grub_squash_cache_inode.
5902 (grub_fshelp_node): Make ino_chunk 64-bit.
5903 (read_chunk): Minor argument change. All users updated.
5904 (squash_mount): Use correct le_to_cpu.
5905 (grub_squash_open): Handle LONG_REGULAR.
5906 (direct_read): New function.
5907 (grub_squash_read_data): Handle blocks correctly.
5908
5909 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5910
5911 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
5912
5913 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
5916
5917 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 Fix 2G limit on ZFS.
5920
5921 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
5922 types.
5923 (uberblock_verify): Likewise.
5924 (dmu_read): Likewise.
5925 (grub_zfs_read): Likewise. Remove invalid cast.
5926
5927 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
5930 (grub_jfs_blkno): Fix incorrect shift.
5931 (grub_jfs_read_file): Use more appropriate types.
5932
5933 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5934
5935 Support triple indirect on minix2 and minix3.
5936
5937 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
5938 Declare triple_indir_zone.
5939 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
5940 indirect.
5941
5942 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5943
5944 Minix FS fixes.
5945
5946 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
5947 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
5948 Rename ctime to mtime. All users updated.
5949 (grub_minix_get_file_block): Fix types and double indirect computations.
5950
5951 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
5954 if no label is found.
5955 (grub_fat_iterate_dir): Fix file size type.
5956 (grub_fat_iterate_dir): Likewise.
5957
5958 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
5961 save some space.
5962 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5963 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5964
5965 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
5968
5969 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * util/import_gcry.py: Accept space between # and include.
5972
5973 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
5976
5977 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 Fine grainely disable warnings on lexer. Remove Wno-error on it.
5980
5981 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
5982 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
5983 yylex_strncpy.
5984 * grub-core/script/yylex.l: Add fine-grained #pragma.
5985
5986 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
5989 New inline function.
5990 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
5991 Likewise.
5992 (memset) [GRUB_UTIL]: Likewise.
5993 (memcmp) [GRUB_UTIL]: Likewise.
5994
5995 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
5998 inline function rather than a define.
5999
6000 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6001
6002 * util/grub-setup.c: Add missing include.
6003
6004 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6005
6006 * util/ieee1275/grub-ofpathname.c: Add missing include.
6007
6008 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
6011 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
6012 Likewise.
6013
6014 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6015
6016 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
6017 grub_memcmp usage.
6018
6019 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6020
6021 * util/grub-install.in: Add datarootdir as per automake manual
6022 suggestion.
6023 * util/grub-mknetdir.in: Likewise.
6024
6025 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
6028 suggestion.
6029 * util/grub.d/10_kfreebsd.in: Likewise.
6030 * util/grub.d/10_linux.in: Likewise.
6031 * util/grub.d/10_netbsd.in: Likewise.
6032 * util/grub.d/10_windows.in: Likewise.
6033 * util/grub.d/20_linux_xen.in: Likewise.
6034
6035 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
6036
6037 Remove redundant grub_kernel_image_size.
6038
6039 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
6040 _edata and _start.
6041 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
6042 the small code. It moves it only by few bytes but simplifies the code.
6043 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
6044 _start.
6045 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
6046 (grub_kernel_image_size): Removed.
6047 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
6048 (grub_kernel_image_size): Removed.
6049 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
6050 compiled with Apple toolchain.
6051 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
6052 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
6053 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
6054 (grub_total_module_size): Likewise.
6055 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
6056 Removed.
6057 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
6058 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
6059 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
6060 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
6061 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
6062 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
6063 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
6064 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
6065 Removed.
6066 (grub_total_module_size): Removed.
6067 * util/grub-mkimage.c (image_target_desc): Remove image_size.
6068 (image_targets): Likewise.
6069 Set .compressed_size to no field on sparc.
6070 (generate_image): Remove kernel_image_size handling.
6071
6072 2011-10-19 Szymon Janc <szymon@janc.net.pl>
6073
6074 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
6075 NULL pointer dereference.
6076
6077 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6078
6079 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
6080 done with a dedicated section.
6081
6082 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
6083 Ensure the correct position of boot_path.
6084 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
6085 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
6086 other fields.
6087 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
6088 * include/grub/boot.h: Removed. All references removed.
6089 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
6090 Removed.
6091 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
6092
6093 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
6096 name.
6097
6098 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
6101
6102 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6105 Don't add the bogus brackets.
6106
6107 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 ExFAT support.
6110
6111 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
6112 * grub-core/Makefile.core.def (exfat): New module.
6113 * grub-core/fs/exfat.c: New file.
6114 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
6115 (GRUB_FAT_ATTR_*): Make into an enum.
6116 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
6117 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
6118 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
6119 (GRUB_FAT_MAXFILE): Removed.
6120 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
6121 (grub_current_fat_bpb_t): New type.
6122 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
6123 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
6124 (grub_fat_dir_node_t): New type.
6125 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
6126 (fat_log2) [MODE_EXFAT]: Removed.
6127 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
6128 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
6129 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
6130 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
6131 (grub_fat_label) [MODE_EXFAT]: New function.
6132 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
6133 reserved_first_sector to 0.
6134
6135 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 Move grub_reboot out of the kernel.
6138
6139 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
6140 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
6141 * grub-core/lib/efi/reboot.c: ... here.
6142 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
6143 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
6144 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
6145 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
6146 * grub-core/lib/i386/reboot_trampoline.S: ... here.
6147 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
6148 * grub-core/lib/ieee1275/reboot.c: ... here.
6149 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
6150 * grub-core/lib/mips/arc/reboot.c: ... here.
6151 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
6152 * grub-core/lib/mips/loongson/reboot.c: ...here.
6153 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
6154 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
6155 * include/grub/emu/misc.h (grub_reboot): New function declaration.
6156 * include/grub/i386/reboot.h: New file.
6157 * include/grub/mips/loongson/ec.h: Fix includes.
6158 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
6159 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
6160 * grub-core/lib/i386/reboot.c: New file.
6161
6162 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
6163
6164 Make grub_prefix into module to fix the arbitrary limit and save
6165 some space.
6166
6167 * grub-core/kern/emu/main.c (grub_prefix): Removed.
6168 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
6169 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
6170 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
6171 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
6172 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
6173 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
6174 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
6175 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
6176 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
6177 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
6178 * include/grub/ia64/efi/kernel.h: Removed.
6179 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
6180 (grub_prefix): Removed.
6181 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
6182 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
6183 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
6184 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
6185 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
6186 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
6187 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
6188 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
6189 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
6190 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
6191 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
6192 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
6193 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
6194 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
6195 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
6196 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
6197 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
6198 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
6199 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
6200 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
6201 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
6202 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
6203 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
6204 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
6205 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
6206 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
6207 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
6208 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
6209 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
6210 from module.
6211 * util/grub-mkimage.c (image_target_desc): Removed prefix and
6212 prefix_end.
6213 (image_targets): Likewise.
6214 (generate_image): Put prefix as a module.
6215
6216 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 Replace grub_module_iterate with FOR_MODULES.
6219
6220 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
6221 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
6222 (grub_efi_modules_addr): ...this.
6223 * grub-core/kern/efi/init.c (grub_modbase): New variable.
6224 (grub_efi_init): Set grub_modbase.
6225 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
6226 (grub_modbase): New variable.
6227 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
6228 (grub_modbase): New variable.
6229 (grub_machine_init): Set grub_modbase.
6230 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
6231 (grub_modbase): New variable.
6232 (grub_machine_init): Set grub_modbase.
6233 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
6234 (grub_modbase): New variable.
6235 (grub_machine_init): Set grub_modbase.
6236 * grub-core/kern/main.c (grub_module_iterate): Remove.
6237 (grub_modules_get_end): Use grub_modbase.
6238 (grub_load_modules): Use FOR_MODULES.
6239 (grub_load_config): Likewise.
6240 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
6241 (grub_modbase): New variable.
6242 (grub_machine_init): Set grub_modbase.
6243 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
6244 (grub_modbase): New variable.
6245 (grub_machine_init): Set grub_modbase.
6246 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
6247 Removed.
6248 (grub_modbase): New variable.
6249 (grub_machine_init): Set grub_modbase.
6250 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
6251 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
6252 (grub_module_iterate): Likewise.
6253 (grub_modbase): New variable declaration.
6254 (FOR_MODULES): New macro.
6255
6256 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 * configure.ac: Check for __ctzdi2 and __ctzsi2.
6259 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
6260
6261 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 Fix few obvious type discrepancies.
6264
6265 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
6266 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
6267 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
6268 variable.
6269 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
6270 and connected types.
6271 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
6272 offset.
6273 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
6274 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
6275 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
6276 and connected types.
6277
6278 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 Fix python 3.x incompatibilities.
6281
6282 * gentpl.py: Put brackets around print strings.
6283 * util/import_gcry.py: Open explicitly as utf-8.
6284 Use in instead of has_key.
6285
6286 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
6289 (GRUB_XFS_INO_AGBITS): Make into inline function.
6290 (GRUB_XFS_INO_INOINAG): Likewise.
6291 (GRUB_XFS_INO_AG): Likewise.
6292 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
6293 (GRUB_XFS_EXTENT_OFFSET): Likewise.
6294 (GRUB_XFS_EXTENT_BLOCK): Likewise.
6295 (GRUB_XFS_EXTENT_SIZE): Likewise.
6296 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
6297 (GRUB_XFS_NEXT_DIRENT): Likewise.
6298 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
6299 (grub_xfs_read_file): Fix offset type.
6300
6301 2011-10-15 Robert Millan <rmh@gnu.org>
6302
6303 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
6304
6305 2011-10-15 Robert Millan <rmh@gnu.org>
6306
6307 Fix build problem on FreeBSD and GNU/kFreeBSD.
6308
6309 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
6310
6311 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6312
6313 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
6314
6315 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
6316 types.
6317 (grub_hfsplus_btree_recoffset): Likewise.
6318 (grub_hfsplus_btree_recptr): Likewise.
6319 (grub_hfsplus_find_block): Likewise.
6320 (grub_hfsplus_btree_search): Likewise.
6321 (grub_hfsplus_read_block): Likewise.
6322 (grub_hfsplus_read_file): Likewise.
6323 (grub_hfsplus_mount): Likewise.
6324 (grub_hfsplus_btree_iterate_node): Likewise.
6325 (grub_hfsplus_btree_search): Likewise.
6326 (grub_hfsplus_iterate_dir): Likewise.
6327 (grub_hfsplus_read): A small code simplification.
6328
6329 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * grub-core/kern/emu/hostdisk.c
6332 (convert_system_partition_to_system_disk): Don't assume that children
6333 of mapper nodes are mapper nodes.
6334
6335 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
6338 * include/grub/misc.h (grub_isxdigit): New function.
6339 * grub-core/video/colors.c (my_isxdigit): Removed. All users
6340 switched to grub_isxdigit.
6341 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
6342 number starting with a letter.
6343
6344 2011-10-09 Robert Millan <rmh@gnu.org>
6345
6346 LVM support for FreeBSD and GNU/kFreeBSD.
6347
6348 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
6349 GNU/kFreeBSD.
6350 (LVM_DEV_MAPPER_STRING): Move from here ...
6351 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
6352 * util/getroot.c: Include `<grub/util/lvm.h>'.
6353 (grub_util_get_dev_abstraction): Enable
6354 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
6355 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
6356 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
6357 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
6358 support it.
6359 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
6360 GNU/kFreeBSD.
6361 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
6362 when LVM abstraction is required for ${GRUB_DEVICE}.
6363
6364 2011-10-06 Szymon Janc <szymon@janc.net.pl>
6365
6366 Add support for LZO compression in GRUB:
6367 - import of minilzo library,
6368 - LZO decompression for btrfs,
6369 - lzop files decompression.
6370
6371 * grub-core/io/lzopio.c: New file.
6372 * grub-core/lib/adler32.c: Likewise.
6373 * grub-core/lib/minilzo/lzoconf.h: Likewise.
6374 * grub-core/lib/minilzo/lzodefs.h: Likewise.
6375 * grub-core/lib/minilzo/minilzo.c: Likewise.
6376 * grub-core/lib/minilzo/minilzo.h: Likewise.
6377 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
6378 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
6379 grub-core/lib/minilzo/minilzo.c to common.
6380 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
6381 cflags in cppflags.
6382 * grub-core/Makefile.core.def (btrfs): Likewise.
6383 * grub-core/Makefile.core.def (lzopio): New module.
6384 (adler32): Likewise.
6385 * grub-core/fs/btrfs.c: Include minilzo.h.
6386 (GRUB_BTRFS_COMPRESSION_LZO): New define.
6387 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
6388 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
6389 (grub_btrfs_lzo_decompress): New function.
6390 (grub_btrfs_extent_read): Add support for LZO compression type.
6391 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
6392 (GRUB_USHRT_MAX): Likewise.
6393 (GRUB_UINT_MAX): Likewise.
6394 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
6395 (UINT_MAX): Likewise.
6396 (CHAR_BIT): Likewise.
6397 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
6398 grub-core/lib/posix_wrap/limits.h
6399 (UCHAR_MAX): Likewise.
6400 * include/grub/file.h (grub_file_filter_id): New compression filter
6401 GRUB_FILE_FILTER_LZOPIO.
6402 * include/grub/file.h (grub_file_filter_id): Set
6403 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
6404 * include/grub/types.h (grub_get_unaligned16): New function.
6405 (grub_get_unaligned32): Likewise.
6406 (grub_get_unaligned64): Likewise.
6407 * util/import_gcry.py (cryptolist): Add adler32.
6408
6409 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
6412 in perspective decreases the complexity of build system and fixes
6413 compilation right now.
6414
6415 2011-10-01 Ales Nesrsta <starous@volny.cz>
6416
6417 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
6418 (fixed problem related to using UHCI with coreboot).
6419
6420 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
6421
6422 * gentpl.py: Use Autogen macros so that the output template file
6423 (Makefile.tpl) size is reduced.
6424
6425 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
6426
6427 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
6428 extra_dist.
6429
6430 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
6431
6432 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
6433 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
6434
6435 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
6436
6437 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
6438 _fullpath.
6439
6440 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
6441
6442 Remove extra declaration of sleep for mingw32.
6443
6444 * util/misc.c (sleep) [__MINGW32__]: Removed.
6445 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
6446
6447 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
6448
6449 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
6450 type and packname.
6451 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
6452 Resurrected.
6453 (NETBSD_BTINFO_BOOTWEDGE): New definition.
6454 (grub_netbsd_btinfo_bootwedge): New struct.
6455 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
6456 New function.
6457 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
6458
6459 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
6460
6461 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
6462 loader.
6463
6464 2011-09-28 Andreas Born <futur.andy@googlemail.com>
6465
6466 Fix incorrect identifiers in bash-completion.
6467
6468 * util/bash-completion.d/grub-completion.bash.in
6469 (_grub_mkpasswd-pbkdf2): Rename to ...
6470 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
6471 (_grub_script-check): Rename to ...
6472 (_grub_script_check): ... this. All users updated.
6473
6474 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6477 Return 0 if disk isn't biosdisk.
6478
6479 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
6480
6481 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
6482 on NetBSD.
6483 * Makefile.util.def (grub-fstest): Likewise.
6484
6485 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
6486
6487 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
6488 Get sector size from disk label.
6489
6490 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
6491
6492 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
6493 */README* as well as README*.
6494 Reported by: Axel Beckert.
6495
6496 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
6499 case of less than 256 MiB of RAM.
6500
6501 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 * grub-core/commands/wildcard.c (make_regex): Handle @.
6504
6505 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6506
6507 * util/grub-install.in: Move cryptodisk logic to appropriate place.
6508
6509 2011-08-21 Szymon Janc <szymon@janc.net.pl>
6510
6511 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
6512 AC_LANG_CONFTEST macros.
6513
6514 2011-08-20 Szymon Janc <szymon@janc.net.pl>
6515
6516 Add grub-fstest option to uncompress data for commands.
6517
6518 * util/grub-fstest.c (uncompress): New var.
6519 (options): New option -u.
6520
6521 2011-08-20 Szymon Janc <szymon@janc.net.pl>
6522
6523 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6524 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
6525
6526 2011-08-20 Szymon Janc <szymon@janc.net.pl>
6527
6528 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
6529 file type was not recognized correctly (not gzip or corrupted).
6530
6531 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
6534 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
6535
6536 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
6539 loongson.
6540 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
6541 video_radeon_fuloong2e.
6542 * grub-core/video/radeon_fuloong2e.c: New file.
6543 * include/grub/video.h (grub_video_id_t): Add new ID
6544 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
6545
6546 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
6549 define.
6550 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
6551 that PRID matches the detected subplatform and reset the subplatform
6552 if it doesn't.
6553
6554 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
6557
6558 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6559
6560 Fix PCI iterating on functions >= 4.
6561
6562 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
6563 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
6564 Removed.
6565 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
6566 (grub_pci_read): Fix bitmask.
6567 (grub_pci_read_word): Likewise.
6568 (grub_pci_read_byte): Likewise.
6569 (grub_pci_write): Likewise.
6570 (grub_pci_write_word): Likewise.
6571 (grub_pci_write_byte): Likewise.
6572
6573 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
6576 can still be specified in TARGET_CFLAGS)
6577
6578 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
6581
6582 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
6583 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
6584 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
6585 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
6586 (FULOONG): Rename to ...
6587 (FULOONG2F): ... this. All users updated.
6588 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
6589 (machtype_fuloong2f_str): ... this.
6590 (machtype_fuloong2e_str): New string.
6591 Check for machtype_fuloong2e_str.
6592 * grub-core/loader/mips/linux.c (loongson_machtypes)
6593 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
6594 * grub-core/term/serial.c (loongson_defserial)
6595 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
6596 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
6597 loongson_defserial.
6598 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
6599 Rename to ...
6600 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
6601 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
6602 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
6603 to IMAGE_FULOONG2F_FLASH. All users updated.
6604 (image_targets): Rename images.
6605 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
6606
6607 2011-08-19 Szymon Janc <szymon@janc.net.pl>
6608
6609 Make enable of disk cache statistics code configurable.
6610
6611 * configure.ac: --enable-cache-stats added.
6612 * config.h.in (DISK_CACHE_STATS): New define.
6613 * grub-core/Makefile.core.def (cacheinfo): New command.
6614 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
6615 * grub-core/commands/cacheinfo.c: New file.
6616 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
6617 moved to cacheinfo.c.
6618 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
6619 debug code.
6620 * include/grub/disk.h: Likewise.
6621
6622 2011-08-19 Szymon Janc <szymon@janc.net.pl>
6623
6624 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
6625 * grub-core/Makefile.am: Likewise.
6626
6627 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
6628
6629 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
6630 non-zero pull.
6631
6632 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
6633
6634 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
6635 All users updated.
6636 (grub_jfs_lookup_symlink): Use correct starting inode.
6637
6638 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * util/grub-setup.c (main): Add missing gcry initialisation.
6641
6642 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 Don't accept text modes on EFI when booting Linux.
6645
6646 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
6647 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
6648
6649 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
6650 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
6651
6652 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
6653 use of "/path/.." as in grub-install for EFI as well as handling
6654 symlinks correctly.
6655 Fixes Debian bug #637768.
6656
6657 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
6658
6659 * util/grub-probe.c: Remove duplicate #include.
6660
6661 2011-08-10 Robert Millan <rmh@gnu.org>
6662
6663 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
6664
6665 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
6666 function.
6667 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
6668 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
6669
6670 2011-08-03 Robert Millan <rmh@gnu.org>
6671
6672 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
6673 la_array as packed.
6674 Reported by: Zachary Bedell
6675
6676 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
6677
6678 * configure.ac: The Loongson port requires grub-mkfont due to its
6679 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
6680 be built.
6681
6682 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
6683
6684 * util/grub-install.in: Don't source grub-mkconfig_lib until after
6685 processing arguments (otherwise help2man fails when GRUB has not yet
6686 been installed).
6687
6688 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 New script grub-mkstandalone.
6691
6692 * Makefile.util.def (grub-mkstandalone): New script.
6693 * docs/man/grub-mkstandalone.h2m: New file.
6694 * util/grub-mkstandalone.in: Likewise.
6695
6696 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6697
6698 Support ATA disks with 4K sectors.
6699
6700 * include/grub/ata.h (grub_ata): New member log_sector_size.
6701 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
6702 (grub_ata_identify): Read sector size.
6703 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
6704
6705 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * util/grub-install.in: Don't use uhci outside of x86.
6708
6709 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6710
6711 * util/grub-mkrescue.in: Add missing quotes.
6712
6713 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
6716 dereference.
6717
6718 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
6721
6722 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * include/grub/video.h: add missing EXPORT_FUND on
6725 grub_video_edid_checksum and grub_video_edid_preferred_mode.
6726
6727 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * include/grub/mips/kernel.h: Fix define conflict.
6730
6731 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
6734 all four ways.
6735
6736 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
6737
6738 Preferred resolution detection for VBE.
6739
6740 * grub-core/video/video.c (grub_video_edid_checksum): New function.
6741 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
6742 the Flat Panel extension, in line with the X.org VESA driver.
6743 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
6744 New function.
6745 (grub_vbe_bios_get_ddc_capabilities): Likewise.
6746 (grub_vbe_bios_read_edid): Likewise.
6747 (grub_vbe_get_preferred_mode): Likewise.
6748 (grub_video_vbe_setup): When the mode is "auto", try to get the
6749 preferred mode from VBE, and use the largest mode that is no larger
6750 than the preferred mode (some BIOSes expose a preferred mode that is
6751 not in their mode list!). If this fails, fall back to 640x480 as a
6752 safe conservative choice.
6753 (grub_video_vbe_get_edid): New function.
6754 (grub_video_vbe_adapter): Add get_edid.
6755 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
6756 (struct grub_video_adapter): Add get_edid.
6757 (grub_video_edid_checksum): Add prototype.
6758 (grub_video_edid_preferred_mode): Likewise.
6759 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
6760 structure.
6761
6762 * grub-core/commands/videoinfo.c (print_edid): New function.
6763 (grub_cmd_videoinfo): Print EDID if available.
6764
6765 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
6766 is more appropriate on a wider range of platforms than 640x480.
6767 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
6768 documentation.
6769
6770 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6771
6772 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
6773
6774 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * po/POTFILES.in: Regenerate.
6777
6778 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
6781 incorrect memory usage.
6782
6783 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6784
6785 * util/grub-install.in: Source grub-mkconfig_lib.
6786
6787 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
6788
6789 Remove getroot.c from core on emu platform.
6790
6791 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
6792 kern/emu/raid.c.
6793 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
6794 useless.
6795 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
6796 * util/getroot.c (get_win32_path): ... here.
6797 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
6798 * util/getroot.c (fini_libzfs): ... here.
6799 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
6800 * util/getroot.c (grub_get_libzfs_handle): ... here.
6801 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
6802 Moved from here...
6803 * util/getroot.c (grub_find_zpool_from_dir): ... here.
6804 * grub-core/kern/emu/misc.c
6805 (grub_make_system_path_relative_to_its_root): Moved from here...
6806 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
6807 * grub-core/kern/emu/getroot.c: Moved from here ...
6808 * util/getroot.c: ... here. All users updated.
6809 * grub-core/kern/emu/raid.c: Moved from here ...
6810 * util/raid.c: ... here. All users updated.
6811
6812 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * po/POTFILES.in: Regenerate.
6815
6816 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6817
6818 Fix compilation on GNU/Linux.
6819
6820 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
6821 Disable geli.
6822 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
6823 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
6824 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
6825
6826 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6827 2011-07-07 Michael Gorven <michael@gorven.za.net>
6828 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
6829
6830 LUKS and GELI support.
6831
6832 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
6833 grub-core/disk/luks.c, grub-core/disk/geli.c,
6834 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
6835 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
6836 grub-core/lib/arg.c.
6837 (libgrubmods.a): Remove gcrypts cflags and cppflags.
6838 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
6839 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
6840 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
6841 (grub-bin2h): Add libgcry.a.
6842 (grub-mkimage): Likewise.
6843 (grub-mkrelpath): Likewise.
6844 (grub-script-check): Likewise.
6845 (grub-editenv): Likewise.
6846 (grub-mkpasswd-pbkdf2): Likewise.
6847 (grub-pe2elf): Likewise.
6848 (grub-fstest): Likewise.
6849 (grub-mkfont): Likewise.
6850 (grub-mkdevicemap): Likewise.
6851 (grub-probe): Likewise.
6852 (grub-ofpath): Likewise.
6853 (grub-mklayout): Likewise.
6854 (example_unit_test): Likewise.
6855 (grub-menulst2cfg): Likewise.
6856 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
6857 * grub-core/Makefile.core.def (cryptodisk): New module.
6858 (luks): Likewise.
6859 (geli): Likewise.
6860 * grub-core/disk/AFSplitter.c: New file.
6861 * grub-core/disk/cryptodisk.c: Likewise.
6862 * grub-core/disk/geli.c: Likewise.
6863 * grub-core/disk/luks.c: Likewise.
6864 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
6865 grub_util_is_lvm.
6866 (grub_util_get_dm_abstraction): New function.
6867 (grub_util_follow_gpart_up): Likewise.
6868 (grub_util_get_geom_abstraction): Likewise.
6869 (grub_util_get_dev_abstraction): Use new functions.
6870 (grub_util_pull_device): Pull GELI and LUKS.
6871 (grub_util_get_grub_dev): Handle LUKS and GELI.
6872 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
6873 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
6874 (follow_geom_up): Removed.
6875 (grub_util_fd_seek): New function.
6876 (open_device): Use grub_util_fd_seek.
6877 (nread): Rename to ..
6878 (grub_util_fd_read): ... this. All users updated.
6879 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
6880 (grub_crypto_cbc_decrypt): Likewise.
6881 (grub_crypto_hmac_write): Likewise.
6882 (grub_crypto_hmac_buffer): Likewise.
6883 (grub_password_get): Extend to util.
6884 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
6885 New member modname.
6886 (gcry_md_spec) [GRUB_UTIL]: Likewise.
6887 * include/grub/cryptodisk.h: New file.
6888 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
6889 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
6890 LUKS and GELI.
6891 (grub_util_follow_gpart_up): New proto.
6892 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
6893 (grub_util_fd_read): Likewise.
6894 (grub_cryptodisk_cheat_mount): Likewise.
6895 (grub_util_cryptodisk_print_uuid): Likewise.
6896 (grub_util_get_fd_sectors): Likewise.
6897 * util/grub-fstest.c (mount_crypt): New var.
6898 (fstest): Mount crypto if requested.
6899 (options): New option -C.
6900 (argp_parser): Parse -C.
6901 (main): Init and fini gcry.
6902 * util/grub-install.in: Support cryptodisk install.
6903 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
6904 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
6905 cryptodisk.
6906 (prepare_grub_to_access_device): Likewise.
6907 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
6908 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
6909 (probe_cryptodisk_uuid): New function.
6910 (probe_abstraction): Likewise.
6911 (probe): Use new functions.
6912 * util/import_gcry.py: Create Makefile.utilgcry.def.
6913 Add modname member.
6914
6915 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6916
6917 Lazy device scanning.
6918
6919 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
6920 (grub-setup): Remove util/raid.c.
6921 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
6922 * grub-core/disk/lvm.c (scan_depth): New variable.
6923 (grub_lvm_iterate): Rescan if necessary.
6924 (find_lv): New function based on grub_lvm_open.
6925 (grub_lvm_open): Use find_lv. Rescan on error.
6926 (is_node_readable): New function.
6927 (is_lv_readable): Likewise.
6928 (grub_lvm_scan_device): Skip already found disks.
6929 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
6930 Stop if searched device is found and readable.
6931 * grub-core/disk/raid.c (inscnt): New variable.
6932 (scan_depth): Likewise.
6933 (scan_devices): New function based on grub_raid_register. Abort if
6934 looked for device is found.
6935 (grub_raid_iterate): Rescan if needed.
6936 (find_array): NEw function based on -grub_raid_open.
6937 (grub_raid_open): Use find_array and rescan.
6938 (insert_array): Set became_readable_at.
6939 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
6940 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
6941 New function.
6942 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
6943 (grub_util_pull_device): New function.
6944 (grub_util_get_grub_dev): Call grub_util_pull_device.
6945 * util/raid.c: Moved to ..
6946 * grub-core/kern/emu/raid.c: ... here.
6947 (grub_util_raid_getmembers): New parameter "bootable".
6948 All users updated. Support 1.x.
6949 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
6950 All users updated.
6951 * include/grub/disk.h (grub_disk_pull_t): New enum.
6952 (grub_disk_dev): Change iterate prototype.
6953 All users updated.
6954 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
6955 New proto.
6956 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
6957 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
6958 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
6959 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
6960 All users updated.
6961 * include/grub/util/raid.h: Removed.
6962
6963 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
6964
6965 * po/POTFILES.in: Regenerate.
6966
6967 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
6968
6969 Unify sparc init with other ieee1275.
6970
6971 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
6972 instead of kern/sparc64/ieee1275/init.c.
6973 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
6974 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
6975 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
6976 grub/machine/kernel.h.
6977 (grub_ieee1275_original_stack) [__sparc__]: New variable.
6978 (grub_claim_heap) [__sparc__]: Use sparc version.
6979 (grub_machine_init): Moved args parsing to
6980 (grub_parse_cmdline): ...this.
6981 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
6982 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
6983 New definition.
6984 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
6985
6986 Move BOOTP to separate file.
6987
6988 * grub-core/Makefile.core.def (net): Add net/bootp.c.
6989 * grub-core/net/net.c: Move all BOOTP functions to
6990 * grub-core/net/bootp.c: ... here.
6991
6992 Use frame interface on PXE.
6993
6994 * grub-core/Makefile.core.def (pxecmd): Removed.
6995 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
6996 * grub-core/commands/i386/pc/pxecmd.c: Removed.
6997 * grub-core/i386/pc/pxe.c: Moved from here ...
6998 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
6999 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
7000 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
7001
7002 EFI network support.
7003
7004 * grub-core/Makefile.core.def (efinet): New module.
7005 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
7006 here...
7007 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
7008 All users updated.
7009 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
7010 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
7011 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
7012 * grub-core/net/drivers/efi/efinet.c: New file.
7013 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
7014 (grub_efi_net_config): New extern var.
7015
7016 Various cleanups and bugfixes.
7017
7018 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
7019 error.
7020 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
7021 disk declared as partition.
7022 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
7023 leak on failure.
7024 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
7025 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
7026 (grub_debug_zalloc): Likewise.
7027 (grub_debug_realloc): Likewise.
7028 (grub_debug_memalign): Likewise.
7029 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
7030 Check that target is IPv4.
7031 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
7032 local-mac-address as fallback.
7033 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
7034 memory leak.
7035 * grub-core/net/ip.c (ipchksum): Rename to ...
7036 (grub_net_ip_chksum): ... this. All users updated.
7037 (grub_net_recv_ip_packets): Special handling for DHCP.
7038 * util/grub-mkimage.c (generate_image): Zero-out aout header.
7039
7040 Unify prefix handling
7041
7042 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
7043 (grub_machine_get_bootlocation): ... this.
7044 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
7045 (grub_machine_get_bootlocation): ... this.
7046 (grub_prefix): New variable.
7047 (prefix): Removed.
7048 (root_dev): New variable.
7049 (dir): Likewise.
7050 (main): Use new variables.
7051 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
7052 Revamped into ...
7053 (grub_machine_get_bootlocation): ... this.
7054 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
7055 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
7056 (grub_machine_get_bootlocation): ... this.
7057 (grub_machine_set_prefix): Removed.
7058 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
7059 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
7060 Revamped into ...
7061 (grub_machine_get_bootlocation): ... this.
7062 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
7063 (grub_set_prefix_and_root): ... this. All users updated.
7064 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
7065 Revamped into ...
7066 (grub_machine_get_bootlocation): ... this.
7067 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
7068 (grub_machine_get_bootlocation): New proto.
7069 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
7070
7071 Less intrusive and more reliable seek on network implementation.
7072
7073 * grub-core/kern/file.c (grub_file_net_seek): Removed.
7074 (grub_file_seek): Don't call grub_file_net_seek.
7075 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
7076 (grub_net_fs_read_real): .. this.
7077 (grub_net_seek_real): Use net->offset.
7078 (grub_net_fs_read): Seek if necessary.
7079
7080 Unify IEEE1275 netwotk config with the other platforms.
7081
7082 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
7083 New variable.
7084 (grub_machine_get_bootlocation): Support network.
7085 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
7086 Support type and device parsing.
7087 (grub_ieee1275_get_device_type): New function.
7088 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
7089 into ...
7090 (grub_ieee1275_net_config_real): ... this.
7091 (grub_ofnet_probecards): Removed.
7092 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
7093 * include/grub/ieee1275/ofnet.h: Removed.
7094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
7095 extern var.
7096 (grub_ieee1275_get_device_type): New function.
7097
7098 Unify network device closing across platforms and make more robust.
7099
7100 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
7101 grub_grubnet_fini.
7102 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
7103 already.
7104 * grub-core/net/net.c (grub_net_network_level_interface_register):
7105 Update num_ifaces.
7106 (grub_net_card_unregister): Close all interfaces.
7107 (receive_packets): Don't poll if no iterfaces are registered.
7108 Open if necessary.
7109 (grub_net_fini_hw): New function.
7110 (grub_net_restore_hw): Likewise.
7111 (fini_hnd): New variable.
7112 (GRUB_MOD_INIT): Register preboot hook.
7113 (GRUB_MOD_FINI): Run and unregister preboot hook.
7114
7115 Poll network cards when idle.
7116
7117 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
7118 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
7119 * grub-core/net/net.c (receive_packets): Save last poll time.
7120 (grub_net_poll_cards_idle_real): New function.
7121 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
7122 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
7123 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
7124
7125 Rename ofnet interfaces.
7126
7127 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
7128 (grub_ofnet_findcards): Use ofnet_%s names.
7129
7130 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
7131
7132 Cleanup socket opening.
7133
7134 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
7135 (grub_net_fs_close): Likewise.
7136 (grub_net_fs_read_real): Use eof member.
7137 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
7138 (+grub_net_udp_close): New inline function.
7139
7140 * include/grub/net/tftp.h: Moved to the top of ...
7141 * grub-core/net/tftp.c: ... here.
7142 * include/grub/net/ip.h: Moved mostly to the top of ...
7143 * grub-core/net/ip.c: ... here.
7144 * include/grub/net/ethernet.h: Moved mostly to the top of ...
7145 * grub-core/net/ethernet.c: ... here.
7146
7147 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
7148
7149 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
7150 FS name.
7151
7152 * include/grub/net/ip.h (ipv4_ini): Removed.
7153 (ipv4_fini): Likewise.
7154
7155 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
7156 (grub_net_send_ip_packets): Likewise.
7157
7158 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7159
7160 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
7161 grub_read_cmos prototype.
7162
7163 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7164
7165 VGA text support in qemu-mips
7166
7167 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
7168 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
7169 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
7170 text.
7171 * grub-core/kern/i386/qemu/init.c: Renamed to ...
7172 * grub-core/kern/vga_init.c: ... this.
7173 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
7174 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
7175 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
7176 Adjust.
7177 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
7178 GRUB_MACHINE_PCI_IO_BASE.
7179
7180 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 MIPS qemu flash support.
7183
7184 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
7185 magic.
7186 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
7187 (grub_machine_init): Probe memory if its size isn't known.
7188 * util/grub-mkimage.c (image_targets): Add flash targets.
7189 (generate_image): Handle flash targets.
7190
7191 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7192
7193 MIPS qemu at_keyboard support.
7194
7195 * gentpl.py (videoinkernel): Add qemu-mips.
7196 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
7197 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
7198 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
7199 modules.
7200 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
7201 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
7202 * grub-core/term/serial.c (grub_serial_register)
7203 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
7204
7205 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 CMOS support on sparc.
7208
7209 * gentpl.py (cmos): Add powerpc and sparc.
7210 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
7211 powerpc and sparc.
7212 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
7213 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
7214 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
7215 grub_set_datetime_cmos.
7216 * grub-core/lib/ieee1275/cmos.c: New file.
7217 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
7218 (find_rtc): Set no_ieee1275_rtc on error.
7219 (grub_get_datetime): Call grub_get_datetime_cmos on error.
7220 (grub_set_datetime): Call grub_set_datetime_cmos on error.
7221 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
7222 fail. Move value to argument. All users updated
7223 (grub_cmos_write): Likewise.
7224 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
7225 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
7226 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
7227 grub_get_datetime_cmos and grub_set_datetime_cmos.
7228
7229 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
7230
7231 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
7232 sourcing grub-mkconfig_lib.
7233 * util/update-grub_lib.in: Likewise.
7234 * util/grub.d/00_header.in: Likewise.
7235 * util/grub.d/10_hurd.in: Likewise.
7236 * util/grub.d/10_kfreebsd.in: Likewise.
7237 * util/grub.d/10_linux.in: Likewise.
7238 * util/grub.d/10_netbsd.in: Likewise.
7239 * util/grub.d/10_windows.in: Likewise.
7240 * util/grub.d/20_linux_xen.in: Likewise.
7241 * util/grub.d/30_os-prober.in: Likewise.
7242
7243 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
7244
7245 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
7246 default_bg_color rather than black.
7247 (grub_gfxterm_fullscreen): Likewise.
7248 (grub_gfxterm_background_color_cmd): Save new background color in
7249 default_bg_color.
7250
7251 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7252
7253 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
7254
7255 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7256
7257 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
7258 mismerge.
7259
7260 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 Chainloading on coreboot support.
7263
7264 * grub-core/Makefile.core.def (chain): Add coreboot.
7265 * grub-core/loader/i386/coreboot/chainloader.c: New file.
7266
7267 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7268
7269 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
7270 if it happens.
7271
7272 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7273
7274 Implement time command.
7275
7276 * grub-core/Makefile.core.def (time): New module.
7277 * grub-core/commands/time.c: New file.
7278 * grub-core/script/parser.y: Remove "time" keyword.
7279 * grub-core/script/yylex.l: Likewise.
7280
7281 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
7284
7285 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
7288 when handling leftovers.
7289
7290 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
7293 so that help2man doesn't fail.
7294
7295 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7296
7297 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
7298 type in pointers on sparc64.
7299 (get_card_packet): Likewise.
7300
7301 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
7302
7303 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
7304 with `*'.
7305 (grub_cmd_videoinfo): Fetch current video mode.
7306
7307 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
7310 because of underlying system restrictions.
7311
7312 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
7315 necessary.
7316
7317 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 Coreboot video support.
7320
7321 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
7322 (vbe): Likewise.
7323 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
7324 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
7325 here ...
7326 * grub-core/kern/i386/int.S: ... here.
7327 * grub-core/video/i386/pc/vbe.c: Updated includes.
7328 * grub-core/video/i386/pc/vga.c: Likewise.
7329 * include/grub/i386/coreboot/memory.h
7330 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
7331 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
7332 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
7333 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
7334 Disable interrupts.
7335 * include/grub/i386/pc/vga.h: Removed. All users updated.
7336
7337 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7338
7339 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
7340 definitions for dprintf.
7341 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
7342
7343 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7344
7345 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
7346 prototype.
7347 (get_card_packet): Likewise.
7348
7349 2011-06-26 Yves Blusseau <blusseau@zetam.org>
7350
7351 Display the path of the file when file is not found
7352
7353 * grub-core/fs/fat.c: Display the filename when file is not found.
7354 * grub-core/fs/fshelp.c: Likewise.
7355 * grub-core/fs/hfs.c: Likewise.
7356 * grub-core/fs/jfs.c: Likewise.
7357 * grub-core/fs/minix.c: Likewise.
7358 * grub-core/fs/ufs.c: Likewise.
7359 * grub-core/fs/btrfs.c: Likewise.
7360 * grub-core/commands/i386/pc/play.c: Likewise.
7361
7362 2011-06-26 Szymon Janc <szymon@janc.net.pl>
7363
7364 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
7365 pointer checks before calling grub_free().
7366 * grub-core/commands/wildcard.c (match_devices): Likewise.
7367 * grub-core/commands/wildcard.c (match_files): Likewise.
7368 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
7369 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
7370 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
7371 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
7372 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
7373 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
7374 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
7375 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
7376 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
7377
7378 2011-06-25 Patrick <p55@mailinator.com>
7379
7380 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
7381
7382 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
7385 (grub_pxe_send): Likewise.
7386 (GRUB_MOD_INIT): Fix types.
7387
7388 2011-06-24 Szymon Janc <szymon@janc.net.pl>
7389
7390 * grub-core/io/xzio.c: Fix code style issues
7391
7392 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7393 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
7394
7395 Network infrastructure.
7396 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
7397
7398 * include/grub/net/arp.h: New file.
7399 * include/grub/net/device.h: Likewise.
7400 * include/grub/net/ethernet.h: Likewise.
7401 * include/grub/net/ip.h: Likewise.
7402 * include/grub/net/netbuff.h: Likewise.
7403 * include/grub/net/tftp.h: Likewise.
7404 * include/grub/net/udp.h: Likewise.
7405 * include/grub/ieee1275/ofnet.h: Likewise.
7406 * include/grub/emu/export.h: Likewise.
7407 * include/grub/net.h: Likewise.
7408 * grub-core/net/arp.c: Likewise.
7409 * grub-core/net/ethernet.c: Likewise.
7410 * grub-core/net/ip.c: Likewise.
7411 * grub-core/net/udp.c: Likewise.
7412 * grub-core/net/tftp.c: Likewise.
7413 * grub-core/net/netbuff.c: Likewise.
7414 * grub-core/net/net.c: Likewise.
7415 * grub-core/net/drivers/emu/emunet.c: Likewise.
7416 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
7417 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
7418 export.h.
7419 * grub-core/Makefile.core.def (net): New module.
7420 (tftp): Likewise.
7421 (ofnet): Likewise.
7422 (emunet): Likewise.
7423 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
7424 network protocols.
7425 * grub-core/kern/device.c (grub_net_open) : New variable.
7426 (grub_device_open): Handle network device.
7427 (grub_device_close): Likewise.
7428 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
7429 (grub_grubnet_fini): Likewise.
7430 (grub_file_seek): Seek in network device.
7431 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
7432 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
7433 network root.
7434 (grub_machine_fini): Call grub_grubnet_fini.
7435 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
7436 network.
7437 (grub_ieee1275_get_aliasdevname): New function.
7438 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
7439 Add unofficial Solaris network info.
7440 (grub_multiboot_make_mbi): Likewise.
7441 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
7442 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
7443 * include/grub/device.h (grub_fs): Removed.
7444 * include/grub/err.h (grub_err_t): Add network-related values.
7445 * include/grub/i386/pc/pxe.h: Removed bootp parts.
7446 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
7447 (grub_ieee1275_get_aliasdevname): New proto.
7448 * include/grub/net.h: Rewritten.
7449
7450 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7451
7452 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
7453 names.
7454
7455 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
7458 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
7459 it truncates the output.
7460 Reported by: Ximin Luo.
7461
7462 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7463
7464 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
7465
7466 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7467
7468 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
7469 partmap before abstraction.
7470
7471 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
7472
7473 * util/grub-mkconfig_lib.in: Add missing quotes.
7474
7475 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
7478 old method if mountinfo would return /dev/root and /dev/root doesn't
7479 exist.
7480
7481 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 ZFS zlib support
7484
7485 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
7486 (decomp_table): Add zlib entries.
7487 (zio_read): USe 8 bits for compression function rather than 3.
7488 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
7489
7490 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * grub-core/disk/ahci.c: Add missing license statements.
7493 * grub-core/fs/romfs.c: Likewise.
7494 * grub-core/lib/ia64/setjmp.S: Likewise.
7495 * grub-core/loader/i386/pc/freedos.c: Likewise.
7496 * grub-core/loader/ia64/efi/linux.c: Likewise.
7497 * grub-core/video/colors.c: Likewise.
7498 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
7499
7500 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 AHCI support.
7503
7504 * grub-core/Makefile.core.def (ata_pthru): Removed.
7505 (ahci): New module.
7506 (pata): Likewise.
7507 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
7508 on unload.
7509 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
7510 readwrite.
7511 (grub_hdparm_do_check_powermode_cmd): Likewise.
7512 (grub_hdparm_do_smart_cmd): Likewise.
7513 (grub_hdparm_set_val_cmd): Likewise.
7514 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
7515 * grub-core/disk/ahci.c: New file.
7516 * grub-core/disk/ata.c: Factor out the low-level part into ...
7517 * grub-core/disk/pata.c: ... here.
7518 * grub-core/disk/ata_pthru.c: Contents moved to ...
7519 * grub-core/disk/pata.c: ... here.
7520 * grub-core/disk/scsi.c (grub_scsi_names): New array.
7521 (grub_scsi_iterate): Use grub_scsi_names.
7522 (grub_scsi_open): Likewise.
7523 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
7524 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
7525 (grub_ata_regs_t): New struct.
7526 (grub_disk_ata_pass_through_parms): Likewise.
7527 (grub_ata_device): Renamed to ...
7528 (grub_ata): ... this.
7529 (grub_ata_dev): New struct.
7530 Removed all low-level inline functions.
7531 * include/grub/scsi.h: Add PATA and AHCI subsystems.
7532 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
7533 iterate hooks and open. All users updated.
7534 * util/grub-install.in: Handle AHCI disk module.
7535
7536 2011-06-23 Szymon Janc <szymon@janc.net.pl>
7537
7538 Add support for DRI and RSTn markers in JPEG files.
7539
7540 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
7541 (JPEG_MARKER_RST0): Likewise.
7542 (JPEG_MARKER_RST1): Likewise.
7543 (JPEG_MARKER_RST2): Likewise.
7544 (JPEG_MARKER_RST3): Likewise.
7545 (JPEG_MARKER_RST4): Likewise.
7546 (JPEG_MARKER_RST5): Likewise.
7547 (JPEG_MARKER_RST6): Likewise.
7548 (JPEG_MARKER_RST7): Likewise.
7549 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
7550 (grub_jpeg_decode_dri): New function.
7551 (grub_jpeg_decode_sos): Move image data related part into
7552 grub_jpeg_decode_data function.
7553 (grub_jpeg_decode_data): New function.
7554 (grub_jpeg_reset): New function.
7555 (grub_jpeg_decode_jpeg): Handle new markers.
7556
7557 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7558
7559 * util/ieee1275/ofpath.c (check_sas): Close fd.
7560 (main): Free of_path.
7561 Reported by: David Volgyes <dvolgyes>.
7562
7563 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
7566 Reported by: David Volgyes <dvolgyes>.
7567
7568 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7569
7570 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
7571 file after stat.
7572 Reported by: David Volgyes <dvolgyes>.
7573
7574 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
7577
7578 Reported by: David Volgyes <dvolgyes>.
7579
7580 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
7583 Prevent memory leak.
7584
7585 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
7588 (main): Close file.
7589 Reported by: David Volgyes <dvolgyes>.
7590
7591 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7592
7593 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
7594 to continue if allocation is failed.
7595
7596 Reported by: David Volgyes <dvolgyes>.
7597
7598 2011-06-23 David Volgyes <dvolgyes>
7599
7600 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
7601 dereference.
7602
7603 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7604
7605 Fix spurious warning.
7606
7607 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
7608 (acorn_partition_map_find): Use .bin member.
7609
7610 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
7613 /dev/root as a valid device.
7614
7615 2011-06-23 Jim Meyering <meyering@redhat.com>
7616
7617 Avoid NULL deref in grub_device_open.
7618
7619 * grub-core/kern/device.c (grub_device_open): Don't dereference
7620 a NULL pointer upon failed grub_env_get.
7621
7622 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 Support non-512B sectors and agglomerate reads.
7625
7626 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
7627 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
7628 (disk_io_guid): Removed.
7629 (make_devices): Locate solely by BlockIO.
7630 (grub_efidisk_open): Fill log_sector_size and total_sectors.
7631 (grub_efidisk_read): Use read_blocks.
7632 (grub_efidisk_write): Use write_blocks.
7633 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
7634 log_sector_size.
7635 (get_safe_sectors): Handle non-512B sectors.
7636 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
7637 sectors.
7638 (grub_biosdisk_write): Handle non-512B sectors.
7639 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
7640 (grub_scsi_read): Remove special non-512B block handling (now handled
7641 one level up).
7642 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
7643 and do sanity checks.
7644 (grub_disk_adjust_range): Handle non-512B sectors.
7645 (transform_sector): New function.
7646 (grub_disk_read_small): Likewise.
7647 (grub_disk_read): Rewritten.
7648 (grub_disk_write): Handle non-512B sectors.
7649 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
7650 log_sector_size.
7651 (open_device): Use log_sector_size.
7652 (grub_util_biosdisk_read): Likewise.
7653 (grub_util_biosdisk_write): Likewise.
7654 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
7655 non-512B sectors.
7656 (pc_partition_map_embed): Likewise.
7657 * include/grub/disk.h (grub_disk): New field log_sector_size.
7658 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
7659 (GRUB_DISK_CACHE_BITS): Increased to 6.
7660 * util/grub-fstest.c (fstest): New command testload.
7661 (argp_parser): Likewise.
7662
7663 2011-06-16 Robert Millan <rmh@gnu.org>
7664
7665 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
7666 `ata' driver on kernel of FreeBSD 9.
7667
7668 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
7669 (get_ataraid_disk_name): New functions.
7670 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
7671 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
7672 get_ataraid_disk_name() and get_ada_disk_name().
7673
7674 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
7675
7676 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
7677 input format.
7678
7679 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
7680
7681 * docs/grub.texi (Obtaining and Building GRUB): Substitute
7682 `ftp.gnu.org' for `alpha.gnu.org'.
7683
7684 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
7685
7686 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
7687 partitions under /dev/disk/by-id/.
7688
7689 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
7690
7691 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
7692 after ten consecutive open failures. Scanning all the way up to
7693 10000 is excessive and can cause serious performance problems in
7694 some configurations.
7695 Fixes Ubuntu bug #787461.
7696
7697 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7698
7699 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
7700 opening new one.
7701
7702 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
7703 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 Don't stat devices unless we have to.
7706
7707 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
7708 dir == /dev/mapper.
7709 (grub_guess_root_device): Use already known os_dev if possible.
7710 * grub-core/kern/emu/hostdisk.c
7711 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
7712 if device is known to be a dm one.
7713
7714 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
7715
7716 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
7717 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
7718 Reported by: Pawel Tecza.
7719
7720 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
7723 (lsefisystab): Likewise.
7724 (lssal): Likewise.
7725 (lsefimmap): Likewise.
7726 (hdparm): Enable on qemu-mips.
7727 (setjmp): Add ia64 nodist.
7728 (serial): Simplify tags.
7729
7730 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
7731
7732 * Makefile.util.def (grub-ofpathname): Install manual page.
7733
7734 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
7735
7736 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
7737
7738 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
7739
7740 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
7741
7742 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7743
7744 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
7745 into dprintf.
7746
7747 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 Use full 64-bit division.
7750
7751 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
7752 (grub_divmod64): ... this.
7753 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
7754 version.
7755
7756 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
7757
7758 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
7759 `source'.
7760
7761 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
7762
7763 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
7764 to avoid accidents when debugging with 'sh -x'.
7765 * grub-core/gensyminfo.sh.in: Likewise.
7766 * tests/example_scripted_test.in: Likewise.
7767 * tests/grub_cmd_regexp.in: Likewise.
7768 * tests/grub_script_blanklines.in: Likewise.
7769 * tests/grub_script_dollar.in: Likewise.
7770 * tests/grub_script_expansion.in: Likewise.
7771 * tests/grub_script_final_semicolon.in: Likewise.
7772 * tests/partmap_test.in: Likewise.
7773 * tests/util/grub-shell-tester.in: Likewise.
7774 * tests/util/grub-shell.in: Likewise.
7775
7776 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
7777
7778 Move gfxmenu color handling to video, so that gfxterm can use it
7779 too.
7780
7781 * grub-core/gfxmenu/named_colors.c: Move to ...
7782 * grub-core/video/colors.c: ... here. Rename
7783 grub_gui_get_named_color to grub_video_get_named_color.
7784 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
7785 * grub-core/video/colors.c (my_isxdigit): ... here.
7786 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
7787 Move to ...
7788 * grub-core/video/colors.c (parse_hex_color_component): ... here.
7789 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
7790 to ...
7791 * grub-core/video/colors.c (grub_video_parse_color): ... here.
7792
7793 * include/grub/gui.h (grub_gui_color_t): Move to ...
7794 * include/grub/video.h (grub_video_rgba_color_t): ... here.
7795 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
7796 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
7797 * include/grub/gui.h (grub_gui_map_color): Move to ...
7798 * include/grub/video.h (grub_video_map_rgba_color): ... here.
7799 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
7800 to ...
7801 * include/grub/video.h (grub_video_get_named_color): ... here.
7802 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
7803 * include/grub/video.h (grub_video_parse_color): ... here.
7804
7805 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
7806 video/colors.c.
7807 (gfxmenu): Remove gfxmenu/named_colors.c.
7808 (video) [videomodules]: Add video/colors.c.
7809
7810 Add a background_color command.
7811
7812 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
7813 function.
7814 (GRUB_MOD_INIT): Register background_color command.
7815 (GRUB_MOD_FINI): Unregister background_color command.
7816 (redraw_screen_rect): Allow blend/replace of text layer to be
7817 controlled independently from whether there is a background bitmap.
7818 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
7819 changing bitmap.
7820
7821 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7822
7823 Patch BPB in ntldr and chainloader --bpb.
7824
7825 * grub-core/fs/fat.c: Include grub/fat.h.
7826 (grub_fat_bpb): Moved to ...
7827 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
7828 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
7829 grub/ntfs.h.
7830 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
7831 Moved from here...
7832 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
7833 here.
7834 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
7835 New function.
7836 (grub_chainloader_cmd): Patch BPB if --bpb is given.
7837 (GRUB_MOD_INIT): Show --bpb.
7838 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
7839 * grub-core/normal/main.c (features): New variable.
7840 (GRUB_MOD_INIT): Set feature_* variables.
7841 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
7842 proto.
7843 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
7844
7845 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7846
7847 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
7848 for cleanness.
7849
7850 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7851
7852 FreeDOS direct loading support.
7853
7854 * docs/grub.texi (Supported OS): Add FreeDOS.
7855 * grub-core/Makefile.core.def (freedos): New module.
7856 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
7857 variable.
7858 (grub_relocator16_boot): Handle %ebx.
7859 * grub-core/lib/i386/relocator16.S: Likewise.
7860 * grub-core/loader/i386/pc/freedos.c: New file.
7861
7862 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7863
7864 Long Linux command line support.
7865
7866 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
7867 (maximal_cmdline_size): New variable.
7868 (allocate_pages): Use maximal_cmdline_size.
7869 (grub_cmd_linux): Set and use maximal_cmdline_size.
7870 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
7871 (allocate_pages): Use maximal_cmdline_size.
7872 (grub_cmd_linux): Set and use maximal_cmdline_size.
7873 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
7874 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
7875 and cmdline_size.
7876
7877 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7878 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
7879
7880 Improve devmapper support
7881
7882 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
7883 (grub_util_is_lvm): New function.
7884 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
7885 than lvm if not dmraid.
7886 Handle mapped md nodes.
7887 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
7888 (grub_util_device_is_mapped): ... this. Make always available. All users
7889 updated.
7890 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
7891 (convert_system_partition_to_system_disk): Handle lvm, mpath and
7892 dmraid nodes.
7893 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
7894
7895 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7896
7897 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
7898
7899 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
7900 * grub-core/modinfo.sh.in: New file.
7901 * grub-core/Makefile.core.def (modinfo.sh): New script.
7902 * util/grub-mknetdir.in: Use modinfo.sh.
7903 * util/grub-mkrescue.in: Likewise.
7904
7905 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7906
7907 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
7908 Fix potential usage of Elf32 instead of Elf64 when compiling on
7909 32-bit architecture. Add endianness macros while on it.
7910
7911 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7912
7913 Use mipsel- rather than mips- in directories involving mipsel ports to
7914 allow both endiannesses coexist.
7915
7916 * configure.ac: proparate target_cpu=mipsel rather than resetting to
7917 mips. All conditions adjusted.
7918 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
7919 variable.
7920 * util/grub-install.in: Adjust conditions to take renaming into account.
7921 * util/grub-mkimage.c (image_targets): Likewise. New target
7922 mips-qemu_mips-elf for bigendian mips.
7923
7924 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 Avoid unnecessary copying on MIPS.
7927
7928 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
7929 early if src == dest.
7930 * util/grub-mkimage.c (generate_image): Arange for src == dest if
7931 compression is none.
7932
7933 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 Reduce memory footprint on SGI by putting modules before the kernel
7936 as opposed to after.
7937
7938 * grub-core/Makefile.core.def (kernel): Increase linking address.
7939 (none_decompress): Likewise.
7940 (xz_decompress): Likewise.
7941 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
7942 address.
7943 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
7944 layout change.
7945 (grub_arch_modules_addr): New function.
7946 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
7947 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
7948 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
7949 here.
7950 * grub-core/kern/mips/startup.S (total_size): Rename to ...
7951 (grub_total_modules_size): ... this. Make global.
7952 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
7953 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
7954 New definition.
7955 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
7956 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
7957 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
7958 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
7959 * util/grub-mkimage.c (image_target_desc): New flag
7960 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
7961 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
7962 (generate_image): Handle images with modules before kernel.
7963
7964 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 Prevent potential loss of memory map by overwrite on qemu-mips.
7967
7968 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
7969 Save ram size in $s4.
7970 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
7971 All users changed to grub_arch_memsize.
7972 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
7973 Loongson.
7974 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
7975 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
7976 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
7977 external variable.
7978
7979 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7980
7981 * .bzrignore: Remove grub-dumpbios.
7982
7983 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7984
7985 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
7986 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
7987 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
7988 existing options which append).
7989 * docs/grub.texi (Simple configuration): Document new options.
7990 Reported by: Ian Jackson. Fixes Debian bug #617538.
7991
7992 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7993
7994 * util/grub-fstest.c (cmd_cat): New function.
7995 (fstest): Handle CMD_CAT.
7996 (options): Add cat.
7997 (argp_parser): Handle cat.
7998
7999 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
8000
8001 * Makefile.util.def (grub-bin2h): Don't install.
8002 * docs/man/grub-bin2h.h2m: Remove.
8003
8004 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
8007 place.
8008
8009 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 Reenable qemu-mips port.
8012
8013 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
8014 Fix small arc bug while on it.
8015 * gentpl.py: Handle qemu_mips.
8016 * grub-core/Makefile.am: Likewise.
8017 * grub-core/Makefile.core.def: Likewise.
8018 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
8019 inappropriate includes.
8020 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
8021 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
8022 * grub-core/kern/main.c (grub_modules_get_end)
8023 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
8024 * grub-core/kern/mips/qemu-mips: Moved to ..
8025 * grub-core/kern/mips/qemu_mips: ... this.
8026 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
8027 (grub_machine_init): Call terminfo_init and serial_init.
8028 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
8029 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
8030 New variable.
8031 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
8032 parameter passing.
8033 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
8034 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
8035 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8036 * include/grub/mips/qemu_mips/cmos.h: New file.
8037 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
8038 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
8039 Removed.
8040 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
8041 Use correct mips-style address.
8042 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
8043 (GRUB_TICKS_PER_SECOND): Removed.
8044 (grub_get_rtc): Likewise.
8045 (grub_cpu_idle): Likewise.
8046 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
8047 New definition.
8048 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
8049 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
8050 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
8051 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
8052 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
8053 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
8054 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
8055 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
8056
8057 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8058
8059 SGI ARCS port.
8060
8061 * Makefile.util.def (libgrubmods.a): Add dvh.c.
8062 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
8063 platforms.
8064 * configure.ac: New target mips-arc.
8065 * gentpl.py: Likewise.
8066 * grub-core/Makefile.am: Likewise.
8067 * grub-core/Makefile.core.def: Likewise.
8068 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
8069 (none_decompress): Likewise.
8070 (lsdev): New module.
8071 (datetime): Use lib/arc/datetime.c on ARC.
8072 (part_dvh): New module.
8073 * grub-core/commands/arc/lsdev.c: New file.
8074 * grub-core/disk/arc/arcdisk.c: Likewise.
8075 * grub-core/kern/mips/arc/init.c: Likewise.
8076 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
8077 aligned addresses.
8078 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
8079 support.
8080 (grub_arch_dl_relocate_symbols): Likewise.
8081 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
8082 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
8083 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
8084 platforms.
8085 * grub-core/lib/arc/datetime.c: New file.
8086 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
8087 pci.h on non-loongson.
8088 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
8089 (grub_linux_boot): Set unused registers to 0.
8090 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
8091 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
8092 * grub-core/mmap/mips/uppermem.c: ...here.
8093 * grub-core/partmap/dvh.c: New file.
8094 * grub-core/term/arc/console.c: Likewise.
8095 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
8096 (grub_terminfo_set_current): Add terminal "arc".
8097 (grub_terminfo_readkey): Support ARC sequences.
8098 * include/grub/arc/arc.h: New file.
8099 * include/grub/arc/console.h: Likewise.
8100 * include/grub/disk.h (grub_disk_dev_id): Add
8101 GRUB_DISK_DEVICE_ARCDISK_ID.
8102 * include/grub/mips/arc/kernel.h: New file.
8103 * include/grub/mips/arc/memory.h: Likewise.
8104 * include/grub/mips/arc/time.h: Likewise.
8105 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
8106 * include/grub/mips/kernel.h (grub_halt): ... here.
8107 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
8108 here...
8109 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
8110 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
8111 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
8112 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
8113 proto.
8114 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
8115 from here ...
8116 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
8117 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
8118 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
8119 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
8120 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
8121 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
8122 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
8123 (grub_phys_addr_t): Moved from here ...
8124 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
8125 (grub_vtop): Moved from here ...
8126 * include/grub/mips/memory.h (grub_vtop): ... here.
8127 (grub_map_memory): Moved from here ...
8128 * include/grub/mips/memory.h (grub_map_memory): ... here.
8129 (grub_unmap_memory): Moved from here ...
8130 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
8131 (grub_machine_mmap_iterate): Moved from here ...
8132 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
8133 (grub_mmap_get_lower): Moved from here ...
8134 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
8135 (grub_mmap_get_upper): Moved from here ...
8136 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
8137 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
8138 here ...
8139 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
8140 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
8141 here ...
8142 * include/grub/mips/time.h (grub_get_rtc): ... here.
8143 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
8144 here ...
8145 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
8146 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
8147 here ...
8148 * include/grub/mips/time.h (grub_cpu_idle): ... here.
8149 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
8150 definition.
8151 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
8152 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
8153 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
8154 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
8155 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
8156 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
8157 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
8158 (GRUB_MACHINE_LINK_ADDR): Likewise.
8159 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
8160 to 6.
8161 * util/grub-install.in: Run dvhtool on ARC.
8162 * util/grub-mkimage.c (image_targets): Add mips-arc.
8163 (generate_image): Handle ECOFF output for mips-arc.
8164
8165 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
8166
8167 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
8168 blocks.
8169
8170 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
8171
8172 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
8173 after enabling port.
8174
8175 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 Skip incorrect USB devices.
8178
8179 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
8180 configcnt == 0.
8181 * include/grub/usb.h (grub_usb_err_t): New enum value
8182 GRUB_USB_ERR_BADDEVICE.
8183
8184 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 Fuloong video init support.
8187
8188 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
8189 well.
8190 (grub_vga_read_arx): New function.
8191 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
8192 definition.
8193 (framebuffer): New members io, mmioptr and mmiobase.
8194 (read_sis_cmd): New function.
8195 (write_sis_cmd): Likewise.
8196 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
8197 rather than 640x400.
8198 * grub-core/video/sis315_init.c: New file.
8199
8200 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
8203 non-loongson.
8204 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
8205 to grub_dl_register_symbol.
8206
8207 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8208
8209 Fix compilation errors.
8210
8211 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
8212 potentially unused.
8213 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
8214 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
8215 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
8216 to loongson machines.
8217
8218 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8219
8220 Several FS mtime support.
8221
8222 * grub-core/fs/affs.c (grub_affs_time): New struct.
8223 (grub_affs_file): New field mtime.
8224 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
8225 type. Removed 'size'. New field 'di'. All users updated.
8226 (grub_affs_mount): Simplify checsum checking.
8227 (grub_affs_iterate_dir): New helper grub_affs_create_node.
8228 (grub_affs_dir): Handle mtime.
8229 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
8230 (grub_cpio_dir): Likewise.
8231 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
8232 (grub_hfs_filerec): New field mtime.
8233 (grub_hfs_dir): Handle mtime.
8234 (grub_hfs_mtime): New function.
8235 (grub_hfs_fs): Register grub_hfs_mtime.
8236 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
8237 (grub_iso9660_dir): New field mtime.
8238 (grub_fshelp_node): New field dirent.
8239 (iso9660_to_unixtime): New function.
8240 (iso9660_to_unixtime2): Likewise.
8241 (grub_iso9660_read_symlink): Use node->dirent.
8242 (grub_iso9660_iterate_dir): Likewise.
8243 (grub_iso9660_dir): Set mtime.
8244 (grub_iso9660_mtime): New function.
8245 (grub_iso9660_fs): Register grub_iso9660_mtime.
8246 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
8247 (grub_jfs_inode): New fields atime, ctime and mtime.
8248 (grub_jfs_dir): Set mtime.
8249 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
8250 * grub-core/fs/ntfs.c (list_file): Set mtime.
8251 (grub_ntfs_dir): Likewise.
8252 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
8253 (grub_reiserfs_iterate_dir): Set mtime.
8254 (grub_reiserfs_dir): Likewise.
8255 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
8256 (grub_fshelp_node): Likewise.
8257 (grub_sfs_iterate_dir): Set mtime.
8258 (grub_sfs_dir): Likewise.
8259 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
8260 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
8261 (grub_xfs_inode): New fields atime, mtime, ctime.
8262 (grub_xfs_dir): Set mtime.
8263 * include/grub/datetime.h (grub_datetime2unixtime): New function.
8264 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
8265 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
8266
8267 Support UDF symlinks.
8268
8269 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
8270 (grub_ufs_read_symlink): New function. All users updated.
8271
8272 Check amiga partmap checksum.
8273
8274 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
8275 (grub_amiga_partition): Likewise.
8276 (amiga_partition_map_checksum): New function.
8277 (amiga_partition_map_iterate): Check checksum.
8278
8279 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8280
8281 ROMFS support.
8282
8283 * Makefile.util.def (libgrubmods.a): Add romfs.
8284 * grub-core/Makefile.core.def (romfs): New module.
8285 * grub-core/fs/romfs.c: New file.
8286
8287 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 Squashfs v4 support.
8290
8291 * Makefile.util.def (libgrubmods.a): Add squash4.
8292 * grub-core/Makefile.core.def (squash4): New module.
8293 * grub-core/fs/squash4.c: New file.
8294 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
8295 disk_input_start, disk_input.
8296 (get_byte): Handle disk_input.
8297 (grub_zlib_disk_read): New function.
8298 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
8299
8300 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8301 2011-05-15 Feiran Zheng <famcool@gmail.com>
8302
8303 * Makefile.util.def (libgrubmods.a): Add minix3.
8304 * grub-core/Makefile.core.def (minix3): New module.
8305 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
8306 (GRUB_MINIX_BSIZE): Removed.
8307 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
8308 (grub_minix_ino_t): New type.
8309 (grub_minix_le_to_cpu_ino): New macro.
8310 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
8311 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
8312 (grub_minix_data): New field block_size.
8313 (grub_minix_read_file): Handle 64-bit correctly.
8314 * grub-core/fs/minix3.c: New file.
8315
8316 2011-05-15 Tristan Gingold <gingold@free.fr>
8317 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
8318 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 IA64 support.
8321
8322 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
8323 * configure.ac: Add ia64-efi target.
8324 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
8325 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
8326 * gentpl.py: Add ia64_efi platform.
8327 Rename x86_efi to efi and Add ia64-efi. All users updated.
8328 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
8329 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
8330 Remove kern/generic/rtc_get_time_ms.c on EFI.
8331 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
8332 kern/ia64/dl_helper.c on ia64-efi.
8333 Add kern/emu/cache.c on emu.
8334 (linux): Use on loader/ia64/efi/linux.c on ia64.
8335 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
8336 whether symbol is a function.
8337 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
8338 (grub_symbol): New field 'isfunc'.
8339 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
8340 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
8341 (grub_dl_load_segments): Place all sections into the same region.
8342 [__ia64__]: Create trampolines and got.
8343 [GRUB_MACHINE_EMU]: Call mprotect.
8344 (grub_dl_resolve_symbols): Resolve symbol type as well.
8345 [__ia64__]: Create function descriptors.
8346 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
8347 (grub_rtc_get_time_ms): ... this. Expressions simplified.
8348 (grub_get_rtc): New function.
8349 * grub-core/kern/emu/cache.c [__ia64__]: New file.
8350 * grub-core/kern/emu/cache.S: Renamed to ...
8351 * grub-core/kern/emu/cache_s.S: ... this.
8352 [__ia64__]: Add a nop.
8353 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
8354 [__ia64__]: New function.
8355 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
8356 * grub-core/kern/ia64/dl.c: New file.
8357 * grub-core/kern/ia64/dl_helper.c: Likewise.
8358 * grub-core/kern/ia64/efi/init.c: New file.
8359 * grub-core/kern/ia64/efi/startup.S: Likewise.
8360 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
8361 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
8362 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
8363 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
8364 * grub-core/loader/ia64/efi/linux.c: New file.
8365 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
8366 (GRUB_MOD_DEP): Likewise.
8367 (grub_dl) [__ia64__]: New fields got and tramp.
8368 (grub_dl): New field 'base'.
8369 (grub_dl_register_symbol): New argument isfunc. All users updated.
8370 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
8371 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
8372 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
8373 (grub_ia64_dl_get_tramp_got_size): New proto.
8374 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
8375 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
8376 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
8377 * include/grub/efi/api.h: Skip call wrappers on ia64.
8378 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
8379 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
8380 * include/grub/elf.h (ELF_ST_INFO): New definition.
8381 * include/grub/ia64/efi/kernel.h: New file.
8382 * include/grub/ia64/efi/memory.h: Likewise.
8383 * include/grub/ia64/efi/time.h: Likewise.
8384 * include/grub/ia64/kernel.h: Likewise.
8385 * include/grub/ia64/setjmp.h: Likewise (from glibc).
8386 * include/grub/ia64/time.h: New file.
8387 * include/grub/ia64/types.h: Likewise.
8388 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
8389 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
8390 New protos.
8391 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
8392 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
8393 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
8394 * util/grub-mkimage.c (image_target_desc): New field pe_target.
8395 All users updated.
8396 (EFI64_HEADER_SIZE): New definition. All users updated.
8397 (image_targets): Add ia64-efi.
8398 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
8399 jumpers_addr. All users updated.
8400 Create function descriptors.
8401 (count_funcs): New function.
8402 (unaligned_uint32): New struct.
8403 (MASK20): New definition.
8404 (MASK19): Likewise.
8405 (MASKF21): Likewise.
8406 (add_value_to_slot_20b): New function.
8407 (add_value_to_slot_21_real): Likewise.
8408 (add_value_to_slot_21): Likewise.
8409 (ia64_kernel_trampoline): New struct.
8410 (nopm): New variable.
8411 (jump): Likewise.
8412 (make_trampoline): New function.
8413 (relocate_addresses): Handle ia64.
8414 (make_reloc_section): Likewise.
8415 (load_image): Likewise.
8416
8417 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
8420 warning. Move variables before code while on it.
8421
8422 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 Fuloong support.
8425
8426 * configure.ac: Rename yeeloong platform to loongson. All users updated.
8427 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
8428 * grub-core/boot/mips/loongson/fuloong.S: New file.
8429 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
8430 Explicitly init CS5536.
8431 [FULOONG]: Don't use serial until CS5536 is available.
8432 Set GPIO based on dumps.
8433 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
8434 [FULOONG]: Handle GPIO and memory controller differences.
8435 Parse machine type in $a2.
8436 * grub-core/boot/mips/startup_raw.S: Determine and save the
8437 architecture.
8438 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
8439 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
8440 init on architecture type.
8441 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
8442 SIS315E. Don't init at_keyboard on fuloong.
8443 (grub_halt): Support Fuloong.
8444 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
8445 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
8446 (loongson_machtypes): New array.
8447 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
8448 type.
8449 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
8450 config. All users updated. Handle CS5536 serial.
8451 * grub-core/term/serial.c (grub_serial_register): Conditionalise
8452 default port on machine type. Register serial as inactive.
8453 * grub-core/video/sis315pro.c: New file.
8454 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
8455 definition.
8456 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
8457 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
8458 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
8459 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
8460 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
8461 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
8462 to ...
8463 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
8464 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
8465 definition.
8466 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
8467 (grub_arch_machine): New extern var.
8468 * include/grub/mips/loongson/serial.h
8469 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
8470 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
8471 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
8472 (GRUB_MACHINE_SERIAL_PORT0): ... this.
8473 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
8474 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
8475 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
8476 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
8477 * include/grub/term.h (grub_term_register_input_inactive): New inline
8478 function.
8479 (grub_term_register_output_inactive): Likewise.
8480 * include/grub/video.h (grub_video_driver_id): New value
8481 GRUB_VIDEO_DRIVER_SIS315PRO.
8482 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
8483 New field "names". All users updated.
8484 New field value IMAGE_FULOONG_FLASH.
8485 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
8486
8487 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
8488
8489 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
8490 and add some clarification.
8491
8492 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
8495 platforms if kernel is compressed.
8496
8497 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
8500 unused modules since currently referrence counter isn't reliable and
8501 there isn't much memory to recover there anyway.
8502
8503 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8504
8505 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
8506 rather than resetting it to allow modules to reference themselves
8507 in init.
8508
8509 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8510
8511 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
8512 counter on dependencies since grub_dl_unref already handles this.
8513
8514 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
8517 on error if not already done.
8518
8519 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 Fix few potential memory misusage.
8522
8523 * grub-core/font/font.c (load_font_index): Don't free char_index to
8524 avoid double free.
8525 (grub_font_load): Zero-fill font at alloc for safety.
8526 Close file on error.
8527 (free_font): Free bmp_idx.
8528
8529 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8530
8531 * docs/grub.texi (Installation): Fix several outdated claims.
8532
8533 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 Handle module_license on windows.
8536
8537 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
8538 sections shifted.
8539 (insert_string): Make argument const char * instead of char *.
8540 (write_section_data): Handle long section names.
8541 Handle module_license.
8542
8543 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8544
8545 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
8546 handle class-free menuentries.
8547 (grub_normal_add_menu_entry): Add a check to be sure.
8548
8549 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8550
8551 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
8552 PgUp and PgDown.
8553
8554 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * configure.ac: Bump version to 1.99.
8557
8558 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 Give ATA device a bit more time on first try in order to allow disks
8561 to spin up.
8562
8563 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
8564 if dev->present is 1. Reset dev->present on failure.
8565 (grub_ata_device_initialize): Set dev->present to 1.
8566 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
8567 (grub_ata_device): New member 'present'.
8568
8569 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8570
8571 * util/grub-mkimage.c (generate_image): Update hash.
8572
8573 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8574
8575 Flush caches on DMA memory.
8576
8577 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
8578 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
8579 (grub_dma_free): Likewise.
8580 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
8581
8582 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8583
8584 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
8585 to avoid asm treating ld and sd as macros.
8586
8587 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8588
8589 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
8590 decompressor.
8591
8592 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8593
8594 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
8595 grub_decompress_core since later would fail if grub_decompress_core
8596 is too far.
8597
8598 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8599
8600 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
8601 R_MIPS_JALR since it's used by newer compiler.
8602
8603 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
8606
8607 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
8610 file_path to 0 for surety.
8611 (grub_chainloader_boot): Set exit_data to NULL.
8612 Unset the loader once done.
8613 (grub_cmd_chainloader): Fix confusing error message if file is empty.
8614
8615 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
8618 unknown key into a dprintf.
8619
8620 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8621
8622 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
8623 on first non-existant partition.
8624
8625 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8626
8627 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
8628 openning fails.
8629 Reported by: Mark Korenberg.
8630
8631 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8632
8633 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
8634 overflow.
8635
8636 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8637
8638 * util/grub-mkimage.c (main): Explicitely flush and sync the output
8639 before closing to ensure that it will be readable by grub-setup.
8640
8641 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8642
8643 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
8644 (devpath_1): Use MAKE_PIWG_PATH.
8645 (devpath_2): Likewise.
8646 (devpath_3): Likewise.
8647 (devpath_4): Likewise.
8648 (devpath_5): Likewise.
8649 (devpath_6): Likewise.
8650
8651 The appleldr.mod was checked that to be binary identical to previous
8652 version.
8653
8654 2011-05-05 Zach <mikezackles>
8655
8656 Support 2010 Macbooks.
8657
8658 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
8659 (devs): Add devpath_6.
8660
8661 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
8664 /dev/random. /dev/urandom is good enough for our purposes (salting).
8665
8666 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
8669
8670 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
8673 hexadecimal.
8674
8675 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
8678 and not 0 on failure.
8679
8680 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
8681
8682 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
8683 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
8684 disk; otherwise grub_fs_probe will not fall back to the next
8685 filesystem.
8686 (grub_pxefs_open): Likewise, for consistency.
8687 Reported and tested by: Ezekiel Grave.
8688
8689 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
8690
8691 * tests/partmap_test.in: Don't hardcode path to parted.
8692 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
8693
8694 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
8695
8696 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
8697 of `ls' to find out which devices are available.
8698
8699 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
8702 than source address for efi mmap buffer.
8703
8704 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
8707 wrong action on non-detecting the magic.
8708
8709 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8710
8711 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
8712 already supplied by another part of the module (fixes compilation on
8713 FreeBSD).
8714
8715 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8716
8717 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
8718 match the one used by mdadm.
8719
8720 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
8721
8722 * po/README: Add instructions for creating po/LINGUAS.
8723
8724 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
8725
8726 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
8727 #551428.
8728
8729 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
8730 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
8731 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
8732 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8733 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
8734 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
8735 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
8736 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
8737 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
8738 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8739 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
8740 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
8741 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
8742 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
8743 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
8744 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
8745 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
8746 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
8747 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
8748 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
8749 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
8750 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
8751
8752 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
8753
8754 * grub-core/kern/emu/getroot.c
8755 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
8756 test that was incorrectly reintroduced in r3214.
8757 Reported by: Ian Dall. Fixes Savannah bug #33133.
8758
8759 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
8760
8761 Fix stack pointer handling in 16-bit relocator.
8762
8763 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
8764 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
8765 Fixes Ubuntu bug #683904.
8766
8767 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
8768
8769 * configure.ac: Bump version to 1.99~rc2.
8770
8771 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
8772
8773 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
8774 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
8775 * grub-core/lib/x86_64/setjmp.S: Likewise.
8776 * grub-core/lib/mips/setjmp.S: Likewise.
8777 * grub-core/lib/powerpc/setjmp.S: Likewise.
8778 * grub-core/lib/sparc64/setjmp.S: Likewise.
8779
8780 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
8783 * grub-core/lib/efi/datetime.c: Likewise.
8784
8785 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
8788 New function.
8789 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
8790 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
8791 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
8792
8793 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
8796 bitmap.
8797 (grub_gfxterm_term_init): Likewise.
8798
8799 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 Take into account the decorations the computing menu entry width.
8802
8803 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
8804 (grub_gfxmenu_create_box): Register get_border_width.
8805 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
8806 if available.
8807 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
8808 get_border_width.
8809
8810 2011-04-18 Endres Puschner <code@e7p.de>
8811
8812 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
8813 Don't skip first class.
8814
8815 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
8818 chunks.
8819 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
8820
8821 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8822
8823 Complete 64-bit division support.
8824
8825 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
8826 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
8827 * include/grub/misc.h (grub_divmod64): Rename to ...
8828 (grub_divmod64_full): ... this.
8829 (grub_divmod64): New inline function.
8830
8831 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 * util/grub-mkimage.c (generate_image): Add forgotten comma.
8834
8835 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
8838 performing the necessary test.
8839
8840 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8841
8842 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
8843 (kfreebsd.elf): Likewise.
8844 (pc-chainloader.elf): Likewise.
8845 (ntldr.elf): Likewise.
8846
8847 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 Identify RAID by its UUID rather than (guessed) name.
8850
8851 * grub-core/disk/raid.c (ascii2hex): New function.
8852 (grub_raid_open): Accept mduuid/%s specification.
8853 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
8854 (get_mdadm_uuid): ... this.
8855 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
8856
8857 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
8860 to negative size.
8861
8862 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
8863
8864 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
8865 btrfs subvolume.
8866 * util/grub.d/20_linux_xen.in: Likewise.
8867
8868 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
8869
8870 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
8871 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
8872
8873 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
8874 Build a list of relevant visible mounts using the mnt_id and
8875 parent_mnt_id fields, and then scan that list at the end.
8876
8877 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
8878
8879 * docs/grub.texi (normal): New section.
8880 (normal_exit): New section.
8881 (Embedded configuration): Add reference to normal.
8882 (GRUB only offers a rescue shell): Likewise.
8883 * docs/grub-dev.texi (Error Handling): Fix typo.
8884
8885 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
8886
8887 * NEWS: Drop obsolete entry about probe-only btrfs support.
8888
8889 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
8890
8891 * util/import_gcry.py: Fix typo.
8892
8893 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8894
8895 * NEWS: Add btrfs support.
8896
8897 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8898 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
8899
8900 BtrFS support. Written by me (Vladimir) with important bugfixes and
8901 even more important testing by Colin.
8902
8903 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
8904 * grub-core/Makefile.core.def (btrfs): Add crc.c.
8905 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
8906 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
8907 mem_input_off and mem_input. All users updated to accept in-RAM input.
8908 (gzio_seek): New function.
8909 (test_zlib_header): Likewise.
8910 (grub_gzio_read): Likewise.
8911 (grub_zlib_decompress): Likewise.
8912 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
8913 Accept partial and non-virtual mounts.
8914 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
8915 avoid receiving /dev/dm-X as device.
8916 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
8917 Handle bind and partial mounts.
8918 * grub-core/lib/crc.c: New file.
8919 * include/grub/deflate.h: Likewise.
8920 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
8921 proto.
8922 * include/grub/lib/crc.h: New file.
8923
8924 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 Implement automatic module license checking according to new GNU
8927 guidelines.
8928
8929 * grub-core/kern/dl.c (grub_dl_check_license): New function.
8930 (grub_dl_load_core): Use grub_dl_check_license.
8931 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
8932 (GRUB_MOD_LICENSE): Likewise.
8933 (GRUB_MOD_DUAL_LICENSE): Likewise.
8934 All modules updated.
8935
8936 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
8937
8938 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
8939 reserved_first_sector to 1. btrfs reserves plenty of space for boot
8940 loaders.
8941 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
8942
8943 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
8946
8947 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8948
8949 * util/grub-fstest.c (read_file): Report GRUB error if file opening
8950 failed.
8951
8952 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8953
8954 * grub-core/kern/file.c (grub_file_open): Don't take into account the
8955 parenthesis in the middle of the filename.
8956
8957 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8958
8959 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
8960 rather than trying to put initrd way too high.
8961 Reported by: Ryan Lortie <desrt@desrt.ca>
8962
8963 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8964
8965 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
8966 improperly removed string.
8967
8968 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
8971 is_disk.
8972 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
8973 (open_device) Likewise.
8974 (grub_util_biosdisk_close): Likewise.
8975 Reported by: Mark Korenberg.
8976
8977 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
8978
8979 * util/grub-mkconfig_lib.in: Add missing quotes.
8980
8981 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
8982
8983 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
8984 is NULL.
8985
8986 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8987
8988 Dynamically count the number of lines for the lower banner.
8989
8990 * grub-core/normal/menu_entry.c (per_term_screen): New member
8991 num_entries.
8992 (print_down): Use num_entries.
8993 (update_screen): Likewise.
8994 (grub_menu_entry_run): Set num_entries.
8995 * grub-core/normal/menu_text.c (menu_viewer_data): New member
8996 num_entries.
8997 (grub_print_message_indented): Move real part to ...
8998 (grub_print_message_indented_real): ... here. Additional argument
8999 dry_run.
9000 (draw_border): Additional argument num_entries.
9001 (print_message): Additional argument dry_run.
9002 (print_entries): Receive menu viewer data.
9003 (grub_menu_init_page): New argment num_entries.
9004 (menu_text_set_chosen_entry): Use num_entries.
9005 (grub_menu_try_text): Likewise.
9006 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
9007 All users updated.
9008 (grub_ucs4_count_lines): New function.
9009 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
9010 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
9011 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
9012 (grub_term_border_height): Likewise.
9013 (grub_term_num_entries): Likewise.
9014
9015 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
9016
9017 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
9018 Remove now unused string.
9019
9020 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
9021
9022 * docs/grub-dev.texi (Finding your way around): Update for 1.99
9023 build system.
9024 (Getting started): GRUB is developed in Bazaar now, not Subversion.
9025
9026 (Comment): Fix typo.
9027 (Getting started): General copy-editing.
9028 (Typical Development Experience): Likewise.
9029 (Error Handling): Likewise.
9030 (Video API): Likewise.
9031
9032 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
9033
9034 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
9035 throughout.
9036
9037 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9038
9039 * util/grub-mkimage.c (main): Handle special naming of yeeloong
9040 directory.
9041
9042 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
9043
9044 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
9045 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
9046 "development".
9047
9048 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
9051 grub_strcpy since the lines aren't necessarily 0-terminated.
9052
9053 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
9056 root on legacy.
9057
9058 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * grub-core/commands/probe.c (options): Argument to set isn't optional.
9061 (GRUB_MOD_INIT): DEVICE isn't optional.
9062
9063 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
9066 word on new line if it's too long anyway. Fixes a hang.
9067
9068 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
9071 const.
9072 * util/grub-setup.c (main): Reuse md device name if available.
9073 * util/raid.c (grub_util_raid_getmembers): Receive device name and
9074 not GRUB name as argument.
9075 Based on patch by: Florian Wagner <fwagner>.
9076
9077 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9080 Place mbi on low memory for better compatibility.
9081
9082 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9083
9084 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
9085
9086 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9087 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
9088
9089 * autogen.sh: Ensure that collate and ctype locale is C.
9090 * conf/Makefile.common: Likewise.
9091
9092 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9093
9094 * grub-core/normal/menu.c: Add missing include.
9095
9096 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
9099
9100 2011-04-08 Martin Zuther <mzuther@mzuther.de>
9101
9102 * util/grub-mkconfig.in: Ignore emacsen backup.
9103
9104 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9105
9106 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
9107 on open.
9108 (grub_util_biosdisk_close): Likewise.
9109
9110 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
9113 const attribute and use grub_isdigit.
9114
9115 2011-04-06 Andrey <dev_null@ukr.net>
9116
9117 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
9118 gcc warning.
9119
9120 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9121
9122 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
9123 useful grub_dprintf's.
9124
9125 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9126
9127 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
9128
9129 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
9132
9133 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 Output errors if theme loading failed.
9136
9137 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
9138 grub_gfxterm_fullscreen on error paths to ...
9139 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
9140 theme loading error.
9141
9142 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9143
9144 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
9145 space for older compilers.
9146 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9147
9148 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9149
9150 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
9151 and report them as not RAID members since they are useless for GRUB.
9152 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9153
9154 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 Increase LVM implementation robustness in order not to crash on
9157 configurations like pvmove. Previously code assumed that in some places
9158 only lvs or only pvs are used whereas it seems that they are used
9159 interchangeably.
9160
9161 * grub-core/disk/lvm.c (read_node): New function.
9162 (read_lv): Use read_node.
9163 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
9164 Match volumes only at the end when all lvs are found. Take both
9165 pvs (first) and lvs (second) into account.
9166 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
9167 mirror_* into node_*. All users updated.
9168 (grub_lvm_stripe): Merge this ...
9169 (grub_lvm_mirror): ... and this ...
9170 (grub_lvm_node): ... into this. All users updated.
9171
9172 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9173
9174 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
9175 of function to allow further scanning for LVMs.
9176
9177 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9178
9179 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
9180 on failed seek as it breaks open fd reusage.
9181
9182 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9183
9184 * util/grub-install.in: Add a recommendation to use --recheck before
9185 reporting bugs.
9186
9187 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
9190 are obtained.
9191
9192 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9193
9194 GRUB developper manual based on existing Internals section and
9195 contributions by the various authors with active copyright assignment.
9196
9197 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
9198 * docs/font_char_metrics.png: New file.
9199 * docs/font_char_metrics.txt: Likewise.
9200 * docs/grub-dev.texi: Likewise.
9201 * docs/grub.texi (Internals): Move from here ...
9202 * docs/grub-dev.texi: ... here.
9203
9204 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
9205
9206 Store the loopback device as data on loopback grub_disk structures,
9207 rather than the file it points to. This fixes use of freed memory
9208 if an existing loopback device is replaced.
9209
9210 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
9211 disk->data, not dev->file.
9212 (grub_loopback_read): Adjust file assignment to match.
9213 Fixes Ubuntu bug #742967.
9214
9215 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
9216
9217 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
9218 when replacing an existing device.
9219
9220 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
9223 memory corruptions.
9224
9225 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
9226 unsigned.
9227 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
9228 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
9229 (grub_jfs_read_inode): Likewise.
9230 (grub_jfs_opendir): Likewise. Remove now useless casts.
9231 (grub_jfs_getent): Likewise.
9232 Make ino a grub_uint32_t rather than int.
9233 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
9234 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
9235 division and module with bit operations.
9236 (grub_jfs_find_file): Make ino a grub_uint32_t.
9237 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
9238
9239 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
9240
9241 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
9242 warning. (This was in fact always initialised before use, but GCC
9243 wasn't smart enough to prove that.)
9244 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
9245
9246 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9247
9248 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
9249 stack alignment.
9250 (efi_wrap_1): Likewise.
9251 (efi_wrap_2): Likewise.
9252 (efi_wrap_3): Likewise.
9253 (efi_wrap_4): Likewise.
9254 (efi_wrap_5): Likewise.
9255 (efi_wrap_6): Likewise.
9256 (efi_wrap_10): Likewise.
9257 Based on information by: Red Hat/Peter Jones.
9258
9259 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
9260
9261 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
9262 set-but-not-used variable.
9263
9264 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
9265
9266 * docs/grub.texi (Simple configuration): Be more explicit about
9267 GRUB_DEFAULT, and add an example.
9268 Reported by: Leslie Rhorer.
9269
9270 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
9271
9272 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
9273 shell".
9274
9275 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
9276
9277 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
9278 * util/grub.d/20_linux_xen.in: Likewise.
9279
9280 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9281
9282 * util/grub.d/10_linux.in: Try alternative config filenames where
9283 we parse config file.
9284 * util/grub.d/20_linux_xen.in: Likewise.
9285
9286 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
9287
9288 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
9289 * util/grub.d/20_linux_xen.in: Likewise.
9290
9291 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9292
9293 * grub-core/disk/raid.c (insert_array): Add few potentially
9294 useful grub_util_info.
9295 (grub_raid_register): Likewise.
9296
9297 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9298
9299 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
9300 Preserve partition number in mdadm code path.
9301
9302 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
9305 few potentially useful grub_util_info.
9306
9307 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9308
9309 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
9310
9311 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
9312
9313 * docs/grub.texi (default): Use @example rather than nested
9314 itemized lists to avoid breaking gendocs.
9315
9316 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
9317
9318 * docs/grub.texi (Future): Update.
9319
9320 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
9321
9322 * docs/grub.texi (Environment): New chapter.
9323 (Changes from GRUB Legacy): Link to "Environment block" section for
9324 details of limitations.
9325 (Simple configuration): Likewise. Link to documentation of gfxmode
9326 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
9327 respectively.
9328 (Shell-like scripting): Note that normal variables are stored in the
9329 environment.
9330 (gettext): Link to documentation of lang and locale_dir.
9331 (list_env): New section.
9332 (load_env): New section.
9333 (save_env): New section.
9334
9335 (Reporting bugs): Fix typo.
9336
9337 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9338
9339 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
9340 the example.
9341
9342 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 * grub-core/term/at_keyboard.c (set_scancodes)
9345 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
9346
9347 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
9348
9349 * docs/grub.texi (Menu-specific commands): Remove some semantics
9350 that were true in GRUB Legacy but not in GRUB 2.
9351 (submenu): New section.
9352 (false): New section.
9353 (read): New section.
9354 (true): New section.
9355
9356 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
9357
9358 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
9359
9360 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
9361
9362 * docs/grub.texi (Simple configuration): Explain some of the
9363 current limitations of grub-mkconfig.
9364 Reported by: Leslie Rhorer.
9365
9366 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 Old macs search for boot.efi rather than for bootia32.efi.
9369
9370 * util/grub-install.in: Copy bootia32.efi to boot.efi.
9371 * util/grub-mkrescue.in: Likewise.
9372 Suggested by: Peter Jones.
9373
9374 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9375
9376 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
9377
9378 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9379
9380 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
9381 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
9382 (grub_lvm_mirror): New struct.
9383 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
9384 (grub_lvm_iterate): Iterate only visible volumes.
9385 (grub_lvm_read): Factor out to ..
9386 (read_lv): ... this. Support mirrors.
9387 (grub_lvm_read): New wrapper function.
9388 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
9389 stripped or mirrored.
9390
9391 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
9394
9395 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
9396
9397 * docs/grub.texi (loopback): New section.
9398
9399 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
9400
9401 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
9402 removed -p option.
9403
9404 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
9405
9406 * docs/grub.texi (BIOS installation): New section, partly based on
9407 previous text in other sections.
9408 (Installing GRUB using grub-install): Replace BIOS discussion with a
9409 cross-reference.
9410 (Images): Likewise.
9411
9412 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * grub-core/kern/emu/hostdisk.c (find_partition_start)
9415 [HAVE_DIOCGDINFO]: Add safety checks.
9416
9417 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9418
9419 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
9420 per default compiled in kernel and prior to 8.0 isn't shipped at all.
9421
9422 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
9423
9424 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
9425 real_sb->size is zero (e.g. RAID-0), get the disk size from
9426 real_sb->data_size instead.
9427 Fixes Ubuntu bug #743136.
9428
9429 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
9432 printf clauses for printing size and start.
9433
9434 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
9437 Reported and tested by: Timothy Nikkel.
9438
9439 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9440
9441 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
9442 (dirty_region_add_real): ... this.
9443 (dirty_region_add): Don't discard margin refresh when performing
9444 scheduled repaint.
9445
9446 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9447
9448 * grub-core/lib/relocator.c (allocate_regstart)
9449 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
9450 terminals are capabple of malloc-free operation.
9451 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
9452 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
9453
9454 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
9455
9456 * util/grub-setup.c: Copy the partition table zone if floppy support
9457 is disabled, even if no partition table is found.
9458
9459 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
9460 during POST if an invalid partition table is contained in the PBR
9461 of the active partition when GRUB is installed to a partition.
9462
9463 2011-03-28 Colin Watson <cjwatson@debian.org>
9464
9465 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
9466 comment.
9467
9468 2011-03-28 Colin Watson <cjwatson@debian.org>
9469
9470 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
9471 to be specific about what kind of RAID device we're scanning for.
9472
9473 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
9474
9475 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
9476 return freed string.
9477
9478 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
9481
9482 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9483
9484 Use libgeom on FreeBSD to detect partitions.
9485
9486 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
9487 (grub-mkrelpath): Likewise.
9488 (grub-script-check): Likewise.
9489 (grub-editenv): Likewise.
9490 (grub-mkpasswd-pbkdf2): Likewise.
9491 (grub-fstest): Likewise.
9492 (grub-mkfont): Likewise.
9493 (grub-mkdevicemap): Likewise.
9494 (grub-probe): Likewise.
9495 (grub-setup): Likewise.
9496 (grub-ofpathname): Likewise.
9497 (grub-mklayout): Likewise.
9498 (example_unit_test): Likewise.
9499 (grub-menulst2cfg): Likewise.
9500 * grub-core/Makefile.core.def (grub-emu): Likewise.
9501 (grub-emu-lite): Likewise.
9502 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
9503 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
9504 define HAVE_DIOCGDINFO.
9505 (follow_geom_up) [FreeBSD]: New function.
9506 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
9507 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
9508 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
9509 unconditionally of HAVE_DIOCGDINFO.
9510
9511 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 Fix FreeBSD compilation problem.
9514
9515 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
9516 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
9517
9518 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
9519
9520 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
9521 Switch back to page zero before loading a kernel, since some kernel
9522 drivers expect that.
9523 Thanks to: Felix Kuehling.
9524
9525 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
9528 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
9529 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
9530
9531 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
9534 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
9535
9536 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
9539 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
9540 malloc is disabled.
9541
9542 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
9545 for modules headers when counting the needed allocation size.
9546
9547 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
9550 if no ASCII character is found to prevent crash.
9551
9552 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
9553
9554 * grub-core/video/bitmap.c (match_extension): Ignore case.
9555
9556 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
9559
9560 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * grub-core/script/parser.y: Declare "time" as valid argument.
9563
9564 2011-03-23 Peter Jones <pjones@redhat.com>
9565
9566 Fix incorrect assert failure reporting.
9567
9568 * grub-core/tests/example_functional_test.c (example_test): Add
9569 a failure comment.
9570 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
9571 (failure_start): ...this. Check that malloc succeeded.
9572 Don't call xvasprintf. Return failure struct.
9573 (failure_append_vtext): New function.
9574 (failure_append_text): Likewise.
9575 (add_failure): Likewise.
9576 (grub_test_assert_helper): Likewise.
9577 * include/grub/test.h (grub_test_assert_helper): New declaration.
9578 (grub_test_assert): Macro rewritten.
9579
9580 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
9583
9584 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9585
9586 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
9587
9588 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9589
9590 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
9591 into GRUB-style one.
9592
9593 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
9596 error and not grub_errno.
9597 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
9598
9599 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
9602 GRUB_USB_SPEED_NONE in case of failure and not the error code.
9603
9604 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9605
9606 * grub-core/efiemu/i386/pc/cfgtables.c
9607 (grub_machine_efiemu_init_tables): Make declaration a prototype.
9608 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
9609 (grub_xnu_unlock): Likewise.
9610 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
9611
9612 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9613
9614 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
9615 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
9616 * grub-core/commands/hashsum.c (aliases): Likewise.
9617 * grub-core/commands/setpci.c (pci_registers): Likewise.
9618 * grub-core/disk/usbms.c (attach_hook): Likewise.
9619 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
9620 (zio_checksum_table): Likewise.
9621 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
9622 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
9623 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
9624 * grub-core/lib/relocator.c (leftovers): Likewise.
9625 (extra_blocks): Likewise.
9626 * grub-core/loader/i386/bsd.c (relocator): Likewise.
9627 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
9628 (modules_last): Likewise.
9629 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
9630 (devices): Likewise.
9631 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
9632 (modules_last): Likewise.
9633 * grub-core/normal/auth.c (users): Likewise.
9634 * grub-core/normal/context.c (initial_menu): Likewise.
9635 (current_menu): Likewise.
9636 * grub-core/normal/crypto.c (crypto_specs): Likewise.
9637 * grub-core/term/serial.c (grub_serial_ports): Likewise.
9638 (grub_serial_terminfo_input_template): Likewise.
9639 (grub_serial_terminfo_output_template): Likewise.
9640 (grub_serial_terminfo_input): Likewise.
9641 (grub_serial_terminfo_output): Likewise.
9642 (registered): Likewise.
9643 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
9644
9645 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9646
9647 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
9648 grub_video_mode_type_t.
9649 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
9650 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
9651 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
9652
9653 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * util/grub-install.in: Correct the x86-64 name as x86_64.
9656
9657 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
9658
9659 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
9660 initial chunk read from the kernel always includes GRUB's multiboot
9661 header, which is now outside the first sector.
9662
9663 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
9664
9665 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
9666 cached mmap_size, so that this works correctly when called multiple
9667 times.
9668 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
9669
9670 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
9671
9672 * docs/grub.texi (Simple configuration): Tidy up formatting.
9673
9674 2011-03-07 Szymon Janc <szymon@janc.net.pl>
9675
9676 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
9677 Set-but-not-used variable removed.
9678
9679 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9680
9681 Workaround yet another IEEE1275 bug.
9682
9683 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9684 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
9685 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
9686 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
9687 is set.
9688 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9689 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
9690
9691 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
9694 error.
9695
9696 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
9697
9698 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
9699 empty, since in that case we can only generate either nothing or a
9700 syntactically invalid configuration file.
9701 Reported by: Michal Suchanek. Fixes Debian bug #612898.
9702
9703 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
9704
9705 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
9706 (Making a GRUB bootable CD-ROM): Likewise.
9707 (Invoking grub-mkrescue): New section.
9708 Reported by: Yann Dirson. Fixes Debian bug #612585.
9709
9710 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
9711
9712 * util/grub-install.in: Remove unnecessary brackets from tr
9713 arguments.
9714 * util/grub.d/10_hurd.in: Likewise.
9715 * util/grub.d/10_kfreebsd.in: Likewise.
9716 * util/grub.d/10_linux.in: Likewise.
9717 * util/grub.d/20_linux_xen.in: Likewise.
9718 Reported by: Jamie Heilman. Fixes Debian bug #612564.
9719
9720 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
9721
9722 * include/grub/file.h (not_easly_seekable): Rename to ...
9723 (not_easily_seekable): ... this. Update all users.
9724
9725 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
9726
9727 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
9728 grub-mkrescue.
9729
9730 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * util/grub-mkimage.c (generate_image): Refuse to create the images
9733 bigger than the actual flash (512K) in Loongson machines. 512K is also
9734 the biggest chip supported by them.
9735
9736 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9737
9738 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
9739
9740 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
9741
9742 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
9743 super_offset field.
9744
9745 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9746
9747 * util/grub-install.in: Ignore install device on platforms
9748 where it doesn't make sense. Always use UUIDs except on pc, efi and
9749 sparc64.
9750 Reported by: Daniel Kahn Gillmor.
9751
9752 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9753
9754 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
9755
9756 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
9759 (iterate_real): Don't rely on partition being non-NULL.
9760
9761 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
9764 supported platforms. Put a compile time assert for this rather than
9765 generate a warning with 32-bit shift.
9766
9767 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
9770 logical expression more readable.
9771
9772 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9773
9774 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
9775 even if some elements have a name.
9776 Reported by: Alexander GQ Gerasiov.
9777
9778 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
9779
9780 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
9781 path unreadable if `grub-probe -t abstraction' fails, for example if
9782 memberlist fails on an LVM volume group.
9783 Reported by: Darius Jahandarie.
9784
9785 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
9786
9787 * docs/grub.texi (Simple configuration): Document
9788 GRUB_PRELOAD_MODULES.
9789
9790 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
9791
9792 * .bzrignore: Remove nonexistent grub-pbkdf2.
9793
9794 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
9795
9796 * configure.ac: Bump version to 1.99~rc1.
9797
9798 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
9801 for safety.
9802
9803 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
9806 module.
9807
9808 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9809
9810 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
9811
9812 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9813
9814 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
9815 diskdevid.
9816
9817 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9818
9819 Fix compilation on cygwin.
9820
9821 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
9822 -R .drectve on cygwin.
9823 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
9824 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
9825 (COND_CYGWIN): New condition.
9826 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
9827 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
9828 not @TARGET_OBJ2ELF@.
9829 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
9830 type to determine whether aux is to be used.
9831
9832 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
9835 realpath'ed device string.
9836 Handle floppy (somewhat).
9837 Issue error in unknown case rather than garbage.
9838 Reported by: Axel Beckert.
9839
9840 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 * util/grub.d/00_header.in (load_video): Handle the case when no video
9843 drivers available.
9844 Thanks to: Axel Beckert.
9845
9846 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9847
9848 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
9849 variable. Fixes problem on big endian platforms.
9850
9851 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9852
9853 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
9854 It doesn't work well there.
9855
9856 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
9859 warning.
9860 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
9861 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
9862 counter.
9863
9864 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 Use alias->path rather than buggy "canon".
9867
9868 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
9869 (ofdisk_hash_add): New argument curcan. All users updated.
9870
9871 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
9872
9873 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
9874
9875 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
9878 loadmask before doing any calculations. Use correct type for offset.
9879 (grub_linux_load64): Likewise.
9880
9881 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
9882
9883 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
9884 with NULL.
9885 (console_grub_equivalences_unshift): Likewise.
9886 Reported by: Daniel Dehennin.
9887
9888 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
9891 (set_env_limn_ro): Likewise.
9892 (GRUB_MOD_INIT): Likewise.
9893 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
9894 ARRAY_SIZE while on it.
9895 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
9896 * grub-core/normal/context.c (grub_env_export): Move from here ...
9897 * grub-core/kern/env.c (grub_env_export): ... here.
9898 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
9899 prefix.
9900 * grub-core/kern/main.c (grub_main): Export root and prefix.
9901 * include/grub/env.h (grub_env_export): Export.
9902 Reported by: Seth Goldberg.
9903
9904 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9905
9906 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9907 Take into account space used by ELF sections and multiboot palette.
9908 Reported by: Grégoire Sutre.
9909
9910 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * BUGS: New file.
9913
9914 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9915
9916 Pass more appropriate video id to Linux.
9917
9918 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
9919 grub_video_get_driver_id and variable gfxpayloadforcelfb to
9920 fill have_vga.
9921 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
9922 shift params->lfb_size.
9923 * include/grub/i386/linux.h: Make an enume out of have_vga values.
9924
9925 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9926
9927 * util/grub-menulst2cfg.c: Add missing include of misc.h.
9928
9929 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
9932 separator and pass bootpath/devid even if only one of them is available.
9933 Reported by: Seth Goldberg.
9934
9935 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
9938 implementations bug on them.
9939
9940 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
9941 memory.
9942 (filter_memory_map): Likewise.
9943
9944 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9945
9946 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
9947 Reported by: nebuchadnezzar.
9948
9949 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9950
9951 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
9952 Reported by: nebuchadnezzar.
9953
9954 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 Submenu default support.
9957
9958 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
9959 auto_boot. All users updated.
9960 Declared static.
9961 Handle chosen and default with submenus.
9962 (grub_menu_execute_with_fallback): Declared static.
9963 Don't notify failure if autobooted. Upper level does it.
9964 (menuentry_eq): New function.
9965 (get_entry_number): Use menuentry_eq.
9966 (show_menu): New parameter "autobooted". All users updated.
9967 (grub_show_menu): Likewise.
9968 * include/grub/normal.h (grub_show_menu): Likewise.
9969 * include/grub/menu.h (grub_menu_execute_entry): Removed.
9970 (grub_menu_execute_with_fallback): Likewise.
9971
9972 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9973
9974 * util/grub-mklayout.c (usage): Update help text.
9975
9976 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
9979
9980 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9981
9982 * util/grub-menulst2cfg.c (main): Trim the line.
9983
9984 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9985
9986 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
9987 (grub_machine_init): Don't check amount of low memory as reportedly
9988 INT 12h can be broken and if low memory is too low we wouldn't have
9989 gotten into grub_machine_init anyway.
9990
9991 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9992
9993 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
9994 (grub_machine_mmap_iterate): Take low memory into account
9995
9996 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9997
9998 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
9999 badfs.
10000 Reported by: TiCPU.
10001
10002 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
10005 members errors.
10006
10007 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
10008
10009 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
10010 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
10011
10012 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
10013
10014 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
10015 openbsd and netbsd types being in part_bsd module.
10016
10017 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
10020 (_FILE_OFFSET_BITS): Likewise.
10021 Reported by: Seth Goldberg.
10022
10023 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10024
10025 * configure.ac: Check for libdevmapper header.
10026
10027 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
10030 avoid aliasing.
10031 (fzap_lookup): Likewise.
10032 (dnode_get): Likewise.
10033 (make_mdn): Likewise.
10034 (zfs_mount): Likewise.
10035 (fzap_iterate): Use temporary pointer to avoid aliasing.
10036 (grub_zfs_read): Likewise.
10037 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
10038 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
10039 pointers to avoid aliasing.
10040 (grub_cmd_xnu_kernel64): Likewise.
10041 (grub_xnu_load_driver): Likewise.
10042
10043 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
10046 aliasing warning.
10047 (grub_cmd_terminal_output): Likewise.
10048 Reported and tested by: Grégoire Sutre.
10049
10050 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10051
10052 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
10053 warning.
10054 Reported and tested by: Grégoire Sutre.
10055
10056 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 * configure.ac: Do CPU substitution even if it's specified explicitly.
10059 Reported and tested by: Alain Greppin.
10060
10061 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10062
10063 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
10064 Reported and tested by: Alain Greppin.
10065
10066 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10067
10068 Satisfy some bison versions need for inttypes.h.
10069
10070 * grub-core/lib/posix_wrap/inttypes.h: New file.
10071 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
10072 (int16_t): Likewise.
10073 (int32_t): Likewise.
10074 (int64_t): Likewise.
10075 Reported and tested by: Alain Greppin.
10076
10077 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10078
10079 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
10080 Silence spurious warning.
10081 Reported and tested by: Alain Greppin.
10082
10083 2011-01-07 Szymon Janc <szymon@janc.net.pl>
10084
10085 * docs/grub.texi (Support automatic decompression): Update with xz
10086 decompression support.
10087
10088 2011-01-07 Szymon Janc <szymon@janc.net.pl>
10089
10090 Improve loaders' kernel command line handling.
10091
10092 * grub-core/lib/cmdline.c: New file.
10093 * include/grub/lib/cmdline.h: Likewise.
10094 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
10095 grub_create_loader_cmdline to create kernel command line.
10096 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10097 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
10098 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
10099 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
10100 (linux): Add lib/cmdline.c on common.
10101
10102 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
10105 inopos might be unaligned.
10106
10107 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
10110 endian transformations.
10111 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10112 Based on report by: Doug Nazar.
10113
10114 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
10115
10116 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
10117 array->members[i].start_sector.
10118 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
10119
10120 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
10123 Reported and tested by: Grégoire Sutre.
10124
10125 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
10126
10127 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
10128 avoid causing test failures by clearing the screen.
10129
10130 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
10131
10132 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
10133 Fix prefix check to handle the case where dir ends with a slash
10134 (most significantly, "/" itself).
10135 Reported by: Michael Vogt.
10136
10137 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
10138
10139 Run terminfo_cls on initing terminfo output to clear the screen and
10140 move the cursor to (0,0).
10141
10142 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
10143 Call grub_terminfo_output_init.
10144 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
10145 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
10146 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
10147
10148 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
10151 only when needed.
10152
10153 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
10154
10155 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
10156 CTRL.
10157
10158 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
10159
10160 The E820 type 5 is BADRAM, not EXEC_CODE.
10161
10162 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
10163 (GRUB_E820_BADRAM): New define.
10164 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
10165 into reserved. Propagate BADRAM.
10166 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
10167 (GRUB_E820_BADRAM): New define.
10168
10169 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
10172 Ignore the memory post-4G.
10173 (grub_relocator_firmware_alloc_region): Additional debug statement.
10174
10175 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10176
10177 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
10178 names.
10179 Reported by: David Pravec.
10180
10181 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
10184 BIOSes.
10185
10186 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10187
10188 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
10189 Prevent overflow.
10190 (grub_reed_solomon_recover): Likewise.
10191
10192 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10193
10194 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
10195
10196 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10197
10198 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
10199 variable.
10200
10201 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
10202
10203 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
10204 descriptions of extract_legacy_entries_source and
10205 extract_legacy_entries_configfile.
10206 Reported by: Seung Soo, Ha.
10207
10208 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
10209
10210 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
10211 on devices that do not implement function 0.
10212
10213 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
10214
10215 * grub-core/fs/hfsplus.c: Make parent unsigned.
10216 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
10217 overflows.
10218 (grub_hfsplus_cmp_extkey): Likewise
10219
10220 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
10221
10222 * util/grub-install.in: Correctly use bootloader_id and not
10223 GRUB_DISTRIBUTOR on efibootmgr line.
10224
10225 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
10228
10229 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
10230
10231 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
10232 Xen and reorder menu item wording to make it clearer that this entry
10233 will launch Xen. Print separate messages when loading Xen and
10234 Linux.
10235
10236 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
10237
10238 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
10239 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
10240 loop in case of incorrect amiga partmap.
10241
10242 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
10243
10244 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
10245 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
10246 Reported by:EHeM.
10247
10248 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
10249
10250 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
10251 spurious warning.
10252 Reported by: crocket
10253
10254 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10255
10256 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
10257 Preload EFIemu.
10258 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
10259
10260 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10261
10262 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
10263 is loaded
10264 (grub_cmd_xnu_kextdir): Likewise.
10265 (grub_cmd_xnu_splash): Likewise.
10266
10267 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 Avoid using Reed-Solomon with 0 redundancy.
10270
10271 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
10272 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
10273 or 0 redundancy.
10274 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
10275 (grub_reed_solomon_recover): Likewise.
10276
10277 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 Don't use disk subsystem in freebsd_boot.
10280
10281 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
10282 (freebsd_biosdev): Likewise.
10283 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
10284 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
10285
10286 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10287
10288 Handling of files of unknown size is currently limited. They can't be
10289 used e.g. for initrd or modules. Moreover gzip handling of not
10290 easily seekable files is buggy. Disable unknown file size for now. May
10291 be inefficient but works.
10292
10293 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
10294 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
10295
10296 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
10297
10298 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
10299 floppy probe.
10300
10301 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
10302
10303 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
10304
10305 2010-12-25 Shea Levy <shlevy>
10306
10307 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
10308
10309 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10310
10311 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
10312 Windows Server 2008.
10313 Reported by: Devin Giddings.
10314
10315 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
10318 writing an error message because of async power management.
10319 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
10320 (grub_reboot): Likewise.
10321
10322 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
10323
10324 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
10325 keep unit tests from failing when they shouldn't.
10326
10327 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
10328
10329 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
10330 previous patch increased the size of the RS code by 20 bytes (at
10331 least with gcc-4.4), so increase this by 20 bytes to match.
10332 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10333
10334 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
10335
10336 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
10337 scratch area. Make sure to initialise chosen in standalone mode as
10338 well as non-standalone.
10339 Reported by: Robert Hooker and Andy Whitcroft.
10340 Tested by: Andy Whitcroft.
10341
10342 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
10343
10344 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
10345 constructing a new unescaped string and passing it to grub_xputs in
10346 one go, rather than passing characters to grub_printf one at a time.
10347
10348 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
10349
10350 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
10351 initialising utf16.
10352
10353 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
10354
10355 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
10356 comment. Add an extra layer of quotation, requiring the output of
10357 this function to be used in a printf format string.
10358 (gettext_printf): New function.
10359 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
10360 Extract translatable strings from here-documents and use a temporary
10361 variable instead, so that xgettext can find them.
10362 * util/grub.d/10_kfreebsd.in: Likewise.
10363 * util/grub.d/10_linux.in: Likewise.
10364 * util/grub.d/20_linux_xen.in: Likewise.
10365
10366 * po/grub.d.sed: New file.
10367 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
10368 arguments. Set c-format flags on all strings extracted from
10369 util/grub.d/ (xgettext refuses to include these itself for strings
10370 it extracted from a shell file, but these really are c-format).
10371
10372 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10373
10374 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
10375 Avoid next pointing to nowhere.
10376
10377 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
10378
10379 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
10380 rather than assuming than rootblock is exactly in the middle.
10381 (grub_affs_label): Likewise.
10382
10383 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
10384
10385 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
10386 reserved_first_sector to 0.
10387 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
10388 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
10389 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
10390
10391 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 Fix handling of UTF-16 UDF labels.
10394
10395 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
10396 (read_string): .. here.
10397 (grub_udf_label): Use read_string.
10398
10399 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
10400
10401 * grub-core/normal/menu_entry.c (run): Execute commands from menu
10402 editor under argument scope.
10403 Reported by: Jordan Uggla
10404
10405 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10406
10407 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
10408
10409 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
10410
10411 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
10412 line, and other keys scroll an entire page (previous handling was
10413 for \r and \n to scroll a page and other keys to scroll two lines).
10414
10415 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10416
10417 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
10418 Set ptrdest to correct get_physical_target_address rather than
10419 incorrect get_virtual_current_address.
10420
10421 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
10422
10423 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
10424 correct cat to grub_uint8_t * rather than grub_uint32_t *.
10425
10426 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
10427
10428 * .bzrignore: Ignore grub-core/rs_decoder.S.
10429
10430 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
10431
10432 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
10433 .mo/.mo.gz opening sequence to ...
10434 (grub_mofile_open_lang): ... here.
10435 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
10436 * util/grub.d/00_header.in (grub_lang): Include country part of
10437 locale.
10438 Reported by: Mario Limonciello.
10439
10440 2010-12-09 Robert Millan <rmh@gnu.org>
10441
10442 * NEWS: Document addition of ZFS support.
10443
10444 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
10445
10446 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
10447 rather than `/ 2', as the latter requires -Wa,--divide which would
10448 require bumping our minimum binutils version.
10449
10450 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
10451
10452 * util/grub-script-check.c (main): Print script line number on
10453 error.
10454
10455 2010-12-01 Robert Millan <rmh@gnu.org>
10456
10457 * grub-core/fs/zfs/zfs.c: New file.
10458 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
10459 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
10460 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
10461 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10462
10463 * include/grub/zfs/dmu.h: Likewise.
10464 * include/grub/zfs/dmu_objset.h: Likewise.
10465 * include/grub/zfs/dnode.h: Likewise.
10466 * include/grub/zfs/dsl_dataset.h: Likewise.
10467 * include/grub/zfs/dsl_dir.h: Likewise.
10468 * include/grub/zfs/sa_impl.h: Likewise.
10469 * include/grub/zfs/spa.h: Likewise.
10470 * include/grub/zfs/uberblock_impl.h: Likewise.
10471 * include/grub/zfs/vdev_impl.h: Likewise.
10472 * include/grub/zfs/zap_impl.h: Likewise.
10473 * include/grub/zfs/zap_leaf.h: Likewise.
10474 * include/grub/zfs/zfs.h: Likewise.
10475 * include/grub/zfs/zfs_acl.h: Likewise.
10476 * include/grub/zfs/zfs_znode.h: Likewise.
10477 * include/grub/zfs/zil.h: Likewise.
10478 * include/grub/zfs/zio.h: Likewise.
10479 * include/grub/zfs/zio_checksum.h: Likewise.
10480
10481 * Makefile.util.def: Build ZFS into libgrubmods.
10482 * grub-core/Makefile.core.def: Build zfs.mod.
10483
10484 2010-11-30 Szymon Janc <szymon@janc.net.pl>
10485
10486 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
10487 variable.
10488 * grub-core/commands/wildcard.c (match_files): Likewise.
10489
10490 2010-11-30 Robert Millan <rmh@gnu.org>
10491
10492 * grub-core/loader/i386/bsd.c
10493 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
10494 whether kernel is loaded using grub_loader_is_loaded(), rather
10495 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
10496 certain error conditions.
10497
10498 2010-11-30 Robert Millan <rmh@gnu.org>
10499
10500 * grub-core/commands/echo.c: Include `<grub/term.h>'.
10501 (grub_cmd_echo): Call grub_refresh() after printing a message.
10502
10503 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
10504
10505 Avoid using tricks for initialising endian variables.
10506
10507 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
10508 Make const.
10509 (GRUB_MOD_INIT): Don't byte-swap.
10510 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
10511 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
10512 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
10513 (grub_swap_bytes32_compile_time): Likewise.
10514 (grub_cpu_to_le32_compile_time): Likewise.
10515 (grub_cpu_to_le16_compile_time): Likewise.
10516
10517 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * util/grub-setup.c (setup): Stop recommending --force. People who
10520 understand the dangers of blocklists are able to find this option
10521 anyway and the ones who don't shouldn't use it anyway.
10522
10523 2010-11-26 Robert Millan <rmh@gnu.org>
10524
10525 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
10526 Update all users.
10527
10528 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
10529
10530 Fix LVM-on-RAID probing.
10531
10532 * util/grub-probe.c (probe): Remember which disk was detected as
10533 RAID (perhaps an LVM physical volume). Use that disk's raidname
10534 rather than that of the top-level disk.
10535
10536 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
10537
10538 Fix cmdline argument quotes for setparams command of menuentry
10539 definitions.
10540
10541 * grub-core/commands/menuentry.c (setparams_prefix): Use single
10542 quotes for arguments.
10543 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
10544 grub_strchrsub function instead.
10545
10546 * include/grub/misc.h (grub_strchrsub): New function.
10547
10548 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
10549
10550 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
10551 effort by skipping "." and ".." entries up-front.
10552 Suggested by: Michael Lazarev.
10553
10554 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
10555
10556 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
10557 ldflags to ldadd, to fix link line ordering.
10558 (none_decompress): Likewise.
10559
10560 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
10561
10562 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
10563 platforms.
10564 (grub-emu-lite): Remove kern/emu/cache.S.
10565
10566 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
10567
10568 * util/deviceiter.c (compare_devices): If the by-id link for a
10569 device couldn't be resolved, fall back to sorting by the by-id link
10570 rather than segfaulting.
10571 Reported and tested by: Daniel Mierswa.
10572
10573 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
10574
10575 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
10576 ldflags, to fix link line ordering.
10577
10578 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
10579
10580 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
10581 linkers are picky about this.
10582
10583 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
10584
10585 * grub-core/Makefile.am (command.lst): Adjust sed expression
10586 ordering so that extended and priority commands aren't treated as
10587 ordinary commands.
10588
10589 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
10590
10591 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
10592 Remove byte-swapping function calls, which are not valid in
10593 structure initialisers.
10594 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
10595 non-const.
10596 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
10597 grub_gpt_partition_type_bios_boot.
10598
10599 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
10600
10601 Fix test program build on GNU/kFreeBSD.
10602
10603 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
10604 $(LIBNVPAIR)' library dependencies.
10605
10606 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
10607
10608 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
10609
10610 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
10611
10612 * util/grub-install.in: Remove excessive quoting that broke
10613 installations to RAID devices.
10614
10615 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
10616
10617 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
10618 bootloader version instead of 0.
10619
10620 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
10621
10622 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
10623 warning.
10624
10625 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
10626
10627 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
10628 retrieve the metadat sector if size isn't known.
10629 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10630
10631 2010-11-18 Robert Millan <rmh@gnu.org>
10632
10633 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
10634 with grub_memcmp().
10635
10636 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
10637
10638 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
10639 arrow.
10640 Reported by: Jordan Uggla.
10641
10642 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 Make better UTF compliant.
10645
10646 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
10647 sequences as incorrect.
10648 (grub_is_valid_utf8): Likewise.
10649 (grub_utf8_to_ucs4): Likewise.
10650 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
10651 (grub_ucs4_to_utf8_alloc): Likewise.
10652 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
10653
10654 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 Make legacy_source behave like source.
10657
10658 * grub-core/commands/legacycfg.c (legacy_file): Don't call
10659 grub_show_menu.
10660 (grub_cmd_legacy_source): Call grub_show_menu if needed.
10661
10662 2010-11-16 Colin Watson <cjwatson@debian.org>
10663
10664 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
10665 (-Wunused implies -Wunused-parameter, but not vice versa).
10666
10667 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
10668
10669 * configure.ac: Make error messages less confusing by testing for
10670 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
10671 accepted, but produces a diagnostic if something else is wrong).
10672
10673 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
10676 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
10677 (now unused).
10678 (grub_keyboard_controller_init)
10679 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
10680 read the initial state since controller isn't inited yet.
10681
10682 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
10683
10684 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
10685 allocate_regbeg may need to create new chunk header.
10686
10687 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10688
10689 Fix quoting in legacy parser.
10690
10691 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
10692 single quotes.
10693 (grub_legacy_parse): Likewise.
10694 Reported by: Jordan Uggla.
10695 Tested by: Jordan Uggla.
10696
10697 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10698
10699 Don't add -lgcc on i386 and x86_64.
10700
10701 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
10702 * conf/Makefile.common (LDADD_KERNEL): Likewise.
10703 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
10704
10705 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 * configure.ac: Add -Wno-trampolines when supported.
10708
10709 2010-11-14 Modestas Vainius <modax@debian.org>
10710
10711 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
10712 fakeraid.
10713
10714 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
10715
10716 Add generic logical block size support for UDF.
10717
10718 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
10719 (GRUB_UDF_BLKSZ): Removed.
10720 (struct grub_udf_data): New field "lbshift" to hold the logical block
10721 size of the file system in log2 format. All users updated.
10722 (sblocklist): Change type to unsigned.
10723 (grub_udf_mount): Change type of "sblklist" to unsigned.
10724 Move AVDP search before VRS recognition, because the latter requires
10725 knowledge of the logical block size, which is detected during the
10726 former.
10727 Detect and validate logical block size during AVDP search, adding
10728 support for block sizes 512, 1024 and 4096.
10729 Make VRS recognition independent of block size.
10730
10731 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
10732
10733 Properly handle deleted files on UDF.
10734
10735 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
10736 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
10737 set.
10738
10739 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
10740
10741 Support reading files larger than 2 GiB.
10742
10743 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
10744 "offset" to grub_off_t.
10745 (grub_udf_read_file): Likewise for parameter "pos".
10746
10747 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
10750 unavailable.
10751 (Simple configuration): Refer to Changes from GRUB Legacy about
10752 save_env availability.
10753
10754 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 * util/grub-install.in: Ignore empty partition table detection
10757 instead of trying to include part_ module.
10758
10759 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10760
10761 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
10762 LVM on RAID support.
10763
10764 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10765
10766 Properly define WORDS_BIGENDIAN in wrapped environments.
10767
10768 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
10769 definition.
10770 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
10771
10772 Reported by: Manoel Rebelo Abranches.
10773 Tested by: Manoel Rebelo Abranches.
10774
10775 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 * util/grub-mkconfig.in: Fix quoting.
10778
10779 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10780
10781 Support big ext2 files.
10782
10783 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
10784 (grub_ext2_read_block): Support triple indirect blocks.
10785 (grub_ext2_read_file): Use 64-bit types and read size_high.
10786 (grub_ext2_open): Read size_high.
10787 Reported by: Ximin Luo.
10788 Tested by: Manoel Rebelo Abranches.
10789
10790 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * util/grub-install.in: Handle filenames containing spaces.
10793 Reported by: Jordan Uggla.
10794 Tested by: Jordan Uggla.
10795
10796 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 * util/grub-mkconfig.in (grub_script_check): New variable.
10799 Use grub_script_check instead of grub-script-check.
10800 Reported by: Barry Jackson.
10801
10802 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10803
10804 * docs/grub.texi (menu): Correct the order.
10805 Reported by: D. Hugh Redelmeier.
10806
10807 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
10810 jump.
10811
10812 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
10813
10814 * include/grub/elfload.h (grub_elf32_size): New parameter.
10815 All users updated.
10816 Return maximum segments alignment.
10817 (grub_elf64_size): Likewise.
10818 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
10819 Return maximum segments alignment.
10820 (grub_elf64_size): Likewise.
10821 * grub-core/loader/powerpc/ieee1275/linux.c:
10822 (grub_linux_claimmap_iterate): New function. Uses the
10823 "available" property in the "memory" node for memory allocation
10824 for kernel in the PowerPC loader.
10825 (grub_linux_load32): Correctly find linux entry point offset.
10826 (grub_linux_load64): Likewise.
10827
10828 2010-11-07 Robert Millan <rmh@gnu.org>
10829
10830 On mips-yeeloong, build with -march=loongson2f when this flag is
10831 available (GCC >= 4.4).
10832 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
10833 `-march=mips3'.
10834 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
10835 or otherwise add -march=mips3.
10836
10837 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
10838
10839 Suppress shell expansion on echo '*' and echo "*" like cases.
10840 Reported by: Jordan Uggla.
10841
10842 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
10843 string arguments before shell expansion.
10844 * tests/grub_cmd_echo.in: New testcases.
10845
10846 2010-11-07 Robert Millan <rmh@gnu.org>
10847
10848 * conf/mips-qemu-mips.rmk: Remove stale file from previous
10849 transition.
10850
10851 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
10852
10853 * grub-core/kern/emu/hostdisk.c
10854 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
10855
10856 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10857
10858 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
10859 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
10860 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
10861
10862 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
10865
10866 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 * util/grub-install.in: Replace useless recomendation to pass
10869 --modules with a recomendation to report a bug.
10870
10871 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 Properly register serial terminfo.
10874 Reported by: Jordan Uggla
10875
10876 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
10877 const.
10878 (grub_serial_terminfo_output_template): Likewise.
10879 (grub_cmd_serial): Register "serial" with terminfo.
10880 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
10881 grub_serial_terminfo_output.
10882
10883 2010-11-05 Robert Millan <rmh@gnu.org>
10884
10885 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
10886 needed).
10887
10888 2010-11-05 Robert Millan <rmh@gnu.org>
10889
10890 On Yeeloong, pass machine type information to Linux.
10891
10892 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
10893 (LOONGSON_MACHTYPE): New macro, set to
10894 "machtype=lemote-yeeloong-2f-8.9inches".
10895 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
10896 additional argument to Linux.
10897
10898 2010-11-04 Robert Millan <rmh@gnu.org>
10899
10900 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
10901 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
10902 (its SATA disks are detected as slaveless IDE master drives on
10903 kFreeBSD).
10904 Reported by Carsten Aulbert.
10905
10906 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
10907
10908 * util/bin2h.c (main): Fix spelling error in generated output.
10909
10910 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
10911
10912 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
10913
10914 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10915
10916 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
10917 vga= option is supplied.
10918
10919 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10920
10921 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
10922 * util/grub.d/10_kfreebsd.in: Likewise.
10923 * util/grub.d/10_linux.in: Likewise.
10924 * util/grub.d/20_linux_xen.in: Likewise.
10925
10926 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10927
10928 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
10929 argument as an argument to no-argument option.
10930
10931 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10932
10933 * util/grub.d/10_linux.in: Add missing load_video with explicit
10934 GRUB_GFXPAYLOAD_LINUX.
10935
10936 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10937
10938 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
10939
10940 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10941
10942 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
10943 elements with invlid index.
10944 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10945 * grub-core/disk/raid.c (insert_array): Automatically reallocate
10946 members.
10947 * include/grub/raid.h (grub_raid_member): New struct.
10948 (grub_raid_array): Transform devices and start_sector into usage of
10949 grub_raid_member. All users updated
10950 (allocated_devs): New member.
10951
10952 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
10955 is modified
10956
10957 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
10958
10959 NetBSD build fix for getline function conflict from gnulib.
10960
10961 * Makefile.util.def (libgrubkern.a): New library for grub kernel
10962 components that depend on gnulib headers.
10963 (libgrubmods.a): Renamed from earlier libgrub.a.
10964 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
10965
10966 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10967
10968 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
10969 install rather than creating a broken install.
10970
10971 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10972
10973 * util/grub-setup.c (argp): Remove misleading example of installing to
10974 a partition.
10975
10976 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10977
10978 * util/grub-setup.c (setup): Clarify the error message.
10979
10980 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10981
10982 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
10983
10984 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10985
10986 * grub-core/kern/emu/misc.c
10987 (grub_make_system_path_relative_to_its_root)
10988 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
10989
10990 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10991
10992 * grub-core/kern/emu/misc.c
10993 (grub_make_system_path_relative_to_its_root): Revert r2882.
10994
10995 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
10998 useless field head. All users updated.
10999 (free_subchunk): Correct handling of IN_REGION subchunk.
11000
11001 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
11002
11003 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
11004 (Supported kernels): Likewise.
11005
11006 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
11007
11008 Make mktemp invocations portable.
11009
11010 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
11011 exit if mktemp fails.
11012 * tests/grub_script_blockarg.in: Likewise.
11013 * tests/partmap_test.in: Likewise.
11014 * tests/util/grub-shell-tester.in: Likewise.
11015 * tests/util/grub-shell.in: Likewise.
11016 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11017 * Makefile.am: Likewise, and chain shell commands with `&&'
11018 instead of ';'.
11019 * util/grub-mkrescue.in: Use the same explicit template as above, and
11020 exit if mktemp fails.
11021
11022 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
11023
11024 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
11025 Linux kernel, reported by Dennis Schridde.
11026
11027 2010-10-17 Szymon Janc <szymon@janc.net.pl>
11028
11029 * grub-core/normal/auth.c (grub_auth_check_authentication):
11030 Set-but-not-used variable removed.
11031
11032 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11033
11034 * docs/grub.texi (GNU/Linux): Document APM unavailability with
11035 32-bit linux protocol.
11036
11037 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
11040 cursor shape for sanity.
11041
11042 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11043
11044 * docs/grub.texi (Installation): Document buggy BIOS install.
11045
11046 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11047
11048 * docs/grub.texi (Installation): Indent.
11049
11050 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11051
11052 * util/grub-setup.c (setup): New parameter allow_floppy.
11053 (arguments): New member allow_floppy.
11054 (argp_parser): Handle --allow-floppy.
11055 (main): Pass allow_floppy.
11056 * util/grub-install.in: New option --allow-floppy passed though to
11057 grub-setup.
11058
11059 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11060
11061 * util/grub-install.in: Handle partitionless disks.
11062
11063 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 * util/grub-setup.c (setup): Don't clean blocklists before readability
11066 verfification.
11067
11068 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11069
11070 * docs/grub.texi (Installation): Document embedding zone. Remove
11071 obsolete grub-install example.
11072
11073 2010-10-16 Szymon Janc <szymon@janc.net.pl>
11074
11075 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
11076 Set-but-not-used variable ifdef'ed.
11077 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
11078 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
11079 variable removed.
11080 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
11081 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
11082 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11083 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
11084 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
11085 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
11086 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
11087 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
11088 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
11089 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
11090 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
11091 Likewise.
11092
11093 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
11096 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
11097 enum value.
11098
11099 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11100
11101 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
11102 synonym to _S5_. Needed for some DSDTs.
11103
11104 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11105
11106 Userspace ACPI parser debugging.
11107
11108 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
11109 headers and add relevant defines. Don't include standard headers.
11110 (main) [GRUB_DSDT_TEST]: New function.
11111 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
11112 Don't declare functions.
11113
11114 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11115
11116 Remove dead grub_efi_mm_fini.
11117
11118 * grub-core/kern/efi/mm.c (allocated_page): Removed.
11119 (ALLOCATED_PAGES_SIZE): Likewise.
11120 (MAX_ALLOCATED_PAGES): Likewise.
11121 (allocated_pages): Likewise.
11122 (grub_efi_allocate_pages): Don't record allocated pages.
11123 (grub_efi_free_pages): Likewise.
11124 (grub_efi_mm_init): Likewise.
11125 (grub_efi_mm_fini): Removed.
11126
11127 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11128
11129 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
11130 (grub_efi_mm_init): Take into account the memory map size increase.
11131
11132 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11133
11134 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
11135 (serial_hw_put): Wait based on real time rather than port reads. Don't
11136 roken ports.
11137 * include/grub/serial.h (grub_serial_port): New field broken.
11138
11139 2010-10-16 Robert Millan <rmh@gnu.org>
11140
11141 * grub-core/kern/emu/misc.c
11142 (grub_make_system_path_relative_to_its_root): Fix premature return
11143 when processing non-root ZFS filesystems.
11144 Reported by Sergio Talens-Oliag.
11145
11146 2010-10-15 Robert Millan <rmh@gnu.org>
11147
11148 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
11149 guarantee compressed ones are processed first.
11150
11151 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11152
11153 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
11154 grub_efiemu_autocore.
11155
11156 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11157
11158 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
11159 rather than 0x1b.
11160 (grub_console_getkey): Use correct jae opcode rather than ja.
11161
11162 2010-10-12 Robert Millan <rmh@gnu.org>
11163
11164 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
11165 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
11166 variable. All references updated.
11167
11168 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
11169
11170 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 Correctly distinguish mdraid flavours.
11173
11174 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
11175 (insert_array): New argument raid.
11176 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
11177 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
11178 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
11179
11180 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
11183 handling of special keys.
11184
11185 2010-10-02 Aleš Nesrsta <starous@volny.cz>
11186
11187 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
11188 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
11189
11190 2010-10-02 Aleš Nesrsta <starous@volny.cz>
11191
11192 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
11193 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
11194 users updated.
11195 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
11196 Use right endpoint when querying descriptor.
11197
11198 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
11199
11200 Clear out 0x80 color bit on EFI.
11201 Tested by: decoder
11202 Reported by: decoder and meta tech.
11203
11204 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
11205 (grub_console_setcolorstate): Clear out 0x80 bit.
11206 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
11207 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
11208 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
11209
11210 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
11213 Set to "auto".
11214
11215 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
11218 mo_file after freeing.
11219
11220 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
11223
11224 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
11227 flags.
11228
11229 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
11232 usage.
11233
11234 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11235
11236 Put terminfo into core on ieee1275 and yeeloong (needed for console).
11237
11238 * gentpl.py: New groups terminfoinkernel and terminfomodule.
11239 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
11240 and terminfo.h when needed.
11241 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
11242 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
11243 (terminfo): Enable only on terminfokernel.
11244 (extcmd): Likewise.
11245 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
11246 * include/grub/lib/arg.h: Likewise.
11247 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
11248 incorrect usage of ->.
11249
11250 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11251
11252 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
11253 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
11254
11255 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11256
11257 Fix coreboot compilation.
11258
11259 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11260 Take VBE info into account even if only text is supported.
11261 (fill_vbe_info): Take into account the case when only VGA text
11262 is supported.
11263 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
11264 on coreboot, multiboot and qemu.
11265
11266 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
11269 debug messages.
11270 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
11271
11272 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11273
11274 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
11275 parameters.
11276
11277 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11278
11279 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
11280 if they were BSD-style.
11281
11282 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 * grub-core/boot/i386/pc/lnxboot.S: Replace
11285 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
11286 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
11287
11288 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 Write embedding zone using Reed-Solomon.
11291
11292 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
11293 * grub-core/Makefile.am (rs_decoder.S): New target.
11294 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
11295 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
11296 (multiboot): Move to RS part.
11297 (post_reed_solomon): New label.
11298 (grub_boot_drive): Move to non-RS part since it's modified in memory
11299 on boot.
11300 Include rs_decoder.S.
11301 * grub-core/lib/reed_solomon.c: New file.
11302 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
11303 New definition.
11304 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
11305 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
11306 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
11307 * include/grub/partition.h (grub_partition_map): Change prototype of
11308 embed to allow returning additional sectors.
11309 * include/grub/reed_solomon.h: New file.
11310 * util/grub-setup.c (setup): Handle Reed-Solomon.
11311
11312 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
11313
11314 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
11315 i386 and x86-64 definedness tests.
11316
11317 2010-09-27 Yves Blusseau <blusseau@zetam.org>
11318
11319 Fix generation of kernel_syms.lst
11320
11321 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
11322 ASM_PREFIX
11323
11324 2010-09-26 Robert Millan <rmh@gnu.org>
11325
11326 Support degraded ZFS arrays in "grub-probe -t device" resolution.
11327
11328 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
11329 the pool is an array of devices, iterate through it and return the
11330 first device that passes a stat() test (instead of blindly returning
11331 the first one).
11332
11333 2010-09-26 Robert Millan <rmh@gnu.org>
11334
11335 Build fixes for GNU/kFreeBSD.
11336
11337 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
11338 to programs that require ZFS conversion.
11339 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
11340 kernels that don't have FLOPPY_MAJOR.
11341
11342 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
11343
11344 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
11345
11346 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
11347
11348 Fix grub-emu build.
11349
11350 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
11351 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
11352 mdraid09 and mdraid1x.
11353
11354 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
11355
11356 Re-enable grub-extras.
11357
11358 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
11359 avoid confusing Automake. Run autogen only twice, once for the top
11360 level and once for grub-core. Add Makefile.util.def and
11361 Makefile.core.def from extra modules to the appropriate autogen
11362 invocations. If Makefile.common exists in an extra module, include
11363 it in both Makefile.util.am and grub-core/Makefile.core.am;
11364 similarly, include any Makefile.util.common file in Makefile.util.am
11365 and any Makefile.core.common file in grub-core/Makefile.core.am.
11366 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
11367 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
11368 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
11369 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
11370
11371 * gentpl.py (gvar_add): Turn GVARS into a set.
11372 (global_variable_initializers): Sort global variables on output.
11373 (vars_init): New function.
11374 (first_time): Likewise.
11375 (library): Ensure that non-global variable initialisations are
11376 emitted before the first time we emit code for a library block.
11377 Append to variables rather than setting them. Only emit
11378 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
11379 each conditional path.
11380 (program): installdir() emits an Autogen macro, so must be passed to
11381 var_add rather than gvar_add.
11382 (data): Likewise.
11383 (script): Likewise.
11384 (rules): New function, centralising handling for different target
11385 types. Set up Guile association lists for first_time and vars_init,
11386 and send most output to a diversion so that variable initialisations
11387 can be emitted first.
11388 (module_rules): Use new rules function.
11389 (kernel_rules): Likewise.
11390 (image_rules): Likewise.
11391 (library_rules): Likewise.
11392 (program_rules): Likewise.
11393 (script_rules): Likewise.
11394 (data_rules): Likewise.
11395
11396 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
11397
11398 * .bzrignore: Add contrib and grub-core/contrib. Remove
11399 grub-core/Makefile.gcry.am.
11400
11401 2010-09-24 Yves Blusseau <blusseau@zetam.org>
11402
11403 * grub-core/lib/LzFind.c: Add missing include.
11404 * grub-core/lib/LzmaEnc.c: Likewise.
11405 * grub-core/script/lexer.c: Likewise.
11406 * grub-core/script/yylex.l: Likewise.
11407 * util/grub-macho2img.c: Likewise.
11408 * util/grub-menulst2cfg.c: Likewise.
11409 * util/grub-mklayout.c: Likewise.
11410 * util/grub-mkpasswd-pbkdf2.c
11411 * util/grub-mkrelpath.c: Likewise.
11412 * util/resolve.c: Likewise.
11413
11414 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
11415
11416 * Makefile.util.def (example_unit_test): Add
11417 grub-core/gnulib/libgnu.a.
11418
11419 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
11420
11421 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
11422
11423 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
11424
11425 Support xz compression on yeeloong.
11426
11427 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
11428 * configure.ac: Check for LZMA.
11429 * grub-core/Makefile.core.def (xz_decompress): New target.
11430 (none_decompress): Likewise.
11431 * grub-core/boot/decompressor/minilib.c: New file.
11432 * grub-core/boot/decompressor/none.c: Likewise.
11433 * grub-core/boot/decompressor/xz.c: Likewise.
11434 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
11435 * grub-core/kern/mips/cache_flush.S: Likewise.
11436 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
11437 * grub-core/kern/mips/startup.S: Move first stage to ...
11438 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
11439 nomacro.
11440 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
11441 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
11442 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
11443 Allocate statically.
11444 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
11445 Allocate statically or use scratch. Don't check CRC32.
11446 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
11447 Allocate statically. Don't check CRC32.
11448 * include/grub/decompressor.h: New file.
11449 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
11450 Removed.
11451 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
11452 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
11453 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
11454 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
11455 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
11456 * util/grub-mkimage.c (grub_compression_t): New type.
11457 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
11458 (image_target_desc): New field default_compression.
11459 (image_targets): Adjust yeeloong targets.
11460 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
11461 (compress_kernel): New parameter comp.
11462 (generate_image): Likewise. Handle new compression case.
11463 (options): New option --compression
11464 (help): Likewise.
11465 (main): Handle new option.
11466
11467 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
11468
11469 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
11470
11471 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
11472
11473 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
11474 typo in __i386__ conditional.
11475
11476 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
11477
11478 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
11479 include.
11480
11481 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
11482
11483 Implement EFI and ACPI multiboot2 extensions.
11484
11485 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
11486 new tags as supported.
11487 (acpiv2_size): New function.
11488 (grub_multiboot_get_mbi_size): Take new tags into account.
11489 (grub_multiboot_make_mbi): Add new tags.
11490 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
11491
11492 2010-09-21 Aleš Nesrsta <starous@volny.cz>
11493
11494 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
11495 Added missing configuration of USB device.
11496
11497 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11498
11499 * grub-core/normal/menu_entry.c (run): Make sure we always return
11500 a value.
11501
11502 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11503
11504 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
11505 NumberOfPages is UINT64 according to the UEFI specification, not
11506 UINTN. Fix printf format.
11507
11508 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11509
11510 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
11511 `err' to grub_usb_err_t.
11512 Reported and tested by: KESHAV P.R.
11513
11514 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11515
11516 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
11517 tpart non-const, so that we can assign to it. (Since this is a
11518 typedef, the constness refers to the pointer rather than what it
11519 points to.)
11520
11521 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11522
11523 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
11524 $(top_srcdir)/grub-core/gnulib as well as
11525 $(top_builddir)/grub-core/gnulib.
11526 Reported by: KESHAV P.R.
11527
11528 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11529
11530 * util/grub-install.in: Fix the bootloader ID option to be
11531 consistently --bootloader-id, not --bootloader_id.
11532 Reported by: KESHAV P.R.
11533
11534 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11535
11536 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
11537 check hash checksum." consistently translatable.
11538
11539 2010-09-21 Yves Blusseau <blusseau@zetam.org>
11540
11541 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
11542 $(top_builddir).
11543
11544 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11545
11546 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
11547 (GRUB_MOD_INIT): Register sha1sum command.
11548 (GRUB_MOD_FINI): Unregister sha1sum command.
11549
11550 2010-09-21 Yves Blusseau <blusseau@zetam.org>
11551
11552 Keep boot and grub directory names in sync with utils scripts
11553
11554 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
11555 * config.h.in: Add previous macros.
11556 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
11557 * util/grub-install.in: Use $bootdir and $grubdir variables.
11558
11559 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11560
11561 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
11562 convert partition names to disk names if the new `convert' parameter
11563 is set.
11564 (grub_util_biosdisk_get_grub_dev): If opening the disk device
11565 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
11566 disk in its own right. This can happen with Xen disk images.
11567
11568 2010-09-21 Yves Blusseau <blusseau@zetam.org>
11569
11570 * util/grub-editenv.c: Update strings to avoid warnings when generating
11571 grub.pot file.
11572 * util/grub-setup.c: Likewise.
11573
11574 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
11575
11576 * configure.ac: Change version to 1.99~beta0.
11577
11578 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
11579
11580 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
11581 Add BADRAM.
11582 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
11583 Likewise.
11584 * include/multiboot.h: Resynced with specification.
11585 * include/multiboot2.h: Likewise.
11586
11587 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
11588
11589 Fix po directory handling.
11590
11591 * configure.ac: Create po/Makefile.in rather than po/Makefile.
11592 * grub-core/gnulib/Makefile.am: Import gettext module.
11593 * m4/gnulib-cache.m4: Likewise.
11594 * m4/gnulib-comp.m4: Likewise.
11595 * m4/gettext.m4: New file, from gnulib.
11596 * m4/glibc2.m4: Likewise.
11597 * m4/iconv.m4: Likewise.
11598 * m4/intdiv0.m4: Likewise.
11599 * m4/intl.m4: Likewise.
11600 * m4/intldir.m4: Likewise.
11601 * m4/intlmacosx.m4: Likewise.
11602 * m4/intmax.m4: Likewise.
11603 * m4/inttypes-pri.m4: Likewise.
11604 * m4/lcmessage.m4: Likewise.
11605 * m4/lib-ld.m4: Likewise.
11606 * m4/lib-link.m4: Likewise.
11607 * m4/lib-prefix.m4: Likewise.
11608 * m4/lock.m4: Likewise.
11609 * m4/nls.m4: Likewise.
11610 * m4/po.m4: Likewise.
11611 * m4/printf-posix.m4: Likewise.
11612 * m4/progtest.m4: Likewise.
11613 * m4/threadlib.m4: Likewise.
11614 * m4/uintmax_t.m4: Likewise.
11615 * m4/visibility.m4: Likewise.
11616 * po/Makefile.am: Remove.
11617 * po/Makefile.in.in: New file, from gettext.
11618 ($(DOMAIN).pot-update): Support POTFILES-shell.
11619 * po/Makevars: New file.
11620 * po/POTFILES-shell: Rename to ...
11621 * po/POTFILES-shell.in: ... this. Update.
11622 * po/POTFILES: Rename to ...
11623 * po/POTFILES.in: ... this. Update.
11624 * po/Rules-quot: New file, from gettext.
11625 * po/boldquot.sed: Likewise.
11626 * po/en@boldquot.header: Likewise.
11627 * po/en@quot.header: Likewise.
11628 * po/insert-header.sin: Likewise.
11629 * po/quot.sed: Likewise.
11630 * po/remove-potcdate.sin: Likewise.
11631
11632 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11633
11634 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
11635
11636 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11637
11638 * util/grub.d/20_linux_xen.in: Use submenus.
11639
11640 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11641
11642 Support submenus.
11643
11644 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
11645 parameter submenu. All users updated.
11646 * grub-core/normal/main.c (free_menu): Rename to ...
11647 (grub_normal_free_menu): ... this. Made global.
11648 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
11649 if requested.
11650 * grub-core/normal/menu_entry.c (screen): New field submenu.
11651 (make_screen): Set submenu.
11652 (run): Open new context if requested.
11653 * include/grub/menu.h (grub_menu_entry): New field submenu.
11654 * include/grub/normal.h (grub_normal_free_menu): New proto.
11655
11656 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 Menu entries extractor.
11659
11660 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
11661 variants.
11662 (GRUB_MOD_INIT): Register new variants.
11663 (GRUB_MOD_FINI): Unregister new variants.
11664 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
11665 into grub_cmd_legacy_source.
11666 (grub_cmd_legacy_source): Implement extractor variants.
11667 (GRUB_MOD_INIT): Register new variants.
11668 (GRUB_MOD_FINI): Unregister new variants.
11669 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
11670 as an extractor.
11671 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
11672 search as an extractor.
11673 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
11674 test as an extractor.
11675 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
11676 as an extractor.
11677 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
11678 (grub_env_new_context): New function.
11679 (grub_env_context_open): Likewise.
11680 (grub_env_extractor_open): Likewise.
11681 (grub_env_extractor_close): Likewise.
11682 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
11683 grub_extractor_level.
11684 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
11685 * include/grub/env.h (grub_env_extractor_open): New proto.
11686 (grub_env_extractor_close): Likewise.
11687 * include/grub/normal.h (grub_extractor_level): New external variable.
11688
11689 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11690
11691 Make cutmem accept a region specification.
11692 Suggested by: Samuel Thibault
11693
11694 * grub-core/mmap/mmap.c (parsemem): New function.
11695 (grub_cmd_cutmem): Handle new arguments.
11696
11697 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11698
11699 New command cutmem.
11700
11701 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
11702 (GRUB_MOD_INIT): Register new command.
11703 (GRUB_MOD_FINI): Unregister new command.
11704
11705 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11706
11707 Support some annoying BSD and Minix subpartitions.
11708
11709 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
11710 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
11711 Properly handle concatenation.
11712 * grub-core/kern/device.c (grub_device_iterate): Likewise.
11713 * grub-core/normal/completion.c (iterate_partition): Likewise.
11714 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
11715 contain partition. All users updated.
11716 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
11717 struct.
11718 (grub_openbsdlabel_partition_map): Likewise.
11719 (bsdlabel_partition_map_iterate): Rename to ..
11720 (iterate_real): ... this. New arguments sector, freebsd and pmap.
11721 (bsdlabel_partition_map_iterate): New function.
11722 (netopenbsdlabel_partition_map_iterate): Likewise.
11723 (netbsdlabel_partition_map_iterate): Likewise.
11724 (openbsdlabel_partition_map_iterate): Likewise.
11725 (GRUB_MOD_INIT): Register new partmaps.
11726 (GRUB_MOD_FINI): Unregister new partmaps.
11727 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
11728 (grub_partition_msdos_iterate): ... this. All users updated.
11729 Don't support embedding other than in a minix partition.
11730 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
11731 proto.
11732 * include/grub/partition.h (grub_partition): New field msdostype.
11733 * util/grub-install.in: Handle openbsd and netbsd types being in
11734 part_bsd module.
11735
11736 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11737
11738 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
11739
11740 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
11741 * grub-core/Makefile.core.def (mdraid): Renamed to ...
11742 (mdraid09): ... this.
11743 (mdraid1x): New module.
11744 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
11745 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
11746
11747 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11748
11749 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
11750 vsprintf.
11751
11752 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11753
11754 * grub-core/commands/efi/lsefimmap.c: Correct header.
11755 * NEWS: Update.
11756
11757 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11758
11759 * util/grub-editenv.c (argp_parser): Don't pass translated strings
11760 as printf format strings; the translations might contain '%' which
11761 could cause a crash.
11762 (main): Likewise.
11763 * util/grub-fstest.c (argp_parser): Likewise.
11764 * util/grub-setup.c (argp_parser): Likewise.
11765 (main): Likewise.
11766
11767 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 Use argp in grub-fstest.
11770
11771 * util/grub-fstest.c: Don't include getopt.h.
11772 Include argp.h.
11773 (root): New variable.
11774 (args_count): Likewise.
11775 (nparm): Likewise.
11776 (num_disks): Likewise.
11777 (images): Likewise.
11778 (cmd): Likewise.
11779 (debug_str): Likewise.
11780 (args): Likewise.
11781 (options): Transformed to argp.
11782 (usage): Removed.
11783 (main): Split argument parsing into ...
11784 (argp_parser): ... this. Changed to argp format.
11785 (argp): New variable.
11786 (main): Use argp_parse.
11787
11788 2010-09-20 Tristan Gingold <gingold@free.fr>
11789 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
11790 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11791
11792 * grub-core/commands/efi/lsefimmap.c: New file.
11793 * grub-core/Makefile.core.def (lsefimmap): New module.
11794 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
11795
11796 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11797
11798 Pause the execution (10s max) if any errors are displayed so the user
11799 has a chance to see them.
11800
11801 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
11802 (grub_print_error): Increment grub_err_printed_errors.
11803 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
11804 execution if any errors were displayed.
11805 (show_menu): Remove old code for pause.
11806 * grub-core/normal/menu_entry.c (run): Likewise.
11807 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
11808 users updated.
11809 (grub_normal_get_char_counter): Likewise.
11810 * include/grub/err.h (grub_err_printed_errors): New external variable.
11811 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
11812
11813 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11814
11815 Support multiboot VBE info.
11816
11817 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11818 Take VBE info into account.
11819 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
11820 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
11821 Call fill_vbe_info when appropriate.
11822 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
11823 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
11824 as supported.
11825 (grub_multiboot_get_mbi_size): Take new tags into account.
11826 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
11827 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
11828 Call fill_vbe_tag when appropriate.
11829 (grub_multiboot_make_mbi): Properly align tags.
11830 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
11831 function.
11832 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
11833 proto.
11834 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
11835
11836 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 Suport manual terminal geometry specification.
11839
11840 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
11841 Save state in grub_ofconsole_terminfo_output.
11842 (grub_ofconsole_term): Use grub_terminfo_getwh.
11843 (grub_ofconsole_getwh): Removed.
11844 * grub-core/term/serial.c (grub_serial_getwh): Removed.
11845 (grub_serial_term): Use grub_terminfo_getwh.
11846 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
11847 (options): New struct.
11848 (OPTION_*): New enum.
11849 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
11850 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
11851 width and height.
11852 (grub_terminfo_getwh): New proto.
11853 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
11854
11855 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11856
11857 Handle legacy "terminal" command.
11858
11859 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
11860 and FLAG_TERMINAL.
11861 (legacy_commands): Add terminal and title.
11862 (grub_legacy_parse): Handle terminal. Simplify title handling.
11863
11864 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
11867 parameters overflow.
11868
11869 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11870
11871 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
11872 widthspec.h.
11873
11874 * docs/grub.texi (Shell-like scripting): Document `!'.
11875 (Network): Simplify using new i386-pc-pxe format. Mention
11876 grub-mknetdir.
11877
11878 * NEWS: Update.
11879
11880 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11881
11882 * Makefile.am (SUBDIRS): Restore "."; it's important to force
11883 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
11884 when needed.
11885
11886 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11887
11888 * grub-core/commands/efi/lsefisystab.c: Correct header.
11889 * grub-core/commands/efi/lssal.c: Likewise.
11890 * grub-core/commands/testload.c: Likewise.
11891
11892 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11893
11894 * util/grub-mkrescue.in: Add explicit root argument to --set to
11895 prevent the UUID being interpreted as an argument to --set (matches
11896 previous change to prepare_grub_to_access_device).
11897
11898 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11899
11900 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
11901 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
11902 the verbosity of later #ifs.
11903 (find_partition_start): Define this function on FreeBSD too.
11904 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
11905 function.
11906 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
11907 on FreeBSD.
11908
11909 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11910
11911 * util/grub-editenv.c: Use argp instead of getopt.
11912
11913 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11914
11915 * util/grub-setup.c: Use argp instead of getopt.
11916
11917 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11918
11919 Use gnulib-tool to create gnulib source files.
11920
11921 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
11922 grub-core/gnulib directories
11923 * .bzignore: Add **/.deps and autogenerated gnulib files
11924 * configure.ac: Assign auxiliary directory to build-aux, add invocation
11925 of gnulib macros, add grub-core/gnulib/Makefile
11926 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
11927 include m4 directory to aclocal.
11928 * Makefile.util.def: Remove direct compilation of gnulib source files
11929 and use the new grub-core/gnulib/libgnu.a.
11930 * build-aux/config.rpath: move config.rpath from top directory to
11931 build-aux
11932 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
11933 in gnulib headers
11934 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
11935 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
11936 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
11937 header.
11938 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
11939 string.
11940
11941 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11942
11943 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
11944 grub-core/genmod.sh and grub-core/gensyminfo.sh
11945
11946 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
11947
11948 Add a test for echo command options.
11949
11950 * tests/grub_cmd_echo.in: New test.
11951 * Makefile.util.def: Rules for new test.
11952
11953 2010-09-20 Szymon Janc <szymon@janc.net.pl>
11954
11955 Remove crc.mod and move crc command to hashsum.mod.
11956 Remove lib/crc.c - users updated to use gcrypt implementation.
11957
11958 * grub-core/commands/crc.c: Removed.
11959 * grub-core/Makefile.core.def (crc): Module removed.
11960 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
11961 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
11962 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
11963 * grub-core/lib/crc.c: Removed.
11964 * include/grub/lib/crc.h: Removed.
11965 * Makefile.util.def (crc): Remove lib/crc.c
11966 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
11967 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
11968 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
11969 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
11970 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
11971 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
11972
11973 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11974
11975 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
11976
11977 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11978
11979 Split config.h for util and core.
11980
11981 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
11982 (ADDR32): Likewise.
11983 (DATA32): Likewise.
11984 (BSS_START_SYMBOL): Likewise.
11985 (END_SYMBOL): Likewise.
11986 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
11987 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
11988 * config.h.in: New file.
11989 * configure.ac: Use config-util.h as config define file.
11990 Rename MACHINE into GRUB_MACHINE. All users updated.
11991 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
11992 updated.
11993 (NESTED_FUNC_ATTR): Likewise.
11994 Substitue new variables.
11995 (COND_HAVE_ASM_USCORE): New conditional.
11996 * grub-core/Makefile.am (ASM_PREFIX): New variable.
11997 (kernel_syms.lst): Use ASM_PREFIX.
11998 * grub-core/kern/emu/console.c: Include config-util.h.
11999 * grub-core/kern/emu/misc.c: Likewise.
12000 * grub-core/kern/emu/mm.c: Likewise.
12001 * include/grub/emu/misc.h: Likewise.
12002 * include/grub/libgcc.h: Likewise.
12003
12004 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12005
12006 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
12007 constants usage.
12008 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
12009 Fix GRUB_TERM_KEY_* constants usage.
12010 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
12011
12012 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12013
12014 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
12015 print pointer.
12016 * grub-core/bus/usb/uhci.c: Remove empty define.
12017 (grub_uhci_check_transfer): Add missing cast.
12018 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
12019 print pointer.
12020 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
12021 PRIuGRUB_SIZE.
12022 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
12023
12024 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12025
12026 * grub-core/Makefile.core.def (legacycfg): Add
12027 lib/i386/pc/vesa_modes_table.c on emu.
12028
12029 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
12030
12031 Reduce number of temporary files generated by build system.
12032
12033 * grub-core/gencmdlist.sh: Removed.
12034 * grub-core/genfslist.sh: Removed.
12035 * grub-core/genhandlerlist.sh: Removed.
12036 * grub-core/genmodsrc.sh: Removed.
12037 * grub-core/genpartmaplist.sh: Removed.
12038 * grub-core/genparttoollist.sh: Removed.
12039 * grub-core/gentermiinallist.sh: Removed.
12040 * grub-core/genvideolist.sh: Removed.
12041
12042 * grub-core/genmod.sh.in: New file.
12043 * grub-core/gensyminfo.sh.in: New file.
12044
12045 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
12046 * conf/Makefile.extra-dist: Update with new files.
12047 * gentpl.py: Remove rules related to unnecessary temporary files.
12048 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
12049 and und-* files.
12050 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
12051 genmod.sh scripts.
12052 * grub-core/bus/usb/uhci.c: Remove empty #define.
12053 * grub-core/genmoddep.awk: Updated with new syminfo format.
12054 * util/bash-completion.d/Makefile.am: Add config.log to
12055 CLEANFILES.
12056
12057 2010-09-19 Yves Blusseau <blusseau@zetam.org>
12058
12059 * Makefile.util.def: Add forgotten $(LIBINTL) library.
12060
12061 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
12062
12063 * util/grub-mkconfig.in: Check the config script for syntax errors
12064 before saving.
12065
12066 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
12067 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12068
12069 * Makefile.util.def (grub-install): Use util/grub-install.in on all
12070 platforms.
12071 * util/grub-install.in: Add EFI and IEEE1275 support.
12072 * util/i386/efi/grub-install.in: Removed.
12073 * util/ieee1275/grub-install.in: Likewise.
12074
12075 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12076
12077 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
12078 (grub_cmd_cmosclean): Likewise.
12079 (GRUB_MOD_INIT): Register command cmosclean.
12080 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
12081 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
12082
12083 2010-09-18 Carles Pina i Estany <carles@pina.cat>
12084 2010-09-18 Aleš Nesrsta <starous@volny.cz>
12085 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12086
12087 Add keyboard layouts support.
12088
12089 * Makefile.util.def (grub-mklayout): New file.
12090 (grub-kbdcomp): New script.
12091 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
12092 Add keyboard_layouts.h.
12093 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
12094 commands/boot.c on yeeloong.
12095 (keylayouts): New module.
12096 * grub-core/bus/usb/ohci.c
12097 * grub-core/bus/usb/uhci.c
12098 * grub-core/bus/usb/usbhub.c (rescan): New variable.
12099 (grub_usb_add_hub): Poll interrupt pipe for device handling.
12100 (attach_root_port): Likewise.
12101 (poll_nonroot_hub): Likewise.
12102 (grub_usb_poll_devices): Likewise.
12103 (detach_device): Close transfer.
12104 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
12105 function.
12106 (grub_usb_bulk_setup_readwrite): Likewise.
12107 (grub_usb_bulk_finish_readwrite): Likewise.
12108 * grub-core/commands/keylayouts.c: New file.
12109 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
12110 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
12111 aliases.
12112 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
12113 support scancode 2.
12114 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
12115 * include/grub/keyboard_layouts.h: New file.
12116 * util/grub-mklayout.c: New file.
12117 * util/grub-kbdcomp.in: Likewise.
12118
12119 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 Unify memory types.
12122
12123 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
12124 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
12125 types.
12126 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
12127 (grub_upper_mem): Likewise.
12128 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
12129 * include/grub/memory.h (grub_memory_type_t): New enum.
12130 All users updated.
12131
12132 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 * grub-core/Makefile.core.def (lsapm): New module.
12135 * grub-core/commands/i386/pc/lsapm.c: New file.
12136 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
12137 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
12138 Likewise.
12139 * include/grub/i386/pc/apm.h: New file.
12140 * include/multiboot.h (multiboot_apm_info): New struct.
12141
12142 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 GRUB-legacy configuration file support.
12145
12146 * Makefile.util.def (grub-menulst2cfg): New util.
12147 * docs/man/grub-menulst2cfg.h2m: New file.
12148 * grub-core/Makefile.core.def (legacycfg): New module.
12149 * grub-core/commands/legacycfg.c: New file.
12150 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
12151 (grub_normal_add_menu_entry): ... this.
12152 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
12153 (grub_normal_set_password): ...this.
12154 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
12155 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
12156 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
12157 * grub-core/lib/legacy_parse.c: New file.
12158 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
12159 * include/grub/i386/pc/vesa_modes_table.h: New file.
12160 * include/grub/legacy_parse.h: Likewise.
12161 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
12162 * util/grub-menulst2cfg.c: New file.
12163
12164 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
12165
12166 * grub-core/kern/emu/hostdisk.c
12167 (convert_system_partition_to_system_disk): Initialise node.
12168
12169 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
12170
12171 * grub-core/kern/emu/hostdisk.c
12172 (convert_system_partition_to_system_disk): Fix devmapper memory pool
12173 leak.
12174 Reported and based on patch by: Modestas Vainius.
12175
12176 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
12177
12178 Fix DM-RAID probing with recent versions of device-mapper udev
12179 rules.
12180
12181 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
12182 canonicalise device paths under /dev/mapper/.
12183 (convert_system_partition_to_system_disk): Compare the
12184 uncanonicalised path to /dev/mapper/ rather than the canonicalised
12185 path, since device nodes under /dev/mapper/ are often symlinks.
12186
12187 2010-09-17 Yves Blusseau <blusseau@zetam.org>
12188
12189 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
12190
12191 2010-09-16 Yves Blusseau <blusseau@zetam.org>
12192
12193 * configure.ac: Avoid some annoying error messages if freetype-config
12194 program is not found.
12195
12196 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
12197
12198 Support RAID on virtio devices, and others.
12199
12200 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
12201 Rename to ...
12202 [__MINGW32__] (grub_find_device): ... this.
12203 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
12204 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
12205 reasonable default if dir is NULL.
12206 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
12207 ...
12208 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
12209 (grub_guess_root_device): Update callers.
12210 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
12211
12212 * util/raid.c (grub_util_getdiskname): Remove.
12213 (grub_util_raid_getmembers): Use grub_find_device rather than
12214 grub_util_getdiskname.
12215
12216 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
12217
12218 * docs/grub.texi (serial): Remove obsolete comment about GRUB
12219 needing to be compiled with serial support.
12220 (ls): Indicate that multiple files are accepted.
12221 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
12222 indicate that multiple files are accepted.
12223
12224 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
12225
12226 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
12227 libgrub_a_init.c, and util/bash-completion.d/grub.
12228
12229 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12230
12231 * util/grub-setup.c (setup): Fix incorrect container semantics.
12232
12233 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12234
12235 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
12236 misusage.
12237 Reported by: J. Nick Terry
12238
12239 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12240
12241 Move embedding routines to partmap sources files.
12242
12243 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
12244 [GRUB_UTIL]: New variable.
12245 (gpt_partition_map_iterate): Set part.parent.
12246 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
12247 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
12248 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
12249 New function.
12250 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
12251 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
12252 (grub_partition_map) [GRUB_UTIL]: New field embed.
12253 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
12254 (setup): Use ->embed.
12255
12256 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12257
12258 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
12259 function.
12260 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
12261 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
12262
12263 2010-09-15 Yves Blusseau <blusseau@zetam.org>
12264
12265 Add function to get completions from usage.
12266
12267 * util/bash-completion.d/grub-completion.bash.in: Add function to get
12268 completions from usage. Use LC_ALL=C to get options properly.
12269
12270 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12271
12272 * grub-core/gnulib/basename-lgpl.c: Imported.
12273 * grub-core/gnulib/basename.c: Likewise.
12274 * grub-core/gnulib/dirname-lgpl.c: Likewise.
12275 * grub-core/gnulib/dirname.c: Likewise.
12276 * grub-core/gnulib/dirname.h: Likewise.
12277 * grub-core/gnulib/stripslash.c: Likewise.
12278
12279 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12280
12281 * grub-core/gnulib/error.c: Resynced.
12282 * grub-core/gnulib/getopt.c: Likewise.
12283 * grub-core/gnulib/getopt_int.h: Likewise.
12284 * grub-core/gnulib/regex.h: Likewise.
12285 * grub-core/gnulib/regex_internal.c: Likewise.
12286 * grub-core/gnulib/regex_internal.h: Likewise.
12287
12288 2010-09-15 Szymon Janc <szymon@janc.net.pl>
12289
12290 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
12291 CRC calculations and validity checks.
12292 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
12293 calculations.
12294
12295 2010-09-15 Szymon Janc <szymon@janc.net.pl>
12296
12297 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
12298
12299 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 Fix incorrect echo options handling.
12302 Reported by: Yves Blusseau.
12303
12304 * include/grub/command.h (grub_command_flags_t): New flags
12305 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
12306 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
12307 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
12308
12309 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12310
12311 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
12312 users updated.
12313 (GRUB_COMMAND_FLAG_MENU): Likewise.
12314 (GRUB_COMMAND_FLAG_BOTH): Likewise.
12315 (GRUB_COMMAND_FLAG_TITLE): Removed.
12316 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
12317 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
12318 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
12319 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
12320 (grub_command_flags_t): New enum. All users updated.
12321
12322 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
12323
12324 Fix solaris compilation.
12325
12326 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
12327 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
12328 (grub-emu-list): Likewise.
12329
12330 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12331
12332 Remove deprecated root command.
12333
12334 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
12335 updated.
12336
12337 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12338
12339 * util/i386/pc/grub-setup.c: Merge this ...
12340 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
12341 * util/grub-setup.c: ... into this.
12342 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
12343 New struct.
12344
12345 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12346
12347 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
12348 possible.
12349
12350 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12351
12352 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
12353 allocate p.
12354
12355 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12356
12357 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
12358 explicit root argument to set to prevent UUID to be interpreted as
12359 argument to set.
12360
12361 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12362
12363 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
12364
12365 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12366
12367 Don't export grub_gate_a20.
12368
12369 * grub-core/kern/i386/pc/init.c: Remove leftovers.
12370 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
12371 to ...
12372 (grub_gate_a20): ... this. All users updated.
12373 * include/grub/i386/pc/init.h: Removed. All users updated.
12374
12375 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12376
12377 Create euro.pf2 which supports most European languages.
12378
12379 * Makefile.am (grubdata_DATA): Add euro.pf2.
12380 (euro.pf2): New target.
12381 (CLEANFILES): Add euro.pf2.
12382
12383 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12384
12385 * configure.ac: Disable emu-usb by default to prevent inadvertent
12386 device takeover.
12387
12388 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12389
12390 Disable usbserial on grub-emu since our libusb code isn't good enough
12391 yet.
12392
12393 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
12394 (usbserial_pl2303): Likewise.
12395 (usbserial_ftdi): Likewise.
12396
12397 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12398
12399 * include/grub/disk.h (grub_disk): Remove has_partitions.
12400 All users updated.
12401 * disk/loopback.c (grub_loopback): Remove has_partitions.
12402 All users updated.
12403 (options): Remove partitions. All users updated.
12404 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
12405 * util/i386/pc/grub-setup.c (setup): copy partition table only when
12406 actual partition table is found.
12407
12408 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12409
12410 Remove readability checks (too many false negatives).
12411
12412 * util/grub-install.in: Remove readability checks.
12413 * util/grub-mkconfig.in: Likewise.
12414 * util/grub.d/10_hurd.in: Likewise.
12415 * util/grub.d/10_kfreebsd.in: Likewise.
12416 * util/grub.d/10_linux.in: Likewise.
12417 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
12418 way.
12419
12420 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 Enable acpi shutdown on all ACPI platforms.
12423
12424 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
12425 on coreboo, multiboot and EFI.
12426 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
12427 (grub_acpi_halt): Likewise.
12428 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
12429 (grub_cmd_halt): Don't call grub_acpi_halt directly.
12430 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
12431 * grub-core/lib/i386/halt.c (grub_halt)
12432 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
12433
12434 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12435
12436 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
12437 context.
12438
12439 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12440
12441 * grub-core/video/efi_gop.c: Fix over-80-chars line.
12442 * grub-core/video/efi_uga.c: Likewise.
12443
12444 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12445
12446 Filter devaliases and never open same device twice.
12447
12448 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
12449 (last_ihandle): Likewise.
12450 (ofdisk_hash_ent): New member shortest.
12451 (ofdisk_hash_add): Add canonical path too.
12452 (scan): New function.
12453 (grub_ofdisk_iterate): Iterate over hashed entries.
12454 (compute_dev_path): Don't add :0.
12455 (grub_ofdisk_open): Don't really open the disk.
12456 (grub_ofdisk_close): Avoid closing unrelated disk.
12457 (grub_ofdisk_read): Implement reopen logic.
12458 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
12459 New function.
12460 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
12461 New proto.
12462
12463 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12464
12465 Fix sparc64.
12466
12467 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
12468 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
12469 right address. Add sparc64_ieee1275_ldflags.
12470 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
12471 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
12472 to grub_host_to_target_addr
12473 (load_image): Likewise.
12474
12475 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12476
12477 * grub-core/normal/completion.c (complete_file): Handle device
12478 containing slash.
12479 Fix based on patch by Doug Nazar.
12480
12481 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12482
12483 grub-mknetdir script.
12484
12485 * Makefile.util.def (grub-mknetdir): New module.
12486 * tests/util/grub-shell.in: Support boot=net
12487 * util/grub-mknetdir.in: New file.
12488
12489 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12490
12491 videoinfo on non-vbe.
12492
12493 * grub-core/Makefile.core.def (vbeinfo): Removed.
12494 (vbetest): Removed.
12495 (videoinfo): New module.
12496 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
12497 * grub-core/commands/i386/pc/vbetest.c: Removed.
12498 * grub-core/commands/videoinfo.c: New file.
12499 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
12500 specification.
12501 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
12502 as vbetest.
12503 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
12504 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
12505 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
12506 mode_number. New parameter mode. All users updated.
12507 (grub_video_gop_iterate): New function.
12508 (grub_video_efi_gop): New member iterate.
12509 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
12510 (grub_vbe_set_video_mode): Remove setting useless fields.
12511 (vbe2videoinfo): New function.
12512 (grub_video_vbe_iterate): Likewise.
12513 (grub_video_vbe_setup): Use vbe2videoinfo.
12514 (grub_video_vbe_print_adapter_specific_info): New function.
12515 (grub_video_vbe_adapter): New fields iterate and
12516 print_adapter_specific_info.
12517 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
12518 All users updated.
12519 (grub_video_mode_info): New field mode_number.
12520 (grub_video_adapter): New fields iterate and
12521 print_adapter_specific_info.
12522
12523 2010-09-13 Tristan Gingold <gingold@free.fr>
12524 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
12525 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12526
12527 * grub-core/commands/efi/lsefisystab.c: New file.
12528 * grub-core/commands/efi/lssal.c: Likewise.
12529 * grub-core/Makefile.core.def (lsacpi): New module.
12530 (lsefisystab): Likewise.
12531 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
12532 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
12533 (grub_efi_sal_system_table): New struct.
12534 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
12535 (grub_efi_sal_system_table_memory_descriptor): Likewise.
12536 (grub_efi_sal_system_table_platform_features): Likewise.
12537 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
12538 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
12539 (grub_efi_sal_system_table_ap_wakeup): Likewise.
12540 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
12541
12542 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12543
12544 Support explicit user claim that a device is BIOS-visible.
12545
12546 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
12547 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
12548 * grub-core/kern/emu/hostdisk.c
12549 (convert_system_partition_to_system_disk): Support mdX.
12550 (find_system_device): New parameter add. All users updated.
12551 (grub_util_biosdisk_is_present): New function.
12552 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
12553 proto.
12554
12555 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12556
12557 Search hints support.
12558
12559 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
12560 All users updated.
12561
12562 2010-09-13 Yves Blusseau <blusseau@zetam.org>
12563
12564 Bash completion script for util commands
12565
12566 * Makefile.am: Add util/bash-completion.d directory
12567 * configure.ac: Likewise.
12568 * util/bash-completion.d/Makefile.am: New file.
12569 * util/bash-completion.d/grub-completion.bash.in: Likewise.
12570
12571 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12572
12573 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
12574 (print_backlog): set backlog_ucs4 and backlog_glyphs.
12575 Reported by: Yves Blusseau.
12576
12577 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12578
12579 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
12580 partition size and offset.
12581
12582 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12583
12584 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
12585
12586 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12587
12588 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
12589
12590 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12591
12592 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
12593 (grub_xvasprintf): Likewise.
12594
12595 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
12598
12599 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12600
12601 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
12602 args ending with NULL.
12603
12604 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12605
12606 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
12607 pointer.
12608
12609 2010-09-11 Szymon Janc <szymon@janc.net.pl>
12610
12611 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
12612
12613 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12614
12615 Shutdown using ACPI.
12616
12617 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
12618 * grub-core/commands/acpihalt.c: New file.
12619 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
12620 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
12621 (grub_acpi_halt): New proto.
12622 (GRUB_ACPI_SLP_EN): New const.
12623 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
12624 (GRUB_ACPI_OPCODE_*): New enum.
12625 (GRUB_ACPI_EXTOPCODE_*): Likewise.
12626
12627 2010-09-11 Tristan Gingold <gingold@free.fr>
12628 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
12629 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12630
12631 * commands/lsacpi.c: New file.
12632 * grub-core/Makefile.core.def (lsacpi): New module.
12633 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
12634 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
12635 (grub_acpi_madt_entry_header): New struct.
12636 (grub_acpi_madt): Likewise.
12637 (grub_acpi_madt_entry_interrupt_override): Likewise.
12638 (grub_acpi_madt_entry_sapic): Likewise.
12639 (grub_acpi_madt_entry_lsapic): Likewise.
12640 (grub_acpi_madt_entry_platform_int_source): Likewise.
12641 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
12642 (PRIuGRUB_UINT32_T): Likewise.
12643 (PRIxGRUB_UINT64_T): Likewise.
12644
12645 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 Implement loading palette on ieee1275_fb.
12648
12649 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
12650 (have_setcolors): Likewise.
12651 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
12652 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
12653 (grub_video_ieee1275_set_palette): Implement.
12654
12655 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12656 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
12657
12658 * util/grub-install.in (grub_partition): New variable.
12659 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
12660 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
12661 Fixes a bug reported by Yves Blusseau.
12662
12663 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12664
12665 Fix emu on mipsel.
12666
12667 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
12668 =grub_cpu_flush_cache on all mips and not only yeeloong.
12669 * configure.ac (COND_mips): New conditional.
12670 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
12671 platforms.
12672 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
12673 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
12674 [GRUB_LINKER_HAVE_INIT]: New function.
12675 (grub_emu_post_init): Likewise.
12676 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
12677 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
12678 * include/grub/cache.h (_mips): Include mips/cache.h.
12679 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
12680 LVM and RAID prototypes.
12681 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
12682 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
12683 function.
12684
12685 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
12686
12687 * util/grub-install.in: Don't try to verify core.img until after
12688 running grub-mkimage to create it.
12689
12690 2010-09-10 Robert Millan <rmh@gnu.org>
12691
12692 * util/grub.d/10_hurd.in: Add misc readability checks.
12693 * util/grub.d/10_kfreebsd.in: Likewise.
12694 * util/grub.d/10_linux.in: Likewise.
12695
12696 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
12697
12698 * util/grub-install.in: ${imgext} won't be defined here until the
12699 install branch is merged. For the meantime, only verify core.img on
12700 i386-pc and sparc64-ieee1275 platforms.
12701
12702 2010-09-10 Robert Millan <rmh@gnu.org>
12703
12704 Solaris support in grub_find_zpool_from_dir(). Thanks
12705 Seth Goldberg for referring to getextmntent() facility.
12706
12707 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
12708 `sys/mkdev.h'.
12709 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
12710 `<sys/mnttab.h>'.
12711 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
12712 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
12713 method for finding zpool name.
12714
12715 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
12716
12717 grub-fstest needs the host and hostfs modules while other utilities
12718 actively require those modules to be absent, so grub-fstest needs
12719 its own initialisation and finalisation code.
12720
12721 * Makefile.am (grub_fstest.pp): New target.
12722 (grub_fstest_init.lst): Likewise.
12723 (grub_fstest_init.c): Likewise.
12724 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
12725
12726 2010-09-10 Robert Millan <rmh@gnu.org>
12727
12728 * configure.ac: Check for `struct statfs.f_fstypename' and
12729 `struct statfs.f_mntfromname'.
12730
12731 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
12732 kFreeBSD-specific code.
12733
12734 2010-09-10 Robert Millan <rmh@gnu.org>
12735
12736 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
12737 on ZFS. Now non-main filesystems are supported as / too.
12738
12739 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
12740
12741 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
12742 and grub-core/disk/host.c to ...
12743 (grub-fstest): ... here. Having the host disk implementation
12744 present confuses grub-probe and other utility programs.
12745
12746 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
12747 when writing to a file, not when writing to stdout.
12748
12749 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
12750
12751 * tests/partmap_test.in: New test for partitions.
12752 * Makefile.util.def: Rules for new test.
12753
12754 2010-09-09 Robert Millan <rmh@gnu.org>
12755
12756 * util/grub-probe.c (probe): Fix a pair of unhandled error
12757 conditions.
12758
12759 2010-09-09 Robert Millan <rmh@gnu.org>
12760
12761 Basic Btrfs support (detection and UUID).
12762
12763 * grub-core/fs/btrfs.c: New file.
12764 * Makefile.util.def (library): Register btrfs.c.
12765 * grub-core/Makefile.core.def: Likewise.
12766
12767 2010-09-08 Robert Millan <rmh@gnu.org>
12768
12769 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
12770 with (optional) parameters to specify device and relative path.
12771 * util/grub-install.in: Use is_path_readable_by_grub() to
12772 verify readability of a few critical files.
12773 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
12774 verify readability of grub.cfg.new.
12775
12776 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
12777
12778 Split minix.mod into minix.mod and minix2.mod.
12779
12780 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
12781 * grub-core/Makefile.core.def (minix2): New module.
12782 * grub-core/fs/minix.c: Use definitions instead of runtime version
12783 checking.
12784 * grub-core/fs/minix2.c: New file.
12785
12786 2010-09-08 Yves Blusseau <blusseau@zetam.org>
12787
12788 Add new --boot-directory option to replace --root-directory
12789
12790 * util/grub-install.in: Add new --boot-directory option
12791 * util/grub-reboot.in: Likewise.
12792 * util/grub-set-default.in: Likewise.
12793
12794 2010-09-08 Yves Blusseau <blusseau@zetam.org>
12795
12796 * util/grub-mkconfig.in: Use new variable.
12797
12798 2010-09-08 Yves Blusseau <blusseau@zetam.org>
12799
12800 * configure.ac: Define some useful variables.
12801
12802 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
12803
12804 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12805 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
12806 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
12807 Use terminfo and don't use cursor-on/cursor-off unless it's known
12808 to work.
12809 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
12810 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
12811
12812 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
12813
12814 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
12815 starts with "(,", fill the drive containing the loaded image in
12816 between those two characters, but expect that a full partition
12817 specification including partition map names will follow.
12818
12819 2010-09-08 Robert Millan <rmh@gnu.org>
12820
12821 * configure.ac: Remove `--enable-grub-fstest' option.
12822 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
12823
12824 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
12825 `grub-fstest' instead of `grub-probe' for readability verification.
12826 * util/grub-probe.c (probe): Remove readability verification kludge.
12827
12828 2010-09-08 Robert Millan <rmh@gnu.org>
12829
12830 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
12831 initializing `GRUB_FS'.
12832
12833 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
12834
12835 Not command (!) support to GRUB script.
12836
12837 * tests/grub_script_not.in: New test.
12838 * Makefile.util.def: Rules for new test.
12839
12840 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
12841 ! command as a special case.
12842 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
12843
12844 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12845
12846 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
12847 grub_free.
12848
12849 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12850
12851 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
12852
12853 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12854
12855 * docs/grub.texi (Shell-like scripting): Documentation for break,
12856 continue, shift and return commands.
12857
12858 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
12859
12860 Rename CD-ROM to cd on BIOS.
12861
12862 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
12863 "cd".
12864 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
12865
12866 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12867
12868 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
12869 * util/grub-probe.c (main): Likewise.
12870 * util/i386/pc/grub-setup.c (main): Likewise.
12871 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
12872 Reported and debugged by: alexxy
12873
12874 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
12877 diagnostic info.
12878
12879 2010-09-05 Jo Shields <directhex@apebox.org>
12880
12881 * util/grub.d/30_os-prober.in: Add missing classes.
12882
12883 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12884
12885 * docs/grub.texi (Theme file format): Document new position format.
12886
12887 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
12890 a table. Use @code instead of @verbatim.
12891
12892 2010-09-05 Colin D Bennett <colin@gibibit.com>
12893
12894 Gfxmenu documentation.
12895
12896 * docs/grub.texi (Theme file format): New chapter.
12897
12898 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12899
12900 * grub-core/Makefile.core.def (xzio): New module.
12901 * grub-core/io/xzio.c: New file.
12902 * grub-core/lib/xzembed/xz.h: New file (from xembed).
12903 * grub-core/lib/xzembed/xz_config.h: Likewise.
12904 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
12905 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
12906 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
12907 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
12908 * grub-core/lib/xzembed/xz_private.h: Likewise.
12909 * grub-core/lib/xzembed/xz_stream.h: Likewise.
12910 * include/grub/file.h (grub_file_filter_id): New compression filter
12911 GRUB_FILE_FILTER_XZIO.
12912
12913 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
12916 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
12917 size.
12918
12919 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12920
12921 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
12922 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
12923
12924 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12925
12926 Uncompressed checksum support.
12927
12928 * grub-core/commands/hashsum.c (options): Add option --uncompress.
12929 (check_list): New parameter uncompress.
12930 (grub_cmd_hashsum): Handle --uncompress.
12931
12932 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 Reintroduce testload.
12935
12936 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
12937 from here ...
12938 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
12939 (GRUB_MOD_INIT): New function.
12940 (GRUB_MOD_FINI): Likewise.
12941 * grub-core/Makefile.core.def (testload): New module.
12942
12943 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12944
12945 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
12946 (uint8_t): New type.
12947 (uint16_t): Likewise.
12948 (uint32_t): Likewise.
12949 (uint64_t): Likewise.
12950
12951 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12952
12953 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
12954
12955 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
12958 Made static.
12959 (grub_gzfile_open): Removed. All users updated.
12960 (GRUB_MOD_INIT): New function.
12961 (GRUB_MOD_FINI): Likewise.
12962 * grub-core/kern/file.c (grub_file_filters_all): New variable.
12963 (grub_file_filters_enabled): Likewise.
12964 (grub_file_open): Handle filters.
12965 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
12966 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
12967 * include/grub/file.h (grub_file_filter_id_t): New type.
12968 (grub_file_filter_t): Likewise.
12969 (grub_file_filters_all): New extern variable.
12970 (grub_file_filters_enabled): Likewise.
12971 (grub_file_filter_register): New inline function.
12972 (grub_file_filter_unregister): Likewise.
12973 (grub_file_filter_disable): Likewise.
12974 (grub_file_filter_disable_compression): Likewise.
12975 * include/grub/gzio.h: Removed.
12976
12977 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12978
12979 Filename expansion support for wildcards in GRUB script.
12980
12981 * tests/grub_script_expansion.in: New test.
12982 * Makefile.util.def: Rule for new test.
12983
12984 * grub-core/commands/wildcard.c: New file, implements filename
12985 expansion support for GRUB script.
12986 * grub-core/Makefile.core.def: Rule update for regexp.mod.
12987 * grub-core/script/argv.c: Cosmetic changes.
12988 * grub-core/script/execute.c (grub_script_arglist_to_argv):
12989 Refactored to perform wildcard expansion on arguments.
12990 * include/grub/script_sh.h (grub_script_wildcard_translator): New
12991 struct.
12992
12993 * tests/util/grub-shell.in: Fix quoting for read input.
12994
12995 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12996
12997 Support for updating environment variables with matched substrings
12998 of regexp.
12999
13000 * tests/grub_cmd_regexp.in: New test.
13001 * Makefile.util.def: Rule for new test.
13002
13003 * grub-core/commands/regexp.c: New option -s to update environment
13004 variables with regexp matches.
13005
13006 2010-09-04 Szymon Janc <szymon@janc.net.pl>
13007
13008 * include/grub/file.h (grub_file): New member not_easly_seekable.
13009 (grub_file_seekable): New inline function.
13010 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
13011 easily seekable.
13012 (grub_gzio_open): Set not_easly_seekable.
13013 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
13014 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
13015
13016 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13017
13018 Support for options to appear multiple times on cmdline.
13019
13020 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
13021 * grub-core/commands/extcmd.c: Support for repeatable option.
13022 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
13023 repeatable option support.
13024
13025 Refactor menuentry into a regular command.
13026
13027 * grub-core/commands/menuentry.c: New file, menuentry command
13028 implementation.
13029 * grub-core/Makefile.core.def: Rule update for normal.mod.
13030 * grub-core/normal/main.c: Moved menuentry creation to
13031 grub-core/commands/menuentry.c.
13032 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
13033 (grub_menu_execute_entry_real): Removed.
13034 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
13035 function.
13036 (grub_script_execute_menuentry): Removed.
13037 * grub-core/script/parser.y (menuentry): Removed.
13038 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
13039 * grub-core/script/yylex.l (menuentry): Removed.
13040 * include/grub/menu.h (grub_menu_init): New prototype.
13041 (grub_menu_fini): New prototype.
13042 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
13043 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
13044 (grub_script_execute_sourcecode): New prototype.
13045
13046 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13047
13048 "return" command for GRUB script functions.
13049
13050 * tests/grub_script_return.in: New test.
13051 * Makefile.util.def: Rules for new test.
13052
13053 * grub-core/script/execute.c (grub_script_return): New function.
13054 * grub-core/script/main.c: Register/unregister return commaond.
13055 * include/grub/script_sh.h (grub_script_return): New prototype.
13056
13057 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13058
13059 "setparams" command to update positional parameters.
13060
13061 * tests/grub_script_setparams.in: New test.
13062 * Makefile.util.def: Rules for new test.
13063
13064 * grub-core/script/argv.c (grub_script_argv_make): New function.
13065 * grub-core/script/execute.c (replace_scope): New function.
13066 (grub_script_setparams): New function.
13067 * grub-core/script/lexer.c: Remove unused variables.
13068 * grub-core/script/main.c: Register/unregister setparams command.
13069 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
13070 (grub_script_setparams): New prototype.
13071
13072 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13073
13074 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
13075 grub_free order.
13076
13077 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13078
13079 Support for passing block of commands as an argument to extcmds.
13080
13081 * Makefile.util.def: Rules for new test.
13082 * tests/grub_script_blockarg.in: New test.
13083 * grub-core/tests/test_blockarg.c: New file, block argument
13084 command used in the test.
13085
13086 * include/grub/extcmd.h (grub_extcmd_context): New struct.
13087 (grub_register_extcmd_prio): New function prototype.
13088 (grub_extcmd_dispatcher): New function prototype.
13089 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
13090 type.
13091 * include/grub/script_sh.h (struct grub_script): New members
13092 `children', `next_siblings' and `refcnt' for block arguments and
13093 reference counting.
13094 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
13095 (grub_script_arg): New member `script' for block argument.
13096 (grub_script_argv): New member `script' for block argument.
13097 (grub_parser_param): New member `scripts' for block argument.
13098 (grub_script_mem_free): New extern function prototype.
13099 (grub_script_ref): New function prototype.
13100 (grub_script_unref): New function prototype.
13101
13102 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
13103 extcmd form to support block arguments.
13104 * grub-core/script/argv.c: Block arguments support.
13105 * grub-core/script/execute.c: Likewise.
13106 * grub-core/script/lexer.c: Likewise.
13107 * grub-core/script/main.c: Likewise.
13108 * grub-core/script/script.c: Likewise.
13109 * grub-core/script/parser.y: Likewise. New `block' and `block0'
13110 non-terminals.
13111
13112 * grub-core/commands/acpi.c: Update extcmd implementations with
13113 grub_extcmd_context_t.
13114 * grub-core/commands/cat.c: Likewise.
13115 * grub-core/commands/echo.c: Likewise.
13116 * grub-core/commands/extcmd.c: Likewise.
13117 * grub-core/commands/hashsum.c: Likewise.
13118 * grub-core/commands/hdparm.c: Likewise.
13119 * grub-core/commands/help.c: Likewise.
13120 * grub-core/commands/hexdump.c: Likewise.
13121 * grub-core/commands/i386/cpuid.c: Likewise.
13122 * grub-core/commands/i386/pc/drivemap.c: Likewise.
13123 * grub-core/commands/i386/pc/halt.c: Likewise.
13124 * grub-core/commands/i386/pc/sendkey.c: Likewise.
13125 * grub-core/commands/iorw.c: Likewise.
13126 * grub-core/commands/keystatus.c: Likewise.
13127 * grub-core/commands/loadenv.c: Likewise.
13128 * grub-core/commands/ls.c: Likewise.
13129 * grub-core/commands/lspci.c: Likewise.
13130 * grub-core/commands/memrw.c: Likewise.
13131 * grub-core/commands/probe.c: Likewise.
13132 * grub-core/commands/search_wrap.c: Likewise.
13133 * grub-core/commands/setpci.c: Likewise.
13134 * grub-core/commands/sleep.c: Likewise.
13135 * grub-core/disk/loopback.c: Likewise.
13136 * grub-core/hello/hello.c: Likewise.
13137 * grub-core/loader/i386/bsd.c: Likewise.
13138 * grub-core/loader/xnu.c: Likewise.
13139 * grub-core/term/gfxterm.c: Likewise.
13140 * grub-core/term/serial.c: Likewise.
13141 * grub-core/tests/lib/functional_test.c: Likewise.
13142
13143 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13144
13145 Multi-line quoted strings support.
13146
13147 * grub-core/script/lexer.c (append_newline): Removed.
13148 (grub_script_lexer_yywrap): Refactored.
13149 (grub_script_lexer_init): Refactored.
13150 * grub-core/script/yylex.l (yywrap): New function.
13151 (grub_lexer_resplit): New function.
13152 (grub_lexer_unput): New function.
13153 * include/grub/script_sh.h (grub_lexer_param): New members, unput
13154 and resplit.
13155 * tests/grub_script_echo1.in: Added few more testcases.
13156
13157 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
13158
13159 * grub-core/kern/misc.c: Don't add abort alias in utils.
13160 Reported by: echoline.
13161
13162 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
13163
13164 Add missing files into "make dist" tarball for other platforms.
13165
13166 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
13167 * conf/Makefile.common (dist_noinst_DATA): New variable.
13168 * conf/Makefile.extra-dist: Added missing make dist files.
13169 * grub-core/Makefile.core.def: Likewise.
13170
13171 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 Compress grub_prefix.
13174
13175 * grub-core/boot/i386/pc/lnxboot.S: Use
13176 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
13177 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
13178 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
13179 GRUB_MACHINE_PREFIX_END. All users updated.
13180 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
13181 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
13182 + 0x40.
13183 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
13184 * util/grub-mkimage.c (image_target_desc): Change data_end to
13185 prefix_end. All users updated.
13186
13187 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
13188
13189 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
13190 value.
13191 (grub_openbsd_boot): Likewise.
13192 (grub_netbsd_boot): Likewise.
13193 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
13194 (grub_xnu_boot): Likewise.
13195
13196 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13197
13198 * configure.ac: Clean LIBS variable after tests.
13199
13200 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
13201
13202 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
13203
13204 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13205
13206 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
13207 echo if libdevmapper will be used.
13208
13209 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
13210
13211 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
13212 constant for the same file.
13213
13214 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
13217
13218 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
13219
13220 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
13221 grub-core/*.pp.
13222
13223 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
13224
13225 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
13226 required by the boot protocol.
13227
13228 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
13229 ebp and edi members.
13230 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
13231 state.ebp and state.edi.
13232 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
13233 %ebp and %edi according to grub_relocator32_ebp and
13234 grub_relocator32_edi respectively.
13235 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
13236 and state.edi.
13237
13238 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13239
13240 Add i386-pc-pxe image target.
13241
13242 * util/grub-mkimage.c (image_target_desc): New enum value
13243 IMAGE_I386_PC_PXE.
13244 (image_targets): New target i386-pc-pxe.
13245 (generate_image): Handle i386-pc-pxe image.
13246
13247 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 Fix grub_pxe_scan.
13250
13251 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
13252 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
13253 All users updated.
13254 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
13255 (grub_pxe_pxenv): Correct type.
13256
13257 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
13258
13259 * NEWS: Document most of the important changes since 1.98.
13260
13261 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
13262
13263 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
13264 generated manual page) a little.
13265
13266 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
13267
13268 * docs/grub.texi: Add myself as an author.
13269
13270 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * Makefile.util.def (libgrub.a): Add missing sunpc.
13273 Reported by: Seth Goldberg.
13274
13275 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13276
13277 Interrupt wrapping and code simplifications.
13278
13279 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
13280 x86_noieee1275 which are functionaly equivalent in this case.
13281 (grub-install): Make source on each platform explicit. Enable on
13282 all noemu.
13283 * gentpl.py (x86_efi_pc): Removed group.
13284 (x86_noefi): Likewise.
13285 (i386_noefi): Likewise.
13286 (x86_noieee1275): Likewise.
13287 (i386_noieee1275): Likewise.
13288 (i386_noefi_noieee1275): Likewise.
13289 (i386_pc_qemu_coreboot): Likewise.
13290 (i386_coreboot_multiboot): Likewise.
13291 (i386_pc_coreboot_multiboot_qemu): Likewise.
13292 (x86_noefi_mips): Likewise.
13293 (noieee1275): Likewise.
13294 (ieee1275_mips): Likewise.
13295 (noemu_noieee1275): Likewise.
13296 (cmos): New group.
13297 (usb): Likewise.
13298 (videoinkernel): Likewise.
13299 (videomodules): Likewise.
13300 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
13301 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
13302 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
13303 include/grub/loader.h, include/grub/msdos_partition.h,
13304 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
13305 include/grub/machine/console.h, include/grub/machine/vga.h,
13306 include/grub/machine/vbe.h, include/grub/machine/init.h,
13307 include/grub/machine/kernel.h, include/grub/cpu/time.h,
13308 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
13309 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
13310 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
13311 * grub-core/Makefile.core.def (kernel): Explicit the source for
13312 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
13313 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
13314 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
13315 Use videoinkernel tag.
13316 (usb): Enable on all usb.
13317 (usbserial_common): Likewise.
13318 (usbserial_pl2303): Likewise.
13319 (usbserial_ftdi): Likewise.
13320 (uhci): Enable on all x86.
13321 (ohci): Enable on all pci.
13322 (cmostest): Enable on all CMOS.
13323 (acpi): Include commands/acpi.c on all platforms.
13324 (halt): Add relevant lib/*/halt.c.
13325 (hdparm): Enable on all pci.
13326 (lspci): Likewise.
13327 (usbtest): Enable on all usb.
13328 (ata): Enable on all pci.
13329 (ata_pthru): Likewise.
13330 (usbms): Enable on all usb.
13331 (usb_keyboard): Likewise.
13332 (font): Use tag videomodules.
13333 (bufio): Likewise.
13334 (datetime): Use tag cmos. Enable on all noemu.
13335 (mmap): Use tags common and x86.
13336 (gfxterm): Use tag videomodules.
13337 (bitmap): Likewise.
13338 (bitmap_scale): Likewise.
13339 (video_fb): Likewise.
13340 (video): Likewise.
13341 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
13342 adjust padding accordingly. All users updated.
13343 (grub_ohci_transaction): Fix bad format specification.
13344 (GRUB_MOD_INIT): Add asserts for struct size.
13345 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
13346 (grub_alloc_td): Likewise.
13347 (grub_free_queue): Likewise.
13348 (grub_uhci_transfer): Likewise.
13349 (grub_uhci_transaction): Fix bad format specification.
13350 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13351 (grub_usb_bulk_readwrite): Likewise.
13352 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
13353 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
13354 Made static.
13355 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
13356 Made static.
13357 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
13358 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
13359 Transformed into C.
13360 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
13361 Moved from here ...
13362 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
13363 ... here. Transformed into C. Made static.
13364 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
13365 Moved from here ...
13366 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
13367 ... here. Transformed into C. Made static.
13368 * grub-core/kern/i386/pc/startup.S
13369 (grub_biosdisk_check_int13_extensions): Moved from here ...
13370 * grub-core/disk/i386/pc/biosdisk.c
13371 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
13372 Made static.
13373 * grub-core/kern/i386/pc/startup.S
13374 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
13375 * grub-core/disk/i386/pc/biosdisk.c
13376 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
13377 Transformed into C. Made static.
13378 * grub-core/kern/i386/pc/startup.S
13379 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
13380 * grub-core/disk/i386/pc/biosdisk.c
13381 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
13382 Transformed into C. Made static.
13383 * grub-core/kern/i386/pc/startup.S
13384 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
13385 * grub-core/disk/i386/pc/biosdisk.c
13386 (grub_biosdisk_get_diskinfo_standard): ... here.
13387 Transformed into C. Made static.
13388 * grub-core/kern/i386/pc/startup.S
13389 (grub_biosdisk_get_num_floppies): Moved from here ...
13390 * grub-core/disk/i386/pc/biosdisk.c
13391 (grub_biosdisk_get_num_floppies): ... here.
13392 Transformed into C. Made static.
13393 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
13394 New function.
13395 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
13396 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
13397 Transformed into C. Made static.
13398 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
13399 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
13400 Transformed into C. Made static.
13401 * grub-core/kern/i386/ieee1275/init.c: Removed.
13402 * grub-core/kern/i386/misc.S: Likewise.
13403 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
13404 Splitted from here ...
13405 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
13406 Transformed into C. Made static. All users updated.
13407 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
13408 Transformed into C. Made static. All users updated.
13409 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
13410 Moved from here...
13411 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
13412 Transformed into C. Made static. All users updated.
13413 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
13414 Moved from here...
13415 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
13416 Transformed into C. Made static. All users updated.
13417 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
13418 Removed (replaced by C version).
13419 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
13420 Moved from here...
13421 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
13422 Transformed into C. Made static.
13423 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
13424 Moved from here...
13425 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
13426 ... here. Transformed into C.
13427 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
13428 Moved from here...
13429 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
13430 ... here. Transformed into C.
13431 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
13432 Moved from here...
13433 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
13434 ... here. Transformed into C. Made static.
13435 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
13436 Moved from here...
13437 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
13438 ... here. Transformed into C.
13439 * grub-core/kern/i386/pc/startup.S
13440 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
13441 * grub-core/video/i386/pc/vbe.c
13442 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
13443 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
13444 Moved from here...
13445 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
13446 ... here. Transformed into C.
13447 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
13448 Moved from here...
13449 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
13450 ... here. Transformed into C.
13451 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
13452 Moved from here...
13453 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
13454 ... here. Transformed into C.
13455 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
13456 Moved from here...
13457 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
13458 ... here. Transformed into C.
13459 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
13460 Moved from here...
13461 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
13462 ... here. Transformed into C. Made static.
13463 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
13464 Moved from here...
13465 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
13466 ... here. Transformed into C. Made static.
13467 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
13468 Moved from here...
13469 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
13470 ... here. Transformed into C. Made static.
13471 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
13472 pxe_rm_entry as third argument.
13473 (grub_bios_interrupt): New function.
13474 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
13475 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
13476 of calling grub_stop.
13477 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
13478 * grub-core/lib/efi/halt.c (grub_halt): ...here.
13479 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
13480 * grub-core/lib/emu/halt.c (grub_halt): ... here.
13481 * grub-core/lib/i386/halt.c: Moved from here ...
13482 * grub-core/lib/i386/halt.c: ... here.
13483 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
13484 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
13485 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
13486 grub_stop_floppy.
13487 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
13488 * include/grub/i386/coreboot/init.h: Removed.
13489 * include/grub/i386/multiboot/init.h: Likewise.
13490 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
13491 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
13492 * include/grub/i386/pc/int.h: New file.
13493 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
13494 (grub_pxe_scan): Removed.
13495 (grub_pxe_call): Update prototype.
13496 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
13497 prototypes.
13498 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
13499 * include/grub/i386/qemu/init.h: Removed.
13500 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
13501 noreturn.
13502 (grub_halt): Likewise.
13503 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
13504 (grub_reboot): Likewise.
13505 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
13506 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
13507 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
13508
13509 2010-08-30 Robert Millan <rmh@gnu.org>
13510
13511 * NEWS: Document addition of ZFS support in `grub-install' and
13512 `grub-mkconfig'.
13513
13514 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
13515
13516 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
13517 dprintf output.
13518
13519 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13520
13521 Remove leftover embedding of font objects.
13522
13523 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
13524 * util/grub-install.in (font): Removed.
13525 * util/grub-mkimage.c (generate_image): Remove font support. All users
13526 updated.
13527
13528 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13529
13530 Remove leftover embedding of font objects.
13531
13532 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
13533 * util/grub-install.in (font): Removed.
13534 * util/grub-mkimage.c (generate_image): Remove font support. All users
13535 updated.
13536
13537 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13538
13539 * docs/grub.texi (Network): Fix reference to pxe_blksize.
13540 Reported by: Ian Turner
13541
13542 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13543
13544 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
13545 timeout to avoid indefinite boot stalling.
13546
13547 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
13550 (grub_env_write_color_highlight): Likewise.
13551
13552 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13553
13554 * grub-core/normal/term.c (print_more): Return to normal and not
13555 to standard state after printing "---MORE---".
13556
13557 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13558
13559 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
13560 Mask out the bit 0x80 since it has other meaning that specifiing color.
13561
13562 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13563
13564 New relocator. Allows for more kernel support and more straightforward
13565 loader writing.
13566
13567 * Makefile.am (BOOTTARGET): New variable.
13568 (QEMU32): Likewise.
13569 (linux.init.x86_64): New target.
13570 (linux.init.i386): Likewise.
13571 (multiboot.elf): Likewise.
13572 (kfreebsd.elf): Likewise.
13573 (kfreebsd.aout): Likewise.
13574 (pc-chainloader.elf): Likewise.
13575 (pc-chainloader.bin): Likewise.
13576 (ntldr.elf): Likewise.
13577 (ntldr.bin): Likewise.
13578 (multiboot2.elf): Likewise.
13579 (kfreebsd.init.x86_64): Likewise.
13580 (kfreebsd.init.i386): Likewise.
13581 (knetbsd.init.i386): Likewise.
13582 (kopenbsd.init.i386): Likewise.
13583 (knetbsd.init.x86_64): Likewise.
13584 (kopenbsd.init.x86_64): Likewise.
13585 (linux-initramfs.i386): Likewise.
13586 (linux-initramfs.x86_64): Likewise.
13587 (kfreebsd-mfsroot.i386.img): Likewise.
13588 (knetbsd.image.i386): Likewise.
13589 (kopenbsd.image.i386): Likewise.
13590 (kopenbsd.image.x86_64): Likewise.
13591 (knetbsd.miniroot-image.i386.img): Likewise.
13592 (kfreebsd-mfsroot.x86_64.img): Likewise.
13593 (knetbsd.image.x86_64): Likewise.
13594 (knetbsd.miniroot-image.x86_64.img): Likewise.
13595 (kfreebsd-mfsroot.i386.gz): Likewise.
13596 (bootcheck-kfreebsd-i386): Likewise.
13597 (kfreebsd-mfsroot.x86_64.gz): Likewise.
13598 (bootcheck-kfreebsd-x86_64): Likewise.
13599 (knetbsd.miniroot-image.i386.gz): Likewise.
13600 (bootcheck-knetbsd-i386): Likewise.
13601 (bootcheck-kopenbsd-i386): Likewise.
13602 (bootcheck-kopenbsd-x86_64): Likewise.
13603 (knetbsd.miniroot-image.x86_64.gz): Likewise.
13604 (bootcheck-knetbsd-x86_64): Likewise.
13605 (bootcheck-linux-i386): Likewise.
13606 (bootcheck-linux-x86_64): Likewise.
13607 (bootcheck-linux16-i386): Likewise.
13608 (bootcheck-linux16-x86_64): Likewise.
13609 (bootcheck-multiboot): Likewise.
13610 (bootcheck-multiboot2): Likewise.
13611 (bootcheck-kfreebsd-aout): Likewise.
13612 (bootcheck-pc-chainloader): Likewise.
13613 (bootcheck-ntldr): Likewise.
13614 (CLEANFILES): Add new targets.
13615 (BOOTCHECKS): New variable.
13616 (.PHONY): Add bootchecks.
13617 (SUCCESSFUL_BOOT_STRING): New variable.
13618 (BOOTCHECK_TIMEOUT): Likewise.
13619 (bootcheck): New target
13620 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
13621 * configure.ac: Correct efiemu excuse.
13622 * docs/grub.texi (Supported kernels): New chapter.
13623 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
13624 include/grub/mm_private.h. Simplify inclusion of
13625 include/grub/boot.h, include/grub/loader.h
13626 and include/grub/msdos_partition.h
13627 (KERNEL_HEADER_FILES) [i386_coreboot]:
13628 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
13629 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
13630 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
13631 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
13632 include/grub/machine/loader.h.
13633 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
13634 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
13635 extra_dist.
13636 (pci.mod): Enable on i386-multiboot.
13637 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
13638 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
13639 i386-qemu.
13640 (relocator.mod): Rewritten.
13641 (aout.mod): Enable on all x86.
13642 (bsd.mod): Likewise.
13643 (ntldr.mod): New module.
13644 (linux.mod): Use loader/i386/linux.c on all x86.
13645 (xnu.mod): Enable on all x86.
13646 (vga_text.mod): disable on EFI and QEMU.
13647 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
13648 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
13649 * grub-core/efiemu/loadcore.c: Likewise.
13650 * grub-core/efiemu/main.c: Likewise.
13651 (grub_efiemu_exit_boot_services): Removed.
13652 (grub_efiemu_finish_boot_services): Likewise.
13653 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
13654 function.
13655 * grub-core/efiemu/i386/nocfgtables.c: New file.
13656 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
13657 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
13658 (grub_efi_finish_boot_services): Moved from here ...
13659 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
13660 Fille finish memory map and related data.
13661 (finish_mmap_buf): New variable.
13662 (grub_efi_uintn_t finish_mmap_size): Likewise.
13663 (grub_efi_uintn_t finish_key): Likewise.
13664 (grub_efi_uintn_t finish_desc_size): Likewise.
13665 (grub_efi_uint32_t finish_desc_version): Likewise.
13666 (grub_efi_is_finished): Likewise.
13667 (grub_efi_get_memory_map): Use saved memory map if EFI is already
13668 finished.
13669 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
13670 (grub_elf64_phdr_iterate): Likewise.
13671 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
13672 (grub_os_area_size): Likewise.
13673 (grub_machine_init): Don't reserve os area.
13674 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
13675 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
13676 * grub-core/kern/i386/loader.S: Removed.
13677 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
13678 (grub_os_area_size): Likewise.
13679 (grub_machine_init): Don't reserve os area.
13680 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
13681 Don't call grub_dl_unload_all.
13682 Don't include loader.S.
13683 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
13684 Declare the memory after _end as available.
13685 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
13686 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
13687 (GRUB_MM_ALLOC_MAGIC): Moved from here...
13688 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
13689 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
13690 * include/grub/mm_private.h (grub_mm_header): ... here.
13691 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
13692 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
13693 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
13694 (grub_mm_region): ..here. Removed addr. Added pre_size.
13695 All users updated.
13696 * grub-core/kern/mm.c (base): Renamed to ...
13697 (grub_mm_base): ... this. Made global.
13698 (grub_real_malloc): Alloc from end of region.
13699 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
13700 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
13701 * grub-core/kern/powerpc/cache_flush.S: ... here.
13702 * grub-core/lib/efi/relocator.c: New file.
13703 * grub-core/lib/i386/relocator.c: Rewritten.
13704 * grub-core/lib/i386/relocator16.S: New file.
13705 * grub-core/lib/i386/relocator32.S: Likewise.
13706 * grub-core/lib/i386/relocator64.S: Likewise.
13707 * grub-core/lib/i386/relocator_asm.S: Rewritten.
13708 * grub-core/lib/i386/relocator_common.S: New file.
13709 * grub-core/lib/ieee1275/relocator.c: Likewise.
13710 * grub-core/lib/mips/relocator.c: Rewritten.
13711 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
13712 stylistic adjustments.
13713 * grub-core/lib/powerpc/relocator.c: New file.
13714 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
13715 * grub-core/lib/relocator.c: Rewritten.
13716 * grub-core/lib/x86_64/relocator_asm.S: New file.
13717 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
13718 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
13719 (bsd_tag): New struct.
13720 (tags): New variable.
13721 (tags_last): Likewise.
13722 (netbsd_module): New struct.
13723 (netbsd_mods): New variable.
13724 (netbsd_mods_last): Likewise.
13725 (openbsd_opts): New parameter "serial".
13726 (OPENBSD_SERIAL_ARG): New definition.
13727 (netbsd_opts): New parameter "serial".
13728 (NETBSD_SERIAL_ARG): New definition.
13729 (grub_freebsd_add_meta): Reorganised into ...
13730 (grub_bsd_add_meta): ...this. All users updated.
13731 (grub_freebsd_add_mmap): Reorganised into ...
13732 (generate_e820_mmap): ...this...
13733 (grub_bsd_add_mmap): ...and this. All users updated.
13734 (grub_freebsd_list_modules): Use tags.
13735 (grub_netbsd_add_meta_module): New function.
13736 (grub_netbsd_list_modules): Likewise.
13737 (grub_freebsd_boot): Use relocator and finish EFI.
13738 (grub_openbsd_boot): Likewise.
13739 (grub_netbsd_setup_video): New function.
13740 (grub_netbsd_add_modules): Likewise.
13741 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
13742 and finish EFI.
13743 (grub_bsd_unload): Unload tags.
13744 (grub_bsd_load_aout): Use relocator.
13745 (grub_bsd_elf32_size_hook): New function.
13746 (grub_bsd_elf32_hook): Use relocator.
13747 (grub_bsd_elf64_size_hook): New function.
13748 (grub_bsd_elf64_hook): Use relocator.
13749 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
13750 (grub_bsd_load): Zero-out openbsd_ramdisk.
13751 (grub_bsd_load): Use relocator.
13752 (grub_cmd_openbsd): Support serial.
13753 (grub_cmd_netbsd): Support modules.
13754 (grub_cmd_freebsd_module): Use relocator.
13755 (grub_netbsd_module_load): New function.
13756 (grub_cmd_netbsd_module): Likewise.
13757 (grub_cmd_openbsd_ramdisk): Likewise.
13758 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
13759 kopenbsd_ramdisk.
13760 (GRUB_MOD_FINI): Unregister new commands.
13761 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
13762 (grub_freebsd_load_elfmodule_obj): Use relocator.
13763 (grub_freebsd_load_elfmodule): Likewise.
13764 (grub_freebsd_load_elf_meta): Likewise.
13765 (grub_netbsd_load_elf_meta): New function.
13766 (grub_openbsd_find_ramdisk): Likewise.
13767 * grub-core/loader/i386/bsd_helper.S: Removed.
13768 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
13769 * grub-core/loader/i386/bsd_trampoline.S: Removed.
13770 * grub-core/loader/i386/efi/linux.c: Likewise.
13771 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
13772 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
13773 (DEFAULT_VIDEO_MODE): Likewise.
13774 (real_mode_target): New variable.
13775 (prot_mode_target): Likewise.
13776 (initrd_mem_target): Likewise.
13777 (relocator): Likewise.
13778 (efi_mmap_buf): Likewise.
13779 (efi_mmap_size): Likewise.
13780 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
13781 (free_pages): Use relocator.
13782 (allocate_pages): Account for efi_mmap and use relocator. Return error.
13783 (grub_linux_setup_video): Return error.
13784 (grub_linux_trampoline_start): Removed.
13785 (grub_linux_trampoline_end): Likewise.
13786 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
13787 andd video parameters depending on firmware.
13788 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
13789 [GRUB_MACHINE_EFI]: Pass EFI parameters.
13790 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
13791 (grub_cmd_initrd): Use relocator.
13792 * grub-core/loader/i386/linux_trampoline.S: Removed.
13793 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
13794 (elf_sec_entsize): Likewise.
13795 (elf_sec_shstrndx): Likewise.
13796 (elf_sections): Likewise.
13797 (grub_multiboot_load): Use relocator.
13798 (grub_multiboot_get_mbi_size): Account for sections.
13799 (grub_multiboot_make_mbi): Use relocator and support sections.
13800 (grub_multiboot_add_elfsyms): New function.
13801 (grub_multiboot_free_mbi): Free sections.
13802 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
13803 (grub_linux_real_target): Likewise.
13804 (grub_linux_real_chunk): Likewise.
13805 (grub_linux16_prot_size): Likewise.
13806 (grub_linux16_boot): Use relocator.
13807 (grub_linux_unload): Unload relocator.
13808 (grub_cmd_linux): Use relocator.
13809 (grub_cmd_initrd): Likewise.
13810 * grub-core/loader/i386/pc/ntldr.c: New file.
13811 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
13812 Don't try to guess CPU frequency.
13813 (grub_xnu_set_video): Stretch bitmap.
13814 (grub_xnu_boot): Use relocator.
13815 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
13816 (grub_linux_unload): Free relocator.
13817 (grub_linux_load32): Use relocator.
13818 (grub_linux_load64): Likewise.
13819 (grub_cmd_initrd): Likewise.
13820 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
13821 (grub_multiboot_unload): Unload relocator.
13822 (grub_cmd_multiboot): Use relocator.
13823 (grub_cmd_module): Likewise.
13824 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
13825 Use relocator and support sections.
13826 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
13827 (elf_sec_entsize): Likewise.
13828 (elf_sec_shstrndx): Likewise.
13829 (elf_sections): Likewise.
13830 (grub_multiboot_load): Use relocator.
13831 (grub_multiboot_get_mbi_size): Account for sections.
13832 (grub_multiboot_make_mbi): Use relocator and support sections.
13833 (grub_multiboot_add_elfsyms): New function.
13834 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
13835 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
13836 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
13837 Prototype changed. All users updated.
13838 (grub_xnu_align_heap): Simplified.
13839 (grub_xnu_writetree_toheap): Likewise.
13840 (grub_xnu_unload): Unload relocator.
13841 (grub_cmd_xnu_kernel): Use relocator.
13842 (grub_cmd_xnu_kernel64): Likewise.
13843 (grub_xnu_register_memory): Simplified.
13844 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
13845 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
13846 EFI is finished.
13847 (grub_console_checkkey): Likewise.
13848 (grub_console_getkey): Likewise.
13849 (grub_console_getwh): Likewise.
13850 (grub_console_getxy): Likewise.
13851 (grub_console_gotoxy): Likewise.
13852 (grub_console_cls): Likewise.
13853 (grub_console_setcolorstate): Likewise.
13854 (grub_console_setcursor): Likewise.
13855 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
13856 * grub-core/tests/boot/kbsd.init-i386.S: New file.
13857 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
13858 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
13859 * grub-core/tests/boot/kernel-8086.S: Likewise.
13860 * grub-core/tests/boot/kernel-i386.S: Likewise.
13861 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
13862 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
13863 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
13864 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
13865 * grub-core/tests/boot/knetbsd.cfg: Likewise.
13866 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
13867 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
13868 * grub-core/tests/boot/linux.cfg: Likewise.
13869 * grub-core/tests/boot/linux.init-i386.S: Likewise.
13870 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
13871 * grub-core/tests/boot/linux16.cfg: Likewise.
13872 * grub-core/tests/boot/multiboot.cfg: Likewise.
13873 * grub-core/tests/boot/multiboot2.cfg: Likewise.
13874 * grub-core/tests/boot/ntldr.cfg: Likewise.
13875 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
13876 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
13877 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
13878 New definition.
13879 * include/grub/dl.h (grub_dl_unload_all): Removed.
13880 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
13881 (grub_efi_finish_boot_services): Change prototype.
13882 (grub_efi_is_finished): New variable.
13883 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
13884 Changed prototype.
13885 (grub_efiemu_finish_boot_services): Removed.
13886 (grub_machine_efiemu_init_tables): New prototype.
13887 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
13888 (grub_elf64_phdr_iterate): Likewise.
13889 * include/grub/i386/bsd.h: Include relocator.h.
13890 (freebsd_tag_header): New struct.
13891 (grub_openbsd_bios_mmap): Removed.
13892 (grub_unix_real_boot): Removed.
13893 (grub_freebsd_load_elfmodule32): Changed prototype.
13894 (grub_freebsd_load_elfmodule_obj64): Likewise.
13895 (grub_freebsd_load_elf_meta32): Likewise.
13896 (grub_freebsd_load_elf_meta64): Likewise.
13897 (grub_freebsd_add_meta): Removed.
13898 (grub_netbsd_load_elf_meta32): New prototype.
13899 (grub_netbsd_load_elf_meta64): Likewise.
13900 (grub_bsd_add_meta): Likewise.
13901 (grub_openbsd_ramdisk_descriptor): New struct.
13902 (grub_openbsd_find_ramdisk32): New prototype.
13903 (grub_openbsd_find_ramdisk64): Likewise.
13904 * include/grub/i386/coreboot/loader.h: Removed.
13905 * include/grub/i386/efi/loader.h: Likewise.
13906 * include/grub/i386/ieee1275/loader.h: Likewise.
13907 * include/grub/i386/linux.h (linux_kernel_header): Change void *
13908 to grub_uint32_t.
13909 * include/grub/i386/loader.h: Removed.
13910 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
13911 value.
13912 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
13913 (grub_phys_addr_t): New type.
13914 (grub_vtop): New inline function.
13915 (grub_map_memory): Likewise.
13916 (grub_unmap_memory): Likewise.
13917 * include/grub/i386/multiboot/loader.h: Removed.
13918 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
13919 (NETBSD_BTINFO_CONSOLE): New definition.
13920 (NETBSD_BTINFO_SYMTAB): Likewise.
13921 (NETBSD_BTINFO_MODULES): Likewise.
13922 (NETBSD_BTINFO_FRAMEBUF): Likewise.
13923 (grub_netbsd_bootinfo): New struct.
13924 (grub_netbsd_btinfo_common): Use explicit bitsize.
13925 (grub_netbsd_btinfo_mmap_entry): Removed.
13926 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
13927 (grub_netbsd_btinfo_bootdisk): New struct.
13928 (grub_netbsd_btinfo_symtab): Likewise.
13929 (grub_netbsd_btinfo_serial): Likewise.
13930 (grub_netbsd_btinfo_modules): Likewise.
13931 (grub_netbsd_btinfo_framebuf): Likewise.
13932 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
13933 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
13934 Likewise.
13935 (grub_openbsd_bootargs): Use explicit bitsize.
13936 (grub_openbsd_bootarg_console): New struct.
13937 (GRUB_OPENBSD_COM_MAJOR): New definition.
13938 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
13939 * include/grub/i386/pc/efiemu.h: Removed.
13940 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
13941 * include/grub/i386/qemu/loader.h: Removed.
13942 * include/grub/i386/relocator.h: Rewritten.
13943 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
13944 * include/grub/mips/memory.h: New file.
13945 * include/grub/mips/multiboot.h: Rewritten.
13946 * include/grub/mips/relocator.h: Rewritten.
13947 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
13948 (grub_vtop): New function.
13949 (grub_map_memory): Likewise.
13950 (grub_unmap_memory): Likewise.
13951 * include/grub/misc.h (ALIGN_DOWN): New definition.
13952 * include/grub/mm.h (grub_mm_check_real): New proto.
13953 (GRUB_MM_CHECK): New definition.
13954 * include/grub/mm_private.h: New file.
13955 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
13956 (grub_multiboot_get_mbi_size): Removed.
13957 (grub_multiboot_make_mbi): Change prottype.
13958 (grub_multiboot_set_accepts_video): New proto.
13959 (grub_multiboot_add_elfsyms): Likewise.
13960 (grub_multiboot_payload_eip): New variable.
13961 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
13962 New prototype.
13963 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
13964 New definition.
13965 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
13966 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
13967 * include/grub/powerpc/ieee1275/loader.h: Removed.
13968 * include/grub/powerpc/memory.h: New file.
13969 * include/grub/powerpc/relocator.h: Likewise.
13970 * include/grub/relocator.h: Likewise.
13971 * include/grub/relocator_private.h: Likewise.
13972 * include/grub/sparc64/ieee1275/loader.h: Removed.
13973 * include/grub/x86_64/memory.h: New file.
13974 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
13975 (grub_xnu_heap_malloc): Likewise.
13976 (grub_xnu_heap_real_start): Removed.
13977 (grub_xnu_heap_start): Likewise.
13978 (grub_xnu_relocator): New variable.
13979 (grub_xnu_heap_target_start): Likewise.
13980 * tests/util/grub-shell.in: Support non-pc.
13981 * util/grub-mkimage.c (image_targets): Fix multiboot target.
13982
13983 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13984
13985 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
13986 on malloc error.
13987 (grub_bidi_logical_to_visual): Check that malloc succeded.
13988 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
13989 puts.
13990 (grub_xputs_normal): Likewise.
13991
13992 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13993
13994 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
13995 extra_dist.
13996
13997 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13998
13999 * grub-core/efiemu/runtime/efiemu.sh: Removed.
14000
14001 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
14002
14003 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
14004
14005 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
14006
14007 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
14008 dprintf.
14009
14010 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
14011
14012 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
14013
14014 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14015
14016 * grub-core/normal/term.c (print_more): Fix a memory leak.
14017 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
14018 (grub_xputs_normal): Likewise.
14019
14020 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14021
14022 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
14023 the begining of the string
14024
14025 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14026
14027 * grub-core/script/script.c (grub_script_parse): Free parsed on
14028 failure.
14029
14030 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
14033 on failure.
14034
14035 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
14038 return.
14039
14040 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14041
14042 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
14043 (scroll_up): Fix a memory leak.
14044
14045 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14046
14047 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
14048 errors.
14049
14050 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 Handle USB pendrives exposed as floppies.
14053
14054 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
14055 floppy.
14056 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
14057 Check for partitions on all devices.
14058
14059 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14060
14061 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
14062 (readkey): Likewise.
14063
14064 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14065
14066 Multiple variable names support to "export" command.
14067
14068 * normal/context.c (grub_cmd_export): "export" command supports
14069 multiple variable names.
14070
14071 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
14072
14073 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
14074 --target=drive output to Mach device name.
14075
14076 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
14077
14078 New Automake based build system for GRUB.
14079
14080 * ABOUT-NLS: New file.
14081 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
14082 in Makefile.util.def file.
14083 * Makefile.util.def: New file. Autogen build definitions file for
14084 GRUB host utils.
14085 * conf/Makefile.common: New file. Common variables for GRUB host
14086 utils and target modules.
14087 * conf/Makefile.extra-dist: New file. Extra files for make dist.
14088 * docs/Makefile.am: New file. Automake file for docs.
14089 * gentpl.py: New file. Python script to generate Autogen
14090 template.
14091 * grub-core/Makefile.am: New file. GRUB target modules' rules
14092 that doesn't fit in Makefile.core.def file.
14093 * grub-core/Makefile.core.def: New file. Autogen build
14094 definitions file for GRUB target modules.
14095 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
14096 specific setjmp.S file.
14097 * po/Makefile.am: New file.
14098
14099 * .bzrignore: New ignores.
14100 * INSTALL: New requirements, without Ruby.
14101 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
14102 * autogen.sh: Updated to invoke autogen as necessary.
14103 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
14104 and defines for Automake conditionals.
14105 * geninit.sh: Refactoring.
14106
14107 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
14108 necessary.
14109 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
14110 New prototype.
14111
14112 * include/grub/test.h: Fix functional test modules' naming.
14113 * grub-core/tests/example_functional_test.c: Fix test module name.
14114
14115 * util/misc.c: Hosted versions' of grub functions for libgrub.a
14116 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
14117 * util/grub-editenv.c: Likewise.
14118 * util/grub-fstest.c: Likewise.
14119 * util/grub-mkdevicemap.c: Likewise.
14120 * util/grub-mkfont.c: Likewise.
14121 * util/grub-mkimage.c: Likewise.
14122 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14123 * util/grub-probe.c: Likewise.
14124 * util/grub-script-check.c: Likewise.
14125 * util/i386/pc/grub-setup.c: Likewise.
14126 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14127
14128 * tests/util/grub-shell.in: Fix override directory path.
14129 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
14130 * util/import_gcry.py: Create Makefile.gcry.def file instead.
14131
14132 * util/lvm.c: Update #includes.
14133 * util/raid.c: Likewise.
14134 * util/resolve.c: Likewise.
14135 * grub-core/bus/emu/pci.c: Likewise.
14136 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
14137 * grub-core/lib/posix_wrap/string.h: Likewise.
14138 * grub-core/kern/emu/main.c: Likewise.
14139
14140 * grub-core/gensymlist.sh: New file. Script for generating kernel
14141 symbols file.
14142 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
14143
14144 * grub-core/gentrigtables.c: Fix unused variable warnings.
14145
14146 * Makefile.in: Removed.
14147 * conf/any-emu.rmk: Removed.
14148 * conf/common.rmk: Removed.
14149 * conf/i386-coreboot.rmk: Removed.
14150 * conf/i386-efi.rmk: Removed.
14151 * conf/i386-ieee1275.rmk: Removed.
14152 * conf/i386-multiboot.rmk: Removed.
14153 * conf/i386-pc.rmk: Removed.
14154 * conf/i386-qemu.rmk: Removed.
14155 * conf/i386.rmk: Removed.
14156 * conf/mips-yeeloong.rmk: Removed.
14157 * conf/mips.rmk: Removed.
14158 * conf/powerpc-ieee1275.rmk: Removed.
14159 * conf/sparc64-ieee1275.rmk: Removed.
14160 * conf/tests.rmk: Removed.
14161 * conf/x86-efi.rmk: Removed.
14162 * conf/x86_64-efi.rmk: Removed.
14163 * gendistlist.sh: Removed.
14164 * geninitheader.sh: Removed.
14165 * genkernsyms.sh.in: Removed.
14166 * genmk.rb: Removed.
14167 * gensymlist.sh.in: Removed.
14168 * mkinstalldirs: Removed.
14169 * boot: Moved ...
14170 * grub-core/boot: ... to here.
14171 * bus: Moved ...
14172 * grub-core/bus: ... to here.
14173 * commands: Moved ...
14174 * grub-core/commands: ... to here.
14175 * disk: Moved ...
14176 * grub-core/disk: ... to here.
14177 * efiemu: Moved ...
14178 * grub-core/efiemu: ... to here.
14179 * font: Moved ...
14180 * grub-core/font: ... to here.
14181 * fs: Moved ...
14182 * grub-core/fs: ... to here.
14183 * gencmdlist.sh: Moved ...
14184 * grub-core/gencmdlist.sh: ... to here.
14185 * genemuinit.sh: Moved ...
14186 * grub-core/genemuinit.sh: ... to here.
14187 * genemuinitheader.sh: Moved ...
14188 * grub-core/genemuinitheader.sh: ... to here.
14189 * genfslist.sh: Moved ...
14190 * grub-core/genfslist.sh: ... to here.
14191 * genhandlerlist.sh: Moved ...
14192 * grub-core/genhandlerlist.sh: ... to here.
14193 * genmoddep.awk: Moved ...
14194 * grub-core/genmoddep.awk: ... to here.
14195 * genmodsrc.sh: Moved ...
14196 * grub-core/genmodsrc.sh: ... to here.
14197 * genpartmaplist.sh: Moved ...
14198 * grub-core/genpartmaplist.sh: ... to here.
14199 * genparttoollist.sh: Moved ...
14200 * grub-core/genparttoollist.sh: ... to here.
14201 * genterminallist.sh: Moved ...
14202 * grub-core/genterminallist.sh: ... to here.
14203 * gentrigtables.c: Moved ...
14204 * grub-core/gentrigtables.c: ... to here.
14205 * genvideolist.sh: Moved ...
14206 * grub-core/genvideolist.sh: ... to here.
14207 * gettext: Moved ...
14208 * grub-core/gettext: ... to here.
14209 * gfxmenu: Moved ...
14210 * grub-core/gfxmenu: ... to here.
14211 * gnulib: Moved ...
14212 * grub-core/gnulib: ... to here.
14213 * hello: Moved ...
14214 * grub-core/hello: ... to here.
14215 * hook: Moved ...
14216 * grub-core/hook: ... to here.
14217 * io: Moved ...
14218 * grub-core/io: ... to here.
14219 * kern: Moved ...
14220 * grub-core/kern: ... to here.
14221 * lib: Moved ...
14222 * grub-core/lib: ... to here.
14223 * loader: Moved ...
14224 * grub-core/loader: ... to here.
14225 * mmap: Moved ...
14226 * grub-core/mmap: ... to here.
14227 * normal: Moved ...
14228 * grub-core/normal: ... to here.
14229 * partmap: Moved ...
14230 * grub-core/partmap: ... to here.
14231 * parttool: Moved ...
14232 * grub-core/parttool: ... to here.
14233 * script: Moved ...
14234 * grub-core/script: ... to here.
14235 * term: Moved ...
14236 * grub-core/term: ... to here
14237 * tests/example_functional_test.c: Moved ...
14238 * grub-core/tests/example_functional_test.c: ... to here.
14239 * tests/lib/functional_test.c: Moved ...
14240 * grub-core/tests/lib/functional_test.c: ... to here.
14241 * tests/lib/test.c: Moved ...
14242 * grub-core/tests/lib/test.c: ... to here.
14243 * video: Moved ...
14244 * grub-core/video: ... to here.
14245
14246 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
14247
14248 Replace --enable-grub-emu-modules with grub-emu-lite.
14249
14250 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
14251 cache.S.
14252
14253 * include/grub/emu/misc.h (grub_emu_init): New prototype.
14254 * kern/emu/full.c: New file. For grub-emu specific initialization.
14255 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
14256 * kern/emu/main.c: Call initialization function grub_emu_init.
14257
14258 * Makefile.in: Include grub-emu-lite in install.
14259 * commands/parttool.c: Use grub_no_autoload to differentiate
14260 between grub-emu and grub-emu-lite.
14261 * include/grub/misc.h: New variable grub_no_autoload.
14262
14263 * conf/any-emu.rmk: New rules for grub-emu-lite.
14264 * configure.ac: Remove --enable-grub-emu-modules.
14265 * genmk.rb: Cleanup unnecessary rules.
14266 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
14267
14268 * normal/main.c: Don't load list files on grub-emu-lite.
14269 * util/misc.c (grub_arch_sync_caches): Removed.
14270
14271 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
14272
14273 * kern/mips/startup.S (grub_prefix): Update comment to refer to
14274 grub-mkimage rather than grub-mkelfimage.
14275 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14276
14277 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
14278
14279 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
14280 a key after CapsLock or NumLock. It's just a qemu bug.
14281
14282 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
14283
14284 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
14285 needed by libusb wrapper.
14286
14287 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14288
14289 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
14290
14291 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
14292
14293 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
14294 --nounzip is passed.
14295
14296 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 USB hotunplugging and USB serial support.
14299
14300 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
14301 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
14302 (grub_uhci_transfer): Respect timeout and set *actual.
14303 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
14304 non-standard length.
14305 (grub_usb_device_attach): Autoload modules.
14306 (GRUB_MOD_INIT): Set grub_term_poll_usb.
14307 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
14308 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
14309 users updated.
14310 (grub_usb_add_hub): Fill nports and children.
14311 (attach_root_port): Receive hub instead of controller.
14312 All users updated. Fill hub->devices.
14313 (grub_usb_root_hub): Allocate hub->devices.
14314 (detach_device): New function.
14315 (poll_nonroot_hub): Fill children and detach devices.
14316 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
14317 actual arguments. All users updated.
14318 (grub_usb_bulk_read_extended): New function.
14319 * bus/usb/serial/common.c: New file.
14320 * bus/usb/serial/ftdi.c: Likewise.
14321 * bus/usb/serial/pl2303.c: Likewise.
14322 * commands/terminal.c (handle_command): Support wildcard.
14323 * commands/usbtest.c: Output "Unknown" instead of empty string.
14324 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
14325 (usbserial_common_mod_SOURCES): New variable.
14326 (usbserial_common_mod_CFLAGS): Likewise.
14327 (usbserial_common_mod_LDFLAGS): Likewise.
14328 (pkglib_MODULES): Add usbserial_pl2303.mod.
14329 (usbserial_pl2303_mod_SOURCES): New variable.
14330 (usbserial_pl2303_mod_CFLAGS): Likewise.
14331 (usbserial_pl2303_mod_LDFLAGS): Likewise.
14332 (pkglib_MODULES): Add usbserial_ftdi.mod.
14333 (usbserial_ftdi_mod_SOURCES): New variable.
14334 (usbserial_ftdi_mod_CFLAGS): Likewise.
14335 (usbserial_ftdi_mod_LDFLAGS): Likewise.
14336 (pkglib_MODULES): Add serial.mod.
14337 (serial_mod_SOURCES): New variable.
14338 (serial_mod_CFLAGS): Likewise.
14339 (serial_mod_LDFLAGS): Likewise.
14340 * conf/i386-pc.rmk: Likewise.
14341 * conf/mips-yeeloong.rmk: Likewise.
14342 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
14343 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
14344 * disk/usbms.c (first_available_slot): New variable.
14345 (grub_usbms_attach): Don't reuse free slots due to potential cache
14346 problems.
14347 * include/grub/serial.h: Moved to ..
14348 * include/grub/ns8250.h: ...this.
14349 * include/grub/serial.h: New file.
14350 * include/grub/term.h (grub_term_poll_usb): New variable.
14351 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
14352 readkey. All users updated.
14353 (grub_terminfo_output_state): Pass term to put.
14354 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
14355 (grub_usb_controller_dev): Add timeout and actual arguments to
14356 transfer. All users updated.
14357 (grub_usb_interface): New field detach_data.
14358 (grub_usb_device): New fields children and nports.
14359 (grub_usb_ep_type_t): New type.
14360 (grub_usb_get_ep_type): New function.
14361 (grub_usb_bulk_read_extended): Likewise.
14362 * include/grub/usbdesc.h (grub_usb_desc): New type.
14363 * include/grub/usbserial.h: New file.
14364 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
14365 * kern/term.c (grub_term_poll_usb): New variable.
14366 (grub_getkey): Call grub_term_poll_usb if set.
14367 (grub_checkkey): Likewise.
14368 (grub_getkeystatus): Likewise.
14369 * term/serial.c: Moved controller-specific parts to ...
14370 * term/ns8250.c: ... here.
14371 * term/serial.c: Mostly rewritten.
14372 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
14373 according to spec.
14374
14375 2010-08-20 Robert Millan <rmh@gnu.org>
14376
14377 Make kFreeBSD code more generic to support ext2fs as root, ufs as
14378 a separate module and maybe other interesting combinations.
14379
14380 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
14381 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
14382 (kfreebsd_entry): Add generic filesystem module load routine.
14383 Map GRUB `ext2' to kFreeBSD `ext2fs'.
14384
14385 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
14386
14387 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
14388 "numcenter" (I misunderstood the purpose of this entry).
14389 * docs/grub.texi (sendkey): Likewise.
14390
14391 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
14392
14393 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
14394 status flag options; simply omitting the option is equivalent and
14395 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
14396 (keysym_table): Rename "num5numlock" to "numlock".
14397 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
14398 can uniformly say that only the last of multiple `sendkey'
14399 invocations has any effect.
14400 * docs/grub.texi (sendkey): New section.
14401
14402 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
14403
14404 * commands/i386/pc/sendkey.c (options): Fix three typos.
14405
14406 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14407
14408 Implement sendkey support.
14409
14410 * commands/i386/pc/sendkey.c: New file.
14411 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
14412 (sendkey_mod_SOURCES): New variable.
14413 (sendkey_mod_CFLAGS): Likewise.
14414 (sendkey_mod_LDFLAGS): Likewise.
14415
14416 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
14417
14418 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
14419 fix warnings from Autoconf.
14420
14421 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
14422
14423 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
14424 to avoid false positives with some assemblers that output things
14425 like "someprefix_func" as part of their output.
14426
14427 2010-08-15 Robert Millan <rmh@gnu.org>
14428
14429 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
14430 errors.
14431 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
14432 grub_get_libzfs_handle() errors.
14433
14434 2010-08-14 Robert Millan <rmh@gnu.org>
14435
14436 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
14437 filesystem is not ZFS.
14438
14439 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14440
14441 Fix for misspelled color names defaulting to black/black (bug
14442 reported by Doug Nazar)
14443
14444 * include/grub/normal.h (grub_parse_color_name_pair): Add return
14445 status to prototype.
14446 * normal/color.c (grub_parse_color_name_pair): Return failure
14447 status.
14448 (grub_env_write_color_normal): Ignore bad color names.
14449 (grub_env_write_color_highlight): Likewise.
14450 * normal/main.c (GRUB_MOD_INIT): Set default color names.
14451
14452 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14453
14454 "shift" command support to GRUB script.
14455
14456 * include/grub/script_sh.h (grub_script_shift): New prototype.
14457 * script/execute.c (grub_script_shift): New function.
14458 * script/main.c (grub_script_init): Register shift command.
14459 (grub_script_fini): Unregister shift command.
14460 * util/grub-script-check.c (grub_script_cmd_shift): New function.
14461
14462 * tests/grub_script_shift.in: New testcase.
14463 * conf/tests.rmk: Rules for new testcase.
14464
14465 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14466
14467 "continue" command support to GRUB script.
14468
14469 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
14470 (grub_script_break): Continue support.
14471 * script/main.c (grub_script_init): Register continue command.
14472 (grub_script_fini): Unregister continue command.
14473
14474 * tests/grub_script_continue.in: New testcase.
14475 * conf/tests.rmk: Rules for new testcase.
14476
14477 2010-08-12 BVK Chaitanya <bvk@dbook>
14478
14479 "break" command support to GRUB script.
14480
14481 * conf/common.rmk: Rule updates to grub-script-check.
14482 * include/grub/misc.h (grub_min): New function.
14483 * include/grub/script_sh.h (grub_script_init): New prototype.
14484 (grub_script_fini): New prototype.
14485 (grub_script_break): New prototype.
14486 * script/main.c (grub_script_init): New function.
14487 (grub_script_fini): New function.
14488 * script/execute.c (grub_script_break): New function.
14489 * normal/main.c: Calls to grub_script_{init,fini}.
14490 * util/grub-script-check.c (grub_script_break): New function.
14491
14492 * tests/grub_script_break.in: New testcase.
14493 * conf/tests.rmk: Rules for new test case.
14494
14495 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14496
14497 Function parameters support to GRUB script.
14498
14499 * script/yylex.l (VARIABLE): Regular expression update.
14500 * script/function.c (grub_script_function_call): Moved ...
14501 * script/execute.c (grub_script_function_call): ... to here.
14502 (grub_script_execute_arglist_to_argv): Removed.
14503 (grub_script_arglist_to_argv): New function.
14504 * script/argv.c: New file.
14505 (grub_script_argv_free): New function.
14506 (grub_script_argv_next): Likewise.
14507 (grub_script_argv_append): Likewise.
14508 (grub_script_argv_split_append): Likewise.
14509 * include/grub/script_sh.h (grub_script_argv): New struct.
14510 (grub_script_argv_free): New function.
14511 (grub_script_argv_next): Likewise.
14512 (grub_script_argv_append): Likewise.
14513 (grub_script_argv_split_append): Likewise.
14514
14515 * conf/common.rmk (normal.mod): New source script/argv.c.
14516
14517 * tests/grub_script_echo1.in: More tests.
14518 * tests/grub_script_vars1.in: Likewise.
14519 * tests/grub_script_functions.in: New test case.
14520 * conf/tests.rmk: Rules for new testcase.
14521
14522 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14523
14524 Remove grub_script_cmdblock struct.
14525
14526 * include/grub/script_sh.h: Remove grub_script_cmdblock.
14527 * script/parser.y: Likewise.
14528 * script/execute.c: Rename cmdblock suffix to cmdlist.
14529 * script/script.c: Likewise.
14530 * util/grub-script-check.c: Likewise.
14531
14532 2010-08-11 Yves Blusseau <blusseau@zetam.org>
14533
14534 * .bzrignore: add grub-macho2img
14535
14536 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
14537
14538 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
14539
14540 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
14541
14542 Remove the dump of sm712 initialisation sequence.
14543
14544 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
14545 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
14546 (GRUB_VGA_IO_MISC_WRITE): Likewise.
14547 (GRUB_VGA_CR_*): Added many registers.
14548 (GRUB_VGA_SR_*): Likewise.
14549 (GRUB_VGA_GR_*): Likewise.
14550 (grub_vga_write_arx): New function.
14551 (grub_video_hw_config): New struct.
14552 (grub_vga_set_geometry): New function.
14553 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
14554 GRUB_PCI_CLASS_SUBCLASS_VGA.
14555 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
14556 * video/sm712.c (grub_sm712_write_reg): New function
14557 (grub_sm712_read_reg): Likewise.
14558 (grub_sm712_sr_write): Likewise.
14559 (grub_sm712_gr_write): Likewise.
14560 (grub_sm712_cr_write): Likewise.
14561 (grub_sm712_write_arx): Likewise.
14562 (grub_sm712_cr_shadow_write): Likewise.
14563 (grub_sm712_write_dda_lookup): Likewise.
14564 (grub_video_sm712_setup): Initialise the video rather then
14565 blindly replay the dump.
14566 (main) [TEST]: Add a routine to be able to compile as standalone for
14567 tests.
14568 * video/sm712_init.c (sm712_init): Removed.
14569 (sm712_sr_seq1): New array.
14570 (sm712_sr_seq2): Likewise.
14571
14572 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
14573
14574 * include/grub/vga.h: Add missing grub/pci.h include.
14575
14576 2010-08-10 Yves Blusseau <blusseau@zetam.org>
14577
14578 * util/grub-macho2img.c (main): fix typo
14579
14580 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
14581
14582 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
14583 (grub_vga_gr_read): Likewise.
14584 (grub_vga_cr_write): Likewise.
14585 (grub_vga_cr_read): Likewise.
14586 (grub_vga_sr_write): Likewise.
14587 (grub_vga_sr_read): Likewise.
14588 (grub_vga_palette_read): Likewise.
14589 (grub_vga_palette_write): Likewise.
14590 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
14591 (grub_sm712_sr_read): New function.
14592 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
14593 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
14594
14595 2010-08-09 Robert Millan <rmh@gnu.org>
14596
14597 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
14598 out unused variables on non-ZFS build.
14599
14600 2010-08-08 Robert Millan <rmh@gnu.org>
14601
14602 Fix path generation for sub-filesystems in ZFS.
14603
14604 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
14605 missing slash.
14606
14607 2010-08-08 Robert Millan <rmh@gnu.org>
14608
14609 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
14610
14611 2010-08-08 Robert Millan <rmh@gnu.org>
14612
14613 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
14614 exist, issue a proper error message (rely on `ls' for translated
14615 strings).
14616
14617 2010-08-08 Robert Millan <rmh@gnu.org>
14618
14619 Fix grub-probe invocation.
14620
14621 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
14622
14623 2010-08-04 Robert Millan <rmh@gnu.org>
14624
14625 * configure.ac: Remove checks for getfsstat() and getmntany().
14626 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
14627 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
14628 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
14629 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
14630 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
14631 function.
14632 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
14633 via find_mount_point_from_dir() and getfsstat() / getmntany().
14634
14635 2010-08-04 Robert Millan <rmh@gnu.org>
14636
14637 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
14638 (grub_find_zpool_from_mount_point): Merge into ...
14639 (grub_find_zpool_from_dir): ... this.
14640 * kern/emu/misc.c: Likewise.
14641
14642 * kern/emu/misc.c
14643 (grub_make_system_path_relative_to_its_root): Replace
14644 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
14645 with grub_find_zpool_from_dir().
14646 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
14647
14648 2010-08-04 Robert Millan <rmh@gnu.org>
14649
14650 Support OpenSolaris in ZFS device resolution.
14651
14652 * configure.ac: Check for getmntany().
14653 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
14654 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
14655 support.
14656
14657 2010-08-03 Robert Millan <rmh@gnu.org>
14658
14659 Fix grub-emu build.
14660
14661 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
14662 * include/grub/emu/misc.h: ... here.
14663
14664 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
14665 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
14666
14667 * util/misc.c: Remove `<grub/util/libzfs.h>'.
14668 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
14669 (grub_get_libzfs_handle): Move to ...
14670 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
14671 (grub_get_libzfs_handle): ... here.
14672
14673 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
14674
14675 * script/execute.c (grub_script_execute_cmdline): Check for NULL
14676 as command name case.
14677
14678 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
14679
14680 * disk/raid.c (insert_array): Select unique numbers for named arrays
14681 as well, for use as keys in the disk cache.
14682
14683 2010-08-01 Robert Millan <rmh@gnu.org>
14684
14685 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
14686 kFreeBSD device name, except on ZFS where the filesystem label is
14687 used.
14688 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
14689 `/boot/zfs/zpool.cache'.
14690 Set mountfrom kernel variable using ${kfreebsd_device}.
14691
14692 2010-08-01 Robert Millan <rmh@gnu.org>
14693
14694 Make it even harder to use uninitialized `libzfs_handle' (and
14695 make the interface a bit simpler).
14696
14697 * include/grub/util/misc.h (grub_util_init_libzfs)
14698 (libzfs_handle): Remove.
14699 (grub_get_libzfs_handle): New prototype.
14700
14701 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
14702 attribute.
14703 (grub_util_init_libzfs): Remove.
14704 (grub_get_libzfs_handle): New function.
14705
14706 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
14707 grub_get_libzfs_handle() to obtain a libzfs handle instead of
14708 accessing `libzfs_handle' directly.
14709
14710 2010-08-01 Robert Millan <rmh@gnu.org>
14711
14712 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
14713 (grub_find_zpool_from_mount_point): New function prototypes.
14714
14715 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
14716 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
14717
14718 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
14719 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
14720 `static' attribute.
14721
14722 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
14723 finding zpool from mount point into ...
14724 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
14725
14726 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
14727 requested path is part of a ZFS pool, use
14728 grub_find_zpool_from_mount_point() to detect its filesystem name,
14729 and generate a path with `/fsname@path' syntax.
14730
14731 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
14732
14733 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
14734 (void) rather than () so that this is a proper prototype.
14735
14736 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14737
14738 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
14739
14740 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14741
14742 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
14743 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
14744
14745 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
14746
14747 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
14748
14749 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
14750
14751 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
14752
14753 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
14754
14755 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
14756 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
14757 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
14758 disable gfxpayload.
14759 (Shell-like scripting): Add real content.
14760 (Serial terminal): Suggest `terminal_input serial; terminal_output
14761 serial' rather than putting the two commands on separate lines,
14762 since console input will be inoperative after the first command.
14763 (menuentry): Document --class, --users, and --hotkey options.
14764 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
14765 Vladimir Serbinenko).
14766
14767 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14768 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
14769
14770 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
14771
14772 2010-08-01 Robert Millan <rmh@gnu.org>
14773
14774 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
14775 (grub_find_zpool_from_mount_point): New function prototypes.
14776
14777 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
14778 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
14779
14780 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
14781 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
14782 `static' attribute.
14783
14784 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
14785 finding zpool from mount point into ...
14786 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
14787
14788 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
14789 requested path is part of a ZFS pool, use
14790 grub_find_zpool_from_mount_point() to detect its filesystem name,
14791 and generate a path with `/fsname@path' syntax.
14792
14793 2010-08-01 Robert Millan <rmh@gnu.org>
14794
14795 Prevent accidental use of uninitialized libzfs_handle.
14796
14797 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
14798 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
14799 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
14800
14801 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
14802
14803 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
14804 util/grub.d/10_linux.in). Fixes Debian bug #591093.
14805
14806 2010-08-01 Robert Millan <rmh@gnu.org>
14807
14808 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
14809
14810 2010-07-31 Robert Millan <rmh@gnu.org>
14811
14812 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
14813
14814 2010-07-31 Robert Millan <rmh@gnu.org>
14815
14816 * kern/emu/misc.c: Add missing license header.
14817
14818 2010-07-31 Robert Millan <rmh@gnu.org>
14819
14820 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
14821
14822 * include/grub/util/libnvpair.h: Include `<config.h>'.
14823 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
14824 declaring libnvpair prototypes ourselves.
14825 * include/grub/util/libzfs.h: Include `<config.h>'.
14826 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
14827 declaring libzfs prototypes ourselves.
14828
14829 (libzfs_handle): Moved to ...
14830 * include/grub/util/misc.h (libzfs_handle): ... here.
14831 Include `<grub/util/libzfs.h>'.
14832
14833 2010-07-30 Robert Millan <rmh@gnu.org>
14834
14835 * include/grub/emu/misc.h: Add missing license header.
14836
14837 2010-07-30 Robert Millan <rmh@gnu.org>
14838
14839 Enable `grub-probe -t device' resolution on ZFS.
14840
14841 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
14842 * include/grub/util/libnvpair.h: New file.
14843 * include/grub/util/libzfs.h: New file.
14844
14845 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
14846 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
14847 `<grub/util/libnvpair.h>'.
14848 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
14849
14850 (find_mount_point_from_dir): New static function.
14851 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
14852 function.
14853 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
14854 find_root_device_from_libzfs() before ressorting to find_root_device().
14855
14856 * include/grub/util/misc.h (grub_util_init_libzfs): New function
14857 prototype.
14858 * util/misc.c: Include `<grub/util/libzfs.h>'.
14859 (grub_util_init_libzfs): New function.
14860 [HAVE_LIBZFS] (libzfs_handle): New global variable.
14861 [HAVE_LIBZFS] (fini_libzfs): New static function.
14862 (grub_util_init_libzfs): New function.
14863 * util/grub-probe.c (main): Call grub_util_init_libzfs().
14864
14865 2010-07-30 Robert Millan <rmh@gnu.org>
14866
14867 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
14868 (xmalloc, xrealloc, xstrdup, xasprintf): Add
14869 `warn_unused_result' attribute.
14870 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
14871 (grub_xasprintf, grub_xvasprintf): Likewise.
14872 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
14873
14874 2010-07-29 Robert Millan <rmh@gnu.org>
14875
14876 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
14877 (probe): Handle `PRINT_FS_LABEL'.
14878 (main): Handle `-t fs_label'.
14879
14880 2010-07-29 Robert Millan <rmh@gnu.org>
14881
14882 * configure.ac: Remove grub-mkisofs checks.
14883
14884 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
14885
14886 * util/ieee1275/grub-install.in: Don't use empty grub_device.
14887 Reported by: Lennart Sorensen.
14888
14889 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14890
14891 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
14892 prior to terminal_input/terminal_output separation. It's been over 1.5
14893 years and those versions weren't widely deployed.
14894
14895 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
14896
14897 * disk/raid.c (insert_array): Don't count named arrays when looking
14898 for unused array numbers.
14899 Reported and tested by: Michael Guntsche.
14900
14901 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14902
14903 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
14904 implementation of this so that grub-emu links again, with a note
14905 that this should support hotplugging in the future.
14906
14907 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14908
14909 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
14910
14911 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14912
14913 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
14914 handle on failure.
14915 (grub_loopback_close): Remove empty function.
14916 (grub_loopback_dev): Remove close method.
14917
14918 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14919
14920 Disable EFI cursor when the EFI console becomes inactive.
14921
14922 * term/efi/console.c (grub_efi_console_init): New function.
14923 (grub_efi_console_fini): New function.
14924 (grub_console_term_output): Register init and fini methods.
14925
14926 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14927
14928 * tests/util/grub-shell-tester.in: Remove bashism and declare as
14929 sh script.
14930
14931 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14932
14933 * disk/loopback.c (grub_loopback): Replace filename with file.
14934 (delete_loopback): Handle new semantics.
14935 (grub_cmd_loopback): Likewise.
14936 (grub_loopback_iterate): Likewise.
14937 (grub_loopback_close): Likewise.
14938
14939 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14940
14941 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
14942 with -p "".
14943 Reported by: Tito Keitel.
14944
14945 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14946
14947 * docs/grub.texi (Naming convention): Document new naming convention.
14948
14949 2010-07-20 Vadim Solomin <vadic052@gmail.com>
14950 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14951
14952 Generate device.map in something closer to the old ordering.
14953
14954 * util/deviceiter.c (struct device): New declaration.
14955 (compare_file_names): Rename to ...
14956 (compare_devices): ... this. Sort by kernel name in preference to
14957 the stable by-id name, but keep the latter as a fallback comparison.
14958 Update header comment.
14959 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
14960 of `struct device' rather than of plain file names.
14961
14962 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
14963
14964 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
14965 on i386.
14966
14967 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14968
14969 * commands/acpi.c (setup_common_tables): Use sizeof instead of
14970 hardcoding size.
14971 (setv1table): Likewise.
14972
14973 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14974
14975 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
14976 removing the homehost if present.
14977 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
14978 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
14979 removing the homehost if present.
14980 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
14981 if possible.
14982 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
14983
14984 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
14985 parameter. Set its pointer target to 0.
14986 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
14987 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
14988 `data_offset' value from the superblock for 1.x metadata.
14989 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
14990 data on the device.
14991 (insert_array): Record the start sector of data on the device.
14992 (grub_raid_register): Pass start_sector parameters to
14993 grub_raid_list->detect and insert_array.
14994 * include/grub/raid.h (struct grub_raid_array): Add start_sector
14995 member.
14996 (struct grub_raid): Add start_sector parameter to `detect'.
14997
14998 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
14999 __attribute__ ((packed)), leaving a comment.
15000 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
15001 (grub_mdraid_detect_09): ... here and ...
15002 (grub_mdraid_detect_1x): ... here.
15003
15004 2010-07-20 Peter Henn <peter.henn@web.de>
15005
15006 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
15007 chunk size and disk size, which are already given as sector counts
15008 as distinct from the 0.90 units. Fetch the correct device number
15009 from the role table instead of using the table index.
15010
15011 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
15012
15013 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
15014 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
15015 (WriteMostly1): New macro.
15016 Set array->name to NULL for metadata format 0.90. Add support for
15017 metadata 1.x. Fix some comments.
15018 * disk/raid.c (): Add support for name based RAID arrays. Fix a
15019 few comments.
15020 * util/getroot.c (grub_util_get_grub_dev): Add support for
15021 /dev/md/name style devices.
15022
15023 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
15024
15025 * .bzrignore: Ignore 20_linux_xen.
15026
15027 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
15028
15029 * util/import_unicode.py: Remove unnecessary imports.
15030
15031 2010-07-17 Aleš Nesrsta <starous@volny.cz>
15032
15033 Hotplugging and USB hub support.
15034
15035 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
15036 (grub_ohci): Likewise.
15037 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
15038 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
15039 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
15040 (GRUB_OHCI_CTRL_EDS): Likewise.
15041 (GRUB_OHCI_BULK_EDS): Likewise.
15042 (GRUB_OHCI_TDS): Likewise.
15043 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
15044 (grub_ohci_ed_phys2virt): New function.
15045 (grub_ohci_virt_to_phys): Likewise.
15046 (grub_ohci_td_phys2virt): Likewise.
15047 (grub_ohci_td_virt2phys): Likewise.
15048 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
15049 attachment.
15050 (grub_ohci_find_ed): New function.
15051 (grub_ohci_alloc_td): Likewise.
15052 (grub_ohci_free_td): Likewise.
15053 (grub_ohci_free_tds): Likewise.
15054 (grub_ohci_transfer): Use previously allocated memory.
15055 (grub_ohci_portstatus): Reset status changed bit.
15056 (grub_ohci_detect_dev): Supply status changed.
15057 (grub_ohci_fini_hw): Free memory.
15058 (grub_ohci_restore_hw): Reallocate memory.
15059 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
15060 Reset status change.
15061 (grub_uhci_detect_dev): Supply status_change.
15062 * bus/usb/usb.c (attach_hooks): New var.
15063 (grub_usb_device_attach): New function.
15064 (grub_usb_register_attach_hook_class): Likewise.
15065 (grub_usb_unregister_attach_hook_class): Likewise.
15066 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
15067 (grub_usb_add_hub): Reset connection changed bit.
15068 (attach_root_port): New function.
15069 (grub_usb_root_hub): Likewise.
15070 (poll_nonroot_hub): Likewise.
15071 (grub_usb_poll_devices): Likewise.
15072 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
15073 * disk/usbms.c (grub_usbms_open): Use device hooks.
15074 (grub_usbms_iterate) :Poll devices.
15075 (grub_usbms_finddevs): Split into ...
15076 (grub_usbms_attach): ... this ...
15077 (grub_usbms_attach): ... and this.
15078 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
15079 in detect_dev.
15080 (grub_usb_interface): New fields attached and detach_hook.
15081 (grub_usb_attach_hook_class): New type.
15082 (grub_usb_attach_desc): New struct.
15083 (grub_usb_register_attach_hook_class): New function.
15084 (grub_usb_unregister_attach_hook_class): Likewise.
15085 (grub_usb_poll_devices): Likewise.
15086 (grub_usb_device_attach): Likewise.
15087 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
15088 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
15089
15090 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
15091
15092 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
15093 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
15094 delta determination style. Works with most NetBSD partitions too.
15095
15096 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
15097
15098 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
15099 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
15100
15101 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
15102
15103 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
15104
15105 2010-07-14 Anton Blanchard <anton@samba.org>
15106
15107 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
15108 ET_DYN files.
15109
15110 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15111
15112 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
15113
15114 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15115
15116 * kern/partition.c (grub_partition_check_containment): New function to
15117 check that a partition is physically contained in a parent. Since
15118 offsets are relative (and non-negative), this reduces to checking that
15119 the partition ends before its parent.
15120 (grub_partition_map_probe): Discard out-of-range sub-partitions.
15121 (grub_partition_iterate): Likewise.
15122 * include/grub/partition.h (grub_partition_map): Slightly more detailed
15123 comments.
15124 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
15125 partitions that start before their parent, and add debug printfs.
15126
15127 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
15128
15129 * Makefile.in (.SUFFIX): Spell correctly, as ...
15130 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
15131 bare module name without `.mod', e.g. `test') tried to invoke a
15132 Modula-2 compiler.
15133
15134 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
15135
15136 * README: Point to the Info manual.
15137
15138 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
15139
15140 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
15141 2nd superblock position from partition size.
15142
15143 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
15144
15145 * Makefile.in (MAINTAINER_CLEANFILES): Remove
15146 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
15147 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
15148 outputs.
15149
15150 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 Restructure SCSI .id handling.
15153 Reported and tested by: Aleš Nesrsta.
15154
15155 * disk/ata.c (grub_atapi_close): Removed. All users updated.
15156 (grub_atapi_dev): Changed .name to "ata". New field .id.
15157 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
15158 (grub_usbms_dev): New field .id.
15159 * disk/scsi.c (grub_scsi_iterate): Generate name.
15160 (grub_scsi_open): Parse name.
15161 * include/grub/scsi.h (grub_make_scsi_id): New function.
15162 (grub_scsi_dev): Change iterate and open to number instead of naming
15163 busses. All users updated.
15164 (grub_scsi): Remove name. Add .bus.
15165
15166 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * commands/help.c (grub_cmd_help): Fix a typo.
15169
15170 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15171
15172 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
15173 Reported and tested by: Colin Watson.
15174
15175 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15176
15177 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
15178 in this context.
15179
15180 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15181
15182 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
15183
15184 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
15185
15186 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
15187 indentation.
15188
15189 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
15190
15191 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
15192 and disk/raid6_recover.c.
15193 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15194 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
15195
15196 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
15197
15198 * term/gfxterm.c (repaint_schedulded): Rename to ...
15199 (repaint_scheduled): ... this. Update all callers.
15200 (repaint_was_schedulded): Rename to ...
15201 (repaint_was_scheduled): ... this. Update all callers.
15202
15203 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
15204
15205 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
15206 which we expect to be handled by upper layers.
15207
15208 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
15209
15210 * bus/usb/usbhub.c: #include time.h header.
15211
15212 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
15213
15214 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
15215 entry_name also for entries without stat blocks (e.g. ".."); fixes
15216 corruption of the first entry in a directory.
15217
15218 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
15219
15220 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
15221 after setting gfxterm as the active terminal. GRUB_BACKGROUND
15222 doesn't work otherwise.
15223
15224 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
15225
15226 * docs/grub.texi (Features): Update list of supported file systems.
15227 (GNU/Linux): Update for GRUB 2.
15228 (Serial terminal): Remove mention of --disable-serial, which was a
15229 GRUB Legacy configure option. Update instructions to use
15230 `terminal_input' and `terminal_output' rather than `terminal'.
15231 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
15232 configuration' and `Installing GRUB using grub-install'.
15233 (Menu entry editor): Update for GRUB 2.
15234 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
15235 Document new -a, -u, and -v options.
15236 (initrd): New section.
15237 (initrd16): New section.
15238 (linux): New section.
15239 (linux16): New section.
15240 (search): The `var' argument to `--set' is optional.
15241 (GRUB only offers a rescue shell): Go into a little more detail on
15242 drive ordering.
15243
15244 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
15245
15246 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
15247
15248 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
15249
15250 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
15251 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
15252
15253 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
15254
15255 * util/i386/pc/grub-setup.c (setup): Rename prefix to
15256 install_prefix, in line with install_dos_part and install_bsd_part.
15257 Add new prefix variable, which is copied to install_prefix after
15258 comparing core.img in memory with the one read from disk in the
15259 no-embedding case, and use that rather than overwriting
15260 install_prefix immediately when installing to a partition.
15261 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
15262 Bicakci.
15263
15264 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
15265
15266 * configure.ac: Avoid == in test command, it's not portable.
15267 * util/grub.d/30_os-prober.in: Likewise.
15268
15269 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
15270
15271 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
15272
15273 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
15274
15275 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
15276 multiple (top-level) partmaps.
15277
15278 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 * util/i386/efi/grub-install.in: Don't use empty grub_device.
15281 Reported by: Tino Keitel.
15282
15283 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15284
15285 Bidi and diacritics support.
15286
15287 * Makefile.in (widthspec.bin): New target.
15288 (widthspec.h): Likewise.
15289 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
15290 * autogen.sh: Generate unidata.c.
15291 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
15292 * commands/ls.c (grub_ls_list_devices): Likewise.
15293 (grub_ls_list_files): Likewise.
15294 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
15295 (grub_mini_cmd_lsmod): Likewise.
15296 * commands/read.c: Likewise.
15297 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
15298 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
15299 * lib/arg.c (grub_arg_show_help): Likewise.
15300 * lib/crypto.c (grub_password_get): Likewise.
15301 * normal/auth.c (grub_username_get): Likewise.
15302 * normal/misc.c (grub_normal_print_device_info): Likewise.
15303 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
15304 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
15305 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
15306 (normal/charset.c_DEPENDENCIES): New variable.
15307 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
15308 (pkglib_MODULES): Remove charset.mod.
15309 (charset_mod_SOURCES): Removed.
15310 (charset_mod_CFLAGS): Likewise.
15311 (charset_mod_LDFLAGS): Likewise.
15312 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
15313 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
15314 and term/tparm.c.
15315 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15316 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15317 (kernel_img_HEADERS): Add terminfo.h.
15318 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
15319 Fill ->font. Reverse ascii bitmaps.
15320 (grub_font_get_xheight): New function.
15321 * font/font.c (grub_font_get_string_width): Moved from here ...
15322 * gfxmenu/font.c (grub_font_get_string_width): ... here.
15323 * font/font.c (grub_font_draw_string): Moved from here ...
15324 * gfxmenu/font.c (grub_font_draw_string): ... here.
15325 * font/font.c (grub_font_dup_glyph): New function.
15326 (grub_font_blit_glyph): Likewise.
15327 (grub_font_blit_glyph_mirror): Likewise.
15328 (blit_comb): Likewise.
15329 (grub_font_construct_dry_run): Likewise.
15330 (grub_font_get_constructed_device_width): Likewise.
15331 (grub_font_construct_glyph): Likewise.
15332 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
15333 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
15334 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
15335 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
15336 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
15337 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
15338 (grub_font_get_xheight): New proto.
15339 (grub_font_get_constructed_device_width): Likewise.
15340 (grub_font_construct_glyph): Likewise.
15341 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
15342 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
15343 * include/grub/font.h (grub_font_draw_string): Moved from here ...
15344 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
15345 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
15346 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
15347 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
15348 (grub_console_getcharwidth): Likewise.
15349 * include/grub/misc.h (grub_xputs): New proto.
15350 (grub_puts): Inlined.
15351 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
15352 (grub_normal_get_line_counter): Removed.
15353 (grub_install_newline_hook): Likewise.
15354 (grub_normal_get_char_counter): New proto.
15355 (grub_normal_reset_more): Likewise.
15356 (grub_xputs_normal): Likewise.
15357 * include/grub/powerpc/ieee1275/console.h: Removed.
15358 * include/grub/sparc64/ieee1275/console.h: Likewise.
15359 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
15360 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
15361 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
15362 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
15363 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
15364 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
15365 (grub_term_input): Pass reference to self. All users updated.
15366 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
15367 Pass reference to self. New fields normal_color, highlight_color and
15368 data. All users updated.
15369 (grub_putchar): Removed.
15370 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
15371 (grub_unicode_estimate_width): New function.
15372 (grub_term_getcharwidth): Add defaults.
15373 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
15374 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
15375 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
15376 (grub_cls): Remove EXPORT_FUNC.
15377 (grub_setcolorstate): Inline.
15378 (grub_newline_hook): Removed.
15379 * include/grub/terminfo.h: Rewritten. All users updated.
15380 * include/grub/unicode.h: New file.
15381 * include/grub/video.h (grub_video_signed_rect): New type.
15382 * kern/emu/console.c (grub_console_highlight_color): Removed.
15383 (grub_console_normal_color): Likewise.
15384 (grub_console_standard_color): Made static.
15385 (grub_ncurses_putchar): Remove mapping.
15386 (grub_ncurses_getcharwidth): Removed.
15387 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
15388 (grub_ncurses_setcolor): Removed.
15389 (grub_ncurses_getcolor): Likewise.
15390 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
15391 (grub_console_putchar): ... this.
15392 (grub_console_putchar): Handle argument difference.
15393 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
15394 console_init_early and console_init_lately.
15395 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
15396 * kern/misc.c (grub_puts): Removed.
15397 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
15398 (grub_vsnprintf_real): Remove str = NULL support.
15399 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
15400 * normal/charset.c (grub_utf8_to_ucs4): ... here.
15401 * kern/term.c (grub_putcode): Renamed to ...
15402 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
15403 (grub_putchar): Removed.
15404 (grub_xputs_dumb): New function.
15405 (grub_xputs): New variable.
15406 * lib/charset.c: Move from here ...
15407 * normal/charset.c: ... to here.
15408 (grub_ucs4_to_utf8): New function.
15409 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
15410 (join_types): New variable.
15411 (unpack_join): New function.
15412 (bidi_types): New variable.
15413 (unpack_bidi): New function.
15414 (get_bidi_type): Likewise.
15415 (get_join_type): Likewise.
15416 (is_mirrored): Likewise.
15417 (grub_unicode_get_comb_type): Likewise.
15418 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
15419 (is_type_after): Likewise.
15420 (grub_unicode_aglomerate_comb): Likewise.
15421 (bidi_line_wrap): Likewise.
15422 (grub_bidi_line_logical_to_visual): Likewise.
15423 (grub_bidi_logical_to_visual): Likewise.
15424 (grub_unicode_mirror_code): Likewise.
15425 (grub_unicode_shape_code): Likewise.
15426 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
15427 Don't use grub_putchar.
15428 * normal/main.c (grub_normal_init_page): Use grub_putcode.
15429 (grub_normal_reader_init): Likewise.
15430 (grub_xputs_saved): New variable.
15431 (GRUB_MOD_INIT): Set grub_xputs.
15432 (GRUB_MOD_FINI): Restore grub_xputs.
15433 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
15434 (menu_init): Avoid printing gfxmenu error.
15435 (show_menu): Use grub_normal_get_char_counter.
15436 * normal/menu_entry.c (update_screen): Fix out-of-array.
15437 (complete): Avoid NULL dereferencing.
15438 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
15439 * normal/menu_text.c (print_spaces): Removed.
15440 (grub_print_ucs4): Likewise.
15441 (grub_print_message_indented): Use grub_print_ucs4.
15442 (print_message): Use grub_putcode.
15443 (print_entry): Hanlde diacritics.
15444 * normal/term.c (term_state): New type.
15445 (grub_more_lines): Removed.
15446 (term_states): New variable.
15447 (grub_normal_line_counter): Renamed to ..
15448 (grub_normal_char_counter): ...this. All users updated.
15449 (grub_normal_get_line_counter): Renamed to ...
15450 (grub_normal_get_char_counter): ... this.
15451 (grub_normal_reset_more): New function.
15452 (process_newline): Removed.
15453 (print_more): New function.
15454 (grub_install_newline_hook): Removed.
15455 (map_code): New function.
15456 (grub_puts_terminal): Use grub_print_ucs4.
15457 (putglyph): New function.
15458 (putcode_real): Likewise.
15459 (grub_putcode): Use putcode_real.
15460 (get_maxwidth): New function.
15461 (get_startwidth): Likewise.
15462 (print_ucs4_terminal): Likewise.
15463 (find_term_state): Likewise.
15464 (put_glyphs_terminal): Likewise.
15465 (print_backlog): Likewise.
15466 (print_ucs4_real): Likewise.
15467 (grub_print_ucs4): Likewise.
15468 (grub_xputs_normal): Likewise.
15469 * term/efi/console.c (grub_console_putchar): Output diacritics.
15470 (grub_console_getcharwidth): Removed.
15471 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
15472 * term/gfxterm.c (clear_char): Free chars.
15473 (scroll_up): Avoid leaking memory.
15474 (grub_gfxterm_putchar): Support diacritics.
15475 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
15476 * term/i386/pc/console.c (grub_console_term_output): Declare as
15477 GRUB_TERM_CODE_TYPE_VGA.
15478 * term/i386/pc/vga.c (grub_vga_term): Declare as
15479 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
15480 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
15481 GRUB_TERM_CODE_TYPE_VGA.
15482 * term/i386/vga_common.c (map_char): Removed.
15483 (grub_console_putchar): Likewise.
15484 (grub_console_getcharwidth): Likewise.
15485 * term/ieee1275/ofconsole.c: Simplify using terminfo.
15486 (colors): Reordered to match terminfo.
15487 (grub_ofconsole_normal_color): Removed.
15488 (grub_ofconsole_writeesc): Likewise.
15489 (grub_ofconsole_highlight_color): Likewise.
15490 (grub_ofconsole_getcharwidth): Likewise.
15491 (grub_ofconsole_setcolorstate): Likewise.
15492 (grub_ofconsole_setcolor): Likewise.
15493 (grub_ofconsole_getcolor): Likewise.
15494 (grub_ofconsole_readkey): Renamed to ...
15495 (readkey): ... this. Remove escape sequence handling. Return -1 on no
15496 key.
15497 (grub_ofconsole_checkkey): Removed.
15498 (grub_ofconsole_getkey): Likewise.
15499 (grub_ofconsole_getxy): Likewise.
15500 (grub_ofconsole_gotoxy): Likewise.
15501 (grub_ofconsole_cls): Likewise.
15502 (grub_ofconsole_refresh): Likewise.
15503 (grub_ofconsole_terminfo_input): New struct.
15504 (grub_ofconsole_terminfo_output): Likewise.
15505 (grub_ofconsole_term_input): Use terminfo.
15506 (grub_ofconsole_term_output): Likewise.
15507 (grub_console_init): Split into ...
15508 (grub_console_init_early): ...this and ...
15509 (grub_console_init_lately): ...this. Use terminfo.
15510 (grub_ofconsole_putchar): Renamed to ...
15511 (put): ... this. Remove mapping.
15512 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
15513 * term/serial.c: Simplify using terminfo.
15514 (xpos): Removed.
15515 (ypos): Likewise.
15516 (keep_track): Likewise.
15517 (registered): Likewise.
15518 (input_buf): Likewise.
15519 (npending): Likewise.
15520 (serial_translate_key_sequence): Likewise.
15521 (fill_input_buf): Likewise.
15522 (grub_serial_checkkey): Likewise.
15523 (grub_serial_getkey): Likewise.
15524 (grub_serial_getxy): Likewise.
15525 (grub_serial_gotoxy): Likewise.
15526 (grub_serial_putchar): Likewise.
15527 (grub_serial_cls): Likewise.
15528 (grub_serial_setcolorstate): Likewise.
15529 (grub_serial_setcursor): Likewise.
15530 (serial_hw_init): Use serial_hw_fetch.
15531 (grub_serial_terminfo_input): New variable.
15532 (grub_serial_terminfo_output): Likewise.
15533 (grub_serial_term_input): Use terminfo.
15534 (grub_serial_term_output): Likewise.
15535 * term/terminfo.c (putstr): Use put.
15536 (grub_terminfo_all_free): New function
15537 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
15538 (grub_terminfo_output_register): New function.
15539 (grub_terminfo_output_unregister): Likewise.
15540 (grub_terminfo_getxy): Likewise.
15541 (grub_terminfo_readkey): Likewise.
15542 (grub_terminfo_checkkey): Likewise.
15543 (grub_terminfo_getkey): Likewise.
15544 (grub_terminfo_input_init): Likewise.
15545 (print_terminfo): Likewise.
15546 (grub_cmd_terminfo): Handle encoding.
15547 (grub_terminfo_gotoxy): Track position.
15548 (grub_terminfo_cls): Likewise.
15549 (grub_terminfo_putchar): Likewise.
15550 (grub_terminfo_setcolorstate): Handle colors
15551 (grub_terminfo_cursor_on): This ...
15552 (grub_terminfo_cursor_off): ... and this merged into ...
15553 (grub_terminfo_setcursor): ... this.
15554 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
15555 * unicode/ArabicShaping.txt: New file (imported from Unicode).
15556 * unicode/BidiMirroring.txt: Likewise.
15557 * unicode/UnicodeData.txt: Likewise.
15558 * unicode/COPYING: Likewise.
15559 * util/grub-editenv.c (grub_putchar): Removed.
15560 (grub_xputs_real): New function.
15561 (grub_xputs): New variable.
15562 * util/grub-fstest.c (grub_putchar): Removed.
15563 (grub_xputs_real): New function.
15564 (grub_xputs): New variable.
15565 * util/grub-mkdevicemap.c (grub_putchar): Removed.
15566 (grub_xputs_real): New function.
15567 (grub_xputs): New variable.
15568 * util/grub-probe.c (grub_putchar): Removed.
15569 (grub_xputs_real): New function.
15570 (grub_xputs): New variable.
15571 * util/grub-script-check.c (grub_putchar): Removed.
15572 (grub_xputs_real): New function.
15573 (grub_xputs): New variable.
15574 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
15575 (grub_xputs_real): New function.
15576 (grub_xputs): New variable.
15577 * util/import_unicode.py: New file.
15578 * util/grub-mkfont.c (ft_errmsgs): New array.
15579 (grub_glyph_info): Make bitmap a pointer.
15580 (file_formats): New type WIDTH_SPEC.
15581 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
15582 (options): Add width-spec.
15583 (help): Likewise.
15584 (add_char): Renamed to ...
15585 (add_glyph): ... this.
15586 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
15587 (glyph_replace): New type.
15588 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
15589 (add_char): New function.
15590 (add_subst): Likewise.
15591 (process_cursive): Likewise.
15592 (add_font): Handle GSUB.
15593 (write_font_width_spec): New function.
15594 (main): Sort glyphs.
15595 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
15596 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
15597 * kern/term.c (grub_cls): Moved from here...
15598 * normal/term.c (grub_cls): ... here.
15599
15600 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
15601
15602 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
15603 suitable for using within the format argument of printf when
15604 converting grub_size_t.
15605 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
15606 "x" to convert grub_size_t arguments.
15607
15608 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15609
15610 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
15611 too long captions.
15612 (list_get_minimal_size): Take selection box into account.
15613
15614 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15615
15616 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
15617 NULL font.
15618
15619 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
15620
15621 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
15622 devices when iterating over /dev/disk/by-id; they will be handled
15623 later if appropriate, which they aren't always (e.g. LVM).
15624
15625 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
15626
15627 * include/grub/misc.h (grub_reboot): Declare as noreturn.
15628 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
15629 fails.
15630 (grub_halt): Likewise.
15631 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
15632 reset-all fails.
15633 (grub_halt): Don't return, even if all of shut-down, power-off, and
15634 poweroff fail.
15635
15636 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
15637
15638 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
15639 arguments, not three.
15640
15641 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
15642
15643 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
15644 * util/grub.d/10_linux.in: Use it to check for LVM, so that
15645 LVM-on-RAID is handled correctly.
15646
15647 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
15648
15649 * docs/grub.texi (Changes from GRUB Legacy): New section.
15650 (Future): Fix typo.
15651
15652 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
15653
15654 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
15655 grub.d/README accidentally ends up executable for one reason or
15656 another. Ignore it.
15657
15658 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
15661 (gpt_partition_map_iterate): Support non-512B sectors.
15662
15663 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15664
15665 * kern/efi/init.c (grub_efi_init): Disable watchdog.
15666 Tested by: Seth Goldberg.
15667
15668 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15669
15670 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
15671 Properly align mbi.
15672 Reported by: Seth Goldberg.
15673
15674 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
15675
15676 * util/grub-mkrescue.in: Avoid module duplication.
15677
15678 2010-07-01 Sean Finney <seanius@seanius.net>
15679
15680 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
15681
15682 2010-07-01 Sean Finney <seanius@seanius.net>
15683
15684 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
15685
15686 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
15687
15688 * disk/lvm.c (grub_lvm_checkvalue): New function.
15689 (grub_lvm_check_flag): Likewise.
15690
15691 2010-07-01 Robert Millan <rmh@gnu.org>
15692
15693 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
15694 Support 'p' as partition separator on kernel of FreeBSD (used
15695 with GPT labels).
15696 (grub_util_biosdisk_get_grub_dev): Likewise.
15697
15698 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
15699
15700 Yeeloong firmware port.
15701
15702 * boot/mips/yeeloong/fwstart.S: New file.
15703 * bus/cs5536.c (gpiodump): New const.
15704 (set_io_space): New function.
15705 (set_iod): Likewise.
15706 (set_p2d): Likewise.
15707 (grub_cs5536_init_geode): Likewise.
15708 * commands/mips/yeeloong/lsspd.c: New file.
15709 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
15710 (serial_mod_SOURCES): New variable.
15711 (serial_mod_CFLAGS): Likewise.
15712 (serial_mod_LDFLAGS): Likewise.
15713 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
15714 term/terminfo.c and term/tparm.c.
15715 (pkglib_IMAGES): Add fwstart.img.
15716 (fwstart_img_SOURCES): New variable.
15717 (fwstart_img_CFLAGS): Likewise.
15718 (fwstart_img_ASFLAGS): Likewise.
15719 (fwstart_img_LDFLAGS): Likewise.
15720 (fwstart_img_FORMAT): Likewise.
15721 (pkglib_MODULES): Add lsspd.mod.
15722 (lsspd_mod_SOURCES): New variable.
15723 (lsspd_mod_CFLAGS): Likewise.
15724 (lsspd_mod_LDFLAGS): Likewise.
15725 (pkglib_MODULES): Add halt.mod.
15726 (halt_mod_SOURCES): New variable.
15727 (halt_mod_CFLAGS): Likewise.
15728 (halt_mod_LDFLAGS): Likewise.
15729 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
15730 (serial_mod_SOURCES): Removed.
15731 (serial_mod_CFLAGS): Likewise.
15732 (serial_mod_LDFLAGS): Likewise.
15733 * disk/ata.c (check_device): New function.
15734 (grub_ata_device_initialize): Use check_device.
15735 (grub_ata_iterate): Recheck devices.
15736 (grub_ata_open): Likewise.
15737 (grub_atapi_iterate): Likewise.
15738 (grub_atapi_open): Likewise.
15739 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
15740 (GRUB_ATA_CH1_PORT1): Likewise.
15741 (GRUB_ATA_CH0_PORT2): Likewise.
15742 (GRUB_ATA_CH1_PORT2): Likewise.
15743 * include/grub/mips/loongson.h: New file.
15744 * include/grub/mips/yeeloong/ec.h: Likewise.
15745 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
15746 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
15747 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
15748 * include/grub/misc.h (grub_halt): Declare as noreturn.
15749 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
15750 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
15751 (UART_ENABLE_FIFO_TRIGGER1): New definition.
15752 (UART_ENABLE_DTRRTS): Likewise.
15753 (UART_ENABLE_MODEM): Removed.
15754 (UART_ENABLE_OUT2): New const.
15755 * include/grub/term.h (grub_term_register_input_active): New function.
15756 (grub_term_register_output_active): Likewise.
15757 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
15758 argument.
15759 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
15760 (init_pci): New function.
15761 (grub_machine_init): Execute platform init when firmware. Init serial.
15762 (grub_halt): Implement.
15763 (grub_exit): Likewise.
15764 (grub_reboot): Likewise.
15765 * term/serial.c (serial_hw_init): Update macros.
15766 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
15767 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
15768 (image_targets): New target mipsel-yeeloong-flash.
15769 (generate_image): Support IMAGE_YEELOONG_FLASH.
15770 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
15771 (grub_video_sm712_setup): Init card.
15772 (grub_video_sm712_set_palette): Removed.
15773 * video/sm712_init.c: New file.
15774
15775 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
15776
15777 * Makefile.in (install-local): Temporarily prepend $(builddir) to
15778 PATH when running help2man and then run it on the unadorned
15779 executable names, rather than passing $(builddir)/* paths to
15780 help2man. This avoids the build directory ending up in generated
15781 manual pages.
15782
15783 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
15784
15785 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
15786 to avoid accidents when debugging with 'sh -x'.
15787 * util/grub-mkrescue.in: Likewise.
15788 * util/grub.d/00_header.in: Likewise.
15789 * util/grub.d/10_hurd.in: Likewise.
15790 * util/grub.d/10_kfreebsd.in: Likewise.
15791 * util/grub.d/10_linux.in: Likewise.
15792 * util/grub.d/10_netbsd.in: Likewise.
15793 * util/grub.d/10_windows.in: Likewise.
15794 * util/grub.d/20_linux_xen.in: Likewise.
15795 * util/grub.d/30_os-prober.in: Likewise.
15796 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15797
15798 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
15799
15800 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
15801 last character in the buffer.
15802 Reported by: Vladimir Serbinenko.
15803
15804 2010-06-29 Robert Millan <rmh@gnu.org>
15805
15806 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
15807 (Command-line and menu entry commands): Document `badram' command.
15808
15809 2010-06-28 Robert Millan <rmh@gnu.org>
15810
15811 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
15812 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
15813 command using ${GRUB_BADRAM} as parameter.
15814
15815 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15816
15817 * docs/grub.texi (Device map): New section.
15818 (Themes): New section (stub).
15819 * Makefile.in (docs/grub.info): The info documentation now builds
15820 without errors. Make sure it stays that way.
15821
15822 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
15823
15824 Use normal parser for menu entries.
15825 Reported by: Thomas Frauendorfer
15826
15827 * include/grub/parser.h (grub_parser_execute): Don't export.
15828 * normal/menu.c (grub_menu_execute_entry_real): New function.
15829 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
15830
15831 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15832
15833 * docs/grub.texi (Embedded configuration): New section (replacing
15834 old "Preset Menu" stub).
15835 (Images): New section.
15836 (configfile): Note that any menu entries defined in `file' are shown
15837 immediately.
15838
15839 2010-06-28 Josh Triplett <josh@joshtriplett.org>
15840
15841 * mmap/i386/pc/mmap_helper.S: Set CF on return.
15842
15843 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15844
15845 * util/grub-install.in: Add --debug-image= option.
15846
15847 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15848
15849 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
15850 possible on Linux.
15851
15852 * util/deviceiter.c (check_device): Rename to ...
15853 (check_device_readable_unique): ... this. Update all callers.
15854 Maintain and check a list of which devices (by canonicalized name)
15855 have already been seen.
15856 (clear_seen_devices): New function.
15857 (compare_file_names) [__linux__]: New function.
15858 (grub_util_iterate_devices): Clear the list of seen devices on exit
15859 and (just in case) on entry.
15860 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
15861 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
15862 seen-devices list, superseded by general code in check_device.
15863
15864 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15865
15866 * commands/cat.c (options): New variable.
15867 (grub_cmd_cat): Parse options. If the --dos option is given, print
15868 DOS-style "\r\n" line endings as simple newlines (Debian bug
15869 #586358).
15870 (GRUB_MOD_INIT): Use extcmd.
15871 (GRUB_MOD_FINI): Likewise.
15872 * docs/grub.texi (cat): Document --dos.
15873
15874 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
15875
15876 XEN with Linux grub-mkconfig support.
15877
15878 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
15879 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
15880 GRUB_CMDLINE_XEN_DEFAULT.
15881 * util/grub.d/20_linux_xen.in: New file.
15882
15883 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
15884
15885 Initialise VGA video on qemu ourselves.
15886
15887 * boot/i386/qemu/boot.S: Don't call 0xc000.
15888 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
15889 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
15890 (kernel_img_HEADERS): Add pci.h.
15891 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
15892 * configure.ac: Force unifont on qemu and yeeloong.
15893 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
15894 (grub_vga_palette_write): Use correct register.
15895 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
15896 Call grub_qemu_init_cirrus.
15897 * kern/i386/qemu/init.c: New file.
15898 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
15899
15900 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
15901
15902 2010-06-26 Pavel Roskin <proski@gnu.org>
15903
15904 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
15905 13.
15906
15907 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
15908
15909 * docs/grub.texi (Simple configuration): Explain that
15910 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
15911 set to `true' to disable their respective recovery entries, not
15912 merely set.
15913
15914 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
15915
15916 Make the `source' command slightly faster.
15917
15918 * normal/main.c (grub_normal_execute): Don't re-read list files when
15919 nested.
15920
15921 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
15922
15923 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
15924 field position and mask size to red fields from mode_info, not
15925 green.
15926 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
15927 Remove redundant tag->common.framebuffer_type assignment.
15928 Reported by: Seth Goldberg.
15929
15930 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
15931
15932 Sync up other versions of the Linux loader with Robert Millan's
15933 change of 2010-01-09, "Make loader output a bit more user-friendly".
15934
15935 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
15936 grub_dprintf().
15937 (grub_cmd_linux): Likewise.
15938 (grub_cmd_initrd): Likewise.
15939 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
15940 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15941
15942 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
15943
15944 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
15945 larger than MEMORY_MAP_SIZE.
15946
15947 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
15948
15949 Fix parallel build.
15950
15951 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
15952 dependency.
15953 * script/parser.y: #include grub_script.tab.h header.
15954
15955 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 Support >3GiB and <16MiB RAM in i386-qemu.
15958
15959 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
15960 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
15961 (grub_lower_mem): Removed.
15962 (grub_upper_mem): Likewise.
15963 (mem_size): Made static.
15964 (above_4g): New variable.
15965 (grub_machine_mmap_init): Detect small mem_size and above_4g.
15966 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
15967 support.
15968
15969 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15970
15971 Cirrus 5446 and Bochs video cards support.
15972
15973 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
15974 video_bochs.mod
15975 (video_cirrus_mod_SOURCES): New variable.
15976 (video_cirrus_mod_CFLAGS): Likewise.
15977 (video_cirrus_mod_LDFLAGS): Likewise.
15978 (video_bochs_mod_SOURCES): Likewise.
15979 (video_bochs_mod_CFLAGS): Likewise.
15980 (video_bochs_mod_LDFLAGS): Likewise.
15981 * include/grub/vga.h: New file.
15982 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
15983 (grub_video_fb_set_page_t): New type.
15984 (grub_video_fb_setup): New prototype.
15985 (grub_video_fb_swap_buffers): Likewise.
15986 (grub_video_fb_get_info_and_fini): Likewise.
15987 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
15988 (CRTC_DATA_PORT): Likewise.
15989 (CRTC_CURSOR): Likewise.
15990 (CRTC_CURSOR_ADDR_HIGH): Likewise.
15991 (CRTC_CURSOR_ADDR_LOW): Likewise.
15992 (CRTC_CURSOR_DISABLE): Likewise.
15993 (update_cursor): Use grub_vga_cr_write.
15994 (grub_vga_text_setcursor): Likewise.
15995 * video/bochs.c: New file.
15996 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
15997 (palette): Likewise.
15998 (palette_size): Likewise.
15999 (framebuffer): New variable.
16000 (grub_video_fb_init): Use 'framebuffer'.
16001 (grub_video_fb_fini): Likewise.
16002 (grub_video_fb_get_info): Likewise.
16003 (grub_video_fb_get_palette): Likewise.
16004 (grub_video_fb_set_palette): Likewise.
16005 (grub_video_fb_set_viewport): Likewise.
16006 (grub_video_fb_get_viewport): Likewise.
16007 (grub_video_fb_map_color): Likewise.
16008 (grub_video_fb_map_rgb): Likewise.
16009 (grub_video_fb_map_rgba): Likewise.
16010 (grub_video_fb_unmap_color): Likewise.
16011 (grub_video_fb_unmap_color_int): Likewise.
16012 (grub_video_fb_fill_rect): Likewise.
16013 (grub_video_fb_blit_bitmap): Likewise.
16014 (grub_video_fb_blit_render_target): Likewise.
16015 (grub_video_fb_scroll): Likewise.
16016 (grub_video_fb_create_render_target): Likewise.
16017 (grub_video_fb_doublebuf_blit_init): Likewise.
16018 (grub_video_fb_set_active_render_target): Handle doublebuffering.
16019 (doublebuf_pageflipping_update_screen): New function.
16020 (doublebuf_pageflipping_init): Likewise.
16021 (grub_video_fb_setup): Likewise.
16022 (grub_video_fb_swap_buffers): Likewise.
16023 (grub_video_fb_get_info_and_fini): Likewise.
16024 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
16025 All users updated.
16026 (doublebuf_pageflipping_commit): Restructured into ...
16027 (doublebuf_pageflipping_set_page): ... this.
16028 (doublebuf_pageflipping_update_screen): Removed.
16029 (doublebuf_pageflipping_init): Likewise.
16030 (double_buffering_init): Likewise.
16031 (grub_video_vbe_setup): Use grub_video_fb_setup.
16032 (grub_video_vbe_swap_buffers): Removed.
16033 (grub_video_vbe_set_active_render_target): Likewise.
16034 (grub_video_vbe_get_active_render_target): Likewise.
16035 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
16036 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
16037 grub_video_fb_set_active_render_target and
16038 grub_video_fb_get_active_render_target.
16039 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
16040 (SEQUENCER_DATA_PORT): Likewise.
16041 (MAP_MASK_REGISTER): Likewise.
16042 (CRTC_ADDR_PORT): Likewise.
16043 (CRTC_DATA_PORT): Likewise.
16044 (START_ADDR_HIGH_REGISTER): Likewise.
16045 (START_ADDR_LOW_REGISTER): Likewise.
16046 (GRAPHICS_ADDR_PORT): Likewise.
16047 (GRAPHICS_DATA_PORT): Likewise.
16048 (READ_MAP_REGISTER): Likewise.
16049 (INPUT_STATUS1_REGISTER): Likewise.
16050 (INPUT_STATUS1_VERTR_BIT): Likewise.
16051 (get_map_mask): Use grub_vga_sr_read.
16052 (set_map_mask): Use grub_vga_sr_write.
16053 (set_read_map): Use grub_vga_gr_write.
16054 (set_start_address): Use grub_vga_cr_write.
16055 * video/sm712.c (framebuffer): Remove leftover fields.
16056
16057 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
16058
16059 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
16060 setting GRUB_VIDEO_BACKEND. Make it available as a user override
16061 instead. Replace the gfxterm backend check with a check that
16062 ${GRUB_PREFIX}/video.lst is non-empty.
16063 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
16064 again.
16065 (load_video): New generated function. Call it before loading
16066 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
16067 * util/grub.d/10_linux.in (linux_entry): Call load_video.
16068 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
16069 * docs/grub.texi (Simple configuration): Document
16070 GRUB_VIDEO_BACKEND.
16071
16072 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
16073
16074 Use video functions in linux and xnu loaders.
16075
16076 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
16077 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
16078 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
16079 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
16080 loader/i386/pc/linux.c.
16081 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
16082 (find_line_len): Removed.
16083 (find_framebuf): Likewise.
16084 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
16085 * loader/i386/efi/xnu.c: Removed.
16086 * loader/i386/pc/xnu.c: Moved from here...
16087 * loader/i386/xnu.c: ...here.
16088
16089 Enable priorities in video drivers.
16090
16091 * include/grub/video.h (grub_video_adapter_prio_t): New type.
16092 (grub_video_adapter): New field prio.
16093 (grub_video_register): Respect prio when inserting.
16094 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
16095 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
16096 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
16097 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
16098 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
16099 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
16100 * video/sm712.c (grub_video_sm712_adapter): Likewise.
16101
16102 Fix SDL driver ID.
16103
16104 * include/grub/video.h (grub_video_driver_id_t): New value
16105 GRUB_VIDEO_DRIVER_SDL.
16106 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
16107
16108 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
16109
16110 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
16111 argument to printf.
16112 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
16113
16114 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
16115
16116 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
16117 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
16118
16119 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
16120
16121 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
16122 directly, and recommend grub-install instead.
16123 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
16124
16125 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
16126
16127 Fix i386-pc prefix handling with nested partitions (Debian bug
16128 #585068). Note that the case where the core image is booted using
16129 multiboot and relocated from its original location still requires
16130 more work.
16131
16132 * kern/i386/pc/init.c (make_install_device): If the prefix starts
16133 with "(,", fill the boot drive in between those two characters, but
16134 expect that a full partition specification including partition map
16135 names will follow.
16136 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
16137 specified, write a prefix without the drive name but including a
16138 full partition specification.
16139
16140 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
16141
16142 * util/grub-mkconfig.in: Ignore non-option arguments, for
16143 compatibility with older versions (before 2010-06-12) which did the
16144 same. In particular, this makes it easier to ship an update-grub
16145 wrapper which is compatible with that used with GRUB Legacy (Debian
16146 bug #586056).
16147
16148 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
16149
16150 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
16151 for manual page generation.
16152
16153 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
16154
16155 * po/POTFILES: Remove leftover commands/handler.c.
16156
16157 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
16158
16159 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
16160 left this script non-functional.
16161
16162 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
16163
16164 * docs/man/grub-emu.h2m: New file.
16165
16166 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
16167
16168 * docs/grub.texi (Commands): Document reduced command set in rescue
16169 mode.
16170 (cpuid): New section.
16171
16172 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
16173
16174 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
16175 new partition naming style.
16176 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
16177
16178 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
16179
16180 Add "-o grub.iso" like cmdline options support.
16181
16182 * util/grub-install.in: Improve cmdline option parsing.
16183 * util/grub-mkconfig.in: Likewise.
16184 * util/grub-mkrescue.in: Likewise.
16185 * util/grub-reboot.in: Likewise.
16186 * util/grub-set-default.in: Likewise.
16187 * util/i386/efi/grub-install.in: Likewise.
16188 * util/ieee1275/grub-install.in: Likewise.
16189 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
16190
16191 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
16192
16193 * .bzrignore: Ignore 41_custom.
16194
16195 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
16196
16197 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
16198
16199 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
16200
16201 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
16202 prototype declarations.
16203
16204 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
16205 generating fs, partmap, and video lists.
16206 * include/grub/fs.h (grub_fs_register): Omit prototype if
16207 GRUB_LST_GENERATOR is defined.
16208 * include/grub/partition.h (grub_partition_map_register): Likewise.
16209 * include/grub/video.h (grub_video_register): Likewise.
16210
16211 2010-06-12 Javier Martín <lordhabbit@gmail.com>
16212
16213 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
16214
16215 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
16216
16217 * util/grub-mkrescue.in: Support --xorriso argument.
16218
16219 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16220
16221 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
16222 Suggested by: Thomas Schmitt.
16223
16224 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16225
16226 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
16227 Suggested by: Thomas Schmitt.
16228
16229 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16230
16231 custom.cfg support.
16232
16233 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
16234 * util/grub.d/41_custom.in: New file.
16235
16236 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
16237
16238 * util/grub-mkrescue.in (make_image): Remove sh module, which has
16239 been merged back into normal.
16240
16241 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
16242
16243 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
16244 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
16245
16246 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
16247
16248 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
16249 when generating manual pages.
16250 * docs/man/grub-bin2h.h2m: New file.
16251 * docs/man/grub-editenv.h2m: New file.
16252 * docs/man/grub-fstest.h2m: New file.
16253 * docs/man/grub-install.h2m: New file.
16254 * docs/man/grub-macho2img.h2m: New file.
16255 * docs/man/grub-mkconfig.h2m: New file.
16256 * docs/man/grub-mkdevicemap.h2m: New file.
16257 * docs/man/grub-mkfont.h2m: New file.
16258 * docs/man/grub-mkimage.h2m: New file.
16259 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
16260 * docs/man/grub-mkrelpath.h2m: New file.
16261 * docs/man/grub-mkrescue.h2m: New file.
16262 * docs/man/grub-ofpathname.h2m: New file.
16263 * docs/man/grub-pe2elf.h2m: New file.
16264 * docs/man/grub-probe.h2m: New file.
16265 * docs/man/grub-reboot.h2m: New file.
16266 * docs/man/grub-script-check.h2m: New file.
16267 * docs/man/grub-set-default.h2m: New file.
16268 * docs/man/grub-setup.h2m: New file.
16269
16270 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 Use FOR_* macros instead of *_iterate whenever possible.
16273
16274 * commands/handler.c: Removed.
16275 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
16276 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
16277 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
16278 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
16279 (grub_probe_SOURCES): Remove kern/parser.c.
16280 (util/grub-script-check.c_DEPENDENCIES): Removed.
16281 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
16282 and grub_script_check_init.c.
16283 (grub_script_check_init.lst): Removed.
16284 (grub_script_check_init.h): Likewise.
16285 (grub_script_check_init.c): Likewise.
16286 (pkglib_MODULES): Remove handler.mod and sh.mod.
16287 (handler_mod_SOURCES): Removed.
16288 (handler_mod_CFLAGS): Likewise.
16289 (handler_mod_LDFLAGS): Likewise.
16290 (normal_mod_SOURCES): Remove normal/handler.c.
16291 Add script/main.c, script/script.c, script/execute.c,
16292 script/function.c, script/lexer.c, grub_script.tab.c
16293 and grub_script.yy.c.
16294 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
16295 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
16296 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
16297 (grub_setup_SOURCES): Remove kern/parser.c.
16298 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
16299 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
16300 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
16301 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
16302 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
16303 (grub_setup_SOURCES): Remove kern/parser.c.
16304 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
16305 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
16306 * include/grub/command.h (grub_command_iterate): Removed.
16307 (FOR_COMMANDS): New macro.
16308 * include/grub/dl.h (grub_dl): New member next.
16309 (grub_dl_iterate): Removed.
16310 (grub_dl_head): New variable declaration.
16311 (FOR_DL_MODULES): New macro.
16312 * include/grub/fs.h: Include list.h.
16313 (grub_fs): Make next first element.
16314 (grub_fs_list): New variable declaration.
16315 (grub_fs_register): Make inline.
16316 (grub_fs_unregister): Likewise.
16317 (grub_fs_iterate): Removed.
16318 (FOR_FILESYSTEMS): New macro.
16319 * include/grub/handler.h: Removed.
16320 * include/grub/list.h (grub_list_hook_t): Removed.
16321 (grub_list_test_t): Likewise.
16322 (grub_list_pop): Likewise.
16323 (grub_list_iterate): Likewise.
16324 (grub_list_insert): Likewise.
16325 (FOR_LIST_ELEMENTS): New macro.
16326 * include/grub/parser.h (grub_parser_class): Removed.
16327 (grub_parser_register): Likewise.
16328 (grub_parser_unregister): Likewise.
16329 (grub_parser_get_current): Likewise.
16330 (grub_parser_set_current): Likewise.
16331 (grub_register_rescue_parser): Likewise.
16332 (grub_rescue_parse_line): New function.
16333 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
16334 * include/grub/script_sh.h (grub_script_function_list): New variable
16335 declaration.
16336 (FOR_SCRIPT_FUNCTIONS): New macro.
16337 (grub_script_function_iterate): Removed.
16338 (grub_normal_parse_line): New prototype.
16339 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
16340 (FOR_DISABLED_TERM_INPUTS): Likewise.
16341 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
16342 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
16343 * include/grub/video.h (grub_video_adapter): Move 'next' to first
16344 element.
16345 (grub_video_register): Inline.
16346 (grub_video_unregister): Likewise.
16347 (grub_video_adapter_list): New variable declaration.
16348 (grub_video_iterate): Removed.
16349 (FOR_VIDEO_ADAPTERS): New macro.
16350 * kern/dl.c (grub_dl_list): Removed. All users updated.
16351 (grub_dl_iterate): Removed.
16352 * kern/fs.c (grub_fs_list): Make global.
16353 (grub_fs_register): Removed.
16354 (grub_fs_unregister): Likewise.
16355 (grub_fs_iterate): Likewise.
16356 * kern/handler.c: Removed.
16357 * kern/list.c (grub_list_pop): Removed.
16358 (grub_list_iterate): Likewise.
16359 (grub_list_insert): Likewise.
16360 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
16361 (grub_prio_list_insert): Don't use grub_list_insert.
16362 * kern/main.c (grub_register_rescue_parser): Don't call
16363 grub_register_rescue_parser.
16364 * kern/parser.c (grub_parser_class): Removed.
16365 (grub_parser_execute): Use grub_rescue_parse_line.
16366 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
16367 (grub_rescue_parser): Removed.
16368 (grub_register_rescue_parser): Likewise.
16369 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
16370 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
16371 (grub_auth_check_authentication): Likewise.
16372 * normal/completion.c (iterate_command): Removed.
16373 (grub_normal_do_completion): Use FOR_COMMANDS.
16374 * normal/handler.c: Removed.
16375 * normal/main.c (read_config_file): Remove parser changing.
16376 (grub_normal_execute): Don't call read_handler_list.
16377 (grub_normal_read_line_real): Statically allocate prompt.
16378 (grub_cmdline_run): Use grub_normal_parse_line.
16379 (GRUB_MOD_FINI): Don't call free_handler_list.
16380 * normal/menu_entry.c (run): Likewise.
16381 * script/function.c (grub_script_function_list): Make global.
16382 (grub_script_function_iterate): Removed.
16383 * script/main.c (grub_normal_parse_line): Make global.
16384 (grub_sh_parser): Removed.
16385 (GRUB_MOD_INIT): Likewise.
16386 (GRUB_MOD_FINI): Likewise.
16387 * tests/lib/functional_test.c (grub_functional_test): Use
16388 FOR_LIST_ELEMENTS.
16389 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
16390 (grub_test_run): Use FOR_LIST_ELEMENTS.
16391 * tests/lib/unit_test.c (main): Likewise.
16392 * util/deviceiter.c (grub_util_iterate_devices): Don't use
16393 grub_list_pop.
16394 * util/grub-fstest.c (grub_term_input_class): Removed.
16395 (grub_term_output_class): Likewise.
16396 * util/grub-probe.c: Likewise.
16397 * util/i386/pc/grub-setup.c: Likewise.
16398 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16399 * util/grub-script-check.c (main): Don't call grub_init_all and
16400 grub_fini_all.
16401 * video/video.c (grub_video_adapter_list): Make global.
16402 (grub_video_register): Removed.
16403 (grub_video_unregister): Likewise.
16404 (grub_video_iterate): Likewise.
16405
16406 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
16407
16408 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
16409 reported by Henrique Ferreiro.
16410
16411 2010-06-09 Robert Millan <rmh@gnu.org>
16412
16413 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
16414 ones, when both are available.
16415
16416 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16417
16418 Make --version uniform and avoid hard-coded program name.
16419
16420 * util/grub-mkimage.c (main): Use `program_name' instead of
16421 hard-coded string.
16422 * util/i386/pc/grub-setup.c (main): Likewise.
16423 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
16424 * util/grub-install.in: Save the basename of $0 in $self, and use the
16425 latter in informational messages. Use the same format for --version
16426 as the binary programs.
16427 * util/grub-mkconfig.in: Likewise.
16428 * util/grub-mkrescue.in: Likewise.
16429 * util/grub-reboot.in: Likewise.
16430 * util/grub-set-default.in: Likewise.
16431 * util/i386/efi/grub-install.in: Likewise.
16432 * util/ieee1275/grub-install.in: Likewise.
16433 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
16434
16435 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16436
16437 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
16438 embedding area. Use <= instead of == when checking for non-emptiness.
16439
16440 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16441
16442 * configure.ac: Add `.' to the directories searched for unifont.
16443
16444 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
16445
16446 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
16447 grub_script.yy.h.
16448
16449 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
16450
16451 * docs/grub.texi (History): Expand to cover GRUB 2.
16452 (Serial terminal): Refer to `terminal_input' and `terminal_output'
16453 commands, not `terminal'.
16454 (serial): Likewise.
16455 (terminal_input): New section.
16456 (terminal_output): New section.
16457 (uppermem): New section (stub).
16458 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
16459
16460 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
16461
16462 * docs/grub.texi (Security): Menu entries are unrestricted by
16463 default, not restricted to superusers as I had previously thought.
16464 Reword to account for this.
16465
16466 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16467
16468 * kern/emu/misc.c (device_mapper_null_log): New function.
16469 (grub_device_mapper_supported): New function.
16470 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
16471 prototype.
16472 * kern/emu/hostdisk.c (find_partition_start): Check whether
16473 device-mapper is supported before trying to use it.
16474 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
16475
16476 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16477
16478 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
16479 (File name syntax): Likewise.
16480 (help): --all is no longer supported in GRUB 2. Be more precise
16481 about pattern matching.
16482
16483 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16484
16485 * normal/completion.c (grub_normal_do_completion): When completing
16486 arguments to "set" and the current word contains an equals sign,
16487 skip to after the equals sign before starting completion.
16488
16489 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16490
16491 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
16492
16493 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16494
16495 * docs/grub.texi (Network): New section.
16496 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
16497 `(nd)' as in GRUB Legacy.
16498 (pxe_unload): New section.
16499
16500 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16501
16502 * docs/grub.texi (Troubleshooting): `echo' is not usually available
16503 in the rescue shell, so recommend using `set' instead. Thanks,
16504 Jordan Uggla.
16505
16506 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16507
16508 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
16509 (password): New section.
16510 (password_pbkdf2): New section.
16511 (search): New section.
16512 (Security): New section.
16513 (Troubleshooting): New section, currently very incomplete.
16514 (Invoking grub-mkpasswd-pbkdf2): New section.
16515 (Internals): New section, currently very incomplete.
16516
16517 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16518
16519 * util/grub.d/00_header.in: Add some more quoting (of
16520 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
16521 work again.
16522 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
16523
16524 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
16525
16526 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
16527 to `count', fixing variable shadowing that broke the -c option.
16528
16529 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
16530
16531 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
16532 in case they contain spaces.
16533
16534 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
16535
16536 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
16537 "part_" to partmap module names, in line with grub-install.
16538 Reported by: Jindřich Makovička (Debian bug #584426).
16539
16540 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
16541
16542 * util/grub-mkimage.c: Make target-related error messages slightly
16543 more helpful; -O talks about "format". Explicitly point to the use
16544 of -O if no target is specified.
16545 Reported by: Didier Raboud (Debian bug #584415).
16546
16547 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
16548
16549 * INSTALL: Document several build requirements for optional features
16550 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
16551
16552 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
16553
16554 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
16555 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
16556 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
16557
16558 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16559
16560 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
16561 Thanks to Jordan Uggla for spotting this.
16562
16563 2010-06-02 Aleš Nesrsta <starous@volny.cz>
16564
16565 Finally make USB usable.
16566
16567 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
16568 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
16569 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
16570 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
16571 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
16572 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
16573 (GRUB_OHCI_FSMPS): Likewise.
16574 (GRUB_OHCI_PERIODIC_START): Likewise.
16575 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
16576 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
16577 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
16578 (GRUB_OHCI_SET_PORT_RESET): Likewise.
16579 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
16580 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
16581 (grub_ohci_transaction): Likewise.
16582 (grub_ohci_transfer): Improve condition detection algorithms.
16583 Handle toggle property. Program the transactions correctly.
16584 Improve error handling. Various important fixups.
16585 (grub_ohci_portstatus): Put register writes in right order.
16586 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
16587 (grub_uhci_transfer): Don't show "failed" message on success.
16588 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
16589 array.
16590 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
16591 determine its size.
16592 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
16593 before initialization is completed. Use IN direction for empty
16594 transfers. Use last_trans and compute toggle.
16595 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
16596 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
16597 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
16598 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
16599 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
16600 (grub_usb_device): Increase toggle to 256.
16601 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
16602 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
16603 GRUB_USBMS_SUBCLASS_SFF8070.
16604 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
16605 (grub_scsi_inquiry): New member page and alloc_length.
16606 (grub_scsi_request_sense): New structure.
16607 (grub_scsi_request_sense_data): Likewise.
16608 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
16609 control.
16610 * disk/scsi.c (grub_scsi_request_sense): New function.
16611 (grub_scsi_test_unit_ready): Likewise.
16612 (grub_scsi_inquiry): Fill new fields.
16613 (grub_scsi_read_capacity): Likewise.
16614 (grub_scsi_read10): Add request sense at the end.
16615 (grub_scsi_read12): Likewise.
16616 (grub_scsi_write10): Likewise.
16617 (grub_scsi_write12): Likewise.
16618 (grub_scsi_open): Add Test Unit Ready.
16619 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
16620 Support additional subclasses. Con't clear halt yet. Activate the
16621 proper config. Calculate LUNs correctly.
16622 (grub_usbms_transfer): Various important fixups.
16623
16624 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
16625
16626 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
16627 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
16628 (grub_ohci_fini_hw): New function.
16629 (grub_ohci_restore_hw): Likewise.
16630 (GRUB_MOD_INIT(ohci)): Register preboot hook.
16631 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
16632 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
16633
16634 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
16635
16636 Dedicated DMA allocations.
16637
16638 * bus/pci.c (grub_memalign_dma32): New function
16639 (grub_dma_free): Likewise.
16640 (grub_dma_get_virt): Likewise.
16641 (grub_dma_get_phys): Likewise.
16642 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
16643 (grub_ohci_pci_iter): Use dma32_alloc.
16644 (grub_ohci_transfer): Likewise.
16645 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
16646 (grub_usb_bulk_readwrite): Likewise.
16647 * include/grub/pci.h: Add declarations.
16648
16649 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
16650
16651 CS5536 support.
16652
16653 * bus/cs5536.c: New file.
16654 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
16655 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
16656 (cs5536_mod_SOURCES): New variable.
16657 (cs5536_mod_CFLAGS): Likewise.
16658 (cs5536_mod_LDFLAGS): Likewise.
16659 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
16660 machine/pci.h.
16661 (kernel_img_SOURCES): Add bus/cs5536.c.
16662 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
16663 usb_keyboard.mod.
16664 (usb_mod_SOURCES): New variable.
16665 (usb_mod_CFLAGS): New variable.
16666 (usb_mod_LDFLAGS): New variable.
16667 (usbtest_mod_SOURCES): New variable.
16668 (usbtest_mod_CFLAGS): New variable.
16669 (usbtest_mod_LDFLAGS): New variable.
16670 (ohci_mod_SOURCES): New variable.
16671 (ohci_mod_CFLAGS): New variable.
16672 (ohci_mod_LDFLAGS): New variable.
16673 (usbms_mod_SOURCES): New variable.
16674 (usbms_mod_CFLAGS): New variable.
16675 (usbms_mod_LDFLAGS): New variable.
16676 (usb_keyboard_mod_SOURCES): New variable.
16677 (usb_keyboard_mod_CFLAGS): New variable.
16678 (usb_keyboard_mod_LDFLAGS): New variable.
16679 * include/grub/smbus.h: New file.
16680 * include/grub/cs5536.h: New file.
16681
16682 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16683
16684 * util/grub.d/00_header.in: Add safety check to make sure that
16685 ${locale_dir} exists before trying to probe it.
16686
16687 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16688
16689 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
16690 per the GNU Coding Standards; this is now too obscure to be worth
16691 documenting.
16692 (QNX): Likewise.
16693 (chainloader): Remove cross-reference to `SCO UnixWare'.
16694
16695 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16696
16697 * docs/grub.texi (Chain-loading): New section.
16698 (DOS/Windows): New section, borrowed from GRUB Legacy with details
16699 adjusted for GRUB 2.
16700 (SCO UnixWare): Likewise.
16701 (QNX): Likewise.
16702 (chainloader): Add reference to `Block list syntax'.
16703 (drivemap): New section.
16704 (parttool): New section.
16705
16706 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16707
16708 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
16709 the grub shell'.
16710 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
16711 (Installing GRUB using grub-install): Remove reference to the grub
16712 shell; mention `grub-mkimage' and `grub-setup' instead.
16713 (Invoking grub-install): Likewise.
16714 (Interface): Add reference to `Menu entry editor'.
16715 (serial): Remove `--device' option.
16716
16717 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16718
16719 * docs/grub.texi (Configuration): New section, documenting
16720 configuration file generation using grub-mkconfig. I've left a slot
16721 for documenting the full shell scripting format but have not yet
16722 started on writing that up.
16723 (Invoking grub-mkconfig): New section.
16724
16725 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16726
16727 * docs/grub.texi (direntry): Remove grub-terminfo reference.
16728 (GNU GRUB manual): Likewise.
16729 (General commands): Update description of `terminfo' for GRUB 2.
16730
16731 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16732
16733 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
16734 (GRUB_MOD_INIT): Fix capitalisation.
16735 * docs/grub.texi (Command-line and menu entry commands): Document
16736 gettext and gptsync commands.
16737
16738 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
16739
16740 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
16741 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
16742
16743 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
16744
16745 Add btrfs probing support, currently only in the single-device case.
16746
16747 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
16748 function.
16749 (grub_guess_root_device): Call find_root_device_from_mountinfo
16750 before looking in /dev.
16751
16752 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16753
16754 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
16755 GRUB_DISK_SIZE_UNKNOWN.
16756 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
16757
16758 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
16759
16760 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
16761 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
16762 corrupted or not synced properly.
16763
16764 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16765
16766 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
16767 Reported by: Seth Goldberg.
16768
16769 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16770
16771 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
16772 addition of dest.
16773 Reported by: Seth Goldberg.
16774
16775 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16776
16777 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
16778 Reported by: Seth Goldberg.
16779
16780 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16781
16782 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
16783 64-bit address as signed on MIPS.
16784
16785 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
16786
16787 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
16788 to the empty string.
16789
16790 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
16791
16792 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
16793
16794 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
16795 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
16796 * kern/misc.c (__enable_execute_stack): Disable on
16797 GRUB_MACHINE_EMU.
16798
16799 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
16800
16801 Make grub-probe work with symbolic links under /dev/mapper as well
16802 as with real block devices. The Linux world seems to be (at best)
16803 in transition here, and GRUB shouldn't get caught in the middle.
16804
16805 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
16806 /dev/mapper.
16807
16808 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
16809
16810 * util/grub-script-check.c (main): Ensure defined behaviour on empty
16811 input files (in which case exit zero).
16812
16813 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
16814
16815 * kern/emu/misc.c (canonicalize_file_name): realpath can still
16816 return NULL for various reasons even if it has a maximum-length
16817 buffer: for example, there might be a symlink loop, or the path
16818 might exceed PATH_MAX. If this happens, return NULL.
16819
16820 2010-05-27 Robert Millan <rmh@gnu.org>
16821
16822 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
16823 partmap module to handle cross-partmap setups.
16824 Reported by Orestes Mas. Gràcies!
16825
16826 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
16827
16828 * util/grub-mkrescue.in: Initialise override_dir rather than
16829 assuming that it's unset or empty in the environment.
16830
16831 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
16832
16833 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
16834 variable index into p_index to suppress a warning with -Wshadow.
16835
16836 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
16837
16838 * INSTALL: Added flex >= 2.5.35 requirement.
16839
16840 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16841
16842 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
16843
16844 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16845
16846 cmostest support.
16847
16848 * commands/i386/cmostest.c: New file.
16849 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
16850 (cmostest_mod_SOURCES): New variable.
16851 (cmostest_mod_CFLAGS): Likewise.
16852 (cmostest_mod_LDFLAGS): Likewise.
16853 * conf/i386-pc.rmk: Likewise.
16854 * docs/grub.texi (Vendor power-on keys): New section.
16855 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
16856 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
16857 and GRUB_BUTTON_CMOS_ADDRESS.
16858 * util/grub.d/00_header.in: Handle powering-on by separate button.
16859
16860 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16861
16862 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
16863 Removed drawing_scrollbar argument. All users updated
16864 Fixes #29792.
16865 Reported by Jo Shields
16866
16867 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16868
16869 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
16870 buffer since gfxterm handles double repaint.
16871
16872 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16873
16874 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
16875 * term/gfxterm.c (real_scroll): Likewise.
16876
16877 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16878
16879 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
16880 before calling BIOS.
16881
16882 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16883
16884 * include/grub/i18n.h: Always enable grub_gettext.
16885
16886 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16887
16888 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
16889 partition naming style.
16890
16891 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
16892
16893 * util/grub-mkconfig.in: Fix handling of -o so that it works when
16894 not the first option.
16895
16896 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
16897
16898 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
16899
16900 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
16901
16902 * util/misc.c: Move inclusion of <limits.h> to ...
16903 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
16904
16905 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
16906
16907 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
16908 Fix merge error in NetBSD code.
16909 (find_partition_start) [__NetBSD__]: Likewise.
16910
16911 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
16912
16913 Fix grub-mkrescue usage unit testing.
16914
16915 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
16916
16917 2010-05-18 Christian Franke <franke@computer.org>
16918
16919 * util/grub.d/10_windows.in: Use path names instead of
16920 drive letters to prevent warning from Cygwin 1.7.
16921 Add drivemap command to menuentry if needed.
16922
16923 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
16924
16925 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
16926 gnumach and gnumach.gz.
16927
16928 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16929
16930 * include/grub/i18n.h (gettext): Inline instead of using #define.
16931 (grub_gettext): Likewise.
16932 (_): Likewise.
16933
16934 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16935
16936 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
16937 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
16938 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
16939 (main): Add a slash after pkglibdirroot.
16940
16941 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16942
16943 * util/grub-install.in: Add missing "in" keyword.
16944
16945 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
16948 Reported by: Seth Goldberg.
16949
16950 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16951
16952 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
16953
16954 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16955
16956 * configure.ac: Check for Linux device-mapper support.
16957
16958 * util/hostdisk.c (device_is_mapped): New function.
16959 (find_partition_start): New function, partly broken out from
16960 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
16961 device-mapper support added.
16962 (linux_find_partition): Use find_partition_start.
16963 (convert_system_partition_to_system_disk): Add `st' argument.
16964 Support Linux /dev/mapper/* devices if device-mapper support is
16965 available; only DM-RAID devices are understood at present.
16966 (find_system_device): Add `st' argument. Pass it to
16967 convert_system_partition_to_system_disk.
16968 (grub_util_biosdisk_get_grub_dev): Pass stat result to
16969 find_system_device and convert_system_partition_to_system_disk. Use
16970 find_partition_start.
16971
16972 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
16973 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
16974 * util/deviceiter.c [__linux__]: Define MINOR.
16975 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
16976 * util/mkdevicemap.c (grub_putchar): New function.
16977 (grub_getkey): New function.
16978 (grub_refresh): New function.
16979 (main): Set debug=all if -v -v is used.
16980
16981 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16982
16983 Fix build with non-GNU libcs.
16984
16985 * util/misc.c (canonicalize_file_name): Move to ...
16986 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
16987 grub_make_system_path_relative_to_its_root.
16988
16989 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16990
16991 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
16992 we handle finding grub-mkimage. Default to finding grub-mkimage in
16993 ${bindir} with program_transform_name applied, and provide a
16994 --grub-mkimage option to override this.
16995
16996 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16997
16998 Remove grub-mkisofs.
16999
17000 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
17001 (grub_mkisofs_SOURCES): Removed.
17002 (grub_mkisofs_CFLAGS): Removed.
17003 * util/mkisofs/defaults.h: Removed.
17004 * util/mkisofs/eltorito.c: Likewise.
17005 * util/mkisofs/exclude.h: Likewise.
17006 * util/mkisofs/hash.c: Likewise.
17007 * util/mkisofs/include/: Likewise.
17008 * util/mkisofs/include/fctldefs.h: Likewise.
17009 * util/mkisofs/include/mconfig.h: Likewise.
17010 * util/mkisofs/include/prototyp.h: Likewise.
17011 * util/mkisofs/include/statdefs.h: Likewise.
17012 * util/mkisofs/iso9660.h: Likewise.
17013 * util/mkisofs/joliet.c: Likewise.
17014 * util/mkisofs/match.c: Likewise.
17015 * util/mkisofs/match.h: Likewise.
17016 * util/mkisofs/mkisofs.c: Likewise.
17017 * util/mkisofs/mkisofs.h: Likewise.
17018 * util/mkisofs/msdos_partition.h: Likewise.
17019 * util/mkisofs/multi.c: Likewise.
17020 * util/mkisofs/name.c: Likewise.
17021 * util/mkisofs/rock.c: Likewise.
17022 * util/mkisofs/tree.c: Likewise.
17023 * util/mkisofs/write.c: Likewise.
17024
17025 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17026
17027 Unify grub-mkimage accross platforms.
17028
17029 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
17030 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
17031 (grub_mkelfimage_SOURCES): Removed.
17032 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
17033 (util/grub-mkimage.c_DEPENDENCIES): .. this.
17034 (bin_UTILITIES): Add grub-mkimage.
17035 (grub_mkimage_SOURCES): New variable.
17036 (kernel_img_HEADERS): Remove machine/kernel.h.
17037 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
17038 (pkglib_PROGRAMS): Add kernel.img.
17039 (kernel_img_HEADERS): Add machine/kernel.h.
17040 (kernel_img_FORMAT): Removed.
17041 (bin_UTILITIES): Remove grub-mkimage.
17042 (grub_mkimage_SOURCES): Removed.
17043 (grub_mkimage_CFLAGS): Likewise.
17044 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17045 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
17046 (pkglib_PROGRAMS): Add kernel.img.
17047 (bin_UTILITIES): Remove grub-mkimage.
17048 (grub_mkimage_SOURCES): Removed.
17049 (grub_mkimage_CFLAGS): Likewise.
17050 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17051 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
17052 (pkglib_PROGRAMS): Add kernel.img.
17053 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
17054 (pkglib_PROGRAMS): Add kernel.img.
17055 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
17056 (grub_mkimage_SOURCES): Removed.
17057 (grub_mkimage_CFLAGS): Likewise.
17058 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17059 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
17060 (pkglib_PROGRAMS): Add kernel.img.
17061 (bin_UTILITIES): Remove grub-mkimage.
17062 (grub_mkimage_SOURCES): Removed.
17063 (grub_mkimage_CFLAGS): Likewise.
17064 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17065 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
17066 (grub_mkimage_SOURCES): Removed.
17067 (grub_mkimage_CFLAGS): Likewise.
17068 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17069 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
17070 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
17071 (grub_pe32_optional_header): ... this.
17072 (grub_pe64_optional_header): ... and this. All users updated.
17073 (GRUB_PE32_PE32_MAGIC): Split into ..
17074 (GRUB_PE32_PE32_MAGIC): .. this.
17075 (GRUB_PE32_PE64_MAGIC): .. and this.
17076 (GRUB_PE32_SIGNATURE_SIZE): New definition.
17077 * include/grub/elf.h (PT_GNU_STACK): New definition.
17078 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
17079 * include/grub/i386/efi/kernel.h: Likewise.
17080 * include/grub/i386/kernel.h: Likewise.
17081 * include/grub/i386/pc/kernel.h: Likewise.
17082 * include/grub/i386/qemu/boot.h: Likewise.
17083 * include/grub/mips/kernel.h: Likewise.
17084 * include/grub/mips/qemu-mips/kernel.h: Likewise.
17085 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
17086 * include/grub/powerpc/kernel.h: Likewise.
17087 * include/grub/sparc64/ieee1275/boot.h: Likewise.
17088 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17089 * include/grub/sparc64/kernel.h: Likewise.
17090 * include/grub/x86_64/efi/kernel.h: Likewise.
17091 * include/grub/x86_64/kernel.h: Likewise.
17092 * include/grub/offsets.h: New file.
17093 * include/grub/kernel.h (grub_module_info): Split into ...
17094 (grub_module_info32): ... this.
17095 (grub_module_info64): ... and this.
17096 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
17097 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
17098 (grub_boot_blocklist): Moved from here ...
17099 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
17100 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
17101 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
17102 * include/grub/types.h (grub_target_to_host16): Removed.
17103 (grub_target_to_host32): Likewise.
17104 (grub_target_to_host64): Likewise.
17105 (grub_host_to_target16): Likewise.
17106 (grub_host_to_target32): Likewise.
17107 (grub_host_to_target64): Likewise.
17108 (grub_host_to_target_addr): Likewise.
17109
17110 Support grub-mkrescue for efi, coreboot and qemu.
17111
17112 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
17113 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
17114 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
17115 * util/grub-mkrawimage.c: Moved from here ...
17116 * util/grub-mkimage.c: ... here. All users updated.
17117 (ALIGN_ADDR): Use image_target.
17118 (TARGET_NO_FIELD): New const.
17119 (image_target_desc): New type.
17120 (image_targets): New array.
17121 (grub_target_to_host64): Use image_target.
17122 (grub_target_to_host32): Likewise.
17123 (grub_target_to_host16): Likewise.
17124 (grub_host_to_target64): Likewise.
17125 (grub_host_to_target32): Likewise.
17126 (grub_host_to_target16): Likewise.
17127 (grub_host_to_target_addr): Likewise.
17128 (generate_image): Handle multiimage.
17129 (main): Require -O parameter. All users updated.
17130 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
17131 util/efi/grub-mkimage.c
17132 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
17133 New option --rom-directory.
17134 Use xorriso.
17135 * util/i386/efi/grub-mkimage.c: Removed.
17136 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
17137 (grub_target_to_host32): Likewise.
17138 (grub_target_to_host64): Likewise.
17139 (grub_host_to_target16): Likewise.
17140 (grub_host_to_target32): Likewise.
17141 (grub_host_to_target64): Likewise.
17142 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
17143 (grub_target_to_host32): Likewise.
17144 (grub_target_to_host64): Likewise.
17145 (grub_host_to_target16): Likewise.
17146 (grub_host_to_target32): Likewise.
17147 (grub_host_to_target64): Likewise.
17148
17149 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
17150
17151 Source tree is reorganized for emu build.
17152
17153 * include/grub/util/console.h: Move from here...
17154 * include/grub/emu/console.h: ...to here.
17155 * include/grub/util/getroot.h: Move from here...
17156 * include/grub/emu/getroot.h: ...to here.
17157 * include/grub/util/hostdisk.h: Move from here...
17158 * include/grub/emu/hostdisk.h: ...to here.
17159 * util/console.c: Move from here...
17160 * kern/emu/console.c: ...to here.
17161 * util/getroot.c: Move from here...
17162 * kern/emu/getroot.c: ...to here.
17163 * util/grub-emu.c: Move from here...
17164 * kern/emu/main.c: ...to here.
17165 * util/hostdisk.c: Move from here...
17166 * kern/emu/hostdisk.c: ...to here.
17167 * util/hostfs.c: Move from here...
17168 * kern/emu/hostfs.c: ...to here.
17169 * util/mm.c: Move from here...
17170 * kern/emu/mm.c: ...to here.
17171 * util/pci.c: Move from here...
17172 * bus/emu/pci.c: ...to here.
17173 * util/sdl.c: Move from here...
17174 * video/emu/sdl.c: ...to here.
17175 * util/time.c: Move from here...
17176 * kern/emu/time.c: ...to here.
17177 * util/usb.c: Move from here...
17178 * bus/usb/emu/usb.c: ...to here.
17179
17180 * include/grub/emu/misc.h: New header for grub-emu functions.
17181 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
17182
17183 * conf/any-emu.rmk: Rule updates for above renames.
17184 * conf/common.rmk: Likewise.
17185 * conf/i386-pc.rmk: Likewise.
17186 * conf/i386-qemu.rmk: Likewise.
17187 * conf/mips.rmk: Likewise.
17188 * conf/sparc64-ieee1275.rmk: Likewise.
17189 * conf/x86-efi.rmk: Likewise.
17190
17191 * disk/lvm.h: #include updates for above renames.
17192 * util/grub-mkrelpath.c: Likewise.
17193 * util/grub-probe.c: Likewise.
17194 * util/i386/pc/grub-setup.c: Likewise.
17195 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17196 * kern/emu/console.c: Likewise.
17197 * kern/emu/getroot.c: Likewise.
17198 * kern/emu/hostdisk.c: Likewise.
17199 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
17200
17201 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
17202 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
17203 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
17204 * util/misc.c: Remove grub-emu functions.
17205
17206 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17207
17208 Fix gfxmenu crash.
17209 Reported by: Thorsten Grützmacher.
17210
17211 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
17212 timeout hook.
17213 (circprog_set_property): Register and unregister timeout hook.
17214 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
17215 (label_destroy): Free template. and unregister hook.
17216 (label_set_state): New function.
17217 (label_set_property): Handle templates and hooks.
17218 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
17219 timeout hook.
17220 (progress_bar_set_property): Register and unregister timeout hook.
17221 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
17222 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
17223 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
17224 (update_timeout_visit): Removed.
17225 (update_timeouts): New function.
17226 (redraw_timeouts): Likewise.
17227 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
17228 (grub_gfxmenu_clear_timeout): Likewise.
17229 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
17230 (grub_gfxmenu_timeout_notify): Likewise.
17231 (grub_gfxmenu_timeout_notifications): New external variable.
17232 (grub_gfxmenu_timeout_register): New function.
17233 (grub_gfxmenu_timeout_unregister): Likewise.
17234
17235 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17236
17237 Transform (broken) vga terminal into (working) vga video driver.
17238
17239 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
17240 video/i386/pc/vga.c.
17241 * include/grub/video.h (grub_video_driver_id):
17242 Add GRUB_VIDEO_DRIVER_VGA.
17243 * term/i386/pc/vga.c: Renamed to ...
17244 * video/i386/pc/vga.c: ...this
17245 (DEBUG_VGA): Removed.
17246 (CHAR_WIDTH): Likewise.
17247 (CHAR_HEIGHT): Likewise.
17248 (TEXT_WIDTH): Likewise.
17249 (TEXT_HEIGHT): Likewise.
17250 (DEFAULT_FG_COLOR): Likewise.
17251 (DEFAULT_BG_COLOR): Likewise.
17252 (colored_char): Likewise.
17253 (xpos): Likewise.
17254 (ypos): Likewise.
17255 (cursor_state): Likewise.
17256 (fg_color): Likewise.
17257 (bg_color): Likewise.
17258 (text_buf): Likewise.
17259 (page): Likewise.
17260 (font): Likewise.
17261 (framebuffer): New variable.
17262 (set_read_map): Disabled.
17263 (setup): New variable.
17264 (is_target): Likewise.
17265 (grub_vga_mod_init): Likewise.
17266 (grub_vga_mod_fini): Likewise.
17267 (check_vga_mem): Likewise.
17268 (write_char): Likewise.
17269 (write_cursor): Likewise.
17270 (scroll_up): Likewise.
17271 (grub_vga_putchar): Likewise.
17272 (grub_vga_getcharwidth): Likewise.
17273 (grub_vga_getwh): Likewise.
17274 (grub_vga_getxy): Likewise.
17275 (grub_vga_gotoxy): Likewise.
17276 (grub_vga_cls): Likewise.
17277 (grub_vga_setcolorstate): Likewise.
17278 (grub_vga_setcursor): Likewise.
17279 (grub_video_vga_init): New function.
17280 (grub_video_vga_setup): Likewise.
17281 (grub_video_vga_fini): Likewise.
17282 (update_target): Likewise.
17283 (grub_video_vga_blit_bitmap): Likewise.
17284 (grub_video_vga_blit_render_target): Likewise.
17285 (grub_video_vga_set_active_render_target): Likewise.
17286 (grub_video_vga_get_active_render_target): Likewise.
17287 (grub_video_vga_swap_buffers): Likewise.
17288 (grub_video_vga_set_palette): Likewise.
17289 (grub_video_vga_get_info_and_fini): Likewise.
17290 (grub_vga_term): Removed.
17291 (grub_video_vga_adapter): New variable.
17292 (GRUB_MOD_INIT): Register a video driver instead of terminal.
17293 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
17294
17295 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 * video/readers/jpeg.c: Indented.
17298
17299 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17300
17301 Various jpeg cleanups.
17302
17303 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
17304 (grub_jpeg_decode_quan_table): Use sizeof.
17305 (grub_jpeg_decode_du): Use ARRAY_SIZE.
17306
17307 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
17308
17309 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
17310 tables. Ignore non-last ac bit.
17311 (grub_jpeg_decode_quan_table): Likewise.
17312
17313 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17314
17315 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
17316 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
17317 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17318 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
17319 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
17320 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
17321
17322 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17323
17324 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
17325 error.
17326
17327 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17328
17329 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
17330
17331 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17332
17333 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
17334 condition.
17335
17336 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17337
17338 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
17339 part.
17340
17341 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17342
17343 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
17344 pointers.
17345
17346 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17347
17348 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
17349
17350 2010-05-01 Christian Franke <franke@computer.org>
17351
17352 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
17353 Remove broken Cygwin path conversion.
17354 * util/misc.c: [__CYGWIN__] Add include and define.
17355 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
17356 for Cygwin 1.7.
17357 (make_system_path_relative_to_its_root): Simplify loop, replace early
17358 return by break.
17359 [__CYGWIN__] Add conversion to win32 path.
17360 Include "/" case in trailing slash removal.
17361
17362 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17363
17364 * kern/main.c (grub_load_config): Fix copy-pasted comment.
17365 Reported by: Seth Goldberg
17366
17367 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17368
17369 * commands/help.c (grub_cmd_help): Fix a typo.
17370 Reported by: Seth Goldberg
17371
17372 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17373
17374 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
17375 name and add N_.
17376 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
17377 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
17378 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
17379 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
17380 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
17381 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
17382 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
17383 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
17384 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
17385 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
17386 * normal/context.c (GRUB_MOD_INIT): Likewise.
17387 * normal/main.c (GRUB_MOD_INIT): Likewise.
17388 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
17389 * term/serial.c (GRUB_MOD_INIT): Likewise.
17390 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
17391
17392 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17393
17394 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
17395 extra == 0.
17396
17397 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17398
17399 * commands/iorw.c: New file.
17400 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
17401 (iorw_mod_SOURCES): New variable.
17402 (iorw_mod_CFLAGS): Likewise.
17403 (iorw_mod_LDFLAGS): Likewise.
17404
17405 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17406
17407 Hotkey support
17408
17409 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
17410 * normal/main.c (hotkey_aliases): New variable.
17411 (grub_normal_add_menu_entry): Parse "--hotkey".
17412 * normal/menu_text.c (run_menu): Handle hotkeys.
17413
17414 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17415
17416 * kern/i386/coreboot/init.c (grub_machine_init): Call
17417 grub_machine_mmap_init on qemu.
17418
17419 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17420
17421 * boot/i386/qemu/boot.S: Add a missing .code16.
17422
17423 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17424
17425 Use LBIO on coreboot.
17426
17427 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
17428 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
17429 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
17430 New declaration.
17431 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
17432 grub_machine_mmap_init on coreboot.
17433 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
17434 GRUB_LINUXBIOS_MEMBER_LINK.
17435 (grub_machine_mmap_iterate): Fix declaration.
17436 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
17437
17438 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17439
17440 Split coreboot and multiboot ports.
17441
17442 * conf/i386-multiboot.rmk: New file.
17443 * configure.ac: Add multiboot port.
17444 * include/grub/i386/multiboot/boot.h: New file.
17445 * include/grub/i386/multiboot/console.h: Likewise.
17446 * include/grub/i386/multiboot/init.h: Likewise.
17447 * include/grub/i386/multiboot/kernel.h: Likewise.
17448 * include/grub/i386/multiboot/loader.h: Likewise.
17449 * include/grub/i386/multiboot/memory.h: Likewise.
17450 * include/grub/i386/multiboot/serial.h: Likewise.
17451 * include/grub/i386/multiboot/time.h: Likewise.
17452 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
17453 * loader/multiboot.c: Likewise.
17454 * loader/multiboot_mbi2.c: Likewise.
17455 * util/grub-mkrescue.in: Generate multiboot rescue.
17456
17457 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17458
17459 * kern/parser.c (grub_parser_execute): Cope with read-only config.
17460
17461 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17462
17463 Merge handling of input and output terminals. Fix a hang.
17464
17465 * commands/terminal.c (abstract_terminal): New struct.
17466 (handle_command): New function. Based on grub_cmd_terminal_input.
17467 (grub_cmd_terminal_input): Use handle_command.
17468 (grub_cmd_terminal_output): Use handle_command.
17469
17470 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
17471
17472 Fix comment handling.
17473
17474 * tests/grub_script_comments.in: New testcase.
17475 * conf/tests.rmk: Rules for new testcase.
17476 * script/yylex.l: Updated flex rules.
17477
17478 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
17479
17480 * docs/grub.texi (play): Document that zero pitches produce rests.
17481 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
17482 if argc is 1.
17483
17484 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
17485
17486 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
17487 autogen issues.
17488
17489 2010-04-26 Christian Franke <franke@computer.org>
17490
17491 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
17492 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
17493 (grub_get_prefix): Remove function.
17494 * util/grub-emu.c (main): Replace grub_get_prefix () call by
17495 make_system_path_relative_to_its_root ().
17496 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17497
17498 2010-04-24 Christian Franke <franke@computer.org>
17499
17500 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
17501 (kernel_img_LDFLAGS): Remove -static-libgcc.
17502
17503 2010-04-24 Christian Franke <franke@computer.org>
17504
17505 * configure.ac: Do not CHECK_BSS_START_SYMBOL
17506 and CHECK_END_SYMBOL if grub-emu is built.
17507 Unset TARGET_OBJ2ELF if grub-emu is built
17508 without module support.
17509
17510 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
17511
17512 Nilfs2 support.
17513
17514 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
17515 (grub_fstest_SOURCES): Likewise.
17516 (pkglib_MODULES): Add nilfs2.mod.
17517 (nilfs2_mod_SOURCES): New variable.
17518 (nilfs2_mod_CFLAGS): Likewise.
17519 (nilfs2_mod_LDFLAGS): Likewise.
17520 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
17521 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
17522 * fs/nilfs2.c: New file.
17523
17524 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
17527 is not supported.
17528
17529 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
17530
17531 Add grub-mkconfig support for NetBSD.
17532
17533 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
17534 * util/grub-mkconfig.in: export new NetBSD specific variables.
17535 * po/POTFILES-shell: added 10_netbsd.in.
17536 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
17537
17538 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
17539
17540 Fix emu build with grub-emu-pci and grub-emu-modules.
17541
17542 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
17543 functions.
17544 * include/grub/libpciaccess.h: New file.
17545 * conf/any-emu.rmk: Update kernel headers for emu build.
17546
17547 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17548
17549 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
17550
17551 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17552
17553 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
17554
17555 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17556
17557 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
17558 Retrieve chosen/bootpath if bootpath isn't hardcoded.
17559 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
17560 util/ieee1275/ofpath.c.
17561 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
17562 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
17563 * include/grub/sparc64/ieee1275/boot.h
17564 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
17565 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
17566 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
17567 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
17568 const char *.
17569 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
17570 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
17571 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
17572 install.
17573
17574 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
17575
17576 * util/grub-mkconfig.in: Corrected two == equality tests.
17577 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
17578 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
17579 expect a number appended to it.
17580 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
17581 expects a number appended to it.
17582
17583 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17584
17585 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
17586
17587 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17588
17589 * util/hostdisk.c (make_device_name): Change to new partition naming.
17590
17591 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17592
17593 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
17594
17595 2010-04-17 Christian Franke <franke@computer.org>
17596
17597 * Makefile.in: Add missing localedir setting.
17598
17599 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
17600
17601 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
17602 mistake in r2156. Noticed by Anthony Fok.
17603
17604 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
17605 @localedir@.
17606 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
17607
17608 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
17609
17610 Fix a spurious, uninitialized variable warning.
17611
17612 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
17613 Initialize variable, shdr.
17614 (grub_freebsd_load_elfmodule): Likewise.
17615 (grub_freebsd_load_elf_meta): Likewise.
17616
17617 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
17618
17619 Fix for escaped dollar in double quoted strings.
17620
17621 * script/yylex.l: Updated flex rules.
17622 * conf/tests.rmk: Rule for new testcase.
17623 * tests/grub_script_dollar.in: New testcase.
17624
17625 2010-04-13 Carles Pina i Estany <carles@pina.cat>
17626 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
17627
17628 Enclose all translated strings in grub.cfg in single quotes, and
17629 escape them appropriately (Ubuntu bug #552921).
17630
17631 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
17632 * util/grub.d/10_hurd.in: Use it.
17633 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
17634 * util/grub.d/10_linux.in (linux_entry): Likewise.
17635
17636 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 Fix cygwin compilation.
17639
17640 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
17641 * include/grub/misc.h (__register_frame_info)
17642 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
17643 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
17644 * kern/misc.c (__register_frame_info)
17645 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
17646 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
17647
17648 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17649
17650 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
17651
17652 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17653
17654 Unify libgcc processing.
17655
17656 * Makefile.in (kernel_img_LDFLAGS): New variable.
17657 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
17658 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
17659 overwriting.
17660 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
17661 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
17662 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
17663 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
17664 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
17665 overwriting. Remove -lgcc and -static-libgcc
17666 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
17667 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
17668 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
17669 (kernel_img_LDFLAGS): Append instead of overwriting.
17670 Remove -lgcc and -static-libgcc
17671 * conf/sparc64-ieee1275.rmk: Likewise.
17672 * include/grub/powerpc/libgcc.h: Move to ...
17673 * include/grub/libgcc.h: .. this.
17674 * include/grub/libgcc.h: Don't export most of the function on x86.
17675 (__bswapsi2): New export.
17676 (__bswapdi2): Likewise.
17677 * include/grub/mips/libgcc.h: Removed.
17678 * include/grub/sparc64/libgcc.h: Likewise.
17679
17680 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17681
17682 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
17683 disk_info_msg (conflicts with gettexting into languages with cases).
17684
17685 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
17686
17687 Add grub-probe support for NetBSD.
17688
17689 * util/getroot.c (find_root_device): Convert block device to
17690 character device on NetBSD.
17691 * util/probe.c (probe): Require character device on NetBSD.
17692 * util/hostdisk.c: NetBSD specific headers.
17693 (configure_device_driver): new function to tune device driver
17694 parameters (currently only for NetBSD floppy driver).
17695 (grub_util_biosdisk_open): NetBSD specific code (get disk size
17696 via disklabel ioctl).
17697 (open_device): call configure_device_driver on NetBSD.
17698 (convert_system_partition_to_system_disk): NetBSD specific code.
17699 (device_is_wholedisk): Likewise.
17700 (grub_util_biosdisk_get_grub_dev): Likewise.
17701 (make_device_name): Fixed a typo in bsd_part_str.
17702 * configure.ac: check for opendisk() and getrawpartition() on
17703 NetBSD and set LIBUTIL.
17704 * Makefile.in: add LIBUTIL to LIBS.
17705
17706 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
17707
17708 Documentation fix.
17709
17710 * util/grub-script-check.c: Better help message.
17711
17712 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
17713
17714 Fix FreeBSD build.
17715
17716 * configure.ac: Flex version check.
17717 * conf/common.rmk: Add -Wno-error to sh.mod.
17718 * script/yylex.l: Remove all #pragma.
17719
17720 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17721
17722 * include/grub/util/misc.h (canonicalise_file_name): Add missing
17723 prototype.
17724 Reported by: Seth Goldberg.
17725
17726 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17727
17728 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
17729 Rename "module" to "module2".
17730 Reported by: Seth Goldberg.
17731
17732 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17733
17734 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
17735 EXPORT_FUNC.
17736 Reported by: Seth Goldberg.
17737
17738 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17739
17740 * lib/posix_wrap/locale.h: Add missing file.
17741 Reported by: Seth Goldberg.
17742
17743 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17744
17745 grub-emu module load support.
17746
17747 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
17748 NO_DYNAMIC_MODULES switched to this.
17749 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
17750 (CFLAGS): Likewise.
17751 * conf/any-emu.rmk: Generate symlist.
17752 (kernel_img_HEADERS): Add util/datetime.h.
17753 (kernel_img_HEADERS) [sdl]: Add sdl.h.
17754 (kernel_img_HEADERS) [libusb]: Add libusb.h.
17755 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
17756 kern/$(target_cpu)/cache.S.
17757 * configure.ac (grub-emu-modules): New option.
17758 * genmk.rb: Handle multiple source lists.
17759 * include/grub/sdl.h: New file.
17760 * include/grub/libusb.h: Likewise.
17761 * util/grub-emu.c (main): Hanle (host) root.
17762 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
17763 GRUB_ERR_UNKNOWN_DEVICE.
17764 * util/misc.c: Move mm functions to ...
17765 * util/mm.c: ... here. All users updated.
17766
17767 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17768
17769 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
17770 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
17771 missing files.
17772 (maintainer-clean): Remove libgcrypt-grub.
17773
17774 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17775
17776 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
17777
17778 2010-04-09 EFI Coder <eficoder@hotmail.com>
17779
17780 * normal/menu_text.c (print_message): Clean up the message and show
17781 the Fn information when on EFI
17782 * term/efi/console.c (grub_console_checkkey): Add F4 support.
17783
17784 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17785
17786 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
17787 All users updated.
17788 * normal/crypto.c (read_crypto_list): Likewise.
17789 * normal/dyncmd.c (read_command_list): Likewise.
17790 * normal/term.c (read_terminal_list): Likewise.
17791 * normal/main.c (read_lists): Use explicit prefix.
17792 (read_lists_hook): Use read_lists.
17793 (grub_normal_execute): Likewise.
17794
17795 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17796
17797 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
17798 Reported by: Thomas Schmitt.
17799 Add -no-emul-boot to grub-mkisofs parameters.
17800
17801 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17802
17803 * font/font.c: Indented.
17804
17805 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
17806
17807 Elif support to GRUB script (by Deepak Vankadaru).
17808
17809 * tests/grub_script_if.in: New testcase.
17810 * conf/tests.rmk: Rule for new testcase.
17811 * script/parser.y: Grammar rules for elif.
17812
17813 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
17814
17815 While and until loops support to GRUB script.
17816
17817 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
17818 (grub_script_create_cmdwhile): New function prototype.
17819 (grub_script_execute_cmdwhile): New function prototype.
17820 * script/execute.c (grub_script_execute_cmdwhile): New function.
17821 * script/parser.y (command): New commands.
17822 (whilecmd): New grammar rule.
17823 (untilcmd): New grammar rule.
17824 * script/script.c (grub_script_create_cmdwhile): New function.
17825 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
17826 function.
17827
17828 * tests/grub_script_while1.in: New testcase.
17829 * conf/tests.rmk: Rule for new testcase.
17830
17831 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17832
17833 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
17834 as *.jpg.
17835
17836 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
17837
17838 GRUB_BACKGROUND support.
17839
17840 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
17841 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
17842
17843 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17844
17845 Load fonts and modules for gfxmenu in grub-mkconfig.
17846 Idea by: Mario Vazquez
17847
17848 * util/grub.d/00_header.in: Load pf2 and image modules.
17849
17850 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17851
17852 grub-mkconfig multiple terminal support.
17853
17854 * util/grub-mkconfig.in: Handle multiple terminals correctly.
17855 * util/grub.d/00_header.in: Likewise.
17856
17857 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17858
17859 * Makefile.in: Specify files explicitly instead of using $< and $@ since
17860 we use cd $(srcdir).
17861
17862 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
17863
17864 * util/grub.d/10_linux.in: Only use the first word of
17865 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
17866 spaces in GRUB_DISTRIBUTOR.
17867 * util/grub.d/10_kfreebsd.in: Likewise.
17868 * util/grub.d/10_hurd.in: Likewise.
17869
17870 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
17871
17872 Fix unit testing framework for Qemu 0.12.
17873
17874 * tests/util/grub-shell.in: Remove -serial stdio option.
17875
17876 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17877
17878 POSIX header file wrappers.
17879
17880 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
17881 equivalents.
17882 * lib/posix_wrap/ctype.h: Likewise.
17883 * lib/posix_wrap/errno.h: Likewise.
17884 * lib/posix_wrap/langinfo.h: Likewise.
17885 * lib/posix_wrap/limits.h: Likewise.
17886 * lib/posix_wrap/localcharset.h: Likewise.
17887 * lib/posix_wrap/stdint.h: Likewise.
17888 * lib/posix_wrap/stdio.h: Likewise.
17889 * lib/posix_wrap/stdlib.h: Likewise.
17890 * lib/posix_wrap/string.h: Likewise.
17891 * lib/posix_wrap/sys/types.h: Likewise.
17892 * lib/posix_wrap/unistd.h: Likewise.
17893 * lib/posix_wrap/wchar.h: Likewise.
17894 * lib/posix_wrap/wctype.h: Likewise.
17895 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
17896 (grub_script.yy.h): Likewise.
17897 * script/yylex.l: Remove POSIX emulation #defines.
17898 * Makefile.in (POSIX_CFLAGS): New variable.
17899 (GNULIB_UTIL_CFLAGS): Likewise.
17900
17901 Regexp support.
17902
17903 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
17904 (regexp_mod_SOURCES): New variable.
17905 (regexp_mod_CFLAGS): Likewise.
17906 (regexp_mod_LDFLAGS): Likewise.
17907 * commands/regexp.c: New file.
17908 * gnulib/regcomp.c: New file. Imported from gnulib.
17909 * gnulib/regex.c: Likewise.
17910 * gnulib/regex_internal.c: Likewise.
17911 * gnulib/regex_internal.h: Likewise.
17912 * gnulib/regexec.c: Likewise.
17913 * gnulib/regex.h: Likewise.
17914
17915 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17916
17917 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
17918 unsupported video mode types.
17919
17920 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17921
17922 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
17923
17924 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17925
17926 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
17927 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
17928
17929 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
17930
17931 Remove unused grub_vga_get_font.
17932
17933 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
17934 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
17935
17936 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17937
17938 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
17939 * include/grub/misc.h: Likewise.
17940
17941 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17942
17943 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
17944 for which failure is fatal.
17945
17946 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17947
17948 * util/grub-install.in: Use mkdir -p to create grub directory.
17949 * util/i386/efi/grub-install.in: Likewise.
17950 * util/ieee1275/grub-install.in: Likewise.
17951
17952 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17953
17954 * Makefile.in (LEX): new variable.
17955
17956 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17957
17958 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
17959 `=' and added double quotes on operands of this equality test.
17960
17961 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
17962
17963 * Makefile.in (uninstall): Remove a leftover debug echo.
17964 Reported by: Grégoire Sutre
17965
17966 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
17967
17968 MIPS multiboot2 support.
17969
17970 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
17971 (multiboot2_mod_SOURCES): New variable.
17972 (multiboot2_mod_CFLAGS): Likewise.
17973 (multiboot2_mod_LDFLAGS): Likewise.
17974 (multiboot2_mod_ASFLAGS): Likewise.
17975 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
17976 definition.
17977 (MULTIBOOT_ENTRY_REGISTER): Likewise.
17978 (MULTIBOOT_MBI_REGISTER): Likewise.
17979 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
17980 (MULTIBOOT_ELF32_MACHINE): Likewise.
17981 (MULTIBOOT_ELF64_MACHINE): Likewise.
17982 * include/grub/mips/multiboot.h: New file.
17983 * include/grub/video.h (grub_video_driver_id): New type
17984 GRUB_VIDEO_DRIVER_SM712.
17985 (grub_video_get_info_and_fini): Export.
17986 (grub_video_get_palette): Likewise.
17987 (grub_video_get_driver_id): Likewise.
17988 * include/multiboot2.h: Resynced with spec.
17989 * loader/i386/multiboot.c: Moved from here ...
17990 * loader/multiboot.c: ... here. All users updated.
17991 (grub_multiboot_boot): Use platform-specific macros.
17992 * loader/i386/multiboot_elfxx.c: Moved from here ...
17993 * loader/multiboot_elfxx.c: ... here. All users updated.
17994 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
17995 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
17996 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
17997
17998 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17999
18000 Import gnulib argp module.
18001
18002 * gnulib/argp-ba.c: New file.
18003 * gnulib/argp-eexst.c: Likewise.
18004 * gnulib/argp-fmtstream.c: Likewise.
18005 * gnulib/argp-fmtstream.h: Likewise.
18006 * gnulib/argp-fs-xinl.c: Likewise.
18007 * gnulib/argp-help.c: Likewise.
18008 * gnulib/argp-namefrob.h: Likewise.
18009 * gnulib/argp-parse.c: Likewise.
18010 * gnulib/argp-pin.c: Likewise.
18011 * gnulib/argp-pv.c: Likewise.
18012 * gnulib/argp-pvh.c: Likewise.
18013 * gnulib/argp-version-etc.c: Likewise.
18014 * gnulib/argp-version-etc.h: Likewise.
18015 * gnulib/argp-xinl.c: Likewise.
18016 * gnulib/argp.h: Likewise.
18017
18018 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
18019
18020 * kern/device.c (grub_device_iterate): Clear errors after failed
18021 opening device.
18022
18023 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
18024
18025 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
18026 returned by firmware.
18027
18028 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18029
18030 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
18031 compilation on coreboot and qemu
18032
18033 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
18034
18035 * include/multiboot2.h: Resync with spec.
18036
18037 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
18038
18039 Multiboot2 tag support
18040
18041 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
18042 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
18043 Remove loader/multiboot_loader.c.
18044 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
18045 (grub_multiboot2_real_boot): Likewise.
18046 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
18047 (grub_get_multiboot_mmap_count): New proto.
18048 (grub_fill_multiboot_mmap): Likewise.
18049 (grub_multiboot_set_video_mode): Likewise.
18050 (grub_multiboot_set_console): Likewise.
18051 (grub_multiboot_load): Likewise.
18052 (grub_multiboot_load_elf): Likewise.
18053 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
18054 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
18055 * include/multiboot.h: Resynced with specification.
18056 * include/multiboot2.h: Resynced with specification.
18057 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
18058 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
18059 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
18060 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
18061 users updated.
18062 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
18063 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
18064 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
18065 Removed.
18066 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
18067 Moved from here...
18068 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
18069 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
18070 Moved from here...
18071 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
18072 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
18073 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
18074 All users updated.
18075 * loader/i386/multiboot_mbi2.c: New file.
18076
18077 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
18078
18079 Resync with gnulib.
18080
18081 * Makefile.in (GNULIB_CFLAGS): New variable.
18082 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
18083 (grub_script_check_CFLAGS): New variable.
18084 * gnulib/alloca.h: Resync with gnulib.
18085 * gnulib/error.c: Likewise.
18086 * gnulib/error.h: Likewise.
18087 * gnulib/fnmatch.c: Likewise.
18088 * gnulib/fnmatch_loop.c: Likewise.
18089 * gnulib/getdelim.c: Likewise.
18090 * gnulib/getline.c: Likewise.
18091 * gnulib/getopt.c: Likewise.
18092 * gnulib/getopt1.c: Likewise.
18093 * gnulib/getopt_int.h: Likewise.
18094 * gnulib/gettext.h: Likewise.
18095 * gnulib/progname.c: Likewise.
18096 * gnulib/progname.h: Likewise.
18097
18098 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
18099
18100 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
18101 which is the case with --disabled-nls.
18102
18103 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
18104 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
18105 * util/misc.c: Likewise.
18106 * util/mkisofs/mkisofs.c: Likewise.
18107 * util/mkisofs/mkisofs.h: Likewise.
18108
18109 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
18110
18111 Simplify Apple CC support.
18112
18113 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
18114 Add 0 byte at the end not to have a symbol with empty target.
18115 * mmap/i386/pc/mmap_helper.S: Likewise.
18116 * genmk.rb: Ignore errors 2030 and 2050.
18117 * kern/i386/pc/startup.S: Use LOCAL when possible.
18118
18119 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
18120
18121 Testcase and the fix for final semicolon on cmdline.
18122
18123 * tests/grub_script_final_semicolon.in: New testcase.
18124 * conf/tests.rmk: Rules for the new testcase.
18125 * script/parser.y: Grammar fix.
18126
18127 2010-03-26 BVK Chaitanya <bvk@localhost>
18128
18129 Blank lines testcase for GRUB script.
18130
18131 * tests/grub_script_blanklines.in: New testcase.
18132 * conf/tests.rmk: Rules for the new testcase.
18133
18134 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18135
18136 Don't use __FILE__.
18137
18138 * genmk.rb: Add -DGRUB_FILE to all C targets.
18139 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
18140 * include/grub/list.h: Likewise.
18141 * include/grub/misc.h: Likewise.
18142 * include/grub/mm.h: Likewise.
18143 * include/grub/test.h: Likewise.
18144 * kern/mm.c: Likewise.
18145 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
18146
18147 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18148
18149 Sunpc partitions support.
18150
18151 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
18152 (grub_fstest_SOURCES): Likewise.
18153 (pkglib_MODULES): Add part_sunpc.mod.
18154 (part_sunpc_mod_SOURCES): New variable.
18155 (part_sunpc_mod_CFLAGS): Likewise.
18156 (part_sunpc_mod_LDFLAGS): Likewise.
18157 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
18158 * partmap/sunpc.c: New file.
18159
18160 2010-03-26 BVK Chaitanya <bvk@localhost>
18161
18162 For loop support to GRUB script.
18163
18164 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
18165 (grub_script_create_cmdfor): New function prototype.
18166 (grub_script_execute_cmdfor): New function prototype.
18167 * script/execute.c (grub_script_execute_cmdfor): New function.
18168 * script/parser.y (command): New for command.
18169 (forcmd): New grammar rule.
18170 * script/script.c (grub_script_create_cmdfor): New function.
18171 * util/grub-script-check.c (grub_script_execute_cmdfor): New
18172 function.
18173 * tests/grub_script_for1.in: New testcase.
18174 * conf/tests.rmk: Rules for new testcase.
18175
18176 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18177
18178 Nested partitions
18179
18180 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
18181 'partition' is NULL, grub_partition_get_start already does that.
18182 * commands/loadenv.c (check_blocklists): Likewise.
18183 (write_blocklists): Likewise.
18184 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
18185 (grub_fstest_SOURCES): Likewise.
18186 (pkglib_MODULES): Add part_bsd.mod.
18187 (part_bsd_mod_SOURCES): New variable.
18188 (part_bsd_mod_CFLAGS): Likewise.
18189 (part_bsd_mod_LDFLAGS): Likewise.
18190 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
18191 (grub_emu_SOURCES): Likewise.
18192 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18193 * include/grub/bsdlabel.h: New file.
18194 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
18195 'get_name'.
18196 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
18197 (grub_partition_map_list): New variable.
18198 (grub_partition_map_register): Inline.
18199 (grub_partition_map_unregister): Likewise.
18200 (FOR_PARTITION_MAPS): New macro.
18201 (grub_partition_map_iterate): Removed.
18202 (grub_partition_get_start): Handle nested partitions.
18203 * include/grub/msdos_partition.h: Remove bsd-related entries.
18204 (grub_pc_partition): Remove.
18205 * kern/disk.c (grub_disk_close): Free partition data.
18206 (grub_disk_adjust_range): Handle nested partitions.
18207 * kern/partition.c (grub_partition_map_probe): New function.
18208 (grub_partition_probe): Parse name to number, handle subpartitions.
18209 (get_partmap): New function.
18210 (grub_partition_iterate): Handle subpartitions.
18211 (grub_partition_get_name): Likewise.
18212 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
18213 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
18214 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
18215 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
18216 Set 'number'.
18217 (acorn_partition_map_probe): Remove.
18218 (acorn_partition_map_get_name): Likewise.
18219 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
18220 Set 'number'.
18221 Set 'index' to 0 since there can be only one partition entry per sector.
18222 (amiga_partition_map_probe): Remove.
18223 (amiga_partition_map_get_name): Likewise.
18224 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
18225 Set 'number'.
18226 Set 'offset' and 'index' to real positions of partitions.
18227 (apple_partition_map_probe): Remove.
18228 (apple_partition_map_get_name): Likewise.
18229 * partmap/bsdlabel.c: New file.
18230 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
18231 Set 'number'.
18232 Allocate 'data' so it can be correctly freed.
18233 Set 'index' to offset inside sector.
18234 (gpt_partition_map_probe): Remove.
18235 (gpt_partition_map_get_name): Likewise.
18236 * partmap/msdos.c (grub_partition_parse): Remove.
18237 (pc_partition_map_iterate): Don't force raw access.
18238 Set 'number'.
18239 Make 'ext_offset' a local variable.
18240 (pc_partition_map_probe): Remove.
18241 (pc_partition_map_get_name): Remove.
18242 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
18243 Set 'number'.
18244 (sun_partition_map_probe): Remove.
18245 (sun_partition_map_get_name): Likewise.
18246 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
18247 (grub_pcpart_type): Likewise.
18248 * util/hostdisk.c (open_device): Handle new numbering scheme.
18249 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
18250 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
18251 * util/grub-probe.c (probe_partmap): Handle nested paritions.
18252 * util/grub-install.in: Insert all subpartition modules.
18253 * util/ieee1275/grub-install.in: Likewise.
18254
18255 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
18256
18257 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
18258 grammar.
18259
18260 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
18261
18262 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
18263
18264 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
18265
18266 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
18267 match where 'make install' puts them.
18268 * util/i386/efi/grub-install.in: Likewise.
18269
18270 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
18271
18272 * .bzrignore: Add gentrigtables, grub-script-check,
18273 grub_script_check_init.c, grub_script_check_init.h, and
18274 trigtables.c.
18275
18276 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
18277
18278 * kern/parser.c: Indented.
18279
18280 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
18281
18282 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
18283
18284 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
18285
18286 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
18287 alpha_mask_size == 0 case.
18288
18289 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
18290
18291 GRUB shell lexer and parser improvements.
18292
18293 * conf/any-emu.rmk: Build rule updates.
18294 * conf/common.rmk: Likewise.
18295 * conf/i386-coreboot.rmk: Likewise.
18296 * conf/i386-efi.rmk: Likewise.
18297 * conf/i386-ieee1275.rmk: Likewise.
18298 * conf/i386-pc.rmk: Likewise.
18299 * conf/powerpc-ieee1275.rmk: Likewise.
18300 * conf/x86_64-efi.rmk: Likewise.
18301
18302 * configure.ac: Configure check for flex.
18303
18304 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
18305 types.
18306 (grub_lexer_param): Struct member updates.
18307 (grub_parser_param): Likewise.
18308 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
18309 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
18310 (grub_script_lexer_init): Prototype update.
18311 (grub_script_lexer_record_start): Likewise.
18312 (grub_script_lexer_record_stop): Likewise.
18313 (grub_script_lexer_yywrap): New function prototype.
18314 (grub_script_lexer_fini): Likewise.
18315 (grub_script_execute_argument_to_string): Removed by...
18316 (grub_script_execute_argument_to_argv): ...better version.
18317
18318 * script/execute.c (ROUND_UPTO): New macro.
18319 (grub_script_execute_cmdline): Out of memory fixes.
18320 (grub_script_execute_menuentry): Likewise.
18321 (grub_script_execute_argument_to_string): Removed. Update all
18322 users by...
18323 (grub_script_execute_argument_to_argv): ...better version.
18324 * script/function.c (grub_script_function_create): Use
18325 grub_script_execute_argument_to_argv instead of
18326 grub_script_execute_argument_to_string.
18327
18328 * script/lexer.c (check_varstate): Removed.
18329 (check_textstate): Removed.
18330 (grub_script_lexer_record_start): Likewise.
18331 (grub_script_lexer_record_stop): Likewise.
18332 (recordchar): Replaced with...
18333 (grub_script_lexer_record): ...new function.
18334 (nextchar): Removed.
18335 (grub_script_lexer_init): Rewritten.
18336 (grub_script_yylex): Rewritten.
18337 (append_newline): New function.
18338 (grub_script_lexer_yywrap): New function.
18339 (grub_script_lexer_fini): New function.
18340 (grub_script_yyerror): Sets error flag.
18341
18342 * script/yylex.l: New file.
18343 (grub_lexer_yyfree): Wrapper for flex yyffre.
18344 (grub_lexer_yyalloc): Likewise.
18345 (grub_lexer_yyrealloc): Likewise.
18346 * script/parser.y: Refactored.
18347
18348 * script/script.c (grub_script_arg_add): Out of memory fixes.
18349 (grub_script_add_arglist): Likewise.
18350 (grub_script_create_cmdline): Likewise.
18351 (grub_script_create_cmdmenu): Likewise.
18352 (grub_script_add_cmd): Likewise.
18353 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
18354 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
18355 unnecessary code.
18356
18357 * tests/grub_script_echo1.in: New testcase.
18358 * tests/grub_script_vars1.in: New testcase.
18359 * tests/grub_script_echo_keywords.in: New testcase.
18360
18361 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18362
18363 Remove some redundancy in build system.
18364
18365 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
18366 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
18367 (TARGET_LDFLAGS): Add -nostdlib.
18368 (TARGET_IMG_LDFLAGS): Likewise.
18369 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
18370 anything since mmap isn't available.
18371 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
18372 Add util/time.c.
18373 (pkglib_MODULES): Remove reboot.mod.
18374 (reboot_mod_SOURCES): Removed.
18375 (reboot_mod_CFLAGS): Likewise.
18376 (reboot_mod_LDFLAGS): Likewise.
18377 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
18378 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
18379 (DEFSYMFILES): Add kernel_syms.lst.
18380 (kernel_img_HEADERS): Add common headers.
18381 (symlist.c): New target.
18382 (kernel_syms.lst): Likewise.
18383 (pkglib_MODULES): Add memdisk.mod.
18384 (memdisk_mod_SOURCES): New variable.
18385 (memdisk_mod_CFLAGS): Likewise.
18386 (memdisk_mod_LDFLAGS): Likewise.
18387 (pkglib_MODULES): Add reboot.mod.
18388 (reboot_mod_SOURCES): New variable.
18389 (reboot_mod_CFLAGS): Likewise.
18390 (reboot_mod_LDFLAGS): Likewise.
18391 (pkglib_MODULES): Add date.mod.
18392 (date_mod_SOURCES): New variable.
18393 (date_mod_CFLAGS): Likewise.
18394 (date_mod_LDFLAGS): Likewise.
18395 (pkglib_MODULES): Add datehook.mod.
18396 (datehook_mod_SOURCES): New variable.
18397 (datehook_mod_CFLAGS): Likewise.
18398 (datehook_mod_LDFLAGS): Likewise.
18399 (pkglib_MODULES): Add lsmmap.mod.
18400 (lsmmap_mod_SOURCES): New variable.
18401 (lsmmap_mod_CFLAGS): Likewise.
18402 (lsmmap_mod_LDFLAGS): Likewise.
18403 (pkglib_MODULES): Add boot.mod.
18404 (boot_mod_SOURCES): New variable.
18405 (boot_mod_CFLAGS): Likewise.
18406 (boot_mod_LDFLAGS): Likewise.
18407 * conf/i386-coreboot.rmk: Removed redundant parts.
18408 * conf/i386-ieee1275.rmk: Likewise.
18409 * conf/i386-pc.rmk: Likewise.
18410 * conf/mips-yeeloong.rmk: Likewise.
18411 * conf/mips.rmk: Likewise.
18412 * conf/powerpc-ieee1275.rmk: Likewise.
18413 * conf/sparc64-ieee1275.rmk: Likewise.
18414 * conf/x86_64-efi.rmk: Likewise.
18415 * conf/i386-coreboot.rmk: Moved qemu parts ..
18416 * conf/i386-qemu.rmk: ... here
18417 * conf/i386-efi.rmk: Moved common parts to...
18418 * conf/x86-efi.rmk: ... here.
18419 * conf/i386.rmk: Added modules common to all x86 variants.
18420 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
18421 * disk/memdisk.c: Remove grub/machine/kernel.h.
18422 * gensymlist.sh.in: Include symbol.h.
18423 * hook/datehook.c: Correct module name.
18424 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
18425 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
18426 * include/grub/i386/efi/serial.h: New file.
18427 * include/grub/x86_64/efi/serial.h: Likewise.
18428 * util/time.c: Likewise.
18429 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
18430
18431 2010-03-14 Colin King <colin.king@ubuntu.com>
18432 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
18433
18434 Shrink the pre-partition-table part of boot.img by eight bytes.
18435
18436 * boot/i386/pc/boot.S (ERR): New macro.
18437 (chs_mode): Use ERR.
18438 (geometry_error): Likewise.
18439 (hd_probe_error): Remove. This is only used once, so we wrwite
18440 it inline instead.
18441 (read_error): Instead of printing read_error_string, just set up
18442 %si and fall through to ...
18443 (error_message): ... this new function, also used by ERR.
18444
18445 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
18446
18447 Speed up consecutive hostdisk operations on the same device.
18448
18449 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
18450 (grub_util_biosdisk_open): Initialise disk->data.
18451 (struct linux_partition_cache): New structure.
18452 (linux_find_partition): Cache partition start positions; these are
18453 expensive to compute on every read and write.
18454 (open_device): Cache open file descriptor in disk->data, so that we
18455 don't have to reopen it and flush the buffer cache for consecutive
18456 operations on the same device.
18457 (grub_util_biosdisk_close): New function.
18458 (grub_util_biosdisk_dev): Set `close' member.
18459
18460 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
18461 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
18462 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18463 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18464 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
18465
18466 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18467
18468 Compile parts of grub-emu as modules.
18469
18470 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
18471 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
18472 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
18473 (all-local): Add $(GRUB_EMU).
18474 (install-local): Install $(GRUB_EMU).
18475 (uninstall): Uninstall $(GRUB_EMU).
18476 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
18477 * kern/dl.c: Likewise.
18478 * commands/sleep.c: Not include machine/time.h.
18479 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
18480 (COMMON_CFLAGS): Likewise.
18481 (sbin_UTILITIES): Remove grub-emu.
18482 (grub_emu_SOURCES): Removed.
18483 (kernel_img_RELOCATABLE): New variable.
18484 (pkglib_PROGRAMS): Add kernel.img.
18485 (kernel_img_SOURCES): New variable
18486 (kernel_img_CFLAGS): Likewise.
18487 (kernel_img_LDFLAGS): Likewise.
18488 (TARGET_NO_STRIP): Likewise.
18489 (TARGET_NO_DYNAMIC_MODULES): Likewise.
18490 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
18491 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
18492 (grub-emu): New target.
18493 (GRUB_EMU): New variable.
18494 * configure.ac: Whitelist -emu as possible x86_64 architecture.
18495 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
18496 * loader/xnu.c: Likewise.
18497 * include/grub/pci.h: Likewise.
18498 * genemuinit.sh: New file.
18499 * genemuinitheader.sh: Likewise.
18500 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
18501 Support TARGET_NO_DYNAMIC_MODULES.
18502 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
18503 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
18504 * disk/loopback.c: Likewise.
18505 * font/font_cmd.c: Likewise.
18506 * partmap/acorn.c: Likewise.
18507 * partmap/amiga.c: Likewise.
18508 * partmap/apple.c: Likewise.
18509 * partmap/gpt.c: Likewise.
18510 * partmap/msdos.c: Likewise.
18511 * partmap/sun.c: Likewise.
18512 * parttool/msdospart.c: Likewise.
18513 * term/gfxterm.c: Likewise.
18514 * video/bitmap.c: Likewise.
18515 * video/readers/jpeg.c: Likewise.
18516 * video/readers/png.c: Likewise.
18517 * video/readers/tga.c: Likewise.
18518 * video/video.c: Likewise.
18519 * util/grub-emu.c (read_command_list): Removed.
18520 (main): Don't call util_init_nls.
18521 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
18522 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
18523
18524 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18525
18526 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
18527 date.mod, datehook.mod.
18528 (datetime_mod_SOURCES): New variable.
18529 (datetime_mod_CFLAGS): Likewise.
18530 (datetime_mod_LDFLAGS): Likewise.
18531 (date_mod_SOURCES): Likewise.
18532 (date_mod_CFLAGS): Likewise.
18533 (date_mod_LDFLAGS): Likewise.
18534 (datehook_mod_SOURCES): Likewise.
18535 (datehook_mod_CFLAGS): Likewise.
18536 (datehook_mod_LDFLAGS): Likewise.
18537 * conf/sparc64-ieee1275.rmk: Likewise.
18538 * lib/ieee1275/datetime.c: New file.
18539
18540 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18541
18542 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
18543 (ieee1275_fb_mod_SOURCES): New variable.
18544 (ieee1275_fb_mod_CFLAGS): Likewise.
18545 (ieee1275_fb_mod_LDFLAGS): Likewise.
18546 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
18547 New proto.
18548 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
18549 (HEAP_MAX_ADDR): Likewise.
18550 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
18551 type.
18552 Correct stop condition.
18553 (grub_ieee1275_devices_iterate): New function.
18554 * video/ieee1275.c: New file.
18555
18556 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18557
18558 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
18559
18560 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
18561 as scratch.
18562 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
18563 SCRATCH_PAD_DISKBOOT as scratch.
18564 (bootit): Pass Openfirmware pointer in %o4.
18565 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
18566 of 0x200000.
18567 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
18568 with util/grub-mkrawimage.c.
18569 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
18570 * include/grub/aout.h (AOUT_MID_SUN): New definition.
18571 (grub_aout_get_type) [GRUB_UTIL]: Removed.
18572 (grub_aout_load) [GRUB_UTIL]: Likewise.
18573 * include/grub/kernel.h (grub_modules_get_end): New proto.
18574 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
18575 (SCRATCH_PAD_BOOT): New definition.
18576 (SCRATCH_PAD_DISKBOOT): Likewise.
18577 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
18578 * include/grub/sparc64/ieee1275/ieee1275.h
18579 (grub_ieee1275_original_stack): New variable
18580 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18581 New definition
18582 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
18583 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
18584 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
18585 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
18586 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
18587 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
18588 (grub_platform_image_format_t): New type.
18589 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
18590 * kern/main.c (grub_modules_get_end)
18591 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
18592 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
18593 (codestart): Switch stacks.
18594 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
18595 variable.
18596 (grub_heap_init): Use grub_modules_get_end.
18597 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
18598 stack.
18599 * util/grub-mkrawimage.c (generate_image): Support sparc64.
18600 (main): Likewise.
18601 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
18602
18603 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
18604
18605 * util/grub-mkrescue.in: Base ISO UUID on UTC.
18606
18607 2010-03-08 Matt Kraai <kraai@ftbfs.org>
18608
18609 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
18610 bug #559005).
18611
18612 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
18613
18614 * genmoddep.awk: Output all missing symbols and not only first.
18615
18616 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18617
18618 * NEWS: Put the date of 1.98 release.
18619
18620 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18621
18622 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
18623 ft2build.h.
18624
18625 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18626
18627 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
18628 completition in the middle of string.
18629
18630 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18631
18632 * util/grub-mkrescue.in: Use mktemp with explicit template.
18633
18634 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18635
18636 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
18637
18638 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18639
18640 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
18641 right pointer.
18642
18643 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
18644
18645 Fix FreeBSD compilation.
18646
18647 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
18648 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
18649
18650 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
18651
18652 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
18653
18654 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18655
18656 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
18657
18658 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18659
18660 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
18661
18662 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
18663
18664 Support relative image path in theme file.
18665
18666 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
18667 (image_set_property): Handle theme_dir and relative path.
18668
18669 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18670
18671 * configure.ac: Alias amd64 to x86_64.
18672
18673 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 * NEWS: mention multiboot on EFI.
18676
18677 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18678
18679 * kern/main.c (grub_load_modules): Handle errors from init functions of
18680 embeded modules.
18681
18682 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18683
18684 * normal/autofs.c (autoload_fs_module): Handle errors.
18685
18686 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18687
18688 Disable linux.mod on qemu-mips since it's not functional and leads
18689 to compilation failure.
18690
18691 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
18692 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
18693 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
18694 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
18695 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
18696 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
18697 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
18698 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
18699 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
18700 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
18701 Reported by: BVK Chaitanya
18702
18703 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
18704
18705 * INSTALL: Add gettext as a dependency and add qemu to a new section
18706 "Prerequisites for make-check".
18707
18708 2010-03-04 Christian Franke <franke@computer.org>
18709
18710 * util/grub-pe2elf.c: Add missing include "progname.h".
18711
18712 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18713
18714 * normal/crypto.c (read_crypto_list): Fix a typo.
18715 Reported by: Seth Goldberg.
18716
18717 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18718
18719 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
18720 Reported by: Seth Goldberg.
18721
18722 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18723
18724 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
18725 ascii.bitmaps.
18726
18727 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18728
18729 * genmk.rb: Remove terminal*.lst in make clean.
18730 Reported by: Seth Goldberg.
18731
18732 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18733
18734 * util/i386/efi/grub-install.in: Copy gettext files.
18735
18736 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
18737
18738 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
18739
18740 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
18741
18742 Wait for user entry basing on presence of output rather than on errors.
18743
18744 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
18745 (grub_install_newline_hook): Likewise.
18746 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
18747 * normal/menu.c (show_menu): Check line_counter to determine presence
18748 of output.
18749 * normal/term.c (grub_normal_line_counter): New variable.
18750 (grub_normal_get_line_counter): New function.
18751 (grub_install_newline_hook): Likewise.
18752
18753 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
18754
18755 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
18756
18757 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
18758
18759 * configure.ac: Update version to 1.98.
18760
18761 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
18762
18763 * util/grub.d/10_linux.in (linux_entry): Don't default to
18764 gfxpayload=keep if Linux doesn't support video handover.
18765
18766 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
18767
18768 Don't compile video modules on yeeloong since video subsystem is part
18769 of kernel.
18770
18771 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
18772 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
18773 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
18774 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
18775 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
18776 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
18777 * include/grub/bitmap_scale.h: Likewise.
18778 * include/grub/bufio.h: Likewise.
18779 * include/grub/font.h: Likewise.
18780 * include/grub/gfxterm.h: Likewise.
18781 * include/grub/video.h: Likewise.
18782 * include/grub/vbe.h: Don't include video_fb.h.
18783 * video/i386/pc/vbe.c: Include video_fb.h.
18784 * commands/i386/pc/vbetest.c: Include video.h.
18785
18786 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
18787
18788 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
18789 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
18790 default entry if GRUB_SAVEDEFAULT=true. This allows using
18791 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
18792 saving a new default on every boot.
18793
18794 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
18795
18796 * normal/crypto.c (read_crypto_list): Fix a memory leak.
18797 * normal/term.c (read_terminal_list): Likewise.
18798 * normal/main.c (grub_normal_init_page): Likewise.
18799 (grub_normal_read_line_real): Likewise.
18800
18801 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
18802
18803 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
18804 memory leak.
18805 Reported by: Seth Goldberg.
18806
18807 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
18808
18809 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
18810 duplicate declaration of `start'.
18811
18812 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
18813
18814 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
18815 filename.
18816 Reported by: Georgy Buranov
18817
18818 2010-02-20 Carles Pina i Estany <carles@pina.cat>
18819
18820 * util/grub-mkrawimage.c (usage): Change string formatting to
18821 improve gettext.
18822
18823 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
18824
18825 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
18826 backspace keys.
18827
18828 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
18829
18830 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
18831 Reported by: Michael Suchanek.
18832
18833 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18834
18835 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
18836 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
18837
18838 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
18839
18840 Remove any reference to non-free fonts.
18841
18842 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
18843 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
18844 uses non-free components.
18845 * font/font.c (grub_font_get_name): Remove example name.
18846 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
18847 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
18848 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
18849 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
18850
18851 2010-02-16 Georgy Buranov <gburanov@gmail.com>
18852
18853 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
18854
18855 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
18856
18857 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
18858 Double divisor.
18859 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
18860 features.
18861 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
18862
18863 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
18864
18865 * gensymlist.sh.in: Use TARGET_CC instead of CC.
18866
18867 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18868
18869 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
18870 * docs/grub.texi (Command-line and menu entry commands): Document play
18871 command.
18872
18873 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18874
18875 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
18876 parse arguments as inline tempo and notes. Move code for playing notes
18877 to...
18878 (play): ... new function.
18879
18880 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18881
18882 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
18883 grub_uint16_t instead of short.
18884 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
18885 disk from little endian to cpu endianness.
18886
18887 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
18888
18889 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
18890 GRUB_TICKS_PER_SECOND instead of 120.
18891
18892 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18893
18894 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
18895 escape sequence after \e.
18896
18897 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18898
18899 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
18900 non-ASCII characters.
18901
18902 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18903
18904 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
18905 set root in single quotes to prevent \, from being unescaped.
18906
18907 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18908
18909 Prevent unknown commands from stopping menuentry execution.
18910
18911 * script/execute.c (grub_script_execute_cmdline): Print error after
18912 unknown command.
18913
18914 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18915
18916 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
18917 Reported by: Pavel Pisa.
18918
18919 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18920
18921 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
18922
18923 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18924
18925 Merge grub_ieee1275_map_physical into grub_map and rename to
18926 grub_ieee1275_map
18927
18928 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
18929 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
18930 Remove.
18931 * kern/ieee1275/openfw.c (grub_map): Rename to ...
18932 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
18933 necessary.
18934 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
18935
18936 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18937
18938 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
18939 opening and not after.
18940
18941 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18942
18943 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
18944 constants.
18945
18946 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18947
18948 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
18949 (alloc_phys): Use ALIGN_UP instead of align_addr.
18950
18951 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18952
18953 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
18954
18955 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18956
18957 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
18958
18959 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18960
18961 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
18962 verbose dprintf.
18963
18964 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18965
18966 Fix over-4GiB seek on sparc64.
18967
18968 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
18969 Replace pos_i and pos_lo with pos. All users updated.
18970 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
18971 New constant.
18972 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
18973 Likewise.
18974 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
18975 and pos_lo.
18976
18977 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18978
18979 * util/grub-mkrawimage.c (main): Call set_program_name.
18980
18981 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18982
18983 Properly align 64-bit targets.
18984
18985 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
18986 (generate_image): Use ALIGN_ADDR.
18987
18988 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18989
18990 Properly create cross-endian images.
18991
18992 * include/grub/types.h (grub_host_to_target_addr): New macro
18993 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
18994
18995 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18996
18997 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
18998
18999 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
19000
19001 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
19002
19003 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
19004 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
19005 (grub_linux_boot): Divide by 64K when on VESA.
19006
19007 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
19008
19009 Support GRUB_GFXPAYLOAD_LINUX.
19010
19011 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
19012 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
19013
19014 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
19015
19016 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
19017 to show messages instead of discarding them.
19018 Process errors after executing command and not before. Keep old method
19019 too as precaution.
19020
19021 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
19022
19023 * configure.ac: Check for ft2build.h.
19024
19025 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19026
19027 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
19028
19029 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19030
19031 * genkernsyms.sh.in: Use TARGET_CC.
19032
19033 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
19034
19035 * NEWS: Update.
19036
19037 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19038
19039 * include/grub/multiboot2.h: Remove leftover file.
19040 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
19041 * include/grub/partition.h [GRUB_UTIL]: Likewise.
19042
19043 2010-02-07 Yves Blusseau <blusseau@zetam.org>
19044
19045 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
19046
19047 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19048
19049 Fix warnings in grub-emu when compiling with maximum warning options.
19050
19051 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
19052 (grub_arch_modules_addr): Return 0 and not NULL.
19053 * util/misc.c (ENABLE_RELOCATABLE): New definition.
19054 (xstrdup): Use newstr instead of dup.
19055 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
19056 of disk to dsk to avoid shadowing.
19057 (find_free_slot): Fix prototype.
19058 * util/getroot.c (grub_util_is_dmraid): Make static.
19059 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
19060 Add missing prototype.
19061 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
19062
19063 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19064
19065 * loader/i386/linux.c (grub_linux_setup_video): Handle error
19066 appropriately.
19067
19068 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19069
19070 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
19071 code out.
19072
19073 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19074
19075 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
19076 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
19077 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
19078 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
19079 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
19080 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
19081
19082 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19083
19084 * include/grub/err.h (grub_err_printf): Don't export.
19085
19086 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19087
19088 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
19089
19090 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19091
19092 * include/grub/i18n.h (grub_gettext_dummy): Removed.
19093 * kern/misc.c (grub_gettext_dummy): Make static.
19094
19095 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19096
19097 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
19098 by non-valid ones.
19099 * kern/term.c (grub_putchar): Likewise.
19100
19101 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19102
19103 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
19104 buggy hook call and memory leak.
19105
19106 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19107
19108 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
19109
19110 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19111
19112 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
19113
19114 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19115
19116 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
19117 modevar.
19118 Return grub_errno on allocation error.
19119
19120 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19121
19122 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
19123
19124 2010-02-06 Yves Blusseau <blusseau@zetam.org>
19125
19126 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
19127 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
19128
19129 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19130
19131 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
19132 non-pxe disk.
19133 (grub_pxefs_open): Likewise.
19134
19135 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
19136
19137 * util/grub.d/10_hurd.in: Add --class information to menuentries.
19138 * util/grub.d/10_kfreebsd.in: Likewise.
19139 * util/grub.d/10_linux.in: Likewise.
19140
19141 2010-02-06 Colin D Bennett <colin@gibibit.com>
19142
19143 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
19144 (gfxmenu_mod_SOURCES): New variable.
19145 (gfxmenu_mod_CFLAGS): Likewise.
19146 (gfxmenu_mod_LDFLAGS): Likewise.
19147 * include/grub/term.h (grub_term_set_current_output): Declare
19148 argument as const.
19149 * docs/gfxmenu-theme-example.txt: New file.
19150 * gfxmenu/gfxmenu.c: Likewise.
19151 * gfxmenu/gui_box.c: Likewise.
19152 * gfxmenu/gui_canvas.c: Likewise.
19153 * gfxmenu/gui_circular_progress.c: Likewise.
19154 * gfxmenu/gui_image.c: Likewise.
19155 * gfxmenu/gui_label.c: Likewise.
19156 * gfxmenu/gui_list.c: Likewise.
19157 * gfxmenu/gui_progress_bar.c: Likewise.
19158 * gfxmenu/gui_string_util.c: Likewise.
19159 * gfxmenu/gui_util.c: Likewise.
19160 * gfxmenu/icon_manager.c: Likewise.
19161 * gfxmenu/model.c: Likewise.
19162 * gfxmenu/named_colors.c: Likewise.
19163 * gfxmenu/theme_loader.c: Likewise.
19164 * gfxmenu/view.c: Likewise.
19165 * gfxmenu/widget-box.c: Likewise.
19166 * include/grub/gfxmenu_model.h: Likewise.
19167 * include/grub/gfxmenu_view.h: Likewise.
19168 * include/grub/gfxwidgets.h: Likewise.
19169 * include/grub/gui.h: Likewise.
19170 * include/grub/gui_string_util.h: Likewise.
19171 * include/grub/icon_manager.h: Likewise.
19172
19173 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19174
19175 Agglomerate scrolling in gfxterm.
19176
19177 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
19178 (grub_virtual_screen_setup): Initialise 'total_screen'.
19179 (write_char): Split to ...
19180 (paint_char): ... this ...
19181 (write_char): ... and this.
19182 (paint_char): Handle delayed scrolling.
19183 (draw_cursor): Likewise.
19184 (scroll_up): Split to ...
19185 (real_scroll): ... this ...
19186 (scroll_up): ... and this.
19187 (real_scroll): Handle multi-line scroll and draw below-the-bottom
19188 characters.
19189 (grub_gfxterm_refresh): Call real_scroll.
19190
19191 2010-02-06 Colin D Bennett <colin@gibibit.com>
19192
19193 * include/grub/misc.h (grub_iscntrl): New inline function.
19194 (grub_isalnum): Likewise.
19195 (grub_strtol): Likewise.
19196
19197 2010-02-06 Colin D Bennett <colin@gibibit.com>
19198
19199 * normal/menu_text.c (get_entry_number): Move from here ...
19200 * normal/menu.c (get_entry_number): ... moved here.
19201 * include/grub/menu.h (grub_menu_get_default_entry_index):
19202 New prototype.
19203 * normal/menu.c (grub_menu_get_default_entry_index): New function.
19204 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
19205 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
19206 (grub_menu_viewer_should_return): Likewise.
19207 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
19208 * normal/menu_text.c (run_menu): Enable menu switching.
19209 * normal/menu_viewer.c (should_return): New variable.
19210 (menu_viewer_changed): Likewise.
19211 (grub_menu_viewer_show_menu): Handle menu viewer changes.
19212 (grub_menu_viewer_should_return): New function.
19213 (menuviewer_write_hook): Likewise.
19214 (grub_menu_viewer_init): Likewise.
19215
19216 2010-02-06 Colin D Bennet <colin@gibibit.com>
19217 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19218
19219 Support for gfxterm in a window.
19220
19221 * include/grub/gfxterm.h: New file.
19222 * include/grub/video.h (struct grub_video_rect): New declaration.
19223 (grub_video_rect_t): Likewise.
19224 * term/gfxterm.c (struct grub_gfxterm_window): New type.
19225 (refcount): New variable.
19226 (render_target): Likewise.
19227 (window): Likewise.
19228 (repaint_callback): Likewise.
19229 (grub_virtual_screen_setup): Use 'render_target'.
19230 (init_window): New function.
19231 (grub_gfxterm_init_window): Likewise.
19232 (grub_gfxterm_init): Check reference counter.
19233 Use init_window.
19234 (destroy_window): New function.
19235 (grub_gfxterm_destroy_window): Likewise.
19236 (grub_gfxterm_fini): Check reference counter.
19237 Use destroy_window.
19238 (redraw_screen_rect): Restore viewport.
19239 Use 'render_target' and 'window'.
19240 Call 'repaint_callback'.
19241 (write_char): Use 'render_target'.
19242 (draw_cursor): Likewise.
19243 (scroll_up): Restore viewport.
19244 Use 'render_target' and 'window'.
19245 Call 'repaint_callback'.
19246 (grub_gfxterm_cls): Likewise.
19247 (grub_gfxterm_refresh): Use 'window'.
19248 (grub_gfxterm_set_repaint_callback): New function.
19249 (grub_gfxterm_background_image_cmd): Use 'window'.
19250 (grub_gfxterm_get_term): New function.
19251 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
19252
19253 2010-02-06 Colin D Bennett <colin@gibibit.com>
19254
19255 Bitmap scaling support.
19256
19257 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
19258 (bitmap_scale_mod_SOURCES): New variable.
19259 (bitmap_scale_mod_CFLAGS): Likewise.
19260 (bitmap_scale_mod_LDFLAGS): Likewise.
19261 * include/grub/bitmap_scale.h: New file.
19262 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
19263 (background_image_cmd_options): New variable.
19264 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
19265 (cmd): Rename and change type to ...
19266 (background_image_cmd_handle): ... this. All users updated.
19267 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
19268 * video/bitmap_scale.c: New file.
19269
19270 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19271
19272 SDL support.
19273
19274 * Makefile.in (LIBSDL): New variable.
19275 (enable_grub_emu_sdl): Likewise.
19276 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
19277 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
19278 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
19279 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
19280 * util/sdl.c: New file.
19281
19282 2010-02-06 Colin D Bennett <colin@gibibit.com>
19283 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19284
19285 Double buffering support.
19286
19287 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
19288 * include/grub/video.h: Update comment.
19289 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
19290 New type.
19291 (grub_video_fb_doublebuf_blit_init): New prototype.
19292 * term/gfxterm.c (scroll_up): Support double buffering.
19293 (grub_gfxterm_refresh): Likewise.
19294 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
19295 (grub_video_fb_doublebuf_blit_init): Likewise.
19296 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
19297 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
19298 'displayed_page', 'render_page' and 'update_screen'.
19299 (grub_video_vbe_fini): Free offscreen buffer.
19300 (doublebuf_pageflipping_commit): New function.
19301 (doublebuf_pageflipping_update_screen): Likewise.
19302 (doublebuf_pageflipping_init): Likewise.
19303 (double_buffering_init): Likewise.
19304 (grub_video_vbe_setup): Enable doublebuffering.
19305 (grub_video_vbe_swap_buffers): Implement.
19306 (grub_video_vbe_set_active_render_target): Handle double buffering.
19307 (grub_video_vbe_get_active_render_target): Likewise.
19308 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
19309 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
19310 (grub_video_vbe_enable_double_buffering): Likewise.
19311 (grub_video_vbe_swap_buffers): Use update_screen.
19312 (grub_video_set_mode): Use double buffering.
19313
19314 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
19315
19316 * maintainance/gentrigtables.py: Remove.
19317 * lib/trig.c: Likewise.
19318
19319 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
19320
19321 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
19322 `trigtables.c'.
19323 (trigtables.c): New rule.
19324 (gentrigtables): Likewise.
19325 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
19326
19327 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
19328
19329 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
19330 integer constants.
19331
19332 2010-02-06 Colin D Bennet <colin@gibibit.com>
19333
19334 Trigonometry support.
19335
19336 * include/grub/trig.h: New file.
19337 * lib/trig.c: Likewise.
19338 * maintainance/gentrigtables.py: Likewise.
19339 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
19340 (trig_mod_SOURCES): New variable.
19341 (trig_mod_CFLAGS): Likewise.
19342 (trig_mod_LDFLAGS): Likewise.
19343
19344 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19345
19346 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
19347 disk devices.
19348
19349 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19350
19351 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
19352 error.
19353
19354 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
19355
19356 * util/hostdisk.c (open_device): Don't use partition device when reading
19357 before the partition.
19358 (grub_util_biosdisk_read): Don't read from partition and before the
19359 partition in single operation.
19360 (grub_util_biosdisk_write): Don't write to partition and before the
19361 partition in single operation.
19362
19363 2010-02-03 Torsten Landschoff <torsten@debian.org>
19364
19365 * kern/disk.c (grub_disk_read): Fix offset computation when reading
19366 last sectors.
19367
19368 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
19369
19370 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
19371 CDROM reads.
19372 (grub_biosdisk_write): Refuse to write to CDROM.
19373
19374 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
19375
19376 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
19377
19378 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
19379
19380 * font/font.c (find_glyph): Check that bmp_idx is available before
19381 using it.
19382 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
19383 with (font == NULL).
19384
19385 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
19386
19387 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
19388
19389 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
19390
19391 * include/grub/script_sh.h (sourcecode): Add const qualifier.
19392 * util/grub-script-check.c (getline): Fix empty lines case.
19393
19394 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
19395
19396 * Makefile.in (check): Exit with fail status when one of the tests
19397 fails.
19398 * tests/example_functional_test.c (example_test): Fix reversed assert.
19399 * tests/example_unit_test.c (example_test): Likewise.
19400
19401 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
19402
19403 * util/grub.d/10_linux.in: This script does not use any of the
19404 contents of gettext.sh, only the external command `gettext', so stop
19405 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
19406 the same prefix as GRUB.)
19407 * util/grub.d/10_kfreebsd.in: Likewise.
19408
19409 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
19410
19411 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
19412 of the line.
19413
19414 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
19415
19416 * kern/disk.c (grub_disk_read): Fix offset computation when reading
19417 last sectors.
19418
19419 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
19420
19421 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
19422 having a 4KiB and not 32KiB buffer size.
19423
19424 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
19425
19426 * util/hostfs.c: Include `<errno.h>'.
19427 (grub_hostfs_read): Handle errors from fseeko() and fread().
19428
19429 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
19430
19431 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
19432 loop when using read hooks on files whose size isn't sector-aligned.
19433
19434 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
19435
19436 Remove unused parameter.
19437
19438 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
19439 (grub_iso9660_open): Remove initialization of `data->length'.
19440
19441 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
19442
19443 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
19444 memleak conditions.
19445
19446 2010-01-27 Carles Pina i Estany <carles@pina.cat>
19447
19448 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
19449 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
19450
19451 2010-01-26 Carles Pina i Estany <carles@pina.cat>
19452
19453 * util/bin2h.c (usage): Fix warning (space after backslash).
19454
19455 2010-01-26 Carles Pina i Estany <carles@pina.cat>
19456
19457 * font/font.c: Include `grub/fontformat.h.
19458 Remove font file format constants.
19459 (grub_font_load): Use the new macros.
19460 * include/grub/fontformat.h: New file.
19461 * util/grub-mkfont.c: Include `grub/fontformat.c'.
19462 (write_font_pf2): Use the new macros.
19463
19464 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
19465
19466 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
19467 does.
19468
19469 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
19470
19471 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
19472
19473 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
19474 (_start): Macroify `0x7F'.
19475
19476 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
19477 (make_install_device): Use "(pxe)" as fallback prefix when booting
19478 via PXE.
19479
19480 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
19481
19482 * configure.ac: Reset LIBS after check for libgcc symbols.
19483
19484 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
19485
19486 * util/hostdisk.c (open_device): Add trailing newline to debug
19487 message.
19488
19489 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
19490
19491 * configure.ac: Check for `limits.h'.
19492 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
19493
19494 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
19495
19496 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
19497 capitalize error strings.
19498
19499 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
19500
19501 * util/grub.d/10_hurd.in: Add a recovery mode.
19502
19503 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
19504
19505 * configure.ac: Check for libgcc symbols with -nostdlib.
19506
19507 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
19508
19509 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
19510
19511 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19512
19513 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
19514 stack since heap may be unavailable at that point.
19515 (grub_ofconsole_gotoxy): Likewise.
19516
19517 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19518
19519 * configure.ac: Check for _restgpr_14_x.
19520 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
19521 and _savegpr_* prototypes.
19522
19523 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
19524
19525 Use generic grub_reboot() for i386-efi.
19526
19527 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
19528 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
19529 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
19530
19531 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19532
19533 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
19534 presence of "prefix" variable as it breaks when normal.mod is
19535 embedded.
19536
19537 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
19538
19539 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
19540 stack since heap is unavailable at that point.
19541
19542 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
19543
19544 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
19545 (grub_freebsd_bootinfo): Rewritten.
19546 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
19547
19548 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
19549
19550 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
19551
19552 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
19553
19554 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
19555 domain now.
19556
19557 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
19558
19559 * util/misc.c (make_system_path_relative_to_its_root): Change the work
19560 around for handling "/" to the correct fix. Fix a memory leak. Use
19561 xstrdup instead of strdup.
19562
19563 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19564
19565 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
19566
19567 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19568
19569 Optimise glyph lookup by Basic Multilingual Plane lookup array.
19570
19571 * font/font.c (struct grub_font): New member 'bmp_idx'.
19572 (font_init): Initialise 'bmp_idx'.
19573 (load_font_index): Fill 'bmp_idx'.
19574 (find_glyph): Make inline. Use bmp_idx for BMP characters.
19575
19576 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19577
19578 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
19579 unnecessary calls.
19580
19581 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19582
19583 Move context handling out of the kernel.
19584
19585 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
19586 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
19587 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
19588 * conf/i386-efi.rmk: Likewise.
19589 * conf/i386-ieee1275.rmk: Likewise.
19590 * conf/i386-pc.rmk: Likewise.
19591 * conf/powerpc-ieee1275.rmk: Likewise.
19592 * conf/sparc64-ieee1275.rmk: Likewise.
19593 * conf/x86_64-efi.rmk: Likewise.
19594 * include/grub/env.h: Include grub/menu.h.
19595 (grub_env_var_type): Removed.
19596 (grub_env_var): Replaced field 'type' with 'global'.
19597 (grub_env_find): New prototype.
19598 (grub_env_context_open): Remove EXPORT_FUNC.
19599 (grub_env_context_close): Likewise.
19600 (grub_env_export): Likewise.
19601 (grub_env_set_data_slot): Removed.
19602 (grub_env_get_data_slot): Likewise.
19603 (grub_env_unset_data_slot): Likewise.
19604 (grub_env_unset_menu): New prototype.
19605 (grub_env_set_menu): Likewise.
19606 (grub_env_get_menu): Likewise.
19607 * include/grub/env_private.h: New file.
19608 * include/grub/normal.h (grub_context_init): New prototype.
19609 (grub_context_fini): Likewise.
19610 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
19611 * normal/context.c (grub_cmd_export): ... to here.
19612 * kern/env.c: Include env_private.h.
19613 (HASHSZ): Moved to include/grub/env_private.h.
19614 (grub_env_context): Likewise.
19615 (grub_env_sorted_var): Likewise.
19616 (current_context): Renamed from this ...
19617 (grub_current_context): ...to this. 'static' removed. All users updated.
19618 (grub_env_find): Removed 'static'.
19619 (grub_env_context_open): Moved to normal/context.c.
19620 (grub_env_context_close): Likewise.
19621 (grub_env_export): Likewise.
19622 (mangle_data_slot_name): Removed.
19623 (grub_env_set_data_slot): Likewise.
19624 (grub_env_get_data_slot): Likewise.
19625 (grub_env_unset_data_slot): Likewise.
19626 * kern/main.c (grub_set_root_dev): Don't export root.
19627 It will be done later.
19628 (grub_main): Don't export prefix.
19629 It will be done later.
19630 * normal/context.c: New file.
19631 * normal/main.c (free_menu): Use grub_env_unset_menu.
19632 (grub_normal_add_menu_entry): Use grub_env_get_menu.
19633 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
19634 (GRUB_MOD_INIT(normal)): Call grub_context_init.
19635 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
19636
19637 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19638
19639 setpci support.
19640
19641 * commands/setpci.c: New file.
19642 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
19643 (setpci_mod_SOURCES): New variable.
19644 (setpci_mod_CFLAGS): Likewise.
19645 (setpci_mod_LDFLAGS): Likewise.
19646
19647 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19648
19649 Byte-addressable PCI configuration space.
19650
19651 * bus/pci.c (grub_pci_make_address): Use byte address instead of
19652 dword address.
19653 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
19654 GRUB_PCI_REG_CACHELINE.
19655 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
19656 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
19657 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
19658 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
19659 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
19660 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
19661 grub_pci_make_address.
19662 (lock_rom_area): Likewise.
19663 * commands/lspci.c (grub_lspci_iter): Use macroses
19664 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
19665 of grub_pci_make_address.
19666 * disk/ata.c (grub_ata_pciinit): Likewise.
19667 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
19668 (GRUB_PCI_REG_VENDOR): Likewise.
19669 (GRUB_PCI_REG_DEVICE): Likewise.
19670 (GRUB_PCI_REG_COMMAND): Likewise.
19671 (GRUB_PCI_REG_STATUS): Likewise.
19672 (GRUB_PCI_REG_REVISION): Likewise.
19673 (GRUB_PCI_REG_CLASS): Likewise.
19674 (GRUB_PCI_REG_CACHELINE): Likewise.
19675 (GRUB_PCI_REG_LAT_TIMER): Likewise.
19676 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
19677 (GRUB_PCI_REG_BIST): Likewise.
19678 (GRUB_PCI_REG_ADDRESSES): Likewise.
19679 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19680 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19681 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19682 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19683 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19684 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19685 (GRUB_PCI_REG_CIS_POINTER): Likewise.
19686 (GRUB_PCI_REG_SUBVENDOR): Likewise.
19687 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
19688 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
19689 (GRUB_PCI_REG_CAP_POINTER): Likewise.
19690 (GRUB_PCI_REG_IRQ_LINE): Likewise.
19691 (GRUB_PCI_REG_IRQ_PIN): Likewise.
19692 (GRUB_PCI_REG_MIN_GNT): Likewise.
19693 (GRUB_PCI_REG_MAX_LAT): Likewise.
19694 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
19695 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
19696 * video/efi_uga.c (find_framebuf): Likewise.
19697 * video/sm712.c (grub_video_sm712_setup): Likewise.
19698 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
19699 space.
19700
19701 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19702
19703 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
19704 can be reliably determined to be supported.
19705
19706 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19707
19708 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
19709 that VESA is supported.
19710 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
19711 supported.
19712
19713 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19714
19715 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
19716
19717 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19718
19719 * util/misc.c (make_system_path_relative_to_its_root): Work around
19720 special-casing of "/", as previous incarnation of this routine did.
19721
19722 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19723
19724 Fix any-emu compilation.
19725
19726 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
19727 * grub_bin2h_SOURCES: New variable.
19728
19729 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19730
19731 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
19732
19733 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19734
19735 * util/grub.d/00_header.in: Fix handling of locale_dir.
19736
19737 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19738
19739 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
19740 as possible unifont location (Gentoo).
19741 Reported by: Alexander Brüning
19742
19743 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19744
19745 Don't try to generate lists for kernel.img.
19746
19747 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
19748 (pkglib_MODULES): Remove kernel.img.
19749 (kernel_img_EXPORTS): Removed.
19750 (kernel_img_RELOCATABLE): New variable.
19751 * conf/x86_64-efi.rmk: Likewise.
19752 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
19753
19754 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19755
19756 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
19757 grub_xasprintf or grub_snprintf.
19758 (grub_vsprintf): Likewise.
19759 (grub_snprintf): New proto.
19760 (grub_vsnprintf): Likewise.
19761 (grub_xasprintf): Likewise.
19762 (grub_xvasprintf): Likewise.
19763 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
19764 (grub_sprintf): Removed.
19765 (grub_vsnprintf): New function.
19766 (grub_snprintf): Likewise.
19767 (grub_xvasprintf): Likewise.
19768 (grub_xasprintf): Likewise.
19769 (grub_vsprintf): Renamed to ...
19770 (grub_vsnprintf_real): ...this. New argument max_len.
19771
19772 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
19773
19774 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
19775 fix grub-script-check warning.
19776
19777 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19778
19779 * include/grub/font.h (grub_font_load): Fix prototype.
19780
19781 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19782
19783 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
19784
19785 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19786
19787 * include/grub/x86_64/at_keyboard.h: New file.
19788
19789 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19790
19791 * loader/mips/linux.c: Include missing grub/i18n.h.
19792
19793 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
19794
19795 * normal/menu.c (notify_execution_failure): Clarify error message.
19796
19797 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
19798
19799 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
19800 return value (and revert all return statements). Update users.
19801
19802 2010-01-20 Dan Merillat <debian@dan.merillat.org>
19803
19804 * kern/device.c (grub_device_iterate): Allocate new part_ent
19805 structure based on sizeof (*p) rather than sizeof (p->next), to
19806 account for structure padding.
19807
19808 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
19809 disk is NULL, which might happen for LVM physical volumes with no
19810 LVM signature.
19811
19812 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
19813
19814 * loader/mips/linux.c (grub_cmd_initrd)
19815 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
19816
19817 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
19818
19819 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
19820 (grub_video_video_init, grub_video_bitmap_init)
19821 (grub_font_manager_init, grub_term_gfxterm_init)
19822 (grub_at_keyboard_init): New extern declarations.
19823 (grub_machine_init): Initialize gfxterm and at_keyboard.
19824
19825 * kern/main.c (grub_main): Revert grub_printf delay kludge.
19826
19827 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
19828 `gfxterm.mod' into core image.
19829
19830 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
19831 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19832 (kernel_img_FORMAT): Copy to ...
19833
19834 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
19835 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19836 (kernel_img_FORMAT): ... here, and ...
19837
19838 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
19839 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19840 (kernel_img_FORMAT): ... here.
19841
19842 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
19843 and input (at_keyboard) terminals in kernel.
19844 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
19845
19846 (pkglib_MODULES): Remove `pci.mod'.
19847 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
19848 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
19849 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
19850 (at_keyboard_mod_LDFLAGS): Remove variables.
19851
19852 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
19853
19854 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
19855
19856 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
19857
19858 * include/grub/mips/libgcc.h: Only export symbols for functions
19859 that libgcc provides.
19860
19861 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
19862
19863 MIPS support.
19864
19865 * bus/bonito.c: New file.
19866 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
19867 GRUB_PCI_NUM_DEVICES.
19868 * term/i386/pc/serial.c: Move to ...
19869 * term/serial.c: ... here. All users updated.
19870 * util/i386/pc/grub-mkimage.c: Move to ...
19871 * util/grub-mkrawimage.c: ... here. All users updated.
19872 * term/i386/pc/at_keyboard.c: Move to ...
19873 * term/at_keyboard.c: ... here. All users updated.
19874 * conf/mips-qemu-mips.rmk: New file.
19875 * conf/mips-yeeloong.rmk: Likewise.
19876 * conf/mips.rmk: Likewise.
19877 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
19878 mipsel-qemu-mips.
19879 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
19880 to port addresses.
19881 (grub_ata_pciinit): Support CS5536.
19882 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
19883 * font/font_cmd.c (loadfont_command): Open file before passing it to
19884 grub_font_load.
19885 (pseudo_file_read): New function.
19886 (pseudo_file_close): Likewise.
19887 (pseudo_fs): New structure.
19888 (load_font_module): New function.
19889 (GRUB_MOD_INIT(font_manager)): Load embedded font.
19890 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
19891 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
19892 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
19893 * include/grub/i386/at_keyboard.h: Split into ...
19894 * include/grub/at_keyboard.h: ... this ...
19895 * include/grub/i386/at_keyboard.h: ... and this.
19896 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
19897 New prototype.
19898 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
19899 updated.
19900 (grub_elf64_size): Likewise.
19901 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
19902 filename.
19903 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
19904 * include/grub/i386/coreboot/serial.h: Rewritten.
19905 * include/grub/i386/ieee1275/serial.h: Include
19906 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
19907 * include/grub/i386/pc/serial.h: Moved from here ...
19908 * include/grub/serial.h: ... to here. All users updated.
19909 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
19910 (GRUB_PCI_NUM_BUS): Likewise.
19911 (GRUB_PCI_NUM_DEVICES): Likewise.
19912 (grub_pci_device_map_range): Add missing volatile keyword.
19913 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
19914 * include/grub/mips/at_keyboard.h: New file.
19915 * include/grub/mips/cache.h: Likewise.
19916 * include/grub/mips/io.h: Likewise.
19917 * include/grub/mips/kernel.h: Likewise.
19918 * include/grub/mips/libgcc.h: Likewise.
19919 * include/grub/mips/pci.h: Likewise.
19920 * include/grub/mips/qemu-mips/boot.h: Likewise.
19921 * include/grub/mips/qemu-mips/kernel.h: Likewise.
19922 * include/grub/mips/qemu-mips/loader.h: Likewise.
19923 * include/grub/mips/qemu-mips/memory.h: Likewise.
19924 * include/grub/mips/qemu-mips/serial.h: Likewise.
19925 * include/grub/mips/qemu-mips/time.h: Likewise.
19926 * include/grub/mips/relocator.h: Likewise.
19927 * include/grub/mips/time.h: Likewise.
19928 * include/grub/mips/types.h: Likewise.
19929 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
19930 * include/grub/mips/yeeloong/boot.h: Likewise.
19931 * include/grub/mips/yeeloong/kernel.h: Likewise.
19932 * include/grub/mips/yeeloong/loader.h: Likewise.
19933 * include/grub/mips/yeeloong/memory.h: Likewise.
19934 * include/grub/mips/yeeloong/pci.h: Likewise.
19935 * include/grub/mips/yeeloong/serial.h: Likewise.
19936 * include/grub/mips/yeeloong/time.h: Likewise.
19937 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
19938 * kern/elf.c (grub_elf32_size): New parameter. All users
19939 updated.
19940 (grub_elf64_size): Likewise.
19941 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
19942 Load modules before saying "Welcome to GRUB!".
19943 Call grub_refresh after saying "Welcome to GRUB!".
19944 * kern/mips/cache.S: New file.
19945 * kern/mips/cache_flush.S: Likewise.
19946 * kern/mips/dl.c: Likewise.
19947 * kern/mips/init.c: Likewise.
19948 * kern/mips/qemu-mips/init.c: Likewise.
19949 * kern/mips/startup.S: Likewise.
19950 * kern/mips/yeeloong/init.c: Likewise.
19951 * kern/term.c (grub_putcode): Handle NULL terminal.
19952 (grub_getcharwidth): Likewise.
19953 (grub_getkey): Likewise.
19954 (grub_checkkey): Likewise.
19955 (grub_getkeystatus): Likewise.
19956 (grub_getxy): Likewise.
19957 (grub_getwh): Likewise.
19958 (grub_gotoxy): Likewise.
19959 (grub_cls): Likewise.
19960 (grub_setcolorstate): Likewise.
19961 (grub_setcolor): Likewise.
19962 (grub_getcolor): Likewise.
19963 (grub_refresh): Likewise.
19964 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
19965 (write_jump): Add hatch nop.
19966 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
19967 * lib/mips/setjmp.S: New file.
19968 * loader/mips/linux.c: Likewise.
19969 * term/i386/pc/at_keyboard.c: Move from here ...
19970 * term/at_keyboard.c: ... to here.
19971 * term/i386/pc/serial.c: Moved from here ...
19972 * term/serial.c: ... to here. All users updated.
19973 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
19974 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
19975 (serial_translate_key_sequence): Avoid deadlock.
19976 (grub_serial_getkey): Handle backspace.
19977 (grub_serial_putchar): Fix newline handling.
19978 * util/i386/pc/grub-mkimage.c: Move from here ...
19979 * util/grub-mkrawimage.c: ... to here. All users updated.
19980 (generate_image): New parameters 'font_path' and 'format'.
19981 Support embedding font.
19982 Use grub_host_to_target* instead of grub_cpu_to_le*.
19983 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
19984 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
19985 (options): New option "--font".
19986 (usage): Likewise.
19987 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
19988 (main): Handle "--font".
19989 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
19990 (grub_virtual_screen_setup): Set bg_color_display.
19991 (redraw_screen_rect): Use bg_color_display instead of incorrect
19992 bg_color.
19993 (grub_gfxterm_cls): Likewise.
19994 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
19995 Support embedding config file.
19996 (add_segments): Likewise.
19997 (options): New option "--config".
19998 (main): Handle "--config".
19999 * video/sm712.c: New file.
20000
20001 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20002
20003 Fix parallel builds.
20004
20005 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
20006 font.c depend on ascii.h).
20007
20008 2010-01-12 Carles Pina i Estany <carles@pina.cat>
20009
20010 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
20011
20012 2010-01-11 Carles Pina i Estany <carles@pina.cat>
20013
20014 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
20015 By default: disabled.
20016 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
20017 parameter.
20018
20019 2010-01-10 Carles Pina i Estany <carles@pina.cat>
20020
20021 * font/font.c: Update copyright years.
20022 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
20023
20024 2010-01-10 Carles Pina i Estany <carles@pina.cat>
20025
20026 * font/font.c: Include `ascii.h'.
20027 (ASCII_BITMAP_SIZE): New macro.
20028 (ascii_font_glyph): Define.
20029 (ascii_glyph_lookup): New function.
20030 (grub_font_get_string_width): Change comment. If glyph not found, use
20031 ascii_glyph_lookup.
20032 (grub_font_get_glyph_with_fallback): If glyph not available returns
20033 ascii_glyph_lookup.
20034 * util/grub-mkfont.c (file_formats): New enum.
20035 (options): Add `ascii-bitmaps' new option.
20036 (usage): Add `asii-bitmaps' new option.
20037 (write_font_ascii_bitmap): New function.
20038 (write_font): Rename to ...
20039 (write_font_p2): ... this. Remove print_glyphs call.
20040 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
20041 used. Call print_glyphs.
20042 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
20043
20044 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
20045
20046 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
20047 (grub_bin2h_SOURCES): New variable.
20048 * util/bin2h.c: New file.
20049
20050 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
20051
20052 * include/multiboot.h: Resynced with spec.
20053 * include/multiboot2.h: Likewise.
20054 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
20055 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
20056
20057 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20058
20059 * include/grub/term.h (grub_term_register_input,
20060 grub_term_register_output): Check return of terminal init()
20061 routines, and abort if errors are raised.
20062
20063 * commands/terminal.c: Update copyright year.
20064
20065 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20066
20067 * commands/terminal.c (grub_cmd_terminal_input)
20068 (grub_cmd_terminal_output): Check return of terminal init()
20069 routines, and abort if errors are raised.
20070
20071 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
20072
20073 * include/grub/i386/bsd.h: Fix include pathes.
20074
20075 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
20076
20077 Add missing *BSD copyright headers.
20078
20079 * include/grub/aout.h: Add BSD licence.
20080 * include/grub/i386/bsd.h: Parts under different licences moved to ...
20081 * include/grub/i386/freebsd_linker.h: ... here,
20082 * include/grub/i386/freebsd_reboot.h: ... here,
20083 * include/grub/i386/netbsd_bootinfo.h: ... here,
20084 * include/grub/i386/netbsd_reboot.h: ... here,
20085 * include/grub/i386/openbsd_bootarg.h: ... here,
20086 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
20087 licence to each file.
20088
20089 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20090
20091 * acinclude.m4: Remove `nop' assembly instruction; it's not
20092 implemented by all architectures.
20093
20094 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20095
20096 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
20097 ELILO. This is no longer necessary.
20098
20099 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
20100
20101 Added new tool, grub-scrit-check to verify grub.cfg syntax.
20102
20103 * util/grub-script-check.c: grub-script-check tool.
20104 * conf/common.rmk: Make rules for grub-script-check.
20105
20106 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20107
20108 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
20109 spotting it back in 2008. Shame on me for forgetting he did.
20110
20111 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
20112
20113 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20114
20115 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
20116 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
20117 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
20118 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
20119 (GRUB_VIDEO_TYPE_EFI): Rename to ...
20120 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
20121
20122 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
20123
20124 * include/grub/test.h: Add license header.
20125 * tests/example_functional_test.c: Likewise.
20126 * tests/example_unit_test.c: Likewise.
20127 * tests/lib/functional_test.c: Likewise.
20128 * tests/lib/test.c: Likewise.
20129 * tests/lib/unit_test.c: Likewise.
20130
20131 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
20132
20133 Use flag-based instead of hook-based video mode selection and "auto"
20134 keyword.
20135
20136 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
20137 (grub_video_set_mode): Changed prototype. All users updated.
20138 (grub_video_check_mode_flag): New inline function.
20139 * video/video.c (parse_modespec): New function.
20140 (grub_video_set_mode): Parse flags and keywords.
20141
20142 2010-01-17 Carles Pina i Estany <carles@pina.cat>
20143
20144 * util/misc.c (grub_util_info): Fix the order of the parameters in a
20145 fprintf call.
20146
20147 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
20148
20149 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
20150
20151 2010-01-16 Carles Pina i Estany <carles@pina.cat>
20152
20153 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
20154 string.
20155 * util/grub-emu.c (usage): Likewise.
20156 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
20157 * util/i386/efi/grub-mkimage.c (usage): Likewise.
20158 * util/i386/pc/grub-mkimage.c (usage): Likewise.
20159 * util/i386/pc/grub-setup.c (usage): Likewise.
20160
20161 2010-01-16 Carles Pina i Estany <carles@pina.cat>
20162
20163 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
20164 the message.
20165 (grub_util_info): Likewise.
20166 (grub_util_error): Likewise.
20167 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
20168 and/or new lines in `grub_util_warna', `grub_util_info',
20169 `grub_util_error' calls.
20170 * util/getroot.c: Likewise.
20171 * util/grub-editenv.c: Likewise.
20172 * util/grub-emu.c: Likewise.
20173 * util/grub-fstest.c: Likewise.
20174 * util/grub-mkdevicemap.c: Likewise.
20175 * util/grub-mkfont.c: Likewise.
20176 * util/grub-mkpasswd-pbkdf2.c: Likewise.
20177 * util/grub-mkrelpath.c: Likewise.
20178 * util/grub-pe2elf.c: Likewise.
20179 * util/grub-probe.c: Likewise.
20180 * util/hostdisk.c: Likewise.
20181 * util/i386/efi/grub-mkimage.c: Likewise.
20182 * util/i386/pc/grub-mkimage.c: Likewise.
20183 * util/i386/pc/grub-setup.c: Likewise.
20184 * util/ieee1275/ofpath.c: Likewise.
20185 * util/mkisofs/eltorito.c: Likewise.
20186 * util/mkisofs/rock.c: Likewise.
20187 * util/mkisofs/write.c: Likewise.
20188 * util/raid.c: Likewise.
20189 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
20190 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20191
20192 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20193
20194 Enable multiboot on non-pc.
20195
20196 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
20197 multiboot.mod and multiboot2.mod to ...
20198 * conf/i386.rmk (pkglib_MODULES): ... here.
20199 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
20200 Moved to ...
20201 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
20202 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
20203 Moved to ...
20204 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
20205 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
20206 Moved to ...
20207 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
20208 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
20209 Moved to ...
20210 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
20211 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
20212 relocator.mod.
20213 (ata_mod_SOURCES): Removed.
20214 (ata_mod_CFLAGS): Likewise.
20215 (ata_mod_LDFLAGS): Likewise.
20216 (relocator_mod_SOURCES): Removed.
20217 (relocator_mod_CFLAGS): Likewise.
20218 (relocator_mod_ASFLAGS): Likewise.
20219 (relocator_mod_LDFLAGS): Likewise.
20220 Include i386.mk.
20221 * include/grub/x86_64/multiboot.h: New file.
20222 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
20223 Terminate EFI.
20224
20225 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20226
20227 Video multiboot support.
20228
20229 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
20230 New prototype.
20231 * include/multiboot.h: Resynced with multiboot specification.
20232 * include/multiboot2.h: Likewise.
20233 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
20234 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
20235 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
20236 (HAS_VGA_TEXT): Likewise.
20237 (accepts_video): New variable.
20238 (grub_multiboot_set_accepts_video): New function.
20239 (grub_multiboot_get_mbi_size): Account for video structures.
20240 (set_video_mode): New function.
20241 (retrieve_video_parameters): Likewise.
20242 (grub_multiboot_make_mbi): Fill video fields.
20243
20244 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20245
20246 Video driver ids.
20247
20248 * include/grub/video.h (grub_video_driver_id): New type.
20249 (grub_video_adapter): New member 'id'. All users updated.
20250 (grub_video_get_driver_id): New proto.
20251 * video/video.c (grub_video_get_driver_id): New function.
20252
20253 2010-01-14 Carles Pina i Estany <carles@pina.cat>
20254
20255 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
20256 `var=val'.
20257
20258 2010-01-14 Carles Pina i Estany <carles@pina.cat>
20259
20260 * normal/cmdline.c (print_completion): Gettextizze.
20261
20262 2001-01-14 Carles Pina i Estany <carles@pina.cat>
20263
20264 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
20265
20266 2010-01-14 Carles Pina i Estany <carles@pina.cat>
20267
20268 * gettext/gettext.c (grub_gettext_translate): Push and pop
20269 grub_errno.
20270 (grub_gettext_delete_list): Change comment style.
20271 * kern/err.c (grub_error): Gettextizze.
20272 (grub_fatal): Gettextizze.
20273
20274 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
20275
20276 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
20277 (grub_linux16_real_boot): ... this.
20278 * kern/i386/loader.S: Likewise.
20279 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
20280 (grub_linux16_boot): New function. Switches to text mode and calls
20281 grub_linux16_real_boot().
20282
20283 * loader/i386/bsd.c: Include `<grub/video.h>'.
20284 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
20285 text mode before calling grub_unix_real_boot().
20286
20287 * loader/i386/multiboot.c: Include `<grub/video.h>'.
20288 (grub_multiboot_boot): Switch to text mode before calling
20289 grub_relocator32_boot().
20290
20291 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
20292 (grub_chainloader_boot): Switch to text mode before calling
20293 grub_chainloader_real_boot().
20294
20295 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
20296 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
20297
20298 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
20299 non-empty value.
20300
20301 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
20302 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
20303
20304 * util/grub.d/00_header.in: Define a "savedefault" function for use
20305 in menu entries.
20306 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
20307
20308 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
20309 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
20310
20311 * util/grub-mkconfig_lib.in (save_default_entry): Only set
20312 saved_entry if boot_once is unset.
20313 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
20314 previous saved entry (i.e. grub-reboot).
20315
20316 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
20317
20318 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
20319
20320 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
20321
20322 * util/grub.d/00_header.in: Use `set var=val' rather than plain
20323 `var=val'.
20324 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
20325
20326 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
20327
20328 * util/grub-reboot.in: Fix --version output.
20329 * util/grub-set-default.in: Likewise.
20330
20331 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
20332
20333 * util/grub.d/00_header.in: Silently ignore zero-sized environment
20334 blocks.
20335
20336 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
20337
20338 * util/grub.d/00_header.in: Quote the value assigned to `default',
20339 in case it contains spaces.
20340
20341 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
20342
20343 * util/grub.d/30_os-prober.in: Fix merge error that moved a
20344 `save_default_entry' call from the macosx case to the linux case.
20345
20346 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
20347 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
20348
20349 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
20350 in `chosen' environment variable.
20351 * normal/menu_text.c (get_entry_number): Check if the variable
20352 matches the title of a menu entry.
20353 (run_menu): Pass menu to get_entry_number.
20354
20355 * util/grub-reboot.in: New file.
20356 * util/grub-set-default.in: New file.
20357 * conf/common.rmk (grub-reboot): New utility.
20358 (grub-set-default): New utility.
20359
20360 * util/grub-mkconfig_lib.in (save_default_entry): New function.
20361 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
20362 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
20363 move it to `saved_entry' for the next boot. Load environment on
20364 initialisation.
20365 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
20366 * util/grub.d/10_hurd.in: Likewise.
20367 * util/grub.d/10_linux.in (linux_entry): Likewise.
20368 * util/grub.d/10_windows.in: Likewise.
20369 * util/grub.d/30_os-prober.in: Likewise.
20370
20371 * util/grub-install.in: Create environment block.
20372 * util/i386/efi/grub-install.in: Likewise.
20373 * util/ieee1275/grub-install.in: Likewise.
20374 * util/sparc64/ieee1275/grub-install.in: Likewise.
20375
20376 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
20377
20378 Unit testing framework for GRUB.
20379
20380 * Makefile.in: Test framework build rules for 'make check'.
20381 * conf/tests.rmk: Build rules for individual tests and framework.
20382
20383 * include/grub/test.h: Header file for whitebox tests.
20384 * tests/lib/functional_test.c: Framework support for whitebox
20385 functional tests.
20386 * tests/lib/test.c: Common whitebox testing code for unit and
20387 functional tests.
20388 * tests/lib/unit_test.c: Framework support for whitebox unit
20389 tests.
20390
20391 * tests/util/grub-shell-tester.in: Support utility for grub-script
20392 tests.
20393 * tests/util/grub-shell.in: Utility to execute grub-script
20394 commands in a Qemu instance.
20395
20396 * tests/example_functional_test.c: Example whitebox functional
20397 test.
20398 * tests/example_grub_script_test.in: Example grub-script test.
20399 * tests/example_scripted_test.in: Example scripted test.
20400 * tests/example_unit_test.c: Example whitebox unit test.
20401
20402 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20403
20404 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
20405 Add loader/i386/multiboot_mbi.c.
20406 (multiboot2_mod_SOURCES): Likewise.
20407 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
20408 (multiboot2_mod_SOURCES): Likewise.
20409 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
20410 (grub_multiboot_make_mbi): Likewise.
20411 (grub_multiboot_free_mbi): Likewise.
20412 (grub_multiboot_init_mbi): Likewise.
20413 (grub_multiboot_add_module): Likewise.
20414 (grub_multiboot_set_bootdev): Likewise.
20415 * loader/i386/multiboot.c (mbi): Removed.
20416 (mbi_dest): Likewise.
20417 (alloc_mbi): New variable.
20418 (grub_multiboot_payload_size): Removed. All users updated.
20419 (grub_multiboot_pure_size): New variable.
20420 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
20421 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
20422 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
20423 (grub_fill_multiboot_mmap): Likewise.
20424 (grub_multiboot_get_bootdev): Likewise.
20425 (grub_multiboot): Use multiboot_mbi functions.
20426 * loader/i386/multiboot_mbi.c: New file.
20427
20428 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20429
20430 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
20431 it would result in module crash.
20432
20433 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20434
20435 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
20436 (grub_ofconsole_getwh): Split to ...
20437 (grub_ofconsole_getwh): ... this.
20438 (grub_ofconsole_dimensions): ...and this.
20439 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
20440
20441 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
20442
20443 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
20444
20445 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20446
20447 * loader/i386/pc/multiboot2.c: Removed stalled file.
20448
20449 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20450
20451 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
20452 Reported by: Grégoire Sutre
20453
20454 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
20455
20456 * util/misc.c (canonicalize_file_name): New function.
20457 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
20458 instead of realpath().
20459
20460 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
20461
20462 * util/grub-install.in (usage): Clarify meaning of --root-directory,
20463 and make it clearer that it's optional. Based on confusion
20464 witnessed on IRC.
20465
20466 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20467
20468 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
20469 in premature implicit newline.
20470
20471 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20472
20473 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
20474 which resulted in garbled command line at the end of screen.
20475
20476 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
20477
20478 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
20479 initialization with similar approach as with other Linux loaders.
20480
20481 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
20482
20483 Fix i386-ieee1275 build.
20484
20485 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
20486 and grub_term_height() for video_{width,height} initialization.
20487
20488 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
20489
20490 Fix grub-emu build.
20491
20492 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
20493
20494 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20495 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
20496
20497 Support for multiple terminals.
20498
20499 * Makefile.in (pkglib_DATA): terminal.lst.
20500 (terminal.lst): New target.
20501 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
20502 (GRUB_MOD_INIT(handler)): Likewise.
20503 (GRUB_MOD_FINI(handler)): Likewise.
20504 * commands/help.c (grub_cmd_help): Handle multiple terminals.
20505 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
20506 * commands/sleep.c (do_print): Use grub_term_restore_pos.
20507 (grub_cmd_sleep): Use grub_term_save_pos.
20508 * commands/terminal.c: New file.
20509 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
20510 commands/terminal.c and lib/charset.c.
20511 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
20512 (pkglib_MODULES): Add terminal.mod.
20513 (terminal_mod_SOURCES): New variable.
20514 (terminal_mod_CFLAGS): Likewise.
20515 (terminal_mod_LDFLAGS): Likewise.
20516 * genhandlerlist.sh: Don't handle terminals.
20517 * genmk.rb: Generate terminal-*.lst.
20518 * genterminallist.sh: New file.
20519 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
20520 (grub_is_valid_utf8): Likewise.
20521 (grub_utf8_to_ucs4_alloc): Likewise.
20522 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
20523 (grub_menu_register_viewer): Changed argument.
20524 (grub_menu_try_text): New proto.
20525 (grub_gfxmenu_try_hook): New declaration.
20526 * include/grub/normal.h (grub_normal_exit_level): New declaration.
20527 (grub_menu_init_page): Additional argument term.
20528 (grub_normal_init_page): Likewise.
20529 (grub_cmdline_get): Arguments simplified.
20530 (grub_utf8_to_ucs4_alloc): Removed.
20531 (grub_print_ucs4): Additional argument term.
20532 (grub_getstringwidth): Likewise.
20533 (grub_print_message_indented): Likewise.
20534 (grub_menu_text_register_instances): New proto.
20535 (grub_show_menu): Likewise.
20536 (read_terminal_list): Likewise.
20537 (grub_set_more): Likewise.
20538 * include/grub/parser.h: Include handler.h.
20539 * include/grub/reader.h: Rewritten.
20540 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
20541 (GRUB_TERM_WIDTH): Changed to function.
20542 (GRUB_TERM_HEIGHT): Likewise.
20543 (GRUB_TERM_BORDER_WIDTH): Likewise.
20544 (GRUB_TERM_BORDER_HEIGHT): Likewise.
20545 (GRUB_TERM_NUM_ENTRIES): Likewise.
20546 (GRUB_TERM_ENTRY_WIDTH): Likewise.
20547 (GRUB_TERM_CURSOR_X): Likewise.
20548 (grub_term_input_class): Likewise.
20549 (grub_term_output_class): Likewise.
20550 (grub_term_outputs_disabled): New declaration.
20551 (grub_term_inputs_disabled): Likewise.
20552 (grub_term_outputs): Likewise.
20553 (grub_term_inputs): Likewise.
20554 (grub_term_register_input): Rewritten.
20555 (grub_term_register_output): Likewise.
20556 (grub_term_unregister_input): Likewise.
20557 (grub_term_unregister_output): Likewise.
20558 (FOR_ACTIVE_TERM_INPUTS): New macro.
20559 (FOR_DISABLED_TERM_INPUTS): Likewise.
20560 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20561 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20562 * include/grub/terminfo.h: Add oterm argument to all protypes.
20563 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
20564 Use grub_rescue_run.
20565 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
20566 All users updated.
20567 * kern/reader.c: Removed. All users updated.
20568 * kern/rescue_reader.c (grub_rescue_init): Removed.
20569 (grub_rescue_reader): Likewise.
20570 (grub_register_rescue_reader): Likewise.
20571 (grub_rescue_run): New function based on kern/reader.c.
20572 * kern/term.c: Adapted for multiterm.
20573 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
20574 (grub_is_valid_utf8): Likewise.
20575 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
20576 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
20577 right terminal.
20578 * loader/i386/linux.c (grub_linux_boot): Likewise.
20579 * normal/auth.c (grub_username_get): New function.
20580 (grub_auth_check_authentication): Use grub_username_get.
20581 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
20582 * normal/color.c: Adapt for multiterm.
20583 * normal/main.c (read_config_file): Don't use grub_reader_loop.
20584 (grub_normal_init_page): Additional argument term.
20585 (read_lists): Call read_terminal_lists.
20586 (grub_enter_normal_mode): Call grub_cmdline_run.
20587 Handle grub_normal_exit_level.
20588 (grub_cmd_normal): Make reentrant.
20589 (grub_cmd_normal_exit): New function.
20590 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
20591 * normal/menu.c: Adapt for multiterm.
20592 * normal/menu_entry.c: Likewise.
20593 * normal/menu_text.c: Likewise.
20594 * normal/menu_viewer.c: Removed. All users updated.
20595 * normal/term.c: New file.
20596 * util/console.c: Change order of includes to workaround a bug in
20597 ncurses headers.
20598 * term/terminfo.c: New argument oterm on all exported functions.
20599 All users updated.
20600 * util/grub-editenv.c (grub_term_input_class): Removed.
20601 (grub_term_output_class): Likewise.
20602
20603 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
20604
20605 Make loader output a bit more user-friendly.
20606
20607 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
20608 is being loaded. Likewise for the Hurd.
20609
20610 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
20611 that kernel of FreeBSD ${version} is being loaded.
20612
20613 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
20614 grub_dprintf().
20615 (grub_cmd_initrd): Likewise.
20616 * util/grub.d/10_linux.in (linux_entry): Print message indicating
20617 that Linux ${version} is being loaded. Likewise for initrd.
20618
20619 2010-01-09 Carles Pina i Estany <carles@pina.cat>
20620
20621 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
20622
20623 2010-01-08 Carles Pina i Estany <carles@pina.cat>
20624
20625 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
20626 (GRUB_MOD_INIT): Gettextizze.
20627 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
20628 (GRUB_MOD_INIT): Gettextizze.
20629 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
20630 (grub_cmd_linux): Capitalise Linux.
20631 (GRUB_MOD_INIT): Gettextizze.
20632 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
20633 (grub_cmd_linux): Capitalise Linux.
20634 (GRUB_MOD_INIT): Gettextizze.
20635 * loader/i386/linux.c: Include `<grub/i18n.h>'.
20636 (grub_cmd_linux): Capitalise Linux.
20637 (GRUB_MOD_INIT): Gettextizze.
20638 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
20639 (GRUB_MOD_INIT): Gettextizze.
20640 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
20641 (grub_cmd_linux): Capitalise Linux.
20642 (GRUB_MOD_INIT): Gettextizze.
20643 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
20644 (grub_cpu_xnu_init): Gettextizze.
20645 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
20646 (GRUB_MOD_INIT): Gettextizze.
20647 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
20648 (GRUB_MOD_INIT): Gettextizze.
20649 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
20650 (grub_linux_load64): Capitalise Linux.
20651 (GRUB_MOD_INIT): Gettextizze.
20652 * loader/xnu.c: Include `<grub/i18n.h>'.
20653 (GRUB_MOD_INIT): Gettextizze.
20654 * po/POTFILES: Add `loader/efi/appleloader.c',
20655 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
20656 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
20657 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
20658 `loader/i386/xnu.c', `loader/multiboot_loader.c',
20659 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
20660 and `loader/xnu.c'.
20661
20662 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
20663
20664 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
20665
20666 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
20667
20668 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
20669 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
20670 * util/mkisofs/mkisofs.c (main): Readjust --version output.
20671
20672 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
20673
20674 Reset Multiboot 2 support. New loader implements the draft in
20675 /branches/multiboot2 and shares as much code as possible with the
20676 production Multiboot 1 implementation.
20677
20678 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
20679 * loader/multiboot2.c: Likewise.
20680 * loader/i386/multiboot_helper.S: Likewise.
20681 * include/multiboot2.h: Replace with latest version from the draft
20682 in /branches/multiboot2.
20683
20684 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
20685 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
20686 and `loader/multiboot2.c'.
20687 (pkglib_MODULES): Add `multiboot2.mod'.
20688 (multiboot2_mod_SOURCES): New variable.
20689 (multiboot2_mod_LDFLAGS): Likewise.
20690 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
20691
20692 * conf/i386-pc.rmk: Likewise.
20693
20694 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
20695 (multiboot_mod_SOURCES): Remove variable.
20696 (multiboot_mod_LDFLAGS): Likewise.
20697 (multiboot_mod_CFLAGS): Likewise.
20698
20699 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
20700 `<multiboot2.h>' instead of `<multiboot.h>'.
20701 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
20702 (MULTIBOOT_HEADER_MAGIC): New macros.
20703
20704 * loader/multiboot_loader.c (module_version_status): Remove variable.
20705 (find_multi_boot2_header): Remove function.
20706 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
20707 logic. Always check for the Multiboot version we're compiling for.
20708 (grub_cmd_module_loader): Likewise.
20709 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
20710 command instead of `multiboot'.
20711
20712 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
20713
20714 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
20715 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
20716 all users.
20717
20718 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
20719 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20720
20721 Fix breakage introduced with previous commit.
20722
20723 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
20724 commands.
20725 * normal/handler.c (read_handler_list): Revert part of previous commit
20726 affecting this file.
20727 * normal/main.c (read_lists): Move read_handler_list() call back to ...
20728 (grub_normal_execute): ... here.
20729
20730 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
20731
20732 Merge prefix-redefinition-fix branch.
20733
20734 * normal/autofs.c (read_fs_list): Make function capable of being
20735 run multiple times, gracefuly replacing the previous data
20736 structures.
20737 * normal/dyncmd.c (read_command_list): Likewise.
20738 * normal/handler.c (read_handler_list): Likewise.
20739 * normal/main.c (read_lists): New function. Calls all the
20740 list reading functions.
20741 (grub_normal_execute): Use read_lists() instead of calling all
20742 list reading functions explicitly. Register read_lists() as a
20743 variable hook attached to ${prefix}.
20744
20745 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20746
20747 Merge crypto branch.
20748
20749 * Makefile.in (pkglib_DATA): Add crypto.lst.
20750 (crypto.lst): New target.
20751 * commands/hashsum.c: New file.
20752 * commands/password.c (check_password): Use grub_crypto_memcmp.
20753 * commands/password_pbkdf2.c: New file.
20754 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
20755 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
20756 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
20757 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
20758 -I$(srcdir)/lib/libgcrypt_wrap.
20759 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
20760 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
20761 password_pbkdf2.mod.
20762 (crypto_mod_SOURCES): New variable.
20763 (crypto_mod_CFLAGS): Likewise.
20764 (crypto_mod_LDFLAGS): Likewise.
20765 (hashsum_mod_SOURCES): New variable.
20766 (hashsum_mod_CFLAGS): Likewise.
20767 (hashsum_mod_LDFLAGS): Likewise.
20768 (pbkdf2_mod_SOURCES): New variable.
20769 (pbkdf2_mod_CFLAGS): Likewise.
20770 (pbkdf2_mod_LDFLAGS): Likewise.
20771 (password_pbkdf2_mod_SOURCES): New variable.
20772 (password_pbkdf2_mod_CFLAGS): Likewise.
20773 (password_pbkdf2_mod_LDFLAGS): Likewise.
20774 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
20775 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
20776 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
20777 Include conf/gcry.rmk.
20778 * include/grub/auth.h: Rewritten.
20779 * include/grub/crypto.h: New file.
20780 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
20781 * include/grub/normal.h (read_crypto_list): New prototype.
20782 * lib/crypto.c: New file.
20783 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
20784 * lib/pbkdf2.c: Likewise.
20785 * normal/auth.c (grub_auth_strcmp): Removed.
20786 (grub_iswordseparator): Likewise.
20787 (grub_auth_strword): Likewise.
20788 (is_authenticated): Use grub_strword.
20789 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
20790 and grub_strword. Pass entered password to authentication callback.
20791 * normal/crypto.c: New file.
20792 * normal/main.c: Call read_crypto_list.
20793 * util/grub-mkpasswd-pbkdf2.c: New file.
20794 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
20795
20796 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
20797
20798 Fix descent and ascent calculation.
20799
20800 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
20801 (options): New option "asce".
20802 (usage): Likewise.
20803 (add_char): Ignore invalid glyphs for descent calculation.
20804 Calculate ascent from actual content.
20805 (print_glyphs): Use 'asce'.
20806 (write_font): Likewise. Allow ascent override.
20807 (main): Handle "asce" option.
20808
20809 2010-01-06 Carles Pina i Estany <carles@pina.cat>
20810
20811 * kern/err.c: Include `<grub/i18n.h>'.
20812 (grub_print_error): Add full stop. Gettextizze.
20813 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
20814 (grub_bsd_load_elf): Capitalise ELF.
20815 (grub_cmd_freebsd_loadenv): Add `s' in error string.
20816 (grub_cmd_freebsd_module): Likewise.
20817 (grub_cmd_freebsd_module_elf): Likewise.
20818 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
20819
20820 2010-01-06 Carles Pina i Estany <carles@pina.cat>
20821
20822 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
20823 * commands/search_file.c (HELP_MESSAGE): New macro.
20824 * commands/search_label.c (HELP_MESSAGE): Likewise.
20825 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
20826 * po/POTFILES: Add `commands/search_file.c',
20827 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
20828 `commands/search.c'.
20829
20830 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
20831
20832 * config.rpath: Update from Gnulib.
20833
20834 2010-01-05 Yves Blusseau <blusseau@zetam.org>
20835
20836 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
20837
20838 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
20839
20840 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
20841
20842 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
20843
20844 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
20845 arguments to fread so that we get a return value in bytes, rather
20846 than something that will normally be rounded down to 0.
20847 Adjust error handling to avoid producing garbage when size_t is not
20848 the same size as long long.
20849
20850 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
20851
20852 * util/mkisofs/write.c (padblock_write): Check return value of
20853 fread.
20854
20855 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
20856
20857 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
20858 floppy images now.
20859
20860 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
20861
20862 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
20863
20864 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
20865 instead of manual alignment.
20866 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
20867 verbose). Avoid attempts to read past end of the device
20868 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
20869 but GRUB_DISK_CACHE_SIZE may exceed that).
20870
20871 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
20872
20873 * commands/crc.c (grub_cmd_crc): Abort on read errors.
20874 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
20875 it to upper layer.
20876
20877 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20878
20879 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
20880 New constant.
20881 (grub_efi_piwg_device_path): New structure
20882 (grub_efi_piwg_device_path_t): New type.
20883 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
20884 (devpath_1): Transform to a structure. All users updated.
20885 (devpath_2): Likewise.
20886 (devpath_3): Likewise.
20887 (devpath_4): Likewise.
20888 (devpath_5): Likewise.
20889
20890 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20891
20892 * loader/efi/appleloader.c: Restored. Update all users.
20893
20894 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20895
20896 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
20897
20898 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
20899 (struct boot_blocklist): Move from here ...
20900 * include/grub/i386/pc/boot.h [ASM_FILE]
20901 (struct grub_boot_blocklist): ... to here. Update all users.
20902 (setup): Only initialize `start' member of `first_block'
20903 structure. Add assert() calls to verify the other members.
20904
20905 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
20906 (generate_image): Fix broken blocklist length initialization.
20907 Add assert() call to verify blocklist `segment' field.
20908
20909 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20910
20911 * loader/efi/appleloader.c: Remove. Update all users.
20912
20913 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20914
20915 * boot/i386/pc/boot.S: Update copyright year.
20916 * boot/i386/pc/cdboot.S: Likewise.
20917 * boot/i386/pc/diskboot.S: Likewise.
20918 * boot/i386/pc/lnxboot.S: Likewise.
20919 * boot/i386/pc/pxeboot.S: Likewise.
20920 * bus/pci.c: Likewise.
20921 * commands/cmp.c: Likewise.
20922 * commands/help.c: Likewise.
20923 * commands/hexdump.c: Likewise.
20924 * commands/i386/pc/halt.c: Likewise.
20925 * commands/i386/pc/play.c: Likewise.
20926 * commands/i386/pc/vbeinfo.c: Likewise.
20927 * commands/ls.c: Likewise.
20928 * commands/test.c: Likewise.
20929 * disk/dmraid_nvidia.c: Likewise.
20930 * disk/i386/pc/biosdisk.c: Likewise.
20931 * disk/ieee1275/nand.c: Likewise.
20932 * disk/ieee1275/ofdisk.c: Likewise.
20933 * disk/lvm.c: Likewise.
20934 * disk/raid.c: Likewise.
20935 * disk/raid6_recover.c: Likewise.
20936 * disk/scsi.c: Likewise.
20937 * fs/affs.c: Likewise.
20938 * fs/cpio.c: Likewise.
20939 * fs/ext2.c: Likewise.
20940 * fs/hfs.c: Likewise.
20941 * fs/iso9660.c: Likewise.
20942 * fs/ntfs.c: Likewise.
20943 * fs/sfs.c: Likewise.
20944 * fs/udf.c: Likewise.
20945 * fs/ufs.c: Likewise.
20946 * fs/xfs.c: Likewise.
20947 * gencmdlist.sh: Likewise.
20948 * genmk.rb: Likewise.
20949 * include/grub/disk.h: Likewise.
20950 * include/grub/efi/api.h: Likewise.
20951 * include/grub/efi/efi.h: Likewise.
20952 * include/grub/efi/pe32.h: Likewise.
20953 * include/grub/elf.h: Likewise.
20954 * include/grub/fs.h: Likewise.
20955 * include/grub/i386/at_keyboard.h: Likewise.
20956 * include/grub/i386/pc/memory.h: Likewise.
20957 * include/grub/i386/pc/vbe.h: Likewise.
20958 * include/grub/i386/pci.h: Likewise.
20959 * include/grub/i386/tsc.h: Likewise.
20960 * include/grub/ieee1275/ieee1275.h: Likewise.
20961 * include/grub/ntfs.h: Likewise.
20962 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20963 * include/grub/sparc64/libgcc.h: Likewise.
20964 * include/grub/symbol.h: Likewise.
20965 * include/grub/types.h: Likewise.
20966 * include/multiboot2.h: Likewise.
20967 * io/gzio.c: Likewise.
20968 * kern/device.c: Likewise.
20969 * kern/disk.c: Likewise.
20970 * kern/efi/efi.c: Likewise.
20971 * kern/efi/mm.c: Likewise.
20972 * kern/elf.c: Likewise.
20973 * kern/file.c: Likewise.
20974 * kern/i386/dl.c: Likewise.
20975 * kern/i386/pc/init.c: Likewise.
20976 * kern/i386/pc/startup.S: Likewise.
20977 * kern/ieee1275/ieee1275.c: Likewise.
20978 * kern/ieee1275/init.c: Likewise.
20979 * kern/main.c: Likewise.
20980 * kern/mm.c: Likewise.
20981 * kern/powerpc/dl.c: Likewise.
20982 * kern/sparc64/dl.c: Likewise.
20983 * kern/x86_64/dl.c: Likewise.
20984 * lib/hexdump.c: Likewise.
20985 * loader/efi/appleloader.c: Likewise.
20986 * loader/i386/ieee1275/linux.c: Likewise.
20987 * loader/i386/pc/chainloader.c: Likewise.
20988 * loader/i386/pc/linux.c: Likewise.
20989 * loader/i386/pc/multiboot2.c: Likewise.
20990 * loader/ieee1275/multiboot2.c: Likewise.
20991 * loader/multiboot2.c: Likewise.
20992 * loader/multiboot_loader.c: Likewise.
20993 * loader/powerpc/ieee1275/linux.c: Likewise.
20994 * normal/completion.c: Likewise.
20995 * normal/menu_entry.c: Likewise.
20996 * partmap/apple.c: Likewise.
20997 * util/grub.d/10_hurd.in: Likewise.
20998 * util/hostfs.c: Likewise.
20999 * video/readers/png.c: Likewise.
21000
21001 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
21002
21003 * include/grub/misc.h (GNUC_PREREQ): New macro.
21004 (ATTRIBUTE_ERROR): New macro.
21005 * include/grub/list.h (grub_bad_type_cast_real): Use
21006 ATTRIBUTE_ERROR.
21007
21008 2010-01-03 Carles Pina i Estany <carles@pina.cat>
21009
21010 * normal/menu_text.c (print_message): Change messages.
21011
21012 2010-01-03 Carles Pina i Estany <carles@pina.cat>
21013
21014 * normal/menu_entry.c (store_completion): Gettextizze.
21015
21016 2010-01-03 Carles Pina i Estany <carles@pina.cat>
21017
21018 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
21019
21020 2010-01-03 Carles Pina i Estany <carles@pina.cat>
21021
21022 * po/POTFILES: Sort correctly.
21023
21024 2010-01-03 Carles Pina i Estany <carles@pina.cat>
21025
21026 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
21027 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
21028 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
21029 full stop.
21030 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
21031 summary. Gettextizze the strings.
21032 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
21033 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
21034 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
21035 full stop.
21036 (GRUB_MOD_INIT): Remove command name from summary.
21037 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
21038 summary.
21039 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
21040 * term/i386/pc/serial.c (options): Add full stops.
21041 (GRUB_MOD_INIT): Remove command name from the summary.
21042
21043 2010-01-03 Carles Pina i Estany <carles@pina.cat>
21044
21045 * commands/acpi.c: Gettextizze help strings and/or options. Include
21046 `grub/i18n.h' if needed.
21047 * commands/blocklist.c: Likewise.
21048 * commands/boot.c: Likewise.
21049 * commands/cat.c: Likewise.
21050 * commands/cmp.c: Likewise.
21051 * commands/configfile.c: Likewise.
21052 * commands/crc.c: Likewise.
21053 * commands/date.c: Likewise.
21054 * commands/echo.c: Likewise.
21055 * commands/efi/fixvideo.c: Likewise.
21056 * commands/efi/loadbios.c: Likewise.
21057 * commands/gptsync.c: Likewise.
21058 * commands/halt.c: Likewise.
21059 * commands/handler.c: Likewise.
21060 * commands/hdparm.c: Likewise.
21061 * commands/hexdump.c: Likewise.
21062 * commands/i386/cpuid.c: Likewise.
21063 * commands/i386/pc/drivemap.c: Likewise.
21064 * commands/i386/pc/halt.c: Likewise.
21065 * commands/i386/pc/pxecmd.c: Likewise.
21066 * commands/i386/pc/vbeinfo.c: Likewise.
21067 * commands/i386/pc/vbetest.c: Likewise.
21068 * commands/ieee1275/suspend.c: Likewise.
21069 * commands/keystatus.c: Likewise.
21070 * commands/loadenv.c: Likewise.
21071 * commands/ls.c: Likewise.
21072 * commands/lsmmap.c: Likewise.
21073 * commands/lspci.c: Likewise.
21074 * commands/memrw.c: Likewise.
21075 * commands/minicmd.c: Likewise.
21076 * commands/parttool.c: Likewise.
21077 * commands/password.c: Likewise.
21078 * commands/probe.c: Likewise.
21079 * commands/read.c: Likewise.
21080 * commands/reboot.c: Likewise.
21081 * commands/search.c: Likewise.
21082 * commands/sleep.c: Likewise.
21083 * commands/test.c: Likewise.
21084 * commands/true.c: Likewise.
21085 * commands/usbtest.c: Likewise.
21086 * commands/videotest.c: Likewise.
21087 * commands/xnu_uuid.c: Likewise.
21088 * disk/loopback.c: Likewise.
21089 * hello/hello.c: Likewise.
21090 * loader/i386/bsd.c: Likewise.
21091 * term/i386/pc/serial.c: Likewise.
21092 * po/POTFILES: Add new files.
21093
21094 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
21095
21096 * term/i386/pc/at_keyboard.c
21097 (keyboard_controller_wait_untill_ready): Rename to ...
21098 (keyboard_controller_wait_until_ready): ... this. Update all users.
21099
21100 2010-01-01 Carles Pina i Estany <carles@pina.cat>
21101
21102 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
21103 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
21104 string using string width.
21105 * normal/menu_text.c (grub_print_message_indented): Use
21106 grub_print_spaces and not print_spaces.
21107 (print_timeout): Likewise.
21108 (print_spaces): Move to...
21109 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
21110
21111 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
21112
21113 Import from Gnulib.
21114
21115 * gnulib/getdelim.c: New file.
21116 * gnulib/getline.c: Likewise.
21117
21118 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
21119
21120 * include/grub/list.h (grub_assert_fail): Removed.
21121 (grub_bad_type_cast_real): New function.
21122 (grub_bad_type_cast): New macro.
21123 (GRUB_AS_LIST): Use grub_bad_type_cast.
21124 (GRUB_AS_LIST_P): Likewise.
21125 (GRUB_AS_NAMED_LIST): Likewise.
21126 (GRUB_AS_NAMED_LIST_P): Likewise.
21127 (GRUB_AS_PRIO_LIST): Likewise.
21128 (GRUB_AS_PRIO_LIST_P): Likewise.
21129 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
21130
21131 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
21132
21133 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
21134 Fix syntax error.
21135
21136 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
21137
21138 * configure.ac: Check for TARGET_CFLAGS initialization before we
21139 initialize it ourselves (sigh).
21140 Move a few modifications to TARGET_CFLAGS to be unconditional
21141 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
21142 eh_frame)
21143
21144 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
21145 * term/i386/pc/at_keyboard.c
21146 (keyboard_controller_wait_untill_ready): Likewise.
21147 (keyboard_controller_led): Rename `led_status' paramter to avoid
21148 name conflict.
21149
21150 2009-12-28 Carles Pina i Estany <carles@pina.cat>
21151
21152 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
21153 quotes.
21154
21155 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21156
21157 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
21158
21159 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21160
21161 * normal/menu_text.c (grub_print_message_indented): Prevent
21162 past-the-end-of-array dereference.
21163
21164 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21165
21166 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
21167 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
21168
21169 2009-12-27 Carles Pina i Estany <carles@pina.cat>
21170
21171 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
21172 * normal/main.c (grub_normal_read_line): Remove a space from the
21173 default prompt.
21174
21175 2009-12-27 Carles Pina i Estany <carles@pina.cat>
21176
21177 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
21178 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21179 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
21180 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
21181 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21182 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21183 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
21184
21185 2009-12-26 Carles Pina i Estany <carles@pina.cat>
21186
21187 * video/readers/jpeg.c (cmd): Declare.
21188 (grub_cmd_jpegtest): Use `grub_command_t' type.
21189 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
21190 Assign to `cmd'.
21191 (GRUB_MOD_FINI): Use `cmd' to unregister.
21192 * video/readers/png.c (cmd): Declare.
21193 (grub_cmd_pngtest): Use `grub_command_t' type.
21194 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
21195 Assign to `cmd'.
21196 (GRUB_MOD_FINI): Use `cmd' to unregister.
21197 * video/readers/tga.c (cmd): Declare.
21198 (grub_cmd_tgatest): Use `grub_command_t' type.
21199 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
21200 Assign to `cmd'.
21201 (GRUB_MOD_FINI): Use `cmd' to unregister.
21202
21203 2009-12-26 Carles Pina i Estany <carles@pina.cat>
21204
21205 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
21206 stops.
21207 * kern/corecmd.c (grub_register_core_commands): Likewise.
21208 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
21209 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
21210 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
21211 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21212 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
21213 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
21214 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
21215 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
21216 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21217 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21218 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
21219 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21220 * normal/handler.c (insert_handler): Likewise.
21221 * normal/main.c (GRUB_MOD_INIT): Likewise.
21222 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21223
21224 2009-12-26 Carles Pina i Estany <carles@pina.cat>
21225
21226 * commands/help.c (grub_cmd_help): Print the command name before the
21227 summary.
21228 (GRUB_MOD_INIT): Remove command name from the summary.
21229 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
21230 string as summary.
21231 * lib/arg.c (find_long): Print the command name before the summary.
21232 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
21233 summary.
21234 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
21235 * commands/cat.c (GRUB_MOD_INIT): Likewise.
21236 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
21237 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
21238 * commands/crc.c (GRUB_MOD_INIT): Likewise.
21239 * commands/date.c (GRUB_MOD_INIT): Likewise.
21240 * commands/echo.c (GRUB_MOD_INIT): Likewise.
21241 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
21242 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
21243 * commands/handler.c (GRUB_MOD_INIT): Likewise.
21244 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
21245 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
21246 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
21247 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
21248 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
21249 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
21250 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
21251 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
21252 * commands/ls.c (GRUB_MOD_INIT): Likewise.
21253 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
21254 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
21255 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
21256 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
21257 * commands/password.c (GRUB_MOD_INIT): Likewise.
21258 * commands/probe.c (GRUB_MOD_INIT): Likewise.
21259 * commands/read.c (GRUB_MOD_INIT): Likewise.
21260 * commands/search.c (GRUB_MOD_INIT): Likewise.
21261 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
21262 * commands/test.c (GRUB_MOD_INIT): Likewise.
21263 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
21264 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21265 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21266 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
21267 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21268 * lib/arg.c (GRUB_MOD_INIT): Likewise.
21269 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
21270 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
21271 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
21272 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21273 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21274 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
21275 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
21276 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
21277
21278 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21279
21280 Use search command for preliminar UUID search.
21281
21282 * commands/search.c: Split into ...
21283 * commands/search_wrap.c: ...this
21284 * commands/search.c: ...and this.
21285 * commands/search_file.c: New file.
21286 * commands/search_label.c: New file.
21287 * commands/search_uuid.c: New file.
21288 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
21289 Add commands/search_wrap.c, commands/search_file.c,
21290 commands/search_label.c and commands/search_uuid.c.
21291 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
21292 (search_mod_SOURCES): Set to commands/search_wrap.c.
21293 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
21294 search_label.mod.
21295 (search_fs_file_mod_SOURCES): New variable.
21296 (search_fs_file_mod_CFLAGS): Likewise.
21297 (search_fs_file_mod_LDFLAGS): Likewise.
21298 (search_label_mod_SOURCES): Likewise.
21299 (search_label_mod_CFLAGS): Likewise.
21300 (search_label_mod_LDFLAGS): Likewise.
21301 (search_fs_uuid_mod_SOURCES): New variable.
21302 (search_fs_uuid_mod_CFLAGS): Likewise.
21303 (search_fs_uuid_mod_LDFLAGS): Likewise.
21304 (fs_file_mod_SOURCES): Removed.
21305 (fs_file_mod_CFLAGS): Likewise.
21306 (fs_file_mod_LDFLAGS): Likewise.
21307 (fs_uuid_mod_SOURCES): Removed.
21308 (fs_uuid_mod_CFLAGS): Likewise.
21309 (fs_uuid_mod_LDFLAGS): Likewise.
21310 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
21311 Set to util/grub-install.in.
21312 * disk/fs_file.c: Removed.
21313 * disk/fs_uuid.c: Likewise.
21314 * include/grub/search.h: New file.
21315 * util/grub-install.in: Handle sparc64.
21316 Create and use load.cfg.
21317 * util/sparc64/ieee1275/grub-install.in: Removed.
21318
21319 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21320
21321 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
21322 Ignore return status if CF is cleared.
21323 (grub_biosdisk_get_diskinfo_standard): Likewise.
21324
21325 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
21326
21327 * term/i386/pc/at_keyboard.c
21328 (keyboard_controller_wait_untill_ready): New function.
21329 (grub_keyboard_controller_write, grub_keyboard_controller_read)
21330 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
21331 for keyboard polling, rather than duplicate the same loop. This
21332 saves a few bytes in code size.
21333
21334 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21335
21336 Support for (pxe[:server[:gateway]]) syntax and
21337 use environment variable for PXE.
21338
21339 * commands/i386/pc/pxecmd.c (options): Removed.
21340 (print_ip): Removed.
21341 (grub_cmd_pxe): Removed
21342 (grub_cmd_pxe_unload): New function.
21343 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
21344 (grub_pxe_your_ip): Made static.
21345 (grub_pxe_default_server_ip): Likewise.
21346 (grub_pxe_default_gateway_ip): Likewise.
21347 (grub_pxe_blksize): Likewise.
21348 (parse_ip): New function.
21349 (grub_pxe_open): Support server and gateway specification.
21350 (grub_pxe_close): Free disk->data.
21351 (grub_pxefs_open): Use disk->data.
21352 (grub_pxefs_read): Likewise.
21353 (grub_env_write_readonly): New function.
21354 (set_mac_env): Likewise.
21355 (set_env_limn_ro): Likewise.
21356 (parse_dhcp_vendor): Likewise.
21357 (grub_pxe_detect): Set the environment variables.
21358 (set_ip_env): New function.
21359 (write_ip_env): Likewise.
21360 (grub_env_write_pxe_default_server): Likewise.
21361 (grub_env_write_pxe_default_gateway): Likewise.
21362 (grub_env_write_pxe_blocksize): Likewise.
21363 (GRUB_MOD_INIT(pxe)): Set environment variables.
21364 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
21365 (grub_pxe_mac_addr_t): ... this. All users updated.
21366 (grub_pxe_your_ip): Removed.
21367 (grub_pxe_server_ip): Likewise.
21368 (grub_pxe_gateway_ip): Likewise.
21369 (grub_pxe_blksize): Likewise.
21370
21371 2009-12-25 Carles Pina i Estany <carles@pina.cat>
21372
21373 * commands/help.c: Include `<grub/i18n.h>'.
21374 (grub_cmd_help): Gettextizze.
21375 (GRUB_MOD_INIT): Likewise.
21376 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
21377 (GRUB_MOD_INIT): Gettextizze.
21378 * commands/search.c: Include `<grub/i18n.h>'.
21379 (options): Gettextizze.
21380 (GRUB_MOD_INIT): Gettextizze.
21381 * lib/arg.c: Include `<grub/i18n.h>'.
21382 (help_options): Gettextizze.
21383 (find_long): Likewise.
21384 (grub_arg_show_help): Likewise.
21385 * normal/dyncmd.c: Include `<grub/i18n.h>'.
21386 (read_command_list): Gettextizze.
21387 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
21388 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
21389
21390 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
21391
21392 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
21393 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
21394 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
21395 (led_status): New variable.
21396 (keyboard_controller_led): New function.
21397 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
21398 update led status for caps lock, num lock and scroll lock.
21399
21400 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
21401
21402 * util/hostdisk.c (open_device): Fix a comment.
21403
21404 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21405
21406 * util/grub-install.in (host_os): New variable.
21407 * util/i386/efi/grub-install.in (host_os): Likewise.
21408
21409 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21410
21411 * util/mkisofs/write.c (padblock_write): Abort when given an
21412 excedingly large embed image, instead of silently truncating it.
21413
21414 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21415
21416 * include/multiboot.h: Indentation fixes.
21417
21418 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21419
21420 * include/multiboot.h (struct multiboot_aout_symbol_table)
21421 (struct multiboot_elf_section_header_table): New structure
21422 declarations (stolen from GRUB Legacy).
21423 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
21424 table information.
21425
21426 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
21427 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
21428 type aliases.
21429
21430 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21431
21432 * include/multiboot.h: Make comments src2texi-friendly.
21433
21434 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21435
21436 For consistency with [multiboot]/docs/boot.S.
21437
21438 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
21439 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
21440 (MULTIBOOT_MAGIC2): Rename from this ...
21441 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
21442
21443 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21444
21445 * include/multiboot.h: Remove `<grub/types.h>'.
21446 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
21447 types. Update all users.
21448
21449 2009-12-25 Carles Pina i Estany <carles@pina.cat>
21450
21451 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
21452 `couldn't' and `can not' by `cannot'.
21453 * commands/i386/pc/drivemap.c: Likewise.
21454 * disk/ata.c: Likewise.
21455 * disk/ieee1275/nand.c: Likewise.
21456 * fs/affs.c: Likewise.
21457 * fs/fat.c: Likewise.
21458 * fs/hfs.c: Likewise.
21459 * fs/hfsplus.c: Likewise.
21460 * fs/iso9660.c: Likewise.
21461 * fs/jfs.c: Likewise.
21462 * fs/minix.c: Likewise.
21463 * fs/reiserfs.c: Likewise.
21464 * fs/sfs.c: Likewise.
21465 * fs/udf.c: Likewise.
21466 * fs/ufs.c: Likewise.
21467 * fs/xfs.c: Likewise.
21468 * loader/powerpc/ieee1275/linux.c: Likewise.
21469 * loader/sparc64/ieee1275/linux.c: Likewise.
21470 * util/grub-probe.c: Likewise.
21471 * util/misc.c: Likewise.
21472
21473 2009-12-24 Carles Pina i Estany <carles@pina.cat>
21474
21475 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
21476 grub_errno calls.
21477 * commands/acpi.c: Likewise.
21478 * commands/blocklist.c: Likewise.
21479 * commands/efi/loadbios.c: Likewise.
21480 * commands/i386/pc/drivemap.c: Likewise.
21481 * commands/loadenv.c: Likewise.
21482 * commands/memrw.c: Likewise.
21483 * commands/password.c: Likewise.
21484 * commands/videotest.c: Likewise.
21485 * disk/ata.c: Likewise.
21486 * disk/ata_pthru.c: Likewise.
21487 * disk/dmraid_nvidia.c: Likewise.
21488 * disk/ieee1275/nand.c: Likewise.
21489 * disk/ieee1275/ofdisk.c: Likewise.
21490 * disk/loopback.c: Likewise.
21491 * disk/lvm.c: Likewise.
21492 * disk/mdraid_linux.c: Likewise.
21493 * disk/raid.c: Likewise.
21494 * disk/raid6_recover.c: Likewise.
21495 * disk/scsi.c: Likewise.
21496 * efiemu/main.c: Likewise.
21497 * efiemu/mm.c: Likewise.
21498 * efiemu/pnvram.c: Likewise.
21499 * efiemu/symbols.c: Likewise.
21500 * font/font.c: Likewise.
21501 * fs/cpio.c: Likewise.
21502 * fs/hfsplus.c: Likewise.
21503 * fs/iso9660.c: Likewise.
21504 * fs/jfs.c: Likewise.
21505 * fs/minix.c: Likewise.
21506 * fs/ntfs.c: Likewise.
21507 * fs/ntfscomp.c: Likewise.
21508 * fs/reiserfs.c: Likewise.
21509 * fs/ufs.c: Likewise.
21510 * fs/xfs.c: Likewise.
21511 * gettext/gettext.c: Likewise.
21512 * include/grub/auth.h: Likewise.
21513 * kern/elf.c: Likewise.
21514 * kern/file.c: Likewise.
21515 * kern/ieee1275/init.c: Likewise.
21516 * kern/ieee1275/mmap.c: Likewise.
21517 * kern/ieee1275/openfw.c: Likewise.
21518 * kern/powerpc/dl.c: Likewise.
21519 * kern/sparc64/dl.c: Likewise.
21520 * lib/arg.c: Likewise.
21521 * loader/i386/bsd.c: Likewise.
21522 * loader/i386/bsdXX.c: Likewise.
21523 * loader/i386/efi/linux.c: Likewise.
21524 * loader/i386/efi/xnu.c: Likewise.
21525 * loader/i386/ieee1275/linux.c: Likewise.
21526 * loader/i386/linux.c: Likewise.
21527 * loader/i386/multiboot.c: Likewise.
21528 * loader/i386/pc/linux.c: Likewise.
21529 * loader/i386/pc/multiboot2.c: Likewise.
21530 * loader/i386/xnu.c: Likewise.
21531 * loader/ieee1275/multiboot2.c: Likewise.
21532 * loader/macho.c: Likewise.
21533 * loader/machoXX.c: Likewise.
21534 * loader/multiboot2.c: Likewise.
21535 * loader/multiboot_loader.c: Likewise.
21536 * loader/powerpc/ieee1275/linux.c: Likewise.
21537 * loader/sparc64/ieee1275/linux.c: Likewise.
21538 * loader/xnu.c: Likewise.
21539 * loader/xnu_resume.c: Likewise.
21540 * mmap/i386/pc/mmap.c: Likewise.
21541 * normal/menu_viewer.c: Likewise.
21542 * partmap/acorn.c: Likewise.
21543 * partmap/amiga.c: Likewise.
21544 * partmap/apple.c: Likewise.
21545 * script/lexer.c: Likewise.
21546 * term/gfxterm.c: Likewise.
21547 * term/i386/pc/serial.c: Likewise.
21548 * term/i386/pc/vga.c: Likewise.
21549 * term/ieee1275/ofconsole.c: Likewise.
21550 * term/terminfo.c: Likewise.
21551 * video/bitmap.c: Likewise.
21552 * video/efi_gop.c: Likewise.
21553 * video/efi_uga.c: Likewise.
21554 * video/fb/video_fb.c: Likewise.
21555 * video/i386/pc/vbe.c: Likewise.
21556 * video/readers/tga.c: Likewise.
21557 * video/video.c: Likewise.
21558
21559 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
21560
21561 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
21562 * commands/lspci.c: Likewise.
21563 * commands/probe.c: Likewise.
21564 * commands/xnu_uuid.c: Likewise.
21565 * conf/i386-coreboot.rmk: Likewise.
21566 * conf/i386-efi.rmk: Likewise.
21567 * conf/i386-ieee1275.rmk: Likewise.
21568 * conf/i386-pc.rmk: Likewise.
21569 * conf/powerpc-ieee1275.rmk: Likewise.
21570 * conf/sparc64-ieee1275.rmk: Likewise.
21571 * conf/x86_64-efi.rmk: Likewise.
21572 * fs/i386/pc/pxe.c: Likewise.
21573 * gettext/gettext.c: Likewise.
21574 * include/grub/efi/graphics_output.h: Likewise.
21575 * include/grub/i386/pc/memory.h: Likewise.
21576 * kern/env.c: Likewise.
21577 * kern/i386/qemu/startup.S: Likewise.
21578 * lib/i386/pc/biosnum.c: Likewise.
21579 * lib/i386/relocator.c: Likewise.
21580 * lib/i386/relocator_asm.S: Likewise.
21581 * lib/relocator.c: Likewise.
21582 * loader/i386/bsd.c: Likewise.
21583 * loader/i386/multiboot.c: Likewise.
21584 * loader/i386/pc/chainloader.c: Likewise.
21585 * loader/i386/xnu.c: Likewise.
21586 * loader/xnu.c: Likewise.
21587 * normal/main.c: Likewise.
21588 * normal/menu_text.c: Likewise.
21589 * util/getroot.c: Likewise.
21590 * util/grub-mkconfig_lib.in: Likewise.
21591 * util/grub.d/00_header.in: Likewise.
21592 * util/i386/pc/grub-mkimage.c: Likewise.
21593 * util/mkisofs/eltorito.c: Likewise.
21594 * util/mkisofs/exclude.h: Likewise.
21595 * util/mkisofs/hash.c: Likewise.
21596 * util/mkisofs/iso9660.h: Likewise.
21597 * util/mkisofs/joliet.c: Likewise.
21598 * util/mkisofs/mkisofs.c: Likewise.
21599 * util/mkisofs/mkisofs.h: Likewise.
21600 * util/mkisofs/multi.c: Likewise.
21601 * util/mkisofs/name.c: Likewise.
21602 * util/mkisofs/rock.c: Likewise.
21603 * util/mkisofs/tree.c: Likewise.
21604 * util/mkisofs/write.c: Likewise.
21605 * video/efi_gop.c: Likewise.
21606
21607 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
21608
21609 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
21610 size counting.
21611
21612 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
21613
21614 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
21615 * genmk.rb (class SCRIPT): Modify the target file instead of source.
21616
21617 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
21618
21619 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
21620 (GRUB_MOD_INIT(memrw)): Update help line.
21621
21622 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
21623
21624 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
21625 Use grub_extcmd_t. All users updated.
21626 (options): New variable.
21627 (grub_cmd_read): Restructure for readability. Support "-v" option.
21628 (grub_cmd_write): Restructure for readability.
21629
21630 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
21631
21632 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
21633
21634 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
21635
21636 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
21637 with the actual contents of the correspondending make variable.
21638 * util/grub-mkrescue.in (pkglib_DATA): New variable.
21639 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
21640 specifying `*.lst' and `efiemu??.o'
21641
21642 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
21643
21644 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
21645 after function name.
21646 Noticed by Rene Engelhard <rene@debian.org>.
21647
21648 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
21649
21650 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
21651 (options): New variable.
21652 (iospace): Likewise.
21653 (grub_lspci_iter): List IO spaces if "-i" was given.
21654 (grub_cmd_lspci): Parse options.
21655 (GRUB_MOD_INIT(lspci)): Use extcmd.
21656 (GRUB_MOD_FINI(lspci)): Likewise.
21657
21658 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
21659
21660 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
21661 `function' keyword.
21662 Patch by Tony Mancill <tmancill@debian.org>.
21663
21664 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
21665
21666 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
21667 (grub_uhci_portstatus): Likewise.
21668 (grub_uhci_portstatus): Add necessary delay.
21669 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
21670
21671 2009-12-21 Carles Pina i Estany <carles@pina.cat>
21672
21673 * commands/acpi.c (options): Fix capitalizations and/or full stops.
21674 (GRUB_MOD_INIT): Likewise.
21675 * commands/boot.c (GRUB_MOD_INIT): Likewise.
21676 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
21677 * commands/echo.c (options): Fix capitalizations and/or full stops.
21678 * commands/efi/loadbios.c (enable_rom_area): Likewise.
21679 (enable_rom_area): Likewise.
21680 (GRUB_MOD_INIT): Likewise.
21681 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
21682 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
21683 * commands/handler.c (GRUB_MOD_INIT): Likewise.
21684 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
21685 * commands/hexdump.c (options): Likewise.
21686 * commands/i386/cpuid.c (options): Likewise.
21687 (GRUB_MOD_INIT): Likewise.
21688 * commands/i386/pc/drivemap.c (options): Likewise.
21689 (GRUB_MOD_INIT): Likewise.
21690 * commands/i386/pc/halt (options): Likewise.
21691 (GRUB_MOD_INIT): Likewise.
21692 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
21693 * commands/i386/pc/pxecmd.c (options): Likewise.
21694 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
21695 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
21696 * commands/keystatus.c (options): Likewise.
21697 (GRUB_MOD_INIT): Likewise.
21698 * commands/loadenv.c (options): Likewise.
21699 * commands/ls.c (options): Likewise.
21700 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
21701 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
21702 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
21703 * commands/parttool.c (helpmsg): Likewise.
21704 * commands/probe.c (options): Likewise.
21705 * commands/read.c (GRUB_MOD_INIT): Likewise.
21706 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
21707 * commands/search.c (options): Likewise.
21708 * commands/sleep.c (options): Likewise.
21709 * commands/test.c (GRUB_MOD_INIT): Likewise.
21710 * commands/true.c (GRUB_MOD_INIT): Likewise.
21711 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
21712 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
21713 * lib/arg.c (help_options): Likewise.
21714 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
21715 `$(XGETTEXT)'.
21716 * po/POTFILES: Add `commands/loadenv.c'.
21717
21718 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
21719
21720 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
21721 instead of specifying them explicit.
21722
21723 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21724
21725 * NEWS: Add grub-probe support for GNU/Hurd.
21726
21727 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21728
21729 * NEWS: gettext was added after 1.97.
21730
21731 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21732
21733 * util/mkisofs/msdos_partition.h: New file (based on
21734 include/grub/msdos_partition.h).
21735 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
21736 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
21737 (ld_options, main): Recognize --protective-msdos-label.
21738 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
21739 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
21740 (padblock_write): If `use_protective_msdos_label' is set, patch a
21741 protective DOS-style label in the output image.
21742
21743 * util/grub-mkrescue.in: Use --protective-msdos-label.
21744
21745 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21746
21747 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
21748 boot.
21749
21750 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21751
21752 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
21753 variables.
21754 (ld_options, main): Recognize `--embedded-boot'.
21755 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
21756 declarations.
21757 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
21758 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
21759 (padblock_write): Likewise. Rewrite to support embedded boot image.
21760
21761 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
21762 for BIOS-based disk boot instead of only ElTorito.
21763
21764 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21765
21766 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
21767 build (not needed for bootstrap).
21768
21769 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21770
21771 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
21772 from i386-pc build (not needed for bootstrap).
21773 Rewrite a pair of strings.
21774
21775 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21776
21777 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
21778
21779 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
21780
21781 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
21782
21783 2009-12-21 Andreas Born <futur.andy@googlemail.com>
21784
21785 * kern/env.c (grub_env_context_open): Mark exported variable for
21786 reexport.
21787
21788 2009-12-21 Andreas Born <futur.andy@googlemail.com>
21789
21790 * kern/env.c (grub_env_export): Create nonexistent variables before
21791 exporting.
21792
21793 2009-12-20 Carles Pina i Estany <carles@pina.cat>
21794
21795 * include/grub/auth.h: Include `<grub/i18n.h>'.
21796 (GRUB_GET_PASSWORD): Gettextizze string.
21797 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
21798 menu_text.c.
21799 (grub_utf8_to_ucs4_alloc): Fix indentation.
21800 (grub_print_ucs4): Likewise.
21801 (grub_getstringwidth): Likewise.
21802 (print_message_indented): New declaration.
21803 * normal/auth.c: Include `<grub/i18n.h>'.
21804 (grub_auth_check_authentication): Gettexttize string.
21805 * normal/cmdline.c: Include `<grub/i18n.h>'.
21806 (grub_cmdline_get): Gettextizze.
21807 * normal/color.c: Include `<grub/i18n.h>'.
21808 (grub_parse_color_name_pair): Gettexttize strings.
21809 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
21810 string (use `print_message_indented').
21811 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
21812 `include/grub/normal.h'.
21813 (print_message_indented): Renamed to ...
21814 (grub_print_message_indented): ... this. Remove `static' qualifer (now
21815 used in normal/main.c).
21816 (print_message): Use `grub_print_message_indented' instead of
21817 `print_message_indented'.
21818 (print_timeout): Likewise.
21819 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
21820 (grub_normal_print_device_info): Gettexttize strings.
21821 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
21822
21823 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21824
21825 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
21826 of arguments. Return number of tokens and not arguments. All users
21827 updated.
21828
21829 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21830
21831 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
21832 non-MSDOS paritions.
21833
21834 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21835
21836 * include/grub/types.h (UNUSED): Removed since it conflicts with
21837 NetBSD headers. All users changed to direct __attribute__ ((unused)).
21838 Reported by Grégoire Sutre.
21839
21840 2009-12-19 Carles Pina i Estany <carles@pina.cat>
21841
21842 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
21843 (grub_print_ucs4_alloc): Likewise.
21844 (grub_getstringwidth): Likewise.
21845 * normal/main.c (grub_normal_init_page): Gettextize version string.
21846 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
21847 (getstringwidth): Renamed to ...
21848 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
21849 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
21850 (grub_print_ucs4): Remove `static' qualifer (now used in
21851 normal/main.c).
21852 * po/POTFILES: Add normal/main.c.
21853
21854 2009-12-19 Carles Pina i Estany <carles@pina.cat>
21855
21856 * normal/menu_text.c (STANDARD_MARGIN): New macro.
21857 (print_message_indented): Add `margin_left' and `margin_right'
21858 parameters.
21859 (print_message): Update `print_message_indented' calls. Adds '\n' to the
21860 strings.
21861 (print_timeout): Use `print_message_indented' to print the message.
21862 Deletes `second_stage' parameter.
21863 (run_menu): Update `print_timeout' calls.
21864
21865 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21866
21867 Fix console palette on OpenFirmware.
21868
21869 * term/ieee1275/ofconsole.c (MAX): Removed.
21870 (colors): Redone based on VGA palette.
21871 (grub_ofconsole_setcolor): Discard brightness bit since only 8
21872 colors are supported.
21873 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
21874
21875 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21876
21877 Fix potential EfiEmu double prepare.
21878
21879 * efiemu/main.c (prepared): New variable
21880 (grub_efiemu_unload): Set prepare to '0'.
21881 (grub_efiemu_prepare): Return if already prepared. Set prepared.
21882
21883 set_virtual_address_map support.
21884
21885 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
21886 prototype.
21887 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
21888 prototype.
21889 (grub_efiemu_crc32): Likewise.
21890 (grub_efiemu_crc64): Likewise.
21891 (grub_efiemu_set_virtual_address_map): Likewise.
21892 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
21893 New definition.
21894 (grub_autoefi_set_virtual_address_map): Likewise.
21895 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
21896 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
21897 Restructure flow to accomodate it.
21898 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
21899 (grub_efiemu_crc): Recompute CRC32.
21900 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
21901 (efiemu_ptv_relocated): ... this. Made global. All users updated.
21902 * efiemu/symbols.c (relocated_handle): New variable.
21903 (grub_efiemu_free_syms): Free relocated_handle.
21904 (grub_efiemu_alloc_syms): Allocate relocated_handle.
21905 (grub_efiemu_write_sym_markers): New function.
21906 (grub_efiemu_set_virtual_address_map): Likewise.
21907
21908 Newer XNU parameters.
21909
21910 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
21911 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
21912 (grub_xnu_fill_devicetree): New prototype.
21913 (grub_xnu_heap_real_start): New variable.
21914 * loader/xnu.c (get_name_ptr): New function.
21915 (grub_xnu_load_driver): Fill namelen and name.
21916
21917 64-bit xnu support.
21918
21919 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
21920 and 'loader/macho64.c'.
21921 * conf/i386-pc.rmk: Likewise.
21922 * conf/x86_64-efi.rmk: Likewise.
21923 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
21924 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
21925 * include/grub/macho.h (grub_macho_segment64): New structure.
21926 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
21927 (grub_macho_size32): ... to this.
21928 (grub_macho32_get_entry_point): Renamed from ...
21929 (grub_macho_get_entry_point32): ... to this.
21930 (grub_macho_contains_macho64): New prototype.
21931 (grub_macho_size64): Likewise.
21932 (grub_macho_get_entry_point64): Likewise.
21933 (grub_macho32_load): Renamed from ...
21934 (grub_macho_load32): ... to this.
21935 (grub_macho32_filesize): Renamed from ...
21936 (grub_macho_filesize32): ... to this.
21937 (grub_macho32_readfile): Renamed from ...
21938 (grub_macho_readfile32): ... to this.
21939 (grub_macho_filesize64): New prototype.
21940 (grub_macho_readfile64): Likewise.
21941 (grub_macho_parse32): Likewise.
21942 (grub_macho_parse64): Likewise.
21943 * loader/macho.c: Split into ...
21944 * loader/machoXX.c: ... and this. Replace 32 with XX.
21945 * loader/macho32.c: New file.
21946 * loader/macho64.c: Likewise.
21947 * loader/xnu.c (grub_xnu_is_64bit): New variable.
21948 (grub_cmd_xnu_kernel): Make 32-bit only.
21949 (grub_cmd_xnu_kernel64): New function.
21950 (grub_xnu_load_driver): Support Mach-O 64.
21951 (grub_cmd_xnu_mkext): Likewise.
21952 * util/grub.d/30_os-prober.in (osx_entry): New function.
21953 Generate entries for 64-bit boot too.
21954
21955 Eliminate ad-hoc tree format in XNU and EfiEmu.
21956
21957 * efiemu/main.c (grub_efiemu_prepare): Update comment.
21958 * efiemu/pnvram.c: Rewritten to use environment variables.
21959 All users updated.
21960
21961 Inline utf16_to_utf8.
21962
21963 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
21964 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
21965 All users updated.
21966 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
21967
21968 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
21969 * commands/usbtest.c (grub_usb_get_string): ... move here.
21970 (usb_print_str): Fix error handling.
21971 * include/grub/usb.h (grub_usb_get_string): Remove.
21972
21973 UTF-8 to UTF-16 transformation.
21974
21975 * conf/common.rmk (pkglib_MODULES): Add charset.mod
21976 (charset_mod_SOURCES): New variable.
21977 (charset_mod_CFLAGS): Likewise.
21978 (charset_mod_LDFLAGS): Likewise.
21979 * include/grub/utf.h: New file.
21980 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
21981
21982 Support for device properties.
21983
21984 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
21985 (grub_xnu_devprop_device_header): Likewise.
21986 (grub_xnu_devprop_device_descriptor): Likewise.
21987 (grub_xnu_devprop_add_device): New prototype.
21988 (grub_xnu_devprop_remove_device): Likewise.
21989 (grub_xnu_devprop_remove_property): Likewise.
21990 (grub_xnu_devprop_add_property_utf8): Likewise.
21991 (grub_xnu_devprop_add_property_utf16): Likewise.
21992 (grub_cpu_xnu_init): Likewise.
21993 (grub_cpu_xnu_fini): Likewise.
21994 (grub_cpu_xnu_unload): Likewise.
21995 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
21996 (property_descriptor): Likewise.
21997 (devices): New variable.
21998 (grub_xnu_devprop_remove_property): New function.
21999 (grub_xnu_devprop_add_device): Likewise.
22000 (grub_xnu_devprop_remove_device): Likewise.
22001 (grub_xnu_devprop_add_property): Likewise.
22002 (grub_xnu_devprop_add_property_utf8): Likewise.
22003 (grub_xnu_devprop_add_property_utf16): Likewise.
22004 (hextoval): Likewise.
22005 (grub_cpu_xnu_fill_devprop): Likewise.
22006 (grub_cmd_devprop_load): Likewise.
22007 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
22008 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
22009 (cmd_devprop_load): New variable.
22010 (grub_cpu_xnu_init): New function.
22011 (grub_cpu_xnu_fini): Likewise.
22012 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
22013 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
22014 (grub_cmd_xnu_devtree): Likewise.
22015 (hextoval): New function.
22016 (unescape): Likewise.
22017 (grub_xnu_fill_devicetree): Likewise.
22018
22019 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
22020 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
22021
22022 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22023
22024 Workaround for broken ATI VBE.
22025
22026 * video/i386/pc/vbe.c (last_set_mode): New variable.
22027 (grub_vbe_set_video_mode): Set 'last_set_mode'.
22028 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
22029 (grub_video_vbe_setup): Don't check for reserved flag.
22030
22031 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
22032
22033 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
22034 the `find' command.
22035
22036 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
22037
22038 UUID support for HFS.
22039
22040 * fs/hfs.c (grub_hfs_uuid): New function.
22041 (grub_hfs_fs): New value .uuid.
22042 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
22043
22044 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
22045
22046 Fix a segfault with parsing unknown long options.
22047
22048 * util/grub-mkrelpath.c (options): Zero terminate it.
22049
22050 2009-12-13 Carles Pina i Estany <carles@pina.cat>
22051
22052 * include/grub/misc.h (grub_puts): New declaration.
22053 (grub_puts_): Likewise.
22054 * kern/misc.c (grub_puts): New definition.
22055 (grub_puts_): Likewise.
22056
22057 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
22058
22059 * util/grub-probe.c (probe): Improve error message.
22060
22061 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
22062
22063 * loader/i386/multiboot_elfxx.c
22064 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
22065 initialization.
22066
22067 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
22068
22069 Relocator framework
22070
22071 * loader/i386/xnu_helper.S: Removed. All users updated.
22072 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
22073 (relocator_mod_SOURCES): New variable.
22074 (relocator_mod_CFLAGS): Likewise.
22075 (relocator_mod_LDFLAGS): Likewise.
22076 (relocator_mod_ASFLAGS): Likewise.
22077 * conf/x86_64.rmk: Likewise.
22078 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
22079 (grub_multiboot_payload_entry_offset): Likewise.
22080 (grub_multiboot_forward_relocator): Likewise.
22081 (grub_multiboot_forward_relocator_end): Likewise.
22082 (grub_multiboot_backward_relocator): Likewise.
22083 (grub_multiboot_backward_relocator_end): Likewise.
22084 (grub_multiboot_payload_eip): New variable.
22085 (grub_multiboot_payload_orig): Likewise.
22086 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
22087 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
22088 * include/grub/i386/memory.h
22089 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
22090 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
22091 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
22092 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
22093 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
22094 * include/grub/i386/relocator.h: New file.
22095 * include/grub/x86_64/relocator.h: Likewise.
22096 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
22097 (XNU_RELOCATOR): New macro.
22098 (grub_xnu_launcher_start): Remove.
22099 (grub_xnu_launcher_end): Likewise.
22100 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
22101 (grub_xnu_heap_real_start): Remove.
22102 (grub_xnu_heap_start): Change to void *. All users updated.
22103 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
22104 * lib/i386/relocator.c: New file.
22105 * lib/i386/relocator_asm.S: Likewise.
22106 * lib/i386/relocator_backward.S: Likewise.
22107 * lib/mips/relocator.c: Likewise.
22108 * lib/mips/relocator_asm.S: Likewise.
22109 * lib/relocator.c: Likewise.
22110 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
22111 (entry): Removed.
22112 (playground): Likewise.
22113 (grub_multiboot_payload_orig): New variable.
22114 (grub_multiboot_payload_dest): Likewise.
22115 (grub_multiboot_payload_size): Likewise.
22116 (grub_multiboot_payload_eip): Likewise.
22117 (grub_multiboot_payload_esp): Likewise.
22118 (grub_multiboot_boot): Use grub_relocator32_boot.
22119 (grub_multiboot_unload): Free relocators.
22120 (grub_multiboot): Setup stack. Use relocators.
22121 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
22122 (grub_multiboot_load_elfXX): Use relocators.
22123 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
22124 (grub_multiboot_payload_size): Likewise.
22125 (grub_multiboot_payload_dest): Likewise.
22126 (grub_multiboot_payload_entry_offset): Likewise.
22127 (grub_multiboot_forward_relocator): Likewise.
22128 (grub_multiboot_backward_relocator): Likewise.
22129 (grub_multiboot_real_boot): Likewise.
22130 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
22131 (grub_xnu_entry_point): Likewise.
22132 (grub_xnu_arg1): Likewise.
22133 (grub_xnu_stack): Likewise.
22134 (grub_xnu_launch): Removed.
22135 (grub_xnu_boot_resume): New function.
22136 (grub_xnu_boot): Use relocators.
22137 * loader/i386/xnu_helper.S: Removed.
22138 * loader/xnu.c (grub_xnu_heap_start): New variable.
22139 (grub_xnu_heap_size): Likewise.
22140 (grub_xnu_heap_malloc): Use relocators.
22141 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
22142
22143 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
22144
22145 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
22146 anything.
22147
22148 2009-12-13 Carles Pina i Estany <carles@pina.cat>
22149
22150 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
22151 GRUB_ERR_NONE before calling grub_env_set.
22152
22153 2009-12-12 Robert Millan <rmh@aybabtu.com>
22154
22155 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
22156 * genmk.rb (video): New variable.
22157 (CLEANFILES, VIDEOFILES): Add #{video}.
22158 (#{video}): New target rule.
22159 * genvideolist.sh: New file.
22160 * Makefile.in (pkglib_DATA): Add video.lst.
22161 (video.lst): New target rule.
22162 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
22163 `video.lst'.
22164 * util/grub.d/30_os-prober.in: Replace `vbe' with
22165 ${GRUB_VIDEO_BACKEND}.
22166
22167 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
22168
22169 * THANKS: Add David Miller.
22170
22171 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
22172
22173 libpciaccess support.
22174
22175 * Makefile.in (LIBPCIACCESS): New variable.
22176 (enable_grub_emu_pci): Likewise.
22177 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
22178 util/pci.c and commands/lspci.c.
22179 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
22180 * configure.ac (grub-emu-pci): New option.
22181 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
22182 (grub_pci_device_unmap_range): Likewise.
22183 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
22184 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
22185 (grub_pci_address_t) [!GRUB_UTIL]: New type.
22186 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
22187 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
22188 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
22189 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
22190 * include/grub/pciutils.h: New file.
22191 * util/pci.c: Likewise.
22192
22193 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
22194
22195 * util/misc.c: Don't include <errno.h> twice.
22196
22197 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
22198
22199 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
22200 name in an error message.
22201 (grub_biosdisk_rw): Likewise.
22202
22203 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 Eliminate NTFS 4Gib barrier.
22206
22207 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
22208 (read_run_data): Likewise.
22209 (grub_ntfs_read_run_list): Likewise.
22210 (grub_ntfs_read_block): Likewise.
22211 (grub_ntfs_iterate_dir): Likewise.
22212 (read_mft): Likewise.
22213 (read_data): Likewise.
22214 Use COM_LOG_LEN.
22215 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
22216 to avoid 64-bit division
22217 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
22218 (grub_ntfs_rlst): Use grub_disk_addr_t.
22219
22220 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
22221
22222 Eliminate grub-fstest 4Gib barrier.
22223
22224 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
22225 (read_file): Fix error reporting.
22226
22227 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
22228
22229 Eliminate hexdump 4Gib barrier.
22230
22231 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
22232 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
22233
22234 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
22235
22236 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
22237 Fixes amarsh bug.
22238
22239 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
22240
22241 Remove miscellaneous files in distclean target.
22242
22243 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
22244
22245 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
22246
22247 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
22248 if they're already set. This resolves the conflict between my
22249 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
22250 fixing the --grub-probe option again.
22251 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
22252 change on 2009-10-06, so that we now once again source
22253 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
22254
22255 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
22256
22257 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
22258 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
22259 `util/devicemap.c'.
22260
22261 2009-12-08 Carles Pina i Estany <carles@pina.cat>
22262
22263 * include/grub/misc.h (grub_printf_): New declaration.
22264 * kern/misc.c (grub_printf_): New definition.
22265 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
22266 instead of `grub_printf' and `_'.
22267 * normal/menu_entry.c (store_completion): Likewise.
22268 (run): Likewise.
22269 (grub_menu_entry_run): Likewise.
22270 * normal/menu_text.c (grub_wait_after_message): Likewise.
22271 (notify_booting): Likewise.
22272 (notify_fallback): Likewise.
22273 (notify_execution_failure): Likewise.
22274
22275 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
22276
22277 * configure.ac: Check for vasprintf.
22278 * util/misc.c (asprintf): Move allocation from here ...
22279 (vasprintf): ... to here. New function.
22280 (xasprintf): New function.
22281 * include/grub/util/misc.h (vasprintf, xasprintf): Add
22282 prototypes.
22283 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
22284 * util/grub-mkfont.c (write_font): Likewise.
22285 * util/grub-probe.c (probe): Likewise.
22286 * util/hostdisk.c (make_device_name): Likewise.
22287
22288 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
22289
22290 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
22291 anything even prefixed with 'cdrom' as a cdrom.
22292
22293 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
22294
22295 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
22296 mount points.
22297
22298 2009-12-05 Carles Pina i Estany <carles@pina.cat>
22299
22300 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
22301 grub_gettext_msg_list.
22302 (grub_gettext_gettranslation_from_position): Return const char *
22303 and not char *.
22304 (grub_gettext_translate): Add the translated strings into a list,
22305 returns from the list if existing there.
22306 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
22307 (grub_gettext_delete_list): Delete the list.
22308 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
22309 lang environment variable is changed.
22310 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
22311
22312 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
22313
22314 Rename kernel.mod to kernel.img.
22315
22316 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
22317 (kernel_mod_EXPORTS): Rename to ...
22318 (kernel_img_EXPORTS): ... this.
22319 (kernel_mod_SOURCES): Rename to ...
22320 (kernel_img_SOURCES): ... this.
22321 (kernel_mod_HEADERS): Rename to ...
22322 (kernel_img_HEADERS): ... this. All users updated.
22323 (kernel_mod_CFLAGS): Rename to ...
22324 (kernel_img_CFLAGS): ... this.
22325 (kernel_mod_ASFLAGS): Rename to ...
22326 (kernel_img_ASFLAGS): ... this.
22327 (kernel_mod_LDFLAGS): Rename to ...
22328 (kernel_img_LDFLAGS): ... this.
22329 * conf/x86_64-efi.rmk: Likewise.
22330 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
22331 (read_kernel_image): ... this. All users updated.
22332 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
22333
22334 2009-12-05 Carles Pina i Estany <carles@pina.cat>
22335
22336 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
22337 (print_spaces): New function.
22338 (grub_print_ucs4): New function.
22339 (getstringwidth): New function.
22340 (print_message_indented): New function.
22341 (print_message): Gettexttize strings using print_message_indented.
22342 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
22343 width.
22344 (get_entry_number): Gettextize and uses dynamic terminal width.
22345 (notify_booting, notify_fallback, notify_execution_failure):
22346 Gettextize.
22347 * normal/menu_entry.c (store_completion): Cleanup the gettextized
22348 string.
22349 (run): Likewise.
22350 (grub_menu_entry_run): Likewise.
22351 * PO/POTFILES: Add normal/menu_entry.c.
22352
22353 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
22354
22355 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
22356
22357 2009-12-05 Carles Pina i Estany <carles@pina.cat>
22358
22359 * util/grub-install.in: Install gettext .mo files.
22360 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
22361
22362 2009-12-05 Carles Pina i Estany <carles@pina.cat>
22363
22364 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
22365 grub_dprintf.
22366
22367 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
22368
22369 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
22370 non-firmware-dependant one in realmode.S takes precedence.
22371
22372 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
22373
22374 * commands/halt.c: Replace misc arch-specific headers with
22375 `<grub/misc.h>'.
22376 * commands/reboot.c: Likewise.
22377 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
22378 `<grub/misc.h>'.
22379 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
22380 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
22381 (kernel_img_SOURCES): ... to here.
22382
22383 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
22384 * include/grub/i386/pc/init.h: Likewise.
22385 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
22386 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
22387
22388 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
22389
22390 * include/grub/i386/halt.h: Remove.
22391 * include/grub/i386/reboot.h: Likewise.
22392
22393 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
22394
22395 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
22396
22397 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
22398 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
22399 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
22400 "progname.h"
22401 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
22402 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22403 (usage): Add missing comma in printf.
22404
22405 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
22406
22407 Use the same reboot approach on i386 coreboot and qemu as we do on
22408 BIOS.
22409
22410 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
22411 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
22412 * kern/i386/reboot.c: Remove.
22413 * include/grub/i386/reboot.h (grub_reboot): Export function.
22414 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
22415 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
22416 0xf000:0xfff0 instead of 0xffff:0x0000.
22417 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
22418 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
22419
22420 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
22421
22422 Fix $srcdir != $objdir build.
22423
22424 * Makefile.in (po/%.po): Rewrite as ...
22425 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
22426
22427 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22428
22429 Fix GNU/Hurd grub-install crash.
22430 * util/grub-probe.c (probe): Try to access `path' only when it is not
22431 NULL.
22432
22433 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
22434
22435 Correct module naming.
22436
22437 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
22438 (GRUB_MOD_INIT(efi_uga)): ... to this
22439 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
22440 (GRUB_MOD_FINI(efi_uga)): ... to this
22441 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
22442 (GRUB_MOD_INIT(efi_gop)): ... to this
22443 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
22444 (GRUB_MOD_FINI(efi_gop)): ... to this
22445
22446 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
22447
22448 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
22449 translatable.
22450 (usage): Translate `arg' strings using gettext().
22451 Thanks to Jordi Mallach for the suggestion.
22452
22453 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
22454
22455 GOP support. Based on patch from Bean
22456 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
22457
22458 * video/efi_gop.c: New file.
22459 * include/grub/efi/graphics_output.h: Likewise.
22460 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
22461 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
22462 variables.
22463 * conf/x86_64-efi.rmk: Likewise.
22464
22465 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
22466
22467 Rename efi_fb to efi_uga.
22468
22469 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
22470 'efi_uga.mod'.
22471 (efi_fb_mod_SOURCES): Rename this ...
22472 (efi_uga_mod_SOURCES): ... to this.
22473 (efi_fb_mod_CFLAGS): Rename this ...
22474 (efi_uga_mod_CFLAGS): ... to this.
22475 (efi_fb_mod_LDFLAGS): Rename this ...
22476 (efi_uga_mod_LDFLAGS): ... to this.
22477 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
22478 'efi_uga.mod'.
22479 (efi_fb_mod_SOURCES): Rename this ...
22480 (efi_uga_mod_SOURCES): ... to this.
22481 (efi_fb_mod_CFLAGS): Rename this ...
22482 (efi_uga_mod_CFLAGS): ... to this.
22483 (efi_fb_mod_LDFLAGS): Rename this ...
22484 (efi_uga_mod_LDFLAGS): ... to this.
22485 * video/efi_fb.c: Move this ...
22486 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
22487
22488 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
22489
22490 * po/README: New file. Explain our PO file workflow.
22491
22492 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
22493
22494 * po/ChangeLog: Remove. Move relevant entries back to ...
22495 * ChangeLog: ... here.
22496 * po/ca.po: Remove (now handled by TLP).
22497 * po/id.po: Likewise.
22498 * po/zh_CN.po: Likewise.
22499 * Makefile.in (LINGUAS): Initialize in a way that supports
22500 empty set.
22501
22502 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
22503
22504 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
22505 reliing on po/LINGUAS.
22506 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
22507 (po/%.po): ... this.
22508
22509 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
22510
22511 * util/i386/efi/grub-mkimage.c: Include "progname.h".
22512 (main): Use `program_name' instead of nonexistent `progname'.
22513
22514 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
22515
22516 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
22517 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
22518
22519 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
22520
22521 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
22522 commit.
22523 * conf/i386-efi.rmk: Likewise.
22524 * conf/i386-ieee1275.rmk: Likewise.
22525 * conf/powerpc-ieee1275.rmk: Likewise.
22526 * conf/sparc64-ieee1275.rmk: Likewise.
22527 * conf/x86_64-efi.rmk: Likewise.
22528
22529 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
22530
22531 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
22532
22533 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
22534
22535 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
22536
22537 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
22538
22539 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
22540 (grub_mkdevicemap_SOURCES): New variable.
22541 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
22542 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
22543 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
22544 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
22545 (grub_mkdevicemap_SOURCES): Remove.
22546 * conf/i386-efi.rmk: Likewise.
22547 * conf/i386-ieee1275.rmk: Likewise.
22548 * conf/i386-pc.rmk: Likewise.
22549 * conf/powerpc-ieee1275.rmk: Likewise.
22550 * conf/sparc64-ieee1275.rmk: Likewise.
22551 * conf/x86_64-efi.rmk: Likewise.
22552 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
22553 (usage): Fix strings to use `program_name'.
22554 (main): Initialize gettext.
22555 * util/grub-editenv.c: Likewise.
22556 * util/grub-emu.c: Likewise.
22557 * util/grub-fstest.c: Likewise.
22558 * util/grub-mkdevicemap.c: Likewise.
22559 * util/grub-mkfont.c: Likewise.
22560 * util/grub-mkrelpath.c: Likewise.
22561 * util/grub-pe2elf.c: Likewise.
22562 * util/grub-probe.c: Likewise.
22563 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
22564 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
22565 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22566
22567 * util/misc.c: Include `"progname.h"'.
22568 (progname): Remove variable.
22569 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
22570
22571 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
22572
22573 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
22574 printf and print a newline after the menuentry header line.
22575 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22576
22577 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
22578
22579 autoconf >= 2.60 support $(localedir).
22580
22581 * INSTALL: Note that autoconf 2.60 is required.
22582 * configure.ac (AC_PREREQ): Bump to 2.60.
22583 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
22584 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22585
22586 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
22587
22588 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
22589 aclocal is run.
22590
22591 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
22592
22593 * normal/main.c (grub_normal_read_line): Fix off-by-one
22594 buffer overflow.
22595
22596 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
22597
22598 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
22599 "parser.grub" in grub_command_execute() call.
22600
22601 2009-11-24 Carles Pina i Estany <carles@pina.cat>
22602
22603 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
22604 * conf/i386-efi.rmk: Likewise.
22605 * conf/i386-ieee1275.rmk: Likewise.
22606 * conf/i386-pc.rmk: Likewise.
22607 * conf/powerpc-ieee1275.rmk: Likewise.
22608 * conf/sparc64-ieee1275.rmk: Likewise.
22609 * conf/x86_64-efi.rmk: Likewise.
22610 * gettext/gettex.c: Include <grub/i18n.h>.
22611 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
22612 here ...
22613 * include/grub/i18n.h: ... to here
22614 * include/grub/i18n.h: ... to here.
22615 * kern/misc.c: Include <grub/i18n.h>
22616 (grub_gettext_dummy): Move above user.
22617
22618 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
22619
22620 * util/Makefile.in (install-local): Convert a `for' into a normal
22621 shell expansion.
22622
22623 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
22624
22625 * autogen.sh: Add automake call.
22626 * config.guess: Remove.
22627 * config.sub: Likewise.
22628 * install-sh: Likewise.
22629
22630 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
22631
22632 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
22633
22634 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
22635
22636 * util/Makefile.in (install-local): Convert a make `$(foreach)'
22637 function to a normal shell `for'.
22638
22639 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
22640
22641 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
22642
22643 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
22644
22645 * util/grub-mkrelpath.c: New file.
22646 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
22647 (grub_mkrelpath_SOURCES): New variable.
22648 * include/grub/util/misc.h: New function prototype.
22649 * util/misc.c (make_system_path_relative_to_its_root): New function.
22650
22651 * util/grub-mkconfig_lib.in (bindir): New variable.
22652 (grub_mkrelpath): Likewise.
22653 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
22654
22655 * util/probe.c (probe): Make the file path relative to its root.
22656 Change a info message to use the GRUB path. Enable again the
22657 check if we can read the file with GRUB facilities.
22658
22659 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
22660 to its root.
22661
22662 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
22663
22664 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
22665 platform.
22666
22667 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
22668
22669 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
22670 strncmp().
22671
22672 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
22673
22674 * util/getroot.c (grub_util_is_dmraid): New function.
22675 (grub_util_get_dev_abstraction): Treat dmraid and multipath
22676 devices as normal ones, not as LVM.
22677
22678 2009-11-23 Carles Pina i Estany <carles@pina.cat>
22679
22680 * conf/common.rmk: Add grub-gettext_lib target and updates
22681 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
22682 LDFLAGS.
22683 * gettext/gettext.c: New file. (Reads mo files).
22684 * include/grub/file.h (grub_file_pread): New prototype.
22685 * include/grub/i18n.h (_): New prototype.
22686 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
22687 prototypes.
22688 * kern/misc.c (grub_gettext_dummy): New function.
22689 * normal/menu_text.c: Include <grub/i18n.h>.
22690 * normal/menu_text.c (print_timeout): Gettexttize string.
22691 * normal/menu_text.c (print_message): Gettexttize string.
22692 * po/POTFILES: Add `normal/menu_text.c'.
22693 * po/ca.po: Add new translations.
22694 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
22695 gettext module and defines locale_dir and lang in grub.cfg.
22696 * NEWS: Add gettext support.
22697
22698 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22699
22700 * util/hostdisk.c: Include `<grub/i18n.h>'.
22701 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
22702 (make_device_name): Rewrite using asprintf.
22703 (convert_system_partition_to_system_disk): Replace 0 with NULL.
22704 (find_system_device): If a device is not found, generate one just
22705 by reusing the OS path name.
22706 (read_device_map): Make it permissible for device.map not to exist.
22707
22708 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22709
22710 * script/sh/execute.c: Move from here ...
22711 * script/execute.c: ... to here. Update all users.
22712 * script/sh/function.c: Move from here ...
22713 * script/function.c: ... to here. Update all users.
22714 * script/sh/lexer.c: Move from here ...
22715 * script/lexer.c: ... to here. Update all users.
22716 * script/sh/main.c: Move from here ...
22717 * script/main.c: ... to here. Update all users.
22718 * script/sh/parser.y: Move from here ...
22719 * script/parser.y: ... to here. Update all users.
22720 * script/sh/script.c: Move from here ...
22721 * script/script.c: ... to here. Update all users.
22722
22723 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22724
22725 * configure.ac: Detect all `emu' platforms. Define
22726 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
22727 --enable-grub-emu logic. Disable include/grub/machine
22728 symlink on `emu' platforms.
22729
22730 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
22731 * gensymlist.sh.in: Likewise.
22732
22733 * include/grub/i386/coreboot/machine.h: Remove file.
22734 * include/grub/i386/efi/machine.h: Likewise.
22735 * include/grub/i386/ieee1275/machine.h: Likewise.
22736 * include/grub/i386/pc/machine.h: Likewise.
22737 * include/grub/i386/qemu/machine.h: Likewise.
22738 * include/grub/powerpc/ieee1275/machine.h: Likewise.
22739 * include/grub/sparc64/ieee1275/machine.h: Likewise.
22740 * include/grub/x86_64/efi/machine.h: Likewise.
22741
22742 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
22743 * commands/halt.c: Likewise.
22744 * commands/reboot.c: Likewise.
22745 * include/grub/autoefi.h: Likewise.
22746 * include/grub/i386/at_keyboard.h: Likewise.
22747 * include/grub/i386/kernel.h: Likewise.
22748 * include/grub/i386/loader.h: Likewise.
22749 * include/grub/i386/pc/memory.h: Likewise.
22750 * kern/dl.c: Likewise.
22751 * kern/i386/coreboot/init.c: Likewise.
22752 * loader/i386/bsd.c: Likewise.
22753 * loader/i386/linux.c: Likewise.
22754 * loader/multiboot_loader.c: Likewise.
22755 * term/i386/pc/serial.c: Likewise.
22756 * term/usb_keyboard.c: Likewise.
22757
22758 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
22759 `<grub/machine/machine.h>'
22760 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
22761 * util/misc.c: Remove `<grub/machine/machine.h>' and
22762 `<grub/machine/time.h>'.
22763
22764 * Makefile.in (enable_grub_emu): Remove variable.
22765 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
22766
22767 * conf/any-emu.rmk: New file.
22768 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
22769 (grub_emu_init.c): Move from here ...
22770 * conf/any-emu.rmk: ... to here.
22771
22772 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
22773 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
22774 * conf/any-emu.rmk: ... to here.
22775
22776 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22777
22778 * include/grub/parser.h (grub_parser_register): Document need
22779 of `name' parameter.
22780 * normal/main.c (grub_normal_read_line): Simplify prompt string.
22781 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
22782 "sh" to "grub".
22783
22784 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22785
22786 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
22787 `$(XGETTEXT)'.
22788 * include/grub/i18n.h (N_): New macro.
22789 * util/mkisofs/mkisofs.h: Likewise.
22790 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
22791 around N_().
22792 (usage): Use gettext() to translate help strings when printing them.
22793
22794 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22795
22796 Based on patch from Bean
22797 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
22798
22799 * video/efi_fb.c: New file.
22800 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
22801 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
22802 variables.
22803 * conf/x86_64-efi.rmk: Likewise.
22804
22805 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
22806
22807 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
22808 * util/i386/pc/grub-setup.c: Likewise.
22809
22810 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
22811
22812 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
22813 <hurd/fs.h>
22814 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
22815 file_get_storage_info to implement grub_guess_root_device.
22816
22817 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
22818
22819 * Makefile.in (target): Use make's builtin $(shell) function
22820 instead of calling directly $(SHELL) to create the locale directories,
22821 inside the $(foreach) function.
22822
22823 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
22824
22825 * util/grub-mkrescue.in: Print an error and usage if output option
22826 has not been given.
22827
22828 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
22829
22830 Patch from Loïc Minier <loic.minier@ubuntu.com>.
22831 * util/grub.d/30_os-prober.in: Cope with Linux entries where
22832 root and /boot are on different devices.
22833
22834 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22835
22836 Fix build for srcdir != objdir.
22837
22838 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
22839 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
22840 $(srcdir).
22841 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
22842 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
22843 reference for input.
22844
22845 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22846
22847 * util/grub-mkrescue.in: Use source directory direcly (without copiing
22848 or hardlinking it). Remove -J option, Joliet is not compatible with
22849 multiple source directories.
22850
22851 2009-11-21 Carles Pina i Estany <carles@pina.cat>
22852 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22853
22854 * util/grub-mkrescue.in: Recognize `--override-directory' option.
22855 (process_input_dir): New function. Process an arbitrary input
22856 directory.
22857 Misc adjustments to support both "override mode" and system-wide mode.
22858
22859 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
22860
22861 * configure.ac (UNIFONT_BDF): Rename to ...
22862 (FONT_SOURCE): ... this. Update all users.
22863
22864 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
22865
22866 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
22867 to the list of unifont files to look for.
22868
22869 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22870
22871 Patch from Joe Auricchio <jauricchio@gmail.com>
22872 * commands/minicmd.c (grub_mini_cmd_clear): New function.
22873 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
22874 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
22875
22876 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
22877
22878 * Makefile.in (install-local): Add a missing backslash.
22879
22880 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
22881
22882 * include/grub/x86_64/io.h: New file.
22883
22884 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22885
22886 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
22887 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
22888 Include `"progname.h"'.
22889 (main): Initialize gettext.
22890 * util/i386/pc/grub-setup.c: Gettexttize.
22891 * util/i386/pc/grub-mkimage.c: Likewise.
22892
22893 * Makefile.in (po/*.po): Redefine as ...
22894 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
22895
22896 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
22897
22898 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22899
22900 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
22901 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
22902 (program_name): Remove.
22903 (main): Initialize gettext support.
22904 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
22905 Include `<libintl.h>'.
22906 (_): New macro.
22907
22908 * util/mkisofs/eltorito.c: Gettexttize.
22909 * util/mkisofs/joliet.c: Likewise.
22910 * util/mkisofs/mkisofs.c: Likewise.
22911 * util/mkisofs/multi.c: Likewise.
22912 * util/mkisofs/rock.c: Likewise.
22913 * util/mkisofs/tree.c: Likewise.
22914 * util/mkisofs/write.c: Likewise.
22915
22916 * po/POTFILES: Update with new files.
22917
22918 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22919
22920 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
22921 * util/mkisofs/iso9660.h: Likewise.
22922 * util/mkisofs/joliet.c: Likewise.
22923 * util/mkisofs/mkisofs.c: Likewise.
22924 * util/mkisofs/mkisofs.h: Likewise.
22925 * util/mkisofs/rock.c: Likewise.
22926 * util/mkisofs/tree.c: Likewise.
22927 * util/mkisofs/write.c: Likewise.
22928
22929 * util/mkisofs/eltorito.c (rcsid): Remove.
22930 * util/mkisofs/hash.c: Likewise.
22931 * util/mkisofs/joliet.c: Likewise.
22932 * util/mkisofs/name.c: Likewise.
22933 * util/mkisofs/rock.c: Likewise.
22934 * util/mkisofs/tree.c: Likewise.
22935 * util/mkisofs/write.c: Likewise.
22936
22937 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22938
22939 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
22940 instead of static allocation.
22941 * util/mkisofs/match.h: Likewise.
22942
22943 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22944
22945 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
22946 and `util/grub.d/10_linux.in'.
22947 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
22948 translatable Shell files.
22949
22950 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22951
22952 * Makefile.in ($(srcdir)/aclocal.m4): New target.
22953
22954 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22955
22956 * INSTALL: Document Automake is needed for bootstrap.
22957 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
22958 * util/grub.d/10_kfreebsd.in (bindir): New variable.
22959 Add gettext initialization.
22960 (kfreebsd_entry): Make menuentry output translatable.
22961
22962 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22963
22964 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
22965 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
22966 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
22967 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
22968 (LINGUAS): Auto-generate using `po/LINGUAS'.
22969 * po/LINGUAS: New file.
22970
22971 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22972
22973 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
22974 other things).
22975 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
22976 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
22977 bindtextdomain() calls for gettext initialization.
22978
22979 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22980
22981 * gnulib/progname.c: New file (imported from Gnulib).
22982 * gnulib/progname.h: Likewise.
22983 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
22984 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
22985 (usage): Replace `progname' with `program_name'.
22986 (main): Use set_program_name() for program name initialization.
22987
22988 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22989
22990 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
22991 from here ...
22992 * Makefile.in (CPPFLAGS): ... to here.
22993
22994 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22995
22996 * aclocal.m4: Move from here ...
22997 * acinclude.m4: ... to here.
22998 * autogen.sh: Add call to `aclocal'.
22999 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
23000
23001 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
23002
23003 * Makefile.in (CLEANFILES): Add `po/*.mo'.
23004 (LINGUAS): New variable.
23005 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
23006 (install-local): Install MO files.
23007 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
23008 * include/grub/i18n.h: New file.
23009 * po/POTFILES: New file.
23010 * po/ca.po: New file.
23011 * util/grub.d/10_linux.in (bindir): New variable.
23012 Add gettext initialization.
23013 (linux_entry): Make menuentry output translatable.
23014 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
23015 (usage): Make --help output translatable.
23016 (main): Initialize gettext.
23017
23018 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23019
23020 * import_gcry.py: New file (written by Vladimir with minor
23021 adjustments).
23022 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
23023 ciphers.
23024 * INSTALL: Document that Python is required for bootstrap.
23025
23026 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23027
23028 Import ciphers from libgcrypt 1.4.4.
23029
23030 * lib/libgcrypt/cipher/ChangeLog
23031 * lib/libgcrypt/cipher/ac.c
23032 * lib/libgcrypt/cipher/arcfour.c
23033 * lib/libgcrypt/cipher/bithelp.h
23034 * lib/libgcrypt/cipher/blowfish.c
23035 * lib/libgcrypt/cipher/camellia-glue.c
23036 * lib/libgcrypt/cipher/camellia.c
23037 * lib/libgcrypt/cipher/camellia.h
23038 * lib/libgcrypt/cipher/cast5.c
23039 * lib/libgcrypt/cipher/cipher.c
23040 * lib/libgcrypt/cipher/crc.c
23041 * lib/libgcrypt/cipher/des.c
23042 * lib/libgcrypt/cipher/dsa.c
23043 * lib/libgcrypt/cipher/ecc.c
23044 * lib/libgcrypt/cipher/elgamal.c
23045 * lib/libgcrypt/cipher/hash-common.c
23046 * lib/libgcrypt/cipher/hash-common.h
23047 * lib/libgcrypt/cipher/hmac-tests.c
23048 * lib/libgcrypt/cipher/md.c
23049 * lib/libgcrypt/cipher/md4.c
23050 * lib/libgcrypt/cipher/md5.c
23051 * lib/libgcrypt/cipher/primegen.c
23052 * lib/libgcrypt/cipher/pubkey.c
23053 * lib/libgcrypt/cipher/rfc2268.c
23054 * lib/libgcrypt/cipher/rijndael-tables.h
23055 * lib/libgcrypt/cipher/rijndael.c
23056 * lib/libgcrypt/cipher/rmd.h
23057 * lib/libgcrypt/cipher/rmd160.c
23058 * lib/libgcrypt/cipher/rsa.c
23059 * lib/libgcrypt/cipher/seed.c
23060 * lib/libgcrypt/cipher/serpent.c
23061 * lib/libgcrypt/cipher/sha1.c
23062 * lib/libgcrypt/cipher/sha256.c
23063 * lib/libgcrypt/cipher/sha512.c
23064 * lib/libgcrypt/cipher/tiger.c
23065 * lib/libgcrypt/cipher/twofish.c
23066 * lib/libgcrypt/cipher/whirlpool.c
23067
23068 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
23069
23070 Fix build for systems without error().
23071
23072 * gnulib/error.c: New file (imported from Gnulib).
23073 * gnulib/error.h: Likewise.
23074 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
23075 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
23076 (this variable is now used by error()).
23077
23078 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
23079
23080 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
23081 instead of relying that char is signed.
23082
23083 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
23084
23085 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
23086 blocksize different from specified.
23087 (grub_pxefs_read): Likewise.
23088
23089 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
23090
23091 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
23092
23093 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
23094 (grub_ata_readwrite): Likewise. Update 2 format strings.
23095 (grub_atapi_read): Likewise.
23096
23097 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
23098 * conf/i386.rmk (pkglib_MODULES): ... to here ...
23099 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
23100 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
23101 (ata_mod_LDFLAGS): Move from here ...
23102 * conf/i386.rmk: ... to here ...
23103 * conf/x86_64-efi.rmk: ... and here.
23104 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
23105 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
23106
23107 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
23108
23109 Relicense multiboot.h, with RMS' blessing.
23110
23111 * include/multiboot.h: Change to X11 license.
23112
23113 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
23114
23115 Support --version in grub-mkisofs.
23116
23117 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
23118 (OPTION_VERSION): New macro.
23119 (ld_options): Recognize --version.
23120 (usage): Move `program_name' from here ...
23121 (program_name): ... to here. Add `static' qualifier.
23122 (main): Recognize `OPTION_VERSION'.
23123
23124 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
23125
23126 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
23127 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
23128
23129 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
23130
23131 Fix help2man generation for mkisofs.
23132
23133 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
23134 (usage): Send output to stdout (rather than stderr).
23135
23136 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
23137
23138 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
23139 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
23140 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
23141 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
23142 (bin_SCRIPTS): Add `grub-mkfloppy'.
23143 (grub_mkfloppy_SOURCES): New variable.
23144
23145 * util/grub-mkrescue.in: New file.
23146 * util/i386/pc/grub-mkfloppy.in: New file.
23147
23148 * util/i386/coreboot/grub-mkrescue.in: Remove.
23149 * util/i386/pc/grub-mkrescue.in: Remove.
23150
23151 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
23152
23153 * include/grub/multiboot.h (struct grub_multiboot_header): Move
23154 from here ...
23155 * include/multiboot.h (struct multiboot_header): ... to here. Update
23156 all users.
23157 * include/grub/multiboot.h (struct grub_multiboot_info): Move
23158 from here ...
23159 * include/multiboot.h (struct multiboot_info): ... to here. Update
23160 all users.
23161 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
23162 from here ...
23163 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
23164 Update all users.
23165 * include/grub/multiboot.h (struct grub_mod_list): Move
23166 from here ...
23167 * include/multiboot.h (struct multiboot_mod_list): ... to here.
23168 Update all users.
23169
23170 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
23171
23172 * include/multiboot2.h (multiboot_word): Rename from this ...
23173 (multiboot2_word): ... to this. Update all users.
23174 (multiboot_header): Rename from this ...
23175 (multiboot2_header): ... to this. Update all users.
23176 (multiboot_tag_header): Rename from this ...
23177 (multiboot2_tag_header): ... to this. Update all users.
23178 (multiboot_tag_start): Rename from this ...
23179 (multiboot2_tag_start): ... to this. Update all users.
23180 (multiboot_tag_name): Rename from this ...
23181 (multiboot2_tag_name): ... to this. Update all users.
23182 (multiboot_tag_module): Rename from this ...
23183 (multiboot2_tag_module): ... to this. Update all users.
23184 (multiboot_tag_memory): Rename from this ...
23185 (multiboot2_tag_memory): ... to this. Update all users.
23186 (multiboot_tag_unused): Rename from this ...
23187 (multiboot2_tag_unused): ... to this. Update all users.
23188 (multiboot_tag_end): Rename from this ...
23189 (multiboot2_tag_end): ... to this. Update all users.
23190
23191 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
23192
23193 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
23194 this platform we should support Multiboot1 first.
23195
23196 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
23197 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
23198 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
23199
23200 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
23201
23202 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
23203 of write calls (converting them to fwrite() if they aren't already).
23204 (get_torito_desc): Likewise.
23205 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
23206
23207 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
23208
23209 * util/i386/pc/grub-install.in: Move from here ...
23210 * util/grub-install.in: ... to here. Update all users.
23211
23212 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
23213
23214 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
23215
23216 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
23217
23218 Support for El Torito without floppy emulation.
23219
23220 * util/mkisofs/eltorito.c: Include `<errno.h>'.
23221 (init_boot_catalog): Improve error handling.
23222 (get_torito_desc): Don't use floppy emulation unless requested by
23223 user. Patch boot information table when requested via
23224 `-boot-info-table'.
23225 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
23226 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
23227 (use_boot_info_table): New variables.
23228 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
23229 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
23230 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
23231 `--eltorito-emul-floppy'.
23232 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
23233 and `OPTION_ELTORITO_EMUL_FLOPPY'.
23234 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
23235 (use_boot_info_table, get_731): New prototypes.
23236 * util/mkisofs/write.c (get_731): New function.
23237
23238 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
23239
23240 Fix the generation of the man page.
23241
23242 * util/pc/i386/grub-install.in: Source
23243 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
23244
23245 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
23246
23247 Large file support for grub-mkisofs.
23248
23249 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
23250 * util/mkisofs/mkisofs.c (next_extent, last_extent)
23251 (session_start): Upgrade type to `uint64_t'. Update all users.
23252 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
23253 (struct directory_entry): Upgrade type of `starting_block' and
23254 `size' to `uint64_t'. Update all users.
23255 (struct deferred): Remove unused structure.
23256 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
23257 Update all users.
23258 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
23259 file is larger than `UINT32_MAX'.
23260 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
23261 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
23262 return value.
23263 (struct deferred_write): Upgrade type of `extent' and `size' to
23264 `uint64_t'. Update all users.
23265 (last_extent_written): Upgrade type to `uint64_t'. Update all
23266 users.
23267 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
23268 Update all users. Upgrade type of `remain' to `int64_t' and
23269 `use' to `size_t'. Use error() to handle fread() errors.
23270 (write_files): Rely on write_one_file() rather than calling
23271 xfwrite() directly.
23272
23273 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
23274
23275 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
23276
23277 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23278
23279 * util/mkisofs/fnmatch.c: Remove.
23280 * util/mkisofs/getopt1.c: Likewise.
23281 * util/mkisofs/getopt.c: Likewise.
23282 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
23283 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
23284 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
23285 `gnulib/getopt1.c' and `gnulib/getopt.c'.
23286 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
23287
23288 * configure.ac: Detect `mingw32msvc' host_os.
23289 Check for lstat(), getuid() and getgid().
23290
23291 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
23292 instances of `u_char' with `uint8_t'.
23293
23294 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
23295 [!HAVE_GETUID] (getuid): New function (stub).
23296 [!HAVE_GETGID] (getgid): Likewise.
23297 [!HAVE_LSTAT] (lstat): Likewise.
23298 [!S_IROTH] (S_IROTH): New macro (dummy).
23299 [!S_IRGRP] (S_IRGRP): Likewise.
23300
23301 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23302
23303 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
23304 conditional expression).
23305
23306 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23307
23308 Import from Gnulib.
23309
23310 * gnulib/fnmatch.c: New file.
23311 * gnulib/fnmatch.h: Likewise.
23312 * gnulib/fnmatch_loop.c: Likewise.
23313 * gnulib/getopt.c: Likewise.
23314 * gnulib/getopt.h: Likewise.
23315 * gnulib/getopt1.c: Likewise.
23316 * gnulib/getopt_int.h: Likewise.
23317 * gnulib/gettext.h: Likewise.
23318
23319 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23320
23321 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
23322 * normal/handler.c (read_handler_list): Likewise.
23323
23324 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23325
23326 Misc cleanup.
23327
23328 * kern/command.c (grub_register_command_prio): Use
23329 grub_zalloc() instead of explicitly zeroing data.
23330 * kern/list.c: Include `<grub/mm.h>'.
23331 (grub_named_list_find): Replace `0' with `NULL'.
23332 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
23333 (fs_module_list): Change type to `grub_named_list_t'. Update all
23334 users.
23335 * normal/dyncmd.c (read_command_list): Add space between function
23336 call and parenthesis.
23337 * normal/handler.c (read_handler_list): Likewise.
23338
23339 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23340
23341 * normal/auth.c (punishment_delay): Moved from here ...
23342 (grub_auth_strcmp): ... to here (inside function).
23343
23344 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23345
23346 * include/grub/list.h (struct grub_named_list): Remove `const'
23347 qualifier from `name'.
23348 (struct grub_prio_list): Likewise.
23349
23350 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23351
23352 * normal/auth.c: Include `<grub/time.h>'.
23353 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
23354
23355 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23356
23357 * normal/auth.c (punishment_delay): New variable.
23358 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
23359 (grub_auth_check_authentication): Punish failed login attempts with
23360 an incremental (2^N) delay.
23361
23362 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23363
23364 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
23365 path with $(srcdir).
23366
23367 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
23368
23369 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
23370
23371 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23372
23373 * util/i386/coreboot/grub-mkrescue.in: New file.
23374 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
23375 variables.
23376
23377 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
23378 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
23379 * configure.ac: Add header and function checks to satisfy grub-mkisofs
23380 requirements.
23381 * util/mkisofs/defaults.h: New file.
23382 * util/mkisofs/eltorito.c: Likewise.
23383 * util/mkisofs/exclude.h: Likewise.
23384 * util/mkisofs/fnmatch.c: Likewise.
23385 * util/mkisofs/getopt.c: Likewise.
23386 * util/mkisofs/getopt1.c: Likewise.
23387 * util/mkisofs/hash.c: Likewise.
23388 * util/mkisofs/include/fctldefs.h: Likewise.
23389 * util/mkisofs/include/mconfig.h: Likewise.
23390 * util/mkisofs/include/prototyp.h: Likewise.
23391 * util/mkisofs/include/statdefs.h: Likewise.
23392 * util/mkisofs/iso9660.h: Likewise.
23393 * util/mkisofs/joliet.c: Likewise.
23394 * util/mkisofs/match.c: Likewise.
23395 * util/mkisofs/match.h: Likewise.
23396 * util/mkisofs/mkisofs.c: Likewise.
23397 * util/mkisofs/mkisofs.h: Likewise.
23398 * util/mkisofs/multi.c: Likewise.
23399 * util/mkisofs/name.c: Likewise.
23400 * util/mkisofs/rock.c: Likewise.
23401 * util/mkisofs/tree.c: Likewise.
23402 * util/mkisofs/write.c: Likewise.
23403
23404 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
23405
23406 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
23407 being insecure.
23408
23409 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
23410
23411 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
23412 `grub-mkimage' (and use $0 when possible).
23413
23414 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
23415
23416 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
23417 error message for excessively large memory map.
23418
23419 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
23420
23421 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
23422 executable bit.
23423
23424 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
23425
23426 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
23427 message for coreboot users.
23428
23429 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
23430
23431 Fix build with GNU gold.
23432
23433 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
23434 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
23435 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
23436 link addresses.
23437 * aclocal.m4: Likewise.
23438
23439 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
23440
23441 * configure.ac (AC_PREREQ): Bump to 2.59d.
23442 * INSTALL: Make it more clear when Autoconf and Ruby are
23443 needed and when to run `./autogen.sh'.
23444
23445 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23446
23447 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
23448 OSes.
23449
23450 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
23451
23452 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
23453
23454 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
23455
23456 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
23457 giving it to GNU Mach.
23458
23459 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
23460
23461 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
23462 GNU partition number to get internal GRUB partition number.
23463
23464 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
23465
23466 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
23467 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
23468
23469 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
23470
23471 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
23472 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
23473 case.
23474
23475 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
23476
23477 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
23478
23479 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
23480
23481 Fix build problem.
23482
23483 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
23484 `-isystem=$(srcdir)/include'.
23485
23486 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
23487
23488 * util/i386/pc/grub-install.in: Remove hint that device.map should be
23489 checked (grub-install doesn't currently rely on it).
23490
23491 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
23492
23493 Revert SVN r2660.
23494
23495 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
23496 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
23497 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
23498 * conf/i386-ieee1275.rmk: Likewise.
23499 * conf/i386-pc.rmk: Likewise.
23500 * conf/powerpc-ieee1275.rmk: Likewise.
23501 * conf/sparc64-ieee1275.rmk: Likewise.
23502 * conf/x86_64-efi.rmk: Likewise.
23503
23504 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
23505
23506 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
23507
23508 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
23509
23510 * include/grub/misc.h: Stop checking for APPLE_CC.
23511
23512 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
23513
23514 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
23515 doesn't cause an infinite call loop.
23516
23517 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
23518
23519 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
23520 strings.
23521
23522 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23523
23524 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
23525 variable.
23526 * Makefile.in: Likewise.
23527
23528 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23529
23530 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
23531
23532 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23533
23534 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
23535
23536 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23537
23538 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
23539
23540 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23541
23542 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
23543 from here ...
23544 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
23545
23546 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23547
23548 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
23549 in $(MAKEINFO) invocation. This makes it clear in output that
23550 errors are being ignored.
23551
23552 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23553
23554 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
23555 from here ...
23556 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
23557 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
23558 * conf/i386-ieee1275.rmk: Likewise.
23559 * conf/i386-pc.rmk: Likewise.
23560 * conf/powerpc-ieee1275.rmk: Likewise.
23561 * conf/sparc64-ieee1275.rmk: Likewise.
23562 * conf/x86_64-efi.rmk: Likewise.
23563
23564 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
23565
23566 * util/grub-editenv.c (main): If only a command is given, use
23567 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
23568 (usage): FILENAME is now optional and has a default.
23569
23570 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
23571
23572 Improve grub-mkconfig performance when there are several menu
23573 entries on a single filesystem.
23574
23575 * util/grub.d/10_linux.in (linux_entry): Cache the output of
23576 prepare_grub_to_access_device.
23577 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
23578 * util/grub.d/30_os-prober.in: Likewise.
23579
23580 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23581
23582 * util/grub.d/10_freebsd.in: Remove.
23583 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
23584 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
23585
23586 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23587
23588 * docs/grub.cfg: Fix example usage of *BSD loaders.
23589
23590 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23591
23592 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
23593 grub_util_error() call.
23594
23595 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23596
23597 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
23598 `reserved_first_sector' member.
23599 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
23600 `reserved_first_sector' to 1.
23601 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
23602 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
23603 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
23604 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
23605 filesystems which begin at first sector.
23606 (options): New option --skip-fs-probe.
23607 (main): Handle --skip-fs-probe and pass it to setup().
23608
23609 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23610
23611 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
23612 (memset): Fix function prototype.
23613
23614 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23615 2009-10-25 Vasily Averin <vvs@parallels.com>
23616
23617 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
23618 `dirent.direntlen == 0'.
23619
23620 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23621
23622 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
23623 `cpio'.
23624 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
23625
23626 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23627
23628 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
23629 `__trampoline_setup' and `__ucmpdi2'.
23630 * include/grub/powerpc/libgcc.h: Only export symbols for functions
23631 that libgcc provides.
23632
23633 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23634
23635 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
23636 * include/grub/sparc64/libgcc.h (memset): Likewise.
23637 * include/grub/misc.h (memset, memcmp): New function prototypes.
23638
23639 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23640
23641 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
23642 `cpio'.
23643 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
23644
23645 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23646
23647 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
23648 * docs/grub.cfg: Compensate for recent change in multiboot
23649 loader (since 2009-08-14 it won't pass filename to payload).
23650 * util/grub.d/10_hurd.in: Likewise.
23651
23652 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
23653
23654 * config.guess: Update to latest version from config git
23655 repository.
23656 * config.sub: Likewise.
23657
23658 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
23659
23660 Fix build on sparc64.
23661
23662 * configure.ac: Perform checks for libgcc symbols before
23663 adding `-nostdlib' to LDFLAGS.
23664
23665 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
23666
23667 Let user specify OpenBSD root device.
23668
23669 * loader/i386/bsd.c (openbsd_root): New variable.
23670 (openbsd_opts): New option 'root'.
23671 (OPENBSD_ROOT_ARG): New macro.
23672 (grub_openbsd_boot): Use 'openbsd_root'.
23673 (grub_cmd_openbsd): Fill 'openbsd_root'.
23674
23675 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
23676
23677 * NEWS: Misc adjustments.
23678
23679 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
23680
23681 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
23682
23683 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
23684
23685 * configure.ac: Bump version to 1.97.
23686
23687 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
23688
23689 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
23690 -mno-3dnow on x86 architectures. Some toolchains enable these
23691 features by default, but they rely on registers that aren't enabled
23692 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
23693
23694 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
23695
23696 Make entry text a bit more readable.
23697
23698 * util/grub.d/10_linux.in: Add `with' before `Linux'.
23699
23700 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
23701
23702 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
23703
23704 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
23705
23706 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
23707 operations.
23708
23709 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
23710
23711 * configure.ac: Add missing dollar.
23712
23713 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
23714
23715 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
23716
23717 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
23718 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
23719 exports.
23720 * include/grub/sparc64/libgcc.h: Likewise. Use
23721 preprocessor conditionals.
23722
23723 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
23724
23725 * conf/common.rmk (grub-dumpbios): Remove rule.
23726 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
23727 * util/grub-dumpbios.in: Remove file.
23728
23729 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
23730
23731 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
23732 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
23733
23734 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
23735 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
23736 users.
23737
23738 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
23739 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
23740 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
23741 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
23742 users.
23743
23744 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
23745
23746 * term/tparm.c: Switch to GPLv3.
23747
23748 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
23749
23750 * include/grub/i386/cpuid.h: Add header protection.
23751
23752 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
23753
23754 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
23755
23756 * include/grub/i386/cpuid.h: New file.
23757 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
23758 (has_longmode): Rename to ...
23759 (grub_cpuid_has_longmode): ... this. Update all users. Remove
23760 `static' attribute.
23761 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
23762 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
23763 on a CPU that doesn't implement AMD64 instruction set.
23764
23765 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
23766
23767 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
23768 that version.texi is rebuilt on version number changes.
23769
23770 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
23771
23772 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
23773 Fixes bug #27602.
23774
23775 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
23776
23777 * util/i386/pc/grub-install.in: Source
23778 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
23779 that the --grub-probe option will work.
23780 * util/sparc64/ieee1275/grub-install.in: Likewise.
23781
23782 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
23783
23784 * configure.ac: Bump version to 1.97~beta4.
23785
23786 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
23787
23788 Resync grub-mkdevicemap in x86_64-efi.
23789
23790 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
23791 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
23792 `util/devicemap.c'.
23793
23794 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
23795
23796 * util/grub-editenv.c (create_envblk_file): Write new block with a
23797 .new suffix and then rename it into place, to ensure atomic
23798 creation.
23799
23800 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
23801
23802 Do not automatically install headers.
23803
23804 * Makefile.in (include_DATA): Remove. Update all users.
23805
23806 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
23807
23808 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
23809 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
23810
23811 * util/osdetect.lua: Remove.
23812 * script/lua/lauxlib.c: Likewise.
23813 * script/lua/ldebug.c: Likewise.
23814 * script/lua/grub_main.c: Likewise.
23815 * script/lua/lauxlib.h: Likewise.
23816 * script/lua/ldebug.h: Likewise.
23817 * script/lua/ltablib.c: Likewise.
23818 * script/lua/liolib.c: Likewise.
23819 * script/lua/lstrlib.c: Likewise.
23820 * script/lua/lualib.h: Likewise.
23821 * script/lua/ldo.c: Likewise.
23822 * script/lua/ldump.c: Likewise.
23823 * script/lua/ldo.h: Likewise.
23824 * script/lua/loslib.c: Likewise.
23825 * script/lua/lundump.c: Likewise.
23826 * script/lua/grub_lib.c: Likewise.
23827 * script/lua/ldblib.c: Likewise.
23828 * script/lua/lundump.h: Likewise.
23829 * script/lua/lmem.c: Likewise.
23830 * script/lua/grub_lib.h: Likewise.
23831 * script/lua/lmathlib.c: Likewise.
23832 * script/lua/lstate.c: Likewise.
23833 * script/lua/ltm.c: Likewise.
23834 * script/lua/lvm.c: Likewise.
23835 * script/lua/lmem.h: Likewise.
23836 * script/lua/lstate.h: Likewise.
23837 * script/lua/ltm.h: Likewise.
23838 * script/lua/ltable.c: Likewise.
23839 * script/lua/lvm.h: Likewise.
23840 * script/lua/llex.c: Likewise.
23841 * script/lua/lgc.c: Likewise.
23842 * script/lua/grub_lua.h: Likewise.
23843 * script/lua/loadlib.c: Likewise.
23844 * script/lua/lfunc.c: Likewise.
23845 * script/lua/lopcodes.c: Likewise.
23846 * script/lua/lparser.c: Likewise.
23847 * script/lua/ltable.h: Likewise.
23848 * script/lua/llex.h: Likewise.
23849 * script/lua/lgc.h: Likewise.
23850 * script/lua/lfunc.h: Likewise.
23851 * script/lua/lbaselib.c: Likewise.
23852 * script/lua/lopcodes.h: Likewise.
23853 * script/lua/lparser.h: Likewise.
23854 * script/lua/lzio.c: Likewise.
23855 * script/lua/linit.c: Likewise.
23856 * script/lua/lobject.c: Likewise.
23857 * script/lua/llimits.h: Likewise.
23858 * script/lua/lstring.c: Likewise.
23859 * script/lua/lzio.h: Likewise.
23860 * script/lua/lapi.c: Likewise.
23861 * script/lua/lcode.c: Likewise.
23862 * script/lua/lua.h: Likewise.
23863 * script/lua/lobject.h: Likewise.
23864 * script/lua/lstring.h: Likewise.
23865 * script/lua/lapi.h: Likewise.
23866 * script/lua/lcode.h: Likewise.
23867 * script/lua/luaconf.h: Likewise.
23868
23869 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
23870
23871 * docs/grub.texi (Command-line and menu entry commands): Document
23872 date and echo commands.
23873
23874 2009-09-24 Pavel Roskin <proski@gnu.org>
23875
23876 * include/grub/kernel.h (struct grub_module_header): Remove
23877 `grub_module_header_types'. Make `type' unsigned. Make `size'
23878 32-bit on all platforms.
23879 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
23880 8-bit field. Use grub_host_to_target32() for `size'.
23881 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
23882 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
23883 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
23884
23885 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23886
23887 Fix "lost keypress" bug in at_keyboard.
23888
23889 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
23890 Checks for readyness of input buffer (without flushing it).
23891 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
23892 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
23893
23894 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23895
23896 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
23897 size check within GRUB_MACHINE_PCBIOS section.
23898
23899 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23900
23901 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
23902 return value.
23903 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
23904 KEYBOARD_ISREADY check.
23905 (grub_at_keyboard_checkkey): Rename to ...
23906 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
23907 Remove gratuitous cast.
23908
23909 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
23910
23911 * configure.ac: Call AC_PROG_MKDIR_P.
23912 * Makefile.in (docs/stamp-vti): Create docs directory. Create
23913 version.texi in $(builddir) rather than $(srcdir).
23914 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
23915 to makeinfo's @include search path.
23916
23917 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
23918
23919 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
23920
23921 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
23922
23923 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
23924 for `*.dpkg-new'.
23925
23926 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
23927
23928 Build info documentation. Some code borrowed from Automake.
23929
23930 * configure.ac: Check for makeinfo.
23931 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
23932 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
23933 docs/version.texi.
23934 (MOSTLYCLEANFILES): Add vti.tmp.
23935 (docs/version.texi, docs/stamp-vti): Update automatically.
23936 (docs/grub.info): Build info documentation. Use --force and ignore
23937 errors for now.
23938 (all-local): Add $(INFOS).
23939 (install-local): Install info files.
23940 (uninstall): Uninstall info files.
23941 * docs/version.texi: Remove from revision control. This file is
23942 automatically generated on build now.
23943 * gendistlist.sh: Add `*.info'.
23944
23945 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
23946
23947 * kern/term.c: Fix indentation.
23948
23949 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
23950
23951 * util/hostdisk.c: Fix a comment.
23952
23953 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
23954
23955 Fix regression introduced in r2539.
23956
23957 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
23958 to 0xA1.
23959
23960 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
23961
23962 * util/grub.d/30_os-prober.in: Don't throw away stderr from
23963 os-prober. Under normal operation, it does not print anything to
23964 stderr; if it does, we need to debug it, and throwing away stderr
23965 makes that excessively difficult.
23966
23967 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
23968
23969 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
23970
23971 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
23972
23973 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
23974 AC_LANG_PROGRAM from autoconf.
23975 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
23976 prototypes (fixes warning).
23977
23978 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
23979 `--disable-werror' was used.
23980
23981 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
23982
23983 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
23984 uninitialized `lastaddr'.
23985
23986 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23987
23988 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
23989
23990 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
23991
23992 * commands/test.c (get_fileinfo): Return immediately if
23993 grub_fs_probe fails.
23994
23995 2009-09-14 José Martínez <xosemp@gmail.com>
23996
23997 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
23998
23999 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
24000
24001 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
24002 output.
24003
24004 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
24005
24006 * configure.ac: Remove --enable-grub-pe2elf. Only build
24007 grub-pe2elf when needed by the build system itself.
24008 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
24009
24010 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
24011
24012 * configure.ac: Bump version to 1.97~beta3.
24013 * docs/version.texi: Likewise.
24014
24015 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
24016
24017 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
24018 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
24019 from here ...
24020 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
24021 (grub_linux_setup_video): ... to here (with some adjustments).
24022
24023 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
24024
24025 Fix memory corruption issue (spotted by Colin Watson).
24026
24027 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
24028 causing returned size to be stored in an incorrect memory location.
24029 Fix use of uninitialized value when storing the returned size.
24030
24031 2009-09-12 Yves Blusseau <blusseau@zetam.org>
24032
24033 Change clean rules to properly remove files
24034
24035 * genmk.rb: add new clean rules
24036 * Makefile.in (clean): add the new targets
24037 (mostlyclean): likewise
24038
24039 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
24040
24041 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
24042 to grub_uint64_t.
24043 * fs/ntfs.c (init_file): Understand 64-bit sizes for
24044 non-resident files.
24045
24046 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
24047
24048 * configure.ac: Don't look for help2man when cross-compiling. Fixes
24049 part of bug #27349.
24050
24051 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
24052
24053 * util/grub-mkconfig.in: Make the created config mode 400 and
24054 print a warning if it fails.
24055
24056 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
24057
24058 * util/grub.d/40_custom.in: Ask user to type custom entries below
24059 comment, rather than below 'exec tail' line.
24060
24061 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
24062
24063 * util/grub.d/40_custom.in: Make sure that the explanatory text is
24064 visible in grub.cfg.
24065
24066 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
24067
24068 * util/grub.d/40_custom.in: Make it a little clearer how to use this
24069 file.
24070
24071 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
24072
24073 * docs/grub.cfg: Add an example menu entry for memtest86+.
24074
24075 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
24076
24077 * config.guess: Update to latest version from config git.
24078 * config.sub: Likewise.
24079
24080 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
24081
24082 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
24083 unknown-command case. Fixes bug #27320.
24084
24085 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
24086
24087 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
24088 `help' if the command exists.
24089
24090 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
24091
24092 * INSTALL: Require GCC 4.1.3 or later.
24093
24094 2009-09-06 Yves Blusseau <blusseau@zetam.org>
24095
24096 * Makefile.in (RMKFILES): add i386-qemu.rmk
24097 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
24098 $(srcdir)/stamp-h.in
24099
24100 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
24101
24102 * util/grub-probe.c (probe): Comment out buggy codepath, which
24103 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
24104 should be re-enabled after 1.97.
24105
24106 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
24107
24108 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
24109 find searches for.
24110
24111 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24112
24113 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
24114 unnecessary calls to grub_error.
24115
24116 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
24117
24118 * NEWS: Mention `keystatus' and Unicode fonts.
24119
24120 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
24121
24122 * configure.ac: Bump version to 1.97~beta2.
24123 * docs/version.texi: Likewise.
24124
24125 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
24126
24127 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
24128 containing unwind information in some cases where it previously did
24129 not. Use -fno-dwarf2-cfi-asm if available to restore the old
24130 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
24131 discussion.
24132
24133 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
24134
24135 Embedding loadenv module into grub-emu
24136
24137 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
24138 commands/loadenv.c
24139 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
24140 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
24141 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
24142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
24143 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
24144 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
24145
24146 2009-09-03 Magnus Granberg <zorry@ume.nu>
24147
24148 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
24149 include -fPIE in the default specs.
24150 * configure.ac: Check if pie_possible is yes and add -fno-PIE
24151 to TARGET_CFLAGS.
24152
24153 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
24154
24155 * INSTALL: Note that GNU Bison 2.3 or later is required.
24156
24157 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
24158
24159 * kern/i386/pc/startup.S: Fix typo.
24160
24161 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24162
24163 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
24164 according to GCS.
24165
24166 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
24167
24168 * docs/grub.texi (Naming convention): Describe one-based partition
24169 numbering.
24170 (Device syntax): Likewise.
24171 (File name syntax): Likewise.
24172 (Block list syntax): Likewise.
24173 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
24174 menu.lst.
24175 (File name syntax): Likewise.
24176 (Command-line and menu entry commands): Document acpi, blocklist,
24177 crc, export, insmod, keystatus, ls, set, and unset commands.
24178
24179 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
24180
24181 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
24182 to avoid implying that only one of --shift, --ctrl, or --alt may be
24183 used.
24184
24185 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
24186
24187 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
24188 rather than comparing against S_IFREG, which will almost never work.
24189
24190 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24191
24192 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
24193 (write_blocklists): Likewise.
24194
24195 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
24196
24197 * script/lua/grub_lua.h (fputs): Supply a format string as the first
24198 argument to grub_printf.
24199
24200 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
24201
24202 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
24203 non GNU test.
24204
24205 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24206
24207 * kern/file.c (grub_file_read): Spelling fix
24208
24209 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24210
24211 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
24212 loading of headers in some cases.
24213
24214 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
24215
24216 * configure.ac: Bump version to 1.97~beta1.
24217 * docs/version.texi: Likewise.
24218
24219 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24220
24221 * include/grub/i386/xnu.h: Add license header.
24222 include grub/err.h explicitly.
24223
24224 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
24225
24226 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
24227 to `ufs' in the vfs.root.mountfrom kernel parameter.
24228
24229 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
24230
24231 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
24232
24233 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
24234 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
24235
24236 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
24237 `ARRAY_SIZE' macro.
24238
24239 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24240
24241 * kern/file.c (grub_file_read): Check offset.
24242 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
24243 * fs/jfs.c (grub_jfs_read_file): Likewise.
24244 * fs/ntfs.c (grub_ntfs_read): Likewise.
24245 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
24246 * fs/minix.c (grub_minix_read_file): Correct offset check.
24247 * fs/ufs.c (grub_ufs_read_file): Likewise.
24248
24249 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
24250
24251 * term/i386/pc/console.c (bios_data_area): Cast
24252 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
24253
24254 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24255
24256 1-bit optimised blitters.
24257
24258 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
24259 prototype.
24260 (grub_video_fbblit_replace_24bit_1bit): Likewise.
24261 (grub_video_fbblit_replace_16bit_1bit): Likewise.
24262 (grub_video_fbblit_replace_8bit_1bit): Likewise.
24263 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
24264 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
24265 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
24266 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
24267 function.
24268 (grub_video_fbblit_replace_24bit_1bit): Likewise.
24269 (grub_video_fbblit_replace_16bit_1bit): Likewise.
24270 (grub_video_fbblit_replace_8bit_1bit): Likewise.
24271 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
24272 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
24273 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
24274 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
24275 when possible.
24276 * video/video.c (grub_video_get_blit_format): Return
24277 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
24278
24279 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
24280
24281 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
24282 the first argument to grub_printf.
24283
24284 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
24285 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
24286
24287 Add `getkeystatus' terminal method. Add a new `keystatus' command
24288 to query it.
24289
24290 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
24291 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
24292 modifier key bitmasks.
24293 (struct grub_term_input): Add `getkeystatus' member.
24294 (grub_getkeystatus): Add prototype.
24295 * kern/term.c (grub_getkeystatus): New function.
24296
24297 * include/grub/i386/pc/memory.h
24298 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
24299 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
24300 Data Area layout.
24301 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
24302 (grub_console_term_input): Set `getkeystatus' member.
24303 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
24304 constants.
24305 (grub_usb_keyboard_getreport): Likewise.
24306 (grub_usb_keyboard_checkkey): Likewise.
24307 (grub_usb_keyboard_getkeystatus): New function.
24308 (grub_usb_keyboard_term): Set `getkeystatus' member.
24309
24310 * commands/keystatus.c: New file.
24311 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
24312 (keystatus_mod_SOURCES): New variable.
24313 (keystatus_mod_CFLAGS): Likewise.
24314 (keystatus_mod_LDFLAGS): Likewise.
24315 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
24316 commands/keystatus.c.
24317 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24318 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24319 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24320 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24321 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24322 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24323
24324 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24325
24326 Split befs.mod and afs.mod into *_be.mod and *.mod
24327
24328 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
24329 (grub_fstest_SOURCES): Likewise.
24330 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
24331 (afs_be_mod_SOURCES): New variable.
24332 (afs_be_mod_CFLAGS): Likewise.
24333 (afs_be_mod_LDFLAGS): Likewise.
24334 (befs_be_mod_SOURCES): Likewise.
24335 (befs_be_mod_CFLAGS): Likewise.
24336 (befs_be_mod_LDFLAGS): Likewise.
24337 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
24338 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24339 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24340 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24341 (grub_emu_SOURCES): Likewise.
24342 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24343 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24344 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24345 * fs/afs_be.c: New file.
24346 * fs/befs_be.c: New file.
24347 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
24348 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
24349 (U16): Replaced with ...
24350 (grub_afs_to_cpu16): ...this. All users updated.
24351 (U32): Replaced with ...
24352 (grub_afs_to_cpu32): ...this. All users updated.
24353 (U64): Replaced with ...
24354 (grub_afs_to_cpu64): ...this. All users updated.
24355 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
24356 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
24357 (grub_afs_validate_sblock): Check only one endianness.
24358 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
24359 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
24360 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
24361 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
24362 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
24363 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
24364 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
24365 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
24366
24367 2009-08-26 Bean <bean123ch@gmail.com>
24368
24369 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
24370 64-bit number.
24371 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
24372 (grub_xfs_inode_block): Change return type to grub_uint64_t.
24373 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
24374
24375 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24376
24377 NetBSD memory map support.
24378
24379 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
24380 (grub_netbsd_btinfo_mmap_header): New structure.
24381 (grub_netbsd_btinfo_mmap_entry): Likewise.
24382 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
24383
24384 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24385
24386 Enable bsd.mod on coreboot.
24387
24388 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
24389 (bsd_mod_SOURCES): New variable.
24390 (bsd_mod_CFLAGS): Likewise.
24391 (bsd_mod_LDFLAGS): Likewise.
24392 (bsd_mod_ASFLAGS): Likewise.
24393 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
24394 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
24395
24396 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24397
24398 Cleanup NetBSD root support.
24399
24400 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
24401 grub_bsd_get_device.
24402 Fix typo.
24403
24404 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
24405
24406 * util/grub.d/00_header.in: Move check for the video backend of
24407 gfxterm from here ...
24408 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
24409 a suitable video backend.
24410
24411 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24412
24413 Fix breakage in grub-setup.
24414
24415 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
24416 "msdos_partition_map".
24417
24418 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24419
24420 Fix breakage in normal/auth.c.
24421
24422 * normal/auth.c (grub_iswordseparator): New function.
24423
24424 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24425
24426 Authentication support.
24427
24428 * commands/password.c: New file.
24429 * conf/common.rmk (pkglib_MODULES): Add password.mod.
24430 (password_mod_SOURCES): New variable.
24431 (password_mod_CFLAGS): Likewise.
24432 (password_mod_LDFLAGS): Likewise.
24433 (normal_mod_SOURCES): Add normal/auth.c.
24434 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
24435 normal/auth.c.
24436 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24437 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24438 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24439 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24440 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24441 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24442 * include/grub/auth.h: New file.
24443 * include/grub/err.h (grub_err_t): New enum value
24444 GRUB_ERR_ACCESS_DENIED.
24445 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
24446 'users'.
24447 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
24448 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
24449 users updated.
24450 * normal/auth.c: New file.
24451 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
24452 (grub_cmdline_run): Don't allow to go to command line without
24453 authentication.
24454 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
24455 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
24456 menuentry without superuser rights.
24457 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
24458 user isn't a superuser.
24459
24460 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24461
24462 Save space by inlining misc.c functions.
24463
24464 * kern/misc.c (grub_iswordseparator): Made static.
24465 * kern/misc.c (grub_strcat): Moved from here ...
24466 * include/grub/misc.h (grub_strcat): ... here. Inlined.
24467 * kern/misc.c (grub_strncat): Moved from here ...
24468 * include/grub/misc.h (grub_strncat): ... here. Inlined.
24469 * kern/misc.c (grub_strcasecmp): Moved from here ...
24470 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
24471 * kern/misc.c (grub_strncasecmp): Moved from here ...
24472 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
24473 * kern/misc.c (grub_isalpha): Moved from here ...
24474 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
24475 * kern/misc.c (grub_isdigit): Moved from here ...
24476 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
24477 * kern/misc.c (grub_isgraph): Moved from here ...
24478 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
24479 * kern/misc.c (grub_tolower): Moved from here ...
24480 * include/grub/misc.h (grub_tolower): ... here. Inlined.
24481
24482 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24483
24484 * script/sh/function.c (grub_script_function_find): Cut error message
24485 not to flood terminal.
24486 * script/sh/lexer.c (grub_script_yylex): Remove command line length
24487 limit.
24488 * script/sh/script.c (grub_script_arg_add): Duplicate string.
24489
24490 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
24491
24492 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
24493 `report' grub_uint8_t *.
24494 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
24495 Use a 50-millisecond timeout rather than just repeating
24496 grub_usb_keyboard_getreport 50 times.
24497 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
24498
24499 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24500
24501 Rename *_partition_map to part_*
24502
24503 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
24504 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
24505 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
24506 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
24507 All users updated.
24508 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
24509 All users updated.
24510 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
24511 * util/grub-probe.c (probe_partmap): Don't transform partition name
24512 to get module name.
24513
24514 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24515
24516 Fix OpenBSD and NetBSD support.
24517
24518 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
24519 memory address conflict.
24520 (OPENBSD_MMAP_ACPI): New definition.
24521 (OPENBSD_MMAP_NVS): Likewise.
24522 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
24523 and OPENBSD_MMAP_NVS.
24524 Add memory map terminator
24525 Explicit cast when calling grub_unix_real_boot.
24526 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
24527
24528 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24529
24530 Let user specify NetBSD root device.
24531
24532 * loader/i386/bsd.c (netbsd_root): New variable.
24533 (netbsd_opts): New option 'root'.
24534 (NETBSD_ROOT_ARG): New macro.
24535 (grub_netbsd_boot): Use 'netbsd_root'.
24536 (grub_bsd_unload): Free 'netbsd_root'.
24537 (grub_cmd_netbsd): Fill 'netbsd_root'.
24538
24539 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24540
24541 Support for 64-bit NetBSD.
24542
24543 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
24544 point when booting non-FreeBSD.
24545
24546 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24547
24548 Support --no-smp and --no-acpi for NetBSD.
24549
24550 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
24551 (NETBSD_AB_NOACPI): Likewise.
24552 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
24553 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
24554
24555 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
24556
24557 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
24558 errors.
24559 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
24560 errors. Call grub_error when needed.
24561
24562 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
24563
24564 * commands/search.c (search_fs): Try searching without autoload first.
24565 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
24566 filesystem module explicitly for faster booting.
24567
24568 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
24569
24570 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
24571
24572 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
24573
24574 * util/grub.d/30_os-prober.in: Disable os-prober if
24575 `GRUB_DISABLE_OS_PROBER' was set to true.
24576
24577 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
24578
24579 * partmap/pc.c: Rename to ...
24580 * partmap/msdos.c: ... this. Update all users.
24581 (grub_pc_partition_map): Rename to ...
24582 (grub_msdos_partition_map): ... this. Update all users.
24583
24584 * parttool/pcpart.c: Rename to ...
24585 * parttool/msdospart.c: ... this. Update all users.
24586
24587 * include/grub/pc_partition.h: Rename to ...
24588 * include/grub/msdos_partition.h: ... this. Update all users.
24589 (grub_pc_partition_bsd_entry): Rename to ...
24590 (grub_msdos_partition_bsd_entry): ... this. Update all users.
24591 (grub_pc_partition_disk_label): Rename to ...
24592 (grub_msdos_partition_disk_label): ... this. Update all users.
24593 (grub_pc_partition_entry): Rename to ...
24594 (grub_msdos_partition_entry): ... this. Update all users.
24595 (grub_pc_partition_mbr): Rename to ...
24596 (grub_msdos_partition_mbr): ... this. Update all users.
24597 (grub_pc_partition): Rename to ...
24598 (grub_msdos_partition): ... this. Update all users.
24599 (grub_pc_partition_is_empty): Rename to ...
24600 (grub_msdos_partition_is_empty): ... this. Update all users.
24601 (grub_pc_partition_is_extended): Rename to ...
24602 (grub_msdos_partition_is_extended): ... this. Update all users.
24603 (grub_pc_partition_is_bsd): Rename to ...
24604 (grub_msdos_partition_is_bsd): ... this. Update all users.
24605
24606 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
24607 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
24608 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
24609 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
24610 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
24611 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
24612 (gpt_mod_LDFLAGS): Rename to ...
24613 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
24614 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
24615 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
24616 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
24617 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
24618 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
24619 (part_gpt_mod_LDFLAGS): ... this.
24620 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
24621 `pcpart.mod' to `msdospart.mod'.
24622 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
24623 to ...
24624 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
24625 (msdospart_mod_LDFLAGS): ... this.
24626
24627 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
24628
24629 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
24630 (openbsd_opts): Likewise.
24631 (netbsd_opts): Likewise.
24632 (freebsd_flags): Added 0 terminator.
24633 (openbsd_flags): Likewise.
24634 (netbsd_flags): Likewise.
24635 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
24636 (grub_cmd_freebsd): Transformed into extended command.
24637 (grub_cmd_openbsd): Likewise.
24638 (grub_cmd_netbsd): Likewise.
24639 (cmd_freebsd): Changed type to grub_extcmd_t.
24640 (cmd_openbsd): Likewise.
24641 (cmd_netbsd): Likewise.
24642 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
24643 grub_cmd_openbsd as extended commands.
24644 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
24645 cmd_netbsd and cmd_openbsd
24646
24647 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
24648
24649 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
24650
24651 2009-08-21 Pavel Roskin <proski@gnu.org>
24652
24653 * Makefile.in (install-local): When checking if a file is in the
24654 build directory, use "test -e" to detect symlinks.
24655
24656 * Makefile.in (install-local): Remove all files in
24657 $(DESTDIR)$(pkglibdir) before installing new files there.
24658
24659 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
24660
24661 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
24662 grub-mkelfimage.
24663
24664 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
24665
24666 * util/grub-mkconfig.in: Don't use gfxterm by default if not
24667 explicitly specified by the user.
24668
24669 2009-08-18 Pavel Roskin <proski@gnu.org>
24670
24671 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
24672 grub_uint8_t pointer for data.
24673 * include/grub/fbutil.h (struct grub_video_fbblit_info):
24674 Likewise.
24675 * video/fb/fbutil.c: Remove unnecessary casts.
24676
24677 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
24678
24679 VBE cleanup.
24680
24681 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
24682 (grub_vbe_set_video_mode): Save active mode info
24683 only after setting the mode.
24684 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
24685 second argument.
24686
24687 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
24688
24689 Rename variables for clarity.
24690
24691 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
24692 (active_vbe_mode_info): ... this. All users updated.
24693 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
24694 All users updated.
24695 (initial_mode): Rename to ...
24696 (initial_vbe_mode): ... this. All users updated.
24697 (mode_in_use): Rename to ..
24698 (vbe_mode_in_use): ... this. All users updated.
24699 (mode_list): Rename to ..
24700 (vbe_mode_list): ... this. All users updated.
24701 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
24702 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
24703 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
24704 'mode_list_size' to 'vbe_mode_list_size'.
24705 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
24706 'best_mode_info' to 'best_vbe_mode_info' and
24707 'best_mode' to 'best_vbe_mode'
24708
24709 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
24710
24711 Remove duplicate grub_video_fb_get_video_ptr.
24712
24713 * include/grub/fbutil.h (get_data_ptr): Rename to ...
24714 (grub_video_fb_get_video_ptr): ... this.
24715 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
24716 * video/fb/fbutil.c: Add comment about addressing.
24717 (get_data_ptr): Rename to ...
24718 (grub_video_fb_get_video_ptr): ... this. All users updated.
24719 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
24720
24721 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
24722
24723 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
24724 grub_dprintf() that was just added.
24725
24726 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
24727
24728 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
24729 (DEFAULT_VIDEO_MODE): Remove macros.
24730 (grub_linux_boot): Remove assumption that Linux has FB support,
24731 and use "text" as default video mode.
24732
24733 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
24734
24735 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
24736 grub_dprintf.
24737 * fs/fat.c (grub_fat_read_data): Likewise.
24738
24739 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24740
24741 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
24742 payload.
24743 (grub_module): Likewise.
24744
24745 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24746
24747 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
24748 mbi->cmdline but free playground.
24749
24750 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24751
24752 Handle group offset on UFS1.
24753
24754 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
24755 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
24756
24757 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24758
24759 Split ufs.mod into ufs1.mod and ufs2.mod.
24760
24761 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
24762 (grub_fstest_SOURCES): Likewise.
24763 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
24764 (ufs_mod_SOURCES): Remove.
24765 (ufs_mod_CFLAGS): Likewise.
24766 (ufs_mod_LDFLAGS): Likewise.
24767 (ufs1_mod_SOURCES): New variable.
24768 (ufs1_mod_CFLAGS): Likewise.
24769 (ufs1_mod_LDFLAGS): Likewise.
24770 (ufs2_mod_SOURCES): New variable.
24771 (ufs2_mod_CFLAGS): Likewise.
24772 (ufs2_mod_LDFLAGS): Likewise.
24773 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
24774 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
24775 Likewise.
24776 (grub_emu_SOURCES): Likewise.
24777 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24778 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24779 (grub_setup_SOURCES): Likewise.
24780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24781 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
24782 (grub_setup_SOURCES): Likewise.
24783 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
24784 Likewise.
24785 * fs/ufs2.c: New file.
24786 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
24787
24788 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24789
24790 Framebuffer split.
24791
24792 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
24793 subsystem at the end.
24794 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
24795 (video_fb_mod_SOURCES): New variable.
24796 (video_fb_mod_CFLAGS): Likewise.
24797 (video_fb_mod_LDFLAGS): Likewise.
24798 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
24799 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
24800 * video/i386/pc/vbeblit.c: Moved from here ...
24801 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
24802 * video/i386/pc/vbefill.c: Moved from here ...
24803 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
24804 * video/i386/pc/vbeutil.c: Moved from here ...
24805 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
24806 * include/grub/i386/pc/vbeblit.h: Moved from here ...
24807 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
24808 * include/grub/i386/pc/vbefill.h: Moved from here ...
24809 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
24810 * include/grub/i386/pc/vbeutil.h: Moved from here ...
24811 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
24812 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
24813 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
24814 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
24815 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
24816 (grub_video_adapter): Added 'get_info_and_fini'.
24817 (grub_video_get_info_and_fini): New prototype.
24818 (grub_video_set_mode): make modestring const char *.
24819 * loader/i386/linux.c (grub_linux_setup_video): Use
24820 grub_video_get_info_and_fini.
24821 (grub_linux_boot): Move modesetting just before booting.
24822 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
24823 grub_video_get_info_and_fini.
24824 * video/i386/pc/vbe.c: Moved framebuffer part ...
24825 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
24826 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
24827 grub_video_fbstd_colors and grub_video_fb_set_palette.
24828 (grub_video_vbe_init): Clear 'framebuffer' variable and use
24829 grub_video_fb_init.
24830 (grub_video_vbe_fini): Use grub_video_fb_fini.
24831 (grub_video_vbe_setup): Use framebuffer.render_target instead of
24832 render_target and use grub_video_fb_set_active_render_target and
24833 grub_video_fb_set_palette.
24834 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
24835 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
24836 (grub_video_vbe_adapter): Use framebuffer.
24837 * video/video.c (grub_video_get_info_and_fini): New function.
24838 (grub_video_set_mode): Make modestring const char *.
24839 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
24840 values are already initialised.
24841
24842 2009-08-14 Pavel Roskin <proski@gnu.org>
24843
24844 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
24845 ABS and APPLE_CC.
24846 * boot/i386/pc/diskboot.S: Likewise.
24847 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
24848 sectors allow compilation on MacOSX.
24849 * conf/i386-pc.rmk: Enable unconditional compilation of
24850 lnxboot.img.
24851
24852 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
24853
24854 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
24855 * util/grub.d/00_header.in: Enter interruptible sleep if
24856 GRUB_HIDDEN_TIMEOUT is set.
24857
24858 2009-08-13 Yves Blusseau <blusseau@zetam.org>
24859
24860 * include/grub/symbol.h: Add the LOCAL macro.
24861 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
24862 starting with "L_".
24863
24864 2009-08-13 Pavel Roskin <proski@gnu.org>
24865
24866 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
24867 any modern compilers we support.
24868
24869 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
24870 Use local labels starting with "L_" so that Apple assembler
24871 knows they are local.
24872
24873 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
24874
24875 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
24876 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
24877 (bsd_kernel_types): ... this enum.
24878
24879 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
24880 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
24881 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
24882
24883 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
24884 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
24885 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
24886 messages.
24887
24888 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
24889
24890 * util/grub-dumpdevtree: Moved from here ...
24891 * util/i386/efi/grub-dumpdevtree: ... to here.
24892 (hexify): New function. Converts a string to its hex version.
24893 Generate hex versions of "efi" and "device-properties" by calling
24894 hexify() on the ASCII strings rather than by hardcoding numbers.
24895
24896 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
24897
24898 * fs/jfs.c: Update copyright year.
24899
24900 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
24901
24902 * util/grub.d/00_header.in: Fix a comment.
24903 * util/grub.d/10_linux.in: Likewise.
24904 * util/grub.d/10_windows.in: Likewise.
24905 * util/grub.d/10_hurd.in: Likewise.
24906
24907 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
24908
24909 * util/grub-mkconfig.in: Allow the user to specify the used font
24910 with GRUB_FONT.
24911
24912 2009-08-08 Pavel Roskin <proski@gnu.org>
24913
24914 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
24915 available, xfs.mod needs it now.
24916
24917 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
24918 the "g" modifier in sed when the intention is to strip something
24919 once. This fixes comparison of kernels with multiple dashes.
24920
24921 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
24922 on it. Add missing space before closing bracket. Fix
24923 misleading formatting.
24924
24925 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24926
24927 * docs/grub.texi: Major overhaul. Remove all sections that are
24928 specific to GRUB Legacy, or mostly composed of Legacy-specific
24929 information.
24930
24931 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24932
24933 * docs/version.texi: New file. Provides version information for
24934 grub.texi.
24935
24936 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24937
24938 * docs/grub.texi: Update CVS information to SVN.
24939 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
24940
24941 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24942
24943 * util/grub-mkconfig.in: Remove a wrong `fi'.
24944
24945 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24946
24947 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
24948 (grub_jfs_uuid): New function.
24949 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
24950
24951 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24952
24953 * util/grub-mkconfig_lib.in (font_path): Move the functionality
24954 of it to ...
24955 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
24956 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
24957
24958 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24959
24960 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
24961 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
24962 Update all users.
24963
24964 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
24965 not just "vmlinu[zx]".
24966 Moved from here ...
24967 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
24968 all users.
24969
24970 * util/grub.d/10_linux.in (find_latest): Moved from here ...
24971 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
24972 all users.
24973
24974 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24975
24976 * util/grub.d/10_freebsd.in: Use an absolute device path for
24977 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
24978
24979 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
24980
24981 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
24982 handling of multiple abstraction modules.
24983
24984 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
24985
24986 Fix a bug resulting in black screen when loading Linux using a
24987 packed video mode.
24988
24989 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
24990 function.
24991
24992 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
24993 (grub_vbe_bios_getset_dac_palette_width): New function.
24994 (grub_vbe_bios_get_dac_palette_width)
24995 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
24996 grub_vbe_bios_getset_dac_palette_width()).
24997
24998 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
24999 check for return status.
25000 (grub_vbe_get_video_mode_info): When getting information for a packed
25001 mode (<= 8 bpp), obtain DAC palette width using
25002 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
25003 {red,green,blue}_mark_size.
25004
25005 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
25006
25007 * commands/search.c (options): Fix help output to match actual code.
25008
25009 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
25010
25011 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
25012 of homegrown code.
25013
25014 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25015
25016 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
25017 on XFS or ReiserFS.
25018
25019 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25020
25021 Support Apple partition map with sector size different from 512 bytes.
25022
25023 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
25024 (apple_partition_map_iterate): Respect 'aheader.blocksize'
25025 and 'apart.partmap_size'.
25026
25027 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25028 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
25029
25030 Fix cpuid command.
25031
25032 * commands/i386/cpuid.c (options): New variable.
25033 (grub_cmd_cpuid): Return real error.
25034 (GRUB_MOD_INIT(cpuid)): Declare options.
25035
25036 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
25037
25038 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
25039 valid.
25040
25041 2009-07-31 Bean <bean123ch@gmail.com>
25042
25043 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
25044 log2_inode.
25045 (grub_fshelp_node): Move inode field to the end.
25046 (grub_xfs_data): Remove inode field.
25047 (grub_xfs_inode_block): Calculate inode size using sblock.
25048 (grub_xfs_inode_offset): Likewise.
25049 (grub_xfs_read_inode): Calculate inode size using sblock.
25050 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
25051 (grub_xfs_iterate_dir): Calculate inode size using sblock.
25052 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
25053 to match inode size.
25054 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
25055 not accessible when data is null.
25056 (grub_xfs_open): Likewise.
25057
25058 2009-07-31 Bean <bean123ch@gmail.com>
25059
25060 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
25061 Don't change pv->disk if it's already set.
25062
25063 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
25064 (grub_raid_register): ... here.
25065 (grub_raid_rescan): Removed.
25066
25067 * include/grub/raid.h (grub_raid_rescan): Removed.
25068
25069 * util/grub-fstest.c: Remove include file <grub/raid.h>.
25070 (fstest): Replace grub_raid_rescan with module fini function followed
25071 by init function.
25072
25073 * util/grub-probe.c: Add include file <grub/raid.h>.
25074 (probe_raid_level): New function.
25075 (probe): Detect abstraction by walking the disk device, support two
25076 level of abstraction (LVM on RAID) when detecting partition map.
25077
25078 2009-07-31 Pavel Roskin <proski@gnu.org>
25079
25080 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
25081 to grub_zalloc(), it was erroneous.
25082 Reported by Bean <bean123ch@gmail.com>
25083
25084 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
25085
25086 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
25087 embedding zone, not only the first one.
25088
25089 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
25090
25091 * term/gfxterm.c (clear_char): New function.
25092 (grub_virtual_screen_setup): Use clear_char.
25093 (scroll_up): Likewise.
25094 (grub_virtual_screen_cls): Likewise.
25095
25096 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
25097
25098 * util/deviceiter.c (get_acceleraid_disk_name): New static
25099 function.
25100 (grub_util_iterate_devices): Handle Accelraid devices.
25101 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
25102
25103 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
25104
25105 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
25106 separator for the suggested gfxpayload string (';' collides with the
25107 parser and needs escaping).
25108
25109 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
25110
25111 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
25112 Clear direction flag before jumping to OS.
25113 (grub_multiboot2_real_boot): Likewise.
25114
25115 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
25116
25117 * util/i386/pc/grub-install: Fix parsing of --disk-module
25118 option.
25119
25120 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
25121
25122 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
25123 when embedding.
25124
25125 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
25126
25127 * util/grub-mkconfig.in (package_version): New variable.
25128 Use it do display the version.
25129
25130 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
25131
25132 * kern/file.c (grub_file_open): Revert to previous check with
25133 grub_errno.
25134
25135 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
25136
25137 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
25138 from help line. It's out of sync with code.
25139
25140 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
25141
25142 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
25143 entries on failed boot.
25144
25145 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
25146
25147 * kern/file.c (grub_file_open): Fix an error check.
25148
25149 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
25150
25151 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
25152 partition map couldn't be identified.
25153
25154 2009-07-23 Pavel Roskin <proski@gnu.org>
25155
25156 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
25157 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
25158 case of little endian words becomes just an optimization.
25159 Respect const modifier.
25160 (md5_final): Use code that doesn't depend on endianness.
25161
25162 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
25163 to avoid loss of upper bits if align is unsigned and shorter
25164 than addr.
25165
25166 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
25167
25168 UUID support for UFS
25169
25170 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
25171 (grub_ufs_uuid): New function.
25172 (grub_ufs_fs): add .uuid
25173
25174 2009-07-21 Pavel Roskin <proski@gnu.org>
25175
25176 * kern/dl.c (grub_dl_check_header): Make static.
25177
25178 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
25179
25180 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
25181 add drivemap for Vista. It breaks Windows 7.
25182
25183 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
25184
25185 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
25186 128 bytes
25187
25188 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25189
25190 Add BFS support
25191
25192 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
25193 (grub_fstest_SOURCES): Likewise.
25194 (pkglib_MODULES): Add befs.mod.
25195 (befs_mod_SOURCES): New variable.
25196 (befs_mod_CFLAGS): Likewise.
25197 (befs_mod_LDFLAGS): Likewise.
25198 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25199 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25200 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25201 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25202 (grub_setup_SOURCES): Likewise.
25203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25204 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25205 (grub_setup_SOURCES): Likewise.
25206 * fs/befs.c: New file.
25207 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
25208 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
25209 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
25210 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
25211 (B_KEY_INDEX_ALIGN): New declaration.
25212 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
25213 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
25214 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
25215 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
25216 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
25217 (grub_afs_mount) [MODE_BFS]: Likewise.
25218 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
25219 (grub_afs_fs): Use GRUB_AFS_FSNAME
25220 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
25221 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
25222 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
25223 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
25224
25225 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
25226
25227 * util/getroot.c (find_root_device): Add support for MacOSX.
25228 * util/hostdisk.c: Likewise.
25229
25230 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25231
25232 * font/font.c (find_glyph): Check whether a font is present to avoid
25233 segmentation fault.
25234
25235 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
25236
25237 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
25238
25239 2009-07-20 Pavel Roskin <proski@gnu.org>
25240
25241 * configure.ac: Trim excessively wordy excuses.
25242
25243 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25244
25245 Add symlink, mtime and label support to AtheFS.
25246
25247 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
25248 (grub_afs_iterate_dir): Handle symlinks.
25249 (grub_afs_open): Use grub_afs_read_symlink.
25250 (grub_afs_dir): Likewise.
25251 Pass mtime.
25252 (grub_afs_label): New function.
25253 (grub_afs_fs): Add grub_afs_label.
25254 (grub_afs_read_symlink): New function.
25255
25256 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25257
25258 Fix AtheFS support.
25259
25260 * fs/afs.c: Fix comments style.
25261 (grub_afs_blockrun): Declare as packed.
25262 (grub_afs_datastream): Likewise.
25263 (grub_afs_bnode): Likewise.
25264 (grub_afs_btree): Likewise.
25265 (grub_afs_sblock): Likewise.
25266 Declare `name' as char.
25267 (grub_afs_inode): Declare as packed.
25268 Change void *vnode to grub_uint32_t unused.
25269 (grub_afs_iterate_dir): Check that key_size is positive.
25270 (grub_afs_mount): Don't read superblock twice.
25271 (grub_afs_dir): Don't free node in case of error,
25272 grub_fshelp_find_file already handles this.
25273 (grub_afs_open): Likewise.
25274
25275 2009-07-19 Pavel Roskin <proski@gnu.org>
25276
25277 * Makefile.in: Remove LIBLZO and enable_lzo.
25278 * conf/i386-pc.rmk: Remove lzo support.
25279 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
25280 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
25281 support.
25282 * kern/i386/pc/lzo1x.S: Remove.
25283 * kern/i386/pc/startup.S: Remove lzo support.
25284 * util/i386/pc/grub-mkimage.c: Likewise.
25285
25286 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
25287
25288 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
25289 * fs/xfs.c (grub_xfs_dir): Likewise.
25290 * fs/afs.c (grub_afs_dir): Likewise.
25291 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
25292 (grub_iso9660_open): Likewise.
25293 * fs/jfs.c (grub_jfs_open): Likewise.
25294 * fs/ext2.c (grub_ext2_dir): Likewise.
25295 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
25296 * script/sh/lexer.c (grub_script_yylex): Likewise.
25297
25298 2009-07-16 Pavel Roskin <proski@gnu.org>
25299
25300 * configure.ac: Never add "-c" to CFLAGS.
25301
25302 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
25303
25304 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
25305 grub_cv_cc_efiemu should be used.
25306
25307 * configure.ac: Typo fixes.
25308
25309 * kern/mm.c (grub_zalloc): New function.
25310 (grub_debug_zalloc): Likewise.
25311 * include/grub/mm.h: Declare grub_zalloc() and
25312 grub_debug_zalloc().
25313 * util/misc.c (grub_zalloc): New function.
25314 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
25315 instead of grub_malloc(), remove unneeded initializations.
25316 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
25317 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
25318 * commands/parttool.c (grub_cmd_parttool): Likewise.
25319 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25320 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
25321 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
25322 * disk/usbms.c (grub_usbms_finddevs): Likewise.
25323 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
25324 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
25325 (grub_cmd_efiemu_pnvram): Likewise.
25326 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
25327 * fs/iso9660.c (grub_iso9660_mount): Likewise.
25328 (grub_iso9660_iterate_dir): Likewise.
25329 * fs/jfs.c (grub_jfs_opendir): Likewise.
25330 * fs/ntfs.c (list_file): Likewise.
25331 (grub_ntfs_mount): Likewise.
25332 * kern/disk.c (grub_disk_open): Likewise.
25333 * kern/dl.c (grub_dl_load_core): Likewise.
25334 * kern/elf.c (grub_elf_file): Likewise.
25335 * kern/env.c (grub_env_context_open): Likewise.
25336 (grub_env_set): Likewise.
25337 (grub_env_set_data_slot): Likewise.
25338 * kern/file.c (grub_file_open): Likewise.
25339 * kern/fs.c (grub_fs_blocklist_open): Likewise.
25340 * loader/i386/multiboot.c (grub_module): Likewise.
25341 * loader/xnu.c (grub_xnu_create_key): Likewise.
25342 (grub_xnu_create_value): Likewise.
25343 * normal/main.c (grub_normal_add_menu_entry): Likewise.
25344 (read_config_file): Likewise.
25345 * normal/menu_entry.c (make_screen): Likewise.
25346 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25347 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
25348 * script/sh/script.c (grub_script_parse): Likewise.
25349 * video/bitmap.c (grub_video_bitmap_create): Likewise.
25350 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
25351 * video/readers/png.c (grub_png_output_byte): Likewise.
25352 (grub_video_reader_png): Likewise.
25353
25354 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25355
25356 Enable all targets that can be built by default
25357
25358 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
25359 grub-mkfont and grub-fstest if they can be built
25360
25361 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25362
25363 Fix hang and segmentation fault in grub-emu-usb
25364
25365 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
25366 * util/usb.c (grub_libusb_devices): likewise
25367 (grub_libusb_init): rename to ...
25368 (GRUB_MOD_INIT (libusb)):...this
25369 (grub_libusb_fini): rename to ..
25370 (GRUB_MOD_FINI (libusb)):...this
25371 * disk/usbms.c (grub_usbms_transfer): fix retry logic
25372 * include/grub/disk.h (grub_raid_init): removed, it's useless
25373 (grub_raid_fini): likewise
25374 (grub_lvm_init): likewise
25375 (grub_lvm_fini): likewise
25376 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
25377 by grub_init_all
25378
25379 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25380
25381 Fix libusb
25382
25383 * Makefile.in (LIBUSB): new macro
25384 * genmk.rb (Utility/print_tail): new method
25385 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
25386 (top level): call util.print_tail at the end.
25387
25388 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25389
25390 Make FreeBSD accept zpool.cache
25391
25392 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
25393 type is /boot/zfs/zpool.cache
25394
25395 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25396
25397 Fix 64-bit efiemu
25398
25399 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
25400 correct wrong typedef
25401 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
25402
25403 2009-07-15 Pavel Roskin <proski@gnu.org>
25404
25405 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
25406 * kern/disk.c (struct grub_disk_cache): Likewise.
25407
25408 * commands/probe.c (options): Typo fix.
25409
25410 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
25411 Increase to 0x5a to accommodate FAT32. Adjust other offsets
25412 accordingly.
25413 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
25414
25415 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
25416 the end of "Error" to make the message more readable.
25417
25418 * boot/i386/pc/boot.S (kernel_segment): Remove.
25419 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
25420 for destination.
25421
25422 * boot/i386/pc/boot.S (boot_version): Remove.
25423 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
25424 Remove.
25425
25426 * include/grub/i386/pc/boot.h: Sort all offsets.
25427 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
25428 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
25429 * boot/i386/pc/boot.S: Assert location of every offset listed in
25430 include/grub/i386/pc/boot.h.
25431
25432 2009-07-13 Pavel Roskin <proski@gnu.org>
25433
25434 * include/grub/i386/coreboot/machine.h: Rename
25435 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
25436 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
25437 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
25438
25439 * kern/dl.c: Force native word size to suppress warnings when
25440 compiling grub-emu.
25441
25442 * kern/device.c (grub_device_iterate): Change struct part_ent to
25443 hold the name, not a pointer to it. Use one grub_malloc() per
25444 partition, not two. Free partition_name if grub_malloc() fails.
25445 Set ents to NULL only before grub_partition_iterate() is called.
25446
25447 2009-07-11 Bean <bean123ch@gmail.com>
25448
25449 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
25450 childname.
25451
25452 2009-07-10 Bean <bean123ch@gmail.com>
25453 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
25454
25455 * kern/ieee1275/openfw.c (grub_children_iterate)
25456 (grub_devalias_iterate): Fix size evaluation for property or path
25457 strings, which was broken since r2132.
25458
25459 2009-07-07 Pavel Roskin <proski@gnu.org>
25460
25461 * commands/search.c (search_file): Merge into ...
25462 (search_fs): ... this. Accept search type as argument.
25463 (grub_cmd_search): Pass search type to search_fs().
25464
25465 * include/grub/util/console.h: New file.
25466 * util/console.c: Use it instead of grub/machine/console.h.
25467 * util/grub-emu.c: Likewise.
25468
25469 * lib/arg.c (find_long_option): Remove.
25470 (find_long): Add `len' argument, make `s' const char *.
25471 (grub_arg_parse): Parse long options in place, not in a
25472 temporary buffer.
25473
25474 2009-07-06 Pavel Roskin <proski@gnu.org>
25475
25476 * commands/search.c (search_fs): Fix potential NULL pointer
25477 dereference.
25478
25479 * commands/search.c (search_fs): Replace QUID macro with quid_fn
25480 function pointer.
25481
25482 2009-07-06 Daniel Mierswa <impulze@impulze.org>
25483
25484 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
25485 comparison.
25486
25487 2009-07-05 Pavel Roskin <proski@gnu.org>
25488
25489 * include/grub/i386/linux.h (struct linux_kernel_params):
25490 Restore padding3, it's still needed.
25491
25492 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
25493 FreeBSD.
25494 * util/osdetect.lua: Likewise.
25495
25496 2009-07-05 Bean <bean123ch@gmail.com>
25497
25498 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
25499
25500 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
25501 (grub_lua_getenv): Likewise.
25502 (grub_lua_setenv): Likewise.
25503 (save_errno): New function.
25504 (push_result): Likewise.
25505 (grub_lua_enum_device): Likewise.
25506 (grub_lua_enum_file): Likewise.
25507 (grub_lua_file_open): Likewise.
25508 (grub_lua_file_close): Likewise.
25509 (grub_lua_file_seek): Likewise.
25510 (grub_lua_file_read): Likewise.
25511 (grub_lua_file_getline): Likewise.
25512 (grub_lua_file_getsize): Likewise.
25513 (grub_lua_file_getpos): Likewise.
25514 (grub_lua_file_eof): Likewise.
25515 (grub_lua_file_exist): Likewise.
25516 (grub_lua_add_menu): Likewise.
25517
25518 * script/lua/grub_lua.h (isupper): New inline function.
25519 (islower): Likewise.
25520 (ispunct): Likewise.
25521 (isxdigit): Likewise.
25522 (strcspn): Change to normal function.
25523 (strpbkr): New function declaration.
25524 (memchr): Likewise.
25525
25526 * script/lua/grub_main.c (scan_str): New function.
25527 (strcspn): Likewise.
25528 (strpbrk): Likewise.
25529 (memchr): Likewise.
25530
25531 * script/lua/linit.c (lualibs): Enable the string library.
25532
25533 * util/osdetect.lua: New file.
25534
25535 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
25536
25537 * include/grub/i386/linux.h (struct linux_kernel_params): Add
25538 `capabilities' member.
25539
25540 2009-07-02 Pavel Roskin <proski@gnu.org>
25541
25542 * genparttoollist.sh: Add missing newline at the end.
25543
25544 2009-07-01 Pavel Roskin <proski@gnu.org>
25545
25546 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
25547
25548 * util/hostdisk.c (open_device): Remove `const' from
25549 `sysctl_size', as sysctlbyname() can change it (in this case it
25550 doesn't actually happen).
25551
25552 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
25553 using signed long int constants.
25554
25555 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
25556 constant to avoid a warning on FreeBSD.
25557
25558 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
25559 where it's needed.
25560
25561 * Makefile.in: Install include/grub/machine symlink.
25562
25563 * Makefile.in: When installing symlinks, use "cp -fR", which
25564 works on FreeBSD and MacOSX.
25565 From Yves Blusseau <cl7m42e02@sneakemail.com>
25566
25567 * kern/dl.c (grub_dl_resolve_symbol): Make static.
25568 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
25569
25570 * util/misc.c: Move grub_reboot() and grub_halt() ...
25571 * util/grub-emu.c: ... here. Make main_env static.
25572 * include/grub/util/misc.h: Remove main_env.
25573
25574 * kern/mm.c: Use correct format to print size_t.
25575
25576 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
25577 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
25578 * kern/powerpc/dl.c: Likewise.
25579 * kern/sparc64/dl.c: Likewise.
25580 * kern/x86_64/dl.c: Likewise.
25581
25582 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
25583
25584 Fix grub-emu build on sparc64-ieee1275.
25585
25586 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
25587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
25588
25589 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
25590
25591 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
25592 (grub_reboot, grub_halt): New functions.
25593
25594 * util/i386/pc/misc.c: Delete. Update all users.
25595 * util/sparc64/ieee1275/misc.c: Likewise.
25596 * util/powerpc/ieee1275/misc.c: Likewise.
25597
25598 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
25599
25600 * conf/i386.rmk (setjmp_mod_SOURCES)
25601 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
25602 * conf/common.rmk (setjmp_mod_SOURCES)
25603 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
25604 to use $(target_cpu).
25605 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
25606 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
25607 * conf/powerpc-ieee1275.rmk: Likewise.
25608 * conf/sparc64-ieee1275.rmk: Likewise.
25609
25610 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
25611 $(target_cpu) for kern/$(target_cpu)/dl.c.
25612 * conf/i386-efi.rmk: Likewise.
25613 * conf/i386-ieee1275.rmk: Likewise.
25614 * conf/x86_64-efi.rmk: Likewise.
25615 * conf/i386-coreboot.rmk: Likewise.
25616 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
25617 $(target_cpu) for kern/$(target_cpu)/dl.c and for
25618 kern/$(target_cpu)/cache.S.
25619 * conf/sparc64-ieee1275.rmk: Likewise.
25620
25621 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
25622
25623 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
25624 type to `grub_uint8_t', and adjust `padding9' accordingly.
25625
25626 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
25627
25628 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
25629
25630 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
25631 assembly in final jump, using register constraints.
25632
25633 (grub_linux_boot): For text mode, initialize `have_vga' using
25634 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
25635
25636 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
25637 right before the final jump.
25638
25639 Set `video_mode' to 0x3.
25640
25641 Document initialization of `video_page', `video_mode' and
25642 `video_ega_bx'.
25643
25644 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
25645
25646 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
25647 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
25648 and set GRUB_LINUX_FLAG_QUIET appropriately.
25649
25650 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
25651
25652 Fix build on Debian / sparc.
25653
25654 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
25655
25656 2009-06-28 Pavel Roskin <proski@gnu.org>
25657
25658 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
25659 fix a warning.
25660
25661 * util/grub.d/10_linux.in: Match SUSE style initrd names.
25662
25663 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
25664
25665 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
25666 `err'.
25667
25668 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
25669
25670 Revert r2338.
25671
25672 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
25673 file can't be opened. grub_file_open() is already supposed to set
25674 grub_errno / grub_errmsg appropriately.
25675 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
25676
25677 2009-06-27 Pavel Roskin <proski@gnu.org>
25678 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
25679
25680 * include/grub/dl.h: Include grub/elf.h.
25681 (struct grub_dl): Add symtab field.
25682 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
25683 GRUB_MODULES_MACHINE_READONLY.
25684 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
25685 of the header for read-only modules.
25686 (grub_dl_unload): Free mod->symtab for read-only modules.
25687 * kern/i386/dl.c: Use mod->symtab.
25688 * kern/powerpc/dl.c: Likewise.
25689 * kern/sparc64/dl.c: Likewise.
25690 * kern/x86_64/dl.c: Likewise.
25691
25692 * conf/i386-qemu.rmk: New file.
25693 * kern/i386/qemu/startup.S: Likewise.
25694 * kern/i386/qemu/mmap.c: Likewise.
25695 * boot/i386/qemu/boot.S: Likewise.
25696 * include/grub/i386/qemu/time.h: Likewise.
25697 * include/grub/i386/qemu/serial.h: Likewise.
25698 * include/grub/i386/qemu/kernel.h: Likewise.
25699 * include/grub/i386/qemu/console.h: Likewise.
25700 * include/grub/i386/qemu/boot.h: Likewise.
25701 * include/grub/i386/qemu/init.h: Likewise.
25702 * include/grub/i386/qemu/machine.h: Likewise.
25703 * include/grub/i386/qemu/loader.h: Likewise.
25704 * include/grub/i386/qemu/memory.h: Likewise.
25705
25706 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
25707 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
25708 [qemu] (pkglib_IMAGES): Add `boot.img'.
25709 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
25710 [qemu] (boot_img_FORMAT): New variables.
25711 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
25712 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
25713 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
25714 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25715 [qemu] (kernel_img_FORMAT): New variables.
25716
25717 * configure.ac: Recognise `i386-qemu'.
25718
25719 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
25720 (for no compression).
25721 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
25722 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
25723 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
25724 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
25725 ifdefs).
25726
25727 2009-06-27 Pavel Roskin <proski@gnu.org>
25728
25729 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
25730 read.
25731 * efiemu/prepare32.c: Likewise.
25732 * efiemu/prepare64.c: Likewise.
25733
25734 2009-06-26 Pavel Roskin <proski@gnu.org>
25735
25736 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
25737 * include/grub/elf.h: Define symbols without "32" or "64" based
25738 on GRUB_TARGET_WORDSIZE.
25739 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
25740 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
25741 ELF definitions.
25742 * efiemu/loadcore64.c: Likewise.
25743 * loader/i386/bsd32.c: Likewise.
25744 * loader/i386/bsd64.c: Likewise.
25745 * kern/dl.c: Remove own ELF definitions.
25746 * util/i386/efi/grub-mkimage.c: Likewise.
25747
25748 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
25749
25750 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
25751 segment 0x0 unconditionally, because the reference generated by
25752 GAS is an absolute address.
25753
25754 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25755
25756 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
25757 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
25758
25759 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25760
25761 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
25762 indexes. Check for -f explicitly.
25763 (search_file): Improve error message.
25764 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
25765
25766 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25767
25768 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
25769 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
25770
25771 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25772
25773 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
25774 * conf/i386-ieee1275.rmk: Likewise.
25775 * conf/i386-coreboot.rmk: Likewise.
25776
25777 * kern/i386/pc/startup.S (grub_stop): Remove function.
25778 * kern/i386/ieee1275/startup.S: Likewise.
25779 * kern/i386/coreboot/startup.S: Likewise.
25780 * kern/i386/misc.S (grub_stop): New function.
25781
25782 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25783
25784 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
25785 * kern/i386/realmode.S (real_to_prot): ... to here.
25786
25787 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25788
25789 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
25790 with `kernel.img'.
25791 (kernel_elf_SOURCES): Rename to ...
25792 (kernel_img_SOURCES): ... this.
25793 (kernel_elf_HEADERS): Rename to ...
25794 (kernel_img_HEADERS): ... this. Update all users.
25795 (kernel_elf_ASFLAGS): Rename to ...
25796 (kernel_img_ASFLAGS): ... this.
25797 (kernel_elf_CFLAGS): Rename to ...
25798 (kernel_img_CFLAGS): ... this.
25799 (kernel_elf_LDFLAGS): Rename to ...
25800 (kernel_img_LDFLAGS): ... this.
25801 * conf/i386-coreboot.rmk: Likewise.
25802 * conf/powerpc-ieee1275.rmk: Likewise.
25803
25804 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
25805 with "kernel.img".
25806
25807 2009-06-21 Pavel Roskin <proski@gnu.org>
25808
25809 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
25810 to match nested functions.
25811 * loader/sparc64/ieee1275/linux.c: Likewise.
25812
25813 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
25814
25815 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
25816
25817 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
25818 all i386 platforms.
25819
25820 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
25821
25822 Fix asm file handling on ELF, and remove workarounds.
25823
25824 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
25825 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
25826 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
25827 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
25828
25829 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
25830
25831 Load BSD ELF modules
25832
25833 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
25834 and loader/i386/bsd64.c
25835 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
25836 (FREEBSD_MODTYPE_ELF_MODULE): New definition
25837 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
25838 (grub_freebsd_load_elfmodule32): New declaration
25839 (grub_freebsd_load_elfmoduleobj64): Likewise
25840 (grub_freebsd_load_elf_meta32): Likewise
25841 (grub_freebsd_load_elf_meta64): Likewise
25842 (grub_freebsd_add_meta): Likewise
25843 (grub_freebsd_add_meta_module): Likewise
25844 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
25845 (grub_freebsd_add_meta_module): Likewise and move module-specific
25846 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
25847 (grub_cmd_freebsd): Add elf-kernel specific parts
25848 based on grub_freebsd_add_meta_module
25849 (grub_cmd_freebsd_module): Add type parsing moved from
25850 grub_freebsd_add_meta_module
25851 (grub_cmd_freebsd_module_elf): New function
25852 (cmd_freebsd_module_elf): New variable
25853 (GRUB_MOD_INIT): Register freebsd_module_elf
25854 * loader/i386/bsd32.c: New file
25855 * loader/i386/bsd64.c: Likewise
25856 * loader/i386/bsdXX.c: Likewise
25857 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
25858 (grub_elf64_load): Likewise
25859 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
25860 All users updated
25861 (grub_elf64_load_hook_t): Likewise
25862
25863 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
25864
25865 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
25866 variable.
25867 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
25868 don't write a menu entry for recovery mode.
25869
25870 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
25871
25872 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
25873 after it's no longer needed.
25874
25875 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
25876
25877 * include/grub/i386/loader.h (grub_linux_prot_size)
25878 (grub_linux_tmp_addr, grub_linux_real_addr)
25879 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
25880 GRUB_MACHINE_PCBIOS.
25881 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
25882 common grub_util_info() call to ...
25883 (generate_image): ... here.
25884 Fix use of uninitialized memory, comparison of signed with
25885 unsigned integers and memory leak.
25886 Remove bogus module address message.
25887
25888 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
25889
25890 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
25891 grub_raid_register
25892 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
25893
25894 2009-06-19 Pavel Roskin <proski@gnu.org>
25895
25896 * configure.ac: Remove stray AC_MSG_CHECKING.
25897
25898 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
25899
25900 * disk/scsi.c (grub_scsi_open): use continue instead of big if
25901
25902 2009-06-18 Pavel Roskin <proski@gnu.org>
25903
25904 * conf/common.rmk: Add fs_file.mod.
25905 * disk/fs_file.c: New file.
25906 * include/grub/disk.h (enum grub_disk_dev_id): Add
25907 GRUB_DISK_DEVICE_FILE_ID.
25908
25909 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25910
25911 Fix build with Apple's toolchain. Part 2
25912
25913 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
25914 a fake start
25915
25916 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25917
25918 Fix build with Apple's toolchain. Part 1
25919
25920 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
25921 for long calls
25922 * configure.ac: remove a leftover AC_MSG_RESULT
25923 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
25924 Apple's toolchain
25925
25926 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25927
25928 Fix warnings
25929
25930 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
25931 (decomp_block): initialize ch
25932 use grub_memcpy instead of memcpy
25933
25934 2009-06-17 Pavel Roskin <proski@gnu.org>
25935
25936 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
25937 version, use declarations needed to use vga_text as the startup
25938 console.
25939
25940 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
25941 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
25942 the kernel.
25943 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
25944 and grub_at_keyboard_fini(), it's done on module load and
25945 unload.
25946
25947 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
25948
25949 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
25950 file can't be found.
25951 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
25952
25953 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
25954
25955 Fix newline handling
25956
25957 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
25958 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
25959 (grub_script_yylex): don't segfault on unterminated script
25960 newline terminates command and variable
25961
25962 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
25963
25964 avoid double grub_adjust_range call. Bug reported by David Simner
25965
25966 * kern/disk.c (grub_disk_write): change to raw disk access before
25967 calling disk_read
25968
25969 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
25970
25971 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
25972 spaces, for the benefit of help2man.
25973 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25974
25975 2009-06-16 Pavel Roskin <proski@gnu.org>
25976
25977 * kern/i386/halt.c: Include grub/machine/init.h.
25978 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
25979
25980 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
25981
25982 * util/grub.d/30_os-prober.in: Use ${root} in the generated
25983 drivemap menuentry.
25984
25985 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
25986
25987 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
25988 `echo' command.
25989
25990 2009-06-16 Pavel Roskin <proski@gnu.org>
25991
25992 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
25993 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
25994 save %dx, we only need %dl and we never change it.
25995 * boot/i386/pc/cdboot.S: Don't set the root drive.
25996 * boot/i386/pc/pxeboot.S: Likewise.
25997 * include/grub/i386/pc/boot.h: Remove
25998 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
25999 GRUB_BOOT_MACHINE_DRIVE_CHECK.
26000 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
26001 * kern/i386/pc/init.c (make_install_device): Remove references
26002 to grub_root_drive.
26003 * kern/i386/pc/startup.S: Likewise.
26004 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
26005
26006 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
26007
26008 xnu_uuid command
26009
26010 * commands/xnu_uuid.c: new file
26011 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
26012 (xnu_uuid_mod_SOURCES): new variable
26013 (xnu_uuid_mod_CFLAGS): likewise
26014 (xnu_uuid_mod_LDFLAGS): likewise
26015 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
26016 * conf/i386-ieee1275.rmk: likewise
26017 * conf/i386-pc.rmk: likewise
26018 * conf/powerpc-ieee1275.rmk: likewise
26019 * conf/sparc64-ieee1275.rmk: likewise
26020 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
26021
26022 2009-06-16 Pavel Roskin <proski@gnu.org>
26023
26024 * configure.ac: Avoid '==' in test command, it's not portable.
26025
26026 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
26027
26028 Probe command
26029
26030 * commands/probe.c: new file
26031 * conf/common.rmk (pkglib_MODULES): add probe.mod
26032 (probe_mod_SOURCES): new variable
26033 (probe_mod_CFLAGS): likewise
26034 (probe_mod_LDFLAGS): likewise
26035 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
26036 * conf/i386-ieee1275.rmk: likewise
26037 * conf/i386-pc.rmk: likewise
26038 * conf/powerpc-ieee1275.rmk: likewise
26039 * conf/sparc64-ieee1275.rmk: likewise
26040
26041 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
26042
26043 Fix handling of string like \"hello\" and "a
26044 b"
26045
26046 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
26047 (grub_script_yylex): fix parsing of quoting, escaping and newline
26048
26049 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
26050
26051 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
26052 handling
26053
26054 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
26055
26056 * util/grub-mkconfig.in: Fix parsing of --output option.
26057
26058 2009-06-12 Pavel Roskin <proski@gnu.org>
26059
26060 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
26061 genmk.rb don't need to be generated or installed.
26062
26063 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26064
26065 * commands/i386/pc/drivemap_int13h.S: add more comments
26066
26067 2009-06-11 Pavel Roskin <proski@gnu.org>
26068
26069 * Makefile.in (uninstall): Uninstall manuals.
26070
26071 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
26072 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
26073 and update-grub_lib in two places.
26074 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
26075
26076 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
26077 a compiler warning.
26078
26079 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
26080 `entry_lo' to fix variable shadowing.
26081
26082 2009-06-11 Christian Franke <franke@computer.org>
26083
26084 * kern/misc.c (__enable_execute_stack): Add missing return type
26085 to prevent gcc warning.
26086
26087 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
26088
26089 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
26090
26091 2009-06-11 Pavel Roskin <proski@gnu.org>
26092
26093 * Makefile.in: Don't rely on any scripts being executable.
26094 Always use $(SHELL) to run shell scripts.
26095
26096 * configure.ac: Always define ___main if using -nostdlib. This
26097 fixes tests on Cygwin.
26098
26099 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
26100
26101 UDF fix
26102
26103 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
26104 is in bytes and not in blocks
26105
26106 2009-06-11 Pavel Roskin <proski@gnu.org>
26107
26108 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
26109 warning.
26110
26111 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
26112
26113 * util/grub.d/30_os-prober.in: Fix a comment. Source
26114 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
26115 to set the root device. Place drivemap command in the generated
26116 chain entry.
26117
26118 2009-06-11 Pavel Roskin <proski@gnu.org>
26119
26120 * configure.ac: Remove host_m32. Issues with 64-bit utilities
26121 have long been resolved.
26122
26123 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
26124
26125 * util/grub.d/10_linux.in: Capitalise "Linux".
26126
26127 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
26128
26129 2009-06-11 Pavel Roskin <proski@gnu.org>
26130
26131 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
26132 fix a gcc warning and ensure that the function won't ever exit.
26133
26134 * kern/i386/ieee1275/init.c: Add missing prototype for
26135 grub_stop_floppy().
26136
26137 * loader/ieee1275/multiboot2.c [__i386__]: Include
26138 grub/cpu/multiboot.h.
26139
26140 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
26141 casts to short - they are not portable and cause warnings. Fix
26142 use of uninitialized values in input_buf. Use ARRAY_SIZE.
26143
26144 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
26145
26146 Drivemap fixes
26147
26148 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
26149 new function
26150 (grub_get_root_biosnumber_saved): new variable
26151 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
26152 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
26153 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
26154 %dx after the call if necessary
26155 * conf/common.rmk (pkglib_MODULES): remove boot.mod
26156 (boot_mod_SOURCES): remove
26157 (boot_mod_CFLAGS): remove
26158 (boot_mod_LDFLAGS): remove
26159 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
26160 (boot_mod_SOURCES): new variable
26161 (boot_mod_CFLAGS): likewise
26162 (boot_mod_LDFLAGS): likewise
26163 * conf/i386-efi.rmk: likewise
26164 * conf/i386-ieee1275.rmk: likewise
26165 * conf/i386-pc.rmk: likewise
26166 * conf/powerpc-ieee1275.rmk: likewise
26167 * conf/sparc64-ieee1275.rmk: likewise
26168 * conf/x86_64-efi.rmk: likewise
26169 * include/grub/i386/pc/biosnum.h: new file
26170 * lib/i386/pc/biosnum.c: likewise
26171 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
26172 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
26173 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
26174
26175 2009-06-10 Pavel Roskin <proski@gnu.org>
26176
26177 * io/gzio.c (test_header): Don't reuse one buffer for all data.
26178 Use separate variables. Read only the file size at the end, but
26179 not the checksum that we don't use.
26180
26181 * kern/file.c (grub_file_read): Use void pointer for the buffer.
26182 Adjust all callers.
26183
26184 * kern/ieee1275/openfw.c: Remove libc includes.
26185 * kern/ieee1275/cmain.c: Likewise.
26186 * include/grub/ieee1275/ieee1275.h: Likewise.
26187
26188 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
26189 compiler warnings.
26190
26191 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
26192
26193 * Makefile.in: Remove all trailing whitespace.
26194 * conf/i386-pc.rmk: Likewise.
26195 * conf/powerpc-ieee1275.rmk: Likewise.
26196 * conf/sparc64-ieee1275.rmk: Likewise.
26197 * docs/grub.texi: Likewise.
26198 * docs/texinfo.tex: Likewise.
26199 * disk/fs_uuid.c: Likewise.
26200 * disk/lvm.c: Likewise.
26201 * disk/scsi.c: Likewise.
26202 * disk/ata.c: Likewise.
26203 * disk/ieee1275/ofdisk.c: Likewise.
26204 * disk/i386/pc/biosdisk.c: Likewise.
26205 * disk/host.c: Likewise.
26206 * disk/raid.c: Likewise.
26207 * disk/efi/efidisk.c: Likewise.
26208 * disk/usbms.c: Likewise.
26209 * disk/memdisk.c: Likewise.
26210 * disk/loopback.c: Likewise.
26211 * kern/powerpc/dl.c: Likewise.
26212 * kern/device.c: Likewise.
26213 * kern/dl.c: Likewise.
26214 * kern/sparc64/dl.c: Likewise.
26215 * kern/ieee1275/ieee1275.c: Likewise.
26216 * kern/term.c: Likewise.
26217 * kern/fs.c: Likewise.
26218 * kern/i386/dl.c: Likewise.
26219 * kern/i386/pc/startup.S: Likewise.
26220 * kern/i386/pc/init.c: Likewise.
26221 * kern/i386/pc/mmap.c: Likewise.
26222 * kern/i386/pc/lzo1x.S: Likewise.
26223 * kern/i386/ieee1275/init.c: Likewise.
26224 * kern/i386/realmode.S: Likewise.
26225 * kern/i386/tsc.c: Likewise.
26226 * kern/partition.c: Likewise.
26227 * kern/corecmd.c: Likewise.
26228 * kern/file.c: Likewise.
26229 * kern/efi/efi.c: Likewise.
26230 * kern/efi/init.c: Likewise.
26231 * kern/efi/mm.c: Likewise.
26232 * kern/main.c: Likewise.
26233 * kern/err.c: Likewise.
26234 * kern/env.c: Likewise.
26235 * kern/disk.c: Likewise.
26236 * kern/generic/millisleep.c: Likewise.
26237 * kern/generic/rtc_get_time_ms.c: Likewise.
26238 * kern/misc.c: Likewise.
26239 * kern/parser.c: Likewise.
26240 * genmk.rb: Likewise.
26241 * configure.ac: Likewise.
26242 * boot/i386/pc/diskboot.S: Likewise.
26243 * boot/i386/pc/pxeboot.S: Likewise.
26244 * boot/i386/pc/boot.S: Likewise.
26245 * boot/i386/pc/lnxboot.S: Likewise.
26246 * boot/i386/pc/cdboot.S: Likewise.
26247 * parttool/pcpart.c: Likewise.
26248 * video/readers/tga.c: Likewise.
26249 * video/video.c: Likewise.
26250 * video/bitmap.c: Likewise.
26251 * lib/envblk.c: Likewise.
26252 * lib/i386/setjmp.S: Likewise.
26253 * fs/xfs.c: Likewise.
26254 * fs/afs.c: Likewise.
26255 * fs/fat.c: Likewise.
26256 * fs/ntfs.c: Likewise.
26257 * fs/udf.c: Likewise.
26258 * fs/affs.c: Likewise.
26259 * fs/iso9660.c: Likewise.
26260 * fs/hfs.c: Likewise.
26261 * fs/fshelp.c: Likewise.
26262 * fs/ext2.c: Likewise.
26263 * fs/jfs.c: Likewise.
26264 * fs/reiserfs.c: Likewise.
26265 * fs/hfsplus.c: Likewise.
26266 * fs/minix.c: Likewise.
26267 * fs/cpio.c: Likewise.
26268 * fs/sfs.c: Likewise.
26269 * fs/ufs.c: Likewise.
26270 * efiemu/prepare.c: Likewise.
26271 * efiemu/loadcore_common.c: Likewise.
26272 * efiemu/runtime/efiemu.sh: Likewise.
26273 * efiemu/runtime/efiemu.S: Likewise.
26274 * efiemu/runtime/efiemu.c: Likewise.
26275 * efiemu/pnvram.c: Likewise.
26276 * efiemu/main.c: Likewise.
26277 * efiemu/i386/pc/cfgtables.c: Likewise.
26278 * efiemu/i386/loadcore64.c: Likewise.
26279 * efiemu/i386/loadcore32.c: Likewise.
26280 * efiemu/loadcore.c: Likewise.
26281 * efiemu/symbols.c: Likewise.
26282 * efiemu/mm.c: Likewise.
26283 * include/grub/autoefi.h: Likewise.
26284 * include/grub/datetime.h: Likewise.
26285 * include/grub/term.h: Likewise.
26286 * include/grub/hfs.h: Likewise.
26287 * include/grub/lvm.h: Likewise.
26288 * include/grub/i386/tsc.h: Likewise.
26289 * include/grub/i386/linux.h: Likewise.
26290 * include/grub/i386/xnu.h: Likewise.
26291 * include/grub/i386/efiemu.h: Likewise.
26292 * include/grub/i386/pc/biosdisk.h: Likewise.
26293 * include/grub/i386/pc/memory.h: Likewise.
26294 * include/grub/i386/pc/vbe.h: Likewise.
26295 * include/grub/parttool.h: Likewise.
26296 * include/grub/video.h: Likewise.
26297 * include/grub/memory.h: Likewise.
26298 * include/grub/fs.h: Likewise.
26299 * include/grub/partition.h: Likewise.
26300 * include/grub/xnu.h: Likewise.
26301 * include/grub/efi/api.h: Likewise.
26302 * include/grub/efi/pe32.h: Likewise.
26303 * include/grub/efi/memory.h: Likewise.
26304 * include/grub/multiboot.h: Likewise.
26305 * include/grub/usbdesc.h: Likewise.
26306 * include/grub/multiboot2.h: Likewise.
26307 * include/grub/acpi.h: Likewise.
26308 * include/grub/efiemu/efiemu.h: Likewise.
26309 * include/grub/disk.h: Likewise.
26310 * include/grub/ieee1275/ieee1275.h: Likewise.
26311 * include/grub/net.h: Likewise.
26312 * include/grub/machoload.h: Likewise.
26313 * include/grub/macho.h: Likewise.
26314 * include/multiboot.h: Likewise.
26315 * genmoddep.awk: Likewise.
26316 * normal/main.c: Likewise.
26317 * normal/menu_entry.c: Likewise.
26318 * normal/menu_viewer.c: Likewise.
26319 * normal/completion.c: Likewise.
26320 * normal/cmdline.c: Likewise.
26321 * normal/misc.c: Likewise.
26322 * normal/datetime.c: Likewise.
26323 * bus/usb/usbtrans.c: Likewise.
26324 * bus/usb/ohci.c: Likewise.
26325 * bus/usb/uhci.c: Likewise.
26326 * bus/usb/usb.c: Likewise.
26327 * mmap/efi/mmap.c: Likewise.
26328 * mmap/i386/pc/mmap_helper.S: Likewise.
26329 * mmap/i386/pc/mmap.c: Likewise.
26330 * mmap/i386/mmap.c: Likewise.
26331 * mmap/i386/uppermem.c: Likewise.
26332 * mmap/mmap.c: Likewise.
26333 * commands/acpi.c: Likewise.
26334 * commands/echo.c: Likewise.
26335 * commands/blocklist.c: Likewise.
26336 * commands/loadenv.c: Likewise.
26337 * commands/usbtest.c: Likewise.
26338 * commands/boot.c: Likewise.
26339 * commands/parttool.c: Likewise.
26340 * commands/search.c: Likewise.
26341 * commands/cat.c: Likewise.
26342 * commands/i386/pc/play.c: Likewise.
26343 * commands/i386/pc/drivemap.c: Likewise.
26344 * commands/i386/pc/vbeinfo.c: Likewise.
26345 * commands/i386/pc/acpi.c: Likewise.
26346 * commands/i386/pc/vbetest.c: Likewise.
26347 * commands/ls.c: Likewise.
26348 * commands/cmp.c: Likewise.
26349 * commands/test.c: Likewise.
26350 * commands/efi/acpi.c: Likewise.
26351 * commands/gptsync.c: Likewise.
26352 * commands/help.c: Likewise.
26353 * partmap/amiga.c: Likewise.
26354 * partmap/apple.c: Likewise.
26355 * partmap/acorn.c: Likewise.
26356 * partmap/pc.c: Likewise.
26357 * partmap/sun.c: Likewise.
26358 * partmap/gpt.c: Likewise.
26359 * script/sh/lexer.c: Likewise.
26360 * script/sh/function.c: Likewise.
26361 * font/font.c: Likewise.
26362 * font/font_cmd.c: Likewise.
26363 * loader/powerpc/ieee1275/linux.c: Likewise.
26364 * loader/efi/chainloader.c: Likewise.
26365 * loader/multiboot_loader.c: Likewise.
26366 * loader/macho.c: Likewise.
26367 * loader/i386/multiboot.c: Likewise.
26368 * loader/i386/linux.c: Likewise.
26369 * loader/i386/pc/linux.c: Likewise.
26370 * loader/i386/pc/multiboot2.c: Likewise.
26371 * loader/i386/pc/chainloader.c: Likewise.
26372 * loader/i386/pc/xnu.c: Likewise.
26373 * loader/i386/bsd_trampoline.S: Likewise.
26374 * loader/i386/efi/linux.c: Likewise.
26375 * loader/i386/multiboot_elfxx.c: Likewise.
26376 * loader/i386/bsd_helper.S: Likewise.
26377 * loader/i386/bsd.c: Likewise.
26378 * loader/i386/linux_trampoline.S: Likewise.
26379 * loader/i386/xnu_helper.S: Likewise.
26380 * loader/i386/xnu.c: Likewise.
26381 * loader/i386/bsd_pagetable.c: Likewise.
26382 * loader/i386/multiboot_helper.S: Likewise.
26383 * loader/xnu.c: Likewise.
26384 * loader/xnu_resume.c: Likewise.
26385 * io/gzio.c: Likewise.
26386 * term/efi/console.c: Likewise.
26387 * term/terminfo.c: Likewise.
26388 * term/ieee1275/ofconsole.c: Likewise.
26389 * term/i386/pc/serial.c: Likewise.
26390 * term/i386/pc/vesafb.c: Likewise.
26391 * term/i386/pc/vga.c: Likewise.
26392 * term/usb_keyboard.c: Likewise.
26393 * term/gfxterm.c: Likewise.
26394 * aclocal.m4: Likewise.
26395 * util/lvm.c: Likewise.
26396 * util/grub.d/30_os-prober.in: Likewise.
26397 * util/grub.d/10_hurd.in: Likewise.
26398 * util/console.c: Likewise.
26399 * util/grub-macho2img.c: Likewise.
26400 * util/grub-probe.c: Likewise.
26401 * util/hostfs.c: Likewise.
26402 * util/i386/pc/grub-mkimage.c: Likewise.
26403 * util/i386/pc/grub-setup.c: Likewise.
26404 * util/i386/efi/grub-mkimage.c: Likewise.
26405 * util/grub-mkconfig.in: Likewise.
26406 * util/raid.c: Likewise.
26407 * util/resolve.c: Likewise.
26408 * util/grub-mkdevicemap.c: Likewise.
26409 * util/grub-emu.c: Likewise.
26410 * util/getroot.c: Likewise.
26411 * util/hostdisk.c: Likewise.
26412 * util/usb.c: Likewise.
26413 * util/grub-editenv.c: Likewise.
26414 * util/misc.c: Likewise.
26415
26416 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
26417
26418 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
26419 `genparttoollist.sh'.
26420 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
26421 Add `*.sh' to the list find searches for and change `mdate.sh'
26422 to `mdate-sh'.
26423
26424 2009-06-10 Pavel Roskin <proski@gnu.org>
26425
26426 * include/grub/multiboot2.h: Provide compatibility defines for
26427 multiboot2.h.
26428 * include/multiboot2.h: Include stdint.h only if needed, using
26429 angle brackets.
26430 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
26431 grub/multiboot2.h.
26432 * loader/ieee1275/multiboot2.c: Likewise.
26433 * loader/multiboot2.c: Likewise.
26434 * loader/multiboot_loader.c: Likewise.
26435
26436 * configure.ac: Use -nostdlib when probing for the target. It
26437 should not be required to have libc for the target.
26438
26439 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
26440 they fail without libc headers for the target.
26441 * include/grub/powerpc/libgcc.h: Use weak attribute for all
26442 exports.
26443 * include/grub/sparc64/libgcc.h: Likewise. Don't use
26444 preprocessor conditionals.
26445
26446 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
26447 build system doesn't need to be aware of the tar.c internals.
26448
26449 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
26450
26451 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
26452
26453 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
26454
26455 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
26456 disk limit to 26 for IDE, Virtio, Xen and SCSI.
26457
26458 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
26459
26460 * util/i386/pc/grub-install.in: Change the error message if UUIDs
26461 aren't available if ata.mod gets used.
26462
26463 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
26464
26465 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
26466 initialising controller.
26467 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
26468
26469 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
26470
26471 * util/i386/pc/grub-install.in: Add a parameter --disk-module
26472 to choose between ata and biosdisk module on i386-pc.
26473
26474 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
26475
26476 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
26477 Subclass and Programming Interface fields in terms of the 3 byte
26478 Class Code register.
26479 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
26480
26481 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
26482 interface is OHCI. Add grub_dprintf for symmetry with
26483 bus/usb/uhci.c.
26484 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
26485 interface is UHCI. Add interf variable for programming
26486 interface. Print interface with class/subclass.
26487
26488 * bus/usb/ohci.c: Set interf with correct field.
26489
26490 * bus/usb/uhci.c: Remove unneeded doubled lines.
26491 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
26492 Remove whitespace inside comment.
26493
26494 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
26495
26496 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
26497 as fallback an equivalent option without depth.
26498
26499 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
26500
26501 Not fail if unable to retrieve C/H/S on LBA disks
26502
26503 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
26504 if unable to retrieve C/H/S on LBA disks
26505
26506 2009-06-08 Pavel Roskin <proski@gnu.org>
26507
26508 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
26509 about aliasing.
26510
26511 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
26512
26513 * Makefile.in (uninstall): Remove all $lib_DATA files.
26514
26515 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
26516
26517 Bugfix: install on partitionless device
26518
26519 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
26520 is a whole disk
26521
26522 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
26523
26524 * Makefile.in (uninstall): Remove all $include_DATA files.
26525
26526 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
26527
26528 * commands/true.c: New file. Implement the true and false commands.
26529 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
26530 (true_mod_SOURCES): New variable.
26531 (true_mod_CFLAGS): Likewise.
26532 (true_mod_LDFLAGS): Likewise.
26533
26534 2009-06-05 Colin D Bennett <colin@gibibit.com>
26535
26536 Optimized font character lookup using binary search instead of linear
26537 search. Fonts now are required to have the character index ordered by
26538 code point.
26539
26540 * font/font.c (load_font_index): Verify that fonts have ordered
26541 character indices.
26542 (find_glyph): Use binary search instead of linear search to find a
26543 character in a font.
26544
26545 2009-06-05 Michael Scherer <misc@mandriva.org>
26546
26547 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
26548 uses case sensitive btree.
26549 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
26550 only for case insensitive filesystems.
26551
26552 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
26553
26554 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
26555 * conf/common.rmk (search_mod_CFLAGS): likewise
26556
26557 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26558
26559 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
26560 compensate a compiler bug
26561
26562 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26563
26564 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
26565 instead of '\b'
26566
26567 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26568
26569 Definitions for creating asm symbols with Apple's CC
26570
26571 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
26572 [APPLE_CC] (VARIABLE): likewise
26573
26574 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26575
26576 Disable lnxboot.img when compiled
26577 with Apple's CC
26578
26579 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
26580 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
26581 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
26582 [! APPLE_CC] (CODE_LENG): skip
26583 [! APPLE_CC] (setup_sects): likewise
26584 [! APPLE_CC]: skip filling
26585
26586 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26587
26588 Address in trampolines based on 32-bit registers when compiled
26589 with Apple's CC
26590
26591 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
26592 for addresses
26593 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
26594
26595 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26596
26597 Avoid aliases when compiling with Apple's CC for PCBIOS machine
26598
26599 * kern/misc.c [APPLE_CC] (memcpy): new function
26600 [APPLE_CC] (memmove): likewise
26601 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
26602 (memcpy): define alias conditionally on !APPLE_CC
26603 (memset): likewise
26604 (abort): likewise
26605 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
26606 APPLE_CC are defined
26607 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
26608 (grub_assert_fail): make prototype conditional
26609
26610 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26611
26612 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
26613
26614 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
26615 grub-macho2img
26616 (CLEANFILES): add grub-macho2img
26617 (grub_macho2img_SOURCES): new variable
26618 * kern/i386/pc/startup.S (bss_start): new variable
26619 (bss_end): likewise
26620 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
26621 * util/grub-macho2img.c: new file
26622
26623 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26624
26625 Use objconv when compiling with Apple's CC
26626
26627 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
26628 (efiemu64.o): likewise
26629 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
26630 when compiling with Apple's CC
26631 (efiemu64_s.o): likewise
26632 * configure.ac: check for objconv when compiling with Apple's CC
26633 * genmk.rb: use objconv for modules when compiled with Apple's CC
26634
26635 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26636
26637 Define segment as well as section when compiling with
26638 Apple's CC
26639
26640 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
26641 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
26642 (efiemu_convert_pointer): likewise
26643 (efiemu_set_virtual_address_map): likewise
26644 (efiemu_convert_pointer): likewise
26645 (efiemu_getcrc32): likewise
26646 (init_crc32_table): likewise
26647 (reflect): likewise
26648 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
26649 (GRUB_MOD_DEP): likewise
26650
26651 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26652
26653 Allow a compilation without -mcmodel=large
26654
26655 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
26656 when compiled without -mcmodel=large
26657 (filter_memory_map): remove memory post 4 GiB when compiled
26658 without -mcmodel=large
26659 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
26660 TARGET_CFLAGS when -mcmodel=large isn't supported
26661
26662 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26663
26664 Remove nested functions in efiemu core
26665
26666 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
26667
26668 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26669
26670 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
26671
26672 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
26673 temporary storage
26674 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
26675 using Apple's CC
26676 (grub_cpu_is_tsc_supported): likewise
26677 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
26678
26679 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26680
26681 Absolute addressing through constant with Apple's cc
26682
26683 * kern/i386/pc/startup.S: Define necessary constants
26684 and address through it when using ABS with Apple's CC
26685 * boot/i386/pc/diskboot.S: likewise
26686 * boot/i386/pc/boot.S: likewise
26687 * boot/i386/pc/lnxboot.S: likewise
26688 * boot/i386/pc/cdboot.S: likewise
26689 * mmap/i386/pc/mmap_helper.S: likewise
26690 * commands/i386/pc/drivemap_int13h.S: likewise
26691
26692 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26693
26694 Check if compiler is apple cc
26695
26696 * Makefile.in (ASFLAGS): new variable
26697 (TARGET_ASFLAGS): likewise
26698 (TARGET_MODULE_FORMAT): likewise
26699 (TARGET_APPLE_CC): likewise
26700 (OBJCONV): likewise
26701 (TARGET_IMG_CFLAGS): likewise
26702 (TARGET_CPPFLAGS): add includedir
26703 * configure.ac: call grub_apple_cc and grub_apple_target_cc
26704 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
26705 Check for linker script only if compiler isn't Apple's CC
26706 (TARGET_MODULE_FORMAT): set
26707 (TARGET_APPLE_CC): likewise
26708 (TARGET_ASFLAGS): likewise
26709 (ASFLAGS): likewise
26710 Check for objcopy only if compiler isn't Apple's CC
26711 Check for BSS symbol only if compiler isn't Apple's CC
26712 * genmk.rb: adapt nm options if we use Apple's utils
26713 * aclocal.m4 (grub_apple_cc): new test
26714 (grub_apple_target_cc): likewise
26715
26716 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26717
26718 Simplify sed expressions and improve awk
26719
26720 * Makefile.in (install-local): simplify sed expression
26721 * gencmdlist.sh: likewise
26722 * genmoddep.awk: avoid adding module as a dependency of itself
26723
26724 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26725
26726 Add missing start symbols
26727
26728 * boot/i386/pc/boot.S: add start
26729 * boot/i386/pc/pxeboot.S: likewise
26730
26731 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26732
26733 Fix wrong assumptions with grub-mkimage on EFI
26734
26735 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
26736 (relocate_addresses): consider both r_addend and value at offset
26737 (make_mods_section): zerofill modinfo and header
26738 (convert_elf): write prefix here
26739
26740 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26741
26742 Use .asciz instead of .string
26743
26744 * i386/pc/diskboot.S: use .asciz instead of .string
26745 * i386/pc/boot.S: likewise
26746 * include/grub/dl.h (GRUB_MOD_DEP): likewise
26747 (GRUB_MOD_NAME): likewise
26748
26749 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26750
26751 gfxpayload support
26752
26753 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
26754 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
26755 (grub_video_setup): remove
26756 (grub_video_set_mode): new prototype
26757 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
26758 (vid_mode): remove
26759 (linux_vesafb_res): compile only on PCBIOS
26760 (grub_linux_boot): support gfxpayload
26761 * loader/i386/pc/xnu.c (video_hook): new function
26762 (grub_xnu_set_video): support gfxpayload
26763 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
26764 (DEFAULT_VIDEO_HEIGHT): likewise
26765 (DEFAULT_VIDEO_FLAGS): likewise
26766 (DEFAULT_VIDEO_MODE): new definition
26767 (video_hook): new function
26768 (grub_gfxterm_init): use grub_video_set_mode
26769 * util/grub.d/30_os-prober.in: remove explicit modesetting before
26770 loading xnu
26771 * video/video.c (grub_video_setup): removed
26772 (grub_video_set_mode): new function based on grub_gfxterm_init and
26773 grub_video_setup
26774
26775 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26776
26777 Avoid calling biosdisk in drivemap
26778
26779 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
26780 (revparse_biosdisk): likewise
26781 (list_mappings): derive name from id directly
26782 (grub_cmd_drivemap): use tryparse_diskstring
26783
26784 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26785
26786 Script fixes
26787
26788 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
26789 (grub_lexer_param): add tokenonhold
26790 (grub_script_create_cmdline): remove cmdline. All callers updated
26791 (grub_script_function_create): make functionname
26792 grub_script_arg. All callers updated
26793 (grub_script_execute_argument_to_string): new prototype
26794 * kern/parser.c (state_transitions): reorder
26795 (grub_parser_cmdline_state): fix a bug and make more compact
26796 * script/sh/execute.c (grub_script_execute_argument_to_string):
26797 make global
26798 (grub_script_execute_cmdline): use new format
26799 * script/sh/function.c (grub_script_function_create): make functionname
26800 grub_script_arg. All callers updated
26801 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
26802 (grub_script_yylex): remove
26803 (grub_script_yylex2): renamed to ...
26804 (grub_script_yylex): ...renamed
26805 parse the expressions like a${b}c
26806 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
26807 (GRUB_PARSER_TOKEN_VAR): remove
26808 (GRUB_PARSER_TOKEN_NAME): likewise
26809 ("if"): declare as typeless
26810 ("while"): likewise
26811 ("function"): likewise
26812 ("else"): likewise
26813 ("then"): likewise
26814 ("fi"): likewise
26815 (text): remove
26816 (argument): likewise
26817 (script): accept empty scripts and make exit on error
26818 (arguments): use GRUB_PARSER_TOKEN_ARG
26819 (function): likewise
26820 (command): move error handling to script
26821 (menuentry): move grub_script_lexer_ref before
26822 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
26823 argument. All callers updated
26824
26825 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
26826
26827 Prevent GRUB from probing floppies during boot.
26828
26829 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
26830 * commands/search.c (options): Add --no-floppy.
26831 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
26832 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
26833 --no-floppy when searching for UUIDs.
26834
26835 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
26836
26837 Simplify the code duplication in commands/search.c.
26838
26839 * commands/search.c (search_label, search_fs_uuid): Merge into ...
26840 (search_fs): ... this. Update all users.
26841
26842 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
26843
26844 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
26845
26846 2009-05-28 Pavel Roskin <proski@gnu.org>
26847
26848 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
26849 Remove the original symlink explicitly.
26850
26851 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
26852 just one slash. That's how grub_fshelp_find_file() does it.
26853
26854 2009-05-26 Pavel Roskin <proski@gnu.org>
26855
26856 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
26857 to `str'.
26858
26859 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
26860 possibly unused.
26861
26862 2009-05-25 Christian Franke <franke@computer.org>
26863
26864 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
26865 register.
26866 (grub_atapi_identify): Add wait after drive select.
26867 (grub_ata_identify): Do more strict status register check before
26868 calling grub_atapi_identify (). Suppress error message if status
26869 register is 0x00 after command failure. Add status register
26870 check after PIO read to avoid bogus identify due to stuck DRQ.
26871 Thanks to Pavel Roskin for testing.
26872 (grub_device_initialize): Remove unsafe status register check.
26873 Thanks to 'phcoder' for problem report and patch.
26874 Prevent sign extension in debug message.
26875
26876 2009-05-23 Colin D Bennett <colin@gibibit.com>
26877
26878 Cleaned up `include/grub/normal.h'. Grouped prototypes by
26879 definition file, and functions defined in `normal/menu.c' have had
26880 their prototypes moved to `include/grub/menu.h' for consistency.
26881
26882 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
26883 from normal.h.
26884 (grub_menu_get_entry): Likewise.
26885 (grub_menu_get_timeout): Likewise.
26886 (grub_menu_set_timeout): Likewise.
26887 (grub_menu_execute_entry): Likewise.
26888 (grub_menu_execute_with_fallback): Likewise.
26889 (grub_menu_entry_run): Likewise.
26890
26891 * include/grub/normal.h: Re-ordered and grouped function
26892 prototypes by file that the function is defined in.
26893 (grub_menu_execute_callback): Removed; moved to menu.h.
26894 (grub_menu_get_entry): Likewise.
26895 (grub_menu_get_timeout): Likewise.
26896 (grub_menu_set_timeout): Likewise.
26897 (grub_menu_execute_entry): Likewise.
26898 (grub_menu_execute_with_fallback): Likewise.
26899 (grub_menu_entry_run): Likewise.
26900 (grub_menu_addentry): Renamed from this ...
26901 (grub_normal_add_menu_entry): ... to this.
26902
26903 * normal/main.c (grub_menu_addentry): Renamed from this ...
26904 (grub_normal_add_menu_entry): ... to this.
26905
26906 * script/sh/execute.c (grub_script_execute_menuentry): Update
26907 reference to renamed grub_menu_addentry function.
26908
26909 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
26910
26911 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
26912
26913 2009-05-22 Pavel Roskin <proski@gnu.org>
26914
26915 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
26916 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
26917 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
26918 compiling for the i386 targets, but not for the utilities.
26919
26920 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
26921 to grub_uint8_t.
26922 (grub_root_drive): Likewise.
26923 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
26924 remove alignment.
26925 (grub_root_drive): Change size to byte.
26926 (grub_start_addr): Remove.
26927 (grub_end_addr): Likewise.
26928 (grub_apm_bios_info): Likewise.
26929
26930 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
26931
26932 * normal/i386: Remove.
26933 * normal/powerpc: Likewise.
26934 * normal/sparc64: Likewise.
26935 * normal/x86_64: Likewise.
26936
26937 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
26938
26939 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
26940 * loader/i386/linux_trampoline.S: Fix indentation
26941 * loader/i386/xnu_helper.S: Likewise
26942
26943 2009-05-18 Colin D Bennett <colin@gibibit.com>
26944
26945 Display error messages when parsing a Lua statement fails.
26946 Previously, executing a syntactically invalid statement like
26947 ")foo" or "bar;" would silently fail.
26948
26949 * script/lua/grub_main.c (handle_lua_error): New function.
26950 (grub_lua_parse_line): Improved reporting of Lua parser and
26951 execution errors.
26952
26953 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26954
26955 Remove -Werror which causes build to fail on some systems
26956
26957 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
26958 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
26959 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
26960
26961 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26962
26963 trampoline for linux on 64-bit platform
26964
26965 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
26966 loader/i386/efi/linux_trampoline.S
26967 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
26968 declaration
26969 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
26970 here
26971 * loader/i386/linux_trampoline.S: moved here
26972 * loader/i386/efi/linux.c (allocate_pages): reserve space for
26973 trampoline
26974 (jumpvector): removed
26975 (grub_linux_trampoline_start): new declaration
26976 (grub_linux_trampoline_end): likewise
26977 (grub_linux_boot): use trampoline when on 64-bit platform
26978 * loader/i386/linux.c: likewise
26979
26980 2009-05-16 Pavel Roskin <proski@gnu.org>
26981
26982 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
26983 const to avoid a warning.
26984 (grub_lua_setenv): Likewise.
26985 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
26986 lmsg to fix a warning.
26987
26988 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
26989
26990 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
26991 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26992 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
26993 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26994 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
26995 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26996 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
26997 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26998
26999 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
27000
27001 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
27002
27003 2009-05-16 Bean <bean123ch@gmail.com>
27004
27005 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
27006 (lua_mod_SOURCES): New variable.
27007 (lua_mod_CFLAGS): Likewise.
27008 (lua_mod_LDFLAGS): Likewise.
27009
27010 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
27011 (setjmp_mod_SOURCES): New variable.
27012 (setjmp_mod_CFLAGS): Likewise.
27013 (setjmp_LDFLAGS): Likewise.
27014
27015 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
27016 (setjmp_mod_SOURCES): New variable.
27017 (setjmp_mod_CFLAGS): Likewise.
27018 (setjmp_LDFLAGS): Likewise.
27019
27020 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
27021 (setjmp_mod_SOURCES): New variable.
27022 (setjmp_mod_CFLAGS): Likewise.
27023 (setjmp_LDFLAGS): Likewise.
27024
27025 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
27026 (setjmp_mod_SOURCES): New variable.
27027 (setjmp_mod_CFLAGS): Likewise.
27028 (setjmp_LDFLAGS): Likewise.
27029
27030 * normal/i386/setjmp.S: Moved from here ...
27031 * lib/i386/setjmp.S: ... Moved here
27032 * normal/x86_64/setjmp.S: Moved from here ...
27033 * lib/x86_64/setjmp.S: ... Moved here
27034 * normal/powerpc/setjmp.S: Moved from here ...
27035 * lib/powerpc/setjmp.S: ... Moved here
27036 * normal/sparc64/setjmp.S: Moved from here ...
27037 * lib/sparc64/setjmp.S: ... Moved here
27038
27039 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
27040 returns_twice in mingw.
27041
27042 * script/lua/grub_lib.c: New file.
27043 * script/lua/grub_lib.h: Likewise.
27044 * script/lua/grub_lua.h: Likewise.
27045 * script/lua/grub_main.c: Likewise.
27046 * script/lua/lapi.c: Likewise.
27047 * script/lua/lapi.h: Likewise.
27048 * script/lua/lauxlib.c: Likewise.
27049 * script/lua/lauxlib.h: Likewise.
27050 * script/lua/lbaselib.c: Likewise.
27051 * script/lua/lcode.c: Likewise.
27052 * script/lua/lcode.h: Likewise.
27053 * script/lua/ldblib.c: Likewise.
27054 * script/lua/ldebug.c: Likewise.
27055 * script/lua/ldebug.h: Likewise.
27056 * script/lua/ldo.c: Likewise.
27057 * script/lua/ldo.h: Likewise.
27058 * script/lua/ldump.c: Likewise.
27059 * script/lua/lfunc.c: Likewise.
27060 * script/lua/lfunc.h: Likewise.
27061 * script/lua/lgc.c: Likewise.
27062 * script/lua/lgc.h: Likewise.
27063 * script/lua/linit.c: Likewise.
27064 * script/lua/liolib.c: Likewise.
27065 * script/lua/llex.c: Likewise.
27066 * script/lua/llex.h: Likewise.
27067 * script/lua/llimits.h: Likewise.
27068 * script/lua/lmathlib.c: Likewise.
27069 * script/lua/lmem.c: Likewise.
27070 * script/lua/lmem.h: Likewise.
27071 * script/lua/loadlib.c: Likewise.
27072 * script/lua/lobject.c: Likewise.
27073 * script/lua/lobject.h: Likewise.
27074 * script/lua/lopcodes.c: Likewise.
27075 * script/lua/lopcodes.h: Likewise.
27076 * script/lua/loslib.c: Likewise.
27077 * script/lua/lparser.c: Likewise.
27078 * script/lua/lparser.h: Likewise.
27079 * script/lua/lstate.c: Likewise.
27080 * script/lua/lstate.h: Likewise.
27081 * script/lua/lstring.c: Likewise.
27082 * script/lua/lstring.h: Likewise.
27083 * script/lua/lstrlib.c: Likewise.
27084 * script/lua/ltable.c: Likewise.
27085 * script/lua/ltable.h: Likewise.
27086 * script/lua/ltablib.c: Likewise.
27087 * script/lua/ltm.c: Likewise.
27088 * script/lua/ltm.h: Likewise.
27089 * script/lua/lua.h: Likewise.
27090 * script/lua/luaconf.h: Likewise.
27091 * script/lua/lualib.h: Likewise.
27092 * script/lua/lundump.c: Likewise.
27093 * script/lua/lundump.h: Likewise.
27094 * script/lua/lvm.c: Likewise.
27095 * script/lua/lvm.h: Likewise.
27096 * script/lua/lzio.c: Likewise.
27097 * script/lua/lzio.h: Likewise.
27098
27099 2009-05-16 Bean <bean123ch@gmail.com>
27100
27101 * include/grub/kernel.h (grub_module_header_types): Add type
27102 OBJ_TYPE_CONFIG.
27103
27104 * kern/main.c (grub_load_config): New function.
27105 (grub_main): Call grub_load_config to read boot config.
27106
27107 * grub-mkimage (generate_image): New parameter config_path.
27108 (options): New option --config.
27109 (main): Parse --config option, and pass it to generate_image.
27110
27111 2009-05-14 Christian Franke <franke@computer.org>
27112
27113 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
27114 This fixes build on Cygwin.
27115
27116 2009-05-14 Pavel Roskin <proski@gnu.org>
27117
27118 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
27119 jump. This saves two bytes, so the typical case of 2 swapped
27120 drives would fit 32 bytes.
27121
27122 2009-05-13 Pavel Roskin <proski@gnu.org>
27123
27124 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
27125 grub_uint32_t to avoid a warning.
27126
27127 * loader/i386/linux.c (allocate_pages): When assigning
27128 real_mode_mem, cast through grub_size_t to fix a warning. The
27129 code already makes sure that the value would fit a pointer.
27130 (grub_linux_setup_video): Cast render_target->data to
27131 grub_size_t to fix a warning.
27132
27133 2009-05-13 Javier Martín <lordhabbit@gmail.com>
27134
27135 * commands/i386/pc/drivemap.c: New file - implement drivemap
27136 command.
27137 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
27138 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
27139
27140 2009-05-13 Pavel Roskin <proski@gnu.org>
27141
27142 * util/i386/pc/grub-setup.c (setup): Remove unused variable
27143 embedding_area_exists.
27144
27145 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
27146
27147 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
27148 it easier to understand / work with.
27149 Improve warning messages for cases where there's no embedding area,
27150 or when it is too small (or core.img too large).
27151
27152 2009-05-13 Pavel Roskin <proski@gnu.org>
27153
27154 * loader/i386/pc/multiboot2.c: Add necessary includes for
27155 grub_multiboot2_real_boot().
27156
27157 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
27158 PX record is always little-endian. We only need the lower 2
27159 bytes of the mode.
27160
27161 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
27162 facilitate code reuse.
27163 (grub_cpio_mount): Use "struct head", not a char buffer. This
27164 fixes a warning reported by gcc 4.4.
27165
27166 * kernel/disk.c (grub_disk_read): Use void pointer for the
27167 buffer.
27168 (grub_disk_write): Use const void pointer for the buffer.
27169 Adjust all callers. Remove unnecessary casts.
27170
27171 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
27172
27173 * util/i386/pc/grub-install.in: Update copyright year.
27174
27175 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27176
27177 gptsync
27178
27179 * commands/gptsync.c: new file
27180 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
27181 (gptsync_mod_SOURCES): new variable
27182 (gptsync_mod_CFLAGS): likewise
27183 (gptsync_mod_LDFLAGS): likewise
27184 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
27185 new definition
27186 (GRUB_PC_PARTITION_TYPE_HFS): likewise
27187 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
27188 * conf/i386-ieee1275.rmk: likewise
27189 * conf/i386-pc.rmk: likewise
27190 * conf/powerpc-ieee1275.rmk: likewise
27191
27192 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27193
27194 Fixed grub-emu
27195
27196 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
27197 (grub_dl_ref): likewise
27198
27199 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
27200
27201 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
27202 split in two functions (one for msdos and one for gpt).
27203
27204 2009-05-08 Pavel Roskin <proski@gnu.org>
27205
27206 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
27207 not modified.
27208
27209 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
27210 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
27211 Initialize them with -1. Add sanity check for bad1. Eliminate
27212 nerr variable.
27213
27214 2009-05-08 David S. Miller <davem@davemloft.net>
27215
27216 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
27217
27218 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
27219
27220 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
27221 existence.
27222
27223 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
27224
27225 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27226 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
27227
27228 2009-05-05 David S. Miller <davem@davemloft.net>
27229
27230 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
27231
27232 2009-05-05 Pavel Roskin <proski@gnu.org>
27233
27234 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
27235 of grub_dl_ref() and grub_dl_unref().
27236 * commands/parttool.c: Remove preprocessor conditionals around
27237 grub_dl_ref() and grub_dl_unref().
27238 * fs/affs.c: Likewise.
27239 * fs/afs.c: Likewise.
27240 * fs/cpio.c: Likewise.
27241 * fs/ext2.c: Likewise.
27242 * fs/fat.c: Likewise.
27243 * fs/hfs.c: Likewise.
27244 * fs/hfsplus.c: Likewise.
27245 * fs/iso9660.c: Likewise.
27246 * fs/jfs.c: Likewise.
27247 * fs/minix.c: Likewise.
27248 * fs/ntfs.c: Likewise.
27249 * fs/reiserfs.c: Likewise.
27250 * fs/sfs.c: Likewise.
27251 * fs/udf.c: Likewise.
27252 * fs/ufs.c: Likewise.
27253 * fs/xfs.c: Likewise.
27254 * include/grub/dl.h: Likewise.
27255 * loader/xnu.c: Likewise.
27256
27257 2009-05-04 Pavel Roskin <proski@gnu.org>
27258
27259 * commands/acpi.c: Remove unused variable my_mod.
27260 * partmap/amiga.c: Likewise.
27261 * partmap/apple.c: Likewise.
27262 * partmap/gpt.c: Likewise.
27263 * partmap/pc.c: Likewise.
27264 * partmap/sun.c: Likewise.
27265 * term/gfxterm.c: Likewise.
27266 * term/i386/pc/vesafb.c: Likewise.
27267 * term/i386/pc/vga.c: Likewise.
27268
27269 2009-05-04 David S. Miller <davem@davemloft.net>
27270
27271 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
27272 pointer args to grub_ieee1275_get_property().
27273
27274 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
27275
27276 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
27277 devices, and do not traverse down under controller nodes.
27278
27279 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
27280 (grub_ofdisk_open): Use it to un-escape "," characters.
27281 * kern/disk.c (find_part_sep): New.
27282 (grub_disk_open): Use it to find the first non-escaped ','
27283 character in the disk name.
27284 * util/ieee1275/devicemap.c (escape_of_path): New.
27285 (grub_util_emit_devicemap_entry): Use it.
27286 * util/sparc64/ieee1275/grub-install.in: Update script to
27287 strip partition specifiers properly by not triggering on
27288 '\' escaped ',' characters.
27289
27290 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27291
27292 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
27293 to 0x300.
27294 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
27295 resolutions.
27296 (linux_vesafb_modes): Add a lot of additional modes to the list (based
27297 on documentation from Wikipedia).
27298
27299 2009-05-04 Pavel Roskin <proski@gnu.org>
27300
27301 * disk/ata.c: Spelling fixes.
27302 * disk/raid.c: Likewise.
27303 * disk/usbms.c: Likewise.
27304 * disk/dmraid_nvidia.c: Likewise.
27305 * kern/ieee1275/openfw.c: Likewise.
27306 * kern/ieee1275/init.c: Likewise.
27307 * kern/ieee1275/cmain.c: Likewise.
27308 * boot/i386/pc/cdboot.S: Likewise.
27309 * video/readers/png.c: Likewise.
27310 * video/i386/pc/vbe.c: Likewise.
27311 * fs/udf.c: Likewise.
27312 * fs/hfs.c: Likewise.
27313 * fs/reiserfs.c: Likewise.
27314 * efiemu/runtime/efiemu.c: Likewise.
27315 * efiemu/main.c: Likewise.
27316 * efiemu/mm.c: Likewise.
27317 * include/grub/elf.h: Likewise.
27318 * include/grub/xnu.h: Likewise.
27319 * include/grub/usbdesc.h: Likewise.
27320 * include/grub/usb.h: Likewise.
27321 * include/grub/script_sh.h: Likewise.
27322 * include/grub/lib/LzmaEnc.h: Likewise.
27323 * include/grub/efiemu/efiemu.h: Likewise.
27324 * include/grub/command.h: Likewise.
27325 * normal/menu.c: Likewise.
27326 * normal/main.c: Likewise.
27327 * normal/datetime.c: Likewise.
27328 * bus/usb/uhci.c: Likewise.
27329 * mmap/i386/uppermem.c: Likewise.
27330 * mmap/mmap.c: Likewise.
27331 * commands/acpi.c: Likewise.
27332 * commands/test.c: Likewise.
27333 * partmap/apple.c: Likewise.
27334 * font/font.c: Likewise.
27335 * loader/sparc64/ieee1275/linux.c: Likewise.
27336 * loader/macho.c: Likewise.
27337 * loader/i386/bsd_trampoline.S: Likewise.
27338 * loader/i386/bsd.c: Likewise.
27339 * loader/xnu.c: Likewise.
27340 * term/i386/pc/vesafb.c: Likewise.
27341 * term/usb_keyboard.c: Likewise.
27342 * util/resolve.c: Likewise.
27343 * util/getroot.c: Likewise.
27344
27345 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
27346
27347 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
27348
27349 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27350
27351 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
27352 build error.
27353
27354 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27355
27356 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
27357 parameter only available on BIOS.
27358
27359 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
27360
27361 Removed wrong semicolon in declaration
27362
27363 * grub/misc.h (grub_dprintf): remove semicolon
27364
27365 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27366
27367 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
27368 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
27369 is done by grub_cmd_linux() now).
27370 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
27371 restore video to text mode.
27372 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
27373 indicates lack of "vga=" parameter. "vga=0" is mapped to
27374 `GRUB_LINUX_VID_MODE_NORMAL'.
27375
27376 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
27377
27378 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
27379 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
27380 and `normal/script.c'. Add `kern/rescue_reader.c',
27381 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
27382 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
27383 `grub_script.tab.c'.
27384
27385 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27386 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27387 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27388 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
27389 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27390
27391 * Makefile.in: Remove duplicated 2008 in Copyright line.
27392
27393 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27394
27395 * util/misc.c (grub_util_warn): New function. Emits a warning
27396 unconditionally.
27397 * include/grub/util/misc.h (grub_util_warn): New declaration.
27398
27399 * util/i386/pc/grub-install.in: Understand --force and pass it down
27400 to grub-setup.
27401
27402 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
27403 down to setup().
27404 (setup): Improve error messages and add warnings when requested to
27405 install in odd layouts. Refuse to install using blocklists unless
27406 --force was set.
27407
27408 2009-05-04 martin f. krafft <madduck@madduck.net>
27409
27410 * disk/raid.c (grub_raid_scan_device): Improve debug message.
27411
27412 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
27413
27414 Updated copyright year
27415
27416 * fs/hfsplus.c: updated copyright year
27417
27418 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
27419
27420 HFS+ UUID
27421
27422 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
27423 in the space previously used by unused3
27424 (grub_hfsplus_uuid): new function
27425 (grub_hfsplus_fs): added uuid field
27426
27427 2009-05-03 Pavel Roskin <proski@gnu.org>
27428
27429 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
27430 suppress warnings. It's no longer needed.
27431 * disk/host.c: Likewise.
27432 * disk/ata_pthru.c: Likewise.
27433 * disk/loopback.c: Likewise.
27434 * hook/datehook.c: Likewise.
27435 * parttool/pcpart.c: Likewise.
27436 * fs/i386/pc/pxe.c: Likewise.
27437 * fs/ntfscomp.c: Likewise.
27438 * efiemu/main.c: Likewise.
27439 * mmap/mmap.c: Likewise.
27440 * commands/crc.c: Likewise.
27441 * commands/hexdump.c: Likewise.
27442 * commands/hdparm.c: Likewise.
27443 * commands/acpi.c: Likewise.
27444 * commands/echo.c: Likewise.
27445 * commands/minicmd.c: Likewise.
27446 * commands/blocklist.c: Likewise.
27447 * commands/memrw.c: Likewise.
27448 * commands/loadenv.c: Likewise.
27449 * commands/usbtest.c: Likewise.
27450 * commands/lsmmap.c: Likewise.
27451 * commands/boot.c: Likewise.
27452 * commands/parttool.c: Likewise.
27453 * commands/configfile.c: Likewise.
27454 * commands/search.c: Likewise.
27455 * commands/ieee1275/suspend.c: Likewise.
27456 * commands/cat.c: Likewise.
27457 * commands/i386/pc/pxecmd.c: Likewise.
27458 * commands/i386/pc/play.c: Likewise.
27459 * commands/i386/pc/halt.c: Likewise.
27460 * commands/i386/pc/vbeinfo.c: Likewise.
27461 * commands/i386/pc/vbetest.c: Likewise.
27462 * commands/lspci.c: Likewise.
27463 * commands/date.c: Likewise.
27464 * commands/handler.c: Likewise.
27465 * commands/ls.c: Likewise.
27466 * commands/test.c: Likewise.
27467 * commands/cmp.c: Likewise.
27468 * commands/efi/loadbios.c: Likewise.
27469 * commands/efi/fixvideo.c: Likewise.
27470 * commands/halt.c: Likewise.
27471 * commands/help.c: Likewise.
27472 * commands/reboot.c: Likewise.
27473 * hello/hello.c: Likewise.
27474 * script/sh/main.c: Likewise.
27475 * loader/xnu.c: Likewise.
27476 * term/terminfo.c: Likewise.
27477 * term/i386/pc/serial.c: Likewise.
27478 * term/usb_keyboard.c: Likewise.
27479
27480 2009-05-03 David S. Miller <davem@davemloft.net>
27481
27482 * normal/menu.c: Include grub/parser.h
27483
27484 2009-05-03 Pavel Roskin <proski@gnu.org>
27485
27486 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
27487 not char*.
27488 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
27489 Suggested by Javier Martín <lordhabbit@gmail.com>
27490
27491 * util/i386/pc/grub-mkrescue.in: Allow for the case when
27492 efiemu??.o doesn't exist.
27493 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
27494 copying.
27495
27496 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
27497
27498 FreeBSD 64-bit support
27499
27500 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
27501 and loader/i386/bsd_trampoline.S
27502 (bsd_mod_ASFLAGS): new variable
27503 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
27504 (FREEBSD_MODTYPE_KERNEL64): likewise
27505 (grub_bsd64_trampoline_start): likewise
27506 (grub_bsd64_trampoline_end): likewise
27507 (grub_bsd64_trampoline_selfjump): likewise
27508 (grub_bsd64_trampoline_gdt): likewise
27509 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
27510 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
27511 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
27512 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
27513 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
27514 of "attrib" member
27515 * loader/i386/bsd_pagetable.c: new file
27516 * loader/i386/bsd_trampoline.S: likewise
27517 * loader/i386/bsd.c (ALIGN_QWORD): new macro
27518 (ALIGN_VAR): likewise
27519 (entry_hi): new variable
27520 (kern_end_mdofs): likewise
27521 (is_64bit): likewise
27522 (grub_freebsd_add_meta): use ALIGN_VAR
27523 (grub_e820_mmap): new declaration
27524 (grub_freebsd_add_mmap): new function
27525 (grub_freebsd_add_meta_module): support 64 bit kernels
27526 (grub_freebsd_list_modules): use ALIGN_VAR
27527 (gdt_descriptor): new declaration
27528 (grub_freebsd_boot): support 64 bit kernels
27529 (grub_bsd_elf64_hook): new function
27530 (grub_bsd_load_elf): support elf64
27531
27532 2009-05-03 Bean <bean123ch@gmail.com>
27533
27534 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
27535 after we get the result of if statement.
27536
27537 2009-05-03 Bean <bean123ch@gmail.com>
27538
27539 * Makefile.in (enable_efiemu): New variable.
27540
27541 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
27542 set.
27543 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
27544 path.
27545 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
27546 path, add -mno-red-zone option.
27547 (efiemu64_s.o): Likewise.
27548 (efiemu64.o): Use macro $^ for source file.
27549
27550 * configure.ac (--enable-efiemu): New option.
27551
27552 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27553
27554 xnu support
27555
27556 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
27557 (pkglib_MODULES): add xnu.mod
27558 (xnu_mod_SOURCES): new variable
27559 (xnu_mod_CFLAGS): likewise
27560 (xnu_mod_LDFLAGS): likewise
27561 (xnu_mod_ASFLAGS): likewise
27562 * conf/i386-pc.rmk: likewise
27563 * conf/x86_64-efi.rmk: likewise
27564 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
27565 new declaration
27566 * include/grub/i386/macho.h: new file
27567 * include/grub/i386/xnu.h: likewise
27568 * include/grub/macho.h: likewise
27569 * include/grub/machoload.h: likewise
27570 * include/grub/x86_64/macho.h: likewise
27571 * include/grub/x86_64/xnu.h: likewise
27572 * include/grub/xnu.h: likewise
27573 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
27574 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
27575 * loader/i386/efi/xnu.c: new file
27576 * loader/i386/pc/xnu.c: likewise
27577 * loader/i386/xnu.c: likewise
27578 * loader/i386/xnu_helper.S: likewise
27579 * loader/macho.c: likewise
27580 * loader/xnu.c: likewise
27581 * loader/xnu_resume.c: likewise
27582 * util/grub-dumpdevtree: likewise
27583 * include/grub/i386/pit.h: include grub/err.h
27584 (grub_pit_wait): export
27585 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
27586
27587 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
27588
27589 Efiemu
27590
27591 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
27592 _linux_efi, linux_efi.
27593 new files in grub-emu
27594 new targets efiemu32.o and efiemu64.o
27595 * loader/linux_normal_efiemu.c: likewise
27596 * loader/i386/efi/linux.c: added preliminary efiemu support
27597 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
27598 files to copy
27599 * include/grub/autoefi.h: new file
27600 * include/grub/i386/efiemu.h: likewise
27601 * include/grub/i386/pc/efiemu.h: likewise
27602 * include/grub/efi/api.h: add LL suffix when necessary
27603 new definitions relating to tables
27604 * include/grub/efiemu/efiemu.h: new file
27605 * include/grub/efiemu/runtime.h: likewise
27606 * efiemu/prepare.c: likewise
27607 * efiemu/loadcore_common.c: likewise
27608 * efiemu/loadcore64.c: likewise
27609 * efiemu/runtime/efiemu.sh: likewise
27610 * efiemu/runtime/efiemu.S: likewise
27611 * efiemu/runtime/efiemu.c: likewise
27612 * efiemu/runtime/config.h: likewise
27613 * efiemu/prepare32.c: likewise
27614 * efiemu/main.c: likewise
27615 * efiemu/modules/pnvram.c: likewise
27616 * efiemu/modules/i386: likewise
27617 * efiemu/modules/i386/pc: likewise
27618 * efiemu/modules/acpi.c: likewise
27619 * efiemu/i386/pc/cfgtables.c: likewise
27620 * efiemu/i386/loadcore64.c: likewise
27621 * efiemu/i386/loadcore32.c: likewise
27622 * efiemu/prepare64.c: likewise
27623 * efiemu/loadcore.c: likewise
27624 * efiemu/symbols.c: likewise
27625 * efiemu/mm.c: likewise
27626 * efiemu/loadcore32.c: likewise
27627
27628 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
27629
27630 ACPI spoofing
27631
27632 * commands/acpi.c: new file
27633 * commands/i386/pc/acpi.c: likewise
27634 * commands/efi/acpi.c: likewise
27635 * include/grub/acpi.h: likewise
27636 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
27637 (acpi_mod_SOURCES): new variable
27638 (acpi_mod_CFLAGS): likewise
27639 (acpi_mod_LDFLAGS): likewise
27640 * conf/i386-efi.rmk: likewise
27641 * conf/x86_64-efi.rmk: likewise
27642
27643 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
27644
27645 Missing part from mmap patch
27646
27647 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
27648 (grub_mmap_unregister)
27649 (grub_mmap_free_and_unregister): use grub_mmap_register
27650
27651 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
27652
27653 Mmap services
27654
27655 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
27656 * loader/i386/linux.c (find_mmap_size): likewise
27657 (allocate_pages): likewise
27658 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
27659 (grub_fill_multiboot_mmap): likewise
27660 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
27661 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
27662 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
27663 (OPENBSD_MMAP_RESERVED): likewise
27664 * include/grub/i386/pc/memory.h: include grub/memory.h
27665 (grub_lower_mem): removed
27666 (grub_upper_mem): likewise
27667 (GRUB_MACHINE_MEMORY_ACPI): new definition
27668 (GRUB_MACHINE_MEMORY_NVS): likewise
27669 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
27670 (GRUB_MACHINE_MEMORY_HOLE): likewise
27671 (grub_machine_mmap_register): likewise
27672 (grub_machine_mmap_unregister): likewise
27673 (grub_machine_get_upper): likewise
27674 (grub_machine_get_lower): likewise
27675 (grub_machine_get_post64): likewise
27676 * include/grub/i386/efi/memory.h: new file
27677 * include/grub/x86_64/efi/memory.h: likewise
27678 * include/grub/efi/memory.h: likewise
27679 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
27680 (mmap_mod_SOURCES): new variable
27681 (mmap_mod_LDFLAGS): likewise
27682 (mmap_mod_ASFLAGS): likewise
27683 * conf/i386-coreboot.rmk: likewise
27684 * conf/i386-ieee1275.rmk: likewise
27685 * conf/i386-efi.rmk: likewise
27686 * conf/x86_64-efi.rmk: likewise
27687 * include/grub/types.h (UINT_TO_PTR): new macro
27688 (PTR_TO_UINT32): likewise
27689 (PTR_TO_UINT64): likewise
27690 * include/grub/memory.h: new file
27691 * mmap/i386/pc/mmap.c: likewise
27692 * mmap/i386/pc/mmap_helper.S: likewise
27693 * mmap/i386/uppermem.c: likewise
27694 * mmap/mmap.c: likewise
27695 * mmap/efi/mmap.c: likewise
27696 * kern/i386/coreboot/init.c (grub_machine_init): don't use
27697 grub_upper_mem
27698 * kern/i386/pc/init.c (grub_lower_mem): removed variable
27699 (grub_upper_mem): likewise
27700 (grub_machine_init): don't use grub_upper_mem,
27701 make grub_lower_mem local
27702 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
27703 grub_mmap_iterate and grub_mmap_get_upper
27704 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
27705
27706 2009-05-02 Bean <bean123ch@gmail.com>
27707
27708 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
27709 script/sh/parser.y.
27710 (pkglib_MODULES): Add normal.mod and sh.mod.
27711 (normal_SOURCES): New variable.
27712 (normal_mod_CFLAGS): Likewise.
27713 (normal_mod_LDFLAGS): Likewise.
27714 (sh_mod_SOURCES): Likewise.
27715 (sh_mod_CFLAGS): Likewise.
27716 (sh_mod_LDFLAGS): Likewise.
27717
27718 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
27719 script/sh/lexer.c_DEPENDENCIES.
27720 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
27721 kern/rescue_reader.c and kern/rescue_parser.c.
27722 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
27723 (grub_emu_SOURCES): Change source files.
27724 (pkglib_MODULES): Remove normal.mod.
27725 (normal_SOURCES): Removed.
27726 (normal_mod_CFLAGS): Likewise.
27727 (normal_mod_LDFLAGS): Likewise.
27728 * conf/i386-coreboot.rmk: Likewise.
27729 * conf/i386-efi.rmk: Likewise.
27730 * conf/i386-ieee1276.rmk: Likewise.
27731 * conf/powerpc-ieee1275.rmk: Likewise.
27732 * conf/sparc64-ieee1275.rmk: Likewise.
27733 * conf/x86_64-efi.rmk: Likewise.
27734
27735 * include/grub/command.h (grub_command_execute): New inline function.
27736
27737 * include/grub/menu.h (grub_menu_entry): Removed commands field.
27738
27739 * include/grub/normal.h: Remove <grub/setjmp.h>.
27740 (grub_fs_module_list): Moved to normal/autofs.c.
27741 (grub_exit_env): Removed.
27742 (grub_command_execute): Likewise.
27743 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
27744 parameter script.
27745 (read_command_list): New function declaration.
27746 (read_fs_list): Likewise.
27747
27748 * include/parser.h: Include <grub/reader.h>.
27749 (grub_parser_split_cmdline): Change type of getline parameter.
27750 (grub_parser): New structure.
27751 (grub_parser_class): New variable.
27752 (grub_parser_execute): New function declaration.
27753 (grub_register_rescue_parser): Likewise.
27754 (grub_parser_register): New inline function.
27755 (grub_parser_unregister): Likewise.
27756 (grub_parser_get_current): Likewise.
27757 (grub_parser_set_current): Likewise.
27758
27759 * include/grub/reader.h: New file.
27760 * kern/reader.c: Likewise.
27761 * kern/rescue_parser.c: Likewise.
27762 * kern/rescue_reader.c: Likewise.
27763 * normal/autofs.c: Likewise.
27764 * normal/dyncmd.c: Likewise.
27765
27766 * include/grub/rescue.h: Removed.
27767 * normal/command.h: Likewise.
27768
27769 * include/grub/script.h: Moved to ...
27770 * include/grub/script_sh.h: ... Moved here.
27771 * normal/execute.c: Moved to ...
27772 * script/sh/execute.c: ... Moved here.
27773 * normal/function.c: Moved to ...
27774 * script/sh/function.c: ... Moved here.
27775 * normal/lexer.c: Moved to ...
27776 * script/sh/lexer.c: ... Moved here.
27777 * normal/parser.y: Moved to ...
27778 * script/sh/parser.y: ... Moved here.
27779 * normal/script.c: Moved to ...
27780 * script/sh/script.c: ... Moved here.
27781
27782 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
27783 <grub/reader.h>.
27784 (grub_exit_env): Removed.
27785 (fs_module_list): Moved to normal/autofs.c.
27786 (grub_file_getline): Don't handle comment here.
27787 (free_menu): Skip removed field entry->commands.
27788 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
27789 script parameter.
27790 (read_config_file): Removed nested parameter, change getline function.
27791 (grub_enter_normal_mode): Removed.
27792 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
27793 (read_command_list): Likewise.
27794 (autoload_fs_module): Moved to normal/autofs.c.
27795 (read_fs_list): Likewise.
27796 (reader_nested): New variable.
27797 (grub_normal_execute): Run parser.sh to switch to sh parser.
27798 (grub_cmd_rescue): Removed.
27799 (cmd_normal): Removed.
27800 (grub_cmd_normal): Unregister itself at the beginning. Don't register
27801 rescue command.
27802 (grub_cmdline_run): New function.
27803 (grub_normal_reader_init): Likewise.
27804 (grub_normal_read_line): Likewise.
27805 (grub_env_write_pager): Likewise.
27806 (cmdline): New variable.
27807 (grub_normal_reader): Likewise.
27808 (GRUB_MOD_INIT): Register normal reader and set as current, register
27809 pager hook, register normal command with grub_register_command_prio,
27810 so that it won't show up in command.lst.
27811 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
27812 grub_fs_autoload_hook.
27813
27814 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
27815 (grub_menu_execute_entry): Replace grub_script_execute with
27816 grub_parser_execute, change parameter to grub_command_execute.
27817
27818 * normal/menu_text.c: Remove <grub/script.h>.
27819
27820 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
27821 and <grub/parser.h>.
27822 (run): Change editor_getline to use new parser interface. Change
27823 parameter to grub_command_execute.
27824
27825 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
27826 <grub/reader.h> and <grub/parser.h>.
27827 (grub_load_normal_mode): Execute normal command.
27828 (grub_main): Call grub_register_core_commands,
27829 grub_register_rescue_parser and grub_register_rescue_reader, use
27830 grub_reader_loop to enter input loop.
27831
27832 * kern/parser.c (grub_parser_split_cmdline): Change type of
27833 getline parameter.
27834 (grub_parser_class): New variable.
27835 (grub_parser_execute): New function.
27836
27837 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
27838 * loader/multiboot2.c: Likewise.
27839 * loader/sparc64/ieee1275/linux.c: Likewise.
27840
27841 * util/grub-emu.c (read_command_list): New dummy function.
27842
27843 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
27844
27845 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
27846 count to 16 for CCISS and IDA.
27847
27848 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
27849
27850 * normal/menu_text.c (grub_wait_after_message): Print a newline
27851 after waiting for user input.
27852
27853 * loader/i386/linux.c: Include `<grub/normal.h>'.
27854 (grub_cmd_linux): Improve the error message about `ask' mode, by
27855 waiting for user input so it's not missed (we can do this, since
27856 user requested interaction).
27857
27858 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
27859
27860 Added missing lst to grub-mkrescue
27861
27862 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
27863 and ${input_dir}/parttool.lst
27864
27865 2009-04-30 David S. Miller <davem@davemloft.net>
27866
27867 * util/hostdisk.c (device_is_wholedisk): New function.
27868 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
27869 zero only if device_is_wholedisk() returns true.
27870
27871 * util/hostdisk.c (convert_system_partition_to_system_disk):
27872 Handle virtual disk devices named /dev/vdiskX as found on sparc
27873 and powerpc.
27874
27875 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
27876 lettered partition specifier is found, convert to numbered.
27877
27878 2009-04-29 David S. Miller <davem@davemloft.net>
27879
27880 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
27881 * include/grub/sparc64/ieee1275/memory.h: Likewise.
27882
27883 * normal/command.c: Add missing newline at end of file.
27884
27885 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
27886 warnings.
27887 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
27888 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
27889 grub_ofdisk_read): Likewise, and deal similarly with the fact that
27890 ihandles have a 32-bit type but need to be stored in a "void *".
27891
27892 2009-04-28 Pavel Roskin <proski@gnu.org>
27893
27894 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
27895 not disk. Adjust all dependencies.
27896 (grub_fs_uuid_close): Use grub_device_close(), not
27897 grub_disk_close().
27898
27899 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
27900 parent's partition, don't copy it by reference, as it gets freed
27901 on close.
27902
27903 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27904
27905 Preboot hooks support
27906
27907 * commands/boot.c (struct grub_preboot_t): new declaration
27908 (preboots_head): new variable
27909 (preboots_tail): likewise
27910 (grub_loader_register_preboot_hook): new function
27911 (grub_loader_unregister_preboot_hook): likewise
27912 (grub_loader_set): launch preboot hooks
27913 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
27914 (grub_loader_register_preboot_hook): new declaration
27915 (grub_loader_unregister_preboot_hook): likewise
27916
27917 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27918
27919 Warning fix
27920
27921 * disk/scsi.c (grub_scsi_open): added missing cast when
27922 calling grub_dprintf
27923
27924 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
27925
27926 Bug and warning fixes
27927
27928 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
27929 declaration
27930 * commands/test.c (test_parse): fixed bug with file tests and corrected
27931 declaration of find_file
27932
27933 2009-04-26 Pavel Roskin <proski@gnu.org>
27934
27935 * Makefile.in: Don't install empty manual pages if help2man is
27936 missing. Use help2man option for output, not shell redirection.
27937
27938 2009-04-26 David S. Miller <davem@davemloft.net>
27939
27940 * util/grub-mkdevicemap.c (make_device_map): Add missing
27941 NESTED_FUNC_ATTR to process_device().
27942
27943 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
27944
27945 Test command
27946
27947 * commands/test.c: rewritten to use bash-like test
27948
27949 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
27950
27951 Parttool autoloading and improvements
27952
27953 * Makefile.in (pkglib_DATA): add parttool.lst
27954 (parttool.lst): new target
27955 * genmk.rb: generate parttool-*
27956 (CLEANFILES): add #{parttool}
27957 (PARTTOOLFILES): new variable
27958 * genparttoollist.sh: new file
27959 * parttool/pcpart.c (grub_pcpart_boot): more feedback
27960 (grub_pcpart_type): likewise
27961 * commands/parttool.c (helpmsg): new variable
27962 (grub_cmd_parttool): output help if not enough arguments are supplied
27963 autoload modules
27964 (GRUB_MOD_INIT(parttool)): use helpmsg
27965
27966 2009-04-24 David S. Miller <davem@davemloft.net>
27967
27968 Avoiding opening same device multiple times in device iterator.
27969
27970 * kern/device.c: (grub_device_iterate): Define struct part_ent,
27971 and use it to build a list of partitions in iterate_disk() and
27972 iterate_partition().
27973
27974 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
27975 on disk->data.
27976
27977 * disk/ieee1275/nand.c (grub_nand_iterate): Return
27978 grub_devalias_iterate() result instead of unconditional 0.
27979 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
27980 Also, capture hook return value, either directly or via
27981 grub_children_iterate(), and propagate to caller.
27982 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
27983 grub_children_iterate): Return value is now 'int' instead of
27984 'grub_err_t'.
27985 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
27986 like a proper iterator, stopping when hooks return non-zero.
27987 (grub_devalias_iterate): Likewise.
27988
27989 2009-04-23 David S. Miller <davem@davemloft.net>
27990
27991 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
27992
27993 2009-04-22 David S. Miller <davem@davemloft.net>
27994
27995 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
27996 is larger than address_cells, use that value for address_cells too.
27997
27998 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
27999 IEEE1275_MAX_PATH_LEN): Define.
28000 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
28001 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
28002 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
28003 'devtype'. Explicitly NULL terminate devalias expansion.
28004
28005 * util/sparc64/ieee1275/misc.c: New file.
28006 * util/sparc64/ieee1275/grub-setup.c: New file.
28007 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
28008 * util/sparc64/ieee1275/grub-mkimage.c: New file.
28009 * util/sparc64/ieee1275/grub-install.in: New file.
28010 * util/ieee1275/ofpath.c: New file.
28011 * util/ieee1275/devicemap.c: New file.
28012 * util/devicemap.c: New file.
28013 * util/deviceiter.c: New file.
28014 * kern/sparc64/ieee1275/init.c: New file.
28015 * include/grub/util/ofpath.h: New file.
28016 * include/grub/util/deviceiter.h: New file.
28017 * util/grub-mkdevicemap.c: Include deviceiter.h.
28018 Implement using grub_util_emit_devicemap_entry and
28019 grub_util_iterate_devices.
28020 * conf/i386-corebook.rmk: Build util/deviceiter.c and
28021 util/devicemap.c into grub-mkdevicemap
28022 * conf/i386-efi.rmk: Likewise.
28023 * conf/i386-ieee1275.rmk: Likewise.
28024 * conf/i386-pc.rmk: Likewise.
28025 * conf/powerpc-ieee1275.rmk: Likewise.
28026 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
28027 images and installation utilities. Build kernel as image
28028 instead of as elf binary. Use common rules as much as possible.
28029
28030 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28031
28032 Correct GPT definition
28033
28034 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
28035 of "attrib" member
28036
28037 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
28038
28039 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
28040
28041 2009-04-19 David S. Miller <davem@davemloft.net>
28042
28043 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
28044 (grub_rescue_cmd_linux): Rename to...
28045 (grub_cmd_linux): and fix prototype.
28046 (grub_rescue_cmd_initrd): Rename to...
28047 (grub_cmd_initrd): and fix prototype.
28048 (cmd_linux, cmd_initrd): New.
28049 (GRUB_MOD_INIT(linux)): Use grub_register_command().
28050 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
28051
28052 2009-04-17 Pavel Roskin <proski@gnu.org>
28053
28054 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
28055 format.
28056 (grub_ohci_transfer): Likewise.
28057
28058 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
28059
28060 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
28061 return without a value. Fix inconsistent indentation.
28062
28063 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
28064 match struct grub_fs.
28065
28066 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
28067 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
28068 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
28069 * commands/lspci.c (grub_lspci_iter): Likewise.
28070
28071 2009-04-16 Bean <bean123ch@gmail.com>
28072
28073 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
28074 value.
28075
28076 2009-04-15 Pavel Roskin <proski@gnu.org>
28077
28078 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
28079 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
28080 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
28081 definitions.
28082
28083 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
28084
28085 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
28086 that no multiple data or metadata areas are supported and `Unknown
28087 metadata header'.
28088
28089 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
28090
28091 Move loader out of the kernel
28092
28093 * kern/loader.c: moved to ...
28094 * commands/boot.c: ... moved here
28095 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
28096 * commands/boot.c (grub_cmd_boot): moved here. All users updated
28097 * include/grub/kernel.h (grub_machine_fini): export
28098 * include/grub/loader.h (grub_loader_is_loaded): update declaration
28099 (grub_loader_set): likewise
28100 (grub_loader_unset): likewise
28101 (grub_loader_boot): likewise
28102 * conf/common.rmk: new module boot.mod
28103 (pkglib_MODULES): add boot.mod
28104 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
28105 (grub_emu_SOURCES): likewise
28106 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
28107 (grub_emu_SOURCES): likewise
28108 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
28109 (grub_emu_SOURCES): likewise
28110 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
28111 (grub_emu_SOURCES): likewise
28112 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
28113 (grub_emu_SOURCES): likewise
28114 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
28115 (grub_emu_SOURCES): likewise
28116 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
28117 (grub_emu_SOURCES): likewise
28118
28119 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
28120
28121 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
28122
28123 * kern/misc.c (grub_itoa): Removed function
28124 (grub_ltoa): likewise
28125 (grub_vsprintf): use grub_lltoa
28126
28127 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
28128
28129 Restore grub-emu
28130
28131 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
28132 * conf/i386-coreboot.rmk: likewise
28133 * conf/i386-ieee1275.rmk: likewise
28134 * conf/powerpc-ieee1275.rmk: likewise
28135
28136 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
28137
28138 * INSTALL: Add that `./autogen.sh' needs to be run before
28139 `./configure.'.
28140
28141 2009-04-14 Bean <bean123ch@gmail.com>
28142
28143 * Makefile.in (pkglib_DATA): Add handler.lst.
28144 (handler.lst): New rule.
28145
28146 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
28147 * conf/i386-coreboot.rmk: Likewise.
28148 * conf/i386-ieee1275.rmk: Likewise.
28149 * conf/i386-efi.rmk: Likewise.
28150 * conf/x86_64-efi.rmk: Likewise.
28151 * conf/powerpc-ieee1275.rmk: Likewise.
28152 * conf/sparc64-ieee1275.rmk: Likewise.
28153
28154 * genhandlerlist.sh: New file.
28155
28156 * genmk.rb: Add rules to generate handler.lst.
28157
28158 * include/grub/normal.h (grub_file_getline): New function definition.
28159 (read_handler_list): Likewise.
28160 (free_handler_list): Likewise.
28161
28162 * include/grub/term.h (grub_term_register_input): Add name parameter
28163 for auto generation of handler.lst.
28164 (grub_term_register_output): Likewise.
28165
28166 * normal/handler.c: New file.
28167
28168 * normal/main.c (get_line): Renamed to grub_file_getline.
28169 (read_config_file): Use the newly renamed grub_file_getline.
28170 (read_command_list): Likewise.
28171 (read_fs_list): Likewise.
28172 (grub_normal_execute): Call read_handler_list to parse handler.lst.
28173 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
28174
28175 * term/efi/console.c (grub_console_init): Add name parameter for auto
28176 generation of handler.lst.
28177 * term/gfxterm.c: Likewise.
28178 * term/i386/pc/at_keyboard.c: Likewise.
28179 * term/i386/pc/console.c: Likewise.
28180 * term/i386/pc/serial.c: Likewise.
28181 * term/i386/pc/vesafb.c: Likewise.
28182 * term/i386/pc/vga.c: Likewise.
28183 * term/i386/pc/vga_text.c: Likewise.
28184 * term/ieee1275/ofconsole.c: Likewise.
28185 * term/usb_keyboard.c: Likewise.
28186
28187 2009-04-14 Bean <bean123ch@gmail.com>
28188
28189 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
28190 properly with null character.
28191
28192 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
28193
28194 * configure: Remove.
28195 * config.h.in: Likewise.
28196 * stamp-h.in: Likewise.
28197 * DISTLIST: Likewise.
28198 * conf/common.mk: Likewise.
28199 * conf/i386-coreboot.mk: Likewise.
28200 * conf/i386-efi.mk: Likewise.
28201 * conf/i386-ieee1275.mk: Likewise.
28202 * conf/i386.mk: Likewise.
28203 * conf/i386-pc.mk: Likewise.
28204 * conf/powerpc-ieee1275.mk: Likewise.
28205 * conf/sparc64-ieee1275.mk: Likewise.
28206 * conf/x86_64-efi.mk: Likewise.
28207
28208 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
28209 develop on GRUB.
28210
28211 2009-04-14 John Stanley <jpsinthemix@verizon.net>
28212 David S. Miller <davem@davemloft.net>
28213
28214 * util/hostdisk.c (make_device_name): Fix buffer length
28215 calculations.
28216
28217 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
28218
28219 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
28220 <sys/param.h> and <sys/sysctl.h>.
28221 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
28222 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
28223 opening the device and reset them afterwards.
28224
28225 2009-04-13 Pavel Roskin <proski@gnu.org>
28226
28227 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
28228 Reported by John Stanley <jpsinthemix@verizon.net>
28229
28230 2009-04-13 Robert Millan <rmh@aybabtu.com>
28231
28232 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
28233 that name for menuentries when appropriate.
28234
28235 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
28236
28237 * util/grub.d/10_freebsd.in: Add a missing `fi'.
28238
28239 2009-04-13 Robert Millan <rmh@aybabtu.com>
28240
28241 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
28242 to Linux, simply abort telling the user it's no longer supported.
28243
28244 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
28245
28246 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
28247 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
28248 `freebsd_loadenv' only when devices.hints exist.
28249
28250 2009-04-13 Pavel Roskin <proski@gnu.org>
28251
28252 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
28253
28254 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
28255
28256 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
28257 partition number.
28258 (grub_drive): Likewise.
28259
28260 2009-04-13 David S. Miller <davem@davemloft.net>
28261
28262 * kern/sparc64/ieee1275/ieee1275.c: New file.
28263 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
28264 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
28265 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
28266 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
28267 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
28268 grub_ieee1275_alloc_physmem): Declare new exported functions.
28269
28270 * include/grub/sparc64/ieee1275/loader.h: New file.
28271 * include/grub/sparc64/ieee1275/memory.h: Likewise.
28272 * include/grub/sparc64/kernel.h: Likewise.
28273 * loader/sparc64/ieee1275/linux.c: Likewise.
28274
28275 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
28276 (grub_fstest_SOURCES): Likewise.
28277
28278 * util/hostdisk.c (make_device_name): Do not make any assumptions
28279 about the length of drive names.
28280
28281 * kern/dl.c (grub_dl_load_file): Close file immediately when
28282 we are done using it.
28283
28284 2009-04-12 David S. Miller <davem@davemloft.net>
28285
28286 * kern/misc.c (grub_ltoa): Fix cast when handling negative
28287 values. Noticed by Pavel Roskin.
28288
28289 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
28290 target compiler.
28291
28292 * genmk.rb: Add more flexible image type specification, also
28293 pass --strip-unneeded to objcopy.
28294 * conf/i386-pc.rmk: Use *_FORMAT.
28295 * conf/i386-pc.mk: Rebuilt.
28296
28297 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
28298 (OFDISK_HASH_SZ): Define.
28299 (ofdisk_hash): New hash table.
28300 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
28301 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
28302 instead of device phandle which is not unique.
28303
28304 * kern/sparc64/ieee1275/init.c: Delete, replace with...
28305 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
28306 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
28307 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
28308 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
28309 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
28310 GRUB_KERNEL_MACHINE_DATA_END): Define.
28311 (grub_kernel_image_size, grub_total_module_size): Declare.
28312
28313 2009-04-12 Pavel Roskin <proski@gnu.org>
28314
28315 * configure.ac: Change the logic when we check for target tools.
28316 Do it when the target is specified and it's different from the
28317 specified value of the host.
28318
28319 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
28320
28321 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
28322 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
28323 GNU/kFreeBSD. Check if a device is a character device. Use
28324 DIOCGMEDIASIZE to get the size.
28325 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
28326 support for GNU/kFreeBSD.
28327 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
28328 is a character device instead of a block device. Add support for
28329 FreeBSD device names.
28330
28331 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
28332 is a character device instead of a block device.
28333
28334 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
28335 is a character device instead of a block device.
28336
28337 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
28338
28339 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
28340 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
28341 FreeBSD. Check if a device is a character device. Use
28342 DIOCGMEDIASIZE to get the size.
28343 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
28344 support for FreeBSD.
28345 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
28346 is a character device instead of a block device. Add support for
28347 FreeBSD device names.
28348
28349 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
28350 a character device instead of a block device.
28351 (grub_util_check_char_device): New function.
28352
28353 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
28354 a character device instead of a block device.
28355
28356 * include/grub/util/getroot.h (grub_util_check_char_device): New
28357 prototype.
28358
28359 2009-04-11 David S. Miller <davem@davemloft.net>
28360
28361 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
28362 static libgcc.
28363 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
28364 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
28365 function, if present.
28366 (__bswapdi2): Likewise.
28367
28368 * include/grub/sparc64/ieee1275/boot.h: New file.
28369 * boot/sparc64/ieee1275/boot.S: Likewise.
28370 * boot/sparc64/ieee1275/diskboot.S: Likewise.
28371
28372 * kern/misc.c (grub_ltoa): New function.
28373 (grub_vsprintf): Use it to format 'long' integers.
28374
28375 2009-04-10 David S. Miller <davem@davemloft.net>
28376
28377 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
28378 slots are of type grub_ieee1275_cell_t.
28379 (grub_nand_read): Likewise.
28380 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
28381 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
28382 macros are used to compare values in arg/ret block of the call.
28383 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
28384 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
28385 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
28386 grub_ieee1275_instance_to_path, grub_ieee1275_write,
28387 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
28388 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
28389 grub_ieee1275_close, grub_ieee1275_set_property,
28390 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
28391 grub_ieee1275_cell_t.
28392 * kern/ieee1275/openfw.c (grub_map): Likewise.
28393 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
28394 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
28395
28396 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
28397 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
28398 (grub_devalias_iterate): Likewise.
28399
28400 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28401
28402 UFS improvements
28403
28404 * fs/ufs.c (INODE_NBLOCKS): new definition
28405 (struct grub_ufs_dirent): added fields for non-BSD dirents
28406 (grub_ufs_get_file_block): fixed double indirect handling
28407 (grub_ufs_lookup_symlink): use more robust way to determine whether
28408 symlink is inline
28409 (grub_ufs_find_file): support for non-BSD dirents
28410 (grub_ufs_dir): support for non-BSD dirents
28411
28412 2009-04-10 Bean <bean123ch@gnail.com>
28413
28414 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
28415 attribute, otherwise the size would be wrong for i386 platform.
28416
28417 * include/grub/pci.h (grub_pci_read_word): New inline function.
28418 (grub_pci_read_byte): Likewise.
28419 (grub_pci_write): Likewise.
28420 (grub_pci_write_word): Likewise.
28421 (grub_pci_write_byte): Likewise.
28422
28423 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
28424
28425 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
28426 (find_framebuf): Scan pci to locate the frame buffer address.
28427
28428 * commands/efi/fixvideo.c: New file.
28429
28430 * commands/efi/loadbios.c: Likewise.
28431
28432 * commands/memrw.c: Likewise.
28433
28434 * util/grub-dumpbios.in: Likewise.
28435
28436 * conf/common.rmk (grub-dumpbios): New utility.
28437 (pkglib_MODULES): New module memrw.mod.
28438 (memrw_mod_SOURCE): New macro.
28439 (memrw_mod_CFLAGS): Likewise.
28440 (memrw_mod_LDFLAGS): Likewise.
28441
28442 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
28443 fixvideo.mod.
28444 (loadbios_mod_SOURCE): New macro.
28445 (loadbios_mod_CFLAGS): Likewise.
28446 (loadbios_mod_LDFLAGS): Likewise.
28447 (fixvideo_mod_SOURCE): Likewise.
28448 (fixvideo_mod_CFLAGS): Likewise.
28449 (fixvideo_mod_LDFLAGS): Likewise.
28450
28451 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
28452 fixvideo.mod.
28453 (loadbios_mod_SOURCE): New macro.
28454 (loadbios_mod_CFLAGS): Likewise.
28455 (loadbios_mod_LDFLAGS): Likewise.
28456 (fixvideo_mod_SOURCE): Likewise.
28457 (fixvideo_mod_CFLAGS): Likewise.
28458 (fixvideo_mod_LDFLAGS): Likewise.
28459
28460 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
28461
28462 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
28463
28464 2009-04-07 David S. Miller <davem@davemloft.net>
28465
28466 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
28467 support for R_SPARC_OLO10 relocations. Fix compile warning for
28468 R_SPARC_WDISP30 case.
28469 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
28470
28471 2009-04-06 Pavel Roskin <proski@gnu.org>
28472
28473 * include/grub/misc.h (ARRAY_SIZE): New macro.
28474 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
28475 New macro.
28476 * loader/i386/linux.c (allocate_pages): Use free_pages().
28477 (grub_linux_unload): Don't use free_pages().
28478 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
28479 wrong index. Treat all other modes as text modes.
28480 (grub_cmd_linux): Initialize vid_mode unconditionally to
28481 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
28482
28483 * commands/help.c (print_command_help): Use cmd->prio, not
28484 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
28485
28486 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
28487
28488 Parttool
28489
28490 * parttool/pcpart.c: new file
28491 * commands/parttool.c: likewise
28492 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
28493 (parttool_mod_SOURCES): new variable
28494 (parttool_mod_CFLAGS): likewise
28495 (parttool_mod_LDFLAGS): likewise
28496 (pcpart_mod_SOURCES): likewise
28497 (pcpart_mod_CFLAGS): likewise
28498 (pcpart_mod_LDFLAGS): likewise
28499 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
28500 and parttool/pcpart.c
28501 * conf/i386-efi.rmk: likewise
28502 * conf/i386-ieee1275.rmk: likewise
28503 * conf/i386-pc.rmk: likewise
28504 * conf/powerpc-ieee1275.rmk: likewise
28505 * conf/sparc64-ieee1275.rmk: likewise
28506 * conf/x86_64-ieee1275.rmk: likewise
28507
28508 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28509
28510 Support for mtime and further expandability of dir command
28511
28512 * include/grub/lib/datetime.h: moved to ...
28513 * include/grub/datetime.h: ... moved here and added
28514 declaration of grub_unixtime2datetime. All users updated
28515 * include/grub/fs.h: new syntax for dir and mtime functions in
28516 struct grub_fs
28517 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
28518 and GRUB_FSHELP_FLAGS_MASK
28519 * commands/ls.c (grub_ls_list_files): Write mtime in long format
28520 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
28521 (grub_ext2_mtime): new function
28522 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
28523 (grub_hfsplus_mtime): new function
28524 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
28525 (GRUB_UFS_ATTR_FILE): likewise
28526 (GRUB_UFS_ATTR_LNK): likewise
28527 (struct grub_ufs_sblock): new fields mtime
28528 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
28529 all users updated
28530 (grub_ufs_dir): mtime support
28531 (grub_ufs_mtime): new function
28532 * fs/affs.c (grub_affs_dir): use new dir syntax
28533 * fs/afs.c (grub_afs_dir): likewise
28534 * fs/cpio.c (grub_cpio_dir): likewise
28535 * fs/fat.c (grub_fat_find_dir): likewise
28536 * fs/hfs.c (grub_hfs_dir): likewise
28537 * fs/iso9660.c (grub_iso9660_dir): likewise
28538 * fs/jfs.c (grub_jfs_dir): likewise
28539 * fs/minix.c (grub_minix_dir): likewise
28540 * fs/ntfs.c (grub_ntfs_dir): likewise
28541 * fs/reiserfs.c (grub_reiserfs_dir): likewise
28542 * fs/sfs.c (grub_sfs_dir): likewise
28543 * fs/xfs.c (grub_xfs_dir): likewise
28544 * util/hostfs.c (grub_hostfs_dir): likewise
28545 * lib/datetime.c: moved to ...
28546 * normal/datetime.c: ... moved here
28547 (grub_unixtime2datetime): new function
28548 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
28549 * normal/completion.c (iterate_dir): use new dir syntax
28550 * normal/misc.c (grub_normal_print_device_info): tell the
28551 last modification time of a volume
28552 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
28553 * conf/common.rmk: added lib/datetime.c to ls.mod
28554 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
28555 (normal_mod_SOURCES): likewise
28556 (datetime_mod_SOURCES): Removed lib/datetime.c
28557 * conf/i386-efi.rmk: likewise
28558 * conf/i386-ieee1275.rmk: likewise
28559 * conf/i386-pc.rmk: likewise
28560 * conf/powerpc-ieee1275.rmk: likewise
28561 * conf/sparc64-ieee1275.rmk: likewise
28562 * conf/x86_64-efi.rmk: likewise
28563
28564 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28565
28566 Trim trailing spaces in FAT label and support mtools-like labels
28567
28568 * fs/fat.c (grub_fat_iterate_dir): New function based
28569 on grub_fat_find_dir
28570 (grub_fat_find_dir): use grub_fat_iterate_dir
28571 (grub_fat_label): likewise
28572
28573 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
28574
28575 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
28576 and command.h
28577 remove extraneous kernel_elf_HEADERS
28578
28579 2009-04-04 Bean <bean123ch@gnail.com>
28580
28581 * include/grub/util/misc.h: Add dummy function fsync for mingw.
28582
28583 * util/misc.c: Likewise.
28584
28585 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
28586
28587 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
28588 instead of grub_printf.
28589
28590 2009-04-03 Robert Millan <rmh@aybabtu.com>
28591
28592 * loader/i386/linux.c (grub_linux_setup_video): Fill
28593 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
28594 values from `mode info' structure instead of hardcoded
28595 values.
28596
28597 2009-04-01 Pavel Roskin <proski@gnu.org>
28598
28599 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
28600 unused now.
28601 * genmk.rb: Likewise.
28602 * configure.ac: Likewise.
28603
28604 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
28605
28606 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
28607 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
28608
28609 2009-04-01 David S. Miller <davem@davemloft.net>
28610
28611 * normal/sparc64/setjmp.S: Fix setjmp implementation.
28612 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
28613 (grub_setjmp): Mark with 'returns_twice' attribute.
28614 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
28615 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
28616 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
28617
28618 2009-04-01 Robert Millan <rmh@aybabtu.com>
28619
28620 Reapply fix from 2008-07-28 which was accidentally reverted; also
28621 perform the same fix to a similar check in same function.
28622
28623 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
28624 with the same number are found, just use issue a warning with
28625 grub_dprintf(), as this error has been reported to be non-fatal.
28626
28627 2009-03-31 Pavel Roskin <proski@gnu.org>
28628
28629 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
28630 for cross-compilation.
28631
28632 2009-03-30 Robert Millan <rmh@aybabtu.com>
28633
28634 Fix i386-ieee1275 build.
28635
28636 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
28637 Remove declaration.
28638
28639 2009-03-30 Pavel Roskin <proski@gnu.org>
28640
28641 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
28642 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
28643 zero-terminated, rely only on the strlen value. Fix comparison
28644 of strings differing in length.
28645
28646 2009-03-30 Robert Millan <rmh@aybabtu.com>
28647
28648 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
28649 checking for abi version. Improve error messages on BIOS to notify
28650 user about `linux16' command.
28651
28652 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
28653
28654 Leak fixes
28655
28656 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
28657 in case of collision
28658 * disk/scsi.c (grub_scsi_open): free scsi in case of error
28659
28660 2009-03-29 Robert Millan <rmh@aybabtu.com>
28661
28662 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
28663 set `vid_mode' accordingly.
28664 (grub_linux_boot): Process `vid_mode' and set video mode.
28665
28666 2009-03-29 Robert Millan <rmh@aybabtu.com>
28667
28668 * util/grub.d/10_linux.in (linux_entry): New function.
28669 Factorize generation of Linux boot entries.
28670
28671 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
28672
28673 Make the format of Environment Block plain text. The boot loader
28674 part is not tested well yet.
28675
28676 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
28677 (buffer): Removed.
28678 (envblk): Likewise.
28679 (usage): Remove "info" and "clear". Add "unset". Update the
28680 description of "set", as this does not delete variables any
28681 longer.
28682 (create_envblk_file): Complete rewrite.
28683 (open_envblk_file): Likewise.
28684 (cmd_info): Removed.
28685 (cmd_list): Likewise.
28686 (cmd_set): Likewise.
28687 (cmd_clear): Likewise.
28688 (list_variables): New function.
28689 (write_envblk): Likewise.
28690 (set_variables): Likewise.
28691 (unset_variables): Likewise.
28692 (main): Complete rewrite.
28693
28694 * commands/loadenv.c (buffer): Removed.
28695 (envblk): Likewise.
28696 (open_envblk_file): New function.
28697 (read_envblk_file): Complete rewrite.
28698 (grub_cmd_load_env): Likewise.
28699 (grub_cmd_list_env): Likewise.
28700 (struct blocklist): New struct.
28701 (free_blocklists): New function.
28702 (check_blocklists): Likewise.
28703 (write_blocklists): Likewise.
28704 (grub_cmd_save_env): Complete rewrite.
28705
28706 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
28707 a plain text signature.
28708 (GRUB_ENVBLK_MAXLEN): Removed.
28709 (struct grub_envblk): Complete rewrite.
28710 (grub_envblk_find): Removed.
28711 (grub_envblk_insert): Likewise.
28712 (grub_envblk_open): New prototype.
28713 (grub_envblk_set): Likewise.
28714 (grub_envblk_delete): Put const to VALUE.
28715 (grub_envblk_iterate): Put const to NAME and VALUE.
28716 (grub_envblk_close): New prototype.
28717 (grub_envblk_buffer): New inline function.
28718 (grub_envblk_size): Likewise.
28719
28720 * lib/envblk.c: Include grub/mm.h.
28721 (grub_env_find): Removed.
28722 (grub_envblk_open): New function.
28723 (grub_envblk_close): Likewise.
28724 (escaped_value_len): Likewise.
28725 (find_next_line): Likewise.
28726 (grub_envblk_insert): Removed.
28727 (grub_envblk_set): New function.
28728 (grub_envblk_delete): Complete rewrite.
28729 (grub_envblk_iterate): Likewise.
28730
28731 2009-03-28 Robert Millan <rmh@aybabtu.com>
28732
28733 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
28734 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
28735 variables. Use 16-bit loader.
28736 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
28737 loader.
28738 * kern/i386/loader.S (grub_linux_boot): Rename to ...
28739 (grub_linux16_boot): ... this. Update all users.
28740 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
28741 (grub_linux_boot): ... this. Update all users.
28742
28743 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
28744 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
28745 commands to `linux16' and `initrd16'.
28746 (GRUB_MOD_FINI(linux)): Rename to ...
28747 (GRUB_MOD_FINI(linux16)): ... this.
28748
28749 2009-03-24 Pavel Roskin <proski@gnu.org>
28750
28751 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
28752 not just for compilation.
28753
28754 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
28755
28756 Move multiboot helper out of kernel
28757
28758 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
28759 `loader/i386/multiboot_helper.S'.
28760 * conf/i386-coreboot.rmk: Likewise
28761 * conf/i386-ieee1275.rmk: Likewise
28762
28763 * kern/i386/loader.S: Move multiboot helpers from here...
28764 * loader/i386/multiboot_helper.S: ...moved here
28765 * include/grub/i386/loader.h: Move declarations of multiboot
28766 helpers from here...
28767 * include/grub/i386/multiboot.h: ...moved here
28768 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
28769
28770 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
28771
28772 * kern/env.c (grub_env_context_open): Added an argument to specify
28773 whether a new context inherits exported variables from current
28774 one. This is useful when making a sandbox to interpret a config
28775 file.
28776 All callers updated.
28777
28778 * include/grub/env.h (grub_env_context_open): Updated the prototype.
28779
28780 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
28781
28782 * kern/env.c (grub_env_context_close): Fix memory leaks.
28783
28784 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
28785
28786 * normal/main.c (grub_normal_execute): Added an argument
28787 BATCH to specify if an interactive interface should be provided
28788 after reading a config file.
28789 All callers updated.
28790 (read_command_list): Prevent being executed twice.
28791 (read_fs_list): Likewise.
28792
28793 * include/grub/normal.h (grub_normal_execute): Updated the
28794 prototype.
28795
28796 2009-03-22 Pavel Roskin <proski@gno.org>
28797
28798 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
28799 _start.
28800 * kern/i386/pc/startup.S: Likewise.
28801 * kern/i386/efi/startup.S: Likewise.
28802 * kern/i386/ieee1275/startup.S: Likewise.
28803 * kern/i386/coreboot/startup.S: Likewise.
28804 * kern/x86_64/efi/startup.S: Likewise.
28805
28806 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
28807 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
28808 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
28809
28810 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
28811
28812 Bugfixes in multiboot for bugs uncovered by solaris kernel.
28813
28814 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
28815 limit detection.
28816 Use vaddr of correct segment for entry_point.
28817
28818 2009-03-21 Bean <bean123ch@gmail.com>
28819
28820 * commands/blocklist.c: Add include file <grub/command.h>, remove
28821 <grub/normal.h> and <grub/arg.h>.
28822 (grub_cmd_blocklist): Use the new command interface.
28823 (GRUB_MOD_INIT): Likewise.
28824 (GRUB_MOD_FINI): Likewise.
28825 * commands/boot.c: Likewise.
28826 * commands/cat.c: Likewise.
28827 * commands/cmp.c: Likewise.
28828 * commands/configfile.c: Likewise.
28829 * commands/crc.c: Likewise.
28830 * commands/echo.c: Likewise.
28831 * commands/halt.c: Likewise.
28832 * commands/handler.c: Likewise.
28833 * commands/hdparm.c: Likewise.
28834 * commands/help.c: Likewise.
28835 * commands/hexdump.c: Likewise.
28836 * commands/loadenv.c: Likewise.
28837 * commands/ls.c: Likewise.
28838 * commands/lsmmap.c: Likewise.
28839 * commands/lspci.c: Likewise.
28840 * commands/loadenv.c: Likewise.
28841 * commands/read.c: Likewise.
28842 * commands/reboot.c: Likewise.
28843 * commands/search.c: Likewise.
28844 * commands/sleep.c: Likewise.
28845 * commands/test.c: Likewise.
28846 * commands/usbtest.c: Likewise.
28847 * commands/videotest.c: Likewise.
28848 * commands/i386/cpuid.c: Likewise.
28849 * commands/i386/pc/halt.c: Likewise.
28850 * commands/i386/pc/play.c: Likewise.
28851 * commands/i386/pc/pxecmd.c: Likewise.
28852 * commands/i386/pc/vbeinfo.c: Likewise.
28853 * commands/i386/pc/vbetest.c: Likewise.
28854 * commands/ieee1275/suspend.c: Likewise.
28855 * disk/loopback.c: Likewise.
28856 * font/font_cmd.c: Likewise.
28857 * hello/hello.c: Likewise.
28858 * loader/efi/appleloader.c: Likewise.
28859 * loader/efi/chainloader.c: Likewise.
28860 * loader/i386/bsd.c: Likewise.
28861 * loader/i386/efi/linux.c: Likewise.
28862 * loader/i386/ieee1275/linux.c: Likewise.
28863 * loader/i386/linux.c: Likewise.
28864 * loader/i386/pc/chainloader.c: Likewise.
28865 * loader/i386/pc/linux.c: Likewise.
28866 * loader/powerpc/ieee1275/linux.c: Likewise.
28867 * loader/multiboot_loader.c: Likewise.
28868 * term/gfxterm.c: Likewise.
28869 * term/i386/pc/serial.c: Likewise.
28870 * term/terminfo.c: Likewise.
28871
28872 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
28873 * term/i386/pc/vga.c: Likewise.
28874 * video/readers/jpeg.c: Likewise.
28875 * video/readers/png.c: Likewise.
28876 * video/readers/tga.c: Likewise.
28877
28878 * util/grub-fstest (cmd_loopback): Removed.
28879 (cmd_blocklist): Likewise.
28880 (cmd_ls): Likewise.
28881 (grub_register_command): Likewise.
28882 (grub_unregister_command): Likewise.
28883 (execute_command): Use grub_command_find to locate command and execute
28884 it.
28885
28886 * include/grub/efi/chainloader.h: Removed.
28887 * loader/efi/chainloader_normal.c: Likewise.
28888 * loader/i386/bsd_normal.c: Likewise.
28889 * loader/i386/pc/chainloader_normal.c: Likewise.
28890 * loader/i386/pc/multiboot_normal.c: Likewise.
28891 * loader/linux_normal.c: Likewise.
28892 * loader/multiboot_loader_normal.c: Likewise.
28893 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
28894
28895 * gencmdlist.sh: Scan new registration command grub_register_extcmd
28896 and grub_register_command_p1.
28897
28898 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
28899 kern/command.c, lib/arg.c and commands/extcmd.c.
28900 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
28901 (minicmd_mod_SOURCES): New variable.
28902 (minicmd_mod_CFLAGS): Likewise.
28903 (minicmd_mod_LDFLAGS): Likewise.
28904 (extcmd_mod_SOURCES): Likewise.
28905 (extcmd_mod_CFLAGS): Likewise.
28906 (extcmd_mod_LDFLAGS): Likewise.
28907 (boot_mod_SOURCES): Removed.
28908 (boot_mod_CFLAGS): Likewise.
28909 (boot_mod_LDFLAGS): Likewise.
28910
28911 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
28912 kern/corecmd.c.
28913 (kernel_img_HEADERS): Add command.h.
28914 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
28915 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
28916 and lib/arg.c.
28917 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
28918 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
28919 remove the corresponding normal mode command.
28920 (normal_mod_SOURCES): Remove normal/arg.c.
28921 * conf/i386-coreboot.rmk: Likewise.
28922 * conf/i386-efi.rmk: Likewise.
28923 * conf/i386-ieee1275.rmk: Likewise.
28924 * conf/powerpc-ieee1275.rmk: Likewise.
28925 * conf/x86_64-efi.rmk: Likewise.
28926
28927 * include/grub/arg.h: Move from here ...
28928 * include/grub/lib/arg.h: ... to here.
28929
28930 * normal/arg.c: Move from here ...
28931 * lib/arg.c: ... to here.
28932
28933 * commands/extcmd.c: New file.
28934 * commands/minicmd.c: Likewise.
28935 * include/grub/command.h: Likewise.
28936 * include/grub/extcmd.h: Likewise.
28937 * kern/command.c: Likewise.
28938 * kern/corecmd.c: Likewise.
28939
28940 * kern/list.c (grub_list_iterate): Return int instead of void.
28941 (grub_list_insert): New function.
28942 (grub_prio_list_insert): Likewise.
28943
28944 * kern/rescue.c (grub_rescue_command): Removed.
28945 (grub_rescue_command_list): Likewise.
28946 (grub_rescue_register_command): Likewise.
28947 (grub_rescue_unregister_command): Likewise.
28948 (grub_rescue_cmd_boot): Move to minicmd.c
28949 (grub_rescue_cmd_help): Likewise.
28950 (grub_rescue_cmd_info): Likewise.
28951 (grub_rescue_cmd_boot): Likewise.
28952 (grub_rescue_cmd_testload): Likewise.
28953 (grub_rescue_cmd_dump): Likewise.
28954 (grub_rescue_cmd_rmmod): Likewise.
28955 (grub_rescue_cmd_lsmod): Likewise.
28956 (grub_rescue_cmd_exit): Likewise.
28957 (grub_rescue_print_devices): Moved to corecmd.c.
28958 (grub_rescue_print_files): Likewise.
28959 (grub_rescue_cmd_ls): Likewise.
28960 (grub_rescue_cmd_insmod): Likewise.
28961 (grub_rescue_cmd_set): Likewise.
28962 (grub_rescue_cmd_unset): Likewise.
28963 (attempt_normal_mode): Use grub_command_find to get normal module.
28964 (grub_enter_rescue_mode): Use grub_register_core_commands to register
28965 commands, remove grub_rescue_register_command calls.
28966
28967 * normal/command.c (grub_register_command): Removed.
28968 (grub_unregister_command): Likewise.
28969 (grub_command_find): Likewise.
28970 (grub_iterate_commands): Likewise.
28971 (rescue_command): Likewise.
28972 (export_command): Moved to corecmd.c.
28973 (set_command): Removed.
28974 (unset_command): Likewise.
28975 (insmod_command): Likewise.
28976 (rmmod_command): Likewise.
28977 (lsmod_command): Likewise.
28978 (grub_command_init): Likewise.
28979
28980 * normal/completion.c (iterate_command): Use cmd->prio to check for
28981 active command.
28982 (complete_arguments): Use grub_extcmd_t structure to find options.
28983 (grub_normal_do_completion): Change function grub_iterate_commands to
28984 grub_command_iterate.
28985
28986 * normal/execute.c (grub_script_execute_cmd): No need to parse
28987 argument here.
28988
28989 * normal/main.c (grub_dyncmd_dispatcher): New function.
28990 (read_command_list): Register unload commands as dyncmd.
28991 (grub_cmd_normal): Use new command interface, register rescue,
28992 unregister normal at entry, register normal, unregister rescue at exit.
28993
28994 * include/grub/list.h (grub_list_test_t): New type.
28995 (grub_list_iterate): Return int instead of void.
28996 (grub_list_insert): New function.
28997 (GRUB_AS_NAMED_LIST_P): New macro.
28998 (GRUB_AS_PRIO_LIST): Likewise.
28999 (GRUB_AS_PRIO_LIST_P): Likewise.
29000 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
29001 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
29002 (grub_prio_list): New structure.
29003 (grub_prio_list_insert): New function.
29004 (grub_prio_list_remove): New inline function.
29005
29006 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
29007 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
29008 (GRUB_COMMAND_FLAG_MENU): Likewise.
29009 (GRUB_COMMAND_FLAG_BOTH): Likewise.
29010 (GRUB_COMMAND_FLAG_TITLE): Likewise.
29011 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
29012 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
29013 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
29014 (grub_command): Likewise.
29015 (grub_register_command): Likewise.
29016 (grub_command_find): Likewise.
29017 (grub_iterate_commands): Likewise.
29018 (grub_command_init): Likewise.
29019 (grub_arg_parse): Likewise.
29020 (grub_arg_show_help): Likewise.
29021
29022 * include/grub/rescue.h (grub_rescue_register_command): Removed.
29023 (grub_rescue_unregister_command): Likewise.
29024
29025 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
29026 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
29027 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
29028
29029 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
29030 grub_rescue_cmd_initrd.
29031 * include/grub/i386/loader.h: Likewise.
29032 * include/grub/x86_64/loader.h: Likewise.
29033
29034 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
29035
29036 2009-03-21 Bean <bean123ch@gmail.com>
29037
29038 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
29039 instead of stat in mingw environment.
29040
29041 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
29042
29043 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
29044
29045 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
29046 AC_CONFIG_LINKS.
29047
29048 2009-03-21 Bean <bean123ch@gmail.com>
29049
29050 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
29051 out of range error.
29052
29053 2009-03-18 Michel Dänzer <michel@daenzer.net>
29054
29055 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
29056 checking inode flags for EXT4_EXTENTS_FLAG.
29057
29058 2009-03-18 Robert Millan <rmh@aybabtu.com>
29059
29060 * loader/i386/linux.c: Include `<grub/video.h>' and
29061 `<grub/i386/pc/vbe.h>'..
29062 (grub_linux_setup_video): New function. Loosely based on the EFI one.
29063 (grub_linux32_boot): Attempt to configure video settings with
29064 grub_linux_setup_video().
29065 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
29066 to avoid grub_console_fini() which would step out of graphical mode
29067 unconditionally.
29068
29069 2009-03-14 Robert Millan <rmh@aybabtu.com>
29070
29071 Fix build on powerpc.
29072 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
29073
29074 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
29075
29076 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
29077 background image command.
29078
29079 2009-03-12 Colin D Bennett <colin@gibibit.com>
29080
29081 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
29082 (grub_gfxterm_putchar): Extract pairs of identical calls to
29083 draw_cursor out of conditional blocks.
29084
29085 2009-03-11 Pavel Roskin <proski@gnu.org>
29086
29087 * fs/hfs.c (grub_hfs_strncasecmp): New function.
29088 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
29089
29090 2009-03-11 Robert Millan <rmh@aybabtu.com>
29091
29092 * loader/i386/multiboot_elfxx.c
29093 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
29094
29095 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
29096
29097 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
29098 `kern/handler.c'.
29099
29100 2009-03-11 Robert Millan <rmh@aybabtu.com>
29101
29102 * loader/i386/multiboot.c (code_size): New variable.
29103 (grub_multiboot): Define offsets by adding to `code_size' rather
29104 than subtracting from `grub_multiboot_payload_size'. Provide
29105 4-byte alignment to MBI and others by increasing
29106 `boot_loader_name_length' appropriately.
29107
29108 * loader/i386/multiboot_elfxx.c
29109 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
29110
29111 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
29112
29113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
29114 `fs/ext2.c'.
29115
29116 2009-03-08 Robert Millan <rmh@aybabtu.com>
29117
29118 Make loader/i386/linux.c usable on i386-pc again.
29119
29120 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
29121 memory to heap.
29122 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
29123 `#error' stanza.
29124
29125 2009-03-07 Bean <bean123ch@gmail.com>
29126
29127 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
29128 allocation.
29129
29130 2009-03-06 Robert Millan <rmh@aybabtu.com>
29131
29132 Fix display issue on terminals with screen size other than 80x25
29133 (e.g. gfxterm with resolution higher than 640x480).
29134
29135 * normal/main.c (grub_normal_init_page): Display title text in a
29136 position relative to the center of the terminal instead of relying
29137 on a hardcoded offset.
29138
29139 2009-03-04 Robert Millan <rmh@aybabtu.com>
29140
29141 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
29142 installed.
29143
29144 * Makefile.in (host_kernel): New variable.
29145 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
29146 scripts instead of just the windows one.
29147 * configure.ac: Initialize and AC_SUBST `host_kernel'.
29148
29149 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
29150
29151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
29152 `kern/handler.c'.
29153 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29154 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29155 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29157 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29158 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29159
29160 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
29161
29162 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
29163 or if there's no space for the disk label and print the partition number on a
29164 invalid magic.
29165
29166 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
29167
29168 * util/misc.c: Include <time.h>.
29169 (grub_millisleep): New function.
29170
29171 2009-03-04 Bean <bean123ch@gmail.com>
29172
29173 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
29174 another option -mno-red-zone.
29175
29176 * commands/handler.c: Change module description.
29177
29178 * kern/handler.c: Add missing space at the end of description line.
29179
29180 * kern/list.c: Likewise.
29181
29182 2009-03-03 Robert Millan <rmh@aybabtu.com>
29183
29184 Move more components to the relocation area, and fix mbi pointer
29185 handling to use the destination rather than the origin (thanks to
29186 Vladimir Serbinenko for spotting).
29187
29188 * loader/i386/multiboot.c (mbi_dest): New variable.
29189 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
29190 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
29191 relocation area.
29192
29193 2009-03-01 Bean <bean123ch@gmail.com>
29194
29195 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
29196 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
29197 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
29198 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
29199
29200 * loader/i386/efi/linux.c (acpi_guid): New variable.
29201 (acpi_guid): Likewise.
29202 (EBDA_SEG_ADDR): New constant.
29203 (LOW_MEM_ADDR): Likewise.
29204 (FAKE_EBDA_SEG): Likewise.
29205 (fake_bios_data): New function.
29206 (grub_linux_boot): Call fake_bios_data.
29207
29208 2009-03-01 Bean <bean123ch@gmail.com>
29209
29210 * commands/terminal.c: Removed.
29211
29212 * commands/handler.c: New file.
29213
29214 * include/grub/list.h: Likewise.
29215
29216 * include/grub/handler.h: Likewise.
29217
29218 * kern/list.c: Likewise.
29219
29220 * kern/handler.c: Likewise.
29221
29222 * kern/term.h: Include header file <grub/handler.h>.
29223 (grub_term_input): Move next field to the beginning.
29224 (grub_term_output): Likewise.
29225 (grub_term_input_class): New variable.
29226 (grub_term_output_class): Likewise.
29227 (grub_term_register_input): Changed to inline function.
29228 (grub_term_register_output): Likewise.
29229 (grub_term_unregister_input): Likewise.
29230 (grub_term_unregister_output): Likewise.
29231 (grub_term_set_current_input): Likewise.
29232 (grub_term_set_current_output): Likewise.
29233 (grub_term_get_current_input): Likewise.
29234 (grub_term_get_current_output): Likewise.
29235 (grub_term_iterate_input): Removed.
29236 (grub_term_iterate_output): Likewise.
29237
29238 * kern/term.c (grub_term_list_input): Removed.
29239 (grub_term_list_output): Likewise.
29240 (grub_term_input_class): New variable.
29241 (grub_term_output_class): Likewise.
29242 (grub_cur_term_input): Change variable as macro.
29243 (grub_cur_term_output): Likewise.
29244 (grub_term_register_input): Removed.
29245 (grub_term_register_output): Likewise.
29246 (grub_term_unregister_input): Likewise.
29247 (grub_term_unregister_output): Likewise.
29248 (grub_term_set_current_input): Likewise.
29249 (grub_term_set_current_output): Likewise.
29250 (grub_term_iterate_input): Likewise.
29251 (grub_term_iterate_output): Likewise.
29252 (grub_term_get_current_input): Likewise.
29253 (grub_term_get_current_output): Likewise.
29254
29255 * util/grub-editenv.c: Include header file <grub/handler.h>.
29256 (grub_term_get_current_input): Removed.
29257 (grub_term_get_current_output): Likewise.
29258 (grub_term_input_class): New variable.
29259 (grub_term_output_class): Likewise.
29260
29261 * util/grub-fstest.c (grub_term_get_current_input): Removed.
29262 (grub_term_get_current_output): Likewise.
29263 (grub_term_input_class): New variable.
29264 (grub_term_output_class): Likewise.
29265
29266 * util/grub-probe.c (grub_term_get_current_input): Removed.
29267 (grub_term_get_current_output): Likewise.
29268 (grub_term_input_class): New variable.
29269 (grub_term_output_class): Likewise.
29270
29271 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
29272 (grub_term_get_current_output): Likewise.
29273 (grub_term_input_class): New variable.
29274 (grub_term_output_class): Likewise.
29275
29276 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
29277 (terminal_mod_SOURCES): Likewise.
29278 (terminal_mod_CFLAGS): Likewise.
29279 (terminal_mod_LDFLAGS): Likewise.
29280
29281 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
29282 handler.c.
29283 (kernel_img_SOURCES): Add list.c and handler.c.
29284 (kernel_img_HEADERS): Add list.h and handler.h.
29285
29286 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
29287 handler.c.
29288 (kernel_mod_SOURCES): Add list.c and handler.c.
29289 (kernel_mod_HEADERS): Add list.h and handler.h.
29290
29291 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
29292 handler.c.
29293 (kernel_elf_SOURCES): Add list.c and handler.c.
29294 (kernel_elf_HEADERS): Add list.h and handler.h.
29295
29296 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
29297 handler.c.
29298 (kernel_elf_SOURCES): Add list.c and handler.c.
29299 (kernel_elf_HEADERS): Add list.h and handler.h.
29300
29301 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
29302 handler.c.
29303 (kernel_mod_SOURCES): Add list.c and handler.c.
29304 (kernel_mod_HEADERS): Add list.h and handler.h.
29305
29306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
29307 handler.c.
29308 (kernel_elf_SOURCES): Add list.c and handler.c.
29309 (kernel_elf_HEADERS): Add list.h and handler.h.
29310
29311 2009-02-27 Robert Millan <rmh@aybabtu.com>
29312
29313 Factorize elf32 / elf64 code in Multiboot loader. This will
29314 prevent it from getting out of sync again.
29315
29316 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
29317 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
29318 grub_multiboot_load_elf64): Move from here ...
29319 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
29320 grub_multiboot_load_elf): ... to here (new file).
29321
29322 2009-02-27 Robert Millan <rmh@aybabtu.com>
29323
29324 * util/grub.d/10_linux.in: Rename "single-user mode" to
29325 "recovery mode".
29326
29327 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
29328
29329 Don't leak in SCSI code.
29330 * disk/scsi.c (grub_scsi_close): free `scsi'.
29331
29332 2009-02-27 Robert Millan <rmh@aybabtu.com>
29333
29334 * loader/i386/pc/multiboot.c: Move from here ...
29335 * loader/i386/multiboot.c: ... to here. Update all users.
29336
29337 2009-02-27 Robert Millan <rmh@aybabtu.com>
29338
29339 Patch from Alexandre Bique <bique.alexandre@gmail.com>
29340 * util/i386/pc/grub-setup.c (setup): Fix directory path.
29341
29342 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
29343
29344 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
29345 b-tree.
29346
29347 2009-02-27 Robert Millan <rmh@aybabtu.com>
29348
29349 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
29350 `0x' qualifier as 0 when base is specified as parameter).
29351
29352 2009-02-24 Bean <bean123ch@gmail.com>
29353
29354 * configure.ac: Check for -mcmodel=large in x86_64 target.
29355
29356 * include/grub/efi/api.h (efi_call_10): New macro.
29357 (efi_wrap_10): New function.
29358
29359 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
29360 (GRUB_PE32_REL_BASED_HIGH): Likewise.
29361 (GRUB_PE32_REL_BASED_LOW): Likewise.
29362 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
29363 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
29364 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
29365 (GRUB_PE32_REL_BASED_SECTION): Likewise.
29366 (GRUB_PE32_REL_BASED_REL): Likewise.
29367 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
29368 (GRUB_PE32_REL_BASED_DIR64): Likewise.
29369 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
29370
29371 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
29372 issue.
29373
29374 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
29375 (efi_wrap_10): New function.
29376
29377 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
29378
29379 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
29380 MB/MBP model (NV chipset).
29381 (devdata_devs): Add devpath_5 to the list.
29382
29383 * load/i386/efi/linux.c (video_base): Remove variable.
29384 (RGB_MASK): New macro.
29385 (RGB_MAGIC): Likewise.
29386 (LINE_MIN): Likewise.
29387 (LINE_MAX): Likewise.
29388 (FBTEST_STEP): Likewise.
29389 (FBTEST_COUNT): Likewise.
29390 (fb_list): New variable.
29391 (grub_find_video_card): Remove function.
29392 (find_framebuf): New function.
29393 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
29394 line length.
29395
29396 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
29397 problem for x86_64.
29398
29399 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
29400
29401 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
29402
29403 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
29404 coding tool name.
29405
29406 2009-02-22 Robert Millan <rmh@aybabtu.com>
29407
29408 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
29409 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
29410 in our relocation, instead of using it directly from heap. Also
29411 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
29412
29413 2009-02-21 Robert Millan <rmh@aybabtu.com>
29414
29415 Implement USB keyboard support (based on patch by Marco Gerards)
29416
29417 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
29418 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
29419 (usb_keyboard_mod_LDFLAGS): New variables.
29420
29421 * term/usb_keyboard.c: New file.
29422
29423 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29424
29425 Corrected wrong declaration
29426
29427 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
29428
29429 2009-02-14 Christian Franke <franke@computer.org>
29430
29431 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
29432 (grub_lspci_iter): Print class code and programming interface byte.
29433
29434 2009-02-14 Christian Franke <franke@computer.org>
29435
29436 * gendistlist.sh: Ignore `.svn' directories.
29437
29438 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
29439
29440 * fs/fat.c: Add 2009 to Copyright line.
29441
29442 2009-02-14 Christian Franke <franke@computer.org>
29443
29444 * commands/hdparm.c: New file. Provides `hdparm' command
29445 which sends ATA commands via grub_disk_ata_pass_through ().
29446
29447 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
29448
29449 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
29450 and <grub/cpu/io.h> to include/grub/ata.h.
29451 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
29452 (GRUB_CDROM_SECTOR_SIZE): Remove.
29453 (GRUB_ATA_*): Move to include/grub/ata.h.
29454 (GRUB_ATAPI_*): Likewise.
29455 (enum grub_ata_commands): Likewise.
29456 (enum grub_ata_timeout_milliseconds): Likewise.
29457 (struct grub_ata_device): Likewise.
29458 (grub_ata_regset): Likewise.
29459 (grub_ata_regget): Likewise.
29460 (grub_ata_regset2): Likewise.
29461 (grub_ata_regget2): Likewise.
29462 (grub_ata_check_ready): Likewise.
29463 (grub_ata_wait_not_busy): Remove static, exported in
29464 include/grub/ata.h.
29465 (grub_ata_wait_drq): Likewise.
29466 (grub_ata_pio_read): Likewise.
29467
29468 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
29469 function for hdparm.mod.
29470
29471 * include/grub/ata.h: New file, contains declarations from
29472 disk/ata.c.
29473 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
29474
29475 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
29476 (grub_disk_ata_pass_through): New exported variable.
29477
29478 * kern/disk.c (grub_disk_ata_pass_through): New variable.
29479
29480 2009-02-13 Colin D Bennett <colin@gibibit.com>
29481
29482 Support multiple fallback entries, and provide an API to support
29483 executing default+fallback menu entries. Renamed the `terminal' menu
29484 viewer to `text'.
29485
29486 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
29487 variable declaration.
29488 (grub_menu_execute_callback): New structure declaration.
29489 (grub_menu_execute_callback_t): New typedef.
29490 (grub_menu_execute_with_fallback): New function declaration.
29491 (grub_menu_get_entry): Likewise.
29492 (grub_menu_get_timeout): Likewise.
29493 (grub_menu_set_timeout): Likewise.
29494
29495 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
29496
29497 * normal/menu.c (grub_wait_after_message): Moved to
29498 `normal/menu_text.c'.
29499 (draw_border): Likewise.
29500 (print_message): Likewise.
29501 (print_entry): Likewise.
29502 (print_entries): Likewise.
29503 (grub_menu_init_page): Likewise.
29504 (get_entry_number): Likewise.
29505 (print_timeout): Likewise.
29506 (run_menu): Likewise.
29507 (grub_menu_execute_entry): Likewise.
29508 (show_text_menu): Likewise.
29509 (get_and_remove_first_entry_number): New function.
29510 (grub_menu_execute_with_fallback): Likewise.
29511 (get_entry): Renamed to ...
29512 (grub_menu_get_entry): .. this and made it global.
29513 (get_timeout): Renamed to ...
29514 (grub_menu_get_timeout): ... this and made it global.
29515 (set_timeout): Renamed to ...
29516 (grub_menu_set_timeout): ... this and made it global.
29517 (grub_normal_terminal_menu_viewer): Renamed to ...
29518 (grub_normal_text_menu_viewer): ... this.
29519
29520 * normal/menu_text.c: New file. Extracted text-menu-specific code
29521 from normal/menu.c.
29522
29523 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
29524 (normal_mod_SOURCES): Likewise.
29525
29526 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29527 (normal_mod_SOURCES): Likewise.
29528
29529 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29530 (normal_mod_SOURCES): Likewise.
29531
29532 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
29533 (normal_mod_SOURCES): Likewise.
29534
29535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29536 (normal_mod_SOURCES): Likewise.
29537
29538 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29539 (normal_mod_SOURCES): Likewise.
29540
29541 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29542 (normal_mod_SOURCES): Likewise.
29543
29544 2009-02-11 Robert Millan <rmh@aybabtu.com>
29545
29546 * util/grub.d/00_header.in: Update old reference to `font' command.
29547
29548 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
29549
29550 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
29551
29552 Based on patch from Javier Martín.
29553
29554 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
29555
29556 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
29557 to avoid false positives with FAT.
29558 (grub_fstest_SOURCES): Likewise.
29559 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29560 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29562 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29563 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29564 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29565
29566 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
29567
29568 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
29569 bpb.version_specific.fat12_or_fat16.fstype and
29570 bpb.version_specific.fat32.fstype.
29571
29572 2009-02-08 Robert Millan <rmh@aybabtu.com>
29573
29574 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
29575
29576 2009-02-08 Robert Millan <rmh@aybabtu.com>
29577
29578 * Makefile.in (host_os, host_cpu): New variables.
29579 (target_os): Remove. Update all users.
29580
29581 2009-02-08 Marco Gerards <marco@gnu.org>
29582
29583 * Makefile.in (enable_grub_emu_usb): New variable.
29584 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
29585 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
29586 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
29587 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
29588 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
29589 `usbtest.mod' and `usbms.mod'.
29590 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
29591 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
29592 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
29593 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
29594 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
29595 variables.
29596
29597 * disk/usbms.c: New file.
29598
29599 * include/grub/usb.h: Likewise.
29600
29601 * include/grub/usbtrans.h: Likewise.
29602
29603 * include/grub/usbdesc.h: Likewise.
29604
29605 * bus/usb/usbtrans.c: Likewise.
29606
29607 * bus/usb/ohci.c: Likewise.
29608
29609 * bus/usb/uhci.c: Likewise.
29610
29611 * bus/usb/usbhub.c: Likewise.
29612
29613 * bus/usb/usb.c: Likewise.
29614
29615 * commands/usbtest.c: Likewise.
29616
29617 * util/usb.c: Likewise.
29618
29619 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
29620
29621 * configure.ac: Test for libusb presence.
29622
29623 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
29624
29625 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
29626
29627 * kern/mm.c: Add more comments.
29628
29629 2009-02-08 Robert Millan <rmh@aybabtu.com>
29630
29631 Patch from Javier Martín.
29632 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
29633 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
29634
29635 2009-02-08 Robert Millan <rmh@aybabtu.com>
29636
29637 * fs/cpio.c: Split tar functionality to ...
29638 * fs/tar.c: ... here (new file). Update all users.
29639
29640 2009-02-07 Robert Millan <rmh@aybabtu.com>
29641
29642 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
29643 backward-incompatible features.
29644
29645 Based on patch from Javier Martín, with some adjustments.
29646
29647 2009-02-07 Michael Scherer <misc@mandriva.org>
29648
29649 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
29650
29651 2009-02-07 Robert Millan <rmh@aybabtu.com>
29652
29653 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
29654 position of `disk/lvm.c' to ensure grub_init_all() always picks it
29655 after the RAID stuff.
29656
29657 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
29658
29659 Fixes problem when running vbetest command as reported by
29660 Vladimir Serbinenko <phcoder@gmail.com>.
29661
29662 * (grub_vbe_set_video_mode): Fixed problem with text modes.
29663
29664 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
29665
29666 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
29667 /dev/md/NpN style mdraid devices.
29668
29669 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
29670
29671 * util/unifont2pff.rb: Remove.
29672
29673 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
29674
29675 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
29676 `#'.
29677
29678 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
29679
29680 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
29681 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29682 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29683 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29684 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29685 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29686 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29687
29688 2009-02-02 Christian Franke <franke@computer.org>
29689
29690 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
29691
29692 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
29693
29694 * INSTALL: Note that we now require at least autoconf 2.59 and
29695 that LZO is optional.
29696
29697 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
29698
29699 Base on patch on bug #24154 created by Tomas Tintera
29700 <trosos@seznam.cz>.
29701
29702 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
29703
29704 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
29705
29706 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
29707 <bero@arklinux.org>.
29708
29709 * normal/parser.y (script_init): Add missing semicolon.
29710
29711 2009-01-31 Colin D Bennett <colin@gibibit.com>
29712
29713 * normal/main.c: Add include to grub/menu_viewer.h.
29714 (free_menu_entry_classes): Added.
29715 (grub_normal_menu_addentry): Added class property handling.
29716 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
29717 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
29718
29719 * normal/menu_viewer.c: New file.
29720
29721 * normal/menu.c (run_menu_entry): Renamed to ...
29722 (grub_menu_execute_entry): ... this and made it as global.
29723 (grub_menu_run): Renamed to ...
29724 (show_text_menu): ... this and made it local.
29725 (show_text_menu): Adapt to new function names.
29726 (grub_normal_terminal_menu_viewer): New global variable.
29727
29728 * include/grub/menu.h: New file.
29729
29730 * include/grub/menu_viewer.h: New file.
29731
29732 * include/grub/normal.h: Added include to grub/menu.h.
29733 (grub_menu_entry): Moved to include/grub/menu.h.
29734 (grub_menu_entry_t): Likewise.
29735 (grub_menu): Likewise.
29736 (grub_menu_t): Likewise.
29737 (grub_normal_terminal_menu_viewer): Added.
29738 (grub_menu_execute_entry): Likewise.
29739 (grub_menu_run): Removed.
29740
29741 * DISTLIST: Added include/grub/menu.h.
29742 Added include/grub/menu_viewer.h.
29743 Added normal/menu_viewer.c.
29744
29745 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
29746
29747 * normal/execute.c (grub_script_execute_menuentry): Changed to use
29748 arglist for menutitle arguments.
29749
29750 * normal/main.c (grub_normal_menu_addentry): Likewise.
29751
29752 * normal/parser.y (menuentry): Likewise.
29753
29754 * normal/script.c (grub_script_create_cmdmenu): Likewise.
29755
29756 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
29757 (grub_script_create_cmdmenu): Likewise.
29758
29759 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
29760
29761 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
29762 changes.
29763
29764 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
29765
29766 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
29767
29768 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
29769
29770 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
29771
29772 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
29773
29774 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
29775
29776 2009-01-30 Christian Franke <franke@computer.org>
29777
29778 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
29779 in option help text.
29780
29781 2009-01-27 Pavel Roskin <proski@gnu.org>
29782
29783 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
29784
29785 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
29786
29787 * commands/lsmmap.c: Add include to grub/machine/memory.h.
29788
29789 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
29790
29791 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
29792 unregister function.
29793
29794 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
29795
29796 * disk/scsi.c (grub_scsi_read): Fix sign problem.
29797
29798 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
29799
29800 * util/grub-mkfont.c (usage): Fix typo.
29801
29802 * util/elf/grub-mkimage.c (load_modules): Fix warning.
29803
29804 2009-01-26 Daniel Mierswa <impulze@impulze.org>
29805
29806 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
29807
29808 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
29809
29810 * kern/misc.c (grub_strcasecmp): New function.
29811 (grub_strcasecmp): Use grub_size_t instead of int for length.
29812 Fix return value.
29813 * include/grub/misc.h: Update function prototypes.
29814
29815 2009-01-26 Robert Millan <rmh@aybabtu.com>
29816
29817 * configure.ac: Fix cross-compilation check.
29818
29819 2009-01-22 Christian Franke <franke@computer.org>
29820
29821 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
29822 (precision) digit string. Allow `.format2' without `format1' (width).
29823 Limit input chars for `%s' output to `format2' if specified. This is
29824 compatible with standard printf ().
29825
29826 2009-01-22 Christian Franke <franke@computer.org>
29827
29828 * disk/ata.c (grub_ata_wait_status): Replace by ...
29829 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
29830 other status bits may be invalid while BSY is asserted.
29831 (grub_ata_check_ready): New function.
29832 (grub_ata_cmd): Removed.
29833 (grub_ata_wait_drq): New function.
29834 (grub_ata_strncpy): Remove inline.
29835 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
29836 and error check now done by grub_ata_wait_drq ().
29837 (grub_ata_pio_write): Likewise.
29838 (grub_atapi_identify): Set DEV before check for !BSY. Use
29839 grub_ata_wait_drq () to wait for data.
29840 (grub_ata_device_initialize): Add status register check to
29841 detect missing SATA slave devices. Add debug messages.
29842 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
29843 (grub_atapi_packet): Set DEV before check for !BSY. Replace
29844 transfer loop by grub_ata_pio_write ().
29845 (grub_ata_identify): Set DEV before check for !BSY. Use
29846 grub_ata_wait_drq () to wait for data.
29847 (grub_ata_setaddress): Set DEV before check for !BSY.
29848 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
29849 read/write in one loop. Fix invalid command on write. Fix incomplete
29850 command on (size % batch) == 0. Add missing error check after write of
29851 last block. Add debug messages.
29852 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
29853
29854 2009-01-19 Christian Franke <franke@computer.org>
29855
29856 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
29857 (GRUB_ATAPI_IREASON_*): Likewise.
29858 (grub_ata_pio_write): Fix timeout error return.
29859 (grub_atapi_identify): Add grub_ata_wait () after cmd.
29860 (grub_atapi_wait_drq): New function.
29861 (grub_atapi_packet): New parameter `size'.
29862 Use grub_atapi_wait_drq () and direct write instead of
29863 grub_ata_pio_write ().
29864 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
29865 reads the number of bytes requested by the device for each DRQ
29866 assertion.
29867 (grub_atapi_write): Remove old implementation, return not
29868 implemented instead.
29869
29870 2009-01-19 Christian Franke <franke@computer.org>
29871
29872 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
29873 of 512 to calculate data size.
29874 (grub_scsi_read12): Likewise.
29875 (grub_scsi_write10): Likewise.
29876 (grub_scsi_write12): Likewise.
29877 (grub_scsi_read): Adjust size according to blocksize.
29878 Add checks for invalid blocksize and unaligned transfer.
29879
29880 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
29881
29882 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
29883
29884 * term/gfxterm.c (write_char): Fix background rendering for wide
29885 width glyphs.
29886
29887 2009-01-19 Robert Millan <rmh@aybabtu.com>
29888
29889 * config.guess: Update to latest version from config git.
29890 * config.sub: Likewise.
29891
29892 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
29893
29894 * Makefile.in: Change font compilation to use new grub-mkfont instead
29895 of java version.
29896
29897 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
29898 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
29899 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29900 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29901 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
29902 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
29903 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
29904 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
29905 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
29906
29907 2009-01-16 Christian Franke <franke@computer.org>
29908
29909 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
29910 (enum grub_ata_timeout_milliseconds): New enum.
29911 (grub_ata_wait_status): Add parameter milliseconds.
29912 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
29913 recovery from timed-out commands.
29914 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
29915 return grub_errno instead of REG_ERROR.
29916 (grub_ata_pio_write): Add parameter milliseconds.
29917 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
29918 Pass milliseconds to grub_ata_wait_status () and
29919 grub_ata_pio_read ().
29920 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
29921 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
29922 grub_ata_wait_status (). Fix IDENTIFY timeout check.
29923 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
29924 It is not suitable for device detection, because DEV bit is ignored,
29925 the command may run too long, and not all devices set the signature
29926 properly.
29927 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
29928 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
29929 Fix device selection, DEV bit must be set first to address the registers
29930 of the correct device.
29931 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
29932 grub_ata_pio_read/write ().
29933 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
29934 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
29935
29936 2009-01-13 Carles Pina i Estany <carles@pina.cat>
29937
29938 * util/grub-editenv.c (main): Use fseeko(), not fseek().
29939
29940 2009-01-13 Bean <bean123ch@gmail.com>
29941
29942 * util/grub-mkfont.c (write_font): forget to remove some debug code.
29943
29944 2009-01-13 Bean <bean123ch@gmail.com>
29945
29946 * Makefile.in: (enable_grub_mkfont): New variable.
29947 (freetype_cflags): Likewise.
29948 (freetype_libs): Likewise.
29949
29950 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
29951 (grub_mkfont_SOURCES): New variable.
29952 (grub_mkfont_CFLAGS): Likewise.
29953 (grub_mkfont_LDFLAGS): Likewise.
29954
29955 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
29956 library if `--enable-grub-mkfont' is requested.
29957 (enable_grub_mkfont): New variable.
29958 (freetype_cflags): Likewise.
29959 (freetype_libs): Likewise.
29960
29961 * util/grub-mkfont.c: New file.
29962
29963 2009-01-12 Christian Franke <franke@computer.org>
29964
29965 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
29966 mode check. Fix setting of compat_use[].
29967
29968 2009-01-10 Robert Millan <rmh@aybabtu.com>
29969
29970 Update a few copyright years which we forgot to do in 2008 (only for
29971 files whose changes made in 2008 were copyright-significant)
29972
29973 * Makefile.in: Add 2008 to Copyright line.
29974 * disk/ieee1275/ofdisk.c: Likewise.
29975 * disk/efi/efidisk.c: Likewise.
29976 * kern/dl.c: Likewise.
29977 * kern/sparc64/ieee1275/init.c: Likewise.
29978 * kern/mm.c: Likewise.
29979 * kern/efi/mm.c: Likewise.
29980 * boot/i386/pc/boot.S: Likewise.
29981 * genfslist.sh: Likewise.
29982 * fs/iso9660.c: Likewise.
29983 * fs/hfs.c: Likewise.
29984 * fs/jfs.c: Likewise.
29985 * fs/minix.c: Likewise.
29986 * fs/ufs.c: Likewise.
29987 * gensymlist.sh.in: Likewise.
29988 * genkernsyms.sh.in: Likewise.
29989 * include/grub/misc.h: Likewise.
29990 * include/grub/types.h: Likewise.
29991 * include/grub/symbol.h: Likewise.
29992 * include/grub/elf.h: Likewise.
29993 * include/grub/kernel.h: Likewise.
29994 * include/grub/disk.h: Likewise.
29995 * include/grub/dl.h: Likewise.
29996 * include/grub/i386/linux.h: Likewise.
29997 * include/grub/i386/pc/biosdisk.h: Likewise.
29998 * include/grub/efi/api.h: Likewise.
29999 * include/grub/efi/pe32.h: Likewise.
30000 * include/grub/util/misc.h: Likewise.
30001 * normal/execute.c: Likewise.
30002 * normal/arg.c: Likewise.
30003 * normal/completion.c: Likewise.
30004 * normal/lexer.c: Likewise.
30005 * normal/parser.y: Likewise.
30006 * normal/misc.c: Likewise.
30007 * commands/i386/pc/vbeinfo.c: Likewise.
30008 * commands/hexdump.c: Likewise.
30009 * commands/terminal.c: Likewise.
30010 * commands/ls.c: Likewise.
30011 * commands/help.c: Likewise.
30012 * partmap/pc.c: Likewise.
30013 * loader/efi/chainloader.c: Likewise.
30014 * loader/multiboot_loader.c: Likewise.
30015 * loader/i386/pc/multiboot2.c: Likewise.
30016 * term/efi/console.c: Likewise.
30017 * term/i386/pc/serial.c: Likewise.
30018 * util/lvm.c: Likewise.
30019 * util/console.c: Likewise.
30020 * util/i386/efi/grub-mkimage.c: Likewise.
30021 * util/raid.c: Likewise.
30022
30023 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
30024
30025 * commands/videotest.c: Removed include to grub/machine/memory.h.
30026
30027 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
30028 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
30029 (video_mod_SOURCES): Removed.
30030 (video_mod_CFLAGS): Likewise.
30031 (video_mod_LDFLAGS): Likewise.
30032 (gfxterm_mod_SOURCES): Likewise.
30033 (gfxterm_mod_CFLAGS): Likewise.
30034 (gfxterm_mod_LDFLAGS): Likewise.
30035 (videotest_mod_SOURCES): Likewise.
30036 (videotest_mod_CFLAGS): Likewise.
30037 (videotest_mod_LDFLAGS): Likewise.
30038 (bitmap_mod_SOURCES): Likewise.
30039 (bitmap_mod_CFLAGS): Likewise.
30040 (bitmap_mod_LDFLAGS): Likewise.
30041 (tga_mod_SOURCES): Likewise.
30042 (tga_mod_CFLAGS): Likewise.
30043 (tga_mod_LDFLAGS): Likewise.
30044 (jpeg_mod_SOURCES): Likewise.
30045 (jpeg_mod_CFLAGS): Likewise.
30046 (jpeg_mod_LDFLAGS): Likewise.
30047 (png_mod_SOURCES): Likewise.
30048 (png_mod_CFLAGS): Likewise.
30049 (png_mod_LDFLAGS): Likewise.
30050
30051 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
30052 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
30053 (video_mod_SOURCES): Added.
30054 (video_mod_CFLAGS): Likewise.
30055 (video_mod_LDFLAGS): Likewise.
30056 (videotest_mod_SOURCES): Likewise.
30057 (videotest_mod_CFLAGS): Likewise.
30058 (videotest_mod_LDFLAGS): Likewise.
30059 (bitmap_mod_SOURCES): Likewise.
30060 (bitmap_mod_CFLAGS): Likewise.
30061 (bitmap_mod_LDFLAGS): Likewise.
30062 (tga_mod_SOURCES): Likewise.
30063 (tga_mod_CFLAGS): Likewise.
30064 (tga_mod_LDFLAGS): Likewise.
30065 (jpeg_mod_SOURCES): Likewise.
30066 (jpeg_mod_CFLAGS): Likewise.
30067 (jpeg_mod_LDFLAGS): Likewise.
30068 (png_mod_SOURCES): Likewise.
30069 (png_mod_CFLAGS): Likewise.
30070 (png_mod_LDFLAGS): Likewise.
30071 (gfxterm_mod_SOURCES): Likewise.
30072 (gfxterm_mod_CFLAGS): Likewise.
30073 (gfxterm_mod_LDFLAGS): Likewise.
30074
30075 * term/gfxterm.c: Removed include to grub/machine/memory.h,
30076 grub/machine/console.h.
30077
30078 2009-01-04 Jerone Young <jerone@gmail.com>
30079
30080 Make on screen instructions clearer
30081
30082 Based on patch created by Jidanni <jidanni@jidanni.org>
30083
30084 * normal/menu.c: print clearer instructions on the screen
30085
30086 2009-01-02 Colin D Bennett <colin@gibibit.com>
30087
30088 New font engine.
30089
30090 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
30091 build system and fixed gfxterm.c to work with different sized fonts.
30092
30093 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
30094
30095 * configure: Re-generated.
30096
30097 * DISTLIST: Removed font/manager.c.
30098 Added font/font.c.
30099 Added font/font_cmd.c.
30100
30101 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
30102 compilation.
30103
30104 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
30105
30106 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
30107
30108 * kern/term.c: Changed users of grub_utf8_to_ucs4.
30109
30110 * normal/menu.c: Likewise.
30111
30112 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
30113 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
30114
30115 * include/grub/font.h: Replaced with new file.
30116
30117 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
30118 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
30119 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
30120 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
30121 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
30122 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
30123 fg_red, fg_green, fg_blue, fg_alpha.
30124 (grub_video_adapter): Removed blit_glyph.
30125 (grub_video_blit_glyph): Removed.
30126
30127 * font/manager.c: Removed file.
30128
30129 * font/font.c: New file.
30130
30131 * font/font_cmd.c: Likewise.
30132
30133 * video/video.c (grub_video_blit_glyph): Removed.
30134
30135 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
30136 (grub_video_vbe_map_rgba): Likewise.
30137 (grub_video_vbe_unmap_color_int): Likewise.
30138 (grub_video_vbe_blit_glyph): Removed.
30139 (grub_video_vbe_adapter): Removed blit_glyph.
30140
30141 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
30142 (get_pixel): Likewise.
30143 (set_pixel): Likewise.
30144
30145 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
30146
30147 * term/gfxterm.c: Adapted to new font engine.
30148
30149 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
30150
30151 * term/i386/pc/vga.c: Likewise.
30152
30153 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
30154
30155 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
30156
30157 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
30158
30159 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
30160
30161 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
30162
30163 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
30164
30165 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
30166
30167 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
30168
30169 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
30170
30171 * util/grub.d/00_header.in: Changed to use new loadfont command.
30172
30173 * util/grub-mkconfig_lib.in: Changed font extension.
30174
30175 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
30176
30177 * util/getroot.c (grub_util_get_grub_dev): Add support for
30178 /dev/md/dNNpNN style partitionable mdraid devices.
30179
30180 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
30181
30182 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
30183 at a time limit of the PXE TFTP API correctly.
30184 (grub_pxefs_close): Likewise.
30185
30186 2008-11-29 Robert Millan <rmh@aybabtu.com>
30187
30188 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
30189 grub_ata_device_initialize() calls.
30190
30191 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
30192
30193 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
30194 iteration failed.
30195 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
30196
30197 2008-11-28 Robert Millan <rmh@aybabtu.com>
30198
30199 Fix build on powerpc-ieee1275. Based on patch created by
30200 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
30201 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30202 `kern/ieee1275/mmap.c'.
30203 * include/grub/powerpc/ieee1275/memory.h: New file.
30204
30205 Provide grub-install on coreboot.
30206 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
30207 (grub_install_SOURCES): New variable.
30208 * util/i386/pc/grub-install.in: Add a few condition checks to make it
30209 usable on coreboot.
30210
30211 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
30212
30213 * util/grub-fstest.c (grub_term_get_current_input): Change return type
30214 to `grub_term_input_t'.
30215 (grub_term_get_current_output): Change return type to
30216 `grub_term_output_t'.
30217
30218 2008-11-22 Robert Millan <rmh@aybabtu.com>
30219
30220 Fix breakage on coreboot due to declaration mismatch.
30221 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
30222 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
30223 grub_vga_text_cls().
30224
30225 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
30226 comments. Avoid copying one more byte than necessary (just in case).
30227
30228 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
30229 to 0x200000 (avoids trouble with some OFW implementations, and matches
30230 with the one in Yaboot).
30231 Reported by Manoel Abranches
30232
30233 2008-11-20 Robert Millan <rmh@aybabtu.com>
30234
30235 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
30236 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
30237
30238 * util/grub-mkconfig_lib.in (grub_warn): New function.
30239 (convert_system_path_to_grub_path): Use grub_warn() when issuing
30240 warnings, to obtain consistent formatting.
30241 * util/grub.d/00_header.in: Likewise.
30242 * util/update-grub_lib.in: Likewise.
30243
30244 * loader/i386/linux.c (allocate_pages): Fix a warning.
30245 Move comment text to `#error' stanza.
30246
30247 Harmonize ieee1275's grub_available_iterate() with the generic
30248 grub_machine_mmap_iterate() interface (fixes a recently-introduced
30249 build problem on i386-ieee1275):
30250 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
30251 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
30252 parameter `type'. Update all users of this function.
30253 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
30254 `kern/ieee1275/mmap.c'.
30255 * kern/ieee1275/init.c
30256 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
30257 with ...
30258 (grub_machine_mmap_iterate): ... this.
30259 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
30260 return type to `grub_err_t'. Update all implementations of this
30261 function prototype.
30262 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
30263 Likewise.
30264
30265 Add `lsmmap' command (lists firmware-provided memory map):
30266 * commands/lsmmap.c: New file.
30267 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
30268 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
30269 variables.
30270 * conf/powerpc-ieee1275.rmk: Likewise.
30271 * conf/i386-coreboot.rmk: Likewise.
30272 * conf/i386-ieee1275.rmk: Likewise.
30273
30274 2008-11-19 Robert Millan <rmh@aybabtu.com>
30275
30276 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
30277 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
30278 constraints to initrd allocation (based on code from
30279 loader/i386/pc/linux.c). Without them, initrd was allocated too high
30280 for Linux to find it.
30281
30282 2008-11-14 Robert Millan <rmh@aybabtu.com>
30283
30284 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
30285 order to cope with duplicate slashes.
30286
30287 2008-11-14 Robert Millan <rmh@aybabtu.com>
30288
30289 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
30290 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
30291 don't want to mess with lower memory, because it is used in the Linux
30292 loader.
30293
30294 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
30295 an appropriate place in lower memory, between 0x10000 and 0x90000,
30296 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
30297 is in our heap (probably as a result of it being corrupted during
30298 decompression). Add #error instance with comment to explain why this
30299 loader isn't currently usable on PC/BIOS.
30300
30301 2008-11-14 Robert Millan <rmh@aybabtu.com>
30302
30303 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
30304 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
30305
30306 2008-11-12 Robert Millan <rmh@aybabtu.com>
30307
30308 Make loader/i386/linux.c buildable on i386-pc (although disabled).
30309
30310 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
30311 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
30312 from here ...
30313 * include/grub/i386/pc/memory.h: ... to here.
30314
30315 2008-11-12 Robert Millan <rmh@aybabtu.com>
30316
30317 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
30318 split).
30319
30320 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
30321 (grub_console_cur_color, grub_console_real_putchar)
30322 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
30323 (grub_console_setcolorstate, grub_console_setcolor)
30324 (grub_console_getcolor): Move from here ...
30325 * include/grub/i386/vga_common.h: ... to here (new file).
30326
30327 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
30328 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
30329 `<grub/i386/io.h>'.
30330 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
30331 `<grub/i386/vga_common.h>'.
30332
30333 2008-11-12 Robert Millan <rmh@aybabtu.com>
30334
30335 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
30336 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
30337 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
30338 variables.
30339 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
30340 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
30341
30342 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
30343 grub_console_init() with call to grub_vga_text_init().
30344 (grub_machine_fini): Replace call to
30345 grub_console_fini() with call to grub_vga_text_fini() and
30346 grub_at_keyboard_fini().
30347
30348 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
30349 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
30350 (grub_console_setcolorstate, grub_console_setcolor)
30351 (grub_console_getcolor): New function prototypes.
30352
30353 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
30354 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
30355 (grub_vga_text_setcursor): Static-ize.
30356 (grub_vga_text_term): New structure.
30357 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
30358
30359 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
30360 (grub_console_cur_color, grub_console_standard_color)
30361 (grub_console_normal_color, grub_console_highlight_color)
30362 (map_char, grub_console_putchar, grub_console_getcharwidth)
30363 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
30364 (grub_console_getcolor): Move from here ...
30365 * term/i386/vga_common.c: ... to here (same function names).
30366
30367 2008-11-12 Robert Millan <rmh@aybabtu.com>
30368
30369 Use newly-added Multiboot support in coreboot.
30370
30371 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
30372 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
30373
30374 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
30375 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
30376 (codestart): Store the MBI in `startup_multiboot_info' when we're
30377 being loaded using Multiboot.
30378
30379 * kern/i386/coreboot/init.c (grub_machine_init): Move
30380 grub_at_keyboard_init() call to beginning of function (useful for
30381 debugging). Call grub_machine_mmap_init() before attempting to use
30382 grub_machine_mmap_iterate().
30383 (grub_lower_mem, grub_upper_mem): Move from here ...
30384 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
30385 here (new file).
30386
30387 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
30388 function prototype.
30389
30390 2008-11-12 Robert Millan <rmh@aybabtu.com>
30391
30392 Fix a regression introduced by the at_keyboard.mod split. Because
30393 some terminals are default on some platforms and non-default on
30394 others, the first terminal being registered determines which is
30395 going to be default.
30396
30397 * kern/term.c (grub_term_register_input): If this is the first
30398 terminal being registered, set it as the current one.
30399 (grub_term_register_output): Likewise.
30400
30401 * term/efi/console.c (grub_console_init): Do not call
30402 grub_term_set_current_output() or grub_term_set_current_input().
30403 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
30404 * term/i386/pc/console.c (grub_console_init): Likewise.
30405 (grub_console_fini): Do not call grub_term_set_current_input()
30406 (but leave grub_term_set_current_output() to restore text mode).
30407
30408 2008-11-10 Robert Millan <rmh@aybabtu.com>
30409
30410 * util/grub.d/00_header.in: Add backward compatibility check for
30411 versions of terminal.mod that don't understand `terminal_input' or
30412 `terminal_output'.
30413
30414 2008-11-09 Robert Millan <rmh@aybabtu.com>
30415
30416 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
30417 `terminal_input' / `terminal_output', not `terminal'.
30418
30419 2008-11-08 Robert Millan <rmh@aybabtu.com>
30420
30421 * Makefile.in (include_DATA): Fix srcdir=. assumption.
30422 (DISTCLEANFILES): Add `build_env.mk'.
30423
30424 2008-11-08 Robert Millan <rmh@aybabtu.com>
30425
30426 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
30427 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
30428 members. Update all users.
30429 * util/console.c (grub_ncurses_term): Split in ...
30430 (grub_ncurses_term_input): ... this, and ...
30431 (grub_ncurses_term_output): ... this. Update all users.
30432 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
30433
30434 2008-11-08 Robert Millan <rmh@aybabtu.com>
30435
30436 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
30437 (PKGDATA): Add $(pkgdata_SRCDIR).
30438 (pkglib_BUILDDIR): New variable.
30439 (pkgdata_SRCDIR): New variable.
30440 (build_env.mk): New target.
30441 (include_DATA): New variable.
30442 (install-local): Install $(include_DATA) files in $(includedir).
30443
30444 2008-11-07 Pavel Roskin <proski@gnu.org>
30445
30446 * gendistlist.sh: Use C locale for sorting to ensure consistent
30447 output on all systems.
30448
30449 * util/grub.d/00_header.in: Remove incorrect space before
30450 "serial".
30451
30452 2008-11-07 Robert Millan <rmh@aybabtu.com>
30453
30454 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
30455 per specification.
30456 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
30457 * loader/multiboot_loader.c (find_multi_boot2_header): New function
30458 (based on find_multi_boot1_header).
30459 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
30460 using find_multi_boot2_header(), and abort if neither Multiboot or
30461 Multiboot headers were found.
30462
30463 2008-11-07 Robert Millan <rmh@aybabtu.com>
30464
30465 Modularize at_keyboard.mod:
30466
30467 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
30468 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
30469 (at_keyboard_mod_LDFLAGS): New variables.
30470
30471 Actual terminal split:
30472
30473 * include/grub/term.h (struct grub_term): Split in ...
30474 (struct grub_term_input): ... this, and ...
30475 (struct grub_term_output): ... this. Update all users.
30476 (grub_term_set_current): Split in ...
30477 (grub_term_set_current_input): ... this, and ...
30478 (grub_term_set_current_output): ... this.
30479 (grub_term_get_current): Split in ...
30480 (grub_term_get_current_input): ... this, and ...
30481 (grub_term_get_current_output): ... this.
30482 (grub_term_register): Split in ...
30483 (grub_term_register_input): ... this, and ...
30484 (grub_term_register_output): ... this.
30485 (grub_term_unregister): Split in ...
30486 (grub_term_unregister_input): ... this, and ...
30487 (grub_term_unregister_output): ... this.
30488 (grub_term_iterate): Split in ...
30489 (grub_term_iterate_input): ... this, and ...
30490 (grub_term_iterate_output): ... this.
30491
30492 * kern/term.c (grub_term_list): Split in ...
30493 (grub_term_list_input): ... this, and ...
30494 (grub_term_list_output): ... this. Update all users.
30495 (grub_cur_term): Split in ...
30496 (grub_cur_term_input): ... this, and ...
30497 (grub_cur_term_output): ... this. Update all users.
30498 (grub_term_set_current): Split in ...
30499 (grub_term_set_current_input): ... this, and ...
30500 (grub_term_set_current_output): ... this.
30501 (grub_term_get_current): Split in ...
30502 (grub_term_get_current_input): ... this, and ...
30503 (grub_term_get_current_output): ... this.
30504 (grub_term_register): Split in ...
30505 (grub_term_register_input): ... this, and ...
30506 (grub_term_register_output): ... this.
30507 (grub_term_unregister): Split in ...
30508 (grub_term_unregister_input): ... this, and ...
30509 (grub_term_unregister_output): ... this.
30510 (grub_term_iterate): Split in ...
30511 (grub_term_iterate_input): ... this, and ...
30512 (grub_term_iterate_output): ... this.
30513
30514 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
30515 a check for input and one for output (and only attempt to get keys
30516 from user when input works).
30517
30518 * util/grub-probe.c (grub_term_get_current): Split in ...
30519 (grub_term_get_current_input): ... this, and ...
30520 (grub_term_get_current_output): ... this.
30521 * util/grub-fstest.c: Likewise.
30522 * util/i386/pc/grub-setup.c: Likewise.
30523 * util/grub-editenv.c: Likewise.
30524
30525 Portability adjustments:
30526
30527 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
30528 `term/i386/pc/at_keyboard.c'.
30529 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
30530 grub_keyboard_controller_init() (now handled by terminal .init).
30531 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
30532 grub_at_keyboard_init().
30533 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
30534 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
30535 at_keyboard.mod via input terminal interface).
30536 * include/grub/i386/coreboot/console.h: Convert into a stub for
30537 `<grub/i386/pc/console.h>'.
30538
30539 Migrate full terminals to new API:
30540
30541 * term/efi/console.c (grub_console_term): Split into ...
30542 (grub_console_term_input): ... this, and ...
30543 (grub_console_term_output): ... this. Update all users.
30544 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
30545 (grub_ofconsole_init): Split into ...
30546 (grub_ofconsole_init_input): ... this, and ...
30547 (grub_ofconsole_init_output): ... this.
30548 (grub_ofconsole_term): Split into ...
30549 (grub_ofconsole_term_input): ... this, and ...
30550 (grub_ofconsole_term_output): ... this. Update all users.
30551 * term/i386/pc/serial.c (grub_serial_term): Split into ...
30552 (grub_serial_term_input): ... this, and ...
30553 (grub_serial_term_output): ... this. Update all users.
30554 * term/i386/pc/console.c (grub_console_term): Split into ...
30555 (grub_console_term_input): ... this, and ...
30556 (grub_console_term_output): ... this. Update all users.
30557 (grub_console_term_input): Only enable it on PC/BIOS platform.
30558 (grub_console_init): Remove grub_keyboard_controller_init() call.
30559
30560 Migrate input terminals to new API:
30561
30562 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
30563 `i386' and `i386/pc' to enable build on x86_64 (this driver is
30564 i386-specific anyway).
30565 (grub_console_checkkey): Rename to ...
30566 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
30567 users.
30568 (grub_keyboard_controller_orig): New variable.
30569 (grub_console_getkey): Rename to ...
30570 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
30571 users.
30572 (grub_keyboard_controller_init): Static-ize. Save original
30573 controller value so that it can be restored ...
30574 (grub_keyboard_controller_fini): ... here (new function).
30575 (grub_at_keyboard_term): New structure.
30576 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
30577 functions.
30578
30579 Migrate output terminals to new API:
30580
30581 * term/i386/pc/vga.c (grub_vga_term): Change type to
30582 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
30583 members. Update all users.
30584 * term/gfxterm.c (grub_video_term): Change type to
30585 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
30586 members. Update all users.
30587 * include/grub/i386/pc/console.h (grub_console_checkkey)
30588 (grub_console_getkey): Do not export (no longer needed by gfxterm,
30589 etc).
30590
30591 Migrate `terminal' command and userland tools to new API:
30592
30593 * commands/terminal.c (grub_cmd_terminal): Split into ...
30594 (grub_cmd_terminal_input): ... this, and ...
30595 (grub_cmd_terminal_output): ... this.
30596 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
30597 `terminal_input' and `terminal_output'.
30598 * util/grub.d/00_header.in: Adjust `terminal' calls to new
30599 `terminal_input' / `terminal_output' API.
30600 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
30601 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
30602 provided ${GRUB_TERMINAL}, convert it).
30603
30604 2008-11-04 Robert Millan <rmh@aybabtu.com>
30605
30606 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
30607 for FreeBSD.
30608 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
30609
30610 2008-11-03 Bean <bean123ch@gmail.com>
30611
30612 * kern/elf.c (grub_elf32_load): Revert to previous code.
30613 (grub_elf64_load): Likewise.
30614
30615 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
30616
30617 2008-11-01 Robert Millan <rmh@aybabtu.com>
30618
30619 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
30620 (TARGET_CPPFLAGS): Likewise.
30621 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
30622
30623 2008-11-01 Carles Pina i Estany <carles@pina.cat>
30624
30625 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
30626
30627 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
30628
30629 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
30630 addition of objects until the code is not going to be able to fail.
30631
30632 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
30633
30634 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
30635 (add a missing NULL check, and correct them by moving the pointer
30636 operations after the actual check).
30637
30638 2008-10-29 Robert Millan <rmh@aybabtu.com>
30639
30640 * util/i386/pc/grub-install.in: Handle empty string as output from
30641 make_system_path_relative_to_its_root().
30642
30643 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
30644
30645 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
30646 circular metadata worst case scenario. If the metadata is circular
30647 then copy the wrap in place.
30648 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
30649 project lib/format_text/layout.h
30650 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
30651
30652 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
30653
30654 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
30655
30656 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
30657
30658 * util/update-grub_lib.in: Mention filename in warning message.
30659
30660 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
30661
30662 * NEWS: Update for rename of update-grub to grub-mkconfig.
30663
30664 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
30665
30666 * util/update-grub_lib.in: Copy to ...
30667 * util/grub-mkconfig_lib.in: ... this. Update all users.
30668 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
30669 * util/update-grub.in: Rename to ...
30670 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
30671 option. Add `--output' option to allow users to specify the generated
30672 configuration file. Default to stdout.
30673 (update_grub_dir): Rename to ...
30674 (grub_mkconfig_dir): ... this.
30675 (grub_cfg): Default to an empty string.
30676 * conf/common.rmk (update-grub): Rename to ...
30677 (grub-mkconfig): ... this.
30678 (update-grub_lib): Copy to ...
30679 (grub-mkconfig_lib): ... this.
30680 (update-grub_SCRIPTS): Copy to ...
30681 (grub-mkconfig_SCRIPTS): ... this. Update all users.
30682 (update-grub_DATA): Rename to ...
30683 (grub-mkconfig_DATA): ... this.
30684
30685 2008-09-28 Robert Millan <rmh@aybabtu.com>
30686
30687 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
30688 to `modified'. Add the real `created' field.
30689 (grub_iso9660_uuid): Use `modified' rather than `created' for
30690 constructing the UUID.
30691
30692 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
30693
30694 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
30695 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
30696
30697 2008-09-28 Bean <bean123ch@gmail.com>
30698
30699 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
30700 Thanks to Christian Franke for finding this bug.
30701
30702 2008-09-25 Robert Millan <rmh@aybabtu.com>
30703
30704 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
30705 instances of grub_util_get_disk_name() (see previous commit).
30706
30707 2008-09-25 Robert Millan <rmh@aybabtu.com>
30708
30709 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
30710 `util/i386/get_disk_name.c'.
30711 * conf/i386-efi.rmk: Likewise.
30712 * conf/x86_64-efi.rmk: Likewise.
30713 * conf/i386-coreboot.rmk: Likewise.
30714 * conf/i386-ieee1275.rmk: Likewise.
30715 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
30716 `util/ieee1275/get_disk_name.c'.
30717 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
30718 * util/ieee1275/get_disk_name.c: Remove file.
30719 * util/i386/get_disk_name.c: Remove file.
30720 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
30721 "hd%d" for device.map entries, rather than using
30722 grub_util_get_disk_name().
30723
30724 2008-09-24 Carles Pina i Estany <carles@pina.cat>
30725
30726 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
30727 warning.
30728 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
30729
30730 2008-09-24 Carles Pina i Estany <carles@pina.cat>
30731
30732 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
30733 Changed to 0x5100.
30734 (GRUB_TERM_PPAGE): Changed to 0x4900.
30735
30736 2008-09-24 Robert Millan <rmh@aybabtu.com>
30737
30738 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
30739 macros (they were i386-pc specific).
30740 * include/grub/sparc64/ieee1275/console.h: Likewise.
30741 * include/grub/efi/console.h: Likewise.
30742
30743 2008-09-22 Bean <bean123ch@gmail.com>
30744
30745 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
30746 resident and in attribute list.
30747
30748 * include/grub/ntfs.h (BMP_LEN): Removed.
30749
30750 2008-09-22 Bean <bean123ch@gmail.com>
30751
30752 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
30753 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
30754
30755 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
30756 error occurs, as grub_disk_open will call grub_disk_close, which will
30757 call p->close (scsi).
30758
30759 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
30760
30761 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
30762 (AC_PREREQ): Bumped to 2.59.
30763 (AC_TRY_COMPILE): Replace obsolete macro with ...
30764 (AC_COMPILE_IFELSE): ... this.
30765 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
30766 (AC_LINK_IFELSE): ... this.
30767
30768 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
30769
30770 * autogen.sh: Add a call to `gendistlist.sh'.
30771
30772 2008-09-19 Christian Franke <franke@computer.org>
30773
30774 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
30775 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
30776 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
30777 Export __enable_execute_stack() to modules.
30778 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
30779 New function.
30780
30781 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
30782
30783 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
30784 Sort the list.
30785
30786 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
30787
30788 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
30789 #include <grub/util/hostdisk.h>.
30790
30791 2008-09-08 Robert Millan <rmh@aybabtu.com>
30792
30793 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
30794 segments when their filesz is zero (grub_file_read() interprets
30795 zero-size as "read until EOF", which results in memory corruption).
30796 Use `lowest_segment' rather than 0 for calculating the current
30797 segment load address.
30798
30799 2008-09-08 Robert Millan <rmh@aybabtu.com>
30800
30801 * util/hostdisk.c (open_device): Replace a grub_util_info() call
30802 with grub_dprintf("hostdisk", ...), as it was so verbose that it
30803 clobbered useful information.
30804
30805 2008-09-08 Robert Millan <rmh@aybabtu.com>
30806
30807 * include/grub/util/biosdisk.h: Move to ...
30808 * include/grub/util/hostdisk.h: ... here. Update all users.
30809 * util/biosdisk.c: Move to ...
30810 * util/hostdisk.c: ... here. Update all users.
30811
30812 2008-09-07 Robert Millan <rmh@aybabtu.com>
30813
30814 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
30815 variables.
30816 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
30817 and length can be stored directly in the `mbi->mmap_addr' and
30818 `mbi->mmap_length' struct fields.
30819
30820 2008-09-07 Robert Millan <rmh@aybabtu.com>
30821
30822 * conf/i386.rmk: New file. Provides declaration for building
30823 `cpuid.mod'.
30824 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
30825 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
30826 variables.
30827 Include `conf/i386.mk'.
30828 * conf/i386-efi.rmk: Likewise.
30829 * conf/x86_64-efi.rmk: Likewise.
30830 * conf/i386-coreboot.rmk: Likewise.
30831 * conf/i386-ieee1275.rmk: Likewise.
30832
30833 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
30834
30835 Based on patch created by Colin D Bennett <colin@gibibit.com>.
30836 Adds optimization support for BGR based modes.
30837
30838 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
30839 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
30840 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30841 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30842 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30843 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30844 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30845 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30846 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30847 (grub_video_i386_vbeblit_index_index): Likewise.
30848 (grub_video_i386_vbeblit_replace_directN): Added.
30849 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
30850 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
30851 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
30852 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
30853 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
30854 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
30855 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
30856 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
30857 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
30858 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
30859 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
30860 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
30861 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
30862
30863 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
30864 (grub_video_i386_vbefill_R8G8B8): Likewise.
30865 (grub_video_i386_vbefill_index): Likewise.
30866 (grub_video_i386_vbefill_direct32): Added.
30867 (grub_video_i386_vbefill_direct24): Likewise.
30868 (grub_video_i386_vbefill_direct16): Likewise.
30869 (grub_video_i386_vbefill_direct8): Likewise.
30870
30871 * include/grub/video.h (grub_video_blit_format): Removed
30872 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
30873 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
30874 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
30875 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
30876 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
30877
30878 * video/video.c (grub_video_get_blit_format): Updated to use new
30879 blit formats. Added handling for 16 bit color modes.
30880
30881 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
30882 fillers.
30883 (common_blitter): Updated to use new blitters.
30884
30885 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
30886 Removed.
30887 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
30888 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30889 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30890 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30891 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30892 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30893 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30894 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30895 (grub_video_i386_vbeblit_index_index): Likewise.
30896 (grub_video_i386_vbeblit_replace_directN): Added.
30897 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
30898 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
30899 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
30900 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
30901 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
30902 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
30903 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
30904 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
30905 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
30906 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
30907 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
30908 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
30909 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
30910
30911 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
30912 (grub_video_i386_vbefill_R8G8B8): Likewise.
30913 (grub_video_i386_vbefill_index): Likewise.
30914 (grub_video_i386_vbefill_direct32): Added.
30915 (grub_video_i386_vbefill_direct24): Likewise.
30916 (grub_video_i386_vbefill_direct16): Likewise.
30917 (grub_video_i386_vbefill_direct8): Likewise.
30918
30919 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
30920 types.
30921
30922 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
30923 types.
30924
30925 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
30926 blitter types.
30927
30928 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
30929 types.
30930
30931 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
30932
30933 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
30934 RAID level 1.
30935
30936 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
30937
30938 * fs/iso9660.c (grub_iso9660_date): New structure.
30939 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
30940 (grub_iso9660_uuid): New function.
30941
30942 2008-09-05 Bean <bean123ch@gmail.com>
30943
30944 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
30945
30946 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
30947 insensitive bit for names in Win32 and Win32 & DOS namespace.
30948
30949 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
30950
30951 * include/grub/types.h (LONG_MAX): Likewise.
30952
30953 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
30954
30955 * util/getroot.c: Include <config.h>.
30956 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
30957 add support for /dev/md/N devices and handle LVM double dash escaping.
30958
30959 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
30960
30961 * config.guess: Update to latest version from config git.
30962 * config.sub: Likewise.
30963
30964 2008-09-03 Robert Millan <rmh@aybabtu.com>
30965
30966 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
30967 `disk->total_sectors'.
30968
30969 2008-09-01 Colin D Bennett <colin@gibibit.com>
30970
30971 * include/grub/normal.h: Fixed incorrect comment for
30972 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
30973
30974 2008-09-01 Colin D Bennett <colin@gibibit.com>
30975
30976 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
30977 values with defines.
30978
30979 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
30980 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
30981 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
30982 (GRUB_VBE_MODEATTR_COLOR): Likewise.
30983 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
30984 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
30985 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
30986 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
30987 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
30988 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
30989 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
30990 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
30991 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
30992 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
30993 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
30994 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
30995 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
30996 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
30997 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
30998
30999 2008-08-31 Robert Millan <rmh@aybabtu.com>
31000
31001 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
31002 declaration.
31003 (grub_multiboot): Fix a few warnings.
31004
31005 2008-08-31 Robert Millan <rmh@aybabtu.com>
31006
31007 * loader/i386/pc/multiboot.c: Update comment not to say that
31008 boot_device support is unimplemented.
31009
31010 2008-08-31 Robert Millan <rmh@aybabtu.com>
31011
31012 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
31013 or memory map support are unimplemented.
31014
31015 2008-08-31 Colin D Bennett <colin@gibibit.com>
31016
31017 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
31018
31019 2008-08-31 Colin D Bennett <colin@gibibit.com>
31020
31021 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
31022 total video memory in 'vbeinfo' output; show color format details for
31023 each video mode.
31024
31025 2008-08-30 Pavel Roskin <proski@gnu.org>
31026
31027 * util/genmoddep.c: Remove for real this time.
31028 * DISTLIST: Remove util/genmoddep.c.
31029
31030 2008-08-30 Robert Millan <rmh@aybabtu.com>
31031
31032 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
31033 as required by Multiboot spec (it was already 4-byte aligned, but
31034 only by chance).
31035
31036 2008-08-29 Pavel Roskin <proski@gnu.org>
31037
31038 * kern/powerpc/ieee1275/crt0.S: Rename to ...
31039 * kern/powerpc/ieee1275/startup.S: ... this.
31040 * conf/powerpc-ieee1275.rmk: Adjust for the above.
31041 * DISTLIST: Likewise.
31042
31043 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
31044 grub/cpu/kernel.h. Add start label for consistency with other
31045 platforms. Add grub_prefix immediately after start. Add jump
31046 to the code after grub_prefix.
31047 * include/grub/powerpc/kernel.h: Provide valid values for
31048 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
31049
31050 2008-08-29 Bean <bean123ch@gmail.com>
31051
31052 * configure.ac: Change host_os to cygwin for mingw.
31053 (asprintf): New check for function.
31054
31055 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
31056 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
31057
31058 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
31059 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
31060 sync, sleep and grub_util_get_disk_size for mingw.
31061
31062 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
31063 to get size in mingw.
31064 (open_device): Use flag O_BINARY if it's defined.
31065 (find_root_device): Add dummy code for mingw.
31066
31067 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
31068 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
31069 (get_scsi_disk_name): Return 0 for mingw.
31070
31071 * util/hostfs.c: #include <grub/util/misc.h>.
31072 (grub_hostfs_open): Use "rb" flag to open file, use
31073 grub_util_get_disk_size to get disk size for mingw.
31074
31075 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
31076 (asprintf): New function if HAVE_ASPRINTF is not set.
31077 (sync): New function for mingw.
31078 (sleep): Likewise.
31079 (grub_util_get_disk_size): Likewise.
31080
31081 2008-08-28 Pavel Roskin <proski@gnu.org>
31082
31083 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
31084 kern/time.c.
31085
31086 2008-08-28 Robert Millan <rmh@aybabtu.com>
31087
31088 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
31089
31090 2008-08-28 Robert Millan <rmh@aybabtu.com>
31091
31092 Change find_grub_drive() syntax so it doesn't prevent it from
31093 detecting NULL names as errors.
31094
31095 * util/biosdisk.c (find_grub_drive): Move free slot search code
31096 from here ...
31097 (find_free_slot): ... to here.
31098 (read_device_map): Use find_free_slot() to search for free slots.
31099
31100 2008-08-27 Marco Gerards <marco@gnu.org>
31101
31102 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
31103 (scsi_mod_SOURCES): New variable.
31104 (scsi_mod_CFLAGS): Likewise
31105 (scsi_mod_LDFLAGS): Likewise.
31106
31107 * disk/scsi.c: New file.
31108
31109 * include/grub/scsi.h: Likewise.
31110
31111 * include/grub/scsicmd.h: Likewise.
31112
31113 * disk/ata.c: Include <grub/scsi.h>.
31114 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
31115 instead.
31116 (grub_ata_iterate): Skip ATAPI devices.
31117 (grub_ata_open): Only handle ATAPI devices.
31118 (struct grub_atapi_read): Removed.
31119 (grub_atapi_readsector): Likewise.
31120 (grub_ata_read): No longer handle ATAPI devices.
31121 (grub_ata_write): Likewise.
31122 (grub_atapi_iterate): New function.
31123 (grub_atapi_read): Likewise.
31124 (grub_atapi_write): Likewise.
31125 (grub_atapi_open): Likewise.
31126 (grub_atapi_close): Likewise.
31127 (grub_atapi_dev): New variable.
31128 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
31129 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
31130
31131 * include/grub/disk.h (enum grub_disk_dev_id): Add
31132 `GRUB_DISK_DEVICE_SCSI_ID'.
31133
31134 2008-08-26 Robert Millan <rmh@aybabtu.com>
31135
31136 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
31137 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
31138 descriptive.
31139
31140 2008-08-23 Bean <bean123ch@gmail.com>
31141
31142 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
31143 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
31144 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
31145 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
31146 dm_nv.mod.
31147 (raid5rec_mod_SOURCES): New macro.
31148 (raid5rec_mod_CFLAGS): Likewise.
31149 (raid5rec_mod_LDFLAGS): Likewise.
31150 (raid6rec_mod_SOURCES): Likewise.
31151 (raid6rec_mod_CFLAGS): Likewise.
31152 (raid6rec_mod_LDFLAGS): Likewise.
31153 (mdraid_mod_SOURCES): Likewise.
31154 (mdraid_mod_CFLAGS): Likewise.
31155 (mdraid_mod_LDFLAGS): Likewise.
31156 (dm_nv_mod_SOURCES): Likewise.
31157 (dm_nv_mod_CFLAGS): Likewise.
31158 (dm_nv_mod_LDFLAGS): Likewise.
31159
31160 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
31161 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
31162 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
31163
31164 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
31165 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
31166
31167 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31168
31169 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31170
31171 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31172
31173 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31174
31175 * disk/raid5_recover.c: New file.
31176
31177 * disk/raid6_recover.c: Likewise.
31178
31179 * disk/mdraid_linux.c: Likewise.
31180
31181 * disk/dmraid_nvidia.c: Likewise.
31182
31183 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
31184 ULONG_MAX.
31185
31186 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
31187 calculate the size of raid device.
31188 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
31189 different layout of raid5.
31190 (grub_raid_scan_device): Remove code specific to mdraid.
31191 (grub_raid_list): New variable.
31192 (free_array): New function.
31193 (grub_raid_register): Likewise.
31194 (grub_raid_unregister): Likewise.
31195 (grub_raid_rescan): Likewise.
31196 (GRUB_MOD_INIT): Don't iterate device here.
31197 (GRUB_MOD_FINI): Use free_array to release resource.
31198
31199 * include/grub/raid.h: Remove macro and structure specific to mdraid.
31200 (grub_raid5_recover_func_t): New function variable type.
31201 (grub_raid6_recover_func_t): Likewise.
31202 (grub_raid5_recover_func): New variable.
31203 (grub_raid6_recover_func): Likewise.
31204 (grub_raid_register): New function.
31205 (grub_raid_unregister): Likewise.
31206 (grub_raid_rescan): Likewise.
31207 (grub_raid_block_xor): Likewise.
31208
31209 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
31210 (CMD_CRC): New macro.
31211 (part): Removed.
31212 (read_file): Handle device as well as file.
31213 (cmd_crc): New function.
31214 (fstest): Handle multiple disks.
31215 (options): Remove part, raw and long, add root and diskcount.
31216 (usage): Add crc, remove -p, -r, -l, add -r and -c.
31217 (main): Find the first non option entry and ignore subsequent options,
31218 add handling for the new options, support multiple disks.
31219
31220 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
31221
31222 2008-08-23 Bean <bean123ch@gmail.com>
31223
31224 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
31225
31226 * genfslist.sh: Ignore kernel.mod.
31227
31228 * genpartmaplist.sh: Likewise.
31229
31230 2008-08-23 Robert Millan <rmh@aybabtu.com>
31231
31232 * util/getroot.c (find_root_device): Skip anything that starts with
31233 a dot, not just directories. This avoids things like /dev/.tmp.md0.
31234
31235 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
31236
31237 * util/update-grub.in (GRUB_GFXMODE): Export variable.
31238 * util/grub.d/00_header.in: Allow the administrator to change default
31239 gfxmode via ${GRUB_GFXMODE}.
31240
31241 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
31242
31243 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
31244
31245 2008-08-21 Robert Millan <rmh@aybabtu.com>
31246
31247 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
31248 loader.
31249 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
31250 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
31251
31252 2008-08-20 Carles Pina i Estany <carles@pina.cat>
31253
31254 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
31255 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
31256
31257 2008-08-19 Robert Millan <rmh@aybabtu.com>
31258
31259 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
31260 (struct grub_virtual_screen): Remove `cursor_color'.
31261 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
31262 initialization.
31263 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
31264
31265 2008-08-18 Robert Millan <rmh@aybabtu.com>
31266
31267 Unify (identical) linux_normal.c files.
31268 * loader/i386/efi/linux_normal.c: Move from here ...
31269 * loader/linux_normal.c: ... to here. Update all users.
31270 * loader/i386/pc/linux_normal.c: Delete. Update all users.
31271 * loader/i386/ieee1275/linux_normal.c: Likewise.
31272
31273 2008-08-18 Robert Millan <rmh@aybabtu.com>
31274
31275 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
31276 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
31277 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
31278 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
31279 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
31280 New macros.
31281 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
31282 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
31283 (GRUB_LINUX_CL_END_OFFSET): ... to here.
31284 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
31285 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
31286 (GRUB_EFI_CL_END_OFFSET): Rename to ...
31287 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
31288 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
31289 Initialize `params->video_cursor_x' and `params->video_cursor_y'
31290 portably using grub_getxy().
31291 Replace `-EFI' with `-bzImage' in boot message.
31292
31293 2008-08-17 Robert Millan <rmh@aybabtu.com>
31294
31295 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
31296
31297 2008-08-17 Robert Millan <rmh@aybabtu.com>
31298
31299 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
31300
31301 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
31302 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
31303 (grub_machine_mmap_iterate): New function declaration.
31304 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
31305 structure.
31306 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
31307 macros.
31308
31309 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
31310 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
31311 Move e820 parsing from here ...
31312 * kern/i386/pc/mmap.c: New file.
31313 (grub_machine_mmap_iterate): ... to here.
31314
31315 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
31316 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
31317 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
31318 (grub_available_iterate): Redeclare to return `void', and redeclare
31319 its hook to use grub_uint64_t as addr and size parameters, and rename
31320 to ...
31321 (grub_machine_mmap_iterate): ... this. Update all users.
31322
31323 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
31324 to make it more readable. Rename to ...
31325 (grub_machine_mmap_iterate): ... this.
31326
31327 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
31328 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
31329 (grub_multiboot): Allocate an extra region after the payload, and fill
31330 it with a Multiboot memory map. Adjust a.out loader to calculate size
31331 with the extra space.
31332 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
31333 with the extra space.
31334
31335 2008-08-17 Carles Pina i Estany <carles@pina.cat>
31336
31337 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
31338
31339 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
31340
31341 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
31342 mdate-sh to the list `find' searches for.
31343 * DISTLIST: Regenerated.
31344
31345 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
31346
31347 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
31348 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
31349 genmoddep.awk, gensymlist.sh.in.
31350 (DISTDIRS): Add bus, docs, hook, lib.
31351 * DISTLIST: Regenerated.
31352 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
31353
31354 2008-08-16 Robert Millan <rmh@aybabtu.com>
31355
31356 * disk/raid.c (grub_raid_init): Handle/report errors set by
31357 grub_device_iterate().
31358 * disk/lvm.c (grub_lvm_init): Likewise.
31359
31360 2008-08-15 Bean <bean123ch@gmail.com>
31361
31362 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31363 and datehook.mod.
31364 (datetime_mod_SOURCES): New macro.
31365 (datetime_mod_CFLAGS): Likewise.
31366 (datetime_mod_LDFLAGS): Likewise.
31367 (date_mod_SOURCES): Likewise.
31368 (date_mod_CFLAGS): Likewise.
31369 (date_mod_LDFLAGS): Likewise.
31370 (datehook_mod_SOURCES): Likewise.
31371 (datehook_mod_CFLAGS): Likewise.
31372 (datehook_mod_LDFLAGS): Likewise.
31373
31374 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31375 and datehook.mod.
31376 (datetime_mod_SOURCES): New macro.
31377 (datetime_mod_CFLAGS): Likewise.
31378 (datetime_mod_LDFLAGS): Likewise.
31379 (date_mod_SOURCES): Likewise.
31380 (date_mod_CFLAGS): Likewise.
31381 (date_mod_LDFLAGS): Likewise.
31382 (datehook_mod_SOURCES): Likewise.
31383 (datehook_mod_CFLAGS): Likewise.
31384 (datehook_mod_LDFLAGS): Likewise.
31385
31386 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31387 and datehook.mod.
31388 (datetime_mod_SOURCES): New macro.
31389 (datetime_mod_CFLAGS): Likewise.
31390 (datetime_mod_LDFLAGS): Likewise.
31391 (date_mod_SOURCES): Likewise.
31392 (date_mod_CFLAGS): Likewise.
31393 (date_mod_LDFLAGS): Likewise.
31394 (datehook_mod_SOURCES): Likewise.
31395 (datehook_mod_CFLAGS): Likewise.
31396 (datehook_mod_LDFLAGS): Likewise.
31397
31398 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31399 and datehook.mod.
31400 (datetime_mod_SOURCES): New macro.
31401 (datetime_mod_CFLAGS): Likewise.
31402 (datetime_mod_LDFLAGS): Likewise.
31403 (date_mod_SOURCES): Likewise.
31404 (date_mod_CFLAGS): Likewise.
31405 (date_mod_LDFLAGS): Likewise.
31406 (datehook_mod_SOURCES): Likewise.
31407 (datehook_mod_CFLAGS): Likewise.
31408 (datehook_mod_LDFLAGS): Likewise.
31409
31410 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31411 and datehook.mod.
31412 (datetime_mod_SOURCES): New macro.
31413 (datetime_mod_CFLAGS): Likewise.
31414 (datetime_mod_LDFLAGS): Likewise.
31415 (date_mod_SOURCES): Likewise.
31416 (date_mod_CFLAGS): Likewise.
31417 (date_mod_LDFLAGS): Likewise.
31418 (datehook_mod_SOURCES): Likewise.
31419 (datehook_mod_CFLAGS): Likewise.
31420 (datehook_mod_LDFLAGS): Likewise.
31421
31422 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
31423
31424 * commands/date.c: New file.
31425
31426 * hook/datehook.c: Likewise.
31427
31428 * include/grub/lib/datetime.h: Likewise.
31429
31430 * include/grub/i386/cmos.h: Likewise.
31431
31432 * lib/datetime.c: Likewise.
31433
31434 * lib/i386/datetime.c: Likewise.
31435
31436 * lib/efi/datetime.c: Likewise.
31437
31438 2008-08-14 Robert Millan <rmh@aybabtu.com>
31439
31440 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
31441 (grub_mkelfimage_SOURCES): New variable.
31442 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
31443
31444 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
31445 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
31446 * conf/powerpc-ieee1275.rmk: Likewise.
31447 * conf/i386-ieee1275.rmk: Likewise.
31448
31449 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
31450 * kern/i386/coreboot/init.c: Likewise.
31451
31452 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
31453 with `<grub/cpu/kernel.h>'.
31454 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
31455 to ...
31456 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
31457 * kern/i386/coreboot/startup.S: Likewise.
31458
31459 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
31460 (GRUB_MOD_GAP): Remove.
31461 * include/grub/powerpc/kernel.h: New file.
31462 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
31463 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
31464 * include/grub/i386/kernel.h: New file.
31465 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
31466 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
31467 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
31468
31469 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
31470 `grub-mkelfimage'.
31471 Use --directory when invoking grub_mkimage.
31472
31473 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
31474 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
31475 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
31476 and GRUB_KERNEL_CPU_PREFIX.
31477
31478 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
31479
31480 * include/grub/err.h (grub_err_printf): New function prototype.
31481 * util/misc.c (grub_err_printf): New function.
31482 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
31483 grub_printf.
31484 * kern/err.c (grub_print_error): Use grub_err_printf.
31485
31486 2008-08-13 Robert Millan <rmh@aybabtu.com>
31487
31488 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
31489
31490 2008-08-13 Robert Millan <rmh@aybabtu.com>
31491
31492 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
31493 boot entry.
31494
31495 2008-08-12 Robert Millan <rmh@aybabtu.com>
31496
31497 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
31498 of the relocation code from here ...
31499 (grub_multiboot): ... to here.
31500 (forward_relocator, backward_relocator): Move from here ...
31501 * kern/i386/loader.S (grub_multiboot_forward_relocator)
31502 (grub_multiboot_backward_relocator): ... to here.
31503 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
31504 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
31505 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
31506 (grub_multiboot_forward_relocator_end)
31507 (grub_multiboot_backward_relocator)
31508 (grub_multiboot_backward_relocator_end): New variables.
31509
31510 2008-08-12 Bean <bean123ch@gmail.com>
31511
31512 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
31513
31514 2008-08-11 Robert Millan <rmh@aybabtu.com>
31515
31516 * kern/i386/linuxbios/startup.S: Move from here ...
31517 * kern/i386/coreboot/startup.S: ... to here.
31518
31519 * kern/i386/linuxbios/init.c: Move from here ...
31520 * kern/i386/coreboot/init.c: ... to here.
31521
31522 * kern/i386/linuxbios/table.c: Move from here ...
31523 * kern/i386/coreboot/mmap.c: ... to here.
31524
31525 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
31526
31527 2008-08-11 Robert Millan <rmh@aybabtu.com>
31528
31529 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
31530 errors. Leave it to the upper layer to handle them.
31531
31532 2008-08-09 Christian Franke <franke@computer.org>
31533
31534 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
31535 * conf/common.rmk: Install `grub-pe2elf' only if requested.
31536 Install `grub.d/10_windows' only on Cygwin.
31537 * configure.ac: Add subst of `target_os'.
31538 Check `target_os' also before setting TARGET_OBJ2ELF.
31539 Add `--enable-grub-pe2elf'.
31540
31541 2008-08-08 Robert Millan <rmh@aybabtu.com>
31542
31543 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
31544 (grub_last_time): Change type to grub_uint64_t.
31545 (grub_disk_open): Migrate code from to using grub_get_time_ms().
31546 (grub_disk_close): Likewise.
31547
31548 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
31549 (run_menu): Migrate code from to using grub_get_time_ms().
31550
31551 * util/misc.c (grub_get_time_ms): New function.
31552
31553 2008-08-08 Marco Gerards <marco@gnu.org>
31554
31555 * disk/ata.c (grub_ata_regget): Change return type to
31556 `grub_uint8_t'.
31557 (grub_ata_regget2): Likewise.
31558 (grub_ata_wait_status): New function.
31559 (grub_ata_wait_busy): Removed function, updated all users to use
31560 `grub_ata_wait_status'.
31561 (grub_ata_wait_drq): Likewise.
31562 (grub_ata_cmd): New function.
31563 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
31564 error handling.
31565 (grub_ata_pio_write): Add error handling.
31566 (grub_atapi_identify): Likewise.
31567 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
31568 handling.
31569 (grub_ata_identify): Use `grub_ata_cmd' and improve error
31570 handling. Actually use the detected registers. Reorder the
31571 detection logic such that it is easier to read.
31572 (grub_ata_pciinit): Do not assign the same ID to each controller.
31573 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
31574 handling.
31575 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
31576
31577 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
31578
31579 2008-08-08 Marco Gerards <marco@gnu.org>
31580
31581 * NEWS: Update.
31582
31583 2008-08-07 Bean <bean123ch@gmail.com>
31584
31585 * include/grub/x86_64/pci.h: New file.
31586
31587 2008-08-07 Christian Franke <franke@computer.org>
31588
31589 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
31590 (TIMER2_GATE): Likewise.
31591 (grub_pit_wait): Add enable/disable of the timer2 gate
31592 bit of port 0x61. This fixes a possible infinite loop.
31593
31594 2008-08-07 Bean <bean123ch@gmail.com>
31595
31596 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
31597 kern/i386/tsc.c and kern/i386/pit.c.
31598
31599 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
31600 x86_64 platform.
31601
31602 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
31603 <grub/i386/tsc.h>.
31604
31605 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
31606
31607 2008-08-07 Bean <bean123ch@gmail.com>
31608
31609 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
31610
31611 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
31612
31613 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
31614 multiple inclusion. Add #include <grub/types.h>.
31615
31616 2008-08-06 Christian Franke <franke@computer.org>
31617
31618 * conf/common.rmk: Build and install `10_windows'.
31619 * util/grub.d/10_windows.in: New script.
31620
31621 2008-08-06 Pavel Roskin <proski@gnu.org>
31622
31623 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
31624
31625 2008-08-06 Robert Millan <rmh@aybabtu.com>
31626
31627 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
31628 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
31629
31630 2008-08-06 Bean <bean123ch@gmail.com>
31631
31632 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
31633 (grub_pxefs_fs_int): Remove dummy definition.
31634 (grub_pxefs_open): Use data->block_size to store the current block
31635 size setting.
31636 (grub_pxefs_read): Use block size stored in data->block_size. As the
31637 value of grub_pxe_blksize can be changed after the file is opened.
31638
31639 2008-08-06 Bean <bean123ch@gmail.com>
31640
31641 * fs/i386/pc/pxe.c (curr_file): new variable.
31642 (grub_pxefs_open): Simply the handling of pxe file system. Don't
31643 require the dummy internal file system anymore.
31644 (grub_pxefs_read): Removed.
31645 (grub_pxefs_close): Likewise.
31646 (grub_pxefs_fs_int): Likewise.
31647 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
31648 connection when we switch file.
31649 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
31650
31651 2008-08-06 Robert Millan <rmh@aybabtu.com>
31652
31653 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
31654 `halt.mod'.
31655 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
31656 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
31657
31658 * kern/i386/halt.c: New file.
31659 * kern/i386/reboot.c: Likewise.
31660 * include/grub/i386/reboot.h: Likewise.
31661 * include/grub/i386/halt.h: Likewise.
31662
31663 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
31664 Include `<grub/cpu/halt.h>'.
31665 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
31666 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
31667
31668 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
31669 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
31670 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
31671 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
31672 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
31673 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
31674 from here ...
31675 * include/grub/i386/at_keyboard.h: ... to here.
31676
31677 2008-08-05 Robert Millan <rmh@aybabtu.com>
31678
31679 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
31680 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
31681 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
31682 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
31683 `kern/generic/millisleep.c'.
31684
31685 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
31686 instead of grub_get_rtc().
31687 (grub_tsc_init): Initialize `tsc_boot_time'.
31688
31689 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
31690 (grub_machine_init): Use grub_tsc_init() rather than
31691 installing an RTC-based handler via grub_install_get_time_ms().
31692
31693 * kern/i386/pit.c: New file.
31694 * include/grub/i386/pit.h: Likewise.
31695
31696 2008-08-05 Bean <bean123ch@gmail.com>
31697
31698 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
31699
31700 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
31701 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
31702 (pxe_mod_SOURCES): New macro.
31703 (pxe_mod_CFLAGS): Likewise.
31704 (pxe_mod_LDFLAGS): Likewise.
31705 (pxecmd_mod_SOURCES): Likewise.
31706 (pxecmd_mod_CFLAGS): Likewise.
31707 (pxecmd_mod_LDFLAGS): Likewise.
31708
31709 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
31710 (grub_pxe_call): Likewise.
31711
31712 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
31713
31714 * commands/i386/pc/pxecmd.c: New file.
31715
31716 * fs/i386/pc/pxe.c: Likewise.
31717
31718 * include/grub/i386/pc/pxe.h: Likewise.
31719
31720 2008-08-05 Bean <bean123ch@gmail.com>
31721
31722 * util/console.c (grub_console_cur_color): New variable.
31723 (grub_console_standard_color): Likewise.
31724 (grub_console_normal_color): Likewise.
31725 (grub_console_highlight_color): Likewise.
31726 (color_map): Likewise.
31727 (use_color): Likewise.
31728 (NUM_COLORS): New macro.
31729 (grub_ncurses_setcolorstate): Handle color properly.
31730 (grub_ncurses_setcolor): Don't change color here, just remember the
31731 settings, color will be set in grub_ncurses_setcolorstate.
31732 (grub_ncurses_getcolor): New function.
31733 (grub_ncurses_init): Initialize color pairs.
31734 (grub_ncurses_term): New member grub_ncurses_getcolor.
31735
31736 2008-08-05 Colin D Bennett <colin@gibibit.com>
31737
31738 High resolution timer support. Implemented for x86 CPUs using TSC.
31739 Extracted generic grub_millisleep() so it's linked in only as needed.
31740 This requires a Pentium compatible CPU; if the RDTSC instruction is
31741 not supported, then it falls back on the generic grub_get_time_ms()
31742 implementation that uses the machine's RTC.
31743
31744 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
31745 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
31746 `kern/generic/millisleep.c'.
31747
31748 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
31749 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
31750
31751 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
31752 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
31753
31754 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31755
31756 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
31757 `kern/generic/millisleep.c'.
31758
31759 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31760
31761 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
31762
31763 * kern/generic/rtc_get_time_ms.c: New file.
31764
31765 * kern/generic/millisleep.c: New file.
31766
31767 * kern/misc.c: Don't include
31768 <kern/time.h> anymore.
31769 (grub_millisleep_generic): Removed.
31770
31771 * commands/sleep.c (grub_interruptible_millisleep): Uses
31772 grub_get_time_ms() instead of grub_get_rtc().
31773
31774 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
31775 function.
31776 (grub_cpu_is_cpuid_supported): New inline function.
31777 (grub_cpu_is_tsc_supported): New inline function.
31778 (grub_tsc_init): New function prototype.
31779 (grub_tsc_get_time_ms): New function prototype.
31780
31781 * kern/i386/tsc.c (grub_get_time_ms): New file.
31782
31783 * include/grub/time.h: Include <grub/types.h.
31784 (grub_millisleep_generic): Removed.
31785 (grub_get_time_ms): New prototype.
31786 (grub_install_get_time_ms): New prototype.
31787 (grub_rtc_get_time_ms): New prototype.
31788
31789 * kern/time.c (grub_get_time_ms): New function.
31790 (grub_install_get_time_ms): New function.
31791
31792 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
31793 <grub/time.h> anymore.
31794 (grub_millisleep): Removed.
31795 (grub_machine_init): Call grub_tsc_init.
31796
31797 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
31798 get_time_ms() implementation.
31799
31800 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
31801 (ieee1275_get_time_ms): New function.
31802 (grub_machine_init): Install get_time_ms() implementation.
31803
31804 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
31805 (grub_machine_init): Call grub_tsc_init().
31806 (grub_millisleep): Removed.
31807
31808 * kern/ieee1275/init.c (grub_millisleep): Removed.
31809 (grub_machine_init): Install ieee1275_get_time_ms()
31810 implementation.
31811 (ieee1275_get_time_ms): New function.
31812 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
31813 real work.
31814
31815 2008-08-05 Marco Gerards <marco@gnu.org>
31816
31817 * disk/ata.c: Include <grub/pci.h>.
31818 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
31819 (grub_ata_initialize): Rewritten.
31820 (grub_ata_device_initialize): New function.
31821
31822 2008-08-04 Pavel Roskin <proski@gnu.org>
31823
31824 * kern/main.c: Include grub/mm.h.
31825
31826 2008-08-04 Robert Millan <rmh@aybabtu.com>
31827
31828 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
31829 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
31830 corruption problem).
31831
31832 2008-08-04 Robert Millan <rmh@aybabtu.com>
31833
31834 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
31835 warnings introduced in my last commit.
31836
31837 2008-08-03 Robert Millan <rmh@aybabtu.com>
31838
31839 Make PCI available on all i386 architectures.
31840
31841 * include/grub/i386/pc/pci.h: Move from here ...
31842 * include/grub/i386/pci.h: ... to here.
31843
31844 * include/grub/i386/pc/pci.h: Remove.
31845 * include/grub/i386/efi/pci.h: Remove.
31846 * include/grub/x86_64/efi/pci.h: Remove.
31847
31848 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
31849 `<grub/cpu/pci.h>'.
31850
31851 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
31852 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
31853 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
31854
31855 * conf/i386-ieee1275.rmk: Likewise.
31856
31857 2008-08-03 Robert Millan <rmh@aybabtu.com>
31858
31859 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
31860 (grub_console_setcursor): Make it possible to set cursor off.
31861
31862 2008-08-03 Robert Millan <rmh@aybabtu.com>
31863
31864 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
31865 of modules instead of assuming which platform provides what.
31866 * util/update-grub.in: Likewise.
31867
31868 2008-08-03 Robert Millan <rmh@aybabtu.com>
31869
31870 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
31871 instead of `grub_install_dos_part' to determine whether a drive needs
31872 to be prepended to prefix (`grub_install_dos_part' is not reliable,
31873 because it can be overridden when loading GRUB via Multiboot).
31874
31875 2008-08-02 Robert Millan <rmh@aybabtu.com>
31876
31877 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
31878
31879 2008-08-02 Robert Millan <rmh@aybabtu.com>
31880
31881 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
31882 of informational grub_dprintf() calls.
31883
31884 2008-08-02 Robert Millan <rmh@aybabtu.com>
31885
31886 * disk/memdisk.c (memdisk_size): Don't initialize.
31887 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
31888
31889 * include/grub/i386/pc/kernel.h
31890 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
31891 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
31892 (grub_memdisk_image_size, grub_arch_memdisk_addr)
31893 (grub_arch_memdisk_size): Remove.
31894
31895 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
31896 field (was only used to transfer a constant). Add `type' field to
31897 support multiple module types.
31898 (grub_module_iterate): New function.
31899
31900 * kern/device.c (grub_device_open): Do not hide error messages
31901 when grub_disk_open() fails. Use grub_print_error() instead.
31902
31903 * kern/i386/pc/init.c (grub_arch_modules_addr)
31904 (grub_arch_memdisk_size): Remove functions.
31905 (grub_arch_modules_addr): Return the module address in high memory
31906 (now that it isn't copied anymore).
31907
31908 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
31909 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
31910 decompression routine (grub_total_module_size already includes that
31911 now). Don't copy modules back to low memory.
31912
31913 * kern/main.c: Include `<grub/mm.h>'.
31914 (grub_load_modules): Split out (and use) ...
31915 (grub_module_iterate): ... this function, which iterates through
31916 module objects and runs a hook.
31917 Comment out grub_mm_init_region() call, as it would cause non-ELF
31918 modules to be overwritten.
31919
31920 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
31921 the memdisk image in its own region, make it part of the module list.
31922 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
31923 (main): Parse --memdisk|-m option, and pass user-provided path as
31924 parameter to generate_image().
31925 (add_segments): Pass `memdisk_path' down to load_modules().
31926 (load_modules): Embed memdisk image in module section when requested.
31927 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
31928 `header.type' instead of `header.offset'.
31929
31930 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
31931 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
31932 (memdisk_mod_LDFLAGS): New variables.
31933 * conf/i386-coreboot.rmk: Likewise.
31934 * conf/i386-ieee1275.rmk: Likewise.
31935
31936 2008-08-02 Robert Millan <rmh@aybabtu.com>
31937
31938 * loader/i386/pc/multiboot.c (playground, forward_relocator)
31939 (backward_relocator): New variables. Used to allocate and relocate
31940 the payload, respectively.
31941 (grub_multiboot_load_elf32): Load into heap instead of requested
31942 address, install the appropriate relocator code in each bound of
31943 the payload, and set the entry point such that
31944 grub_multiboot_real_boot() will jump to one of them.
31945
31946 * kern/i386/loader.S (grub_multiboot_payload_size)
31947 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
31948 (grub_multiboot_payload_entry_offset): New variables.
31949 (grub_multiboot_real_boot): Set cpu context to what the relocator
31950 expects, and jump to the relocator instead of the payload.
31951
31952 * include/grub/i386/loader.h (grub_multiboot_payload_size)
31953 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
31954 (grub_multiboot_payload_entry_offset): Export.
31955
31956 2008-08-01 Bean <bean123ch@gmail.com>
31957
31958 * normal/menu_entry.c (editor_getline): Don't return the original
31959 string as result, as it will be released by lexer once it has done
31960 using it.
31961
31962 2008-08-01 Robert Millan <rmh@aybabtu.com>
31963
31964 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
31965 within menuentries, not before them.
31966 util/grub.d/10_hurd.in: Likewise.
31967
31968 2008-08-01 Bean <bean123ch@gmail.com>
31969
31970 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
31971 (bufio_mod_SOURCES): New macro.
31972 (bufio_mod_CFLAGS): Likewise.
31973 (bufio_mod_LDFLAGS): Likewise.
31974
31975 * include/grub/bufio.h: New file.
31976
31977 * io/bufio.c: Likewise.
31978
31979 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
31980 (grub_video_reader_png): Use grub_buffile_open to open file.
31981
31982 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
31983 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
31984
31985 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
31986 (grub_video_reader_tga): Use grub_buffile_open to open file.
31987
31988 * font/manager.c: Include <grub/bufio.h>.
31989 (add_font): Use grub_buffile_open to open file.
31990
31991 2008-07-31 Robert Millan <rmh@aybabtu.com>
31992
31993 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
31994 ELF segments, use a macro for arbitrarily accessing any of them instead
31995 of preparing a pointer that allows access to one at a time.
31996 (grub_multiboot_load_elf64): Likewise.
31997
31998 2008-07-31 Bean <bean123ch@gmail.com>
31999
32000 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
32001 GRUB_KERNEL_MACHINE_DATA_END.
32002
32003 2008-07-30 Robert Millan <rmh@aybabtu.com>
32004
32005 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
32006 Increase from 0x50 to 0x60.
32007 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
32008 use UUIDs to identify the root drive for them. If that's not
32009 possible, abort.
32010 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
32011 check, for cross-disk installs.
32012
32013 2008-07-30 Robert Millan <rmh@aybabtu.com>
32014
32015 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
32016 is non-empty, use it to set the `prefix' environment variable instead
32017 of the usual approach.
32018 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
32019 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
32020 environment variable instead of dummy make_install_device().
32021
32022 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
32023 (start): Insert a data section, with `grub_prefix' variable.
32024 * kern/i386/linuxbios/startup.S: Likewise.
32025
32026 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
32027 New variable reference.
32028 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
32029 New macro. Defines offset of `grub_prefix' within startup.S (relative
32030 to `start').
32031 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
32032 section within startup.S (relative to `start').
32033 * include/grub/i386/coreboot/kernel.h: Likewise.
32034
32035 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
32036 Overwrite grub_prefix with its contents, at the beginning of the
32037 first segment.
32038 (main): Understand -p|--prefix.
32039
32040 2008-07-30 Robert Millan <rmh@aybabtu.com>
32041
32042 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
32043
32044 2008-07-30 Robert Millan <rmh@aybabtu.com>
32045
32046 * term/i386/pc/vga_text.c (grub_console_cls): Use
32047 grub_console_gotoxy() to go back to beginning of the screen.
32048 Found by Patrick Georgi <patrick.georgi@coresystems.de>
32049
32050 2008-07-29 Christian Franke <franke@computer.org>
32051
32052 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
32053 Add conversion of emulated mount points on Cygwin.
32054
32055 2008-07-29 Christian Franke <franke@computer.org>
32056
32057 * util/update-grub.in: Add a check for admin
32058 group on Cygwin.
32059 Remove old `grub.cfg.new' before creation.
32060 Add `-f' to `mv' to handle the different filesystem
32061 semantics of Windows.
32062
32063 2008-07-29 Bean <bean123ch@gmail.com>
32064
32065 * normal/main.c (get_line): Fix buffer overflow bug.
32066
32067 2008-07-28 Robert Millan <rmh@aybabtu.com>
32068
32069 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
32070 (struct grub_apple_header): New struct. Describes the layout of
32071 the partmap header.
32072 (apple_partition_map_iterate): Check the header magic as well as the
32073 partition magic (which was already being checked).
32074
32075 2008-07-28 Pavel Roskin <proski@gnu.org>
32076
32077 * genmk.rb: Add a warning to the beginning of the output that
32078 it's a generated file and should not be edited.
32079
32080 2008-07-28 Robert Millan <rmh@aybabtu.com>
32081
32082 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32083 with the same number are found, just use issue a warning with
32084 grub_dprintf(), as this error has been reported to be non-fatal.
32085
32086 2008-07-27 Robert Millan <rmh@aybabtu.com>
32087
32088 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
32089 information.
32090
32091 2008-07-27 Bean <bean123ch@gmail.com>
32092
32093 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
32094 (grub_fat_find_dir): Ignore case when comparing filename.
32095
32096 2008-07-27 Bean <bean123ch@gmail.com>
32097
32098 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
32099 smallino, as it's more descriptive, and i8count can be confused with
32100 the other field count.
32101 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
32102 inode type.
32103
32104 2008-07-27 Bean <bean123ch@gmail.com>
32105
32106 * commands/crc.c: New file.
32107
32108 * lib/crc.c: Likewise.
32109
32110 * include/grub/lib/crc.h: Likewise.
32111
32112 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
32113
32114 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
32115 (hexdump): Move this function to ...
32116
32117 * lib/hexdump.c: ... here.
32118
32119 * include/grub/hexdump.h: Renamed to ...
32120
32121 * include/grub/lib/hexdump.h: ... this.
32122
32123 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
32124
32125 * util/grub-editenv.c: Likewise.
32126
32127 * include/envblk.h: Renamed to ...
32128
32129 * include/lib/envblk.h: ... this.
32130
32131 * util/envblk.c: Renamed to ...
32132
32133 * lib/envblk.c: ... this.
32134
32135 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
32136 lib/hexdump.c.
32137 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
32138 (pkglib_MODULES): Add crc.mod.
32139 (hexdump_mod_SOURCES): Add lib/hexdump.c.
32140 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
32141 (crc_mod_SOURCES): New macro.
32142 (crc_mod_CFLAGS): Likewise.
32143 (crc_mod_LDFLAGS): Likewise.
32144
32145 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
32146
32147 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32148
32149 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32150
32151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32152
32153 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32154
32155 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
32156
32157 * commands/help.c: Include <grub/term.h>.
32158 (TERM_WIDTH): Removed. Updated all users.
32159
32160 2008-07-27 Pavel Roskin <proski@gnu.org>
32161
32162 * util/getroot.c (find_root_device): Rephrase a comment to avoid
32163 spurious warnings about a comment within a comment.
32164
32165 2008-07-25 Robert Millan <rmh@aybabtu.com>
32166
32167 * util/getroot.c (find_root_device): Skip devices that match
32168 /dev/dm-[0-9]. This lets the real device be found for any type of
32169 abstraction (LVM, EVMS, RAID..).
32170 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
32171 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
32172 device is found first, find_root_device() will now skip it.
32173
32174 2008-07-24 Pavel Roskin <proski@gnu.org>
32175
32176 * include/grub/types.h: Use __builtin_bswap32() and
32177 __builtin_bswap64() with gcc 4.3 and newer.
32178
32179 2008-07-24 Christian Franke <franke@computer.org>
32180
32181 * util/i386/pc/grub-install.in: If `--debug' is specified,
32182 pass `--verbose' to grub-setup.
32183 Abort script if make_system_path_relative_to_its_root() fails.
32184
32185 2008-07-24 Bean <bean123ch@gmail.com>
32186
32187 * configure.ac: Fixed a bug caused by the previous cygwin patch,
32188 variable `target_platform' should be `platform'.
32189
32190 2008-07-24 Bean <bean123ch@gmail.com>
32191
32192 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
32193 (grub_png_init_fixed_block): New function.
32194 (grub_png_decode_image_data): Handle fixed huffman code compression.
32195
32196 2008-07-24 Bean <bean123ch@gmail.com>
32197
32198 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
32199 (grub_pe2elf_SOURCES): New macro.
32200 (CLEANFILES): Add grub-pe2elf.
32201
32202 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
32203 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
32204 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
32205 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
32206 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
32207 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
32208 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
32209 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
32210 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
32211 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
32212 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
32213 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
32214 (GRUB_PE32_DT_FUNCTION): Likewise.
32215 (GRUB_PE32_REL_I386_DIR32): Likewise.
32216 (GRUB_PE32_REL_I386_REL32): Likewise.
32217 (grub_pe32_symbol): New structure.
32218 (grub_pe32_reloc): Likewise.
32219
32220 * util/grub-pe2elf.c: New file.
32221
32222 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
32223 start symbol in non pc platform.
32224
32225 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
32226
32227 The following patches are from Christian Franke.
32228
32229 * include/grub/dl.h: Remove .previous, gas supports this only
32230 for ELF format.
32231
32232 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
32233 Remove .type, gas supports this only for ELF format.
32234
32235 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
32236 nullbytes in symbol table. This fixes an infinite loop if table is
32237 zero filled.
32238
32239 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
32240 TARGET_IMG_LDFLAGS and EXEEXT.
32241
32242 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
32243 TARGET_IMG_LDFLAGS_AC.
32244 (grub_CHECK_STACK_ARG_PROBE): New function.
32245
32246 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
32247
32248 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
32249
32250 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
32251 to set TARGET_IMG_LD* accordingly.
32252 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
32253 Add call to grub_CHECK_STACK_ARG_PROBE.
32254 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
32255
32256 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
32257
32258 * genmk.rb: Add EXEEXT to CLEANFILES.
32259
32260 2008-07-23 Robert Millan <rmh@aybabtu.com>
32261
32262 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
32263 define the codes for arrows and lines used for the menu).
32264 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
32265 as well.
32266
32267 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
32268 fonts, because the latter are too slow.
32269
32270 2008-07-21 Bean <bean123ch@gmail.com>
32271
32272 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
32273 a20. Run keyboard test last, as it will cause macbook to halt.
32274
32275 2008-07-18 Pavel Roskin <proski@gnu.org>
32276
32277 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
32278 load foreign architecture modules correctly anyway. Keep
32279 support for loading host architecture modules, whether we
32280 compile them or not.
32281
32282 2008-07-17 Pavel Roskin <proski@gnu.org>
32283
32284 * configure.ac: Use -m32 or -m64 regardless of whether we had to
32285 change target_cpu. The compiler default can mismatch target_cpu
32286 in any case.
32287
32288 * disk/efi/efidisk.c: Fix format warnings on x86_64.
32289 * kern/efi/efi.c: Likewise.
32290
32291 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
32292 target compiler is functional.
32293 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
32294 are set up.
32295
32296 * configure.ac: Default to efi platform for x86_64-apple. Allow
32297 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
32298 adjustments from the rest, only do them if target is not
32299 explicitly given. Merge other adjustments with the final sanity
32300 check. Remove an extraneous check for supported CPU. Be
32301 specific which CPU and which platform is not supported.
32302
32303 * configure.ac: Default to pc platform for x86_64.
32304
32305 2008-07-17 Robert Millan <rmh@aybabtu.com>
32306
32307 Partial LinuxBIOS -> Coreboot rename.
32308
32309 * conf/i386-linuxbios.rmk: Renamed to ...
32310 * conf/i386-coreboot.rmk: ... this.
32311 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
32312 * configure.ac: Accept "coreboot" as input platform (but maintain
32313 compatibility with "linuxbios").
32314 * include/grub/i386/linuxbios: Renamed to ...
32315 * include/grub/i386/coreboot: ... this.
32316
32317 2008-07-17 Bean <bean123ch@gmail.com>
32318
32319 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
32320 (appleldr_mod_SOURCE): New variable.
32321 (appleldr_mod_CFLAGS): Likewise.
32322 (appleldr_mod_LDFLAGS): Likewise.
32323 (pci_mod_SOURCES): Likewise.
32324 (pci_mod_CFLAGS): Likewise.
32325 (pci_mod_LDFLAGS): Likewise.
32326 (lspci_mod_SOURCES): Likewise.
32327 (lspci_mod_CFLAGS): Likewise.
32328 (lspci_mod_LDFLAGS): Likewise.
32329
32330 * conf/x86_64-efi.rmk: New file.
32331
32332 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
32333 macro.
32334 (grub_efidisk_write): Likewise.
32335
32336 * include/efi/api.h (efi_call_0): New macro.
32337 (efi_call_1): Likewise.
32338 (efi_call_2): Likewise.
32339 (efi_call_3): Likewise.
32340 (efi_call_4): Likewise.
32341 (efi_call_5): Likewise.
32342 (efi_call_6): Likewise.
32343
32344 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
32345 grub_rescue_cmd_chainloader.
32346
32347 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
32348 (grub_pe32_optional_header): Change some fields based on i386 or
32349 x86_64 platform.
32350 (GRUB_PE32_PE32_MAGIC): Likewise.
32351
32352 * include/grub/efi/uga_draw.h: New file.
32353
32354 * include/grub/elf.h (STN_ABS): New constant.
32355 (R_X86_64_NONE): Relocation constant for x86_64.
32356 (R_X86_64_64): Likewise.
32357 (R_X86_64_PC32): Likewise.
32358 (R_X86_64_GOT32): Likewise.
32359 (R_X86_64_PLT32): Likewise.
32360 (R_X86_64_COPY): Likewise.
32361 (R_X86_64_GLOB_DAT): Likewise.
32362 (R_X86_64_JUMP_SLOT): Likewise.
32363 (R_X86_64_RELATIVE): Likewise.
32364 (R_X86_64_GOTPCREL): Likewise.
32365 (R_X86_64_32): Likewise.
32366 (R_X86_64_32S): Likewise.
32367 (R_X86_64_16): Likewise.
32368 (R_X86_64_PC16): Likewise.
32369 (R_X86_64_8): Likewise.
32370 (R_X86_64_PC8): Likewise.
32371
32372 * include/grub/i386/efi/pci.h: New file.
32373
32374 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
32375 Change it value based on platform.
32376 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
32377 (GRUB_E820_RAM): Likewise.
32378 (GRUB_E820_RESERVED): Likewise.
32379 (GRUB_E820_ACPI): Likewise.
32380 (GRUB_E820_NVS): Likewise.
32381 (GRUB_E820_EXEC_CODE): Likewise.
32382 (GRUB_E820_MAX_ENTRY): Likewise.
32383 (grub_e820_mmap): New structure.
32384 (linux_kernel_header): Change the efi field according to different
32385 kernel version, also field from linux_kernel_header.
32386
32387 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
32388
32389 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
32390 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
32391 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
32392 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
32393 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
32394 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
32395 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
32396 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
32397 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
32398 (GRUB_PCI_ADDR_IO_MASK): Likewise.
32399
32400 * include/grub/x86_64/efi/kernel.h: New file.
32401
32402 * include/grub/x86_64/efi/loader.h: Likewise.
32403
32404 * include/grub/x86_64/efi/machine.h: Likewise.
32405
32406 * include/grub/x86_64/efi/pci.h: Likewise.
32407
32408 * include/grub/x86_64/efi/time.h: Likewise.
32409
32410 * include/grub/x86_64/linux.h: Likewise.
32411
32412 * include/grub/x86_64/setjmp.h: Likewise.
32413
32414 * include/grub/x86_64/time.h: Likewise.
32415
32416 * include/grub/x86_64/types.h: Likewise.
32417
32418 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
32419 GRUB_TARGET_SIZEOF_VOID_P.
32420
32421 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
32422 (grub_efi_locate_handle): Likewise.
32423 (grub_efi_open_protocol): Likewise.
32424 (grub_efi_set_text_mode): Likewise.
32425 (grub_efi_stall): Likewise.
32426 (grub_exit): Likewise.
32427 (grub_reboot): Likewise.
32428 (grub_halt): Likewise.
32429 (grub_efi_exit_boot_services): Likewise.
32430 (grub_get_rtc): Likewise.
32431
32432 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
32433 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
32434 (grub_efi_allocate_pages): Wrap efi calls.
32435 (grub_efi_free_pages): Wrap efi calls.
32436 (grub_efi_get_memory_map): Wrap efi calls.
32437
32438 * kern/x86_64/dl.c: New file.
32439
32440 * kern/x86_64/efi/callwrap.S: Likewise.
32441
32442 * kern/x86_64/efi/startup.S: Likewise.
32443
32444 * loader/efi/appleloader.c: Likewise.
32445
32446 * loader/efi/chainloader.c (cmdline): New variable.
32447 (grub_chainloader_unload): Wrap efi calls.
32448 (grub_chainloader_boot): Likewise.
32449 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
32450 command line.
32451
32452 * loader/efi/chainloader_normal.c (chainloader_command):
32453 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
32454 command line.
32455
32456 * loader/i386/efi/linux.c (allocate_pages): Change allocation
32457 method.
32458 (grub_e820_add_region): New function.
32459 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
32460 booting.
32461 (grub_find_video_card): New function.
32462 (grub_linux_setup_video): New function.
32463 (grub_rescue_cmd_linux): Probe for video information.
32464
32465 * normal/x86_64/setjmp.S: New file.
32466
32467 * term/efi/console.c (map_char): New function.
32468 (grub_console_putchar): Map unicode char.
32469 (grub_console_checkkey): Wrap efi calls.
32470 (grub_console_getkey): Likewise.
32471 (grub_console_getwh): Likewise.
32472 (grub_console_gotoxy): Likewise.
32473 (grub_console_cls): Likewise.
32474 (grub_console_setcolorstate): Likewise.
32475 (grub_console_setcursor): Likewise.
32476
32477 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
32478
32479 2008-07-16 Pavel Roskin <proski@gnu.org>
32480
32481 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
32482 format strings.
32483
32484 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
32485 pointer, not an integer. This fixes a warning and prevents
32486 precision loss on 64-bit systems.
32487 (relocate_addresses): Remove unneeded cast.
32488
32489 2008-07-15 Pavel Roskin <proski@gnu.org>
32490
32491 * kern/i386/ieee1275/init.c: Include grub/cache.h.
32492
32493 * term/ieee1275/ofconsole.c: Disable code unused on i386.
32494
32495 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
32496 Fix comparison between signed and unsigned.
32497
32498 * include/grub/i386/ieee1275/console.h: Declare
32499 grub_console_init() and grub_console_fini().
32500
32501 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
32502 It's empty and unused.
32503
32504 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
32505 beginning to avoid warnings with some compilers.
32506
32507 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
32508 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
32509
32510 2008-07-14 Pavel Roskin <proski@gnu.org>
32511
32512 * kern/env.c (grub_register_variable_hook): Don't copy empty
32513 string, it leaks memory. Pass "" to grub_env_set(), it should
32514 handle constant strings.
32515
32516 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
32517 * commands/cmp.c (grub_cmd_cmp): Likewise.
32518 * kern/dl.c (grub_dl_flush_cache): Likewise.
32519 (grub_dl_load_core): Likewise.
32520 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
32521 (grub_elf64_load_phdrs): Likewise.
32522
32523 2008-07-13 Pavel Roskin <proski@gnu.org>
32524
32525 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
32526 between signed and unsigned.
32527 (LzmaEnc_Finish): Fix warning about an unused parameter.
32528
32529 2008-07-13 Bean <bean123ch@gmail.com>
32530
32531 * Makefile.in (enable_lzo): New rule.
32532
32533 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
32534
32535 * configure.ac (ENABLE_LZO): New option --enable-lzo.
32536
32537 * boot/i386/pc/lnxboot.S: #include <config.h>.
32538
32539 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
32540 its value according to the compression algorithm used, lzo or lzma.
32541
32542 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
32543 compression algorithm according to configure macro.
32544
32545 * kern/i386/pc/startup.S (codestart): Likewise.
32546
32547 * kern/i386/pc/lzma_decode.S: New file.
32548
32549 * include/grub/lib/LzFind.h: Likewise.
32550
32551 * include/grub/lib/LzHash.h: Likewise.
32552
32553 * include/grub/lib/LzmaDec.h: Likewise.
32554
32555 * include/grub/lib/LzmaEnc.h: Likewise.
32556
32557 * include/grub/lib/LzmaTypes.h: Likewise.
32558
32559 * lib/LzFind.c: Likewise.
32560
32561 * lib/LzmaDec.c: Likewise.
32562
32563 * lib/LzmaEnc.c: Likewise.
32564
32565 2008-07-13 Bean <bean123ch@gmail.com>
32566
32567 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
32568 (grub_ext4_extent_header): New structure.
32569 (grub_ext4_extent): Likewise.
32570 (grub_ext4_extent_idx): Likewise.
32571 (grub_ext4_find_leaf): New function.
32572 (grub_ext2_read_block): Handle extents.
32573
32574 2008-07-12 Robert Millan <rmh@aybabtu.com>
32575
32576 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
32577
32578 2008-07-11 Robert Millan <rmh@aybabtu.com>
32579
32580 * util/grub.d/40_custom.in: New file. Example on how to add custom
32581 entries to /etc/grub.d.
32582 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
32583 40_custom (implicitly, by merging all the grub.d rules).
32584
32585 2008-07-11 Pavel Roskin <proski@gnu.org>
32586
32587 * commands/read.c (grub_getline): Fix invalid memory access.
32588 Don't add newline to the variable value.
32589
32590 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
32591 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
32592 (serial_hw_get_port): Check validity of the port number.
32593 (grub_cmd_serial): Check return value of serial_hw_get_port().
32594
32595 2008-07-07 Pavel Roskin <proski@gnu.org>
32596
32597 * boot/i386/pc/diskboot.S (notification_string): Replace
32598 "Loading kernel" with just "loading". This is shorter, less
32599 confusing and saves a few bytes for possible future changes.
32600
32601 2008-07-05 Pavel Roskin <proski@gnu.org>
32602
32603 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
32604 size for ATAPI devices, they are undefined. Output sector
32605 number in decimal form.
32606
32607 * disk/ata.c: Use named constants for status bits.
32608
32609 2008-07-04 Pavel Roskin <proski@gnu.org>
32610
32611 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
32612 grub_addr_t before casting it to the void pointer to fix a
32613 warning. Non-addressable regions are discarded earlier.
32614 (grub_arch_modules_addr): Cast _end to grub_addr_t.
32615 * kern/i386/linuxbios/table.c: Include grub/misc.h.
32616 (check_signature): Don't shadow table_header.
32617 (grub_linuxbios_table_iterate): Cast numeric constants to
32618 grub_linuxbios_table_header_t.
32619 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
32620 grub_stop().
32621
32622 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
32623 prevent warnings.
32624
32625 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
32626 pointer, which can cause warnings. Support 64-bit addresses.
32627
32628 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
32629 of sizeof(long). This fixes PowerPC image generation on x86_64.
32630
32631 2008-07-04 Robert Millan <rmh@aybabtu.com>
32632
32633 This fixes a performance issue when pc & gpt partmap iterators
32634 didn't abort iteration even after our hook found what it was
32635 looking for (often causing expensive probes of non-existent drives).
32636
32637 Some callers relied on previous buggy behaviour, since they would
32638 raise an error when their own hooks caused early abortion of its
32639 iteration.
32640
32641 * kern/device.c (grub_device_open): Improve error message.
32642 * disk/lvm.c (grub_lvm_open): Likewise.
32643 * disk/raid.c (grub_raid_open): Likewise.
32644
32645 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
32646 when hook requests it, independently of grub_errno.
32647 (pc_partition_map_probe): Do not fail when find_func() caused
32648 early abortion of pc_partition_map_iterate().
32649
32650 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
32651 when hook requests it, independently of grub_errno.
32652 (gpt_partition_map_probe): Do not fail when find_func() caused
32653 early abortion of gpt_partition_map_iterate().
32654
32655 * kern/partition.c (grub_partition_iterate): Abort parent iteration
32656 when hook requests it, independently of grub_errno. Do not fail when
32657 part_map_iterate_hook() caused early abortion of p->iterate().
32658
32659 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
32660 when grub_partition_iterate() returned with non-zero.
32661
32662 2008-07-03 Pavel Roskin <proski@gnu.org>
32663
32664 * disk/ata.c (grub_ata_pio_write): Check status before writing,
32665 like we do in grub_ata_pio_read().
32666 (grub_ata_readwrite): Always write individual sectors. Fix the
32667 sector count for the remainder.
32668 (grub_ata_write): Enable writing to ATA devices. Correctly
32669 report error for ATAPI devices.
32670
32671 2008-07-02 Pavel Roskin <proski@gnu.org>
32672
32673 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
32674 warning.
32675
32676 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
32677 for every read sector, we already increment it for the whole
32678 batch. This fixes reading more than 256 sectors at once.
32679
32680 * util/grub-editenv.c (cmd_info): Cast argument to long
32681 explicitly. ptrdiff_t reduces to int on i386.
32682
32683 * util/grub-editenv.c (main): Be specific which parameter is
32684 missing.
32685
32686 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
32687 (memdisk): Make memdisk_orig_addr a pointer.
32688
32689 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
32690 for file offsets, use grub_off_t instead. Fix printf format
32691 warnings.
32692
32693 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
32694 there. Real unexpected warnings should not drown in the noise
32695 about known problems.
32696
32697 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
32698 grub_disk_addr_t for memory addresses.
32699
32700 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
32701 explicitly to fix a warning.
32702
32703 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
32704
32705 * Makefile.in (MODULE_LDFLAGS): New variable.
32706 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
32707 the linker accepts --build-id=none.
32708 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
32709 MODULE_LDFLAGS.
32710 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
32711
32712 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
32713 those in Linux XFS code. Provide a way to access 64-bit parent
32714 inode.
32715 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
32716 the end of struct grub_xfs_dir_header.
32717
32718 2008-07-02 Bean <bean123ch@gmail.com>
32719
32720 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
32721 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
32722 and GRUB_IEEE1275_FLAG_NO_ANSI.
32723
32724 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
32725 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
32726 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
32727
32728 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
32729 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
32730
32731 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
32732 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
32733
32734 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
32735 esc sequence on non ANSI terminal.
32736 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
32737
32738 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
32739 beginning of file.
32740
32741 2008-07-02 Bean <bean123ch@gmail.com>
32742
32743 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
32744 (grub_editenv_SOURCES): New variable.
32745 (pkglib_MODULES): Add loadenv.mod.
32746 (loadenv_mod_SOURCES): New variable.
32747 (loadenv_mod_CFLAGS): Likewise.
32748 (loadenv_mod_LDFLAGS): Likewise.
32749
32750 * include/grub/envblk.h: New file.
32751
32752 * util/envblk.c: New file.
32753
32754 * util/grub-editenv.c: New file.
32755
32756 * commands/loadenv.c: New file.
32757
32758 2008-07-01 Pavel Roskin <proski@gnu.org>
32759
32760 * include/multiboot2.h (struct multiboot_tag_module): Use char,
32761 not unsigned char. This fixes warnings and is consistent with
32762 other tags.
32763
32764 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
32765
32766 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
32767
32768 * term/tparm.c (analyze): Always set *popcount.
32769
32770 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
32771 cast to fix a warning.
32772
32773 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
32774 cast to suppress a warning.
32775
32776 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
32777 grub_fshelp_read_file() expects.
32778
32779 * fs/fat.c: Fix UUID calculation on big-endian systems. We
32780 write uuid as a 32-bit value in CPU byte order, so declare and
32781 use it as such.
32782
32783 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
32784 long if the format specifier expects it.
32785 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
32786 * partmap/pc.c (pc_partition_map_iterate): Likewise.
32787 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
32788 long to fix a warning.
32789 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
32790 grub_dprintf() arguments to fix warnings.
32791
32792 2008-06-30 Pavel Roskin <proski@gnu.org>
32793
32794 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
32795 install_bsd_part immediately before core.img is embedded or
32796 modified on disk. This fixes core.img verification if core.img
32797 cannot be embedded.
32798
32799 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
32800 core_path to calculate the blocklist.
32801 Patch from Javier Martín <lordhabbit@gmail.com>
32802
32803 2008-06-29 Robert Millan <rmh@aybabtu.com>
32804
32805 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
32806 block to disk block.
32807 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
32808 Patch from Niels Böhm <bitbucket@arcor.de>
32809
32810 2008-06-29 Robert Millan <rmh@aybabtu.com>
32811
32812 * util/update-grub_lib.in (font_path): Search for fonts in
32813 /boot/grub first, which is more likely to be readable (we aren't
32814 deciding where fonts live, just looking for them).
32815
32816 2008-06-26 Pavel Roskin <proski@gnu.org>
32817
32818 * util/biosdisk.c (read_device_map): Don't leave dead map
32819 entries for devices failing stat() check.
32820
32821 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
32822 core_path_dev for the core.img path on the target device.
32823
32824 2008-06-26 Robert Millan <rmh@aybabtu.com>
32825
32826 * disk/fs_uuid.c: New file.
32827 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
32828 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
32829 (fs_uuid_mod_LDFLAGS): New variables.
32830 * include/grub/disk.h (grub_disk_dev_id): Add
32831 `GRUB_DISK_DEVICE_UUID_ID'.
32832 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
32833 implement iterate().
32834
32835 2008-06-26 Robert Millan <rmh@aybabtu.com>
32836
32837 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
32838 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
32839 Linux image includes no initrd.
32840
32841 2008-06-21 Javier Martín <lordhabbit@gmail.com>
32842
32843 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
32844 call to resolve the core image location that effectively appended the
32845 name twice.
32846
32847 2008-06-21 Robert Millan <rmh@aybabtu.com>
32848
32849 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
32850 call from here ...
32851
32852 * util/grub.d/10_hurd.in: ... to here ...
32853 * util/grub.d/10_linux.in: ... and here.
32854
32855 2008-06-19 Robert Millan <rmh@aybabtu.com>
32856
32857 * kern/main.c (grub_main): Export `prefix' variable immediately
32858 after it has been set by grub_machine_set_prefix().
32859
32860 2008-06-19 Robert Millan <rmh@aybabtu.com>
32861
32862 * commands/search.c (search_label, search_fs_uuid, search_file): Print
32863 search result when not saving to variable, not the other way around.
32864 When saving to variable, abort iteration as soon as a match is found.
32865
32866 2008-06-19 Robert Millan <rmh@aybabtu.com>
32867
32868 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
32869 check for partition that provides /boot/grub. Its logic is flawed,
32870 as it prevents prepare_grub_to_access_device() from being called
32871 multiple times.
32872
32873 2008-06-19 Robert Millan <rmh@aybabtu.com>
32874
32875 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
32876 "insmod" command directly when abstraction modules are needed,
32877 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
32878 since it had already been processed).
32879
32880 2008-06-19 Pavel Roskin <proski@gnu.org>
32881
32882 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
32883 changed. This is needed in case GRUB_LIBDIR changes.
32884 * conf/i386-ieee1275.rmk: Likewise.
32885 * conf/i386-linuxbios.rmk: Likewise.
32886 * conf/i386-pc.rmk: Likewise.
32887 * conf/powerpc-ieee1275.rmk: Likewise.
32888
32889 2008-06-18 Pavel Roskin <proski@gnu.org>
32890
32891 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
32892 kernel_elf_symlist.c to symlist.c for consistency with other
32893 architectures. Update all users.
32894 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
32895
32896 2008-06-18 Robert Millan <rmh@aybabtu.com>
32897
32898 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
32899 it in prefix.
32900
32901 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
32902 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
32903 a RAID device, run setup() for all members independently on whether
32904 LVM abstraction is being used.
32905 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
32906 If grub-mkimage has set `*install_dos_part == -2', don't override this
32907 value.
32908 Perform *install_dos_part adjustments independently on whether
32909 we're embedding or not.
32910 Clarify error message when image is too big for embedding.
32911 Remove duplicate *install_dos_part stanza.
32912
32913 2008-06-17 Robert Millan <rmh@aybabtu.com>
32914
32915 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
32916 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
32917 variables.
32918 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
32919 values in grub_ofconsole_normal_color and
32920 grub_ofconsole_highlight_color (they're not directly related to
32921 background and foreground).
32922 (grub_ofconsole_setcolorstate): Extract background and foreground
32923 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
32924
32925 2008-06-17 Robert Millan <rmh@aybabtu.com>
32926
32927 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
32928 /boot/grub for the check in last commit, not /boot (they could be
32929 different partitions).
32930
32931 2008-06-16 Robert Millan <rmh@aybabtu.com>
32932
32933 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
32934 asked to setup access for the same partition that provides /boot,
32935 don't bother using UUIDs since our root already has the value we
32936 want.
32937
32938 2008-06-16 Robert Millan <rmh@aybabtu.com>
32939
32940 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
32941 I2O devices.
32942 Patch from Sven Mueller <sven@debian.org>.
32943
32944 2008-06-16 Robert Millan <rmh@aybabtu.com>
32945
32946 * util/update-grub.in: Check for $EUID instead of $UID.
32947 Reported by Vincent Zweije.
32948
32949 2008-06-16 Bean <bean123ch@gmail.com>
32950
32951 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
32952 (grub_ext2_read_block): Likewise.
32953 (grub_ext2_read_inode): Likewise.
32954 (grub_ext2_mount): Likewise.
32955 (grub_ext2_close): Likewise.
32956 (grub_ext3_get_journal): Removed.
32957
32958 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
32959 (grub_reiserfs_read_symlink): Likewise.
32960 (grub_reiserfs_mount): Likewise.
32961 (grub_reiserfs_open): Likewise.
32962 (grub_reiserfs_read): Likewise.
32963 (grub_reiserfs_close): Likewise.
32964 (grub_reiserfs_get_journal): Removed.
32965
32966 * fs/fshelp.c (grub_fshelp_read): Removed.
32967 (grub_fshelp_map_block): Likewise.
32968
32969 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
32970 (grub_fshelp_journal): Likewise.
32971 (grub_fshelp_read): Likewise.
32972 (grub_fshelp_map_block): Likewise.
32973
32974 2008-06-16 Pavel Roskin <proski@gnu.org>
32975
32976 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
32977 floating point anymore.
32978 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
32979
32980 2008-06-15 Pavel Roskin <proski@gnu.org>
32981
32982 * commands/ls.c (grub_ls_list_files): Use integer calculations
32983 for human readable format, avoid floating point use.
32984 * kern/misc.c (grub_ftoa): Remove.
32985 (grub_vsprintf): Remove floating point support.
32986
32987 2008-06-15 Robert Millan <rmh@aybabtu.com>
32988
32989 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
32990 devices.
32991 Reported by Max Vozeler.
32992
32993 2008-06-15 Robert Millan <rmh@aybabtu.com>
32994
32995 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
32996 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
32997 skipped later.
32998 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
32999 the beginning of the prefix.
33000
33001 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
33002 It is assumed that if we have a memdisk, grub-mkimage has set
33003 grub_prefix to include the "(memdisk)" drive in it.
33004
33005 2008-06-15 Robert Millan <rmh@aybabtu.com>
33006
33007 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
33008 Initialize keyboard controller after registering the terminal, so that
33009 grub_printf() can be called from grub_keyboard_controller_init().
33010
33011 2008-06-15 Robert Millan <rmh@aybabtu.com>
33012
33013 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
33014 extent-btree which is written as big endian on disk.
33015 Reported by Alain Greppin <al@chilibi.org>.
33016
33017 2008-06-14 Robert Millan <rmh@aybabtu.com>
33018
33019 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
33020 * util/i386/pc/grub-install.in (modules): Likewise.
33021
33022 2008-06-13 Pavel Roskin <proski@gnu.org>
33023
33024 * commands/ls.c (grub_ls_list_files): Fix format warnings.
33025
33026 2008-06-13 Bean <bean123ch@gmail.com>
33027
33028 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
33029
33030 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
33031
33032 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
33033 to indicate sparse block.
33034
33035 2008-06-12 Pavel Roskin <proski@gnu.org>
33036
33037 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
33038 number, grub_fshelp_read() does it for us.
33039
33040 * fs/fshelp.c (grub_fshelp_read): New function. Implement
33041 linear disk read with journal translation.
33042 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
33043 * include/grub/fshelp.h: Declare grub_fshelp_read().
33044
33045 2008-06-09 Pavel Roskin <proski@gnu.org>
33046
33047 * fs/minix.c (grub_minix_mount): Handle error reading
33048 superblock.
33049
33050 2008-06-08 Robert Millan <rmh@aybabtu.com>
33051
33052 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
33053 don't append the RAID prefix afterwards.
33054 Reported by Clint Adams.
33055
33056 2008-06-08 Robert Millan <rmh@aybabtu.com>
33057
33058 Based on description from Pavel:
33059 * kern/disk.c (grub_disk_check_range): Rename to ...
33060 (grub_disk_adjust_range): ... this. Add a comment explaining the
33061 tasks performed by this function.
33062
33063 2008-06-08 Robert Millan <rmh@aybabtu.com>
33064
33065 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
33066 `num_serial' (for consistency with other variables).
33067 (struct grub_ntfs_data): Add `uuid' member.
33068 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
33069 (grub_ntfs_uuid): New function.
33070 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
33071
33072 2008-06-07 Pavel Roskin <proski@gnu.org>
33073
33074 * util/biosdisk.c (open_device): Revert last change to the
33075 function, it broke installation. The sector needs to be
33076 different dependent on which device is opened.
33077
33078 2008-06-06 Robert Millan <rmh@aybabtu.com>
33079
33080 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
33081 rest of GRUB, and breakage doesn't happen if its value were modified.
33082
33083 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
33084 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
33085 a constant (same value).
33086 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
33087 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
33088
33089 2008-06-06 Robert Millan <rmh@aybabtu.com>
33090
33091 * util/biosdisk.c (open_device): Do not modify sector offset when
33092 accessing a partition. kern/disk.c already handles this for us.
33093
33094 2008-06-06 Robert Millan <rmh@aybabtu.com>
33095
33096 * util/grub-emu.c (grub_machine_init): Move code in this function from
33097 here ...
33098 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
33099 segfault in case grub_printf() is called).
33100
33101 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
33102 grub_probe. Update all users not to explicitly add it again.
33103 (grub_device): New variable; contains corresponding device for grubdir.
33104 (fs_module, partmap_module, devabstraction_module): Pass
33105 `--device ${grub_device}' to grub_probe to avoid traversing /dev
33106 every time.
33107
33108 2008-06-05 Robert Millan <rmh@aybabtu.com>
33109
33110 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
33111 is found, print it (same layout as with labels).
33112
33113 2008-06-04 Robert Millan <rmh@aybabtu.com>
33114
33115 * util/biosdisk.c (get_drive): Rename to ...
33116 (find_grub_drive): ... this. Update all users.
33117
33118 (get_os_disk): Rename to ...
33119 (convert_system_partition_to_system_disk): ... this. Update all users.
33120
33121 (find_drive): Rename to ...
33122 (find_system_device): ... this. Update all users.
33123
33124 2008-06-04 Robert Millan <rmh@aybabtu.com>
33125
33126 * util/biosdisk.c (get_os_disk): Handle IDA devices.
33127 * util/grub-mkdevicemap.c (get_mmc_disk_name)
33128 (make_device_map): Likewise.
33129
33130 2008-06-01 Robert Millan <rmh@aybabtu.com>
33131
33132 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
33133 before dereferencing it.
33134
33135 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
33136 union with fat12/fat16-specific ones. Add some new fields, including
33137 `num_serial' for both versions.
33138 (struct grub_fat_data): Add `uuid' member.
33139 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
33140 names. Initialize `data->uuid' using `num_serial'.
33141 (grub_fat_uuid): New function.
33142 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
33143
33144 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
33145 (grub_reiserfs_uuid): New function.
33146 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
33147 member.
33148
33149 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
33150 (grub_xfs_uuid): New function.
33151 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
33152
33153 2008-06-01 Robert Millan <rmh@aybabtu.com>
33154
33155 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
33156 code that is backward compatible with pre-uuid search command.
33157
33158 2008-05-31 Robert Millan <rmh@aybabtu.com>
33159
33160 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
33161 floppies after everything else, to ensure floppy drive isn't accessed
33162 unnecessarily (patch from Bean).
33163
33164 2008-05-31 Robert Millan <rmh@aybabtu.com>
33165
33166 * commands/search.c (search_label, search_fs_uuid, search_file): Do
33167 not print device names when we were asked to set a variable.
33168
33169 2008-05-31 Robert Millan <rmh@aybabtu.com>
33170
33171 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
33172 using "cursor-on" and "cursor-off" commands (understood at least by
33173 the Open Firmware flavour on OLPC).
33174
33175 2008-05-31 Michael Gorven <michael@gorven.za.net>
33176
33177 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
33178 on and off sequences.
33179
33180 2008-05-31 Robert Millan <rmh@aybabtu.com>
33181
33182 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
33183 * util/update-grub.in: Likewise.
33184
33185 2008-05-30 Pavel Roskin <proski@gnu.org>
33186
33187 * util/biosdisk.c (linux_find_partition): Simplify logic and
33188 make the code more universal. Keep special processing for
33189 devfs, but use a simple rule for all other devices. If the
33190 device ends with a number, append 'p' and the partition number.
33191 Otherwise, append only the partition number.
33192
33193 2008-05-30 Robert Millan <rmh@aybabtu.com>
33194
33195 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
33196 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
33197 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
33198 the `root' parameter to Linux.
33199
33200 2008-05-30 Robert Millan <rmh@aybabtu.com>
33201
33202 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
33203 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
33204 --fs_uuid with --fs-uuid.
33205 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
33206 all filesystems support them).
33207
33208 2008-05-30 Robert Millan <rmh@aybabtu.com>
33209
33210 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
33211 grub_printf() flags, since we're printing in units of 2 bytes.
33212
33213 2008-05-30 Robert Millan <rmh@aybabtu.com>
33214
33215 * util/grub.d/00_header.in: Remove obsolete comment referencing
33216 convert_system_path_to_grub_path().
33217 * util/update-grub.in: Likewise.
33218 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
33219 (convert_system_path_to_grub_path): Add a warning message explaining
33220 that this function is deprecated. Rely on is_path_readable_by_grub()
33221 for the readability checks.
33222 (font_path): Use is_path_readable_by_grub() for the readability
33223 check rather than convert_system_path_to_grub_path().
33224
33225 2008-05-30 Robert Millan <rmh@aybabtu.com>
33226
33227 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
33228 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
33229 converting it first.
33230 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
33231 grub.cfg for access to font file, and afterwards call it again to set
33232 the root device.
33233
33234 2008-05-30 Robert Millan <rmh@aybabtu.com>
33235
33236 * commands/search.c (options): Add --fs_uuid option.
33237 (search_fs_uuid): New function.
33238 (grub_cmd_search): Fix --set argument passing.
33239 Use search_fs_uuid() when requested via --fs_uuid.
33240 (grub_search_init): Update help message.
33241 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
33242 and redeclare it as an array of 16-bit words.
33243 (grub_ext2_uuid): New function.
33244 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
33245 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
33246 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
33247 (GRUB_DEVICE_BOOT_UUID): New variables.
33248 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
33249 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
33250 whenever possible.
33251 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
33252 just assume `root' variable has the right value.
33253 * util/grub.d/10_linux.in: Likewise.
33254 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
33255 via PRINT_FS_UUID.
33256 (main): Recognise `-t fs_uuid' argument.
33257
33258 2008-05-30 Robert Millan <rmh@aybabtu.com>
33259
33260 * util/biosdisk.c (map): Redefine structure to hold information
33261 about GRUB drive name.
33262 (get_drive): Reimplement without assuming (and verifying) BIOS-like
33263 drive names.
33264 (call_hook): Remove.
33265 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
33266 member. Assume drive has partitions.
33267 (grub_util_biosdisk_open): Access device names via `.device' struct
33268 member.
33269 (open_device): Likewise.
33270 (find_drive): Likewise.
33271 (read_device_map): Adjust map[] usage to match the new struct
33272 definition. Don't check for duplicates (still possible, but not cheap
33273 anymore).
33274 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
33275 (make_device_name): Remove assumption of BIOS-like drive names.
33276
33277 2008-05-30 Pavel Roskin <proski@gnu.org>
33278
33279 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
33280 compiling execute.c doesn't need grub_script.tab.h anymore.
33281 (normal/command.c_DEPENDENCIES): Likewise.
33282 (normal/function.c_DEPENDENCIES): Likewise.
33283 * conf/i386-ieee1275.rmk: Likewise.
33284 * conf/i386-linuxbios.rmk: Likewise.
33285 * conf/i386-pc.rmk: Likewise.
33286 * conf/powerpc-ieee1275.rmk: Likewise.
33287 * conf/sparc64-ieee1275.rmk: Likewise.
33288
33289 2008-05-29 Pavel Roskin <proski@gnu.org>
33290
33291 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
33292 when scanning metadata for volume group name.
33293
33294 * include/grub/script.h: Don't include grub_script.tab.h. It's
33295 a generated file, which may only be included from the files with
33296 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
33297 use union YYSTYPE, as the later allows forward declaration.
33298 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
33299
33300 2008-05-29 Robert Millan <rmh@aybabtu.com>
33301
33302 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
33303 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
33304 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
33305 (grub_console_checkkey): Add grub_dprintf() call to report unknown
33306 scan codes.
33307
33308 2008-05-29 Robert Millan <rmh@aybabtu.com>
33309
33310 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
33311 control key combinations.
33312
33313 2008-05-29 Robert Millan <rmh@aybabtu.com>
33314
33315 * util/powerpc/ieee1275/grub-install.in: Move from here ...
33316 * util/ieee1275/grub-install.in: ... to here.
33317 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
33318 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
33319 (grub_install_SOURCES): Likewise.
33320
33321 2008-05-29 Robert Millan <rmh@aybabtu.com>
33322
33323 * fs/affs.c: Update copyright year.
33324 * fs/ext2.c: Likewise.
33325 * fs/fshelp.c: Likewise.
33326 * fs/hfsplus.c: Likewise.
33327 * fs/ntfs.c: Likewise.
33328 * fs/xfs.c: Likewise.
33329 * include/grub/fshelp.h: Likewise.
33330 * util/grub-mkdevicemap.c: Likewise.
33331
33332 2008-05-28 Robert Millan <rmh@aybabtu.com>
33333
33334 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
33335 might need to be fatfs to support some firmware implementations
33336 (e.g. OFW or EFI).
33337
33338 2008-05-28 Robert Millan <rmh@aybabtu.com>
33339
33340 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
33341 devices.
33342 * util/grub-mkdevicemap.c (get_mmc_disk_name)
33343 (make_device_map): Likewise.
33344
33345 2008-05-20 Bean <bean123ch@gmail.com>
33346
33347 * fs/fshelp.c (grub_fshelp_map_block): New function.
33348 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
33349 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
33350
33351 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
33352 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
33353 (grub_fshelp_journal): New structure.
33354 (grub_fshelp_map_block): New function prototype.
33355 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
33356 (grub_fshelp_map_block): Likewise.
33357
33358 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
33359 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
33360 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
33361 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
33362 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
33363 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
33364 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
33365 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
33366 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
33367 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
33368 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
33369 (grub_ext2_sblock): New members for journal support.
33370 (grub_ext3_journal_header): New structure.
33371 (grub_ext3_journal_revoke_header): Likewise.
33372 (grub_ext3_journal_block_tag): Likewise.
33373 (grub_ext3_journal_sblock): Likewise.
33374 (grub_fshelp_node): New members logfile and journal.
33375 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
33376 grub_fshelp_map_block to get real block number.
33377 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
33378 number.
33379 (grub_ext2_read_inode): Likewise.
33380 (grub_ext3_get_journal): New function.
33381 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
33382 (grub_ext2_close): Release memory used by journal.
33383
33384 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
33385 (REISERFS_MAGIC_DESC_BLOCK): New macro.
33386 (grub_reiserfs_transaction_header): Renamed to
33387 grub_reiserfs_description_block, replace field data with real_blocks.
33388 (grub_reiserfs_commit_block): New structure.
33389 (grub_reiserfs_data): New member journal.
33390 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
33391 number.
33392 (grub_reiserfs_read_symlink): Likewise.
33393 (grub_reiserfs_iterate_dir): Likewise.
33394 (grub_reiserfs_open): Likewise.
33395 (grub_reiserfs_read): Likewise.
33396 (grub_reiserfs_get_journal): New function.
33397 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
33398 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
33399 using grub_reiserfs_get_journal.
33400 (grub_reiserfs_close): Release memory used by journal.
33401
33402 * fs/affs.c (grub_affs_read_block): Change block type to
33403 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
33404
33405 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
33406
33407 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
33408
33409 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
33410
33411 * fs/udf.c (grub_udf_read_block): Change block type to
33412 grub_disk_addr_t. Use type cast to avoid warning.
33413
33414 * fs/xfs.c (grub_xfs_read_block): Likewise.
33415
33416 2008-05-16 Christian Franke <franke@computer.org>
33417
33418 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
33419 to ensure that break with ESC will always work.
33420 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
33421 Remove ESC from keyboard queue.
33422
33423 2008-05-16 Christian Franke <franke@computer.org>
33424
33425 * util/biosdisk.c: [__CYGWIN__] Add includes.
33426 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
33427 (get_os_disk): Move variable declarations to OS specific
33428 parts to avoid warning.
33429 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
33430 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
33431 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
33432 Cygwin.
33433 * util/getroot.c: [__CYGWIN__] Add includes.
33434 (strip_extra_slashes): Fix "/" case.
33435 [__CYGWIN__] (get_win32_path): New function.
33436 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
33437 [__CYGWIN__] (find_root_device): Disable.
33438 [__CYGWIN__] (get_bootsec_serial): New function.
33439 [__CYGWIN__] (find_cygwin_root_device): Likewise.
33440 [__linux__] (grub_guess_root_device): Add early returns to simplify
33441 structure.
33442 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
33443 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
33444 check for Linux only.
33445
33446 2008-05-15 Bean <bean123ch@gmail.com>
33447
33448 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
33449 keyboard hang problem in apple's intel mac.
33450
33451 2008-05-09 Robert Millan <rmh@aybabtu.com>
33452
33453 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
33454 devices.
33455 * util/grub-mkdevicemap.c (get_virtio_disk_name)
33456 (make_device_map): Likewise.
33457 Reported by Aurelien Jarno <aurel32@debian.org>
33458
33459 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
33460
33461 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
33462 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
33463 (make_device_map): Output entries for xvd type disks.
33464
33465 2008-05-07 Robert Millan <rmh@aybabtu.com>
33466
33467 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
33468 devices.
33469 * util/grub-mkdevicemap.c (get_cciss_disk_name)
33470 (make_device_map): Likewise.
33471 Reported by Roland Dreier <rdreier@cisco.com>
33472
33473 2008-05-07 Robert Millan <rmh@aybabtu.com>
33474
33475 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
33476 grub_strstr() call. Correct a few mistakes in failure path handling.
33477
33478 2008-05-06 Robert Millan <rmh@aybabtu.com>
33479
33480 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
33481 Do not print a trailing slash (therefore, the root directory is an
33482 empty string).
33483 (convert_system_path_to_grub_path): Do not remove trailing slash
33484 from make_system_path_relative_to_its_root() output.
33485
33486 * util/i386/pc/grub-install.in: Add trailing slash to output from
33487 make_system_path_relative_to_its_root().
33488
33489 2008-05-06 Robert Millan <rmh@aybabtu.com>
33490
33491 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
33492 ensures that output lines aren't intermangled with those sent to
33493 stderr (via grub_util_info()).
33494 * util/grub-probe.c (grub_refresh): Likewise.
33495 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
33496
33497 2008-05-05 Christian Franke <franke@computer.org>
33498
33499 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
33500 Add Cygwin device names.
33501 (get_ide_disk_name) [__CYGWIN__]: Likewise.
33502 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
33503 (check_device): Return error instead of success on empty name.
33504 (make_device_map): Move label inside linux specific code to
33505 prevent compiler warning.
33506
33507 2008-04-30 Robert Millan <rmh@aybabtu.com>
33508
33509 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
33510 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
33511 first boot option.
33512 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
33513
33514 2008-04-29 Robert Millan <rmh@aybabtu.com>
33515
33516 * docs/grub.cfg: New file (example GRUB configuration).
33517
33518 2008-04-26 Robert Millan <rmh@aybabtu.com>
33519
33520 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
33521 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
33522 and `disk/ieee1275/nand.c'.
33523
33524 2008-04-25 Bean <bean123ch@gmail.com>
33525
33526 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
33527 i386-linuxbios.
33528
33529 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
33530 change the buffer size to 4096 for cdrom device.
33531
33532 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
33533 and nand.mod.
33534 (_linux_mod_SOURCES): New variable.
33535 (_linux_mod_CFLAGS): Likewise.
33536 (_linux_mod_LDFLAGS): Likewise.
33537 (linux_mod_SOURCES): Likewise.
33538 (linux_mod_CFLAGS): Likewise.
33539 (linux_mod_LDFLAGS): Likewise.
33540 (nand_mod_SOURCES): Likewise.
33541 (nand_mod_CFLAGS): Likewise.
33542 (nand_mod_LDFLAGS): Likewise.
33543
33544 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
33545 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
33546 type property. (nand device in olpc don't have this property)
33547
33548 * include/grub/disk.h (grub_disk_dev_id): New macro
33549 GRUB_DISK_DEVICE_NAND_ID.
33550
33551 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
33552 function prototype.
33553 (grub_rescue_cmd_initrd): Likewise.
33554
33555 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
33556 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
33557 ofw_cif_handler and ofw_idt, adjust padding number.
33558
33559 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
33560 GRUB_MACHINE_IEEE1275 is defined.
33561
33562 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
33563 Use NESTED_FUNC_ATTR attribute on the hook parameter.
33564
33565 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
33566 on nested function heap_init.
33567 (grub_upper_mem): New variable for i386-ieee1275.
33568 (grub_get_extended_memory): New function for i386-ieee1275.
33569 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
33570
33571 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
33572 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
33573 property.
33574
33575 * loader/i386/ieee1275/linux.c: New file.
33576
33577 * loader/i386/ieee1275/linux_normal.c: New file.
33578
33579 * disk/ieee1275/nand.c: New file.
33580
33581 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
33582
33583 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
33584 value.
33585 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
33586
33587 2008-04-18 Robert Millan <rmh@aybabtu.com>
33588
33589 Restructures early code path on ieee1275 to unify grub_main() as
33590 the first C function that is executed in every platform.
33591
33592 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
33593 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
33594 cmain().
33595 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
33596 * kern/ieee1275/cmain.c (cmain): Rename to ...
33597 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
33598 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
33599 at the beginning.
33600
33601 2008-04-18 Robert Millan <rmh@aybabtu.com>
33602
33603 * util/update-grub.in: Fix syntax error when setting
33604 `GRUB_PRELOAD_MODULES'.
33605 Reported by Stephane Chazelas <stephane@artesyncp.com>
33606
33607 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
33608
33609 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
33610 section into account, newer toolchains generate unique build ids
33611 * configure.ac: remove the test for --build-id=none acceptance,
33612 we want build ids to be preserved
33613 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
33614 far from other sections don't cause the raw binary images grow
33615 size
33616
33617 2008-04-15 Robert Millan <rmh@aybabtu.com>
33618
33619 * disk/lvm.c: Update copyright year.
33620 * kern/misc.c: Likewise.
33621
33622 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
33623
33624 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
33625 there is no memory left for physical volume name.
33626
33627 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
33628
33629 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
33630 volume name mapping to support bigger than 9 character names properly.
33631
33632 2008-04-13 Robert Millan <rmh@aybabtu.com>
33633
33634 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
33635 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
33636
33637 2008-04-13 Christian Franke <franke@computer.org>
33638
33639 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
33640 to create a floppy emulation boot CD when non emulation mode
33641 does not work.
33642 Enable Joliet CD filesystem extension.
33643
33644 2008-04-13 Robert Millan <rmh@aybabtu.com>
33645
33646 * kern/misc.c (grub_strncat): Fix off-by-one error.
33647 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
33648
33649 * kern/env.c (grub_env_context_close): Clear current context, not
33650 previous one.
33651 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
33652
33653 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
33654
33655 2008-04-13 Robert Millan <rmh@aybabtu.com>
33656
33657 Improve robustness when handling LVM.
33658
33659 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
33660 (and leave `*p' unmodified).
33661 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
33662 through it.
33663 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
33664 iterating through it.
33665 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
33666 through it.
33667 (grub_lvm_scan_device): Check the return value (and fail gracefully
33668 when due) on each grub_lvm_getvalue() or grub_strstr() call.
33669 Don't assume `vg->pvs != NULL' when iterating through it.
33670
33671 2008-04-13 Robert Millan <rmh@aybabtu.com>
33672
33673 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
33674 * genmk.rb (partmap): New variable.
33675 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
33676 (#{partmap}): New target rule.
33677 * genpartmaplist.sh: New file.
33678 * Makefile.in (pkglib_DATA): Add partmap.lst.
33679 (partmap.lst): New target rule.
33680 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
33681 modules (including all partition maps), instead of preloading them.
33682
33683 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
33684
33685 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
33686 `linux-boot-prober' (if installed) to detect other operating
33687 systems which are installed on the computer and add them to
33688 the boot menu.
33689 * conf/common.rmk: Build and install 30_os-prober.
33690
33691 2008-04-12 Robert Millan <rmh@aybabtu.com>
33692
33693 * kern/powerpc/ieee1275/init.c: Move from here ...
33694 * kern/ieee1275/init.c: ... to here. Update all users.
33695
33696 * kern/powerpc/ieee1275/cmain.c: Move from here ...
33697 * kern/ieee1275/cmain.c: ... to here. Update all users.
33698
33699 * kern/powerpc/ieee1275/openfw.c: Move from here ...
33700 * kern/ieee1275/openfw.c: ... to here. Update all users.
33701
33702 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
33703 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
33704
33705 2008-04-10 Pavel Roskin <proski@gnu.org>
33706
33707 * configure.ac: Always use "_cv_" in cache variables for
33708 compatibility with Autoconf 2.62.
33709
33710 2008-04-07 Robert Millan <rmh@aybabtu.com>
33711
33712 Revert grub/machine/init.h addition by Pavel (since it breaks on
33713 i386-ieee1275 and others):
33714 * util/i386/pc/misc.c: Remove grub/machine/init.h.
33715 * util/powerpc/ieee1275/misc.c: Likewise.
33716
33717 2008-04-07 Robert Millan <rmh@aybabtu.com>
33718
33719 * util/grub-probe.c (probe): Improve error message.
33720
33721 2008-04-07 Robert Millan <rmh@aybabtu.com>
33722
33723 * util/biosdisk.c (read_device_map): Skip devices that don't exist
33724 (this prevents the presence of a bogus entry from ruining the whole
33725 thing).
33726
33727 2008-04-06 Pavel Roskin <proski@gnu.org>
33728
33729 * util/biosdisk.c: Include grub/util/biosdisk.h.
33730 * util/grub-fstest.c (execute_command): Make static.
33731 * util/grub-mkdevicemap.c (check_device): Likewise.
33732 * util/i386/pc/misc.c: Include grub/machine/init.h.
33733 * util/powerpc/ieee1275/misc.c: Likewise.
33734 * util/lvm.c: Include grub/util/lvm.h.
33735 * util/misc.c: Include grub/kernel.h, grub/misc.h and
33736 grub/cache.h.
33737 * util/raid.c: Include grub/util/raid.h.
33738 (grub_util_getdiskname): Make static.
33739
33740 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
33741 grub_hostfs_fini(), as they are called from grub_init_all() and
33742 grub_fini_all() respectively. This fixes an infinite loop in
33743 grub-fstest due to double registration of hostfs.
33744 Reported by Christian Franke <Christian.Franke@t-online.de>
33745
33746 2008-04-05 Pavel Roskin <proski@gnu.org>
33747
33748 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
33749 all 8 functions. Otherwise, probe function 0 only.
33750
33751 2008-04-04 Pavel Roskin <proski@gnu.org>
33752
33753 * commands/lspci.c (grub_lspci_iter): Print the bus number
33754 correctly.
33755
33756 * commands/lspci.c (grub_pci_classes): Fix typos.
33757 (grub_lspci_iter): Don't print func twice. Print vendor ID
33758 before device ID, as it's normally done.
33759
33760 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
33761 Fix signedness warnings.
33762 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
33763 Likewise.
33764 * util/ieee1275/get_disk_name.c: Include config.h so that
33765 _GNU_SOURCE is defined and getline() is declared. Mark an
33766 unused argument as such. Fix a signedness warning.
33767
33768 2008-04-02 Pavel Roskin <proski@gnu.org>
33769
33770 * genkernsyms.sh.in: Use more robust assignments for CC and
33771 srcdir. Quote srcdir.
33772 * gensymlist.sh.in: Likewise. Assert at the compile time that
33773 the symbol table is not empty.
33774
33775 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
33776 * fs/cpio.c (grub_cpio_read): Likewise.
33777
33778 2008-04-01 Pavel Roskin <proski@gnu.org>
33779
33780 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
33781 * disk/host.c (grub_host_open): Likewise.
33782 * disk/loopback.c (grub_loopback_open): Likewise.
33783 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
33784 disk->id as in disk/host.c, not a multi-character constant.
33785
33786 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
33787 later is obsolete, potentially dangerous and sets a bad example.
33788 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
33789 * util/misc.c (grub_util_get_image_size): Likewise.
33790
33791 * disk/loopback.c (options): Improve help for "--partitions".
33792
33793 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
33794 options to align them with the short options, e.g. "echo -e".
33795
33796 2008-03-31 Bean <bean123ch@gmail.com>
33797
33798 * video/reader/png.c (grub_png_data): New member is_16bit and
33799 image_data.
33800 (grub_png_decode_image_header): Detect 16 bit png image.
33801 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
33802 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
33803 (grub_video_reader_png): Release memory occupied by image_data.
33804
33805 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
33806 4096 bytes.
33807 (grub_nfs_mount): Skip the test for sector per cluster.
33808
33809 * include/grub/ntfs.h (MAX_SPC): Removed.
33810
33811 2008-03-31 Bean <bean123ch@gmail.com>
33812
33813 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
33814 (grub_probe_SOURCES): Add fs/afs.c.
33815 (grub_fstest_SOURCES): Likewise.
33816 (afs_mod_SOURCES): New variable.
33817 (afs_mod_CFLAGS): Likewise.
33818 (afs_mod_LDFLAGS): Likewise.
33819
33820 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
33821 (grub_emu_SOURCES): Likewise.
33822
33823 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33824
33825 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33826
33827 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33828
33829 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33830
33831 * fs/afs.c: New file.
33832
33833 2008-03-30 Pavel Roskin <proski@gnu.org>
33834
33835 * disk/host.c: Include grub/misc.h to fix a warning.
33836 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
33837 warnings about implicit declarations.
33838
33839 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
33840 variable.
33841 * include/grub/i386/loader.h: Change declaration of
33842 grub_linux_boot() to match what grub_loader_set() expects.
33843 * util/getroot.c (grub_guess_root_device): Return const char* to
33844 fix a warning.
33845 * util/grub-probe.c (probe): Fix a warning about uninitialized
33846 abstraction_name variable.
33847 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
33848 second argument as unused to fix a warning.
33849
33850 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
33851 missing grub_error() call.
33852
33853 * util/update-grub_lib.in: Define datarootdir, since Autoconf
33854 2.60 and newer uses it to define datadir.
33855
33856 * commands/sleep.c: Fix warning about implicit declaration.
33857 * disk/memdisk.c: Likewise.
33858 * loader/aout.c: Likewise.
33859 * loader/i386/bsd_normal.c: Likewise.
33860 * util/grub-probe.c: Likewise.
33861
33862 * commands/i386/cpuid.c (has_longmode): Make static.
33863 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
33864 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
33865
33866 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
33867 GDT. This is more robust, as %ds can change.
33868 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
33869 calling real_to_prot().
33870 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
33871
33872 2008-03-28 Pavel Roskin <proski@gnu.org>
33873
33874 * kern/i386/pc/startup.S: Assert that uncompressed functions
33875 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
33876 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
33877 code, as they push parts of the code (error handlers) beyond
33878 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
33879 code as correctness and size.
33880
33881 2008-03-28 Pavel Roskin <proski@gnu.org>
33882
33883 * kern/i386/pc/startup.S
33884 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
33885 data block address to the real mode, keep offset minimal. This
33886 works around a bug in AWARD BIOS on old Athlon systems, which
33887 makes CD detection hang.
33888
33889 2008-03-26 Pavel Roskin <proski@gnu.org>
33890
33891 * normal/color.c (grub_parse_color_name_pair): Make `name' a
33892 const.
33893 * include/grub/normal.h: Add grub_parse_color_name_pair()
33894 declaration.
33895
33896 2008-03-24 Bean <bean123ch@gmail.com>
33897
33898 * disk/i386/pc/biosdisk.c (cd_start): Removed.
33899 (cd_count): Removed.
33900 (cd_drive): New variable.
33901 (grub_biosdisk_get_drive): Don't check for (cdN) device.
33902 (grub_biosdisk_call_hook): Likewise.
33903 (grub_biosdisk_iterate): Change cdrom detection method.
33904 (grub_biosdisk_open): Replace cd_start with cd_drive.
33905 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
33906 detect cdrom device.
33907
33908 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
33909 Removed.
33910 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
33911 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
33912 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
33913 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
33914 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
33915 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
33916 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
33917 (grub_biosdisk_cdrp): New structure.
33918 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
33919
33920 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
33921
33922 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
33923 device.
33924
33925 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
33926 New function.
33927
33928 2008-03-20 Robert Millan <rmh@aybabtu.com>
33929
33930 Remove 2 TiB limit in ata.mod.
33931 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
33932 (grub_ata_dumpinfo): Print sector count with 0x%llx.
33933 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
33934 grub_uint64_t instead of grub_uint32_t.
33935
33936 2008-03-05 Bean <bean123ch@gmail.com>
33937
33938 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
33939 (grub_multiboot): Set boot device.
33940
33941 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
33942
33943 2008-03-02 Bean <bean123ch@gmail.com>
33944
33945 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
33946 symlink_buffer.
33947
33948 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
33949
33950 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
33951 texinfo.tex.
33952
33953 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
33954 modified.
33955
33956 * docs/fdl.texi: New file.
33957
33958 * docs/mdate-sh: New file. Copied from gnulib.
33959 * docs/texinfo.tex: Likewise.
33960
33961 * config.guess: Updated from gnulib.
33962 * install-sh: Likewise.
33963
33964 2008-02-28 Robert Millan <rmh@aybabtu.com>
33965
33966 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
33967 (aout_mod_SOURCES): New variable.
33968 (aout_mod_CFLAGS): Likewise.
33969 (aout_mod_LDFLAGS): Likewise.
33970
33971 * conf/i386-ieee1275.rmk: Likewise.
33972
33973 2008-02-28 Robert Millan <rmh@aybabtu.com>
33974
33975 * util/update-grub.in: Reorganise terminal validity check. Accept
33976 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
33977 Based on suggestion by Franklin PIAT.
33978
33979 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
33980
33981 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
33982 function.
33983 * util/getroot.c (grub_util_check_block_device): New function that
33984 returns the given argument if it is a block device and returns NULL else.
33985 * util/grub-probe.c (argument_is_device): New variable.
33986 (probe): Promote device_name from a variable to an argument. Receive
33987 device_name from grub_util_check_block_device() if path is NULL and from
33988 grub_guess_root_device() else. Do not free() device_name anymore.
33989 (options): Introduce new parameter '-d, --device'.
33990 (main): Add description of the new parameter to the help screen.
33991 Rename path variable to argument. Set argument_is_device if the '-d'
33992 option is given. Pass argument to probe() depending on
33993 argument_is_device.
33994
33995 2008-02-24 Bean <bean123ch@gmail.com>
33996
33997 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
33998 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
33999 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
34000 (GRUB_ISO9660_VOLDESC_PART): Likewise.
34001 (GRUB_ISO9660_VOLDESC_END): Likewise.
34002 (grub_iso9660_primary_voldesc): New member escape.
34003 (grub_iso9660_data): New member joliet.
34004 (grub_iso9660_convert_string): New function.
34005 (grub_iso9660_mount): Detect joliet extension.
34006 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
34007 (grub_iso9660_iso9660_label): Likewise.
34008
34009 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
34010 (grub_setup_SOURCES): Add fs/udf.c.
34011 (grub_fstest_SOURCES): Likewise.
34012 (udf_mod_SOURCES): New variable.
34013 (udf_mod_CFLAGS): Likewise.
34014 (udf_mod_LDFLAGS): Likewise.
34015
34016 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
34017 (grub_emu_SOURCES): Likewise.
34018
34019 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34020
34021 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34022
34023 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34024
34025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34026
34027 * fs/udf.c: New file.
34028
34029 2008-02-24 Robert Millan <rmh@aybabtu.com>
34030
34031 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
34032 (normal/lexer.c_DEPENDENCIES): New variables.
34033 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
34034 (normal/lexer.c_DEPENDENCIES): Likewise.
34035 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
34036 (normal/lexer.c_DEPENDENCIES): Likewise.
34037 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
34038 (normal/lexer.c_DEPENDENCIES): Likewise.
34039 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
34040 (normal/lexer.c_DEPENDENCIES): Likewise.
34041 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
34042 (normal/lexer.c_DEPENDENCIES): Likewise.
34043
34044 2008-02-23 Robert Millan <rmh@aybabtu.com>
34045
34046 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
34047 since they were intended to be in hex. This didn't break previously
34048 because of a bug in gpt_partition_map_iterate() (see below).
34049
34050 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
34051 when checking the validity of GPT header.
34052 Remove `partno', since it always provides the same information as `i'.
34053
34054 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
34055
34056 * include/grub/efi/time.h: Fix a wrong comment.
34057
34058 2008-02-19 Pavel Roskin <proski@gnu.org>
34059
34060 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
34061 message.
34062
34063 2008-02-19 Bean <bean123ch@gmail.com>
34064
34065 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
34066 (aout_mod_SOURCES): New variable.
34067 (aout_mod_CFLAGS): Likewise.
34068 (aout_mod_LDFLAGS): Likewise.
34069 (_bsd_mod_SOURCES): New variable.
34070 (_bsd_mod_CFLAGS): Likewise.
34071 (_bsd_mod_LDFLAGS): Likewise.
34072 (bsd_mod_SOURCES): New variable.
34073 (bsd_mod_CFLAGS): Likewise.
34074 (bsd_mod_LDFLAGS): Likewise.
34075
34076 * include/grub/aout.h: New file.
34077
34078 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
34079
34080 * include/grub/i386/bsd.h: New file.
34081
34082 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
34083 to make it public.
34084
34085 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
34086 function is called, so that it's possible to change it inside the hook.
34087 (grub_elf64_load): Likewise.
34088 (grub_elf_file): Don't close the file if elf header is not found.
34089 (grub_elf_close): Close the file if grub_elf_file fails (The new
34090 grub_elf_file won't close it).
34091 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
34092 (grub_elf64_size): Likewise.
34093
34094 * kern/i386/loader.S (grub_unix_real_boot): New function.
34095
34096 * loader/aout.c: New file.
34097
34098 * loader/i386/bsd.c: New file.
34099
34100 * loader/i386/bsd_normal.c: New file.
34101
34102 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
34103
34104 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
34105 can test other formats.
34106
34107 2008-02-19 Robert Millan <rmh@aybabtu.com>
34108
34109 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
34110 (grub_gpt_partition_type_empty): Redefine with macro from
34111 `<grub/gpt_partition.h>'.
34112 (gpt_partition_map_iterate): Adjust partition type comparison.
34113
34114 Export `entry' as partmap-specific `part.data' struct.
34115 (grub_gpt_header, grub_gpt_partentry): Move from here ...
34116
34117 * include/grub/gpt_partition.h (grub_gpt_header)
34118 (grub_gpt_partentry): ... to here (new file).
34119
34120 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
34121
34122 (grub_gpt_partition_type_bios_boot): New const variable, defined
34123 with macro from `<grub/gpt_partition.h>'.
34124
34125 (setup): Replace `first_start' with `embed_region', which keeps
34126 track of the embed region (and is partmap-agnostic).
34127
34128 Replace find_first_partition_start() with find_usable_region(),
34129 which finds a usable region for embedding using partmap-specific
34130 knowledge (supports PC/MSDOS and GPT).
34131
34132 Fix all assumptions that the embed region start at sector 1, using
34133 `embed_region.start' from now on. Similarly, use `embed_region.end'
34134 rather than `first_start' to calculate available size.
34135
34136 In grub_util_info() message, replace "into after the MBR" with an
34137 indication of the specific sector our embed region starts at.
34138
34139 2008-02-19 Robert Millan <rmh@aybabtu.com>
34140
34141 * DISTLIST: Replace `commands/ieee1275/halt.c' and
34142 `commands/ieee1275/reboot.c' with `commands/halt.c' and
34143 `commands/reboot.c'.
34144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
34145 (halt_mod_SOURCES): Likewise.
34146 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
34147 (halt_mod_SOURCES): Likewise.
34148
34149 2008-02-17 Christian Franke <franke@computer.org>
34150
34151 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
34152
34153 2008-02-17 Robert Millan <rmh@aybabtu.com>
34154
34155 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
34156 set `first_start' to 0 for non-PC/MSDOS partition maps.
34157
34158 2008-02-16 Robert Millan <rmh@aybabtu.com>
34159
34160 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
34161 do not assume partition map is PC/MSDOS before performing checks that
34162 are specific to that layout.
34163
34164 2008-02-13 Robert Millan <rmh@aybabtu.com>
34165
34166 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
34167 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
34168 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
34169
34170 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
34171
34172 * configure.ac: Only a cosmetic change on the handling of
34173 -fno-stack-protector.
34174
34175 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
34176
34177 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
34178 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
34179 reboot.c.
34180 (grub_install_SOURCES): Add halt.mod and reboot.mod.
34181 (halt_mod_SOURCES): New variable.
34182 (halt_mod_CFLAGS): Likewise.
34183 (halt_mod_LDFLAGS): Likewise.
34184 (reboot_mod_SOURCES): Likewise.
34185 (reboot_mod_CFLAGS): Likewise.
34186 (reboot_mod_LDFLAGS): Likewise.
34187
34188 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
34189 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
34190 reboot.c.
34191 (halt_mod_SOURCES): Likewise.
34192 (reboot_mod_SOURCES): Likewise.
34193
34194 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
34195 commands/i386/pc/reboot.c by commands/reboot.c.
34196 (reboot_mod_SOURCES): Likewise.
34197
34198 * commands/i386/pc/reboot.c: merge this file ...
34199
34200 * commands/ieee1275/reboot.c: ... and this file ...
34201
34202 * commands/reboot.c: ... to this file.
34203 Add some precompiler directive to include the correct header for
34204 each machine.
34205
34206 * commands/ieee1275/halt.c: move this file ...
34207
34208 * commands/halt.c: ... to here.
34209 Add some precompiler directive to include the correct header for
34210 each machine.
34211
34212 * include/grub/efi/efi.h (grub_reboot): New function declaration.
34213 (grub_halt): Likewise.
34214
34215 * kern/efi/efi.c (grub_reboot): New function.
34216 (grub_halt): Likewise.
34217
34218 2008-02-12 Robert Millan <rmh@aybabtu.com>
34219
34220 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
34221 /dev (like it is done for /dev/mapper). This doesn't provide support
34222 for EVMS, but at least it is now easy to identify the problem when it
34223 arises.
34224
34225 2008-02-11 Robert Millan <rmh@aybabtu.com>
34226
34227 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
34228 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
34229 comparing it with -1, not 0.
34230
34231 2008-02-10 Robert Millan <rmh@aybabtu.com>
34232
34233 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
34234 `disk/lvm.c'.
34235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34236 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
34237
34238 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
34239 `disk/lvm.c' to the end of the list.
34240 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34241 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34242
34243 2008-02-10 Robert Millan <rmh@aybabtu.com>
34244
34245 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
34246 grub_print_error() instead. This will let user know why we're entering
34247 rescue mode.
34248 Based on suggestions from Sam Morris.
34249
34250 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
34251
34252 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
34253 on remaining N args, instead of "--" arg N times.
34254
34255 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
34256
34257 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
34258 (fill_with_default_glyph): Changed to use unknown_glyph for fill
34259 pattern for unknown glyphs.
34260
34261 2008-02-09 Robert Millan <rmh@aybabtu.com>
34262
34263 * configure.ac: Probe for `help2man'.
34264 * Makefile.in (builddir): New variable.
34265 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
34266 or otherwise add a few flags/options to it.
34267 (install-local): For every executable utility or script that is
34268 installed, invoke $(HELP2MAN) to install a manpage based on --help
34269 output.
34270
34271 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
34272 that it doesn't prevent --help from working in build tree.
34273
34274 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
34275 with `bug-grub@gnu.org'.
34276 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
34277 * util/update-grub.in (usage): New function.
34278 Implement proper argument check, with support for --help and --version
34279 (as well as existing -y).
34280
34281 2008-02-09 Christian Franke <franke@computer.org>
34282
34283 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
34284 avoid overwriting previous output.
34285 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
34286
34287 2008-02-09 Robert Millan <rmh@aybabtu.com>
34288
34289 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
34290 drawing the menu.
34291
34292 2008-02-09 Robert Millan <rmh@aybabtu.com>
34293
34294 * commands/sleep.c: New file.
34295 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
34296 (sleep_mod_SOURCES): New variable.
34297 (sleep_mod_CFLAGS): Likewise.
34298 (sleep_mod_LDFLAGS): Likewise.
34299
34300 2008-02-09 Robert Millan <rmh@aybabtu.com>
34301
34302 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
34303 situations in which we can deduce the RAID size and the superblock
34304 doesn't match it.
34305
34306 2008-02-09 Robert Millan <rmh@aybabtu.com>
34307
34308 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
34309 and return a grub_diskmemberlist_t composed of LVM physical volumes.
34310 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
34311
34312 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
34313 and return a grub_diskmemberlist_t composed of physical array members.
34314 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
34315
34316 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
34317 prototype.
34318 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
34319 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
34320 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
34321
34322 * util/grub-probe.c (probe): Move partmap probing code from here ...
34323 (probe_partmap): ... to here.
34324 (probe): Use probe_partmap() once for the disk we're probing, and
34325 additionally, when such disk contains a memberlist() struct member,
34326 once for each disk that is contained in the structure returned by
34327 memberlist().
34328
34329 2008-02-09 Robert Millan <rmh@aybabtu.com>
34330
34331 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
34332 environment variable to 'all' in order to obtain debug output from
34333 non-util/ code.
34334 * util/i386/pc/grub-setup.c (main): Likewise.
34335
34336 2008-02-08 Robert Millan <rmh@aybabtu.com>
34337
34338 * disk/raid.c (grub_raid_scan_device): Check for
34339 `array->device[sb.this_disk.number]' rather than for
34340 `array->device[sb.this_disk.number]->name', since the latter is not
34341 guaranteed to be accessible.
34342
34343 2008-02-08 Robert Millan <rmh@aybabtu.com>
34344
34345 * disk/raid.c: Update copyright.
34346 * fs/cpio.c: Likewise.
34347 * include/grub/raid.h: Likewise.
34348 * loader/i386/pc/multiboot.c: Likewise.
34349 * util/hostfs.c: Likewise.
34350
34351 2008-02-08 Robert Millan <rmh@aybabtu.com>
34352
34353 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
34354 to a grub_disk_t array.
34355 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
34356 `device[x]'.
34357 (grub_raid_scan_device): Replace `device[x].name' accesses with
34358 `device[x]->name'. Simplify initialization of `array->device[x]'.
34359
34360 2008-02-08 Robert Millan <rmh@aybabtu.com>
34361
34362 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
34363 grub_dprintf() calls.
34364 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
34365 error message.
34366
34367 2008-02-07 Christian Franke <franke@computer.org>
34368
34369 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
34370 instead of fseek and ftell to support large files.
34371 (grub_hostfs_read): Likewise.
34372
34373 2008-02-07 Robert Millan <rmh@aybabtu.com>
34374
34375 Patch from Jeroen Dekkers.
34376 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
34377 failure, since successfully reading all array members might not be
34378 required.
34379
34380 2008-02-06 Robert Millan <rmh@aybabtu.com>
34381
34382 * util/grub-probe.c (probe): Simplify partmap probing (with the
34383 assumption that the first word up to the underscore equals to
34384 the module name).
34385
34386 2008-02-06 Christian Franke <franke@computer.org>
34387
34388 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
34389 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
34390 last block of a cpio or tar stream.
34391 Check for "TRAILER!!!" instead of any empty data
34392 block to detect last block of a cpio stream.
34393 (grub_cpio_dir): Fix constness of variable np.
34394 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
34395 cpio or tar trailer is detected. This fixes a crash
34396 on open of a non existing file.
34397
34398 2008-02-05 Bean <bean123ch@gmail.com>
34399
34400 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
34401 address of entry.
34402 (grub_multiboot_load_elf64): Likewise.
34403 (grub_multiboot): Initialize mbi structure.
34404
34405 * util/grub-fstest.c: Don't include unused header file script.h.
34406
34407 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
34408 of file.
34409 (grub_fstest_SOURCES): Likewise.
34410
34411 2008-02-05 Robert Millan <rmh@aybabtu.com>
34412
34413 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
34414 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
34415 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
34416 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
34417
34418 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
34419 (translation_table): Replace hardcoded values with macros
34420 provided by `<grub/term.h>'.
34421
34422 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
34423 (keyboard_map): Correct/add a few values, with macros provided
34424 by `<grub/term.h>'.
34425 (keyboard_map_shift): Zero values that don't differ from their
34426 `keyboard_map' equivalents.
34427 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
34428 Discard the second scan code that is always sent by Caps lock.
34429 Only use `keyboard_map_shift' when it provides a non-zero value,
34430 otherwise fallback to `keyboard_map'.
34431
34432 2008-02-04 Bean <bean123ch@gmail.com>
34433
34434 * Makefile.in (enable_grub_fstest): New variable.
34435
34436 * conf/common.rmk (grub_fstest_init.lst): New rule.
34437 (grub_fstest_init.h): Likewise.
34438 (grub_fstest_init.c): Likewise.
34439 (util/grub-fstest.c_DEPENDENCIES): New variable.
34440 (grub_fstest_SOURCES): Likewise.
34441
34442 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
34443
34444 * util/grub-fstest.c: New file.
34445
34446 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
34447
34448 Make grub-setup handle a separate root device.
34449
34450 * util/i386/pc/grub-setup.c (setup): Always open the root device,
34451 so that the root device can be compared with the destination
34452 device.
34453 When embedding the core image, if the root and destination devices
34454 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
34455 0xFF.
34456 When not embedding, set ROOT_DRIVE to 0xFF.
34457
34458 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
34459
34460 Add support for having a grub directory in a different drive. This
34461 is still only the data handling part.
34462
34463 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
34464 (codestart): Save %dh in GRUB_ROOT_DRIVE.
34465 (grub_root_drive): New variable.
34466
34467 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
34468 instead of GRUB_BOOT_DRIVE to construct a device name. Set
34469 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
34470 as it was.
34471
34472 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
34473
34474 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
34475 macro.
34476 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
34477
34478 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
34479 is bogus, because PXE booting does not specify any drive
34480 correctly.
34481
34482 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
34483 am not sure if this is really correct.
34484
34485 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
34486 is always identical to the boot drive when booting from a CD.
34487
34488 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
34489 longer.
34490 (root_drive): New variable.
34491 (real_start): Unconditionally set %dh to ROOT_DRIVE.
34492 (setup_sectors): Push %dx right after popping it, because %dh will
34493 be modified later.
34494 (copy_buffer): Restore %dx.
34495
34496 2008-02-03 Robert Millan <rmh@aybabtu.com>
34497
34498 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
34499 use `cdboot.img' for cdrom images.
34500
34501 2008-02-03 Robert Millan <rmh@aybabtu.com>
34502
34503 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
34504 only setup gfxterm when `font' command has succeeded.
34505
34506 2008-02-03 Robert Millan <rmh@aybabtu.com>
34507
34508 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
34509 (grub_rescue_cmd_multiboot_loader)
34510 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
34511
34512 2008-02-03 Pavel Roskin <proski@gnu.org>
34513
34514 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
34515 %edx and %esi from stack only after grub_gate_a20() is called.
34516 grub_gate_a20() clobbers %edx.
34517
34518 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
34519
34520 * configure.ac (AC_INIT): Bumped to 1.96.
34521
34522 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
34523 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
34524 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
34525 video/readers/png.c.
34526
34527 2008-02-03 Bean <bean123ch@gmail.com>
34528
34529 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
34530 (cdboot_img_SOURCES): New variable.
34531 (cdboot_img_ASFLAGS): New variable.
34532 (cdboot_img_LDFLAGS): New variable.
34533
34534 * boot/i386/pc/cdboot.S: New file.
34535
34536 * disk/i386/pc/biosdisk.c (cd_start): New variable.
34537 (cd_count): Likewise.
34538 (grub_biosdisk_get_drive): Add support for cd device.
34539 (grub_biosdisk_call_hook): Likewise.
34540 (grub_biosdisk_iterate): Likewise.
34541 (grub_biosdisk_open): Likewise.
34542 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
34543 (grub_biosdisk_rw): Support reading from cd device.
34544 (GRUB_MOD_INIT): Iterate cd devices.
34545
34546 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
34547 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
34548 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
34549
34550 * kern/i386/pc/init.c (make_install_device): Check for cd device.
34551
34552 2008-02-02 Robert Millan <rmh@aybabtu.com>
34553
34554 * commands/read.c: New file.
34555 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
34556 (read_mod_SOURCES): New variable.
34557 (read_mod_CFLAGS): Likewise.
34558 (read_mod_LDFLAGS): Likewise.
34559
34560 2008-02-02 Robert Millan <rmh@aybabtu.com>
34561
34562 * normal/main.c (grub_normal_execute): Check for `menu->size' when
34563 determining whether menu has to be displayed.
34564
34565 2008-02-02 Marco Gerards <marco@gnu.org>
34566
34567 * bus/pci.c: New file.
34568
34569 * include/grub/pci.h: Likewise.
34570
34571 * include/grub/i386/pc/pci.h: Likewise.
34572
34573 * commands/lspci.c: Likewise.
34574
34575 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
34576 `lspci.mod'.
34577 (pci_mod_SOURCES): New variable.
34578 (pci_mod_CFLAGS): Likewise.
34579 (pci_mod_LDFLAGS): Likewise.
34580 (lspci_mod_SOURCES): Likewise.
34581 (lspci_mod_CFLAGS): Likewise.
34582 (lspci_mod_LDFLAGS): Likewise.
34583
34584 2008-02-02 Bean <bean123ch@gmail.com>
34585
34586 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
34587 (grub_ufs_get_file_block): Fix indirect block calculation problem.
34588
34589 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
34590 (grub_xfs_btree_node): New structure.
34591 (grub_xfs_btree_root): New structure.
34592 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
34593 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
34594 (GRUB_XFS_EXTENT_BLOCK): Likewise.
34595 (GRUB_XFS_EXTENT_SIZE): Likewise.
34596 (grub_xfs_read_block): Support btree format type.
34597 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
34598 Use directory block as basic unit.
34599
34600 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
34601
34602 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
34603 __attribute__ ((__regparm__ (1))).
34604
34605 2008-02-01 Robert Millan <rmh@aybabtu.com>
34606
34607 Correct a mistake in previous commit.
34608
34609 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
34610 top.
34611 (normal/command.c_DEPENDENCIES): New variable.
34612
34613 2008-02-01 Robert Millan <rmh@aybabtu.com>
34614
34615 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
34616 top.
34617 (normal/command.c_DEPENDENCIES): New variable.
34618 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
34619 * conf/i386-ieee1275.rmk: Likewise.
34620 * conf/i386-linuxbios.rmk: Likewise.
34621 * conf/i386-pc.rmk: Likewise.
34622 * conf/sparc64-ieee1275.rmk: Likewise.
34623 * conf/powerpc-ieee1275.rmk: Likewise.
34624 (grub_emu_SOURCES): Add `fs/fshelp.c'.
34625
34626 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
34627
34628 2008-02-01 Robert Millan <rmh@aybabtu.com>
34629
34630 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
34631 call at beginning of function.
34632
34633 2008-01-31 Pavel Roskin <proski@gnu.org>
34634
34635 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
34636 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
34637 (grub_mkrescue_SOURCES): Likewise.
34638 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
34639
34640 2008-01-30 Robert Millan <rmh@aybabtu.com>
34641
34642 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
34643 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
34644 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
34645 (grub_probe_SOURCES): ... to here.
34646
34647 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
34648 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
34649 * conf/i386-ieee1275.rmk: Likewise.
34650 * conf/i386-linuxbios.rmk: Likewise.
34651 * conf/powerpc-ieee1275.rmk: Likewise.
34652
34653 2008-01-30 Tristan Gingold <gingold@free.fr>
34654
34655 * kern/rescue.c: Silently accept empty lines.
34656
34657 2008-01-29 Bean <bean123ch@gmail.com>
34658
34659 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
34660 (real_code_2): Code cleanup and change comment style.
34661 (move_memory): Avoid using 32-bit address mode.
34662
34663 2008-01-29 Bean <bean123ch@gmail.com>
34664
34665 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
34666 (png_mod_SOURCES): New variable.
34667 (png_mod_CFLAGS): Likewise.
34668 (png_mod_LDFLAGS): Likewise.
34669
34670 * video/readers/png.c: New file.
34671
34672 2008-01-28 Robert Millan <rmh@aybabtu.com>
34673
34674 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
34675 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
34676 `ifndef GRUB_MOD_GAP' hack.
34677 * util/elf/grub-mkimage.c (add_segments): Likewise.
34678
34679 2008-01-27 Robert Millan <rmh@aybabtu.com>
34680
34681 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
34682 `GRUB_MOD_GAP' for platforms in which it's not defined.
34683 * util/elf/grub-mkimage.c (add_segments): Likewise.
34684
34685 2008-01-27 Robert Millan <rmh@aybabtu.com>
34686
34687 Get grub-emu to build again (including parallel builds).
34688
34689 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
34690 Split into ...
34691 (util/grub-emu.c_DEPENDENCIES): ... this, ...
34692 (normal/execute.c_DEPENDENCIES): ... this, ...
34693 (grub-emu_DEPENDENCIES): ... and this.
34694
34695 * conf/i386-efi.rmk: Likewise.
34696 * conf/i386-linuxbios.rmk: Likewise.
34697 * conf/i386-ieee1275.rmk: Likewise.
34698 * conf/powerpc-ieee1275.rmk: Likewise.
34699 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
34700
34701 2008-01-27 Robert Millan <rmh@aybabtu.com>
34702
34703 * NEWS: Add a few items.
34704
34705 2008-01-27 Robert Millan <rmh@aybabtu.com>
34706
34707 Fix parallel builds with grub-emu. Based on earlier commit for
34708 grub-probe and grub-setup.
34709
34710 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34711 (util/grub-emu.c_DEPENDENCIES): ... this.
34712 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34713 (util/grub-emu.c_DEPENDENCIES): ... this.
34714 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34715 (util/grub-emu.c_DEPENDENCIES): ... this.
34716 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34717 (util/grub-emu.c_DEPENDENCIES): ... this.
34718 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34719 (util/grub-emu.c_DEPENDENCIES): ... this.
34720
34721 2008-01-27 Pavel Roskin <proski@gnu.org>
34722
34723 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
34724 to create a gap between _end and the modules added to the image
34725 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
34726 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
34727 * util/elf/grub-mkimage.c (add_segments): Likewise.
34728
34729 2008-01-26 Pavel Roskin <proski@gnu.org>
34730
34731 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
34732 just return an error.
34733
34734 2008-01-26 Bean <bean123ch@gmail.com>
34735
34736 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
34737 (grub_reiserfs_get_item): Save offset of the next item.
34738 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
34739
34740 2008-01-25 Robert Millan <rmh@aybabtu.com>
34741
34742 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
34743 make all filesystem sources appear together (possibly fixing omissions
34744 while at it).
34745 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34746 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34747 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34749
34750 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
34751 add `kern/file.c'.
34752 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
34753 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
34754 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
34755 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
34756
34757 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
34758 (probe): Add a sanity check to make sure of our ability to read
34759 requested files when probing for filesystem type.
34760
34761 * genmk.rb: Update copyright year (2007).
34762
34763 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
34764 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
34765 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
34766 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
34767 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
34768 : Remove function prototypes.
34769
34770 2008-01-25 Robert Millan <rmh@aybabtu.com>
34771
34772 Revert my previous commits (based on wrong assumption of how grub_errno
34773 works).
34774
34775 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
34776 * kern/file.c (grub_file_open): Likewise.
34777
34778 2008-01-24 Pavel Roskin <proski@gnu.org>
34779
34780 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
34781 that hang if GRUB tries to setup colors.
34782 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
34783 colors for firmwares that don't support it.
34784 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
34785 Recognize Open Hack'Ware, set flags to work around its
34786 limitations.
34787
34788 2008-01-24 Robert Millan <rmh@aybabtu.com>
34789
34790 * kern/file.c (grub_file_open): Do not account previous failures of
34791 unrelated functions when grub_errno is checked for.
34792 Reported by Oleg Strikov.
34793
34794 2008-01-24 Bean <bean123ch@gmail.com>
34795
34796 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
34797 (grub_ufs_sblock): New member volume name.
34798 (grub_ufs_find_file): Fix string copy bug.
34799 (grub_ufs_label): Implement this function properly.
34800
34801 * fs/hfs.c (grub_hfs_cnid_type): New enum.
34802 (grub_hfs_iterate_records): Use the correct file number for extents
34803 and catalog file. Fix problem in next index calculation.
34804 (grub_hfs_find_node): Replace recursive function call with loop.
34805 (grub_hfs_iterate_dir): Replace recursive function call with loop.
34806
34807 2008-01-23 Robert Millan <rmh@aybabtu.com>
34808
34809 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
34810 `<grub/symbol.h>' and `<grub/multiboot.h>'.
34811 (grub_multiboot2_real_boot): New function prototype.
34812
34813 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
34814 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
34815
34816 * kern/i386/ieee1275/init.c (grub_os_area_addr)
34817 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
34818
34819 2008-01-23 Robert Millan <rmh@aybabtu.com>
34820
34821 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
34822 #ifdef'ed out grub_printf().
34823
34824 2008-01-23 Robert Millan <rmh@aybabtu.com>
34825
34826 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
34827 grub_dprintf calls, since they make "debug=all" mode unusable.
34828 (grub_console_checkkey): Likewise.
34829
34830 2008-01-23 Robert Millan <rmh@aybabtu.com>
34831
34832 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34833 `term/i386/pc/at_keyboard.c'.
34834 (pkglib_MODULES): Add `serial.mod'.
34835 (serial_mod_SOURCES): New variable.
34836 (serial_mod_CFLAGS): Likewise.
34837 (serial_mod_LDFLAGS): Likewise.
34838
34839 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
34840 `<grub/powerpc/ieee1275/console.h>'.
34841 (grub_keyboard_controller_init): New function prototype.
34842 (grub_console_checkkey): Likewise.
34843 (grub_console_getkey): Likewise.
34844
34845 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
34846 keyboard on i386.
34847
34848 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
34849 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
34850
34851 2008-01-23 Robert Millan <rmh@aybabtu.com>
34852
34853 * kern/i386/pc/init.c (make_install_device): When memdisk image is
34854 present, "(memdisk)/boot/grub" becomes the default prefix.
34855
34856 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
34857 a memdisk tarball with all the modules. Add --overlay=DIR option that
34858 allows users to overlay additional files into the image.
34859
34860 2008-01-23 Robert Millan <rmh@aybabtu.com>
34861
34862 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
34863 and `machine/memory.h'.
34864 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
34865 (_multiboot_mod_SOURCES): New variable.
34866 (_multiboot_mod_CFLAGS): Likewise.
34867 (_multiboot_mod_LDFLAGS): Likewise.
34868 (multiboot_mod_SOURCES): Likewise.
34869 (multiboot_mod_CFLAGS): Likewise.
34870 (multiboot_mod_LDFLAGS): Likewise.
34871
34872 * include/grub/i386/ieee1275/loader.h: New file.
34873
34874 * include/grub/i386/ieee1275/machine.h: Likewise.
34875
34876 * include/grub/i386/ieee1275/memory.h: Likewise.
34877
34878 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
34879 variable declaration.
34880 (grub_os_area_size): Likewise.
34881
34882 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
34883 (grub_lower_mem, grub_upper_mem): New variables.
34884 (grub_stop_floppy): New function (just to make
34885 grub_multiboot2_real_boot() happy).
34886
34887 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
34888 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
34889 (grub_stop): New function.
34890 Include `"../realmode.S"' and `"../loader.S"'.
34891
34892 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
34893 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
34894
34895 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
34896 rely on grub_multiboot2_real_boot() for final boot.
34897
34898 2008-01-22 Robert Millan <rmh@aybabtu.com>
34899
34900 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
34901 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
34902 device that doesn't look like an SD card.
34903 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
34904 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
34905 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
34906 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
34907 found.
34908
34909 2008-01-22 Robert Millan <rmh@aybabtu.com>
34910
34911 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
34912 avoid claiming over our own code.
34913
34914 2008-01-22 Bean <bean123ch@gmail.com>
34915
34916 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
34917 (jpeg_mod_SOURCES): New variable.
34918 (jpeg_mod_CFLAGS): Likewise.
34919 (jpeg_mod_LDFLAGS): Likewise.
34920
34921 * video/readers/jpeg.c : New file.
34922
34923 2008-01-22 Bean <bean123ch@gmail.com>
34924
34925 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
34926 there are no more items.
34927
34928 2008-01-21 Robert Millan <rmh@aybabtu.com>
34929
34930 * kern/mm.c (grub_mm_init_region): Improve debug message.
34931
34932 2008-01-21 Robert Millan <rmh@aybabtu.com>
34933
34934 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
34935 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
34936 address.
34937 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
34938 a C macro.
34939 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
34940 Indicates start of upper memory.
34941 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
34942 (generate_image): Abort when image size is big enough to corrupt
34943 upper memory.
34944
34945 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
34946 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
34947 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
34948 instead of hardcoding 0xA0000.
34949 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
34950 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
34951 instead of hardcoding 0xA0000.
34952
34953 2008-01-21 Robert Millan <rmh@aybabtu.com>
34954
34955 * disk/memdisk.c (memdisk_size): New variable.
34956 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
34957 `memdisk_size'.
34958 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
34959 image to dynamic memory.
34960 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
34961 `memdisk_size'. Free memdisk block.
34962
34963 2008-01-21 Robert Millan <rmh@aybabtu.com>
34964
34965 Fix detection of very small filesystems (like tar).
34966
34967 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
34968 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
34969 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
34970 a problem with this disk).
34971
34972 2008-01-21 Robert Millan <rmh@aybabtu.com>
34973
34974 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
34975 on grub_biosdisk_rw_standard() error.
34976
34977 2008-01-21 Robert Millan <rmh@aybabtu.com>
34978
34979 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
34980 recent changes.
34981 * kern/elf.c: Likewise.
34982 * kern/ieee1275/ieee1275.c: Likewise.
34983 * kern/powerpc/ieee1275/openfw.c: Likewise.
34984 * term/ieee1275/ofconsole.c: Likewise.
34985
34986 2008-01-21 Robert Millan <rmh@aybabtu.com>
34987
34988 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
34989
34990 * include/grub/kernel.h (grub_arch_memdisk_addr)
34991 (grub_arch_memdisk_size): Moved from here ...
34992
34993 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
34994 (grub_arch_memdisk_size): ... to here.
34995
34996 2008-01-21 Robert Millan <rmh@aybabtu.com>
34997
34998 Mostly based on bugfix from Bean.
34999
35000 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
35001 attribute with hook() parameter.
35002 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
35003 declaration.
35004 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
35005 attribute with hook() parameter.
35006 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
35007 declaration.
35008
35009 2008-01-21 Robert Millan <rmh@aybabtu.com>
35010
35011 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
35012 (pkglib_MODULES): Add `memdisk.mod'.
35013 (memdisk_mod_SOURCES): New variable.
35014 (memdisk_mod_CFLAGS): Likewise.
35015 (memdisk_mod_LDFLAGS): Likewise.
35016
35017 * disk/memdisk.c: New file.
35018
35019 * include/grub/disk.h (grub_disk_dev_id): Add
35020 `GRUB_DISK_DEVICE_MEMDISK_ID'.
35021
35022 * include/grub/i386/pc/kernel.h
35023 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
35024 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
35025 (grub_kernel_image_size): New variable declaration.
35026 (grub_total_module_size): Likewise.
35027 (grub_memdisk_image_size): Likewise.
35028
35029 * include/grub/i386/pc/memory.h
35030 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
35031
35032 * include/grub/kernel.h: Include `<grub/symbol.h>'.
35033 (grub_arch_memdisk_addr): New variable declaration.
35034 (grub_arch_memdisk_size): Likewise.
35035
35036 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
35037 (grub_arch_memdisk_size): Likewise.
35038
35039 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
35040 (codestart): Replace hardcoded `0x100000' with
35041 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
35042
35043 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
35044 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
35045 not NULL, append the contents of the file it refers to, at the end of
35046 the compressed kernel image. Initialize `grub_memdisk_image_size'
35047 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
35048 (options): Add "memdisk"|'m' option.
35049 (main): Parse --memdisk|-m option, and pass user-provided path as
35050 parameter to generate_image().
35051
35052 2008-01-20 Robert Millan <rmh@aybabtu.com>
35053
35054 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
35055 grub_dprintf() calls from here ...
35056 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
35057
35058 2008-01-20 Robert Millan <rmh@aybabtu.com>
35059
35060 Fix detection of "real mode" when /options/real-mode? doesn't exist.
35061
35062 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
35063 declaration.
35064 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
35065 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
35066 `GRUB_IEEE1275_FLAG_REAL_MODE'.
35067 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
35068 property).
35069 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
35070 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
35071
35072 2008-01-19 Robert Millan <rmh@aybabtu.com>
35073
35074 Get rid of confusing function (superseded by
35075 `grub_ieee1275_get_integer_property')
35076 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
35077 prototype.
35078 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
35079 function.
35080 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
35081 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
35082 in native endianness from grub_ieee1275_get_integer_property().
35083
35084 2008-01-19 Robert Millan <rmh@aybabtu.com>
35085
35086 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
35087 command after "shut-down", since implementations differ on which
35088 the command for halt is.
35089
35090 2008-01-19 Robert Millan <rmh@aybabtu.com>
35091
35092 * include/grub/i386/linuxbios/console.h: Add header protection.
35093 (grub_keyboard_controller_init): New function prototype.
35094 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
35095 (KEYBOARD_COMMAND_READ): Likewise.
35096 (KEYBOARD_COMMAND_WRITE): Likewise.
35097 (KEYBOARD_SCANCODE_SET1): Likewise.
35098 (grub_keyboard_controller_write): New function.
35099 (grub_keyboard_controller_read): Likewise.
35100 (grub_keyboard_controller_init): Likewise.
35101
35102 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
35103 (grub_console_init): On coreboot/LinuxBIOS, call
35104 grub_keyboard_controller_init().
35105
35106 2008-01-19 Robert Millan <rmh@aybabtu.com>
35107
35108 PowerPC changes provided by Pavel Roskin.
35109
35110 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
35111 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
35112 don't rely on cmain() doing it.
35113 * kern/i386/ieee1275/startup.S (_start): Store %eax in
35114 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
35115
35116 2008-01-16 Robert Millan <rmh@aybabtu.com>
35117
35118 * include/grub/i386/linuxbios/memory.h
35119 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
35120 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
35121 receive `table_header' as argument. Instead, probe for it in the
35122 known memory ranges where it can be present.
35123 (grub_available_iterate): Do not pass a fixed `table_header' address
35124 to grub_linuxbios_table_iterate().
35125
35126 2008-01-15 Robert Millan <rmh@aybabtu.com>
35127
35128 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
35129 * conf/i386-ieee1275.rmk: New file.
35130 * include/grub/i386/ieee1275/console.h: Likewise.
35131 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
35132 * include/grub/i386/ieee1275/kernel.h: Likewise.
35133 * include/grub/i386/ieee1275/time.h: Likewise.
35134 * kern/i386/ieee1275/init.c: Likewise.
35135 * kern/i386/ieee1275/startup.S: Likewise.
35136
35137 2008-01-15 Robert Millan <rmh@aybabtu.com>
35138
35139 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
35140 when pointers are 32-bit (but still do set it to one when they are
35141 64-bit).
35142
35143 2008-01-15 Robert Millan <rmh@aybabtu.com>
35144
35145 * include/grub/ieee1275/ieee1275.h
35146 (grub_ieee1275_get_integer_property): New function prototype.
35147
35148 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
35149 (grub_ieee1275_get_integer_property): New function. Wraps around
35150 grub_ieee1275_get_property() to handle endianness.
35151
35152 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
35153 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
35154 where appropriate.
35155 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
35156 (grub_map): Likewise.
35157 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
35158
35159 2008-01-15 Bean <bean123ch@gmail.com>
35160
35161 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
35162 (grub_script_execute_cmdline): Reset grub_errno.
35163
35164 * normal/main.c (read_config_file): Reset grub_errno.
35165
35166 * normal/parse.y (script_init): New.
35167 (script): Move function and menuentry here.
35168 (delimiter): New.
35169 (command): Add delimiter at the end of command.
35170 (commands): Adjust to match the new command.
35171 (commandblock): Remove grub_script_lexer_record_start.
35172 (menuentry): Add grub_script_lexer_record_start, use the new commands.
35173 (if): Use the new commands.
35174
35175 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
35176
35177 2008-01-15 Robert Millan <rmh@aybabtu.com>
35178
35179 * normal/menu.c (run_menu): Move timeout message from here ...
35180 (print_timeout): ... to here.
35181 (run_menu): Use print_timeout() once during initial draw to print
35182 the whole message, and again in every clock tick to update only
35183 the number of seconds.
35184
35185 2008-01-15 Robert Millan <rmh@aybabtu.com>
35186
35187 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
35188 actual size of `available' from grub_ieee1275_get_property(), and
35189 restrict parsing to that bound.
35190
35191 2008-01-15 Christian Franke <franke@computer.org>
35192
35193 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
35194 (argp_program_version): Remove variable.
35195 (argp_program_bug_address): Likewise.
35196 (options): Convert from struct argp_option to struct option.
35197 (struct arguments): Remove.
35198 (parse_opt): Remove.
35199 (usage): New function.
35200 (main): Replace struct args members by simple variables.
35201 Replace argp_parse() by getopt_long().
35202 Add switch to evaluate options.
35203 Add missing "(...)" around root_dev in prefix string.
35204
35205 2008-01-14 Robert Millan <rmh@aybabtu.com>
35206
35207 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
35208 for grub_ieee1275_exit(), in order to improve portability.
35209
35210 2008-01-14 Robert Millan <rmh@aybabtu.com>
35211
35212 * util/grub.d/10_linux.in (prefix): Define.
35213 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
35214
35215 2008-01-13 Pavel Roskin <proski@gnu.org>
35216
35217 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
35218 grub_errno if no errors have been detected.
35219
35220 2008-01-12 Robert Millan <rmh@aybabtu.com>
35221
35222 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
35223 (grub_util_get_dev_abstraction): New function prototype.
35224
35225 * util/getroot.c: Include `<grub/util/getroot.h>'
35226 (grub_util_get_grub_dev): Move detection of abstraction type to ...
35227 (grub_util_get_dev_abstraction): ... here (new function).
35228
35229 * util/grub-probe.c: Convert PRINT_* to an enum. Add
35230 `PRINT_ABSTRACTION'.
35231 (probe): Probe for abstraction type when requested.
35232 (main): Understand `--target=abstraction'.
35233
35234 * util/i386/efi/grub-install.in: Add abstraction module to core
35235 image when it is found to be necessary.
35236 * util/i386/pc/grub-install.in: Likewise.
35237 * util/powerpc/ieee1275/grub-install.in: Likewise.
35238
35239 * util/update-grub_lib.in (font_path): Return system path without
35240 converting to GRUB path.
35241 * util/update-grub.in: Convert system path returned by font_path()
35242 to a GRUB path. Use `grub-probe -t abstraction' to determine what
35243 abstraction module is needed for loading fonts (if any). Export
35244 that as `GRUB_PRELOAD_MODULES'.
35245 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
35246 insmod commands).
35247
35248 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
35249
35250 Remove some unused code from reiserfs.
35251
35252 * fs/reiserfs.c (struct grub_reiserfs_key)
35253 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
35254 (struct grub_reiserfs_node_body): Removed.
35255 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
35256 Likewise.
35257 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
35258 Likewise.
35259 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
35260 Likewise.
35261 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
35262 Likewise.
35263 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
35264 Likewise.
35265 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
35266 Likewise.
35267 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
35268 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
35269 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
35270
35271 2008-01-10 Robert Millan <rmh@aybabtu.com>
35272
35273 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
35274 Determines if a file is garbage left by packaging systems, etc.
35275 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
35276 for processing /etc/grub.d scripts.
35277 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
35278 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
35279 as a condition for processing Linux images.
35280
35281 2008-01-10 Pavel Roskin <proski@gnu.org>
35282
35283 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
35284 to compile reiserfs.c on PowerPC.
35285
35286 2008-01-10 Robert Millan <rmh@aybabtu.com>
35287
35288 * kern/device.c (grub_device_iterate): Do not abort device iteration
35289 when one of the devices cannot be opened.
35290 * kern/disk.c (grub_disk_open): Do not account previous failures of
35291 unrelated functions when grub_errno is checked for.
35292
35293 2008-01-08 Robert Millan <rmh@aybabtu.com>
35294
35295 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
35296 `! grub_linux_is_bzimage', change order of address comparison to make
35297 it more intuitive, and improve "too big zImage" error message.
35298
35299 2008-01-08 Robert Millan <rmh@aybabtu.com>
35300
35301 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
35302 `$(update-grub_DATA)'.
35303 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
35304 targets.
35305
35306 2008-01-07 Robert Millan <rmh@aybabtu.com>
35307
35308 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
35309 which instruction is modified by grub-setup during installation
35310 (since it wasn't obvious by only looking at this file).
35311
35312 2008-01-07 Robert Millan <rmh@aybabtu.com>
35313
35314 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
35315 listing actual TODO items.
35316
35317 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
35318
35319 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
35320 correctly.
35321 (grub_reiserfs_get_key_offset): Likewise.
35322 (grub_reiserfs_set_key_offset): Likewise.
35323 (grub_reiserfs_set_key_type): Likewise.
35324 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
35325
35326 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
35327 better to remove the bitfield version completely.
35328
35329 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
35330
35331 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
35332 allocated from the heap, due to the fshelp implementation.
35333 (grub_reiserfs_dir): Free NODE, due to the same reason.
35334
35335 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
35336
35337 Mostly from Vincent Pelletier:
35338
35339 * fs/reiserfs.c: New file.
35340
35341 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
35342 (reiserfs_mod_SOURCES): New variable.
35343 (reiserfs_mod_CFLAGS): Likewise.
35344 (reiserfs_mod_LDFLAGS): Likewise.
35345
35346 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
35347 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
35348 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
35349 normal/color.c.
35350
35351 2008-01-06 Robert Millan <rmh@aybabtu.com>
35352
35353 * normal/color.c: Remove `<grub/env.h>'.
35354
35355 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
35356
35357 * include/grub/normal.h: Include <grub/env.h>.
35358
35359 2008-01-05 Robert Millan <rmh@aybabtu.com>
35360
35361 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
35362 usage example with `(hd0,1)'.
35363 Reported by Samuel Thibault.
35364
35365 2008-01-05 Robert Millan <rmh@aybabtu.com>
35366
35367 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
35368 (grub_linux_boot_zimage): Rename to ...
35369 (grub_linux_boot): ... this.
35370 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
35371 (grub_linux_boot_zimage): Conditionalize zImage copy.
35372
35373 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
35374 (grub_linux_boot_bzimage): Remove prototype.
35375 (grub_linux_boot_zimage): Rename to ...
35376 (grub_linux_boot): ... this.
35377
35378 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
35379 (grub_linux_boot): Remove function.
35380
35381 2008-01-05 Robert Millan <rmh@aybabtu.com>
35382
35383 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
35384 (grub_env_write_color_highlight): Likewise.
35385 (grub_wait_after_message): Likewise.
35386
35387 * normal/color.c: New file.
35388
35389 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
35390 (normal_mod_DEPENDENCIES): Likewise.
35391
35392 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
35393 (normal_mod_DEPENDENCIES): Likewise.
35394
35395 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
35396 (normal_mod_DEPENDENCIES): Likewise.
35397
35398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
35399 (normal_mod_DEPENDENCIES): Likewise.
35400
35401 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
35402 for waiting after a message is printed.
35403 * normal/main.c (read_config_file): Likewise.
35404 (grub_normal_init): Register grub_env_write_color_normal() and
35405 grub_env_write_color_highlight() hooks. Mark `color_normal' and
35406 `color_highlight' variables as global.
35407
35408 * normal/menu.c (grub_wait_after_message): New function.
35409 (grub_color_menu_normal): New variable. Replaces ...
35410 (GRUB_COLOR_MENU_NORMAL): ... this macro.
35411 (grub_color_menu_highlight): New variable. Replaces ...
35412 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
35413 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
35414 `GRUB_TERM_COLOR_STANDARD'.
35415 (print_message): Use `grub_setcolorstate' to reload colors. Rename
35416 `normal_code' and `highlight_code' to `old_color_normal' and
35417 `old_color_highlight', respectively.
35418 (grub_menu_init_page): Update colors when drawing the menu, based on
35419 `menu_color_normal' and `menu_color_highlight' variables.
35420 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
35421 a message is printed.
35422
35423 2008-01-05 Robert Millan <rmh@aybabtu.com>
35424
35425 * kern/env.c (grub_env_context_open): Propagate hooks for global
35426 variables to new context.
35427
35428 * kern/main.c (grub_set_root_dev): Export `root' variable.
35429
35430 2008-01-05 Robert Millan <rmh@aybabtu.com>
35431
35432 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
35433 discs unconditionally, since udev and others have options to provide
35434 them.
35435
35436 2008-01-05 Robert Millan <rmh@aybabtu.com>
35437
35438 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
35439
35440 2008-01-04 Christian Franke <franke@computer.org>
35441
35442 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
35443 of eisa_mmap.
35444
35445 2008-01-03 Pavel Roskin <proski@gnu.org>
35446
35447 * kern/i386/linuxbios/init.c: Put "void" to all function
35448 declarations with no arguments.
35449 * kern/powerpc/ieee1275/init.c: Likewise.
35450 * term/i386/pc/at_keyboard.c: Likewise.
35451 * term/i386/pc/vga_text.c: Likewise.
35452 * util/grub-mkdevicemap.c: Likewise.
35453
35454 2008-01-02 Robert Millan <rmh@aybabtu.com>
35455
35456 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
35457 message when loaded image is out of bounds.
35458 (grub_multiboot_load_elf64): Likewise.
35459
35460 2008-01-02 Pavel Roskin <proski@gnu.org>
35461
35462 * util/grub.d/10_linux.in: Try version without ".old" when
35463 looking for initrd. It's better to use initrd from the newer
35464 kernel of the same version than no initrd at all.
35465
35466 2008-01-01 Robert Millan <rmh@aybabtu.com>
35467
35468 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
35469
35470 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
35471
35472 * include/grub/video.h: Added grub_video_unmap_color and
35473 grub_video_get_active_render_target.
35474 (grub_video_adapter): Added unmap_color and get_active_render_target.
35475
35476 * video/video.c: Added grub_video_unmap_color and
35477 grub_video_get_active_render_target.
35478 (grub_video_get_info): Changed method to accept NULL pointer as an
35479 argument to allow detection of active video adapter.
35480
35481 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
35482 grub_video_vbe_unmap_color_int.
35483 Added grub_video_vbe_unmap_color and
35484 grub_video_vbe_get_active_render_target.
35485 (grub_video_vbe_adapter): Added unmap_color and
35486 get_active_render_target.
35487
35488 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
35489 with grub_video_vbe_unmap_color_int.
35490
35491 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
35492 (DEFAULT_NORMAL_COLOR): Likewise.
35493 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
35494 (DEFAULT_FG_COLOR): Removed.
35495 (DEFAULT_BG_COLOR): Likewise.
35496 (DEFAULT_CURSOR_COLOR): Changed value.
35497 (grub_virtual_screen): Added standard_color_setting,
35498 normal_color_setting, highlight_color_setting and term_color.
35499 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
35500 (bitmap_width): Added.
35501 (bitmap_height): Likewise.
35502 (bitmap): Likewise.
35503 (set_term_color): Likewise.
35504 (grub_virtual_screen_setup): Changed to use new terminal coloring
35505 settings.
35506 (grub_gfxterm_init): Added init for bitmap.
35507 (grub_gfxterm_fini): Added destroy for bitmap.
35508 (redraw_screen_rect): Updated to use background bitmap and new
35509 terminal coloring.
35510 (scroll_up): Added optimization for case when there is no bitmap.
35511 (grub_gfxterm_cls): Fixed to use correct background color.
35512 (grub_virtual_screen_setcolorstate): Changed to use new terminal
35513 coloring.
35514 (grub_virtual_screen_setcolor): Likewise.
35515 (grub_virtual_screen_getcolor): Added.
35516 (grub_gfxterm_background_image_cmd): Likewise.
35517 (grub_video_term): Added setcolor and getcolor.
35518 (MOD_INIT): Added registration of background_image command.
35519 (MOD_TERM): Added unregistration for background_image command.
35520
35521 2007-12-30 Pavel Roskin <proski@gnu.org>
35522
35523 * loader/multiboot_loader.c: Fix multiboot command
35524 unregistration. Fix all typos in the word "multiboot".
35525
35526 2007-12-29 Pavel Roskin <proski@gnu.org>
35527
35528 * util/grub.d/10_linux.in: Refactor search for initrd. Add
35529 support for initrd names used in Fedora.
35530
35531 2007-12-26 Bean <bean123ch@gmail.com>
35532
35533 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
35534 (cpio_mod_SOURCES): New variable.
35535 (cpio_mod_CFLAGS): Likewise.
35536 (cpio_mod_LDFLAGS): Likewise.
35537
35538 * fs/cpio.c: New file.
35539
35540 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
35541
35542 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35543
35544 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
35545
35546 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35547
35548 2007-12-25 Robert Millan <rmh@aybabtu.com>
35549
35550 * include/grub/term.h (struct grub_term): Add `getcolor' function.
35551 (grub_getcolor): New function.
35552
35553 * kern/term.c (grub_getcolor): New function.
35554 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
35555 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
35556 (print_entry): Set normal and highlight colors to
35557 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
35558 respectively, before printing and restore them to old
35559 values afterwards.
35560 (grub_menu_init_page): Likewise. Fill an additional colored space
35561 that would otherwise be left blank.
35562
35563 * term/efi/console.c (grub_console_getcolor): New function.
35564 (struct grub_console_term.getcolor): New variable.
35565 * term/i386/pc/console.c (grub_console_getcolor): New function.
35566 (struct grub_console_term.getcolor): New variable.
35567 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
35568 (struct grub_console_term.getcolor): New variable.
35569
35570 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
35571 (struct grub_console_term.setcolor): Remove variable.
35572 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
35573 (struct grub_console_term.setcolor): Remove variable.
35574 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
35575 (struct grub_console_term.setcolor): Remove variable.
35576 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
35577 (struct grub_console_term.setcolor): Remove variable.
35578
35579 2007-12-25 Robert Millan <rmh@aybabtu.com>
35580
35581 * configure.ac: Search for possible unifont.hex locations, and
35582 define UNIFONT_HEX if found.
35583
35584 * Makefile.in (UNIFONT_HEX): Define variable.
35585 (DATA): Rename to ...
35586 (PKGLIB): ... this. Update all users.
35587 (PKGDATA): New variable.
35588 (pkgdata_IMAGES): Rename to ...
35589 (pkglib_IMAGES): ... this. Update all users.
35590 (pkgdata_MODULES): Rename to ...
35591 (pkglib_MODULES): ... this. Update all users.
35592 (pkgdata_PROGRAMS): Rename to ...
35593 (pkglib_PROGRAMS): ... this. Update all users.
35594 (pkgdata_DATA): Rename to ...
35595 (pkglib_DATA): ... this. Update all users.
35596 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
35597 (unicode.pff, ascii.pff): New rules.
35598 (all-local): Add `$(PKGDATA)' dependency.
35599 (install-local): Process `$(PKGDATA)'.
35600
35601 * util/update-grub_lib.in (font_path): Search for *.pff files in
35602 a few more locations, including `${pkgdata}'.
35603
35604 2007-12-23 Robert Millan <rmh@aybabtu.com>
35605
35606 Patch from Bean <bean123ch@gmail.com>:
35607 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
35608 `size'.
35609
35610 2007-12-21 Bean <bean123ch@gmail.com>
35611
35612 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
35613 (ntfscomp_mod_SOURCES): New variable.
35614 (ntfscomp_mod_CFLAGS): Likewise.
35615 (ntfscomp_mod_LDFLAGS): Likewise.
35616
35617 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
35618 (grub_probe_SOURCES): Likewise.
35619 (grub_emu_SOURCES): Likewise.
35620
35621 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
35622 (grub_emu_SOURCES): Likewise.
35623
35624 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
35625 (grub_emu_SOURCES): Likewise.
35626
35627 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
35628 (grub_emu_SOURCES): Likewise.
35629
35630 * fs/ntfs.c (grub_ntfscomp_func): New variable.
35631 (read_run_list): Renamed to grub_ntfs_read_run_list.
35632 (decomp_nextvcn): Moved to ntfscomp.c.
35633 (decomp_getch): Likewise.
35634 (decomp_get16): Likewise.
35635 (decomp_block): Likewise.
35636 (read_block): Likewise.
35637 (read_data): Partially moved to ntfscomp.c.
35638 (fixup): Change unsigned to grub_uint16_t.
35639 (read_mft): Change unsigned long to grub_uint32_t.
35640 (read_attr): Likewise.
35641 (read_data): Likewise.
35642 (read_run_data): Likewise.
35643 (read_run_list): Likewise.
35644 (read_mft): Likewise.
35645
35646 * fs/ntfscomp.c: New file.
35647
35648 * include/grub/ntfs.h: New file.
35649
35650 2007-12-16 Robert Millan <rmh@aybabtu.com>
35651
35652 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
35653 IDE disk check, since Linux is known to support 20 IDE disks.
35654 Reported by Colin Watson.
35655
35656 2007-12-15 Bean <bean123ch@gmail.com>
35657
35658 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
35659 (lnxboot_img_SOURCES): New variable.
35660 (lnxboot_img_ASFLAGS): Likewise.
35661 (lnxboot_img_LDFLAGS): Likewise.
35662
35663 * boot/i386/pc/lnxboot.S: New file.
35664
35665 2007-11-24 Pavel Roskin <proski@gnu.org>
35666
35667 * configure.ac: Test if '--build-id=none' is supported by the
35668 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
35669 objcopy to generate incorrect binary files (binutils
35670 2.17.50.0.18-1 as shipped by Fedora 8).
35671 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
35672 linking, so that build ID doesn't break the test.
35673
35674 2007-11-24 Pavel Roskin <proski@gnu.org>
35675
35676 * include/grub/i386/time.h: use "void" in the argument list
35677 of grub_cpu_idle().
35678 * include/grub/powerpc/time.h: Likewise.
35679 * include/grub/sparc64/time.h: Likewise.
35680
35681 2007-11-18 Christian Franke <franke@computer.org>
35682
35683 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
35684 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
35685 This fixes the problem that function keys did not work in grub-emu.
35686
35687 2007-11-18 Christian Franke <franke@computer.org>
35688
35689 * disk/host.c (grub_host_open): Remove attribute unused from
35690 name parameter. Add check for "host". This fixes the problem
35691 that grub-emu does not find partitions.
35692
35693 2007-11-18 Christian Franke <franke@computer.org>
35694
35695 * util/hostfs.c (is_dir): New function.
35696 (grub_hostfs_dir): Handle missing dirent.d_type case.
35697 (grub_hostfs_read): Add missing fseek().
35698 (grub_hostfs_label): Clear label pointer. This fixes a crash
35699 of grub-emu on "ls (host)".
35700
35701 2007-11-18 Christian Franke <franke@computer.org>
35702
35703 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
35704 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
35705 to 64 bit boundary by default.
35706
35707 2007-11-18 Bean <bean123ch@gmail.com>
35708
35709 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
35710 (hexdump_mod_SOURCES): New variable.
35711 (hexdump_mod_CFLAGS): Likewise.
35712 (hexdump_mod_LDFLAGS): Likewise.
35713
35714 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
35715
35716 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
35717
35718 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
35719
35720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
35721
35722 * include/grub/hexdump.h: New file.
35723
35724 * commands/hexdump.c: New file.
35725
35726 2007-11-10 Robert Millan <rmh@aybabtu.com>
35727
35728 * commands/i386/pc/play.c (beep_off): Switch order of arguments
35729 in grub_outb() calls.
35730 (beep_on): Likewise.
35731
35732 2007-11-10 Christian Franke <franke@computer.org>
35733
35734 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
35735 (grub_menu_run): Likewise.
35736
35737 2007-11-10 Robert Millan <rmh@aybabtu.com>
35738
35739 * include/grub/i386/efi/machine.h: New file.
35740 * include/grub/i386/linuxbios/machine.h: Likewise.
35741 * include/grub/i386/pc/machine.h: Likewise.
35742 * include/grub/powerpc/ieee1275/machine.h: Likewise.
35743 * include/grub/sparc64/ieee1275/machine.h: Likewise.
35744
35745 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
35746 (serial_hw_io_addr): New variable.
35747 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
35748 instead of `(unsigned short *) 0x400'.
35749
35750 2007-11-10 Bean <bean123ch@gmail.com>
35751
35752 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
35753
35754 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
35755
35756 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
35757 (vga_mod_SOURCES): Added.
35758 (vga_mod_CFLAGS): Likewise.
35759 (vga_mod_LDFLAGS): Likewise.
35760
35761 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
35762 grub_outb() calls.
35763 (set_map_mask): Likewise.
35764 (set_read_map): Likewise.
35765 (set_read_address): Likewise.
35766 (vga_font): Removed variable.
35767 (get_vga_glyph): Removed function.
35768 (invalidate_char): Likewise.
35769 (write_char): Changed to use grub_font_get_glyph() for font
35770 information.
35771 (grub_vga_putchar): Likewise.
35772 (grub_vga_getcharwidth): Likewise.
35773
35774 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
35775
35776 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
35777 flags.
35778 (pxeboot_img_LDFLAGS): Likewise.
35779 (diskboot_img_LDFLAGS): Likewise.
35780 (kernel_img_LDFLAGS): Likewise.
35781
35782 2007-11-06 Robert Millan <rmh@aybabtu.com>
35783
35784 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
35785 in grub_outb() calls.
35786 (serial_hw_init): Likewise.
35787
35788 2007-11-05 Robert Millan <rmh@aybabtu.com>
35789
35790 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
35791 spaces. Skip non-regular files.
35792
35793 2007-11-05 Robert Millan <rmh@aybabtu.com>
35794
35795 * kern/disk.c (grub_disk_firmware_fini)
35796 (grub_disk_firmware_is_tainted): New variables.
35797
35798 * include/grub/disk.h (grub_disk_firmware_fini)
35799 (grub_disk_firmware_is_tainted): Likewise.
35800
35801 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
35802 (grub_disk_biosdisk_fini): ... to here.
35803 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
35804 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
35805 is set. Register grub_disk_biosdisk_fini() in
35806 `grub_disk_firmware_fini'.
35807
35808 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
35809 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
35810 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
35811 to finish existing firmware disk interface.
35812
35813 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
35814 (ata_mod_SOURCES): New variable.
35815 (ata_mod_CFLAGS): Likewise.
35816 (ata_mod_LDFLAGS): Likewise.
35817
35818 2007-11-05 Robert Millan <rmh@aybabtu.com>
35819
35820 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
35821 (grub_ata_wait): Reimplement using grub_millisleep().
35822
35823 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
35824 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
35825
35826 2007-11-03 Marco Gerards <marco@gnu.org>
35827
35828 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
35829 (CRTC_ADDR_PORT): New macro.
35830 (CRTC_DATA_PORT): Likewise.
35831 (CRTC_CURSOR): Likewise.
35832 (CRTC_CURSOR_ADDR_HIGH): Likewise.
35833 (CRTC_CURSOR_ADDR_LOW): Likewise.
35834 (update_cursor): New function.
35835 (grub_console_real_putchar): Call `update_cursor'.
35836 (grub_console_gotoxy): Likewise.
35837 (grub_console_cls): Set the default color when clearing the
35838 screen.
35839 (grub_console_setcursor): Implemented.
35840
35841 2007-11-03 Marco Gerards <marco@gnu.org>
35842
35843 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
35844 become activate.
35845 (grub_ata_pio_write): Likewise.
35846
35847 (grub_atapi_identify): Wait after issuing an ATA command.
35848 (grub_atapi_packet): Likewise.
35849 (grub_ata_identify): Likewise.
35850 (grub_ata_readwrite): Likewise.
35851
35852 2007-11-03 Marco Gerards <marco@gnu.org>
35853
35854 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
35855 (grub_ata_pio_write): Likewise.
35856 (grub_ata_readwrite): Use `grub_error', instead of
35857 returning `grub_errno'.
35858
35859 2007-11-03 Marco Gerards <marco@gnu.org>
35860
35861 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
35862 grub_ata_pio_write once for every single sector, instead of for
35863 multiple sectors.
35864
35865 2007-10-31 Robert Millan <rmh@aybabtu.com>
35866
35867 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
35868
35869 * conf/i386-linuxbios.rmk: New file.
35870
35871 * kern/i386/pc/hardware.c: Likewise.
35872 * term/i386/pc/at_keyboard.c: Likewise.
35873 * term/i386/pc/vga_text.c: Likewise.
35874
35875 * include/grub/i386/linuxbios/boot.h: Likewise.
35876 * include/grub/i386/linuxbios/console.h: Likewise.
35877 * include/grub/i386/linuxbios/init.h: Likewise.
35878 * include/grub/i386/linuxbios/kernel.h: Likewise.
35879 * include/grub/i386/linuxbios/loader.h: Likewise.
35880 * include/grub/i386/linuxbios/memory.h: Likewise.
35881 * include/grub/i386/linuxbios/serial.h: Likewise.
35882 * include/grub/i386/linuxbios/time.h: Likewise.
35883
35884 * kern/i386/linuxbios/init.c: Likewise.
35885 * kern/i386/linuxbios/startup.S: Likewise.
35886 * kern/i386/linuxbios/table.c: Likewise.
35887
35888 2007-10-31 Marco Gerards <marco@gnu.org>
35889
35890 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
35891 (ata_mod_SOURCES): New variable.
35892 (ata_mod_CFLAGS): Likewise.
35893 (ata_mod_LDFLAGS): Likewise.
35894
35895 * disk/ata.c: New file.
35896
35897 * include/grub/disk.h (grub_disk_dev_id): Add
35898 `GRUB_DISK_DEV_ATA_ID'.
35899
35900 2007-10-31 Robert Millan <rmh@aybabtu.com>
35901
35902 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
35903 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
35904
35905 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
35906 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
35907
35908 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
35909 `<grub/types.h>'.
35910
35911 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
35912
35913 2007-10-27 Robert Millan <rmh@aybabtu.com>
35914
35915 * include/grub/types.h (ULONG_MAX): Define macro.
35916
35917 2007-10-22 Robert Millan <rmh@aybabtu.com>
35918
35919 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
35920 `"../realmode.S"'.
35921 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
35922
35923 2007-10-22 Robert Millan <rmh@aybabtu.com>
35924
35925 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
35926 (pkgdata_MODULES): Add `biosdisk.mod'.
35927 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
35928 variables.
35929
35930 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
35931 (grub_biosdisk_init): Replace with ...
35932 (GRUB_MOD_INIT(biosdisk)): ... this.
35933 (grub_biosdisk_fini): Replace with ...
35934 (GRUB_MOD_FINI(biosdisk)): ... this.
35935
35936 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
35937 (grub_machine_init): Remove call to grub_biosdisk_init().
35938 (grub_machine_fini): Remove call to grub_machine_fini().
35939
35940 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
35941
35942 2007-10-22 Robert Millan <rmh@aybabtu.com>
35943
35944 * include/grub/time.h: New file.
35945 * include/grub/i386/time.h: Likewise.
35946 * include/grub/powerpc/time.h: Likewise.
35947 * include/grub/sparc64/time.h: Likewise.
35948
35949 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
35950 instances to ...
35951 (KERNEL_MACHINE_TIME_HEADER): ... this.
35952 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
35953 instances to ...
35954 (KERNEL_MACHINE_TIME_HEADER): ... this.
35955 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
35956 instances to ...
35957 (KERNEL_MACHINE_TIME_HEADER): ... this.
35958
35959 * kern/i386/efi/init.c: Include `<grub/time.h>'.
35960 (grub_millisleep): New function.
35961 * kern/i386/pc/init.c: Include `<grub/time.h>'.
35962 (grub_millisleep): New function.
35963 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
35964 Remove `grub/machine/time.h' include.
35965 (grub_millisleep): New function.
35966 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
35967 Remove `grub/machine/time.h' include.
35968 (grub_millisleep): New function.
35969
35970 * include/grub/misc.h (grub_div_roundup): New function.
35971
35972 * kern/misc.c: Include `<grub/time.h>'.
35973 (grub_millisleep_generic): New function.
35974
35975 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
35976 Add `time.h'.
35977 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
35978 Add `time.h'.
35979 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
35980 `machine/time.h'. Add `time.h'.
35981 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
35982
35983 2007-10-21 Robert Millan <rmh@aybabtu.com>
35984
35985 * include/grub/misc.h (grub_max): New function.
35986
35987 2007-10-21 Robert Millan <rmh@aybabtu.com>
35988
35989 * util/misc.c (grub_util_info): Call fflush() before returning.
35990
35991 2007-10-20 Robert Millan <rmh@aybabtu.com>
35992
35993 * genmk.rb (Image): Copy `extra_flags' from here ...
35994 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
35995
35996 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
35997 to `argc' and `args' arguments.
35998
35999 2007-10-17 Robert Millan <rmh@aybabtu.com>
36000
36001 * kern/i386/loader.S: New file.
36002
36003 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
36004 * kern/i386/loader.S (grub_linux_prot_size)... to here.
36005 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
36006 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
36007 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
36008 * kern/i386/loader.S (grub_linux_real_addr)... to here.
36009 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
36010 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
36011 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
36012 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
36013 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
36014 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
36015 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
36016 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
36017
36018 * kern/i386/realmode.S: New file.
36019
36020 * kern/i386/pc/startup.S (protstack): Moved from here ...
36021 * kern/i386/realmode.S (protstack)... to here.
36022 * kern/i386/pc/startup.S (gdt): Moved from here ...
36023 * kern/i386/realmode.S (gdt)... to here.
36024 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
36025 * kern/i386/realmode.S (prot_to_real)... to here.
36026
36027 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
36028 `kern/i386/realmode.S'.
36029
36030 2007-10-17 Robert Millan <rmh@aybabtu.com>
36031
36032 * include/grub/i386/loader.h: New file.
36033
36034 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
36035 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
36036 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
36037 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
36038 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
36039 * include/grub/i386/loader.h (grub_linux_prot_size)
36040 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
36041 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
36042 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
36043 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
36044
36045 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
36046
36047 2007-10-15 Robert Millan <rmh@aybabtu.com>
36048
36049 * normal/misc.c (grub_normal_print_device_info): Do not probe for
36050 filesystem when dev->disk is unset.
36051 Do probe for filesystem even when dev->disk->has_partitions is set.
36052 In case a filesystem is found, always report it.
36053 In case it isn't, if dev->disk->has_partitions is set, report that
36054 a partition table was found instead of reporting that no filesystem
36055 could be identified.
36056
36057 2007-10-12 Robert Millan <rmh@aybabtu.com>
36058
36059 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
36060 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
36061
36062 * include/grub/types.h (grub_host_to_target16): New macro.
36063 (grub_host_to_target32): Likewise.
36064 (grub_host_to_target64): Likewise.
36065 (grub_target_to_host16): Likewise.
36066 (grub_target_to_host32): Likewise.
36067 (grub_target_to_host64): Likewise.
36068
36069 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
36070 Renamed from to ...
36071 (GRUB_MOD_ALIGN): ...this. Update all users.
36072
36073 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
36074 grub_host_to_target32.
36075 Replace grub_be_to_cpu32 with grub_target_to_host32.
36076 (load_modules): Likewise.
36077 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
36078 Replace grub_be_to_cpu32 with grub_target_to_host32.
36079 Replace grub_cpu_to_be16 with grub_host_to_target16.
36080 Replace grub_cpu_to_be32 grub_host_to_target32.
36081
36082 2007-10-12 Robert Millan <rmh@aybabtu.com>
36083
36084 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
36085 * util/elf/grub-mkimage.c: ... here.
36086
36087 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
36088 `util/powerpc/ieee1275/grub-mkimage.c'.
36089
36090 2007-10-07 Robert Millan <rmh@aybabtu.com>
36091
36092 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
36093 and make it easier to figure out.
36094 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
36095 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
36096 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
36097 leave us with less than HEAP_MIN_SIZE total heap.
36098 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
36099
36100 2007-10-03 Robert Millan <rmh@aybabtu.com>
36101
36102 * include/grub/i386/io.h: New file.
36103 * commands/i386/pc/play.c (inb): Removed.
36104 (outb): Removed.
36105 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
36106 with grub_outb().
36107 * term/i386/pc/serial.c (inb): Removed.
36108 (outb): Removed.
36109 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
36110 with grub_outb().
36111 * term/i386/pc/vga.c (inb): Removed.
36112 (outb): Removed.
36113 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
36114 with grub_outb().
36115
36116 2007-10-02 Robert Millan <rmh@aybabtu.com>
36117
36118 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
36119 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36120 Reported by Marcin Kurek.
36121
36122 2007-09-07 Robert Millan <rmh@aybabtu.com>
36123
36124 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
36125 SmartFirmware version updates (as released by Sven Luther), and avoid
36126 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
36127 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
36128 known broken.
36129
36130 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36131
36132 From Hitoshi Ozeki:
36133 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
36134 when merging two regions.
36135
36136 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36137
36138 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
36139 * normal/completion.c (grub_normal_do_completion): Likewise.
36140 Reported by Hitoshi Ozeki.
36141
36142 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36143
36144 Do not use devices at boot in chainloading.
36145
36146 * loader/i386/pc/chainloader.c (boot_drive): New variable.
36147 (boot_part_addr): Likewise.
36148 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
36149 with BOOT_DRIVE and BOOT_PART_ADDR.
36150 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
36151 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
36152
36153 2007-08-29 Robert Millan <rmh@aybabtu.com>
36154
36155 Patch from Simon Peter <dn.tlp@gmx.net>:
36156 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
36157 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
36158 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
36159 util/i386/pc/grub-setup.c_DEPENDENCIES.
36160 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
36161 util/grub-probe.c_DEPENDENCIES.
36162 * conf/powerpc-ieee1275.rmk: Likewise.
36163
36164 2007-08-28 Robert Millan <rmh@aybabtu.com>
36165
36166 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
36167 to tell grub-mkdevicemap how to name devices.
36168 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
36169 feature).
36170
36171 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
36172 util/i386/get_disk_name.c.
36173 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
36174 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
36175 util/ieee1275/get_disk_name.c.
36176
36177 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
36178
36179 * DISTLIST: Add util/i386/get_disk_name.c and
36180 util/ieee1275/get_disk_name.c.
36181
36182 * util/grub-mkdevicemap.c: Replace device naming logic with
36183 grub_util_get_disk_name() calls.
36184
36185 2007-08-20 Robert Millan <rmh@aybabtu.com>
36186
36187 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
36188 (so that it works for both plural and singular quantities).
36189
36190 2007-08-05 Robert Millan <rmh@aybabtu.com>
36191
36192 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
36193 so that [xz] isn't taken into account when determining order.
36194
36195 2007-08-02 Marco Gerards <marco@gnu.org>
36196
36197 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
36198 `include/multiboot2.h', `include/grub/elfload.h',
36199 `include/multiboot.h', `include/grub/multiboot.h',
36200 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
36201 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
36202 `kern/elf.c', `loader/multiboot_loader.c',
36203 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
36204 `loader/i386/pc/multiboot2.c',
36205 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
36206 `util/i386/pc/grub-mkrescue.in'. Remove
36207 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
36208 `include/grub/i386/pc/util/biosdisk.h' and
36209 `include/grub/powerpc/ieee1275/multiboot.h'.
36210
36211 2007-08-02 Bean <bean123ch@gmail.com>
36212
36213 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
36214 (ntfs_mod_SOURCES): New variable.
36215 (ntfs_mod_CFLAGS): Likewise.
36216 (ntfs_mod_LDFLAGS): Likewise.
36217
36218 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
36219 (grub_probe_SOURCES): Likewise.
36220 (grub_emu_SOURCES): Likewise.
36221
36222 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
36223 (grub_emu_SOURCES): Likewise.
36224
36225 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
36226 (grub_emu_SOURCES): Likewise.
36227
36228 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
36229
36230 * fs/ntfs.c: New file.
36231
36232 2007-08-02 Bean <bean123ch@gmail.com>
36233
36234 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
36235
36236 * file.h (grub_file): Likewise.
36237
36238 * fshelp.h (grub_fshelp_read_file): Likewise.
36239
36240 * util/i386/pc/grub-setup.c (setup): Likewise.
36241 (save_first_sector): Likewise.
36242 (save_blocklists): Likewise.
36243
36244 * fs/affs.c (grub_affs_read_file): Likewise.
36245
36246 * fs/ext2.c (grub_ext2_read_file): Likewise.
36247
36248 * fs/fat.c (grub_fat_read_data): Likewise.
36249
36250 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
36251
36252 * fs/hfs.c (grub_hfs_read_file): Likewise.
36253
36254 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
36255
36256 * fs/jfs.c (grub_jfs_read_file): Likewise.
36257
36258 * fs/minix.c (grub_minix_read_file): Likewise.
36259
36260 * fs/sfs.c (grub_sfs_read_file): Likewise.
36261
36262 * fs/ufs.c (grub_ufs_read_file): Likewise.
36263
36264 * fs/xfs.c (grub_xfs_read_file): Likewise.
36265
36266 * command/blocklist.c (read_blocklist): Likewise.
36267 (print_blocklist): Likewise.
36268
36269 2007-08-02 Marco Gerards <marco@gnu.org>
36270
36271 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
36272 `util/hostfs.c'.
36273
36274 * disk/host.c: New file.
36275
36276 * util/hostfs.c: Likewise.
36277
36278 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
36279 return `GRUB_ERR_BAD_FS'.
36280 * fs/sfs.c (grub_sfs_mount): Likewise.
36281 * fs/xfs.c (grub_xfs_mount): Likewise.
36282
36283 * include/grub/disk.h (enum grub_disk_dev_id): Add
36284 `GRUB_DISK_DEVICE_HOST_ID'.
36285
36286 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
36287
36288 2007-07-24 Jerone Young <jerone@gmail.com>
36289
36290 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
36291 modules for compilation.
36292 * conf/powerpc-ieee1275.rmk: Likewise.
36293
36294 * include/multiboot.h: Move multiboot definitions to one file. Rename
36295 many definitions to not get grub specific.
36296 * include/multiboot2.h: Create header with multiboot 2 definitions.
36297 * include/grub/multiboot.h: Header for grub specific function
36298 prototypes and definitions.
36299 * include/grub/multiboot2.h: Likewise.
36300 * include/grub/multiboot_loader.h: Likewise.
36301 * include/grub/i386/pc/multiboot.h: Removed.
36302 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
36303
36304 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
36305 and 2 to allow for one multiboot and module commands.
36306 * loader/multiboot2.c: Add multiboot2 functionality.
36307 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
36308 and definition names.
36309 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
36310 2 functions.
36311 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
36312 ieee1275 specific multiboot2 code.
36313
36314 * kern/i386/pc/startup.S: Change headers and definition names for
36315 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
36316
36317 2007-07-22 Robert Millan <rmh@aybabtu.com>
36318
36319 * geninitheader.sh: Process file specified in first parameter rather
36320 than hardcoding grub_modules_init.lst.
36321 * geninit.sh: Likewise. Also, construct header name dynamically rather
36322 than hardcoding grub_modules_init.h.
36323
36324 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
36325 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
36326 grub_probe_init.[ch] and grub_setup_init.[ch].
36327
36328 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
36329 grub_modules_init.h with grub_emu_init.h.
36330 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
36331 grub_probe_init.[ch] files.
36332 * conf/i386-efi.rmk: Likewise.
36333 * conf/i386-pc.rmk: Likewise.
36334 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
36335 grub_setup_init.[ch] files.
36336
36337 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
36338 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
36339 to initialize modules rather than a list of hardcoded functions.
36340 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
36341 grub_init_all() to initialize modules rather than a list of hardcoded
36342 functions.
36343
36344 2007-07-22 Robert Millan <rmh@aybabtu.com>
36345
36346 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
36347 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
36348
36349 2007-07-22 Robert Millan <rmh@aybabtu.com>
36350
36351 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
36352 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
36353 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
36354 flag when running on SmartFirmware.
36355 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
36356 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
36357 was set.
36358
36359 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
36360 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
36361 rather than decreasing it.
36362
36363 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
36364 there's not enough space to do it, fail in the same way as when it
36365 can't be done because there are no partitions.
36366
36367 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
36368 when nvsetenv failed.
36369
36370 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
36371
36372 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
36373 because this rule is automatically generated.
36374 (grub-mkrescue): Removed for the same reason as above.
36375
36376 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
36377
36378 Migrate to GNU General Public License Version 3.
36379
36380 * COPYING: Replaced with the plain text version of GPLv3.
36381
36382 * config.guess: Updated from gnulib.
36383 * config.sub: Likewise.
36384
36385 * geninit.sh: Output a GPLv3 copyright notice.
36386 * geninitheader.sh: Likewise.
36387 * genmodsrc.sh: Likewise.
36388 * gensymlist.sh.in: Likewise.
36389
36390 * boot/i386/pc/boot.S: Upgraded to GPLv3.
36391 * boot/i386/pc/diskboot.S: Likewise.
36392 * boot/i386/pc/pxeboot.S: Likewise.
36393 * commands/blocklist.c: Likewise.
36394 * commands/boot.c: Likewise.
36395 * commands/cat.c: Likewise.
36396 * commands/cmp.c: Likewise.
36397 * commands/configfile.c: Likewise.
36398 * commands/echo.c: Likewise.
36399 * commands/help.c: Likewise.
36400 * commands/ls.c: Likewise.
36401 * commands/search.c: Likewise.
36402 * commands/terminal.c: Likewise.
36403 * commands/test.c: Likewise.
36404 * commands/videotest.c: Likewise.
36405 * commands/i386/cpuid.c: Likewise.
36406 * commands/i386/pc/halt.c: Likewise.
36407 * commands/i386/pc/play.c: Likewise.
36408 * commands/i386/pc/reboot.c: Likewise.
36409 * commands/i386/pc/vbeinfo.c: Likewise.
36410 * commands/i386/pc/vbetest.c: Likewise.
36411 * commands/ieee1275/halt.c: Likewise.
36412 * commands/ieee1275/reboot.c: Likewise.
36413 * commands/ieee1275/suspend.c: Likewise.
36414 * disk/loopback.c: Likewise.
36415 * disk/lvm.c: Likewise.
36416 * disk/raid.c: Likewise.
36417 * disk/efi/efidisk.c: Likewise.
36418 * disk/i386/pc/biosdisk.c: Likewise.
36419 * disk/ieee1275/ofdisk.c: Likewise.
36420 * font/manager.c: Likewise.
36421 * fs/affs.c: Likewise.
36422 * fs/ext2.c: Likewise.
36423 * fs/fat.c: Likewise.
36424 * fs/fshelp.c: Likewise.
36425 * fs/hfs.c: Likewise.
36426 * fs/hfsplus.c: Likewise.
36427 * fs/iso9660.c: Likewise.
36428 * fs/jfs.c: Likewise.
36429 * fs/minix.c: Likewise.
36430 * fs/sfs.c: Likewise.
36431 * fs/ufs.c: Likewise.
36432 * fs/xfs.c: Likewise.
36433 * hello/hello.c: Likewise.
36434 * include/grub/acorn_filecore.h: Likewise.
36435 * include/grub/arg.h: Likewise.
36436 * include/grub/bitmap.h: Likewise.
36437 * include/grub/boot.h: Likewise.
36438 * include/grub/cache.h: Likewise.
36439 * include/grub/device.h: Likewise.
36440 * include/grub/disk.h: Likewise.
36441 * include/grub/dl.h: Likewise.
36442 * include/grub/elfload.h: Likewise.
36443 * include/grub/env.h: Likewise.
36444 * include/grub/err.h: Likewise.
36445 * include/grub/file.h: Likewise.
36446 * include/grub/font.h: Likewise.
36447 * include/grub/fs.h: Likewise.
36448 * include/grub/fshelp.h: Likewise.
36449 * include/grub/gzio.h: Likewise.
36450 * include/grub/hfs.h: Likewise.
36451 * include/grub/kernel.h: Likewise.
36452 * include/grub/loader.h: Likewise.
36453 * include/grub/lvm.h: Likewise.
36454 * include/grub/misc.h: Likewise.
36455 * include/grub/mm.h: Likewise.
36456 * include/grub/net.h: Likewise.
36457 * include/grub/normal.h: Likewise.
36458 * include/grub/parser.h: Likewise.
36459 * include/grub/partition.h: Likewise.
36460 * include/grub/pc_partition.h: Likewise.
36461 * include/grub/raid.h: Likewise.
36462 * include/grub/rescue.h: Likewise.
36463 * include/grub/script.h: Likewise.
36464 * include/grub/setjmp.h: Likewise.
36465 * include/grub/symbol.h: Likewise.
36466 * include/grub/term.h: Likewise.
36467 * include/grub/terminfo.h: Likewise.
36468 * include/grub/tparm.h: Likewise.
36469 * include/grub/types.h: Likewise.
36470 * include/grub/video.h: Likewise.
36471 * include/grub/efi/api.h: Likewise.
36472 * include/grub/efi/chainloader.h: Likewise.
36473 * include/grub/efi/console.h: Likewise.
36474 * include/grub/efi/console_control.h: Likewise.
36475 * include/grub/efi/disk.h: Likewise.
36476 * include/grub/efi/efi.h: Likewise.
36477 * include/grub/efi/pe32.h: Likewise.
36478 * include/grub/efi/time.h: Likewise.
36479 * include/grub/i386/linux.h: Likewise.
36480 * include/grub/i386/setjmp.h: Likewise.
36481 * include/grub/i386/types.h: Likewise.
36482 * include/grub/i386/efi/kernel.h: Likewise.
36483 * include/grub/i386/efi/loader.h: Likewise.
36484 * include/grub/i386/efi/time.h: Likewise.
36485 * include/grub/i386/pc/biosdisk.h: Likewise.
36486 * include/grub/i386/pc/boot.h: Likewise.
36487 * include/grub/i386/pc/chainloader.h: Likewise.
36488 * include/grub/i386/pc/console.h: Likewise.
36489 * include/grub/i386/pc/init.h: Likewise.
36490 * include/grub/i386/pc/kernel.h: Likewise.
36491 * include/grub/i386/pc/loader.h: Likewise.
36492 * include/grub/i386/pc/memory.h: Likewise.
36493 * include/grub/i386/pc/multiboot.h: Likewise.
36494 * include/grub/i386/pc/serial.h: Likewise.
36495 * include/grub/i386/pc/time.h: Likewise.
36496 * include/grub/i386/pc/vbe.h: Likewise.
36497 * include/grub/i386/pc/vbeblit.h: Likewise.
36498 * include/grub/i386/pc/vbefill.h: Likewise.
36499 * include/grub/i386/pc/vbeutil.h: Likewise.
36500 * include/grub/i386/pc/vga.h: Likewise.
36501 * include/grub/ieee1275/ieee1275.h: Likewise.
36502 * include/grub/ieee1275/ofdisk.h: Likewise.
36503 * include/grub/powerpc/libgcc.h: Likewise.
36504 * include/grub/powerpc/setjmp.h: Likewise.
36505 * include/grub/powerpc/types.h: Likewise.
36506 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
36507 * include/grub/powerpc/ieee1275/console.h: Likewise.
36508 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
36509 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
36510 * include/grub/powerpc/ieee1275/loader.h: Likewise.
36511 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
36512 * include/grub/powerpc/ieee1275/time.h: Likewise.
36513 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
36514 * include/grub/sparc64/libgcc.h: Likewise.
36515 * include/grub/sparc64/setjmp.h: Likewise.
36516 * include/grub/sparc64/types.h: Likewise.
36517 * include/grub/sparc64/ieee1275/console.h: Likewise.
36518 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
36519 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
36520 * include/grub/sparc64/ieee1275/time.h: Likewise.
36521 * include/grub/util/biosdisk.h: Likewise.
36522 * include/grub/util/getroot.h: Likewise.
36523 * include/grub/util/lvm.h: Likewise.
36524 * include/grub/util/misc.h: Likewise.
36525 * include/grub/util/raid.h: Likewise.
36526 * include/grub/util/resolve.h: Likewise.
36527 * io/gzio.c: Likewise.
36528 * kern/device.c: Likewise.
36529 * kern/disk.c: Likewise.
36530 * kern/dl.c: Likewise.
36531 * kern/elf.c: Likewise.
36532 * kern/env.c: Likewise.
36533 * kern/err.c: Likewise.
36534 * kern/file.c: Likewise.
36535 * kern/fs.c: Likewise.
36536 * kern/loader.c: Likewise.
36537 * kern/main.c: Likewise.
36538 * kern/misc.c: Likewise.
36539 * kern/mm.c: Likewise.
36540 * kern/parser.c: Likewise.
36541 * kern/partition.c: Likewise.
36542 * kern/rescue.c: Likewise.
36543 * kern/term.c: Likewise.
36544 * kern/efi/efi.c: Likewise.
36545 * kern/efi/init.c: Likewise.
36546 * kern/efi/mm.c: Likewise.
36547 * kern/i386/dl.c: Likewise.
36548 * kern/i386/efi/init.c: Likewise.
36549 * kern/i386/efi/startup.S: Likewise.
36550 * kern/i386/pc/init.c: Likewise.
36551 * kern/i386/pc/lzo1x.S: Likewise.
36552 * kern/i386/pc/startup.S: Likewise.
36553 * kern/ieee1275/ieee1275.c: Likewise.
36554 * kern/powerpc/cache.S: Likewise.
36555 * kern/powerpc/dl.c: Likewise.
36556 * kern/powerpc/ieee1275/cmain.c: Likewise.
36557 * kern/powerpc/ieee1275/crt0.S: Likewise.
36558 * kern/powerpc/ieee1275/init.c: Likewise.
36559 * kern/powerpc/ieee1275/openfw.c: Likewise.
36560 * kern/sparc64/cache.S: Likewise.
36561 * kern/sparc64/dl.c: Likewise.
36562 * kern/sparc64/ieee1275/init.c: Likewise.
36563 * kern/sparc64/ieee1275/openfw.c: Likewise.
36564 * loader/efi/chainloader.c: Likewise.
36565 * loader/efi/chainloader_normal.c: Likewise.
36566 * loader/i386/efi/linux.c: Likewise.
36567 * loader/i386/efi/linux_normal.c: Likewise.
36568 * loader/i386/pc/chainloader.c: Likewise.
36569 * loader/i386/pc/chainloader_normal.c: Likewise.
36570 * loader/i386/pc/linux.c: Likewise.
36571 * loader/i386/pc/linux_normal.c: Likewise.
36572 * loader/i386/pc/multiboot.c: Likewise.
36573 * loader/i386/pc/multiboot_normal.c: Likewise.
36574 * loader/powerpc/ieee1275/linux.c: Likewise.
36575 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36576 * normal/arg.c: Likewise.
36577 * normal/cmdline.c: Likewise.
36578 * normal/command.c: Likewise.
36579 * normal/completion.c: Likewise.
36580 * normal/execute.c: Likewise.
36581 * normal/function.c: Likewise.
36582 * normal/lexer.c: Likewise.
36583 * normal/main.c: Likewise.
36584 * normal/menu.c: Likewise.
36585 * normal/menu_entry.c: Likewise.
36586 * normal/misc.c: Likewise.
36587 * normal/parser.y: Likewise.
36588 * normal/script.c: Likewise.
36589 * normal/i386/setjmp.S: Likewise.
36590 * normal/powerpc/setjmp.S: Likewise.
36591 * normal/sparc64/setjmp.S: Likewise.
36592 * partmap/acorn.c: Likewise.
36593 * partmap/amiga.c: Likewise.
36594 * partmap/apple.c: Likewise.
36595 * partmap/gpt.c: Likewise.
36596 * partmap/pc.c: Likewise.
36597 * partmap/sun.c: Likewise.
36598 * term/gfxterm.c: Likewise.
36599 * term/terminfo.c: Likewise.
36600 * term/efi/console.c: Likewise.
36601 * term/i386/pc/console.c: Likewise.
36602 * term/i386/pc/serial.c: Likewise.
36603 * term/i386/pc/vesafb.c: Likewise.
36604 * term/i386/pc/vga.c: Likewise.
36605 * term/ieee1275/ofconsole.c: Likewise.
36606 * util/biosdisk.c: Likewise.
36607 * util/console.c: Likewise.
36608 * util/genmoddep.c: Likewise.
36609 * util/getroot.c: Likewise.
36610 * util/grub-emu.c: Likewise.
36611 * util/grub-mkdevicemap.c: Likewise.
36612 * util/grub-probe.c: Likewise.
36613 * util/lvm.c: Likewise.
36614 * util/misc.c: Likewise.
36615 * util/raid.c: Likewise.
36616 * util/resolve.c: Likewise.
36617 * util/update-grub.in: Likewise.
36618 * util/update-grub_lib.in: Likewise.
36619 * util/grub.d/00_header.in: Likewise.
36620 * util/grub.d/10_hurd.in: Likewise.
36621 * util/grub.d/10_linux.in: Likewise.
36622 * util/i386/efi/grub-install.in: Likewise.
36623 * util/i386/efi/grub-mkimage.c: Likewise.
36624 * util/i386/pc/grub-install.in: Likewise.
36625 * util/i386/pc/grub-mkimage.c: Likewise.
36626 * util/i386/pc/grub-mkrescue.in: Likewise.
36627 * util/i386/pc/grub-setup.c: Likewise.
36628 * util/i386/pc/misc.c: Likewise.
36629 * util/powerpc/ieee1275/grub-install.in: Likewise.
36630 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
36631 * util/powerpc/ieee1275/misc.c: Likewise.
36632 * video/bitmap.c: Likewise.
36633 * video/video.c: Likewise.
36634 * video/i386/pc/vbe.c: Likewise.
36635 * video/i386/pc/vbeblit.c: Likewise.
36636 * video/i386/pc/vbefill.c: Likewise.
36637 * video/i386/pc/vbeutil.c: Likewise.
36638 * video/readers/tga.c: Likewise.
36639
36640 2007-07-02 Robert Millan <rmh@aybabtu.com>
36641
36642 * conf/i386-efi.rmk: Replace obsolete reference to
36643 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
36644 with util/getroot.c.
36645 * conf/powerpc-ieee1275.rmk: Likewise.
36646 * conf/sparc64-ieee1275.rmk: Likewise.
36647
36648 * util/grub-emu.c (main): Fix unchecked pointer handling.
36649
36650 2007-07-02 Robert Millan <rmh@aybabtu.com>
36651
36652 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
36653 invocation to fail, in order to support partition-less media.
36654
36655 * util/i386/pc/grub-install.in: Likewise.
36656
36657 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
36658 which fs or partmap modules are needed (akin to its sister scripts).
36659
36660 Also use grub-probe to get rid of unportable /proc/mounts check.
36661
36662 Print the same informational message that the other scripts do, before
36663 exiting.
36664
36665 2007-06-23 Robert Millan <rmh@aybabtu.com>
36666
36667 * util/update-grub_lib.in (font_path): New function. Determine whether
36668 a font file can be found and, if so, echo the GRUB path to it.
36669
36670 * util/update-grub.in: Handle multiple terminals depending on user
36671 input, platform availability and font file presence. Propagate
36672 variables of our findings to /etc/grub.d/ children.
36673
36674 * util/grub.d/00_header.in: Handle multiple terminals, based on
36675 environment setup by update-grub.
36676
36677 2007-06-23 Robert Millan <rmh@aybabtu.com>
36678
36679 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
36680
36681 2007-06-21 Robert Millan <rmh@aybabtu.com>
36682
36683 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
36684 indicate end of data section in kernel image.
36685 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
36686 GRUB_KERNEL_MACHINE_DATA_END.
36687
36688 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
36689 space for it.
36690 * kern/i386/efi/startup.S: Likewise.
36691
36692 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
36693 during image generation. Implement --prefix option to override this
36694 patch.
36695 * util/i386/efi/grub-mkimage.c: Likewise.
36696
36697 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
36698 code to make path relative to its root into a separate function.
36699
36700 * util/i386/pc/grub-install.in: Use newly provided
36701 make_system_path_relative_to_its_root() to convert ${grubdir}, then
36702 pass the result to grub-install --prefix.
36703
36704 2007-06-13 Robert Millan <rmh@aybabtu.com>
36705
36706 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
36707 DEFAULT_DEVICE_MAP.
36708 * util/grub-emu.c: Use above definitions from misc.h instead of
36709 defining them.
36710 * util/grub-mkdevicemap.c: Likewise.
36711 * util/i386/pc/grub-setup.c: Likewise.
36712 * util/grub-probe.c: Likewise.
36713 (probe): Abort with grub_util_error() when either
36714 grub_guess_root_device or grub_util_get_grub_dev fails.
36715
36716 2007-06-12 Robert Millan <rmh@aybabtu.com>
36717
36718 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
36719 "pager" assignment.
36720 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
36721 "pcdata".
36722 * util/grub-probe.c (probe): Likewise for "drive_name".
36723
36724 2007-06-11 Robert Millan <rmh@aybabtu.com>
36725
36726 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
36727 not just the cdrom one.
36728
36729 2007-06-11 Robert Millan <rmh@aybabtu.com>
36730
36731 * util/i386/pc/grub-mkrescue.in: Add "set -e".
36732 Add --pkglibdir=DIR option to override pkglibdir.
36733 Mention --image-type=TYPE in help output.
36734 Fix --grub-mkimage (it was a no-op).
36735 Abort gracefully when no parameter is given.
36736
36737 2007-06-11 Robert Millan <rmh@aybabtu.com>
36738
36739 * util/i386/pc/grub-mkrescue.in: New file.
36740 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
36741 * Makefile.in: Handle bin_SCRIPTS.
36742
36743 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
36744
36745 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
36746 list of video modes.
36747
36748 2007-06-06 Robert Millan <rmh@aybabtu.com>
36749
36750 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
36751 file doesn't exist, or if it is in a filesystem grub can't read.
36752
36753 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
36754 not abort if GRUB_DRIVE could not be defined. Rearrange generated
36755 header comment to fit in 80 columns when the variables are resolved.
36756
36757 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
36758 could be identified by update-grub. Remove redundant check for
36759 unifont.pff existence (since convert_system_path_to_grub_path now
36760 handles that).
36761
36762 2007-06-04 Robert Millan <rmh@aybabtu.com>
36763
36764 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
36765
36766 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
36767
36768 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
36769
36770 2007-06-04 Robert Millan <rmh@aybabtu.com>
36771
36772 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
36773
36774 * include/grub/partition.h: Declare grub_apple_partition_map_init and
36775 grub_apple_partition_map_fini.
36776
36777 * util/biosdisk.c
36778 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
36779 to access >2 TiB disks).
36780
36781 Print disk->total_sectors with %llu instead of %lu, since this
36782 variable is always 64-bit (prevents wrong disk size from being displayed
36783 on either >2 TiB disk or big-endian CPU).
36784
36785 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
36786 into a generic case that supports all (sane) partition maps.
36787
36788 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
36789 breaks big-endian.
36790
36791 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
36792 and grub_apple_partition_map_fini() after that.
36793
36794 2007-06-01 Robert Millan <rmh@aybabtu.com>
36795
36796 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
36797
36798 * util/grub.d/00_header.in: Only enable gfxterm when
36799 convert_system_path_to_grub_path() succeeds.
36800
36801 2007-05-20 Robert Millan <rmh@aybabtu.com>
36802
36803 * util/update-grub_lib.in: New file.
36804 * DISTLIST: Add update-grub_lib.in.
36805 * conf/common.rmk: Generate update-grub_lib and install it in
36806 $(lib_DATA).
36807 * Makefile.in: Add install routine for $(lib_DATA).
36808
36809 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
36810 function provided by update-grub_lib to support arbitrary paths of
36811 unifont.pff.
36812 * util/update-grub.in: Use convert_system_path_to_grub_path() to
36813 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
36814
36815 2007-05-19 Robert Millan <rmh@aybabtu.com>
36816
36817 * commands/i386/cpuid.c: New module.
36818 * DISTLIST: Add it.
36819 * conf/i386-efi.rmk: Enable cpuid.mod.
36820 * conf/i386-pc.rmk: Likewise.
36821
36822 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
36823
36824 * kern/disk.c (grub_disk_read): Check return value of
36825 grub_realloc().
36826
36827 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
36828
36829 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
36830 arrays.
36831 * disk/raid.c (grub_raid_open): Likewise.
36832
36833 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
36834
36835 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
36836 stack instead of on the heap.
36837
36838 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
36839 before doing a read on it.
36840
36841 * configure.ac: Only use -fno-stack-protector for the target
36842 environment.
36843
36844 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
36845
36846 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
36847 __attribute_ ((unused)) to mode_type argument.
36848
36849 * util/getroot.c (grub_guess_root_device): Fix #endif.
36850
36851 * kern/misc.c (memcmp): Fix prototype.
36852
36853 * include/grub/partition.h [GRUB_UTIL]
36854 (grub_gpt_partition_map_init): Add prototype.
36855 (grub_gpt_partition_map_fini): Likewise.
36856
36857 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
36858 at the right place.
36859
36860 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
36861 (grub_fat_read_data): Likewise.
36862 (grub_fat_find_dir): Likewise.
36863
36864 * font/manager.c (find_glyph): Make table a const.
36865 (grub_font_get_glyph): Remove bitmap from if statement.
36866
36867 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
36868
36869 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
36870 code, first search for device in /dev/mapper, then in /dev.
36871 (grub_util_get_grub_dev): New function.
36872 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
36873 prototype.
36874 * util/grub-probe.c (probe): Remove check for RAID, call
36875 grub_util_get_grub_dev() instead of
36876 grub_util_biosdisk_get_grub_dev().
36877 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
36878 grub_util_biosdisk_get_grub_dev().
36879 * util/i386/pc/grub-setup.c (main): Likewise.
36880
36881 2007-05-16 Robert Millan <rmh@aybabtu.com>
36882
36883 * DISTLIST: Update for the latest changes.
36884 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
36885 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
36886 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
36887 grub/util/biosdisk.h.
36888 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
36889 grub/util/biosdisk.h.
36890
36891 2007-05-16 Robert Millan <rmh@aybabtu.com>
36892
36893 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
36894
36895 2007-05-16 Robert Millan <rmh@aybabtu.com>
36896
36897 * util/i386/efi/grub-install.in: New.
36898 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
36899 newly added grub-install.
36900 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
36901 include.
36902 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
36903 grub/util/biosdisk.h.
36904 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
36905 grub/util/biosdisk.h.
36906
36907 2007-05-16 Robert Millan <rmh@aybabtu.com>
36908
36909 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
36910 * include/grub/util/biosdisk.h: ... here.
36911 * util/i386/pc/biosdisk.c: Moved to ...
36912 * util/biosdisk.c: ... here.
36913 * util/i386/pc/getroot.c: Moved to ...
36914 * util/getroot.c: ... here.
36915 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
36916 * util/grub-mkdevicemap.c: ... here.
36917 * util/i386/pc/grub-probe.c: Moved to ...
36918 * util/grub-probe.c: ... here.
36919
36920 2007-05-15 Robert Millan <rmh@aybabtu.com>
36921
36922 * util/update-grub.in: Remove duplicated line in grub.cfg header
36923 message.
36924
36925 2007-05-13 Robert Millan <rmh@aybabtu.com>
36926
36927 * util/update-grub.in: Fix a few assumptions about the devices holding
36928 /, /boot and /boot/grub being the same.
36929 * util/grub.d/00_header.in: Likewise.
36930 * util/grub.d/10_hurd.in: Likewise.
36931 * util/grub.d/10_linux.in: Likewise.
36932
36933 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
36934 patterns. Use that to define the `.old' suffix as older than `'.
36935
36936 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
36937
36938 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
36939 the grub.cfg header message.
36940
36941 2007-05-11 Robert Millan <rmh@aybabtu.com>
36942
36943 * util/update-grub.in: Create device.map if it doesn't already exist,
36944 before attempting to run grub-probe.
36945 Check for grub-probe and grub-mkdevicemap with the same code
36946 grub-install is using.
36947 Remove test mode.
36948
36949 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
36950
36951 * Makefile.in: Add the datarootdir autoconf variable.
36952
36953 2007-05-09 Robert Millan <rmh@aybabtu.com>
36954
36955 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
36956 fail gracefully if dev->disk->partition == NULL.
36957
36958 2007-05-07 Robert Millan <rmh@aybabtu.com>
36959
36960 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
36961 determine partition map module.
36962 * util/i386/pc/grub-install.in: Use this feature to decide which
36963 partition module to load, instead of hardcoding pc and gpt.
36964
36965 2007-05-07 Robert Millan <rmh@aybabtu.com>
36966
36967 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
36968 source directory differs from build directory.
36969
36970 2007-05-05 Robert Millan <rmh@aybabtu.com>
36971
36972 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
36973 initialisation.
36974
36975 2007-05-05 Robert Millan <rmh@aybabtu.com>
36976
36977 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
36978
36979 2007-05-05 Robert Millan <rmh@aybabtu.com>
36980
36981 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
36982 command-line arguments via ${GRUB_CMDLINE_LINUX}.
36983
36984 2007-05-05 Robert Millan <rmh@aybabtu.com>
36985
36986 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
36987 (grub_probe_SOURCES): Likewise.
36988 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
36989 GPT and initialize dos_part and bsd_part accordingly.
36990 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
36991 install_bsd_part.
36992 (main): Activate gpt module for use during partition identification,
36993 and deactivate it afterwards.
36994 * util/i386/pc/grub-install.in: Add gpt module to core.img.
36995 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
36996 partition identification, and deactivate it afterwards.
36997
36998 2007-05-05 Robert Millan <rmh@aybabtu.com>
36999
37000 * term/i386/pc/console.c (grub_console_fini): Call
37001 grub_term_set_current() before grub_term_unregister().
37002
37003 2007-05-04 Robert Millan <rmh@aybabtu.com>
37004
37005 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
37006 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
37007 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
37008 and update-grub_DATA.
37009 * conf/common.rmk: Build and install update-grub components.
37010 * conf/common.mk: Regenerate.
37011 * util/update-grub.in: New. Core of update-grub.
37012 * util/grub.d/00_header.in: New. Generates grub.cfg header.
37013 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
37014 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
37015 * util/grub.d/README: New. Document grub.d directory layout.
37016
37017 2007-05-01 Robert Millan <rmh@aybabtu.com>
37018
37019 * util/grub-emu.c: Move initialization functions
37020 grub_util_biosdisk_init() and grub_init_all() before
37021 grub_util_biosdisk_get_grub_dev(), which relies on them.
37022
37023 2007-04-19 Robert Millan <rmh@aybabtu.com>
37024
37025 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
37026 it is used later.
37027
37028 2007-04-18 Jerone Young <jerone@gmail.com>
37029
37030 * kernel/elf.c: Add missing parenthesis for conditional statement
37031 stanza.
37032
37033 2007-04-10 Jerone Young <jerone@gmail.com>
37034
37035 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
37036 continue on and look for device node with real device name.
37037
37038 2007-04-10 Jerone Young <jerone@gmail.com>
37039
37040 * configure.ac: Add argument for autoconf to use transformation
37041 ability.
37042 * Makefile.in: Add autoconf package transformation code.
37043 * util/i386/pc/grub-install.in: Likewise.
37044 * util/powerpc/ieee1275/grub-install.in: Likewise.
37045
37046 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
37047
37048 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
37049 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
37050 (EXT2_REVISION): Likewise.
37051 (EXT2_INODE_SIZE): Likewise.
37052 (struct grub_ext2_block_group): Added a missing member
37053 "used_dirs".
37054 (grub_ext2_read_inode): Divide by the inode size in a superblock
37055 instead of 128 to obtain INODES_PER_BLOCK.
37056 Use the macro EXT2_INODE_SIZE instead of directly using
37057 SBLOCK->INODE_SIZE.
37058
37059 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
37060
37061 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
37062 superblock instead of the structure size to compute an
37063 offset. This fixes the problem that GRUB could not read a
37064 filesystem when inode size is different from 128-byte.
37065
37066 2007-03-05 Marco Gerards <marco@gnu.org>
37067
37068 * normal/main.c (read_config_file): When "menu" is not set, create
37069 an initial context.
37070
37071 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
37072
37073 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
37074 (HEAP_LIMIT): New macro.
37075 (grub_claim_heap): Claim memory up to `heaplimit'.
37076
37077 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
37078
37079 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
37080 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
37081 (_start): Likewise.
37082 (grub_arch_modules_addr): Return address after `_end'.
37083 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
37084 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
37085 (add_segments): Calculate `_end' from phdr size and location.
37086 (ALIGN_UP): Moved to ...
37087 * include/grub/misc.h: here.
37088 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
37089 New macro.
37090 (GRUB_IEEE1275_MODULE_BASE): Removed.
37091
37092 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
37093
37094 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
37095 loop boundary.
37096
37097 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
37098
37099 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
37100 All users updated.
37101 (grub_elf64_load_hook_t): Likewise.
37102 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
37103 debug output.
37104
37105 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
37106
37107 * kern/mm.c: Update copyright.
37108 (grub_mm_debug): Correct syntax error.
37109 (grub_mm_dump_free): New function.
37110 (grub_debug_free): Call `grub_free'.
37111 * include/grub/mm.h: Update copyright.
37112 (grub_mm_dump_free): Add declaration.
37113
37114 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
37115
37116 * include/grub/ieee1275/ieee1275.h: Update copyright.
37117 * kern/powerpc/ieee1275/init.c: Likewise.
37118 * kern/powerpc/ieee1275/openfw.c: Likewise.
37119
37120 * loader/powerpc/ieee1275/linux.c: Likewise.
37121 * include/grub/elfload.h: Likewise.
37122 * kern/elf.c: Likewise.
37123 (grub_elf32_load): Pass `base' and `size' parameters. Update all
37124 callers.
37125 (grub_elf64_load): Likewise.
37126 (grub_elf32_load_segment): Move to a nested function.
37127 (grub_elf64_load_segment): Likewise.
37128
37129 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
37130
37131 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
37132 prototype.
37133 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
37134 (grub_heap_len): Likewise.
37135 (HEAP_SIZE): New macro.
37136 (grub_claim_heap): New function.
37137 (grub_machine_init): Don't claim heap directly. Call
37138 `grub_claim_heap'.
37139 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
37140 (grub_available_iterate): New function.
37141
37142 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
37143
37144 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
37145 * configure.ac: Use it for testing the HOST and TARGET compilers.
37146
37147 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
37148
37149 * Makefile.in (enable_grub_emu): New variable.
37150 * configure.ac (--enable-grub-emu): New option.
37151 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
37152 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
37153 * conf/i386-pc.rmk: Likewise.
37154 * conf/powerpc-ieee1275.rmk: Likewise.
37155 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
37156
37157 2006-12-12 Marco Gerards <marco@gnu.org>
37158
37159 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
37160
37161 * kern/env.c (grub_env_unset): Don't free the member `value' when
37162 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
37163 pointer.
37164
37165 * normal/main.c (current_menu): Removed.
37166 (free_menu): Unset the `menu' environment variable.
37167 (grub_normal_menu_addentry): Make use of the environment variable
37168 `menu', instead of using the global `current_menu'. Allocate
37169 memory for the sourcecode of this entry.
37170 (read_config_file): New argument `nested', changed all callers.
37171 Only in the case of a new context, initialize a new menu. Set the
37172 `menu' environment variable.
37173 (grub_normal_execute): Don't set and unset the environment
37174 variable `menu' here anymore. Only free the menu when leaving the
37175 context.
37176
37177 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
37178 leak.
37179
37180 2006-12-11 Marco Gerards <marco@gnu.org>
37181
37182 * normal/menu_entry.c (run): Fix off by one bug so the last line
37183 is executed. Move the loader check to outside the loop.
37184
37185 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
37186
37187 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
37188
37189 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
37190
37191 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
37192 the number of sectors. Reported by Andrey Shuvikov
37193 <mr_hyro@yahoo.com>.
37194
37195 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
37196
37197 * kern/disk.c (grub_disk_read): When there is a read error, always
37198 try to read only the necessary data.
37199
37200 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
37201 disk/raid.c.
37202 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
37203 prototype.
37204 [GRUB_UTIL] (grub_raid_fini): Likewise.
37205 [GRUB_UTIL] (grub_lvm_init): Likewise.
37206 [GRUB_UTIL] (grub_lvm_fini): Likewise.
37207 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
37208 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
37209 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
37210 and grub_raid_fini().
37211
37212 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
37213
37214 * include/grub/types.h (__unused): Rename to UNUSED.
37215 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
37216 (grub_elf64_size): Likewise.
37217
37218 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
37219
37220 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
37221 grub_error_push and grub_error_pop in the error-handling path.
37222 (grub_elf32_load_segment): Only call grub_file_read with non-zero
37223 length.
37224
37225 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
37226
37227 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
37228 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37230 (kernel_elf_SOURCES): Likewise.
37231 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
37232 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
37233 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
37234 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
37235 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
37236 (elf_mod_SOURCES): New variable.
37237 (elf_mod_CFLAGS): Likewise.
37238 (elf_mod_LDFLAGS): Likewise.
37239 * include/grub/types.h (__unused): New macro.
37240 * include/grub/elfload.h: New file.
37241 * kern/elf.c: Likewise.
37242 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
37243 (ELF32_LOADMASK): New macro.
37244 (ELF64_LOADMASK): Likewise.
37245 (vmlinux): Removed.
37246 (grub_linux_load32): New function.
37247 (grub_linux_load64): Likewise.
37248 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
37249 Use grub_elf_t instead of grub_file_t.
37250
37251 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
37252
37253 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
37254 `catch_result' to struct set_color_args.
37255
37256 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
37257
37258 * normal/menu.c: Include grub/script.h.
37259 * normal/menu_entry.c: Likewise.
37260 * include/grub/normal.h: Do not include grub/script.h.
37261
37262 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
37263
37264 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
37265
37266 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
37267
37268 * kern/disk.c (grub_disk_open): Print debug messages when opening a
37269 disk.
37270 (grub_disk_close): Print debug messages when closing a disk.
37271 (grub_disk_read): Print debug messages when disk read fails.
37272 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
37273 filesystem type.
37274 * kern/partition.c: Include misc.h.
37275 (grub_partition_iterate): Print debug messages when detecting
37276 partition type.
37277
37278 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
37279
37280 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
37281 is negative.
37282 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
37283
37284 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
37285
37286 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
37287 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
37288
37289 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
37290
37291 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
37292 instead of sizeof(lv). Patch by Michael Guntsche.
37293
37294 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
37295
37296 * disk/lvm.c: Rename VGS to VG_LIST.
37297 (grub_lvm_iterate): Change VGS->LV to VG-LV.
37298 (grub_lvm_open): Likewise.
37299 Thanks to Michael Guntsche for finding this bug.
37300
37301 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37302
37303 * configure.ac (AC_INIT): Bumped to 1.95.
37304
37305 2006-10-14 Robert Millan <rmh@aybabtu.com>
37306
37307 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
37308 with "/dev/.static/dev/md".
37309
37310 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
37311
37312 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
37313 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
37314 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
37315 DRIVE_NAME are always freed.
37316
37317 * util/i386/pc/biosdisk.c (make_device_name): Add one into
37318 DOS_PART, as a DOS partition is counted from one instead of zero
37319 now. Reported by Robert Millan.
37320
37321 2006-10-14 Robert Millan <rmh@aybabtu.com>
37322
37323 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
37324 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
37325 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
37326 string returned by grub_guess_root_device.
37327 * util/i386/pc/grub-setup.c: Likewise.
37328 * util/i386/pc/grub-probefs.c: Likewise.
37329
37330 * util/i386/pc/grub-probefs.c: Rename to ...
37331 * util/i386/pc/grub-probe.c: ... this.
37332 * DISTLIST: Remove grub-probefs, add grub-probe.
37333 * conf/i386-efi.rmk: Likewise.
37334 * conf/i386-pc.rmk: Likewise.
37335 * util/i386/pc/grub-install.in: Likewise.
37336
37337 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
37338 choose which information we want to print.
37339
37340 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
37341
37342 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
37343 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
37344 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
37345 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
37346 video/readers/tga.c and video/i386/pc/vbeutil.c.
37347
37348 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
37349
37350 Added support for RAID and LVM.
37351
37352 * disk/lvm.c: New file.
37353 * disk/raid.c: Likewise.
37354 * include/grub/lvm.h: Likewise.
37355 * include/grub/raid.h: Likewise.
37356 * include/grub/util/lvm.h: Likewise.
37357 * include/grub/util/raid.h: Likewise.
37358 * util/lvm.c: Likewise.
37359 * util/raid.c: Likewise.
37360
37361 * include/grub/disk.h (grub_disk_dev_id): Add
37362 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
37363 (grub_disk_get_size): New prototype.
37364 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
37365 returns a partition.
37366 (grub_disk_get_size): New function.
37367
37368 * kern/i386/pc/init.c (make_install_device): Copy the prefix
37369 verbatim if grub_install_dos_part is -2.
37370
37371 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
37372 and LVM devices.
37373
37374 * util/i386/pc/grub-setup.c (setup): New argument
37375 MUST_EMBED. Force embedding of GRUB when the argument is
37376 true. Close FILE before returning.
37377 (main): Add support for RAID and LVM.
37378
37379 * conf/common.rmk: Add RAID and LVM modules.
37380 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
37381 util/lvm.c.
37382 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
37383
37384 * kern/misc.c (grub_strstr): New function.
37385 * include/grub/misc.h (grub_strstr): New prototype.
37386
37387 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
37388
37389 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
37390
37391 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
37392
37393 * kern/misc.c (grub_strtoull): Guess the base only if not
37394 specified.
37395
37396 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
37397
37398 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
37399 PowerMac support.
37400
37401 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
37402
37403 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
37404
37405 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
37406 Remove `flags' argument. All callers changed.
37407 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
37408 (IEEE1275_IHANDLE_INVALID): New variable.
37409 (IEEE1275_CELL_INVALID): New variable.
37410 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
37411 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
37412 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
37413 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
37414 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
37415 codes from Open Firmware. All callers updated.
37416 (grub_ieee1275_next_property): Directly return Open Firmware return
37417 code.
37418 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37419 Standardize error checking from `grub_ieee1275_get_property'.
37420 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
37421 `devalias' to `aliases'. Correct comments. Consolidate error paths.
37422
37423 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
37424
37425 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
37426 `instance_to_package_args' to `instance_to_path_args'.
37427
37428 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
37429 `grub_ieee1275_chosen'.
37430
37431 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
37432 `grub_ieee1275_interpret'.
37433
37434 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
37435
37436 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
37437
37438 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
37439
37440 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
37441 (__cmpdi): Likewise.
37442
37443 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
37444 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
37445 `grub_ssize_t'.
37446
37447 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
37448
37449 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
37450 to type `grub_ssize_t'.
37451 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
37452
37453 2006-09-22 Marco Gerards <marco@gnu.org>
37454
37455 * normal/script.c (grub_script_create_cmdmenu): Skip leading
37456 newlines.
37457
37458 2006-09-22 Marco Gerards <marco@gnu.org>
37459
37460 * commands/echo.c: New file.
37461
37462 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
37463
37464 * conf/common.rmk (echo_mod_SOURCES): New variable.
37465 (echo_mod_CFLAGS): Likewise.
37466 (echo_mod_LDFLAGS): Likewise.
37467
37468 2006-09-22 Marco Gerards <marco@gnu.org>
37469
37470 * normal/main.c (get_line): Malloc memory instead of using
37471 preallocated memory. Removed the arguments `cmdline' and
37472 `max_len'. Updated all callers.
37473
37474 2006-09-22 Marco Gerards <marco@gnu.org>
37475
37476 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
37477 (normal_mod_DEPENDENCIES): Likewise.
37478
37479 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
37480 (normal_mod_DEPENDENCIES): Likewise.
37481
37482 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
37483
37484 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
37485
37486 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
37487 programs.
37488 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
37489 (normal_mod_DEPENDENCIES): Likewise.
37490 * conf/i386-pc.mk: Regenerate.
37491 * conf/i386-efi.mk: Likewise
37492 * conf/common.mk: Likewise.
37493 * conf/powerpc-ieee1275.mk: Likewise.
37494 * conf/sparc64-ieee1275.mk: Likewise.
37495
37496 2006-09-22 Robert Millan <rmh@aybabtu.com>
37497
37498 Sync with i386 version.
37499 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
37500 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
37501
37502 2006-09-21 Robert Millan <rmh@aybabtu.com>
37503
37504 Import from GRUB Legacy (lib/device.c):
37505 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
37506 (init_device_map) [__linux__]: Add support for I2O devices.
37507
37508 2006-09-14 Marco Gerards <marco@gnu.org>
37509
37510 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
37511 `-melf_i386'.
37512
37513 2006-09-14 Robert Millan <rmh@aybabtu.com>
37514
37515 * util/i386/pc/grub-install.in: Skip menu.lst when removing
37516 /boot/grub/*.lst.
37517
37518 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
37519
37520 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
37521 before adding it to device.map.
37522
37523 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
37524
37525 * genmk.rb: Let GCC generate dependencies the first time it
37526 compiles a file; using the -MD option.
37527 * conf/common.mk: Regenerate.
37528 * conf/i386-pc.mk: Likewise.
37529 * conf/i386-efi.mk: Likewise.
37530 * conf/powerpc-ieee1275.mk: Likewise.
37531 * conf/sparc64-ieee1275.mk: Likewise.
37532
37533 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
37534
37535 Move the prototypes of grub_setjmp and grub_longjmp to
37536 cpu/setjmp.h, so that each architecture may specify different
37537 attributes.
37538
37539 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
37540 (grub_longjmp): Likewise.
37541 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
37542 (grub_longjmp): Likewise.
37543 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
37544 (grub_longjmp): Likewise.
37545
37546 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
37547 [!GRUB_UTIL] (grub_longjmp): Removed.
37548
37549 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
37550
37551 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
37552 "color!" method does not return any value.
37553
37554 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
37555
37556 * include/grub/bitmap.h: New file.
37557
37558 * include/grub/i386/pc/vbeutil.h: Likewise.
37559
37560 * video/bitmap.c: Likewise.
37561
37562 * video/readers/tga.c: Likewise.
37563
37564 * video/i386/pc/vbeutil.c: Likewise.
37565
37566 * commands/videotest.c: Code cleanup and updated to reflect to new
37567 video API.
37568
37569 * term/gfxterm.c: Likewise.
37570
37571 * video/video.c: Likewise.
37572
37573 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
37574 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
37575 (bitmap_mod_SOURCES): New entry.
37576 (bitmap_mod_CFLAGS): Likewise.
37577 (bitmap_mod_LDFLAGS): Likewise.
37578 (tga_mod_SOURCES): Likewise.
37579 (tga_mod_CFLAGS): Likewise.
37580 (tga_mod_LDFLAGS): Likewise.
37581
37582 * include/grub/video.h (grub_video_blit_operators): New enum type.
37583 (grub_video_render_target): Changed as forward declaration and moved
37584 actual definition to be video driver specific.
37585 (grub_video_adapter.blit_bitmap): Added blitting operator.
37586 (grub_video_adapter.blit_render_target): Likewise.
37587 (grub_video_blit_bitmap): Likewise.
37588 (grub_video_blit_render_target): Likewise.
37589
37590 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
37591 driver specific render target definition.
37592 (grub_video_vbe_map_rgba): Added driver internal helper.
37593 (grub_video_vbe_unmap_color): Updated to use
37594 grub_video_i386_vbeblit_info.
37595 (grub_video_vbe_get_video_ptr): Likewise.
37596
37597 * include/grub/i386/pc/vbeblit.h
37598 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
37599 grub_video_i386_vbeblit_info.
37600 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37601 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37602 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37603 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37604 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37605 (grub_video_i386_vbeblit_index_index): Likewise.
37606 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
37607 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37608 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37609 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
37610 operator.
37611 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
37612 operator.
37613
37614 * video/i386/pc/vbeblit.c: Updated to reflect changes on
37615 include/grub/i386/pc/vbeblit.h.
37616
37617 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
37618 Updated to use grub_video_i386_vbeblit_info.
37619 (grub_video_i386_vbefill_R8G8B8): Likewise.
37620 (grub_video_i386_vbefill_index): Likewise.
37621 (grub_video_i386_vbefill): Added generic filler.
37622
37623 * video/i386/pc/vbefill.c: Updated to reflect changes on
37624 include/grub/i386/pc/vbefill.h.
37625
37626 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
37627 grub_video_i386_vbeblit_info.
37628 (grub_video_vbe_unmap_color): Likewise.
37629 (grub_video_vbe_blit_glyph): Likewise.
37630 (grub_video_vbe_scroll): Likewise.
37631 (grub_video_vbe_draw_pixel): Removed function.
37632 (grub_video_vbe_get_pixel): Likewise.
37633 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
37634 updated code to use it.
37635 (common_blitter): Added common blitter for render target and bitmap.
37636 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
37637 (grub_video_vbe_blit_render_target): Likewise.
37638
37639 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
37640
37641 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
37642 is in text mode if there is no console control protocol instance
37643 available.
37644
37645 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
37646
37647 * include/grub/video.h: Code cleanup.
37648
37649 * include/grub/i386/pc/vbe.h: Likewise.
37650
37651 * video/i386/pc/vbe.c: Likewise.
37652
37653 * video/i386/pc/vbeblit.c: Likewise.
37654
37655 * video/i386/pc/vbefill.c: Likewise.
37656
37657 * video/video.c: Likewise. Also added more comments.
37658
37659 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
37660
37661 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
37662 (struct grub_biosdisk_dap): Likewise.
37663
37664 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
37665 linkage settings for all functions.
37666
37667 2006-07-12 Marco Gerards <marco@gnu.org>
37668
37669 * configure.ac (--enable-mm-debug): Fix typo.
37670
37671 * genkernsyms.sh.in: Use proper quoting for `CC'.
37672
37673 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
37674
37675 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
37676 (normal_mod_ASFLAGS): Remove "-m32".
37677
37678 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
37679
37680 * util/misc.c: Include config.h.
37681 [!HAVE_MEMALIGN]: Do not include malloc.h.
37682 (grub_memalign): Use posix_memalign, if present. Then, use
37683 memalign, if present. Otherwise, emit an error.
37684
37685 * util/grub-emu.c: Do not include malloc.h.
37686
37687 * include/grub/util/misc.h: Include unistd.h. This is required for
37688 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
37689 D. Eades III <hde@foobar-qux.org>.
37690
37691 * configure.ac (AC_GNU_SOURCE): Added.
37692 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
37693 type.
37694
37695 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
37696
37697 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
37698 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
37699
37700 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
37701
37702 * include/grub/types.h (grub_host_addr_t): Rename to
37703 grub_target_addr_t.
37704 (grub_host_off_t): Rename to grub_target_off_t.
37705 (grub_host_size_t): Rename to grub_target_size_t.
37706 (grub_host_ssize_t): Rename to grub_target_ssize_t.
37707 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
37708
37709 * include/grub/kernel.h (struct grub_module_header): Change type
37710 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
37711 (grub_module_info): Likewise.
37712
37713 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
37714
37715 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
37716 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
37717 Velazquez <jesus.velazquez@gmail.com>.
37718
37719 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
37720
37721 Count partitions from 1 instead of 0 in the string representation
37722 of partitions. Still use 0-based internally.
37723
37724 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
37725 (sun_partition_map_iterate): Use grub_partition_t instead of
37726 struct grub_partition *. Cast DESC->START_CYLINDER to
37727 grub_uint64_t after converting the endian.
37728 (sun_partition_map_probe): Subtract 1 for PARTNUM.
37729 (sun_partition_map_get_name): Add 1 to P->INDEX.
37730
37731 * partmap/pc.c (grub_partition_parse): Subtract 1 for
37732 PCDATA->DOS_PART.
37733 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
37734
37735 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
37736 zero instead of one.
37737 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
37738 (gpt_partition_map_get_name): Add 1 into P->INDEX.
37739
37740 * partmap/apple.c (apple_partition_map_iterate): Change the type
37741 of POS to unsigned.
37742 (apple_partition_map_probe): Subtract 1 for PARTNUM.
37743 (apple_partition_map_get_name): Add 1 into P->INDEX.
37744
37745 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
37746 of POS to unsigned.
37747 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
37748 calculate the offset of a partition.
37749 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
37750 (amiga_partition_map_get_name): Add 1 into P->INDEX.
37751
37752 * partmap/acorn.c (acorn_partition_map_find): Change the type of
37753 SECTOR to grub_disk_addr_t.
37754 (acorn_partition_map_iterate): Likewise.
37755 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
37756 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
37757 top.
37758 (acorn_partition_map_get_name): Add 1 into P->INDEX.
37759
37760 * kern/i386/pc/init.c (make_install_device): Add 1 into
37761 GRUB_INSTALL_DOS_PART.
37762
37763 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
37764 conditional.
37765
37766 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
37767
37768 Clean up the code to support 64-bit addressing in disks and
37769 files. This change is not enough for filesystems yet.
37770
37771 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
37772 type of "start" to grub_uint64_t.
37773 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
37774 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
37775 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
37776 convert addresses.
37777
37778 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
37779 to grub_disk_addr_t.
37780
37781 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
37782 string.
37783
37784 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37785
37786 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
37787 to char *.
37788
37789 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
37790
37791 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
37792
37793 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
37794
37795 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
37796 to grub_off_t, to detect an error from grub_file_seek.
37797 (grub_multiboot_load_elf32): Likewise.
37798
37799 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
37800 maximum unsigned long value when an overflow is detected.
37801 (grub_strtoull): New function.
37802 (grub_divmod64): Likewise.
37803 (grub_lltoa): use grub_divmod64.
37804
37805 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
37806 grub_disk_addr_t.
37807 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
37808 the pointer to next character. Use grub_strtoull instead of
37809 grub_strtoul.
37810 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
37811 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
37812 respectively.
37813
37814 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
37815 return value is signed.
37816 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
37817 test if OFFSET is less than zero, as OFFSET is unsigned now.
37818
37819 * kern/disk.c (struct grub_disk_cache): Change the type of
37820 "sector" to grub_disk_addr_t.
37821 (grub_disk_cache_get_index): Change the type of SECTOR to
37822 grub_disk_addr_t. Calculate the hash with SECTOR casted to
37823 unsigned after shifting.
37824 (grub_disk_cache_invalidate): Change the type of SECTOR to
37825 grub_disk_addr_t.
37826 (grub_disk_cache_unlock): Likewise.
37827 (grub_disk_cache_store): Likewise.
37828 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
37829 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
37830 grub_disk_addr_t and grub_uint64_t, respectively.
37831 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
37832 body, as the value of OFFSET is tweaked by
37833 grub_disk_check_range. Change the types of START_SECTOR, LEN and
37834 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
37835 respectively.
37836 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
37837 body, as the value of OFFSET is tweaked by
37838 grub_disk_check_range. Change the types of LEN and N to
37839 grub_size_t.
37840
37841 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
37842 and "saved_offset" to grub_off_t.
37843 (test_header): Cast BUF to char *.
37844 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
37845 to char *.
37846 (grub_gzio_read): Change the types of OFFSET and SIZE to
37847 grub_off_t and grub_size_t, respectively.
37848
37849 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
37850 Removed.
37851 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
37852 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
37853 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
37854 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
37855 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
37856
37857 * include/grub/types.h (grub_off_t): Unconditionally set to
37858 grub_uint64_t.
37859 (grub_disk_addr_t): Changed to grub_uint64_t.
37860
37861 * include/grub/partition.h (struct grub_partition): Change the
37862 types of "start", "len" and "offset" to grub_disk_addr_t,
37863 grub_uint64_t and grub_disk_addr_t, respectively.
37864 (grub_partition_get_start): Return grub_disk_addr_t.
37865 (grub_partition_get_len): Return grub_uint64_t.
37866
37867 * include/grub/misc.h (grub_strtoull): New prototype.
37868 (grub_divmod64): Likewise.
37869
37870 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
37871 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
37872 grub_off_t, respectively.
37873 All callers and references changed.
37874
37875 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
37876 grub_size_t in "read".
37877 All callers and references changed.
37878
37879 * include/grub/file.h (struct grub_file): Change the types of
37880 "offset" and "size" to grub_off_t and grub_off_t,
37881 respectively. Change the type of SECTOR to grub_disk_addr_t in
37882 "read_hook".
37883 (grub_file_read): Change the type of LEN to grub_size_t.
37884 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
37885 grub_off_t.
37886 (grub_file_size): Return grub_off_t.
37887 (grub_file_tell): Likewise.
37888 All callers and references changed.
37889
37890 * include/grub/disk.h (struct grub_disk_dev): Change the types of
37891 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
37892 "write".
37893 (struct grub_disk): Change the type of "total_sectors" to
37894 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
37895 "read_hook".
37896 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
37897 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
37898 (grub_disk_write): Likewise.
37899 All callers and references changed.
37900
37901 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
37902 char * for grub_strncmp to silence gcc.
37903 (grub_iso9660_mount): Likewise.
37904 (grub_iso9660_mount): Likewise.
37905 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
37906 return statement.
37907 (grub_iso9660_iterate_dir): Likewise.
37908 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
37909
37910 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
37911 LEN to grub_disk_addr_t and grub_size_t, respectively.
37912
37913 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
37914
37915 * fs/jfs.c (grub_jfs_read_file): Likewise.
37916
37917 * fs/minix.c (grub_jfs_read_file): Likewise.
37918
37919 * fs/sfs.c (grub_jfs_read_file): Likewise.
37920
37921 * fs/ufs.c (grub_jfs_read_file): Likewise.
37922
37923 * fs/xfs.c (grub_jfs_read_file): Likewise.
37924
37925 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
37926 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
37927 respectively.
37928
37929 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
37930 BLKNR to -1 instead of returning GRUB_ERRNO.
37931 (grub_ext2_read_file): Change the types of SECTOR and
37932 LEN to grub_disk_addr_t and grub_size_t, respectively.
37933
37934 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
37935 LEN to grub_disk_addr_t and grub_size_t, respectively.
37936
37937 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
37938 grub_file_read.
37939
37940 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
37941 string. Do not cast SECTOR explicitly.
37942
37943 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
37944 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
37945 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
37946 grub_disk_addr_t and grub_size_t, respectively. If the sector is
37947 over 2TB and LBA mode is not supported, raise an error.
37948 (get_safe_sectors): New function.
37949 (grub_biosdisk_read): Use get_safe_sectors.
37950 (grub_biosdisk_write): Likewise.
37951
37952 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
37953 (grub_efidisk_write): Likewise.
37954
37955 * disk/loopback.c (delete_loopback): Cosmetic changes.
37956 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
37957 correctly.
37958 (grub_loopback_open): Likewise.
37959 (grub_loopback_read): Likewise. Also, change the type of POS to
37960 grub_off_t, and fix the usage of grub_memset.
37961
37962 * commands/i386/pc/play.c: Include grub/machine/time.h.
37963
37964 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
37965 print FILE->SIZE.
37966
37967 * commands/configfile.c: Include grub/env.h.
37968
37969 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
37970 GRUB_ERRNO directly instead. Change the type of POS to
37971 grub_off_t. Follow the coding standard.
37972
37973 * commands/blocklist.c: Include grub/partition.h.
37974 (grub_cmd_blocklist): Return an error if the underlying device is
37975 not a disk. Take the starting sector of a partition into account,
37976 if a partition is used.
37977
37978 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
37979 a length field.
37980 (lba_mode): Support 64-bit addresses.
37981 (chs_mode): Likewise.
37982 (copy_buffer): Adapted to the new offsets of a length field and a
37983 segment field.
37984 (blocklist_default_start): Allocate 64-bit space.
37985
37986 * boot/i386/pc/boot.S (force_lba): Removed.
37987 (boot_drive): Moved to under KERNEL_SECTOR.
37988 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
37989 space.
37990 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
37991 is useless.
37992 (lba_mode): Refactored to support a 64-bit address. More size
37993 optimization.
37994 (setup_sectors): Likewise.
37995
37996 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
37997
37998 * DISTLIST: Added include/grub/i386/linux.h. Removed
37999 include/grub/i386/pc/linux.h
38000
38001 * configure.ac (AC_INIT): Bumped to 1.94.
38002
38003 * config.guess: Updated from gnulib.
38004 * config.sub: Likewise.
38005 * install-sh: Likewise.
38006 * mkinstalldirs: Likewise.
38007
38008 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
38009
38010 * conf/common.rmk (grub_modules_init.lst): Depended on
38011 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
38012 MODSRCFILES.
38013
38014 * genmk.rb (PModule::rule): Reverted the previous change.
38015
38016 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
38017
38018 * conf/common.rmk (grub_modules_init.lst): Depends on
38019 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
38020 that the target does not exist before producing.
38021 (grub_modules_init.h): Remove the target before generating.
38022 (grub_emu_init.c): Likewise.
38023
38024 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
38025
38026 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
38027
38028 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
38029 for the target-specific tests. Make sure that we also have the
38030 up-to-date target variables for those tests.
38031
38032 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
38033
38034 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
38035 (PModule::rule): Likewise.
38036
38037 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
38038
38039 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
38040 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
38041 target-specific flags should be prefixed.
38042 (PModule::rule): Likewise.
38043
38044 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
38045
38046 * configure.ac (CMP): Check if cmp is available explicitly.
38047
38048 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
38049
38050 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
38051 (target_cpu): New variable.
38052 (pkglibdir): Use target_cpu instead of host_cpu.
38053
38054 * util/i386/pc/grub-install.in (host_cpu): Removed.
38055 (target_cpu): New variable.
38056 (pkglibdir): Use target_cpu instead of host_cpu.
38057
38058 * util/genmoddep.c: Removed.
38059
38060 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
38061 instead of GRUB_HOST_SIZEOF_VOID_P.
38062 * kern/dl.c: Likewise.
38063
38064 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
38065 ...
38066 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
38067 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
38068 (GRUB_TARGET_SIZEOF_LONG): ... this.
38069 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
38070 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
38071 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
38072 to ...
38073 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
38074 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
38075 (GRUB_TARGET_SIZEOF_LONG): ... this.
38076 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
38077 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
38078 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
38079 to ...
38080 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
38081 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
38082 (GRUB_TARGET_SIZEOF_LONG): ... this.
38083 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
38084 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
38085
38086 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
38087 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
38088 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
38089 instead of GRUB_HOST_SIZEOF_LONG.
38090 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
38091 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
38092 GRUB_CPU_WORDS_BIGENDIAN.
38093 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
38094 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
38095 grub_host_ssize_t.
38096
38097 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
38098 (genmoddep_SOURCES): Likewise.
38099 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
38100 (genmoddep_SOURCES): Likewise.
38101 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
38102 (genmoddep_SOURCES): Likewise.
38103 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
38104 Likewise.
38105 (genmoddep_SOURCES): Likewise.
38106
38107 * genmoddep.awk: New file.
38108
38109 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
38110 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
38111 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
38112 (PModule::rule): Likewise.
38113 (Program::rule): Likewise.
38114 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
38115 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
38116 respectively.
38117
38118 * configure.ac: Rewritten intensively to use host and target
38119 instead of build and host, respectively.
38120
38121 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
38122 (host_cpu): Removed.
38123 (target_cpu): New variable.
38124 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
38125 (BUILD_CC): Removed.
38126 (BUILD_CFLAGS): Likewise.
38127 (BUILD_CPPFLAGS): Likewise.
38128 (TARGET_CC): New variable.
38129 (TARGET_CFLAGS): Likewise.
38130 (TARGET_CPPFLAGS): Likewise.
38131 (TARGET_LDFLAGS): Likewise.
38132 (AWK): Likewise.
38133 (include): Use target_cpu instead of host_cpu.
38134 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
38135
38136 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
38137
38138 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
38139
38140 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
38141 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
38142 field 'false' to 'exec_on_false'.
38143 (grub_script_create_cmdif): Renamed argument names to reflect above
38144 changes.
38145
38146 * normal/execute.c (grub_script_execute_cmdif): Likewise.
38147
38148 * normal/script.c (grub_script_create_cmdif): Likewise.
38149
38150 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
38151
38152 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
38153 top.
38154 (grub_hfsplus_btree_recptr): Likewise.
38155 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
38156 FILEBLOCK both to pass a block number and store next block
38157 number.
38158 (grub_hfsplus_read_block): Rewritten heavily to support an extent
38159 overflow file correctly. Specify errors appropriately, because
38160 fshelp expects that GRUB_ERRNO is set when fails. Reuse
38161 grub_hfsplus_btree_recptr to get the pointer to a found key.
38162 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
38163 is found.
38164
38165 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
38166 linux.mod.
38167 (_linux_mod_SOURCES): New variable.
38168 (_linux_mod_CFLAGS): Likewise.
38169 (_linux_mod_LDFLAGS): Likewise.
38170 (linux_mod_SOURCES): Likewise.
38171 (linux_mod_CFLAGS): Likewise.
38172 (linux_mod_LDFLAGS): Likewise.
38173
38174 * DISTLIST: Added loader/i386/efi/linux.c,
38175 loader/i386/efi/linux_normal.c and
38176 include/grub/i386/efi/loader.h.
38177
38178 * loader/i386/efi/linux.c: New file.
38179 * loader/i386/efi/linux_normal.c: Likewise.
38180 * include/grub/i386/efi/loader.h: Likewise.
38181
38182 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
38183
38184 * commands/blocklist.c: New file.
38185
38186 * DISTLIST: Added commands/blocklist.c.
38187
38188 * term/efi/console.c (grub_console_highlight_color): Use a lighter
38189 color for the background, and a darker color for the foreground.
38190 (grub_console_checkkey): Return READ_KEY.
38191 (grub_console_cls): Set the background to
38192 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
38193
38194 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
38195
38196 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
38197 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
38198
38199 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
38200 prototype.
38201
38202 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
38203 BG. The spec is wrong again.
38204
38205 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
38206 prototype.
38207 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
38208
38209 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38210 commands/blocklist.c.
38211 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38212
38213 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
38214 (blocklist_mod_SOURCES): New variable.
38215 (blocklist_mod_CFLAGS): Likewise.
38216 (blocklist_mod_LDFLAGS): Likewise.
38217
38218 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
38219
38220 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
38221 duplication.
38222 (lba_mode): Use %eax more intensively to reduce the code size.
38223
38224 2006-05-20 Marco Gerards <marco@gnu.org>
38225
38226 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
38227
38228 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
38229 for `menuentry'.
38230 (script): Accept leading newlines.
38231 (newlines): New rule to describe 0 or more newlines.
38232 (commands): Accept `command' with trailing newline. Fixed the
38233 order in which arguments were passed to `grub_script_add_cmd'.
38234 Accept commands separated by newlines.
38235 (function): Changed to accept newlines.
38236 (menuentry) Rewritten.
38237
38238 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
38239 front of the list, instead of to the end.
38240
38241 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
38242
38243 * util/i386/pc/grub-install.in (bindir): New variable.
38244 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
38245 Shaver <lbgwjl@gmail.com>.
38246
38247 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
38248
38249 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
38250 grub/machine/linux.h
38251 * loader/i386/pc/linux.c: Likewise.
38252
38253 * include/grub/i386/pc/linux.h: Moved to ...
38254 * include/grub/i386/linux.h: ... here.
38255
38256 * include/grub/i386/linux.h (struct linux_kernel_params): New
38257 struct.
38258
38259 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
38260
38261 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
38262 checking.
38263 (grub_video_vbe_blit_glyph): Likewise.
38264 (grub_video_vbe_blit_bitmap): Likewise.
38265 (grub_video_vbe_blit_render_target): Likewise.
38266
38267 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
38268
38269 * configure.ac (--with-platform): Properly quote the square
38270 brackets.
38271
38272 2006-05-08 Marco Gerards <marco@gnu.org>
38273
38274 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
38275 this...
38276 (kernel_elf_HEADERS): ...to this. Updated all users.
38277 (grubof_symlist.c): Renamed from this...
38278 (kernel_elf_symlist.c): ...to this. Updated all users.
38279 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
38280 (grubof_SOURCES): Renamed from this...
38281 (kernel_elf_SOURCES): ...to this.
38282 (grubof_HEADERS): Renamed from this...
38283 (kernel_elf_HEADERS): ...to this.
38284 (grubof_CFLAGS): Renamed from this...
38285 (kernel_elf_CFLAGS): ...to this.
38286 (grubof_ASFLAGS): Renamed from this...
38287 (kernel_elf_ASFLAGS): ...to this.
38288 (grubof_LDFLAGS): Renamed from this...
38289 (kernel_elf_LDFLAGS): ...to this.
38290
38291 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
38292 this...
38293 (kernel_elf_HEADERS): ...to this. Updated all users.
38294 (grubof_symlist.c): Renamed from this...
38295 (kernel_elf_symlist.c): ...to this. Updated all users.
38296 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
38297 (grubof_SOURCES): Renamed from this...
38298 (kernel_elf_SOURCES): ...to this.
38299 (grubof_HEADERS): Renamed from this...
38300 (kernel_elf_HEADERS): ...to this.
38301 (grubof_CFLAGS): Renamed from this...
38302 (kernel_elf_CFLAGS): ...to this.
38303 (grubof_ASFLAGS): Renamed from this...
38304 (kernel_elf_ASFLAGS): ...to this.
38305 (grubof_LDFLAGS): Renamed from this...
38306 (kernel_elf_LDFLAGS): ...to this.
38307
38308 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
38309 `kernel.elf' instead of `grubof'.
38310
38311 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
38312
38313 Add --with-platform to configure. Use pkglibdir instead of
38314 pkgdatadir. This is reported by Roger Leigh.
38315
38316 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
38317 (host_vendor): Likewise.
38318 (host_os): Likewise.
38319 (pkgdatadir): Likewise.
38320 (platform): New variable.
38321 (pkglibdir): Likewise.
38322 Use PKGLIBDIR instead of PKGDATADIR.
38323
38324 * util/i386/pc/grub-install.in (datadir): Removed.
38325 (host_vendor): Likewise.
38326 (host_os): Likewise.
38327 (pkgdatadir): Likewise.
38328 (platform): New variable.
38329 (pkglibdir): Likewise.
38330 Use PKGLIBDIR instead of PKGDATADIR.
38331
38332 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
38333 instead of GRUB_DATADIR.
38334 (main): Likewise.
38335 * util/i386/pc/grub-mkimage.c (usage): Likewise.
38336 (main): Likewise.
38337 * util/i386/efi/grub-mkimage.c (usage): Likewise.
38338 (main): Likewise.
38339
38340 * configure.ac (--with-platform): New option.
38341 Use PLATFORM instead of HOST_VENDOR to specify a platform.
38342
38343 * Makefile.in: Include a makefile based on PLATFORM instead of
38344 HOST_VENDOR.
38345 (pkgdatadir): Not appended by the machine type.
38346 (pkglibdir): Appended by the machine type.
38347 (host_vendor): Removed.
38348 (platform): New variable.
38349 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
38350 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
38351 (uninstall): Likewise.
38352
38353 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
38354
38355 Use the environment context in the menu. Remove the commands
38356 "default" and "timeout", and use variables instead.
38357
38358 * normal/menu.c: Include grub/env.h.
38359 (print_entry): Cast TITLE to silence gcc.
38360 (get_timeout): New function.
38361 (set_timeout): Likewise.
38362 (get_entry_number): Likewise.
38363 (run_menu): Use a default entry, a fallback entry and a timeout
38364 in the environment variables "default", "fallback" and
38365 "timeout". Also, tweak the default entry if it is not within the
38366 current menu entries.
38367 (grub_menu_run): Use a fallback entry in the environment variable
38368 "fallback".
38369
38370 * normal/main.c (read_config_file): Do not initialize
38371 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
38372 NEWMENU->TIMEOUT.
38373 (grub_normal_execute): Use a data slot to store the menu.
38374
38375 * include/grub/normal.h (struct grub_menu): Removed default_entry,
38376 fallback_entry and timeout.
38377 (struct grub_menu_list): Removed.
38378 (grub_menu_list_t): Likewise.
38379 (struct grub_context): Likewise.
38380 (grub_context_t): Likewise.
38381 (grub_context_get): Likewise.
38382 (grub_context_get_current_menu): Likewise.
38383 (grub_context_push_menu): Likewise.
38384 (grub_context_pop_menu): Likewise.
38385 (grub_default_init): Likewise.
38386 (grub_default_fini): Likewise.
38387 (grub_timeout_init): Likewise.
38388 (grub_timeout_fini): Likewise.
38389
38390 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
38391 and timeout.mod.
38392 (normal_mod_SOURCES): Removed normal/context.c.
38393
38394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
38395 commands/default.c, commands/timeout.c and normal/context.c.
38396 (normal_mod_SOURCES): Removed normal/context.c.
38397
38398 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
38399 commands/timeout.c and normal/context.c.
38400 (normal_mod_SOURCES): Removed normal/context.c.
38401
38402 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
38403 commands/default.c, commands/timeout.c and normal/context.c.
38404 (normal_mod_SOURCES): Removed normal/context.c.
38405
38406 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
38407 timeout.mod.
38408 (default_mod_SOURCES): Removed.
38409 (default_mod_CFLAGS): Likewise.
38410 (default_mod_LDFLAGS): Likewise.
38411 (timeout_mod_SOURCES): Removed.
38412 (timeout_mod_CFLAGS): Likewise.
38413 (timeout_mod_LDFLAGS): Likewise.
38414
38415 * DISTLIST: Removed commands/default.c, commands/timeout.c and
38416 normal/context.c.
38417
38418 * commands/default.c: Removed.
38419 * commands/timeout.c: Likewise.
38420 * normal/context.c: Likewise.
38421
38422 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
38423
38424 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
38425
38426 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
38427
38428 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
38429 "next" to "prev" for readability.
38430 (struct grub_env_sorted_var): New struct.
38431 (grub_env_context): Renamed to ...
38432 (initial_context): ... this.
38433 (grub_env_var_context): Renamed to ...
38434 (current_context): ... this.
38435 (grub_env_find): Look only at CURRENT_CONTEXT.
38436 (grub_env_context_open): Rewritten to copy exported variables from
38437 previous context.
38438 (grub_env_context_close): Rewritten according to the new
38439 scheme. Also, add an assertion to prevent the initial context from
38440 removed.
38441 (grub_env_insert): Removed the code for the sorted list.
38442 (grub_env_remove): Likewise.
38443 (grub_env_export): Simply mark the variable with
38444 GRUB_ENV_VAR_GLOBAL.
38445 (grub_env_set): A cosmetic change for naming consistency.
38446 (grub_env_get): Likewise.
38447 (grub_env_unset): Likewise.
38448 (grub_env_iterate): Rewritten to sort variables within this
38449 function.
38450 (grub_register_variable_hook): Fixed for naming consistency. Call
38451 grub_env_find again, only if NAME is not found at the first time.
38452 (mangle_data_slot_name): New function.
38453 (grub_env_set_data_slot): Likewise.
38454 (grub_env_get_data_slot): Likewise.
38455 (grub_env_unset_data_slot): Likewise.
38456
38457 * include/grub/env.h (grub_env_var_type): New enum.
38458 (GRUB_ENV_VAR_LOCAL): New constant.
38459 (GRUB_ENV_VAR_GLOBAL): Likewise.
38460 (GRUB_ENV_VAR_DATA): Likewise.
38461 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
38462 "type".
38463 (grub_env_set): Replace VAR with NAME for consistency.
38464 (grub_register_variable_hook): Likewise.
38465 (grub_env_export): Specify the name of the argument.
38466 (grub_env_set_data_slot): New prototype.
38467 (grub_env_get_data_slot): Likewise.
38468 (grub_env_unset_data_slot): Likewise.
38469
38470 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
38471
38472 Extend the loader so that GRUB can accept a loader which comes
38473 back to GRUB when a loaded image exits. Also, this change adds
38474 support for a chainloader on EFI.
38475
38476 * term/efi/console.c: Include grub/misc.h.
38477 (grub_console_checkkey): Display a scan code on the top for
38478 debugging. This will be removed once the EFI port gets stable.
38479 Correct the scan code mapping.
38480
38481 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
38482 allocate memory from larger regions, in order to reduce the number
38483 of allocated regions. Otherwise, the MacOSX loader panics.
38484 (filter_memory_map): Avoid less than 1MB for compatibility with
38485 other loaders.
38486 (add_memory_regions): Allocate from the tail of a region, if
38487 possible, to avoid allocating a region near to 1MB, for the MacOSX
38488 loader.
38489
38490 * kern/efi/init.c (grub_efi_set_prefix): Specify
38491 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
38492
38493 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
38494 argument IMAGE_HANDLE and specify it to get a loaded image.
38495 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
38496 grub_efi_get_loaded_image.
38497 (grub_efi_get_filename): Divide the length by the size of
38498 grub_efi_char16_t.
38499 (grub_efi_get_device_path): New function.
38500 (grub_efi_print_device_path): Print End Device Path nodes. Divide
38501 the length by the size of grub_efi_char16_t for a file path device
38502 path node.
38503
38504 * kern/loader.c (grub_loader_noreturn): New variable.
38505 (grub_loader_set): Accept a new argument NORETURN. Set
38506 GRUB_LOADER_NORETURN to NORETURN.
38507 All callers changed.
38508 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
38509 grub_machine_fini.
38510
38511 * include/grub/efi/efi.h (grub_efi_get_device_path): New
38512 prototype.
38513 (grub_efi_get_loaded_image): Take an argument to specify an image
38514 handle.
38515
38516 * include/grub/loader.h (grub_loader_set): Added one more argument
38517 NORETURN.
38518
38519 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
38520 instead of grub_efi_open_protocol.
38521 (grub_efidisk_get_device_name): Likewise.
38522 (grub_efidisk_close): Print a newline.
38523 (grub_efidisk_get_device_handle): Fixed to use
38524 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
38525 GRUB_EFI_DEVICE_PATH_TYPE.
38526
38527 * disk/efi/efidisk.c (device_path_guid): Moved to ...
38528 * kern/efi/efi.c (device_path_guid): ... here.
38529
38530 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
38531 chain.mod.
38532 (kernel_mod_HEADERS): Added efi/disk.h.
38533 (_chain_mod_SOURCES): New variable.
38534 (_chain_mod_CFLAGS): Likewise.
38535 (_chain_mod_LDFLAGS): Likewise.
38536 (chain_mod_SOURCES): Likewise.
38537 (chain_mod_CFLAGS): Likewise.
38538 (chain_mod_LDFLAGS): Likewise.
38539
38540 * DISTLIST: Added include/grub/efi/chainloader.h,
38541 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
38542
38543 * include/grub/efi/chainloader.h: New file.
38544 * loader/efi/chainloader.c: Likewise.
38545 * loader/efi/chainloader_normal.c: Likewise.
38546
38547 2006-04-30 Marco Gerards <marco@gnu.org>
38548
38549 * commands/configfile.c (grub_cmd_source): New function.
38550 (GRUB_MOD_INIT): Register the commands `source' and `.'.
38551 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
38552
38553 2006-04-30 Marco Gerards <marco@gnu.org>
38554
38555 * normal/execute.c (grub_script_execute_cmd): Change the return
38556 type to `grub_err_t'. Correctly return the error.
38557 (grub_script_execute_cmdline): In case a command line is not a
38558 command or a function, try to interpret it as an assignment.
38559
38560 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
38561
38562 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
38563 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
38564 skip a node whose name is obviously invalid as UTF-16,
38565 i.e. contains a NUL character. Stop the iteration when the last
38566 directory entry is found. Instead of using the return value of
38567 grub_hfsplus_btree_iterate_node, store the value in RET and use
38568 it, because the iterator can be stopped by the last directory
38569 entry.
38570
38571 2006-04-30 Marco Gerards <marco@gnu.org>
38572
38573 * include/grub/env.h (grub_env_export): New prototype. Reported
38574 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
38575
38576 2006-04-30 Marco Gerards <marco@gnu.org>
38577
38578 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
38579 size of the extents in a catalog file record.
38580
38581 2006-04-29 Marco Gerards <marco@gnu.org>
38582
38583 * commands/configfile.c (grub_cmd_configfile): Execute the
38584 configfile within its own context.
38585
38586 * include/grub/env.h (grub_env_context_open): New prototype.
38587 (grub_env_context_close): Likewise.
38588
38589 * kern/env.c (grub_env): Removed.
38590 (grub_env_sorted): Likewise.
38591 (grub_env_context): New variable.
38592 (grub_env_var_context): Likewise.
38593 (grub_env_find): Search both the active context and the global
38594 context.
38595 (grub_env_context_open): New function.
38596 (grub_env_context_close): Likewise.
38597 (grub_env_insert): Likewise.
38598 (grub_env_remove): Likewise.
38599 (grub_env_export): Likewise.
38600 (grub_env_set): Changed to use helper functions to avoid code
38601 duplication.
38602 (grub_env_iterate): Rewritten so both the current context and the
38603 global context are being used.
38604
38605 * normal/command.c (export_command): New function.
38606 (grub_command_init): Register the `export' function.
38607
38608 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
38609
38610 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
38611 explicitly to suppress gcc's warnings.
38612 * fs/fat.c (grub_fat_find_dir): Likewise.
38613 (grub_fat_label): Likewise.
38614 * fs/xfs.c (grub_xfs_read_inode): Likewise.
38615 (grub_xfs_mount): Likewise.
38616 (grub_xfs_label): Likewise.
38617 * fs/affs.c (grub_affs_mount): Likewise.
38618 (grub_affs_label): Likewise.
38619 (grub_affs_iterate_dir): Likewise.
38620 * fs/sfs.c (grub_sfs_mount): Likewise.
38621 (grub_sfs_iterate_dir): Likewise.
38622 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
38623 * fs/hfs.c (grub_hfs_mount): Likewise.
38624 (grub_hfs_cmp_catkeys): Likewise.
38625 (grub_hfs_find_dir): Likewise.
38626 (grub_hfs_dir): Likewise.
38627 (grub_hfs_label): Likewise.
38628 * fs/jfs.c (grub_jfs_mount): Likewise.
38629 (grub_jfs_opendir): Likewise.
38630 (grub_jfs_getent): Likewise.
38631 (grub_jfs_lookup_symlink): Likewise.
38632 (grub_jfs_label): Likewise.
38633 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
38634 (grub_hfsplus_iterate_dir): Likewise.
38635 (grub_hfsplus_btree_iterate_node): Made static.
38636
38637 * util/grub-emu.c (prefix): New variable.
38638 (grub_machine_set_prefix): New function.
38639 (main): Do not set the environment variable "prefix" here. Only
38640 set PREFIX, which is used later by grub_machine_set_prefix.
38641
38642 * include/grub/video.h: Do not include grub/symbol.h.
38643 (grub_video_register): Not exported. This symbol is not defined in
38644 the kernel.
38645 (grub_video_unregister): Likewise.
38646 (grub_video_iterate): Likewise.
38647 (grub_video_setup): Likewise.
38648 (grub_video_restore): Likewise.
38649 (grub_video_get_info): Likewise.
38650 (grub_video_get_blit_format): Likewise.
38651 (grub_video_set_palette): Likewise.
38652 (grub_video_get_palette): Likewise.
38653 (grub_video_set_viewport): Likewise.
38654 (grub_video_get_viewport): Likewise.
38655 (grub_video_map_color): Likewise.
38656 (grub_video_map_rgb): Likewise.
38657 (grub_video_map_rgba): Likewise.
38658 (grub_video_fill_rect): Likewise.
38659 (grub_video_blit_glyph): Likewise.
38660 (grub_video_blit_bitmap): Likewise.
38661 (grub_video_blit_render_target): Likewise.
38662 (grub_video_scroll): Likewise.
38663 (grub_video_swap_buffers): Likewise.
38664 (grub_video_create_render_target): Likewise.
38665 (grub_video_delete_render_target): Likewise.
38666 (grub_video_set_active_render_target): Likewise.
38667
38668 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
38669 Undefined.
38670 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
38671
38672 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
38673 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
38674 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
38675 instead of $(srcdir)/genkernsyms.sh.
38676
38677 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
38678 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
38679 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
38680 instead of $(srcdir)/genkernsyms.sh.
38681
38682 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
38683 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
38684 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
38685 instead of $(srcdir)/genkernsyms.sh.
38686
38687 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
38688 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
38689 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
38690 instead of $(srcdir)/genkernsyms.sh.
38691
38692 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
38693 genkernsyms.sh.
38694
38695 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
38696 genkernsyms.sh.
38697 (gensymlist.sh): New target.
38698 (genkernsyms.sh): Likewise.
38699
38700 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
38701 genkernsyms.sh.in and gensymlist.sh.in.
38702
38703 * genkernsyms.sh: Removed.
38704 * gensymlist.sh: Likewise.
38705
38706 * genkernsyms.sh.in: New file.
38707 * gensymlist.sh.in: Likewise.
38708
38709 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
38710
38711 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
38712 clobber "prefix", since we may have already set it manually.
38713
38714 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
38715
38716 * kern/misc.c (abort): New alias for grub_abort.
38717
38718 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
38719
38720 A new machine-specific function "grub_machine_set_prefix" is
38721 defined. This is called after loading modules, so that a prefix
38722 initialization can use modules. Also, this change adds an
38723 intensive debugging feature for the memory manager via the
38724 configure option "--enable-mm-debug".
38725
38726 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
38727 PART.LEN.
38728
38729 * kern/sparc64/ieee1275/init.c (abort): Removed.
38730 (grub_stop): Likewise.
38731 (grub_exit): New function.
38732 (grub_set_prefix): Renamed to ...
38733 (grub_machine_set_prefix): ... this.
38734 (grub_machine_init): Do not call grub_set_prefix.
38735
38736 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
38737 (grub_machine_set_prefix): ... this.
38738 (grub_machine_init): Do not call grub_set_prefix.
38739
38740 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
38741 (grub_machine_init): Do not set the prefix here.
38742
38743 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
38744
38745 * kern/efi/init.c: Include grub/mm.h.
38746 (grub_efi_set_prefix): New function.
38747
38748 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
38749 (grub_efi_get_filename): New function.
38750 (grub_print_device_path): Renamed to ...
38751 (grub_efi_print_device_path): ... this.
38752
38753 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
38754 [MM_DEBUG] (grub_realloc): Likewise.
38755 [MM_DEBUG] (grub_free): Likewise.
38756 [MM_DEBUG] (grub_memalign): Likewise.
38757 [MM_DEBUG] (grub_mm_debug): New variable.
38758 [MM_DEBUG] (grub_debug_malloc): New function.
38759 [MM_DEBUG] (grub_debug_free): New function.
38760 [MM_DEBUG] (grub_debug_realloc): New function.
38761 [MM_DEBUG] (grub_debug_memalign): New function.
38762
38763 * kern/misc.c (grub_abort): Print a newline to distinguish
38764 the message.
38765
38766 * kern/main.c (grub_main): Call grub_machine_set_prefix and
38767 grub_set_root_dev after loading modules. This is necessary when
38768 setting a prefix depends on modules.
38769
38770 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
38771 (grub_efi_print_device_path): ... this.
38772 (grub_efi_get_filename): New prototype.
38773 (grub_efi_set_prefix): Likewise.
38774
38775 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
38776 and grub/disk.h.
38777 (grub_efidisk_get_device_handle): New prototype.
38778 (grub_efidisk_get_device_name): Likewise.
38779
38780 * include/grub/mm.h: Include config.h.
38781 (MM_DEBUG): Removed.
38782 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
38783 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
38784 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
38785 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
38786 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
38787 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
38788 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
38789 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
38790 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
38791
38792 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
38793
38794 * disk/efi/efidisk.c: Include grub/partition.h.
38795 (iterate_child_devices): New function.
38796 (add_device): First, compare only last device path nodes, so that
38797 devices are sorted by the types.
38798 (grub_efidisk_get_device_handle): New function.
38799 (grub_efidisk_get_device_name): Likewise.
38800
38801 * configure.ac (--enable-mm-debug): New option to enable the
38802 memory manager debugging feature. This makes the binary much
38803 bigger, so is disabled by default.
38804
38805 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
38806
38807 Use grub_abort instead of grub_stop, and grub_exit must be
38808 define in each architecture now. Also, this change adds support
38809 for EFI disks.
38810
38811 * util/i386/pc/grub-probefs.c: Include grub/term.h.
38812 (grub_getkey): New function.
38813 (grub_term_get_current): Likewise.
38814
38815 * util/i386/pc/grub-setup.c: Include grub/term.h.
38816 (grub_getkey): New function.
38817 (grub_term_get_current): Likewise.
38818
38819 * util/misc.c (grub_stop): Renamed to ...
38820 (grub_exit): ... this.
38821
38822 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
38823 (grub_exit): ... this.
38824 (grub_machine_init): Use grub_abort instead of abort.
38825 (grub_stop): Removed.
38826
38827 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
38828 abort.
38829
38830 * kern/i386/pc/startup.S (grub_exit): New function.
38831 (cold_reboot): New label.
38832
38833 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
38834 (grub_efi_init): Call grub_efidisk_init.
38835 (grub_efi_fini): Call grub_efidisk_fini.
38836
38837 * kern/efi/efi.c: Include grub/mm.h.
38838 (grub_efi_console_control_guid): Renamed to ...
38839 (console_control_guid): ... this.
38840 (grub_efi_loaded_image_guid): Renamed to ...
38841 (loaded_image_guid): ... this.
38842 (grub_efi_locate_handle): New function.
38843 (grub_efi_open_protocol): Likewise.
38844 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
38845 GRUB_EFI_CONSOLE_CONTROL_GUID.
38846 (grub_efi_exit): Removed.
38847 (grub_stop): Likewise.
38848 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
38849 (grub_exit): New function.
38850 (grub_print_device_path): Likewise.
38851
38852 * kern/rescue.c (grub_rescue_cmd_exit): New function.
38853 (grub_enter_rescue_mode): Register "exit".
38854
38855 * kern/misc.c (grub_real_dprintf): A cosmetic change.
38856 (grub_abort): New function.
38857
38858 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
38859
38860 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
38861
38862 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
38863
38864 * include/grub/efi/efi.h (grub_efi_exit): Removed.
38865 (grub_print_device_path): New prototype.
38866 (grub_efi_locate_handle): Likewise.
38867 (grub_efi_open_protocol): Likewise.
38868
38869 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
38870 * disk/efi/efidisk.c: Likewise.
38871
38872 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
38873
38874 * include/grub/efi/console_control.h
38875 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
38876
38877 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
38878 last 8 bytes as an array.
38879 (GRUB_EFI_DISK_IO_GUID): New macro.
38880 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
38881 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
38882 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
38883 grub_uint8_t.
38884 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
38885 (struct grub_efi_device_path): Rename the member "sub_type" to
38886 "subtype".
38887 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
38888 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
38889 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
38890 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
38891 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
38892 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
38893 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
38894 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
38895 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
38896 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
38897 (struct grub_efi_pci_device_path): New structure.
38898 (grub_efi_pci_device_path_t): New type.
38899 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
38900 (struct grub_efi_pccard_device_path): New structure.
38901 (grub_efi_pccard_device_path_t): New type.
38902 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
38903 (struct grub_efi_memory_mapped_device_path): New structure.
38904 (grub_efi_memory_mapped_device_path_t): New type.
38905 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
38906 (struct grub_efi_vendor_device_path): New structure.
38907 (grub_efi_vendor_device_path_t): New type.
38908 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
38909 (struct grub_efi_controller_device_path): New structure.
38910 (grub_efi_controller_device_path_t): New type.
38911 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
38912 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
38913 (struct grub_efi_acpi_device_path): New structure.
38914 (grub_efi_acpi_device_path_t): New type.
38915 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
38916 (struct grub_efi_expanded_acpi_device_path): New structure.
38917 (grub_efi_expanded_acpi_device_path_t): New type.
38918 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
38919 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
38920 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
38921 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
38922 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
38923 (struct grub_efi_atapi_device_path): New structure.
38924 (grub_efi_atapi_device_path_t): New type.
38925 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
38926 (struct grub_efi_fibre_channel_device_path): New structure.
38927 (grub_efi_fibre_channel_device_path_t): New type.
38928 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
38929 (struct grub_efi_1394_device_path): New structure.
38930 (grub_efi_1394_device_path_t): New type.
38931 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
38932 (struct grub_efi_usb_device_path): New structure.
38933 (grub_efi_usb_device_path_t): New type.
38934 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
38935 (struct grub_efi_usb_class_device_path): New structure.
38936 (grub_efi_usb_class_device_path_t): New type.
38937 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
38938 (struct grub_efi_i2o_device_path): New structure.
38939 (grub_efi_i2o_device_path_t): New type.
38940 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
38941 (struct grub_efi_mac_address_device_path): New structure.
38942 (grub_efi_mac_address_device_path_t): New type.
38943 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
38944 (struct grub_efi_ipv4_device_path): New structure.
38945 (grub_efi_ipv4_device_path_t): New type.
38946 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
38947 (struct grub_efi_ipv6_device_path): New structure.
38948 (grub_efi_ipv6_device_path_t): New type.
38949 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
38950 (struct grub_efi_infiniband_device_path): New structure.
38951 (grub_efi_infiniband_device_path_t): New type.
38952 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
38953 (struct grub_efi_uart_device_path): New structure.
38954 (grub_efi_uart_device_path_t): New type.
38955 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
38956 (struct grub_efi_vendor_messaging_device_path): New structure.
38957 (grub_efi_vendor_messaging_device_path_t): New type.
38958 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
38959 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
38960 (struct grub_efi_hard_drive_device_path): New structure.
38961 (grub_efi_hard_drive_device_path_t): New type.
38962 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
38963 (struct grub_efi_cdrom_device_path): New structure.
38964 (grub_efi_cdrom_device_path_t): New type.
38965 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
38966 (struct grub_efi_vendor_media_device_path): New structure.
38967 (grub_efi_vendor_media_device_path_t): New type.
38968 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
38969 (struct grub_efi_file_path_device_path): New structure.
38970 (grub_efi_file_path_device_path_t): New type.
38971 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
38972 (struct grub_efi_protocol_device_path): New structure.
38973 (grub_efi_protocol_device_path_t): New type.
38974 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
38975 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
38976 (struct grub_efi_bios_device_path): New structure.
38977 (grub_efi_bios_device_path_t): New type.
38978 (struct grub_efi_disk_io): New structure.
38979 (grub_efi_disk_io_t): New type.
38980 (struct grub_efi_block_io_media): New structure.
38981 (grub_efi_block_io_media_t): New type.
38982 (struct grub_efi_block_io): New structure.
38983 (grub_efi_block_io_t): New type.
38984
38985 * include/grub/misc.h (grub_stop): Removed.
38986 (grub_exit): New prototype.
38987 (grub_abort): Likewise.
38988
38989 * include/grub/disk.h (enum grub_disk_dev_id): Added
38990 GRUB_DISK_DEVICE_EFIDISK_ID.
38991
38992 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
38993 disk/efi/efidisk.c.
38994 (kernel_syms.lst): Remove the target if an error occurs.
38995
38996 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
38997
38998 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
38999 as it was simply too buggy.
39000
39001 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
39002
39003 * kern/misc.c (grub_lltoa): New function.
39004 (grub_vsprintf): Added support for the long long suffix,
39005 i.e. "ll".
39006
39007 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
39008
39009 * Makefile.in (LDFLAGS): Add variable.
39010 (LD): Remove variable.
39011 * configure.ac: Add -m32 to LDFLAGS.
39012 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
39013 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
39014 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
39015 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
39016 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
39017 variables.
39018 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
39019 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
39020 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
39021
39022 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
39023
39024 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
39025 length for unknown glyph.
39026
39027 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
39028
39029 Add support for pre-loaded modules into the EFI port.
39030
39031 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
39032 completely. Accept one more argument DIR. The caller has changed.
39033
39034 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
39035
39036 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
39037 (grub_efi_loaded_image_guid): New variable.
39038 (grub_efi_get_loaded_image): New function.
39039 (grub_arch_modules_addr): Likewise.
39040
39041 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
39042 prototype.
39043
39044 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
39045 (struct grub_efi_loaded_image): New structure.
39046 (grub_efi_loaded_image_t): New type.
39047
39048 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
39049
39050 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
39051 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
39052 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
39053
39054 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
39055
39056 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
39057
39058 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
39059
39060 * DISTLIST: Added include/grub/efi/console.h,
39061 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
39062 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
39063
39064 * include/grub/efi/console.h: New file.
39065 * include/grub/efi/time.h: Likewise.
39066 * include/grub/i386/efi/kernel.h: Likewise.
39067 * kern/efi/init.c: Likewise.
39068 * kern/efi/mm.c: Likewise.
39069 * term/efi/console.c: Likewise.
39070
39071 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
39072 (grub_stop): Removed.
39073 (grub_get_rtc): Likewise.
39074 (grub_machine_init): Simply call grub_efi_init.
39075 (grub_machine_fini): Call grub_efi_fini.
39076
39077 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
39078 (grub_efi_output_string): Removed.
39079 (grub_efi_stall): New function.
39080 (grub_stop): Likewise.
39081 (grub_get_rtc): Likewise.
39082
39083 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
39084 (grub_efi_stall): New prototype.
39085 (grub_efi_allocate_pages): Likewise.
39086 (grub_efi_free_pages): Likewise.
39087 (grub_efi_get_memory_map): Likewise.
39088 (grub_efi_mm_init): Likewise.
39089 (grub_efi_mm_fini): Likewise.
39090 (grub_efi_init): Likewise.
39091 (grub_efi_fini): Likewise.
39092
39093 * include/grub/i386/efi/time.h: Do not include
39094 grub/symbol.h. Include grub/efi/time.h.
39095 (GRUB_TICKS_PER_SECOND): Removed.
39096 (grub_get_rtc): Likewise.
39097
39098 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
39099 Added padding. The EFI spec is buggy.
39100 (GRUB_EFI_BLACK): New macro.
39101 (GRUB_EFI_BLUE): Likewise.
39102 (GRUB_EFI_GREEN): Likewise.
39103 (GRUB_EFI_CYAN): Likewise.
39104 (GRUB_EFI_RED): Likewise.
39105 (GRUB_EFI_MAGENTA): Likewise.
39106 (GRUB_EFI_BROWN): Likewise.
39107 (GRUB_EFI_LIGHTGRAY): Likewise.
39108 (GRUB_EFI_BRIGHT): Likewise.
39109 (GRUB_EFI_DARKGRAY): Likewise.
39110 (GRUB_EFI_LIGHTBLUE): Likewise.
39111 (GRUB_EFI_LIGHTGREEN): Likewise.
39112 (GRUB_EFI_LIGHTCYAN): Likewise.
39113 (GRUB_EFI_LIGHTRED): Likewise.
39114 (GRUB_EFI_LIGHTMAGENTA): Likewise.
39115 (GRUB_EFI_YELLOW): Likewise.
39116 (GRUB_EFI_WHITE): Likewise.
39117 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
39118 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
39119 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
39120 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
39121 (GRUB_EFI_BACKGROUND_RED): Likewise.
39122 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
39123 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
39124 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
39125 (GRUB_EFI_TEXT_ATTR): Likewise.
39126
39127 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
39128 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
39129 (kernel_mod_HEADERS): Added efi/time.h.
39130
39131 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
39132
39133 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
39134 include/grub/efi/api.h, include/grub/efi/console_control.h,
39135 include/grub/efi/efi.h, include/grub/efi/pe32.h,
39136 include/grub/i386/efi/time.h, kern/efi/efi.c,
39137 kern/i386/efi/init.c, kern/i386/efi/startup.S,
39138 and util/i386/efi/grub-mkimage.c.
39139
39140 * Makefile.in (RMKFILES): Added i386-efi.rmk.
39141
39142 * genmk.rb (PModule#rule): Do not export symbols if
39143 #{prefix}_EXPORTS is set to "no".
39144
39145 * conf/i386-efi.mk: New file.
39146 * conf/i386-efi.rmk: Likewise.
39147 * include/grub/efi/api.h: Likewise.
39148 * include/grub/efi/console_control.h: Likewise.
39149 * include/grub/efi/efi.h: Likewise.
39150 * include/grub/efi/pe32.h: Likewise.
39151 * include/grub/i386/efi/time.h: Likewise.
39152 * kern/efi/efi.c: Likewise.
39153 * kern/i386/efi/init.c: Likewise.
39154 * kern/i386/efi/startup.S: Likewise.
39155 * util/i386/efi/grub-mkimage.c: Likewise.
39156
39157 2006-04-17 Marco Gerards <marco@gnu.org>
39158
39159 * include/grub/script.h: Include <grub/parser.h> and
39160 "grub_script.tab.h".
39161 (struct grub_lexer_param): New struct.
39162 (struct grub_parser_param): Likewise.
39163 (grub_script_create_arglist): Pass the state in an argument.
39164 (grub_script_add_arglist): Likewise.
39165 (grub_script_create_cmdline): Likewise.
39166 (grub_script_create_cmdblock): Likewise.
39167 (grub_script_create_cmdif): Likewise.
39168 (grub_script_create_cmdmenu): Likewise.
39169 (grub_script_add_cmd): Likewise.
39170 (grub_script_arg_add): Likewise.
39171 (grub_script_lexer_ref): Likewise.
39172 (grub_script_lexer_deref): Likewise.
39173 (grub_script_lexer_record_start): Likewise.
39174 (grub_script_lexer_record_stop): Likewise.
39175 (grub_script_mem_record): Likewise.
39176 (grub_script_mem_record_stop): Likewise.
39177 (grub_script_malloc): Likewise.
39178 (grub_script_yylex): Likewise.
39179 (grub_script_yyparse): Likewise.
39180 (grub_script_yyerror): Likewise.
39181 (grub_script_yylex): Likewise.
39182 (grub_script_lexer_init): Return the state.
39183
39184 * normal/lexer.c (grub_script_lexer_state): Removed variable.
39185 (grub_script_lexer_done): Likewise.
39186 (grub_script_lexer_getline): Likewise.
39187 (grub_script_lexer_refs): Likewise.
39188 (script): Likewise.
39189 (newscript): Likewise.
39190 (record): Likewise.
39191 (recording): Likewise.
39192 (recordpos): Likewise.
39193 (recordlen): Likewise.
39194 (grub_script_lexer_init): Return the state instead of setting
39195 global variables.
39196 (grub_script_lexer_ref): Use the newly added argument for state
39197 instead of globals.
39198 (grub_script_lexer_deref): Likewise.
39199 (grub_script_lexer_record_start): Likewise.
39200 (grub_script_lexer_record_stop): Likewise.
39201 (recordchar): Likewise.
39202 (nextchar): Likewise.
39203 (grub_script_yylex2): Likewise.
39204 (grub_script_yylex): Likewise.
39205 (grub_script_yyerror): Likewise.
39206
39207 * normal/parser.y (func_mem): Removed variable.
39208 (menu_entry): Likewise.
39209 (err): Likewise.
39210 (%lex-param): New parser option.
39211 (%parse-param): Likewise.
39212 (script): Always return the AST.
39213 (argument): Pass the state around.
39214 (arguments): Likewise.
39215 (grubcmd): Likewise.
39216 (commands): Likewise.
39217 (function): Likewise.
39218 (menuentry): Likewise.
39219 (if_statement): Likewise.
39220 (if): Likewise.
39221
39222 * normal/script.c (grub_script_memused): Removed variable.
39223 (grub_script_parsed): Likewise.
39224 (grub_script_malloc): Added a state argument. Use that instead of
39225 global variables.
39226 (grub_script_mem_record): Likewise.
39227 (grub_script_mem_record_stop): Likewise.
39228 (grub_script_arg_add): Likewise.
39229 (grub_script_add_arglist): Likewise.
39230 (grub_script_create_cmdline): Likewise.
39231 (grub_script_create_cmdif): Likewise.
39232 (grub_script_create_cmdmenu): Likewise.
39233 (grub_script_add_cmd): Likewise.
39234 (grub_script_parse): Setup the state before calling the parser.
39235
39236 2006-04-16 Marco Gerards <marco@gnu.org>
39237
39238 * normal/command.c (grub_command_init): Remove the title command.
39239
39240 * normal/lexer.c (grub_script_yylex): Renamed from this...
39241 (grub_script_yylex2): ... to this.
39242 (grub_script_yylex): New function. Temporary
39243 introduced to filter some tokens.
39244 (grub_script_yyerror): Print a newline.
39245
39246 * normal/main.c (read_config_file): Output information about the
39247 lines that contain errors. Wait for a key after all lines have
39248 been processed. Don't return an empty menu.
39249
39250 * normal/parser.y (func_mem): Don't initialize.
39251 (menu_entry): Likewise.
39252 (err): New variable.
39253 (script): Don't return anything when an error was encountered.
39254 (ws, returns): Removed rules.
39255 (argument): Disabled concatenated variable support.
39256 (arguments): Remove explicit separators.
39257 (grubcmd): Likewise.
39258 (function): Likewise.
39259 (menuentry): Likewise.
39260 (if): Likewise.
39261 (commands): Likewise. Add error handling.
39262
39263 * normal/script.c (grub_script_create_cmdline): If
39264 `grub_script_parsed' is 0, assume the parser encountered an error.
39265
39266 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
39267
39268 * configure.ac: Add support for EFI. Fix the typo
39269 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
39270
39271 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
39272
39273 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
39274 foreign multibyte characters should be shown correctly.
39275
39276 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
39277
39278 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
39279 calculation.
39280 (read_config_file): Made it to close file before returning.
39281
39282 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
39283
39284 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
39285 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
39286 video/i386/pc/vbefill.c.
39287
39288 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
39289 video/i386/pc/vbefill.c.
39290
39291 * include/grub/video.h (grub_video_blit_format): New enum.
39292 (grub_video_mode_info): Added new member blit_format.
39293 (grub_video_get_blit_format): New function prototype.
39294
39295 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
39296 function prototype.
39297 (grub_video_vbe_map_rgb): Likewise.
39298 (grub_video_vbe_unmap_color): Likewise.
39299
39300 * include/grub/i386/pc/vbeblit.h: New file.
39301
39302 * include/grub/i386/pc/vbefill.h: New file.
39303
39304 * video/video.c (grub_video_get_blit_format): New function.
39305 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
39306 (grub_video_vbe_map_rgb): Likewise.
39307 (grub_video_vbe_unmap_color): Likewise.
39308
39309 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
39310 optimized fills.
39311 (grub_video_vbe_blit_render_target): Changed to use more optimized
39312 blits.
39313 (grub_video_vbe_setup): Added detection for optimized settings.
39314 (grub_video_vbe_create_render_target): Likewise.
39315
39316 * video/i386/pc/vbeblit.c: New file.
39317
39318 * video/i386/pc/vbefill.c: New file.
39319
39320 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
39321
39322 * font/manager.c (grub_font_get_glyph): Removed font fixup from
39323 here...
39324
39325 * util/unifont2pff.rb: ... and moved it to here. Improved argument
39326 parsing to support both hex and dec ranges. If filename was missing
39327 show usage information.
39328
39329 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
39330
39331 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
39332 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
39333
39334 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
39335 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
39336 (video_mod_SOURCES): Added.
39337 (video_mod_CFLAGS): Likewise.
39338 (video_mod_LDFLAGS): Likewise.
39339 (gfxterm_mod_SOURCES): Likewise.
39340 (gfxterm_mod_CFLAGS): Likewise.
39341 (gfxterm_mod_LDFLAGS): Likewise.
39342 (videotest_mod_SOURCES): Likewise.
39343 (videotest_mod_CFLAGS): Likewise.
39344 (videotest_mod_LDFLAGS): Likewise.
39345 (vesafb_mod_SOURCES): Removed.
39346 (vesafb_mod_CFLAGS): Likewise.
39347 (vesafb_mod_LDFLAGS): Likewise.
39348 (vga_mod_SOURCES): Likewise.
39349 (vga_mod_CFLAGS): Likewise.
39350 (vga_mod_LDFLAGS): Likewise.
39351
39352 * commands/videotest.c: New file.
39353
39354 * font/manager.c (fill_with_default_glyph): Modified to use
39355 grub_font_glyph.
39356 (grub_font_get_glyph): Likewise.
39357 (fontmanager): Renamed from this...
39358 (font_manager): ... to this.
39359
39360 * include/grub/font.h (grub_font_glyph): Added new structure.
39361 (grub_font_get_glyph): Modified to use grub_font_glyph.
39362
39363 * include/grub/misc.h (grub_abs): Added as inline function.
39364
39365 * include/grub/video.h: New file.
39366
39367 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
39368 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
39369 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
39370 (grub_vbe_get_controller_info): Renamed from this...
39371 (grub_vbe_bios_get_controller_info): ... to this.
39372 (grub_vbe_get_mode_info): Renamed from this...
39373 (grub_vbe_bios_get_mode_info): ... to this.
39374 (grub_vbe_set_mode): Renamed from this...
39375 (grub_vbe_bios_set_mode): ... to this.
39376 (grub_vbe_get_mode): Renamed from this...
39377 (grub_vbe_bios_get_mode): ... to this.
39378 (grub_vbe_set_memory_window): Renamed from this...
39379 (grub_vbe_bios_set_memory_window): ... to this.
39380 (grub_vbe_get_memory_window): Renamed from this...
39381 (grub_vbe_bios_get_memory_window): ... to this.
39382 (grub_vbe_set_scanline_length): Renamed from this...
39383 (grub_vbe_set_scanline_length): ... to this.
39384 (grub_vbe_get_scanline_length): Renamed from this...
39385 (grub_vbe_bios_get_scanline_length): ... to this.
39386 (grub_vbe_set_display_start): Renamed from this...
39387 (grub_vbe_bios_set_display_start): ... to this.
39388 (grub_vbe_get_display_start): Renamed from this...
39389 (grub_vbe_bios_get_display_start): ... to this.
39390 (grub_vbe_set_palette_data): Renamed from this...
39391 (grub_vbe_bios_set_palette_data): ... to this.
39392 (grub_vbe_set_pixel_rgb): Removed.
39393 (grub_vbe_set_pixel_index): Likewise.
39394
39395 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
39396 from this...
39397 (grub_vbe_bios_get_controller_info): ... to this.
39398 (grub_vbe_get_mode_info): Renamed from this...
39399 (grub_vbe_bios_get_mode_info): ... to this.
39400 (grub_vbe_set_mode): Renamed from this...
39401 (grub_vbe_bios_set_mode): ... to this.
39402 (grub_vbe_get_mode): Renamed from this...
39403 (grub_vbe_bios_get_mode): ... to this.
39404 (grub_vbe_set_memory_window): Renamed from this...
39405 (grub_vbe_bios_set_memory_window): ... to this.
39406 (grub_vbe_get_memory_window): Renamed from this...
39407 (grub_vbe_bios_get_memory_window): ... to this.
39408 (grub_vbe_set_scanline_length): Renamed from this...
39409 (grub_vbe_set_scanline_length): ... to this.
39410 (grub_vbe_get_scanline_length): Renamed from this...
39411 (grub_vbe_bios_get_scanline_length): ... to this.
39412 (grub_vbe_set_display_start): Renamed from this...
39413 (grub_vbe_bios_set_display_start): ... to this.
39414 (grub_vbe_get_display_start): Renamed from this...
39415 (grub_vbe_bios_get_display_start): ... to this.
39416 (grub_vbe_set_palette_data): Renamed from this...
39417 (grub_vbe_bios_set_palette_data): ... to this.
39418 (grub_vbe_bios_get_controller_info): Fixed problem with registers
39419 getting corrupted after calling it. Added more pushes and pops.
39420 (grub_vbe_bios_set_mode): Likewise.
39421 (grub_vbe_bios_get_mode): Likewise.
39422 (grub_vbe_bios_get_memory_window): Likewise.
39423 (grub_vbe_bios_set_scanline_length): Likewise.
39424 (grub_vbe_bios_get_scanline_length): Likewise.
39425 (grub_vbe_bios_get_display_start): Likewise.
39426 (grub_vbe_bios_set_palette_data): Likewise.
39427
39428 * normal/cmdline.c (cl_set_pos): Refresh the screen.
39429 (cl_insert): Likewise.
39430 (cl_delete): Likewise.
39431
39432 * term/gfxterm.c: New file.
39433
39434 * term/i386/pc/vesafb.c: Removed file.
39435
39436 * video/video.c: New file.
39437
39438 * video/i386/pc/vbe.c (real2pm): Added new function.
39439 (grub_video_vbe_draw_pixel): Likewise.
39440 (grub_video_vbe_get_video_ptr): Likewise.
39441 (grub_video_vbe_get_pixel): Likewise
39442 (grub_video_vbe_init): Likewise.
39443 (grub_video_vbe_fini): Likewise.
39444 (grub_video_vbe_setup): Likewise.
39445 (grub_video_vbe_get_info): Likewise.
39446 (grub_video_vbe_set_palette): Likewise.
39447 (grub_video_vbe_get_palette): Likewise.
39448 (grub_video_vbe_set_viewport): Likewise.
39449 (grub_video_vbe_get_viewport): Likewise.
39450 (grub_video_vbe_map_color): Likewise.
39451 (grub_video_vbe_map_rgb): Likewise.
39452 (grub_video_vbe_map_rgba): Likewise.
39453 (grub_video_vbe_unmap_color): Likewise.
39454 (grub_video_vbe_fill_rect): Likewise.
39455 (grub_video_vbe_blit_glyph): Likewise.
39456 (grub_video_vbe_blit_bitmap): Likewise.
39457 (grub_video_vbe_blit_render_target): Likewise.
39458 (grub_video_vbe_scroll): Likewise.
39459 (grub_video_vbe_swap_buffers): Likewise.
39460 (grub_video_vbe_create_render_target): Likewise.
39461 (grub_video_vbe_delete_render_target): Likewise.
39462 (grub_video_vbe_set_active_render_target): Likewise.
39463 (grub_vbe_set_pixel_rgb): Remove function.
39464 (grub_vbe_set_pixel_index): Likewise.
39465 (index_color_mode): Remove static variable.
39466 (active_mode): Likewise.
39467 (framebuffer): Likewise.
39468 (bytes_per_scan_line): Likewise.
39469 (grub_video_vbe_adapter): Added new static variable.
39470 (framebuffer): Likewise.
39471 (render_target): Likewise.
39472 (initial_mode): Likewise.
39473 (mode_in_use): Likewise.
39474 (mode_list): Likewise.
39475
39476 2006-03-10 Marco Gerards <marco@gnu.org>
39477
39478 * configure.ac (AC_INIT): Bumped to 1.93.
39479
39480 * DISTLIST: Added `include/grub/hfs.h'.
39481
39482 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
39483
39484 * boot/i386/pc/boot.S (general_error): Before looping, try INT
39485 18H, which might help the BIOS falling back to next boot media.
39486
39487 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
39488
39489 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
39490 Poe Chen <poe.poechen@gmail.com>.
39491
39492 2006-01-17 Marco Gerards <marco@gnu.org>
39493
39494 * include/grub/normal.h: Include <grub/script.h>.
39495 (grub_command_list): Removed struct.
39496 (grub_command_list_t): Removed type.
39497 (grub_menu_entry): Remove members `num' and `command_list'. Add
39498 members `commands' and `sourcecode'.
39499 * include/grub/script.h: Add inclusion guards.
39500 (grub_script_cmd_menuentry): New struct.
39501 (grub_script_execute_menuentry): New prototype.
39502 (grub_script_lexer_record_start): Likewise.
39503 (grub_script_lexer_record_stop): Likewise.
39504 * normal/execute.c (grub_script_execute_menuentry): New function.
39505 * normal/lexer.c (record, recording, recordpos, recordlen): New
39506 variables.
39507 (grub_script_lexer_record_start): New function.
39508 (grub_script_lexer_record_stop): Likewise.
39509 (recordchar): Likewise.
39510 (nextchar): Likewise.
39511 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
39512 2048 as the buffer size. Add the tokens `menuentry' and `@'.
39513 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
39514 (current_menu): New variable.
39515 (free_menu): Mainly rewritten.
39516 (grub_normal_menu_addentry): New function.
39517 (read_config_file): Rewritten.
39518 * normal/menu.c (run_menu_entry): Mainly rewritten.
39519 * normal/menu_entry.c (make_screen): Rewritten the code to insert
39520 the menu entry.
39521 (run): Mainly rewritten.
39522 * normal/parser.y (menu_entry): New variable.
39523 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
39524 (menuentry): New rule.
39525 (command): Add `menuentry'.
39526 (if_statement): Allow additional returns before `fi'.
39527 * normal/script.c (grub_script_create_cmdmenu): New function.
39528
39529 2006-01-03 Marco Gerards <marco@gnu.org>
39530
39531 * INSTALL: GNU Bison is required.
39532 * configure.ac: Rewritten the test to detect Bison.
39533 * Makefile.in (YACC): New variable. Reported by Xun Sun
39534 <xun.sun.cn@gmail.com>.
39535
39536 2006-01-03 Marco Gerards <marco@gnu.org>
39537
39538 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
39539 the HFS+ filesystem to filesystem blocks.
39540 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
39541 GCC warning is silenced.
39542
39543 2006-01-03 Marco Gerards <marco@gnu.org>
39544
39545 * partmap/apple.c (apple_partition_map_iterate): Convert the data
39546 read from disk from big endian to host byte order.
39547
39548 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
39549
39550 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
39551 documentation.
39552 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
39553 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
39554 embedded HFS+ filesystem.
39555 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
39556 (grub_hfs_sblock): Move from here...
39557 * include/grub/hfs.h: To here... New file.
39558 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
39559 documentation.
39560 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
39561 New macros.
39562 (grub_hfsplus_volheader): Change type of member `magic' to
39563 `grub_uint16_t'.
39564 (grub_hfsplus_data): Add new member `embedded_offset'.
39565 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
39566 returned block.
39567 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
39568 Calculate the offset.
39569
39570 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
39571
39572 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
39573 Removed.
39574 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
39575
39576 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
39577
39578 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
39579 ENV->NAME is NULL after allocating ENV->VALUE.
39580
39581 2005-12-25 Marco Gerards <marco@gnu.org>
39582
39583 * kern/env.c (grub_env_set): Rewritten the error handling code.
39584
39585 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
39586
39587 * geninit.sh: Made more robust, and more portable.
39588
39589 2005-12-25 Marco Gerards <marco@gnu.org>
39590
39591 Add support for Apple HFS+ filesystems.
39592
39593 * fs/hfsplus.c: New file.
39594
39595 * DISTLIST: Added `fs/hfsplus.c'.
39596
39597 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
39598 (hfsplus_mod_SOURCES): New variable.
39599 (hfsplus_mod_CFLAGS): Likewise.
39600 (hfsplus_mod_LDFLAGS): Likewise.
39601 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
39602 (grub_setup_SOURCES): Likewise.
39603 (grub_mkdevicemap_SOURCES): Likewise.
39604 (grub_emu_SOURCES): Likewise.
39605 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39606
39607 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
39608
39609 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
39610
39611 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
39612
39613 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
39614 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
39615 include/grub/parser.h, include/grub/script.h, kern/parser.c,
39616 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
39617 normal/lexer.c, normal/parser.y, normal/script.c, and
39618 partmap/gpt.c.
39619 Removed kern/sparc64/cache.c.
39620
39621 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
39622 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
39623 grub_emu_init.c.
39624
39625 * configure.ac (AC_INIT): Bumped to 1.92.
39626
39627 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
39628
39629 * kern/err.c (grub_error_push): Added new function to support error
39630 stacks.
39631 (grub_error_pop): Likewise.
39632 (grub_error_stack_items): New local variable to support error stacks.
39633 (grub_error_stack_pos): Likewise.
39634 (grub_error_stack_assert): Likewise.
39635 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
39636 stack depth.
39637 (grub_print_error): Added support to print errors from error stack.
39638
39639 * include/grub/err.h (grub_error_push): Added function prototype.
39640 (grub_error_pop): Likewise.
39641
39642 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
39643
39644 * configure.ac: Accept `powerpc64' as host_cpu.
39645 (amd64): Rename to `biarch32'.
39646
39647 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
39648 non-cacheline-aligned addresses.
39649
39650 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
39651 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
39652 if `size' is non-zero.
39653
39654 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
39655
39656 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
39657 and `cd' to make sure the filename is not prefixed with a
39658 directory name.
39659 (pkgdata_MODULES): Add `gpt.mod'.
39660 (gpt_mod_SOURCES): New variable.
39661 (gpt_mod_CFLAGS): Likewise.
39662 (gpt_mod_LDFLAGS): Likewise.
39663
39664 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
39665
39666 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
39667 New macro.
39668
39669 * partmap/gpt.c: New file.
39670
39671 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
39672 GPT partition map is detected.
39673
39674 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
39675
39676 * commands/i386/pc/play.c: New file.
39677 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
39678 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
39679 macros.
39680
39681 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
39682
39683 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
39684 ((unused))' to silence gcc warning.
39685
39686 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
39687
39688 * configure.ac: Correct `AC_PROG_YACC' test.
39689
39690 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
39691
39692 * util/powerpc/ieee1275/grub-install.in: Run the mount point
39693 check before installing files.
39694
39695 2005-11-22 Mike Small <smallm@panix.com>
39696
39697 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
39698 number regex so multidigit numbers are recognized correctly.
39699
39700 2005-11-22 Mike Small <smallm@panix.com>
39701
39702 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
39703 debugging message before attempting to claim memory.
39704 (grub_rescue_cmd_initrd): Add a claim debugging message and try
39705 multiple addresses in case of failure.
39706
39707 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
39708
39709 * term/tparm.c (get_space): Remove empty `if' statement.
39710
39711 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
39712
39713 * kern/parser.c (check_varstate): Rename `state' to 's'.
39714
39715 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
39716
39717 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
39718 variable definitions to the beginning of each function. Sort stack
39719 variables by size.
39720 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
39721 `buf' argument to `char *'.
39722
39723 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
39724
39725 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
39726 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
39727 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
39728 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
39729 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
39730 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
39731 configfile.mod, search.mod, gzio.mod and test.mod.
39732 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
39733 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
39734 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
39735 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
39736 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
39737 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
39738 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
39739 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
39740 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
39741 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
39742 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39743 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39744 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
39745 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
39746 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
39747 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
39748 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39749 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
39750 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
39751 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
39752 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
39753 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
39754 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
39755
39756 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
39757 `grep --include'.
39758 (pkgdata_MODULES): Add test.mod.
39759
39760 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39761
39762 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
39763 appending to variables with "+=".
39764 (PModule): Use full pathname to generate *.lst filenames.
39765
39766 * Makefile.in: Fixed list rules moved from genmk.rb.
39767 (.DELETE_ON_ERROR): New special target.
39768 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
39769
39770 * conf/i386-pc.rmk: Include conf/common.mk.
39771 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
39772 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
39773 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
39774 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
39775 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
39776 configfile.mod, search.mod, gzio.mod and test.mod.
39777 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
39778 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
39779 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
39780 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
39781 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
39782 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
39783 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
39784 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
39785 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
39786 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
39787 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39788 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39789 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
39790 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
39791 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
39792 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
39793 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39794 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
39795 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
39796 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
39797 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
39798 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
39799 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
39800 here...
39801 * conf/common.rmk: ... to here. New file.
39802
39803 * conf/common.mk: New file.
39804
39805 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
39806
39807 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
39808 (grub_script.tab.c): ... here.
39809
39810 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
39811 (grub_script.tab.c): ... here.
39812
39813 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
39814 (grub_script.tab.c): ... here.
39815
39816 * normal/command.c (grub_command_find): Fixed a memory leak of
39817 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
39818
39819 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39820
39821 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
39822 "@" which marks the start of a comment on ARM.
39823 (VARIABLE): Likewise.
39824
39825 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39826
39827 Add support for Linux/ADFS partition tables.
39828
39829 * partmap/acorn.c: New file.
39830
39831 * include/grub/acorn_filecore.h: Likewise.
39832
39833 * DISTLIST: Added `partmap/acorn.c' and
39834 `include/grub/acorn_filecore.h'.
39835
39836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39837 `partmap/acorn.c'.
39838 (pkgdata_MODULES): Add `acorn.mod'.
39839 (acorn_mod_SOURCES): New variable.
39840 (acorn_mod_CFLAGS): Likewise.
39841
39842 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
39843 `partmap/acorn.c'.
39844 (pkgdata_MODULES): Add `acorn.mod'.
39845 (acorn_mod_SOURCES): New variable.
39846 (acorn_mod_CFLAGS): Likewise.
39847
39848 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
39849 (pkgdata_MODULES): Add `acorn.mod'.
39850 (acorn_mod_SOURCES): New variable.
39851 (acorn_mod_CFLAGS): Likewise.
39852 (acorn_mod_LDFLAGS): Likewise.
39853
39854 * include/types.h (grub_disk_addr_t): New typedef.
39855
39856 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
39857
39858 * geninit.sh: New file.
39859
39860 * geninitheader.sh: Likewise.
39861
39862 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
39863 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
39864 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
39865 * commands/configfile.c (grub_configfile_init)
39866 (grub_configfile_fini): Likewise.
39867 * commands/default.c (grub_default_init, grub_default_fini):
39868 Likewise.
39869 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
39870 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
39871 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
39872 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
39873 Likewise.
39874 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
39875 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
39876 Likewise.
39877 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
39878 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
39879 Likewise.
39880 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
39881 Likewise.
39882 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
39883 Likewise.
39884 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
39885 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
39886 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
39887 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
39888 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
39889 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
39890 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
39891 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
39892 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
39893 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
39894 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
39895 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
39896 * partmap/amiga.c (grub_amiga_partition_map_init)
39897 (grub_amiga_partition_map_fini): Likewise.
39898 * partmap/apple.c (grub_apple_partition_map_init)
39899 (grub_apple_partition_map_fini): Likewise.
39900 * partmap/pc.c (grub_pc_partition_map_init)
39901 (grub_pc_partition_map_fini): Likewise.
39902 * partmap/sun.c (grub_sun_partition_map_init,
39903 grub_sun_partition_map_fini): Likewise.
39904 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
39905 Likewise.
39906
39907 * util/grub-emu.c: Include <grub_modules_init.h>.
39908 (main): Don't initialize and de-initialize any modules directly,
39909 use `grub_init_all' and `grub_fini_all' instead.
39910
39911 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
39912 `grub_vesafb_mod_init'.
39913 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
39914 all users.
39915 * term/i386/pc/vga.c (grub_vga_init): Renamed to
39916 `grub_vga_mod_init'. Updated all users.
39917 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
39918
39919 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
39920 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
39921 rules.
39922
39923 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
39924 Generate a function to initialize the module in utilities.
39925 Updated all callers.
39926 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
39927 initialize the module in utilities. Updated all callers.
39928
39929 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
39930
39931 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
39932 escape sequence and a literal ^L to clear the screen.
39933
39934 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
39935 when returning from Open Firmware.
39936
39937 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
39938
39939 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
39940 (grub_ofconsole_height): Likewise.
39941 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
39942 manually insert a '\n'.
39943 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
39944 `grub_ofconsole_height'. Return early if these are already set.
39945
39946 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
39947
39948 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
39949 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
39950 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
39951 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
39952 and `normal/script.c'.
39953 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39954 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39955 (test_mod_SOURCES): New variable.
39956 (test_mod_CFLAGS): Likewise.
39957 (test_mod_LDFLAGS): Likewise.
39958 (pkgdata_MODULES): Add `test.mod'.
39959 (grub_script.tab.c): New rule.
39960 (grub_script.tab.h): Likewise.
39961
39962 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
39963
39964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39965 `commands/test.c', `normal/execute.c', `normal/lexer.c',
39966 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39967 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39968 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39969 (test_mod_SOURCES): New variable.
39970 (test_mod_CFLAGS): Likewise.
39971 (pkgdata_MODULES): Add `test.mod'.
39972 (grub_script.tab.c): New rule.
39973 (grub_script.tab.h): Likewise.
39974
39975 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
39976
39977 Add initial scripting support.
39978
39979 * commands/test.c: New file.
39980 * include/grub/script.h: Likewise.
39981 * normal/execute.c: Likewise.
39982 * normal/function.c: Likewise.
39983 * normal/lexer.c: Likewise.
39984 * normal/parser.y: Likewise.
39985 * normal/script.c: Likewise.
39986
39987 * configure.ac: Add `AC_PROG_YACC' test.
39988
39989 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
39990 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
39991 `normal/function.c' and `normal/script.c'.
39992 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39993 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39994 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
39995 variables.
39996 (pkgdata_MODULES): Add `test.mod'.
39997 (grub_script.tab.c): New rule.
39998 (grub_script.tab.h): Likewise.
39999
40000 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
40001
40002 * include/grub/normal.h (grub_test_init): New prototype.
40003 (grub_test_fini): Likewise.
40004
40005 * normal/command.c: Include <grub/script.h>.
40006 (grub_command_execute): Rewritten.
40007
40008 * util/grub-emu.c (main): Call `grub_test_init' and
40009 `grub_test_fini'.
40010
40011 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
40012
40013 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
40014 to 0.
40015 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
40016 there are no pending characters.
40017
40018 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
40019
40020 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
40021 `grub_strndup' to drop device arguments. Replace unnecessary
40022 `grub_strndup' with `grub_strdup'.
40023
40024 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
40025
40026 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
40027 `debug' environment variable has been set.
40028
40029 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
40030
40031 * Makefile.in (install-local): Use $(DATA).
40032 (uninstall): Likewise.
40033 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
40034 (sbin_UTILITIES): ... to here.
40035 (sbin_SCRIPTS): New variable.
40036 (grub_install_SOURCES): New variable.
40037 * util/powerpc/ieee1275/grub-install.in: New file.
40038 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
40039 variable.
40040 (add_segments): Call `grub_util_get_path'.
40041
40042 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40043
40044 From Timothy Baldwin:
40045 * commands/ls.c (grub_ls_list_files): Close FILE with
40046 grub_file_close.
40047 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
40048
40049 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
40050
40051 * include/grub/parser.h: New file.
40052
40053 * kern/parser.c: Likewise.
40054
40055 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
40056 (grub_setup_SOURCES): Likewise.
40057 (grub_probefs_SOURCES): Likewise.
40058 (grub_emu_SOURCES): Likewise.
40059 (kernel_img_HEADERS): Add `parser.h'.
40060
40061 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
40062 (grub_emu_SOURCES): Add `kern/parser.c'.
40063 (grubof_SOURCES): Likewise.
40064
40065 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
40066 (grubof_SOURCES): Add `kern/parser.c'.
40067
40068 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
40069
40070 * kern/misc.c (grub_split_cmdline): Removed function.
40071
40072 * kern/rescue.c: Include <grub/parser.h>.
40073 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
40074 of `grub_split_cmdline'.
40075
40076 * normal/command.c: Include <grub/parser.h>.
40077 (grub_command_execute): Use `grub_parser_split_cmdline' instead
40078 of `grub_split_cmdline'.
40079
40080 * normal/completion.c: Include <grub/parser.h>.
40081 (cmdline_state): New variable.
40082 (iterate_dir): End the filename with a quote depending on the
40083 command line state.
40084 (get_state): new function.
40085 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
40086 split the arguments and determine the current argument. When the
40087 argument string is not quoted, escape all spaces.
40088
40089 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
40090
40091 * normal/sparc64/setjmp.S: New file.
40092
40093 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
40094
40095 * include/grub/sparc64/libgcc.h: New file.
40096 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
40097 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
40098 normal/sparc64/setjmp.c.
40099
40100 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
40101
40102 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
40103 * kern/sparc64/cache.S: New file.
40104 * kern/sparc64/cache.c: Removed.
40105 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
40106 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
40107 -mtune=ultrasparc.
40108 (COMMON_LDFLAGS): Add -melf64_sparc.
40109 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
40110 (grubof_SOURCES): Use cache.S instead of cache.c.
40111 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
40112 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
40113 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
40114 commented though.
40115 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
40116 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
40117 (linux_mod_CFLAGS): Commented out.
40118 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
40119 out because module isn't built.
40120 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
40121 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
40122 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
40123 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
40124 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
40125 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
40126 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
40127 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
40128 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
40129 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
40130 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
40131 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
40132 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
40133 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
40134
40135 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
40136
40137 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
40138 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
40139 longer, because HFS should not be used on PC.
40140
40141 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
40142
40143 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
40144 consistently within the loop.
40145
40146 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
40147
40148 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
40149 directory can not be read.
40150
40151 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40152
40153 * configure.ac (AC_INIT): Increase the version number to 1.91.
40154
40155 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
40156 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
40157 term/i386/pc/serial.c.
40158
40159 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40160
40161 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
40162 file size must be permitted.
40163
40164 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
40165 between %ah and %al.
40166
40167 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40168
40169 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
40170 grub_uint64_t.
40171 Call the hook with a NUL-terminated filename.
40172 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
40173 grub_cpu_to_be32.
40174
40175 * kern/term.c (cursor_state): New variable.
40176 (grub_term_set_current): Reset the cursor state on a new
40177 terminal.
40178 (grub_setcursor): Rewritten to use CURSOR_STATE.
40179 (grub_getcursor): New function.
40180
40181 * include/grub/term.h (grub_getcursor): New prototype.
40182
40183 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
40184 integers on ARM. Reported by Timothy Baldwin
40185 <T.E.Baldwin99@members.leeds.ac.uk>.
40186
40187 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
40188
40189 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
40190 allocated.
40191 (grub_sfs_dir): Likewise.
40192
40193 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
40194
40195 Add support for the SFS filesystem.
40196
40197 * fs/sfs.c: New file.
40198
40199 * DISTLIST: Added `fs/sfs.c'.
40200
40201 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
40202 (grub_probefs_SOURCES): Likewise.
40203 (grub_emu_SOURCES): Likewise.
40204 (pkgdata_MODULES): Add `sfs.mod'.
40205 (sfs_mod_SOURCES): New variable.
40206 (sfs_mod_CFLAGS): Likewise.
40207 (sfs_mod_LDFLAGS): Likewise.
40208
40209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
40210 (pkgdata_MODULES): Add `sfs.mod'.
40211 (sfs_mod_SOURCES): New variable.
40212 (sfs_mod_CFLAGS): Likewise.
40213
40214 * util/grub-emu.c (main): Call `grub_sfs_init' and
40215 `grub_sfs_fini'.
40216
40217 * include/grub/fs.h (grub_sfs_init): New prototype.
40218 (grub_sfs_fini): Likewise.
40219
40220 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
40221
40222 Add support for the AFFS filesystem.
40223
40224 * fs/affs.c: New file.
40225
40226 * DISTLIST: Added `fs/affs.c'.
40227
40228 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
40229 (grub_probefs_SOURCES): Likewise.
40230 (grub_emu_SOURCES): Likewise.
40231 (pkgdata_MODULES): Add `affs.mod'.
40232 (affs_mod_SOURCES): New variable.
40233 (affs_mod_CFLAGS): Likewise.
40234 (affs_mod_LDFLAGS): Likewise.
40235
40236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
40237 (pkgdata_MODULES): Add `affs.mod'.
40238 (affs_mod_SOURCES): New variable.
40239 (affs_mod_CFLAGS): Likewise.
40240
40241 * util/grub-emu.c (main): Call `grub_affs_init' and
40242 `grub_affs_fini'.
40243
40244 * include/grub/fs.h (grub_affs_init): New prototype.
40245 (grub_affs_fini): Likewise.
40246
40247 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
40248
40249 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
40250
40251 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
40252
40253 * configure.ac: Accept `x86_64' as host_cpu. In that case add
40254 `-m32' to CFLAGS.
40255
40256 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
40257 linking.
40258
40259 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
40260 (COMMON_LDFLAGS): New variable.
40261 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
40262 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
40263 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
40264 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
40265 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
40266 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
40267 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
40268 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
40269 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
40270 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
40271 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
40272 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
40273 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
40274 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
40275 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
40276 variables.
40277 (normal_mod_ASFLAGS): Add `-m32'.
40278
40279 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
40280 (grub_host_size_t, grub_host_ssize_t): New types.
40281 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
40282 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
40283 `GRUB_HOST_SIZEOF_VOID_P'.
40284
40285 * include/grub/kernel.h (struct grub_module_header): Type of
40286 member offset changed to `grub_host_off_t'. Type of member size
40287 changed to `grub_host_size_t'.
40288 (struct grub_module_info): Type of member offset changed to
40289 `grub_host_off_t'. Type of member size changed to
40290 `grub_host_size_t'.
40291
40292 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
40293
40294 Make GRUB's kernel compliant to Multiboot Specification.
40295
40296 * kern/i386/pc/startup.S (multiboot_header): New label.
40297 (multiboot_entry): Likewise.
40298 (multiboot_trampoline): Likewise.
40299
40300 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40301 Increased to 0x4A0.
40302
40303 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
40304 put parentheses after a question mark.
40305 [!GRUB_UTIL] (my_mod): New variable.
40306
40307 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
40308
40309 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
40310
40311 Adds support for the XFS filesystem. Btrees are not supported
40312 yet.
40313
40314 * fs/xfs.c: New file.
40315
40316 * DISTLIST: Added `fs/xfs.c'.
40317
40318 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
40319 (grub_probefs_SOURCES): Likewise.
40320 (grub_emu_SOURCES): Likewise.
40321 (pkgdata_MODULES): Add `xfs.mod'.
40322 (xfs_mod_SOURCES): New variable.
40323 (xfs_mod_CFLAGS): Likewise.
40324
40325 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
40326 (pkgdata_MODULES): Add `xfs.mod'.
40327 (xfs_mod_SOURCES): New variable.
40328 (xfs_mod_CFLAGS): Likewise.
40329
40330 * util/grub-emu.c (main): Call `grub_xfs_init' and
40331 `grub_xfs_fini'.
40332
40333 * include/grub/fs.h (grub_xfs_init): New prototype.
40334 (grub_xfs_fini): Likewise.
40335
40336
40337 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
40338
40339 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
40340 color modes, allow greater than 16 colors to be configured as
40341 a default palette.
40342
40343 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40344
40345 * normal/completion.c (complete_arguments): Add the qualifier
40346 const into OPTIONS.
40347
40348 From Omniflux <omniflux+lists@omniflux.com>:
40349 * include/grub/terminfo.h: New file.
40350 * include/grub/tparm.h: Likewise.
40351 * include/grub/i386/pc/serial.h: Likewise.
40352 * term/terminfo.c: Likewise.
40353 * term/tparm.c: Likewise.
40354 * term/i386/pc/serial.c: Likewise.
40355 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
40356 serial.mod.
40357 (terminfo_mod_SOURCES): New variable.
40358 (terminfo_mod_CFLAGS): Likewise.
40359 (serial_mod_SOURCES): Likewise.
40360 (serial_mod_CFLAGS): Likewise.
40361
40362 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
40363
40364 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
40365 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
40366 and kern/powerpc/ieee1275/cmain.c, respectively.
40367
40368 * boot/powerpc/ieee1275/crt0.S: Moved to ...
40369 * kern/powerpc/ieee1275/crt0.S: ... here.
40370
40371 * boot/powerpc/ieee1275/cmain.c: Moved to ...
40372 * kern/powerpc/ieee1275/cmain.c: ... here.
40373
40374 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
40375 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
40376 instead of boot/powerpc/ieee1275/crt0.S and
40377 boot/powerpc/ieee1275/cmain.c, respectively.
40378
40379 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
40380 sectors. It was not used anyway.
40381
40382 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
40383
40384 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
40385 `unused parameter' warning.
40386
40387 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
40388
40389 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
40390 function.
40391 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
40392 getcharwidth.
40393
40394 2005-08-28 Marco Gerards <metgerards@student.han.nl>
40395
40396 * include/grub/normal.h (enum grub_completion_type): Added
40397 `GRUB_COMPLETION_TYPE_ARGUMENT'.
40398
40399 * normal/cmdline.c (print_completion): Handle
40400 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
40401 * normal/menu_entry.c (store_completion): Likewise.
40402
40403 * normal/completion.c (complete_arguments): New function.
40404 (grub_normal_do_completion): Call `complete_arguments' when the
40405 current words start with a dash.
40406
40407 2005-08-27 Marco Gerards <metgerards@student.han.nl>
40408
40409 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
40410 `gzio.mod' instead of `io.mod').
40411
40412 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
40413
40414 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
40415 (DISTDIRS): Added io and video.
40416 Rewrite the search routine to make an output consistently.
40417
40418 * DISTLIST: Added conf/sparc64-ieee1275.mk,
40419 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
40420 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
40421 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
40422 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
40423 util/powerpc/ieee1275/misc.c.
40424
40425 * include/grub/gzio.h: New file.
40426 * io/gzio.c: Likewise.
40427
40428 * kern/file.c (grub_file_close): Call grub_device_close only if
40429 FILE->DEVICE is not NULL.
40430
40431 * include/grub/mm.h [!NULL] (NULL): New macro.
40432
40433 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
40434
40435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
40436 (pkgdata_MODULES): Added gzio.mod.
40437 (gzio_mod_SOURCES): New variable.
40438 (gzio_mod_CFLAGS): Likewise.
40439
40440 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
40441 (pkgdata_MODULES): Added gzio.mod.
40442 (gzio_mod_SOURCES): New variable.
40443 (gzio_mod_CFLAGS): Likewise.
40444
40445 * commands/cat.c: Include grub/gzio.h.
40446 (grub_cmd_cat): Use grub_gzfile_open instead of
40447 grub_file_open.
40448
40449 * commands/cmp.c: Include grub/gzio.h.
40450 (grub_cmd_cmp): Use grub_gzfile_open instead of
40451 grub_file_open.
40452
40453 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
40454 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
40455 grub_file_open.
40456 (grub_rescue_cmd_module): Likewise.
40457
40458 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
40459
40460 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
40461 kern/sparc64/ieee1275/init.c because it contains _start.
40462 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
40463
40464 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
40465
40466 * configure.ac: Add support for sparc64 host with ieee1275
40467 firmware.
40468 * configure: Generated from configure.ac.
40469 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
40470 instead of int.
40471 (grub_ofdisk_read): Likewise.
40472 (grub_ofdisk_open): Use %p to print pointer values, and cast the
40473 pointers as (void *) to remove a warning.
40474 (grub_ofdisk_close): Likewise.
40475 (grub_ofdisk_read): Likewise.
40476 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
40477 returns, so make it return void to remove a warning.
40478 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
40479 Corresponding prototype change.
40480 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
40481 values, and cast the pointers as (void *) to remove a warning.
40482 (grub_mm_dump): Likewise.
40483 * conf/sparc64-ieee1275.mk: New file.
40484 * conf/sparc64-ieee1275.rmk: Likewise.
40485 * include/grub/sparc64/setjmp.h: Likewise.
40486 * include/grub/sparc64/types.h: Likewise.
40487 * include/grub/sparc64/ieee1275/console.h: Likewise.
40488 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40489 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40490 * include/grub/sparc64/ieee1275/time.h: Likewise.
40491 * kern/sparc64/cache.c: Likewise.
40492 * kern/sparc64/dl.c: Likewise.
40493 * kern/sparc64/ieee1275/init.c: Likewise.
40494 * kern/sparc64/ieee1275/openfw.c: Likewise.
40495
40496 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
40497
40498 * util/console.c (grub_ncurses_putchar): If C is greater than
40499 0x7f, set C to a question mark.
40500 (grub_ncurses_getcharwidth): New function.
40501 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
40502 getcharwidth.
40503
40504 * normal/menu.c (print_entry): Made aware of Unicode. First,
40505 convert TITLE to UCS-4, and predict the cursor position by
40506 grub_getcharwidth.
40507
40508 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
40509 const to SRC.
40510 * kern/misc.c (grub_utf16_to_utf8): Likewise.
40511
40512 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
40513
40514 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
40515 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
40516 grub_strcat.
40517
40518 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
40519 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
40520 grub_strcpy and grub_strlen. Take it into account that a space
40521 character is inserted as a delimiter.
40522
40523 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
40524
40525 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
40526 invalid magic in the error.
40527
40528 * commands/search.c: New file.
40529
40530 * util/grub-emu.c (main): Call grub_search_init and
40531 grub_search_fini.
40532
40533 * kern/rescue.c (grub_rescue_print_disks): Removed.
40534 (grub_rescue_print_devices): New function.
40535 (grub_rescue_cmd_ls): Use grub_device_iterate with
40536 grub_rescue_print_devices instead of grub_disk_dev_iterate with
40537 grub_rescue_print_disks.
40538
40539 * kern/partition.c (grub_partition_iterate): Return the result of
40540 PARTMAP->ITERATE instead of GRUB_ERRNO.
40541
40542 * kern/device.c: Include grub/partition.h.
40543 (grub_device_iterate): New function.
40544
40545 * include/grub/partition.h (grub_partition_iterate): Return int
40546 instead of grub_err_t.
40547
40548 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
40549 prototype.
40550 [GRUB_UTIL] (grub_search_fini): Likewise.
40551
40552 * include/grub/device.h (grub_device_iterate): New prototype.
40553
40554 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40555 commands/search.c.
40556 (pkgdata_MODULES): Added search.mod.
40557 (search_mod_SOURCES): New variable.
40558 (search_mod_CFLAGS): Likewise.
40559
40560 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
40561 (pkgdata_MODULES): Added search.mod.
40562 (search_mod_SOURCES): New variable.
40563 (search_mod_CFLAGS): Likewise.
40564
40565 * commands/ls.c (grub_ls_list_disks): Renamed to ...
40566 (grub_ls_list_devices): ... this, and use grub_device_iterate.
40567 All callers changed.
40568
40569 * DISTLIST: Added commands/search.c.
40570
40571 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
40572
40573 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
40574 conversion.
40575 (grub_getcharwidth): New function.
40576
40577 * kern/misc.c (grub_utf8_to_ucs4): New function.
40578
40579 * include/grub/term.h (struct grub_term): Added a new member
40580 "getcharwidth".
40581 (grub_getcharwidth): New prototype.
40582
40583 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
40584
40585 * term/i386/pc/console.c (map_char): New function. Segregated from
40586 grub_console_putchar.
40587 (grub_console_putchar): Use map_char.
40588 (grub_console_getcharwidth): New function.
40589 (grub_console_term): Specified grub_console_getcharwidth as
40590 getcharwidth.
40591
40592 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
40593 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
40594
40595 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
40596 GRUB_ERRNO.
40597 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
40598 on grub_strtoul completely.
40599 (write_char): Declare local variables in the beginning of the
40600 function.
40601 (grub_vesafb_getcharwidth): New function.
40602 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
40603 getcharwidth.
40604
40605 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
40606
40607 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
40608 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
40609 commands/i386/pc/vbetest.c.
40610
40611 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
40612 call grub_vbe_get_controller_info again, because the returned
40613 information is volatile.
40614 (grub_vbe_set_video_mode): Mostly rewritten.
40615 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
40616 grub_vbe_status_t correctly.
40617 (grub_vbe_get_video_mode_info): Likewise.
40618 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
40619 several if statements.
40620
40621 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
40622 * commands/i386/pc/vbeinfo.c: ... this.
40623
40624 * commands/i386/pc/vbe_test.c: Renamed to ...
40625 * commands/i386/pc/vbetest.c: ... this.
40626
40627 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
40628 ...
40629 (grub_cmd_vbeinfo): ... this. Save video modes before
40630 iterating. Skip a video mode, if it is not available, not enough
40631 information is given or it is monochrome. Show the memory
40632 model. Leave the interpretation of MODEVAR to grub_strtoul
40633 completely.
40634 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
40635 (GRUB_MOD_FINI): Likewise.
40636
40637 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
40638 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
40639 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
40640 duplicated grub_env_get. Leave the interpretation of MODEVAR to
40641 grub_strtoul completely.
40642 (real2pm): Removed.
40643 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
40644 (GRUB_MOD_FINI): Likewise.
40645
40646 * normal/misc.c: Include grub/mm.h.
40647
40648 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
40649 vbe_list_modes with vbetest.mod and vbeinfo.mod.
40650 (vbe_list_modes_mod_SOURCES): Removed.
40651 (vbe_list_modes_mod_CFLAGS): Likewise.
40652 (vbe_test_mod_SOURCES): Likewise.
40653 (vbe_test_mod_CFLAGS): Likewise.
40654 (vbeinfo_mod_SOURCES): New variable.
40655 (vbeinfo_mod_CFLAGS): Likewise.
40656 (vbetest_mod_SOURCES): Likewise.
40657 (vbetest_mod_CFLAGS): Likewise.
40658
40659 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
40660
40661 * normal/misc.c: New file.
40662
40663 * DISTLIST: Added normal/misc.c.
40664
40665 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
40666 DISK to HOOK. Call HOOK with DISK.
40667 * partmap/apple.c (apple_partition_map_iterate): Likewise.
40668 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40669 * partmap/sun.c (sun_partition_map_iterate): Likewise.
40670
40671 * normal/menu_entry.c (struct screen): Added a new member
40672 "completion_shown".
40673 (completion_buffer): New global variable.
40674 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
40675 (store_completion): New function.
40676 (complete): Likewise.
40677 (clear_completions): Likewise.
40678 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
40679 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
40680 a tab, call complete.
40681
40682 * normal/completion.c (disk_dev): Removed.
40683 (print_simple_completion): Likewise.
40684 (print_partition_completion): Likewise.
40685 (print_func): New global variable.
40686 (add_completion): Do not take the arguments WHAT or PRINT any
40687 longer. Added a new argument TYPE. Instead of printing directly,
40688 call PRINT_FUNC if not NULL.
40689 All callers changed.
40690 (complete_device): Use a local variable DEV instead of
40691 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
40692 (grub_normal_do_completion): Take a new argument HOOK. Do not
40693 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
40694 empty string, return NULL instead.
40695 All callers changed.
40696
40697 * normal/cmdline.c (print_completion): New function.
40698
40699 * kern/partition.c (grub_partition_iterate): Add an argument DISK
40700 to HOOK.
40701 All callers changed.
40702
40703 * kern/disk.c (grub_print_partinfo): Removed.
40704
40705 * include/grub/partition.h (struct grub_partition_map): Add a new
40706 argument DISK into HOOK of ITERATE.
40707 (grub_partition_iterate): Add a new argument DISK to HOOK.
40708
40709 * include/grub/normal.h (enum grub_completion_type): New enum.
40710 (grub_completion_type_t): New type.
40711 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
40712 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
40713 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
40714 (GRUB_COMPLETION_TYPE_FILE): Likewise.
40715 (grub_normal_do_completion): Added a new argument HOOK.
40716 (grub_normal_print_device_info): New prototype.
40717
40718 * include/grub/disk.h (grub_print_partinfo): Removed.
40719
40720 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
40721 (normal_mod_SOURCES): Likewise.
40722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40723 (normal_mod_SOURCES): Likewise.
40724
40725 * commands/ls.c (grub_ls_list_disks): Use
40726 grub_normal_print_device_info instead of grub_print_partinfo. Free
40727 PNAME.
40728 (grub_ls_list_files): Use grub_normal_print_device_info instead of
40729 duplicating the code.
40730
40731 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
40732
40733 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
40734 follow GCS more precisely.
40735 * commands/i386/pc/vbe_test.c: Likewise.
40736 * include/grub/i386/pc/vbe.h: Likewise.
40737 * term/i386/pc/vesafb.c: Likewise.
40738 * video/i386/pc/vbe.c: Likewise.
40739
40740 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
40741
40742 * DISTLIST: Added term/i386/pc/vesafb.c
40743 DISTLIST: Added video/i386/pc/vbe.c
40744 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
40745 DISTLIST: Added commands/i386/pc/vbe_test.c.
40746 * commands/i386/pc/vbe_list_modes.c: New file.
40747 * commands/i386/pc/vbe_test.c: Likewise.
40748 * term/i386/pc/vesafb.c: Likewise.
40749 * video/i386/pc/vbe.c: Likewise.
40750 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
40751 (grub_vbe_probe) Added prototype.
40752 (grub_vbe_set_video_mode) Likewise.
40753 (grub_vbe_get_video_mode) Likewise.
40754 (grub_vbe_get_video_mode_info) Likewise.
40755 (grub_vbe_set_pixel_rgb) Likewise.
40756 (grub_vbe_set_pixel_index) Likewise.
40757 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
40758 (pkgdata_MODULES): Added vesafb.mod.
40759 (pkgdata_MODULES): Added vbe_list_modes.mod.
40760 (pkgdata_MODULES): Added vbe_test.mod.
40761 (vbe_mod_SOURCES): Added.
40762 (vbe_mod_CFLAGS): Likewise.
40763 (vesafb_mod_SOURCES): Likewise.
40764 (vesafb_mod_CFLAGS): Likewise.
40765 (vbe_list_modes_mod_SOURCES): Likewise.
40766 (vbe_list_modes_mod_CFLAGS): Likewise.
40767 (vbe_test_mod_SOURCES): Likewise.
40768 (vbe_test_mod_CFLAGS): Likewise.
40769
40770 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
40771
40772 * normal/command.c (grub_command_execute): If INTERACTIVE is
40773 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
40774 CMDLINE. Disable the pager if INTERACTIVE is true.
40775 All callers are changed.
40776
40777 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
40778 before reading a config file.
40779 * normal/main.c (read_config_file): Even if a command is not
40780 found, register it if it is within an entry.
40781
40782 * util/grub-emu.c: Include sys/types.h and unistd.h.
40783 (options): Added --hold.
40784 (struct arguments): Added a new member "hold".
40785 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
40786 missing.
40787 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
40788 cleared by a debugger, if it is not zero.
40789
40790 * include/grub/normal.h (grub_command_execute): Add an argument
40791 INTERACTIVE.
40792
40793 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
40794
40795 * DISTLIST: Added include/grub/i386/pc/vbe.h.
40796
40797 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
40798
40799 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
40800 program with another one, because the old one didn't detect a bug
40801 in gcc-3.4. Always use regparm 2, because the new test is still
40802 not enough for gcc-4.0. Someone must investigate a simple test
40803 case which detects a bug in gcc-4.0.
40804
40805 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
40806
40807 * DISTLIST: Added normal/completion.c.
40808
40809 * normal/completion.c: New file.
40810
40811 * term/i386/pc/console.c (grub_console_getwh): New function.
40812 (grub_console_term): Assign grub_console_getwh to getwh.
40813
40814 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
40815 function is defined in normal/completion.c as
40816 grub_normal_do_completion.
40817 (grub_cmdline_get): Use grub_normal_do_completion instead of
40818 grub_tab_complete.
40819
40820 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
40821 returns non-zero, otherwise return 0.
40822 (grub_partition_iterate): First, probe the partition map. Then,
40823 call ITERATE only for this partition map.
40824
40825 * kern/misc.c (grub_strncmp): Rewritten.
40826
40827 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
40828 returns non-zero. Otherwise return 0.
40829
40830 * include/grub/partition.h (grub_partition_map_iterate): Return
40831 int instead of void.
40832
40833 * include/grub/normal.h (grub_normal_do_completion): New prototype.
40834
40835 * include/grub/misc.h (grub_strncmp): Change the type of N to
40836 grub_size_t.
40837
40838 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
40839 of void.
40840
40841 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
40842 unsigned explicitly before comparing it with I.
40843
40844 * kern/main.c (grub_env_write_root): Add the attribute unused into
40845 VAR.
40846
40847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40848 normal/completion.c.
40849 (normal_mod_SOURCES): Likewise.
40850 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40851 (normal_mod_SOURCES): Likewise.
40852
40853 * normal/command.c (grub_iterate_commands): If ITERATE returns
40854 non-zero, return one immediately.
40855
40856 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
40857
40858 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
40859 * kern/i386/pc/startup.S: Updated Global Descriptor table's
40860 descriptions.
40861 (grub_vbe_get_controller_info): New function.
40862 (grub_vbe_get_mode_info): Likewise.
40863 (grub_vbe_set_mode): Likewise.
40864 (grub_vbe_get_mode): Likewise.
40865 (grub_vbe_set_memory_window): Likewise.
40866 (grub_vbe_get_memory_window): Likewise.
40867 (grub_vbe_set_scanline_length): Likewise.
40868 (grub_vbe_get_scanline_length): Likewise.
40869 (grub_vbe_set_display_start): Likewise.
40870 (grub_vbe_get_display_start): Likewise.
40871 (grub_vbe_set_palette_data): Likewise.
40872 * include/grub/i386/pc/vbe.h: New file.
40873
40874 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40875
40876 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
40877 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
40878 * DISTLIST: Likewise.
40879 * kern/ieee1275/of.c: Moved to ...
40880 * kern/ieee1275/ieee1275.c: ... here.
40881
40882 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40883
40884 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
40885 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
40886 Pass 0 as `end' parameter to grub_strtoul().
40887
40888 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40889
40890 * include/grub/powerpc/ieee1275/console.h: Do not include
40891 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
40892 ifdef.
40893 (grub_console_cur_color): Remove i386-specific prototype.
40894 (grub_console_real_putchar): Likewise.
40895 (grub_console_checkkey): Likewise.
40896 (grub_console_getkey): Likewise.
40897 (grub_console_getxy): Likewise.
40898 (grub_console_gotoxy): Likewise.
40899 (grub_console_cls): Likewise.
40900 (grub_console_setcursor): Likewise.
40901 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
40902 Include <grub/machine/console.h>.
40903 * term/ieee1275/ofconsole.c: Likewise.
40904
40905 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
40906
40907 * Makefile.in (LIBLZO): New variable.
40908
40909 * configure.ac: Check for LZO version 2.
40910
40911 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
40912 lzo/lzo1x.h instead of lzo1x.h.
40913
40914 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
40915 of -llzo.
40916
40917 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
40918 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
40919
40920 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
40921 copying the data from PARTITION to P.
40922
40923 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40924
40925 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
40926 negative, unload the module.
40927
40928 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
40929 map is "pc_partition_map" but not "pc".
40930 (usage): Fix the description. The options are --boot-image and
40931 --core-image but not --boot-file or --core-file.
40932 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
40933 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
40934 DEFAULT_DIRECTORY.
40935
40936 * util/i386/pc/grub-install.in: Do not specify --boot-file or
40937 --core-file. Specify INSTALL_DEVICE as an argument.
40938
40939 * util/console.c: Include config.h.
40940 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
40941 [HAVE_NCURSES_H]: Include ncurses.h.
40942 [HAVE_CURSES_H]: Include curses.h.
40943 [!A_NORMAL] (A_NORMAL): Defined as zero.
40944 [!A_STANDOUT] (A_STANDOUT): Likewise.
40945
40946 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
40947 -lncurses.
40948 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
40949
40950 * configure.ac: Check for curses libraries and headers.
40951
40952 * Makefile.in (LIBCURSES): New variable.
40953
40954 * genmk.rb (Script::rule): Set the executable bits.
40955
40956 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
40957 name of the PC partition map is "pc_partition_map" but not "pc".
40958
40959 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40960
40961 * util/i386/pc/grub-install.in (grub_probefs): New variable.
40962 (modules): Likewise.
40963 (usage): Added descriptions for --modules and --grub-probefs.
40964 Handle --modules and --grub-probefs. Save the arguments in MODULES
40965 and GRUB_PROBEFS, respectively.
40966 Auto-detect a filesystem module against GRUBDIR. If the result is
40967 empty and modules are not specified explicitly, abort the
40968 installation. Add the result to MODULES.
40969
40970 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
40971 disk/powerpc/ieee1275/ofdisk.c,
40972 include/grub/powerpc/ieee1275/init.h and
40973 term/powerpc/ieee1275/ofconsole.c.
40974 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
40975 term/ieee1275/ofconsole.c.
40976
40977 * include/grub/powerpc/ieee1275/console.h: Resurrected.
40978
40979 * COPYING: Upgraded to the latest version. Only the address of the
40980 FSF office has changed.
40981
40982 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40983
40984 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
40985 kern/ieee1275.c with kern/ieee1275/of.c.
40986
40987 * kern/ieee1275.c: Moved to ...
40988 * kern/ieee1275/of.c: ... here.
40989
40990 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
40991
40992 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
40993 readability.
40994
40995 * config.guess: Updated to the latest version from gnulib.
40996 * config.sub: Likewise.
40997 * install.sh: Likewise.
40998 * mkinstalldirs: Likewise.
40999
41000 * include/grub/console.h: Removed. This file is arch-specific. Do
41001 not put this in include/grub.
41002
41003 * include/grub/i386/pc/console.h: Resurrected.
41004
41005 * util/console.c: Include grub/machine/console.h instead of
41006 grub/console.h.
41007 * util/grub-emu.c: Likewise.
41008
41009 2005-08-04 Marco Gerards <metgerards@student.han.nl>
41010
41011 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
41012 hardcoded value.
41013
41014 From Vincent Pelletier <subdino2004@yahoo.fr>
41015 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
41016 Redefined to use grub_getwh.
41017 (grub_term): New member named getwh.
41018 (grub_getwh): New prototype.
41019 * kern/term.c (grub_getwh): New function.
41020 * term/i386/pc/console.c (grub_console_getwh): New function.
41021 (grub_console_term): New member `getwh'.
41022 * term/i386/pc/vga.c (grub_vga_getwh): New function.
41023 (grub_vga_term): New member `getwh'.
41024 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
41025 grub_ssize_t.
41026 (grub_ofconsole_getw): New function.
41027 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
41028 (grub_ofconsole_term): New field named getwh and new initial
41029 value.
41030
41031 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
41032
41033 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
41034 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
41035 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
41036 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
41037 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
41038 of <grub/machine/ieee1275.h>.
41039 * commands/ieee1275/reboot.c: Likewise.
41040 * boot/powerpc/ieee1275/ieee1275.c: Move ...
41041 * kern/ieee1275.c: ... to here. All users updated. Change all
41042 parameter structs to use new type `grub_ieee1275_cell_t'.
41043 * term/powerpc/ieee1275/ofconsole.c: Move ...
41044 * term/ieee1275/ofconsole.c: ... to here. All users updated.
41045 * disk/powerpc/ieee1275/ofdisk.c: Move ...
41046 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
41047 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
41048 to return int.
41049 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
41050 Remove unused prototypes. All users updated.
41051 * include/grub/powerpc/ieee1275/console.h: Removed.
41052 * include/grub/powerpc/ieee1275/ieee1275.h: Define
41053 `grub_ieee1275_cell_t'.
41054 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
41055 Cast comparisons with -1 to the correct type.
41056 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
41057 type to match `grub_ieee1275_entry_fn'.
41058
41059 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
41060
41061 * DISTLIST: Added util/i386/pc/grub-probefs.c.
41062
41063 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
41064 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
41065 partmap/sun.c.
41066 (grub_probefs_SOURCES): New variable.
41067
41068 * util/i386/pc/grub-probefs.c: New file.
41069
41070 * util/i386/pc/grub-setup.c (main): Call
41071 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
41072 grub_hfs_init and grub_jfs_init to initialize the system. Call
41073 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
41074 grub_pc_partition_map_fini to finish the system.
41075
41076 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
41077
41078 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
41079 function.
41080 (grub_multiboot_load_elf32): Likewise.
41081 (grub_multiboot_is_elf64): Likewise.
41082 (grub_multiboot_load_elf64): Likewise.
41083 (grub_multiboot_load_elf): Likewise.
41084 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
41085 an ELF32 or ELF64 file.
41086 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
41087
41088 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
41089 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
41090 NULL before calling FS->LABEL.
41091 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
41092 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
41093 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
41094 before calling FS->LABEL.
41095
41096 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
41097
41098 * util/i386/pc/grub-install.in (datadir): New variable.
41099 (libdir): Removed.
41100 (pkgdatadir): New variable.
41101 (pkglibdir): Removed.
41102
41103 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
41104
41105 * DISTLIST: Added util/i386/pc/grub-install.in.
41106
41107 * util/i386/pc/grub-install.in: New file.
41108
41109 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
41110 (grub_install_SOURCES): Likewise.
41111
41112 * genmk.rb: Added support for scripts.
41113 (Script): New class.
41114 (scripts): New variable.
41115
41116 * Makefile.in (install-local): Install sbin_SCRIPTS by
41117 INSTALL_SCRIPT.
41118 (uninstall): Remove sbin_SCRIPTS.
41119
41120 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
41121 device, try to get a GRUB device by
41122 grub_util_biosdisk_get_grub_dev.
41123 Free DEST_DEV.
41124
41125 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
41126 description for --device-map.
41127
41128 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
41129
41130 Change the semantics of variable hooks. They now return strings
41131 instead of error values.
41132
41133 * util/i386/pc/grub-setup.c: Include grub/env.h.
41134 (setup): Use grub_device_set_root instead of grub_env_set.
41135
41136 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
41137 grub_env_get instead of grub_device_set_root and
41138 grub_device_get_root, respectively.
41139
41140 * kern/main.c (grub_env_write_root): New function.
41141 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
41142 grub_env_set instead of grub_device_set_root.
41143
41144 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
41145 many variables.
41146 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
41147 rather than calling ENV->WRITE_HOOK afterwards.
41148 (grub_env_get): Return the result of ENV->READ_HOOK rather than
41149 passing a pointer of a pointer.
41150 (grub_register_variable_hook): Change the types of "read_hook" and
41151 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
41152 respectively.
41153 Allocate the default empty string on the heap, because this string
41154 may be freed later.
41155
41156 * kern/device.c: Include grub/env.h.
41157 (grub_device_set_root): Removed.
41158 (grub_device_get_root): Likewise.
41159 (grub_device_open): Use grub_env_get instead of
41160 grub_device_get_root.
41161
41162 * include/grub/env.h (grub_env_read_hook_t): New type.
41163 (grub_env_write_hook_t): Likewise.
41164 (grub_env_var): Change the types of "read_hook" and "write_hook"
41165 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
41166 (grub_register_variable_hook): Likewise.
41167
41168 * include/grub/device.h (grub_device_set_root): Removed.
41169 (grub_device_set_root): Likewise.
41170
41171 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
41172 make sure that DIRNAME terminates with '/', so that
41173 grub_fat_find_dir will fail if PATH is not a directory.
41174
41175 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
41176 from DIRNAME.
41177 Use the qualifier auto for print_files and print_files_long.
41178 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
41179 as a regular file.
41180 Put a newline only if there is no error.
41181 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
41182 used.
41183
41184 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
41185
41186 * kern/partition.c (grub_partition_probe): Initialize PART to
41187 NULL. Otherwise, when no partition map is registered, this returns
41188 a garbage.
41189
41190 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
41191
41192 * partmap/apple.c (apple_partition_map_iterate): Check if POS
41193 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
41194 valid.
41195
41196 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
41197
41198 * commands/ls.c (grub_ls_list_disks): Print the filesystem
41199 information on each device, if it does not have partitions. Print
41200 "Device" instead of "Disk", because this function is not specific
41201 to disk devices.
41202
41203 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
41204 static to ensure that it is put on the memory rather than a
41205 register.
41206
41207 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
41208
41209 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
41210 (grub_cat_init): Likewise.
41211 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
41212 (options): Likewise.
41213 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
41214 (grub_configfile_init): Likewise.
41215 * font/manager.c (GRUB_MOD_INIT): Likewise.
41216 * commands/help.c (GRUB_MOD_INIT): Likewise.
41217 (grub_help_init): Likewise.
41218 * normal/command.c (grub_command_init): Likewise.
41219 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
41220 * disk/loopback.c (grub_loop_init): Likewise.
41221 (GRUB_MOD_INIT): Likewise.
41222 * commands/ls.c (grub_ls_init): Likewise.
41223 (GRUB_MOD_INIT): Likewise.
41224 (options): Likewise.
41225 * commands/boot.c (grub_boot_init): Likewise.
41226 (GRUB_MOD_INIT): Likewise.
41227 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
41228 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
41229 (GRUB_MOD_INIT): Likewise.
41230 * commands/cmp.c (grub_cmp_init): Likewise.
41231 (GRUB_MOD_INIT): Likewise.
41232
41233 * normal/arg.c: Use <> instead of "" to include header files.
41234 (SHORT_ARG_HELP): New macro.
41235 (SHORT_ARG_USAGE): Likewise.
41236 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
41237 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
41238 descriptions.
41239 (find_short): Check if C is 'h' or 'u' explicitly.
41240 (grub_arg_show_help): Use space characters instead of tabs. Treat
41241 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
41242 are shown with --help and --usage only if they are not used for
41243 the command itself.
41244 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
41245 'h' and 'u'.
41246
41247 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
41248 const into "longarg". Change the type of "shortarg" to int.
41249
41250 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
41251
41252 * boot/i386/pc/boot.S (boot_drive_check): New label.
41253
41254 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
41255 macro.
41256
41257 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
41258 which do not pass a boot drive correctly. Copied from GRUB Legacy.
41259
41260 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
41261
41262 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
41263 When turning off Gate A20, skip the check and return immediately,
41264 because this is not fatal usually.
41265
41266 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
41267
41268 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
41269 be 0x7C00 instead of 0x8000.
41270
41271 * boot/i386/pc/pxeboot.S: Rewritten.
41272
41273 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
41274 EXT_C.
41275 (gate_a20_check_state): Read a byte from 0x108000. Invert the
41276 result.
41277
41278 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
41279
41280 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
41281 robustness. This routine now supports a BIOS call and System
41282 Control Port A to modify the gate A20.
41283
41284 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41285 Increased to 0x440.
41286
41287 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
41288
41289 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
41290 device path and resulting ihandle.
41291 (grub_ofdisk_close): dprintf the ihandle being closed.
41292 (grub_ofdisk_read): dprintf function parameters.
41293 * kern/mm.c (grub_mm_init_region): Likewise.
41294 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
41295 (grub_linux_boot): dprintf the Linux entry point, initrd address and
41296 size, and boot arguments.
41297 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
41298 before loading into memory.
41299 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
41300 before loading into memory.
41301
41302 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
41303
41304 * kern/mm.c: Added much documentation.
41305 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
41306 8, set to 5 instead of 8.
41307
41308 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
41309
41310 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
41311
41312 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
41313 (grub_mkdevicemap_SOURCES): New variable.
41314
41315 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
41316 lib/device.c of GRUB Legacy.
41317
41318 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
41319
41320 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
41321 instead of PATH is NULL.
41322
41323 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
41324
41325 * commands/cmp.c (BUFFER_SIZE): New macro.
41326 (grub_cmd_cmp): Close the right file at the right time. Compare
41327 only data just read. Don't report files of different size as
41328 identical. Dynamically allocate buffers. Move variable
41329 declarations at the beginning of function.
41330
41331 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
41332
41333 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
41334 reverse.
41335
41336 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
41337
41338 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
41339 when backspace is pressed at beginning of line.
41340
41341 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
41342
41343 * DISTLIST: Added genfslist.sh.
41344
41345 * normal/main.c (fs_module_list): New variable.
41346 (autoload_fs_module): New function.
41347 (read_fs_list): Likewise.
41348 (grub_normal_execute): Call read_fs_list.
41349
41350 * kern/fs.c (grub_fs_autoload_hook): New variable.
41351 (grub_fs_probe): Added support for auto-loading.
41352
41353 * include/grub/normal.h (struct grub_fs_module_list): New struct.
41354 (grub_fs_module_list_t): New type.
41355
41356 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
41357 (grub_fs_autoload_hook): New prototype.
41358
41359 * genfslist.sh: New file.
41360
41361 * genmk.rb: Added a rule to generate a filesystem list.
41362
41363 2005-06-30 Marco Gerards <metgerards@student.han.nl>
41364
41365 * configure.ac: Fix the test for cross-compiling.
41366
41367 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
41368 define GRUB_UTIL anymore.
41369
41370 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
41371 so this function works on other systems than just big endian.
41372 (load_modules): Likewise.
41373 (add_segments): Likewise.
41374
41375 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
41376
41377 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
41378 contains `l' modifier, get a long from va_arg().
41379
41380 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
41381
41382 * kern/mm.c (grub_free): If the next free block which is being
41383 merged is the first free block, set the first block to the block
41384 being freed.
41385 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
41386
41387 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
41388
41389 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
41390 `grub_ieee1275_chosen'.
41391
41392 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
41393
41394 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
41395 (grub_ieee1275_chosen): New variable.
41396 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
41397 `chosen'.
41398 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
41399 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41400 Rename first argument to `phandle' for consistency.
41401 (grub_ieee1275_get_property_length): Likewise.
41402 (grub_ieee1275_next_property): Likewise. Change type of first argument
41403 to grub_ieee1275_phandle_t.
41404 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
41405 Move export next to declaration.
41406 (grub_ieee1275_chosen): New variable.
41407 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
41408 Correct cosmetic typo.
41409 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
41410 `grub_ieee1275_chosen'.
41411 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
41412 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
41413 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
41414 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
41415 `grub_ieee1275_chosen'.
41416
41417 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
41418
41419 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
41420 /chosen/bootargs.
41421 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
41422 /chosen/bootargs as "variable=value" pairs.
41423
41424 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
41425
41426 * include/grub/misc.h (grub_dprintf): New macro.
41427 (grub_real_dprintf): New prototype.
41428 (grub_strword): Likewise.
41429 (grub_iswordseparator): Likewise.
41430 * kern/misc.c (grub_real_dprintf): New function.
41431 (grub_strword): Likewise.
41432 (grub_iswordseparator): Likewise.
41433
41434 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
41435
41436 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
41437 (roundup): Remove macro.
41438 (grub_ieee1275_flags): Make static.
41439 (grub_ieee1275_realmode): Remove.
41440 (grub_ieee1275_test_flag): New function.
41441 (grub_ieee1275_set_flag): Likewise.
41442 (find_options): Rename to `grub_ieee1275_find_options'; update
41443 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
41444 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
41445 (cmain): New prototype.
41446 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
41447 `grub_ieee1275_flags' directly.
41448 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
41449 machine/biosdisk.h.
41450 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
41451 Don't include grub/machine/init.h.
41452 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
41453 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
41454 Remove prototype.
41455 (grub_ieee1275_realmode): Likewise.
41456 (grub_ieee1275_flag): New enum.
41457 (grub_ieee1275_test_flag): New prototype.
41458 (grub_ieee1275_set_flag): New prototype.
41459 * include/grub/powerpc/ieee1275/init.h: Remove file.
41460 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
41461 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
41462 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
41463 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
41464 comment.
41465 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
41466 `grub_ieee1275_test_flag'.
41467 (grub_ieee1275_encode_devname): Likewise.
41468
41469 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
41470
41471 * include/grub/powerpc/ieee1275/ieee1275.h
41472 (grub_ieee1275_encode_devname): New prototype.
41473 (grub_ieee1275_get_filename): Likewise.
41474 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
41475 function.
41476 (grub_set_prefix): Likewise.
41477 (grub_machine_init): Call grub_set_prefix.
41478 * kern/powerpc/ieee1275/openfw.c: Fix typos.
41479 (grub_parse_type): New enum.
41480 (grub_ieee1275_get_devargs): New function.
41481 (grub_ieee1275_get_devname): Likewise.
41482 (grub_ieee1275_parse_args): Likewise.
41483 (grub_ieee1275_get_filename): Likewise.
41484 (grub_ieee1275_encode_devname): Likewise.
41485
41486 2005-03-30 Marco Gerards <metgerards@student.han.nl>
41487
41488 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
41489 `grub_loader_unset'.
41490
41491 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
41492
41493 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
41494 instead of grub_ieee1275_interpret.
41495 (grub_halt_init): New function.
41496 (grub_halt_fini): Likewise.
41497 (GRUB_MOD_INIT): Correct message grammar.
41498 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
41499 instead of grub_ieee1275_interpret.
41500 (grub_reboot_init): New function.
41501 (grub_reboot_fini): Likewise.
41502 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
41503 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
41504 util/i386/pc/misc.c with commands/ieee1275/halt.c,
41505 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
41506 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
41507 function.
41508 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
41509 Add prototype.
41510 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
41511 prototype.
41512 (grub_halt): Likewise.
41513 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
41514 (cmain): Remove __attribute__((unused)).
41515 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
41516 (grub_heap_len): Likewise.
41517 (grub_machine_fini): New function.
41518 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
41519 (grub_halt): Likewise.
41520 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
41521 function.
41522 * util/powerpc/ieee1275/misc.c: New file.
41523
41524 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41525
41526 * DISTLIST: New file.
41527 * gendistlist.sh: Likewise.
41528
41529 * Makefile.in (COMMON_DISTFILES): Removed.
41530 (BOOT_DISTFILES): Likewise.
41531 (CONF_DISTFILES): Likewise.
41532 (DISK_DISTFILES): Likewise.
41533 (FS_DISTFILES): Likewise.
41534 (INCLUDE_DISTFILES): Likewise.
41535 (KERN_DISTFILES): Likewise.
41536 (LOADER_DISTFILES): Likewise.
41537 (TERM_DISTFILES): Likewise.
41538 (UTIL_DISTFILES): Likewise.
41539 (DISTFILES): Likewise.
41540 (uninstall): Uninstall files in $(pkgdata_DATA).
41541 (DISTLIST): New target.
41542 (distdir): Use the contents of the file DISTLIST to get a list of
41543 distributed files.
41544
41545 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41546
41547 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
41548 descriptor. This is ported from GRUB Legacy.
41549
41550 * gencmdlist.sh: Added an extra semicolon to make it work with
41551 old sed versions. Reported by Robert Bihlmeyer
41552 <robbe@orcus.priv.at>.
41553
41554 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
41555
41556 Automatic loading of commands is supported.
41557
41558 * normal/main.c (read_command_list): New function.
41559 (grub_normal_execute): Call read_command_list.
41560
41561 * normal/command.c (grub_register_command): Return zero or CMD.
41562 Allocate CMD->NAME from the heap.
41563 Initialize CMD->MODULE_NAME to zero.
41564 Find the same name as well. If the same command is found and it is
41565 a dummy command, overwrite members. If it is not a dummy command,
41566 return zero.
41567 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
41568 (grub_command_find): If a dummy command is found, load a module
41569 and retry to find a command only once.
41570
41571 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
41572 make sure that each command is loaded.
41573
41574 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
41575 macro.
41576 (struct grub_command): Remove const from the member `name'.
41577 Add a new member `module_name'.
41578 (grub_register_command): Return grub_command_t.
41579
41580 * commands/help.c (grub_cmd_help): Call grub_command_find to make
41581 sure that each command is loaded.
41582
41583 * genmk.rb (PModule::rule): Specify a module name without the
41584 suffix ".mod" to gencmdlist.sh.
41585
41586 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
41587
41588 * gencmdlist.sh: New file.
41589
41590 * genmk.rb (PModule::rule): Generate a rule for a command list.
41591 Clean command.lst.
41592 Generate command.lst from $(COMMANDFILES).
41593
41594 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
41595 (DATA): Added $(pkgdata_DATA).
41596 (install-local): Install files in $(pkgdata_DATA).
41597
41598 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
41599
41600 * term/i386/pc/vga.c (debug_command): Removed.
41601 (GRUB_MOD_INIT): Do not register the command "debug".
41602
41603 From Hollis Blanchard:
41604 * commands/configfile.c: New file.
41605 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41606 commands/configfile.c.
41607 (pkgdata_MODULES): Added configfile.mod.
41608 (configfile_mod_SOURCES): New variable.
41609 (configfile_mod_CFLAGS): Likewise.
41610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
41611 commands/configfile.c.
41612 (pkgdata_MODULES): Added configfile.mod.
41613 (configfile_mod_SOURCES): New variable.
41614 (configfile_mod_CFLAGS): Likewise.
41615 * util/grub-emu.c (main): Call grub_configfile_init and
41616 grub_configfile_fini.
41617 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
41618 prototype.
41619 [GRUB_UTIL] (grub_configfile_fini): Likewise.
41620
41621 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
41622
41623 * normal/arg.c (grub_arg_show_help): Do not show the bug report
41624 address.
41625
41626 * commands/help.c (grub_cmd_help): Do not print newlines after
41627 the last command in print_command_help.
41628
41629 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
41630
41631 * commands/default.h: New file.
41632 * commands/timeout.h: Likewise.
41633 * normal/context.c: Likewise.
41634
41635 * util/misc.c: Do not include sys/times.h.
41636 Include sys/time.h and grub/machine/time.h.
41637 (grub_get_rtc): Rewritten with gettimeofday.
41638
41639 * util/grub-emu.c (main): Call grub_default_init and
41640 grub_timeout_init before grub_normal_init, and call
41641 grub_timeout_fini and grub_default_fini after grub_main.
41642
41643 * util/console.c (grub_ncurses_checkkey): Return the read
41644 character or -1.
41645
41646 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
41647 timeouts.
41648
41649 * normal/main.c (read_config_file): Push MENU. If this fails,
41650 print an error and wait for a user input.
41651 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
41652 If a menu is empty or an error occurs, pop MENU.
41653 (grub_normal_execute): Pop and free MENU after grub_menu_run
41654 returns.
41655
41656 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
41657
41658 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
41659 include time.h.
41660 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
41661 without GRUB_UTIL.
41662 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
41663 time.h.
41664 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
41665 without GRUB_UTIL.
41666
41667 * include/grub/normal.h (struct grub_menu_list): New struct.
41668 (grub_menu_list_t): New type.
41669 (struct grub_context): New struct.
41670 (grub_context_t): New type.
41671 (grub_register_command): Got rid of EXPORT_FUNC.
41672 (grub_unregister_command): Likewise.
41673 (grub_context_get): New prototype.
41674 (grub_context_get_current_menu): Likewise.
41675 (grub_context_push_menu): Likewise.
41676 (grub_context_pop_menu): Likewise.
41677 [GRUB_UTIL] (grub_default_init): Likewise.
41678 [GRUB_UTIL] (grub_default_fini): Likewise.
41679 [GRUB_UTIL] (grub_timeout_init): Likewise.
41680 [GRUB_UTIL] (grub_timeout_fini): Likewise.
41681
41682 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
41683 commands/timeout.c and normal/context.c.
41684 (pkgdata_MODULES): Added default.mod and timeout.mod.
41685 (normal_mod_SOURCES): Added normal/context.c.
41686 (default_mod_SOURCES): New variable.
41687 (default_mod_CFLAGS): Likewise.
41688 (timeout_mod_SOURCES): Likewise.
41689 (timeout_mod_CFLAGS): Likewise.
41690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
41691 conf/i386-pc.rmk.
41692 (pkgdata_MODULES): Added default.mod and timeout.mod.
41693 (normal_mod_SOURCES): Added normal/context.c.
41694 (default_mod_SOURCES): New variable.
41695 (default_mod_CFLAGS): Likewise.
41696 (timeout_mod_SOURCES): Likewise.
41697 (timeout_mod_CFLAGS): Likewise.
41698
41699 * Makefile.in (all-local): Added $(MKFILES).
41700
41701 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
41702
41703 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
41704 (grub_emu_SOURCES): Likewise.
41705 (pkgdata_MODULES): Add `sun.mod'.
41706 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
41707 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41708 `partmap/sun.c'.
41709 (pkgdata_MODULES): Add `sun.mod'.
41710 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
41711 * include/grub/partition.h (grub_sun_partition_map_init): New
41712 prototype.
41713 (grub_sun_partition_map_fini): Likewise.
41714 * partmap/sun.c: New file.
41715 * util/grub-emu.c (main): Initialize and de-initialize the sun
41716 partitionmap support.
41717
41718 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
41719
41720 This implements an Emacs-like menu entry editor.
41721
41722 * normal/menu_entry.c: New file.
41723
41724 * util/console.c (grub_ncurses_putchar): Translate some Unicode
41725 characters to ASCII.
41726 (saved_char): New variable.
41727 (grub_ncurses_checkkey): Rewritten completely.
41728 (grub_ncurses_getkey): Likewise.
41729 (grub_ncurses_init): Call raw instead of cbreak.
41730
41731 * normal/menu.c (print_entry): Do not put a space.
41732 (init_page): Renamed to ...
41733 (grub_menu_init_page): ... this. All callers changed.
41734 (edit_menu_entry): Removed.
41735 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
41736
41737 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
41738
41739 * kern/misc.c (grub_vprintf): Call grub_refresh.
41740
41741 * normal/menu.c (DISP_LEFT): Renamed to ...
41742 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
41743 * normal/menu.c (DISP_UP): Renamed to ...
41744 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
41745 * normal/menu.c (DISP_RIGHT): Renamed to ...
41746 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
41747 * normal/menu.c (DISP_DOWN): Renamed to ...
41748 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
41749 * normal/menu.c (DISP_HLINE): Renamed to ...
41750 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
41751 * normal/menu.c (DISP_VLINE): Renamed to ...
41752 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
41753 * normal/menu.c (DISP_UL): Renamed to ...
41754 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
41755 * normal/menu.c (DISP_UR): Renamed to ...
41756 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
41757 * normal/menu.c (DISP_LL): Renamed to ...
41758 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
41759 * normal/menu.c (DISP_LR): Renamed to ...
41760 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
41761 * normal/menu.c (TERM_WIDTH): Renamed to ...
41762 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
41763 * normal/menu.c (TERM_HEIGHT): Renamed to ...
41764 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
41765 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
41766 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
41767 * normal/menu.c (TERM_MARGIN): Renamed to ...
41768 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
41769 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
41770 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
41771 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
41772 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
41773 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
41774 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
41775 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
41776 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
41777 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
41778 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
41779 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
41780 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
41781 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
41782 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
41783 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
41784 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
41785 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
41786 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
41787 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
41788 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
41789 All callers changed.
41790
41791 * include/grub/normal.h: New prototype.
41792
41793 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41794 normal/menu_entry.c.
41795 (normal_mod_SOURCES): Likewise.
41796 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41797 (normal_mod_SOURCES): Likewise.
41798
41799 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
41800
41801 * include/grub/normal.h (grub_halt_init): New prototype.
41802 (grub_halt_fini): Likewise.
41803 (grub_reboot_init): Likewise.
41804 (grub_reboot_fini): Likewise.
41805
41806 * util/grub-emu.c: Include signal.h.
41807 (main_env): New global variable.
41808 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
41809 catch C-c.
41810 (grub_machine_fini): New function.
41811 (main): Call grub_halt_init and grub_reboot_init before
41812 grub_main, and grub_reboot_fini and grub_halt_fini after it.
41813 Call setjmp with MAIN_ENV to go back afterwards.
41814 Call grub_machine_fini right before return.
41815
41816 * include/grub/util/misc.h: Include setjmp.h.
41817 (main_env): New prototype.
41818
41819 * include/grub/kernel.h (grub_machine_fini): New prototype.
41820 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
41821 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
41822
41823 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
41824 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
41825 * term/i386/pc/console.c (grub_console_fini): Likewise.
41826
41827 * util/i386/pc/misc.c: New file.
41828
41829 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41830 util/i386/pc/misc.c, commands/i386/pc/halt.c and
41831 commands/i386/pc/reboot.c.
41832
41833 2005-02-14 Guillem Jover <guillem@hadrons.org>
41834
41835 * include/grub/dl.h (grub_dl_check_header): New prototype.
41836 (grub_arch_dl_check_header): Change return type to grub_err_t,
41837 remove size parameter and export function. Update all callers.
41838 * kern/dl.c (grub_dl_check_header): New function.
41839 (grub_dl_load_core): Use `grub_dl_check_header' instead of
41840 `grub_arch_dl_check_header'. Check ELF type. Check if sections
41841 are inside the core.
41842 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
41843 independent ELF header checks.
41844 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
41845 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
41846 `grub_dl_check_header' instead of explicit checks. Check for the
41847 ELF type.
41848 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
41849 `grub_dl_check_header' instead of explicit checks. Remove arch
41850 specific ELF header checks.
41851
41852 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
41853 argument SIZE.
41854
41855 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
41856
41857 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
41858 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
41859
41860 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
41861
41862 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
41863 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
41864 (part_map_iterate): Clear `grub_errno' and return 0 if
41865 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
41866 * partmap/amiga.c (amiga_partition_map_iterate): Return
41867 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
41868 * partmap/apple.c (apple_partition_map_iterate): Likewise.
41869
41870 2005-02-01 Guillem Jover <guillem@hadrons.org>
41871
41872 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
41873 help info.
41874
41875 2005-01-31 Marco Gerards <metgerards@student.han.nl>
41876
41877 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
41878 Removed prototype.
41879 (grub_rescue_cmd_linux): New prototype.
41880 (grub_rescue_cmd_initrd): Likewise.
41881 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
41882 `bi_rec'.
41883 (grub_linux_release_mem): Release the memory for the initrd.
41884 (grub_load_linux): Renamed from this...
41885 (grub_rescue_cmd_linux): ...To this. Changed all callers.
41886 Changed `entry' not to be static. Loop over memory regions to
41887 find another one when the default fails.
41888 (grub_rescue_cmd_initrd): New function.
41889 (grub_linux_init): Remove function.
41890 (grub_linux_fini): Likewise.
41891 (GRUB_MOD_INIT): Register `initrd'.
41892 (GRUB_MOD_FINI): Unregister `initrd'.
41893 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
41894 Function removed.
41895 (grub_linux_normal_fini): Likewise.
41896 (GRUB_MOD_INIT): Register `initrd'.
41897 (GRUB_MOD_FINI): Unregister `initrd'.
41898
41899 2005-01-31 Marco Gerards <metgerards@student.han.nl>
41900
41901 * commands/help.c: New file.
41902 * normal/arg.c (show_help): Renamed to...
41903 (grub_arg_show_help): ... this.
41904 * commands/i386/pc/halt.c: New file.
41905 * commands/i386/pc/reboot.c: Likewise.
41906 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
41907 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
41908 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
41909 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
41910 variables.
41911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41912 `commands/help.c'.
41913 (pkgdata_MODULES): Add `help.mod'.
41914 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
41915 * grub/i386/pc/init.h (grub_reboot): New prototype.
41916 (grub_halt): Likewise.
41917 * include/grub/normal.h (grub_arg_show_help): New prototype.
41918 (grub_help_init): Likewise.
41919 (grub_help_fini): Likewise.
41920 * util/grub-emu.c (main): Initialize and deinitialize the help
41921 command.
41922
41923 * normal/cmdline.c (grub_cmdline_get): Doc fix.
41924
41925 * normal/command.c (grub_command_init): Fixed the description of
41926 the `set' and `unset' commands.
41927
41928 2005-01-31 Marco Gerards <metgerards@student.han.nl>
41929
41930 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
41931 function.
41932 * commands/ieee1275/halt.c: New file.
41933 * commands/ieee1275/reboot.c: Likewise.
41934 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
41935 `__attribute__ ((unused))'. Some GCS related fixed.
41936 (grub_suspend_init) [GRUB_UTIL]: Function removed.
41937 (grub_suspend_fini): Likewise.
41938 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
41939 and `halt.mod'.
41940 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
41941 (halt_mod_CFLAGS): New variables.
41942 * include/grub/powerpc/ieee1275/ieee1275.h
41943 (grub_ieee1275_interpret): New prototype.
41944
41945 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
41946
41947 * include/grub/misc.h (memmove): New prototype.
41948 (memcpy): Likewise.
41949
41950 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
41951
41952 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
41953 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
41954
41955 2005-01-22 Marco Gerards <metgerards@student.han.nl>
41956
41957 * kern/misc.c (grub_strndup): Function rewritten.
41958
41959 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
41960
41961 * normal/menu.c (TERM_WIDTH): Macro redefined.
41962 (TERM_TOP_BORDER_Y): Likewise.
41963 (draw_border): Replaced while-loop by a for-loop. Make the number
41964 of lines consistent with the number of lines displayed in
41965 print_entries. Added a margin below the rectangle.
41966 (print_entry): Make the entry fit in the rectangle.
41967 (print_entries): Display the scroll arrows next to the right
41968 border.
41969
41970 2005-01-21 Marco Gerards <metgerards@student.han.nl>
41971
41972 * fs/minix.c (grub_minix_find_file): Reserve more space for
41973 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
41974 `grub_strncpy' to copy `path' into it.
41975
41976 2005-01-21 Marco Gerards <metgerards@student.han.nl>
41977
41978 Add the loopback device, a device via which files can be accessed
41979 as devices.
41980
41981 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
41982 (pkgdata_MODULES): Add loopback.mod.
41983 (loopback_mod_SOURCES): New variable.
41984 (loopback_mod_CFLAGS): Likewise.
41985 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41986 `disk/loopback.c'.
41987 (pkgdata_MODULES): Add loopback.mod.
41988 (loopback_mod_SOURCES): New variable.
41989 (loopback_mod_CFLAGS): Likewise.
41990 * disk/loopback.c: new file.
41991 * include/grub/normal.h (grub_loop_init): New prototype.
41992 (grub_loop_fini): New prototype.
41993 * util/grub-emu.c (main): Initialize and de-initialize loopback
41994 support.
41995 * include/grub/disk.h (grub_disk_dev_id): Add
41996 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
41997
41998 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
41999
42000 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
42001 function.
42002 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
42003 (suspend_mod_SOURCES): New variable.
42004 (suspend_mod_CFLAGS): Likewise.
42005 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
42006 New prototype.
42007 * commands/ieee1275/suspend.c: New file.
42008
42009 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42010
42011 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
42012 ((unused))' to `__attribute__ ((used))'.
42013 (GRUB_MOD_FINI): Likewise.
42014 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
42015 * genmk.rb (PModule): Assign space to common symbols when linking
42016 modules.
42017
42018 2005-01-20 Marco Gerards <metgerards@student.han.nl>
42019
42020 * include/grub/mm.h (grub_mm_init_region): Change the type of the
42021 `unsigned' arguments to `grub_size_t'.
42022 (grub_malloc): Likewise.
42023 (grub_realloc): Likewise.
42024 (grub_memalign): Likewise.
42025 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
42026 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
42027 * util/misc.c (grub_malloc): Likewise.
42028 (grub_realloc): Likewise.
42029 * kern/mm.c (get_header_from_pointer): Change the casts to
42030 `unsigned' into a cast to `grub_size_t'.
42031
42032 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
42033 point to `currnode' when `currnode' is changed.
42034
42035 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
42036 Schottelius <nico-linux@schottelius.org>.
42037
42038 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
42039
42040 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
42041 (note_path): Remove variable.
42042 (GRUB_IEEE1275_NOTE_NAME): New macro.
42043 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
42044 (grub_ieee1275_note_hdr): New structure.
42045 (grub_ieee1275_note_desc): Likewise.
42046 (grub_ieee1275_note): Likewise.
42047 (load_note): Remove `dir' argument. All callers updated. Remove
42048 `note_img' and `path'. Do not load a file from `note_path'.
42049 Initialize a struct grub_ieee1275_note and write that to `out'.
42050 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
42051
42052 2005-01-05 Marco Gerards <metgerards@student.han.nl>
42053
42054 * util/misc.c (grub_util_read_image): Revert last change. It
42055 called `grub_util_read_at', which seeks from the beginning of the
42056 file.
42057
42058 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
42059
42060 * TODO: Add note about endianness in grub-mkimage.
42061 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
42062 section.
42063 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
42064 (grub_mkimage_SOURCES): New target.
42065 * include/grub/kernel.h (grub_start_addr): Remove variable.
42066 (grub_end_addr): Likewise.
42067 (grub_total_module_size): Likewise.
42068 (grub_kernel_image_size): Likewise.
42069 (GRUB_MODULE_MAGIC): New constant.
42070 (grub_module_info): New structure.
42071 (grub_arch_modules_addr): New prototype.
42072 (grub_get_end_addr): Remove prototype.
42073 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
42074 * include/grub/powerpc/ieee1275/kernel.h: New file.
42075 * include/grub/util/misc.h (grub_util_get_fp_size): New
42076 prototype.
42077 (grub_util_read_at): Likewise.
42078 (grub_util_write_image_at): Likewise.
42079 * kern/main.c (grub_get_end_addr): Remove function.
42080 (grub_load_modules): Call grub_arch_modules_addr instead of using
42081 grub_end_addr. Look for a grub_module_info struct in memory. Use
42082 the grub_module_info fields instead of calling grub_get_end_addr
42083 as loop conditions. Move grub_add_unused_region code here.
42084 (grub_add_unused_region): Remove function.
42085 * kern/i386/pc/init.c: Include grub/cache.h.
42086 (grub_machine_init): Remove call to grub_get_end_addr. Remove
42087 one call to add_mem_region.
42088 (grub_arch_modules_addr): New function.
42089 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
42090 (grub_total_module_size): Likewise.
42091 Include grub/machine/kernel.h.
42092 (grub_arch_modules_addr): New function.
42093 * util/grub-emu.c (grub_end_addr): Remove variable.
42094 (grub_total_module_size): Likewise.
42095 (grub_arch_modules_addr): New function.
42096 * util/misc.c: Include unistd.h.
42097 (grub_util_get_fp_size): New function.
42098 (grub_util_read_at): Likewise.
42099 (grub_util_write_image_at): Likewise.
42100 (grub_util_read_image): Call grub_util_read_at.
42101 (grub_util_write_image): Call grub_util_write_image_at.
42102 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
42103 additional memory in kernel_img for a struct grub_module_info.
42104 Fill in that grub_module_info.
42105 * util/powerpc/ieee1275/grub-mkimage.c: New file.
42106
42107 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
42108
42109 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
42110 New function.
42111 * include/grub/powerpc/ieee1275/ieee1275.h
42112 (grub_ieee1275_milliseconds): New prototype.
42113 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
42114 Change to 1000.
42115 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
42116 grub_ieee1275_milliseconds.
42117
42118 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
42119
42120 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
42121 variable.
42122 (find_options): New function.
42123 (cmain): Call find_options.
42124 * include/grub/powerpc/ieee1275/ieee1275.h
42125 (grub_ieee1275_realmode): New extern variable.
42126 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
42127 grub_map if grub_ieee1275_realmode is false.
42128
42129 2004-12-29 Marco Gerards <metgerards@student.han.nl>
42130
42131 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
42132 lines are inserted and make it work like readline. Reported by
42133 Vincent Pelletier <subdino2004@yahoo.fr>.
42134
42135 2004-12-28 Marco Gerards <metgerards@student.han.nl>
42136
42137 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
42138
42139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
42140 `kern/powerpc/cache.S'.
42141
42142 2004-12-27 Marco Gerards <metgerards@student.han.nl>
42143
42144 * genmk.rb: Handle the `Program' class in the main loop. Written
42145 by Johan Rydberg <jrydberg@gnu.org>.
42146 (Program): New class.
42147 (programs): New variable.
42148 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
42149 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
42150 instead of "grub/kernel.h". Include <grub/machine/init.h>.
42151 (help_arch): Function removed.
42152 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
42153 `powerpc/libgcc.h' and `loader.h'.
42154 (pkgdata_PROGRAMS): New variable.
42155 (sbin_UTILITIES): Variable removed.
42156 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
42157 (grubof_SOURCES): Variable re-defined so it only includes the
42158 core functionality.
42159 (grubof_CFLAGS): Remove `-DGRUBOF'.
42160 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
42161 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
42162 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
42163 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
42164 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
42165 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
42166 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
42167 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
42168 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
42169 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
42170 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42171 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
42172 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
42173 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
42174 (pc_mod_CFLAGS): New variables.
42175 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
42176 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
42177 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
42178 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
42179 Moved from here...
42180 * include/grub/i386/pc/init.h (grub_os_area_addr)
42181 (rub_os_area_size): ... to here.
42182 * include/grub/powerpc/ieee1275/ieee1275.h
42183 (grub_ieee1275_entry_fn): Export symbol.
42184 * include/grub/powerpc/ieee1275/init.h: New file.
42185 * include/grub/powerpc/libgcc.h: Likewise.
42186 * include/grub/cache.h: Likewise.
42187 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
42188 <hollis@penguinppc.org>.
42189 * kern/dl.c: Include <grub/cache.h>.
42190 (grub_dl_flush_cache): New function.
42191 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
42192 for this module.
42193 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
42194 (grub_console_init): Removed prototypes.
42195 (grub_machine_init): Don't initialize the modules anymore.
42196 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
42197 static.
42198 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
42199 Macro undef removed.
42200 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
42201 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
42202 relocation `R_PPC_REL32'. Return an error when the relocation is
42203 unknown.
42204 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
42205 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
42206 * util/misc.c (grub_arch_sync_caches): Likewise.
42207
42208 2004-12-19 Marco Gerards <metgerards@student.han.nl>
42209
42210 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
42211 `symlist.c', add `grubof_symlist.c'.
42212 (symlist.c): Variable removed.
42213 (grubof_HEADERS): Variable added.
42214 (grubof_symlist.c): New target.
42215 (kernel_syms.lst): Use `grubof_HEADERS' instead of
42216 `kernel_img_HEADERS'.
42217 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
42218 * kern/powerpc/dl.c: New file.
42219 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
42220 Function removed.
42221 (grub_arch_dl_relocate_symbols): Likewise.
42222 (grub_register_exported_symbols): Likewise.
42223
42224 2004-12-13 Marco Gerards <metgerards@student.han.nl>
42225
42226 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
42227 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
42228 to fail instead. Reported by Vincent Pelletier
42229 <subdino2004@yahoo.fr>.
42230
42231 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
42232 it is not allocated. Reported by Vincent Pelletier
42233 <subdino2004@yahoo.fr>.
42234
42235 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
42236 output so the output looks better.
42237
42238 2004-12-04 Marco Gerards <metgerards@student.han.nl>
42239
42240 Modulize the partition map support and add support for the amiga
42241 partition map.
42242
42243 * commands/ls.c: Include <grub/partition.h> instead of
42244 <grub/machine/partition.h>.
42245 * kern/disk.c: Likewise.
42246 * kern/rescue.c: Likewise.
42247 * loader/i386/pc/chainloader.c: Likewise.
42248 * normal/cmdline.c: Likewise.
42249 * kern/powerpc/ieee1275/init.c: Likewise.
42250 (grub_machine_init): Call `grub_pc_partition_map_init',
42251 `grub_amiga_partition_map_init' and
42252 `grub_apple_partition_map_init'.
42253 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
42254 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
42255 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
42256 `partition.h' and `pc_partition.h'.
42257 (grub_setup_SOURCES): Remove
42258 `disk/i386/pc/partition.c'. Add `kern/partition.c',
42259 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
42260 (grub_emu_SOURCES): Likewise.
42261 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
42262 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
42263 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
42264 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
42265 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
42266 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
42267 (grubof_SOURCES): Likewise.
42268 * disk/i386/pc/partition.c: File removed.
42269 * disk/powerpc/ieee1275/partition.c: Likewise.
42270 * include/grub/powerpc/ieee1275/partition.h: Likewise.
42271 * include/grub/i386/pc/partition.h: Likewise.
42272 * kern/partition.c: New file.
42273 * partmap/amiga.c: Likewise.
42274 * partmap/apple.c: Likewise.
42275 * partmap/pc.c: Likewise.
42276 * include/grub/partition.h: Likewise..
42277 * include/grub/pc_partition.h: Likewise.
42278 * util/grub-emu.c: Include <grub/partition.h> instead of
42279 <grub/machine/partition.h>.
42280 (main): Call `grub_pc_partition_map_init',
42281 `grub_amiga_partition_map_init' and
42282 `grub_apple_partition_map_init' and deinitialize afterwards.
42283 * util/i386/pc/biosdisk.c: Include `#include
42284 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
42285 `<grub/machine/partition.h>'.
42286 * util/i386/pc/grub-setup.c: Likewise.
42287 * util/i386/pc/biosdisk.c: Likewise.
42288 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
42289 partition information in case of a PC partition.
42290 * util/i386/pc/grub-setup.c: Include `#include
42291 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
42292 `<grub/machine/partition.h>'.
42293 (setup): Only access the PC specific partition information in case
42294 of a PC partition.
42295
42296 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
42297
42298 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
42299 (grub_longjmp): Likewise.
42300 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
42301 20.
42302 * normal/powerpc/setjmp.S: New file.
42303 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
42304 `normal/powerpc/setjmp.S'.
42305 (grubof_CFLAGS): Add `-DGRUBOF'.
42306 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
42307 [GRUB_UTIL && !GRUBOF].
42308
42309 2004-11-16 Marco Gerards <metgerards@student.han.nl>
42310
42311 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
42312 property named `name'. Correctly handle the error returned by
42313 `grub_ieee1275_finddevice' if a device can not be opened.
42314
42315 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
42316
42317 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
42318 `actual' for negativity.
42319 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
42320 kern/fshelp.c.
42321
42322 2004-11-01 Marco Gerards <metgerards@student.han.nl>
42323
42324 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
42325 (PAGE_OFFSET): New macro.
42326 (CRTC_ADDR_PORT): Likewise.
42327 (CRTC_DATA_PORT): Likewise.
42328 (START_ADDR_HIGH_REGISTER): Likewise.
42329 (START_ADDR_LOW_REGISTER): Likewise.
42330 (GRAPHICS_ADDR_PORT): Likewise.
42331 (GRAPHICS_DATA_PORT): Likewise.
42332 (READ_MAP_REGISTER): Likewise.
42333 (INPUT_STATUS1_REGISTER): Likewise.
42334 (INPUT_STATUS1_VERTR_BIT): Likewise.
42335 (page): New variable.
42336 (wait_vretrace): New function.
42337 (set_read_map): Likewise.
42338 (set_start_address): Likewise.
42339 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
42340 the right page.
42341 (check_vga_mem): Take the page into account.
42342 (write_char): Likewise.
42343 (write_cursor): Likewise.
42344 (scroll_up): Likewise. Copy the page to the page that is not
42345 shown and switch between both pages.
42346 (grub_vga_putchar): Fix off by one error.
42347 (grub_vga_cls): Wait for the vertical retrace. Take the page into
42348 account.
42349
42350 2004-11-01 Marco Gerards <metgerards@student.han.nl>
42351
42352 Add support for iso9660 (including rockridge).
42353
42354 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
42355 (iso9660_mod_SOURCES): New variable.
42356 (iso9660_mod_CFLAGS): Likewise.
42357 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
42358 * include/grub/fs.h (grub_iso9660_init): New prototype.
42359 * util/grub-emu.c (main): Call `grub_iso9660_init'.
42360 * fs/iso9660.c: New file.
42361
42362 * include/grub/misc.h (grub_strncat): New prototype.
42363 * kern/misc.c (grub_strncat): New function.
42364
42365 * fs/hfs.c (grub_hfs_mount): Translate the error
42366 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
42367 * fs/jfs.c (grub_jfs_mount): Likewise.
42368 * fs/ufs.c (grub_ufs_mount): Likewise.
42369
42370 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
42371
42372 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
42373 which initialized BAT registers.
42374 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
42375 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
42376 Move from here...
42377 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
42378 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
42379 ... to here.
42380 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
42381 (grub_mapclaim): Likewise.
42382 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
42383 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
42384 hand.
42385
42386 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
42387
42388 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
42389 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
42390 -ffreestanding and -msoft-float.
42391
42392 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
42393
42394 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
42395 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
42396 set in grub_ieee1275_flags.
42397
42398 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
42399
42400 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
42401 prototype.
42402 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
42403 grub_console_init first.
42404 Change the memory range used for grub_ieee1275_claim and
42405 grub_mm_init_region.
42406 Print an error message if the claim fails.
42407 Include <grub/misc.h>.
42408
42409 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
42410
42411 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
42412 Call grub_children_iterate for device nodes of type `scsi',
42413 `ide', or `ata'.
42414 (grub_ofdisk_open): Remove manual device alias resolution.
42415 Fix memory leak when device cannot be opened.
42416 * include/grub/powerpc/ieee1275/ieee1275.h
42417 (grub_children_iterate): New prototype.
42418 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
42419 New function.
42420 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
42421 Return -1 if args.size was -1.
42422
42423 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
42424
42425 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
42426 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
42427 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
42428 Open Firmware's memory for it; claim memory from _start to _end.
42429 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
42430 (_end): New extern.
42431 (_start): Zero BSS from __bss_start to _end.
42432 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
42433 New extern.
42434 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
42435
42436 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
42437
42438 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
42439 -1 if args.base was -1.
42440
42441 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
42442
42443 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
42444 escape sequence instead of a literal ^L. Also call
42445 grub_ofconsole_gotoxy.
42446
42447 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
42448
42449 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
42450 void * arguments to grub_addr_t. All callers updated. Also make
42451 the `result' argument optional.
42452 (grub_ieee1275_release): change void * arguments to grub_addr_t.
42453 All callers updated.
42454
42455 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
42456
42457 * commands/ls.c (grub_ls_list_files): Use the string following the
42458 initial ')', if present, as the filesystem path.
42459 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
42460
42461 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
42462
42463 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
42464
42465 Make the source code of the menu interface more readable.
42466
42467 * normal/menu.c: Include grub/mm.h.
42468 (TERM_WIDTH): New macro.
42469 (TERM_HEIGHT): Likewise.
42470 (TERM_INFO_HEIGHT): Likewise.
42471 (TERM_MARGIN): Likewise.
42472 (TERM_SCROLL_WIDTH): Likewise.
42473 (TERM_TOP_BORDER_Y): Likewise.
42474 (TERM_LEFT_BORDER_X): Likewise.
42475 (TERM_BORDER_WIDTH): Likewise.
42476 (TERM_MESSAGE_HEIGHT): Likewise.
42477 (TERM_BORDER_HEIGHT): Likewise.
42478 (TERM_NUM_ENTRIES): Likewise.
42479 (TERM_FIRST_ENTRY_Y): Likewise.
42480 (TERM_ENTRY_WIDTH): Likewise.
42481 (TERM_CURSOR_X): Likewise.
42482 (draw_border): Use macros instead of magic numbers.
42483 (print_entry): Likewise.
42484 (print_entries): Likewise.
42485 (run_menu): Likewise. Also, handle the key 'e'.
42486 (run_menu_entry): Ignore empty command lines.
42487 (print_message): Added a new argument EDIT. If EDIT is true,
42488 print a different message.
42489 (init_page): Likewise.
42490 (edit_menu_entry): New function. Not implemented yet.
42491
42492 2004-09-17 Marco Gerards <metgerards@student.han.nl>
42493
42494 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
42495 can be loaded from normal mode.
42496
42497 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
42498 `multiboot.mod'.
42499 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
42500 (multiboot_mod_CFLAGS): New variables.
42501 * loader/i386/pc/linux_normal.c: New file.
42502 * loader/i386/pc/multiboot_normal.c: Likewise.
42503
42504 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
42505 attribute `unused'.
42506
42507 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
42508 `fdiro' to read the mode information from instead of `diro'.
42509
42510 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
42511 looking up a symlink.
42512
42513 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
42514 macro.
42515 * normal/command.c (grub_command_execute): Don't parse the
42516 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
42517 flags of the command.
42518
42519 * normal/menu.c (grub_menu_run): Fix typo.
42520
42521 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
42522
42523 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
42524
42525 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
42526 `y + 1' instead of `y - 1'.
42527
42528 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
42529
42530 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
42531
42532 From Hollis Blanchard <hollis@penguinppc.org>:
42533 * kern/misc.c (memmove): New alias for grub_memmove.
42534 (memcmp): New alias for grub_memcmp.
42535 (memset): New alias for grub_memset.
42536 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
42537 Change "int handle" to "grub_ieee1275_phandle_t handle".
42538 * include/grub/powerpc/ieee1275/ieee1275.h
42539 (grub_ieee1275_get_property): Likewise.
42540
42541 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
42542
42543 Added normal mode command `chainloader' as module chain.mod, which
42544 depends on normal.mod and _chain.mod.
42545
42546 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
42547 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
42548 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
42549 Deleted prototype.
42550 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
42551 but arguments parsing moved to ...
42552 (grub_chainloader_cmd): ... here. New function.
42553 * include/grub/i386/pc/chainloader.h: New file.
42554 * loader/i386/pc/chainloader_normal.c: Likewise.
42555
42556 2004-09-11 Marco Gerards <metgerards@student.han.nl>
42557
42558 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
42559 (grub_mkimage_LDFLAGS): Likewise.
42560 (grub_emu_SOURCES): Likewise.
42561 (kernel_img_HEADERS): Added fshelp.h.
42562 * fs/ext2.c: Include <grub/fshelp.h>.
42563 (FILETYPE_REG): New macro.
42564 (FILETYPE_INO_REG): Likewise.
42565 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
42566 Changed all users.
42567 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
42568 all users.
42569 (grub_fshelp_node): New struct.
42570 (grub_ext2_data): Added member `diropen'. Changed member `inode'
42571 to a pointer.
42572 (grub_ext2_get_file_block): Removed function.
42573 (grub_ext2_read_block): New function.
42574 (grub_ext2_read_file): Replaced parameter `data' by `node'.
42575 This function was written.
42576 (grub_ext2_mount): Read the root inode. Create a diropen struct.
42577 (grub_ext2_find_file): Removed function.
42578 (grub_ext2_read_symlink): New function.
42579 (grub_ext2_iterate_dir): Likewise.
42580 (grub_ext2_open): Rewritten.
42581 (grub_ext2_dir): Rewritten.
42582 * include/grub/fshelp.h: New file.
42583 * fs/fshelp.c: Likewise.
42584
42585 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
42586
42587 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
42588 (print_message): Add a missing newline.
42589 (run_menu): Added timeout support.
42590 (run_menu_entry): New local function.
42591 (grub_menu_run): Added support for booting.
42592
42593 * kern/loader.c (grub_loader_is_loaded): New function.
42594
42595 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
42596 (grub_get_rtc): Exported.
42597
42598 * include/grub/i386/pc/time.h: Include grub/symbol.h.
42599 (grub_get_rtc): Exported.
42600
42601 * include/grub/normal.h (struct grub_command_list): Remove
42602 constant from the member `command'.
42603
42604 * include/grub/loader.h (grub_loader_is_loaded): Declared.
42605
42606 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
42607
42608 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
42609
42610 2004-08-28 Marco Gerards <metgerards@student.han.nl>
42611
42612 Add support for the JFS filesystem.
42613
42614 * fs/jfs.c: New file.
42615 * include/grub/fs.h (grub_jfs_init): New prototype.
42616 (grub_jfs_fini): New prototype.
42617 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
42618 (grub_emu_SOURCES): Likewise.
42619 (pkgdata_MODULES): Add jfs.mod.
42620 (jfs_mod_SOURCES): New variable.
42621 (jfs_mod_CFLAGS): Likewise.
42622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
42623 (grubof_SOURCES): Likewise.
42624 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
42625
42626 * fs/fat.c (grub_fat_find_dir): Convert the filename little
42627 endian to the host endian.
42628 (grub_fat_utf16_to_utf8): Move function from there...
42629 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
42630 the endianness of the source string anymore.
42631 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
42632
42633 2004-08-24 Marco Gerards <metgerards@student.han.nl>
42634
42635 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
42636 (grub_boot_fini) [GRUB_UTIL]: Likewise.
42637 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
42638 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
42639
42640 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
42641 (grub_hfs_iterate_dir): Make the function static. Add prototypes
42642 for `node_found' and `it_dir'.
42643 (grub_hfs_dir): Add prototype for `dir_hook'.
42644
42645 * fs/minix.c (grub_minix_get_file_block): Add prototype for
42646 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
42647 and `indir32' to silence a gcc warning.
42648
42649 * include/grub/fs.h (grub_hfs_init): New prototype.
42650 (grub_hfs_fini): Likewise.
42651
42652
42653 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
42654
42655 Each disk device has its own id now. This is useful to make use
42656 of multiple disk devices.
42657
42658 * include/grub/disk.h (grub_disk_dev_id): New enum.
42659 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
42660 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
42661
42662 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
42663 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
42664
42665 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
42666 GRUB_DISK_DEVICE_OFDISK_ID as an id.
42667
42668 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
42669 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
42670
42671 * include/grub/disk.h (struct grub_disk_dev): Added a new member
42672 "id" which is used by the cache manager.
42673
42674 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
42675 of just "GRUB".
42676
42677 2004-08-18 Marco Gerards <metgerards@student.han.nl>
42678
42679 * fs/hfs.c: New file.
42680 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
42681 (grub_emu_SOURCES): Likewise.
42682 (pkgdata_MODULES): Add hfs.mod.
42683 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
42684 (grubof_SOURCES): Likewise.
42685 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
42686
42687 * include/grub/misc.h (grub_strncasecmp): Add prototype.
42688 * kern/misc.c (grub_strncasecmp): Add function.
42689
42690 2004-08-14 Marco Gerards <metgerards@student.han.nl>
42691
42692 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
42693 with parentheses.
42694
42695 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
42696 (grub_ext2_dir): In case the directory entry type is unknown, read
42697 it from the inode.
42698
42699 2004-08-02 Peter Bruin <pjbruin@dds.nl>
42700
42701 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
42702 grub_load_linux instead of grub_rescue_cmd_linux as second
42703 argument of grub_rescue_register_command.
42704
42705 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
42706
42707 2004-07-27 Marco Gerards <metgerards@student.han.nl>
42708
42709 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
42710 function.
42711 * commands/boot.c: Remove the check for `GRUB_UTIL'.
42712 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
42713 `loader/powerpc/ieee1275/linux.c',
42714 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
42715 * include/grub/powerpc/ieee1275/ieee1275.h
42716 (grub_ieee1275_release): New prototype.
42717 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
42718 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
42719 normal, boot, linux and linux_normal.
42720 * loader/powerpc/ieee1275/linux.c: New file.
42721 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
42722
42723 2004-07-12 Marco Gerards <metgerards@student.han.nl>
42724
42725 * normal/arg.c (grub_arg_parse): Correct error handling after
42726 reallocating the argumentlist (check if `argl' is not null instead
42727 of checking if `args' is not null).
42728 * kern/mm.c (grub_realloc): Return the same pointer when using the
42729 same region, instead of returning the header address.
42730
42731 2004-07-11 Marco Gerards <metgerards@student.han.nl>
42732
42733 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
42734 one block instead of two when looking for the initial partition.
42735 (grub_partition_probe): Initialize the local variable `p' with 0.
42736 Use base 10 for the grub_strtoul call.
42737 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
42738 need for one local variable.
42739 (grub_strtoul): Don't add the new value to `num', instead of that
42740 just assign it.
42741
42742 2004-07-11 Marco Gerards <metgerards@student.han.nl>
42743
42744 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
42745 (pxeboot_img_SOURCES): New variable.
42746 (pxeboot_img_ASFLAGS): Likewise.
42747 (pxeboot_img_LDFLAGS): Likewise.
42748 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
42749 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
42750 <lode_leroy@hotmail.com>.
42751
42752 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
42753
42754 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
42755 there was no input.
42756
42757 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
42758
42759 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
42760 the history buffer logic.
42761
42762 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
42763
42764 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
42765 (FILETYPE_INO_SYMLINK): New macros.
42766 (grub_ext2_find_file): Check if the node is a directory using the
42767 inode stat information instead of using the filetype in the
42768 dirent. Exclude the first character of an absolute symlink.
42769 (grub_ext2_dir): Mask out the filetype part of the mode member of
42770 the inode.
42771
42772 2004-05-24 Marco Gerards <metgerards@student.han.nl>
42773
42774 Add support for UFS version 1 and 2. Add support for the minix
42775 filesystem version 1 and 2, both the variants with 14 and 30 long
42776 filenames.
42777
42778 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
42779 fs/minix.c.
42780 (grub_emu_SOURCES): Likewise.
42781 (pkgdata_MODULES): Add ufs.mod and minix.mod.
42782 (ufs_mod_SOURCES): New variable.
42783 (ufs_mod_CFLAGS): Likewise.
42784 (minix_mod_SOURCES): Likewise.
42785 (minix_mod_CFLAGS): Likewise.
42786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
42787 fs/minix.c.
42788 (grubof_SOURCES): Likewise.
42789 * fs/ufs.c: New file.
42790 * fs/minix.c: New file.
42791 * include/grub/fs.h (grub_ufs_init): New prototype.
42792 (grub_ufs_fini): Likewise.
42793 (grub_minix_init): Likewise.
42794 (grub_minix_fini): Likewise.
42795 * util/grub-emu.c (main): Initialize and deinitialize UFS and
42796 minix fs.
42797
42798 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
42799
42800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
42801 commands/ls.c, commands/terminal.c, commands/boot.c,
42802 commands/cmp.c and commands/cat.c.
42803 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
42804
42805 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
42806 "env.h"
42807
42808 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
42809
42810 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
42811 and grub_, respectively. Because the conversion is trivial and
42812 mechanical, I omit the details here. Please refer to the CVS
42813 if you need more information.
42814
42815 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
42816
42817 * include/pupa: Renamed to ...
42818 * include/grub: ... this.
42819 * util/i386/pc/pupa-mkimage.c: Renamed to ...
42820 * util/i386/pc/grub-mkimage.c: ... this.
42821 * util/i386/pc/pupa-setup.c: Renamed to ...
42822 * util/i386/pc/grub-setup.c: ... this.
42823 * util/pupa-emu.c: Renamed to ...
42824 * util/grub-emu.c: ... this.
42825
42826 2004-03-29 Marco Gerards <metgerards@student.han.nl>
42827
42828 Add support for the newworld apple macintosh (PPC). This has been
42829 tested on the powerbook 2000 only. It only adds support for
42830 generic ieee1275 functions, console and disk support. This should
42831 be easy to port to other architectures with support for Open
42832 Firmware.
42833
42834 * configure.ac: Accept the powerpc as host_cpu. In the case of
42835 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
42836 specific tests are only executed while building for the i386.
42837 Inverse test for crosscompile.
42838 * genmk.rb (Utility): Allow assembler files.
42839 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
42840 * conf/powerpc-ieee1275.rmk: New file.
42841 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
42842 * disk/powerpc/ieee1275/partition.c: Likewise.
42843 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
42844 * include/pupa/powerpc/ieee1275/console.h: Likewise.
42845 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
42846 * include/pupa/powerpc/ieee1275/time.h: Likewise.
42847 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
42848 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
42849 * include/pupa/powerpc/ieee1275/loader.h
42850 * include/pupa/powerpc/setjmp.h: Likewise.
42851 * include/pupa/powerpc/types.h: Likewise.
42852 * kern/powerpc/ieee1275/init.c: Likewise.
42853 * kern/powerpc/ieee1275/openfw.c: Likewise.
42854 * term/powerpc/ieee1275/ofconsole.c: Likewise.
42855
42856 These files were written by Johan Rydberg
42857 (jrydberg@night.trouble.net) and I only modified them slightly.
42858
42859 * boot/powerpc/ieee1275/cmain.c: New file.
42860 * boot/powerpc/ieee1275/crt0.S: Likewise.
42861 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
42862 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
42863
42864 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
42865
42866 * Makefile.in: Update copyright.
42867 * genmodsrc.sh: Likewise.
42868 * gensymlist.sh: Likewise.
42869 * term/i386/pc/vga.c: Indent correctly.
42870
42871 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
42872 bugreporting address.
42873 * util/i386/pc/pupa-setup.c (usage): Likewise,
42874 (main): Call pupa_ext2_init and pupa_ext2_fini.
42875
42876 * fs/fat.c (log2): Renamed to ...
42877 (fat_log2): ... this.
42878 All callers changed.
42879 * kern/misc.c (memcpy): Alias to pupa_memmove.
42880 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
42881 lvalue cast.
42882 * util/console.c (pupa_ncurses_fini): Return 0.
42883
42884 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
42885 Move fail label here.
42886 [__GNU__]: Don't warn when using stat.
42887 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
42888 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
42889 long int. Use strtol instead of strtoul.
42890
42891 2004-03-14 Marco Gerards <metgerards@student.han.nl>
42892
42893 * commands/boot.c: New file.
42894 * commands/cat.c: Likewise.
42895 * commands/cmp.c: Likewise.
42896 * commands/ls.c: Likewise.
42897 * commands/terminal.c: Likewise.
42898 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
42899 (pupa_register_command): Changed interface to match the new
42900 argument parser.
42901 (pupa_command_execute): Changed (almost rewritten) so it uses
42902 pupa_split_command. Added support for setting variables using the
42903 syntax `foo=bar'.
42904 (rescue_command): Changed to work with the new argument parser.
42905 (terminal_command): Moved from here to commands/terminal.c.
42906 (set_command): New function.
42907 (unset_command): New function.
42908 (insmod_command): New function.
42909 (rmmod_command): New function.
42910 (lsmod_command): New function.
42911 (pupa_command_init): Don't initialize the command terminal
42912 anymore. Initialize the commands set, unset, insmod, rmmod and
42913 lsmod.
42914 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
42915 (kernel_img_HEADERS): Add arg.h and env.h.
42916 (pupa_mkimage_LDFLAGS): Add kern/env.c.
42917 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
42918 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
42919 normal/arg.c.
42920 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
42921 terminal.mod.
42922 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
42923 (boot_mod_SOURCES): New variable.
42924 (terminal_mod_SOURCES): Likewise.
42925 (ls_mod_SOURCES): Likewise.
42926 (cmp_mod_SOURCES): Likewise.
42927 (cat_mod_SOURCES): Likewise.
42928
42929 * normal/arg.c: New file.
42930 * kern/env.c: Likewise.
42931 * include/pupa/arg.h: Likewise.
42932 * include/pupa/env.h: Likewise.
42933 * font/manager.c (font_command): Changed to match argument parsing
42934 interface changes.
42935 (PUPA_MOD_INIT): Likewise.
42936 * hello/hello.c (pupa_cmd_hello): Likewise.
42937 (PUPA_MOD_INIT): Likewise.
42938 * include/pupa/disk.h: Include <pupa/device.h>.
42939 (pupa_print_partinfo): New prototype.
42940 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
42941 (pupa_dl_get_prefix): Likewise.
42942 * include/pupa/misc.h: Include <pupa/err.h>.
42943 (pupa_isgraph): New prototype.
42944 (pupa_isdigit): Likewise.
42945 (pupa_split_cmdline): Likewise.
42946 * include/pupa/normal.h: Include <pupa/arg.h>.
42947 (pupa_command): Changed the prototype of the member `func' to
42948 match the argument parsing interface. Added member `options'.
42949 (pupa_register_command): Updated to match function.
42950 (pupa_arg_parse): New prototype.
42951 (pupa_hello_init) [PUPA_UTIL]: New prototype.
42952 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
42953 (pupa_ls_init) [PUPA_UTIL]: Likewise.
42954 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
42955 (pupa_cat_init) [PUPA_UTIL]: Likewise.
42956 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
42957 (pupa_boot_init) [PUPA_UTIL]: Likewise.
42958 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
42959 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
42960 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
42961 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
42962 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
42963 * kern/disk.c: Include <pupa/file.h>.
42964 (pupa_print_partinfo): New function.
42965 * kern/dl.c: Include <pupa/env.h>.
42966 (pupa_dl_dir): Variable removed.
42967 (pupa_dl_load): Use the environment variable `prefix' instead of
42968 the variable pupa_dl_dir.
42969 (pupa_dl_set_prefix): Function removed.
42970 (pupa_dl_get_prefix): Likewise.
42971 * kern/i386/pc/init.c: Include <pupa/env.h>.
42972 (pupa_machine_init): Use the environment variable `prefix' instead of
42973 using pupa_dl_set_prefix to set the prefix.
42974 * kern/main.c: Include <pupa/env.h>.
42975 (pupa_set_root_dev): Use the environment variable `prefix' instead of
42976 using pupa_dl_get_prefix to get the prefix.
42977 * kern/misc.c: Include <pupa/env.h>.
42978 (pupa_isdigit): New function.
42979 (pupa_isgraph): Likewise.
42980 (pupa_ftoa): Likewise.
42981 (pupa_vsprintf): Added support for printing values of the type
42982 `double'. Make it possible to format variable output when using
42983 formatting like `%1.2%f'.
42984 (pupa_split_cmdline): New function.
42985 * kern/rescue.c: Include <pupa/env.h>.
42986 (next_word): Removed function.
42987 (pupa_rescue_cmd_prefix): Likewise.
42988 (pupa_rescue_cmd_set): New function.
42989 (pupa_rescue_cmd_unset): New function.
42990 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
42991 split the command line instead of splitting it here. Added
42992 support for setting variables using the syntax `foo=bar'. Don't
42993 initialize the prefix command anymore. Initialized the set and
42994 unset commands.
42995 * normal/cmdline.c: Include <pupa/env.h>.
42996 (pupa_tab_complete): Added prototypes for print_simple_completion,
42997 print_partition_completion, add_completion, iterate_commands,
42998 iterate_dev, iterate_part and iterate_dir. Moved code to print
42999 partition information from here to kern/disk.c.
43000 (pupa_cmdline_run): Don't check if the function exists anymore.
43001 * normal/main.c: Include <pupa/env.h>.
43002 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
43003 instead of using pupa_dl_get_prefix to get the prefix.
43004 * term/i386/pc/vga.c: Include <pupa/arg.h>.
43005 (check_vga_mem): Cast pointers to `void *' to silence a gcc
43006 warning.
43007 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
43008 (pupa_vga_setcolor): Declare unused variables with `__attribute__
43009 ((unused))' to silence a gcc warning.
43010 (pupa_vga_setcolor): Likewise.
43011 (debug_command): Changed to match argument parsing
43012 interface changes.
43013 * util/pupa-emu.c: Include <pupa/env.h>.
43014 (options): Added 0's for unused fields to silence a gcc warning.
43015 (argp): Likewise.
43016 (main): Use the environment variable `prefix' instead of using
43017 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
43018 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
43019 and terminal.
43020
43021 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
43022 * util/misc.c: Include <malloc.h>.
43023 (pupa_malloc): Rewritten so errors are correctly reported.
43024 (pupa_realloc): Likewise.
43025 (pupa_memalign): Likewise.
43026 (pupa_mm_init_region): Declare unused variables with
43027 `__attribute__ ((unused))' to silence a gcc warning.
43028 * normal/i386/setjmp.S: Remove tab at the end of the file to
43029 silence a gcc warning.
43030 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
43031 variables with `__attribute__ ((unused))' to silence a gcc
43032 warning.
43033 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
43034 local variable i unsigned to silence a gcc warning.
43035
43036 * kern/term.c: Include <pupa/misc.h>.
43037 (pupa_more_lines): New variable.
43038 (pupa_more): Likewise.
43039 (pupa_putcode): When the pager is active pause at the end of every
43040 screen.
43041 (pupa_set_more): New function.
43042 * include/pupa/term.h (pupa_set_more): New prototype.
43043
43044
43045 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
43046
43047 Now this project is GRUB 2 rather than PUPA. The location of
43048 the CVS repository was moved to GRUB's.
43049
43050 * configure.ac: Use bug-grub as the reporting address.
43051 Use GRUB instead of PUPA.
43052 Change the version number to 1.90.
43053
43054 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
43055
43056 * genkernsyms.sh: Updated copyright information.
43057 * genmk.rb: Likewise.
43058 * genmodsrc.sh: Likewise.
43059 * gensymlist.sh: Likewise.
43060 * boot/i386/pc/boot.S: Likewise.
43061 * boot/i386/pc/diskboot.S: Likewise.
43062 * disk/i386/pc/biosdisk.c: Likewise.
43063 * disk/i386/pc/partition.c: Likewise.
43064 * font/manager.c: Likewise.
43065 * fs/ext2.c: Likewise.
43066 * fs/fat.c: Likewise.
43067 * include/pupa/boot.h: Likewise.
43068 * include/pupa/device.h: Likewise.
43069 * include/pupa/disk.h: Likewise.
43070 * include/pupa/dl.h: Likewise.
43071 * include/pupa/elf.h: Likewise.
43072 * include/pupa/err.h: Likewise.
43073 * include/pupa/file.h: Likewise.
43074 * include/pupa/font.h: Likewise.
43075 * include/pupa/fs.h: Likewise.
43076 * include/pupa/kernel.h: Likewise.
43077 * include/pupa/loader.h: Likewise.
43078 * include/pupa/misc.h: Likewise.
43079 * include/pupa/mm.h: Likewise.
43080 * include/pupa/net.h: Likewise.
43081 * include/pupa/normal.h: Likewise.
43082 * include/pupa/rescue.h: Likewise.
43083 * include/pupa/setjmp.h: Likewise.
43084 * include/pupa/symbol.h: Likewise.
43085 * include/pupa/term.h: Likewise.
43086 * include/pupa/types.h: Likewise.
43087 * include/pupa/i386/setjmp.h: Likewise.
43088 * include/pupa/i386/types.h: Likewise.
43089 * include/pupa/i386/pc/biosdisk.h: Likewise.
43090 * include/pupa/i386/pc/boot.h: Likewise.
43091 * include/pupa/i386/pc/console.h: Likewise.
43092 * include/pupa/i386/pc/init.h: Likewise.
43093 * include/pupa/i386/pc/kernel.h: Likewise.
43094 * include/pupa/i386/pc/linux.h: Likewise.
43095 * include/pupa/i386/pc/loader.h: Likewise.
43096 * include/pupa/i386/pc/memory.h: Likewise.
43097 * include/pupa/i386/pc/multiboot.h: Likewise.
43098 * include/pupa/i386/pc/partition.h: Likewise.
43099 * include/pupa/i386/pc/time.h: Likewise.
43100 * include/pupa/i386/pc/vga.h: Likewise.
43101 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
43102 * include/pupa/util/getroot.h: Likewise.
43103 * include/pupa/util/misc.h: Likewise.
43104 * include/pupa/util/resolve.h: Likewise.
43105 * kern/device.c: Likewise.
43106 * kern/disk.c: Likewise.
43107 * kern/dl.c: Likewise.
43108 * kern/err.c: Likewise.
43109 * kern/file.c: Likewise.
43110 * kern/fs.c: Likewise.
43111 * kern/loader.c: Likewise.
43112 * kern/main.c: Likewise.
43113 * kern/misc.c: Likewise.
43114 * kern/mm.c: Likewise.
43115 * kern/rescue.c: Likewise.
43116 * kern/term.c: Likewise.
43117 * kern/i386/dl.c: Likewise.
43118 * kern/i386/pc/init.c: Likewise.
43119 * kern/i386/pc/lzo1x.S: Likewise.
43120 * kern/i386/pc/startup.S: Likewise.
43121 * loader/i386/pc/chainloader.c: Likewise.
43122 * loader/i386/pc/linux.c: Likewise.
43123 * loader/i386/pc/multiboot.c: Likewise.
43124 * normal/cmdline.c: Likewise.
43125 * normal/command.c: Likewise.
43126 * normal/main.c: Likewise.
43127 * normal/menu.c: Likewise.
43128 * normal/i386/setjmp.S: Likewise.
43129 * term/i386/pc/console.c: Likewise.
43130 * term/i386/pc/vga.c: Likewise.
43131 * util/console.c: Likewise.
43132 * util/genmoddep.c: Likewise.
43133 * util/misc.c: Likewise.
43134 * util/pupa-emu.c: Likewise.
43135 * util/resolve.c: Likewise.
43136 * util/unifont2pff.rb: Likewise.
43137 * util/i386/pc/biosdisk.c: Likewise.
43138 * util/i386/pc/getroot.c: Likewise.
43139 * util/i386/pc/pupa-mkimage.c: Likewise.
43140 * util/i386/pc/pupa-setup.c: Likewise.
43141
43142 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
43143
43144 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
43145 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
43146 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
43147 reading and reset it after reading.
43148 (pupa_ext2_close): Return PUPA_ERR_NONE.
43149
43150 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
43151 Correct value.
43152 (struct linux_kernel_header): Add kernel_version and
43153 initrd_addr_max.
43154 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
43155 pupa_file_read succeeds.
43156 (pupa_rescue_cmd_initrd): Implement.
43157
43158 2003-12-03 Marco Gerards <metgerards@student.han.nl>
43159
43160 * fs/ext2.c (pupa_ext2_label): New function.
43161 (pupa_ext2_fs): Added label.
43162 * fs/fat.c (pupa_fat_label): New function.
43163 (pupa_fat_fs): Added label.
43164 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
43165
43166 * kern/misc.c (pupa_strndup): New function.
43167 * include/pupa/misc.h (pupa_strndup): New prototype.
43168
43169 * include/pupa/normal.h: Include <pupa/err.h>.
43170 (pupa_set_history): New prototype.
43171 (pupa_iterate_commands): New prototype.
43172 * normal/cmdline.c: Include <pupa/machine/partition.h>,
43173 <pupa/disk.h>, <pupa/file.h>.
43174 (hist_size): New variable.
43175 (hist_lines): Likewise.
43176 (hist_end): Likewise.
43177 (hist_used): Likewise.
43178 (pupa_set_history): New function.
43179 (pupa_history_get): Likewise.
43180 (pupa_history_add): Likewise.
43181 (pupa_history_replace): Likewise.
43182 (pupa_tab_complete): Likewise.
43183 (pupa_cmdline_run): Added tab completion and history buffer. Tab
43184 completion shows partitionnames while completing partitions, this
43185 feature was suggested by Jeff Bailey.
43186 * normal/command.c (pupa_iterate_commands): New function.
43187 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
43188 (pupa_normal_init): Initialize history buffer.
43189 (PUPA_MOD_INIT): Likewise.
43190 (pupa_normal_fini): Free the history buffer.
43191 (PUPA_MOD_FINI): Likewise.
43192
43193 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
43194 key.
43195
43196 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
43197 * configure.ac [i386]: Check for regparam bug.
43198 (NESTED_FUNC_ATTR) [! i386]: Defined.
43199
43200 2003-11-17 Marco Gerards <metgerards@student.han.nl>
43201
43202 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
43203 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
43204 (pupa_emu_SOURCES): New variable.
43205 (pupa_emu_LDFLAGS): Likewise.
43206 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
43207 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
43208 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
43209 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
43210 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
43211 (pupa_jmp_buf): New typedef.
43212 (pupa_setjmp) [PUPA_UTIL]: New macro.
43213 (pupa_longjmp) [PUPA_UTIL]: Likewise.
43214 * include/pupa/term.h (struct pupa_term): New member `refresh'.
43215 (pupa_refresh): New prototype.
43216 * include/pupa/util/getroot.h: New file.
43217 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
43218 it.
43219 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
43220 (pupa_rescue_cmd_cat): Likewise.
43221 (pupa_rescue_cmd_ls): Likewise.
43222 (pupa_rescue_cmd_testload): Likewise.
43223 (pupa_rescue_cmd_lsmod): Likewise.
43224 * normal/cmdline.c (pupa_cmdline_get): Likewise.
43225 * normal/menu.c (run_menu): Likewise.
43226 * kern/term.c (pupa_cls): Likewise.
43227 (pupa_refresh): New function.
43228 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
43229 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
43230 * util/console.c: New file.
43231
43232 * util/i386/pc/getroot.c: New file.
43233 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
43234 (pupa_putchar): New function.
43235 (pupa_refresh): Likewise.
43236 (xgetcwd): Function moved to ...
43237 (strip_extra_slashes): Likewise.
43238 (get_prefix): Likewise.
43239 * util/i386/pc/getroot.c: ... here.
43240 (find_root_device): Function moved and renamed to...
43241 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
43242 Changed all callers.
43243 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
43244 and renamed to...
43245 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
43246 Changed all callers.
43247 * util/misc.c (pupa_memalign): New function.
43248 (pupa_mm_init_region): Likewise.
43249 (pupa_register_exported_symbols): Likewise.
43250 (pupa_putchar): Function removed.
43251 * util/pupa-emu.c: New file.
43252
43253 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
43254
43255 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
43256 (_multiboot_mod_SOURCES): New variable.
43257 (_multiboot_mod_CFLAGS): Likewise.
43258 * loader/i386/pc/multiboot.c: New file.
43259 * include/pupa/i386/pc/multiboot.h: Likewise.
43260 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
43261 (pupa_multiboot_real_boot): New function.
43262 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
43263 (pupa_multiboot_real_boot): New prototype.
43264 (pupa_rescue_cmd_multiboot): Likewise
43265 (pupa_rescue_cmd_module): Likewise.
43266
43267 * kern/loader.c (pupa_loader_set): Continue when
43268 pupa_loader_unload_func() fails.
43269 (pupa_loader_unset): New function.
43270 * include/pupa/loader.h (pupa_loader_unset): New prototype.
43271
43272 * kern/misc.c (pupa_stpcpy): New function.
43273 * include/pupa/misc.h (pupa_stpcpy): New prototype.
43274
43275 2003-11-12 Marco Gerards <metgerards@student.han.nl>
43276
43277 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
43278 for available extensions.
43279
43280 * include/pupa/i386/pc/time.h: New file.
43281 * kern/disk.c: Include <pupa/machine/time.h>.
43282 (PUPA_CACHE_TIMEOUT): New macro.
43283 (pupa_last_time): New variable.
43284 (pupa_disk_open): Flush the cache when there was a timeout.
43285 (pupa_disk_close): Reset the timer.
43286 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
43287 pupa_currticks.
43288 * util/misc.c: Include <sys/times.h>
43289 (pupa_get_rtc): New function.
43290
43291 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
43292
43293 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
43294 as blocks.
43295 (pupa_ext2_get_file_block): Use blocks member.
43296
43297 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
43298 first block. Return -1 instead of pupa_errno on error.
43299
43300 2003-10-27 Marco Gerards <metgerards@student.han.nl>
43301
43302 * README: In the pupa-mkimage example use _chain instead of chain
43303 and ext2 instead of fat.
43304 * TODO: Replace ext2fs with jfs as an example. Add an item for
43305 adding journal playback for ext2fs.
43306 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
43307 (pkgdata_MODULES): Added ext2.mod.
43308 (ext2_mod_SOURCES): New variable.
43309 (ext2_mod_CFLAGS): Likewise.
43310 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
43311 * include/pupa/misc.h (pupa_strncpy): New prototype.
43312 (pupa_strcat): Likewise.
43313 (pupa_strncmp): Likewise.
43314 * kern/misc.c (pupa_strcat): Enable function.
43315 (pupa_strncpy): New function.
43316 (pupa_strncmp): Likewise.
43317 * fs/ext2.c: New file.
43318
43319 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
43320 when the read failed before retrying.
43321 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
43322 (_FILE_OFFSET_BITS): Likewise.
43323 * configure.ac: Added AC_SYS_LARGEFILE.
43324
43325 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
43326
43327 * genmk.rb (PModule#rule): Make sure to get only symbol names
43328 from the output of nm.
43329 Reported by Robert Millan <rmh.grub@aybabtu.com>.
43330
43331 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
43332
43333 I forgot to check in these changes for a long time. This adds
43334 incomplete support for VGA console, and this is still very
43335 buggy. Also, a lot of consideration is required for I18N,
43336 UNICODE, and VGA font issues. Therefore, assume that this is
43337 such that "better than nothing".
43338
43339 * font/manager.c: New file.
43340 * include/pupa/font.h: Likewise.
43341 * include/pupa/i386/pc/vga.h: Likewise.
43342 * term/i386/pc/vga.c: Likewise.
43343 * util/unifont2pff.rb: Likewise.
43344
43345 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
43346 (pkgdata_MODULES): Added vga.mod and font.mod.
43347 (vga_mod_SOURCES): New variables.
43348 (vga_mod_CFLAGS): Likewise.
43349 (font_mod_SOURCES): Likewise.
43350 (font_mod_CFLAGS): Likewise.
43351
43352 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
43353
43354 * include/pupa/term.h: Include pupa/err.h.
43355 (struct pupa_term): Added init and fini.
43356 Changed the argument of putchar to pupa_uint32_t.
43357
43358 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
43359 (pupa_console_real_putchar): New prototype.
43360 (pupa_console_putchar): Removed.
43361 (pupa_console_checkkey): Exported.
43362 (pupa_console_getkey): Likewise.
43363
43364 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
43365 characters.
43366
43367 * kern/term.c (pupa_term_set_current): Rewritten.
43368 (pupa_putchar): Likewise.
43369 (pupa_putcode): New function.
43370
43371 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
43372 (pupa_console_real_putchar): ... this.
43373 (pupa_vga_set_mode): New function.
43374 (pupa_vga_get_font): Likewise.
43375
43376 * normal/command.c: Include pupa/term.h.
43377 (terminal_command): New function.
43378 (pupa_command_init): Register the command "terminal".
43379
43380 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
43381 (DISP_UP): Likewise.
43382 (DISP_RIGHT): Likewise.
43383 (DISP_DOWN): Likewise.
43384 (DISP_HLINE): Likewise.
43385 (DISP_VLINE): Likewise.
43386 (DISP_UL): Likewise.
43387 (DISP_UR): Likewise.
43388 (DISP_LL): Likewise.
43389 (DISP_LR): Likewise.
43390
43391 * term/i386/pc/console.c (pupa_console_putchar): New function.
43392
43393 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
43394
43395 * util/resolve.c (pupa_util_resolve_dependencies): BUG
43396 FIX. Reverse the path_list.
43397
43398 * include/pupa/normal.h: Export pupa_register_command and
43399 pupa_unregister_command.
43400
43401 * hello/hello.c (pupa_cmd_hello): New module.
43402 * conf/i386-pc.rmk: Added hello.mod.
43403
43404 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
43405
43406 * kern/i386/pc/lzo1x.S: New file.
43407
43408 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
43409 (compress_kernel): New variable.
43410 (generate_image): Heavily modified to support compressing a
43411 large part of the core image.
43412
43413 * util/misc.c (pupa_util_read_image): Fix a file descriptor
43414 leak.
43415 (pupa_util_load_image): New function.
43416
43417 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
43418 (pupa_compressed_size): New variable.
43419 (codestart): Enable Gate A20 here.
43420 Decompress the compressed part of the core image.
43421 Rearrange the code to put functions and variables which are
43422 required for initialization in the non-compressed part.
43423 Include lzo1x.S.
43424
43425 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
43426 here.
43427
43428 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
43429
43430 * include/pupa/i386/pc/kernel.h
43431 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
43432 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
43433 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
43434 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
43435 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
43436
43437 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
43438
43439 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
43440 (Utility#rule): Likewise.
43441
43442 * configure.ac: Check if LZO is available.
43443
43444 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
43445
43446 * include/pupa/normal.h: New file.
43447 * include/pupa/setjmp.h: Likewise.
43448 * include/pupa/i386/setjmp.h: Likewise.
43449 * normal/cmdline.c: Likewise.
43450 * normal/command.c: Likewise.
43451 * normal/main.c: Likewise.
43452 * normal/menu.c: Likewise.
43453 * normal/i386/setjmp.S: Likewise.
43454
43455 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
43456 (pupa_rescue_cmd_initrd): Likewise.
43457
43458 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
43459 Likewise.
43460
43461 * kern/i386/pc/startup.S (translation_table): New variable.
43462 (translate_keycode): New function.
43463 (pupa_console_getkey): Call translate_keycode.
43464
43465 * kern/rescue.c (attempt_normal_mode): New function.
43466 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
43467 it failed, print a message.
43468
43469 * kern/mm.c (pupa_real_malloc): Print more information when a
43470 free magic is broken.
43471 (pupa_free): If the first free header is not free actually, set
43472 it to P.
43473
43474 * kern/main.c (pupa_load_normal_mode): Just load the module
43475 "normal".
43476 (pupa_main): Don't print the message
43477 "Entering into rescue mode..." here.
43478
43479 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
43480 Declared.
43481 (pupa_rescue_cmd_initrd): Likewise.
43482 (pupa_rescue_cmd_initrd): Likewise.
43483
43484 * include/pupa/symbol.h (FUNCTION): Specify the type.
43485 (VARIABLE): Likewise.
43486
43487 * include/pupa/err.h (pupa_err_t): Added
43488 PUPA_ERR_UNKNOWN_COMMAND.
43489
43490 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
43491 (pupa_dl_get_prefix): Likewise.
43492
43493 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
43494 Added _chain.mod and _linux.mod instead of chain.mod and
43495 linux.mod.
43496 (chain_mod_SOURCES): Renamed to ...
43497 (_chain_mod_SOURCES): ... this.
43498 (chain_mod_CFLAGS): Renamed to ...
43499 (_chain_mod_CFLAGS): ... this.
43500 (linux_mod_SOURCES): Renamed to ...
43501 (_linux_mod_SOURCES): ... this.
43502 (linux_mod_CFLAGS): Renamed to ...
43503 (_linux_mod_CFLAGS): ... this.
43504 (normal_mod_SOURCES): New variable.
43505 (normal_mod_CFLAGS): Likewise.
43506 (normal_mod_ASFLAGS): Likewise.
43507
43508 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
43509
43510 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
43511 possible.
43512
43513 * kern/dl.c (pupa_dl_ref): Refer depending modules
43514 recursively.
43515 (pupa_dl_unref): Unrefer depending modules recursively.
43516 Don't call pupa_dl_unload implicitly, because PUPA can crash if
43517 a module is unloaded before one depending on that module is
43518 unloaded.
43519 (pupa_dl_unload): Unload depending modules explicitly,
43520 if possible.
43521
43522 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
43523
43524 * include/pupa/i386/pc/linux.h: New file.
43525 * loader/i386/pc/linux.c: Likewise.
43526
43527 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
43528 Removed.
43529 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
43530 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
43531 of PUPA_CHAINLOADER_BOOT_SECTOR.
43532
43533 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
43534 (pupa_linux_prot_size): New variable.
43535 (pupa_linux_tmp_addr): Likewise.
43536 (pupa_linux_real_addr): Likewise.
43537 (pupa_linux_boot_zimage): New function.
43538 (pupa_linux_boot_bzimage): Likewise.
43539
43540 * kern/i386/pc/init.c (struct mem_region): New structure.
43541 (MAX_REGIONS): New macro.
43542 (mem_regions): New variable.
43543 (num_regions): Likewise.
43544 (pupa_os_area_addr): Likewise.
43545 (pupa_os_area_size): Likewise.
43546 (pupa_lower_mem): Likewise.
43547 (pupa_upper_mem): Likewise.
43548 (add_mem_region): New function.
43549 (compact_mem_regions): Likewise.
43550 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
43551 the size of the conventional memory and that of so-called upper
43552 memory (before the first memory hole).
43553 Instead of adding each found region to free memory, use
43554 add_mem_region and add them after removing overlaps.
43555 Also, add only 1/4 of the upper memory to free memory. The rest
43556 is used for loading OS images. Maybe this is ad hoc, but this
43557 makes it much easier to relocate OS images when booting.
43558
43559 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
43560 (pupa_enter_rescue_mode): Don't register initrd and module.
43561
43562 * kern/mm.c: Include pupa/dl.h.
43563
43564 * kern/main.c: Include pupa/file.h and pupa/device.h.
43565
43566 * kern/loader.c (pupa_loader_load_module_func): Removed.
43567 (pupa_loader_load_module): Likewise.
43568
43569 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
43570 ``.o''.
43571
43572 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
43573 (pupa_linux_tmp_addr): Likewise.
43574 (pupa_linux_real_addr): Likewise.
43575 (pupa_linux_boot_zimage): Likewise.
43576 (pupa_linux_boot_bzimage): Likewise.
43577
43578 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
43579 (pupa_upper_mem): Likewise.
43580 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
43581 module is too dangerous.
43582
43583 * include/pupa/loader.h (pupa_os_area_addr): Declared.
43584 (pupa_os_area_size): Likewise.
43585 (pupa_loader_set): Remove the first argument. Loader doesn't
43586 manage modules or initrd any longer.
43587 (pupa_loader_load_module): Removed.
43588
43589 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
43590 (linux_mod_SOURCES): New variable.
43591 (linux_mod_CFLAGS): Likewise.
43592
43593 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
43594
43595 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
43596 the length of a blocklist correctly.
43597
43598 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
43599 Use ioctl only if the OS file is a block device.
43600 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
43601 not very useful for normal files.
43602
43603 * kern/main.c (pupa_set_root_dev): New function.
43604 (pupa_load_normal_mode): Likewise.
43605 (pupa_main): Call those above.
43606
43607 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
43608 pupa_uint16_t.
43609
43610 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
43611
43612 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43613
43614 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
43615 (setup): Configure the installed partition information and the
43616 dl prefix.
43617
43618 * loader/i386/pc/chainloader.c (my_mod): New variable.
43619 (pupa_chainloader_unload): New function.
43620 (pupa_rescue_cmd_chainloader): Refer itself.
43621 (PUPA_MOD_INIT): Save its own module in MY_MOD.
43622
43623 * kern/i386/pc/startup.S (install_partition): Removed.
43624 (version_string): Likewise.
43625 (config_file): Likewise.
43626 (pupa_install_dos_part): New variable.
43627 (pupa_install_bsd_part): Likewise.
43628 (pupa_prefix): Likewise.
43629 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
43630
43631 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
43632 and pupa/misc.h.
43633 (make_install_device): New function.
43634 (pupa_machine_init): Set the dl prefix.
43635
43636 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
43637 (buf): Renamed to ...
43638 (linebuf): ... this.
43639 (pupa_rescue_cmd_prefix): New function.
43640 (pupa_rescue_cmd_insmod): Likewise.
43641 (pupa_rescue_cmd_rmmod): Likewise.
43642 (pupa_rescue_cmd_lsmod): Likewise.
43643 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
43644 rmmod and lsmod.
43645
43646 * kern/mm.c (pupa_memalign): If failed even after invalidating
43647 disk caches, unload unneeded modules and retry.
43648
43649 * kern/misc.c (pupa_memmove): New function.
43650 (pupa_memcpy): Removed.
43651 (pupa_strcpy): New function.
43652 (pupa_itoa): Made static.
43653
43654 * kern/dl.c (pupa_dl_iterate): New function.
43655 (pupa_dl_ref): Likewise.
43656 (pupa_dl_unref): Likewise.
43657 (pupa_dl_unload): Return if succeeded or not.
43658 (pupa_dl_unload_unneeded): New function.
43659 (pupa_dl_unload_all): Likewise.
43660 (pupa_dl_init): Renamed to ...
43661 (pupa_dl_set_prefix): ... this.
43662 (pupa_dl_get_prefix): New function.
43663
43664 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
43665 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
43666 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
43667 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
43668 (pupa_install_dos_part): Declared.
43669 (pupa_install_bsd_part): Likewise.
43670 (pupa_prefix): Likewise.
43671 (pupa_boot_drive): Likewise.
43672
43673 * include/pupa/types.h: Fix a typo.
43674
43675 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
43676 pupa_memmove.
43677 (pupa_memmove): Declared.
43678 (pupa_strcpy): Likewise.
43679
43680 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
43681 pupa_mod_init takes one argument, its own module.
43682 (pupa_dl_unload_unneeded): Declared.
43683 (pupa_dl_unload_all): Likewise.
43684 (pupa_dl_ref): Likewise.
43685 (pupa_dl_unref): Likewise.
43686 (pupa_dl_iterate): Likewise.
43687 (pupa_dl_init): Renamed to ...
43688 (pupa_dl_set_prefix): ... this.
43689 (pupa_dl_get_prefix): Declared.
43690
43691 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
43692 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
43693 unloaded.
43694 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
43695 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
43696
43697 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
43698 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
43699
43700 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
43701
43702 * util/i386/pc/pupa-setup.c (setup): Define the internal
43703 function find_first_partition_start at the top level, because GCC
43704 3.0.x cannot compile internal functions in deeper scopes
43705 correctly.
43706 (find_root_device): Use lstat instead of stat.
43707 Don't follow symbolic links.
43708 Fix the path-constructing code.
43709
43710 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
43711 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
43712 by a BLKGETSIZE ioctl first, because block devices don't fill
43713 the member st_mode of the structure stat on Linux.
43714 [__linux__] (linux_find_partition): Use a temporary buffer
43715 REAL_DEV for the working space. Copy it to DEV before returning.
43716 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
43717 buffer cache consistent.
43718 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
43719 strncmp. The previous value was merely wrong.
43720 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
43721
43722 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
43723 FAT size is 12. The previous value was merely wrong.
43724
43725 * kern/main.c (pupa_main): Don't split the starting message from
43726 newlines.
43727
43728 * kern/term.c (pupa_putchar): Put CR after LF instead of before
43729 LF, because BIOS goes crazy about character attributes in this
43730 case.
43731
43732 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
43733
43734 * include/i386/pc/util/biosdisk.h: New file.
43735 * util/i386/pc/biosdisk.c: Likewise.
43736 * util/i386/pc/pupa-setup.c: Likewise.
43737
43738 * Makefile.in (INCLUDE_DISTFILES): Added
43739 include/pupa/i386/pc/util/biosdisk.h.
43740 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
43741 directory util/i386/pc.
43742 (install-local): Added a rule for sbin_UTILITIES.
43743 (uninstall): Likewise.
43744
43745 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
43746
43747 * util/misc.c (xrealloc): New function.
43748 (pupa_malloc): Likewise.
43749 (pupa_free): Likewise.
43750 (pupa_realloc): Likewise.
43751 (pupa_stop): Likewise.
43752 (pupa_putchar): Likewise.
43753
43754 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
43755
43756 * include/pupa/util/misc.h (xrealloc): Declared.
43757
43758 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
43759 macro.
43760 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
43761 (PUPA_BOOT_MACHINE_BPB_END): ... this.
43762
43763 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
43764 [PUPA_UTIL] (pupa_fat_fini): Likewise.
43765
43766 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
43767 way should be implemented.
43768 [PUPA_UTIL] (pupa_fat_fini): Likewise.
43769
43770 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
43771 the size of NAME for safety.
43772 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
43773 0x88.
43774
43775 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
43776 (pupa_setup_SOURCES): Likewise.
43777
43778 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
43779
43780 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
43781
43782 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
43783 bunch of pushl's from pusha, because this destroys the return
43784 value.
43785
43786 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
43787
43788 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
43789 This means that any missing prototypes could be fatal. Also, you
43790 must take care when writing assembly code. See the comments at
43791 the beginning of startup.S, for more details.
43792
43793 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
43794 compilation mechanism.
43795 (pupa_chainloader_real_boot): Likewise.
43796 (pupa_biosdisk_rw_int13_extensions): Likewise.
43797 (pupa_biosdisk_rw_standard): Likewise.
43798 (pupa_biosdisk_check_int13_extensions): Likewise.
43799 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
43800 (pupa_biosdisk_get_diskinfo_standard): Likewise.
43801 (pupa_get_memsize): Likewise.
43802 (pupa_get_mmap_entry): Likewise.
43803 (pupa_console_putchar): Likewise.
43804 (pupa_console_setcursor): Likewise.
43805 (pupa_getrtsecs): Use pushl instead of push.
43806
43807 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
43808 memory instead of the stack for a mmap entry, because some
43809 BIOSes may ignore the maximum size and overflow.
43810
43811 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
43812
43813 * genmk.rb (PModule#rule): Compile automatically generated
43814 sources with module-specific CFLAGS as well as other sources.
43815
43816 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
43817
43818 * configure.ac: Check ld.
43819 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
43820 respectively, before checking endianness and sizes.
43821
43822 * Makefile.in (LD): New variable.
43823
43824 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
43825
43826 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
43827
43828 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
43829
43830 * Changelog: New file.
43831