]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/fs/btrfs.c (find_device): Fix typos.
[grub2.git] / ChangeLog
1 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/fs/btrfs.c (find_device): Fix typos.
4 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5 * util/grub-mkrelpath.c (argp_parser): Likewise.
6 Reported by: Yuri Chornoivan.
7
8 2012-02-23 Dalet Omega <daletomega@gmail.com>
9
10 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
11 for usual informative messages.
12
13 2012-02-23 Dalet Omega <daletomega@gmail.com>
14
15 Starfield theme.
16
17 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
18 * conf/Makefile.common: Define starfielddir.
19 * configure.ac: Configure starfield.
20 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
21 * themes/starfield/README: Likewise.
22 * themes/starfield/blob_w.png: Likewise.
23 * themes/starfield/boot_menu_c.png: Likewise.
24 * themes/starfield/boot_menu_e.png: Likewise.
25 * themes/starfield/boot_menu_n.png: Likewise.
26 * themes/starfield/boot_menu_ne.png: Likewise.
27 * themes/starfield/boot_menu_nw.png: Likewise.
28 * themes/starfield/boot_menu_s.png: Likewise.
29 * themes/starfield/boot_menu_se.png: Likewise.
30 * themes/starfield/boot_menu_sw.png: Likewise.
31 * themes/starfield/boot_menu_w.png: Likewise.
32 * themes/starfield/slider_c.png: Likewise.
33 * themes/starfield/slider_n.png: Likewise.
34 * themes/starfield/slider_s.png: Likewise.
35 * themes/starfield/src/blob_nw.xcf: Likewise.
36 * themes/starfield/src/bootmenu/: Likewise.
37 * themes/starfield/src/bootmenu/center.xcf: Likewise.
38 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
39 * themes/starfield/src/bootmenu/side.xcf: Likewise.
40 * themes/starfield/src/slider_c.xcf: Likewise.
41 * themes/starfield/src/slider_n.xcf: Likewise.
42 * themes/starfield/src/slider_s.xcf: Likewise.
43 * themes/starfield/src/terminalbox/: Likewise.
44 * themes/starfield/src/terminalbox/center.xcf: Likewise.
45 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
46 * themes/starfield/src/terminalbox/side.xcf: Likewise.
47 * themes/starfield/starfield.png: Likewise.
48 * themes/starfield/terminal_box_c.png: Likewise.
49 * themes/starfield/terminal_box_e.png: Likewise.
50 * themes/starfield/terminal_box_n.png: Likewise.
51 * themes/starfield/terminal_box_ne.png: Likewise.
52 * themes/starfield/terminal_box_nw.png: Likewise.
53 * themes/starfield/terminal_box_s.png: Likewise.
54 * themes/starfield/terminal_box_se.png: Likewise.
55 * themes/starfield/terminal_box_sw.png: Likewise.
56 * themes/starfield/terminal_box_w.png: Likewise.
57 * themes/starfield/theme.txt: Likewise.
58
59 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
60
61 * util/grub.d/00_header.in: Add missing export theme.
62
63 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
64
65 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
66 already included.
67 Reported by: Eren D.
68
69 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * conf/Makefile.common (grubdatadir): Removed.
72 (Makefile.am): Move eveything grubdata to pkgdata.
73
74 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/commands/acpihalt.c (get_sleep_type):
77 Remove unused variable.
78
79 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
82 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
83 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
84 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
85 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
86 i18n with gettext no-op.
87 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
88 GRUB_ACPI_OPCODE_STRING_CONST.
89 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
90 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
91
92 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
93
94 * po/POTFILES.in: Regenerate.
95
96 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
99 -Wno-error=missing-noreturn.
100
101 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
104 condition to avoid possibly infinite loops.
105 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
106 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
107
108 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
109
110 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
111 condition to avoid possibly infinite loops.
112
113 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
114
115 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
116 on show_error.
117
118 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
119
120 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
121
122 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
123
124 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
125
126 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
127
128 * util/bin2h.c (usage): Add missing attribute noreturn.
129
130 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
133 if the size isn't divisible by 512.
134
135 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
136
137 Make list_push and list_remove functions rather than inline functions
138 to decrease size and avoid aliasing violations.
139
140 * include/grub/list.h (grub_list_push): Move to ...
141 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
142 * include/grub/list.h (grub_list_remove): Move to ...
143 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
144
145 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
146
147 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
148 and -Wunused-result.
149
150 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
151
152 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
153 Reported by: Seth Goldberg
154
155 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
158
159 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
160
161 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
162 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
163 command line.
164 * docs/grub.texi (Simple configuration): Document
165 GRUB_CMDLINE_GNUMACH.
166
167 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
168
169 * conf/Makefile.common (platform_SCRIPTS): New variable.
170 (platform_PROGRAMS): Likewise.
171 * gentpl.py: Mark *,module and *.image for install.
172 * grub-core/gdb_grub.in: Add a notice of expected environment.
173 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
174 (gmodule.pl): Likewise.
175
176 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
177
178 Replace grub_checkkey with grub_getkey_noblock.
179
180 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
181 (grub_getkey_noblock): ... this. All users updated.
182
183 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * grub-core/kern/emu/console.c: Move to ...
186 * grub-core/term/emu/console.c: ...here.
187 (grub_ncurses_getkey): Fix return value if no key is detected.
188
189 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
190
191 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
192 (grub_unit_test_fini): Likewise.
193 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
194
195 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * include/grub/test.h (GRUB_UNIT_TEST)
198
199 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
200
201 * grub-core/script/execute.c (grub_script_break): Clarify logic.
202 Better error handling.
203 (grub_script_return): Likewise.
204 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
205
206 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
209 rimplicit redifinition.
210
211 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
214 GRUB.
215
216 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
217
218 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
219 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
220 prompt here.
221
222 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
223
224 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
225 as GRUB_ERR_BUG. Don't malloc if no device is available.
226
227 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
230 Mark calling with invalid term as GRUB_ERR_BUG.
231
232 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
233
234 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
235 packets rather than raising an error.
236
237 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
238
239 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
240 in if.
241
242 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
245 diagnostic to dprintf.
246 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
247
248 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
249
250 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
251 device name.
252
253 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
254
255 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
256 (grub_ntfs_iterate_dir): Likewise.
257
258 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
259
260 Efiemu stylistic fixes and gettext.
261
262 * grub-core/efiemu/i386/loadcore32.c
263 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
264 * grub-core/efiemu/i386/loadcore64.c
265 (grub_arch_efiemu_relocate_symbols64): Likewise.
266 * grub-core/efiemu/i386/pc/cfgtables.c
267 (grub_machine_efiemu_init_tables): Likewise.
268 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
269 (grub_efiemu_loadcore_initXX): Add a filename argument.
270 All users updated.
271 Improved error message.
272 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
273 Add a filename argument.
274 All users updated.
275 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
276 Reclassify double relocation as GRUB_ERR_BUG.
277
278 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
281 handling.
282
283 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
284
285 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
286 on partition.
287
288 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
289
290 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
291
292 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
293
294 Improve string. Gettextize.
295
296 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
297
298 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
299 utils.
300 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
301
302 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
305 [GRUB_UTIL]: New function.
306 (insert_array) [GRUB_UTIL]: Store partmaps.
307 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
308 partmaps.
309 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
310 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
311 (probe_abstraction): Print diskfilter and not raid.
312 Reported by: Lennart Sorensen
313
314 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
315
316 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
317 * util/grub-mkimagexx.c (MASK3): New define.
318 (add_value_to_slot_20b): Use MASK3.
319 (add_value_to_slot_21): Likewise.
320 (relocate_addresses): Fix format specification.
321 (load_image): Explicitly init symtab_section.
322
323 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
324
325 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
326 (grub_util_biosdisk_get_grub_dev): Fix format specification.
327
328 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
331 on powerpc.
332 Reported by: Lennart Sorensen
333
334 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * gentpl.py: Add missing license header.
337 * docs/grub.texi: Update copyright year.
338
339 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
340
341 Source grub-mkconfig_lib from the build directory at build time.
342 Suggested by: Vladimir Serbinenko.
343
344 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
345 * util/grub-install.in: Define pkgdatadir if not already set, and source
346 grub-mkconfig_lib from there.
347 * util/grub-kbdcomp.in: Likewise.
348 * util/grub-mkconfig.in: Likewise.
349 * util/grub-mknetdir.in: Likewise.
350 * util/grub-mkrescue.in: Likewise.
351 * util/grub-mkstandalone.in: Likewise.
352 * util/grub-reboot.in: Likewise.
353 * util/grub-set-default.in: Likewise.
354 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
355
356 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
357
358 Increase warning level.
359
360 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
361 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
362 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
363 (TARGET_CFLAGS): Likewise.
364 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
365 * grub-core/Makefile.core.def (decompressor_xz): Add
366 -Wno-unreachable-code.
367 (normal): Add -Wno-redundant-decls.
368 (xzio): Add -Wno-unreachable-code.
369 (lzopio): Add -Wno-redundant-decls -Wno-error.
370 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
371 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
372 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
373 * grub-core/kern/dl.c: Add exception to -Wcast-align.
374 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
375 * grub-core/kern/i386/coreboot/init.c: Add exception to
376 -Wsuggest-attribute=noreturn.
377 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
378 * grub-core/kern/ia64/dl_helper.c: Likewise.
379 * grub-core/kern/mips/dl.c: Likewise.
380 * grub-core/kern/sparc64/dl.c: Likewise.
381 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
382 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
383 (memcmp): Likewise.
384 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
385 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
386 * grub-core/loader/mips/linux.c: Likewise.
387 * grub-core/loader/multiboot_elfxx.c: Likewise.
388 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
389 * grub-core/video/sm712.c: Add exception to -Wcast-align.
390 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
391 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
392 fixme.
393 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
394 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
395 Fix prototype.
396
397 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
398
399 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
400 address.
401
402 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
403
404 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
405 Avoid improper use of strings.
406 (grub_cmd_legacy_initrdnounzip): Likewise.
407
408 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
409
410 * include/grub/emu/misc.h (grub_util_warn): Add missing format
411 attribute.
412 (grub_util_info): Likewise.
413 (grub_util_error): Likewise.
414
415 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
418 * util/grub-fstest.c (fstest): Likewise.
419
420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
423 (grub_md_sha512_real): Likewise.
424 (grub_util_get_geli_uuid): Likewise.
425 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
426 (grub_util_biosdisk_open): Fix format specification.
427 Respect format security.
428 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
429 (xrealloc): Likewise.
430 (xasprintf): Likewise.
431
432 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * util/import_gcry.py: Include grub/crypto.h in init.c.
435
436 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
437
438 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
439 (generate_image): Make prefix a const char *.
440 Fix format specifications. Respect format security.
441 Avoid void * arithmetics.
442 Avoid shadowing.
443 (argp_parser): Remove unused variable. Respect format security.
444 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
445 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
446 (count_funcs): Remove unused variable.
447 (relocate_addresses): Fix format specification.
448 Disable x86-64 with elf32. Remove unused variables.
449 (add_fixup_entry): Avoid shadowing.
450 (make_reloc_section): Fix format specification.
451 Use assert.
452 (locate_sections): Fix format specifications.
453 (load_image): Avoid shadowing.
454
455 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
456
457 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
458 Fix format specifications. Respect format security.
459 Don't translate already translated grub_errmsg.
460 (argp_parser): Remove unused variable
461
462 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
463
464 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
465
466 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
467
468 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
469 (main): Likewise. Use xmalloc. Respect format security.
470
471 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
474 a const char *.
475 (argp_parser): Remove unused variable.
476
477 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
478
479 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
480 (add_pixel): Make static.
481 (add_font): Likewise.
482 (write_string_section): Make name and str a const char *.
483 (write_be16_section): Make name a const char *.
484 (print_glyphs): Make static.
485 (write_font_ascii_bitmap): Likewise.
486 (write_font_width_spec): Likewise.
487 (write_font_pf2): Likewise.
488 (argp_parser): Remove unused variable.
489 Respect format security.
490 (main): Avoid shadowing. Respect format security.
491
492 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
493
494 * util/grub-editenv.c (argp_parser): Make static.
495 (create_envblk_file): Use xmalloc.
496 (open_envblk_file): Likewise.
497 Resepect format security.
498 (set_variables): Respect format security.
499
500 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
501
502 * util/getroot.c (grub_find_device): Respect format security.
503 (get_mdadm_uuid): Remove unused variable.
504 (grub_util_pull_device): Dont call gettext on already translated
505 grub_errmsg.
506 (find_system_device): Remove unused variable.
507 (grub_util_get_grub_dev): Likewise.
508 (grub_make_system_path_relative_to_its_root): Respect format security.
509
510 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
511
512 * util/grub-fstest.c (execute_command): Make first argument
513 a const char *.
514 (read_file): Avoid shadowing.
515 Reuse underlying error message if device open fails.
516 (cmd_cmp): Respect format security.
517 (root): Make const char *.
518 (fstest): Remove args argument and use global copy.
519 Respect format security.
520 (argp_parser): Make static.
521 (main): Make default_root const char *.
522
523 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * util/grub-mount.c (root): Make const char *.
526 (execute_command): Make first argument a const char *.
527 (fuse_init): Respect format security.
528 (argp_parser): Make static. Remove unused variable.
529 (main): Make default_root a const char *.
530 Respect format security.
531
532 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * util/grub-probe.c (probe): Don't call gettext on already translated
535 grub_errmsg.
536 Remove unused variables.
537 (argp_parser): Remove unused variable.
538
539 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
540
541 * util/grub-script-check.c (argp_parser): Remove unused variable.
542 (main): Rename read to curread to avoid shadowing.
543
544 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * util/misc.c (grub_util_write_image_at): Fix format specification.
547 (grub_util_write_image): Likewise.
548 (grub_script_execute_argument_to_string): Removed (unused).
549 (grub_script_execute_menuentry): Likewise.
550 (grub_putchar): Likewise.
551
552 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
553
554 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
555 (FUNCTION) [GRUB_UTIL]: Likewise.
556 (VARIABLE) [GRUB_UTIL]: Likewise.
557
558 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
559
560 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
561 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
562
563 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
564
565 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
566 buffer.
567
568 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
569
570 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
571 (LzmaEnc_SaveState): Removed (unused).
572 (LzmaEnc_RestoreState): Likewise.
573 (LzmaEnc_InitPriceTables): Made static.
574 (LzmaEnc_Construct): Likewise.
575 (LzmaEnc_FreeLits): Likewise.
576 (LzmaEnc_Destruct): Likewise.
577 (LzmaEnc_Init): Likewise.
578 (LzmaEnc_InitPrices): Likewise.
579 (LzmaEnc_Finish): Likewise.
580 (LzmaEnc_PrepareForLzma2): Removed (unused).
581 (LzmaEnc_MemPrepare): Likewise.
582 (LzmaEnc_GetNumAvailableBytes): Likewise.
583 (LzmaEnc_GetCurBuf): Likewise.
584 (LzmaEnc_CodeOneMemBlock): Likewise.
585
586 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
589 (grub_util_ldm_embed): Likewise.
590
591 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
592
593 * util/grub-editenv.c (print_var): Rename name to varname to
594 avoid shadowing.
595 (main): Rename index to curindex to avoid shadowing.
596 Make filename a const char *.
597
598 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
599
600 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
601 to arg_getline to avoid shadowing.
602
603 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
604
605 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
606 disk_ to avoid shadowing.
607
608 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
609
610 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
611 curindex to avoid shadowing.
612 Make static.
613 (MatchFinder_GetNumAvailableBytes): Make static.
614
615 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
618 avoid shadowing.
619
620 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
623 argument from encrypt to do_encrypt to avoid shadowing.
624
625 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
626
627 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
628 incorrect nesting of #if's.
629
630 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
631
632 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
633 checks which are always false on some platforms.
634 (grub_cmd_lsacpi): Likewise.
635 * grub-core/kern/misc.c (grub_strtoul): Likewise.
636 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
637 Likewise.
638
639 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
640
641 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
642 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
643
644 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
647 re_dfa_t to avoid breaking alignment invariants.
648 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
649 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
650
651 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
652
653 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
654 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
655
656 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
659 Fix declaration.
660
661 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
662
663 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
664 conserve alignment invariants.
665 (grub_ehci_ehcc_read16): Likewise.
666 (grub_ehci_oper_read32): Likewise.
667 (grub_ehci_oper_write32): Likewise.
668 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
669 Conserve alignment invariants.
670
671 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
674 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
675 declarations.
676
677 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
678
679 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
680 Remove unused variable.
681
682 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
685 Remove set in if.
686
687 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
688
689 * include/grub/net.h: Remove double declarations.
690
691 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
692
693 Remove "payload" command in ia64 Linux loader since I couldn't
694 find any evidence of it being used for anything.
695 Replace "relocate" command with an environment variable
696
697 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
698 fields.
699 (ia64_boot_payload): Removed.
700 (last_payload): Likewise.
701 (RELOCATE_OFF): Likewise.
702 (RELOCATE_ON): Likewise.
703 (RELOCATE_FORCE): Likewise.
704 (relocate): Likewise.
705 (free_pages): Don't free payloads.
706 (grub_load_elf64): Use common error messages.
707 Use "linux_relocate" variable.
708 Increase the space after boot_params.
709 (grub_cmd_payload): Removed.
710 (grub_cmd_relocate): Likewise.
711 (grub_cmd_fpswa): Improve messages.
712 (cmd_payload): Removed.
713 (cmd_relocate): Likewise.
714 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
715 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
716
717 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
718
719 Convert UHCI to DMA framework.
720
721 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
722 (grub_uhci_pci_iter): Fill new members
723 (grub_alloc_td): Use P2V and V2P functions.
724 (grub_free_queue): Likewise.
725 (grub_alloc_qh): Likewise.
726 (grub_uhci_setup_transfer): Likewise.
727 (grub_uhci_check_transfer): Likewise.
728
729 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
730
731 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
732 Remove assignment in if while on it.
733
734 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
735
736 * util/grub-mkstandalone.in: Fix modules directory.
737
738 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
739
740 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
741 on i386-pc target.
742 (argp_parser): Accept "auto" as compression specification.
743
744 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Fix `help' with unloaded modules.
747
748 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
749 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
750 (grub_dyncmd_dispatcher): Small stylistic fix.
751 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
752 explicit help is requested.
753
754 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
755
756 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
757 Explicitly init restart while on it.
758
759 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
760
761 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
762 uninited variable.
763
764 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
765
766 * util/grub-mknetdir.in: Use . rather than source for POSIX
767 compatibility.
768
769 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
772
773 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
774
775 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
776 variable.
777
778 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
779
780 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
781 without quotes.
782
783 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
784
785 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
786
787 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
788
789 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
790 iteration of partitions.
791
792 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
793
794 Improve gettext support. Stylistic fixes and error handling fixes while
795 on it.
796
797 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
800 part. Instead setup the correct stack in RM.
801 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
802 for stack.
803 * include/grub/i386/relocator_private.h: New file.
804
805 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
806
807 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
808 argument.
809 * util/grub-fstest.c (options): Add missing DEVICE part.
810
811 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
812
813 Clarify and unify messages.
814
815 * grub-core/commands/hashsum.c (options): Unify messages.
816 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
817 literal-only message as translatable.
818 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
819 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
820 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
821 commands.
822 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
823 key, not the key used to unlock. Clarify what it's used for.
824 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
825 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
826 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
827 * util/grub-editenv.c (options): Unify "verbose" message.
828 * util/grub-fstest.c (read_file): Unify error message.
829 (fstest): Add quotes around commands.
830 (options): Unify "verbose" message.
831 * util/grub-install.in: Add quotes around variable name.
832 * util/grub-kbdcomp.in: Unify error message.
833 * util/grub-mkfont.c (main): Likewise.
834 * util/grub-mkrescue.in: Likewise.
835 * util/grub-mklayout.c (options): Unify "verbose" message.
836 * util/grub-mkstandalone.in: Unify help and verbose messages.
837 * util/grub-mount.c (options): Unify "verbose" message.
838 * util/grub-probe.c (options): Likewise.
839 * util/grub-script-check.c (options): Likewise.
840 * util/grub-setup.c (setup): Unify no-terminator message.
841 (options): Use DEVICE and not DEV.
842 Unify "verbose" message.
843 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
844
845 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
846
847 Improve and unify messages.
848
849 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
850 name. All users updated.
851 Print filename in error.
852 (read_device_map): Print filename in error.
853 * util/getroot.c (grub_guess_root_devices): Print filename in error.
854 (grub_util_get_os_disk): Likewise.
855 (grub_util_biosdisk_get_grub_dev): Likewise.
856 (grub_util_check_block_device): Likewise.
857 (grub_util_check_char_device): Likewise.
858 (grub_make_system_path_relative_to_its_root): Likewise.
859 * util/grub-editenv.c (create_envblk_file): Likewise.
860 (open_envblk_file): Likewise.
861 (write_envblk): Likewise.
862 * util/grub-fstest.c (cmd_cp): Likewise.
863 (cmd_cat): Likewise.
864 (cmd_cmp): Likewise.
865 * util/grub-menulst2cfg.c (main): Likewise.
866 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
867 (write_font_width_spec): Likewise.
868 (write_font_pf2): Likewise.
869 * util/grub-mkimage.c (generate_image): New argument outname.
870 All users updated.
871 Remove unreacheable message.
872 (options): Unify messages.
873 (help_filter): Likewise.
874 * util/grub-mklayout.c (usage): Removed (unused).
875 (main): Print filename in error.
876 * util/grub-mkrescue.in: Fix wrong quoting.
877 * util/grub-setup.c (setup): Print filename in error.
878 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
879 (check_sas): Likewise.
880 * util/misc.c (grub_util_get_fp_size): Removed.
881 (grub_util_get_image_size): Print filename in error.
882 (grub_util_read_at): Removed.
883 (grub_util_read_image): Print filename in error.
884 (grub_util_load_image): Likewise.
885 (grub_util_write_image_at): New argument filename. All users updated.
886 Print filename in error.
887 (grub_util_write_image): New argument filename. All users updated.
888 Print filename in error.
889 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
890 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
891
892 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * grub-core/Makefile.core.def (pxechain): New module.
895 * grub-core/loader/i386/pc/pxechainloader.c: New file.
896 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
897 function.
898 (grub_pc_net_config_real): Use grub_pxe_get_cached.
899 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
900
901 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
902
903 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
904 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
905 * include/grub/err.h (grub_error_saved): New struct.
906 (grub_errmsg): Make array size explicit.
907 * include/grub/misc.h (grub_error_save): New function.
908 (grub_error_load): Likewise.
909 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
910 (grub_error_push): Update `errno' member name.
911 (grub_error_pop): Likewise
912 * grub-core/net/tftp.c (tftp_data): New member save_err.
913 (tftp_receive): Save error.
914 (tftp_open): Restore error.
915
916 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
917
918 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
919 to real mode down to execute A20-related code in protected mode as
920 intended.
921
922 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
923
924 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
925 NULL when the argument `level' has an unexpected value.
926
927 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
928
929 Move platform-dependent files from $prefix to $prefix/$platform.
930
931 * config.h.in (GRUB_TARGET_CPU): New definition.
932 (GRUB_PLATFORM): Likewise.
933 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
934 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
935 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
936 * grub-core/kern/dl.c (grub_dl_load): Likewise.
937 * grub-core/normal/autofs.c (read_fs_list): Likewise.
938 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
939 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
940 * grub-core/normal/term.c (read_terminal_list): Likewise.
941 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
942 $prefix/locale.
943 (grub_gettext_init_ext): Likewise.
944 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
945 grub_platform.
946 * util/grub-install.in: Update directories.
947 * util/grub-mknetdir.in: Likewise.
948 * util/grub-mkrescue.in: Likewise.
949
950 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
953 grub_error framework. All users updated.
954
955 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
956
957 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
958 lists (by always binsearching), improve caching (cache strings
959 used for binsearch, not only results), improve
960 maintainability (by using more structured binary search) and correct
961 error handling.
962
963 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * grub-core/script/execute.c (grub_script_return): Fix warning.
966
967 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
968
969 * grub-core/script/execute.c (grub_script_return): Fix potential
970 NULL-dereference.
971 Reported by: Jim Meyering.
972
973 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * po/POTFILES.in: Regenerate.
976 * util/grub-install.in: Gettextize the strings missed in first pass.
977
978 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
979
980 * Makefile.util.def (grub-mkdevicemap): Removed.
981 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
982 * include/grub/util/deviceiter.h: Removed.
983 * util/deviceiter.c: Likewise.
984 * util/getroot.c (grub_util_get_os_disk): New function.
985 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
986 replacement for EFI.
987 * util/grub-mkdevicemap.c: Removed.
988 * util/grub-probe.c (probe): Handle PRINT_DISK.
989 (argp_parser): Handle -t disk.
990
991 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
992
993 * util/grub-mkfont.c: Migrate to argp.
994 * util/grub-mklayout.c: Likewise.
995 * util/grub-mkpasswd-pbkdf2.c: Likewise.
996 * util/grub-mkrelpath.c: Likewise.
997 * util/grub-probe.c: Likewise.
998 * util/grub-script-check.c: Likewise.
999
1000 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * util/grub-reboot.in: Add missing datarootdir.
1003 Add missing newline.
1004 * util/grub-set-default.in: Add missing datarootdir.
1005 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
1006 * util/grub-mkrescue.in: Likewise.
1007
1008 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
1011
1012 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1013
1014 * util/grub-kbdcomp.in: Add decent help and gettextize.
1015 * docs/man/grub-kbdcomp.h2m: New file.
1016
1017 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 Migrate grub-mkimage.c to argp.
1020
1021 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
1022 (grub-setup): Likewise.
1023 * util/grub-setup.c (print_version): Move to ...
1024 * util/argp_common.c (print_version): ... here.
1025 * util/grub-setup.c (argp_program_version_hook): Move to ...
1026 * util/argp_common.c (argp_program_version_hook): ... here.
1027 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
1028 safety.
1029 * util/grub-mkimage.c (main): Migrate to argp.
1030
1031 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 * util/grub-mkrescue.in: Use same message as
1034 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
1035 for better translations.
1036
1037 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
1040 options with generic grub-mkrescue.in with the goal of future
1041 merge.
1042
1043 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 * grub-core/kern/mm.c: Add missing include of i18n.h
1046 * grub-core/lib/relocator.c: Likewise.
1047
1048 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
1051 error.
1052 (allocate_pages): Check return value.
1053 Replace fatal with error.
1054 (grub_linux_boot): Replace printf with dprintf.
1055 Check find_mmap_size return value.
1056 Replace fatal with error.
1057 Don't call grub_machine_fini.
1058 (grub_load_elf64): Replace printf with dprintf.
1059 (grub_cmd_linux): Likewise.
1060 (grub_cmd_initrd): Likewise.
1061 (grub_cmd_payload): Likewise.
1062
1063 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
1066 message.
1067 * grub-core/video/radeon_fuloong2e.c
1068 (grub_video_radeon_fuloong2e_setup): Likewise.
1069 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
1070 * grub-core/video/video.c (grub_video_set_mode): Don't override
1071 standard out of memory message.
1072
1073 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1074
1075 NetBSD disk wedge support.
1076
1077 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
1078 [__NetBSD__]: Handle NetBSD disk wedges.
1079 * util/getroot.c (convert_system_partition_to_system_disk)
1080 [__NetBSD__]: Likewise.
1081
1082 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
1083
1084 * util/grub-mkconfig.in: Use umask rather than chmod to create
1085 grub.cfg.new to avoid insecure grub.cfg.
1086
1087 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * grub-core/commands/ls.c: Gettextize.
1090 * grub-core/commands/setpci.c: Likewise.
1091 * grub-core/commands/videotest.c: Likewise.
1092 * grub-core/disk/geli.c: Likewise.
1093 * grub-core/kern/mm.c: Likewise.
1094 * grub-core/lib/relocator.c: Likewise.
1095 * grub-core/loader/efi/appleloader.c: Likewise.
1096 * grub-core/loader/i386/xnu.c: Likewise.
1097 * grub-core/loader/ia64/efi/linux.c: Likewise.
1098 * grub-core/loader/xnu.c: Likewise.
1099 * grub-core/net/dns.c: Likewise.
1100 * grub-core/net/net.c: Likewise.
1101 * grub-core/script/lexer.c: Likewise.
1102 * grub-core/script/parser.y: Likewise.
1103 * grub-core/script/yylex.l: Likewise.
1104 * util/getroot.c: Likewise.
1105 * util/grub-setup.c: Likewise.
1106
1107 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
1110 number.
1111
1112 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
1115
1116 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
1119 macro.
1120 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
1121 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
1122
1123 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
1126 * util/grub-install.in: Gettextize.
1127 * util/grub-mkconfig.in: Likewise.
1128 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
1129 if not available.
1130 (grub_warn): Gettextize.
1131 * util/grub-mknetdir.in: Gettextize.
1132 * util/grub-mkrescue.in: Likewise.
1133 * util/grub-mkstandalone.in: Likewise.
1134 * util/grub-reboot.in: Likewise.
1135 * util/grub-set-default.in: Likewise.
1136 * util/grub.d/00_header.in: Likewise.
1137 * util/grub.d/10_hurd.in: Likewise.
1138 * util/grub.d/10_kfreebsd.in: Likewise.
1139 * util/grub.d/10_linux.in: Likewise.
1140 * util/grub.d/10_netbsd.in: Likewise.
1141 * util/grub.d/10_windows.in: Likewise.
1142 * util/grub.d/20_linux_xen.in: Likewise.
1143 * util/grub.d/30_os-prober.in: Likewise.
1144 * po/POTFILES-shell.in: Regenerate.
1145
1146 2012-02-03 Richard Laager <rlaager@wiktel.com>
1147
1148 * util/grub-mkimage.c (main): Fix format-security warning.
1149 * util/grub-mkrelpath.c (main): Likewise.
1150 * util/grub-probe.c (main): Likewise.
1151
1152 2012-02-03 Richard Laager <rlaager@wiktel.com>
1153
1154 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
1155 failure.
1156 Put back lost PRINT_DRIVE.
1157
1158 2012-02-03 Richard Laager <rlaager@wiktel.com>
1159
1160 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
1161 (grub_guess_root_devices): Replace strlen with sizeof.
1162 Avoid crash.
1163 (find_root_devices_from_poolname): Remove unused variable.
1164 Handle raidzN.
1165
1166 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 Support install on multi-device filesystems.
1169
1170 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
1171 (grub_guess_root_devices): ...this. Return char **. All users updated.
1172 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
1173 Removed.
1174 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
1175 (find_root_devices_from_poolname): ... here.
1176 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
1177 Support zfs-fuse.
1178 (grub_guess_root_device): Rename to ...
1179 (grub_guess_root_devices): ... this. Return char **. All users updated.
1180 * util/grub-install.in: Handle multi-device filesystems.
1181 * util/grub-probe.c (probe). Make device_names a char **. Add delim
1182 argument. All users updated.
1183 Handle multi-device filesystems.
1184 Use 'delim' as separator.
1185 Remove device check to allow filesystems on file.
1186 (main): Support -0 argument. Handle multi-device.
1187 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
1188 Fix a cross-device check while on it.
1189 (arguments): Remove root_dev.
1190 (argp_parser): Remove -r.
1191 (main): Remove root_dev.
1192
1193 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
1196
1197 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
1200 symbol.
1201 Reported by: NODA, Kai <nodakai>.
1202
1203 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 Fix ehci on amd64.
1206
1207 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
1208 pointers.
1209 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
1210 (grub_ehci_setup_qh): Likewise.
1211 (grub_ehci_find_qh): Likewise.
1212 (grub_ehci_transaction): Likewise.
1213 (grub_ehci_setup_transfer): Likewise.
1214 (grub_ehci_check_transfer): Likewise.
1215 (grub_ehci_portstatus): Likewise.
1216 (grub_ehci_detect_dev): Likewise.
1217 (grub_ehci_transfer_controller_data): New field td_last_phys.
1218 (grub_ehci_setup_transfer): Fill td_last_phys.
1219 (grub_ehci_check_transfer): Use td_last_phys.
1220
1221 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
1222
1223 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
1224 if no submenu is present.
1225
1226 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1227
1228 CBI support.
1229
1230 * include/grub/usb.h (grub_usbms_protocol_t): New values
1231 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
1232 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
1233 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
1234 (grub_usbms_dev): Add subclass, protocol and intrpt.
1235 Remove in_maxsz and out_maxsz.
1236 (grub_usbms_reset): Rename to ...
1237 (grub_usbms_bo_reset): .. this.
1238 (grub_usbms_cbi_cmd): New function.
1239 (grub_usbms_cbi_reset): Likewise.
1240 (grub_usbms_reset): Likewise.
1241 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
1242 (grub_usbms_transfer): Rename to ...
1243 (grub_usbms_transfer_bo): ... this.
1244 (grub_usbms_transfer_cbi): Likewise.
1245 (grub_usbms_transfer): Likewise.
1246
1247 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1248 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1249
1250 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
1251 the support for the CS5536 modification thereos and few bugfixes.
1252
1253 * grub-core/Makefile.core.def (ehci): New module.
1254 * grub-core/bus/usb/ehci.c: New file.
1255 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
1256 port and hubaddr. All users updated.
1257 Save port and hubaddr into dev structure.
1258 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
1259 define.
1260 * include/grub/pci.h (grub_dma_phys2virt): New function.
1261 (grub_dma_virt2phys): Likewise.
1262 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
1263
1264 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
1267 check as some mkfs implementations omit it.
1268
1269 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 * docs/grub.texi (Unicode): Mention identifier and space limitations.
1272
1273 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
1276 Add new member volname2.
1277 (grub_jfs_label): Use volname2 if available.
1278
1279 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
1282 over last_mounted as seen in image generated by mkfs.nilfs2.
1283 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
1284
1285 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1286
1287 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
1288 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
1289 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
1290
1291 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
1294 over the sector.
1295
1296 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
1299 subvolume name (by removing a bogus and useless check).
1300
1301 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
1304 sizeof while on it.
1305
1306 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
1309 (grub_scsi_read_capacity10): ... this.
1310 (grub_scsi_read_capacity16): New function.
1311 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
1312 0xffffffff.
1313 Fix off-by-one error.
1314 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
1315 64-bit unsigned.
1316 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
1317 (grub_scsi_read_capacity10): ... this.
1318 (grub_scsi_read_capacity_data): Rename to ...
1319 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
1320 (grub_scsi_read_capacity16): New struct.
1321 (grub_scsi_read_capacity16_data): Likewise.
1322 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
1323 grub_scsi_cmd_read_capacity10.
1324 New command grub_scsi_cmd_read_capacity16.
1325
1326 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 SCSI >2TiB support.
1329
1330 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
1331 (grub_scsi_write16): Likewise.
1332 (grub_scsi_read): Use read16 when necessary.
1333 (grub_scsi_write): Likewise.
1334 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
1335 (grub_scsi_write16): Likewise.
1336 (grub_scsi_cmd_t): Add READ16 and WRITE16.
1337
1338 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 SCSI write support (for usbms mainly).
1341
1342 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
1343 a const pointer.
1344 (grub_scsi_write): Implement.
1345 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
1346
1347 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
1350 variable.
1351
1352 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1353
1354 * grub-core/lib/posix_wrap/string.h (memchr): New function.
1355
1356 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 * po/POTFILES.in: Regenerate.
1359
1360 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
1363 with grub_printf to avoid unnecessary fatal failure.
1364
1365 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
1368 (INT_MAX): Likewise.
1369 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
1370 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
1371 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
1372 (strcpy): Likewise.
1373 (strstr): Likewise.
1374 (strchr): Likewise.
1375 (strncpy): Likewise.
1376 (strcat): Likewise.
1377 (strncat): Likewise.
1378 (strcoll): Likewise.
1379 * include/grub/types.h (GRUB_SHRT_MAX): New define.
1380 (GRUB_INT_MAX): Likewise.
1381
1382 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
1385 unexpected error.
1386 (optimize_utf8): Likewise.
1387 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
1388
1389 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1390
1391 * grub-core/boot/i386/pc/lnxboot.S: Use
1392 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
1393 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
1394 location.
1395 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
1396 definition.
1397 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
1398
1399 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1400
1401 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
1402 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
1403 now to avoid double free.
1404 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
1405 hostdisk.
1406 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
1407 * util/grub-probe.c (escape_of_path): Always return a new copy.
1408 (print_full_name): Escape path.
1409 (probe): Don't call grub_util_devname_to_ofpath on NULL.
1410 Fix hints on abstractions.
1411
1412 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1413
1414 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
1415 Don't add "root" line if no compatibility hont is available.
1416 Suggested by: Seth Goldberg.
1417
1418 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
1421 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
1422 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
1423 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
1424
1425 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
1428
1429 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * util/grub-pe2elf.c (ehdr): Make static.
1432 (shdr): Likewise.
1433 (num_sections): Likewise.
1434 (offset): Likewise.
1435
1436 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 Eliminate ofpath limits and possible overflows.
1439
1440 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
1441 (OF_PATH_MAX): Removed.
1442 (MAX_DISK_CAT): New const.
1443 (find_obppath): Use allocated rather than preallocated buffer.
1444 Return result. Argument of_path removed. All users updated.
1445 Add missing fdstat.
1446 (xrealpath): New function.
1447 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
1448 Allocate rather than use preallocated buffer. All users updated.
1449 (__of_path_common): Use allocated rather than preallocatecd buffer.
1450 Return result. Argument of_path removed. All users updated.
1451 (vendor_is_ATA): Read only needed part form the file.
1452 (check_sas): Allocate depending on contents rather than fixed.
1453 (main) [STANDALONE]: Handle NULL result.
1454
1455 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 * grub-core/normal/completion.c (iterate_dev): Close the disk.
1458
1459 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 Cryptodisk write support.
1462
1463 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
1464 (grub_cryptodisk_decrypt): Moved logic to ...
1465 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
1466 (grub_cryptodisk_write): Implement.
1467 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
1468 (grub_util_fd_write): ... this. Make global.
1469 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
1470
1471 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * include/grub/list.h (grub_list_remove): Don't crash if element is
1474 removed twice.
1475
1476 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 Rename ofconsole to console.
1479
1480 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
1481 as sysnonym to console.
1482 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
1483 * grub-core/term/ieee1275/console.c: ... this. All users updated.
1484 Rename grub_ofconsole_ to grub_console_. All users updated
1485 (grub_console_term_output): Rename "ofconsole" to "console".
1486 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
1487 as "console".
1488
1489 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
1492 handling.
1493 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
1494 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
1495 GRUB_DISK_DEVICE_FILE_ID.
1496
1497 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
1500 and improve performance.
1501
1502 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
1505 missing ieee1275/ prefix on whole disk.
1506
1507 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
1510 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
1511
1512 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
1515
1516 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 Merge common RAID and LVM logic to an abstract diskfilter.
1519 Add LDM support using the same framework.
1520
1521 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
1522 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
1523 (libgrubmods): Remove grub-core/disk/raid.c and
1524 grub-core/partmap/gpt.c.
1525 * grub-core/Makefile.core.def (ldm): New module.
1526 (raid): Renamed to diskfilter. All users updated.
1527 * grub-core/disk/raid.c: Moved to ...
1528 * grub-core/disk/diskfilter.c: ... here.
1529 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
1530 (lv_num): New var.
1531 (find_array): Renamed to ...
1532 (find_lv): ... this. Support multi-LV. Skip nameless LVs
1533 (grub_is_array_readable): Renamed to ...
1534 (grub_is_lv_readable): ... this. Support multinode hierarchy.
1535 (insert_array): New argument id.
1536 (is_node_readable): New function.
1537 (scan_device): Rename to ...
1538 (scan_disk): .. this. Restrict to one disk.
1539 (scan_devices): New function.
1540 (grub_diskfilter_iterate): Support multi-LV.
1541 Skip invisible and nameless LVs.
1542 (grub_diskfilter_memberlist): Support multi-LV.
1543 (grub_diskfilter_read_node): New function.
1544 (grub_raid_read): Most of logic moved to ...
1545 (read_segment): ... here
1546 (read_lv): New function.
1547 (grub_diskfilter_get_vg_by_uuid): New function.
1548 (grub_diskfilter_make_raid): Likewise.
1549 * grub-core/disk/ldm.c: New file.
1550 * grub-core/disk/lvm.c (vg_list): Removed.
1551 (lv_count): Likewise.
1552 (scan_depth): Likewise.
1553 (is_lv_readable): Likewise.
1554 (grub_lvm_getvalue): Advance pointer past the number.
1555 (find_lv): Removed.
1556 (do_lvm_scan): Refactored into ...
1557 (grub_lvm_detect): ... this. Support raid.
1558 (grub_lvm_iterate): Removed.
1559 (grub_lvm_memberlist): Likewise.
1560 (grub_lvm_open): Likewise.
1561 (grub_lvm_close): Likewise.
1562 (read_lv): Likewise.
1563 (read_node): Likewise.
1564 (is_node_readable): Likewise.
1565 (is_lv_readable): Likewise.
1566 (grub_lvm_read): Likewise.
1567 (grub_lvm_write): Likewise.
1568 (grub_lvm_dev): Use diskfilter
1569 (GRUB_MOD_INIT): Likewise.
1570 (GRUB_MOD_FINI): Likewise.
1571 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
1572 new interface.
1573 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
1574 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1575 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
1576 grub_diskfilter_read_node.
1577 Fix a bug with xor.
1578 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
1579 grub_diskfilter_read_node.
1580 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
1581 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
1582 (grub_disk_dev_iterate): Move from here...
1583 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
1584 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1585 Make global.
1586 (grub_hostdisk_find_partition_start): Likewise.
1587 (grub_hostdisk_os_dev_to_grub_drive): New function.
1588 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
1589 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
1590 * util/getroot.c (make_device_name): ... here.
1591 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1592 Move to ...
1593 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
1594 * grub-core/kern/emu/hostdisk.c
1595 (convert_system_partition_to_system_disk): Move to ...
1596 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
1597 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
1598 * util/getroot.c (device_is_wholedisk): ... here.
1599 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
1600 * util/getroot.c (find_system_device): ... here.
1601 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
1602 Move to ...
1603 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
1604 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1605 Move to ...
1606 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
1607 Handle LDM.
1608 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
1609 Move to ...
1610 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
1611 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
1612 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
1613 DISKFILTER.
1614 * include/grub/raid.h: Renamed to ...
1615 * include/grub/diskfilter.h: ... this.
1616 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
1617 (GRUB_RAID_LAYOUT_*): Make into array.
1618 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
1619 (grub_diskfilter_vg): New struct.
1620 (grub_diskfilter_pv_id): Likewise.
1621 (grub_raid_member): Removed.
1622 (grub_raid_array): Likewise.
1623 (grub_diskfilter_pv): New struct.
1624 (grub_diskfilter_lv): Likewise.
1625 (grub_diskfilter_segment): Likewise.
1626 (grub_diskfilter_node): Likewise.
1627 (grub_diskfilter_get_vg_by_uuid): New proto.
1628 (grub_raid_register): Inline.
1629 (grub_diskfilter_unregister): Likewise.
1630 (grub_diskfilter_make_raid): New proto.
1631 (grub_diskfilter_vg_register): Likewise.
1632 (grub_diskfilter_read_node): Likewise.
1633 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
1634 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
1635 (grub_util_is_ldm): Likewise.
1636 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
1637 (grub_hostdisk_find_partition_start): Likewise.
1638 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
1639 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
1640 New definition.
1641 (grub_gpt_partition_map_iterate): New proto.
1642 * include/grub/lvm.h (grub_lvm_vg): Removed.
1643 (grub_lvm_pv): Likewise.
1644 (grub_lvm_lv): Likewise.
1645 (grub_lvm_segment): Likewise.
1646 (grub_lvm_node): Likewise.
1647 * util/getroot.c [...]
1648 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
1649 (probe_abstraction): Likewise.
1650 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
1651 (main): Remove dead logic.
1652
1653 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
1654
1655 Simplify root device discover and don't fail when trying to open
1656 incorrect devices.
1657
1658 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
1659 function.
1660 (get_diskname_from_path): Likewise.
1661 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
1662 of iterating.
1663
1664 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
1667
1668 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1669
1670 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
1671 pastthe end.
1672
1673 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * util/grub-install.in: Add missing \.
1676 Reported by: gentoofan
1677
1678 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
1681 (direct_read): Use correct compressed size.
1682 (grub_squash_read_data): Likewise.
1683
1684 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * docs/grub.texi (Platform limitations): New section.
1687 (Platform-specific operations): Likewise.
1688 * docs/grub-dev.texi (Porting): Likewise.
1689
1690 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
1691
1692 IEEE1275 disk write support.
1693
1694 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
1695 const void *.
1696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
1697 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
1698 and seek loginc to ...
1699 (grub_ofdisk_prepare): ... here.
1700 (grub_ofdisk_write): Implement.
1701
1702 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
1703
1704 ARC disk write support.
1705
1706 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
1707 (reopen): New argument writable. All users updated.
1708 Handle required access mode.
1709 (grub_arcdisk_write): Implement.
1710 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
1711 (grub_arc_firmware_vector): Make buffer to write a const buffer.
1712
1713 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
1716 (read_sblock): Don't attempt to read superblocks outside the disk size.
1717
1718 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
1721 first superblock to find the second one when possible.
1722
1723 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * util/grub-install.in: Fix an ARC bug.
1726 Print a warning if no platform-specific setup is available.
1727
1728 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 Use static allocation rather than scratch pointer in reed_solomon.
1731 It decreases its size significantly and avoids a variable in .text.
1732
1733 * grub-core/lib/reed_solomon.c (scratch): Removed.
1734 (chosenstat): New const or static array.
1735 (sigma): Likewise.
1736 (errpot): Likewise.
1737 (errpos): Likewise.
1738 (sy): Likewise.
1739 (mstat): Likewise.
1740 (errvals): Likewise.
1741 (eqstat): Likewise.
1742 (pol_evaluate): Replace x with log_x argument. All users updated.
1743 (syndroms): Removed.
1744 (gauss_solve): Use statically allocated arrays.
1745 (rs_recover): Likewise.
1746 Calculate syndroms directly.
1747 (decode_block): Use statically allocated arrays.
1748 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
1749 (main) [TEST]: Allow -DTEST -DSTANDALONE.
1750
1751 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 Eliminate fixed limit on reed solomon decoder length.
1754
1755 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
1756 rather than hardcoding the address.
1757 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
1758 no_reed_solomon_length.
1759 Move gate_a20 to no-reed-solomon part.
1760 Don't force a particular size of no reed-solomon part.
1761 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
1762 Removed.
1763 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
1764 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
1765
1766 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 * grub-core/commands/wildcard.c (match_files): Handle filenames
1769 without explicit device.
1770 (wildcard_expand): Don't add explicit device if not already present.
1771 * tests/grub_script_echo1.in: Add a new expansion test.
1772
1773 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 Replace single-linked with double-linked lists. It results in more
1776 compact and more efficient code.
1777
1778 * grub-core/kern/list.c (grub_list_push): Moved from here ...
1779 * include/grub/list.h (grub_list_push): ... to here. Set prev.
1780 (grub_list_remove): Moved from here ...
1781 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
1782 (grub_prio_list_insert): Set prev.
1783 * include/grub/list.h (grub_list): Add prev. All users updated.
1784
1785 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 Handle newer autotools. Add some missing quotes while on it.
1788
1789 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
1790 (pkglib_DATA): Move grub-mkconfig_lib from here ...
1791 (pkgdata_DATA): ... here.
1792 * Makefile.util.def (update-grub_lib): Removed.
1793 * conf/Makefile.common (pkglib_DATA): Removed.
1794 (pkglib_SCRIPTS): Likewise.
1795 (pkgdata_DATA): New variable.
1796 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
1797 needed.
1798 Add missing quotes.
1799 Remove unused variable while on it.
1800 * tests/util/grub-shell.in: Likewise.
1801 * util/grub-install.in: Likewise.
1802 * util/grub-mkconfig.in: Likewise.
1803 * util/grub-mknetdir.in: Likewise.
1804 * util/grub-mkrescue.in: Likewise.
1805 * util/grub-mkstandalone.in: Likewise.
1806 * util/grub.d/00_header.in: Likewise.
1807 * util/grub.d/10_hurd.in: Likewise.
1808 * util/grub.d/10_illumos.in: Likewise.
1809 * util/grub.d/10_kfreebsd.in: Likewise.
1810 * util/grub.d/10_linux.in: Likewise.
1811 * util/grub.d/10_netbsd.in: Likewise.
1812 * util/grub.d/10_windows.in: Likewise.
1813 * util/grub.d/20_linux_xen.in: Likewise.
1814 * util/grub.d/30_os-prober.in: Likewise.
1815 * util/update-grub_lib.in: Removed.
1816
1817 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
1818
1819 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
1820 a workaround for intel problem.
1821
1822 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
1823 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
1824 2012-01-23 pfsmorigo
1825
1826 * util/grub-install.in: Support dd'in into PreP partition.
1827 * util/grub-probe.c (probe): Support discovering partition type.
1828 (main): Support -t msdos_parttype.
1829
1830 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
1831
1832 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
1833 infinite recursion using counter.
1834 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
1835 init to skip it if the magic check fails.
1836 (dec_stream_header): Init s->crc32.
1837
1838 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
1839 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
1840 2012-01-22 Richard Laager <rlaager@wiktel.com>
1841
1842 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
1843 All users updated.
1844 (find_bestub): Determine correct size.
1845 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
1846 (scan_disk): Align the size down.
1847 Call check pool before find_bestub to have ashift.
1848
1849 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
1852 dprintf in no-malloc zone.
1853
1854 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
1855
1856 * configure.ac: Add back in test for limits.h.
1857
1858 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 Support 4K-sector NTFS.
1861
1862 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
1863 (grub_ntfs_data): Remove blocksize.
1864 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
1865 Remove data argument. All users updated.
1866
1867 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1868
1869 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
1870 being in .text to avoid dprel references.
1871 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
1872 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
1873 (grub_arch_highmemsize): Likewise.
1874 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
1875 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
1876 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
1877
1878 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1879
1880 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
1881
1882 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
1883 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
1884
1885 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
1888 GRUB_UTIL.
1889 (grub_set_datetime_cmos): Likewise.
1890
1891 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 Make XZ compression parameters dependent on target and not host CPU.
1894
1895 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
1896 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
1897
1898 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
1901 set but not used variable.
1902
1903 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
1906 created when no uuid support is compiled into mkfs.reiser.
1907
1908 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
1911 (utf8_to_macroman): Do the opposite.
1912 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
1913
1914 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1915
1916 * configure.ac: Refise build qemu_mips w/o unifont.
1917
1918 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 Eliminate grub_min/grub_max prone to overflow usage.
1921
1922 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
1923 (poll_nonroot_hub): Likewise.
1924 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
1925 (grub_affs_label): Likewise.
1926 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
1927 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
1928 (grub_hfs_label): Likewise.
1929 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
1930 * grub-core/fs/zfs/zfs.c (MIN): Remove.
1931 (zap_leaf_array_equal): Use grub_size. Remove MIN.
1932 (zap_leaf_array_get): Likewise.
1933 (dnode_get_path): Likewise.
1934 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
1935 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
1936 * grub-core/script/execute.c (grub_script_break): Likewise.
1937 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
1938 grub_max.
1939 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
1940 * include/grub/misc.h (grub_min): Removed.
1941 (grub_max): Likewise.
1942
1943 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1944
1945 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
1946 direct.inode = 0.
1947
1948 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
1951
1952 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
1955
1956 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1957
1958 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
1959 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
1960
1961 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
1964 rather than a hack for grub_strncasemap.
1965
1966 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 Support multiple initrds
1969 Note: part of this was accidently committed in r3739.
1970
1971 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
1972 initrd.
1973 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
1974 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
1975 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
1976 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
1977 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
1978
1979 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1980
1981 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
1982 disks with unknown size.
1983 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
1984
1985 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 Remove defines pertaining to arbitrary limits not affecting GRUB
1988 anymore.
1989
1990 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
1991 (EXT2_MAX_SYMLINKCNT): Likewise.
1992 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
1993 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
1994 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
1995 (GRUB_PXE_MAX_BLKSIZE): Likewise.
1996 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
1997 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
1998 (DN_MAX_OBJECT_SHIFT): Likewise.
1999 (DN_MAX_OFFSET_SHIFT): Likewise.
2000 (DN_MAX_OBJECT): Likewise.
2001 (DNODES_PER_LEVEL_SHIFT): Likewise.
2002 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
2003 (SPA_MAXBLOCKSIZE): Likewise.
2004 (SPA_BLOCKSIZES): Likewise.
2005 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
2006 (MZAP_MAX_BLKSZ): Likewise.
2007
2008 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2009
2010 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
2011 handle NULL appropriately.
2012 Remove MIN.
2013
2014 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2015
2016 Fix efiemu.
2017
2018 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
2019 cpu/types.h.
2020 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
2021 * configure.ac: Fix efiemu check.
2022
2023 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
2026 grub_probe.
2027 Reported by: adamwill
2028
2029 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
2030
2031 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
2032
2033 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 Fix handling of wide characters in gfxterm.
2036
2037 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
2038 (clear_char): Likewise.
2039 (paint_char): Skip code == NULL chars.
2040 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
2041
2042 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * grub-core/normal/charset.c: Move comment to right place.
2045
2046 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
2049 (GRUB_AFFS_FLAG_FFS): Put back where it was.
2050 (grub_affs_mount): Revert the correct version checking.
2051
2052 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * docs/grub.texi (Unicode): Mention several other unsupported features.
2055
2056 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
2059 case statements as compile-time one.
2060 (direct_read): Prevent spurious warnings.
2061 (grub_squash_read_data): Likewise.
2062
2063 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 Various squash4 fixes and LZO and XZ support.
2066
2067 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
2068 Add xzembed source files.
2069 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
2070 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
2071 (grub_squash_inode): New subtype long_dir.
2072 (SQUASH_TYPE_LONG_DIR): New inode type.
2073 (COMPRESSION): New enum.
2074 (XZBUFSIZ): New const.
2075 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
2076 (read_chunk): Use data->decompress.
2077 (zlib_decompress): New function.
2078 (lzo_decompress): Likewise.
2079 (xz_decompress): Likewise.
2080 (squash_mount): Set new data fields.
2081 (grub_squash_iterate_dir): Handle long dir.
2082 (squash_unmount): Free xzdec and xzbuf.
2083 (grub_squash_open): Check ino type.
2084 (direct_read): Stylistic fixes. Use data->decompress.
2085 (grub_squash_read_data): Likewise.
2086 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
2087 (get_byte): Likewise.
2088 (grub_zlib_disk_read): Removed.
2089 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
2090 (GRUB_POSIX_BOOL_DEFINED): New define.
2091 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
2092 * grub-core/lib/xzembed/xz.h: Addmissing includes.
2093 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
2094 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
2095
2096 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 Don't override more informative errors.
2099
2100 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
2101 * grub-core/font/font.c (open_section): Likewise.
2102 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
2103 filename. Don't override errors.
2104 (grub_cmd_openbsd_ramdisk): Don't override errors.
2105 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
2106 (grub_cmd_initrd): Likewise.
2107 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2108 (grub_cmd_initrd): Likewise.
2109 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
2110 (grub_cmd_linux): Likewise.
2111 (grub_cmd_initrd): Likewise.
2112 (grub_cmd_payload): Likewise.
2113 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2114 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
2115 (grub_cmd_module): Likewise.
2116 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2117 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2118 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
2119 (grub_cmd_xnu_mkext): Likewise.
2120 (grub_cmd_xnu_ramdisk): Likewise.
2121 (grub_xnu_check_os_bundle_required): Likewise.
2122 (grub_xnu_load_kext_from_dir): Likewise.
2123 (grub_cmd_xnu_kextdir): Likewise.
2124 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
2125
2126 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
2129 as 1024 in block size field. Found on one of my test images.
2130 Small optimisation while on it.
2131
2132 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
2135 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
2136 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
2137 performance fixes while on it.
2138 (grub_sfs_close): Fix memory leak while on it.
2139 (grub_sfs_label): Convert Latin1 to UTF-8.
2140
2141 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
2144 space to avoid overflows.
2145 (grub_hfs_label): Convert from macroman to UTF-8.
2146
2147 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2148
2149 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
2150
2151 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
2154
2155 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * unicode: Import Unicode 6.0 data.
2158
2159 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
2162 outside of range.
2163
2164 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 Avoid cutting in the middle of UTF-8 character.
2167
2168 * include/grub/charset.h (grub_getend): New function.
2169 * grub-core/script/function.c (grub_script_function_find): Use
2170 grub_getend.
2171 * grub-core/normal/completion.c (add_completion): Likewise.
2172
2173 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
2176 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
2177 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
2178 (GRUB_UNICODE_TAG_END): Likewise.
2179 (GRUB_UNICODE_LAST_VALID): Likewise.
2180
2181 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
2184 len and make it smaller. All users updated.
2185 * util/import_unicode.py: Put length and not end character.
2186 Check length.
2187
2188 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 Make better Unicode-compliant and unify some UTF-8 code pathes.
2191
2192 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
2193 valid character.
2194 (grub_is_valid_utf8): Use grub_utf8_process.
2195 Check resulting code range.
2196 (grub_utf8_to_ucs4): Use grub_utf8_process.
2197 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
2198 valid character.
2199
2200 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
2203
2204 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * docs/grub.texi (Filesystems): Mention AFS.
2207
2208 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * docs/grub.texi (Filesystems): Clarify restrictions.
2211 (Regexp): Mention non-Unicode regexp behaviour.
2212 (Other): Mention non-Unicode matching behaviour.
2213
2214 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2215
2216 Make HFS implementation use MacRoman.
2217
2218 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
2219 (macroman): New const array.
2220 (macroman_to_utf8): New function.
2221 (utf8_to_macroman): Likewise.
2222 (grub_hfs_find_dir): Use utf8_to_macroman.
2223 (grub_hfs_dir): Use macroman_to_utf8.
2224 Set case_insensitive.
2225
2226 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
2229
2230 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 Integrate hints into autogeneration scripts.
2233
2234 * docs/grub.texi (Filesystems): Add a hostdisk example.
2235 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
2236 (grub-probe): Add ofpath.
2237 * gentpl.py: Remove group nosparc64.
2238 * grub-core/commands/search.c (cache_entry): New struct.
2239 (cache): New var.
2240 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
2241 * grub-core/commands/search_wrap.c (options): Add platform-specific
2242 hint options.
2243 (grub_cmd_search): Handle platform-specific hints.
2244 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
2245 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
2246 (grub_util_biosdisk_data): Likewise.
2247 (grub_util_biosdisk_open): Set device_map.
2248 (read_device_map): Handle "" as indication of no map.
2249 Set device_map.
2250 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
2251 (grub_util_biosdisk_get_compatibility_hint): New function.
2252 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
2253 * include/grub/emu/hostdisk.h
2254 (grub_util_biosdisk_get_compatibility_hint): New proto.
2255 * util/grub-install.in: Don't call grub-mkdevicemap.
2256 Add platform-specific hint to load.cfg.
2257 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
2258 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2259 hints. Set root preliminary to compatibility hint, not to OS name.
2260 * util/grub-probe.c (PRINT_*): Add hints.
2261 (print): Make static.
2262 (escape_of_path): New function.
2263 (guess_bios_drive): Likewise.
2264 (guess_efi_drive): Likewise.
2265 (guess_baremetal_drive): Likewise.
2266 (print_full_name): Likewise.
2267 (probe): Handle hints.
2268 (main): Likewise.
2269 * util/ieee1275/devicemap.c: Removed.
2270 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
2271 updated.
2272 (grub_util_devname_to_ofpath): Return NULL on failure.
2273
2274 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
2275 resource leak.
2276 * util/getroot.c (grub_util_pull_device): Fix memory leak.
2277
2278 * po/POTFILES.in: Regenerated.
2279
2280 Allow purely long options
2281
2282 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
2283 (SHORT_ARG_USAGE): Likewise.
2284 (grub_arg_show_help): Compare opt with help_options.
2285 (parse_option): Receive opt as argument. If makes big simplificatons.
2286 All users updated
2287
2288 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
2291 Restructure to avoid warning.
2292
2293 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * util/grub-install.in: Account for possible escaped comma in device
2296 name.
2297
2298 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
2301 channel.
2302
2303 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
2306 allocation and zero-setting.
2307 (grub_ieee1275_get_devname): Check that alias is complete.
2308
2309 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
2312 unaligned segments.
2313
2314 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
2317 prefix.
2318 (grub_ofdisk_open): Check and discard ieee1275 prefix.
2319 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2320 Add ieee1275 prefix.
2321
2322 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2323
2324 * docs/grub.texi (Filesystems): Update.
2325
2326 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2327
2328 Support odc, newc and bigendian cpio formats.
2329
2330 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
2331 * grub-core/Makefile.core.def (newc): New module.
2332 (odc): Likewise.
2333 (cpio_be): Likewise.
2334 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
2335 (MAGIC): Likewise.
2336 (MAGIC2): Likewise.
2337 (head) [MODE_ODC]: Adapt for the format.
2338 (head) [MODE_NEWC]: Likewise.
2339 (head) [!MODE_*]: Write fields of interest as arrays.
2340 (MAGIC_USTAR): Removed.
2341 (read_number) [MODE_NEWC]: Change to hex.
2342 (read_number) [!MODE_*]: Parse binary arrays.
2343 (grub_cpio_find_file): Factor out the code for better structure and
2344 always use read_number.
2345 (grub_cpio_mount): Use MAGIC and MAGIC2.
2346 (grub_cpio_dir): Exit on first hook non-0 return.
2347 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
2348 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
2349 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
2350 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
2351 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
2352 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
2353 * grub-core/fs/newc.c: New file.
2354 * grub-core/fs/odc.c: Likewise.
2355 * grub-core/fs/cpio_be.c: Likewise.
2356
2357 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 Fix handling of tar numbers occupying the whole field.
2360
2361 * grub-core/fs/cpio.c (read_number): New function.
2362 (grub_cpio_find_file): Use read_number instead of strtoull.
2363
2364 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
2367 occupying the whole field size.
2368
2369 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
2370
2371 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
2372
2373 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
2376
2377 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
2378
2379 * grub-core/Makefile.core.def (lzma_decompress): Add missing
2380 TARGET_IMG_LDFLAGS.
2381
2382 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2383
2384 * util/getroot.c (ESCAPED_PATH_MAX): New define.
2385 (mountinfo_entry): Increase the field size to take escaping into
2386 account.
2387 (find_root_device_from_libzfs): Add one byte to size of strings for
2388 security.
2389
2390 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2391
2392 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
2393 an assert.
2394 * util/grub-setup.c (setup): Likewise.
2395
2396 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
2399 _LzmaDecodeA.
2400
2401 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * docs/grub.texi (Internationalisation): New section.
2404
2405 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * docs/grub.texi (Loopback booting): New section.
2408
2409 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
2410
2411 * util/grub-mkstandalone.in: Fix minor typo errors.
2412
2413 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
2416
2417 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
2418 net/icmp.c and net/icmp6.c.
2419 (http): New module.
2420 (priority_queue): Likewise.
2421 * grub-core/io/bufio.c: Rewritten.
2422 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
2423 TYPE_WITH_CONFIGFILE_OPTION.
2424 (legacy_commands): Add bootp and dhcp.
2425 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
2426 (grub_legacy_parse): Likewise.
2427 * grub-core/lib/priority_queue.c: New file.
2428 * grub-core/net/arp.c: Add missing license header.
2429 (arp_find_entry): Removed.
2430 (arp_find_entry): Likewise.
2431 (grub_net_arp_resolve): Rename to ...
2432 (grub_net_arp_send_request): ...this.
2433 (grub_net_arp_receive): New card argument.
2434 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
2435 Set router and DNS server.
2436 (grub_net_configure_by_dhcp_ack): Handle routing information.
2437 (grub_cmd_bootp): Set checksum.
2438 (grub_bootp_init): Remove net_dhcp.
2439 * grub-core/net/dns.c: New file.
2440 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
2441 completion.
2442 (get_card_packet): Handle allocation.
2443 (grub_efinet_findcards): Set mtu.
2444 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
2445 (get_card_packet): Handle allocation.
2446 (emucard): Set mtu.
2447 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
2448 (GRUB_MOD_INIT): Set mtu.
2449 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
2450 mtu.
2451 (get_card_packet): Handle allocation.
2452 (grub_ofnet_findcards): Set mtu.
2453 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
2454 assert.
2455 (grub_net_recv_ethernet_packet): Handle IPv6.
2456 * grub-core/net/http.c: New file.
2457 * grub-core/net/icmp.c: Likewise.
2458 * grub-core/net/icmp6.c: Likewise.
2459 * grub-core/net/ip.c (ip6addr): New type.
2460 (ip6hdr): Likewise.
2461 (reassemble): Likewise.
2462 (cmp): New function.
2463 (reassembles): New variable.
2464 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
2465 (id): New variable.
2466 (send_fragmented): New function.
2467 (grub_net_send_ip_packet): Rename to ...
2468 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
2469 Handle non-UDP.
2470 (grub_net_recv_ip_packets): Rename to ...
2471 (handle_dgram): ... this. Check checksum. Handle non-UDP.
2472 (free_rsm): New function.
2473 (free_old_fragments): Likewise.
2474 (grub_net_recv_ip4_packets): New function.
2475 (grub_net_send_ip6_packet): Likewise.
2476 (grub_net_send_ip_packet): Likewise.
2477 (grub_net_recv_ip6_packets): Likewise.
2478 (grub_net_recv_ip_packets): Likewise.
2479 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
2480 (LINK_LAYER_CACHE_SIZE): New const.
2481 (link_layer_find_entry): New function.
2482 (grub_net_link_layer_add_address): Likewise.
2483 (grub_net_link_layer_resolve_check): Likewise.
2484 (grub_net_link_layer_resolve): Likewise.
2485 (grub_net_ipv6_get_slaac): Likewise.
2486 (grub_net_ipv6_get_link_local): Likewise.
2487 (grub_cmd_ipv6_autoconf): Likewise.
2488 (parse_ip): Handle one number representation.
2489 (parse_ip6): New functoion.
2490 (match_net): Handle IPv6.
2491 (grub_net_resolve_address): Handle IPv6 and DNS.
2492 (grub_net_resolve_net_address): Handle IPv6.
2493 (route_cmp): New function.
2494 (grub_net_route_address): Find best route.
2495 (grub_net_addr_to_str): Handle IPv6.
2496 (grub_net_addr_cmp): New function.
2497 (grub_net_add_addr): Register local route.
2498 (print_net_address): Handle net address.
2499 (grub_net_poll_cards): Retransmit TCP.
2500 (grub_net_poll_cards_idle_real): Likewise.
2501 (have_ahead): New function.
2502 (grub_net_seek_real): Use underlying seek.
2503 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
2504 * grub-core/net/tcp.c: New file.
2505 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
2506 (cmp): New function.
2507 (ack): Likewise.
2508 (tftp_receive): Handle unordered input.
2509 (destroy_pq): New function.
2510 (tftp_close): Close pq.
2511 * grub-core/net/udp.c: Put missing license header.
2512 (grub_net_udp_socket): New function.
2513 (udp_socket_register): Likewise.
2514 (grub_net_udp_close): Likewise.
2515 (grub_net_recv_udp_packet): Check checksum.
2516 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
2517 * include/grub/misc.h (grub_memchr): New function.
2518 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
2519 (grub_net_card_driver): Return buf in recv.
2520 (grub_net_slaac_mac_list): New struct.
2521 (grub_network_level_protocol_id): Add ipv6.
2522 (grub_net_network_level_addr): Likewise.
2523 (grub_net_network_level_net_addr): Likewise.
2524 (grub_net_app_protocol): Add seek.
2525 (grub_net_socket): Removed.
2526 (grub_net_sockets): Likewise.
2527 (grub_net_socket_register): Likewise.
2528 (grub_net_socket_unregister): Likewise.
2529 (FOR_NET_SOCKETS): Likewise.
2530 (grub_net_add_addr): Add const.
2531 (GRUB_NET_BOOTP_*): New enum.
2532 (grub_net_addr_cmp): New proto.
2533 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
2534 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
2535 (grub_net_hwaddr_to_str): NEw proto.
2536 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
2537 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
2538 (grub_dns_init): New proto.
2539 (grub_dns_fini): Likewise.
2540 (grub_net_tcp_retransmit): Likewise.
2541 (grub_net_link_layer_add_address): Likewise.
2542 (grub_net_link_layer_resolve_check): Likewise.
2543 (grub_net_link_layer_resolve): Likewise.
2544 (grub_net_dns_lookup): Likewise.
2545 (grub_net_add_dns_server): Likewise.
2546 (grub_net_remove_dns_server): Likewise.
2547 (GRUB_NET_TRIES): New const.
2548 (GRUB_NET_INTERVAL): Likewise.
2549 * include/grub/net/arp.h: Mostly rewritten.
2550 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
2551 * include/grub/net/ip.h: Mostly rewritten.
2552 * include/grub/net/netbuff.h: Indent.
2553 * include/grub/net/tcp.h: New file.
2554 * include/grub/net/udp.h: Mostly rewritten.
2555 * include/grub/priority_queue.h: New file.
2556 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
2557 (grub_swap_bytes64_compile_time): Likewise.
2558 (grub_cpu_to_be16_compile_time): Likewise.
2559 (grub_cpu_to_be32_compile_time): Likewise.
2560 (grub_cpu_to_be64_compile_time): Likewise.
2561 (grub_be_to_cpu64_compile_time): Likewise.
2562
2563 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
2566 UINT_TO_PTR with cast.
2567
2568 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
2571 don't use them.
2572
2573 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
2576 already there.
2577
2578 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
2581 confusing ipxe.
2582
2583 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
2586 Add missing const attribute.
2587 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
2588 Likewise.
2589 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
2590 Likewise.
2591
2592 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
2595 misaligned access.
2596 (serpent_setkey): Likewise.
2597 (serpent_encrypt_internal): Likewise.
2598 (serpent_decrypt_internal): Likewise.
2599 (serpent_encrypt): Don't put an alignment-increasing cast.
2600 (serpent_decrypt): Likewise.
2601 (serpent_test): Likewise.
2602
2603 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
2606
2607 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
2610
2611 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
2612 grub_addr_t casts.
2613 (PTR_TO_UINT64): Likewise.
2614 (PTR_TO_UINT32): Likewise.
2615
2616 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * util/grub-mkimage.c (generate_image): Decrease the higher limit
2619 because of stack.
2620 * util/grub-setup.c (setup): Don't add redundancy past the higher load
2621 limit.
2622
2623 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
2626 text_width > available width a bit more gracefully.
2627
2628 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
2631 current address calculation.
2632
2633 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
2636 stack.
2637 (encode_block): Likewise.
2638
2639 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
2642 certainety.
2643
2644 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
2647 non-RS part to avoid RS messing with GDT.
2648 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
2649 Increase to suit in realmode routines.
2650
2651 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2652
2653 * grub-core/kern/i386/realmode.S: Increase alignment.
2654 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
2655
2656 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
2659 be deterministic.
2660 (syndroms): Compute 0 syndrom.
2661 (rs_recover): Use 0 syndrom.
2662
2663 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
2666
2667 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
2670 brackets.
2671
2672 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
2675 account.
2676 (get_top_pad): Likewise.
2677 (get_right_pad): Likewise.
2678 (get_bottom_pad): Likewise.
2679
2680 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
2683
2684 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
2687 attribute as the structure isn't guaranteed to be properly aligned.
2688 (grub_efi_pci_device_path): Likewise.
2689 (grub_efi_pccard_device_path): Likewise.
2690 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
2691 specify the size of `memory_type'.
2692 (grub_efi_vendor_device_path): Likewise.
2693 (grub_efi_controller_device_path): Likewise.
2694 (grub_efi_acpi_device_path): Likewise.
2695 (grub_efi_expanded_acpi_device_path): Likewise.
2696 (grub_efi_atapi_device_path): Likewise.
2697 (grub_efi_scsi_device_path): Likewise.
2698 (grub_efi_fibre_channel_device_path): Likewise.
2699 (grub_efi_1394_device_path): Likewise.
2700 (grub_efi_usb_device_path): Likewise.
2701 (grub_efi_usb_class_device_path): Likewise.
2702 (grub_efi_i2o_device_path): Likewise.
2703 (grub_efi_mac_address_device_path): Likewise.
2704 (grub_efi_ipv4_device_path): Likewise.
2705 (grub_efi_ipv6_device_path): Likewise.
2706 (grub_efi_infiniband_device_path): Likewise.
2707 (grub_efi_uart_device_path): Likewise.
2708 (grub_efi_vendor_messaging_device_path): Likewise.
2709 (grub_efi_hard_drive_device_path): Likewise.
2710 (grub_efi_cdrom_device_path): Likewise.
2711 (grub_efi_vendor_media_device_path): Likewise.
2712 (grub_efi_file_path_device_path): Likewise.
2713 (grub_efi_protocol_device_path): Likewise.
2714 (grub_efi_piwg_device_path): Likewise.
2715 (grub_efi_bios_device_path): Likewise.
2716
2717 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
2720 (grub_ucs4_to_utf8_alloc): Likewise.
2721 (grub_ucs4_to_utf8): Likewise.
2722 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
2723 (grub_ucs4_to_utf8_alloc): Likewise.
2724
2725 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 AFFS never uses unicode.
2728
2729 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
2730 (grub_latin1_to_utf8): New inline function.
2731 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
2732
2733 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
2736 overflow.
2737
2738 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2739
2740 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
2741 (grub_squash_dirent_header): Likewise.
2742 (read_chunk): Don't double swap.
2743 (grub_squash_iterate_dir): Fix swap sizes.
2744
2745 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
2748
2749 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2750
2751 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
2752 (grub_hfs_iterate_dir): Likewise.
2753
2754 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 Fix video on platforms where unaligned access is forbidden.
2757 Make several optimisations while on it.
2758
2759 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
2760 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
2761 (grub_video_fbblit_replace_32bit_1bit): Likewise.
2762 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
2763 Disable.
2764 (grub_video_fbblit_replace_16bit_1bit):
2765 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
2766 (grub_video_fbblit_replace_8bit_1bit): Likewise.
2767 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
2768 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
2769 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
2770 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
2771 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
2772 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
2773 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
2774 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
2775 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
2776 (grub_video_fbblit_replace_index_RGB888): Likewise.
2777 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
2778 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
2779 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
2780 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
2781 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
2782 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
2783 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
2784 Disable.
2785 (grub_video_fbblit_blend_XXX565_1bit):
2786 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
2787 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
2788 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
2789 void *.
2790 * grub-core/video/fb/video_fb.c (common_blitter)
2791 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
2792 (grub_video_fb_create_render_target_from_pointer)
2793 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
2794 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
2795 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
2796 definition.
2797 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
2798
2799 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
2802 HH22 and HM10 relocations.
2803
2804 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
2807
2808 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
2811 allocation succeeded.
2812
2813 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
2816 argument a u8 pointer. All users updated.
2817 Handle unaligned buffers.
2818
2819 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
2822 add_part to workaround compiler bug.
2823
2824 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
2827
2828 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
2831 Reserve alignment invariants.
2832 (grub_multiboot_load): Likewise.
2833 (retrieve_video_parameters): Likewise.
2834 (grub_multiboot_make_mbi): Likewise.
2835
2836 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2837
2838 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
2839 incorrect pointer.
2840
2841 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
2844 (grub_pata_pio_write): Likewise.
2845
2846 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2847
2848 Add noreturn attributes and remove unreachable code.
2849
2850 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
2851 code.
2852 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
2853 code. Mark as noreturn.
2854 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
2855 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
2856 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
2857 unreachable code.
2858 * grub-core/kern/main.c (grub_main): Mark as noreturn.
2859 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
2860 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
2861 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
2862 * include/grub/kernel.h (grub_main): Mark as noreturn.
2863 * include/grub/reader.h (grub_rescue_run): Likewise.
2864
2865 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
2868 redundant declaration.
2869
2870 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * include/grub/net.h (grub_net_network_level_interfaces): Remove
2873 redundant declaration.
2874 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
2875
2876 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
2879 to ensure alignment.
2880 (grub_hdparm_print_identify): Make argument uint16 * to ensure
2881 alignment. Ensure tmp alignment.
2882 (grub_cmd_hdparm): Ensure buf alignment.
2883 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
2884 to ensure alignment.
2885 (grub_ata_dumpinfo): Ensure text alignment.
2886 (grub_atapi_identify): Preserve alignment invariant.
2887 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
2888
2889 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
2892 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
2893 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
2894 * include/grub/misc.h (grub_reboot)
2895 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
2896 (grub_halt) [__mips__]: Likewise.
2897
2898 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
2901 Remove redundant declaration.
2902 (grub_mmap_get_post64): Likewise.
2903 (grub_mmap_get_upper): Likewise.
2904 (grub_mmap_get_lower): Likewise.
2905
2906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
2909 uint32_t * to ensure alignment.
2910 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
2911
2912 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
2915 uint16_t * to ensure alignment.
2916 (sun_pc_partition_map_iterate): Make `block' a union to ensure
2917 alignment.
2918
2919 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
2922 to ensure alignment.
2923 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
2924
2925 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2926
2927 * grub-core/fs/ntfs.c (u16at): Make into inline function.
2928 Handle unaligned pointers.
2929 (u32at): Likewise.
2930 (u64at): Likewise.
2931 (fixup): Use byte access instead of v16at.
2932 (find_attr): Fix imporper usage of v32at.
2933 (read_data): Likewise.
2934 (list_file): Handle byte-swapping and unaligned strings.
2935 (grub_ntfs_label): Likewise.
2936
2937 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
2940 as it's not necessarily aligned.
2941
2942 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
2945 redundant declaration.
2946 (grub_serial_init): Likewise.
2947 (grub_terminfo_init): Likewise.
2948
2949 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
2952 function.
2953 (ZAP_HASH_IDX): Likewise.
2954 (ZAP_LEAF_HASH_SHIFT): Likewise.
2955 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
2956 (LEAF_HASH): Likewise.
2957 (ZAP_LEAF_NUMCHUNKS): Likewise.
2958 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
2959 alignment invariants. Return pointer. All users updated.
2960 (ZAP_LEAF_ENTRY): Make into inline function.
2961 (NBBY): Removed.
2962 (xor): LIkewise.
2963 (xor_out): Use grub_crypto_xor.
2964 (dnode_get_path): Use grub_get_unaligned.
2965 (nvlist_find_value): Likewise.
2966 (grub_zfs_nvlist_lookup_uint64): Likewise.
2967 (grub_zfs_nvlist_lookup_string): Likewise.
2968 (get_nvlist_size): Likewise.
2969 (grub_zfs_open): Likewise.
2970 (fill_fs_info): Likewise.
2971 (grub_zfs_dir): Likewise.
2972 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
2973 alignment invariants.
2974 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
2975 necessarily aligned.
2976
2977 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2978
2979 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
2980
2981 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2982
2983 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
2984 arithmetic to conserve alignment invariants.
2985
2986 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
2989 redundant declaration.
2990 (grub_efiemu_mm_obtain_request): Likewise.
2991 (grub_efiemu_prepare): Likewise.
2992
2993 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2994
2995 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
2996 to match types.
2997
2998 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
3001 case of aunaligned recptr.
3002 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
3003 alignment.
3004 (grub_hfsplus_btree_search): Handle unaligned index.
3005
3006 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
3009 to get freetag and skip.
3010
3011 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
3014 array.
3015 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
3016 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
3017
3018 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
3021 name for checksum and fix allocation algorithm.
3022
3023 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * include/grub/types.h (grub_properly_aligned_t): New type.
3026 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
3027 (grub_get_unaligned16): Add explicit casts.
3028 (grub_get_unaligned32): Likewise.
3029 (grub_get_unaligned64): Likewise.
3030 (grub_set_unaligned16): New function.
3031 (grub_set_unaligned32): Likewise.
3032
3033 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
3036
3037 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
3040 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
3041 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
3042
3043 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
3046 conditionals.
3047
3048 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
3051 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
3052
3053 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 Unify and improve RAID and crypto xor.
3056
3057 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
3058 changed to grub_crypto_xor
3059 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
3060 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
3061 Use bigger types when possible.
3062
3063 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * grub-core/disk/raid.c (scan_devices): Fix condition.
3066
3067 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
3070 Make name a const ptr.
3071
3072 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
3075 first argument a const pointer.
3076 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3077 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
3078 proto.
3079 (grub_children_iterate): Likewise.
3080 (grub_machine_mmap_iterate): Remove redundant declaration.
3081
3082 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
3085 (grub_cmd_acpi) [!x86]: Disable EBDA.
3086
3087 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 Enable UTF8 in gnulib regexp.
3090
3091 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
3092 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
3093 (isupper): Use grub_isupper.
3094 (isascii): New inline function.
3095 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
3096 * grub-core/lib/posix_wrap/wctype.h: Likewise.
3097 * grub-core/normal/charset.c (grub_utf8_process): New function.
3098 (grub_utf8_to_utf16): Use grub_utf8_process.
3099 (grub_encode_utf8_character): New function.
3100 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
3101 * include/grub/charset.h (grub_utf8_process): New declaration.
3102 (grub_encode_utf8_character): Likewise.
3103 * include/grub/misc.h (grub_islower): New inline function.
3104 (grub_isupper): Likewise.
3105 (grub_strchrsub): Moved down to fix the definitions.
3106
3107 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
3110 specification.
3111
3112 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * include/grub/loader.h (grub_loader_register_preboot_hook):
3115 Use struct preboot * and not void * for handle. All users updated.
3116 (grub_loader_unregister_preboot_hook): Likewise.
3117
3118 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
3121 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
3122 UTF-16-BE. All users updated.
3123 (grub_hfsplus_cmp_catkey): Fix unicode handling.
3124 (grub_hfsplus_iterate_dir): Likewise.
3125 (grub_hfsplus_label): Likewise.
3126
3127 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
3130
3131 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 Add missing const qualifiers.
3134
3135 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
3136 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
3137 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
3138 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
3139 (grub_lvm_check_flag): Likewise.
3140 * grub-core/efiemu/i386/coredetect.c
3141 (grub_efiemu_get_default_core_name): Likewise
3142 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
3143 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
3144 * grub-core/fs/ntfs.c (fixup): Likewise.
3145 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
3146 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
3147 (fzap_lookup): Likewise.
3148 (zap_lookup): Likewise.
3149 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
3150 * grub-core/lib/legacy_parse.c (check_option): Likewise.
3151 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
3152 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
3153 (grub_freebsd_add_meta_module): Likewise.
3154 (grub_cmd_freebsd_module): Likewise.
3155 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
3156 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
3157 (grub_xnu_writetree_get_size): Likewise.
3158 (grub_xnu_writetree_toheap_real): Likewise.
3159 (grub_xnu_find_key): Likewise.
3160 (grub_xnu_create_key): Likewise.
3161 (grub_xnu_create_value): Likewise.
3162 (grub_xnu_register_memory): Likewise.
3163 (grub_xnu_check_os_bundle_required): Likewise.
3164 (grub_xnu_scan_dir_for_kexts): Likewise.
3165 (grub_xnu_load_kext_from_dir): Likewise.
3166 * grub-core/normal/color.c (color_list): Likewise.
3167 * grub-core/normal/completion.c (current_word): Likewise.
3168 * grub-core/normal/menu_entry.c (insert_string): Likewise.
3169 * grub-core/term/serial.c (grub_serial_find): Likewise.
3170 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
3171 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
3172 Likewise.
3173 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
3174 (grub_freebsd_add_meta_module): Likewise.
3175 * include/grub/lib/arg.h (grub_arg_option): Likewise.
3176 * include/grub/net.h (grub_net_card_driver): Likewise.
3177 (grub_net_card): Likewise.
3178 (grub_net_app_protocol): Likewise.
3179 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
3180 * include/grub/serial.h (grub_serial_find): Likewise.
3181 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
3182 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
3183 (grub_xnu_create_value): Likewise.
3184 (grub_xnu_find_key): Likewise.
3185 (grub_xnu_scan_dir_for_kexts): Likewise.
3186 (grub_xnu_load_kext_from_dir): Likewise.
3187
3188 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
3189 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
3190 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
3191 Moved from here ...
3192 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
3193
3194 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
3195
3196 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
3197
3198 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
3201 (read_device): Fix size calculation.
3202
3203 2011-11-25 Robert Millan <rmh@gnu.org>
3204
3205 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
3206 (find_root_device_from_libzfs): Add zpool output parser to be used
3207 as fallback when libzfs isn't available.
3208
3209 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
3210
3211 * po/Makefile.in.in: Add missing escape-continuation.
3212
3213 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
3216
3217 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
3220
3221 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
3224
3225 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
3228
3229 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * grub-core/lib/adler32.c: Add missing license specification.
3232 * grub-core/lib/crc64.c: Likewise.
3233 * grub-core/loader/i386/pc/plan9.c: Likewise.
3234 * grub-core/partmap/plan.c: Likewise.
3235
3236 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
3237
3238 Add facility to debug GRUB with gdb under qemu.
3239
3240 * grub-core/gdb_grub.in: New file.
3241 * grub-core/gmodule.pl.in: Likewise.
3242 * grub-core/Makefile.core.def (gmodule.pl): New script.
3243 (gdb_grub): Likewise.
3244
3245 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * util/grub-mount.c (argp_parser): Accept relative pathes.
3248 * util/grub-fstest.c (argp_parser): Likewise.
3249
3250 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3251
3252 Plan9 support.
3253
3254 * Makefile.util.def (libgrubmods): Add
3255 grub-core/partmap/plan.c.
3256 * docs/grub.texi: Notice Plan9 support.
3257 * grub-core/Makefile.core.def (plan9): New module.
3258 (part_plan): Likewise.
3259 * grub-core/loader/i386/pc/plan9.c: New file.
3260 * grub-core/partmap/plan.c: Likewise.
3261 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
3262 define.
3263 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
3264 * include/grub/mm.h (grub_extend_alloc): New inline function.
3265
3266 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 Make Reed-Solomon faster by using power of generator representation of
3269 GF(256)*.
3270
3271 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
3272 (gf_double_t): Likewise.
3273 (gf_invert): Removed.
3274 (gf_powx): New array.
3275 (gf_powx_inv): Likewise.
3276 (scratch): Move higher.
3277 (gf_reduce): Removed.
3278 (gf_mul): Use powx.
3279 (gf_invert): Likewise.
3280 (init_inverts): Replaced with ...
3281 (init_powx): ...this. All users updated.
3282 (pol_evaluate): Replace multiplications with additions.
3283 (rs_encode): Likewise.
3284 (gauss_eliminate): Call gf_invert.
3285 (grub_reed_solomon_add_redundancy): Call init_powx.
3286 (grub_reed_solomon_recover): Call init_powx unconditionally.
3287
3288 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
3291
3292 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
3295 disk->partiton for safety.
3296
3297 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
3300 Fix a memory leak.
3301 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
3302
3303 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
3306
3307 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
3310
3311 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3312
3313 Fix spaces handling in proc/self/mountinfo.
3314
3315 * util/getroot.c (unescape): New function.
3316 (grub_find_root_device_from_mountinfo): Use unescape.
3317
3318 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 Support ZFS embedding.
3321
3322 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
3323 (grub_zfs_fs): Register grub_zfs_embed.
3324
3325 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3326
3327 Fix MIPS compilation.
3328
3329 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
3330 * include/grub/offsets.h: Rename decompressor fields from
3331 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
3332 * util/grub-mkimage.c (image_targets): Use new names.
3333
3334 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 Defer multiboot device parsing until we're in compressed part.
3337
3338 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
3339 bsd_part. setdevice has fallen into disuse.
3340 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
3341 (bsd_part): Likewise.
3342 (boot_dev): New variable.
3343 (multiboot_trampoline): Don't parse multiboot device.
3344 Pass multiboot device in %edx.
3345 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
3346 grub_boot_device.
3347 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
3348 Likewise.
3349 * grub-core/kern/i386/pc/startup.S: Save edx.
3350 (grub_boot_drive): Removed.
3351 (grub_install_dos_part): Likewise.
3352 (grub_install_bsd_part): Likewise.
3353 (grub_boot_device): New variable.
3354 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
3355 (grub_install_bsd_part): Likewise.
3356 (grub_boot_drive): Likewise.
3357 (grub_boot_device): New variable.
3358 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
3359 Removed.
3360 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3361 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
3362 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
3363 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
3364 * util/grub-install.in: Remove redundant condition.
3365
3366 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 Fix bug introduced by previous commit.
3369
3370 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
3371
3372 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3373
3374 Use decompressors framework on i386-pc. It increases core size
3375 by 46 bytes but improves compatibility and maintainability.
3376
3377 * grub-core/Makefile.core.def (lzma_decompress): New image.
3378 (kernel): Add i386_pc_ldflags.
3379 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
3380 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
3381 to real_to_prot, prot_to_real and device info.
3382 * include/grub/offsets.h: Renamed decompressor offsets.
3383 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
3384 (image_target_desc): Remove raw_size and rename decompressor fields.
3385 (compress_kernel): Handle lzma.
3386 (generate_image): Handle decompressors on i386-pc.
3387
3388 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 * configure.ac: Add -fno-asynchronous-unwind-tables.
3391
3392 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 Move assembly code to C by using intwrap. It increases core size
3395 by 88 bytes but improves compatibility and maintainability.
3396
3397 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
3398 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
3399 ... here. Translated to C.
3400 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
3401 * grub-core/term/i386/pc/console.c (grub_console_getkey):
3402 ... here. Translated to C.
3403 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
3404 * grub-core/term/i386/pc/console.c (grub_console_getxy):
3405 ... here. Translated to C.
3406 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
3407 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
3408 ... here. Translated to C.
3409 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
3410 * grub-core/term/i386/pc/console.c (grub_console_cls):
3411 ... here. Translated to C.
3412 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
3413 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
3414 ... here. Translated to C.
3415 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
3416 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
3417 Translated to C.
3418 * grub-core/term/i386/pc/console.c (int10_9): New function.
3419 (grub_console_putchar): Likewise.
3420 * include/grub/i386/pc/console.h: Removed the not anymore shared
3421 functions.
3422
3423 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 Move grub_chainloader_real_boot out of the kernel.
3426
3427 * grub-core/Makefile.am: Remove machine/loader.h.
3428 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3429 Removed.
3430 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
3431 variable.
3432 (grub_relocator16_keep_a20_enabled): Likewise.
3433 (grub_relocator16_boot): Fill new variables.
3434 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
3435 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
3436 relocator.
3437 (grub_chainloader_unload): Likewise.
3438 (grub_chainloader_cmd): Likewise.
3439 * include/grub/i386/pc/loader.h: Removed.
3440 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
3441 and esi. All initialisers updated.
3442
3443 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3444 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
3445
3446 * Makefile.util.def (grub-mount): New util.
3447 * .bzrignore: Add grub-mount.
3448 * configure.ac: Check for fuse and enable grub-mount if available.
3449 * docs/man/grub-mount.h2m: New file.
3450 * util/grub-mount.c: Likewise.
3451
3452 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3453
3454 * grub-core/commands/efi/fixvideo.c: Gettextize.
3455 * grub-core/commands/hashsum.c: Likewise.
3456 * grub-core/commands/i386/cmostest.c: Likewise.
3457 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3458 * grub-core/commands/i386/pc/lsapm.c: Likewise.
3459 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3460 * grub-core/commands/lsmmap.c: Likewise.
3461 * grub-core/commands/menuentry.c: Likewise.
3462 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3463 * grub-core/commands/setpci.c: Likewise.
3464 * grub-core/loader/i386/bsd.c: Likewise.
3465 * grub-core/loader/i386/linux.c: Likewise.
3466 * util/getroot.c: Likewise.
3467 * util/grub-editenv.c: Likewise.
3468 * util/grub-fstest.c: Likewise.
3469 * util/grub-mkfont.c: Likewise.
3470 * util/grub-mkimage.c: Likewise.
3471 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3472 * util/grub-pe2elf.c: Likewise.
3473 * util/grub-probe.c: Likewise.
3474 * util/grub-setup.c: Likewise.
3475 * util/ieee1275/ofpath.c: Likewise.
3476 * util/misc.c: Likewise.
3477 * util/raid.c: Likewise.
3478
3479 2011-11-11 Robert Millan <rmh@gnu.org>
3480
3481 * util/getroot.c (grub_util_get_geom_abstraction): Remove
3482 __attribute__((unused)) from `os_dev', which *is* being used.
3483
3484 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
3487 forgotten define.
3488 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
3489 GRUB_IA64_DL_GOT_ALIGN.
3490 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
3491 GRUB_IA64_DL_TRAMP_ALIGN.
3492
3493 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3494
3495 Replace grub_fatal with normal errors in i386 linux loader.
3496
3497 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
3498 (allocate_pages): Check find_efi_mmap_size return value.
3499 (grub_e820_add_region): Return error.
3500 (grub_linux_boot): Check mmap return value.
3501
3502 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3503
3504 * grub-core/commands/acpihalt.c: Gettextized.
3505 * grub-core/commands/cacheinfo.c: Likewise.
3506 * grub-core/commands/cmp.c: Likewise.
3507 * grub-core/commands/efi/loadbios.c: Likewise.
3508 * grub-core/commands/gptsync.c: Likewise.
3509 * grub-core/commands/ieee1275/suspend.c: Likewise.
3510 * grub-core/commands/legacycfg.c: Likewise.
3511 * grub-core/commands/memrw.c: Likewise.
3512 * grub-core/commands/minicmd.c: Likewise.
3513 * grub-core/commands/parttool.c: Likewise.
3514 * grub-core/commands/time.c: Likewise.
3515 * grub-core/commands/videoinfo.c: Likewise.
3516 * grub-core/disk/geli.c: Likewise.
3517 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
3518 * grub-core/disk/luks.c: Likewise.
3519 * grub-core/disk/lvm.c: Likewise.
3520 * grub-core/font/font_cmd.c: Likewise.
3521 * grub-core/fs/zfs/zfscrypt.c: Likewise.
3522 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3523 * grub-core/gfxmenu/view.c: Likewise.
3524 * grub-core/kern/emu/hostdisk.c: Likewise.
3525 * grub-core/kern/emu/main.c: Likewise.
3526 * grub-core/kern/emu/misc.c: Likewise.
3527 * grub-core/kern/emu/mm.c: Likewise.
3528 * grub-core/kern/mips/arc/init.c: Likewise.
3529 * grub-core/kern/mips/loongson/init.c: Likewise.
3530 * grub-core/kern/partition.c: Likewise.
3531 * grub-core/lib/i386/halt.c: Likewise.
3532 * grub-core/lib/mips/arc/reboot.c: Likewise.
3533 * grub-core/lib/mips/loongson/reboot.c: Likewise.
3534 * grub-core/loader/i386/pc/chainloader.c: Likewise.
3535 * grub-core/loader/i386/xnu.c: Likewise.
3536 * grub-core/loader/multiboot.c: Likewise.
3537 * grub-core/net/bootp.c: Likewise.
3538 * grub-core/net/net.c: Likewise.
3539 * grub-core/normal/term.c: Likewise.
3540 * grub-core/partmap/bsdlabel.c: Likewise.
3541 * grub-core/parttool/msdospart.c: Likewise.
3542 * grub-core/term/gfxterm.c: Likewise.
3543 * grub-core/term/terminfo.c: Likewise.
3544 * grub-core/video/i386/pc/vbe.c: Likewise.
3545 * util/grub-menulst2cfg.c: Likewise.
3546 * util/grub-mkdevicemap.c: Likewise.
3547 * util/grub-mklayout.c: Likewise.
3548 * util/grub-mkrelpath.c: Likewise.
3549 * util/grub-script-check.c: Likewise.
3550 * util/ieee1275/grub-ofpathname.c: Likewise.
3551 * util/resolve.c: Likewise.
3552
3553 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3554
3555 Support %1$d syntax.
3556
3557 * tests/printf_unit_test.c: New file.
3558 * Makefile.util.def (printf_test): New test.
3559 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
3560
3561 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
3564 fix.
3565
3566 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
3569 dprintf.
3570 * grub-core/font/font.c (grub_font_load): Likewise.
3571
3572 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * util/grub-macho2img.c: Add comment concerning gettext.
3575 * grub-core/lib/legacy_parse.c: Likewise.
3576
3577 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
3580 (grub_xvasprintf): Likewise.
3581
3582 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3583
3584 Add const keyword to grub_env_get and gettextize week days.
3585
3586 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
3587 (grub_read_hook_datetime): Return const char *.
3588 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
3589 updated.
3590 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
3591 Mark for gettext.
3592 (grub_get_weekday_name): Return const char *. Call gettext.
3593 * grub-core/script/argv.c (grub_script_argv_append): Receive const
3594 char * and len as the argument. All users updated.
3595 (grub_script_argv_split_append): Receive const char *.
3596 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
3597 * include/grub/env.h (grub_env_get): Likewise.
3598 (grub_env_read_hook_t): Return const char *.
3599 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
3600 (grub_script_argv_split_append): Likewise.
3601
3602 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
3605
3606 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
3609 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
3610
3611 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
3614 Fix prototype.
3615
3616 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 Fix mips compilation.
3619
3620 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
3621 normal decoder.
3622 (hashes): Use in embed decoder as well (for sizes).
3623 (dec_stream_header): Fix embed decompressor logic.
3624 (dec_stream_footer): Likewise.
3625
3626 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
3629 an error and not a fatal on unrecognised relocation types.
3630
3631 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
3634 Issue error rather than printf on unknown arguments.
3635
3636 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
3639 Make buf a const.
3640
3641 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
3644 Fix module name.
3645
3646 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
3649 leftover debug printf.
3650
3651 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
3654
3655 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
3658 A stylistic fix.
3659
3660 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
3663
3664 2011-11-10 Shea Levy <slevy@tieronedesign.com>
3665
3666 Allow all modules to perform serial IO
3667
3668 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
3669 * include/grub/serial.h (grub_serial_port_configure): New inline
3670 function.
3671 (grub_serial_port_fetch): Likewise.
3672 (grub_serial_port_put): Likewise.
3673 (grub_serial_port_fini): Likewise.
3674 (grub_serial_find): New proto.
3675
3676 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 Put symlink at the end of the node and fix a potential
3679 memory corruption.
3680
3681 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
3682 Make symlink into an array.
3683 (set_rockridge): Set have_symlink and alloc_dirents.
3684 (grub_iso9660_read_symlink): Use new layout.
3685 (grub_iso9660_iterate_dir): Fix memory corruption.
3686 Use new layout.
3687 (grub_iso9660_dir): Set have_symlink.
3688 (grub_iso9660_open): Likewise.
3689
3690 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 Remove local keyword.
3693
3694 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
3695 (version_test_gt): Likewise.
3696 (version_find_latest): Likewise.
3697 (gettext_printf): Likewise.
3698 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
3699
3700 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
3703
3704 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 Fix ZFS memory and resource leaks.
3707
3708 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
3709 All users updated.
3710 Free type on exit.
3711 (fill_vdev_info): New parameter inserted. All users updated.
3712 (check_pool_label): Likewise.
3713 (scan_disk): Likewise.
3714 (scan_devices): Close non-inserted disks.
3715 (fzap_iterate): Free l.
3716 (unmount_device): Free children descripto memory.
3717
3718 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
3721 argument (access out of bounds).
3722
3723 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
3726 >= 6 drives.
3727
3728 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
3731 Fix declaration.
3732
3733 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 Fix several memory leaks.
3736
3737 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
3738 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
3739 (grub_cpio_dir): Likewise.
3740 * grub-core/fs/fat.c (grub_fat_label): Likewise.
3741 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
3742 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
3743 (grub_romfs_label): Likewise.
3744 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
3745 (squash_unmount): New function.
3746 (grub_squash_dir): Fix memory leak.
3747 (grub_squash_open): Likewise.
3748 (grub_squash_read): Likewise.
3749 (grub_squash_mtime): Likewise.
3750 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
3751 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
3752 * util/grub-fstest.c (fstest): Likewise.
3753
3754 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
3757 avoid accessing beyond the array.
3758
3759 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3760
3761 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
3762
3763 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 Several AFFS fixes.
3766
3767 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
3768 (GRUB_AFFS_FLAG_FFS): Removed.
3769 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
3770 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
3771 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
3772 (grub_fshelp_node): Make block 32-bit.
3773 Add block_cache and last_block_cache.
3774 (grub_affs_read_block): Fill and use block cache.
3775 (grub_affs_read_file): Removed.
3776 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
3777 boot block.
3778 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
3779 safety.
3780 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
3781 space.
3782 (grub_affs_close): Free block cache.
3783 (grub_affs_read): Use grub_fshelp_read_file directly.
3784
3785 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
3788 with no error set.
3789
3790 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
3793 used variable.
3794 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
3795 Likewise.
3796
3797 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
3800
3801 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
3802 byteswap when needed.
3803
3804 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 Fix FreeBSD compilation.
3807
3808 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
3809 to avoid circular dependency.
3810 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
3811 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
3812 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
3813
3814 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 Fix ZFS crypto error types.
3817
3818 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
3819 (grub_gcm_decrypt): Likewise.
3820 (grub_zfs_load_key_real): Fix error code type. Handle possible error
3821 from PBKDF2.
3822
3823 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 Illumos support.
3826
3827 * Makefile.util.def (10_illumos): New script.
3828 * configure.ac: Set COND_HOST_ILLUMOS.
3829 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
3830 Support Illumos calls.
3831 (find_partition_start) [__sun__]: Likewise.
3832 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
3833 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
3834 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
3835 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
3836 device.
3837 * util/grub-probe.c (probe) [__sun__]: Do character check.
3838 * util/grub.d/10_illumos.in: New file.
3839
3840 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 Support escaped commas in hostdisk.
3843
3844 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
3845 (find_grub_drive): Use unescape_cmp.
3846 (make_device_name): Escape commas.
3847
3848 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
3851
3852 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
3855 variable.
3856
3857 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 Support trampoline jumps on powerpc.
3860
3861 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
3862 __ia64__ path.
3863 (grub_dl_load_segments): Set mod->sz.
3864 (grub_dl_flush_cache): Flush whole space occupied by module, not just
3865 segments.
3866 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
3867 (jump): Likewise.
3868 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
3869 function.
3870 (trampoline): New struct.
3871 (trampoline_template): New const.
3872 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
3873 * include/grub/dl.h (grub_dl): Add sz element.
3874 [__powerpc__]: Follow __ia64__.
3875 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
3876 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
3877 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
3878 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
3879
3880 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 ZFS crypto support.
3883
3884 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
3885 * grub-core/Makefile.core.def (zfscrypt): New module.
3886 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
3887 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
3888 it. All users updated.
3889 (grub_zfs_decrypt): New var.
3890 (grub_zfs_load_key): Likewise.
3891 (zio_checksum_functions): Add SHA256+MAC.
3892 (zio_checksum_verify): Handle incomplete comparison due to MAC.
3893 (zio_read): Handle encrypted blocks.
3894 (zap_verify): Remove incorrect check.
3895 (fzap_iterate): Handle non-standard fzap.
3896 (zap_iterate): Likewise.
3897 (zap_iterate_u64): New function.
3898 (dnode_get_fullpath): Load keys.
3899 * grub-core/fs/zfs/zfscrypt.c: New file.
3900 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
3901 (grub_crypto_ecb_encrypt): Make input const.
3902 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
3903 (grub_crypto_ecb_encrypt): Make input const.
3904 (GRUB_CIPHER_AES): New macro.
3905 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
3906 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
3907 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
3908 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
3909 prefix. All users updated.
3910 (grub_zfs_add_key): New proto.
3911 (grub_zfs_decrypt): Likewise.
3912 (grub_zfs_load_key): Likewise.
3913 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
3914 * util/grub-fstest.c (options): Add -K option.
3915 (argp_parser): Likewise.
3916
3917 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3918
3919 Support zle compression on ZFS.
3920
3921 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
3922 (decomp_table): Add zle.
3923 * include/grub/zfs/zio.h (zio_compress): Add zle.
3924
3925 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 Support BtrFS embedding.
3928
3929 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
3930 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
3931 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
3932 * util/grub-setup.c (setup): Use fs embedding if available.
3933 Add additional sanity check.
3934
3935 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 * util/grub-install.in: Fix condition for config_opt.
3938
3939 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 Support third redundancy strip on raidz3.
3942
3943 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
3944 Return error on singularity. All users updated.
3945 (read_device): Don't stop on 3rd failure on raidz3.
3946
3947 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3948
3949 Support case-insensitive ZFS subvolumes.
3950
3951 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
3952 All users updated.
3953 (zap_hash): Likewise.
3954 (name_cmp): New function.
3955 (zap_leaf_array_equal): New parameter case_insensitive.
3956 All users updated.
3957 (zap_leaf_lookup): Likewise.
3958 (fzap_lookup): Likewise.
3959 (zap_lookup): Likewise.
3960 (dnode_get_path): New parameter case_insensitive. Retrieve case
3961 sensitiviness of a volume. All users updated.
3962 (dnode_get_fullpath): New parameter case_insensitive.
3963 All users updated.
3964 (grub_zfs_dir): Set info.case_insensitiveness.
3965
3966 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 Support second redundancy strip on raidz(2,3).
3969
3970 * grub-core/fs/zfs/zfs.c (powx): New array.
3971 (powx_inv): Likewise.
3972 (poly): New const.
3973 (xor_out): New function.
3974 (gf_mul): Likewise.
3975 (recovery): Likewise.
3976 (read_device): Use second redundancy strip.
3977
3978 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 Use a power of generator representation of GF(256) multiplication group
3981 to save space time and complexity.
3982
3983 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
3984 (raid6_table2): Likewise.
3985 (powx): New array.
3986 (powx_inv): Likewise.
3987 (poly): New const.
3988 (grub_raid_block_mul): Replace with ...
3989 (grub_raid_block_mulx): ...this.
3990 (grub_raid6_init_table): Rewritten.
3991 (grub_raid6_recover): Use power of generator representation.
3992
3993 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
3996 for the right device.
3997
3998 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
4001 expected by grub-mkimage and it's more clear since there is no implicit
4002 padding.
4003
4004 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
4007 disk.
4008 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4009
4010 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
4011
4012 * util/grub-mkrescue.in: Fix handling xorriso option.
4013
4014 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
4017 NULL.
4018
4019 2011-11-03 crocket <crockabiscuit@gmail.com>
4020
4021 * util/grub.d/10_linux.in: Add Slackware initrd naming.
4022
4023 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 XZ CRC64 and SHA256 support.
4026
4027 * Makefile.util.def (libgrubmods): Add crc64.c.
4028 * grub-core/Makefile.core.def (crc64): New module.
4029 * grub-core/lib/crc64.c: New file.
4030 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
4031 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
4032 Fix the type.
4033 (MAX_HASH_SIZE): New define.
4034 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
4035 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
4036 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4037 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4038 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
4039 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
4040 Handle non-crc32 hashes.
4041 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
4042 (dec_stream_header): Handle non-crc32 hashes.
4043 (dec_stream_footer): Likewise.
4044 (dec_block_header): Likewise.
4045 (dec_main): Likewise.
4046 (xz_dec_init): Likewise.
4047 (xz_dec_reset): Likewise.
4048 (xz_dec_end): Likewise.
4049 * util/import_gcry.py: Add CRC64 line.
4050
4051 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
4054 as well.
4055
4056 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 Make reiserfs label retrieval similar to other *_label functions.
4059
4060 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
4061 (REISERFS_MAX_LABEL_LENGTH): Removed.
4062 (REISERFS_LABEL_OFFSET): Likewise.
4063 (grub_reiserfs_label): Rewritten.
4064
4065 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
4068 field.
4069
4070 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4071
4072 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
4073
4074 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4075
4076 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
4077 drive failure on both raidz and raidz2.
4078
4079 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 Fix RAIDZ(2) for >= 5 devices.
4082
4083 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
4084 asize argument. All users updated.
4085
4086 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 Fix RAIDZ(2).
4089
4090 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
4091 (fill_vdev_info_real): Set ashift.
4092 (read_device): Rewrite RAIDZ part based on reverse engineering.
4093
4094 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4095
4096 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
4097 don't report potentially unavialiable fields in debug output.
4098 (find_path): Fix double-free and memory leak.
4099
4100 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 Read label on UFS1.
4103
4104 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
4105 (grub_ufs_fs): Always set .label.
4106
4107 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 Use shifts in UFS.
4110
4111 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
4112 (grub_ufs_data): New field log2_blksz.
4113 (grub_ufs_read_file): Use shifts.
4114 (grub_ufs_mount): Check block size and logarithm it.
4115
4116 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
4119 long symlinks.
4120
4121 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4122
4123 Handle symlinks and long names on tar and cpio.
4124
4125 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
4126 (ATTR_FILE): Likewise.
4127 (ATTR_DIR): Likewise.
4128 (ATTR_LNK): Likewise.
4129 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
4130 (grub_cpio_find_file): Fill mode, handle linkname field as well as
4131 L and K entries.
4132 (grub_cpio_mount): Zero-fill data.
4133 (handle_symlink): New function.
4134 (grub_cpio_dir): Handle symlinks.
4135 (grub_cpio_open): Likewise.
4136 (grub_cpio_close) [MODE_USTAR]: Free linkname.
4137
4138 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 Fix iso9660 filename limitations and fix memory leaks.
4141
4142 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
4143 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
4144
4145 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 Fix JFS file name length limitations.
4148
4149 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
4150 (grub_jfs_diropen): Fix maximum filename length.
4151 (grub_jfs_getent): Fix filename length.
4152 (grub_jfs_lookup_symlink): Fix size checks.
4153
4154 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4155
4156 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
4157 string.
4158
4159 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 Leverage BFS implementation to read AFS.
4162
4163 * Makefile.util.def (libgrubmods): Add afs.c.
4164 * grub-core/Makefile.core.def (afs): New module
4165 * grub-core/fs/afs.c: New file.
4166 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
4167
4168 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4169
4170 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
4171
4172 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * grub-core/fs/bfs.c: Run indent.
4175
4176 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 BFS implementation based on the specification.
4179
4180 * grub-core/fs/bfs.c: New file.
4181 * Makefile.util.def (libgrubmods): Add bfs.c.
4182 * grub-core/Makefile.core.def (bfs): New module.
4183
4184 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4185
4186 * util/grub-fstest.c (cmd_cp): Clarify error message.
4187 (cmd_cmp): Likewise.
4188
4189 2011-10-30 Yves Blusseau <blusseau@zetam.org>
4190
4191 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
4192 and befs_be.
4193
4194 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
4195
4196 Remove afs and befs because of copyright problem.
4197
4198 * grub-core/fs/afs.c: Removed.
4199 * grub-core/fs/afs_be.c: Removed.
4200 * grub-core/fs/befs.c: Removed.
4201 * grub-core/fs/befs_be.c: Removed.
4202 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
4203 * grub-core/Makefile.core.def (afs): Removed.
4204 (afs_be): Likewise.
4205 (befs): Likewise.
4206 (befs_be): Likewise.
4207
4208 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4209
4210 Prefer rockridge over Joliet.
4211
4212 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
4213 to ...
4214 (set_rockridge): ... here.
4215 (grub_iso9660_mount): Check rockridge on the primary label when
4216 discovering. Ignore Joliet if Rockridge is present.
4217
4218 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 Use shifts in nilfs2.
4221
4222 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
4223 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
4224 (grub_nilfs2_palloc_entries_per_group): Replace with ...
4225 (grub_nilfs2_log_palloc_entries_per_group): ... this.
4226 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
4227 (grub_nilfs2_entries_per_block): Replaced with ...
4228 (grub_nilfs2_log_entries_per_block_log): ... this.
4229 (grub_nilfs2_blocks_per_group): Replaced with ...
4230 (grub_nilfs2_blocks_per_group_log): ... this.
4231 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
4232 (grub_nilfs2_blocks_per_desc_block_log): ... this.
4233 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
4234 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
4235 (grub_nilfs2_palloc_entry_offset): Replaced ...
4236 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
4237 (grub_nilfs2_dat_translate): Use shifts.
4238 (grub_nilfs2_read_inode): Likewise.
4239 (GRUB_MOD_INIT): Ensure that logs are correct.
4240
4241 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 Use shifts in minix filesystem.
4244
4245 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
4246 (GRUB_MINIX_ZONE2SECT): Likewise.
4247 (grub_minix_data): Replace block_size with log_block_size.
4248 (grub_minix_read_file): Use shifts.
4249 (grub_minix_mount): Check block size and take a logarithm.
4250
4251 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 Use shifts in squash4.
4254
4255 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
4256 (squash_mount): Check block size and take logarithm.
4257 (direct_read): Use shifts.
4258
4259 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 Correct befs block counting logic.
4262
4263 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
4264 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
4265 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
4266 (grub_afs_read_inode): Use block_shift.
4267 (RANGE_SHIFT): New definition.
4268 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
4269 unexpected conditions, use shifts and appropriate types.
4270 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
4271
4272 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/disk/raid.c (scan_devices): Check partition.
4275 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4276
4277 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 Support BFS (befs) UUID.
4280
4281 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
4282 (grub_afs_small_data_element_header): New struct.
4283 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
4284 (grub_afs_read_attribute) [MODE_BFS]: New function.
4285 (grub_afs_iterate_dir): Allocate for complete inode.
4286 (grub_afs_mount): Likewise.
4287 (grub_afs_uuid) [MODE_BFS]: New function.
4288 (grub_afs_fs) [MODE_BFS]: Add .uuid.
4289
4290 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
4293 (zfs_unmount): Fix memory leak.
4294
4295 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4296
4297 Support NTFS reparse points.
4298
4299 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
4300 (symlink_descriptor): New struct.
4301 (grub_ntfs_read_symlink): New function.
4302 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
4303 (grub_ntfs_open): Likewise.
4304
4305 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
4308
4309 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 fstest xnu_uuid subcommand.
4312
4313 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
4314 grub-core/commands/xnu_uuid.c.
4315 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
4316 (fstest): Handle xnu_uuid.
4317 (options): Document xnu_uuid.
4318 (argp_parser): Parse xnu_uuid.
4319
4320 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4321
4322 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
4323 -l argument. Add newline at the end if printing.
4324 (GRUB_MOD_INIT): Document -l.
4325
4326 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4327
4328 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
4329
4330 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 ZFS multi-device and version 33 support.
4333
4334 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
4335 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
4336 (grub_zfs_data): Add multidev-ice-related fields.
4337 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
4338 (dva_get_offset): Make dva const.
4339 (zfs_fetch_nvlist): New function.
4340 (fill_vdev_info_real): Likewise.
4341 (fill_vdev_info): Likewise.
4342 (check_pool_label): Likewise.
4343 (scan_disk): Likewise.
4344 (scan_devices): Likewise.
4345 (read_device): Likewise.
4346 (read_dva): Likewise.
4347 (zio_read_gang): Use read_dva.
4348 (zio_read_data): Likewise.
4349 (zap_leaf_lookup): Add missing endian conversion.
4350 (zap_verify): Add missing endian conversion. All users updated.
4351 (fzap_lookup): Likewise.
4352 (fzap_iterate): Likewise.
4353 (dnode_get_path): Handle SA bonus.
4354 (nvlist_find_value): Make input const. All users updated.
4355 (unmount_device): New function.
4356 (zfs_unmount): Use unmount_device.
4357 (zfs_mount): Use scan_disk.
4358 (zfs_mtime): New function.
4359 (grub_zfs_open): Handle system attributes.
4360 (fill_fs_info): Likewise.
4361 (grub_zfs_dir): Likewise.
4362 (grub_zfs_fs): Add mtime.
4363 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
4364 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
4365 (SA_MTIME_OFFSET): Likewise.
4366 (SA_SYMLINK_OFFSET): Likewise.
4367 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
4368 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
4369 (fstest): Support zfsinfo.
4370 (argp_parser): Likewise.
4371
4372 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
4375 error.
4376
4377 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 ZFS fixes.
4380
4381 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
4382 sharing the same block. Iterate over correct number of indices.
4383 (dnode_get_path): Handle symlinks correctly.
4384
4385 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4386
4387 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
4388
4389 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4390
4391 Read label on HFS+.
4392
4393 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
4394 (grub_hfsplus_btree_search): Fix types.
4395 (grub_hfsplus_label): Implement.
4396
4397 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4398
4399 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
4400
4401 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4402
4403 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
4404
4405 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 Fix symlink handling on iso9660.
4408
4409 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
4410 All users updated.
4411 (grub_iso9660_susp_iterate): Accept zero-size iterate.
4412 (grub_iso9660_read_symlink): Moved most of code ...
4413 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
4414
4415 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4418 Use union to avoid breaking strict-aliasing rules.
4419
4420 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 Support multi-extent iso files.
4423
4424 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
4425 Add node.
4426 (grub_fshelp_node): Revamp. All users updated.
4427 (FLAG_*): New enum.
4428 (read_node): New function.
4429 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
4430 All users updated.
4431 (grub_iso9660_mount): Don't attempt to read sua when there is none.
4432 (get_node_size): New function.
4433 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
4434 entries.
4435 Fix memory leak on . and ..
4436 (grub_iso9660_read): Use read_node.
4437 (grub_iso9660_close): Free node.
4438
4439 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 Fix tar 4G limit and handle paths containing dot.
4442
4443 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
4444 (canonicalize): New function.
4445 (grub_cpio_find_file): Use canonicalize. Store offs in
4446 grub_disk_addr_t.
4447 (grub_cpio_dir): Use grub_disk_addr_t.
4448 (grub_cpio_open): Likewise.
4449
4450 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 Fix handling of uncompressed blocks on squashfs and break 4G limit.
4453
4454 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
4455 unused flags.
4456 (grub_squash_inode): Add long_file and block_size.
4457 (grub_squash_cache_inode): New struct.
4458 (grub_squash_dirent): Make types into enum.
4459 (SQUASH_TYPE_LONG_REGULAR): New type.
4460 (grub_squash_frag_desc): Add field size.
4461 (SQUASH_BLOCK_FLAGS): New enum.
4462 (grub_squash_data): Use grub_squash_cache_inode.
4463 (grub_fshelp_node): Make ino_chunk 64-bit.
4464 (read_chunk): Minor argument change. All users updated.
4465 (squash_mount): Use correct le_to_cpu.
4466 (grub_squash_open): Handle LONG_REGULAR.
4467 (direct_read): New function.
4468 (grub_squash_read_data): Handle blocks correctly.
4469
4470 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
4473
4474 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4475
4476 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
4477
4478 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4479
4480 Fix 2G limit on ZFS.
4481
4482 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
4483 types.
4484 (uberblock_verify): Likewise.
4485 (dmu_read): Likewise.
4486 (grub_zfs_read): Likewise. Remove invalid cast.
4487
4488 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
4491 (grub_jfs_blkno): Fix incorrect shift.
4492 (grub_jfs_read_file): Use more appropriate types.
4493
4494 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 Support triple indirect on minix2 and minix3.
4497
4498 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
4499 Declare triple_indir_zone.
4500 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
4501 indirect.
4502
4503 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 Minix FS fixes.
4506
4507 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
4508 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
4509 Rename ctime to mtime. All users updated.
4510 (grub_minix_get_file_block): Fix types and double indirect computations.
4511
4512 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4513
4514 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
4515 if no label is found.
4516 (grub_fat_iterate_dir): Fix file size type.
4517 (grub_fat_iterate_dir): Likewise.
4518
4519 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
4522 save some space.
4523 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
4524 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
4525
4526 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4527
4528 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
4529
4530 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * util/import_gcry.py: Accept space between # and include.
4533
4534 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
4537
4538 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 Fine grainely disable warnings on lexer. Remove Wno-error on it.
4541
4542 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
4543 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
4544 yylex_strncpy.
4545 * grub-core/script/yylex.l: Add fine-grained #pragma.
4546
4547 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
4550 New inline function.
4551 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
4552 Likewise.
4553 (memset) [GRUB_UTIL]: Likewise.
4554 (memcmp) [GRUB_UTIL]: Likewise.
4555
4556 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4557
4558 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
4559 inline function rather than a define.
4560
4561 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4562
4563 * util/grub-setup.c: Add missing include.
4564
4565 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * util/ieee1275/grub-ofpathname.c: Add missing include.
4568
4569 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
4572 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
4573 Likewise.
4574
4575 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4576
4577 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
4578 grub_memcmp usage.
4579
4580 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4581
4582 * util/grub-install.in: Add datarootdir as per automake manual
4583 suggestion.
4584 * util/grub-mknetdir.in: Likewise.
4585
4586 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4587
4588 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
4589 suggestion.
4590 * util/grub.d/10_kfreebsd.in: Likewise.
4591 * util/grub.d/10_linux.in: Likewise.
4592 * util/grub.d/10_netbsd.in: Likewise.
4593 * util/grub.d/10_windows.in: Likewise.
4594 * util/grub.d/20_linux_xen.in: Likewise.
4595
4596 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 Remove redundant grub_kernel_image_size.
4599
4600 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
4601 _edata and _start.
4602 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
4603 the small code. It moves it only by few bytes but simplifies the code.
4604 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
4605 _start.
4606 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
4607 (grub_kernel_image_size): Removed.
4608 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
4609 (grub_kernel_image_size): Removed.
4610 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
4611 compiled with Apple toolchain.
4612 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
4613 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
4614 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
4615 (grub_total_module_size): Likewise.
4616 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
4617 Removed.
4618 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
4619 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
4620 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
4621 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
4622 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
4623 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
4624 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
4625 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
4626 Removed.
4627 (grub_total_module_size): Removed.
4628 * util/grub-mkimage.c (image_target_desc): Remove image_size.
4629 (image_targets): Likewise.
4630 Set .compressed_size to no field on sparc.
4631 (generate_image): Remove kernel_image_size handling.
4632
4633 2011-10-19 Szymon Janc <szymon@janc.net.pl>
4634
4635 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
4636 NULL pointer dereference.
4637
4638 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
4641 done with a dedicated section.
4642
4643 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
4644 Ensure the correct position of boot_path.
4645 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
4646 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
4647 other fields.
4648 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
4649 * include/grub/boot.h: Removed. All references removed.
4650 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
4651 Removed.
4652 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
4653
4654 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
4657 name.
4658
4659 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
4662
4663 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
4666 Don't add the bogus brackets.
4667
4668 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 ExFAT support.
4671
4672 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
4673 * grub-core/Makefile.core.def (exfat): New module.
4674 * grub-core/fs/exfat.c: New file.
4675 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
4676 (GRUB_FAT_ATTR_*): Make into an enum.
4677 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
4678 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
4679 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
4680 (GRUB_FAT_MAXFILE): Removed.
4681 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
4682 (grub_current_fat_bpb_t): New type.
4683 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
4684 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
4685 (grub_fat_dir_node_t): New type.
4686 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
4687 (fat_log2) [MODE_EXFAT]: Removed.
4688 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
4689 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
4690 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
4691 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
4692 (grub_fat_label) [MODE_EXFAT]: New function.
4693 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
4694 reserved_first_sector to 0.
4695
4696 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 Move grub_reboot out of the kernel.
4699
4700 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
4701 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
4702 * grub-core/lib/efi/reboot.c: ... here.
4703 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
4704 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
4705 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
4706 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
4707 * grub-core/lib/i386/reboot_trampoline.S: ... here.
4708 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
4709 * grub-core/lib/ieee1275/reboot.c: ... here.
4710 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
4711 * grub-core/lib/mips/arc/reboot.c: ... here.
4712 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
4713 * grub-core/lib/mips/loongson/reboot.c: ...here.
4714 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
4715 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
4716 * include/grub/emu/misc.h (grub_reboot): New function declaration.
4717 * include/grub/i386/reboot.h: New file.
4718 * include/grub/mips/loongson/ec.h: Fix includes.
4719 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
4720 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
4721 * grub-core/lib/i386/reboot.c: New file.
4722
4723 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 Make grub_prefix into module to fix the arbitrary limit and save
4726 some space.
4727
4728 * grub-core/kern/emu/main.c (grub_prefix): Removed.
4729 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
4730 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
4731 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
4732 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
4733 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
4734 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
4735 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
4736 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
4737 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
4738 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
4739 * include/grub/ia64/efi/kernel.h: Removed.
4740 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
4741 (grub_prefix): Removed.
4742 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
4743 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
4744 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
4745 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
4746 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
4747 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
4748 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
4749 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
4750 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
4751 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
4752 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
4753 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
4754 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
4755 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
4756 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
4757 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
4758 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
4759 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
4760 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
4761 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
4762 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
4763 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
4764 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
4765 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
4766 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
4767 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
4768 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
4769 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
4770 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
4771 from module.
4772 * util/grub-mkimage.c (image_target_desc): Removed prefix and
4773 prefix_end.
4774 (image_targets): Likewise.
4775 (generate_image): Put prefix as a module.
4776
4777 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 Replace grub_module_iterate with FOR_MODULES.
4780
4781 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
4782 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
4783 (grub_efi_modules_addr): ...this.
4784 * grub-core/kern/efi/init.c (grub_modbase): New variable.
4785 (grub_efi_init): Set grub_modbase.
4786 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
4787 (grub_modbase): New variable.
4788 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
4789 (grub_modbase): New variable.
4790 (grub_machine_init): Set grub_modbase.
4791 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
4792 (grub_modbase): New variable.
4793 (grub_machine_init): Set grub_modbase.
4794 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
4795 (grub_modbase): New variable.
4796 (grub_machine_init): Set grub_modbase.
4797 * grub-core/kern/main.c (grub_module_iterate): Remove.
4798 (grub_modules_get_end): Use grub_modbase.
4799 (grub_load_modules): Use FOR_MODULES.
4800 (grub_load_config): Likewise.
4801 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
4802 (grub_modbase): New variable.
4803 (grub_machine_init): Set grub_modbase.
4804 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
4805 (grub_modbase): New variable.
4806 (grub_machine_init): Set grub_modbase.
4807 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
4808 Removed.
4809 (grub_modbase): New variable.
4810 (grub_machine_init): Set grub_modbase.
4811 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
4812 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
4813 (grub_module_iterate): Likewise.
4814 (grub_modbase): New variable declaration.
4815 (FOR_MODULES): New macro.
4816
4817 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4818
4819 * configure.ac: Check for __ctzdi2 and __ctzsi2.
4820 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
4821
4822 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4823
4824 Fix few obvious type discrepancies.
4825
4826 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
4827 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
4828 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
4829 variable.
4830 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
4831 and connected types.
4832 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
4833 offset.
4834 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
4835 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
4836 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
4837 and connected types.
4838
4839 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4840
4841 Fix python 3.x incompatibilities.
4842
4843 * gentpl.py: Put brackets around print strings.
4844 * util/import_gcry.py: Open explicitly as utf-8.
4845 Use in instead of has_key.
4846
4847 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
4850 (GRUB_XFS_INO_AGBITS): Make into inline function.
4851 (GRUB_XFS_INO_INOINAG): Likewise.
4852 (GRUB_XFS_INO_AG): Likewise.
4853 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
4854 (GRUB_XFS_EXTENT_OFFSET): Likewise.
4855 (GRUB_XFS_EXTENT_BLOCK): Likewise.
4856 (GRUB_XFS_EXTENT_SIZE): Likewise.
4857 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
4858 (GRUB_XFS_NEXT_DIRENT): Likewise.
4859 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
4860 (grub_xfs_read_file): Fix offset type.
4861
4862 2011-10-15 Robert Millan <rmh@gnu.org>
4863
4864 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
4865
4866 2011-10-15 Robert Millan <rmh@gnu.org>
4867
4868 Fix build problem on FreeBSD and GNU/kFreeBSD.
4869
4870 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
4871
4872 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
4875
4876 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
4877 types.
4878 (grub_hfsplus_btree_recoffset): Likewise.
4879 (grub_hfsplus_btree_recptr): Likewise.
4880 (grub_hfsplus_find_block): Likewise.
4881 (grub_hfsplus_btree_search): Likewise.
4882 (grub_hfsplus_read_block): Likewise.
4883 (grub_hfsplus_read_file): Likewise.
4884 (grub_hfsplus_mount): Likewise.
4885 (grub_hfsplus_btree_iterate_node): Likewise.
4886 (grub_hfsplus_btree_search): Likewise.
4887 (grub_hfsplus_iterate_dir): Likewise.
4888 (grub_hfsplus_read): A small code simplification.
4889
4890 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * grub-core/kern/emu/hostdisk.c
4893 (convert_system_partition_to_system_disk): Don't assume that children
4894 of mapper nodes are mapper nodes.
4895
4896 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
4899 * include/grub/misc.h (grub_isxdigit): New function.
4900 * grub-core/video/colors.c (my_isxdigit): Removed. All users
4901 switched to grub_isxdigit.
4902 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
4903 number starting with a letter.
4904
4905 2011-10-09 Robert Millan <rmh@gnu.org>
4906
4907 LVM support for FreeBSD and GNU/kFreeBSD.
4908
4909 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
4910 GNU/kFreeBSD.
4911 (LVM_DEV_MAPPER_STRING): Move from here ...
4912 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
4913 * util/getroot.c: Include `<grub/util/lvm.h>'.
4914 (grub_util_get_dev_abstraction): Enable
4915 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
4916 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
4917 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
4918 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
4919 support it.
4920 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
4921 GNU/kFreeBSD.
4922 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
4923 when LVM abstraction is required for ${GRUB_DEVICE}.
4924
4925 2011-10-06 Szymon Janc <szymon@janc.net.pl>
4926
4927 Add support for LZO compression in GRUB:
4928 - import of minilzo library,
4929 - LZO decompression for btrfs,
4930 - lzop files decompression.
4931
4932 * grub-core/io/lzopio.c: New file.
4933 * grub-core/lib/adler32.c: Likewise.
4934 * grub-core/lib/minilzo/lzoconf.h: Likewise.
4935 * grub-core/lib/minilzo/lzodefs.h: Likewise.
4936 * grub-core/lib/minilzo/minilzo.c: Likewise.
4937 * grub-core/lib/minilzo/minilzo.h: Likewise.
4938 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
4939 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
4940 grub-core/lib/minilzo/minilzo.c to common.
4941 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
4942 cflags in cppflags.
4943 * grub-core/Makefile.core.def (btrfs): Likewise.
4944 * grub-core/Makefile.core.def (lzopio): New module.
4945 (adler32): Likewise.
4946 * grub-core/fs/btrfs.c: Include minilzo.h.
4947 (GRUB_BTRFS_COMPRESSION_LZO): New define.
4948 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
4949 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
4950 (grub_btrfs_lzo_decompress): New function.
4951 (grub_btrfs_extent_read): Add support for LZO compression type.
4952 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
4953 (GRUB_USHRT_MAX): Likewise.
4954 (GRUB_UINT_MAX): Likewise.
4955 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
4956 (UINT_MAX): Likewise.
4957 (CHAR_BIT): Likewise.
4958 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
4959 grub-core/lib/posix_wrap/limits.h
4960 (UCHAR_MAX): Likewise.
4961 * include/grub/file.h (grub_file_filter_id): New compression filter
4962 GRUB_FILE_FILTER_LZOPIO.
4963 * include/grub/file.h (grub_file_filter_id): Set
4964 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
4965 * include/grub/types.h (grub_get_unaligned16): New function.
4966 (grub_get_unaligned32): Likewise.
4967 (grub_get_unaligned64): Likewise.
4968 * util/import_gcry.py (cryptolist): Add adler32.
4969
4970 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
4973 in perspective decreases the complexity of build system and fixes
4974 compilation right now.
4975
4976 2011-10-01 Ales Nesrsta <starous@volny.cz>
4977
4978 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
4979 (fixed problem related to using UHCI with coreboot).
4980
4981 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
4982
4983 * gentpl.py: Use Autogen macros so that the output template file
4984 (Makefile.tpl) size is reduced.
4985
4986 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
4987
4988 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
4989 extra_dist.
4990
4991 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
4992
4993 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
4994 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
4995
4996 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
4997
4998 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
4999 _fullpath.
5000
5001 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5002
5003 Remove extra declaration of sleep for mingw32.
5004
5005 * util/misc.c (sleep) [__MINGW32__]: Removed.
5006 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
5007
5008 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5009
5010 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
5011 type and packname.
5012 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
5013 Resurrected.
5014 (NETBSD_BTINFO_BOOTWEDGE): New definition.
5015 (grub_netbsd_btinfo_bootwedge): New struct.
5016 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5017 New function.
5018 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
5019
5020 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
5021
5022 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
5023 loader.
5024
5025 2011-09-28 Andreas Born <futur.andy@googlemail.com>
5026
5027 Fix incorrect identifiers in bash-completion.
5028
5029 * util/bash-completion.d/grub-completion.bash.in
5030 (_grub_mkpasswd-pbkdf2): Rename to ...
5031 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
5032 (_grub_script-check): Rename to ...
5033 (_grub_script_check): ... this. All users updated.
5034
5035 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5036
5037 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
5038 Return 0 if disk isn't biosdisk.
5039
5040 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5041
5042 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
5043 on NetBSD.
5044 * Makefile.util.def (grub-fstest): Likewise.
5045
5046 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5047
5048 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
5049 Get sector size from disk label.
5050
5051 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
5052
5053 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
5054 */README* as well as README*.
5055 Reported by: Axel Beckert.
5056
5057 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
5060 case of less than 256 MiB of RAM.
5061
5062 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5063
5064 * grub-core/commands/wildcard.c (make_regex): Handle @.
5065
5066 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5067
5068 * util/grub-install.in: Move cryptodisk logic to appropriate place.
5069
5070 2011-08-21 Szymon Janc <szymon@janc.net.pl>
5071
5072 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
5073 AC_LANG_CONFTEST macros.
5074
5075 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5076
5077 Add grub-fstest option to uncompress data for commands.
5078
5079 * util/grub-fstest.c (uncompress): New var.
5080 (options): New option -u.
5081
5082 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5083
5084 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5085 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
5086
5087 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5088
5089 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
5090 file type was not recognized correctly (not gzip or corrupted).
5091
5092 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
5095 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
5096
5097 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
5100 loongson.
5101 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5102 video_radeon_fuloong2e.
5103 * grub-core/video/radeon_fuloong2e.c: New file.
5104 * include/grub/video.h (grub_video_id_t): Add new ID
5105 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
5106
5107 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
5110 define.
5111 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
5112 that PRID matches the detected subplatform and reset the subplatform
5113 if it doesn't.
5114
5115 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5116
5117 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
5118
5119 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 Fix PCI iterating on functions >= 4.
5122
5123 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
5124 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
5125 Removed.
5126 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
5127 (grub_pci_read): Fix bitmask.
5128 (grub_pci_read_word): Likewise.
5129 (grub_pci_read_byte): Likewise.
5130 (grub_pci_write): Likewise.
5131 (grub_pci_write_word): Likewise.
5132 (grub_pci_write_byte): Likewise.
5133
5134 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5135
5136 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
5137 can still be specified in TARGET_CFLAGS)
5138
5139 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5140
5141 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
5142
5143 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
5144 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
5145 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
5146 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
5147 (FULOONG): Rename to ...
5148 (FULOONG2F): ... this. All users updated.
5149 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
5150 (machtype_fuloong2f_str): ... this.
5151 (machtype_fuloong2e_str): New string.
5152 Check for machtype_fuloong2e_str.
5153 * grub-core/loader/mips/linux.c (loongson_machtypes)
5154 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
5155 * grub-core/term/serial.c (loongson_defserial)
5156 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
5157 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
5158 loongson_defserial.
5159 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
5160 Rename to ...
5161 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
5162 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
5163 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
5164 to IMAGE_FULOONG2F_FLASH. All users updated.
5165 (image_targets): Rename images.
5166 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
5167
5168 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5169
5170 Make enable of disk cache statistics code configurable.
5171
5172 * configure.ac: --enable-cache-stats added.
5173 * config.h.in (DISK_CACHE_STATS): New define.
5174 * grub-core/Makefile.core.def (cacheinfo): New command.
5175 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
5176 * grub-core/commands/cacheinfo.c: New file.
5177 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
5178 moved to cacheinfo.c.
5179 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
5180 debug code.
5181 * include/grub/disk.h: Likewise.
5182
5183 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5184
5185 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
5186 * grub-core/Makefile.am: Likewise.
5187
5188 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5189
5190 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
5191 non-zero pull.
5192
5193 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
5196 All users updated.
5197 (grub_jfs_lookup_symlink): Use correct starting inode.
5198
5199 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * util/grub-setup.c (main): Add missing gcry initialisation.
5202
5203 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 Don't accept text modes on EFI when booting Linux.
5206
5207 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
5208 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
5209
5210 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
5211 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5212
5213 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
5214 use of "/path/.." as in grub-install for EFI as well as handling
5215 symlinks correctly.
5216 Fixes Debian bug #637768.
5217
5218 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5219
5220 * util/grub-probe.c: Remove duplicate #include.
5221
5222 2011-08-10 Robert Millan <rmh@gnu.org>
5223
5224 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
5225
5226 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
5227 function.
5228 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
5229 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
5230
5231 2011-08-03 Robert Millan <rmh@gnu.org>
5232
5233 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
5234 la_array as packed.
5235 Reported by: Zachary Bedell
5236
5237 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5238
5239 * configure.ac: The Loongson port requires grub-mkfont due to its
5240 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
5241 be built.
5242
5243 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5244
5245 * util/grub-install.in: Don't source grub-mkconfig_lib until after
5246 processing arguments (otherwise help2man fails when GRUB has not yet
5247 been installed).
5248
5249 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5250
5251 New script grub-mkstandalone.
5252
5253 * Makefile.util.def (grub-mkstandalone): New script.
5254 * docs/man/grub-mkstandalone.h2m: New file.
5255 * util/grub-mkstandalone.in: Likewise.
5256
5257 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5258
5259 Support ATA disks with 4K sectors.
5260
5261 * include/grub/ata.h (grub_ata): New member log_sector_size.
5262 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
5263 (grub_ata_identify): Read sector size.
5264 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
5265
5266 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * util/grub-install.in: Don't use uhci outside of x86.
5269
5270 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * util/grub-mkrescue.in: Add missing quotes.
5273
5274 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
5277 dereference.
5278
5279 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5280
5281 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
5282
5283 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5284
5285 * include/grub/video.h: add missing EXPORT_FUND on
5286 grub_video_edid_checksum and grub_video_edid_preferred_mode.
5287
5288 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * include/grub/mips/kernel.h: Fix define conflict.
5291
5292 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5293
5294 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
5295 all four ways.
5296
5297 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
5298
5299 Preferred resolution detection for VBE.
5300
5301 * grub-core/video/video.c (grub_video_edid_checksum): New function.
5302 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
5303 the Flat Panel extension, in line with the X.org VESA driver.
5304 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
5305 New function.
5306 (grub_vbe_bios_get_ddc_capabilities): Likewise.
5307 (grub_vbe_bios_read_edid): Likewise.
5308 (grub_vbe_get_preferred_mode): Likewise.
5309 (grub_video_vbe_setup): When the mode is "auto", try to get the
5310 preferred mode from VBE, and use the largest mode that is no larger
5311 than the preferred mode (some BIOSes expose a preferred mode that is
5312 not in their mode list!). If this fails, fall back to 640x480 as a
5313 safe conservative choice.
5314 (grub_video_vbe_get_edid): New function.
5315 (grub_video_vbe_adapter): Add get_edid.
5316 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
5317 (struct grub_video_adapter): Add get_edid.
5318 (grub_video_edid_checksum): Add prototype.
5319 (grub_video_edid_preferred_mode): Likewise.
5320 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
5321 structure.
5322
5323 * grub-core/commands/videoinfo.c (print_edid): New function.
5324 (grub_cmd_videoinfo): Print EDID if available.
5325
5326 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
5327 is more appropriate on a wider range of platforms than 640x480.
5328 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
5329 documentation.
5330
5331 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5332
5333 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
5334
5335 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 * po/POTFILES.in: Regenerate.
5338
5339 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
5342 incorrect memory usage.
5343
5344 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * util/grub-install.in: Source grub-mkconfig_lib.
5347
5348 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 Remove getroot.c from core on emu platform.
5351
5352 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
5353 kern/emu/raid.c.
5354 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
5355 useless.
5356 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
5357 * util/getroot.c (get_win32_path): ... here.
5358 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
5359 * util/getroot.c (fini_libzfs): ... here.
5360 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
5361 * util/getroot.c (grub_get_libzfs_handle): ... here.
5362 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
5363 Moved from here...
5364 * util/getroot.c (grub_find_zpool_from_dir): ... here.
5365 * grub-core/kern/emu/misc.c
5366 (grub_make_system_path_relative_to_its_root): Moved from here...
5367 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
5368 * grub-core/kern/emu/getroot.c: Moved from here ...
5369 * util/getroot.c: ... here. All users updated.
5370 * grub-core/kern/emu/raid.c: Moved from here ...
5371 * util/raid.c: ... here. All users updated.
5372
5373 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * po/POTFILES.in: Regenerate.
5376
5377 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 Fix compilation on GNU/Linux.
5380
5381 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
5382 Disable geli.
5383 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
5384 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
5385 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
5386
5387 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5388 2011-07-07 Michael Gorven <michael@gorven.za.net>
5389 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
5390
5391 LUKS and GELI support.
5392
5393 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
5394 grub-core/disk/luks.c, grub-core/disk/geli.c,
5395 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
5396 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
5397 grub-core/lib/arg.c.
5398 (libgrubmods.a): Remove gcrypts cflags and cppflags.
5399 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
5400 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
5401 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
5402 (grub-bin2h): Add libgcry.a.
5403 (grub-mkimage): Likewise.
5404 (grub-mkrelpath): Likewise.
5405 (grub-script-check): Likewise.
5406 (grub-editenv): Likewise.
5407 (grub-mkpasswd-pbkdf2): Likewise.
5408 (grub-pe2elf): Likewise.
5409 (grub-fstest): Likewise.
5410 (grub-mkfont): Likewise.
5411 (grub-mkdevicemap): Likewise.
5412 (grub-probe): Likewise.
5413 (grub-ofpath): Likewise.
5414 (grub-mklayout): Likewise.
5415 (example_unit_test): Likewise.
5416 (grub-menulst2cfg): Likewise.
5417 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
5418 * grub-core/Makefile.core.def (cryptodisk): New module.
5419 (luks): Likewise.
5420 (geli): Likewise.
5421 * grub-core/disk/AFSplitter.c: New file.
5422 * grub-core/disk/cryptodisk.c: Likewise.
5423 * grub-core/disk/geli.c: Likewise.
5424 * grub-core/disk/luks.c: Likewise.
5425 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
5426 grub_util_is_lvm.
5427 (grub_util_get_dm_abstraction): New function.
5428 (grub_util_follow_gpart_up): Likewise.
5429 (grub_util_get_geom_abstraction): Likewise.
5430 (grub_util_get_dev_abstraction): Use new functions.
5431 (grub_util_pull_device): Pull GELI and LUKS.
5432 (grub_util_get_grub_dev): Handle LUKS and GELI.
5433 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
5434 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
5435 (follow_geom_up): Removed.
5436 (grub_util_fd_seek): New function.
5437 (open_device): Use grub_util_fd_seek.
5438 (nread): Rename to ..
5439 (grub_util_fd_read): ... this. All users updated.
5440 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
5441 (grub_crypto_cbc_decrypt): Likewise.
5442 (grub_crypto_hmac_write): Likewise.
5443 (grub_crypto_hmac_buffer): Likewise.
5444 (grub_password_get): Extend to util.
5445 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
5446 New member modname.
5447 (gcry_md_spec) [GRUB_UTIL]: Likewise.
5448 * include/grub/cryptodisk.h: New file.
5449 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
5450 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
5451 LUKS and GELI.
5452 (grub_util_follow_gpart_up): New proto.
5453 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
5454 (grub_util_fd_read): Likewise.
5455 (grub_cryptodisk_cheat_mount): Likewise.
5456 (grub_util_cryptodisk_print_uuid): Likewise.
5457 (grub_util_get_fd_sectors): Likewise.
5458 * util/grub-fstest.c (mount_crypt): New var.
5459 (fstest): Mount crypto if requested.
5460 (options): New option -C.
5461 (argp_parser): Parse -C.
5462 (main): Init and fini gcry.
5463 * util/grub-install.in: Support cryptodisk install.
5464 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
5465 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
5466 cryptodisk.
5467 (prepare_grub_to_access_device): Likewise.
5468 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
5469 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
5470 (probe_cryptodisk_uuid): New function.
5471 (probe_abstraction): Likewise.
5472 (probe): Use new functions.
5473 * util/import_gcry.py: Create Makefile.utilgcry.def.
5474 Add modname member.
5475
5476 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5477
5478 Lazy device scanning.
5479
5480 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
5481 (grub-setup): Remove util/raid.c.
5482 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
5483 * grub-core/disk/lvm.c (scan_depth): New variable.
5484 (grub_lvm_iterate): Rescan if necessary.
5485 (find_lv): New function based on grub_lvm_open.
5486 (grub_lvm_open): Use find_lv. Rescan on error.
5487 (is_node_readable): New function.
5488 (is_lv_readable): Likewise.
5489 (grub_lvm_scan_device): Skip already found disks.
5490 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
5491 Stop if searched device is found and readable.
5492 * grub-core/disk/raid.c (inscnt): New variable.
5493 (scan_depth): Likewise.
5494 (scan_devices): New function based on grub_raid_register. Abort if
5495 looked for device is found.
5496 (grub_raid_iterate): Rescan if needed.
5497 (find_array): NEw function based on -grub_raid_open.
5498 (grub_raid_open): Use find_array and rescan.
5499 (insert_array): Set became_readable_at.
5500 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
5501 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
5502 New function.
5503 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
5504 (grub_util_pull_device): New function.
5505 (grub_util_get_grub_dev): Call grub_util_pull_device.
5506 * util/raid.c: Moved to ..
5507 * grub-core/kern/emu/raid.c: ... here.
5508 (grub_util_raid_getmembers): New parameter "bootable".
5509 All users updated. Support 1.x.
5510 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
5511 All users updated.
5512 * include/grub/disk.h (grub_disk_pull_t): New enum.
5513 (grub_disk_dev): Change iterate prototype.
5514 All users updated.
5515 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
5516 New proto.
5517 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
5518 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
5519 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
5520 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
5521 All users updated.
5522 * include/grub/util/raid.h: Removed.
5523
5524 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
5525
5526 * po/POTFILES.in: Regenerate.
5527
5528 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 Unify sparc init with other ieee1275.
5531
5532 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
5533 instead of kern/sparc64/ieee1275/init.c.
5534 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
5535 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
5536 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
5537 grub/machine/kernel.h.
5538 (grub_ieee1275_original_stack) [__sparc__]: New variable.
5539 (grub_claim_heap) [__sparc__]: Use sparc version.
5540 (grub_machine_init): Moved args parsing to
5541 (grub_parse_cmdline): ...this.
5542 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
5543 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
5544 New definition.
5545 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
5546
5547 Move BOOTP to separate file.
5548
5549 * grub-core/Makefile.core.def (net): Add net/bootp.c.
5550 * grub-core/net/net.c: Move all BOOTP functions to
5551 * grub-core/net/bootp.c: ... here.
5552
5553 Use frame interface on PXE.
5554
5555 * grub-core/Makefile.core.def (pxecmd): Removed.
5556 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
5557 * grub-core/commands/i386/pc/pxecmd.c: Removed.
5558 * grub-core/i386/pc/pxe.c: Moved from here ...
5559 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
5560 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
5561 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
5562
5563 EFI network support.
5564
5565 * grub-core/Makefile.core.def (efinet): New module.
5566 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
5567 here...
5568 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
5569 All users updated.
5570 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
5571 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
5572 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
5573 * grub-core/net/drivers/efi/efinet.c: New file.
5574 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
5575 (grub_efi_net_config): New extern var.
5576
5577 Various cleanups and bugfixes.
5578
5579 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
5580 error.
5581 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
5582 disk declared as partition.
5583 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
5584 leak on failure.
5585 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
5586 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
5587 (grub_debug_zalloc): Likewise.
5588 (grub_debug_realloc): Likewise.
5589 (grub_debug_memalign): Likewise.
5590 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
5591 Check that target is IPv4.
5592 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
5593 local-mac-address as fallback.
5594 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
5595 memory leak.
5596 * grub-core/net/ip.c (ipchksum): Rename to ...
5597 (grub_net_ip_chksum): ... this. All users updated.
5598 (grub_net_recv_ip_packets): Special handling for DHCP.
5599 * util/grub-mkimage.c (generate_image): Zero-out aout header.
5600
5601 Unify prefix handling
5602
5603 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
5604 (grub_machine_get_bootlocation): ... this.
5605 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
5606 (grub_machine_get_bootlocation): ... this.
5607 (grub_prefix): New variable.
5608 (prefix): Removed.
5609 (root_dev): New variable.
5610 (dir): Likewise.
5611 (main): Use new variables.
5612 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
5613 Revamped into ...
5614 (grub_machine_get_bootlocation): ... this.
5615 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
5616 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
5617 (grub_machine_get_bootlocation): ... this.
5618 (grub_machine_set_prefix): Removed.
5619 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
5620 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
5621 Revamped into ...
5622 (grub_machine_get_bootlocation): ... this.
5623 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
5624 (grub_set_prefix_and_root): ... this. All users updated.
5625 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
5626 Revamped into ...
5627 (grub_machine_get_bootlocation): ... this.
5628 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
5629 (grub_machine_get_bootlocation): New proto.
5630 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
5631
5632 Less intrusive and more reliable seek on network implementation.
5633
5634 * grub-core/kern/file.c (grub_file_net_seek): Removed.
5635 (grub_file_seek): Don't call grub_file_net_seek.
5636 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
5637 (grub_net_fs_read_real): .. this.
5638 (grub_net_seek_real): Use net->offset.
5639 (grub_net_fs_read): Seek if necessary.
5640
5641 Unify IEEE1275 netwotk config with the other platforms.
5642
5643 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
5644 New variable.
5645 (grub_machine_get_bootlocation): Support network.
5646 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
5647 Support type and device parsing.
5648 (grub_ieee1275_get_device_type): New function.
5649 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
5650 into ...
5651 (grub_ieee1275_net_config_real): ... this.
5652 (grub_ofnet_probecards): Removed.
5653 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
5654 * include/grub/ieee1275/ofnet.h: Removed.
5655 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
5656 extern var.
5657 (grub_ieee1275_get_device_type): New function.
5658
5659 Unify network device closing across platforms and make more robust.
5660
5661 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
5662 grub_grubnet_fini.
5663 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
5664 already.
5665 * grub-core/net/net.c (grub_net_network_level_interface_register):
5666 Update num_ifaces.
5667 (grub_net_card_unregister): Close all interfaces.
5668 (receive_packets): Don't poll if no iterfaces are registered.
5669 Open if necessary.
5670 (grub_net_fini_hw): New function.
5671 (grub_net_restore_hw): Likewise.
5672 (fini_hnd): New variable.
5673 (GRUB_MOD_INIT): Register preboot hook.
5674 (GRUB_MOD_FINI): Run and unregister preboot hook.
5675
5676 Poll network cards when idle.
5677
5678 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
5679 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
5680 * grub-core/net/net.c (receive_packets): Save last poll time.
5681 (grub_net_poll_cards_idle_real): New function.
5682 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
5683 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
5684 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
5685
5686 Rename ofnet interfaces.
5687
5688 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
5689 (grub_ofnet_findcards): Use ofnet_%s names.
5690
5691 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
5692
5693 Cleanup socket opening.
5694
5695 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
5696 (grub_net_fs_close): Likewise.
5697 (grub_net_fs_read_real): Use eof member.
5698 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
5699 (+grub_net_udp_close): New inline function.
5700
5701 * include/grub/net/tftp.h: Moved to the top of ...
5702 * grub-core/net/tftp.c: ... here.
5703 * include/grub/net/ip.h: Moved mostly to the top of ...
5704 * grub-core/net/ip.c: ... here.
5705 * include/grub/net/ethernet.h: Moved mostly to the top of ...
5706 * grub-core/net/ethernet.c: ... here.
5707
5708 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
5709
5710 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
5711 FS name.
5712
5713 * include/grub/net/ip.h (ipv4_ini): Removed.
5714 (ipv4_fini): Likewise.
5715
5716 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
5717 (grub_net_send_ip_packets): Likewise.
5718
5719 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
5722 grub_read_cmos prototype.
5723
5724 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 VGA text support in qemu-mips
5727
5728 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
5729 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
5730 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
5731 text.
5732 * grub-core/kern/i386/qemu/init.c: Renamed to ...
5733 * grub-core/kern/vga_init.c: ... this.
5734 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
5735 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
5736 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
5737 Adjust.
5738 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
5739 GRUB_MACHINE_PCI_IO_BASE.
5740
5741 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
5742
5743 MIPS qemu flash support.
5744
5745 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
5746 magic.
5747 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
5748 (grub_machine_init): Probe memory if its size isn't known.
5749 * util/grub-mkimage.c (image_targets): Add flash targets.
5750 (generate_image): Handle flash targets.
5751
5752 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 MIPS qemu at_keyboard support.
5755
5756 * gentpl.py (videoinkernel): Add qemu-mips.
5757 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
5758 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
5759 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
5760 modules.
5761 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
5762 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
5763 * grub-core/term/serial.c (grub_serial_register)
5764 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
5765
5766 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 CMOS support on sparc.
5769
5770 * gentpl.py (cmos): Add powerpc and sparc.
5771 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
5772 powerpc and sparc.
5773 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
5774 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
5775 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
5776 grub_set_datetime_cmos.
5777 * grub-core/lib/ieee1275/cmos.c: New file.
5778 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
5779 (find_rtc): Set no_ieee1275_rtc on error.
5780 (grub_get_datetime): Call grub_get_datetime_cmos on error.
5781 (grub_set_datetime): Call grub_set_datetime_cmos on error.
5782 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
5783 fail. Move value to argument. All users updated
5784 (grub_cmos_write): Likewise.
5785 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
5786 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
5787 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
5788 grub_get_datetime_cmos and grub_set_datetime_cmos.
5789
5790 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
5791
5792 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
5793 sourcing grub-mkconfig_lib.
5794 * util/update-grub_lib.in: Likewise.
5795 * util/grub.d/00_header.in: Likewise.
5796 * util/grub.d/10_hurd.in: Likewise.
5797 * util/grub.d/10_kfreebsd.in: Likewise.
5798 * util/grub.d/10_linux.in: Likewise.
5799 * util/grub.d/10_netbsd.in: Likewise.
5800 * util/grub.d/10_windows.in: Likewise.
5801 * util/grub.d/20_linux_xen.in: Likewise.
5802 * util/grub.d/30_os-prober.in: Likewise.
5803
5804 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
5805
5806 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5807 default_bg_color rather than black.
5808 (grub_gfxterm_fullscreen): Likewise.
5809 (grub_gfxterm_background_color_cmd): Save new background color in
5810 default_bg_color.
5811
5812 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
5815
5816 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
5819 mismerge.
5820
5821 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5822
5823 Chainloading on coreboot support.
5824
5825 * grub-core/Makefile.core.def (chain): Add coreboot.
5826 * grub-core/loader/i386/coreboot/chainloader.c: New file.
5827
5828 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
5831 if it happens.
5832
5833 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 Implement time command.
5836
5837 * grub-core/Makefile.core.def (time): New module.
5838 * grub-core/commands/time.c: New file.
5839 * grub-core/script/parser.y: Remove "time" keyword.
5840 * grub-core/script/yylex.l: Likewise.
5841
5842 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
5845
5846 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5847
5848 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
5849 when handling leftovers.
5850
5851 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
5854 so that help2man doesn't fail.
5855
5856 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
5859 type in pointers on sparc64.
5860 (get_card_packet): Likewise.
5861
5862 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
5863
5864 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
5865 with `*'.
5866 (grub_cmd_videoinfo): Fetch current video mode.
5867
5868 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
5871 because of underlying system restrictions.
5872
5873 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
5876 necessary.
5877
5878 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5879
5880 Coreboot video support.
5881
5882 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
5883 (vbe): Likewise.
5884 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
5885 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
5886 here ...
5887 * grub-core/kern/i386/int.S: ... here.
5888 * grub-core/video/i386/pc/vbe.c: Updated includes.
5889 * grub-core/video/i386/pc/vga.c: Likewise.
5890 * include/grub/i386/coreboot/memory.h
5891 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
5892 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
5893 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
5894 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
5895 Disable interrupts.
5896 * include/grub/i386/pc/vga.h: Removed. All users updated.
5897
5898 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5899
5900 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
5901 definitions for dprintf.
5902 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
5903
5904 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5905
5906 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
5907 prototype.
5908 (get_card_packet): Likewise.
5909
5910 2011-06-26 Yves Blusseau <blusseau@zetam.org>
5911
5912 Display the path of the file when file is not found
5913
5914 * grub-core/fs/fat.c: Display the filename when file is not found.
5915 * grub-core/fs/fshelp.c: Likewise.
5916 * grub-core/fs/hfs.c: Likewise.
5917 * grub-core/fs/jfs.c: Likewise.
5918 * grub-core/fs/minix.c: Likewise.
5919 * grub-core/fs/ufs.c: Likewise.
5920 * grub-core/fs/btrfs.c: Likewise.
5921 * grub-core/commands/i386/pc/play.c: Likewise.
5922
5923 2011-06-26 Szymon Janc <szymon@janc.net.pl>
5924
5925 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
5926 pointer checks before calling grub_free().
5927 * grub-core/commands/wildcard.c (match_devices): Likewise.
5928 * grub-core/commands/wildcard.c (match_files): Likewise.
5929 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
5930 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
5931 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
5932 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
5933 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
5934 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
5935 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
5936 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
5937 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
5938
5939 2011-06-25 Patrick <p55@mailinator.com>
5940
5941 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
5942
5943 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5944
5945 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
5946 (grub_pxe_send): Likewise.
5947 (GRUB_MOD_INIT): Fix types.
5948
5949 2011-06-24 Szymon Janc <szymon@janc.net.pl>
5950
5951 * grub-core/io/xzio.c: Fix code style issues
5952
5953 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
5954 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
5955
5956 Network infrastructure.
5957 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
5958
5959 * include/grub/net/arp.h: New file.
5960 * include/grub/net/device.h: Likewise.
5961 * include/grub/net/ethernet.h: Likewise.
5962 * include/grub/net/ip.h: Likewise.
5963 * include/grub/net/netbuff.h: Likewise.
5964 * include/grub/net/tftp.h: Likewise.
5965 * include/grub/net/udp.h: Likewise.
5966 * include/grub/ieee1275/ofnet.h: Likewise.
5967 * include/grub/emu/export.h: Likewise.
5968 * include/grub/net.h: Likewise.
5969 * grub-core/net/arp.c: Likewise.
5970 * grub-core/net/ethernet.c: Likewise.
5971 * grub-core/net/ip.c: Likewise.
5972 * grub-core/net/udp.c: Likewise.
5973 * grub-core/net/tftp.c: Likewise.
5974 * grub-core/net/netbuff.c: Likewise.
5975 * grub-core/net/net.c: Likewise.
5976 * grub-core/net/drivers/emu/emunet.c: Likewise.
5977 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
5978 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
5979 export.h.
5980 * grub-core/Makefile.core.def (net): New module.
5981 (tftp): Likewise.
5982 (ofnet): Likewise.
5983 (emunet): Likewise.
5984 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
5985 network protocols.
5986 * grub-core/kern/device.c (grub_net_open) : New variable.
5987 (grub_device_open): Handle network device.
5988 (grub_device_close): Likewise.
5989 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
5990 (grub_grubnet_fini): Likewise.
5991 (grub_file_seek): Seek in network device.
5992 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
5993 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
5994 network root.
5995 (grub_machine_fini): Call grub_grubnet_fini.
5996 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
5997 network.
5998 (grub_ieee1275_get_aliasdevname): New function.
5999 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6000 Add unofficial Solaris network info.
6001 (grub_multiboot_make_mbi): Likewise.
6002 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
6003 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
6004 * include/grub/device.h (grub_fs): Removed.
6005 * include/grub/err.h (grub_err_t): Add network-related values.
6006 * include/grub/i386/pc/pxe.h: Removed bootp parts.
6007 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
6008 (grub_ieee1275_get_aliasdevname): New proto.
6009 * include/grub/net.h: Rewritten.
6010
6011 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
6014 names.
6015
6016 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
6019 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
6020 it truncates the output.
6021 Reported by: Ximin Luo.
6022
6023 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6024
6025 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
6026
6027 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6028
6029 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
6030 partmap before abstraction.
6031
6032 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
6033
6034 * util/grub-mkconfig_lib.in: Add missing quotes.
6035
6036 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6037
6038 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
6039 old method if mountinfo would return /dev/root and /dev/root doesn't
6040 exist.
6041
6042 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 ZFS zlib support
6045
6046 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
6047 (decomp_table): Add zlib entries.
6048 (zio_read): USe 8 bits for compression function rather than 3.
6049 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
6050
6051 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 * grub-core/disk/ahci.c: Add missing license statements.
6054 * grub-core/fs/romfs.c: Likewise.
6055 * grub-core/lib/ia64/setjmp.S: Likewise.
6056 * grub-core/loader/i386/pc/freedos.c: Likewise.
6057 * grub-core/loader/ia64/efi/linux.c: Likewise.
6058 * grub-core/video/colors.c: Likewise.
6059 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
6060
6061 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6062
6063 AHCI support.
6064
6065 * grub-core/Makefile.core.def (ata_pthru): Removed.
6066 (ahci): New module.
6067 (pata): Likewise.
6068 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
6069 on unload.
6070 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
6071 readwrite.
6072 (grub_hdparm_do_check_powermode_cmd): Likewise.
6073 (grub_hdparm_do_smart_cmd): Likewise.
6074 (grub_hdparm_set_val_cmd): Likewise.
6075 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
6076 * grub-core/disk/ahci.c: New file.
6077 * grub-core/disk/ata.c: Factor out the low-level part into ...
6078 * grub-core/disk/pata.c: ... here.
6079 * grub-core/disk/ata_pthru.c: Contents moved to ...
6080 * grub-core/disk/pata.c: ... here.
6081 * grub-core/disk/scsi.c (grub_scsi_names): New array.
6082 (grub_scsi_iterate): Use grub_scsi_names.
6083 (grub_scsi_open): Likewise.
6084 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
6085 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
6086 (grub_ata_regs_t): New struct.
6087 (grub_disk_ata_pass_through_parms): Likewise.
6088 (grub_ata_device): Renamed to ...
6089 (grub_ata): ... this.
6090 (grub_ata_dev): New struct.
6091 Removed all low-level inline functions.
6092 * include/grub/scsi.h: Add PATA and AHCI subsystems.
6093 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
6094 iterate hooks and open. All users updated.
6095 * util/grub-install.in: Handle AHCI disk module.
6096
6097 2011-06-23 Szymon Janc <szymon@janc.net.pl>
6098
6099 Add support for DRI and RSTn markers in JPEG files.
6100
6101 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
6102 (JPEG_MARKER_RST0): Likewise.
6103 (JPEG_MARKER_RST1): Likewise.
6104 (JPEG_MARKER_RST2): Likewise.
6105 (JPEG_MARKER_RST3): Likewise.
6106 (JPEG_MARKER_RST4): Likewise.
6107 (JPEG_MARKER_RST5): Likewise.
6108 (JPEG_MARKER_RST6): Likewise.
6109 (JPEG_MARKER_RST7): Likewise.
6110 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
6111 (grub_jpeg_decode_dri): New function.
6112 (grub_jpeg_decode_sos): Move image data related part into
6113 grub_jpeg_decode_data function.
6114 (grub_jpeg_decode_data): New function.
6115 (grub_jpeg_reset): New function.
6116 (grub_jpeg_decode_jpeg): Handle new markers.
6117
6118 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6119
6120 * util/ieee1275/ofpath.c (check_sas): Close fd.
6121 (main): Free of_path.
6122 Reported by: David Volgyes <dvolgyes>.
6123
6124 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
6127 Reported by: David Volgyes <dvolgyes>.
6128
6129 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
6132 file after stat.
6133 Reported by: David Volgyes <dvolgyes>.
6134
6135 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
6138
6139 Reported by: David Volgyes <dvolgyes>.
6140
6141 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6142
6143 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
6144 Prevent memory leak.
6145
6146 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
6149 (main): Close file.
6150 Reported by: David Volgyes <dvolgyes>.
6151
6152 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6153
6154 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
6155 to continue if allocation is failed.
6156
6157 Reported by: David Volgyes <dvolgyes>.
6158
6159 2011-06-23 David Volgyes <dvolgyes>
6160
6161 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
6162 dereference.
6163
6164 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 Fix spurious warning.
6167
6168 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
6169 (acorn_partition_map_find): Use .bin member.
6170
6171 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
6174 /dev/root as a valid device.
6175
6176 2011-06-23 Jim Meyering <meyering@redhat.com>
6177
6178 Avoid NULL deref in grub_device_open.
6179
6180 * grub-core/kern/device.c (grub_device_open): Don't dereference
6181 a NULL pointer upon failed grub_env_get.
6182
6183 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 Support non-512B sectors and agglomerate reads.
6186
6187 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
6188 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
6189 (disk_io_guid): Removed.
6190 (make_devices): Locate solely by BlockIO.
6191 (grub_efidisk_open): Fill log_sector_size and total_sectors.
6192 (grub_efidisk_read): Use read_blocks.
6193 (grub_efidisk_write): Use write_blocks.
6194 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
6195 log_sector_size.
6196 (get_safe_sectors): Handle non-512B sectors.
6197 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
6198 sectors.
6199 (grub_biosdisk_write): Handle non-512B sectors.
6200 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
6201 (grub_scsi_read): Remove special non-512B block handling (now handled
6202 one level up).
6203 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
6204 and do sanity checks.
6205 (grub_disk_adjust_range): Handle non-512B sectors.
6206 (transform_sector): New function.
6207 (grub_disk_read_small): Likewise.
6208 (grub_disk_read): Rewritten.
6209 (grub_disk_write): Handle non-512B sectors.
6210 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
6211 log_sector_size.
6212 (open_device): Use log_sector_size.
6213 (grub_util_biosdisk_read): Likewise.
6214 (grub_util_biosdisk_write): Likewise.
6215 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
6216 non-512B sectors.
6217 (pc_partition_map_embed): Likewise.
6218 * include/grub/disk.h (grub_disk): New field log_sector_size.
6219 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
6220 (GRUB_DISK_CACHE_BITS): Increased to 6.
6221 * util/grub-fstest.c (fstest): New command testload.
6222 (argp_parser): Likewise.
6223
6224 2011-06-16 Robert Millan <rmh@gnu.org>
6225
6226 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
6227 `ata' driver on kernel of FreeBSD 9.
6228
6229 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
6230 (get_ataraid_disk_name): New functions.
6231 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
6232 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
6233 get_ataraid_disk_name() and get_ada_disk_name().
6234
6235 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
6236
6237 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
6238 input format.
6239
6240 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
6241
6242 * docs/grub.texi (Obtaining and Building GRUB): Substitute
6243 `ftp.gnu.org' for `alpha.gnu.org'.
6244
6245 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6246
6247 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
6248 partitions under /dev/disk/by-id/.
6249
6250 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6251
6252 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
6253 after ten consecutive open failures. Scanning all the way up to
6254 10000 is excessive and can cause serious performance problems in
6255 some configurations.
6256 Fixes Ubuntu bug #787461.
6257
6258 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
6261 opening new one.
6262
6263 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
6264 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 Don't stat devices unless we have to.
6267
6268 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
6269 dir == /dev/mapper.
6270 (grub_guess_root_device): Use already known os_dev if possible.
6271 * grub-core/kern/emu/hostdisk.c
6272 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
6273 if device is known to be a dm one.
6274
6275 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
6276
6277 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
6278 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
6279 Reported by: Pawel Tecza.
6280
6281 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
6284 (lsefisystab): Likewise.
6285 (lssal): Likewise.
6286 (lsefimmap): Likewise.
6287 (hdparm): Enable on qemu-mips.
6288 (setjmp): Add ia64 nodist.
6289 (serial): Simplify tags.
6290
6291 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6292
6293 * Makefile.util.def (grub-ofpathname): Install manual page.
6294
6295 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6296
6297 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
6298
6299 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6300
6301 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
6302
6303 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
6306 into dprintf.
6307
6308 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 Use full 64-bit division.
6311
6312 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
6313 (grub_divmod64): ... this.
6314 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
6315 version.
6316
6317 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6318
6319 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
6320 `source'.
6321
6322 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6323
6324 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
6325 to avoid accidents when debugging with 'sh -x'.
6326 * grub-core/gensyminfo.sh.in: Likewise.
6327 * tests/example_scripted_test.in: Likewise.
6328 * tests/grub_cmd_regexp.in: Likewise.
6329 * tests/grub_script_blanklines.in: Likewise.
6330 * tests/grub_script_dollar.in: Likewise.
6331 * tests/grub_script_expansion.in: Likewise.
6332 * tests/grub_script_final_semicolon.in: Likewise.
6333 * tests/partmap_test.in: Likewise.
6334 * tests/util/grub-shell-tester.in: Likewise.
6335 * tests/util/grub-shell.in: Likewise.
6336
6337 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6338
6339 Move gfxmenu color handling to video, so that gfxterm can use it
6340 too.
6341
6342 * grub-core/gfxmenu/named_colors.c: Move to ...
6343 * grub-core/video/colors.c: ... here. Rename
6344 grub_gui_get_named_color to grub_video_get_named_color.
6345 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
6346 * grub-core/video/colors.c (my_isxdigit): ... here.
6347 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
6348 Move to ...
6349 * grub-core/video/colors.c (parse_hex_color_component): ... here.
6350 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
6351 to ...
6352 * grub-core/video/colors.c (grub_video_parse_color): ... here.
6353
6354 * include/grub/gui.h (grub_gui_color_t): Move to ...
6355 * include/grub/video.h (grub_video_rgba_color_t): ... here.
6356 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
6357 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
6358 * include/grub/gui.h (grub_gui_map_color): Move to ...
6359 * include/grub/video.h (grub_video_map_rgba_color): ... here.
6360 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
6361 to ...
6362 * include/grub/video.h (grub_video_get_named_color): ... here.
6363 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
6364 * include/grub/video.h (grub_video_parse_color): ... here.
6365
6366 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
6367 video/colors.c.
6368 (gfxmenu): Remove gfxmenu/named_colors.c.
6369 (video) [videomodules]: Add video/colors.c.
6370
6371 Add a background_color command.
6372
6373 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
6374 function.
6375 (GRUB_MOD_INIT): Register background_color command.
6376 (GRUB_MOD_FINI): Unregister background_color command.
6377 (redraw_screen_rect): Allow blend/replace of text layer to be
6378 controlled independently from whether there is a background bitmap.
6379 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
6380 changing bitmap.
6381
6382 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6383
6384 Patch BPB in ntldr and chainloader --bpb.
6385
6386 * grub-core/fs/fat.c: Include grub/fat.h.
6387 (grub_fat_bpb): Moved to ...
6388 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
6389 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
6390 grub/ntfs.h.
6391 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
6392 Moved from here...
6393 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
6394 here.
6395 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
6396 New function.
6397 (grub_chainloader_cmd): Patch BPB if --bpb is given.
6398 (GRUB_MOD_INIT): Show --bpb.
6399 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
6400 * grub-core/normal/main.c (features): New variable.
6401 (GRUB_MOD_INIT): Set feature_* variables.
6402 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
6403 proto.
6404 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
6405
6406 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
6409 for cleanness.
6410
6411 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6412
6413 FreeDOS direct loading support.
6414
6415 * docs/grub.texi (Supported OS): Add FreeDOS.
6416 * grub-core/Makefile.core.def (freedos): New module.
6417 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
6418 variable.
6419 (grub_relocator16_boot): Handle %ebx.
6420 * grub-core/lib/i386/relocator16.S: Likewise.
6421 * grub-core/loader/i386/pc/freedos.c: New file.
6422
6423 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 Long Linux command line support.
6426
6427 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6428 (maximal_cmdline_size): New variable.
6429 (allocate_pages): Use maximal_cmdline_size.
6430 (grub_cmd_linux): Set and use maximal_cmdline_size.
6431 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6432 (allocate_pages): Use maximal_cmdline_size.
6433 (grub_cmd_linux): Set and use maximal_cmdline_size.
6434 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
6435 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
6436 and cmdline_size.
6437
6438 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6439 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6440
6441 Improve devmapper support
6442
6443 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
6444 (grub_util_is_lvm): New function.
6445 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
6446 than lvm if not dmraid.
6447 Handle mapped md nodes.
6448 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
6449 (grub_util_device_is_mapped): ... this. Make always available. All users
6450 updated.
6451 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
6452 (convert_system_partition_to_system_disk): Handle lvm, mpath and
6453 dmraid nodes.
6454 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
6455
6456 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
6459
6460 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
6461 * grub-core/modinfo.sh.in: New file.
6462 * grub-core/Makefile.core.def (modinfo.sh): New script.
6463 * util/grub-mknetdir.in: Use modinfo.sh.
6464 * util/grub-mkrescue.in: Likewise.
6465
6466 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
6469 Fix potential usage of Elf32 instead of Elf64 when compiling on
6470 32-bit architecture. Add endianness macros while on it.
6471
6472 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 Use mipsel- rather than mips- in directories involving mipsel ports to
6475 allow both endiannesses coexist.
6476
6477 * configure.ac: proparate target_cpu=mipsel rather than resetting to
6478 mips. All conditions adjusted.
6479 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
6480 variable.
6481 * util/grub-install.in: Adjust conditions to take renaming into account.
6482 * util/grub-mkimage.c (image_targets): Likewise. New target
6483 mips-qemu_mips-elf for bigendian mips.
6484
6485 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 Avoid unnecessary copying on MIPS.
6488
6489 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
6490 early if src == dest.
6491 * util/grub-mkimage.c (generate_image): Arange for src == dest if
6492 compression is none.
6493
6494 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 Reduce memory footprint on SGI by putting modules before the kernel
6497 as opposed to after.
6498
6499 * grub-core/Makefile.core.def (kernel): Increase linking address.
6500 (none_decompress): Likewise.
6501 (xz_decompress): Likewise.
6502 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
6503 address.
6504 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
6505 layout change.
6506 (grub_arch_modules_addr): New function.
6507 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
6508 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
6509 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
6510 here.
6511 * grub-core/kern/mips/startup.S (total_size): Rename to ...
6512 (grub_total_modules_size): ... this. Make global.
6513 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
6514 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
6515 New definition.
6516 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
6517 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
6518 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
6519 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
6520 * util/grub-mkimage.c (image_target_desc): New flag
6521 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
6522 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
6523 (generate_image): Handle images with modules before kernel.
6524
6525 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 Prevent potential loss of memory map by overwrite on qemu-mips.
6528
6529 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
6530 Save ram size in $s4.
6531 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
6532 All users changed to grub_arch_memsize.
6533 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
6534 Loongson.
6535 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
6536 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
6537 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
6538 external variable.
6539
6540 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6541
6542 * .bzrignore: Remove grub-dumpbios.
6543
6544 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6545
6546 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
6547 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
6548 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
6549 existing options which append).
6550 * docs/grub.texi (Simple configuration): Document new options.
6551 Reported by: Ian Jackson. Fixes Debian bug #617538.
6552
6553 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6554
6555 * util/grub-fstest.c (cmd_cat): New function.
6556 (fstest): Handle CMD_CAT.
6557 (options): Add cat.
6558 (argp_parser): Handle cat.
6559
6560 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6561
6562 * Makefile.util.def (grub-bin2h): Don't install.
6563 * docs/man/grub-bin2h.h2m: Remove.
6564
6565 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
6568 place.
6569
6570 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6571
6572 Reenable qemu-mips port.
6573
6574 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
6575 Fix small arc bug while on it.
6576 * gentpl.py: Handle qemu_mips.
6577 * grub-core/Makefile.am: Likewise.
6578 * grub-core/Makefile.core.def: Likewise.
6579 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
6580 inappropriate includes.
6581 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
6582 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
6583 * grub-core/kern/main.c (grub_modules_get_end)
6584 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
6585 * grub-core/kern/mips/qemu-mips: Moved to ..
6586 * grub-core/kern/mips/qemu_mips: ... this.
6587 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
6588 (grub_machine_init): Call terminfo_init and serial_init.
6589 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
6590 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
6591 New variable.
6592 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
6593 parameter passing.
6594 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
6595 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
6596 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6597 * include/grub/mips/qemu_mips/cmos.h: New file.
6598 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
6599 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
6600 Removed.
6601 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
6602 Use correct mips-style address.
6603 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
6604 (GRUB_TICKS_PER_SECOND): Removed.
6605 (grub_get_rtc): Likewise.
6606 (grub_cpu_idle): Likewise.
6607 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
6608 New definition.
6609 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
6610 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
6611 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
6612 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
6613 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
6614 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
6615 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
6616 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
6617
6618 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 SGI ARCS port.
6621
6622 * Makefile.util.def (libgrubmods.a): Add dvh.c.
6623 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
6624 platforms.
6625 * configure.ac: New target mips-arc.
6626 * gentpl.py: Likewise.
6627 * grub-core/Makefile.am: Likewise.
6628 * grub-core/Makefile.core.def: Likewise.
6629 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
6630 (none_decompress): Likewise.
6631 (lsdev): New module.
6632 (datetime): Use lib/arc/datetime.c on ARC.
6633 (part_dvh): New module.
6634 * grub-core/commands/arc/lsdev.c: New file.
6635 * grub-core/disk/arc/arcdisk.c: Likewise.
6636 * grub-core/kern/mips/arc/init.c: Likewise.
6637 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
6638 aligned addresses.
6639 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
6640 support.
6641 (grub_arch_dl_relocate_symbols): Likewise.
6642 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
6643 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
6644 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
6645 platforms.
6646 * grub-core/lib/arc/datetime.c: New file.
6647 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
6648 pci.h on non-loongson.
6649 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
6650 (grub_linux_boot): Set unused registers to 0.
6651 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
6652 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
6653 * grub-core/mmap/mips/uppermem.c: ...here.
6654 * grub-core/partmap/dvh.c: New file.
6655 * grub-core/term/arc/console.c: Likewise.
6656 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
6657 (grub_terminfo_set_current): Add terminal "arc".
6658 (grub_terminfo_readkey): Support ARC sequences.
6659 * include/grub/arc/arc.h: New file.
6660 * include/grub/arc/console.h: Likewise.
6661 * include/grub/disk.h (grub_disk_dev_id): Add
6662 GRUB_DISK_DEVICE_ARCDISK_ID.
6663 * include/grub/mips/arc/kernel.h: New file.
6664 * include/grub/mips/arc/memory.h: Likewise.
6665 * include/grub/mips/arc/time.h: Likewise.
6666 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
6667 * include/grub/mips/kernel.h (grub_halt): ... here.
6668 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
6669 here...
6670 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
6671 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
6672 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
6673 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
6674 proto.
6675 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
6676 from here ...
6677 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
6678 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
6679 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
6680 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
6681 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
6682 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
6683 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
6684 (grub_phys_addr_t): Moved from here ...
6685 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
6686 (grub_vtop): Moved from here ...
6687 * include/grub/mips/memory.h (grub_vtop): ... here.
6688 (grub_map_memory): Moved from here ...
6689 * include/grub/mips/memory.h (grub_map_memory): ... here.
6690 (grub_unmap_memory): Moved from here ...
6691 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
6692 (grub_machine_mmap_iterate): Moved from here ...
6693 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
6694 (grub_mmap_get_lower): Moved from here ...
6695 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
6696 (grub_mmap_get_upper): Moved from here ...
6697 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
6698 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
6699 here ...
6700 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
6701 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
6702 here ...
6703 * include/grub/mips/time.h (grub_get_rtc): ... here.
6704 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
6705 here ...
6706 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
6707 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
6708 here ...
6709 * include/grub/mips/time.h (grub_cpu_idle): ... here.
6710 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
6711 definition.
6712 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
6713 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
6714 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
6715 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
6716 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
6717 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
6718 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
6719 (GRUB_MACHINE_LINK_ADDR): Likewise.
6720 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
6721 to 6.
6722 * util/grub-install.in: Run dvhtool on ARC.
6723 * util/grub-mkimage.c (image_targets): Add mips-arc.
6724 (generate_image): Handle ECOFF output for mips-arc.
6725
6726 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
6729 blocks.
6730
6731 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
6734 after enabling port.
6735
6736 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 Skip incorrect USB devices.
6739
6740 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
6741 configcnt == 0.
6742 * include/grub/usb.h (grub_usb_err_t): New enum value
6743 GRUB_USB_ERR_BADDEVICE.
6744
6745 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 Fuloong video init support.
6748
6749 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
6750 well.
6751 (grub_vga_read_arx): New function.
6752 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
6753 definition.
6754 (framebuffer): New members io, mmioptr and mmiobase.
6755 (read_sis_cmd): New function.
6756 (write_sis_cmd): Likewise.
6757 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
6758 rather than 640x400.
6759 * grub-core/video/sis315_init.c: New file.
6760
6761 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
6764 non-loongson.
6765 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
6766 to grub_dl_register_symbol.
6767
6768 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 Fix compilation errors.
6771
6772 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
6773 potentially unused.
6774 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
6775 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
6776 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
6777 to loongson machines.
6778
6779 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 Several FS mtime support.
6782
6783 * grub-core/fs/affs.c (grub_affs_time): New struct.
6784 (grub_affs_file): New field mtime.
6785 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
6786 type. Removed 'size'. New field 'di'. All users updated.
6787 (grub_affs_mount): Simplify checsum checking.
6788 (grub_affs_iterate_dir): New helper grub_affs_create_node.
6789 (grub_affs_dir): Handle mtime.
6790 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
6791 (grub_cpio_dir): Likewise.
6792 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
6793 (grub_hfs_filerec): New field mtime.
6794 (grub_hfs_dir): Handle mtime.
6795 (grub_hfs_mtime): New function.
6796 (grub_hfs_fs): Register grub_hfs_mtime.
6797 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
6798 (grub_iso9660_dir): New field mtime.
6799 (grub_fshelp_node): New field dirent.
6800 (iso9660_to_unixtime): New function.
6801 (iso9660_to_unixtime2): Likewise.
6802 (grub_iso9660_read_symlink): Use node->dirent.
6803 (grub_iso9660_iterate_dir): Likewise.
6804 (grub_iso9660_dir): Set mtime.
6805 (grub_iso9660_mtime): New function.
6806 (grub_iso9660_fs): Register grub_iso9660_mtime.
6807 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
6808 (grub_jfs_inode): New fields atime, ctime and mtime.
6809 (grub_jfs_dir): Set mtime.
6810 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
6811 * grub-core/fs/ntfs.c (list_file): Set mtime.
6812 (grub_ntfs_dir): Likewise.
6813 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
6814 (grub_reiserfs_iterate_dir): Set mtime.
6815 (grub_reiserfs_dir): Likewise.
6816 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
6817 (grub_fshelp_node): Likewise.
6818 (grub_sfs_iterate_dir): Set mtime.
6819 (grub_sfs_dir): Likewise.
6820 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
6821 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
6822 (grub_xfs_inode): New fields atime, mtime, ctime.
6823 (grub_xfs_dir): Set mtime.
6824 * include/grub/datetime.h (grub_datetime2unixtime): New function.
6825 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
6826 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
6827
6828 Support UDF symlinks.
6829
6830 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
6831 (grub_ufs_read_symlink): New function. All users updated.
6832
6833 Check amiga partmap checksum.
6834
6835 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
6836 (grub_amiga_partition): Likewise.
6837 (amiga_partition_map_checksum): New function.
6838 (amiga_partition_map_iterate): Check checksum.
6839
6840 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 ROMFS support.
6843
6844 * Makefile.util.def (libgrubmods.a): Add romfs.
6845 * grub-core/Makefile.core.def (romfs): New module.
6846 * grub-core/fs/romfs.c: New file.
6847
6848 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6849
6850 Squashfs v4 support.
6851
6852 * Makefile.util.def (libgrubmods.a): Add squash4.
6853 * grub-core/Makefile.core.def (squash4): New module.
6854 * grub-core/fs/squash4.c: New file.
6855 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
6856 disk_input_start, disk_input.
6857 (get_byte): Handle disk_input.
6858 (grub_zlib_disk_read): New function.
6859 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
6860
6861 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6862 2011-05-15 Feiran Zheng <famcool@gmail.com>
6863
6864 * Makefile.util.def (libgrubmods.a): Add minix3.
6865 * grub-core/Makefile.core.def (minix3): New module.
6866 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
6867 (GRUB_MINIX_BSIZE): Removed.
6868 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
6869 (grub_minix_ino_t): New type.
6870 (grub_minix_le_to_cpu_ino): New macro.
6871 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
6872 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
6873 (grub_minix_data): New field block_size.
6874 (grub_minix_read_file): Handle 64-bit correctly.
6875 * grub-core/fs/minix3.c: New file.
6876
6877 2011-05-15 Tristan Gingold <gingold@free.fr>
6878 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
6879 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6880
6881 IA64 support.
6882
6883 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
6884 * configure.ac: Add ia64-efi target.
6885 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
6886 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
6887 * gentpl.py: Add ia64_efi platform.
6888 Rename x86_efi to efi and Add ia64-efi. All users updated.
6889 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
6890 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
6891 Remove kern/generic/rtc_get_time_ms.c on EFI.
6892 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
6893 kern/ia64/dl_helper.c on ia64-efi.
6894 Add kern/emu/cache.c on emu.
6895 (linux): Use on loader/ia64/efi/linux.c on ia64.
6896 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
6897 whether symbol is a function.
6898 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
6899 (grub_symbol): New field 'isfunc'.
6900 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
6901 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
6902 (grub_dl_load_segments): Place all sections into the same region.
6903 [__ia64__]: Create trampolines and got.
6904 [GRUB_MACHINE_EMU]: Call mprotect.
6905 (grub_dl_resolve_symbols): Resolve symbol type as well.
6906 [__ia64__]: Create function descriptors.
6907 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
6908 (grub_rtc_get_time_ms): ... this. Expressions simplified.
6909 (grub_get_rtc): New function.
6910 * grub-core/kern/emu/cache.c [__ia64__]: New file.
6911 * grub-core/kern/emu/cache.S: Renamed to ...
6912 * grub-core/kern/emu/cache_s.S: ... this.
6913 [__ia64__]: Add a nop.
6914 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
6915 [__ia64__]: New function.
6916 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
6917 * grub-core/kern/ia64/dl.c: New file.
6918 * grub-core/kern/ia64/dl_helper.c: Likewise.
6919 * grub-core/kern/ia64/efi/init.c: New file.
6920 * grub-core/kern/ia64/efi/startup.S: Likewise.
6921 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
6922 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
6923 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
6924 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
6925 * grub-core/loader/ia64/efi/linux.c: New file.
6926 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
6927 (GRUB_MOD_DEP): Likewise.
6928 (grub_dl) [__ia64__]: New fields got and tramp.
6929 (grub_dl): New field 'base'.
6930 (grub_dl_register_symbol): New argument isfunc. All users updated.
6931 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
6932 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
6933 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
6934 (grub_ia64_dl_get_tramp_got_size): New proto.
6935 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
6936 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
6937 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
6938 * include/grub/efi/api.h: Skip call wrappers on ia64.
6939 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
6940 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
6941 * include/grub/elf.h (ELF_ST_INFO): New definition.
6942 * include/grub/ia64/efi/kernel.h: New file.
6943 * include/grub/ia64/efi/memory.h: Likewise.
6944 * include/grub/ia64/efi/time.h: Likewise.
6945 * include/grub/ia64/kernel.h: Likewise.
6946 * include/grub/ia64/setjmp.h: Likewise (from glibc).
6947 * include/grub/ia64/time.h: New file.
6948 * include/grub/ia64/types.h: Likewise.
6949 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
6950 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
6951 New protos.
6952 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
6953 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
6954 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
6955 * util/grub-mkimage.c (image_target_desc): New field pe_target.
6956 All users updated.
6957 (EFI64_HEADER_SIZE): New definition. All users updated.
6958 (image_targets): Add ia64-efi.
6959 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
6960 jumpers_addr. All users updated.
6961 Create function descriptors.
6962 (count_funcs): New function.
6963 (unaligned_uint32): New struct.
6964 (MASK20): New definition.
6965 (MASK19): Likewise.
6966 (MASKF21): Likewise.
6967 (add_value_to_slot_20b): New function.
6968 (add_value_to_slot_21_real): Likewise.
6969 (add_value_to_slot_21): Likewise.
6970 (ia64_kernel_trampoline): New struct.
6971 (nopm): New variable.
6972 (jump): Likewise.
6973 (make_trampoline): New function.
6974 (relocate_addresses): Handle ia64.
6975 (make_reloc_section): Likewise.
6976 (load_image): Likewise.
6977
6978 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6979
6980 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
6981 warning. Move variables before code while on it.
6982
6983 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 Fuloong support.
6986
6987 * configure.ac: Rename yeeloong platform to loongson. All users updated.
6988 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
6989 * grub-core/boot/mips/loongson/fuloong.S: New file.
6990 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
6991 Explicitly init CS5536.
6992 [FULOONG]: Don't use serial until CS5536 is available.
6993 Set GPIO based on dumps.
6994 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
6995 [FULOONG]: Handle GPIO and memory controller differences.
6996 Parse machine type in $a2.
6997 * grub-core/boot/mips/startup_raw.S: Determine and save the
6998 architecture.
6999 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
7000 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
7001 init on architecture type.
7002 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
7003 SIS315E. Don't init at_keyboard on fuloong.
7004 (grub_halt): Support Fuloong.
7005 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
7006 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
7007 (loongson_machtypes): New array.
7008 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
7009 type.
7010 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
7011 config. All users updated. Handle CS5536 serial.
7012 * grub-core/term/serial.c (grub_serial_register): Conditionalise
7013 default port on machine type. Register serial as inactive.
7014 * grub-core/video/sis315pro.c: New file.
7015 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
7016 definition.
7017 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
7018 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
7019 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
7020 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
7021 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
7022 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
7023 to ...
7024 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
7025 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
7026 definition.
7027 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
7028 (grub_arch_machine): New extern var.
7029 * include/grub/mips/loongson/serial.h
7030 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
7031 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
7032 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
7033 (GRUB_MACHINE_SERIAL_PORT0): ... this.
7034 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
7035 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
7036 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
7037 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
7038 * include/grub/term.h (grub_term_register_input_inactive): New inline
7039 function.
7040 (grub_term_register_output_inactive): Likewise.
7041 * include/grub/video.h (grub_video_driver_id): New value
7042 GRUB_VIDEO_DRIVER_SIS315PRO.
7043 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
7044 New field "names". All users updated.
7045 New field value IMAGE_FULOONG_FLASH.
7046 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
7047
7048 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
7049
7050 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
7051 and add some clarification.
7052
7053 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7054
7055 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
7056 platforms if kernel is compressed.
7057
7058 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7059
7060 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
7061 unused modules since currently referrence counter isn't reliable and
7062 there isn't much memory to recover there anyway.
7063
7064 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
7067 rather than resetting it to allow modules to reference themselves
7068 in init.
7069
7070 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7071
7072 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
7073 counter on dependencies since grub_dl_unref already handles this.
7074
7075 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7076
7077 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
7078 on error if not already done.
7079
7080 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7081
7082 Fix few potential memory misusage.
7083
7084 * grub-core/font/font.c (load_font_index): Don't free char_index to
7085 avoid double free.
7086 (grub_font_load): Zero-fill font at alloc for safety.
7087 Close file on error.
7088 (free_font): Free bmp_idx.
7089
7090 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7091
7092 * docs/grub.texi (Installation): Fix several outdated claims.
7093
7094 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 Handle module_license on windows.
7097
7098 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
7099 sections shifted.
7100 (insert_string): Make argument const char * instead of char *.
7101 (write_section_data): Handle long section names.
7102 Handle module_license.
7103
7104 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7105
7106 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
7107 handle class-free menuentries.
7108 (grub_normal_add_menu_entry): Add a check to be sure.
7109
7110 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7111
7112 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
7113 PgUp and PgDown.
7114
7115 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * configure.ac: Bump version to 1.99.
7118
7119 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7120
7121 Give ATA device a bit more time on first try in order to allow disks
7122 to spin up.
7123
7124 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
7125 if dev->present is 1. Reset dev->present on failure.
7126 (grub_ata_device_initialize): Set dev->present to 1.
7127 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
7128 (grub_ata_device): New member 'present'.
7129
7130 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7131
7132 * util/grub-mkimage.c (generate_image): Update hash.
7133
7134 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 Flush caches on DMA memory.
7137
7138 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
7139 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
7140 (grub_dma_free): Likewise.
7141 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
7142
7143 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7144
7145 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
7146 to avoid asm treating ld and sd as macros.
7147
7148 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
7151 decompressor.
7152
7153 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
7156 grub_decompress_core since later would fail if grub_decompress_core
7157 is too far.
7158
7159 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7160
7161 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
7162 R_MIPS_JALR since it's used by newer compiler.
7163
7164 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
7167
7168 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7169
7170 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
7171 file_path to 0 for surety.
7172 (grub_chainloader_boot): Set exit_data to NULL.
7173 Unset the loader once done.
7174 (grub_cmd_chainloader): Fix confusing error message if file is empty.
7175
7176 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
7179 unknown key into a dprintf.
7180
7181 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7182
7183 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
7184 on first non-existant partition.
7185
7186 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
7189 openning fails.
7190 Reported by: Mark Korenberg.
7191
7192 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
7195 overflow.
7196
7197 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7198
7199 * util/grub-mkimage.c (main): Explicitely flush and sync the output
7200 before closing to ensure that it will be readable by grub-setup.
7201
7202 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7203
7204 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
7205 (devpath_1): Use MAKE_PIWG_PATH.
7206 (devpath_2): Likewise.
7207 (devpath_3): Likewise.
7208 (devpath_4): Likewise.
7209 (devpath_5): Likewise.
7210 (devpath_6): Likewise.
7211
7212 The appleldr.mod was checked that to be binary identical to previous
7213 version.
7214
7215 2011-05-05 Zach <mikezackles>
7216
7217 Support 2010 Macbooks.
7218
7219 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
7220 (devs): Add devpath_6.
7221
7222 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
7225 /dev/random. /dev/urandom is good enough for our purposes (salting).
7226
7227 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7228
7229 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
7230
7231 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7232
7233 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
7234 hexadecimal.
7235
7236 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7237
7238 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
7239 and not 0 on failure.
7240
7241 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7242
7243 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
7244 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
7245 disk; otherwise grub_fs_probe will not fall back to the next
7246 filesystem.
7247 (grub_pxefs_open): Likewise, for consistency.
7248 Reported and tested by: Ezekiel Grave.
7249
7250 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7251
7252 * tests/partmap_test.in: Don't hardcode path to parted.
7253 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
7254
7255 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
7256
7257 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
7258 of `ls' to find out which devices are available.
7259
7260 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
7263 than source address for efi mmap buffer.
7264
7265 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
7268 wrong action on non-detecting the magic.
7269
7270 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
7273 already supplied by another part of the module (fixes compilation on
7274 FreeBSD).
7275
7276 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
7279 match the one used by mdadm.
7280
7281 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7282
7283 * po/README: Add instructions for creating po/LINGUAS.
7284
7285 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7286
7287 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
7288 #551428.
7289
7290 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
7291 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
7292 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
7293 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7294 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
7295 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
7296 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
7297 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
7298 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
7299 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7300 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
7301 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
7302 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
7303 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
7304 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
7305 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
7306 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
7307 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
7308 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
7309 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
7310 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
7311 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
7312
7313 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7314
7315 * grub-core/kern/emu/getroot.c
7316 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
7317 test that was incorrectly reintroduced in r3214.
7318 Reported by: Ian Dall. Fixes Savannah bug #33133.
7319
7320 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7321
7322 Fix stack pointer handling in 16-bit relocator.
7323
7324 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
7325 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
7326 Fixes Ubuntu bug #683904.
7327
7328 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7329
7330 * configure.ac: Bump version to 1.99~rc2.
7331
7332 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
7335 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
7336 * grub-core/lib/x86_64/setjmp.S: Likewise.
7337 * grub-core/lib/mips/setjmp.S: Likewise.
7338 * grub-core/lib/powerpc/setjmp.S: Likewise.
7339 * grub-core/lib/sparc64/setjmp.S: Likewise.
7340
7341 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
7344 * grub-core/lib/efi/datetime.c: Likewise.
7345
7346 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7347
7348 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
7349 New function.
7350 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
7351 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
7352 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
7353
7354 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
7357 bitmap.
7358 (grub_gfxterm_term_init): Likewise.
7359
7360 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 Take into account the decorations the computing menu entry width.
7363
7364 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
7365 (grub_gfxmenu_create_box): Register get_border_width.
7366 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
7367 if available.
7368 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
7369 get_border_width.
7370
7371 2011-04-18 Endres Puschner <code@e7p.de>
7372
7373 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
7374 Don't skip first class.
7375
7376 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7377
7378 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
7379 chunks.
7380 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
7381
7382 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 Complete 64-bit division support.
7385
7386 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
7387 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
7388 * include/grub/misc.h (grub_divmod64): Rename to ...
7389 (grub_divmod64_full): ... this.
7390 (grub_divmod64): New inline function.
7391
7392 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7393
7394 * util/grub-mkimage.c (generate_image): Add forgotten comma.
7395
7396 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
7399 performing the necessary test.
7400
7401 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
7404 (kfreebsd.elf): Likewise.
7405 (pc-chainloader.elf): Likewise.
7406 (ntldr.elf): Likewise.
7407
7408 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 Identify RAID by its UUID rather than (guessed) name.
7411
7412 * grub-core/disk/raid.c (ascii2hex): New function.
7413 (grub_raid_open): Accept mduuid/%s specification.
7414 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
7415 (get_mdadm_uuid): ... this.
7416 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
7417
7418 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
7421 to negative size.
7422
7423 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7424
7425 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
7426 btrfs subvolume.
7427 * util/grub.d/20_linux_xen.in: Likewise.
7428
7429 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7430
7431 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
7432 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
7433
7434 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7435 Build a list of relevant visible mounts using the mnt_id and
7436 parent_mnt_id fields, and then scan that list at the end.
7437
7438 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7439
7440 * docs/grub.texi (normal): New section.
7441 (normal_exit): New section.
7442 (Embedded configuration): Add reference to normal.
7443 (GRUB only offers a rescue shell): Likewise.
7444 * docs/grub-dev.texi (Error Handling): Fix typo.
7445
7446 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7447
7448 * NEWS: Drop obsolete entry about probe-only btrfs support.
7449
7450 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7451
7452 * util/import_gcry.py: Fix typo.
7453
7454 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * NEWS: Add btrfs support.
7457
7458 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7459 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
7460
7461 BtrFS support. Written by me (Vladimir) with important bugfixes and
7462 even more important testing by Colin.
7463
7464 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
7465 * grub-core/Makefile.core.def (btrfs): Add crc.c.
7466 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
7467 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
7468 mem_input_off and mem_input. All users updated to accept in-RAM input.
7469 (gzio_seek): New function.
7470 (test_zlib_header): Likewise.
7471 (grub_gzio_read): Likewise.
7472 (grub_zlib_decompress): Likewise.
7473 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
7474 Accept partial and non-virtual mounts.
7475 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
7476 avoid receiving /dev/dm-X as device.
7477 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
7478 Handle bind and partial mounts.
7479 * grub-core/lib/crc.c: New file.
7480 * include/grub/deflate.h: Likewise.
7481 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
7482 proto.
7483 * include/grub/lib/crc.h: New file.
7484
7485 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 Implement automatic module license checking according to new GNU
7488 guidelines.
7489
7490 * grub-core/kern/dl.c (grub_dl_check_license): New function.
7491 (grub_dl_load_core): Use grub_dl_check_license.
7492 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
7493 (GRUB_MOD_LICENSE): Likewise.
7494 (GRUB_MOD_DUAL_LICENSE): Likewise.
7495 All modules updated.
7496
7497 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
7498
7499 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
7500 reserved_first_sector to 1. btrfs reserves plenty of space for boot
7501 loaders.
7502 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
7503
7504 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7505
7506 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
7507
7508 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * util/grub-fstest.c (read_file): Report GRUB error if file opening
7511 failed.
7512
7513 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * grub-core/kern/file.c (grub_file_open): Don't take into account the
7516 parenthesis in the middle of the filename.
7517
7518 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
7521 rather than trying to put initrd way too high.
7522 Reported by: Ryan Lortie <desrt@desrt.ca>
7523
7524 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
7527 improperly removed string.
7528
7529 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
7532 is_disk.
7533 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
7534 (open_device) Likewise.
7535 (grub_util_biosdisk_close): Likewise.
7536 Reported by: Mark Korenberg.
7537
7538 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
7539
7540 * util/grub-mkconfig_lib.in: Add missing quotes.
7541
7542 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
7543
7544 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
7545 is NULL.
7546
7547 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 Dynamically count the number of lines for the lower banner.
7550
7551 * grub-core/normal/menu_entry.c (per_term_screen): New member
7552 num_entries.
7553 (print_down): Use num_entries.
7554 (update_screen): Likewise.
7555 (grub_menu_entry_run): Set num_entries.
7556 * grub-core/normal/menu_text.c (menu_viewer_data): New member
7557 num_entries.
7558 (grub_print_message_indented): Move real part to ...
7559 (grub_print_message_indented_real): ... here. Additional argument
7560 dry_run.
7561 (draw_border): Additional argument num_entries.
7562 (print_message): Additional argument dry_run.
7563 (print_entries): Receive menu viewer data.
7564 (grub_menu_init_page): New argment num_entries.
7565 (menu_text_set_chosen_entry): Use num_entries.
7566 (grub_menu_try_text): Likewise.
7567 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
7568 All users updated.
7569 (grub_ucs4_count_lines): New function.
7570 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
7571 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
7572 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
7573 (grub_term_border_height): Likewise.
7574 (grub_term_num_entries): Likewise.
7575
7576 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
7579 Remove now unused string.
7580
7581 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
7582
7583 * docs/grub-dev.texi (Finding your way around): Update for 1.99
7584 build system.
7585 (Getting started): GRUB is developed in Bazaar now, not Subversion.
7586
7587 (Comment): Fix typo.
7588 (Getting started): General copy-editing.
7589 (Typical Development Experience): Likewise.
7590 (Error Handling): Likewise.
7591 (Video API): Likewise.
7592
7593 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
7594
7595 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
7596 throughout.
7597
7598 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7599
7600 * util/grub-mkimage.c (main): Handle special naming of yeeloong
7601 directory.
7602
7603 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
7604
7605 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
7606 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
7607 "development".
7608
7609 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7610
7611 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
7612 grub_strcpy since the lines aren't necessarily 0-terminated.
7613
7614 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
7617 root on legacy.
7618
7619 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * grub-core/commands/probe.c (options): Argument to set isn't optional.
7622 (GRUB_MOD_INIT): DEVICE isn't optional.
7623
7624 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7625
7626 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
7627 word on new line if it's too long anyway. Fixes a hang.
7628
7629 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
7632 const.
7633 * util/grub-setup.c (main): Reuse md device name if available.
7634 * util/raid.c (grub_util_raid_getmembers): Receive device name and
7635 not GRUB name as argument.
7636 Based on patch by: Florian Wagner <fwagner>.
7637
7638 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7641 Place mbi on low memory for better compatibility.
7642
7643 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7644
7645 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
7646
7647 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7648 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
7649
7650 * autogen.sh: Ensure that collate and ctype locale is C.
7651 * conf/Makefile.common: Likewise.
7652
7653 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 * grub-core/normal/menu.c: Add missing include.
7656
7657 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7658
7659 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
7660
7661 2011-04-08 Martin Zuther <mzuther@mzuther.de>
7662
7663 * util/grub-mkconfig.in: Ignore emacsen backup.
7664
7665 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
7668 on open.
7669 (grub_util_biosdisk_close): Likewise.
7670
7671 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7672
7673 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
7674 const attribute and use grub_isdigit.
7675
7676 2011-04-06 Andrey <dev_null@ukr.net>
7677
7678 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
7679 gcc warning.
7680
7681 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7682
7683 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
7684 useful grub_dprintf's.
7685
7686 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
7689
7690 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
7693
7694 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7695
7696 Output errors if theme loading failed.
7697
7698 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
7699 grub_gfxterm_fullscreen on error paths to ...
7700 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
7701 theme loading error.
7702
7703 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
7706 space for older compilers.
7707 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
7708
7709 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
7712 and report them as not RAID members since they are useless for GRUB.
7713 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7714
7715 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7716
7717 Increase LVM implementation robustness in order not to crash on
7718 configurations like pvmove. Previously code assumed that in some places
7719 only lvs or only pvs are used whereas it seems that they are used
7720 interchangeably.
7721
7722 * grub-core/disk/lvm.c (read_node): New function.
7723 (read_lv): Use read_node.
7724 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
7725 Match volumes only at the end when all lvs are found. Take both
7726 pvs (first) and lvs (second) into account.
7727 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
7728 mirror_* into node_*. All users updated.
7729 (grub_lvm_stripe): Merge this ...
7730 (grub_lvm_mirror): ... and this ...
7731 (grub_lvm_node): ... into this. All users updated.
7732
7733 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7734
7735 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
7736 of function to allow further scanning for LVMs.
7737
7738 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
7741 on failed seek as it breaks open fd reusage.
7742
7743 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * util/grub-install.in: Add a recommendation to use --recheck before
7746 reporting bugs.
7747
7748 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7749
7750 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
7751 are obtained.
7752
7753 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 GRUB developper manual based on existing Internals section and
7756 contributions by the various authors with active copyright assignment.
7757
7758 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
7759 * docs/font_char_metrics.png: New file.
7760 * docs/font_char_metrics.txt: Likewise.
7761 * docs/grub-dev.texi: Likewise.
7762 * docs/grub.texi (Internals): Move from here ...
7763 * docs/grub-dev.texi: ... here.
7764
7765 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
7766
7767 Store the loopback device as data on loopback grub_disk structures,
7768 rather than the file it points to. This fixes use of freed memory
7769 if an existing loopback device is replaced.
7770
7771 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
7772 disk->data, not dev->file.
7773 (grub_loopback_read): Adjust file assignment to match.
7774 Fixes Ubuntu bug #742967.
7775
7776 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
7777
7778 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
7779 when replacing an existing device.
7780
7781 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7782
7783 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
7784 memory corruptions.
7785
7786 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
7787 unsigned.
7788 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
7789 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
7790 (grub_jfs_read_inode): Likewise.
7791 (grub_jfs_opendir): Likewise. Remove now useless casts.
7792 (grub_jfs_getent): Likewise.
7793 Make ino a grub_uint32_t rather than int.
7794 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
7795 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
7796 division and module with bit operations.
7797 (grub_jfs_find_file): Make ino a grub_uint32_t.
7798 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
7799
7800 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
7801
7802 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
7803 warning. (This was in fact always initialised before use, but GCC
7804 wasn't smart enough to prove that.)
7805 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
7806
7807 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7808
7809 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
7810 stack alignment.
7811 (efi_wrap_1): Likewise.
7812 (efi_wrap_2): Likewise.
7813 (efi_wrap_3): Likewise.
7814 (efi_wrap_4): Likewise.
7815 (efi_wrap_5): Likewise.
7816 (efi_wrap_6): Likewise.
7817 (efi_wrap_10): Likewise.
7818 Based on information by: Red Hat/Peter Jones.
7819
7820 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
7821
7822 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
7823 set-but-not-used variable.
7824
7825 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
7826
7827 * docs/grub.texi (Simple configuration): Be more explicit about
7828 GRUB_DEFAULT, and add an example.
7829 Reported by: Leslie Rhorer.
7830
7831 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
7832
7833 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
7834 shell".
7835
7836 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
7837
7838 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
7839 * util/grub.d/20_linux_xen.in: Likewise.
7840
7841 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7842
7843 * util/grub.d/10_linux.in: Try alternative config filenames where
7844 we parse config file.
7845 * util/grub.d/20_linux_xen.in: Likewise.
7846
7847 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
7848
7849 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
7850 * util/grub.d/20_linux_xen.in: Likewise.
7851
7852 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 * grub-core/disk/raid.c (insert_array): Add few potentially
7855 useful grub_util_info.
7856 (grub_raid_register): Likewise.
7857
7858 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7859
7860 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
7861 Preserve partition number in mdadm code path.
7862
7863 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7864
7865 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
7866 few potentially useful grub_util_info.
7867
7868 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7869
7870 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
7871
7872 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
7873
7874 * docs/grub.texi (default): Use @example rather than nested
7875 itemized lists to avoid breaking gendocs.
7876
7877 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
7878
7879 * docs/grub.texi (Future): Update.
7880
7881 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
7882
7883 * docs/grub.texi (Environment): New chapter.
7884 (Changes from GRUB Legacy): Link to "Environment block" section for
7885 details of limitations.
7886 (Simple configuration): Likewise. Link to documentation of gfxmode
7887 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
7888 respectively.
7889 (Shell-like scripting): Note that normal variables are stored in the
7890 environment.
7891 (gettext): Link to documentation of lang and locale_dir.
7892 (list_env): New section.
7893 (load_env): New section.
7894 (save_env): New section.
7895
7896 (Reporting bugs): Fix typo.
7897
7898 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7899
7900 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
7901 the example.
7902
7903 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 * grub-core/term/at_keyboard.c (set_scancodes)
7906 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
7907
7908 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
7909
7910 * docs/grub.texi (Menu-specific commands): Remove some semantics
7911 that were true in GRUB Legacy but not in GRUB 2.
7912 (submenu): New section.
7913 (false): New section.
7914 (read): New section.
7915 (true): New section.
7916
7917 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
7918
7919 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
7920
7921 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
7922
7923 * docs/grub.texi (Simple configuration): Explain some of the
7924 current limitations of grub-mkconfig.
7925 Reported by: Leslie Rhorer.
7926
7927 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
7928
7929 Old macs search for boot.efi rather than for bootia32.efi.
7930
7931 * util/grub-install.in: Copy bootia32.efi to boot.efi.
7932 * util/grub-mkrescue.in: Likewise.
7933 Suggested by: Peter Jones.
7934
7935 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
7936
7937 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
7938
7939 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
7940
7941 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
7942 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
7943 (grub_lvm_mirror): New struct.
7944 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
7945 (grub_lvm_iterate): Iterate only visible volumes.
7946 (grub_lvm_read): Factor out to ..
7947 (read_lv): ... this. Support mirrors.
7948 (grub_lvm_read): New wrapper function.
7949 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
7950 stripped or mirrored.
7951
7952 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
7955
7956 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
7957
7958 * docs/grub.texi (loopback): New section.
7959
7960 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
7961
7962 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
7963 removed -p option.
7964
7965 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
7966
7967 * docs/grub.texi (BIOS installation): New section, partly based on
7968 previous text in other sections.
7969 (Installing GRUB using grub-install): Replace BIOS discussion with a
7970 cross-reference.
7971 (Images): Likewise.
7972
7973 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
7974
7975 * grub-core/kern/emu/hostdisk.c (find_partition_start)
7976 [HAVE_DIOCGDINFO]: Add safety checks.
7977
7978 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
7979
7980 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
7981 per default compiled in kernel and prior to 8.0 isn't shipped at all.
7982
7983 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
7984
7985 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
7986 real_sb->size is zero (e.g. RAID-0), get the disk size from
7987 real_sb->data_size instead.
7988 Fixes Ubuntu bug #743136.
7989
7990 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
7991
7992 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
7993 printf clauses for printing size and start.
7994
7995 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
7998 Reported and tested by: Timothy Nikkel.
7999
8000 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8001
8002 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
8003 (dirty_region_add_real): ... this.
8004 (dirty_region_add): Don't discard margin refresh when performing
8005 scheduled repaint.
8006
8007 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 * grub-core/lib/relocator.c (allocate_regstart)
8010 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
8011 terminals are capabple of malloc-free operation.
8012 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8013 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8014
8015 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
8016
8017 * util/grub-setup.c: Copy the partition table zone if floppy support
8018 is disabled, even if no partition table is found.
8019
8020 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
8021 during POST if an invalid partition table is contained in the PBR
8022 of the active partition when GRUB is installed to a partition.
8023
8024 2011-03-28 Colin Watson <cjwatson@debian.org>
8025
8026 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
8027 comment.
8028
8029 2011-03-28 Colin Watson <cjwatson@debian.org>
8030
8031 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
8032 to be specific about what kind of RAID device we're scanning for.
8033
8034 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
8035
8036 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
8037 return freed string.
8038
8039 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
8042
8043 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8044
8045 Use libgeom on FreeBSD to detect partitions.
8046
8047 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
8048 (grub-mkrelpath): Likewise.
8049 (grub-script-check): Likewise.
8050 (grub-editenv): Likewise.
8051 (grub-mkpasswd-pbkdf2): Likewise.
8052 (grub-fstest): Likewise.
8053 (grub-mkfont): Likewise.
8054 (grub-mkdevicemap): Likewise.
8055 (grub-probe): Likewise.
8056 (grub-setup): Likewise.
8057 (grub-ofpathname): Likewise.
8058 (grub-mklayout): Likewise.
8059 (example_unit_test): Likewise.
8060 (grub-menulst2cfg): Likewise.
8061 * grub-core/Makefile.core.def (grub-emu): Likewise.
8062 (grub-emu-lite): Likewise.
8063 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
8064 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
8065 define HAVE_DIOCGDINFO.
8066 (follow_geom_up) [FreeBSD]: New function.
8067 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
8068 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
8069 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
8070 unconditionally of HAVE_DIOCGDINFO.
8071
8072 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8073
8074 Fix FreeBSD compilation problem.
8075
8076 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
8077 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
8078
8079 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
8080
8081 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
8082 Switch back to page zero before loading a kernel, since some kernel
8083 drivers expect that.
8084 Thanks to: Felix Kuehling.
8085
8086 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8087
8088 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
8089 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
8090 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
8091
8092 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
8095 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
8096
8097 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8098
8099 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
8100 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
8101 malloc is disabled.
8102
8103 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
8106 for modules headers when counting the needed allocation size.
8107
8108 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
8111 if no ASCII character is found to prevent crash.
8112
8113 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
8114
8115 * grub-core/video/bitmap.c (match_extension): Ignore case.
8116
8117 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8118
8119 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
8120
8121 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8122
8123 * grub-core/script/parser.y: Declare "time" as valid argument.
8124
8125 2011-03-23 Peter Jones <pjones@redhat.com>
8126
8127 Fix incorrect assert failure reporting.
8128
8129 * grub-core/tests/example_functional_test.c (example_test): Add
8130 a failure comment.
8131 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
8132 (failure_start): ...this. Check that malloc succeeded.
8133 Don't call xvasprintf. Return failure struct.
8134 (failure_append_vtext): New function.
8135 (failure_append_text): Likewise.
8136 (add_failure): Likewise.
8137 (grub_test_assert_helper): Likewise.
8138 * include/grub/test.h (grub_test_assert_helper): New declaration.
8139 (grub_test_assert): Macro rewritten.
8140
8141 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8142
8143 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
8144
8145 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8146
8147 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
8148
8149 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
8152 into GRUB-style one.
8153
8154 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
8157 error and not grub_errno.
8158 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
8159
8160 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8161
8162 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
8163 GRUB_USB_SPEED_NONE in case of failure and not the error code.
8164
8165 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8166
8167 * grub-core/efiemu/i386/pc/cfgtables.c
8168 (grub_machine_efiemu_init_tables): Make declaration a prototype.
8169 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
8170 (grub_xnu_unlock): Likewise.
8171 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
8172
8173 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8174
8175 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
8176 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
8177 * grub-core/commands/hashsum.c (aliases): Likewise.
8178 * grub-core/commands/setpci.c (pci_registers): Likewise.
8179 * grub-core/disk/usbms.c (attach_hook): Likewise.
8180 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
8181 (zio_checksum_table): Likewise.
8182 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
8183 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
8184 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
8185 * grub-core/lib/relocator.c (leftovers): Likewise.
8186 (extra_blocks): Likewise.
8187 * grub-core/loader/i386/bsd.c (relocator): Likewise.
8188 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
8189 (modules_last): Likewise.
8190 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
8191 (devices): Likewise.
8192 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
8193 (modules_last): Likewise.
8194 * grub-core/normal/auth.c (users): Likewise.
8195 * grub-core/normal/context.c (initial_menu): Likewise.
8196 (current_menu): Likewise.
8197 * grub-core/normal/crypto.c (crypto_specs): Likewise.
8198 * grub-core/term/serial.c (grub_serial_ports): Likewise.
8199 (grub_serial_terminfo_input_template): Likewise.
8200 (grub_serial_terminfo_output_template): Likewise.
8201 (grub_serial_terminfo_input): Likewise.
8202 (grub_serial_terminfo_output): Likewise.
8203 (registered): Likewise.
8204 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
8205
8206 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
8209 grub_video_mode_type_t.
8210 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
8211 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
8212 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
8213
8214 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8215
8216 * util/grub-install.in: Correct the x86-64 name as x86_64.
8217
8218 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
8219
8220 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
8221 initial chunk read from the kernel always includes GRUB's multiboot
8222 header, which is now outside the first sector.
8223
8224 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8225
8226 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
8227 cached mmap_size, so that this works correctly when called multiple
8228 times.
8229 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
8230
8231 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8232
8233 * docs/grub.texi (Simple configuration): Tidy up formatting.
8234
8235 2011-03-07 Szymon Janc <szymon@janc.net.pl>
8236
8237 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
8238 Set-but-not-used variable removed.
8239
8240 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8241
8242 Workaround yet another IEEE1275 bug.
8243
8244 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8245 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
8246 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
8247 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
8248 is set.
8249 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8250 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
8251
8252 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8253
8254 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
8255 error.
8256
8257 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
8258
8259 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
8260 empty, since in that case we can only generate either nothing or a
8261 syntactically invalid configuration file.
8262 Reported by: Michal Suchanek. Fixes Debian bug #612898.
8263
8264 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8265
8266 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
8267 (Making a GRUB bootable CD-ROM): Likewise.
8268 (Invoking grub-mkrescue): New section.
8269 Reported by: Yann Dirson. Fixes Debian bug #612585.
8270
8271 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8272
8273 * util/grub-install.in: Remove unnecessary brackets from tr
8274 arguments.
8275 * util/grub.d/10_hurd.in: Likewise.
8276 * util/grub.d/10_kfreebsd.in: Likewise.
8277 * util/grub.d/10_linux.in: Likewise.
8278 * util/grub.d/20_linux_xen.in: Likewise.
8279 Reported by: Jamie Heilman. Fixes Debian bug #612564.
8280
8281 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
8282
8283 * include/grub/file.h (not_easly_seekable): Rename to ...
8284 (not_easily_seekable): ... this. Update all users.
8285
8286 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
8287
8288 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
8289 grub-mkrescue.
8290
8291 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8292
8293 * util/grub-mkimage.c (generate_image): Refuse to create the images
8294 bigger than the actual flash (512K) in Loongson machines. 512K is also
8295 the biggest chip supported by them.
8296
8297 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8298
8299 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
8300
8301 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
8302
8303 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
8304 super_offset field.
8305
8306 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8307
8308 * util/grub-install.in: Ignore install device on platforms
8309 where it doesn't make sense. Always use UUIDs except on pc, efi and
8310 sparc64.
8311 Reported by: Daniel Kahn Gillmor.
8312
8313 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8314
8315 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
8316
8317 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8318
8319 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
8320 (iterate_real): Don't rely on partition being non-NULL.
8321
8322 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8323
8324 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
8325 supported platforms. Put a compile time assert for this rather than
8326 generate a warning with 32-bit shift.
8327
8328 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8329
8330 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
8331 logical expression more readable.
8332
8333 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8334
8335 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
8336 even if some elements have a name.
8337 Reported by: Alexander GQ Gerasiov.
8338
8339 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8340
8341 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
8342 path unreadable if `grub-probe -t abstraction' fails, for example if
8343 memberlist fails on an LVM volume group.
8344 Reported by: Darius Jahandarie.
8345
8346 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8347
8348 * docs/grub.texi (Simple configuration): Document
8349 GRUB_PRELOAD_MODULES.
8350
8351 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
8352
8353 * .bzrignore: Remove nonexistent grub-pbkdf2.
8354
8355 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 * configure.ac: Bump version to 1.99~rc1.
8358
8359 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
8362 for safety.
8363
8364 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8365
8366 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
8367 module.
8368
8369 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8370
8371 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
8372
8373 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
8376 diskdevid.
8377
8378 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8379
8380 Fix compilation on cygwin.
8381
8382 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
8383 -R .drectve on cygwin.
8384 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
8385 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
8386 (COND_CYGWIN): New condition.
8387 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
8388 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
8389 not @TARGET_OBJ2ELF@.
8390 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
8391 type to determine whether aux is to be used.
8392
8393 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8394
8395 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
8396 realpath'ed device string.
8397 Handle floppy (somewhat).
8398 Issue error in unknown case rather than garbage.
8399 Reported by: Axel Beckert.
8400
8401 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8402
8403 * util/grub.d/00_header.in (load_video): Handle the case when no video
8404 drivers available.
8405 Thanks to: Axel Beckert.
8406
8407 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8408
8409 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
8410 variable. Fixes problem on big endian platforms.
8411
8412 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
8415 It doesn't work well there.
8416
8417 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
8420 warning.
8421 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
8422 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
8423 counter.
8424
8425 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8426
8427 Use alias->path rather than buggy "canon".
8428
8429 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
8430 (ofdisk_hash_add): New argument curcan. All users updated.
8431
8432 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8433
8434 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
8435
8436 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8437
8438 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
8439 loadmask before doing any calculations. Use correct type for offset.
8440 (grub_linux_load64): Likewise.
8441
8442 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8443
8444 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
8445 with NULL.
8446 (console_grub_equivalences_unshift): Likewise.
8447 Reported by: Daniel Dehennin.
8448
8449 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
8452 (set_env_limn_ro): Likewise.
8453 (GRUB_MOD_INIT): Likewise.
8454 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
8455 ARRAY_SIZE while on it.
8456 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
8457 * grub-core/normal/context.c (grub_env_export): Move from here ...
8458 * grub-core/kern/env.c (grub_env_export): ... here.
8459 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
8460 prefix.
8461 * grub-core/kern/main.c (grub_main): Export root and prefix.
8462 * include/grub/env.h (grub_env_export): Export.
8463 Reported by: Seth Goldberg.
8464
8465 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8468 Take into account space used by ELF sections and multiboot palette.
8469 Reported by: Grégoire Sutre.
8470
8471 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8472
8473 * BUGS: New file.
8474
8475 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 Pass more appropriate video id to Linux.
8478
8479 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
8480 grub_video_get_driver_id and variable gfxpayloadforcelfb to
8481 fill have_vga.
8482 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
8483 shift params->lfb_size.
8484 * include/grub/i386/linux.h: Make an enume out of have_vga values.
8485
8486 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8487
8488 * util/grub-menulst2cfg.c: Add missing include of misc.h.
8489
8490 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8491
8492 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
8493 separator and pass bootpath/devid even if only one of them is available.
8494 Reported by: Seth Goldberg.
8495
8496 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8497
8498 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
8499 implementations bug on them.
8500
8501 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
8502 memory.
8503 (filter_memory_map): Likewise.
8504
8505 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
8508 Reported by: nebuchadnezzar.
8509
8510 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
8513 Reported by: nebuchadnezzar.
8514
8515 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8516
8517 Submenu default support.
8518
8519 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
8520 auto_boot. All users updated.
8521 Declared static.
8522 Handle chosen and default with submenus.
8523 (grub_menu_execute_with_fallback): Declared static.
8524 Don't notify failure if autobooted. Upper level does it.
8525 (menuentry_eq): New function.
8526 (get_entry_number): Use menuentry_eq.
8527 (show_menu): New parameter "autobooted". All users updated.
8528 (grub_show_menu): Likewise.
8529 * include/grub/normal.h (grub_show_menu): Likewise.
8530 * include/grub/menu.h (grub_menu_execute_entry): Removed.
8531 (grub_menu_execute_with_fallback): Likewise.
8532
8533 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 * util/grub-mklayout.c (usage): Update help text.
8536
8537 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8538
8539 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
8540
8541 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 * util/grub-menulst2cfg.c (main): Trim the line.
8544
8545 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
8548 (grub_machine_init): Don't check amount of low memory as reportedly
8549 INT 12h can be broken and if low memory is too low we wouldn't have
8550 gotten into grub_machine_init anyway.
8551
8552 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8553
8554 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
8555 (grub_machine_mmap_iterate): Take low memory into account
8556
8557 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
8560 badfs.
8561 Reported by: TiCPU.
8562
8563 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8564
8565 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
8566 members errors.
8567
8568 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
8569
8570 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
8571 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
8572
8573 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
8574
8575 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
8576 openbsd and netbsd types being in part_bsd module.
8577
8578 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8579
8580 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
8581 (_FILE_OFFSET_BITS): Likewise.
8582 Reported by: Seth Goldberg.
8583
8584 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8585
8586 * configure.ac: Check for libdevmapper header.
8587
8588 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
8591 avoid aliasing.
8592 (fzap_lookup): Likewise.
8593 (dnode_get): Likewise.
8594 (make_mdn): Likewise.
8595 (zfs_mount): Likewise.
8596 (fzap_iterate): Use temporary pointer to avoid aliasing.
8597 (grub_zfs_read): Likewise.
8598 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
8599 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
8600 pointers to avoid aliasing.
8601 (grub_cmd_xnu_kernel64): Likewise.
8602 (grub_xnu_load_driver): Likewise.
8603
8604 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8605
8606 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
8607 aliasing warning.
8608 (grub_cmd_terminal_output): Likewise.
8609 Reported and tested by: Grégoire Sutre.
8610
8611 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8612
8613 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
8614 warning.
8615 Reported and tested by: Grégoire Sutre.
8616
8617 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8618
8619 * configure.ac: Do CPU substitution even if it's specified explicitly.
8620 Reported and tested by: Alain Greppin.
8621
8622 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8623
8624 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
8625 Reported and tested by: Alain Greppin.
8626
8627 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8628
8629 Satisfy some bison versions need for inttypes.h.
8630
8631 * grub-core/lib/posix_wrap/inttypes.h: New file.
8632 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
8633 (int16_t): Likewise.
8634 (int32_t): Likewise.
8635 (int64_t): Likewise.
8636 Reported and tested by: Alain Greppin.
8637
8638 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8639
8640 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
8641 Silence spurious warning.
8642 Reported and tested by: Alain Greppin.
8643
8644 2011-01-07 Szymon Janc <szymon@janc.net.pl>
8645
8646 * docs/grub.texi (Support automatic decompression): Update with xz
8647 decompression support.
8648
8649 2011-01-07 Szymon Janc <szymon@janc.net.pl>
8650
8651 Improve loaders' kernel command line handling.
8652
8653 * grub-core/lib/cmdline.c: New file.
8654 * include/grub/lib/cmdline.h: Likewise.
8655 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
8656 grub_create_loader_cmdline to create kernel command line.
8657 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8658 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
8659 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
8660 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
8661 (linux): Add lib/cmdline.c on common.
8662
8663 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
8666 inopos might be unaligned.
8667
8668 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
8671 endian transformations.
8672 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8673 Based on report by: Doug Nazar.
8674
8675 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
8676
8677 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
8678 array->members[i].start_sector.
8679 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8680
8681 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
8684 Reported and tested by: Grégoire Sutre.
8685
8686 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
8687
8688 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
8689 avoid causing test failures by clearing the screen.
8690
8691 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
8692
8693 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
8694 Fix prefix check to handle the case where dir ends with a slash
8695 (most significantly, "/" itself).
8696 Reported by: Michael Vogt.
8697
8698 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8699
8700 Run terminfo_cls on initing terminfo output to clear the screen and
8701 move the cursor to (0,0).
8702
8703 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
8704 Call grub_terminfo_output_init.
8705 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
8706 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
8707 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
8708
8709 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8710
8711 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
8712 only when needed.
8713
8714 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
8717 CTRL.
8718
8719 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8720
8721 The E820 type 5 is BADRAM, not EXEC_CODE.
8722
8723 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
8724 (GRUB_E820_BADRAM): New define.
8725 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
8726 into reserved. Propagate BADRAM.
8727 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
8728 (GRUB_E820_BADRAM): New define.
8729
8730 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8731
8732 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
8733 Ignore the memory post-4G.
8734 (grub_relocator_firmware_alloc_region): Additional debug statement.
8735
8736 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8737
8738 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
8739 names.
8740 Reported by: David Pravec.
8741
8742 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8743
8744 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
8745 BIOSes.
8746
8747 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8748
8749 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
8750 Prevent overflow.
8751 (grub_reed_solomon_recover): Likewise.
8752
8753 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8754
8755 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
8756
8757 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8758
8759 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
8760 variable.
8761
8762 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
8763
8764 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
8765 descriptions of extract_legacy_entries_source and
8766 extract_legacy_entries_configfile.
8767 Reported by: Seung Soo, Ha.
8768
8769 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
8770
8771 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
8772 on devices that do not implement function 0.
8773
8774 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
8775
8776 * grub-core/fs/hfsplus.c: Make parent unsigned.
8777 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
8778 overflows.
8779 (grub_hfsplus_cmp_extkey): Likewise
8780
8781 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8782
8783 * util/grub-install.in: Correctly use bootloader_id and not
8784 GRUB_DISTRIBUTOR on efibootmgr line.
8785
8786 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8787
8788 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
8789
8790 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
8791
8792 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
8793 Xen and reorder menu item wording to make it clearer that this entry
8794 will launch Xen. Print separate messages when loading Xen and
8795 Linux.
8796
8797 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
8800 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
8801 loop in case of incorrect amiga partmap.
8802
8803 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
8806 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
8807 Reported by:EHeM.
8808
8809 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
8812 spurious warning.
8813 Reported by: crocket
8814
8815 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
8818 Preload EFIemu.
8819 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
8820
8821 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8822
8823 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
8824 is loaded
8825 (grub_cmd_xnu_kextdir): Likewise.
8826 (grub_cmd_xnu_splash): Likewise.
8827
8828 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8829
8830 Avoid using Reed-Solomon with 0 redundancy.
8831
8832 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
8833 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
8834 or 0 redundancy.
8835 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
8836 (grub_reed_solomon_recover): Likewise.
8837
8838 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 Don't use disk subsystem in freebsd_boot.
8841
8842 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
8843 (freebsd_biosdev): Likewise.
8844 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
8845 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
8846
8847 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 Handling of files of unknown size is currently limited. They can't be
8850 used e.g. for initrd or modules. Moreover gzip handling of not
8851 easily seekable files is buggy. Disable unknown file size for now. May
8852 be inefficient but works.
8853
8854 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
8855 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8856
8857 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
8858
8859 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
8860 floppy probe.
8861
8862 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
8863
8864 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
8865
8866 2010-12-25 Shea Levy <shlevy>
8867
8868 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
8869
8870 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
8873 Windows Server 2008.
8874 Reported by: Devin Giddings.
8875
8876 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
8879 writing an error message because of async power management.
8880 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
8881 (grub_reboot): Likewise.
8882
8883 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
8884
8885 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
8886 keep unit tests from failing when they shouldn't.
8887
8888 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
8889
8890 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
8891 previous patch increased the size of the RS code by 20 bytes (at
8892 least with gcc-4.4), so increase this by 20 bytes to match.
8893 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
8894
8895 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
8896
8897 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
8898 scratch area. Make sure to initialise chosen in standalone mode as
8899 well as non-standalone.
8900 Reported by: Robert Hooker and Andy Whitcroft.
8901 Tested by: Andy Whitcroft.
8902
8903 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
8904
8905 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
8906 constructing a new unescaped string and passing it to grub_xputs in
8907 one go, rather than passing characters to grub_printf one at a time.
8908
8909 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
8910
8911 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
8912 initialising utf16.
8913
8914 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
8915
8916 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
8917 comment. Add an extra layer of quotation, requiring the output of
8918 this function to be used in a printf format string.
8919 (gettext_printf): New function.
8920 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
8921 Extract translatable strings from here-documents and use a temporary
8922 variable instead, so that xgettext can find them.
8923 * util/grub.d/10_kfreebsd.in: Likewise.
8924 * util/grub.d/10_linux.in: Likewise.
8925 * util/grub.d/20_linux_xen.in: Likewise.
8926
8927 * po/grub.d.sed: New file.
8928 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
8929 arguments. Set c-format flags on all strings extracted from
8930 util/grub.d/ (xgettext refuses to include these itself for strings
8931 it extracted from a shell file, but these really are c-format).
8932
8933 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8934
8935 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
8936 Avoid next pointing to nowhere.
8937
8938 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
8939
8940 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
8941 rather than assuming than rootblock is exactly in the middle.
8942 (grub_affs_label): Likewise.
8943
8944 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
8947 reserved_first_sector to 0.
8948 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
8949 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
8950 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
8951
8952 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
8953
8954 Fix handling of UTF-16 UDF labels.
8955
8956 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
8957 (read_string): .. here.
8958 (grub_udf_label): Use read_string.
8959
8960 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
8961
8962 * grub-core/normal/menu_entry.c (run): Execute commands from menu
8963 editor under argument scope.
8964 Reported by: Jordan Uggla
8965
8966 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
8969
8970 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
8971
8972 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
8973 line, and other keys scroll an entire page (previous handling was
8974 for \r and \n to scroll a page and other keys to scroll two lines).
8975
8976 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
8977
8978 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8979 Set ptrdest to correct get_physical_target_address rather than
8980 incorrect get_virtual_current_address.
8981
8982 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
8983
8984 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
8985 correct cat to grub_uint8_t * rather than grub_uint32_t *.
8986
8987 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
8988
8989 * .bzrignore: Ignore grub-core/rs_decoder.S.
8990
8991 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
8992
8993 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
8994 .mo/.mo.gz opening sequence to ...
8995 (grub_mofile_open_lang): ... here.
8996 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
8997 * util/grub.d/00_header.in (grub_lang): Include country part of
8998 locale.
8999 Reported by: Mario Limonciello.
9000
9001 2010-12-09 Robert Millan <rmh@gnu.org>
9002
9003 * NEWS: Document addition of ZFS support.
9004
9005 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
9006
9007 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
9008 rather than `/ 2', as the latter requires -Wa,--divide which would
9009 require bumping our minimum binutils version.
9010
9011 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
9012
9013 * util/grub-script-check.c (main): Print script line number on
9014 error.
9015
9016 2010-12-01 Robert Millan <rmh@gnu.org>
9017
9018 * grub-core/fs/zfs/zfs.c: New file.
9019 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
9020 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
9021 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
9022 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9023
9024 * include/grub/zfs/dmu.h: Likewise.
9025 * include/grub/zfs/dmu_objset.h: Likewise.
9026 * include/grub/zfs/dnode.h: Likewise.
9027 * include/grub/zfs/dsl_dataset.h: Likewise.
9028 * include/grub/zfs/dsl_dir.h: Likewise.
9029 * include/grub/zfs/sa_impl.h: Likewise.
9030 * include/grub/zfs/spa.h: Likewise.
9031 * include/grub/zfs/uberblock_impl.h: Likewise.
9032 * include/grub/zfs/vdev_impl.h: Likewise.
9033 * include/grub/zfs/zap_impl.h: Likewise.
9034 * include/grub/zfs/zap_leaf.h: Likewise.
9035 * include/grub/zfs/zfs.h: Likewise.
9036 * include/grub/zfs/zfs_acl.h: Likewise.
9037 * include/grub/zfs/zfs_znode.h: Likewise.
9038 * include/grub/zfs/zil.h: Likewise.
9039 * include/grub/zfs/zio.h: Likewise.
9040 * include/grub/zfs/zio_checksum.h: Likewise.
9041
9042 * Makefile.util.def: Build ZFS into libgrubmods.
9043 * grub-core/Makefile.core.def: Build zfs.mod.
9044
9045 2010-11-30 Szymon Janc <szymon@janc.net.pl>
9046
9047 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
9048 variable.
9049 * grub-core/commands/wildcard.c (match_files): Likewise.
9050
9051 2010-11-30 Robert Millan <rmh@gnu.org>
9052
9053 * grub-core/loader/i386/bsd.c
9054 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
9055 whether kernel is loaded using grub_loader_is_loaded(), rather
9056 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
9057 certain error conditions.
9058
9059 2010-11-30 Robert Millan <rmh@gnu.org>
9060
9061 * grub-core/commands/echo.c: Include `<grub/term.h>'.
9062 (grub_cmd_echo): Call grub_refresh() after printing a message.
9063
9064 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 Avoid using tricks for initialising endian variables.
9067
9068 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
9069 Make const.
9070 (GRUB_MOD_INIT): Don't byte-swap.
9071 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9072 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
9073 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
9074 (grub_swap_bytes32_compile_time): Likewise.
9075 (grub_cpu_to_le32_compile_time): Likewise.
9076 (grub_cpu_to_le16_compile_time): Likewise.
9077
9078 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * util/grub-setup.c (setup): Stop recommending --force. People who
9081 understand the dangers of blocklists are able to find this option
9082 anyway and the ones who don't shouldn't use it anyway.
9083
9084 2010-11-26 Robert Millan <rmh@gnu.org>
9085
9086 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
9087 Update all users.
9088
9089 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
9090
9091 Fix LVM-on-RAID probing.
9092
9093 * util/grub-probe.c (probe): Remember which disk was detected as
9094 RAID (perhaps an LVM physical volume). Use that disk's raidname
9095 rather than that of the top-level disk.
9096
9097 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
9098
9099 Fix cmdline argument quotes for setparams command of menuentry
9100 definitions.
9101
9102 * grub-core/commands/menuentry.c (setparams_prefix): Use single
9103 quotes for arguments.
9104 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
9105 grub_strchrsub function instead.
9106
9107 * include/grub/misc.h (grub_strchrsub): New function.
9108
9109 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9110
9111 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
9112 effort by skipping "." and ".." entries up-front.
9113 Suggested by: Michael Lazarev.
9114
9115 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9116
9117 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
9118 ldflags to ldadd, to fix link line ordering.
9119 (none_decompress): Likewise.
9120
9121 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9122
9123 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
9124 platforms.
9125 (grub-emu-lite): Remove kern/emu/cache.S.
9126
9127 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9128
9129 * util/deviceiter.c (compare_devices): If the by-id link for a
9130 device couldn't be resolved, fall back to sorting by the by-id link
9131 rather than segfaulting.
9132 Reported and tested by: Daniel Mierswa.
9133
9134 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9135
9136 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
9137 ldflags, to fix link line ordering.
9138
9139 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9140
9141 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
9142 linkers are picky about this.
9143
9144 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9145
9146 * grub-core/Makefile.am (command.lst): Adjust sed expression
9147 ordering so that extended and priority commands aren't treated as
9148 ordinary commands.
9149
9150 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9151
9152 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9153 Remove byte-swapping function calls, which are not valid in
9154 structure initialisers.
9155 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
9156 non-const.
9157 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
9158 grub_gpt_partition_type_bios_boot.
9159
9160 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9161
9162 Fix test program build on GNU/kFreeBSD.
9163
9164 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
9165 $(LIBNVPAIR)' library dependencies.
9166
9167 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9168
9169 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
9170
9171 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9172
9173 * util/grub-install.in: Remove excessive quoting that broke
9174 installations to RAID devices.
9175
9176 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9177
9178 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
9179 bootloader version instead of 0.
9180
9181 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9182
9183 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
9184 warning.
9185
9186 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9187
9188 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
9189 retrieve the metadat sector if size isn't known.
9190 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9191
9192 2010-11-18 Robert Millan <rmh@gnu.org>
9193
9194 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
9195 with grub_memcmp().
9196
9197 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
9200 arrow.
9201 Reported by: Jordan Uggla.
9202
9203 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9204
9205 Make better UTF compliant.
9206
9207 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
9208 sequences as incorrect.
9209 (grub_is_valid_utf8): Likewise.
9210 (grub_utf8_to_ucs4): Likewise.
9211 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
9212 (grub_ucs4_to_utf8_alloc): Likewise.
9213 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
9214
9215 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 Make legacy_source behave like source.
9218
9219 * grub-core/commands/legacycfg.c (legacy_file): Don't call
9220 grub_show_menu.
9221 (grub_cmd_legacy_source): Call grub_show_menu if needed.
9222
9223 2010-11-16 Colin Watson <cjwatson@debian.org>
9224
9225 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
9226 (-Wunused implies -Wunused-parameter, but not vice versa).
9227
9228 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
9229
9230 * configure.ac: Make error messages less confusing by testing for
9231 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
9232 accepted, but produces a diagnostic if something else is wrong).
9233
9234 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9235
9236 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
9237 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
9238 (now unused).
9239 (grub_keyboard_controller_init)
9240 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
9241 read the initial state since controller isn't inited yet.
9242
9243 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9244
9245 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
9246 allocate_regbeg may need to create new chunk header.
9247
9248 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 Fix quoting in legacy parser.
9251
9252 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
9253 single quotes.
9254 (grub_legacy_parse): Likewise.
9255 Reported by: Jordan Uggla.
9256 Tested by: Jordan Uggla.
9257
9258 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 Don't add -lgcc on i386 and x86_64.
9261
9262 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
9263 * conf/Makefile.common (LDADD_KERNEL): Likewise.
9264 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
9265
9266 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 * configure.ac: Add -Wno-trampolines when supported.
9269
9270 2010-11-14 Modestas Vainius <modax@debian.org>
9271
9272 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
9273 fakeraid.
9274
9275 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9276
9277 Add generic logical block size support for UDF.
9278
9279 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
9280 (GRUB_UDF_BLKSZ): Removed.
9281 (struct grub_udf_data): New field "lbshift" to hold the logical block
9282 size of the file system in log2 format. All users updated.
9283 (sblocklist): Change type to unsigned.
9284 (grub_udf_mount): Change type of "sblklist" to unsigned.
9285 Move AVDP search before VRS recognition, because the latter requires
9286 knowledge of the logical block size, which is detected during the
9287 former.
9288 Detect and validate logical block size during AVDP search, adding
9289 support for block sizes 512, 1024 and 4096.
9290 Make VRS recognition independent of block size.
9291
9292 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9293
9294 Properly handle deleted files on UDF.
9295
9296 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
9297 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
9298 set.
9299
9300 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9301
9302 Support reading files larger than 2 GiB.
9303
9304 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
9305 "offset" to grub_off_t.
9306 (grub_udf_read_file): Likewise for parameter "pos".
9307
9308 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
9311 unavailable.
9312 (Simple configuration): Refer to Changes from GRUB Legacy about
9313 save_env availability.
9314
9315 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9316
9317 * util/grub-install.in: Ignore empty partition table detection
9318 instead of trying to include part_ module.
9319
9320 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9321
9322 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
9323 LVM on RAID support.
9324
9325 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9326
9327 Properly define WORDS_BIGENDIAN in wrapped environments.
9328
9329 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
9330 definition.
9331 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
9332
9333 Reported by: Manoel Rebelo Abranches.
9334 Tested by: Manoel Rebelo Abranches.
9335
9336 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 * util/grub-mkconfig.in: Fix quoting.
9339
9340 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9341
9342 Support big ext2 files.
9343
9344 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
9345 (grub_ext2_read_block): Support triple indirect blocks.
9346 (grub_ext2_read_file): Use 64-bit types and read size_high.
9347 (grub_ext2_open): Read size_high.
9348 Reported by: Ximin Luo.
9349 Tested by: Manoel Rebelo Abranches.
9350
9351 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9352
9353 * util/grub-install.in: Handle filenames containing spaces.
9354 Reported by: Jordan Uggla.
9355 Tested by: Jordan Uggla.
9356
9357 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9358
9359 * util/grub-mkconfig.in (grub_script_check): New variable.
9360 Use grub_script_check instead of grub-script-check.
9361 Reported by: Barry Jackson.
9362
9363 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 * docs/grub.texi (menu): Correct the order.
9366 Reported by: D. Hugh Redelmeier.
9367
9368 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9369
9370 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
9371 jump.
9372
9373 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
9374
9375 * include/grub/elfload.h (grub_elf32_size): New parameter.
9376 All users updated.
9377 Return maximum segments alignment.
9378 (grub_elf64_size): Likewise.
9379 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
9380 Return maximum segments alignment.
9381 (grub_elf64_size): Likewise.
9382 * grub-core/loader/powerpc/ieee1275/linux.c:
9383 (grub_linux_claimmap_iterate): New function. Uses the
9384 "available" property in the "memory" node for memory allocation
9385 for kernel in the PowerPC loader.
9386 (grub_linux_load32): Correctly find linux entry point offset.
9387 (grub_linux_load64): Likewise.
9388
9389 2010-11-07 Robert Millan <rmh@gnu.org>
9390
9391 On mips-yeeloong, build with -march=loongson2f when this flag is
9392 available (GCC >= 4.4).
9393 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
9394 `-march=mips3'.
9395 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
9396 or otherwise add -march=mips3.
9397
9398 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
9399
9400 Suppress shell expansion on echo '*' and echo "*" like cases.
9401 Reported by: Jordan Uggla.
9402
9403 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9404 string arguments before shell expansion.
9405 * tests/grub_cmd_echo.in: New testcases.
9406
9407 2010-11-07 Robert Millan <rmh@gnu.org>
9408
9409 * conf/mips-qemu-mips.rmk: Remove stale file from previous
9410 transition.
9411
9412 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * grub-core/kern/emu/hostdisk.c
9415 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
9416
9417 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9418
9419 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
9420 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
9421 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
9422
9423 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
9426
9427 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 * util/grub-install.in: Replace useless recomendation to pass
9430 --modules with a recomendation to report a bug.
9431
9432 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9433
9434 Properly register serial terminfo.
9435 Reported by: Jordan Uggla
9436
9437 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
9438 const.
9439 (grub_serial_terminfo_output_template): Likewise.
9440 (grub_cmd_serial): Register "serial" with terminfo.
9441 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
9442 grub_serial_terminfo_output.
9443
9444 2010-11-05 Robert Millan <rmh@gnu.org>
9445
9446 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
9447 needed).
9448
9449 2010-11-05 Robert Millan <rmh@gnu.org>
9450
9451 On Yeeloong, pass machine type information to Linux.
9452
9453 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
9454 (LOONGSON_MACHTYPE): New macro, set to
9455 "machtype=lemote-yeeloong-2f-8.9inches".
9456 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
9457 additional argument to Linux.
9458
9459 2010-11-04 Robert Millan <rmh@gnu.org>
9460
9461 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
9462 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
9463 (its SATA disks are detected as slaveless IDE master drives on
9464 kFreeBSD).
9465 Reported by Carsten Aulbert.
9466
9467 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
9468
9469 * util/bin2h.c (main): Fix spelling error in generated output.
9470
9471 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
9472
9473 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
9474
9475 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
9478 vga= option is supplied.
9479
9480 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
9483 * util/grub.d/10_kfreebsd.in: Likewise.
9484 * util/grub.d/10_linux.in: Likewise.
9485 * util/grub.d/20_linux_xen.in: Likewise.
9486
9487 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9488
9489 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
9490 argument as an argument to no-argument option.
9491
9492 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * util/grub.d/10_linux.in: Add missing load_video with explicit
9495 GRUB_GFXPAYLOAD_LINUX.
9496
9497 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9498
9499 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
9500
9501 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9502
9503 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
9504 elements with invlid index.
9505 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9506 * grub-core/disk/raid.c (insert_array): Automatically reallocate
9507 members.
9508 * include/grub/raid.h (grub_raid_member): New struct.
9509 (grub_raid_array): Transform devices and start_sector into usage of
9510 grub_raid_member. All users updated
9511 (allocated_devs): New member.
9512
9513 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9514
9515 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
9516 is modified
9517
9518 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
9519
9520 NetBSD build fix for getline function conflict from gnulib.
9521
9522 * Makefile.util.def (libgrubkern.a): New library for grub kernel
9523 components that depend on gnulib headers.
9524 (libgrubmods.a): Renamed from earlier libgrub.a.
9525 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
9526
9527 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9528
9529 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
9530 install rather than creating a broken install.
9531
9532 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9533
9534 * util/grub-setup.c (argp): Remove misleading example of installing to
9535 a partition.
9536
9537 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 * util/grub-setup.c (setup): Clarify the error message.
9540
9541 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9542
9543 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
9544
9545 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9546
9547 * grub-core/kern/emu/misc.c
9548 (grub_make_system_path_relative_to_its_root)
9549 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
9550
9551 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9552
9553 * grub-core/kern/emu/misc.c
9554 (grub_make_system_path_relative_to_its_root): Revert r2882.
9555
9556 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
9559 useless field head. All users updated.
9560 (free_subchunk): Correct handling of IN_REGION subchunk.
9561
9562 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
9563
9564 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
9565 (Supported kernels): Likewise.
9566
9567 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
9568
9569 Make mktemp invocations portable.
9570
9571 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
9572 exit if mktemp fails.
9573 * tests/grub_script_blockarg.in: Likewise.
9574 * tests/partmap_test.in: Likewise.
9575 * tests/util/grub-shell-tester.in: Likewise.
9576 * tests/util/grub-shell.in: Likewise.
9577 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9578 * Makefile.am: Likewise, and chain shell commands with `&&'
9579 instead of ';'.
9580 * util/grub-mkrescue.in: Use the same explicit template as above, and
9581 exit if mktemp fails.
9582
9583 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
9584
9585 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
9586 Linux kernel, reported by Dennis Schridde.
9587
9588 2010-10-17 Szymon Janc <szymon@janc.net.pl>
9589
9590 * grub-core/normal/auth.c (grub_auth_check_authentication):
9591 Set-but-not-used variable removed.
9592
9593 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 * docs/grub.texi (GNU/Linux): Document APM unavailability with
9596 32-bit linux protocol.
9597
9598 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
9601 cursor shape for sanity.
9602
9603 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9604
9605 * docs/grub.texi (Installation): Document buggy BIOS install.
9606
9607 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * docs/grub.texi (Installation): Indent.
9610
9611 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9612
9613 * util/grub-setup.c (setup): New parameter allow_floppy.
9614 (arguments): New member allow_floppy.
9615 (argp_parser): Handle --allow-floppy.
9616 (main): Pass allow_floppy.
9617 * util/grub-install.in: New option --allow-floppy passed though to
9618 grub-setup.
9619
9620 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * util/grub-install.in: Handle partitionless disks.
9623
9624 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * util/grub-setup.c (setup): Don't clean blocklists before readability
9627 verfification.
9628
9629 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 * docs/grub.texi (Installation): Document embedding zone. Remove
9632 obsolete grub-install example.
9633
9634 2010-10-16 Szymon Janc <szymon@janc.net.pl>
9635
9636 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
9637 Set-but-not-used variable ifdef'ed.
9638 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
9639 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
9640 variable removed.
9641 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
9642 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
9643 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
9644 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
9645 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
9646 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
9647 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
9648 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
9649 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
9650 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
9651 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
9652 Likewise.
9653
9654 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9655
9656 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
9657 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
9658 enum value.
9659
9660 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
9663 synonym to _S5_. Needed for some DSDTs.
9664
9665 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 Userspace ACPI parser debugging.
9668
9669 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
9670 headers and add relevant defines. Don't include standard headers.
9671 (main) [GRUB_DSDT_TEST]: New function.
9672 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
9673 Don't declare functions.
9674
9675 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9676
9677 Remove dead grub_efi_mm_fini.
9678
9679 * grub-core/kern/efi/mm.c (allocated_page): Removed.
9680 (ALLOCATED_PAGES_SIZE): Likewise.
9681 (MAX_ALLOCATED_PAGES): Likewise.
9682 (allocated_pages): Likewise.
9683 (grub_efi_allocate_pages): Don't record allocated pages.
9684 (grub_efi_free_pages): Likewise.
9685 (grub_efi_mm_init): Likewise.
9686 (grub_efi_mm_fini): Removed.
9687
9688 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9689
9690 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
9691 (grub_efi_mm_init): Take into account the memory map size increase.
9692
9693 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
9696 (serial_hw_put): Wait based on real time rather than port reads. Don't
9697 roken ports.
9698 * include/grub/serial.h (grub_serial_port): New field broken.
9699
9700 2010-10-16 Robert Millan <rmh@gnu.org>
9701
9702 * grub-core/kern/emu/misc.c
9703 (grub_make_system_path_relative_to_its_root): Fix premature return
9704 when processing non-root ZFS filesystems.
9705 Reported by Sergio Talens-Oliag.
9706
9707 2010-10-15 Robert Millan <rmh@gnu.org>
9708
9709 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
9710 guarantee compressed ones are processed first.
9711
9712 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9713
9714 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
9715 grub_efiemu_autocore.
9716
9717 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9718
9719 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
9720 rather than 0x1b.
9721 (grub_console_getkey): Use correct jae opcode rather than ja.
9722
9723 2010-10-12 Robert Millan <rmh@gnu.org>
9724
9725 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
9726 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
9727 variable. All references updated.
9728
9729 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
9730
9731 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 Correctly distinguish mdraid flavours.
9734
9735 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
9736 (insert_array): New argument raid.
9737 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
9738 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
9739 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
9740
9741 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
9742
9743 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
9744 handling of special keys.
9745
9746 2010-10-02 Aleš Nesrsta <starous@volny.cz>
9747
9748 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
9749 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
9750
9751 2010-10-02 Aleš Nesrsta <starous@volny.cz>
9752
9753 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
9754 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
9755 users updated.
9756 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
9757 Use right endpoint when querying descriptor.
9758
9759 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 Clear out 0x80 color bit on EFI.
9762 Tested by: decoder
9763 Reported by: decoder and meta tech.
9764
9765 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
9766 (grub_console_setcolorstate): Clear out 0x80 bit.
9767 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
9768 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
9769 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
9770
9771 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
9774 Set to "auto".
9775
9776 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
9777
9778 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
9779 mo_file after freeing.
9780
9781 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
9784
9785 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
9786
9787 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
9788 flags.
9789
9790 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
9791
9792 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
9793 usage.
9794
9795 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
9796
9797 Put terminfo into core on ieee1275 and yeeloong (needed for console).
9798
9799 * gentpl.py: New groups terminfoinkernel and terminfomodule.
9800 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
9801 and terminfo.h when needed.
9802 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
9803 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
9804 (terminfo): Enable only on terminfokernel.
9805 (extcmd): Likewise.
9806 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
9807 * include/grub/lib/arg.h: Likewise.
9808 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
9809 incorrect usage of ->.
9810
9811 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
9814 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
9815
9816 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
9817
9818 Fix coreboot compilation.
9819
9820 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
9821 Take VBE info into account even if only text is supported.
9822 (fill_vbe_info): Take into account the case when only VGA text
9823 is supported.
9824 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
9825 on coreboot, multiboot and qemu.
9826
9827 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
9830 debug messages.
9831 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
9832
9833 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
9834
9835 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
9836 parameters.
9837
9838 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
9839
9840 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
9841 if they were BSD-style.
9842
9843 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
9844
9845 * grub-core/boot/i386/pc/lnxboot.S: Replace
9846 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
9847 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
9848
9849 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
9850
9851 Write embedding zone using Reed-Solomon.
9852
9853 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
9854 * grub-core/Makefile.am (rs_decoder.S): New target.
9855 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
9856 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
9857 (multiboot): Move to RS part.
9858 (post_reed_solomon): New label.
9859 (grub_boot_drive): Move to non-RS part since it's modified in memory
9860 on boot.
9861 Include rs_decoder.S.
9862 * grub-core/lib/reed_solomon.c: New file.
9863 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
9864 New definition.
9865 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
9866 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
9867 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
9868 * include/grub/partition.h (grub_partition_map): Change prototype of
9869 embed to allow returning additional sectors.
9870 * include/grub/reed_solomon.h: New file.
9871 * util/grub-setup.c (setup): Handle Reed-Solomon.
9872
9873 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
9874
9875 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
9876 i386 and x86-64 definedness tests.
9877
9878 2010-09-27 Yves Blusseau <blusseau@zetam.org>
9879
9880 Fix generation of kernel_syms.lst
9881
9882 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
9883 ASM_PREFIX
9884
9885 2010-09-26 Robert Millan <rmh@gnu.org>
9886
9887 Support degraded ZFS arrays in "grub-probe -t device" resolution.
9888
9889 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
9890 the pool is an array of devices, iterate through it and return the
9891 first device that passes a stat() test (instead of blindly returning
9892 the first one).
9893
9894 2010-09-26 Robert Millan <rmh@gnu.org>
9895
9896 Build fixes for GNU/kFreeBSD.
9897
9898 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
9899 to programs that require ZFS conversion.
9900 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
9901 kernels that don't have FLOPPY_MAJOR.
9902
9903 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
9904
9905 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
9906
9907 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
9908
9909 Fix grub-emu build.
9910
9911 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
9912 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
9913 mdraid09 and mdraid1x.
9914
9915 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
9916
9917 Re-enable grub-extras.
9918
9919 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
9920 avoid confusing Automake. Run autogen only twice, once for the top
9921 level and once for grub-core. Add Makefile.util.def and
9922 Makefile.core.def from extra modules to the appropriate autogen
9923 invocations. If Makefile.common exists in an extra module, include
9924 it in both Makefile.util.am and grub-core/Makefile.core.am;
9925 similarly, include any Makefile.util.common file in Makefile.util.am
9926 and any Makefile.core.common file in grub-core/Makefile.core.am.
9927 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
9928 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
9929 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
9930 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
9931
9932 * gentpl.py (gvar_add): Turn GVARS into a set.
9933 (global_variable_initializers): Sort global variables on output.
9934 (vars_init): New function.
9935 (first_time): Likewise.
9936 (library): Ensure that non-global variable initialisations are
9937 emitted before the first time we emit code for a library block.
9938 Append to variables rather than setting them. Only emit
9939 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
9940 each conditional path.
9941 (program): installdir() emits an Autogen macro, so must be passed to
9942 var_add rather than gvar_add.
9943 (data): Likewise.
9944 (script): Likewise.
9945 (rules): New function, centralising handling for different target
9946 types. Set up Guile association lists for first_time and vars_init,
9947 and send most output to a diversion so that variable initialisations
9948 can be emitted first.
9949 (module_rules): Use new rules function.
9950 (kernel_rules): Likewise.
9951 (image_rules): Likewise.
9952 (library_rules): Likewise.
9953 (program_rules): Likewise.
9954 (script_rules): Likewise.
9955 (data_rules): Likewise.
9956
9957 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
9958
9959 * .bzrignore: Add contrib and grub-core/contrib. Remove
9960 grub-core/Makefile.gcry.am.
9961
9962 2010-09-24 Yves Blusseau <blusseau@zetam.org>
9963
9964 * grub-core/lib/LzFind.c: Add missing include.
9965 * grub-core/lib/LzmaEnc.c: Likewise.
9966 * grub-core/script/lexer.c: Likewise.
9967 * grub-core/script/yylex.l: Likewise.
9968 * util/grub-macho2img.c: Likewise.
9969 * util/grub-menulst2cfg.c: Likewise.
9970 * util/grub-mklayout.c: Likewise.
9971 * util/grub-mkpasswd-pbkdf2.c
9972 * util/grub-mkrelpath.c: Likewise.
9973 * util/resolve.c: Likewise.
9974
9975 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
9976
9977 * Makefile.util.def (example_unit_test): Add
9978 grub-core/gnulib/libgnu.a.
9979
9980 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
9981
9982 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
9983
9984 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
9985
9986 Support xz compression on yeeloong.
9987
9988 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
9989 * configure.ac: Check for LZMA.
9990 * grub-core/Makefile.core.def (xz_decompress): New target.
9991 (none_decompress): Likewise.
9992 * grub-core/boot/decompressor/minilib.c: New file.
9993 * grub-core/boot/decompressor/none.c: Likewise.
9994 * grub-core/boot/decompressor/xz.c: Likewise.
9995 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
9996 * grub-core/kern/mips/cache_flush.S: Likewise.
9997 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
9998 * grub-core/kern/mips/startup.S: Move first stage to ...
9999 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
10000 nomacro.
10001 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
10002 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
10003 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
10004 Allocate statically.
10005 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
10006 Allocate statically or use scratch. Don't check CRC32.
10007 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
10008 Allocate statically. Don't check CRC32.
10009 * include/grub/decompressor.h: New file.
10010 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
10011 Removed.
10012 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
10013 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
10014 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
10015 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
10016 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
10017 * util/grub-mkimage.c (grub_compression_t): New type.
10018 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
10019 (image_target_desc): New field default_compression.
10020 (image_targets): Adjust yeeloong targets.
10021 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
10022 (compress_kernel): New parameter comp.
10023 (generate_image): Likewise. Handle new compression case.
10024 (options): New option --compression
10025 (help): Likewise.
10026 (main): Handle new option.
10027
10028 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
10029
10030 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
10031
10032 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
10033
10034 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10035 typo in __i386__ conditional.
10036
10037 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
10040 include.
10041
10042 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 Implement EFI and ACPI multiboot2 extensions.
10045
10046 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
10047 new tags as supported.
10048 (acpiv2_size): New function.
10049 (grub_multiboot_get_mbi_size): Take new tags into account.
10050 (grub_multiboot_make_mbi): Add new tags.
10051 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
10052
10053 2010-09-21 Aleš Nesrsta <starous@volny.cz>
10054
10055 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
10056 Added missing configuration of USB device.
10057
10058 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10059
10060 * grub-core/normal/menu_entry.c (run): Make sure we always return
10061 a value.
10062
10063 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10064
10065 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
10066 NumberOfPages is UINT64 according to the UEFI specification, not
10067 UINTN. Fix printf format.
10068
10069 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10070
10071 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
10072 `err' to grub_usb_err_t.
10073 Reported and tested by: KESHAV P.R.
10074
10075 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10076
10077 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
10078 tpart non-const, so that we can assign to it. (Since this is a
10079 typedef, the constness refers to the pointer rather than what it
10080 points to.)
10081
10082 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10083
10084 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
10085 $(top_srcdir)/grub-core/gnulib as well as
10086 $(top_builddir)/grub-core/gnulib.
10087 Reported by: KESHAV P.R.
10088
10089 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10090
10091 * util/grub-install.in: Fix the bootloader ID option to be
10092 consistently --bootloader-id, not --bootloader_id.
10093 Reported by: KESHAV P.R.
10094
10095 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10096
10097 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
10098 check hash checksum." consistently translatable.
10099
10100 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10101
10102 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
10103 $(top_builddir).
10104
10105 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10106
10107 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
10108 (GRUB_MOD_INIT): Register sha1sum command.
10109 (GRUB_MOD_FINI): Unregister sha1sum command.
10110
10111 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10112
10113 Keep boot and grub directory names in sync with utils scripts
10114
10115 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
10116 * config.h.in: Add previous macros.
10117 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
10118 * util/grub-install.in: Use $bootdir and $grubdir variables.
10119
10120 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10121
10122 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
10123 convert partition names to disk names if the new `convert' parameter
10124 is set.
10125 (grub_util_biosdisk_get_grub_dev): If opening the disk device
10126 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
10127 disk in its own right. This can happen with Xen disk images.
10128
10129 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10130
10131 * util/grub-editenv.c: Update strings to avoid warnings when generating
10132 grub.pot file.
10133 * util/grub-setup.c: Likewise.
10134
10135 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 * configure.ac: Change version to 1.99~beta0.
10138
10139 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10140
10141 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10142 Add BADRAM.
10143 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
10144 Likewise.
10145 * include/multiboot.h: Resynced with specification.
10146 * include/multiboot2.h: Likewise.
10147
10148 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10149
10150 Fix po directory handling.
10151
10152 * configure.ac: Create po/Makefile.in rather than po/Makefile.
10153 * grub-core/gnulib/Makefile.am: Import gettext module.
10154 * m4/gnulib-cache.m4: Likewise.
10155 * m4/gnulib-comp.m4: Likewise.
10156 * m4/gettext.m4: New file, from gnulib.
10157 * m4/glibc2.m4: Likewise.
10158 * m4/iconv.m4: Likewise.
10159 * m4/intdiv0.m4: Likewise.
10160 * m4/intl.m4: Likewise.
10161 * m4/intldir.m4: Likewise.
10162 * m4/intlmacosx.m4: Likewise.
10163 * m4/intmax.m4: Likewise.
10164 * m4/inttypes-pri.m4: Likewise.
10165 * m4/lcmessage.m4: Likewise.
10166 * m4/lib-ld.m4: Likewise.
10167 * m4/lib-link.m4: Likewise.
10168 * m4/lib-prefix.m4: Likewise.
10169 * m4/lock.m4: Likewise.
10170 * m4/nls.m4: Likewise.
10171 * m4/po.m4: Likewise.
10172 * m4/printf-posix.m4: Likewise.
10173 * m4/progtest.m4: Likewise.
10174 * m4/threadlib.m4: Likewise.
10175 * m4/uintmax_t.m4: Likewise.
10176 * m4/visibility.m4: Likewise.
10177 * po/Makefile.am: Remove.
10178 * po/Makefile.in.in: New file, from gettext.
10179 ($(DOMAIN).pot-update): Support POTFILES-shell.
10180 * po/Makevars: New file.
10181 * po/POTFILES-shell: Rename to ...
10182 * po/POTFILES-shell.in: ... this. Update.
10183 * po/POTFILES: Rename to ...
10184 * po/POTFILES.in: ... this. Update.
10185 * po/Rules-quot: New file, from gettext.
10186 * po/boldquot.sed: Likewise.
10187 * po/en@boldquot.header: Likewise.
10188 * po/en@quot.header: Likewise.
10189 * po/insert-header.sin: Likewise.
10190 * po/quot.sed: Likewise.
10191 * po/remove-potcdate.sin: Likewise.
10192
10193 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
10196
10197 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10198
10199 * util/grub.d/20_linux_xen.in: Use submenus.
10200
10201 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10202
10203 Support submenus.
10204
10205 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
10206 parameter submenu. All users updated.
10207 * grub-core/normal/main.c (free_menu): Rename to ...
10208 (grub_normal_free_menu): ... this. Made global.
10209 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
10210 if requested.
10211 * grub-core/normal/menu_entry.c (screen): New field submenu.
10212 (make_screen): Set submenu.
10213 (run): Open new context if requested.
10214 * include/grub/menu.h (grub_menu_entry): New field submenu.
10215 * include/grub/normal.h (grub_normal_free_menu): New proto.
10216
10217 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10218
10219 Menu entries extractor.
10220
10221 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
10222 variants.
10223 (GRUB_MOD_INIT): Register new variants.
10224 (GRUB_MOD_FINI): Unregister new variants.
10225 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
10226 into grub_cmd_legacy_source.
10227 (grub_cmd_legacy_source): Implement extractor variants.
10228 (GRUB_MOD_INIT): Register new variants.
10229 (GRUB_MOD_FINI): Unregister new variants.
10230 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
10231 as an extractor.
10232 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
10233 search as an extractor.
10234 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
10235 test as an extractor.
10236 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
10237 as an extractor.
10238 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
10239 (grub_env_new_context): New function.
10240 (grub_env_context_open): Likewise.
10241 (grub_env_extractor_open): Likewise.
10242 (grub_env_extractor_close): Likewise.
10243 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
10244 grub_extractor_level.
10245 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
10246 * include/grub/env.h (grub_env_extractor_open): New proto.
10247 (grub_env_extractor_close): Likewise.
10248 * include/grub/normal.h (grub_extractor_level): New external variable.
10249
10250 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10251
10252 Make cutmem accept a region specification.
10253 Suggested by: Samuel Thibault
10254
10255 * grub-core/mmap/mmap.c (parsemem): New function.
10256 (grub_cmd_cutmem): Handle new arguments.
10257
10258 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 New command cutmem.
10261
10262 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
10263 (GRUB_MOD_INIT): Register new command.
10264 (GRUB_MOD_FINI): Unregister new command.
10265
10266 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10267
10268 Support some annoying BSD and Minix subpartitions.
10269
10270 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
10271 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
10272 Properly handle concatenation.
10273 * grub-core/kern/device.c (grub_device_iterate): Likewise.
10274 * grub-core/normal/completion.c (iterate_partition): Likewise.
10275 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
10276 contain partition. All users updated.
10277 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
10278 struct.
10279 (grub_openbsdlabel_partition_map): Likewise.
10280 (bsdlabel_partition_map_iterate): Rename to ..
10281 (iterate_real): ... this. New arguments sector, freebsd and pmap.
10282 (bsdlabel_partition_map_iterate): New function.
10283 (netopenbsdlabel_partition_map_iterate): Likewise.
10284 (netbsdlabel_partition_map_iterate): Likewise.
10285 (openbsdlabel_partition_map_iterate): Likewise.
10286 (GRUB_MOD_INIT): Register new partmaps.
10287 (GRUB_MOD_FINI): Unregister new partmaps.
10288 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
10289 (grub_partition_msdos_iterate): ... this. All users updated.
10290 Don't support embedding other than in a minix partition.
10291 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
10292 proto.
10293 * include/grub/partition.h (grub_partition): New field msdostype.
10294 * util/grub-install.in: Handle openbsd and netbsd types being in
10295 part_bsd module.
10296
10297 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10298
10299 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
10300
10301 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
10302 * grub-core/Makefile.core.def (mdraid): Renamed to ...
10303 (mdraid09): ... this.
10304 (mdraid1x): New module.
10305 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
10306 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
10307
10308 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10309
10310 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
10311 vsprintf.
10312
10313 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10314
10315 * grub-core/commands/efi/lsefimmap.c: Correct header.
10316 * NEWS: Update.
10317
10318 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10319
10320 * util/grub-editenv.c (argp_parser): Don't pass translated strings
10321 as printf format strings; the translations might contain '%' which
10322 could cause a crash.
10323 (main): Likewise.
10324 * util/grub-fstest.c (argp_parser): Likewise.
10325 * util/grub-setup.c (argp_parser): Likewise.
10326 (main): Likewise.
10327
10328 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10329
10330 Use argp in grub-fstest.
10331
10332 * util/grub-fstest.c: Don't include getopt.h.
10333 Include argp.h.
10334 (root): New variable.
10335 (args_count): Likewise.
10336 (nparm): Likewise.
10337 (num_disks): Likewise.
10338 (images): Likewise.
10339 (cmd): Likewise.
10340 (debug_str): Likewise.
10341 (args): Likewise.
10342 (options): Transformed to argp.
10343 (usage): Removed.
10344 (main): Split argument parsing into ...
10345 (argp_parser): ... this. Changed to argp format.
10346 (argp): New variable.
10347 (main): Use argp_parse.
10348
10349 2010-09-20 Tristan Gingold <gingold@free.fr>
10350 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
10351 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10352
10353 * grub-core/commands/efi/lsefimmap.c: New file.
10354 * grub-core/Makefile.core.def (lsefimmap): New module.
10355 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
10356
10357 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10358
10359 Pause the execution (10s max) if any errors are displayed so the user
10360 has a chance to see them.
10361
10362 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
10363 (grub_print_error): Increment grub_err_printed_errors.
10364 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
10365 execution if any errors were displayed.
10366 (show_menu): Remove old code for pause.
10367 * grub-core/normal/menu_entry.c (run): Likewise.
10368 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
10369 users updated.
10370 (grub_normal_get_char_counter): Likewise.
10371 * include/grub/err.h (grub_err_printed_errors): New external variable.
10372 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
10373
10374 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10375
10376 Support multiboot VBE info.
10377
10378 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10379 Take VBE info into account.
10380 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
10381 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10382 Call fill_vbe_info when appropriate.
10383 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
10384 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
10385 as supported.
10386 (grub_multiboot_get_mbi_size): Take new tags into account.
10387 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
10388 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10389 Call fill_vbe_tag when appropriate.
10390 (grub_multiboot_make_mbi): Properly align tags.
10391 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
10392 function.
10393 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
10394 proto.
10395 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
10396
10397 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10398
10399 Suport manual terminal geometry specification.
10400
10401 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
10402 Save state in grub_ofconsole_terminfo_output.
10403 (grub_ofconsole_term): Use grub_terminfo_getwh.
10404 (grub_ofconsole_getwh): Removed.
10405 * grub-core/term/serial.c (grub_serial_getwh): Removed.
10406 (grub_serial_term): Use grub_terminfo_getwh.
10407 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
10408 (options): New struct.
10409 (OPTION_*): New enum.
10410 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
10411 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
10412 width and height.
10413 (grub_terminfo_getwh): New proto.
10414 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
10415
10416 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10417
10418 Handle legacy "terminal" command.
10419
10420 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
10421 and FLAG_TERMINAL.
10422 (legacy_commands): Add terminal and title.
10423 (grub_legacy_parse): Handle terminal. Simplify title handling.
10424
10425 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
10428 parameters overflow.
10429
10430 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10431
10432 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
10433 widthspec.h.
10434
10435 * docs/grub.texi (Shell-like scripting): Document `!'.
10436 (Network): Simplify using new i386-pc-pxe format. Mention
10437 grub-mknetdir.
10438
10439 * NEWS: Update.
10440
10441 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10442
10443 * Makefile.am (SUBDIRS): Restore "."; it's important to force
10444 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
10445 when needed.
10446
10447 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10448
10449 * grub-core/commands/efi/lsefisystab.c: Correct header.
10450 * grub-core/commands/efi/lssal.c: Likewise.
10451 * grub-core/commands/testload.c: Likewise.
10452
10453 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10454
10455 * util/grub-mkrescue.in: Add explicit root argument to --set to
10456 prevent the UUID being interpreted as an argument to --set (matches
10457 previous change to prepare_grub_to_access_device).
10458
10459 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10460
10461 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
10462 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
10463 the verbosity of later #ifs.
10464 (find_partition_start): Define this function on FreeBSD too.
10465 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
10466 function.
10467 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
10468 on FreeBSD.
10469
10470 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10471
10472 * util/grub-editenv.c: Use argp instead of getopt.
10473
10474 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10475
10476 * util/grub-setup.c: Use argp instead of getopt.
10477
10478 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10479
10480 Use gnulib-tool to create gnulib source files.
10481
10482 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
10483 grub-core/gnulib directories
10484 * .bzignore: Add **/.deps and autogenerated gnulib files
10485 * configure.ac: Assign auxiliary directory to build-aux, add invocation
10486 of gnulib macros, add grub-core/gnulib/Makefile
10487 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
10488 include m4 directory to aclocal.
10489 * Makefile.util.def: Remove direct compilation of gnulib source files
10490 and use the new grub-core/gnulib/libgnu.a.
10491 * build-aux/config.rpath: move config.rpath from top directory to
10492 build-aux
10493 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
10494 in gnulib headers
10495 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
10496 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
10497 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
10498 header.
10499 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
10500 string.
10501
10502 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10503
10504 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
10505 grub-core/genmod.sh and grub-core/gensyminfo.sh
10506
10507 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
10508
10509 Add a test for echo command options.
10510
10511 * tests/grub_cmd_echo.in: New test.
10512 * Makefile.util.def: Rules for new test.
10513
10514 2010-09-20 Szymon Janc <szymon@janc.net.pl>
10515
10516 Remove crc.mod and move crc command to hashsum.mod.
10517 Remove lib/crc.c - users updated to use gcrypt implementation.
10518
10519 * grub-core/commands/crc.c: Removed.
10520 * grub-core/Makefile.core.def (crc): Module removed.
10521 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
10522 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
10523 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
10524 * grub-core/lib/crc.c: Removed.
10525 * include/grub/lib/crc.h: Removed.
10526 * Makefile.util.def (crc): Remove lib/crc.c
10527 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
10528 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
10529 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
10530 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
10531 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
10532 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
10533
10534 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10535
10536 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
10537
10538 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10539
10540 Split config.h for util and core.
10541
10542 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
10543 (ADDR32): Likewise.
10544 (DATA32): Likewise.
10545 (BSS_START_SYMBOL): Likewise.
10546 (END_SYMBOL): Likewise.
10547 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
10548 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
10549 * config.h.in: New file.
10550 * configure.ac: Use config-util.h as config define file.
10551 Rename MACHINE into GRUB_MACHINE. All users updated.
10552 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
10553 updated.
10554 (NESTED_FUNC_ATTR): Likewise.
10555 Substitue new variables.
10556 (COND_HAVE_ASM_USCORE): New conditional.
10557 * grub-core/Makefile.am (ASM_PREFIX): New variable.
10558 (kernel_syms.lst): Use ASM_PREFIX.
10559 * grub-core/kern/emu/console.c: Include config-util.h.
10560 * grub-core/kern/emu/misc.c: Likewise.
10561 * grub-core/kern/emu/mm.c: Likewise.
10562 * include/grub/emu/misc.h: Likewise.
10563 * include/grub/libgcc.h: Likewise.
10564
10565 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10566
10567 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
10568 constants usage.
10569 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
10570 Fix GRUB_TERM_KEY_* constants usage.
10571 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
10572
10573 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10574
10575 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
10576 print pointer.
10577 * grub-core/bus/usb/uhci.c: Remove empty define.
10578 (grub_uhci_check_transfer): Add missing cast.
10579 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
10580 print pointer.
10581 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
10582 PRIuGRUB_SIZE.
10583 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
10584
10585 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 * grub-core/Makefile.core.def (legacycfg): Add
10588 lib/i386/pc/vesa_modes_table.c on emu.
10589
10590 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
10591
10592 Reduce number of temporary files generated by build system.
10593
10594 * grub-core/gencmdlist.sh: Removed.
10595 * grub-core/genfslist.sh: Removed.
10596 * grub-core/genhandlerlist.sh: Removed.
10597 * grub-core/genmodsrc.sh: Removed.
10598 * grub-core/genpartmaplist.sh: Removed.
10599 * grub-core/genparttoollist.sh: Removed.
10600 * grub-core/gentermiinallist.sh: Removed.
10601 * grub-core/genvideolist.sh: Removed.
10602
10603 * grub-core/genmod.sh.in: New file.
10604 * grub-core/gensyminfo.sh.in: New file.
10605
10606 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
10607 * conf/Makefile.extra-dist: Update with new files.
10608 * gentpl.py: Remove rules related to unnecessary temporary files.
10609 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
10610 and und-* files.
10611 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
10612 genmod.sh scripts.
10613 * grub-core/bus/usb/uhci.c: Remove empty #define.
10614 * grub-core/genmoddep.awk: Updated with new syminfo format.
10615 * util/bash-completion.d/Makefile.am: Add config.log to
10616 CLEANFILES.
10617
10618 2010-09-19 Yves Blusseau <blusseau@zetam.org>
10619
10620 * Makefile.util.def: Add forgotten $(LIBINTL) library.
10621
10622 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
10623
10624 * util/grub-mkconfig.in: Check the config script for syntax errors
10625 before saving.
10626
10627 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
10628 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 * Makefile.util.def (grub-install): Use util/grub-install.in on all
10631 platforms.
10632 * util/grub-install.in: Add EFI and IEEE1275 support.
10633 * util/i386/efi/grub-install.in: Removed.
10634 * util/ieee1275/grub-install.in: Likewise.
10635
10636 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10637
10638 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
10639 (grub_cmd_cmosclean): Likewise.
10640 (GRUB_MOD_INIT): Register command cmosclean.
10641 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
10642 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
10643
10644 2010-09-18 Carles Pina i Estany <carles@pina.cat>
10645 2010-09-18 Aleš Nesrsta <starous@volny.cz>
10646 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
10647
10648 Add keyboard layouts support.
10649
10650 * Makefile.util.def (grub-mklayout): New file.
10651 (grub-kbdcomp): New script.
10652 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
10653 Add keyboard_layouts.h.
10654 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
10655 commands/boot.c on yeeloong.
10656 (keylayouts): New module.
10657 * grub-core/bus/usb/ohci.c
10658 * grub-core/bus/usb/uhci.c
10659 * grub-core/bus/usb/usbhub.c (rescan): New variable.
10660 (grub_usb_add_hub): Poll interrupt pipe for device handling.
10661 (attach_root_port): Likewise.
10662 (poll_nonroot_hub): Likewise.
10663 (grub_usb_poll_devices): Likewise.
10664 (detach_device): Close transfer.
10665 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
10666 function.
10667 (grub_usb_bulk_setup_readwrite): Likewise.
10668 (grub_usb_bulk_finish_readwrite): Likewise.
10669 * grub-core/commands/keylayouts.c: New file.
10670 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
10671 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
10672 aliases.
10673 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
10674 support scancode 2.
10675 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
10676 * include/grub/keyboard_layouts.h: New file.
10677 * util/grub-mklayout.c: New file.
10678 * util/grub-kbdcomp.in: Likewise.
10679
10680 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
10681
10682 Unify memory types.
10683
10684 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
10685 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
10686 types.
10687 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
10688 (grub_upper_mem): Likewise.
10689 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
10690 * include/grub/memory.h (grub_memory_type_t): New enum.
10691 All users updated.
10692
10693 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
10694
10695 * grub-core/Makefile.core.def (lsapm): New module.
10696 * grub-core/commands/i386/pc/lsapm.c: New file.
10697 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
10698 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
10699 Likewise.
10700 * include/grub/i386/pc/apm.h: New file.
10701 * include/multiboot.h (multiboot_apm_info): New struct.
10702
10703 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
10704
10705 GRUB-legacy configuration file support.
10706
10707 * Makefile.util.def (grub-menulst2cfg): New util.
10708 * docs/man/grub-menulst2cfg.h2m: New file.
10709 * grub-core/Makefile.core.def (legacycfg): New module.
10710 * grub-core/commands/legacycfg.c: New file.
10711 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
10712 (grub_normal_add_menu_entry): ... this.
10713 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
10714 (grub_normal_set_password): ...this.
10715 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
10716 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
10717 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
10718 * grub-core/lib/legacy_parse.c: New file.
10719 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
10720 * include/grub/i386/pc/vesa_modes_table.h: New file.
10721 * include/grub/legacy_parse.h: Likewise.
10722 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
10723 * util/grub-menulst2cfg.c: New file.
10724
10725 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
10726
10727 * grub-core/kern/emu/hostdisk.c
10728 (convert_system_partition_to_system_disk): Initialise node.
10729
10730 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
10731
10732 * grub-core/kern/emu/hostdisk.c
10733 (convert_system_partition_to_system_disk): Fix devmapper memory pool
10734 leak.
10735 Reported and based on patch by: Modestas Vainius.
10736
10737 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
10738
10739 Fix DM-RAID probing with recent versions of device-mapper udev
10740 rules.
10741
10742 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
10743 canonicalise device paths under /dev/mapper/.
10744 (convert_system_partition_to_system_disk): Compare the
10745 uncanonicalised path to /dev/mapper/ rather than the canonicalised
10746 path, since device nodes under /dev/mapper/ are often symlinks.
10747
10748 2010-09-17 Yves Blusseau <blusseau@zetam.org>
10749
10750 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
10751
10752 2010-09-16 Yves Blusseau <blusseau@zetam.org>
10753
10754 * configure.ac: Avoid some annoying error messages if freetype-config
10755 program is not found.
10756
10757 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
10758
10759 Support RAID on virtio devices, and others.
10760
10761 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
10762 Rename to ...
10763 [__MINGW32__] (grub_find_device): ... this.
10764 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
10765 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
10766 reasonable default if dir is NULL.
10767 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
10768 ...
10769 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
10770 (grub_guess_root_device): Update callers.
10771 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
10772
10773 * util/raid.c (grub_util_getdiskname): Remove.
10774 (grub_util_raid_getmembers): Use grub_find_device rather than
10775 grub_util_getdiskname.
10776
10777 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
10778
10779 * docs/grub.texi (serial): Remove obsolete comment about GRUB
10780 needing to be compiled with serial support.
10781 (ls): Indicate that multiple files are accepted.
10782 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
10783 indicate that multiple files are accepted.
10784
10785 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
10786
10787 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
10788 libgrub_a_init.c, and util/bash-completion.d/grub.
10789
10790 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * util/grub-setup.c (setup): Fix incorrect container semantics.
10793
10794 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
10797 misusage.
10798 Reported by: J. Nick Terry
10799
10800 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
10801
10802 Move embedding routines to partmap sources files.
10803
10804 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
10805 [GRUB_UTIL]: New variable.
10806 (gpt_partition_map_iterate): Set part.parent.
10807 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
10808 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
10809 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
10810 New function.
10811 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
10812 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
10813 (grub_partition_map) [GRUB_UTIL]: New field embed.
10814 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
10815 (setup): Use ->embed.
10816
10817 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
10820 function.
10821 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
10822 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
10823
10824 2010-09-15 Yves Blusseau <blusseau@zetam.org>
10825
10826 Add function to get completions from usage.
10827
10828 * util/bash-completion.d/grub-completion.bash.in: Add function to get
10829 completions from usage. Use LC_ALL=C to get options properly.
10830
10831 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
10832
10833 * grub-core/gnulib/basename-lgpl.c: Imported.
10834 * grub-core/gnulib/basename.c: Likewise.
10835 * grub-core/gnulib/dirname-lgpl.c: Likewise.
10836 * grub-core/gnulib/dirname.c: Likewise.
10837 * grub-core/gnulib/dirname.h: Likewise.
10838 * grub-core/gnulib/stripslash.c: Likewise.
10839
10840 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/gnulib/error.c: Resynced.
10843 * grub-core/gnulib/getopt.c: Likewise.
10844 * grub-core/gnulib/getopt_int.h: Likewise.
10845 * grub-core/gnulib/regex.h: Likewise.
10846 * grub-core/gnulib/regex_internal.c: Likewise.
10847 * grub-core/gnulib/regex_internal.h: Likewise.
10848
10849 2010-09-15 Szymon Janc <szymon@janc.net.pl>
10850
10851 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
10852 CRC calculations and validity checks.
10853 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
10854 calculations.
10855
10856 2010-09-15 Szymon Janc <szymon@janc.net.pl>
10857
10858 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
10859
10860 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 Fix incorrect echo options handling.
10863 Reported by: Yves Blusseau.
10864
10865 * include/grub/command.h (grub_command_flags_t): New flags
10866 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
10867 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
10868 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
10869
10870 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
10873 users updated.
10874 (GRUB_COMMAND_FLAG_MENU): Likewise.
10875 (GRUB_COMMAND_FLAG_BOTH): Likewise.
10876 (GRUB_COMMAND_FLAG_TITLE): Removed.
10877 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
10878 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
10879 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
10880 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
10881 (grub_command_flags_t): New enum. All users updated.
10882
10883 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
10884
10885 Fix solaris compilation.
10886
10887 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
10888 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
10889 (grub-emu-list): Likewise.
10890
10891 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 Remove deprecated root command.
10894
10895 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
10896 updated.
10897
10898 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10899
10900 * util/i386/pc/grub-setup.c: Merge this ...
10901 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
10902 * util/grub-setup.c: ... into this.
10903 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
10904 New struct.
10905
10906 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10907
10908 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
10909 possible.
10910
10911 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
10914 allocate p.
10915
10916 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10917
10918 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
10919 explicit root argument to set to prevent UUID to be interpreted as
10920 argument to set.
10921
10922 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
10925
10926 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10927
10928 Don't export grub_gate_a20.
10929
10930 * grub-core/kern/i386/pc/init.c: Remove leftovers.
10931 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
10932 to ...
10933 (grub_gate_a20): ... this. All users updated.
10934 * include/grub/i386/pc/init.h: Removed. All users updated.
10935
10936 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10937
10938 Create euro.pf2 which supports most European languages.
10939
10940 * Makefile.am (grubdata_DATA): Add euro.pf2.
10941 (euro.pf2): New target.
10942 (CLEANFILES): Add euro.pf2.
10943
10944 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
10945
10946 * configure.ac: Disable emu-usb by default to prevent inadvertent
10947 device takeover.
10948
10949 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
10950
10951 Disable usbserial on grub-emu since our libusb code isn't good enough
10952 yet.
10953
10954 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
10955 (usbserial_pl2303): Likewise.
10956 (usbserial_ftdi): Likewise.
10957
10958 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * include/grub/disk.h (grub_disk): Remove has_partitions.
10961 All users updated.
10962 * disk/loopback.c (grub_loopback): Remove has_partitions.
10963 All users updated.
10964 (options): Remove partitions. All users updated.
10965 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
10966 * util/i386/pc/grub-setup.c (setup): copy partition table only when
10967 actual partition table is found.
10968
10969 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
10970
10971 Remove readability checks (too many false negatives).
10972
10973 * util/grub-install.in: Remove readability checks.
10974 * util/grub-mkconfig.in: Likewise.
10975 * util/grub.d/10_hurd.in: Likewise.
10976 * util/grub.d/10_kfreebsd.in: Likewise.
10977 * util/grub.d/10_linux.in: Likewise.
10978 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
10979 way.
10980
10981 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
10982
10983 Enable acpi shutdown on all ACPI platforms.
10984
10985 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
10986 on coreboo, multiboot and EFI.
10987 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
10988 (grub_acpi_halt): Likewise.
10989 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
10990 (grub_cmd_halt): Don't call grub_acpi_halt directly.
10991 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
10992 * grub-core/lib/i386/halt.c (grub_halt)
10993 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
10994
10995 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
10998 context.
10999
11000 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11001
11002 * grub-core/video/efi_gop.c: Fix over-80-chars line.
11003 * grub-core/video/efi_uga.c: Likewise.
11004
11005 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 Filter devaliases and never open same device twice.
11008
11009 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
11010 (last_ihandle): Likewise.
11011 (ofdisk_hash_ent): New member shortest.
11012 (ofdisk_hash_add): Add canonical path too.
11013 (scan): New function.
11014 (grub_ofdisk_iterate): Iterate over hashed entries.
11015 (compute_dev_path): Don't add :0.
11016 (grub_ofdisk_open): Don't really open the disk.
11017 (grub_ofdisk_close): Avoid closing unrelated disk.
11018 (grub_ofdisk_read): Implement reopen logic.
11019 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
11020 New function.
11021 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
11022 New proto.
11023
11024 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11025
11026 Fix sparc64.
11027
11028 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
11029 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
11030 right address. Add sparc64_ieee1275_ldflags.
11031 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
11032 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
11033 to grub_host_to_target_addr
11034 (load_image): Likewise.
11035
11036 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11037
11038 * grub-core/normal/completion.c (complete_file): Handle device
11039 containing slash.
11040 Fix based on patch by Doug Nazar.
11041
11042 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11043
11044 grub-mknetdir script.
11045
11046 * Makefile.util.def (grub-mknetdir): New module.
11047 * tests/util/grub-shell.in: Support boot=net
11048 * util/grub-mknetdir.in: New file.
11049
11050 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11051
11052 videoinfo on non-vbe.
11053
11054 * grub-core/Makefile.core.def (vbeinfo): Removed.
11055 (vbetest): Removed.
11056 (videoinfo): New module.
11057 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
11058 * grub-core/commands/i386/pc/vbetest.c: Removed.
11059 * grub-core/commands/videoinfo.c: New file.
11060 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
11061 specification.
11062 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
11063 as vbetest.
11064 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
11065 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
11066 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
11067 mode_number. New parameter mode. All users updated.
11068 (grub_video_gop_iterate): New function.
11069 (grub_video_efi_gop): New member iterate.
11070 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
11071 (grub_vbe_set_video_mode): Remove setting useless fields.
11072 (vbe2videoinfo): New function.
11073 (grub_video_vbe_iterate): Likewise.
11074 (grub_video_vbe_setup): Use vbe2videoinfo.
11075 (grub_video_vbe_print_adapter_specific_info): New function.
11076 (grub_video_vbe_adapter): New fields iterate and
11077 print_adapter_specific_info.
11078 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
11079 All users updated.
11080 (grub_video_mode_info): New field mode_number.
11081 (grub_video_adapter): New fields iterate and
11082 print_adapter_specific_info.
11083
11084 2010-09-13 Tristan Gingold <gingold@free.fr>
11085 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
11086 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11087
11088 * grub-core/commands/efi/lsefisystab.c: New file.
11089 * grub-core/commands/efi/lssal.c: Likewise.
11090 * grub-core/Makefile.core.def (lsacpi): New module.
11091 (lsefisystab): Likewise.
11092 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
11093 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
11094 (grub_efi_sal_system_table): New struct.
11095 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
11096 (grub_efi_sal_system_table_memory_descriptor): Likewise.
11097 (grub_efi_sal_system_table_platform_features): Likewise.
11098 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
11099 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
11100 (grub_efi_sal_system_table_ap_wakeup): Likewise.
11101 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
11102
11103 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 Support explicit user claim that a device is BIOS-visible.
11106
11107 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
11108 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
11109 * grub-core/kern/emu/hostdisk.c
11110 (convert_system_partition_to_system_disk): Support mdX.
11111 (find_system_device): New parameter add. All users updated.
11112 (grub_util_biosdisk_is_present): New function.
11113 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
11114 proto.
11115
11116 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11117
11118 Search hints support.
11119
11120 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
11121 All users updated.
11122
11123 2010-09-13 Yves Blusseau <blusseau@zetam.org>
11124
11125 Bash completion script for util commands
11126
11127 * Makefile.am: Add util/bash-completion.d directory
11128 * configure.ac: Likewise.
11129 * util/bash-completion.d/Makefile.am: New file.
11130 * util/bash-completion.d/grub-completion.bash.in: Likewise.
11131
11132 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11133
11134 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
11135 (print_backlog): set backlog_ucs4 and backlog_glyphs.
11136 Reported by: Yves Blusseau.
11137
11138 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11139
11140 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
11141 partition size and offset.
11142
11143 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
11146
11147 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11148
11149 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
11150
11151 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11152
11153 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
11154 (grub_xvasprintf): Likewise.
11155
11156 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11157
11158 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
11159
11160 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
11163 args ending with NULL.
11164
11165 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11166
11167 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
11168 pointer.
11169
11170 2010-09-11 Szymon Janc <szymon@janc.net.pl>
11171
11172 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
11173
11174 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 Shutdown using ACPI.
11177
11178 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
11179 * grub-core/commands/acpihalt.c: New file.
11180 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
11181 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
11182 (grub_acpi_halt): New proto.
11183 (GRUB_ACPI_SLP_EN): New const.
11184 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
11185 (GRUB_ACPI_OPCODE_*): New enum.
11186 (GRUB_ACPI_EXTOPCODE_*): Likewise.
11187
11188 2010-09-11 Tristan Gingold <gingold@free.fr>
11189 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
11190 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11191
11192 * commands/lsacpi.c: New file.
11193 * grub-core/Makefile.core.def (lsacpi): New module.
11194 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
11195 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
11196 (grub_acpi_madt_entry_header): New struct.
11197 (grub_acpi_madt): Likewise.
11198 (grub_acpi_madt_entry_interrupt_override): Likewise.
11199 (grub_acpi_madt_entry_sapic): Likewise.
11200 (grub_acpi_madt_entry_lsapic): Likewise.
11201 (grub_acpi_madt_entry_platform_int_source): Likewise.
11202 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
11203 (PRIuGRUB_UINT32_T): Likewise.
11204 (PRIxGRUB_UINT64_T): Likewise.
11205
11206 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 Implement loading palette on ieee1275_fb.
11209
11210 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
11211 (have_setcolors): Likewise.
11212 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
11213 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
11214 (grub_video_ieee1275_set_palette): Implement.
11215
11216 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11217 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
11218
11219 * util/grub-install.in (grub_partition): New variable.
11220 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
11221 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
11222 Fixes a bug reported by Yves Blusseau.
11223
11224 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 Fix emu on mipsel.
11227
11228 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
11229 =grub_cpu_flush_cache on all mips and not only yeeloong.
11230 * configure.ac (COND_mips): New conditional.
11231 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
11232 platforms.
11233 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
11234 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
11235 [GRUB_LINKER_HAVE_INIT]: New function.
11236 (grub_emu_post_init): Likewise.
11237 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
11238 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
11239 * include/grub/cache.h (_mips): Include mips/cache.h.
11240 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
11241 LVM and RAID prototypes.
11242 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
11243 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
11244 function.
11245
11246 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11247
11248 * util/grub-install.in: Don't try to verify core.img until after
11249 running grub-mkimage to create it.
11250
11251 2010-09-10 Robert Millan <rmh@gnu.org>
11252
11253 * util/grub.d/10_hurd.in: Add misc readability checks.
11254 * util/grub.d/10_kfreebsd.in: Likewise.
11255 * util/grub.d/10_linux.in: Likewise.
11256
11257 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11258
11259 * util/grub-install.in: ${imgext} won't be defined here until the
11260 install branch is merged. For the meantime, only verify core.img on
11261 i386-pc and sparc64-ieee1275 platforms.
11262
11263 2010-09-10 Robert Millan <rmh@gnu.org>
11264
11265 Solaris support in grub_find_zpool_from_dir(). Thanks
11266 Seth Goldberg for referring to getextmntent() facility.
11267
11268 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
11269 `sys/mkdev.h'.
11270 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
11271 `<sys/mnttab.h>'.
11272 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
11273 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
11274 method for finding zpool name.
11275
11276 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11277
11278 grub-fstest needs the host and hostfs modules while other utilities
11279 actively require those modules to be absent, so grub-fstest needs
11280 its own initialisation and finalisation code.
11281
11282 * Makefile.am (grub_fstest.pp): New target.
11283 (grub_fstest_init.lst): Likewise.
11284 (grub_fstest_init.c): Likewise.
11285 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
11286
11287 2010-09-10 Robert Millan <rmh@gnu.org>
11288
11289 * configure.ac: Check for `struct statfs.f_fstypename' and
11290 `struct statfs.f_mntfromname'.
11291
11292 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
11293 kFreeBSD-specific code.
11294
11295 2010-09-10 Robert Millan <rmh@gnu.org>
11296
11297 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
11298 on ZFS. Now non-main filesystems are supported as / too.
11299
11300 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
11301
11302 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
11303 and grub-core/disk/host.c to ...
11304 (grub-fstest): ... here. Having the host disk implementation
11305 present confuses grub-probe and other utility programs.
11306
11307 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
11308 when writing to a file, not when writing to stdout.
11309
11310 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
11311
11312 * tests/partmap_test.in: New test for partitions.
11313 * Makefile.util.def: Rules for new test.
11314
11315 2010-09-09 Robert Millan <rmh@gnu.org>
11316
11317 * util/grub-probe.c (probe): Fix a pair of unhandled error
11318 conditions.
11319
11320 2010-09-09 Robert Millan <rmh@gnu.org>
11321
11322 Basic Btrfs support (detection and UUID).
11323
11324 * grub-core/fs/btrfs.c: New file.
11325 * Makefile.util.def (library): Register btrfs.c.
11326 * grub-core/Makefile.core.def: Likewise.
11327
11328 2010-09-08 Robert Millan <rmh@gnu.org>
11329
11330 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
11331 with (optional) parameters to specify device and relative path.
11332 * util/grub-install.in: Use is_path_readable_by_grub() to
11333 verify readability of a few critical files.
11334 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
11335 verify readability of grub.cfg.new.
11336
11337 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 Split minix.mod into minix.mod and minix2.mod.
11340
11341 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
11342 * grub-core/Makefile.core.def (minix2): New module.
11343 * grub-core/fs/minix.c: Use definitions instead of runtime version
11344 checking.
11345 * grub-core/fs/minix2.c: New file.
11346
11347 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11348
11349 Add new --boot-directory option to replace --root-directory
11350
11351 * util/grub-install.in: Add new --boot-directory option
11352 * util/grub-reboot.in: Likewise.
11353 * util/grub-set-default.in: Likewise.
11354
11355 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11356
11357 * util/grub-mkconfig.in: Use new variable.
11358
11359 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11360
11361 * configure.ac: Define some useful variables.
11362
11363 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11366 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
11367 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
11368 Use terminfo and don't use cursor-on/cursor-off unless it's known
11369 to work.
11370 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
11371 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
11372
11373 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
11374
11375 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
11376 starts with "(,", fill the drive containing the loaded image in
11377 between those two characters, but expect that a full partition
11378 specification including partition map names will follow.
11379
11380 2010-09-08 Robert Millan <rmh@gnu.org>
11381
11382 * configure.ac: Remove `--enable-grub-fstest' option.
11383 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
11384
11385 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
11386 `grub-fstest' instead of `grub-probe' for readability verification.
11387 * util/grub-probe.c (probe): Remove readability verification kludge.
11388
11389 2010-09-08 Robert Millan <rmh@gnu.org>
11390
11391 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
11392 initializing `GRUB_FS'.
11393
11394 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
11395
11396 Not command (!) support to GRUB script.
11397
11398 * tests/grub_script_not.in: New test.
11399 * Makefile.util.def: Rules for new test.
11400
11401 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
11402 ! command as a special case.
11403 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
11404
11405 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11406
11407 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
11408 grub_free.
11409
11410 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11411
11412 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
11413
11414 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11415
11416 * docs/grub.texi (Shell-like scripting): Documentation for break,
11417 continue, shift and return commands.
11418
11419 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
11420
11421 Rename CD-ROM to cd on BIOS.
11422
11423 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
11424 "cd".
11425 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
11426
11427 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11428
11429 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
11430 * util/grub-probe.c (main): Likewise.
11431 * util/i386/pc/grub-setup.c (main): Likewise.
11432 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
11433 Reported and debugged by: alexxy
11434
11435 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11436
11437 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
11438 diagnostic info.
11439
11440 2010-09-05 Jo Shields <directhex@apebox.org>
11441
11442 * util/grub.d/30_os-prober.in: Add missing classes.
11443
11444 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11445
11446 * docs/grub.texi (Theme file format): Document new position format.
11447
11448 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11449
11450 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
11451 a table. Use @code instead of @verbatim.
11452
11453 2010-09-05 Colin D Bennett <colin@gibibit.com>
11454
11455 Gfxmenu documentation.
11456
11457 * docs/grub.texi (Theme file format): New chapter.
11458
11459 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11460
11461 * grub-core/Makefile.core.def (xzio): New module.
11462 * grub-core/io/xzio.c: New file.
11463 * grub-core/lib/xzembed/xz.h: New file (from xembed).
11464 * grub-core/lib/xzembed/xz_config.h: Likewise.
11465 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
11466 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
11467 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
11468 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
11469 * grub-core/lib/xzembed/xz_private.h: Likewise.
11470 * grub-core/lib/xzembed/xz_stream.h: Likewise.
11471 * include/grub/file.h (grub_file_filter_id): New compression filter
11472 GRUB_FILE_FILTER_XZIO.
11473
11474 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11475
11476 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
11477 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
11478 size.
11479
11480 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
11483 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
11484
11485 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 Uncompressed checksum support.
11488
11489 * grub-core/commands/hashsum.c (options): Add option --uncompress.
11490 (check_list): New parameter uncompress.
11491 (grub_cmd_hashsum): Handle --uncompress.
11492
11493 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 Reintroduce testload.
11496
11497 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
11498 from here ...
11499 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
11500 (GRUB_MOD_INIT): New function.
11501 (GRUB_MOD_FINI): Likewise.
11502 * grub-core/Makefile.core.def (testload): New module.
11503
11504 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11505
11506 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
11507 (uint8_t): New type.
11508 (uint16_t): Likewise.
11509 (uint32_t): Likewise.
11510 (uint64_t): Likewise.
11511
11512 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11513
11514 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
11515
11516 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
11519 Made static.
11520 (grub_gzfile_open): Removed. All users updated.
11521 (GRUB_MOD_INIT): New function.
11522 (GRUB_MOD_FINI): Likewise.
11523 * grub-core/kern/file.c (grub_file_filters_all): New variable.
11524 (grub_file_filters_enabled): Likewise.
11525 (grub_file_open): Handle filters.
11526 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
11527 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
11528 * include/grub/file.h (grub_file_filter_id_t): New type.
11529 (grub_file_filter_t): Likewise.
11530 (grub_file_filters_all): New extern variable.
11531 (grub_file_filters_enabled): Likewise.
11532 (grub_file_filter_register): New inline function.
11533 (grub_file_filter_unregister): Likewise.
11534 (grub_file_filter_disable): Likewise.
11535 (grub_file_filter_disable_compression): Likewise.
11536 * include/grub/gzio.h: Removed.
11537
11538 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11539
11540 Filename expansion support for wildcards in GRUB script.
11541
11542 * tests/grub_script_expansion.in: New test.
11543 * Makefile.util.def: Rule for new test.
11544
11545 * grub-core/commands/wildcard.c: New file, implements filename
11546 expansion support for GRUB script.
11547 * grub-core/Makefile.core.def: Rule update for regexp.mod.
11548 * grub-core/script/argv.c: Cosmetic changes.
11549 * grub-core/script/execute.c (grub_script_arglist_to_argv):
11550 Refactored to perform wildcard expansion on arguments.
11551 * include/grub/script_sh.h (grub_script_wildcard_translator): New
11552 struct.
11553
11554 * tests/util/grub-shell.in: Fix quoting for read input.
11555
11556 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11557
11558 Support for updating environment variables with matched substrings
11559 of regexp.
11560
11561 * tests/grub_cmd_regexp.in: New test.
11562 * Makefile.util.def: Rule for new test.
11563
11564 * grub-core/commands/regexp.c: New option -s to update environment
11565 variables with regexp matches.
11566
11567 2010-09-04 Szymon Janc <szymon@janc.net.pl>
11568
11569 * include/grub/file.h (grub_file): New member not_easly_seekable.
11570 (grub_file_seekable): New inline function.
11571 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
11572 easily seekable.
11573 (grub_gzio_open): Set not_easly_seekable.
11574 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
11575 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
11576
11577 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11578
11579 Support for options to appear multiple times on cmdline.
11580
11581 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
11582 * grub-core/commands/extcmd.c: Support for repeatable option.
11583 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
11584 repeatable option support.
11585
11586 Refactor menuentry into a regular command.
11587
11588 * grub-core/commands/menuentry.c: New file, menuentry command
11589 implementation.
11590 * grub-core/Makefile.core.def: Rule update for normal.mod.
11591 * grub-core/normal/main.c: Moved menuentry creation to
11592 grub-core/commands/menuentry.c.
11593 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
11594 (grub_menu_execute_entry_real): Removed.
11595 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
11596 function.
11597 (grub_script_execute_menuentry): Removed.
11598 * grub-core/script/parser.y (menuentry): Removed.
11599 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
11600 * grub-core/script/yylex.l (menuentry): Removed.
11601 * include/grub/menu.h (grub_menu_init): New prototype.
11602 (grub_menu_fini): New prototype.
11603 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
11604 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
11605 (grub_script_execute_sourcecode): New prototype.
11606
11607 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11608
11609 "return" command for GRUB script functions.
11610
11611 * tests/grub_script_return.in: New test.
11612 * Makefile.util.def: Rules for new test.
11613
11614 * grub-core/script/execute.c (grub_script_return): New function.
11615 * grub-core/script/main.c: Register/unregister return commaond.
11616 * include/grub/script_sh.h (grub_script_return): New prototype.
11617
11618 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11619
11620 "setparams" command to update positional parameters.
11621
11622 * tests/grub_script_setparams.in: New test.
11623 * Makefile.util.def: Rules for new test.
11624
11625 * grub-core/script/argv.c (grub_script_argv_make): New function.
11626 * grub-core/script/execute.c (replace_scope): New function.
11627 (grub_script_setparams): New function.
11628 * grub-core/script/lexer.c: Remove unused variables.
11629 * grub-core/script/main.c: Register/unregister setparams command.
11630 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
11631 (grub_script_setparams): New prototype.
11632
11633 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11634
11635 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
11636 grub_free order.
11637
11638 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11639
11640 Support for passing block of commands as an argument to extcmds.
11641
11642 * Makefile.util.def: Rules for new test.
11643 * tests/grub_script_blockarg.in: New test.
11644 * grub-core/tests/test_blockarg.c: New file, block argument
11645 command used in the test.
11646
11647 * include/grub/extcmd.h (grub_extcmd_context): New struct.
11648 (grub_register_extcmd_prio): New function prototype.
11649 (grub_extcmd_dispatcher): New function prototype.
11650 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
11651 type.
11652 * include/grub/script_sh.h (struct grub_script): New members
11653 `children', `next_siblings' and `refcnt' for block arguments and
11654 reference counting.
11655 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
11656 (grub_script_arg): New member `script' for block argument.
11657 (grub_script_argv): New member `script' for block argument.
11658 (grub_parser_param): New member `scripts' for block argument.
11659 (grub_script_mem_free): New extern function prototype.
11660 (grub_script_ref): New function prototype.
11661 (grub_script_unref): New function prototype.
11662
11663 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
11664 extcmd form to support block arguments.
11665 * grub-core/script/argv.c: Block arguments support.
11666 * grub-core/script/execute.c: Likewise.
11667 * grub-core/script/lexer.c: Likewise.
11668 * grub-core/script/main.c: Likewise.
11669 * grub-core/script/script.c: Likewise.
11670 * grub-core/script/parser.y: Likewise. New `block' and `block0'
11671 non-terminals.
11672
11673 * grub-core/commands/acpi.c: Update extcmd implementations with
11674 grub_extcmd_context_t.
11675 * grub-core/commands/cat.c: Likewise.
11676 * grub-core/commands/echo.c: Likewise.
11677 * grub-core/commands/extcmd.c: Likewise.
11678 * grub-core/commands/hashsum.c: Likewise.
11679 * grub-core/commands/hdparm.c: Likewise.
11680 * grub-core/commands/help.c: Likewise.
11681 * grub-core/commands/hexdump.c: Likewise.
11682 * grub-core/commands/i386/cpuid.c: Likewise.
11683 * grub-core/commands/i386/pc/drivemap.c: Likewise.
11684 * grub-core/commands/i386/pc/halt.c: Likewise.
11685 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11686 * grub-core/commands/iorw.c: Likewise.
11687 * grub-core/commands/keystatus.c: Likewise.
11688 * grub-core/commands/loadenv.c: Likewise.
11689 * grub-core/commands/ls.c: Likewise.
11690 * grub-core/commands/lspci.c: Likewise.
11691 * grub-core/commands/memrw.c: Likewise.
11692 * grub-core/commands/probe.c: Likewise.
11693 * grub-core/commands/search_wrap.c: Likewise.
11694 * grub-core/commands/setpci.c: Likewise.
11695 * grub-core/commands/sleep.c: Likewise.
11696 * grub-core/disk/loopback.c: Likewise.
11697 * grub-core/hello/hello.c: Likewise.
11698 * grub-core/loader/i386/bsd.c: Likewise.
11699 * grub-core/loader/xnu.c: Likewise.
11700 * grub-core/term/gfxterm.c: Likewise.
11701 * grub-core/term/serial.c: Likewise.
11702 * grub-core/tests/lib/functional_test.c: Likewise.
11703
11704 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11705
11706 Multi-line quoted strings support.
11707
11708 * grub-core/script/lexer.c (append_newline): Removed.
11709 (grub_script_lexer_yywrap): Refactored.
11710 (grub_script_lexer_init): Refactored.
11711 * grub-core/script/yylex.l (yywrap): New function.
11712 (grub_lexer_resplit): New function.
11713 (grub_lexer_unput): New function.
11714 * include/grub/script_sh.h (grub_lexer_param): New members, unput
11715 and resplit.
11716 * tests/grub_script_echo1.in: Added few more testcases.
11717
11718 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
11719
11720 * grub-core/kern/misc.c: Don't add abort alias in utils.
11721 Reported by: echoline.
11722
11723 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
11724
11725 Add missing files into "make dist" tarball for other platforms.
11726
11727 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
11728 * conf/Makefile.common (dist_noinst_DATA): New variable.
11729 * conf/Makefile.extra-dist: Added missing make dist files.
11730 * grub-core/Makefile.core.def: Likewise.
11731
11732 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
11733
11734 Compress grub_prefix.
11735
11736 * grub-core/boot/i386/pc/lnxboot.S: Use
11737 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
11738 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
11739 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
11740 GRUB_MACHINE_PREFIX_END. All users updated.
11741 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
11742 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
11743 + 0x40.
11744 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
11745 * util/grub-mkimage.c (image_target_desc): Change data_end to
11746 prefix_end. All users updated.
11747
11748 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
11749
11750 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
11751 value.
11752 (grub_openbsd_boot): Likewise.
11753 (grub_netbsd_boot): Likewise.
11754 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
11755 (grub_xnu_boot): Likewise.
11756
11757 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
11758
11759 * configure.ac: Clean LIBS variable after tests.
11760
11761 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
11762
11763 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
11764
11765 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
11766
11767 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
11768 echo if libdevmapper will be used.
11769
11770 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
11771
11772 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
11773 constant for the same file.
11774
11775 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
11776
11777 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
11778
11779 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
11780
11781 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
11782 grub-core/*.pp.
11783
11784 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
11785
11786 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
11787 required by the boot protocol.
11788
11789 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
11790 ebp and edi members.
11791 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
11792 state.ebp and state.edi.
11793 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
11794 %ebp and %edi according to grub_relocator32_ebp and
11795 grub_relocator32_edi respectively.
11796 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
11797 and state.edi.
11798
11799 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
11800
11801 Add i386-pc-pxe image target.
11802
11803 * util/grub-mkimage.c (image_target_desc): New enum value
11804 IMAGE_I386_PC_PXE.
11805 (image_targets): New target i386-pc-pxe.
11806 (generate_image): Handle i386-pc-pxe image.
11807
11808 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
11809
11810 Fix grub_pxe_scan.
11811
11812 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
11813 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
11814 All users updated.
11815 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
11816 (grub_pxe_pxenv): Correct type.
11817
11818 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
11819
11820 * NEWS: Document most of the important changes since 1.98.
11821
11822 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
11823
11824 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
11825 generated manual page) a little.
11826
11827 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
11828
11829 * docs/grub.texi: Add myself as an author.
11830
11831 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
11832
11833 * Makefile.util.def (libgrub.a): Add missing sunpc.
11834 Reported by: Seth Goldberg.
11835
11836 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 Interrupt wrapping and code simplifications.
11839
11840 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
11841 x86_noieee1275 which are functionaly equivalent in this case.
11842 (grub-install): Make source on each platform explicit. Enable on
11843 all noemu.
11844 * gentpl.py (x86_efi_pc): Removed group.
11845 (x86_noefi): Likewise.
11846 (i386_noefi): Likewise.
11847 (x86_noieee1275): Likewise.
11848 (i386_noieee1275): Likewise.
11849 (i386_noefi_noieee1275): Likewise.
11850 (i386_pc_qemu_coreboot): Likewise.
11851 (i386_coreboot_multiboot): Likewise.
11852 (i386_pc_coreboot_multiboot_qemu): Likewise.
11853 (x86_noefi_mips): Likewise.
11854 (noieee1275): Likewise.
11855 (ieee1275_mips): Likewise.
11856 (noemu_noieee1275): Likewise.
11857 (cmos): New group.
11858 (usb): Likewise.
11859 (videoinkernel): Likewise.
11860 (videomodules): Likewise.
11861 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
11862 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
11863 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
11864 include/grub/loader.h, include/grub/msdos_partition.h,
11865 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
11866 include/grub/machine/console.h, include/grub/machine/vga.h,
11867 include/grub/machine/vbe.h, include/grub/machine/init.h,
11868 include/grub/machine/kernel.h, include/grub/cpu/time.h,
11869 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
11870 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
11871 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
11872 * grub-core/Makefile.core.def (kernel): Explicit the source for
11873 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
11874 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
11875 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
11876 Use videoinkernel tag.
11877 (usb): Enable on all usb.
11878 (usbserial_common): Likewise.
11879 (usbserial_pl2303): Likewise.
11880 (usbserial_ftdi): Likewise.
11881 (uhci): Enable on all x86.
11882 (ohci): Enable on all pci.
11883 (cmostest): Enable on all CMOS.
11884 (acpi): Include commands/acpi.c on all platforms.
11885 (halt): Add relevant lib/*/halt.c.
11886 (hdparm): Enable on all pci.
11887 (lspci): Likewise.
11888 (usbtest): Enable on all usb.
11889 (ata): Enable on all pci.
11890 (ata_pthru): Likewise.
11891 (usbms): Enable on all usb.
11892 (usb_keyboard): Likewise.
11893 (font): Use tag videomodules.
11894 (bufio): Likewise.
11895 (datetime): Use tag cmos. Enable on all noemu.
11896 (mmap): Use tags common and x86.
11897 (gfxterm): Use tag videomodules.
11898 (bitmap): Likewise.
11899 (bitmap_scale): Likewise.
11900 (video_fb): Likewise.
11901 (video): Likewise.
11902 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
11903 adjust padding accordingly. All users updated.
11904 (grub_ohci_transaction): Fix bad format specification.
11905 (GRUB_MOD_INIT): Add asserts for struct size.
11906 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
11907 (grub_alloc_td): Likewise.
11908 (grub_free_queue): Likewise.
11909 (grub_uhci_transfer): Likewise.
11910 (grub_uhci_transaction): Fix bad format specification.
11911 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
11912 (grub_usb_bulk_readwrite): Likewise.
11913 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
11914 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
11915 Made static.
11916 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
11917 Made static.
11918 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
11919 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
11920 Transformed into C.
11921 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
11922 Moved from here ...
11923 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
11924 ... here. Transformed into C. Made static.
11925 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
11926 Moved from here ...
11927 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
11928 ... here. Transformed into C. Made static.
11929 * grub-core/kern/i386/pc/startup.S
11930 (grub_biosdisk_check_int13_extensions): Moved from here ...
11931 * grub-core/disk/i386/pc/biosdisk.c
11932 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
11933 Made static.
11934 * grub-core/kern/i386/pc/startup.S
11935 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
11936 * grub-core/disk/i386/pc/biosdisk.c
11937 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
11938 Transformed into C. Made static.
11939 * grub-core/kern/i386/pc/startup.S
11940 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
11941 * grub-core/disk/i386/pc/biosdisk.c
11942 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
11943 Transformed into C. Made static.
11944 * grub-core/kern/i386/pc/startup.S
11945 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
11946 * grub-core/disk/i386/pc/biosdisk.c
11947 (grub_biosdisk_get_diskinfo_standard): ... here.
11948 Transformed into C. Made static.
11949 * grub-core/kern/i386/pc/startup.S
11950 (grub_biosdisk_get_num_floppies): Moved from here ...
11951 * grub-core/disk/i386/pc/biosdisk.c
11952 (grub_biosdisk_get_num_floppies): ... here.
11953 Transformed into C. Made static.
11954 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
11955 New function.
11956 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
11957 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
11958 Transformed into C. Made static.
11959 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
11960 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
11961 Transformed into C. Made static.
11962 * grub-core/kern/i386/ieee1275/init.c: Removed.
11963 * grub-core/kern/i386/misc.S: Likewise.
11964 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
11965 Splitted from here ...
11966 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
11967 Transformed into C. Made static. All users updated.
11968 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
11969 Transformed into C. Made static. All users updated.
11970 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
11971 Moved from here...
11972 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
11973 Transformed into C. Made static. All users updated.
11974 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
11975 Moved from here...
11976 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
11977 Transformed into C. Made static. All users updated.
11978 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
11979 Removed (replaced by C version).
11980 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
11981 Moved from here...
11982 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
11983 Transformed into C. Made static.
11984 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
11985 Moved from here...
11986 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
11987 ... here. Transformed into C.
11988 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
11989 Moved from here...
11990 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
11991 ... here. Transformed into C.
11992 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
11993 Moved from here...
11994 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
11995 ... here. Transformed into C. Made static.
11996 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
11997 Moved from here...
11998 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
11999 ... here. Transformed into C.
12000 * grub-core/kern/i386/pc/startup.S
12001 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
12002 * grub-core/video/i386/pc/vbe.c
12003 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
12004 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
12005 Moved from here...
12006 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
12007 ... here. Transformed into C.
12008 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
12009 Moved from here...
12010 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
12011 ... here. Transformed into C.
12012 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
12013 Moved from here...
12014 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
12015 ... here. Transformed into C.
12016 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
12017 Moved from here...
12018 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
12019 ... here. Transformed into C.
12020 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
12021 Moved from here...
12022 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
12023 ... here. Transformed into C. Made static.
12024 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
12025 Moved from here...
12026 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
12027 ... here. Transformed into C. Made static.
12028 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
12029 Moved from here...
12030 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
12031 ... here. Transformed into C. Made static.
12032 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
12033 pxe_rm_entry as third argument.
12034 (grub_bios_interrupt): New function.
12035 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
12036 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
12037 of calling grub_stop.
12038 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
12039 * grub-core/lib/efi/halt.c (grub_halt): ...here.
12040 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
12041 * grub-core/lib/emu/halt.c (grub_halt): ... here.
12042 * grub-core/lib/i386/halt.c: Moved from here ...
12043 * grub-core/lib/i386/halt.c: ... here.
12044 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
12045 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
12046 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
12047 grub_stop_floppy.
12048 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
12049 * include/grub/i386/coreboot/init.h: Removed.
12050 * include/grub/i386/multiboot/init.h: Likewise.
12051 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
12052 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
12053 * include/grub/i386/pc/int.h: New file.
12054 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
12055 (grub_pxe_scan): Removed.
12056 (grub_pxe_call): Update prototype.
12057 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
12058 prototypes.
12059 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
12060 * include/grub/i386/qemu/init.h: Removed.
12061 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
12062 noreturn.
12063 (grub_halt): Likewise.
12064 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
12065 (grub_reboot): Likewise.
12066 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
12067 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
12068 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
12069
12070 2010-08-30 Robert Millan <rmh@gnu.org>
12071
12072 * NEWS: Document addition of ZFS support in `grub-install' and
12073 `grub-mkconfig'.
12074
12075 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
12076
12077 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
12078 dprintf output.
12079
12080 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12081
12082 Remove leftover embedding of font objects.
12083
12084 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12085 * util/grub-install.in (font): Removed.
12086 * util/grub-mkimage.c (generate_image): Remove font support. All users
12087 updated.
12088
12089 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 Remove leftover embedding of font objects.
12092
12093 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12094 * util/grub-install.in (font): Removed.
12095 * util/grub-mkimage.c (generate_image): Remove font support. All users
12096 updated.
12097
12098 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 * docs/grub.texi (Network): Fix reference to pxe_blksize.
12101 Reported by: Ian Turner
12102
12103 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12104
12105 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
12106 timeout to avoid indefinite boot stalling.
12107
12108 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12109
12110 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
12111 (grub_env_write_color_highlight): Likewise.
12112
12113 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12114
12115 * grub-core/normal/term.c (print_more): Return to normal and not
12116 to standard state after printing "---MORE---".
12117
12118 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12119
12120 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
12121 Mask out the bit 0x80 since it has other meaning that specifiing color.
12122
12123 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12124
12125 New relocator. Allows for more kernel support and more straightforward
12126 loader writing.
12127
12128 * Makefile.am (BOOTTARGET): New variable.
12129 (QEMU32): Likewise.
12130 (linux.init.x86_64): New target.
12131 (linux.init.i386): Likewise.
12132 (multiboot.elf): Likewise.
12133 (kfreebsd.elf): Likewise.
12134 (kfreebsd.aout): Likewise.
12135 (pc-chainloader.elf): Likewise.
12136 (pc-chainloader.bin): Likewise.
12137 (ntldr.elf): Likewise.
12138 (ntldr.bin): Likewise.
12139 (multiboot2.elf): Likewise.
12140 (kfreebsd.init.x86_64): Likewise.
12141 (kfreebsd.init.i386): Likewise.
12142 (knetbsd.init.i386): Likewise.
12143 (kopenbsd.init.i386): Likewise.
12144 (knetbsd.init.x86_64): Likewise.
12145 (kopenbsd.init.x86_64): Likewise.
12146 (linux-initramfs.i386): Likewise.
12147 (linux-initramfs.x86_64): Likewise.
12148 (kfreebsd-mfsroot.i386.img): Likewise.
12149 (knetbsd.image.i386): Likewise.
12150 (kopenbsd.image.i386): Likewise.
12151 (kopenbsd.image.x86_64): Likewise.
12152 (knetbsd.miniroot-image.i386.img): Likewise.
12153 (kfreebsd-mfsroot.x86_64.img): Likewise.
12154 (knetbsd.image.x86_64): Likewise.
12155 (knetbsd.miniroot-image.x86_64.img): Likewise.
12156 (kfreebsd-mfsroot.i386.gz): Likewise.
12157 (bootcheck-kfreebsd-i386): Likewise.
12158 (kfreebsd-mfsroot.x86_64.gz): Likewise.
12159 (bootcheck-kfreebsd-x86_64): Likewise.
12160 (knetbsd.miniroot-image.i386.gz): Likewise.
12161 (bootcheck-knetbsd-i386): Likewise.
12162 (bootcheck-kopenbsd-i386): Likewise.
12163 (bootcheck-kopenbsd-x86_64): Likewise.
12164 (knetbsd.miniroot-image.x86_64.gz): Likewise.
12165 (bootcheck-knetbsd-x86_64): Likewise.
12166 (bootcheck-linux-i386): Likewise.
12167 (bootcheck-linux-x86_64): Likewise.
12168 (bootcheck-linux16-i386): Likewise.
12169 (bootcheck-linux16-x86_64): Likewise.
12170 (bootcheck-multiboot): Likewise.
12171 (bootcheck-multiboot2): Likewise.
12172 (bootcheck-kfreebsd-aout): Likewise.
12173 (bootcheck-pc-chainloader): Likewise.
12174 (bootcheck-ntldr): Likewise.
12175 (CLEANFILES): Add new targets.
12176 (BOOTCHECKS): New variable.
12177 (.PHONY): Add bootchecks.
12178 (SUCCESSFUL_BOOT_STRING): New variable.
12179 (BOOTCHECK_TIMEOUT): Likewise.
12180 (bootcheck): New target
12181 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
12182 * configure.ac: Correct efiemu excuse.
12183 * docs/grub.texi (Supported kernels): New chapter.
12184 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
12185 include/grub/mm_private.h. Simplify inclusion of
12186 include/grub/boot.h, include/grub/loader.h
12187 and include/grub/msdos_partition.h
12188 (KERNEL_HEADER_FILES) [i386_coreboot]:
12189 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
12190 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
12191 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
12192 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
12193 include/grub/machine/loader.h.
12194 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
12195 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
12196 extra_dist.
12197 (pci.mod): Enable on i386-multiboot.
12198 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
12199 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
12200 i386-qemu.
12201 (relocator.mod): Rewritten.
12202 (aout.mod): Enable on all x86.
12203 (bsd.mod): Likewise.
12204 (ntldr.mod): New module.
12205 (linux.mod): Use loader/i386/linux.c on all x86.
12206 (xnu.mod): Enable on all x86.
12207 (vga_text.mod): disable on EFI and QEMU.
12208 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
12209 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
12210 * grub-core/efiemu/loadcore.c: Likewise.
12211 * grub-core/efiemu/main.c: Likewise.
12212 (grub_efiemu_exit_boot_services): Removed.
12213 (grub_efiemu_finish_boot_services): Likewise.
12214 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
12215 function.
12216 * grub-core/efiemu/i386/nocfgtables.c: New file.
12217 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
12218 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
12219 (grub_efi_finish_boot_services): Moved from here ...
12220 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
12221 Fille finish memory map and related data.
12222 (finish_mmap_buf): New variable.
12223 (grub_efi_uintn_t finish_mmap_size): Likewise.
12224 (grub_efi_uintn_t finish_key): Likewise.
12225 (grub_efi_uintn_t finish_desc_size): Likewise.
12226 (grub_efi_uint32_t finish_desc_version): Likewise.
12227 (grub_efi_is_finished): Likewise.
12228 (grub_efi_get_memory_map): Use saved memory map if EFI is already
12229 finished.
12230 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
12231 (grub_elf64_phdr_iterate): Likewise.
12232 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
12233 (grub_os_area_size): Likewise.
12234 (grub_machine_init): Don't reserve os area.
12235 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
12236 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12237 * grub-core/kern/i386/loader.S: Removed.
12238 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
12239 (grub_os_area_size): Likewise.
12240 (grub_machine_init): Don't reserve os area.
12241 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12242 Don't call grub_dl_unload_all.
12243 Don't include loader.S.
12244 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
12245 Declare the memory after _end as available.
12246 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
12247 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
12248 (GRUB_MM_ALLOC_MAGIC): Moved from here...
12249 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
12250 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
12251 * include/grub/mm_private.h (grub_mm_header): ... here.
12252 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
12253 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
12254 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
12255 (grub_mm_region): ..here. Removed addr. Added pre_size.
12256 All users updated.
12257 * grub-core/kern/mm.c (base): Renamed to ...
12258 (grub_mm_base): ... this. Made global.
12259 (grub_real_malloc): Alloc from end of region.
12260 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
12261 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
12262 * grub-core/kern/powerpc/cache_flush.S: ... here.
12263 * grub-core/lib/efi/relocator.c: New file.
12264 * grub-core/lib/i386/relocator.c: Rewritten.
12265 * grub-core/lib/i386/relocator16.S: New file.
12266 * grub-core/lib/i386/relocator32.S: Likewise.
12267 * grub-core/lib/i386/relocator64.S: Likewise.
12268 * grub-core/lib/i386/relocator_asm.S: Rewritten.
12269 * grub-core/lib/i386/relocator_common.S: New file.
12270 * grub-core/lib/ieee1275/relocator.c: Likewise.
12271 * grub-core/lib/mips/relocator.c: Rewritten.
12272 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
12273 stylistic adjustments.
12274 * grub-core/lib/powerpc/relocator.c: New file.
12275 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
12276 * grub-core/lib/relocator.c: Rewritten.
12277 * grub-core/lib/x86_64/relocator_asm.S: New file.
12278 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
12279 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
12280 (bsd_tag): New struct.
12281 (tags): New variable.
12282 (tags_last): Likewise.
12283 (netbsd_module): New struct.
12284 (netbsd_mods): New variable.
12285 (netbsd_mods_last): Likewise.
12286 (openbsd_opts): New parameter "serial".
12287 (OPENBSD_SERIAL_ARG): New definition.
12288 (netbsd_opts): New parameter "serial".
12289 (NETBSD_SERIAL_ARG): New definition.
12290 (grub_freebsd_add_meta): Reorganised into ...
12291 (grub_bsd_add_meta): ...this. All users updated.
12292 (grub_freebsd_add_mmap): Reorganised into ...
12293 (generate_e820_mmap): ...this...
12294 (grub_bsd_add_mmap): ...and this. All users updated.
12295 (grub_freebsd_list_modules): Use tags.
12296 (grub_netbsd_add_meta_module): New function.
12297 (grub_netbsd_list_modules): Likewise.
12298 (grub_freebsd_boot): Use relocator and finish EFI.
12299 (grub_openbsd_boot): Likewise.
12300 (grub_netbsd_setup_video): New function.
12301 (grub_netbsd_add_modules): Likewise.
12302 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
12303 and finish EFI.
12304 (grub_bsd_unload): Unload tags.
12305 (grub_bsd_load_aout): Use relocator.
12306 (grub_bsd_elf32_size_hook): New function.
12307 (grub_bsd_elf32_hook): Use relocator.
12308 (grub_bsd_elf64_size_hook): New function.
12309 (grub_bsd_elf64_hook): Use relocator.
12310 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
12311 (grub_bsd_load): Zero-out openbsd_ramdisk.
12312 (grub_bsd_load): Use relocator.
12313 (grub_cmd_openbsd): Support serial.
12314 (grub_cmd_netbsd): Support modules.
12315 (grub_cmd_freebsd_module): Use relocator.
12316 (grub_netbsd_module_load): New function.
12317 (grub_cmd_netbsd_module): Likewise.
12318 (grub_cmd_openbsd_ramdisk): Likewise.
12319 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
12320 kopenbsd_ramdisk.
12321 (GRUB_MOD_FINI): Unregister new commands.
12322 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
12323 (grub_freebsd_load_elfmodule_obj): Use relocator.
12324 (grub_freebsd_load_elfmodule): Likewise.
12325 (grub_freebsd_load_elf_meta): Likewise.
12326 (grub_netbsd_load_elf_meta): New function.
12327 (grub_openbsd_find_ramdisk): Likewise.
12328 * grub-core/loader/i386/bsd_helper.S: Removed.
12329 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
12330 * grub-core/loader/i386/bsd_trampoline.S: Removed.
12331 * grub-core/loader/i386/efi/linux.c: Likewise.
12332 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
12333 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
12334 (DEFAULT_VIDEO_MODE): Likewise.
12335 (real_mode_target): New variable.
12336 (prot_mode_target): Likewise.
12337 (initrd_mem_target): Likewise.
12338 (relocator): Likewise.
12339 (efi_mmap_buf): Likewise.
12340 (efi_mmap_size): Likewise.
12341 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
12342 (free_pages): Use relocator.
12343 (allocate_pages): Account for efi_mmap and use relocator. Return error.
12344 (grub_linux_setup_video): Return error.
12345 (grub_linux_trampoline_start): Removed.
12346 (grub_linux_trampoline_end): Likewise.
12347 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
12348 andd video parameters depending on firmware.
12349 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
12350 [GRUB_MACHINE_EFI]: Pass EFI parameters.
12351 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
12352 (grub_cmd_initrd): Use relocator.
12353 * grub-core/loader/i386/linux_trampoline.S: Removed.
12354 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
12355 (elf_sec_entsize): Likewise.
12356 (elf_sec_shstrndx): Likewise.
12357 (elf_sections): Likewise.
12358 (grub_multiboot_load): Use relocator.
12359 (grub_multiboot_get_mbi_size): Account for sections.
12360 (grub_multiboot_make_mbi): Use relocator and support sections.
12361 (grub_multiboot_add_elfsyms): New function.
12362 (grub_multiboot_free_mbi): Free sections.
12363 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
12364 (grub_linux_real_target): Likewise.
12365 (grub_linux_real_chunk): Likewise.
12366 (grub_linux16_prot_size): Likewise.
12367 (grub_linux16_boot): Use relocator.
12368 (grub_linux_unload): Unload relocator.
12369 (grub_cmd_linux): Use relocator.
12370 (grub_cmd_initrd): Likewise.
12371 * grub-core/loader/i386/pc/ntldr.c: New file.
12372 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
12373 Don't try to guess CPU frequency.
12374 (grub_xnu_set_video): Stretch bitmap.
12375 (grub_xnu_boot): Use relocator.
12376 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
12377 (grub_linux_unload): Free relocator.
12378 (grub_linux_load32): Use relocator.
12379 (grub_linux_load64): Likewise.
12380 (grub_cmd_initrd): Likewise.
12381 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
12382 (grub_multiboot_unload): Unload relocator.
12383 (grub_cmd_multiboot): Use relocator.
12384 (grub_cmd_module): Likewise.
12385 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
12386 Use relocator and support sections.
12387 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
12388 (elf_sec_entsize): Likewise.
12389 (elf_sec_shstrndx): Likewise.
12390 (elf_sections): Likewise.
12391 (grub_multiboot_load): Use relocator.
12392 (grub_multiboot_get_mbi_size): Account for sections.
12393 (grub_multiboot_make_mbi): Use relocator and support sections.
12394 (grub_multiboot_add_elfsyms): New function.
12395 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
12396 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
12397 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
12398 Prototype changed. All users updated.
12399 (grub_xnu_align_heap): Simplified.
12400 (grub_xnu_writetree_toheap): Likewise.
12401 (grub_xnu_unload): Unload relocator.
12402 (grub_cmd_xnu_kernel): Use relocator.
12403 (grub_cmd_xnu_kernel64): Likewise.
12404 (grub_xnu_register_memory): Simplified.
12405 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
12406 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
12407 EFI is finished.
12408 (grub_console_checkkey): Likewise.
12409 (grub_console_getkey): Likewise.
12410 (grub_console_getwh): Likewise.
12411 (grub_console_getxy): Likewise.
12412 (grub_console_gotoxy): Likewise.
12413 (grub_console_cls): Likewise.
12414 (grub_console_setcolorstate): Likewise.
12415 (grub_console_setcursor): Likewise.
12416 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
12417 * grub-core/tests/boot/kbsd.init-i386.S: New file.
12418 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
12419 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
12420 * grub-core/tests/boot/kernel-8086.S: Likewise.
12421 * grub-core/tests/boot/kernel-i386.S: Likewise.
12422 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
12423 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
12424 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
12425 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
12426 * grub-core/tests/boot/knetbsd.cfg: Likewise.
12427 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
12428 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
12429 * grub-core/tests/boot/linux.cfg: Likewise.
12430 * grub-core/tests/boot/linux.init-i386.S: Likewise.
12431 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
12432 * grub-core/tests/boot/linux16.cfg: Likewise.
12433 * grub-core/tests/boot/multiboot.cfg: Likewise.
12434 * grub-core/tests/boot/multiboot2.cfg: Likewise.
12435 * grub-core/tests/boot/ntldr.cfg: Likewise.
12436 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
12437 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
12438 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
12439 New definition.
12440 * include/grub/dl.h (grub_dl_unload_all): Removed.
12441 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
12442 (grub_efi_finish_boot_services): Change prototype.
12443 (grub_efi_is_finished): New variable.
12444 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
12445 Changed prototype.
12446 (grub_efiemu_finish_boot_services): Removed.
12447 (grub_machine_efiemu_init_tables): New prototype.
12448 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
12449 (grub_elf64_phdr_iterate): Likewise.
12450 * include/grub/i386/bsd.h: Include relocator.h.
12451 (freebsd_tag_header): New struct.
12452 (grub_openbsd_bios_mmap): Removed.
12453 (grub_unix_real_boot): Removed.
12454 (grub_freebsd_load_elfmodule32): Changed prototype.
12455 (grub_freebsd_load_elfmodule_obj64): Likewise.
12456 (grub_freebsd_load_elf_meta32): Likewise.
12457 (grub_freebsd_load_elf_meta64): Likewise.
12458 (grub_freebsd_add_meta): Removed.
12459 (grub_netbsd_load_elf_meta32): New prototype.
12460 (grub_netbsd_load_elf_meta64): Likewise.
12461 (grub_bsd_add_meta): Likewise.
12462 (grub_openbsd_ramdisk_descriptor): New struct.
12463 (grub_openbsd_find_ramdisk32): New prototype.
12464 (grub_openbsd_find_ramdisk64): Likewise.
12465 * include/grub/i386/coreboot/loader.h: Removed.
12466 * include/grub/i386/efi/loader.h: Likewise.
12467 * include/grub/i386/ieee1275/loader.h: Likewise.
12468 * include/grub/i386/linux.h (linux_kernel_header): Change void *
12469 to grub_uint32_t.
12470 * include/grub/i386/loader.h: Removed.
12471 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
12472 value.
12473 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
12474 (grub_phys_addr_t): New type.
12475 (grub_vtop): New inline function.
12476 (grub_map_memory): Likewise.
12477 (grub_unmap_memory): Likewise.
12478 * include/grub/i386/multiboot/loader.h: Removed.
12479 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
12480 (NETBSD_BTINFO_CONSOLE): New definition.
12481 (NETBSD_BTINFO_SYMTAB): Likewise.
12482 (NETBSD_BTINFO_MODULES): Likewise.
12483 (NETBSD_BTINFO_FRAMEBUF): Likewise.
12484 (grub_netbsd_bootinfo): New struct.
12485 (grub_netbsd_btinfo_common): Use explicit bitsize.
12486 (grub_netbsd_btinfo_mmap_entry): Removed.
12487 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
12488 (grub_netbsd_btinfo_bootdisk): New struct.
12489 (grub_netbsd_btinfo_symtab): Likewise.
12490 (grub_netbsd_btinfo_serial): Likewise.
12491 (grub_netbsd_btinfo_modules): Likewise.
12492 (grub_netbsd_btinfo_framebuf): Likewise.
12493 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
12494 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
12495 Likewise.
12496 (grub_openbsd_bootargs): Use explicit bitsize.
12497 (grub_openbsd_bootarg_console): New struct.
12498 (GRUB_OPENBSD_COM_MAJOR): New definition.
12499 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
12500 * include/grub/i386/pc/efiemu.h: Removed.
12501 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
12502 * include/grub/i386/qemu/loader.h: Removed.
12503 * include/grub/i386/relocator.h: Rewritten.
12504 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
12505 * include/grub/mips/memory.h: New file.
12506 * include/grub/mips/multiboot.h: Rewritten.
12507 * include/grub/mips/relocator.h: Rewritten.
12508 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
12509 (grub_vtop): New function.
12510 (grub_map_memory): Likewise.
12511 (grub_unmap_memory): Likewise.
12512 * include/grub/misc.h (ALIGN_DOWN): New definition.
12513 * include/grub/mm.h (grub_mm_check_real): New proto.
12514 (GRUB_MM_CHECK): New definition.
12515 * include/grub/mm_private.h: New file.
12516 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
12517 (grub_multiboot_get_mbi_size): Removed.
12518 (grub_multiboot_make_mbi): Change prottype.
12519 (grub_multiboot_set_accepts_video): New proto.
12520 (grub_multiboot_add_elfsyms): Likewise.
12521 (grub_multiboot_payload_eip): New variable.
12522 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
12523 New prototype.
12524 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
12525 New definition.
12526 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
12527 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
12528 * include/grub/powerpc/ieee1275/loader.h: Removed.
12529 * include/grub/powerpc/memory.h: New file.
12530 * include/grub/powerpc/relocator.h: Likewise.
12531 * include/grub/relocator.h: Likewise.
12532 * include/grub/relocator_private.h: Likewise.
12533 * include/grub/sparc64/ieee1275/loader.h: Removed.
12534 * include/grub/x86_64/memory.h: New file.
12535 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
12536 (grub_xnu_heap_malloc): Likewise.
12537 (grub_xnu_heap_real_start): Removed.
12538 (grub_xnu_heap_start): Likewise.
12539 (grub_xnu_relocator): New variable.
12540 (grub_xnu_heap_target_start): Likewise.
12541 * tests/util/grub-shell.in: Support non-pc.
12542 * util/grub-mkimage.c (image_targets): Fix multiboot target.
12543
12544 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12545
12546 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
12547 on malloc error.
12548 (grub_bidi_logical_to_visual): Check that malloc succeded.
12549 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
12550 puts.
12551 (grub_xputs_normal): Likewise.
12552
12553 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12554
12555 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
12556 extra_dist.
12557
12558 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12559
12560 * grub-core/efiemu/runtime/efiemu.sh: Removed.
12561
12562 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12563
12564 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
12565
12566 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12567
12568 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
12569 dprintf.
12570
12571 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
12572
12573 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
12574
12575 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12576
12577 * grub-core/normal/term.c (print_more): Fix a memory leak.
12578 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
12579 (grub_xputs_normal): Likewise.
12580
12581 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12582
12583 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
12584 the begining of the string
12585
12586 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12587
12588 * grub-core/script/script.c (grub_script_parse): Free parsed on
12589 failure.
12590
12591 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12592
12593 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
12594 on failure.
12595
12596 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12597
12598 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
12599 return.
12600
12601 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12602
12603 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
12604 (scroll_up): Fix a memory leak.
12605
12606 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12607
12608 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
12609 errors.
12610
12611 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
12612
12613 Handle USB pendrives exposed as floppies.
12614
12615 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
12616 floppy.
12617 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
12618 Check for partitions on all devices.
12619
12620 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
12621
12622 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
12623 (readkey): Likewise.
12624
12625 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
12626
12627 Multiple variable names support to "export" command.
12628
12629 * normal/context.c (grub_cmd_export): "export" command supports
12630 multiple variable names.
12631
12632 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
12633
12634 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
12635 --target=drive output to Mach device name.
12636
12637 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
12638
12639 New Automake based build system for GRUB.
12640
12641 * ABOUT-NLS: New file.
12642 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
12643 in Makefile.util.def file.
12644 * Makefile.util.def: New file. Autogen build definitions file for
12645 GRUB host utils.
12646 * conf/Makefile.common: New file. Common variables for GRUB host
12647 utils and target modules.
12648 * conf/Makefile.extra-dist: New file. Extra files for make dist.
12649 * docs/Makefile.am: New file. Automake file for docs.
12650 * gentpl.py: New file. Python script to generate Autogen
12651 template.
12652 * grub-core/Makefile.am: New file. GRUB target modules' rules
12653 that doesn't fit in Makefile.core.def file.
12654 * grub-core/Makefile.core.def: New file. Autogen build
12655 definitions file for GRUB target modules.
12656 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
12657 specific setjmp.S file.
12658 * po/Makefile.am: New file.
12659
12660 * .bzrignore: New ignores.
12661 * INSTALL: New requirements, without Ruby.
12662 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
12663 * autogen.sh: Updated to invoke autogen as necessary.
12664 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
12665 and defines for Automake conditionals.
12666 * geninit.sh: Refactoring.
12667
12668 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
12669 necessary.
12670 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
12671 New prototype.
12672
12673 * include/grub/test.h: Fix functional test modules' naming.
12674 * grub-core/tests/example_functional_test.c: Fix test module name.
12675
12676 * util/misc.c: Hosted versions' of grub functions for libgrub.a
12677 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
12678 * util/grub-editenv.c: Likewise.
12679 * util/grub-fstest.c: Likewise.
12680 * util/grub-mkdevicemap.c: Likewise.
12681 * util/grub-mkfont.c: Likewise.
12682 * util/grub-mkimage.c: Likewise.
12683 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12684 * util/grub-probe.c: Likewise.
12685 * util/grub-script-check.c: Likewise.
12686 * util/i386/pc/grub-setup.c: Likewise.
12687 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12688
12689 * tests/util/grub-shell.in: Fix override directory path.
12690 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
12691 * util/import_gcry.py: Create Makefile.gcry.def file instead.
12692
12693 * util/lvm.c: Update #includes.
12694 * util/raid.c: Likewise.
12695 * util/resolve.c: Likewise.
12696 * grub-core/bus/emu/pci.c: Likewise.
12697 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
12698 * grub-core/lib/posix_wrap/string.h: Likewise.
12699 * grub-core/kern/emu/main.c: Likewise.
12700
12701 * grub-core/gensymlist.sh: New file. Script for generating kernel
12702 symbols file.
12703 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
12704
12705 * grub-core/gentrigtables.c: Fix unused variable warnings.
12706
12707 * Makefile.in: Removed.
12708 * conf/any-emu.rmk: Removed.
12709 * conf/common.rmk: Removed.
12710 * conf/i386-coreboot.rmk: Removed.
12711 * conf/i386-efi.rmk: Removed.
12712 * conf/i386-ieee1275.rmk: Removed.
12713 * conf/i386-multiboot.rmk: Removed.
12714 * conf/i386-pc.rmk: Removed.
12715 * conf/i386-qemu.rmk: Removed.
12716 * conf/i386.rmk: Removed.
12717 * conf/mips-yeeloong.rmk: Removed.
12718 * conf/mips.rmk: Removed.
12719 * conf/powerpc-ieee1275.rmk: Removed.
12720 * conf/sparc64-ieee1275.rmk: Removed.
12721 * conf/tests.rmk: Removed.
12722 * conf/x86-efi.rmk: Removed.
12723 * conf/x86_64-efi.rmk: Removed.
12724 * gendistlist.sh: Removed.
12725 * geninitheader.sh: Removed.
12726 * genkernsyms.sh.in: Removed.
12727 * genmk.rb: Removed.
12728 * gensymlist.sh.in: Removed.
12729 * mkinstalldirs: Removed.
12730 * boot: Moved ...
12731 * grub-core/boot: ... to here.
12732 * bus: Moved ...
12733 * grub-core/bus: ... to here.
12734 * commands: Moved ...
12735 * grub-core/commands: ... to here.
12736 * disk: Moved ...
12737 * grub-core/disk: ... to here.
12738 * efiemu: Moved ...
12739 * grub-core/efiemu: ... to here.
12740 * font: Moved ...
12741 * grub-core/font: ... to here.
12742 * fs: Moved ...
12743 * grub-core/fs: ... to here.
12744 * gencmdlist.sh: Moved ...
12745 * grub-core/gencmdlist.sh: ... to here.
12746 * genemuinit.sh: Moved ...
12747 * grub-core/genemuinit.sh: ... to here.
12748 * genemuinitheader.sh: Moved ...
12749 * grub-core/genemuinitheader.sh: ... to here.
12750 * genfslist.sh: Moved ...
12751 * grub-core/genfslist.sh: ... to here.
12752 * genhandlerlist.sh: Moved ...
12753 * grub-core/genhandlerlist.sh: ... to here.
12754 * genmoddep.awk: Moved ...
12755 * grub-core/genmoddep.awk: ... to here.
12756 * genmodsrc.sh: Moved ...
12757 * grub-core/genmodsrc.sh: ... to here.
12758 * genpartmaplist.sh: Moved ...
12759 * grub-core/genpartmaplist.sh: ... to here.
12760 * genparttoollist.sh: Moved ...
12761 * grub-core/genparttoollist.sh: ... to here.
12762 * genterminallist.sh: Moved ...
12763 * grub-core/genterminallist.sh: ... to here.
12764 * gentrigtables.c: Moved ...
12765 * grub-core/gentrigtables.c: ... to here.
12766 * genvideolist.sh: Moved ...
12767 * grub-core/genvideolist.sh: ... to here.
12768 * gettext: Moved ...
12769 * grub-core/gettext: ... to here.
12770 * gfxmenu: Moved ...
12771 * grub-core/gfxmenu: ... to here.
12772 * gnulib: Moved ...
12773 * grub-core/gnulib: ... to here.
12774 * hello: Moved ...
12775 * grub-core/hello: ... to here.
12776 * hook: Moved ...
12777 * grub-core/hook: ... to here.
12778 * io: Moved ...
12779 * grub-core/io: ... to here.
12780 * kern: Moved ...
12781 * grub-core/kern: ... to here.
12782 * lib: Moved ...
12783 * grub-core/lib: ... to here.
12784 * loader: Moved ...
12785 * grub-core/loader: ... to here.
12786 * mmap: Moved ...
12787 * grub-core/mmap: ... to here.
12788 * normal: Moved ...
12789 * grub-core/normal: ... to here.
12790 * partmap: Moved ...
12791 * grub-core/partmap: ... to here.
12792 * parttool: Moved ...
12793 * grub-core/parttool: ... to here.
12794 * script: Moved ...
12795 * grub-core/script: ... to here.
12796 * term: Moved ...
12797 * grub-core/term: ... to here
12798 * tests/example_functional_test.c: Moved ...
12799 * grub-core/tests/example_functional_test.c: ... to here.
12800 * tests/lib/functional_test.c: Moved ...
12801 * grub-core/tests/lib/functional_test.c: ... to here.
12802 * tests/lib/test.c: Moved ...
12803 * grub-core/tests/lib/test.c: ... to here.
12804 * video: Moved ...
12805 * grub-core/video: ... to here.
12806
12807 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
12808
12809 Replace --enable-grub-emu-modules with grub-emu-lite.
12810
12811 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
12812 cache.S.
12813
12814 * include/grub/emu/misc.h (grub_emu_init): New prototype.
12815 * kern/emu/full.c: New file. For grub-emu specific initialization.
12816 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
12817 * kern/emu/main.c: Call initialization function grub_emu_init.
12818
12819 * Makefile.in: Include grub-emu-lite in install.
12820 * commands/parttool.c: Use grub_no_autoload to differentiate
12821 between grub-emu and grub-emu-lite.
12822 * include/grub/misc.h: New variable grub_no_autoload.
12823
12824 * conf/any-emu.rmk: New rules for grub-emu-lite.
12825 * configure.ac: Remove --enable-grub-emu-modules.
12826 * genmk.rb: Cleanup unnecessary rules.
12827 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
12828
12829 * normal/main.c: Don't load list files on grub-emu-lite.
12830 * util/misc.c (grub_arch_sync_caches): Removed.
12831
12832 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
12833
12834 * kern/mips/startup.S (grub_prefix): Update comment to refer to
12835 grub-mkimage rather than grub-mkelfimage.
12836 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
12837
12838 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
12841 a key after CapsLock or NumLock. It's just a qemu bug.
12842
12843 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
12846 needed by libusb wrapper.
12847
12848 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
12849
12850 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
12851
12852 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
12853
12854 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
12855 --nounzip is passed.
12856
12857 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
12858
12859 USB hotunplugging and USB serial support.
12860
12861 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
12862 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
12863 (grub_uhci_transfer): Respect timeout and set *actual.
12864 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
12865 non-standard length.
12866 (grub_usb_device_attach): Autoload modules.
12867 (GRUB_MOD_INIT): Set grub_term_poll_usb.
12868 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
12869 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
12870 users updated.
12871 (grub_usb_add_hub): Fill nports and children.
12872 (attach_root_port): Receive hub instead of controller.
12873 All users updated. Fill hub->devices.
12874 (grub_usb_root_hub): Allocate hub->devices.
12875 (detach_device): New function.
12876 (poll_nonroot_hub): Fill children and detach devices.
12877 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
12878 actual arguments. All users updated.
12879 (grub_usb_bulk_read_extended): New function.
12880 * bus/usb/serial/common.c: New file.
12881 * bus/usb/serial/ftdi.c: Likewise.
12882 * bus/usb/serial/pl2303.c: Likewise.
12883 * commands/terminal.c (handle_command): Support wildcard.
12884 * commands/usbtest.c: Output "Unknown" instead of empty string.
12885 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
12886 (usbserial_common_mod_SOURCES): New variable.
12887 (usbserial_common_mod_CFLAGS): Likewise.
12888 (usbserial_common_mod_LDFLAGS): Likewise.
12889 (pkglib_MODULES): Add usbserial_pl2303.mod.
12890 (usbserial_pl2303_mod_SOURCES): New variable.
12891 (usbserial_pl2303_mod_CFLAGS): Likewise.
12892 (usbserial_pl2303_mod_LDFLAGS): Likewise.
12893 (pkglib_MODULES): Add usbserial_ftdi.mod.
12894 (usbserial_ftdi_mod_SOURCES): New variable.
12895 (usbserial_ftdi_mod_CFLAGS): Likewise.
12896 (usbserial_ftdi_mod_LDFLAGS): Likewise.
12897 (pkglib_MODULES): Add serial.mod.
12898 (serial_mod_SOURCES): New variable.
12899 (serial_mod_CFLAGS): Likewise.
12900 (serial_mod_LDFLAGS): Likewise.
12901 * conf/i386-pc.rmk: Likewise.
12902 * conf/mips-yeeloong.rmk: Likewise.
12903 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
12904 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
12905 * disk/usbms.c (first_available_slot): New variable.
12906 (grub_usbms_attach): Don't reuse free slots due to potential cache
12907 problems.
12908 * include/grub/serial.h: Moved to ..
12909 * include/grub/ns8250.h: ...this.
12910 * include/grub/serial.h: New file.
12911 * include/grub/term.h (grub_term_poll_usb): New variable.
12912 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
12913 readkey. All users updated.
12914 (grub_terminfo_output_state): Pass term to put.
12915 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
12916 (grub_usb_controller_dev): Add timeout and actual arguments to
12917 transfer. All users updated.
12918 (grub_usb_interface): New field detach_data.
12919 (grub_usb_device): New fields children and nports.
12920 (grub_usb_ep_type_t): New type.
12921 (grub_usb_get_ep_type): New function.
12922 (grub_usb_bulk_read_extended): Likewise.
12923 * include/grub/usbdesc.h (grub_usb_desc): New type.
12924 * include/grub/usbserial.h: New file.
12925 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
12926 * kern/term.c (grub_term_poll_usb): New variable.
12927 (grub_getkey): Call grub_term_poll_usb if set.
12928 (grub_checkkey): Likewise.
12929 (grub_getkeystatus): Likewise.
12930 * term/serial.c: Moved controller-specific parts to ...
12931 * term/ns8250.c: ... here.
12932 * term/serial.c: Mostly rewritten.
12933 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
12934 according to spec.
12935
12936 2010-08-20 Robert Millan <rmh@gnu.org>
12937
12938 Make kFreeBSD code more generic to support ext2fs as root, ufs as
12939 a separate module and maybe other interesting combinations.
12940
12941 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
12942 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
12943 (kfreebsd_entry): Add generic filesystem module load routine.
12944 Map GRUB `ext2' to kFreeBSD `ext2fs'.
12945
12946 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
12947
12948 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
12949 "numcenter" (I misunderstood the purpose of this entry).
12950 * docs/grub.texi (sendkey): Likewise.
12951
12952 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
12953
12954 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
12955 status flag options; simply omitting the option is equivalent and
12956 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
12957 (keysym_table): Rename "num5numlock" to "numlock".
12958 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
12959 can uniformly say that only the last of multiple `sendkey'
12960 invocations has any effect.
12961 * docs/grub.texi (sendkey): New section.
12962
12963 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
12964
12965 * commands/i386/pc/sendkey.c (options): Fix three typos.
12966
12967 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12968
12969 Implement sendkey support.
12970
12971 * commands/i386/pc/sendkey.c: New file.
12972 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
12973 (sendkey_mod_SOURCES): New variable.
12974 (sendkey_mod_CFLAGS): Likewise.
12975 (sendkey_mod_LDFLAGS): Likewise.
12976
12977 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
12978
12979 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
12980 fix warnings from Autoconf.
12981
12982 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
12983
12984 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
12985 to avoid false positives with some assemblers that output things
12986 like "someprefix_func" as part of their output.
12987
12988 2010-08-15 Robert Millan <rmh@gnu.org>
12989
12990 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
12991 errors.
12992 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
12993 grub_get_libzfs_handle() errors.
12994
12995 2010-08-14 Robert Millan <rmh@gnu.org>
12996
12997 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
12998 filesystem is not ZFS.
12999
13000 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13001
13002 Fix for misspelled color names defaulting to black/black (bug
13003 reported by Doug Nazar)
13004
13005 * include/grub/normal.h (grub_parse_color_name_pair): Add return
13006 status to prototype.
13007 * normal/color.c (grub_parse_color_name_pair): Return failure
13008 status.
13009 (grub_env_write_color_normal): Ignore bad color names.
13010 (grub_env_write_color_highlight): Likewise.
13011 * normal/main.c (GRUB_MOD_INIT): Set default color names.
13012
13013 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13014
13015 "shift" command support to GRUB script.
13016
13017 * include/grub/script_sh.h (grub_script_shift): New prototype.
13018 * script/execute.c (grub_script_shift): New function.
13019 * script/main.c (grub_script_init): Register shift command.
13020 (grub_script_fini): Unregister shift command.
13021 * util/grub-script-check.c (grub_script_cmd_shift): New function.
13022
13023 * tests/grub_script_shift.in: New testcase.
13024 * conf/tests.rmk: Rules for new testcase.
13025
13026 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13027
13028 "continue" command support to GRUB script.
13029
13030 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
13031 (grub_script_break): Continue support.
13032 * script/main.c (grub_script_init): Register continue command.
13033 (grub_script_fini): Unregister continue command.
13034
13035 * tests/grub_script_continue.in: New testcase.
13036 * conf/tests.rmk: Rules for new testcase.
13037
13038 2010-08-12 BVK Chaitanya <bvk@dbook>
13039
13040 "break" command support to GRUB script.
13041
13042 * conf/common.rmk: Rule updates to grub-script-check.
13043 * include/grub/misc.h (grub_min): New function.
13044 * include/grub/script_sh.h (grub_script_init): New prototype.
13045 (grub_script_fini): New prototype.
13046 (grub_script_break): New prototype.
13047 * script/main.c (grub_script_init): New function.
13048 (grub_script_fini): New function.
13049 * script/execute.c (grub_script_break): New function.
13050 * normal/main.c: Calls to grub_script_{init,fini}.
13051 * util/grub-script-check.c (grub_script_break): New function.
13052
13053 * tests/grub_script_break.in: New testcase.
13054 * conf/tests.rmk: Rules for new test case.
13055
13056 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13057
13058 Function parameters support to GRUB script.
13059
13060 * script/yylex.l (VARIABLE): Regular expression update.
13061 * script/function.c (grub_script_function_call): Moved ...
13062 * script/execute.c (grub_script_function_call): ... to here.
13063 (grub_script_execute_arglist_to_argv): Removed.
13064 (grub_script_arglist_to_argv): New function.
13065 * script/argv.c: New file.
13066 (grub_script_argv_free): New function.
13067 (grub_script_argv_next): Likewise.
13068 (grub_script_argv_append): Likewise.
13069 (grub_script_argv_split_append): Likewise.
13070 * include/grub/script_sh.h (grub_script_argv): New struct.
13071 (grub_script_argv_free): New function.
13072 (grub_script_argv_next): Likewise.
13073 (grub_script_argv_append): Likewise.
13074 (grub_script_argv_split_append): Likewise.
13075
13076 * conf/common.rmk (normal.mod): New source script/argv.c.
13077
13078 * tests/grub_script_echo1.in: More tests.
13079 * tests/grub_script_vars1.in: Likewise.
13080 * tests/grub_script_functions.in: New test case.
13081 * conf/tests.rmk: Rules for new testcase.
13082
13083 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13084
13085 Remove grub_script_cmdblock struct.
13086
13087 * include/grub/script_sh.h: Remove grub_script_cmdblock.
13088 * script/parser.y: Likewise.
13089 * script/execute.c: Rename cmdblock suffix to cmdlist.
13090 * script/script.c: Likewise.
13091 * util/grub-script-check.c: Likewise.
13092
13093 2010-08-11 Yves Blusseau <blusseau@zetam.org>
13094
13095 * .bzrignore: add grub-macho2img
13096
13097 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
13100
13101 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13102
13103 Remove the dump of sm712 initialisation sequence.
13104
13105 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
13106 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
13107 (GRUB_VGA_IO_MISC_WRITE): Likewise.
13108 (GRUB_VGA_CR_*): Added many registers.
13109 (GRUB_VGA_SR_*): Likewise.
13110 (GRUB_VGA_GR_*): Likewise.
13111 (grub_vga_write_arx): New function.
13112 (grub_video_hw_config): New struct.
13113 (grub_vga_set_geometry): New function.
13114 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
13115 GRUB_PCI_CLASS_SUBCLASS_VGA.
13116 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
13117 * video/sm712.c (grub_sm712_write_reg): New function
13118 (grub_sm712_read_reg): Likewise.
13119 (grub_sm712_sr_write): Likewise.
13120 (grub_sm712_gr_write): Likewise.
13121 (grub_sm712_cr_write): Likewise.
13122 (grub_sm712_write_arx): Likewise.
13123 (grub_sm712_cr_shadow_write): Likewise.
13124 (grub_sm712_write_dda_lookup): Likewise.
13125 (grub_video_sm712_setup): Initialise the video rather then
13126 blindly replay the dump.
13127 (main) [TEST]: Add a routine to be able to compile as standalone for
13128 tests.
13129 * video/sm712_init.c (sm712_init): Removed.
13130 (sm712_sr_seq1): New array.
13131 (sm712_sr_seq2): Likewise.
13132
13133 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13134
13135 * include/grub/vga.h: Add missing grub/pci.h include.
13136
13137 2010-08-10 Yves Blusseau <blusseau@zetam.org>
13138
13139 * util/grub-macho2img.c (main): fix typo
13140
13141 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13142
13143 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
13144 (grub_vga_gr_read): Likewise.
13145 (grub_vga_cr_write): Likewise.
13146 (grub_vga_cr_read): Likewise.
13147 (grub_vga_sr_write): Likewise.
13148 (grub_vga_sr_read): Likewise.
13149 (grub_vga_palette_read): Likewise.
13150 (grub_vga_palette_write): Likewise.
13151 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
13152 (grub_sm712_sr_read): New function.
13153 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
13154 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
13155
13156 2010-08-09 Robert Millan <rmh@gnu.org>
13157
13158 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
13159 out unused variables on non-ZFS build.
13160
13161 2010-08-08 Robert Millan <rmh@gnu.org>
13162
13163 Fix path generation for sub-filesystems in ZFS.
13164
13165 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
13166 missing slash.
13167
13168 2010-08-08 Robert Millan <rmh@gnu.org>
13169
13170 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
13171
13172 2010-08-08 Robert Millan <rmh@gnu.org>
13173
13174 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
13175 exist, issue a proper error message (rely on `ls' for translated
13176 strings).
13177
13178 2010-08-08 Robert Millan <rmh@gnu.org>
13179
13180 Fix grub-probe invocation.
13181
13182 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
13183
13184 2010-08-04 Robert Millan <rmh@gnu.org>
13185
13186 * configure.ac: Remove checks for getfsstat() and getmntany().
13187 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
13188 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
13189 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
13190 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
13191 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
13192 function.
13193 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
13194 via find_mount_point_from_dir() and getfsstat() / getmntany().
13195
13196 2010-08-04 Robert Millan <rmh@gnu.org>
13197
13198 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13199 (grub_find_zpool_from_mount_point): Merge into ...
13200 (grub_find_zpool_from_dir): ... this.
13201 * kern/emu/misc.c: Likewise.
13202
13203 * kern/emu/misc.c
13204 (grub_make_system_path_relative_to_its_root): Replace
13205 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
13206 with grub_find_zpool_from_dir().
13207 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
13208
13209 2010-08-04 Robert Millan <rmh@gnu.org>
13210
13211 Support OpenSolaris in ZFS device resolution.
13212
13213 * configure.ac: Check for getmntany().
13214 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
13215 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
13216 support.
13217
13218 2010-08-03 Robert Millan <rmh@gnu.org>
13219
13220 Fix grub-emu build.
13221
13222 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
13223 * include/grub/emu/misc.h: ... here.
13224
13225 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
13226 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
13227
13228 * util/misc.c: Remove `<grub/util/libzfs.h>'.
13229 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
13230 (grub_get_libzfs_handle): Move to ...
13231 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
13232 (grub_get_libzfs_handle): ... here.
13233
13234 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
13235
13236 * script/execute.c (grub_script_execute_cmdline): Check for NULL
13237 as command name case.
13238
13239 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
13240
13241 * disk/raid.c (insert_array): Select unique numbers for named arrays
13242 as well, for use as keys in the disk cache.
13243
13244 2010-08-01 Robert Millan <rmh@gnu.org>
13245
13246 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
13247 kFreeBSD device name, except on ZFS where the filesystem label is
13248 used.
13249 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
13250 `/boot/zfs/zpool.cache'.
13251 Set mountfrom kernel variable using ${kfreebsd_device}.
13252
13253 2010-08-01 Robert Millan <rmh@gnu.org>
13254
13255 Make it even harder to use uninitialized `libzfs_handle' (and
13256 make the interface a bit simpler).
13257
13258 * include/grub/util/misc.h (grub_util_init_libzfs)
13259 (libzfs_handle): Remove.
13260 (grub_get_libzfs_handle): New prototype.
13261
13262 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
13263 attribute.
13264 (grub_util_init_libzfs): Remove.
13265 (grub_get_libzfs_handle): New function.
13266
13267 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
13268 grub_get_libzfs_handle() to obtain a libzfs handle instead of
13269 accessing `libzfs_handle' directly.
13270
13271 2010-08-01 Robert Millan <rmh@gnu.org>
13272
13273 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13274 (grub_find_zpool_from_mount_point): New function prototypes.
13275
13276 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13277 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13278
13279 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13280 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13281 `static' attribute.
13282
13283 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13284 finding zpool from mount point into ...
13285 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13286
13287 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13288 requested path is part of a ZFS pool, use
13289 grub_find_zpool_from_mount_point() to detect its filesystem name,
13290 and generate a path with `/fsname@path' syntax.
13291
13292 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13293
13294 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
13295 (void) rather than () so that this is a proper prototype.
13296
13297 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13298
13299 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
13300
13301 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
13304 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
13305
13306 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13307
13308 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
13309
13310 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13311
13312 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
13313
13314 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13315
13316 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
13317 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
13318 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
13319 disable gfxpayload.
13320 (Shell-like scripting): Add real content.
13321 (Serial terminal): Suggest `terminal_input serial; terminal_output
13322 serial' rather than putting the two commands on separate lines,
13323 since console input will be inoperative after the first command.
13324 (menuentry): Document --class, --users, and --hotkey options.
13325 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
13326 Vladimir Serbinenko).
13327
13328 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13329 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13330
13331 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
13332
13333 2010-08-01 Robert Millan <rmh@gnu.org>
13334
13335 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13336 (grub_find_zpool_from_mount_point): New function prototypes.
13337
13338 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13339 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13340
13341 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13342 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13343 `static' attribute.
13344
13345 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13346 finding zpool from mount point into ...
13347 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13348
13349 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13350 requested path is part of a ZFS pool, use
13351 grub_find_zpool_from_mount_point() to detect its filesystem name,
13352 and generate a path with `/fsname@path' syntax.
13353
13354 2010-08-01 Robert Millan <rmh@gnu.org>
13355
13356 Prevent accidental use of uninitialized libzfs_handle.
13357
13358 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
13359 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
13360 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
13361
13362 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13363
13364 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
13365 util/grub.d/10_linux.in). Fixes Debian bug #591093.
13366
13367 2010-08-01 Robert Millan <rmh@gnu.org>
13368
13369 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
13370
13371 2010-07-31 Robert Millan <rmh@gnu.org>
13372
13373 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
13374
13375 2010-07-31 Robert Millan <rmh@gnu.org>
13376
13377 * kern/emu/misc.c: Add missing license header.
13378
13379 2010-07-31 Robert Millan <rmh@gnu.org>
13380
13381 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
13382
13383 * include/grub/util/libnvpair.h: Include `<config.h>'.
13384 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
13385 declaring libnvpair prototypes ourselves.
13386 * include/grub/util/libzfs.h: Include `<config.h>'.
13387 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
13388 declaring libzfs prototypes ourselves.
13389
13390 (libzfs_handle): Moved to ...
13391 * include/grub/util/misc.h (libzfs_handle): ... here.
13392 Include `<grub/util/libzfs.h>'.
13393
13394 2010-07-30 Robert Millan <rmh@gnu.org>
13395
13396 * include/grub/emu/misc.h: Add missing license header.
13397
13398 2010-07-30 Robert Millan <rmh@gnu.org>
13399
13400 Enable `grub-probe -t device' resolution on ZFS.
13401
13402 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
13403 * include/grub/util/libnvpair.h: New file.
13404 * include/grub/util/libzfs.h: New file.
13405
13406 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
13407 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
13408 `<grub/util/libnvpair.h>'.
13409 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
13410
13411 (find_mount_point_from_dir): New static function.
13412 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
13413 function.
13414 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
13415 find_root_device_from_libzfs() before ressorting to find_root_device().
13416
13417 * include/grub/util/misc.h (grub_util_init_libzfs): New function
13418 prototype.
13419 * util/misc.c: Include `<grub/util/libzfs.h>'.
13420 (grub_util_init_libzfs): New function.
13421 [HAVE_LIBZFS] (libzfs_handle): New global variable.
13422 [HAVE_LIBZFS] (fini_libzfs): New static function.
13423 (grub_util_init_libzfs): New function.
13424 * util/grub-probe.c (main): Call grub_util_init_libzfs().
13425
13426 2010-07-30 Robert Millan <rmh@gnu.org>
13427
13428 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
13429 (xmalloc, xrealloc, xstrdup, xasprintf): Add
13430 `warn_unused_result' attribute.
13431 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
13432 (grub_xasprintf, grub_xvasprintf): Likewise.
13433 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
13434
13435 2010-07-29 Robert Millan <rmh@gnu.org>
13436
13437 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
13438 (probe): Handle `PRINT_FS_LABEL'.
13439 (main): Handle `-t fs_label'.
13440
13441 2010-07-29 Robert Millan <rmh@gnu.org>
13442
13443 * configure.ac: Remove grub-mkisofs checks.
13444
13445 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
13446
13447 * util/ieee1275/grub-install.in: Don't use empty grub_device.
13448 Reported by: Lennart Sorensen.
13449
13450 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13451
13452 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
13453 prior to terminal_input/terminal_output separation. It's been over 1.5
13454 years and those versions weren't widely deployed.
13455
13456 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
13457
13458 * disk/raid.c (insert_array): Don't count named arrays when looking
13459 for unused array numbers.
13460 Reported and tested by: Michael Guntsche.
13461
13462 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13463
13464 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
13465 implementation of this so that grub-emu links again, with a note
13466 that this should support hotplugging in the future.
13467
13468 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13469
13470 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
13471
13472 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13473
13474 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
13475 handle on failure.
13476 (grub_loopback_close): Remove empty function.
13477 (grub_loopback_dev): Remove close method.
13478
13479 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13480
13481 Disable EFI cursor when the EFI console becomes inactive.
13482
13483 * term/efi/console.c (grub_efi_console_init): New function.
13484 (grub_efi_console_fini): New function.
13485 (grub_console_term_output): Register init and fini methods.
13486
13487 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13488
13489 * tests/util/grub-shell-tester.in: Remove bashism and declare as
13490 sh script.
13491
13492 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13493
13494 * disk/loopback.c (grub_loopback): Replace filename with file.
13495 (delete_loopback): Handle new semantics.
13496 (grub_cmd_loopback): Likewise.
13497 (grub_loopback_iterate): Likewise.
13498 (grub_loopback_close): Likewise.
13499
13500 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13501
13502 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
13503 with -p "".
13504 Reported by: Tito Keitel.
13505
13506 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * docs/grub.texi (Naming convention): Document new naming convention.
13509
13510 2010-07-20 Vadim Solomin <vadic052@gmail.com>
13511 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13512
13513 Generate device.map in something closer to the old ordering.
13514
13515 * util/deviceiter.c (struct device): New declaration.
13516 (compare_file_names): Rename to ...
13517 (compare_devices): ... this. Sort by kernel name in preference to
13518 the stable by-id name, but keep the latter as a fallback comparison.
13519 Update header comment.
13520 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
13521 of `struct device' rather than of plain file names.
13522
13523 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
13524
13525 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
13526 on i386.
13527
13528 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13529
13530 * commands/acpi.c (setup_common_tables): Use sizeof instead of
13531 hardcoding size.
13532 (setv1table): Likewise.
13533
13534 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13535
13536 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
13537 removing the homehost if present.
13538 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
13539 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
13540 removing the homehost if present.
13541 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
13542 if possible.
13543 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
13544
13545 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
13546 parameter. Set its pointer target to 0.
13547 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
13548 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
13549 `data_offset' value from the superblock for 1.x metadata.
13550 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
13551 data on the device.
13552 (insert_array): Record the start sector of data on the device.
13553 (grub_raid_register): Pass start_sector parameters to
13554 grub_raid_list->detect and insert_array.
13555 * include/grub/raid.h (struct grub_raid_array): Add start_sector
13556 member.
13557 (struct grub_raid): Add start_sector parameter to `detect'.
13558
13559 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
13560 __attribute__ ((packed)), leaving a comment.
13561 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
13562 (grub_mdraid_detect_09): ... here and ...
13563 (grub_mdraid_detect_1x): ... here.
13564
13565 2010-07-20 Peter Henn <peter.henn@web.de>
13566
13567 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
13568 chunk size and disk size, which are already given as sector counts
13569 as distinct from the 0.90 units. Fetch the correct device number
13570 from the role table instead of using the table index.
13571
13572 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
13573
13574 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
13575 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
13576 (WriteMostly1): New macro.
13577 Set array->name to NULL for metadata format 0.90. Add support for
13578 metadata 1.x. Fix some comments.
13579 * disk/raid.c (): Add support for name based RAID arrays. Fix a
13580 few comments.
13581 * util/getroot.c (grub_util_get_grub_dev): Add support for
13582 /dev/md/name style devices.
13583
13584 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13585
13586 * .bzrignore: Ignore 20_linux_xen.
13587
13588 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
13589
13590 * util/import_unicode.py: Remove unnecessary imports.
13591
13592 2010-07-17 Aleš Nesrsta <starous@volny.cz>
13593
13594 Hotplugging and USB hub support.
13595
13596 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
13597 (grub_ohci): Likewise.
13598 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
13599 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
13600 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
13601 (GRUB_OHCI_CTRL_EDS): Likewise.
13602 (GRUB_OHCI_BULK_EDS): Likewise.
13603 (GRUB_OHCI_TDS): Likewise.
13604 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
13605 (grub_ohci_ed_phys2virt): New function.
13606 (grub_ohci_virt_to_phys): Likewise.
13607 (grub_ohci_td_phys2virt): Likewise.
13608 (grub_ohci_td_virt2phys): Likewise.
13609 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
13610 attachment.
13611 (grub_ohci_find_ed): New function.
13612 (grub_ohci_alloc_td): Likewise.
13613 (grub_ohci_free_td): Likewise.
13614 (grub_ohci_free_tds): Likewise.
13615 (grub_ohci_transfer): Use previously allocated memory.
13616 (grub_ohci_portstatus): Reset status changed bit.
13617 (grub_ohci_detect_dev): Supply status changed.
13618 (grub_ohci_fini_hw): Free memory.
13619 (grub_ohci_restore_hw): Reallocate memory.
13620 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
13621 Reset status change.
13622 (grub_uhci_detect_dev): Supply status_change.
13623 * bus/usb/usb.c (attach_hooks): New var.
13624 (grub_usb_device_attach): New function.
13625 (grub_usb_register_attach_hook_class): Likewise.
13626 (grub_usb_unregister_attach_hook_class): Likewise.
13627 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
13628 (grub_usb_add_hub): Reset connection changed bit.
13629 (attach_root_port): New function.
13630 (grub_usb_root_hub): Likewise.
13631 (poll_nonroot_hub): Likewise.
13632 (grub_usb_poll_devices): Likewise.
13633 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
13634 * disk/usbms.c (grub_usbms_open): Use device hooks.
13635 (grub_usbms_iterate) :Poll devices.
13636 (grub_usbms_finddevs): Split into ...
13637 (grub_usbms_attach): ... this ...
13638 (grub_usbms_attach): ... and this.
13639 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
13640 in detect_dev.
13641 (grub_usb_interface): New fields attached and detach_hook.
13642 (grub_usb_attach_hook_class): New type.
13643 (grub_usb_attach_desc): New struct.
13644 (grub_usb_register_attach_hook_class): New function.
13645 (grub_usb_unregister_attach_hook_class): Likewise.
13646 (grub_usb_poll_devices): Likewise.
13647 (grub_usb_device_attach): Likewise.
13648 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
13649 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
13650
13651 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
13652
13653 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
13654 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
13655 delta determination style. Works with most NetBSD partitions too.
13656
13657 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
13660 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
13661
13662 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
13663
13664 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
13665
13666 2010-07-14 Anton Blanchard <anton@samba.org>
13667
13668 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
13669 ET_DYN files.
13670
13671 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13672
13673 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
13674
13675 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13676
13677 * kern/partition.c (grub_partition_check_containment): New function to
13678 check that a partition is physically contained in a parent. Since
13679 offsets are relative (and non-negative), this reduces to checking that
13680 the partition ends before its parent.
13681 (grub_partition_map_probe): Discard out-of-range sub-partitions.
13682 (grub_partition_iterate): Likewise.
13683 * include/grub/partition.h (grub_partition_map): Slightly more detailed
13684 comments.
13685 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
13686 partitions that start before their parent, and add debug printfs.
13687
13688 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
13689
13690 * Makefile.in (.SUFFIX): Spell correctly, as ...
13691 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
13692 bare module name without `.mod', e.g. `test') tried to invoke a
13693 Modula-2 compiler.
13694
13695 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
13696
13697 * README: Point to the Info manual.
13698
13699 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
13700
13701 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
13702 2nd superblock position from partition size.
13703
13704 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
13705
13706 * Makefile.in (MAINTAINER_CLEANFILES): Remove
13707 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
13708 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
13709 outputs.
13710
13711 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13712
13713 Restructure SCSI .id handling.
13714 Reported and tested by: Aleš Nesrsta.
13715
13716 * disk/ata.c (grub_atapi_close): Removed. All users updated.
13717 (grub_atapi_dev): Changed .name to "ata". New field .id.
13718 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
13719 (grub_usbms_dev): New field .id.
13720 * disk/scsi.c (grub_scsi_iterate): Generate name.
13721 (grub_scsi_open): Parse name.
13722 * include/grub/scsi.h (grub_make_scsi_id): New function.
13723 (grub_scsi_dev): Change iterate and open to number instead of naming
13724 busses. All users updated.
13725 (grub_scsi): Remove name. Add .bus.
13726
13727 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13728
13729 * commands/help.c (grub_cmd_help): Fix a typo.
13730
13731 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13732
13733 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
13734 Reported and tested by: Colin Watson.
13735
13736 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13737
13738 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
13739 in this context.
13740
13741 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13742
13743 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
13744
13745 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
13746
13747 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
13748 indentation.
13749
13750 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
13751
13752 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
13753 and disk/raid6_recover.c.
13754 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
13755 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
13756
13757 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
13758
13759 * term/gfxterm.c (repaint_schedulded): Rename to ...
13760 (repaint_scheduled): ... this. Update all callers.
13761 (repaint_was_schedulded): Rename to ...
13762 (repaint_was_scheduled): ... this. Update all callers.
13763
13764 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
13765
13766 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
13767 which we expect to be handled by upper layers.
13768
13769 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
13770
13771 * bus/usb/usbhub.c: #include time.h header.
13772
13773 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
13774
13775 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
13776 entry_name also for entries without stat blocks (e.g. ".."); fixes
13777 corruption of the first entry in a directory.
13778
13779 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
13780
13781 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
13782 after setting gfxterm as the active terminal. GRUB_BACKGROUND
13783 doesn't work otherwise.
13784
13785 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
13786
13787 * docs/grub.texi (Features): Update list of supported file systems.
13788 (GNU/Linux): Update for GRUB 2.
13789 (Serial terminal): Remove mention of --disable-serial, which was a
13790 GRUB Legacy configure option. Update instructions to use
13791 `terminal_input' and `terminal_output' rather than `terminal'.
13792 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
13793 configuration' and `Installing GRUB using grub-install'.
13794 (Menu entry editor): Update for GRUB 2.
13795 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
13796 Document new -a, -u, and -v options.
13797 (initrd): New section.
13798 (initrd16): New section.
13799 (linux): New section.
13800 (linux16): New section.
13801 (search): The `var' argument to `--set' is optional.
13802 (GRUB only offers a rescue shell): Go into a little more detail on
13803 drive ordering.
13804
13805 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
13806
13807 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
13808
13809 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
13810
13811 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
13812 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
13813
13814 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
13815
13816 * util/i386/pc/grub-setup.c (setup): Rename prefix to
13817 install_prefix, in line with install_dos_part and install_bsd_part.
13818 Add new prefix variable, which is copied to install_prefix after
13819 comparing core.img in memory with the one read from disk in the
13820 no-embedding case, and use that rather than overwriting
13821 install_prefix immediately when installing to a partition.
13822 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
13823 Bicakci.
13824
13825 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
13826
13827 * configure.ac: Avoid == in test command, it's not portable.
13828 * util/grub.d/30_os-prober.in: Likewise.
13829
13830 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
13831
13832 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
13833
13834 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
13835
13836 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
13837 multiple (top-level) partmaps.
13838
13839 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
13840
13841 * util/i386/efi/grub-install.in: Don't use empty grub_device.
13842 Reported by: Tino Keitel.
13843
13844 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
13845
13846 Bidi and diacritics support.
13847
13848 * Makefile.in (widthspec.bin): New target.
13849 (widthspec.h): Likewise.
13850 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
13851 * autogen.sh: Generate unidata.c.
13852 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
13853 * commands/ls.c (grub_ls_list_devices): Likewise.
13854 (grub_ls_list_files): Likewise.
13855 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
13856 (grub_mini_cmd_lsmod): Likewise.
13857 * commands/read.c: Likewise.
13858 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
13859 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
13860 * lib/arg.c (grub_arg_show_help): Likewise.
13861 * lib/crypto.c (grub_password_get): Likewise.
13862 * normal/auth.c (grub_username_get): Likewise.
13863 * normal/misc.c (grub_normal_print_device_info): Likewise.
13864 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
13865 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
13866 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
13867 (normal/charset.c_DEPENDENCIES): New variable.
13868 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
13869 (pkglib_MODULES): Remove charset.mod.
13870 (charset_mod_SOURCES): Removed.
13871 (charset_mod_CFLAGS): Likewise.
13872 (charset_mod_LDFLAGS): Likewise.
13873 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
13874 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
13875 and term/tparm.c.
13876 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13877 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13878 (kernel_img_HEADERS): Add terminfo.h.
13879 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
13880 Fill ->font. Reverse ascii bitmaps.
13881 (grub_font_get_xheight): New function.
13882 * font/font.c (grub_font_get_string_width): Moved from here ...
13883 * gfxmenu/font.c (grub_font_get_string_width): ... here.
13884 * font/font.c (grub_font_draw_string): Moved from here ...
13885 * gfxmenu/font.c (grub_font_draw_string): ... here.
13886 * font/font.c (grub_font_dup_glyph): New function.
13887 (grub_font_blit_glyph): Likewise.
13888 (grub_font_blit_glyph_mirror): Likewise.
13889 (blit_comb): Likewise.
13890 (grub_font_construct_dry_run): Likewise.
13891 (grub_font_get_constructed_device_width): Likewise.
13892 (grub_font_construct_glyph): Likewise.
13893 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
13894 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
13895 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
13896 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
13897 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
13898 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
13899 (grub_font_get_xheight): New proto.
13900 (grub_font_get_constructed_device_width): Likewise.
13901 (grub_font_construct_glyph): Likewise.
13902 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
13903 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
13904 * include/grub/font.h (grub_font_draw_string): Moved from here ...
13905 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
13906 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
13907 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
13908 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
13909 (grub_console_getcharwidth): Likewise.
13910 * include/grub/misc.h (grub_xputs): New proto.
13911 (grub_puts): Inlined.
13912 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
13913 (grub_normal_get_line_counter): Removed.
13914 (grub_install_newline_hook): Likewise.
13915 (grub_normal_get_char_counter): New proto.
13916 (grub_normal_reset_more): Likewise.
13917 (grub_xputs_normal): Likewise.
13918 * include/grub/powerpc/ieee1275/console.h: Removed.
13919 * include/grub/sparc64/ieee1275/console.h: Likewise.
13920 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
13921 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
13922 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
13923 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
13924 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
13925 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
13926 (grub_term_input): Pass reference to self. All users updated.
13927 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
13928 Pass reference to self. New fields normal_color, highlight_color and
13929 data. All users updated.
13930 (grub_putchar): Removed.
13931 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
13932 (grub_unicode_estimate_width): New function.
13933 (grub_term_getcharwidth): Add defaults.
13934 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
13935 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
13936 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
13937 (grub_cls): Remove EXPORT_FUNC.
13938 (grub_setcolorstate): Inline.
13939 (grub_newline_hook): Removed.
13940 * include/grub/terminfo.h: Rewritten. All users updated.
13941 * include/grub/unicode.h: New file.
13942 * include/grub/video.h (grub_video_signed_rect): New type.
13943 * kern/emu/console.c (grub_console_highlight_color): Removed.
13944 (grub_console_normal_color): Likewise.
13945 (grub_console_standard_color): Made static.
13946 (grub_ncurses_putchar): Remove mapping.
13947 (grub_ncurses_getcharwidth): Removed.
13948 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
13949 (grub_ncurses_setcolor): Removed.
13950 (grub_ncurses_getcolor): Likewise.
13951 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
13952 (grub_console_putchar): ... this.
13953 (grub_console_putchar): Handle argument difference.
13954 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
13955 console_init_early and console_init_lately.
13956 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
13957 * kern/misc.c (grub_puts): Removed.
13958 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
13959 (grub_vsnprintf_real): Remove str = NULL support.
13960 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
13961 * normal/charset.c (grub_utf8_to_ucs4): ... here.
13962 * kern/term.c (grub_putcode): Renamed to ...
13963 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
13964 (grub_putchar): Removed.
13965 (grub_xputs_dumb): New function.
13966 (grub_xputs): New variable.
13967 * lib/charset.c: Move from here ...
13968 * normal/charset.c: ... to here.
13969 (grub_ucs4_to_utf8): New function.
13970 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
13971 (join_types): New variable.
13972 (unpack_join): New function.
13973 (bidi_types): New variable.
13974 (unpack_bidi): New function.
13975 (get_bidi_type): Likewise.
13976 (get_join_type): Likewise.
13977 (is_mirrored): Likewise.
13978 (grub_unicode_get_comb_type): Likewise.
13979 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
13980 (is_type_after): Likewise.
13981 (grub_unicode_aglomerate_comb): Likewise.
13982 (bidi_line_wrap): Likewise.
13983 (grub_bidi_line_logical_to_visual): Likewise.
13984 (grub_bidi_logical_to_visual): Likewise.
13985 (grub_unicode_mirror_code): Likewise.
13986 (grub_unicode_shape_code): Likewise.
13987 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
13988 Don't use grub_putchar.
13989 * normal/main.c (grub_normal_init_page): Use grub_putcode.
13990 (grub_normal_reader_init): Likewise.
13991 (grub_xputs_saved): New variable.
13992 (GRUB_MOD_INIT): Set grub_xputs.
13993 (GRUB_MOD_FINI): Restore grub_xputs.
13994 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
13995 (menu_init): Avoid printing gfxmenu error.
13996 (show_menu): Use grub_normal_get_char_counter.
13997 * normal/menu_entry.c (update_screen): Fix out-of-array.
13998 (complete): Avoid NULL dereferencing.
13999 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
14000 * normal/menu_text.c (print_spaces): Removed.
14001 (grub_print_ucs4): Likewise.
14002 (grub_print_message_indented): Use grub_print_ucs4.
14003 (print_message): Use grub_putcode.
14004 (print_entry): Hanlde diacritics.
14005 * normal/term.c (term_state): New type.
14006 (grub_more_lines): Removed.
14007 (term_states): New variable.
14008 (grub_normal_line_counter): Renamed to ..
14009 (grub_normal_char_counter): ...this. All users updated.
14010 (grub_normal_get_line_counter): Renamed to ...
14011 (grub_normal_get_char_counter): ... this.
14012 (grub_normal_reset_more): New function.
14013 (process_newline): Removed.
14014 (print_more): New function.
14015 (grub_install_newline_hook): Removed.
14016 (map_code): New function.
14017 (grub_puts_terminal): Use grub_print_ucs4.
14018 (putglyph): New function.
14019 (putcode_real): Likewise.
14020 (grub_putcode): Use putcode_real.
14021 (get_maxwidth): New function.
14022 (get_startwidth): Likewise.
14023 (print_ucs4_terminal): Likewise.
14024 (find_term_state): Likewise.
14025 (put_glyphs_terminal): Likewise.
14026 (print_backlog): Likewise.
14027 (print_ucs4_real): Likewise.
14028 (grub_print_ucs4): Likewise.
14029 (grub_xputs_normal): Likewise.
14030 * term/efi/console.c (grub_console_putchar): Output diacritics.
14031 (grub_console_getcharwidth): Removed.
14032 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14033 * term/gfxterm.c (clear_char): Free chars.
14034 (scroll_up): Avoid leaking memory.
14035 (grub_gfxterm_putchar): Support diacritics.
14036 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14037 * term/i386/pc/console.c (grub_console_term_output): Declare as
14038 GRUB_TERM_CODE_TYPE_VGA.
14039 * term/i386/pc/vga.c (grub_vga_term): Declare as
14040 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
14041 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
14042 GRUB_TERM_CODE_TYPE_VGA.
14043 * term/i386/vga_common.c (map_char): Removed.
14044 (grub_console_putchar): Likewise.
14045 (grub_console_getcharwidth): Likewise.
14046 * term/ieee1275/ofconsole.c: Simplify using terminfo.
14047 (colors): Reordered to match terminfo.
14048 (grub_ofconsole_normal_color): Removed.
14049 (grub_ofconsole_writeesc): Likewise.
14050 (grub_ofconsole_highlight_color): Likewise.
14051 (grub_ofconsole_getcharwidth): Likewise.
14052 (grub_ofconsole_setcolorstate): Likewise.
14053 (grub_ofconsole_setcolor): Likewise.
14054 (grub_ofconsole_getcolor): Likewise.
14055 (grub_ofconsole_readkey): Renamed to ...
14056 (readkey): ... this. Remove escape sequence handling. Return -1 on no
14057 key.
14058 (grub_ofconsole_checkkey): Removed.
14059 (grub_ofconsole_getkey): Likewise.
14060 (grub_ofconsole_getxy): Likewise.
14061 (grub_ofconsole_gotoxy): Likewise.
14062 (grub_ofconsole_cls): Likewise.
14063 (grub_ofconsole_refresh): Likewise.
14064 (grub_ofconsole_terminfo_input): New struct.
14065 (grub_ofconsole_terminfo_output): Likewise.
14066 (grub_ofconsole_term_input): Use terminfo.
14067 (grub_ofconsole_term_output): Likewise.
14068 (grub_console_init): Split into ...
14069 (grub_console_init_early): ...this and ...
14070 (grub_console_init_lately): ...this. Use terminfo.
14071 (grub_ofconsole_putchar): Renamed to ...
14072 (put): ... this. Remove mapping.
14073 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14074 * term/serial.c: Simplify using terminfo.
14075 (xpos): Removed.
14076 (ypos): Likewise.
14077 (keep_track): Likewise.
14078 (registered): Likewise.
14079 (input_buf): Likewise.
14080 (npending): Likewise.
14081 (serial_translate_key_sequence): Likewise.
14082 (fill_input_buf): Likewise.
14083 (grub_serial_checkkey): Likewise.
14084 (grub_serial_getkey): Likewise.
14085 (grub_serial_getxy): Likewise.
14086 (grub_serial_gotoxy): Likewise.
14087 (grub_serial_putchar): Likewise.
14088 (grub_serial_cls): Likewise.
14089 (grub_serial_setcolorstate): Likewise.
14090 (grub_serial_setcursor): Likewise.
14091 (serial_hw_init): Use serial_hw_fetch.
14092 (grub_serial_terminfo_input): New variable.
14093 (grub_serial_terminfo_output): Likewise.
14094 (grub_serial_term_input): Use terminfo.
14095 (grub_serial_term_output): Likewise.
14096 * term/terminfo.c (putstr): Use put.
14097 (grub_terminfo_all_free): New function
14098 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
14099 (grub_terminfo_output_register): New function.
14100 (grub_terminfo_output_unregister): Likewise.
14101 (grub_terminfo_getxy): Likewise.
14102 (grub_terminfo_readkey): Likewise.
14103 (grub_terminfo_checkkey): Likewise.
14104 (grub_terminfo_getkey): Likewise.
14105 (grub_terminfo_input_init): Likewise.
14106 (print_terminfo): Likewise.
14107 (grub_cmd_terminfo): Handle encoding.
14108 (grub_terminfo_gotoxy): Track position.
14109 (grub_terminfo_cls): Likewise.
14110 (grub_terminfo_putchar): Likewise.
14111 (grub_terminfo_setcolorstate): Handle colors
14112 (grub_terminfo_cursor_on): This ...
14113 (grub_terminfo_cursor_off): ... and this merged into ...
14114 (grub_terminfo_setcursor): ... this.
14115 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
14116 * unicode/ArabicShaping.txt: New file (imported from Unicode).
14117 * unicode/BidiMirroring.txt: Likewise.
14118 * unicode/UnicodeData.txt: Likewise.
14119 * unicode/COPYING: Likewise.
14120 * util/grub-editenv.c (grub_putchar): Removed.
14121 (grub_xputs_real): New function.
14122 (grub_xputs): New variable.
14123 * util/grub-fstest.c (grub_putchar): Removed.
14124 (grub_xputs_real): New function.
14125 (grub_xputs): New variable.
14126 * util/grub-mkdevicemap.c (grub_putchar): Removed.
14127 (grub_xputs_real): New function.
14128 (grub_xputs): New variable.
14129 * util/grub-probe.c (grub_putchar): Removed.
14130 (grub_xputs_real): New function.
14131 (grub_xputs): New variable.
14132 * util/grub-script-check.c (grub_putchar): Removed.
14133 (grub_xputs_real): New function.
14134 (grub_xputs): New variable.
14135 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
14136 (grub_xputs_real): New function.
14137 (grub_xputs): New variable.
14138 * util/import_unicode.py: New file.
14139 * util/grub-mkfont.c (ft_errmsgs): New array.
14140 (grub_glyph_info): Make bitmap a pointer.
14141 (file_formats): New type WIDTH_SPEC.
14142 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
14143 (options): Add width-spec.
14144 (help): Likewise.
14145 (add_char): Renamed to ...
14146 (add_glyph): ... this.
14147 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
14148 (glyph_replace): New type.
14149 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
14150 (add_char): New function.
14151 (add_subst): Likewise.
14152 (process_cursive): Likewise.
14153 (add_font): Handle GSUB.
14154 (write_font_width_spec): New function.
14155 (main): Sort glyphs.
14156 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
14157 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
14158 * kern/term.c (grub_cls): Moved from here...
14159 * normal/term.c (grub_cls): ... here.
14160
14161 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14162
14163 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
14164 suitable for using within the format argument of printf when
14165 converting grub_size_t.
14166 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
14167 "x" to convert grub_size_t arguments.
14168
14169 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14170
14171 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
14172 too long captions.
14173 (list_get_minimal_size): Take selection box into account.
14174
14175 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14176
14177 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
14178 NULL font.
14179
14180 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14181
14182 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
14183 devices when iterating over /dev/disk/by-id; they will be handled
14184 later if appropriate, which they aren't always (e.g. LVM).
14185
14186 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14187
14188 * include/grub/misc.h (grub_reboot): Declare as noreturn.
14189 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
14190 fails.
14191 (grub_halt): Likewise.
14192 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
14193 reset-all fails.
14194 (grub_halt): Don't return, even if all of shut-down, power-off, and
14195 poweroff fail.
14196
14197 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14198
14199 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
14200 arguments, not three.
14201
14202 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14203
14204 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
14205 * util/grub.d/10_linux.in: Use it to check for LVM, so that
14206 LVM-on-RAID is handled correctly.
14207
14208 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14209
14210 * docs/grub.texi (Changes from GRUB Legacy): New section.
14211 (Future): Fix typo.
14212
14213 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14214
14215 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
14216 grub.d/README accidentally ends up executable for one reason or
14217 another. Ignore it.
14218
14219 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14220
14221 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
14222 (gpt_partition_map_iterate): Support non-512B sectors.
14223
14224 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14225
14226 * kern/efi/init.c (grub_efi_init): Disable watchdog.
14227 Tested by: Seth Goldberg.
14228
14229 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14230
14231 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
14232 Properly align mbi.
14233 Reported by: Seth Goldberg.
14234
14235 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 * util/grub-mkrescue.in: Avoid module duplication.
14238
14239 2010-07-01 Sean Finney <seanius@seanius.net>
14240
14241 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
14242
14243 2010-07-01 Sean Finney <seanius@seanius.net>
14244
14245 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
14246
14247 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 * disk/lvm.c (grub_lvm_checkvalue): New function.
14250 (grub_lvm_check_flag): Likewise.
14251
14252 2010-07-01 Robert Millan <rmh@gnu.org>
14253
14254 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
14255 Support 'p' as partition separator on kernel of FreeBSD (used
14256 with GPT labels).
14257 (grub_util_biosdisk_get_grub_dev): Likewise.
14258
14259 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14260
14261 Yeeloong firmware port.
14262
14263 * boot/mips/yeeloong/fwstart.S: New file.
14264 * bus/cs5536.c (gpiodump): New const.
14265 (set_io_space): New function.
14266 (set_iod): Likewise.
14267 (set_p2d): Likewise.
14268 (grub_cs5536_init_geode): Likewise.
14269 * commands/mips/yeeloong/lsspd.c: New file.
14270 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
14271 (serial_mod_SOURCES): New variable.
14272 (serial_mod_CFLAGS): Likewise.
14273 (serial_mod_LDFLAGS): Likewise.
14274 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
14275 term/terminfo.c and term/tparm.c.
14276 (pkglib_IMAGES): Add fwstart.img.
14277 (fwstart_img_SOURCES): New variable.
14278 (fwstart_img_CFLAGS): Likewise.
14279 (fwstart_img_ASFLAGS): Likewise.
14280 (fwstart_img_LDFLAGS): Likewise.
14281 (fwstart_img_FORMAT): Likewise.
14282 (pkglib_MODULES): Add lsspd.mod.
14283 (lsspd_mod_SOURCES): New variable.
14284 (lsspd_mod_CFLAGS): Likewise.
14285 (lsspd_mod_LDFLAGS): Likewise.
14286 (pkglib_MODULES): Add halt.mod.
14287 (halt_mod_SOURCES): New variable.
14288 (halt_mod_CFLAGS): Likewise.
14289 (halt_mod_LDFLAGS): Likewise.
14290 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
14291 (serial_mod_SOURCES): Removed.
14292 (serial_mod_CFLAGS): Likewise.
14293 (serial_mod_LDFLAGS): Likewise.
14294 * disk/ata.c (check_device): New function.
14295 (grub_ata_device_initialize): Use check_device.
14296 (grub_ata_iterate): Recheck devices.
14297 (grub_ata_open): Likewise.
14298 (grub_atapi_iterate): Likewise.
14299 (grub_atapi_open): Likewise.
14300 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
14301 (GRUB_ATA_CH1_PORT1): Likewise.
14302 (GRUB_ATA_CH0_PORT2): Likewise.
14303 (GRUB_ATA_CH1_PORT2): Likewise.
14304 * include/grub/mips/loongson.h: New file.
14305 * include/grub/mips/yeeloong/ec.h: Likewise.
14306 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
14307 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
14308 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
14309 * include/grub/misc.h (grub_halt): Declare as noreturn.
14310 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
14311 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
14312 (UART_ENABLE_FIFO_TRIGGER1): New definition.
14313 (UART_ENABLE_DTRRTS): Likewise.
14314 (UART_ENABLE_MODEM): Removed.
14315 (UART_ENABLE_OUT2): New const.
14316 * include/grub/term.h (grub_term_register_input_active): New function.
14317 (grub_term_register_output_active): Likewise.
14318 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
14319 argument.
14320 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
14321 (init_pci): New function.
14322 (grub_machine_init): Execute platform init when firmware. Init serial.
14323 (grub_halt): Implement.
14324 (grub_exit): Likewise.
14325 (grub_reboot): Likewise.
14326 * term/serial.c (serial_hw_init): Update macros.
14327 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
14328 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
14329 (image_targets): New target mipsel-yeeloong-flash.
14330 (generate_image): Support IMAGE_YEELOONG_FLASH.
14331 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
14332 (grub_video_sm712_setup): Init card.
14333 (grub_video_sm712_set_palette): Removed.
14334 * video/sm712_init.c: New file.
14335
14336 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
14337
14338 * Makefile.in (install-local): Temporarily prepend $(builddir) to
14339 PATH when running help2man and then run it on the unadorned
14340 executable names, rather than passing $(builddir)/* paths to
14341 help2man. This avoids the build directory ending up in generated
14342 manual pages.
14343
14344 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14345
14346 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
14347 to avoid accidents when debugging with 'sh -x'.
14348 * util/grub-mkrescue.in: Likewise.
14349 * util/grub.d/00_header.in: Likewise.
14350 * util/grub.d/10_hurd.in: Likewise.
14351 * util/grub.d/10_kfreebsd.in: Likewise.
14352 * util/grub.d/10_linux.in: Likewise.
14353 * util/grub.d/10_netbsd.in: Likewise.
14354 * util/grub.d/10_windows.in: Likewise.
14355 * util/grub.d/20_linux_xen.in: Likewise.
14356 * util/grub.d/30_os-prober.in: Likewise.
14357 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14358
14359 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14360
14361 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
14362 last character in the buffer.
14363 Reported by: Vladimir Serbinenko.
14364
14365 2010-06-29 Robert Millan <rmh@gnu.org>
14366
14367 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
14368 (Command-line and menu entry commands): Document `badram' command.
14369
14370 2010-06-28 Robert Millan <rmh@gnu.org>
14371
14372 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
14373 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
14374 command using ${GRUB_BADRAM} as parameter.
14375
14376 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14377
14378 * docs/grub.texi (Device map): New section.
14379 (Themes): New section (stub).
14380 * Makefile.in (docs/grub.info): The info documentation now builds
14381 without errors. Make sure it stays that way.
14382
14383 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14384
14385 Use normal parser for menu entries.
14386 Reported by: Thomas Frauendorfer
14387
14388 * include/grub/parser.h (grub_parser_execute): Don't export.
14389 * normal/menu.c (grub_menu_execute_entry_real): New function.
14390 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
14391
14392 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14393
14394 * docs/grub.texi (Embedded configuration): New section (replacing
14395 old "Preset Menu" stub).
14396 (Images): New section.
14397 (configfile): Note that any menu entries defined in `file' are shown
14398 immediately.
14399
14400 2010-06-28 Josh Triplett <josh@joshtriplett.org>
14401
14402 * mmap/i386/pc/mmap_helper.S: Set CF on return.
14403
14404 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14405
14406 * util/grub-install.in: Add --debug-image= option.
14407
14408 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14409
14410 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
14411 possible on Linux.
14412
14413 * util/deviceiter.c (check_device): Rename to ...
14414 (check_device_readable_unique): ... this. Update all callers.
14415 Maintain and check a list of which devices (by canonicalized name)
14416 have already been seen.
14417 (clear_seen_devices): New function.
14418 (compare_file_names) [__linux__]: New function.
14419 (grub_util_iterate_devices): Clear the list of seen devices on exit
14420 and (just in case) on entry.
14421 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
14422 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
14423 seen-devices list, superseded by general code in check_device.
14424
14425 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14426
14427 * commands/cat.c (options): New variable.
14428 (grub_cmd_cat): Parse options. If the --dos option is given, print
14429 DOS-style "\r\n" line endings as simple newlines (Debian bug
14430 #586358).
14431 (GRUB_MOD_INIT): Use extcmd.
14432 (GRUB_MOD_FINI): Likewise.
14433 * docs/grub.texi (cat): Document --dos.
14434
14435 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14436
14437 XEN with Linux grub-mkconfig support.
14438
14439 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
14440 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
14441 GRUB_CMDLINE_XEN_DEFAULT.
14442 * util/grub.d/20_linux_xen.in: New file.
14443
14444 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14445
14446 Initialise VGA video on qemu ourselves.
14447
14448 * boot/i386/qemu/boot.S: Don't call 0xc000.
14449 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
14450 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
14451 (kernel_img_HEADERS): Add pci.h.
14452 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
14453 * configure.ac: Force unifont on qemu and yeeloong.
14454 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
14455 (grub_vga_palette_write): Use correct register.
14456 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
14457 Call grub_qemu_init_cirrus.
14458 * kern/i386/qemu/init.c: New file.
14459 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
14460
14461 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
14462
14463 2010-06-26 Pavel Roskin <proski@gnu.org>
14464
14465 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
14466 13.
14467
14468 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14469
14470 * docs/grub.texi (Simple configuration): Explain that
14471 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
14472 set to `true' to disable their respective recovery entries, not
14473 merely set.
14474
14475 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14476
14477 Make the `source' command slightly faster.
14478
14479 * normal/main.c (grub_normal_execute): Don't re-read list files when
14480 nested.
14481
14482 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
14483
14484 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
14485 field position and mask size to red fields from mode_info, not
14486 green.
14487 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
14488 Remove redundant tag->common.framebuffer_type assignment.
14489 Reported by: Seth Goldberg.
14490
14491 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
14492
14493 Sync up other versions of the Linux loader with Robert Millan's
14494 change of 2010-01-09, "Make loader output a bit more user-friendly".
14495
14496 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
14497 grub_dprintf().
14498 (grub_cmd_linux): Likewise.
14499 (grub_cmd_initrd): Likewise.
14500 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
14501 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14502
14503 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
14504
14505 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
14506 larger than MEMORY_MAP_SIZE.
14507
14508 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
14509
14510 Fix parallel build.
14511
14512 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
14513 dependency.
14514 * script/parser.y: #include grub_script.tab.h header.
14515
14516 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14517
14518 Support >3GiB and <16MiB RAM in i386-qemu.
14519
14520 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
14521 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
14522 (grub_lower_mem): Removed.
14523 (grub_upper_mem): Likewise.
14524 (mem_size): Made static.
14525 (above_4g): New variable.
14526 (grub_machine_mmap_init): Detect small mem_size and above_4g.
14527 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
14528 support.
14529
14530 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14531
14532 Cirrus 5446 and Bochs video cards support.
14533
14534 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
14535 video_bochs.mod
14536 (video_cirrus_mod_SOURCES): New variable.
14537 (video_cirrus_mod_CFLAGS): Likewise.
14538 (video_cirrus_mod_LDFLAGS): Likewise.
14539 (video_bochs_mod_SOURCES): Likewise.
14540 (video_bochs_mod_CFLAGS): Likewise.
14541 (video_bochs_mod_LDFLAGS): Likewise.
14542 * include/grub/vga.h: New file.
14543 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
14544 (grub_video_fb_set_page_t): New type.
14545 (grub_video_fb_setup): New prototype.
14546 (grub_video_fb_swap_buffers): Likewise.
14547 (grub_video_fb_get_info_and_fini): Likewise.
14548 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
14549 (CRTC_DATA_PORT): Likewise.
14550 (CRTC_CURSOR): Likewise.
14551 (CRTC_CURSOR_ADDR_HIGH): Likewise.
14552 (CRTC_CURSOR_ADDR_LOW): Likewise.
14553 (CRTC_CURSOR_DISABLE): Likewise.
14554 (update_cursor): Use grub_vga_cr_write.
14555 (grub_vga_text_setcursor): Likewise.
14556 * video/bochs.c: New file.
14557 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
14558 (palette): Likewise.
14559 (palette_size): Likewise.
14560 (framebuffer): New variable.
14561 (grub_video_fb_init): Use 'framebuffer'.
14562 (grub_video_fb_fini): Likewise.
14563 (grub_video_fb_get_info): Likewise.
14564 (grub_video_fb_get_palette): Likewise.
14565 (grub_video_fb_set_palette): Likewise.
14566 (grub_video_fb_set_viewport): Likewise.
14567 (grub_video_fb_get_viewport): Likewise.
14568 (grub_video_fb_map_color): Likewise.
14569 (grub_video_fb_map_rgb): Likewise.
14570 (grub_video_fb_map_rgba): Likewise.
14571 (grub_video_fb_unmap_color): Likewise.
14572 (grub_video_fb_unmap_color_int): Likewise.
14573 (grub_video_fb_fill_rect): Likewise.
14574 (grub_video_fb_blit_bitmap): Likewise.
14575 (grub_video_fb_blit_render_target): Likewise.
14576 (grub_video_fb_scroll): Likewise.
14577 (grub_video_fb_create_render_target): Likewise.
14578 (grub_video_fb_doublebuf_blit_init): Likewise.
14579 (grub_video_fb_set_active_render_target): Handle doublebuffering.
14580 (doublebuf_pageflipping_update_screen): New function.
14581 (doublebuf_pageflipping_init): Likewise.
14582 (grub_video_fb_setup): Likewise.
14583 (grub_video_fb_swap_buffers): Likewise.
14584 (grub_video_fb_get_info_and_fini): Likewise.
14585 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
14586 All users updated.
14587 (doublebuf_pageflipping_commit): Restructured into ...
14588 (doublebuf_pageflipping_set_page): ... this.
14589 (doublebuf_pageflipping_update_screen): Removed.
14590 (doublebuf_pageflipping_init): Likewise.
14591 (double_buffering_init): Likewise.
14592 (grub_video_vbe_setup): Use grub_video_fb_setup.
14593 (grub_video_vbe_swap_buffers): Removed.
14594 (grub_video_vbe_set_active_render_target): Likewise.
14595 (grub_video_vbe_get_active_render_target): Likewise.
14596 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
14597 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
14598 grub_video_fb_set_active_render_target and
14599 grub_video_fb_get_active_render_target.
14600 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
14601 (SEQUENCER_DATA_PORT): Likewise.
14602 (MAP_MASK_REGISTER): Likewise.
14603 (CRTC_ADDR_PORT): Likewise.
14604 (CRTC_DATA_PORT): Likewise.
14605 (START_ADDR_HIGH_REGISTER): Likewise.
14606 (START_ADDR_LOW_REGISTER): Likewise.
14607 (GRAPHICS_ADDR_PORT): Likewise.
14608 (GRAPHICS_DATA_PORT): Likewise.
14609 (READ_MAP_REGISTER): Likewise.
14610 (INPUT_STATUS1_REGISTER): Likewise.
14611 (INPUT_STATUS1_VERTR_BIT): Likewise.
14612 (get_map_mask): Use grub_vga_sr_read.
14613 (set_map_mask): Use grub_vga_sr_write.
14614 (set_read_map): Use grub_vga_gr_write.
14615 (set_start_address): Use grub_vga_cr_write.
14616 * video/sm712.c (framebuffer): Remove leftover fields.
14617
14618 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
14619
14620 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
14621 setting GRUB_VIDEO_BACKEND. Make it available as a user override
14622 instead. Replace the gfxterm backend check with a check that
14623 ${GRUB_PREFIX}/video.lst is non-empty.
14624 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
14625 again.
14626 (load_video): New generated function. Call it before loading
14627 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
14628 * util/grub.d/10_linux.in (linux_entry): Call load_video.
14629 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
14630 * docs/grub.texi (Simple configuration): Document
14631 GRUB_VIDEO_BACKEND.
14632
14633 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 Use video functions in linux and xnu loaders.
14636
14637 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
14638 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
14639 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
14640 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
14641 loader/i386/pc/linux.c.
14642 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
14643 (find_line_len): Removed.
14644 (find_framebuf): Likewise.
14645 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
14646 * loader/i386/efi/xnu.c: Removed.
14647 * loader/i386/pc/xnu.c: Moved from here...
14648 * loader/i386/xnu.c: ...here.
14649
14650 Enable priorities in video drivers.
14651
14652 * include/grub/video.h (grub_video_adapter_prio_t): New type.
14653 (grub_video_adapter): New field prio.
14654 (grub_video_register): Respect prio when inserting.
14655 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
14656 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
14657 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
14658 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
14659 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
14660 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
14661 * video/sm712.c (grub_video_sm712_adapter): Likewise.
14662
14663 Fix SDL driver ID.
14664
14665 * include/grub/video.h (grub_video_driver_id_t): New value
14666 GRUB_VIDEO_DRIVER_SDL.
14667 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
14668
14669 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
14670
14671 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
14672 argument to printf.
14673 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
14674
14675 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
14676
14677 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
14678 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
14679
14680 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
14681
14682 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
14683 directly, and recommend grub-install instead.
14684 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
14685
14686 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
14687
14688 Fix i386-pc prefix handling with nested partitions (Debian bug
14689 #585068). Note that the case where the core image is booted using
14690 multiboot and relocated from its original location still requires
14691 more work.
14692
14693 * kern/i386/pc/init.c (make_install_device): If the prefix starts
14694 with "(,", fill the boot drive in between those two characters, but
14695 expect that a full partition specification including partition map
14696 names will follow.
14697 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
14698 specified, write a prefix without the drive name but including a
14699 full partition specification.
14700
14701 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
14702
14703 * util/grub-mkconfig.in: Ignore non-option arguments, for
14704 compatibility with older versions (before 2010-06-12) which did the
14705 same. In particular, this makes it easier to ship an update-grub
14706 wrapper which is compatible with that used with GRUB Legacy (Debian
14707 bug #586056).
14708
14709 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14710
14711 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
14712 for manual page generation.
14713
14714 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14715
14716 * po/POTFILES: Remove leftover commands/handler.c.
14717
14718 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
14719
14720 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
14721 left this script non-functional.
14722
14723 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
14724
14725 * docs/man/grub-emu.h2m: New file.
14726
14727 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
14728
14729 * docs/grub.texi (Commands): Document reduced command set in rescue
14730 mode.
14731 (cpuid): New section.
14732
14733 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
14734
14735 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
14736 new partition naming style.
14737 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
14738
14739 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
14740
14741 Add "-o grub.iso" like cmdline options support.
14742
14743 * util/grub-install.in: Improve cmdline option parsing.
14744 * util/grub-mkconfig.in: Likewise.
14745 * util/grub-mkrescue.in: Likewise.
14746 * util/grub-reboot.in: Likewise.
14747 * util/grub-set-default.in: Likewise.
14748 * util/i386/efi/grub-install.in: Likewise.
14749 * util/ieee1275/grub-install.in: Likewise.
14750 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14751
14752 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
14753
14754 * .bzrignore: Ignore 41_custom.
14755
14756 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
14757
14758 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
14759
14760 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
14761
14762 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
14763 prototype declarations.
14764
14765 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
14766 generating fs, partmap, and video lists.
14767 * include/grub/fs.h (grub_fs_register): Omit prototype if
14768 GRUB_LST_GENERATOR is defined.
14769 * include/grub/partition.h (grub_partition_map_register): Likewise.
14770 * include/grub/video.h (grub_video_register): Likewise.
14771
14772 2010-06-12 Javier Martín <lordhabbit@gmail.com>
14773
14774 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
14775
14776 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
14777
14778 * util/grub-mkrescue.in: Support --xorriso argument.
14779
14780 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
14781
14782 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
14783 Suggested by: Thomas Schmitt.
14784
14785 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
14788 Suggested by: Thomas Schmitt.
14789
14790 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
14791
14792 custom.cfg support.
14793
14794 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
14795 * util/grub.d/41_custom.in: New file.
14796
14797 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
14798
14799 * util/grub-mkrescue.in (make_image): Remove sh module, which has
14800 been merged back into normal.
14801
14802 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
14803
14804 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
14805 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
14806
14807 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
14808
14809 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
14810 when generating manual pages.
14811 * docs/man/grub-bin2h.h2m: New file.
14812 * docs/man/grub-editenv.h2m: New file.
14813 * docs/man/grub-fstest.h2m: New file.
14814 * docs/man/grub-install.h2m: New file.
14815 * docs/man/grub-macho2img.h2m: New file.
14816 * docs/man/grub-mkconfig.h2m: New file.
14817 * docs/man/grub-mkdevicemap.h2m: New file.
14818 * docs/man/grub-mkfont.h2m: New file.
14819 * docs/man/grub-mkimage.h2m: New file.
14820 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
14821 * docs/man/grub-mkrelpath.h2m: New file.
14822 * docs/man/grub-mkrescue.h2m: New file.
14823 * docs/man/grub-ofpathname.h2m: New file.
14824 * docs/man/grub-pe2elf.h2m: New file.
14825 * docs/man/grub-probe.h2m: New file.
14826 * docs/man/grub-reboot.h2m: New file.
14827 * docs/man/grub-script-check.h2m: New file.
14828 * docs/man/grub-set-default.h2m: New file.
14829 * docs/man/grub-setup.h2m: New file.
14830
14831 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
14832
14833 Use FOR_* macros instead of *_iterate whenever possible.
14834
14835 * commands/handler.c: Removed.
14836 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
14837 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
14838 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
14839 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
14840 (grub_probe_SOURCES): Remove kern/parser.c.
14841 (util/grub-script-check.c_DEPENDENCIES): Removed.
14842 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
14843 and grub_script_check_init.c.
14844 (grub_script_check_init.lst): Removed.
14845 (grub_script_check_init.h): Likewise.
14846 (grub_script_check_init.c): Likewise.
14847 (pkglib_MODULES): Remove handler.mod and sh.mod.
14848 (handler_mod_SOURCES): Removed.
14849 (handler_mod_CFLAGS): Likewise.
14850 (handler_mod_LDFLAGS): Likewise.
14851 (normal_mod_SOURCES): Remove normal/handler.c.
14852 Add script/main.c, script/script.c, script/execute.c,
14853 script/function.c, script/lexer.c, grub_script.tab.c
14854 and grub_script.yy.c.
14855 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
14856 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14857 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
14858 (grub_setup_SOURCES): Remove kern/parser.c.
14859 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
14860 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
14861 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
14862 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14863 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14864 (grub_setup_SOURCES): Remove kern/parser.c.
14865 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
14866 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
14867 * include/grub/command.h (grub_command_iterate): Removed.
14868 (FOR_COMMANDS): New macro.
14869 * include/grub/dl.h (grub_dl): New member next.
14870 (grub_dl_iterate): Removed.
14871 (grub_dl_head): New variable declaration.
14872 (FOR_DL_MODULES): New macro.
14873 * include/grub/fs.h: Include list.h.
14874 (grub_fs): Make next first element.
14875 (grub_fs_list): New variable declaration.
14876 (grub_fs_register): Make inline.
14877 (grub_fs_unregister): Likewise.
14878 (grub_fs_iterate): Removed.
14879 (FOR_FILESYSTEMS): New macro.
14880 * include/grub/handler.h: Removed.
14881 * include/grub/list.h (grub_list_hook_t): Removed.
14882 (grub_list_test_t): Likewise.
14883 (grub_list_pop): Likewise.
14884 (grub_list_iterate): Likewise.
14885 (grub_list_insert): Likewise.
14886 (FOR_LIST_ELEMENTS): New macro.
14887 * include/grub/parser.h (grub_parser_class): Removed.
14888 (grub_parser_register): Likewise.
14889 (grub_parser_unregister): Likewise.
14890 (grub_parser_get_current): Likewise.
14891 (grub_parser_set_current): Likewise.
14892 (grub_register_rescue_parser): Likewise.
14893 (grub_rescue_parse_line): New function.
14894 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
14895 * include/grub/script_sh.h (grub_script_function_list): New variable
14896 declaration.
14897 (FOR_SCRIPT_FUNCTIONS): New macro.
14898 (grub_script_function_iterate): Removed.
14899 (grub_normal_parse_line): New prototype.
14900 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
14901 (FOR_DISABLED_TERM_INPUTS): Likewise.
14902 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
14903 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
14904 * include/grub/video.h (grub_video_adapter): Move 'next' to first
14905 element.
14906 (grub_video_register): Inline.
14907 (grub_video_unregister): Likewise.
14908 (grub_video_adapter_list): New variable declaration.
14909 (grub_video_iterate): Removed.
14910 (FOR_VIDEO_ADAPTERS): New macro.
14911 * kern/dl.c (grub_dl_list): Removed. All users updated.
14912 (grub_dl_iterate): Removed.
14913 * kern/fs.c (grub_fs_list): Make global.
14914 (grub_fs_register): Removed.
14915 (grub_fs_unregister): Likewise.
14916 (grub_fs_iterate): Likewise.
14917 * kern/handler.c: Removed.
14918 * kern/list.c (grub_list_pop): Removed.
14919 (grub_list_iterate): Likewise.
14920 (grub_list_insert): Likewise.
14921 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
14922 (grub_prio_list_insert): Don't use grub_list_insert.
14923 * kern/main.c (grub_register_rescue_parser): Don't call
14924 grub_register_rescue_parser.
14925 * kern/parser.c (grub_parser_class): Removed.
14926 (grub_parser_execute): Use grub_rescue_parse_line.
14927 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
14928 (grub_rescue_parser): Removed.
14929 (grub_register_rescue_parser): Likewise.
14930 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
14931 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
14932 (grub_auth_check_authentication): Likewise.
14933 * normal/completion.c (iterate_command): Removed.
14934 (grub_normal_do_completion): Use FOR_COMMANDS.
14935 * normal/handler.c: Removed.
14936 * normal/main.c (read_config_file): Remove parser changing.
14937 (grub_normal_execute): Don't call read_handler_list.
14938 (grub_normal_read_line_real): Statically allocate prompt.
14939 (grub_cmdline_run): Use grub_normal_parse_line.
14940 (GRUB_MOD_FINI): Don't call free_handler_list.
14941 * normal/menu_entry.c (run): Likewise.
14942 * script/function.c (grub_script_function_list): Make global.
14943 (grub_script_function_iterate): Removed.
14944 * script/main.c (grub_normal_parse_line): Make global.
14945 (grub_sh_parser): Removed.
14946 (GRUB_MOD_INIT): Likewise.
14947 (GRUB_MOD_FINI): Likewise.
14948 * tests/lib/functional_test.c (grub_functional_test): Use
14949 FOR_LIST_ELEMENTS.
14950 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
14951 (grub_test_run): Use FOR_LIST_ELEMENTS.
14952 * tests/lib/unit_test.c (main): Likewise.
14953 * util/deviceiter.c (grub_util_iterate_devices): Don't use
14954 grub_list_pop.
14955 * util/grub-fstest.c (grub_term_input_class): Removed.
14956 (grub_term_output_class): Likewise.
14957 * util/grub-probe.c: Likewise.
14958 * util/i386/pc/grub-setup.c: Likewise.
14959 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14960 * util/grub-script-check.c (main): Don't call grub_init_all and
14961 grub_fini_all.
14962 * video/video.c (grub_video_adapter_list): Make global.
14963 (grub_video_register): Removed.
14964 (grub_video_unregister): Likewise.
14965 (grub_video_iterate): Likewise.
14966
14967 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
14968
14969 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
14970 reported by Henrique Ferreiro.
14971
14972 2010-06-09 Robert Millan <rmh@gnu.org>
14973
14974 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
14975 ones, when both are available.
14976
14977 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14978
14979 Make --version uniform and avoid hard-coded program name.
14980
14981 * util/grub-mkimage.c (main): Use `program_name' instead of
14982 hard-coded string.
14983 * util/i386/pc/grub-setup.c (main): Likewise.
14984 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
14985 * util/grub-install.in: Save the basename of $0 in $self, and use the
14986 latter in informational messages. Use the same format for --version
14987 as the binary programs.
14988 * util/grub-mkconfig.in: Likewise.
14989 * util/grub-mkrescue.in: Likewise.
14990 * util/grub-reboot.in: Likewise.
14991 * util/grub-set-default.in: Likewise.
14992 * util/i386/efi/grub-install.in: Likewise.
14993 * util/ieee1275/grub-install.in: Likewise.
14994 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14995
14996 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14997
14998 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
14999 embedding area. Use <= instead of == when checking for non-emptiness.
15000
15001 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15002
15003 * configure.ac: Add `.' to the directories searched for unifont.
15004
15005 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15006
15007 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
15008 grub_script.yy.h.
15009
15010 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15011
15012 * docs/grub.texi (History): Expand to cover GRUB 2.
15013 (Serial terminal): Refer to `terminal_input' and `terminal_output'
15014 commands, not `terminal'.
15015 (serial): Likewise.
15016 (terminal_input): New section.
15017 (terminal_output): New section.
15018 (uppermem): New section (stub).
15019 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
15020
15021 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15022
15023 * docs/grub.texi (Security): Menu entries are unrestricted by
15024 default, not restricted to superusers as I had previously thought.
15025 Reword to account for this.
15026
15027 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15028
15029 * kern/emu/misc.c (device_mapper_null_log): New function.
15030 (grub_device_mapper_supported): New function.
15031 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
15032 prototype.
15033 * kern/emu/hostdisk.c (find_partition_start): Check whether
15034 device-mapper is supported before trying to use it.
15035 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
15036
15037 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15038
15039 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
15040 (File name syntax): Likewise.
15041 (help): --all is no longer supported in GRUB 2. Be more precise
15042 about pattern matching.
15043
15044 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15045
15046 * normal/completion.c (grub_normal_do_completion): When completing
15047 arguments to "set" and the current word contains an equals sign,
15048 skip to after the equals sign before starting completion.
15049
15050 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15051
15052 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
15053
15054 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15055
15056 * docs/grub.texi (Network): New section.
15057 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
15058 `(nd)' as in GRUB Legacy.
15059 (pxe_unload): New section.
15060
15061 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15062
15063 * docs/grub.texi (Troubleshooting): `echo' is not usually available
15064 in the rescue shell, so recommend using `set' instead. Thanks,
15065 Jordan Uggla.
15066
15067 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15068
15069 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
15070 (password): New section.
15071 (password_pbkdf2): New section.
15072 (search): New section.
15073 (Security): New section.
15074 (Troubleshooting): New section, currently very incomplete.
15075 (Invoking grub-mkpasswd-pbkdf2): New section.
15076 (Internals): New section, currently very incomplete.
15077
15078 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15079
15080 * util/grub.d/00_header.in: Add some more quoting (of
15081 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
15082 work again.
15083 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
15084
15085 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15086
15087 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
15088 to `count', fixing variable shadowing that broke the -c option.
15089
15090 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
15091
15092 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
15093 in case they contain spaces.
15094
15095 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15096
15097 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
15098 "part_" to partmap module names, in line with grub-install.
15099 Reported by: Jindřich Makovička (Debian bug #584426).
15100
15101 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15102
15103 * util/grub-mkimage.c: Make target-related error messages slightly
15104 more helpful; -O talks about "format". Explicitly point to the use
15105 of -O if no target is specified.
15106 Reported by: Didier Raboud (Debian bug #584415).
15107
15108 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
15109
15110 * INSTALL: Document several build requirements for optional features
15111 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
15112
15113 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15114
15115 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
15116 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
15117 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
15118
15119 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15120
15121 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
15122 Thanks to Jordan Uggla for spotting this.
15123
15124 2010-06-02 Aleš Nesrsta <starous@volny.cz>
15125
15126 Finally make USB usable.
15127
15128 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
15129 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
15130 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
15131 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
15132 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
15133 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
15134 (GRUB_OHCI_FSMPS): Likewise.
15135 (GRUB_OHCI_PERIODIC_START): Likewise.
15136 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
15137 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
15138 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
15139 (GRUB_OHCI_SET_PORT_RESET): Likewise.
15140 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
15141 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
15142 (grub_ohci_transaction): Likewise.
15143 (grub_ohci_transfer): Improve condition detection algorithms.
15144 Handle toggle property. Program the transactions correctly.
15145 Improve error handling. Various important fixups.
15146 (grub_ohci_portstatus): Put register writes in right order.
15147 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
15148 (grub_uhci_transfer): Don't show "failed" message on success.
15149 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
15150 array.
15151 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
15152 determine its size.
15153 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
15154 before initialization is completed. Use IN direction for empty
15155 transfers. Use last_trans and compute toggle.
15156 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
15157 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
15158 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
15159 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
15160 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
15161 (grub_usb_device): Increase toggle to 256.
15162 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
15163 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
15164 GRUB_USBMS_SUBCLASS_SFF8070.
15165 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
15166 (grub_scsi_inquiry): New member page and alloc_length.
15167 (grub_scsi_request_sense): New structure.
15168 (grub_scsi_request_sense_data): Likewise.
15169 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
15170 control.
15171 * disk/scsi.c (grub_scsi_request_sense): New function.
15172 (grub_scsi_test_unit_ready): Likewise.
15173 (grub_scsi_inquiry): Fill new fields.
15174 (grub_scsi_read_capacity): Likewise.
15175 (grub_scsi_read10): Add request sense at the end.
15176 (grub_scsi_read12): Likewise.
15177 (grub_scsi_write10): Likewise.
15178 (grub_scsi_write12): Likewise.
15179 (grub_scsi_open): Add Test Unit Ready.
15180 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
15181 Support additional subclasses. Con't clear halt yet. Activate the
15182 proper config. Calculate LUNs correctly.
15183 (grub_usbms_transfer): Various important fixups.
15184
15185 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15186
15187 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
15188 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
15189 (grub_ohci_fini_hw): New function.
15190 (grub_ohci_restore_hw): Likewise.
15191 (GRUB_MOD_INIT(ohci)): Register preboot hook.
15192 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
15193 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
15194
15195 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 Dedicated DMA allocations.
15198
15199 * bus/pci.c (grub_memalign_dma32): New function
15200 (grub_dma_free): Likewise.
15201 (grub_dma_get_virt): Likewise.
15202 (grub_dma_get_phys): Likewise.
15203 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
15204 (grub_ohci_pci_iter): Use dma32_alloc.
15205 (grub_ohci_transfer): Likewise.
15206 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
15207 (grub_usb_bulk_readwrite): Likewise.
15208 * include/grub/pci.h: Add declarations.
15209
15210 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15211
15212 CS5536 support.
15213
15214 * bus/cs5536.c: New file.
15215 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
15216 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
15217 (cs5536_mod_SOURCES): New variable.
15218 (cs5536_mod_CFLAGS): Likewise.
15219 (cs5536_mod_LDFLAGS): Likewise.
15220 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
15221 machine/pci.h.
15222 (kernel_img_SOURCES): Add bus/cs5536.c.
15223 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
15224 usb_keyboard.mod.
15225 (usb_mod_SOURCES): New variable.
15226 (usb_mod_CFLAGS): New variable.
15227 (usb_mod_LDFLAGS): New variable.
15228 (usbtest_mod_SOURCES): New variable.
15229 (usbtest_mod_CFLAGS): New variable.
15230 (usbtest_mod_LDFLAGS): New variable.
15231 (ohci_mod_SOURCES): New variable.
15232 (ohci_mod_CFLAGS): New variable.
15233 (ohci_mod_LDFLAGS): New variable.
15234 (usbms_mod_SOURCES): New variable.
15235 (usbms_mod_CFLAGS): New variable.
15236 (usbms_mod_LDFLAGS): New variable.
15237 (usb_keyboard_mod_SOURCES): New variable.
15238 (usb_keyboard_mod_CFLAGS): New variable.
15239 (usb_keyboard_mod_LDFLAGS): New variable.
15240 * include/grub/smbus.h: New file.
15241 * include/grub/cs5536.h: New file.
15242
15243 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15244
15245 * util/grub.d/00_header.in: Add safety check to make sure that
15246 ${locale_dir} exists before trying to probe it.
15247
15248 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15249
15250 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
15251 per the GNU Coding Standards; this is now too obscure to be worth
15252 documenting.
15253 (QNX): Likewise.
15254 (chainloader): Remove cross-reference to `SCO UnixWare'.
15255
15256 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15257
15258 * docs/grub.texi (Chain-loading): New section.
15259 (DOS/Windows): New section, borrowed from GRUB Legacy with details
15260 adjusted for GRUB 2.
15261 (SCO UnixWare): Likewise.
15262 (QNX): Likewise.
15263 (chainloader): Add reference to `Block list syntax'.
15264 (drivemap): New section.
15265 (parttool): New section.
15266
15267 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15268
15269 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
15270 the grub shell'.
15271 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
15272 (Installing GRUB using grub-install): Remove reference to the grub
15273 shell; mention `grub-mkimage' and `grub-setup' instead.
15274 (Invoking grub-install): Likewise.
15275 (Interface): Add reference to `Menu entry editor'.
15276 (serial): Remove `--device' option.
15277
15278 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15279
15280 * docs/grub.texi (Configuration): New section, documenting
15281 configuration file generation using grub-mkconfig. I've left a slot
15282 for documenting the full shell scripting format but have not yet
15283 started on writing that up.
15284 (Invoking grub-mkconfig): New section.
15285
15286 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15287
15288 * docs/grub.texi (direntry): Remove grub-terminfo reference.
15289 (GNU GRUB manual): Likewise.
15290 (General commands): Update description of `terminfo' for GRUB 2.
15291
15292 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15293
15294 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
15295 (GRUB_MOD_INIT): Fix capitalisation.
15296 * docs/grub.texi (Command-line and menu entry commands): Document
15297 gettext and gptsync commands.
15298
15299 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15300
15301 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
15302 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
15303
15304 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
15305
15306 Add btrfs probing support, currently only in the single-device case.
15307
15308 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
15309 function.
15310 (grub_guess_root_device): Call find_root_device_from_mountinfo
15311 before looking in /dev.
15312
15313 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15314
15315 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
15316 GRUB_DISK_SIZE_UNKNOWN.
15317 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
15318
15319 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
15320
15321 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
15322 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
15323 corrupted or not synced properly.
15324
15325 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15326
15327 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
15328 Reported by: Seth Goldberg.
15329
15330 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15331
15332 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
15333 addition of dest.
15334 Reported by: Seth Goldberg.
15335
15336 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15337
15338 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
15339 Reported by: Seth Goldberg.
15340
15341 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
15344 64-bit address as signed on MIPS.
15345
15346 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15347
15348 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
15349 to the empty string.
15350
15351 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
15352
15353 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
15354
15355 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
15356 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
15357 * kern/misc.c (__enable_execute_stack): Disable on
15358 GRUB_MACHINE_EMU.
15359
15360 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15361
15362 Make grub-probe work with symbolic links under /dev/mapper as well
15363 as with real block devices. The Linux world seems to be (at best)
15364 in transition here, and GRUB shouldn't get caught in the middle.
15365
15366 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
15367 /dev/mapper.
15368
15369 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15370
15371 * util/grub-script-check.c (main): Ensure defined behaviour on empty
15372 input files (in which case exit zero).
15373
15374 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15375
15376 * kern/emu/misc.c (canonicalize_file_name): realpath can still
15377 return NULL for various reasons even if it has a maximum-length
15378 buffer: for example, there might be a symlink loop, or the path
15379 might exceed PATH_MAX. If this happens, return NULL.
15380
15381 2010-05-27 Robert Millan <rmh@gnu.org>
15382
15383 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
15384 partmap module to handle cross-partmap setups.
15385 Reported by Orestes Mas. Gràcies!
15386
15387 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15388
15389 * util/grub-mkrescue.in: Initialise override_dir rather than
15390 assuming that it's unset or empty in the environment.
15391
15392 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
15393
15394 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
15395 variable index into p_index to suppress a warning with -Wshadow.
15396
15397 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
15398
15399 * INSTALL: Added flex >= 2.5.35 requirement.
15400
15401 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15402
15403 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
15404
15405 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15406
15407 cmostest support.
15408
15409 * commands/i386/cmostest.c: New file.
15410 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
15411 (cmostest_mod_SOURCES): New variable.
15412 (cmostest_mod_CFLAGS): Likewise.
15413 (cmostest_mod_LDFLAGS): Likewise.
15414 * conf/i386-pc.rmk: Likewise.
15415 * docs/grub.texi (Vendor power-on keys): New section.
15416 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
15417 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
15418 and GRUB_BUTTON_CMOS_ADDRESS.
15419 * util/grub.d/00_header.in: Handle powering-on by separate button.
15420
15421 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15422
15423 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
15424 Removed drawing_scrollbar argument. All users updated
15425 Fixes #29792.
15426 Reported by Jo Shields
15427
15428 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15429
15430 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
15431 buffer since gfxterm handles double repaint.
15432
15433 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15434
15435 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
15436 * term/gfxterm.c (real_scroll): Likewise.
15437
15438 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15439
15440 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
15441 before calling BIOS.
15442
15443 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15444
15445 * include/grub/i18n.h: Always enable grub_gettext.
15446
15447 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15448
15449 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
15450 partition naming style.
15451
15452 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
15453
15454 * util/grub-mkconfig.in: Fix handling of -o so that it works when
15455 not the first option.
15456
15457 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15458
15459 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
15460
15461 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15462
15463 * util/misc.c: Move inclusion of <limits.h> to ...
15464 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
15465
15466 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
15467
15468 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
15469 Fix merge error in NetBSD code.
15470 (find_partition_start) [__NetBSD__]: Likewise.
15471
15472 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
15473
15474 Fix grub-mkrescue usage unit testing.
15475
15476 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
15477
15478 2010-05-18 Christian Franke <franke@computer.org>
15479
15480 * util/grub.d/10_windows.in: Use path names instead of
15481 drive letters to prevent warning from Cygwin 1.7.
15482 Add drivemap command to menuentry if needed.
15483
15484 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
15485
15486 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
15487 gnumach and gnumach.gz.
15488
15489 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15490
15491 * include/grub/i18n.h (gettext): Inline instead of using #define.
15492 (grub_gettext): Likewise.
15493 (_): Likewise.
15494
15495 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15496
15497 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
15498 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
15499 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
15500 (main): Add a slash after pkglibdirroot.
15501
15502 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15503
15504 * util/grub-install.in: Add missing "in" keyword.
15505
15506 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
15509 Reported by: Seth Goldberg.
15510
15511 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15512
15513 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
15514
15515 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15516
15517 * configure.ac: Check for Linux device-mapper support.
15518
15519 * util/hostdisk.c (device_is_mapped): New function.
15520 (find_partition_start): New function, partly broken out from
15521 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
15522 device-mapper support added.
15523 (linux_find_partition): Use find_partition_start.
15524 (convert_system_partition_to_system_disk): Add `st' argument.
15525 Support Linux /dev/mapper/* devices if device-mapper support is
15526 available; only DM-RAID devices are understood at present.
15527 (find_system_device): Add `st' argument. Pass it to
15528 convert_system_partition_to_system_disk.
15529 (grub_util_biosdisk_get_grub_dev): Pass stat result to
15530 find_system_device and convert_system_partition_to_system_disk. Use
15531 find_partition_start.
15532
15533 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
15534 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
15535 * util/deviceiter.c [__linux__]: Define MINOR.
15536 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
15537 * util/mkdevicemap.c (grub_putchar): New function.
15538 (grub_getkey): New function.
15539 (grub_refresh): New function.
15540 (main): Set debug=all if -v -v is used.
15541
15542 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15543
15544 Fix build with non-GNU libcs.
15545
15546 * util/misc.c (canonicalize_file_name): Move to ...
15547 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
15548 grub_make_system_path_relative_to_its_root.
15549
15550 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15551
15552 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
15553 we handle finding grub-mkimage. Default to finding grub-mkimage in
15554 ${bindir} with program_transform_name applied, and provide a
15555 --grub-mkimage option to override this.
15556
15557 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15558
15559 Remove grub-mkisofs.
15560
15561 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
15562 (grub_mkisofs_SOURCES): Removed.
15563 (grub_mkisofs_CFLAGS): Removed.
15564 * util/mkisofs/defaults.h: Removed.
15565 * util/mkisofs/eltorito.c: Likewise.
15566 * util/mkisofs/exclude.h: Likewise.
15567 * util/mkisofs/hash.c: Likewise.
15568 * util/mkisofs/include/: Likewise.
15569 * util/mkisofs/include/fctldefs.h: Likewise.
15570 * util/mkisofs/include/mconfig.h: Likewise.
15571 * util/mkisofs/include/prototyp.h: Likewise.
15572 * util/mkisofs/include/statdefs.h: Likewise.
15573 * util/mkisofs/iso9660.h: Likewise.
15574 * util/mkisofs/joliet.c: Likewise.
15575 * util/mkisofs/match.c: Likewise.
15576 * util/mkisofs/match.h: Likewise.
15577 * util/mkisofs/mkisofs.c: Likewise.
15578 * util/mkisofs/mkisofs.h: Likewise.
15579 * util/mkisofs/msdos_partition.h: Likewise.
15580 * util/mkisofs/multi.c: Likewise.
15581 * util/mkisofs/name.c: Likewise.
15582 * util/mkisofs/rock.c: Likewise.
15583 * util/mkisofs/tree.c: Likewise.
15584 * util/mkisofs/write.c: Likewise.
15585
15586 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15587
15588 Unify grub-mkimage accross platforms.
15589
15590 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
15591 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
15592 (grub_mkelfimage_SOURCES): Removed.
15593 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
15594 (util/grub-mkimage.c_DEPENDENCIES): .. this.
15595 (bin_UTILITIES): Add grub-mkimage.
15596 (grub_mkimage_SOURCES): New variable.
15597 (kernel_img_HEADERS): Remove machine/kernel.h.
15598 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
15599 (pkglib_PROGRAMS): Add kernel.img.
15600 (kernel_img_HEADERS): Add machine/kernel.h.
15601 (kernel_img_FORMAT): Removed.
15602 (bin_UTILITIES): Remove grub-mkimage.
15603 (grub_mkimage_SOURCES): Removed.
15604 (grub_mkimage_CFLAGS): Likewise.
15605 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15606 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
15607 (pkglib_PROGRAMS): Add kernel.img.
15608 (bin_UTILITIES): Remove grub-mkimage.
15609 (grub_mkimage_SOURCES): Removed.
15610 (grub_mkimage_CFLAGS): Likewise.
15611 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15612 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
15613 (pkglib_PROGRAMS): Add kernel.img.
15614 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
15615 (pkglib_PROGRAMS): Add kernel.img.
15616 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
15617 (grub_mkimage_SOURCES): Removed.
15618 (grub_mkimage_CFLAGS): Likewise.
15619 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15620 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
15621 (pkglib_PROGRAMS): Add kernel.img.
15622 (bin_UTILITIES): Remove grub-mkimage.
15623 (grub_mkimage_SOURCES): Removed.
15624 (grub_mkimage_CFLAGS): Likewise.
15625 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15626 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
15627 (grub_mkimage_SOURCES): Removed.
15628 (grub_mkimage_CFLAGS): Likewise.
15629 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15630 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
15631 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
15632 (grub_pe32_optional_header): ... this.
15633 (grub_pe64_optional_header): ... and this. All users updated.
15634 (GRUB_PE32_PE32_MAGIC): Split into ..
15635 (GRUB_PE32_PE32_MAGIC): .. this.
15636 (GRUB_PE32_PE64_MAGIC): .. and this.
15637 (GRUB_PE32_SIGNATURE_SIZE): New definition.
15638 * include/grub/elf.h (PT_GNU_STACK): New definition.
15639 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
15640 * include/grub/i386/efi/kernel.h: Likewise.
15641 * include/grub/i386/kernel.h: Likewise.
15642 * include/grub/i386/pc/kernel.h: Likewise.
15643 * include/grub/i386/qemu/boot.h: Likewise.
15644 * include/grub/mips/kernel.h: Likewise.
15645 * include/grub/mips/qemu-mips/kernel.h: Likewise.
15646 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
15647 * include/grub/powerpc/kernel.h: Likewise.
15648 * include/grub/sparc64/ieee1275/boot.h: Likewise.
15649 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
15650 * include/grub/sparc64/kernel.h: Likewise.
15651 * include/grub/x86_64/efi/kernel.h: Likewise.
15652 * include/grub/x86_64/kernel.h: Likewise.
15653 * include/grub/offsets.h: New file.
15654 * include/grub/kernel.h (grub_module_info): Split into ...
15655 (grub_module_info32): ... this.
15656 (grub_module_info64): ... and this.
15657 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
15658 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
15659 (grub_boot_blocklist): Moved from here ...
15660 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
15661 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
15662 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
15663 * include/grub/types.h (grub_target_to_host16): Removed.
15664 (grub_target_to_host32): Likewise.
15665 (grub_target_to_host64): Likewise.
15666 (grub_host_to_target16): Likewise.
15667 (grub_host_to_target32): Likewise.
15668 (grub_host_to_target64): Likewise.
15669 (grub_host_to_target_addr): Likewise.
15670
15671 Support grub-mkrescue for efi, coreboot and qemu.
15672
15673 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
15674 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
15675 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
15676 * util/grub-mkrawimage.c: Moved from here ...
15677 * util/grub-mkimage.c: ... here. All users updated.
15678 (ALIGN_ADDR): Use image_target.
15679 (TARGET_NO_FIELD): New const.
15680 (image_target_desc): New type.
15681 (image_targets): New array.
15682 (grub_target_to_host64): Use image_target.
15683 (grub_target_to_host32): Likewise.
15684 (grub_target_to_host16): Likewise.
15685 (grub_host_to_target64): Likewise.
15686 (grub_host_to_target32): Likewise.
15687 (grub_host_to_target16): Likewise.
15688 (grub_host_to_target_addr): Likewise.
15689 (generate_image): Handle multiimage.
15690 (main): Require -O parameter. All users updated.
15691 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
15692 util/efi/grub-mkimage.c
15693 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
15694 New option --rom-directory.
15695 Use xorriso.
15696 * util/i386/efi/grub-mkimage.c: Removed.
15697 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
15698 (grub_target_to_host32): Likewise.
15699 (grub_target_to_host64): Likewise.
15700 (grub_host_to_target16): Likewise.
15701 (grub_host_to_target32): Likewise.
15702 (grub_host_to_target64): Likewise.
15703 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
15704 (grub_target_to_host32): Likewise.
15705 (grub_target_to_host64): Likewise.
15706 (grub_host_to_target16): Likewise.
15707 (grub_host_to_target32): Likewise.
15708 (grub_host_to_target64): Likewise.
15709
15710 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
15711
15712 Source tree is reorganized for emu build.
15713
15714 * include/grub/util/console.h: Move from here...
15715 * include/grub/emu/console.h: ...to here.
15716 * include/grub/util/getroot.h: Move from here...
15717 * include/grub/emu/getroot.h: ...to here.
15718 * include/grub/util/hostdisk.h: Move from here...
15719 * include/grub/emu/hostdisk.h: ...to here.
15720 * util/console.c: Move from here...
15721 * kern/emu/console.c: ...to here.
15722 * util/getroot.c: Move from here...
15723 * kern/emu/getroot.c: ...to here.
15724 * util/grub-emu.c: Move from here...
15725 * kern/emu/main.c: ...to here.
15726 * util/hostdisk.c: Move from here...
15727 * kern/emu/hostdisk.c: ...to here.
15728 * util/hostfs.c: Move from here...
15729 * kern/emu/hostfs.c: ...to here.
15730 * util/mm.c: Move from here...
15731 * kern/emu/mm.c: ...to here.
15732 * util/pci.c: Move from here...
15733 * bus/emu/pci.c: ...to here.
15734 * util/sdl.c: Move from here...
15735 * video/emu/sdl.c: ...to here.
15736 * util/time.c: Move from here...
15737 * kern/emu/time.c: ...to here.
15738 * util/usb.c: Move from here...
15739 * bus/usb/emu/usb.c: ...to here.
15740
15741 * include/grub/emu/misc.h: New header for grub-emu functions.
15742 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
15743
15744 * conf/any-emu.rmk: Rule updates for above renames.
15745 * conf/common.rmk: Likewise.
15746 * conf/i386-pc.rmk: Likewise.
15747 * conf/i386-qemu.rmk: Likewise.
15748 * conf/mips.rmk: Likewise.
15749 * conf/sparc64-ieee1275.rmk: Likewise.
15750 * conf/x86-efi.rmk: Likewise.
15751
15752 * disk/lvm.h: #include updates for above renames.
15753 * util/grub-mkrelpath.c: Likewise.
15754 * util/grub-probe.c: Likewise.
15755 * util/i386/pc/grub-setup.c: Likewise.
15756 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15757 * kern/emu/console.c: Likewise.
15758 * kern/emu/getroot.c: Likewise.
15759 * kern/emu/hostdisk.c: Likewise.
15760 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
15761
15762 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
15763 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
15764 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
15765 * util/misc.c: Remove grub-emu functions.
15766
15767 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15768
15769 Fix gfxmenu crash.
15770 Reported by: Thorsten Grützmacher.
15771
15772 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
15773 timeout hook.
15774 (circprog_set_property): Register and unregister timeout hook.
15775 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
15776 (label_destroy): Free template. and unregister hook.
15777 (label_set_state): New function.
15778 (label_set_property): Handle templates and hooks.
15779 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
15780 timeout hook.
15781 (progress_bar_set_property): Register and unregister timeout hook.
15782 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
15783 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
15784 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
15785 (update_timeout_visit): Removed.
15786 (update_timeouts): New function.
15787 (redraw_timeouts): Likewise.
15788 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
15789 (grub_gfxmenu_clear_timeout): Likewise.
15790 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
15791 (grub_gfxmenu_timeout_notify): Likewise.
15792 (grub_gfxmenu_timeout_notifications): New external variable.
15793 (grub_gfxmenu_timeout_register): New function.
15794 (grub_gfxmenu_timeout_unregister): Likewise.
15795
15796 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15797
15798 Transform (broken) vga terminal into (working) vga video driver.
15799
15800 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
15801 video/i386/pc/vga.c.
15802 * include/grub/video.h (grub_video_driver_id):
15803 Add GRUB_VIDEO_DRIVER_VGA.
15804 * term/i386/pc/vga.c: Renamed to ...
15805 * video/i386/pc/vga.c: ...this
15806 (DEBUG_VGA): Removed.
15807 (CHAR_WIDTH): Likewise.
15808 (CHAR_HEIGHT): Likewise.
15809 (TEXT_WIDTH): Likewise.
15810 (TEXT_HEIGHT): Likewise.
15811 (DEFAULT_FG_COLOR): Likewise.
15812 (DEFAULT_BG_COLOR): Likewise.
15813 (colored_char): Likewise.
15814 (xpos): Likewise.
15815 (ypos): Likewise.
15816 (cursor_state): Likewise.
15817 (fg_color): Likewise.
15818 (bg_color): Likewise.
15819 (text_buf): Likewise.
15820 (page): Likewise.
15821 (font): Likewise.
15822 (framebuffer): New variable.
15823 (set_read_map): Disabled.
15824 (setup): New variable.
15825 (is_target): Likewise.
15826 (grub_vga_mod_init): Likewise.
15827 (grub_vga_mod_fini): Likewise.
15828 (check_vga_mem): Likewise.
15829 (write_char): Likewise.
15830 (write_cursor): Likewise.
15831 (scroll_up): Likewise.
15832 (grub_vga_putchar): Likewise.
15833 (grub_vga_getcharwidth): Likewise.
15834 (grub_vga_getwh): Likewise.
15835 (grub_vga_getxy): Likewise.
15836 (grub_vga_gotoxy): Likewise.
15837 (grub_vga_cls): Likewise.
15838 (grub_vga_setcolorstate): Likewise.
15839 (grub_vga_setcursor): Likewise.
15840 (grub_video_vga_init): New function.
15841 (grub_video_vga_setup): Likewise.
15842 (grub_video_vga_fini): Likewise.
15843 (update_target): Likewise.
15844 (grub_video_vga_blit_bitmap): Likewise.
15845 (grub_video_vga_blit_render_target): Likewise.
15846 (grub_video_vga_set_active_render_target): Likewise.
15847 (grub_video_vga_get_active_render_target): Likewise.
15848 (grub_video_vga_swap_buffers): Likewise.
15849 (grub_video_vga_set_palette): Likewise.
15850 (grub_video_vga_get_info_and_fini): Likewise.
15851 (grub_vga_term): Removed.
15852 (grub_video_vga_adapter): New variable.
15853 (GRUB_MOD_INIT): Register a video driver instead of terminal.
15854 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
15855
15856 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 * video/readers/jpeg.c: Indented.
15859
15860 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 Various jpeg cleanups.
15863
15864 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
15865 (grub_jpeg_decode_quan_table): Use sizeof.
15866 (grub_jpeg_decode_du): Use ARRAY_SIZE.
15867
15868 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
15869
15870 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
15871 tables. Ignore non-last ac bit.
15872 (grub_jpeg_decode_quan_table): Likewise.
15873
15874 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15875
15876 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
15877 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
15878 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15879 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
15880 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
15881 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
15882
15883 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15884
15885 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
15886 error.
15887
15888 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15889
15890 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
15891
15892 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
15895 condition.
15896
15897 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
15898
15899 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
15900 part.
15901
15902 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
15903
15904 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
15905 pointers.
15906
15907 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
15908
15909 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
15910
15911 2010-05-01 Christian Franke <franke@computer.org>
15912
15913 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
15914 Remove broken Cygwin path conversion.
15915 * util/misc.c: [__CYGWIN__] Add include and define.
15916 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
15917 for Cygwin 1.7.
15918 (make_system_path_relative_to_its_root): Simplify loop, replace early
15919 return by break.
15920 [__CYGWIN__] Add conversion to win32 path.
15921 Include "/" case in trailing slash removal.
15922
15923 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15924
15925 * kern/main.c (grub_load_config): Fix copy-pasted comment.
15926 Reported by: Seth Goldberg
15927
15928 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15929
15930 * commands/help.c (grub_cmd_help): Fix a typo.
15931 Reported by: Seth Goldberg
15932
15933 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15934
15935 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
15936 name and add N_.
15937 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
15938 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
15939 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
15940 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
15941 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
15942 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
15943 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
15944 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
15945 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
15946 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
15947 * normal/context.c (GRUB_MOD_INIT): Likewise.
15948 * normal/main.c (GRUB_MOD_INIT): Likewise.
15949 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
15950 * term/serial.c (GRUB_MOD_INIT): Likewise.
15951 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
15952
15953 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15954
15955 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
15956 extra == 0.
15957
15958 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15959
15960 * commands/iorw.c: New file.
15961 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
15962 (iorw_mod_SOURCES): New variable.
15963 (iorw_mod_CFLAGS): Likewise.
15964 (iorw_mod_LDFLAGS): Likewise.
15965
15966 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15967
15968 Hotkey support
15969
15970 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
15971 * normal/main.c (hotkey_aliases): New variable.
15972 (grub_normal_add_menu_entry): Parse "--hotkey".
15973 * normal/menu_text.c (run_menu): Handle hotkeys.
15974
15975 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15976
15977 * kern/i386/coreboot/init.c (grub_machine_init): Call
15978 grub_machine_mmap_init on qemu.
15979
15980 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15981
15982 * boot/i386/qemu/boot.S: Add a missing .code16.
15983
15984 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
15985
15986 Use LBIO on coreboot.
15987
15988 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
15989 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
15990 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
15991 New declaration.
15992 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
15993 grub_machine_mmap_init on coreboot.
15994 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
15995 GRUB_LINUXBIOS_MEMBER_LINK.
15996 (grub_machine_mmap_iterate): Fix declaration.
15997 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
15998
15999 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16000
16001 Split coreboot and multiboot ports.
16002
16003 * conf/i386-multiboot.rmk: New file.
16004 * configure.ac: Add multiboot port.
16005 * include/grub/i386/multiboot/boot.h: New file.
16006 * include/grub/i386/multiboot/console.h: Likewise.
16007 * include/grub/i386/multiboot/init.h: Likewise.
16008 * include/grub/i386/multiboot/kernel.h: Likewise.
16009 * include/grub/i386/multiboot/loader.h: Likewise.
16010 * include/grub/i386/multiboot/memory.h: Likewise.
16011 * include/grub/i386/multiboot/serial.h: Likewise.
16012 * include/grub/i386/multiboot/time.h: Likewise.
16013 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
16014 * loader/multiboot.c: Likewise.
16015 * loader/multiboot_mbi2.c: Likewise.
16016 * util/grub-mkrescue.in: Generate multiboot rescue.
16017
16018 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16019
16020 * kern/parser.c (grub_parser_execute): Cope with read-only config.
16021
16022 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 Merge handling of input and output terminals. Fix a hang.
16025
16026 * commands/terminal.c (abstract_terminal): New struct.
16027 (handle_command): New function. Based on grub_cmd_terminal_input.
16028 (grub_cmd_terminal_input): Use handle_command.
16029 (grub_cmd_terminal_output): Use handle_command.
16030
16031 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
16032
16033 Fix comment handling.
16034
16035 * tests/grub_script_comments.in: New testcase.
16036 * conf/tests.rmk: Rules for new testcase.
16037 * script/yylex.l: Updated flex rules.
16038
16039 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
16040
16041 * docs/grub.texi (play): Document that zero pitches produce rests.
16042 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
16043 if argc is 1.
16044
16045 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
16046
16047 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
16048 autogen issues.
16049
16050 2010-04-26 Christian Franke <franke@computer.org>
16051
16052 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
16053 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
16054 (grub_get_prefix): Remove function.
16055 * util/grub-emu.c (main): Replace grub_get_prefix () call by
16056 make_system_path_relative_to_its_root ().
16057 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16058
16059 2010-04-24 Christian Franke <franke@computer.org>
16060
16061 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
16062 (kernel_img_LDFLAGS): Remove -static-libgcc.
16063
16064 2010-04-24 Christian Franke <franke@computer.org>
16065
16066 * configure.ac: Do not CHECK_BSS_START_SYMBOL
16067 and CHECK_END_SYMBOL if grub-emu is built.
16068 Unset TARGET_OBJ2ELF if grub-emu is built
16069 without module support.
16070
16071 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
16072
16073 Nilfs2 support.
16074
16075 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
16076 (grub_fstest_SOURCES): Likewise.
16077 (pkglib_MODULES): Add nilfs2.mod.
16078 (nilfs2_mod_SOURCES): New variable.
16079 (nilfs2_mod_CFLAGS): Likewise.
16080 (nilfs2_mod_LDFLAGS): Likewise.
16081 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16082 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16083 * fs/nilfs2.c: New file.
16084
16085 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
16086
16087 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
16088 is not supported.
16089
16090 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
16091
16092 Add grub-mkconfig support for NetBSD.
16093
16094 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
16095 * util/grub-mkconfig.in: export new NetBSD specific variables.
16096 * po/POTFILES-shell: added 10_netbsd.in.
16097 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
16098
16099 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
16100
16101 Fix emu build with grub-emu-pci and grub-emu-modules.
16102
16103 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
16104 functions.
16105 * include/grub/libpciaccess.h: New file.
16106 * conf/any-emu.rmk: Update kernel headers for emu build.
16107
16108 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16109
16110 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
16111
16112 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16113
16114 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
16115
16116 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16117
16118 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
16119 Retrieve chosen/bootpath if bootpath isn't hardcoded.
16120 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
16121 util/ieee1275/ofpath.c.
16122 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
16123 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
16124 * include/grub/sparc64/ieee1275/boot.h
16125 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
16126 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
16127 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
16128 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
16129 const char *.
16130 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
16131 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
16132 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
16133 install.
16134
16135 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16136
16137 * util/grub-mkconfig.in: Corrected two == equality tests.
16138 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
16139 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
16140 expect a number appended to it.
16141 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
16142 expects a number appended to it.
16143
16144 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16145
16146 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
16147
16148 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16149
16150 * util/hostdisk.c (make_device_name): Change to new partition naming.
16151
16152 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
16155
16156 2010-04-17 Christian Franke <franke@computer.org>
16157
16158 * Makefile.in: Add missing localedir setting.
16159
16160 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
16161
16162 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
16163 mistake in r2156. Noticed by Anthony Fok.
16164
16165 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
16166 @localedir@.
16167 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
16168
16169 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
16170
16171 Fix a spurious, uninitialized variable warning.
16172
16173 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
16174 Initialize variable, shdr.
16175 (grub_freebsd_load_elfmodule): Likewise.
16176 (grub_freebsd_load_elf_meta): Likewise.
16177
16178 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
16179
16180 Fix for escaped dollar in double quoted strings.
16181
16182 * script/yylex.l: Updated flex rules.
16183 * conf/tests.rmk: Rule for new testcase.
16184 * tests/grub_script_dollar.in: New testcase.
16185
16186 2010-04-13 Carles Pina i Estany <carles@pina.cat>
16187 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
16188
16189 Enclose all translated strings in grub.cfg in single quotes, and
16190 escape them appropriately (Ubuntu bug #552921).
16191
16192 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
16193 * util/grub.d/10_hurd.in: Use it.
16194 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16195 * util/grub.d/10_linux.in (linux_entry): Likewise.
16196
16197 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16198
16199 Fix cygwin compilation.
16200
16201 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
16202 * include/grub/misc.h (__register_frame_info)
16203 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
16204 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16205 * kern/misc.c (__register_frame_info)
16206 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
16207 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16208
16209 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16210
16211 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
16212
16213 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16214
16215 Unify libgcc processing.
16216
16217 * Makefile.in (kernel_img_LDFLAGS): New variable.
16218 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
16219 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
16220 overwriting.
16221 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
16222 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
16223 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
16224 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
16225 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
16226 overwriting. Remove -lgcc and -static-libgcc
16227 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
16228 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16229 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16230 (kernel_img_LDFLAGS): Append instead of overwriting.
16231 Remove -lgcc and -static-libgcc
16232 * conf/sparc64-ieee1275.rmk: Likewise.
16233 * include/grub/powerpc/libgcc.h: Move to ...
16234 * include/grub/libgcc.h: .. this.
16235 * include/grub/libgcc.h: Don't export most of the function on x86.
16236 (__bswapsi2): New export.
16237 (__bswapdi2): Likewise.
16238 * include/grub/mips/libgcc.h: Removed.
16239 * include/grub/sparc64/libgcc.h: Likewise.
16240
16241 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
16244 disk_info_msg (conflicts with gettexting into languages with cases).
16245
16246 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
16247
16248 Add grub-probe support for NetBSD.
16249
16250 * util/getroot.c (find_root_device): Convert block device to
16251 character device on NetBSD.
16252 * util/probe.c (probe): Require character device on NetBSD.
16253 * util/hostdisk.c: NetBSD specific headers.
16254 (configure_device_driver): new function to tune device driver
16255 parameters (currently only for NetBSD floppy driver).
16256 (grub_util_biosdisk_open): NetBSD specific code (get disk size
16257 via disklabel ioctl).
16258 (open_device): call configure_device_driver on NetBSD.
16259 (convert_system_partition_to_system_disk): NetBSD specific code.
16260 (device_is_wholedisk): Likewise.
16261 (grub_util_biosdisk_get_grub_dev): Likewise.
16262 (make_device_name): Fixed a typo in bsd_part_str.
16263 * configure.ac: check for opendisk() and getrawpartition() on
16264 NetBSD and set LIBUTIL.
16265 * Makefile.in: add LIBUTIL to LIBS.
16266
16267 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16268
16269 Documentation fix.
16270
16271 * util/grub-script-check.c: Better help message.
16272
16273 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16274
16275 Fix FreeBSD build.
16276
16277 * configure.ac: Flex version check.
16278 * conf/common.rmk: Add -Wno-error to sh.mod.
16279 * script/yylex.l: Remove all #pragma.
16280
16281 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16282
16283 * include/grub/util/misc.h (canonicalise_file_name): Add missing
16284 prototype.
16285 Reported by: Seth Goldberg.
16286
16287 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16288
16289 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
16290 Rename "module" to "module2".
16291 Reported by: Seth Goldberg.
16292
16293 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16294
16295 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
16296 EXPORT_FUNC.
16297 Reported by: Seth Goldberg.
16298
16299 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16300
16301 * lib/posix_wrap/locale.h: Add missing file.
16302 Reported by: Seth Goldberg.
16303
16304 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16305
16306 grub-emu module load support.
16307
16308 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
16309 NO_DYNAMIC_MODULES switched to this.
16310 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
16311 (CFLAGS): Likewise.
16312 * conf/any-emu.rmk: Generate symlist.
16313 (kernel_img_HEADERS): Add util/datetime.h.
16314 (kernel_img_HEADERS) [sdl]: Add sdl.h.
16315 (kernel_img_HEADERS) [libusb]: Add libusb.h.
16316 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
16317 kern/$(target_cpu)/cache.S.
16318 * configure.ac (grub-emu-modules): New option.
16319 * genmk.rb: Handle multiple source lists.
16320 * include/grub/sdl.h: New file.
16321 * include/grub/libusb.h: Likewise.
16322 * util/grub-emu.c (main): Hanle (host) root.
16323 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
16324 GRUB_ERR_UNKNOWN_DEVICE.
16325 * util/misc.c: Move mm functions to ...
16326 * util/mm.c: ... here. All users updated.
16327
16328 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
16331 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
16332 missing files.
16333 (maintainer-clean): Remove libgcrypt-grub.
16334
16335 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16336
16337 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
16338
16339 2010-04-09 EFI Coder <eficoder@hotmail.com>
16340
16341 * normal/menu_text.c (print_message): Clean up the message and show
16342 the Fn information when on EFI
16343 * term/efi/console.c (grub_console_checkkey): Add F4 support.
16344
16345 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16346
16347 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
16348 All users updated.
16349 * normal/crypto.c (read_crypto_list): Likewise.
16350 * normal/dyncmd.c (read_command_list): Likewise.
16351 * normal/term.c (read_terminal_list): Likewise.
16352 * normal/main.c (read_lists): Use explicit prefix.
16353 (read_lists_hook): Use read_lists.
16354 (grub_normal_execute): Likewise.
16355
16356 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16357
16358 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
16359 Reported by: Thomas Schmitt.
16360 Add -no-emul-boot to grub-mkisofs parameters.
16361
16362 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16363
16364 * font/font.c: Indented.
16365
16366 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16367
16368 Elif support to GRUB script (by Deepak Vankadaru).
16369
16370 * tests/grub_script_if.in: New testcase.
16371 * conf/tests.rmk: Rule for new testcase.
16372 * script/parser.y: Grammar rules for elif.
16373
16374 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16375
16376 While and until loops support to GRUB script.
16377
16378 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
16379 (grub_script_create_cmdwhile): New function prototype.
16380 (grub_script_execute_cmdwhile): New function prototype.
16381 * script/execute.c (grub_script_execute_cmdwhile): New function.
16382 * script/parser.y (command): New commands.
16383 (whilecmd): New grammar rule.
16384 (untilcmd): New grammar rule.
16385 * script/script.c (grub_script_create_cmdwhile): New function.
16386 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
16387 function.
16388
16389 * tests/grub_script_while1.in: New testcase.
16390 * conf/tests.rmk: Rule for new testcase.
16391
16392 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16393
16394 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
16395 as *.jpg.
16396
16397 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
16398
16399 GRUB_BACKGROUND support.
16400
16401 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
16402 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
16403
16404 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16405
16406 Load fonts and modules for gfxmenu in grub-mkconfig.
16407 Idea by: Mario Vazquez
16408
16409 * util/grub.d/00_header.in: Load pf2 and image modules.
16410
16411 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16412
16413 grub-mkconfig multiple terminal support.
16414
16415 * util/grub-mkconfig.in: Handle multiple terminals correctly.
16416 * util/grub.d/00_header.in: Likewise.
16417
16418 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16419
16420 * Makefile.in: Specify files explicitly instead of using $< and $@ since
16421 we use cd $(srcdir).
16422
16423 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
16424
16425 * util/grub.d/10_linux.in: Only use the first word of
16426 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
16427 spaces in GRUB_DISTRIBUTOR.
16428 * util/grub.d/10_kfreebsd.in: Likewise.
16429 * util/grub.d/10_hurd.in: Likewise.
16430
16431 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
16432
16433 Fix unit testing framework for Qemu 0.12.
16434
16435 * tests/util/grub-shell.in: Remove -serial stdio option.
16436
16437 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16438
16439 POSIX header file wrappers.
16440
16441 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
16442 equivalents.
16443 * lib/posix_wrap/ctype.h: Likewise.
16444 * lib/posix_wrap/errno.h: Likewise.
16445 * lib/posix_wrap/langinfo.h: Likewise.
16446 * lib/posix_wrap/limits.h: Likewise.
16447 * lib/posix_wrap/localcharset.h: Likewise.
16448 * lib/posix_wrap/stdint.h: Likewise.
16449 * lib/posix_wrap/stdio.h: Likewise.
16450 * lib/posix_wrap/stdlib.h: Likewise.
16451 * lib/posix_wrap/string.h: Likewise.
16452 * lib/posix_wrap/sys/types.h: Likewise.
16453 * lib/posix_wrap/unistd.h: Likewise.
16454 * lib/posix_wrap/wchar.h: Likewise.
16455 * lib/posix_wrap/wctype.h: Likewise.
16456 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
16457 (grub_script.yy.h): Likewise.
16458 * script/yylex.l: Remove POSIX emulation #defines.
16459 * Makefile.in (POSIX_CFLAGS): New variable.
16460 (GNULIB_UTIL_CFLAGS): Likewise.
16461
16462 Regexp support.
16463
16464 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
16465 (regexp_mod_SOURCES): New variable.
16466 (regexp_mod_CFLAGS): Likewise.
16467 (regexp_mod_LDFLAGS): Likewise.
16468 * commands/regexp.c: New file.
16469 * gnulib/regcomp.c: New file. Imported from gnulib.
16470 * gnulib/regex.c: Likewise.
16471 * gnulib/regex_internal.c: Likewise.
16472 * gnulib/regex_internal.h: Likewise.
16473 * gnulib/regexec.c: Likewise.
16474 * gnulib/regex.h: Likewise.
16475
16476 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16477
16478 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
16479 unsupported video mode types.
16480
16481 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16482
16483 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
16484
16485 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16486
16487 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
16488 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
16489
16490 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
16491
16492 Remove unused grub_vga_get_font.
16493
16494 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
16495 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
16496
16497 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16498
16499 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
16500 * include/grub/misc.h: Likewise.
16501
16502 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16503
16504 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
16505 for which failure is fatal.
16506
16507 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16508
16509 * util/grub-install.in: Use mkdir -p to create grub directory.
16510 * util/i386/efi/grub-install.in: Likewise.
16511 * util/ieee1275/grub-install.in: Likewise.
16512
16513 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16514
16515 * Makefile.in (LEX): new variable.
16516
16517 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16518
16519 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
16520 `=' and added double quotes on operands of this equality test.
16521
16522 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
16523
16524 * Makefile.in (uninstall): Remove a leftover debug echo.
16525 Reported by: Grégoire Sutre
16526
16527 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
16528
16529 MIPS multiboot2 support.
16530
16531 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
16532 (multiboot2_mod_SOURCES): New variable.
16533 (multiboot2_mod_CFLAGS): Likewise.
16534 (multiboot2_mod_LDFLAGS): Likewise.
16535 (multiboot2_mod_ASFLAGS): Likewise.
16536 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
16537 definition.
16538 (MULTIBOOT_ENTRY_REGISTER): Likewise.
16539 (MULTIBOOT_MBI_REGISTER): Likewise.
16540 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
16541 (MULTIBOOT_ELF32_MACHINE): Likewise.
16542 (MULTIBOOT_ELF64_MACHINE): Likewise.
16543 * include/grub/mips/multiboot.h: New file.
16544 * include/grub/video.h (grub_video_driver_id): New type
16545 GRUB_VIDEO_DRIVER_SM712.
16546 (grub_video_get_info_and_fini): Export.
16547 (grub_video_get_palette): Likewise.
16548 (grub_video_get_driver_id): Likewise.
16549 * include/multiboot2.h: Resynced with spec.
16550 * loader/i386/multiboot.c: Moved from here ...
16551 * loader/multiboot.c: ... here. All users updated.
16552 (grub_multiboot_boot): Use platform-specific macros.
16553 * loader/i386/multiboot_elfxx.c: Moved from here ...
16554 * loader/multiboot_elfxx.c: ... here. All users updated.
16555 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
16556 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
16557 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
16558
16559 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16560
16561 Import gnulib argp module.
16562
16563 * gnulib/argp-ba.c: New file.
16564 * gnulib/argp-eexst.c: Likewise.
16565 * gnulib/argp-fmtstream.c: Likewise.
16566 * gnulib/argp-fmtstream.h: Likewise.
16567 * gnulib/argp-fs-xinl.c: Likewise.
16568 * gnulib/argp-help.c: Likewise.
16569 * gnulib/argp-namefrob.h: Likewise.
16570 * gnulib/argp-parse.c: Likewise.
16571 * gnulib/argp-pin.c: Likewise.
16572 * gnulib/argp-pv.c: Likewise.
16573 * gnulib/argp-pvh.c: Likewise.
16574 * gnulib/argp-version-etc.c: Likewise.
16575 * gnulib/argp-version-etc.h: Likewise.
16576 * gnulib/argp-xinl.c: Likewise.
16577 * gnulib/argp.h: Likewise.
16578
16579 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
16580
16581 * kern/device.c (grub_device_iterate): Clear errors after failed
16582 opening device.
16583
16584 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
16585
16586 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
16587 returned by firmware.
16588
16589 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16590
16591 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
16592 compilation on coreboot and qemu
16593
16594 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
16595
16596 * include/multiboot2.h: Resync with spec.
16597
16598 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
16599
16600 Multiboot2 tag support
16601
16602 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
16603 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
16604 Remove loader/multiboot_loader.c.
16605 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
16606 (grub_multiboot2_real_boot): Likewise.
16607 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
16608 (grub_get_multiboot_mmap_count): New proto.
16609 (grub_fill_multiboot_mmap): Likewise.
16610 (grub_multiboot_set_video_mode): Likewise.
16611 (grub_multiboot_set_console): Likewise.
16612 (grub_multiboot_load): Likewise.
16613 (grub_multiboot_load_elf): Likewise.
16614 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
16615 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
16616 * include/multiboot.h: Resynced with specification.
16617 * include/multiboot2.h: Resynced with specification.
16618 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
16619 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
16620 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
16621 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
16622 users updated.
16623 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
16624 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
16625 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
16626 Removed.
16627 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
16628 Moved from here...
16629 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
16630 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16631 Moved from here...
16632 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
16633 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
16634 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
16635 All users updated.
16636 * loader/i386/multiboot_mbi2.c: New file.
16637
16638 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
16639
16640 Resync with gnulib.
16641
16642 * Makefile.in (GNULIB_CFLAGS): New variable.
16643 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
16644 (grub_script_check_CFLAGS): New variable.
16645 * gnulib/alloca.h: Resync with gnulib.
16646 * gnulib/error.c: Likewise.
16647 * gnulib/error.h: Likewise.
16648 * gnulib/fnmatch.c: Likewise.
16649 * gnulib/fnmatch_loop.c: Likewise.
16650 * gnulib/getdelim.c: Likewise.
16651 * gnulib/getline.c: Likewise.
16652 * gnulib/getopt.c: Likewise.
16653 * gnulib/getopt1.c: Likewise.
16654 * gnulib/getopt_int.h: Likewise.
16655 * gnulib/gettext.h: Likewise.
16656 * gnulib/progname.c: Likewise.
16657 * gnulib/progname.h: Likewise.
16658
16659 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
16660
16661 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
16662 which is the case with --disabled-nls.
16663
16664 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
16665 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
16666 * util/misc.c: Likewise.
16667 * util/mkisofs/mkisofs.c: Likewise.
16668 * util/mkisofs/mkisofs.h: Likewise.
16669
16670 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
16671
16672 Simplify Apple CC support.
16673
16674 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
16675 Add 0 byte at the end not to have a symbol with empty target.
16676 * mmap/i386/pc/mmap_helper.S: Likewise.
16677 * genmk.rb: Ignore errors 2030 and 2050.
16678 * kern/i386/pc/startup.S: Use LOCAL when possible.
16679
16680 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
16681
16682 Testcase and the fix for final semicolon on cmdline.
16683
16684 * tests/grub_script_final_semicolon.in: New testcase.
16685 * conf/tests.rmk: Rules for the new testcase.
16686 * script/parser.y: Grammar fix.
16687
16688 2010-03-26 BVK Chaitanya <bvk@localhost>
16689
16690 Blank lines testcase for GRUB script.
16691
16692 * tests/grub_script_blanklines.in: New testcase.
16693 * conf/tests.rmk: Rules for the new testcase.
16694
16695 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 Don't use __FILE__.
16698
16699 * genmk.rb: Add -DGRUB_FILE to all C targets.
16700 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
16701 * include/grub/list.h: Likewise.
16702 * include/grub/misc.h: Likewise.
16703 * include/grub/mm.h: Likewise.
16704 * include/grub/test.h: Likewise.
16705 * kern/mm.c: Likewise.
16706 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
16707
16708 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16709
16710 Sunpc partitions support.
16711
16712 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
16713 (grub_fstest_SOURCES): Likewise.
16714 (pkglib_MODULES): Add part_sunpc.mod.
16715 (part_sunpc_mod_SOURCES): New variable.
16716 (part_sunpc_mod_CFLAGS): Likewise.
16717 (part_sunpc_mod_LDFLAGS): Likewise.
16718 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
16719 * partmap/sunpc.c: New file.
16720
16721 2010-03-26 BVK Chaitanya <bvk@localhost>
16722
16723 For loop support to GRUB script.
16724
16725 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
16726 (grub_script_create_cmdfor): New function prototype.
16727 (grub_script_execute_cmdfor): New function prototype.
16728 * script/execute.c (grub_script_execute_cmdfor): New function.
16729 * script/parser.y (command): New for command.
16730 (forcmd): New grammar rule.
16731 * script/script.c (grub_script_create_cmdfor): New function.
16732 * util/grub-script-check.c (grub_script_execute_cmdfor): New
16733 function.
16734 * tests/grub_script_for1.in: New testcase.
16735 * conf/tests.rmk: Rules for new testcase.
16736
16737 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16738
16739 Nested partitions
16740
16741 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
16742 'partition' is NULL, grub_partition_get_start already does that.
16743 * commands/loadenv.c (check_blocklists): Likewise.
16744 (write_blocklists): Likewise.
16745 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
16746 (grub_fstest_SOURCES): Likewise.
16747 (pkglib_MODULES): Add part_bsd.mod.
16748 (part_bsd_mod_SOURCES): New variable.
16749 (part_bsd_mod_CFLAGS): Likewise.
16750 (part_bsd_mod_LDFLAGS): Likewise.
16751 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
16752 (grub_emu_SOURCES): Likewise.
16753 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16754 * include/grub/bsdlabel.h: New file.
16755 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
16756 'get_name'.
16757 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
16758 (grub_partition_map_list): New variable.
16759 (grub_partition_map_register): Inline.
16760 (grub_partition_map_unregister): Likewise.
16761 (FOR_PARTITION_MAPS): New macro.
16762 (grub_partition_map_iterate): Removed.
16763 (grub_partition_get_start): Handle nested partitions.
16764 * include/grub/msdos_partition.h: Remove bsd-related entries.
16765 (grub_pc_partition): Remove.
16766 * kern/disk.c (grub_disk_close): Free partition data.
16767 (grub_disk_adjust_range): Handle nested partitions.
16768 * kern/partition.c (grub_partition_map_probe): New function.
16769 (grub_partition_probe): Parse name to number, handle subpartitions.
16770 (get_partmap): New function.
16771 (grub_partition_iterate): Handle subpartitions.
16772 (grub_partition_get_name): Likewise.
16773 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
16774 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
16775 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
16776 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
16777 Set 'number'.
16778 (acorn_partition_map_probe): Remove.
16779 (acorn_partition_map_get_name): Likewise.
16780 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
16781 Set 'number'.
16782 Set 'index' to 0 since there can be only one partition entry per sector.
16783 (amiga_partition_map_probe): Remove.
16784 (amiga_partition_map_get_name): Likewise.
16785 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
16786 Set 'number'.
16787 Set 'offset' and 'index' to real positions of partitions.
16788 (apple_partition_map_probe): Remove.
16789 (apple_partition_map_get_name): Likewise.
16790 * partmap/bsdlabel.c: New file.
16791 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
16792 Set 'number'.
16793 Allocate 'data' so it can be correctly freed.
16794 Set 'index' to offset inside sector.
16795 (gpt_partition_map_probe): Remove.
16796 (gpt_partition_map_get_name): Likewise.
16797 * partmap/msdos.c (grub_partition_parse): Remove.
16798 (pc_partition_map_iterate): Don't force raw access.
16799 Set 'number'.
16800 Make 'ext_offset' a local variable.
16801 (pc_partition_map_probe): Remove.
16802 (pc_partition_map_get_name): Remove.
16803 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
16804 Set 'number'.
16805 (sun_partition_map_probe): Remove.
16806 (sun_partition_map_get_name): Likewise.
16807 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
16808 (grub_pcpart_type): Likewise.
16809 * util/hostdisk.c (open_device): Handle new numbering scheme.
16810 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
16811 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
16812 * util/grub-probe.c (probe_partmap): Handle nested paritions.
16813 * util/grub-install.in: Insert all subpartition modules.
16814 * util/ieee1275/grub-install.in: Likewise.
16815
16816 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
16817
16818 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
16819 grammar.
16820
16821 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
16822
16823 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
16824
16825 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
16826
16827 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
16828 match where 'make install' puts them.
16829 * util/i386/efi/grub-install.in: Likewise.
16830
16831 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
16832
16833 * .bzrignore: Add gentrigtables, grub-script-check,
16834 grub_script_check_init.c, grub_script_check_init.h, and
16835 trigtables.c.
16836
16837 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
16838
16839 * kern/parser.c: Indented.
16840
16841 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
16842
16843 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
16844
16845 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
16848 alpha_mask_size == 0 case.
16849
16850 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
16851
16852 GRUB shell lexer and parser improvements.
16853
16854 * conf/any-emu.rmk: Build rule updates.
16855 * conf/common.rmk: Likewise.
16856 * conf/i386-coreboot.rmk: Likewise.
16857 * conf/i386-efi.rmk: Likewise.
16858 * conf/i386-ieee1275.rmk: Likewise.
16859 * conf/i386-pc.rmk: Likewise.
16860 * conf/powerpc-ieee1275.rmk: Likewise.
16861 * conf/x86_64-efi.rmk: Likewise.
16862
16863 * configure.ac: Configure check for flex.
16864
16865 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
16866 types.
16867 (grub_lexer_param): Struct member updates.
16868 (grub_parser_param): Likewise.
16869 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
16870 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
16871 (grub_script_lexer_init): Prototype update.
16872 (grub_script_lexer_record_start): Likewise.
16873 (grub_script_lexer_record_stop): Likewise.
16874 (grub_script_lexer_yywrap): New function prototype.
16875 (grub_script_lexer_fini): Likewise.
16876 (grub_script_execute_argument_to_string): Removed by...
16877 (grub_script_execute_argument_to_argv): ...better version.
16878
16879 * script/execute.c (ROUND_UPTO): New macro.
16880 (grub_script_execute_cmdline): Out of memory fixes.
16881 (grub_script_execute_menuentry): Likewise.
16882 (grub_script_execute_argument_to_string): Removed. Update all
16883 users by...
16884 (grub_script_execute_argument_to_argv): ...better version.
16885 * script/function.c (grub_script_function_create): Use
16886 grub_script_execute_argument_to_argv instead of
16887 grub_script_execute_argument_to_string.
16888
16889 * script/lexer.c (check_varstate): Removed.
16890 (check_textstate): Removed.
16891 (grub_script_lexer_record_start): Likewise.
16892 (grub_script_lexer_record_stop): Likewise.
16893 (recordchar): Replaced with...
16894 (grub_script_lexer_record): ...new function.
16895 (nextchar): Removed.
16896 (grub_script_lexer_init): Rewritten.
16897 (grub_script_yylex): Rewritten.
16898 (append_newline): New function.
16899 (grub_script_lexer_yywrap): New function.
16900 (grub_script_lexer_fini): New function.
16901 (grub_script_yyerror): Sets error flag.
16902
16903 * script/yylex.l: New file.
16904 (grub_lexer_yyfree): Wrapper for flex yyffre.
16905 (grub_lexer_yyalloc): Likewise.
16906 (grub_lexer_yyrealloc): Likewise.
16907 * script/parser.y: Refactored.
16908
16909 * script/script.c (grub_script_arg_add): Out of memory fixes.
16910 (grub_script_add_arglist): Likewise.
16911 (grub_script_create_cmdline): Likewise.
16912 (grub_script_create_cmdmenu): Likewise.
16913 (grub_script_add_cmd): Likewise.
16914 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
16915 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
16916 unnecessary code.
16917
16918 * tests/grub_script_echo1.in: New testcase.
16919 * tests/grub_script_vars1.in: New testcase.
16920 * tests/grub_script_echo_keywords.in: New testcase.
16921
16922 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
16923
16924 Remove some redundancy in build system.
16925
16926 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
16927 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
16928 (TARGET_LDFLAGS): Add -nostdlib.
16929 (TARGET_IMG_LDFLAGS): Likewise.
16930 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
16931 anything since mmap isn't available.
16932 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
16933 Add util/time.c.
16934 (pkglib_MODULES): Remove reboot.mod.
16935 (reboot_mod_SOURCES): Removed.
16936 (reboot_mod_CFLAGS): Likewise.
16937 (reboot_mod_LDFLAGS): Likewise.
16938 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
16939 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
16940 (DEFSYMFILES): Add kernel_syms.lst.
16941 (kernel_img_HEADERS): Add common headers.
16942 (symlist.c): New target.
16943 (kernel_syms.lst): Likewise.
16944 (pkglib_MODULES): Add memdisk.mod.
16945 (memdisk_mod_SOURCES): New variable.
16946 (memdisk_mod_CFLAGS): Likewise.
16947 (memdisk_mod_LDFLAGS): Likewise.
16948 (pkglib_MODULES): Add reboot.mod.
16949 (reboot_mod_SOURCES): New variable.
16950 (reboot_mod_CFLAGS): Likewise.
16951 (reboot_mod_LDFLAGS): Likewise.
16952 (pkglib_MODULES): Add date.mod.
16953 (date_mod_SOURCES): New variable.
16954 (date_mod_CFLAGS): Likewise.
16955 (date_mod_LDFLAGS): Likewise.
16956 (pkglib_MODULES): Add datehook.mod.
16957 (datehook_mod_SOURCES): New variable.
16958 (datehook_mod_CFLAGS): Likewise.
16959 (datehook_mod_LDFLAGS): Likewise.
16960 (pkglib_MODULES): Add lsmmap.mod.
16961 (lsmmap_mod_SOURCES): New variable.
16962 (lsmmap_mod_CFLAGS): Likewise.
16963 (lsmmap_mod_LDFLAGS): Likewise.
16964 (pkglib_MODULES): Add boot.mod.
16965 (boot_mod_SOURCES): New variable.
16966 (boot_mod_CFLAGS): Likewise.
16967 (boot_mod_LDFLAGS): Likewise.
16968 * conf/i386-coreboot.rmk: Removed redundant parts.
16969 * conf/i386-ieee1275.rmk: Likewise.
16970 * conf/i386-pc.rmk: Likewise.
16971 * conf/mips-yeeloong.rmk: Likewise.
16972 * conf/mips.rmk: Likewise.
16973 * conf/powerpc-ieee1275.rmk: Likewise.
16974 * conf/sparc64-ieee1275.rmk: Likewise.
16975 * conf/x86_64-efi.rmk: Likewise.
16976 * conf/i386-coreboot.rmk: Moved qemu parts ..
16977 * conf/i386-qemu.rmk: ... here
16978 * conf/i386-efi.rmk: Moved common parts to...
16979 * conf/x86-efi.rmk: ... here.
16980 * conf/i386.rmk: Added modules common to all x86 variants.
16981 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
16982 * disk/memdisk.c: Remove grub/machine/kernel.h.
16983 * gensymlist.sh.in: Include symbol.h.
16984 * hook/datehook.c: Correct module name.
16985 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
16986 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
16987 * include/grub/i386/efi/serial.h: New file.
16988 * include/grub/x86_64/efi/serial.h: Likewise.
16989 * util/time.c: Likewise.
16990 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
16991
16992 2010-03-14 Colin King <colin.king@ubuntu.com>
16993 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
16994
16995 Shrink the pre-partition-table part of boot.img by eight bytes.
16996
16997 * boot/i386/pc/boot.S (ERR): New macro.
16998 (chs_mode): Use ERR.
16999 (geometry_error): Likewise.
17000 (hd_probe_error): Remove. This is only used once, so we wrwite
17001 it inline instead.
17002 (read_error): Instead of printing read_error_string, just set up
17003 %si and fall through to ...
17004 (error_message): ... this new function, also used by ERR.
17005
17006 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17007
17008 Speed up consecutive hostdisk operations on the same device.
17009
17010 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
17011 (grub_util_biosdisk_open): Initialise disk->data.
17012 (struct linux_partition_cache): New structure.
17013 (linux_find_partition): Cache partition start positions; these are
17014 expensive to compute on every read and write.
17015 (open_device): Cache open file descriptor in disk->data, so that we
17016 don't have to reopen it and flush the buffer cache for consecutive
17017 operations on the same device.
17018 (grub_util_biosdisk_close): New function.
17019 (grub_util_biosdisk_dev): Set `close' member.
17020
17021 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
17022 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
17023 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17024 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
17025 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
17026
17027 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17028
17029 Compile parts of grub-emu as modules.
17030
17031 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
17032 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
17033 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
17034 (all-local): Add $(GRUB_EMU).
17035 (install-local): Install $(GRUB_EMU).
17036 (uninstall): Uninstall $(GRUB_EMU).
17037 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
17038 * kern/dl.c: Likewise.
17039 * commands/sleep.c: Not include machine/time.h.
17040 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
17041 (COMMON_CFLAGS): Likewise.
17042 (sbin_UTILITIES): Remove grub-emu.
17043 (grub_emu_SOURCES): Removed.
17044 (kernel_img_RELOCATABLE): New variable.
17045 (pkglib_PROGRAMS): Add kernel.img.
17046 (kernel_img_SOURCES): New variable
17047 (kernel_img_CFLAGS): Likewise.
17048 (kernel_img_LDFLAGS): Likewise.
17049 (TARGET_NO_STRIP): Likewise.
17050 (TARGET_NO_DYNAMIC_MODULES): Likewise.
17051 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
17052 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
17053 (grub-emu): New target.
17054 (GRUB_EMU): New variable.
17055 * configure.ac: Whitelist -emu as possible x86_64 architecture.
17056 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
17057 * loader/xnu.c: Likewise.
17058 * include/grub/pci.h: Likewise.
17059 * genemuinit.sh: New file.
17060 * genemuinitheader.sh: Likewise.
17061 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
17062 Support TARGET_NO_DYNAMIC_MODULES.
17063 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
17064 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
17065 * disk/loopback.c: Likewise.
17066 * font/font_cmd.c: Likewise.
17067 * partmap/acorn.c: Likewise.
17068 * partmap/amiga.c: Likewise.
17069 * partmap/apple.c: Likewise.
17070 * partmap/gpt.c: Likewise.
17071 * partmap/msdos.c: Likewise.
17072 * partmap/sun.c: Likewise.
17073 * parttool/msdospart.c: Likewise.
17074 * term/gfxterm.c: Likewise.
17075 * video/bitmap.c: Likewise.
17076 * video/readers/jpeg.c: Likewise.
17077 * video/readers/png.c: Likewise.
17078 * video/readers/tga.c: Likewise.
17079 * video/video.c: Likewise.
17080 * util/grub-emu.c (read_command_list): Removed.
17081 (main): Don't call util_init_nls.
17082 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
17083 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
17084
17085 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17086
17087 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
17088 date.mod, datehook.mod.
17089 (datetime_mod_SOURCES): New variable.
17090 (datetime_mod_CFLAGS): Likewise.
17091 (datetime_mod_LDFLAGS): Likewise.
17092 (date_mod_SOURCES): Likewise.
17093 (date_mod_CFLAGS): Likewise.
17094 (date_mod_LDFLAGS): Likewise.
17095 (datehook_mod_SOURCES): Likewise.
17096 (datehook_mod_CFLAGS): Likewise.
17097 (datehook_mod_LDFLAGS): Likewise.
17098 * conf/sparc64-ieee1275.rmk: Likewise.
17099 * lib/ieee1275/datetime.c: New file.
17100
17101 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17102
17103 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
17104 (ieee1275_fb_mod_SOURCES): New variable.
17105 (ieee1275_fb_mod_CFLAGS): Likewise.
17106 (ieee1275_fb_mod_LDFLAGS): Likewise.
17107 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
17108 New proto.
17109 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
17110 (HEAP_MAX_ADDR): Likewise.
17111 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
17112 type.
17113 Correct stop condition.
17114 (grub_ieee1275_devices_iterate): New function.
17115 * video/ieee1275.c: New file.
17116
17117 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17118
17119 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
17120
17121 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
17122 as scratch.
17123 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
17124 SCRATCH_PAD_DISKBOOT as scratch.
17125 (bootit): Pass Openfirmware pointer in %o4.
17126 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
17127 of 0x200000.
17128 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
17129 with util/grub-mkrawimage.c.
17130 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
17131 * include/grub/aout.h (AOUT_MID_SUN): New definition.
17132 (grub_aout_get_type) [GRUB_UTIL]: Removed.
17133 (grub_aout_load) [GRUB_UTIL]: Likewise.
17134 * include/grub/kernel.h (grub_modules_get_end): New proto.
17135 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
17136 (SCRATCH_PAD_BOOT): New definition.
17137 (SCRATCH_PAD_DISKBOOT): Likewise.
17138 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
17139 * include/grub/sparc64/ieee1275/ieee1275.h
17140 (grub_ieee1275_original_stack): New variable
17141 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17142 New definition
17143 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
17144 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
17145 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
17146 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
17147 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
17148 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
17149 (grub_platform_image_format_t): New type.
17150 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
17151 * kern/main.c (grub_modules_get_end)
17152 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
17153 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
17154 (codestart): Switch stacks.
17155 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
17156 variable.
17157 (grub_heap_init): Use grub_modules_get_end.
17158 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
17159 stack.
17160 * util/grub-mkrawimage.c (generate_image): Support sparc64.
17161 (main): Likewise.
17162 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
17163
17164 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
17165
17166 * util/grub-mkrescue.in: Base ISO UUID on UTC.
17167
17168 2010-03-08 Matt Kraai <kraai@ftbfs.org>
17169
17170 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
17171 bug #559005).
17172
17173 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
17174
17175 * genmoddep.awk: Output all missing symbols and not only first.
17176
17177 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17178
17179 * NEWS: Put the date of 1.98 release.
17180
17181 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17182
17183 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
17184 ft2build.h.
17185
17186 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17187
17188 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
17189 completition in the middle of string.
17190
17191 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17192
17193 * util/grub-mkrescue.in: Use mktemp with explicit template.
17194
17195 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17196
17197 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
17198
17199 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17200
17201 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
17202 right pointer.
17203
17204 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17205
17206 Fix FreeBSD compilation.
17207
17208 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
17209 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
17210
17211 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17212
17213 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
17214
17215 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17216
17217 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
17218
17219 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17220
17221 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
17222
17223 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
17224
17225 Support relative image path in theme file.
17226
17227 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
17228 (image_set_property): Handle theme_dir and relative path.
17229
17230 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17231
17232 * configure.ac: Alias amd64 to x86_64.
17233
17234 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17235
17236 * NEWS: mention multiboot on EFI.
17237
17238 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17239
17240 * kern/main.c (grub_load_modules): Handle errors from init functions of
17241 embeded modules.
17242
17243 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17244
17245 * normal/autofs.c (autoload_fs_module): Handle errors.
17246
17247 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17248
17249 Disable linux.mod on qemu-mips since it's not functional and leads
17250 to compilation failure.
17251
17252 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
17253 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
17254 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
17255 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
17256 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
17257 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
17258 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
17259 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
17260 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
17261 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
17262 Reported by: BVK Chaitanya
17263
17264 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
17265
17266 * INSTALL: Add gettext as a dependency and add qemu to a new section
17267 "Prerequisites for make-check".
17268
17269 2010-03-04 Christian Franke <franke@computer.org>
17270
17271 * util/grub-pe2elf.c: Add missing include "progname.h".
17272
17273 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17274
17275 * normal/crypto.c (read_crypto_list): Fix a typo.
17276 Reported by: Seth Goldberg.
17277
17278 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17279
17280 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
17281 Reported by: Seth Goldberg.
17282
17283 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17284
17285 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
17286 ascii.bitmaps.
17287
17288 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 * genmk.rb: Remove terminal*.lst in make clean.
17291 Reported by: Seth Goldberg.
17292
17293 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17294
17295 * util/i386/efi/grub-install.in: Copy gettext files.
17296
17297 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17298
17299 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
17300
17301 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17302
17303 Wait for user entry basing on presence of output rather than on errors.
17304
17305 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
17306 (grub_install_newline_hook): Likewise.
17307 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
17308 * normal/menu.c (show_menu): Check line_counter to determine presence
17309 of output.
17310 * normal/term.c (grub_normal_line_counter): New variable.
17311 (grub_normal_get_line_counter): New function.
17312 (grub_install_newline_hook): Likewise.
17313
17314 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17315
17316 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
17317
17318 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17319
17320 * configure.ac: Update version to 1.98.
17321
17322 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
17323
17324 * util/grub.d/10_linux.in (linux_entry): Don't default to
17325 gfxpayload=keep if Linux doesn't support video handover.
17326
17327 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
17328
17329 Don't compile video modules on yeeloong since video subsystem is part
17330 of kernel.
17331
17332 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
17333 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
17334 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
17335 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
17336 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
17337 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
17338 * include/grub/bitmap_scale.h: Likewise.
17339 * include/grub/bufio.h: Likewise.
17340 * include/grub/font.h: Likewise.
17341 * include/grub/gfxterm.h: Likewise.
17342 * include/grub/video.h: Likewise.
17343 * include/grub/vbe.h: Don't include video_fb.h.
17344 * video/i386/pc/vbe.c: Include video_fb.h.
17345 * commands/i386/pc/vbetest.c: Include video.h.
17346
17347 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
17348
17349 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
17350 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
17351 default entry if GRUB_SAVEDEFAULT=true. This allows using
17352 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
17353 saving a new default on every boot.
17354
17355 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17356
17357 * normal/crypto.c (read_crypto_list): Fix a memory leak.
17358 * normal/term.c (read_terminal_list): Likewise.
17359 * normal/main.c (grub_normal_init_page): Likewise.
17360 (grub_normal_read_line_real): Likewise.
17361
17362 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17363
17364 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
17365 memory leak.
17366 Reported by: Seth Goldberg.
17367
17368 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
17369
17370 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
17371 duplicate declaration of `start'.
17372
17373 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17374
17375 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
17376 filename.
17377 Reported by: Georgy Buranov
17378
17379 2010-02-20 Carles Pina i Estany <carles@pina.cat>
17380
17381 * util/grub-mkrawimage.c (usage): Change string formatting to
17382 improve gettext.
17383
17384 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17385
17386 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
17387 backspace keys.
17388
17389 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17390
17391 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
17392 Reported by: Michael Suchanek.
17393
17394 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
17395
17396 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
17397 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
17398
17399 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
17400
17401 Remove any reference to non-free fonts.
17402
17403 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
17404 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
17405 uses non-free components.
17406 * font/font.c (grub_font_get_name): Remove example name.
17407 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
17408 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17409 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
17410 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
17411
17412 2010-02-16 Georgy Buranov <gburanov@gmail.com>
17413
17414 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
17415
17416 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17417
17418 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
17419 Double divisor.
17420 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
17421 features.
17422 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
17423
17424 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17425
17426 * gensymlist.sh.in: Use TARGET_CC instead of CC.
17427
17428 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17429
17430 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
17431 * docs/grub.texi (Command-line and menu entry commands): Document play
17432 command.
17433
17434 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17435
17436 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
17437 parse arguments as inline tempo and notes. Move code for playing notes
17438 to...
17439 (play): ... new function.
17440
17441 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17442
17443 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
17444 grub_uint16_t instead of short.
17445 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
17446 disk from little endian to cpu endianness.
17447
17448 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
17449
17450 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
17451 GRUB_TICKS_PER_SECOND instead of 120.
17452
17453 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17454
17455 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
17456 escape sequence after \e.
17457
17458 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17459
17460 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
17461 non-ASCII characters.
17462
17463 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
17466 set root in single quotes to prevent \, from being unescaped.
17467
17468 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17469
17470 Prevent unknown commands from stopping menuentry execution.
17471
17472 * script/execute.c (grub_script_execute_cmdline): Print error after
17473 unknown command.
17474
17475 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17476
17477 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
17478 Reported by: Pavel Pisa.
17479
17480 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17481
17482 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
17483
17484 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17485
17486 Merge grub_ieee1275_map_physical into grub_map and rename to
17487 grub_ieee1275_map
17488
17489 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
17490 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
17491 Remove.
17492 * kern/ieee1275/openfw.c (grub_map): Rename to ...
17493 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
17494 necessary.
17495 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
17496
17497 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17498
17499 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
17500 opening and not after.
17501
17502 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17503
17504 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
17505 constants.
17506
17507 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17508
17509 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
17510 (alloc_phys): Use ALIGN_UP instead of align_addr.
17511
17512 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17513
17514 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
17515
17516 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17517
17518 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
17519
17520 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17521
17522 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
17523 verbose dprintf.
17524
17525 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17526
17527 Fix over-4GiB seek on sparc64.
17528
17529 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
17530 Replace pos_i and pos_lo with pos. All users updated.
17531 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
17532 New constant.
17533 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
17534 Likewise.
17535 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
17536 and pos_lo.
17537
17538 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17539
17540 * util/grub-mkrawimage.c (main): Call set_program_name.
17541
17542 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17543
17544 Properly align 64-bit targets.
17545
17546 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
17547 (generate_image): Use ALIGN_ADDR.
17548
17549 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17550
17551 Properly create cross-endian images.
17552
17553 * include/grub/types.h (grub_host_to_target_addr): New macro
17554 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
17555
17556 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17557
17558 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
17559
17560 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17561
17562 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
17563
17564 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
17565 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
17566 (grub_linux_boot): Divide by 64K when on VESA.
17567
17568 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17569
17570 Support GRUB_GFXPAYLOAD_LINUX.
17571
17572 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
17573 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
17574
17575 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17576
17577 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
17578 to show messages instead of discarding them.
17579 Process errors after executing command and not before. Keep old method
17580 too as precaution.
17581
17582 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
17583
17584 * configure.ac: Check for ft2build.h.
17585
17586 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
17589
17590 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17591
17592 * genkernsyms.sh.in: Use TARGET_CC.
17593
17594 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
17595
17596 * NEWS: Update.
17597
17598 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17599
17600 * include/grub/multiboot2.h: Remove leftover file.
17601 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
17602 * include/grub/partition.h [GRUB_UTIL]: Likewise.
17603
17604 2010-02-07 Yves Blusseau <blusseau@zetam.org>
17605
17606 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
17607
17608 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17609
17610 Fix warnings in grub-emu when compiling with maximum warning options.
17611
17612 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
17613 (grub_arch_modules_addr): Return 0 and not NULL.
17614 * util/misc.c (ENABLE_RELOCATABLE): New definition.
17615 (xstrdup): Use newstr instead of dup.
17616 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
17617 of disk to dsk to avoid shadowing.
17618 (find_free_slot): Fix prototype.
17619 * util/getroot.c (grub_util_is_dmraid): Make static.
17620 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
17621 Add missing prototype.
17622 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
17623
17624 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17625
17626 * loader/i386/linux.c (grub_linux_setup_video): Handle error
17627 appropriately.
17628
17629 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17630
17631 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
17632 code out.
17633
17634 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17635
17636 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
17637 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
17638 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
17639 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
17640 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
17641 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
17642
17643 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17644
17645 * include/grub/err.h (grub_err_printf): Don't export.
17646
17647 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17648
17649 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
17650
17651 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17652
17653 * include/grub/i18n.h (grub_gettext_dummy): Removed.
17654 * kern/misc.c (grub_gettext_dummy): Make static.
17655
17656 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17657
17658 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
17659 by non-valid ones.
17660 * kern/term.c (grub_putchar): Likewise.
17661
17662 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17663
17664 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
17665 buggy hook call and memory leak.
17666
17667 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17668
17669 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
17670
17671 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17672
17673 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
17674
17675 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17676
17677 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
17678 modevar.
17679 Return grub_errno on allocation error.
17680
17681 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17682
17683 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
17684
17685 2010-02-06 Yves Blusseau <blusseau@zetam.org>
17686
17687 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
17688 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
17689
17690 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17691
17692 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
17693 non-pxe disk.
17694 (grub_pxefs_open): Likewise.
17695
17696 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
17697
17698 * util/grub.d/10_hurd.in: Add --class information to menuentries.
17699 * util/grub.d/10_kfreebsd.in: Likewise.
17700 * util/grub.d/10_linux.in: Likewise.
17701
17702 2010-02-06 Colin D Bennett <colin@gibibit.com>
17703
17704 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
17705 (gfxmenu_mod_SOURCES): New variable.
17706 (gfxmenu_mod_CFLAGS): Likewise.
17707 (gfxmenu_mod_LDFLAGS): Likewise.
17708 * include/grub/term.h (grub_term_set_current_output): Declare
17709 argument as const.
17710 * docs/gfxmenu-theme-example.txt: New file.
17711 * gfxmenu/gfxmenu.c: Likewise.
17712 * gfxmenu/gui_box.c: Likewise.
17713 * gfxmenu/gui_canvas.c: Likewise.
17714 * gfxmenu/gui_circular_progress.c: Likewise.
17715 * gfxmenu/gui_image.c: Likewise.
17716 * gfxmenu/gui_label.c: Likewise.
17717 * gfxmenu/gui_list.c: Likewise.
17718 * gfxmenu/gui_progress_bar.c: Likewise.
17719 * gfxmenu/gui_string_util.c: Likewise.
17720 * gfxmenu/gui_util.c: Likewise.
17721 * gfxmenu/icon_manager.c: Likewise.
17722 * gfxmenu/model.c: Likewise.
17723 * gfxmenu/named_colors.c: Likewise.
17724 * gfxmenu/theme_loader.c: Likewise.
17725 * gfxmenu/view.c: Likewise.
17726 * gfxmenu/widget-box.c: Likewise.
17727 * include/grub/gfxmenu_model.h: Likewise.
17728 * include/grub/gfxmenu_view.h: Likewise.
17729 * include/grub/gfxwidgets.h: Likewise.
17730 * include/grub/gui.h: Likewise.
17731 * include/grub/gui_string_util.h: Likewise.
17732 * include/grub/icon_manager.h: Likewise.
17733
17734 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17735
17736 Agglomerate scrolling in gfxterm.
17737
17738 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
17739 (grub_virtual_screen_setup): Initialise 'total_screen'.
17740 (write_char): Split to ...
17741 (paint_char): ... this ...
17742 (write_char): ... and this.
17743 (paint_char): Handle delayed scrolling.
17744 (draw_cursor): Likewise.
17745 (scroll_up): Split to ...
17746 (real_scroll): ... this ...
17747 (scroll_up): ... and this.
17748 (real_scroll): Handle multi-line scroll and draw below-the-bottom
17749 characters.
17750 (grub_gfxterm_refresh): Call real_scroll.
17751
17752 2010-02-06 Colin D Bennett <colin@gibibit.com>
17753
17754 * include/grub/misc.h (grub_iscntrl): New inline function.
17755 (grub_isalnum): Likewise.
17756 (grub_strtol): Likewise.
17757
17758 2010-02-06 Colin D Bennett <colin@gibibit.com>
17759
17760 * normal/menu_text.c (get_entry_number): Move from here ...
17761 * normal/menu.c (get_entry_number): ... moved here.
17762 * include/grub/menu.h (grub_menu_get_default_entry_index):
17763 New prototype.
17764 * normal/menu.c (grub_menu_get_default_entry_index): New function.
17765 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
17766 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
17767 (grub_menu_viewer_should_return): Likewise.
17768 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
17769 * normal/menu_text.c (run_menu): Enable menu switching.
17770 * normal/menu_viewer.c (should_return): New variable.
17771 (menu_viewer_changed): Likewise.
17772 (grub_menu_viewer_show_menu): Handle menu viewer changes.
17773 (grub_menu_viewer_should_return): New function.
17774 (menuviewer_write_hook): Likewise.
17775 (grub_menu_viewer_init): Likewise.
17776
17777 2010-02-06 Colin D Bennet <colin@gibibit.com>
17778 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17779
17780 Support for gfxterm in a window.
17781
17782 * include/grub/gfxterm.h: New file.
17783 * include/grub/video.h (struct grub_video_rect): New declaration.
17784 (grub_video_rect_t): Likewise.
17785 * term/gfxterm.c (struct grub_gfxterm_window): New type.
17786 (refcount): New variable.
17787 (render_target): Likewise.
17788 (window): Likewise.
17789 (repaint_callback): Likewise.
17790 (grub_virtual_screen_setup): Use 'render_target'.
17791 (init_window): New function.
17792 (grub_gfxterm_init_window): Likewise.
17793 (grub_gfxterm_init): Check reference counter.
17794 Use init_window.
17795 (destroy_window): New function.
17796 (grub_gfxterm_destroy_window): Likewise.
17797 (grub_gfxterm_fini): Check reference counter.
17798 Use destroy_window.
17799 (redraw_screen_rect): Restore viewport.
17800 Use 'render_target' and 'window'.
17801 Call 'repaint_callback'.
17802 (write_char): Use 'render_target'.
17803 (draw_cursor): Likewise.
17804 (scroll_up): Restore viewport.
17805 Use 'render_target' and 'window'.
17806 Call 'repaint_callback'.
17807 (grub_gfxterm_cls): Likewise.
17808 (grub_gfxterm_refresh): Use 'window'.
17809 (grub_gfxterm_set_repaint_callback): New function.
17810 (grub_gfxterm_background_image_cmd): Use 'window'.
17811 (grub_gfxterm_get_term): New function.
17812 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
17813
17814 2010-02-06 Colin D Bennett <colin@gibibit.com>
17815
17816 Bitmap scaling support.
17817
17818 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
17819 (bitmap_scale_mod_SOURCES): New variable.
17820 (bitmap_scale_mod_CFLAGS): Likewise.
17821 (bitmap_scale_mod_LDFLAGS): Likewise.
17822 * include/grub/bitmap_scale.h: New file.
17823 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
17824 (background_image_cmd_options): New variable.
17825 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
17826 (cmd): Rename and change type to ...
17827 (background_image_cmd_handle): ... this. All users updated.
17828 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
17829 * video/bitmap_scale.c: New file.
17830
17831 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17832
17833 SDL support.
17834
17835 * Makefile.in (LIBSDL): New variable.
17836 (enable_grub_emu_sdl): Likewise.
17837 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
17838 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
17839 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
17840 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
17841 * util/sdl.c: New file.
17842
17843 2010-02-06 Colin D Bennett <colin@gibibit.com>
17844 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 Double buffering support.
17847
17848 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
17849 * include/grub/video.h: Update comment.
17850 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
17851 New type.
17852 (grub_video_fb_doublebuf_blit_init): New prototype.
17853 * term/gfxterm.c (scroll_up): Support double buffering.
17854 (grub_gfxterm_refresh): Likewise.
17855 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
17856 (grub_video_fb_doublebuf_blit_init): Likewise.
17857 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
17858 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
17859 'displayed_page', 'render_page' and 'update_screen'.
17860 (grub_video_vbe_fini): Free offscreen buffer.
17861 (doublebuf_pageflipping_commit): New function.
17862 (doublebuf_pageflipping_update_screen): Likewise.
17863 (doublebuf_pageflipping_init): Likewise.
17864 (double_buffering_init): Likewise.
17865 (grub_video_vbe_setup): Enable doublebuffering.
17866 (grub_video_vbe_swap_buffers): Implement.
17867 (grub_video_vbe_set_active_render_target): Handle double buffering.
17868 (grub_video_vbe_get_active_render_target): Likewise.
17869 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
17870 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
17871 (grub_video_vbe_enable_double_buffering): Likewise.
17872 (grub_video_vbe_swap_buffers): Use update_screen.
17873 (grub_video_set_mode): Use double buffering.
17874
17875 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
17876
17877 * maintainance/gentrigtables.py: Remove.
17878 * lib/trig.c: Likewise.
17879
17880 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
17881
17882 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
17883 `trigtables.c'.
17884 (trigtables.c): New rule.
17885 (gentrigtables): Likewise.
17886 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
17887
17888 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
17889
17890 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
17891 integer constants.
17892
17893 2010-02-06 Colin D Bennet <colin@gibibit.com>
17894
17895 Trigonometry support.
17896
17897 * include/grub/trig.h: New file.
17898 * lib/trig.c: Likewise.
17899 * maintainance/gentrigtables.py: Likewise.
17900 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
17901 (trig_mod_SOURCES): New variable.
17902 (trig_mod_CFLAGS): Likewise.
17903 (trig_mod_LDFLAGS): Likewise.
17904
17905 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17906
17907 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
17908 disk devices.
17909
17910 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17911
17912 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
17913 error.
17914
17915 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
17916
17917 * util/hostdisk.c (open_device): Don't use partition device when reading
17918 before the partition.
17919 (grub_util_biosdisk_read): Don't read from partition and before the
17920 partition in single operation.
17921 (grub_util_biosdisk_write): Don't write to partition and before the
17922 partition in single operation.
17923
17924 2010-02-03 Torsten Landschoff <torsten@debian.org>
17925
17926 * kern/disk.c (grub_disk_read): Fix offset computation when reading
17927 last sectors.
17928
17929 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
17930
17931 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
17932 CDROM reads.
17933 (grub_biosdisk_write): Refuse to write to CDROM.
17934
17935 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
17936
17937 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
17938
17939 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
17940
17941 * font/font.c (find_glyph): Check that bmp_idx is available before
17942 using it.
17943 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
17944 with (font == NULL).
17945
17946 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
17947
17948 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
17949
17950 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
17951
17952 * include/grub/script_sh.h (sourcecode): Add const qualifier.
17953 * util/grub-script-check.c (getline): Fix empty lines case.
17954
17955 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
17956
17957 * Makefile.in (check): Exit with fail status when one of the tests
17958 fails.
17959 * tests/example_functional_test.c (example_test): Fix reversed assert.
17960 * tests/example_unit_test.c (example_test): Likewise.
17961
17962 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
17963
17964 * util/grub.d/10_linux.in: This script does not use any of the
17965 contents of gettext.sh, only the external command `gettext', so stop
17966 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
17967 the same prefix as GRUB.)
17968 * util/grub.d/10_kfreebsd.in: Likewise.
17969
17970 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
17971
17972 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
17973 of the line.
17974
17975 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
17976
17977 * kern/disk.c (grub_disk_read): Fix offset computation when reading
17978 last sectors.
17979
17980 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
17981
17982 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
17983 having a 4KiB and not 32KiB buffer size.
17984
17985 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
17986
17987 * util/hostfs.c: Include `<errno.h>'.
17988 (grub_hostfs_read): Handle errors from fseeko() and fread().
17989
17990 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
17991
17992 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
17993 loop when using read hooks on files whose size isn't sector-aligned.
17994
17995 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
17996
17997 Remove unused parameter.
17998
17999 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
18000 (grub_iso9660_open): Remove initialization of `data->length'.
18001
18002 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18003
18004 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
18005 memleak conditions.
18006
18007 2010-01-27 Carles Pina i Estany <carles@pina.cat>
18008
18009 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
18010 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
18011
18012 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18013
18014 * util/bin2h.c (usage): Fix warning (space after backslash).
18015
18016 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18017
18018 * font/font.c: Include `grub/fontformat.h.
18019 Remove font file format constants.
18020 (grub_font_load): Use the new macros.
18021 * include/grub/fontformat.h: New file.
18022 * util/grub-mkfont.c: Include `grub/fontformat.c'.
18023 (write_font_pf2): Use the new macros.
18024
18025 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18026
18027 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
18028 does.
18029
18030 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18031
18032 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
18033
18034 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
18035 (_start): Macroify `0x7F'.
18036
18037 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
18038 (make_install_device): Use "(pxe)" as fallback prefix when booting
18039 via PXE.
18040
18041 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
18042
18043 * configure.ac: Reset LIBS after check for libgcc symbols.
18044
18045 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
18046
18047 * util/hostdisk.c (open_device): Add trailing newline to debug
18048 message.
18049
18050 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
18051
18052 * configure.ac: Check for `limits.h'.
18053 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
18054
18055 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
18056
18057 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
18058 capitalize error strings.
18059
18060 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
18061
18062 * util/grub.d/10_hurd.in: Add a recovery mode.
18063
18064 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
18065
18066 * configure.ac: Check for libgcc symbols with -nostdlib.
18067
18068 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
18069
18070 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
18071
18072 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
18075 stack since heap may be unavailable at that point.
18076 (grub_ofconsole_gotoxy): Likewise.
18077
18078 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18079
18080 * configure.ac: Check for _restgpr_14_x.
18081 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
18082 and _savegpr_* prototypes.
18083
18084 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
18085
18086 Use generic grub_reboot() for i386-efi.
18087
18088 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
18089 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
18090 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
18091
18092 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18093
18094 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
18095 presence of "prefix" variable as it breaks when normal.mod is
18096 embedded.
18097
18098 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18099
18100 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
18101 stack since heap is unavailable at that point.
18102
18103 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18104
18105 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
18106 (grub_freebsd_bootinfo): Rewritten.
18107 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
18108
18109 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18110
18111 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
18112
18113 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
18114
18115 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
18116 domain now.
18117
18118 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
18119
18120 * util/misc.c (make_system_path_relative_to_its_root): Change the work
18121 around for handling "/" to the correct fix. Fix a memory leak. Use
18122 xstrdup instead of strdup.
18123
18124 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18125
18126 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
18127
18128 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18129
18130 Optimise glyph lookup by Basic Multilingual Plane lookup array.
18131
18132 * font/font.c (struct grub_font): New member 'bmp_idx'.
18133 (font_init): Initialise 'bmp_idx'.
18134 (load_font_index): Fill 'bmp_idx'.
18135 (find_glyph): Make inline. Use bmp_idx for BMP characters.
18136
18137 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18138
18139 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
18140 unnecessary calls.
18141
18142 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18143
18144 Move context handling out of the kernel.
18145
18146 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
18147 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
18148 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
18149 * conf/i386-efi.rmk: Likewise.
18150 * conf/i386-ieee1275.rmk: Likewise.
18151 * conf/i386-pc.rmk: Likewise.
18152 * conf/powerpc-ieee1275.rmk: Likewise.
18153 * conf/sparc64-ieee1275.rmk: Likewise.
18154 * conf/x86_64-efi.rmk: Likewise.
18155 * include/grub/env.h: Include grub/menu.h.
18156 (grub_env_var_type): Removed.
18157 (grub_env_var): Replaced field 'type' with 'global'.
18158 (grub_env_find): New prototype.
18159 (grub_env_context_open): Remove EXPORT_FUNC.
18160 (grub_env_context_close): Likewise.
18161 (grub_env_export): Likewise.
18162 (grub_env_set_data_slot): Removed.
18163 (grub_env_get_data_slot): Likewise.
18164 (grub_env_unset_data_slot): Likewise.
18165 (grub_env_unset_menu): New prototype.
18166 (grub_env_set_menu): Likewise.
18167 (grub_env_get_menu): Likewise.
18168 * include/grub/env_private.h: New file.
18169 * include/grub/normal.h (grub_context_init): New prototype.
18170 (grub_context_fini): Likewise.
18171 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
18172 * normal/context.c (grub_cmd_export): ... to here.
18173 * kern/env.c: Include env_private.h.
18174 (HASHSZ): Moved to include/grub/env_private.h.
18175 (grub_env_context): Likewise.
18176 (grub_env_sorted_var): Likewise.
18177 (current_context): Renamed from this ...
18178 (grub_current_context): ...to this. 'static' removed. All users updated.
18179 (grub_env_find): Removed 'static'.
18180 (grub_env_context_open): Moved to normal/context.c.
18181 (grub_env_context_close): Likewise.
18182 (grub_env_export): Likewise.
18183 (mangle_data_slot_name): Removed.
18184 (grub_env_set_data_slot): Likewise.
18185 (grub_env_get_data_slot): Likewise.
18186 (grub_env_unset_data_slot): Likewise.
18187 * kern/main.c (grub_set_root_dev): Don't export root.
18188 It will be done later.
18189 (grub_main): Don't export prefix.
18190 It will be done later.
18191 * normal/context.c: New file.
18192 * normal/main.c (free_menu): Use grub_env_unset_menu.
18193 (grub_normal_add_menu_entry): Use grub_env_get_menu.
18194 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
18195 (GRUB_MOD_INIT(normal)): Call grub_context_init.
18196 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
18197
18198 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18199
18200 setpci support.
18201
18202 * commands/setpci.c: New file.
18203 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
18204 (setpci_mod_SOURCES): New variable.
18205 (setpci_mod_CFLAGS): Likewise.
18206 (setpci_mod_LDFLAGS): Likewise.
18207
18208 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18209
18210 Byte-addressable PCI configuration space.
18211
18212 * bus/pci.c (grub_pci_make_address): Use byte address instead of
18213 dword address.
18214 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
18215 GRUB_PCI_REG_CACHELINE.
18216 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
18217 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
18218 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
18219 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
18220 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
18221 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
18222 grub_pci_make_address.
18223 (lock_rom_area): Likewise.
18224 * commands/lspci.c (grub_lspci_iter): Use macroses
18225 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
18226 of grub_pci_make_address.
18227 * disk/ata.c (grub_ata_pciinit): Likewise.
18228 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
18229 (GRUB_PCI_REG_VENDOR): Likewise.
18230 (GRUB_PCI_REG_DEVICE): Likewise.
18231 (GRUB_PCI_REG_COMMAND): Likewise.
18232 (GRUB_PCI_REG_STATUS): Likewise.
18233 (GRUB_PCI_REG_REVISION): Likewise.
18234 (GRUB_PCI_REG_CLASS): Likewise.
18235 (GRUB_PCI_REG_CACHELINE): Likewise.
18236 (GRUB_PCI_REG_LAT_TIMER): Likewise.
18237 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
18238 (GRUB_PCI_REG_BIST): Likewise.
18239 (GRUB_PCI_REG_ADDRESSES): Likewise.
18240 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18241 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18242 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18243 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18244 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18245 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18246 (GRUB_PCI_REG_CIS_POINTER): Likewise.
18247 (GRUB_PCI_REG_SUBVENDOR): Likewise.
18248 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
18249 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
18250 (GRUB_PCI_REG_CAP_POINTER): Likewise.
18251 (GRUB_PCI_REG_IRQ_LINE): Likewise.
18252 (GRUB_PCI_REG_IRQ_PIN): Likewise.
18253 (GRUB_PCI_REG_MIN_GNT): Likewise.
18254 (GRUB_PCI_REG_MAX_LAT): Likewise.
18255 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
18256 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
18257 * video/efi_uga.c (find_framebuf): Likewise.
18258 * video/sm712.c (grub_video_sm712_setup): Likewise.
18259 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
18260 space.
18261
18262 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18263
18264 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
18265 can be reliably determined to be supported.
18266
18267 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18268
18269 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
18270 that VESA is supported.
18271 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
18272 supported.
18273
18274 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18275
18276 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
18277
18278 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18279
18280 * util/misc.c (make_system_path_relative_to_its_root): Work around
18281 special-casing of "/", as previous incarnation of this routine did.
18282
18283 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18284
18285 Fix any-emu compilation.
18286
18287 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
18288 * grub_bin2h_SOURCES: New variable.
18289
18290 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18291
18292 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
18293
18294 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18295
18296 * util/grub.d/00_header.in: Fix handling of locale_dir.
18297
18298 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18299
18300 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
18301 as possible unifont location (Gentoo).
18302 Reported by: Alexander Brüning
18303
18304 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18305
18306 Don't try to generate lists for kernel.img.
18307
18308 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
18309 (pkglib_MODULES): Remove kernel.img.
18310 (kernel_img_EXPORTS): Removed.
18311 (kernel_img_RELOCATABLE): New variable.
18312 * conf/x86_64-efi.rmk: Likewise.
18313 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
18314
18315 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18316
18317 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
18318 grub_xasprintf or grub_snprintf.
18319 (grub_vsprintf): Likewise.
18320 (grub_snprintf): New proto.
18321 (grub_vsnprintf): Likewise.
18322 (grub_xasprintf): Likewise.
18323 (grub_xvasprintf): Likewise.
18324 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
18325 (grub_sprintf): Removed.
18326 (grub_vsnprintf): New function.
18327 (grub_snprintf): Likewise.
18328 (grub_xvasprintf): Likewise.
18329 (grub_xasprintf): Likewise.
18330 (grub_vsprintf): Renamed to ...
18331 (grub_vsnprintf_real): ...this. New argument max_len.
18332
18333 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
18334
18335 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
18336 fix grub-script-check warning.
18337
18338 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18339
18340 * include/grub/font.h (grub_font_load): Fix prototype.
18341
18342 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18343
18344 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
18345
18346 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18347
18348 * include/grub/x86_64/at_keyboard.h: New file.
18349
18350 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18351
18352 * loader/mips/linux.c: Include missing grub/i18n.h.
18353
18354 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18355
18356 * normal/menu.c (notify_execution_failure): Clarify error message.
18357
18358 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18359
18360 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
18361 return value (and revert all return statements). Update users.
18362
18363 2010-01-20 Dan Merillat <debian@dan.merillat.org>
18364
18365 * kern/device.c (grub_device_iterate): Allocate new part_ent
18366 structure based on sizeof (*p) rather than sizeof (p->next), to
18367 account for structure padding.
18368
18369 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
18370 disk is NULL, which might happen for LVM physical volumes with no
18371 LVM signature.
18372
18373 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18374
18375 * loader/mips/linux.c (grub_cmd_initrd)
18376 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
18377
18378 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18379
18380 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
18381 (grub_video_video_init, grub_video_bitmap_init)
18382 (grub_font_manager_init, grub_term_gfxterm_init)
18383 (grub_at_keyboard_init): New extern declarations.
18384 (grub_machine_init): Initialize gfxterm and at_keyboard.
18385
18386 * kern/main.c (grub_main): Revert grub_printf delay kludge.
18387
18388 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
18389 `gfxterm.mod' into core image.
18390
18391 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18392 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18393 (kernel_img_FORMAT): Copy to ...
18394
18395 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18396 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18397 (kernel_img_FORMAT): ... here, and ...
18398
18399 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18400 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18401 (kernel_img_FORMAT): ... here.
18402
18403 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
18404 and input (at_keyboard) terminals in kernel.
18405 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
18406
18407 (pkglib_MODULES): Remove `pci.mod'.
18408 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
18409 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
18410 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
18411 (at_keyboard_mod_LDFLAGS): Remove variables.
18412
18413 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
18414
18415 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
18416
18417 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
18418
18419 * include/grub/mips/libgcc.h: Only export symbols for functions
18420 that libgcc provides.
18421
18422 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
18423
18424 MIPS support.
18425
18426 * bus/bonito.c: New file.
18427 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
18428 GRUB_PCI_NUM_DEVICES.
18429 * term/i386/pc/serial.c: Move to ...
18430 * term/serial.c: ... here. All users updated.
18431 * util/i386/pc/grub-mkimage.c: Move to ...
18432 * util/grub-mkrawimage.c: ... here. All users updated.
18433 * term/i386/pc/at_keyboard.c: Move to ...
18434 * term/at_keyboard.c: ... here. All users updated.
18435 * conf/mips-qemu-mips.rmk: New file.
18436 * conf/mips-yeeloong.rmk: Likewise.
18437 * conf/mips.rmk: Likewise.
18438 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
18439 mipsel-qemu-mips.
18440 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
18441 to port addresses.
18442 (grub_ata_pciinit): Support CS5536.
18443 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
18444 * font/font_cmd.c (loadfont_command): Open file before passing it to
18445 grub_font_load.
18446 (pseudo_file_read): New function.
18447 (pseudo_file_close): Likewise.
18448 (pseudo_fs): New structure.
18449 (load_font_module): New function.
18450 (GRUB_MOD_INIT(font_manager)): Load embedded font.
18451 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
18452 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
18453 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
18454 * include/grub/i386/at_keyboard.h: Split into ...
18455 * include/grub/at_keyboard.h: ... this ...
18456 * include/grub/i386/at_keyboard.h: ... and this.
18457 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
18458 New prototype.
18459 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
18460 updated.
18461 (grub_elf64_size): Likewise.
18462 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
18463 filename.
18464 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
18465 * include/grub/i386/coreboot/serial.h: Rewritten.
18466 * include/grub/i386/ieee1275/serial.h: Include
18467 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
18468 * include/grub/i386/pc/serial.h: Moved from here ...
18469 * include/grub/serial.h: ... to here. All users updated.
18470 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
18471 (GRUB_PCI_NUM_BUS): Likewise.
18472 (GRUB_PCI_NUM_DEVICES): Likewise.
18473 (grub_pci_device_map_range): Add missing volatile keyword.
18474 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
18475 * include/grub/mips/at_keyboard.h: New file.
18476 * include/grub/mips/cache.h: Likewise.
18477 * include/grub/mips/io.h: Likewise.
18478 * include/grub/mips/kernel.h: Likewise.
18479 * include/grub/mips/libgcc.h: Likewise.
18480 * include/grub/mips/pci.h: Likewise.
18481 * include/grub/mips/qemu-mips/boot.h: Likewise.
18482 * include/grub/mips/qemu-mips/kernel.h: Likewise.
18483 * include/grub/mips/qemu-mips/loader.h: Likewise.
18484 * include/grub/mips/qemu-mips/memory.h: Likewise.
18485 * include/grub/mips/qemu-mips/serial.h: Likewise.
18486 * include/grub/mips/qemu-mips/time.h: Likewise.
18487 * include/grub/mips/relocator.h: Likewise.
18488 * include/grub/mips/time.h: Likewise.
18489 * include/grub/mips/types.h: Likewise.
18490 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
18491 * include/grub/mips/yeeloong/boot.h: Likewise.
18492 * include/grub/mips/yeeloong/kernel.h: Likewise.
18493 * include/grub/mips/yeeloong/loader.h: Likewise.
18494 * include/grub/mips/yeeloong/memory.h: Likewise.
18495 * include/grub/mips/yeeloong/pci.h: Likewise.
18496 * include/grub/mips/yeeloong/serial.h: Likewise.
18497 * include/grub/mips/yeeloong/time.h: Likewise.
18498 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
18499 * kern/elf.c (grub_elf32_size): New parameter. All users
18500 updated.
18501 (grub_elf64_size): Likewise.
18502 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
18503 Load modules before saying "Welcome to GRUB!".
18504 Call grub_refresh after saying "Welcome to GRUB!".
18505 * kern/mips/cache.S: New file.
18506 * kern/mips/cache_flush.S: Likewise.
18507 * kern/mips/dl.c: Likewise.
18508 * kern/mips/init.c: Likewise.
18509 * kern/mips/qemu-mips/init.c: Likewise.
18510 * kern/mips/startup.S: Likewise.
18511 * kern/mips/yeeloong/init.c: Likewise.
18512 * kern/term.c (grub_putcode): Handle NULL terminal.
18513 (grub_getcharwidth): Likewise.
18514 (grub_getkey): Likewise.
18515 (grub_checkkey): Likewise.
18516 (grub_getkeystatus): Likewise.
18517 (grub_getxy): Likewise.
18518 (grub_getwh): Likewise.
18519 (grub_gotoxy): Likewise.
18520 (grub_cls): Likewise.
18521 (grub_setcolorstate): Likewise.
18522 (grub_setcolor): Likewise.
18523 (grub_getcolor): Likewise.
18524 (grub_refresh): Likewise.
18525 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
18526 (write_jump): Add hatch nop.
18527 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
18528 * lib/mips/setjmp.S: New file.
18529 * loader/mips/linux.c: Likewise.
18530 * term/i386/pc/at_keyboard.c: Move from here ...
18531 * term/at_keyboard.c: ... to here.
18532 * term/i386/pc/serial.c: Moved from here ...
18533 * term/serial.c: ... to here. All users updated.
18534 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
18535 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
18536 (serial_translate_key_sequence): Avoid deadlock.
18537 (grub_serial_getkey): Handle backspace.
18538 (grub_serial_putchar): Fix newline handling.
18539 * util/i386/pc/grub-mkimage.c: Move from here ...
18540 * util/grub-mkrawimage.c: ... to here. All users updated.
18541 (generate_image): New parameters 'font_path' and 'format'.
18542 Support embedding font.
18543 Use grub_host_to_target* instead of grub_cpu_to_le*.
18544 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
18545 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
18546 (options): New option "--font".
18547 (usage): Likewise.
18548 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
18549 (main): Handle "--font".
18550 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
18551 (grub_virtual_screen_setup): Set bg_color_display.
18552 (redraw_screen_rect): Use bg_color_display instead of incorrect
18553 bg_color.
18554 (grub_gfxterm_cls): Likewise.
18555 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
18556 Support embedding config file.
18557 (add_segments): Likewise.
18558 (options): New option "--config".
18559 (main): Handle "--config".
18560 * video/sm712.c: New file.
18561
18562 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18563
18564 Fix parallel builds.
18565
18566 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
18567 font.c depend on ascii.h).
18568
18569 2010-01-12 Carles Pina i Estany <carles@pina.cat>
18570
18571 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
18572
18573 2010-01-11 Carles Pina i Estany <carles@pina.cat>
18574
18575 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
18576 By default: disabled.
18577 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
18578 parameter.
18579
18580 2010-01-10 Carles Pina i Estany <carles@pina.cat>
18581
18582 * font/font.c: Update copyright years.
18583 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
18584
18585 2010-01-10 Carles Pina i Estany <carles@pina.cat>
18586
18587 * font/font.c: Include `ascii.h'.
18588 (ASCII_BITMAP_SIZE): New macro.
18589 (ascii_font_glyph): Define.
18590 (ascii_glyph_lookup): New function.
18591 (grub_font_get_string_width): Change comment. If glyph not found, use
18592 ascii_glyph_lookup.
18593 (grub_font_get_glyph_with_fallback): If glyph not available returns
18594 ascii_glyph_lookup.
18595 * util/grub-mkfont.c (file_formats): New enum.
18596 (options): Add `ascii-bitmaps' new option.
18597 (usage): Add `asii-bitmaps' new option.
18598 (write_font_ascii_bitmap): New function.
18599 (write_font): Rename to ...
18600 (write_font_p2): ... this. Remove print_glyphs call.
18601 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
18602 used. Call print_glyphs.
18603 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
18604
18605 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
18606
18607 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
18608 (grub_bin2h_SOURCES): New variable.
18609 * util/bin2h.c: New file.
18610
18611 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18612
18613 * include/multiboot.h: Resynced with spec.
18614 * include/multiboot2.h: Likewise.
18615 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
18616 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
18617
18618 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18619
18620 * include/grub/term.h (grub_term_register_input,
18621 grub_term_register_output): Check return of terminal init()
18622 routines, and abort if errors are raised.
18623
18624 * commands/terminal.c: Update copyright year.
18625
18626 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18627
18628 * commands/terminal.c (grub_cmd_terminal_input)
18629 (grub_cmd_terminal_output): Check return of terminal init()
18630 routines, and abort if errors are raised.
18631
18632 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
18633
18634 * include/grub/i386/bsd.h: Fix include pathes.
18635
18636 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
18637
18638 Add missing *BSD copyright headers.
18639
18640 * include/grub/aout.h: Add BSD licence.
18641 * include/grub/i386/bsd.h: Parts under different licences moved to ...
18642 * include/grub/i386/freebsd_linker.h: ... here,
18643 * include/grub/i386/freebsd_reboot.h: ... here,
18644 * include/grub/i386/netbsd_bootinfo.h: ... here,
18645 * include/grub/i386/netbsd_reboot.h: ... here,
18646 * include/grub/i386/openbsd_bootarg.h: ... here,
18647 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
18648 licence to each file.
18649
18650 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18651
18652 * acinclude.m4: Remove `nop' assembly instruction; it's not
18653 implemented by all architectures.
18654
18655 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18656
18657 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
18658 ELILO. This is no longer necessary.
18659
18660 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
18661
18662 Added new tool, grub-scrit-check to verify grub.cfg syntax.
18663
18664 * util/grub-script-check.c: grub-script-check tool.
18665 * conf/common.rmk: Make rules for grub-script-check.
18666
18667 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18668
18669 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
18670 spotting it back in 2008. Shame on me for forgetting he did.
18671
18672 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
18673
18674 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18675
18676 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
18677 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
18678 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
18679 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
18680 (GRUB_VIDEO_TYPE_EFI): Rename to ...
18681 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
18682
18683 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
18684
18685 * include/grub/test.h: Add license header.
18686 * tests/example_functional_test.c: Likewise.
18687 * tests/example_unit_test.c: Likewise.
18688 * tests/lib/functional_test.c: Likewise.
18689 * tests/lib/test.c: Likewise.
18690 * tests/lib/unit_test.c: Likewise.
18691
18692 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
18693
18694 Use flag-based instead of hook-based video mode selection and "auto"
18695 keyword.
18696
18697 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
18698 (grub_video_set_mode): Changed prototype. All users updated.
18699 (grub_video_check_mode_flag): New inline function.
18700 * video/video.c (parse_modespec): New function.
18701 (grub_video_set_mode): Parse flags and keywords.
18702
18703 2010-01-17 Carles Pina i Estany <carles@pina.cat>
18704
18705 * util/misc.c (grub_util_info): Fix the order of the parameters in a
18706 fprintf call.
18707
18708 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
18709
18710 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
18711
18712 2010-01-16 Carles Pina i Estany <carles@pina.cat>
18713
18714 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
18715 string.
18716 * util/grub-emu.c (usage): Likewise.
18717 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
18718 * util/i386/efi/grub-mkimage.c (usage): Likewise.
18719 * util/i386/pc/grub-mkimage.c (usage): Likewise.
18720 * util/i386/pc/grub-setup.c (usage): Likewise.
18721
18722 2010-01-16 Carles Pina i Estany <carles@pina.cat>
18723
18724 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
18725 the message.
18726 (grub_util_info): Likewise.
18727 (grub_util_error): Likewise.
18728 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
18729 and/or new lines in `grub_util_warna', `grub_util_info',
18730 `grub_util_error' calls.
18731 * util/getroot.c: Likewise.
18732 * util/grub-editenv.c: Likewise.
18733 * util/grub-emu.c: Likewise.
18734 * util/grub-fstest.c: Likewise.
18735 * util/grub-mkdevicemap.c: Likewise.
18736 * util/grub-mkfont.c: Likewise.
18737 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18738 * util/grub-mkrelpath.c: Likewise.
18739 * util/grub-pe2elf.c: Likewise.
18740 * util/grub-probe.c: Likewise.
18741 * util/hostdisk.c: Likewise.
18742 * util/i386/efi/grub-mkimage.c: Likewise.
18743 * util/i386/pc/grub-mkimage.c: Likewise.
18744 * util/i386/pc/grub-setup.c: Likewise.
18745 * util/ieee1275/ofpath.c: Likewise.
18746 * util/mkisofs/eltorito.c: Likewise.
18747 * util/mkisofs/rock.c: Likewise.
18748 * util/mkisofs/write.c: Likewise.
18749 * util/raid.c: Likewise.
18750 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
18751 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18752
18753 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
18754
18755 Enable multiboot on non-pc.
18756
18757 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
18758 multiboot.mod and multiboot2.mod to ...
18759 * conf/i386.rmk (pkglib_MODULES): ... here.
18760 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
18761 Moved to ...
18762 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
18763 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
18764 Moved to ...
18765 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
18766 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
18767 Moved to ...
18768 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
18769 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
18770 Moved to ...
18771 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
18772 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
18773 relocator.mod.
18774 (ata_mod_SOURCES): Removed.
18775 (ata_mod_CFLAGS): Likewise.
18776 (ata_mod_LDFLAGS): Likewise.
18777 (relocator_mod_SOURCES): Removed.
18778 (relocator_mod_CFLAGS): Likewise.
18779 (relocator_mod_ASFLAGS): Likewise.
18780 (relocator_mod_LDFLAGS): Likewise.
18781 Include i386.mk.
18782 * include/grub/x86_64/multiboot.h: New file.
18783 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
18784 Terminate EFI.
18785
18786 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
18787
18788 Video multiboot support.
18789
18790 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
18791 New prototype.
18792 * include/multiboot.h: Resynced with multiboot specification.
18793 * include/multiboot2.h: Likewise.
18794 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
18795 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
18796 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
18797 (HAS_VGA_TEXT): Likewise.
18798 (accepts_video): New variable.
18799 (grub_multiboot_set_accepts_video): New function.
18800 (grub_multiboot_get_mbi_size): Account for video structures.
18801 (set_video_mode): New function.
18802 (retrieve_video_parameters): Likewise.
18803 (grub_multiboot_make_mbi): Fill video fields.
18804
18805 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
18806
18807 Video driver ids.
18808
18809 * include/grub/video.h (grub_video_driver_id): New type.
18810 (grub_video_adapter): New member 'id'. All users updated.
18811 (grub_video_get_driver_id): New proto.
18812 * video/video.c (grub_video_get_driver_id): New function.
18813
18814 2010-01-14 Carles Pina i Estany <carles@pina.cat>
18815
18816 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
18817 `var=val'.
18818
18819 2010-01-14 Carles Pina i Estany <carles@pina.cat>
18820
18821 * normal/cmdline.c (print_completion): Gettextizze.
18822
18823 2001-01-14 Carles Pina i Estany <carles@pina.cat>
18824
18825 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
18826
18827 2010-01-14 Carles Pina i Estany <carles@pina.cat>
18828
18829 * gettext/gettext.c (grub_gettext_translate): Push and pop
18830 grub_errno.
18831 (grub_gettext_delete_list): Change comment style.
18832 * kern/err.c (grub_error): Gettextizze.
18833 (grub_fatal): Gettextizze.
18834
18835 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
18836
18837 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
18838 (grub_linux16_real_boot): ... this.
18839 * kern/i386/loader.S: Likewise.
18840 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
18841 (grub_linux16_boot): New function. Switches to text mode and calls
18842 grub_linux16_real_boot().
18843
18844 * loader/i386/bsd.c: Include `<grub/video.h>'.
18845 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
18846 text mode before calling grub_unix_real_boot().
18847
18848 * loader/i386/multiboot.c: Include `<grub/video.h>'.
18849 (grub_multiboot_boot): Switch to text mode before calling
18850 grub_relocator32_boot().
18851
18852 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
18853 (grub_chainloader_boot): Switch to text mode before calling
18854 grub_chainloader_real_boot().
18855
18856 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
18857 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
18858
18859 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
18860 non-empty value.
18861
18862 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
18863 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
18864
18865 * util/grub.d/00_header.in: Define a "savedefault" function for use
18866 in menu entries.
18867 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
18868
18869 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
18870 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
18871
18872 * util/grub-mkconfig_lib.in (save_default_entry): Only set
18873 saved_entry if boot_once is unset.
18874 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
18875 previous saved entry (i.e. grub-reboot).
18876
18877 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
18878
18879 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
18880
18881 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
18882
18883 * util/grub.d/00_header.in: Use `set var=val' rather than plain
18884 `var=val'.
18885 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
18886
18887 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
18888
18889 * util/grub-reboot.in: Fix --version output.
18890 * util/grub-set-default.in: Likewise.
18891
18892 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
18893
18894 * util/grub.d/00_header.in: Silently ignore zero-sized environment
18895 blocks.
18896
18897 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
18898
18899 * util/grub.d/00_header.in: Quote the value assigned to `default',
18900 in case it contains spaces.
18901
18902 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
18903
18904 * util/grub.d/30_os-prober.in: Fix merge error that moved a
18905 `save_default_entry' call from the macosx case to the linux case.
18906
18907 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
18908 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
18909
18910 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
18911 in `chosen' environment variable.
18912 * normal/menu_text.c (get_entry_number): Check if the variable
18913 matches the title of a menu entry.
18914 (run_menu): Pass menu to get_entry_number.
18915
18916 * util/grub-reboot.in: New file.
18917 * util/grub-set-default.in: New file.
18918 * conf/common.rmk (grub-reboot): New utility.
18919 (grub-set-default): New utility.
18920
18921 * util/grub-mkconfig_lib.in (save_default_entry): New function.
18922 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
18923 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
18924 move it to `saved_entry' for the next boot. Load environment on
18925 initialisation.
18926 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
18927 * util/grub.d/10_hurd.in: Likewise.
18928 * util/grub.d/10_linux.in (linux_entry): Likewise.
18929 * util/grub.d/10_windows.in: Likewise.
18930 * util/grub.d/30_os-prober.in: Likewise.
18931
18932 * util/grub-install.in: Create environment block.
18933 * util/i386/efi/grub-install.in: Likewise.
18934 * util/ieee1275/grub-install.in: Likewise.
18935 * util/sparc64/ieee1275/grub-install.in: Likewise.
18936
18937 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
18938
18939 Unit testing framework for GRUB.
18940
18941 * Makefile.in: Test framework build rules for 'make check'.
18942 * conf/tests.rmk: Build rules for individual tests and framework.
18943
18944 * include/grub/test.h: Header file for whitebox tests.
18945 * tests/lib/functional_test.c: Framework support for whitebox
18946 functional tests.
18947 * tests/lib/test.c: Common whitebox testing code for unit and
18948 functional tests.
18949 * tests/lib/unit_test.c: Framework support for whitebox unit
18950 tests.
18951
18952 * tests/util/grub-shell-tester.in: Support utility for grub-script
18953 tests.
18954 * tests/util/grub-shell.in: Utility to execute grub-script
18955 commands in a Qemu instance.
18956
18957 * tests/example_functional_test.c: Example whitebox functional
18958 test.
18959 * tests/example_grub_script_test.in: Example grub-script test.
18960 * tests/example_scripted_test.in: Example scripted test.
18961 * tests/example_unit_test.c: Example whitebox unit test.
18962
18963 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
18964
18965 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
18966 Add loader/i386/multiboot_mbi.c.
18967 (multiboot2_mod_SOURCES): Likewise.
18968 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
18969 (multiboot2_mod_SOURCES): Likewise.
18970 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
18971 (grub_multiboot_make_mbi): Likewise.
18972 (grub_multiboot_free_mbi): Likewise.
18973 (grub_multiboot_init_mbi): Likewise.
18974 (grub_multiboot_add_module): Likewise.
18975 (grub_multiboot_set_bootdev): Likewise.
18976 * loader/i386/multiboot.c (mbi): Removed.
18977 (mbi_dest): Likewise.
18978 (alloc_mbi): New variable.
18979 (grub_multiboot_payload_size): Removed. All users updated.
18980 (grub_multiboot_pure_size): New variable.
18981 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
18982 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
18983 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
18984 (grub_fill_multiboot_mmap): Likewise.
18985 (grub_multiboot_get_bootdev): Likewise.
18986 (grub_multiboot): Use multiboot_mbi functions.
18987 * loader/i386/multiboot_mbi.c: New file.
18988
18989 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18990
18991 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
18992 it would result in module crash.
18993
18994 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18995
18996 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
18997 (grub_ofconsole_getwh): Split to ...
18998 (grub_ofconsole_getwh): ... this.
18999 (grub_ofconsole_dimensions): ...and this.
19000 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
19001
19002 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
19003
19004 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
19005
19006 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19007
19008 * loader/i386/pc/multiboot2.c: Removed stalled file.
19009
19010 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19011
19012 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
19013 Reported by: Grégoire Sutre
19014
19015 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
19016
19017 * util/misc.c (canonicalize_file_name): New function.
19018 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
19019 instead of realpath().
19020
19021 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
19022
19023 * util/grub-install.in (usage): Clarify meaning of --root-directory,
19024 and make it clearer that it's optional. Based on confusion
19025 witnessed on IRC.
19026
19027 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19028
19029 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
19030 in premature implicit newline.
19031
19032 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19033
19034 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
19035 which resulted in garbled command line at the end of screen.
19036
19037 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19038
19039 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
19040 initialization with similar approach as with other Linux loaders.
19041
19042 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19043
19044 Fix i386-ieee1275 build.
19045
19046 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
19047 and grub_term_height() for video_{width,height} initialization.
19048
19049 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19050
19051 Fix grub-emu build.
19052
19053 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
19054
19055 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19056 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19057
19058 Support for multiple terminals.
19059
19060 * Makefile.in (pkglib_DATA): terminal.lst.
19061 (terminal.lst): New target.
19062 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
19063 (GRUB_MOD_INIT(handler)): Likewise.
19064 (GRUB_MOD_FINI(handler)): Likewise.
19065 * commands/help.c (grub_cmd_help): Handle multiple terminals.
19066 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
19067 * commands/sleep.c (do_print): Use grub_term_restore_pos.
19068 (grub_cmd_sleep): Use grub_term_save_pos.
19069 * commands/terminal.c: New file.
19070 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
19071 commands/terminal.c and lib/charset.c.
19072 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
19073 (pkglib_MODULES): Add terminal.mod.
19074 (terminal_mod_SOURCES): New variable.
19075 (terminal_mod_CFLAGS): Likewise.
19076 (terminal_mod_LDFLAGS): Likewise.
19077 * genhandlerlist.sh: Don't handle terminals.
19078 * genmk.rb: Generate terminal-*.lst.
19079 * genterminallist.sh: New file.
19080 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
19081 (grub_is_valid_utf8): Likewise.
19082 (grub_utf8_to_ucs4_alloc): Likewise.
19083 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
19084 (grub_menu_register_viewer): Changed argument.
19085 (grub_menu_try_text): New proto.
19086 (grub_gfxmenu_try_hook): New declaration.
19087 * include/grub/normal.h (grub_normal_exit_level): New declaration.
19088 (grub_menu_init_page): Additional argument term.
19089 (grub_normal_init_page): Likewise.
19090 (grub_cmdline_get): Arguments simplified.
19091 (grub_utf8_to_ucs4_alloc): Removed.
19092 (grub_print_ucs4): Additional argument term.
19093 (grub_getstringwidth): Likewise.
19094 (grub_print_message_indented): Likewise.
19095 (grub_menu_text_register_instances): New proto.
19096 (grub_show_menu): Likewise.
19097 (read_terminal_list): Likewise.
19098 (grub_set_more): Likewise.
19099 * include/grub/parser.h: Include handler.h.
19100 * include/grub/reader.h: Rewritten.
19101 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
19102 (GRUB_TERM_WIDTH): Changed to function.
19103 (GRUB_TERM_HEIGHT): Likewise.
19104 (GRUB_TERM_BORDER_WIDTH): Likewise.
19105 (GRUB_TERM_BORDER_HEIGHT): Likewise.
19106 (GRUB_TERM_NUM_ENTRIES): Likewise.
19107 (GRUB_TERM_ENTRY_WIDTH): Likewise.
19108 (GRUB_TERM_CURSOR_X): Likewise.
19109 (grub_term_input_class): Likewise.
19110 (grub_term_output_class): Likewise.
19111 (grub_term_outputs_disabled): New declaration.
19112 (grub_term_inputs_disabled): Likewise.
19113 (grub_term_outputs): Likewise.
19114 (grub_term_inputs): Likewise.
19115 (grub_term_register_input): Rewritten.
19116 (grub_term_register_output): Likewise.
19117 (grub_term_unregister_input): Likewise.
19118 (grub_term_unregister_output): Likewise.
19119 (FOR_ACTIVE_TERM_INPUTS): New macro.
19120 (FOR_DISABLED_TERM_INPUTS): Likewise.
19121 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19122 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19123 * include/grub/terminfo.h: Add oterm argument to all protypes.
19124 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
19125 Use grub_rescue_run.
19126 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
19127 All users updated.
19128 * kern/reader.c: Removed. All users updated.
19129 * kern/rescue_reader.c (grub_rescue_init): Removed.
19130 (grub_rescue_reader): Likewise.
19131 (grub_register_rescue_reader): Likewise.
19132 (grub_rescue_run): New function based on kern/reader.c.
19133 * kern/term.c: Adapted for multiterm.
19134 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
19135 (grub_is_valid_utf8): Likewise.
19136 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
19137 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
19138 right terminal.
19139 * loader/i386/linux.c (grub_linux_boot): Likewise.
19140 * normal/auth.c (grub_username_get): New function.
19141 (grub_auth_check_authentication): Use grub_username_get.
19142 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
19143 * normal/color.c: Adapt for multiterm.
19144 * normal/main.c (read_config_file): Don't use grub_reader_loop.
19145 (grub_normal_init_page): Additional argument term.
19146 (read_lists): Call read_terminal_lists.
19147 (grub_enter_normal_mode): Call grub_cmdline_run.
19148 Handle grub_normal_exit_level.
19149 (grub_cmd_normal): Make reentrant.
19150 (grub_cmd_normal_exit): New function.
19151 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
19152 * normal/menu.c: Adapt for multiterm.
19153 * normal/menu_entry.c: Likewise.
19154 * normal/menu_text.c: Likewise.
19155 * normal/menu_viewer.c: Removed. All users updated.
19156 * normal/term.c: New file.
19157 * util/console.c: Change order of includes to workaround a bug in
19158 ncurses headers.
19159 * term/terminfo.c: New argument oterm on all exported functions.
19160 All users updated.
19161 * util/grub-editenv.c (grub_term_input_class): Removed.
19162 (grub_term_output_class): Likewise.
19163
19164 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19165
19166 Make loader output a bit more user-friendly.
19167
19168 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
19169 is being loaded. Likewise for the Hurd.
19170
19171 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
19172 that kernel of FreeBSD ${version} is being loaded.
19173
19174 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
19175 grub_dprintf().
19176 (grub_cmd_initrd): Likewise.
19177 * util/grub.d/10_linux.in (linux_entry): Print message indicating
19178 that Linux ${version} is being loaded. Likewise for initrd.
19179
19180 2010-01-09 Carles Pina i Estany <carles@pina.cat>
19181
19182 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
19183
19184 2010-01-08 Carles Pina i Estany <carles@pina.cat>
19185
19186 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
19187 (GRUB_MOD_INIT): Gettextizze.
19188 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
19189 (GRUB_MOD_INIT): Gettextizze.
19190 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
19191 (grub_cmd_linux): Capitalise Linux.
19192 (GRUB_MOD_INIT): Gettextizze.
19193 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
19194 (grub_cmd_linux): Capitalise Linux.
19195 (GRUB_MOD_INIT): Gettextizze.
19196 * loader/i386/linux.c: Include `<grub/i18n.h>'.
19197 (grub_cmd_linux): Capitalise Linux.
19198 (GRUB_MOD_INIT): Gettextizze.
19199 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
19200 (GRUB_MOD_INIT): Gettextizze.
19201 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
19202 (grub_cmd_linux): Capitalise Linux.
19203 (GRUB_MOD_INIT): Gettextizze.
19204 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
19205 (grub_cpu_xnu_init): Gettextizze.
19206 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
19207 (GRUB_MOD_INIT): Gettextizze.
19208 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
19209 (GRUB_MOD_INIT): Gettextizze.
19210 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
19211 (grub_linux_load64): Capitalise Linux.
19212 (GRUB_MOD_INIT): Gettextizze.
19213 * loader/xnu.c: Include `<grub/i18n.h>'.
19214 (GRUB_MOD_INIT): Gettextizze.
19215 * po/POTFILES: Add `loader/efi/appleloader.c',
19216 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
19217 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
19218 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
19219 `loader/i386/xnu.c', `loader/multiboot_loader.c',
19220 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
19221 and `loader/xnu.c'.
19222
19223 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19224
19225 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
19226
19227 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19228
19229 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
19230 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
19231 * util/mkisofs/mkisofs.c (main): Readjust --version output.
19232
19233 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19234
19235 Reset Multiboot 2 support. New loader implements the draft in
19236 /branches/multiboot2 and shares as much code as possible with the
19237 production Multiboot 1 implementation.
19238
19239 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
19240 * loader/multiboot2.c: Likewise.
19241 * loader/i386/multiboot_helper.S: Likewise.
19242 * include/multiboot2.h: Replace with latest version from the draft
19243 in /branches/multiboot2.
19244
19245 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
19246 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
19247 and `loader/multiboot2.c'.
19248 (pkglib_MODULES): Add `multiboot2.mod'.
19249 (multiboot2_mod_SOURCES): New variable.
19250 (multiboot2_mod_LDFLAGS): Likewise.
19251 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
19252
19253 * conf/i386-pc.rmk: Likewise.
19254
19255 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19256 (multiboot_mod_SOURCES): Remove variable.
19257 (multiboot_mod_LDFLAGS): Likewise.
19258 (multiboot_mod_CFLAGS): Likewise.
19259
19260 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
19261 `<multiboot2.h>' instead of `<multiboot.h>'.
19262 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
19263 (MULTIBOOT_HEADER_MAGIC): New macros.
19264
19265 * loader/multiboot_loader.c (module_version_status): Remove variable.
19266 (find_multi_boot2_header): Remove function.
19267 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
19268 logic. Always check for the Multiboot version we're compiling for.
19269 (grub_cmd_module_loader): Likewise.
19270 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
19271 command instead of `multiboot'.
19272
19273 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19274
19275 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
19276 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
19277 all users.
19278
19279 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19280 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19281
19282 Fix breakage introduced with previous commit.
19283
19284 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
19285 commands.
19286 * normal/handler.c (read_handler_list): Revert part of previous commit
19287 affecting this file.
19288 * normal/main.c (read_lists): Move read_handler_list() call back to ...
19289 (grub_normal_execute): ... here.
19290
19291 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19292
19293 Merge prefix-redefinition-fix branch.
19294
19295 * normal/autofs.c (read_fs_list): Make function capable of being
19296 run multiple times, gracefuly replacing the previous data
19297 structures.
19298 * normal/dyncmd.c (read_command_list): Likewise.
19299 * normal/handler.c (read_handler_list): Likewise.
19300 * normal/main.c (read_lists): New function. Calls all the
19301 list reading functions.
19302 (grub_normal_execute): Use read_lists() instead of calling all
19303 list reading functions explicitly. Register read_lists() as a
19304 variable hook attached to ${prefix}.
19305
19306 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19307
19308 Merge crypto branch.
19309
19310 * Makefile.in (pkglib_DATA): Add crypto.lst.
19311 (crypto.lst): New target.
19312 * commands/hashsum.c: New file.
19313 * commands/password.c (check_password): Use grub_crypto_memcmp.
19314 * commands/password_pbkdf2.c: New file.
19315 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
19316 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
19317 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
19318 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
19319 -I$(srcdir)/lib/libgcrypt_wrap.
19320 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
19321 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
19322 password_pbkdf2.mod.
19323 (crypto_mod_SOURCES): New variable.
19324 (crypto_mod_CFLAGS): Likewise.
19325 (crypto_mod_LDFLAGS): Likewise.
19326 (hashsum_mod_SOURCES): New variable.
19327 (hashsum_mod_CFLAGS): Likewise.
19328 (hashsum_mod_LDFLAGS): Likewise.
19329 (pbkdf2_mod_SOURCES): New variable.
19330 (pbkdf2_mod_CFLAGS): Likewise.
19331 (pbkdf2_mod_LDFLAGS): Likewise.
19332 (password_pbkdf2_mod_SOURCES): New variable.
19333 (password_pbkdf2_mod_CFLAGS): Likewise.
19334 (password_pbkdf2_mod_LDFLAGS): Likewise.
19335 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
19336 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
19337 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
19338 Include conf/gcry.rmk.
19339 * include/grub/auth.h: Rewritten.
19340 * include/grub/crypto.h: New file.
19341 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
19342 * include/grub/normal.h (read_crypto_list): New prototype.
19343 * lib/crypto.c: New file.
19344 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
19345 * lib/pbkdf2.c: Likewise.
19346 * normal/auth.c (grub_auth_strcmp): Removed.
19347 (grub_iswordseparator): Likewise.
19348 (grub_auth_strword): Likewise.
19349 (is_authenticated): Use grub_strword.
19350 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
19351 and grub_strword. Pass entered password to authentication callback.
19352 * normal/crypto.c: New file.
19353 * normal/main.c: Call read_crypto_list.
19354 * util/grub-mkpasswd-pbkdf2.c: New file.
19355 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
19356
19357 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
19358
19359 Fix descent and ascent calculation.
19360
19361 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
19362 (options): New option "asce".
19363 (usage): Likewise.
19364 (add_char): Ignore invalid glyphs for descent calculation.
19365 Calculate ascent from actual content.
19366 (print_glyphs): Use 'asce'.
19367 (write_font): Likewise. Allow ascent override.
19368 (main): Handle "asce" option.
19369
19370 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19371
19372 * kern/err.c: Include `<grub/i18n.h>'.
19373 (grub_print_error): Add full stop. Gettextizze.
19374 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
19375 (grub_bsd_load_elf): Capitalise ELF.
19376 (grub_cmd_freebsd_loadenv): Add `s' in error string.
19377 (grub_cmd_freebsd_module): Likewise.
19378 (grub_cmd_freebsd_module_elf): Likewise.
19379 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
19380
19381 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19382
19383 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
19384 * commands/search_file.c (HELP_MESSAGE): New macro.
19385 * commands/search_label.c (HELP_MESSAGE): Likewise.
19386 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
19387 * po/POTFILES: Add `commands/search_file.c',
19388 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
19389 `commands/search.c'.
19390
19391 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19392
19393 * config.rpath: Update from Gnulib.
19394
19395 2010-01-05 Yves Blusseau <blusseau@zetam.org>
19396
19397 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
19398
19399 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
19400
19401 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
19402
19403 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19404
19405 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
19406 arguments to fread so that we get a return value in bytes, rather
19407 than something that will normally be rounded down to 0.
19408 Adjust error handling to avoid producing garbage when size_t is not
19409 the same size as long long.
19410
19411 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19412
19413 * util/mkisofs/write.c (padblock_write): Check return value of
19414 fread.
19415
19416 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19417
19418 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
19419 floppy images now.
19420
19421 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
19422
19423 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19424
19425 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
19426 instead of manual alignment.
19427 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
19428 verbose). Avoid attempts to read past end of the device
19429 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
19430 but GRUB_DISK_CACHE_SIZE may exceed that).
19431
19432 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19433
19434 * commands/crc.c (grub_cmd_crc): Abort on read errors.
19435 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
19436 it to upper layer.
19437
19438 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19439
19440 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
19441 New constant.
19442 (grub_efi_piwg_device_path): New structure
19443 (grub_efi_piwg_device_path_t): New type.
19444 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
19445 (devpath_1): Transform to a structure. All users updated.
19446 (devpath_2): Likewise.
19447 (devpath_3): Likewise.
19448 (devpath_4): Likewise.
19449 (devpath_5): Likewise.
19450
19451 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19452
19453 * loader/efi/appleloader.c: Restored. Update all users.
19454
19455 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19456
19457 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
19458
19459 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
19460 (struct boot_blocklist): Move from here ...
19461 * include/grub/i386/pc/boot.h [ASM_FILE]
19462 (struct grub_boot_blocklist): ... to here. Update all users.
19463 (setup): Only initialize `start' member of `first_block'
19464 structure. Add assert() calls to verify the other members.
19465
19466 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
19467 (generate_image): Fix broken blocklist length initialization.
19468 Add assert() call to verify blocklist `segment' field.
19469
19470 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19471
19472 * loader/efi/appleloader.c: Remove. Update all users.
19473
19474 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19475
19476 * boot/i386/pc/boot.S: Update copyright year.
19477 * boot/i386/pc/cdboot.S: Likewise.
19478 * boot/i386/pc/diskboot.S: Likewise.
19479 * boot/i386/pc/lnxboot.S: Likewise.
19480 * boot/i386/pc/pxeboot.S: Likewise.
19481 * bus/pci.c: Likewise.
19482 * commands/cmp.c: Likewise.
19483 * commands/help.c: Likewise.
19484 * commands/hexdump.c: Likewise.
19485 * commands/i386/pc/halt.c: Likewise.
19486 * commands/i386/pc/play.c: Likewise.
19487 * commands/i386/pc/vbeinfo.c: Likewise.
19488 * commands/ls.c: Likewise.
19489 * commands/test.c: Likewise.
19490 * disk/dmraid_nvidia.c: Likewise.
19491 * disk/i386/pc/biosdisk.c: Likewise.
19492 * disk/ieee1275/nand.c: Likewise.
19493 * disk/ieee1275/ofdisk.c: Likewise.
19494 * disk/lvm.c: Likewise.
19495 * disk/raid.c: Likewise.
19496 * disk/raid6_recover.c: Likewise.
19497 * disk/scsi.c: Likewise.
19498 * fs/affs.c: Likewise.
19499 * fs/cpio.c: Likewise.
19500 * fs/ext2.c: Likewise.
19501 * fs/hfs.c: Likewise.
19502 * fs/iso9660.c: Likewise.
19503 * fs/ntfs.c: Likewise.
19504 * fs/sfs.c: Likewise.
19505 * fs/udf.c: Likewise.
19506 * fs/ufs.c: Likewise.
19507 * fs/xfs.c: Likewise.
19508 * gencmdlist.sh: Likewise.
19509 * genmk.rb: Likewise.
19510 * include/grub/disk.h: Likewise.
19511 * include/grub/efi/api.h: Likewise.
19512 * include/grub/efi/efi.h: Likewise.
19513 * include/grub/efi/pe32.h: Likewise.
19514 * include/grub/elf.h: Likewise.
19515 * include/grub/fs.h: Likewise.
19516 * include/grub/i386/at_keyboard.h: Likewise.
19517 * include/grub/i386/pc/memory.h: Likewise.
19518 * include/grub/i386/pc/vbe.h: Likewise.
19519 * include/grub/i386/pci.h: Likewise.
19520 * include/grub/i386/tsc.h: Likewise.
19521 * include/grub/ieee1275/ieee1275.h: Likewise.
19522 * include/grub/ntfs.h: Likewise.
19523 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
19524 * include/grub/sparc64/libgcc.h: Likewise.
19525 * include/grub/symbol.h: Likewise.
19526 * include/grub/types.h: Likewise.
19527 * include/multiboot2.h: Likewise.
19528 * io/gzio.c: Likewise.
19529 * kern/device.c: Likewise.
19530 * kern/disk.c: Likewise.
19531 * kern/efi/efi.c: Likewise.
19532 * kern/efi/mm.c: Likewise.
19533 * kern/elf.c: Likewise.
19534 * kern/file.c: Likewise.
19535 * kern/i386/dl.c: Likewise.
19536 * kern/i386/pc/init.c: Likewise.
19537 * kern/i386/pc/startup.S: Likewise.
19538 * kern/ieee1275/ieee1275.c: Likewise.
19539 * kern/ieee1275/init.c: Likewise.
19540 * kern/main.c: Likewise.
19541 * kern/mm.c: Likewise.
19542 * kern/powerpc/dl.c: Likewise.
19543 * kern/sparc64/dl.c: Likewise.
19544 * kern/x86_64/dl.c: Likewise.
19545 * lib/hexdump.c: Likewise.
19546 * loader/efi/appleloader.c: Likewise.
19547 * loader/i386/ieee1275/linux.c: Likewise.
19548 * loader/i386/pc/chainloader.c: Likewise.
19549 * loader/i386/pc/linux.c: Likewise.
19550 * loader/i386/pc/multiboot2.c: Likewise.
19551 * loader/ieee1275/multiboot2.c: Likewise.
19552 * loader/multiboot2.c: Likewise.
19553 * loader/multiboot_loader.c: Likewise.
19554 * loader/powerpc/ieee1275/linux.c: Likewise.
19555 * normal/completion.c: Likewise.
19556 * normal/menu_entry.c: Likewise.
19557 * partmap/apple.c: Likewise.
19558 * util/grub.d/10_hurd.in: Likewise.
19559 * util/hostfs.c: Likewise.
19560 * video/readers/png.c: Likewise.
19561
19562 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
19563
19564 * include/grub/misc.h (GNUC_PREREQ): New macro.
19565 (ATTRIBUTE_ERROR): New macro.
19566 * include/grub/list.h (grub_bad_type_cast_real): Use
19567 ATTRIBUTE_ERROR.
19568
19569 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19570
19571 * normal/menu_text.c (print_message): Change messages.
19572
19573 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19574
19575 * normal/menu_entry.c (store_completion): Gettextizze.
19576
19577 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19578
19579 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
19580
19581 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19582
19583 * po/POTFILES: Sort correctly.
19584
19585 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19586
19587 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
19588 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
19589 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
19590 full stop.
19591 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
19592 summary. Gettextizze the strings.
19593 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
19594 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
19595 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
19596 full stop.
19597 (GRUB_MOD_INIT): Remove command name from summary.
19598 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
19599 summary.
19600 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
19601 * term/i386/pc/serial.c (options): Add full stops.
19602 (GRUB_MOD_INIT): Remove command name from the summary.
19603
19604 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19605
19606 * commands/acpi.c: Gettextizze help strings and/or options. Include
19607 `grub/i18n.h' if needed.
19608 * commands/blocklist.c: Likewise.
19609 * commands/boot.c: Likewise.
19610 * commands/cat.c: Likewise.
19611 * commands/cmp.c: Likewise.
19612 * commands/configfile.c: Likewise.
19613 * commands/crc.c: Likewise.
19614 * commands/date.c: Likewise.
19615 * commands/echo.c: Likewise.
19616 * commands/efi/fixvideo.c: Likewise.
19617 * commands/efi/loadbios.c: Likewise.
19618 * commands/gptsync.c: Likewise.
19619 * commands/halt.c: Likewise.
19620 * commands/handler.c: Likewise.
19621 * commands/hdparm.c: Likewise.
19622 * commands/hexdump.c: Likewise.
19623 * commands/i386/cpuid.c: Likewise.
19624 * commands/i386/pc/drivemap.c: Likewise.
19625 * commands/i386/pc/halt.c: Likewise.
19626 * commands/i386/pc/pxecmd.c: Likewise.
19627 * commands/i386/pc/vbeinfo.c: Likewise.
19628 * commands/i386/pc/vbetest.c: Likewise.
19629 * commands/ieee1275/suspend.c: Likewise.
19630 * commands/keystatus.c: Likewise.
19631 * commands/loadenv.c: Likewise.
19632 * commands/ls.c: Likewise.
19633 * commands/lsmmap.c: Likewise.
19634 * commands/lspci.c: Likewise.
19635 * commands/memrw.c: Likewise.
19636 * commands/minicmd.c: Likewise.
19637 * commands/parttool.c: Likewise.
19638 * commands/password.c: Likewise.
19639 * commands/probe.c: Likewise.
19640 * commands/read.c: Likewise.
19641 * commands/reboot.c: Likewise.
19642 * commands/search.c: Likewise.
19643 * commands/sleep.c: Likewise.
19644 * commands/test.c: Likewise.
19645 * commands/true.c: Likewise.
19646 * commands/usbtest.c: Likewise.
19647 * commands/videotest.c: Likewise.
19648 * commands/xnu_uuid.c: Likewise.
19649 * disk/loopback.c: Likewise.
19650 * hello/hello.c: Likewise.
19651 * loader/i386/bsd.c: Likewise.
19652 * term/i386/pc/serial.c: Likewise.
19653 * po/POTFILES: Add new files.
19654
19655 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
19656
19657 * term/i386/pc/at_keyboard.c
19658 (keyboard_controller_wait_untill_ready): Rename to ...
19659 (keyboard_controller_wait_until_ready): ... this. Update all users.
19660
19661 2010-01-01 Carles Pina i Estany <carles@pina.cat>
19662
19663 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
19664 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
19665 string using string width.
19666 * normal/menu_text.c (grub_print_message_indented): Use
19667 grub_print_spaces and not print_spaces.
19668 (print_timeout): Likewise.
19669 (print_spaces): Move to...
19670 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
19671
19672 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
19673
19674 Import from Gnulib.
19675
19676 * gnulib/getdelim.c: New file.
19677 * gnulib/getline.c: Likewise.
19678
19679 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
19680
19681 * include/grub/list.h (grub_assert_fail): Removed.
19682 (grub_bad_type_cast_real): New function.
19683 (grub_bad_type_cast): New macro.
19684 (GRUB_AS_LIST): Use grub_bad_type_cast.
19685 (GRUB_AS_LIST_P): Likewise.
19686 (GRUB_AS_NAMED_LIST): Likewise.
19687 (GRUB_AS_NAMED_LIST_P): Likewise.
19688 (GRUB_AS_PRIO_LIST): Likewise.
19689 (GRUB_AS_PRIO_LIST_P): Likewise.
19690 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
19691
19692 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
19693
19694 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
19695 Fix syntax error.
19696
19697 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
19698
19699 * configure.ac: Check for TARGET_CFLAGS initialization before we
19700 initialize it ourselves (sigh).
19701 Move a few modifications to TARGET_CFLAGS to be unconditional
19702 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
19703 eh_frame)
19704
19705 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
19706 * term/i386/pc/at_keyboard.c
19707 (keyboard_controller_wait_untill_ready): Likewise.
19708 (keyboard_controller_led): Rename `led_status' paramter to avoid
19709 name conflict.
19710
19711 2009-12-28 Carles Pina i Estany <carles@pina.cat>
19712
19713 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
19714 quotes.
19715
19716 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
19717
19718 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
19719
19720 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
19721
19722 * normal/menu_text.c (grub_print_message_indented): Prevent
19723 past-the-end-of-array dereference.
19724
19725 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
19726
19727 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
19728 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
19729
19730 2009-12-27 Carles Pina i Estany <carles@pina.cat>
19731
19732 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
19733 * normal/main.c (grub_normal_read_line): Remove a space from the
19734 default prompt.
19735
19736 2009-12-27 Carles Pina i Estany <carles@pina.cat>
19737
19738 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
19739 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
19740 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
19741 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
19742 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
19743 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
19744 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
19745
19746 2009-12-26 Carles Pina i Estany <carles@pina.cat>
19747
19748 * video/readers/jpeg.c (cmd): Declare.
19749 (grub_cmd_jpegtest): Use `grub_command_t' type.
19750 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
19751 Assign to `cmd'.
19752 (GRUB_MOD_FINI): Use `cmd' to unregister.
19753 * video/readers/png.c (cmd): Declare.
19754 (grub_cmd_pngtest): Use `grub_command_t' type.
19755 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
19756 Assign to `cmd'.
19757 (GRUB_MOD_FINI): Use `cmd' to unregister.
19758 * video/readers/tga.c (cmd): Declare.
19759 (grub_cmd_tgatest): Use `grub_command_t' type.
19760 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
19761 Assign to `cmd'.
19762 (GRUB_MOD_FINI): Use `cmd' to unregister.
19763
19764 2009-12-26 Carles Pina i Estany <carles@pina.cat>
19765
19766 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
19767 stops.
19768 * kern/corecmd.c (grub_register_core_commands): Likewise.
19769 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
19770 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
19771 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
19772 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
19773 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
19774 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
19775 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
19776 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
19777 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
19778 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
19779 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
19780 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
19781 * normal/handler.c (insert_handler): Likewise.
19782 * normal/main.c (GRUB_MOD_INIT): Likewise.
19783 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
19784
19785 2009-12-26 Carles Pina i Estany <carles@pina.cat>
19786
19787 * commands/help.c (grub_cmd_help): Print the command name before the
19788 summary.
19789 (GRUB_MOD_INIT): Remove command name from the summary.
19790 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
19791 string as summary.
19792 * lib/arg.c (find_long): Print the command name before the summary.
19793 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
19794 summary.
19795 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
19796 * commands/cat.c (GRUB_MOD_INIT): Likewise.
19797 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
19798 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
19799 * commands/crc.c (GRUB_MOD_INIT): Likewise.
19800 * commands/date.c (GRUB_MOD_INIT): Likewise.
19801 * commands/echo.c (GRUB_MOD_INIT): Likewise.
19802 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
19803 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
19804 * commands/handler.c (GRUB_MOD_INIT): Likewise.
19805 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
19806 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
19807 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
19808 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
19809 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
19810 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
19811 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
19812 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
19813 * commands/ls.c (GRUB_MOD_INIT): Likewise.
19814 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
19815 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
19816 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
19817 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
19818 * commands/password.c (GRUB_MOD_INIT): Likewise.
19819 * commands/probe.c (GRUB_MOD_INIT): Likewise.
19820 * commands/read.c (GRUB_MOD_INIT): Likewise.
19821 * commands/search.c (GRUB_MOD_INIT): Likewise.
19822 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
19823 * commands/test.c (GRUB_MOD_INIT): Likewise.
19824 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
19825 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
19826 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
19827 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
19828 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
19829 * lib/arg.c (GRUB_MOD_INIT): Likewise.
19830 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
19831 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
19832 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
19833 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
19834 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
19835 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
19836 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
19837 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
19838
19839 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
19840
19841 Use search command for preliminar UUID search.
19842
19843 * commands/search.c: Split into ...
19844 * commands/search_wrap.c: ...this
19845 * commands/search.c: ...and this.
19846 * commands/search_file.c: New file.
19847 * commands/search_label.c: New file.
19848 * commands/search_uuid.c: New file.
19849 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
19850 Add commands/search_wrap.c, commands/search_file.c,
19851 commands/search_label.c and commands/search_uuid.c.
19852 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
19853 (search_mod_SOURCES): Set to commands/search_wrap.c.
19854 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
19855 search_label.mod.
19856 (search_fs_file_mod_SOURCES): New variable.
19857 (search_fs_file_mod_CFLAGS): Likewise.
19858 (search_fs_file_mod_LDFLAGS): Likewise.
19859 (search_label_mod_SOURCES): Likewise.
19860 (search_label_mod_CFLAGS): Likewise.
19861 (search_label_mod_LDFLAGS): Likewise.
19862 (search_fs_uuid_mod_SOURCES): New variable.
19863 (search_fs_uuid_mod_CFLAGS): Likewise.
19864 (search_fs_uuid_mod_LDFLAGS): Likewise.
19865 (fs_file_mod_SOURCES): Removed.
19866 (fs_file_mod_CFLAGS): Likewise.
19867 (fs_file_mod_LDFLAGS): Likewise.
19868 (fs_uuid_mod_SOURCES): Removed.
19869 (fs_uuid_mod_CFLAGS): Likewise.
19870 (fs_uuid_mod_LDFLAGS): Likewise.
19871 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
19872 Set to util/grub-install.in.
19873 * disk/fs_file.c: Removed.
19874 * disk/fs_uuid.c: Likewise.
19875 * include/grub/search.h: New file.
19876 * util/grub-install.in: Handle sparc64.
19877 Create and use load.cfg.
19878 * util/sparc64/ieee1275/grub-install.in: Removed.
19879
19880 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
19881
19882 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
19883 Ignore return status if CF is cleared.
19884 (grub_biosdisk_get_diskinfo_standard): Likewise.
19885
19886 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
19887
19888 * term/i386/pc/at_keyboard.c
19889 (keyboard_controller_wait_untill_ready): New function.
19890 (grub_keyboard_controller_write, grub_keyboard_controller_read)
19891 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
19892 for keyboard polling, rather than duplicate the same loop. This
19893 saves a few bytes in code size.
19894
19895 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
19896
19897 Support for (pxe[:server[:gateway]]) syntax and
19898 use environment variable for PXE.
19899
19900 * commands/i386/pc/pxecmd.c (options): Removed.
19901 (print_ip): Removed.
19902 (grub_cmd_pxe): Removed
19903 (grub_cmd_pxe_unload): New function.
19904 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
19905 (grub_pxe_your_ip): Made static.
19906 (grub_pxe_default_server_ip): Likewise.
19907 (grub_pxe_default_gateway_ip): Likewise.
19908 (grub_pxe_blksize): Likewise.
19909 (parse_ip): New function.
19910 (grub_pxe_open): Support server and gateway specification.
19911 (grub_pxe_close): Free disk->data.
19912 (grub_pxefs_open): Use disk->data.
19913 (grub_pxefs_read): Likewise.
19914 (grub_env_write_readonly): New function.
19915 (set_mac_env): Likewise.
19916 (set_env_limn_ro): Likewise.
19917 (parse_dhcp_vendor): Likewise.
19918 (grub_pxe_detect): Set the environment variables.
19919 (set_ip_env): New function.
19920 (write_ip_env): Likewise.
19921 (grub_env_write_pxe_default_server): Likewise.
19922 (grub_env_write_pxe_default_gateway): Likewise.
19923 (grub_env_write_pxe_blocksize): Likewise.
19924 (GRUB_MOD_INIT(pxe)): Set environment variables.
19925 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
19926 (grub_pxe_mac_addr_t): ... this. All users updated.
19927 (grub_pxe_your_ip): Removed.
19928 (grub_pxe_server_ip): Likewise.
19929 (grub_pxe_gateway_ip): Likewise.
19930 (grub_pxe_blksize): Likewise.
19931
19932 2009-12-25 Carles Pina i Estany <carles@pina.cat>
19933
19934 * commands/help.c: Include `<grub/i18n.h>'.
19935 (grub_cmd_help): Gettextizze.
19936 (GRUB_MOD_INIT): Likewise.
19937 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
19938 (GRUB_MOD_INIT): Gettextizze.
19939 * commands/search.c: Include `<grub/i18n.h>'.
19940 (options): Gettextizze.
19941 (GRUB_MOD_INIT): Gettextizze.
19942 * lib/arg.c: Include `<grub/i18n.h>'.
19943 (help_options): Gettextizze.
19944 (find_long): Likewise.
19945 (grub_arg_show_help): Likewise.
19946 * normal/dyncmd.c: Include `<grub/i18n.h>'.
19947 (read_command_list): Gettextizze.
19948 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
19949 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
19950
19951 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
19952
19953 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
19954 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
19955 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
19956 (led_status): New variable.
19957 (keyboard_controller_led): New function.
19958 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
19959 update led status for caps lock, num lock and scroll lock.
19960
19961 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
19962
19963 * util/hostdisk.c (open_device): Fix a comment.
19964
19965 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
19966
19967 * util/grub-install.in (host_os): New variable.
19968 * util/i386/efi/grub-install.in (host_os): Likewise.
19969
19970 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
19971
19972 * util/mkisofs/write.c (padblock_write): Abort when given an
19973 excedingly large embed image, instead of silently truncating it.
19974
19975 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
19976
19977 * include/multiboot.h: Indentation fixes.
19978
19979 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
19980
19981 * include/multiboot.h (struct multiboot_aout_symbol_table)
19982 (struct multiboot_elf_section_header_table): New structure
19983 declarations (stolen from GRUB Legacy).
19984 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
19985 table information.
19986
19987 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
19988 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
19989 type aliases.
19990
19991 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
19992
19993 * include/multiboot.h: Make comments src2texi-friendly.
19994
19995 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
19996
19997 For consistency with [multiboot]/docs/boot.S.
19998
19999 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
20000 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
20001 (MULTIBOOT_MAGIC2): Rename from this ...
20002 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
20003
20004 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20005
20006 * include/multiboot.h: Remove `<grub/types.h>'.
20007 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
20008 types. Update all users.
20009
20010 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20011
20012 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
20013 `couldn't' and `can not' by `cannot'.
20014 * commands/i386/pc/drivemap.c: Likewise.
20015 * disk/ata.c: Likewise.
20016 * disk/ieee1275/nand.c: Likewise.
20017 * fs/affs.c: Likewise.
20018 * fs/fat.c: Likewise.
20019 * fs/hfs.c: Likewise.
20020 * fs/hfsplus.c: Likewise.
20021 * fs/iso9660.c: Likewise.
20022 * fs/jfs.c: Likewise.
20023 * fs/minix.c: Likewise.
20024 * fs/reiserfs.c: Likewise.
20025 * fs/sfs.c: Likewise.
20026 * fs/udf.c: Likewise.
20027 * fs/ufs.c: Likewise.
20028 * fs/xfs.c: Likewise.
20029 * loader/powerpc/ieee1275/linux.c: Likewise.
20030 * loader/sparc64/ieee1275/linux.c: Likewise.
20031 * util/grub-probe.c: Likewise.
20032 * util/misc.c: Likewise.
20033
20034 2009-12-24 Carles Pina i Estany <carles@pina.cat>
20035
20036 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
20037 grub_errno calls.
20038 * commands/acpi.c: Likewise.
20039 * commands/blocklist.c: Likewise.
20040 * commands/efi/loadbios.c: Likewise.
20041 * commands/i386/pc/drivemap.c: Likewise.
20042 * commands/loadenv.c: Likewise.
20043 * commands/memrw.c: Likewise.
20044 * commands/password.c: Likewise.
20045 * commands/videotest.c: Likewise.
20046 * disk/ata.c: Likewise.
20047 * disk/ata_pthru.c: Likewise.
20048 * disk/dmraid_nvidia.c: Likewise.
20049 * disk/ieee1275/nand.c: Likewise.
20050 * disk/ieee1275/ofdisk.c: Likewise.
20051 * disk/loopback.c: Likewise.
20052 * disk/lvm.c: Likewise.
20053 * disk/mdraid_linux.c: Likewise.
20054 * disk/raid.c: Likewise.
20055 * disk/raid6_recover.c: Likewise.
20056 * disk/scsi.c: Likewise.
20057 * efiemu/main.c: Likewise.
20058 * efiemu/mm.c: Likewise.
20059 * efiemu/pnvram.c: Likewise.
20060 * efiemu/symbols.c: Likewise.
20061 * font/font.c: Likewise.
20062 * fs/cpio.c: Likewise.
20063 * fs/hfsplus.c: Likewise.
20064 * fs/iso9660.c: Likewise.
20065 * fs/jfs.c: Likewise.
20066 * fs/minix.c: Likewise.
20067 * fs/ntfs.c: Likewise.
20068 * fs/ntfscomp.c: Likewise.
20069 * fs/reiserfs.c: Likewise.
20070 * fs/ufs.c: Likewise.
20071 * fs/xfs.c: Likewise.
20072 * gettext/gettext.c: Likewise.
20073 * include/grub/auth.h: Likewise.
20074 * kern/elf.c: Likewise.
20075 * kern/file.c: Likewise.
20076 * kern/ieee1275/init.c: Likewise.
20077 * kern/ieee1275/mmap.c: Likewise.
20078 * kern/ieee1275/openfw.c: Likewise.
20079 * kern/powerpc/dl.c: Likewise.
20080 * kern/sparc64/dl.c: Likewise.
20081 * lib/arg.c: Likewise.
20082 * loader/i386/bsd.c: Likewise.
20083 * loader/i386/bsdXX.c: Likewise.
20084 * loader/i386/efi/linux.c: Likewise.
20085 * loader/i386/efi/xnu.c: Likewise.
20086 * loader/i386/ieee1275/linux.c: Likewise.
20087 * loader/i386/linux.c: Likewise.
20088 * loader/i386/multiboot.c: Likewise.
20089 * loader/i386/pc/linux.c: Likewise.
20090 * loader/i386/pc/multiboot2.c: Likewise.
20091 * loader/i386/xnu.c: Likewise.
20092 * loader/ieee1275/multiboot2.c: Likewise.
20093 * loader/macho.c: Likewise.
20094 * loader/machoXX.c: Likewise.
20095 * loader/multiboot2.c: Likewise.
20096 * loader/multiboot_loader.c: Likewise.
20097 * loader/powerpc/ieee1275/linux.c: Likewise.
20098 * loader/sparc64/ieee1275/linux.c: Likewise.
20099 * loader/xnu.c: Likewise.
20100 * loader/xnu_resume.c: Likewise.
20101 * mmap/i386/pc/mmap.c: Likewise.
20102 * normal/menu_viewer.c: Likewise.
20103 * partmap/acorn.c: Likewise.
20104 * partmap/amiga.c: Likewise.
20105 * partmap/apple.c: Likewise.
20106 * script/lexer.c: Likewise.
20107 * term/gfxterm.c: Likewise.
20108 * term/i386/pc/serial.c: Likewise.
20109 * term/i386/pc/vga.c: Likewise.
20110 * term/ieee1275/ofconsole.c: Likewise.
20111 * term/terminfo.c: Likewise.
20112 * video/bitmap.c: Likewise.
20113 * video/efi_gop.c: Likewise.
20114 * video/efi_uga.c: Likewise.
20115 * video/fb/video_fb.c: Likewise.
20116 * video/i386/pc/vbe.c: Likewise.
20117 * video/readers/tga.c: Likewise.
20118 * video/video.c: Likewise.
20119
20120 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
20121
20122 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
20123 * commands/lspci.c: Likewise.
20124 * commands/probe.c: Likewise.
20125 * commands/xnu_uuid.c: Likewise.
20126 * conf/i386-coreboot.rmk: Likewise.
20127 * conf/i386-efi.rmk: Likewise.
20128 * conf/i386-ieee1275.rmk: Likewise.
20129 * conf/i386-pc.rmk: Likewise.
20130 * conf/powerpc-ieee1275.rmk: Likewise.
20131 * conf/sparc64-ieee1275.rmk: Likewise.
20132 * conf/x86_64-efi.rmk: Likewise.
20133 * fs/i386/pc/pxe.c: Likewise.
20134 * gettext/gettext.c: Likewise.
20135 * include/grub/efi/graphics_output.h: Likewise.
20136 * include/grub/i386/pc/memory.h: Likewise.
20137 * kern/env.c: Likewise.
20138 * kern/i386/qemu/startup.S: Likewise.
20139 * lib/i386/pc/biosnum.c: Likewise.
20140 * lib/i386/relocator.c: Likewise.
20141 * lib/i386/relocator_asm.S: Likewise.
20142 * lib/relocator.c: Likewise.
20143 * loader/i386/bsd.c: Likewise.
20144 * loader/i386/multiboot.c: Likewise.
20145 * loader/i386/pc/chainloader.c: Likewise.
20146 * loader/i386/xnu.c: Likewise.
20147 * loader/xnu.c: Likewise.
20148 * normal/main.c: Likewise.
20149 * normal/menu_text.c: Likewise.
20150 * util/getroot.c: Likewise.
20151 * util/grub-mkconfig_lib.in: Likewise.
20152 * util/grub.d/00_header.in: Likewise.
20153 * util/i386/pc/grub-mkimage.c: Likewise.
20154 * util/mkisofs/eltorito.c: Likewise.
20155 * util/mkisofs/exclude.h: Likewise.
20156 * util/mkisofs/hash.c: Likewise.
20157 * util/mkisofs/iso9660.h: Likewise.
20158 * util/mkisofs/joliet.c: Likewise.
20159 * util/mkisofs/mkisofs.c: Likewise.
20160 * util/mkisofs/mkisofs.h: Likewise.
20161 * util/mkisofs/multi.c: Likewise.
20162 * util/mkisofs/name.c: Likewise.
20163 * util/mkisofs/rock.c: Likewise.
20164 * util/mkisofs/tree.c: Likewise.
20165 * util/mkisofs/write.c: Likewise.
20166 * video/efi_gop.c: Likewise.
20167
20168 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
20169
20170 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
20171 size counting.
20172
20173 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20174
20175 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
20176 * genmk.rb (class SCRIPT): Modify the target file instead of source.
20177
20178 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
20181 (GRUB_MOD_INIT(memrw)): Update help line.
20182
20183 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20184
20185 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
20186 Use grub_extcmd_t. All users updated.
20187 (options): New variable.
20188 (grub_cmd_read): Restructure for readability. Support "-v" option.
20189 (grub_cmd_write): Restructure for readability.
20190
20191 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20192
20193 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
20194
20195 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20196
20197 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
20198 with the actual contents of the correspondending make variable.
20199 * util/grub-mkrescue.in (pkglib_DATA): New variable.
20200 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
20201 specifying `*.lst' and `efiemu??.o'
20202
20203 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20204
20205 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
20206 after function name.
20207 Noticed by Rene Engelhard <rene@debian.org>.
20208
20209 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20210
20211 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
20212 (options): New variable.
20213 (iospace): Likewise.
20214 (grub_lspci_iter): List IO spaces if "-i" was given.
20215 (grub_cmd_lspci): Parse options.
20216 (GRUB_MOD_INIT(lspci)): Use extcmd.
20217 (GRUB_MOD_FINI(lspci)): Likewise.
20218
20219 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20220
20221 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
20222 `function' keyword.
20223 Patch by Tony Mancill <tmancill@debian.org>.
20224
20225 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20226
20227 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
20228 (grub_uhci_portstatus): Likewise.
20229 (grub_uhci_portstatus): Add necessary delay.
20230 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
20231
20232 2009-12-21 Carles Pina i Estany <carles@pina.cat>
20233
20234 * commands/acpi.c (options): Fix capitalizations and/or full stops.
20235 (GRUB_MOD_INIT): Likewise.
20236 * commands/boot.c (GRUB_MOD_INIT): Likewise.
20237 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
20238 * commands/echo.c (options): Fix capitalizations and/or full stops.
20239 * commands/efi/loadbios.c (enable_rom_area): Likewise.
20240 (enable_rom_area): Likewise.
20241 (GRUB_MOD_INIT): Likewise.
20242 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20243 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
20244 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20245 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
20246 * commands/hexdump.c (options): Likewise.
20247 * commands/i386/cpuid.c (options): Likewise.
20248 (GRUB_MOD_INIT): Likewise.
20249 * commands/i386/pc/drivemap.c (options): Likewise.
20250 (GRUB_MOD_INIT): Likewise.
20251 * commands/i386/pc/halt (options): Likewise.
20252 (GRUB_MOD_INIT): Likewise.
20253 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20254 * commands/i386/pc/pxecmd.c (options): Likewise.
20255 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
20256 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
20257 * commands/keystatus.c (options): Likewise.
20258 (GRUB_MOD_INIT): Likewise.
20259 * commands/loadenv.c (options): Likewise.
20260 * commands/ls.c (options): Likewise.
20261 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20262 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20263 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20264 * commands/parttool.c (helpmsg): Likewise.
20265 * commands/probe.c (options): Likewise.
20266 * commands/read.c (GRUB_MOD_INIT): Likewise.
20267 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
20268 * commands/search.c (options): Likewise.
20269 * commands/sleep.c (options): Likewise.
20270 * commands/test.c (GRUB_MOD_INIT): Likewise.
20271 * commands/true.c (GRUB_MOD_INIT): Likewise.
20272 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
20273 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
20274 * lib/arg.c (help_options): Likewise.
20275 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
20276 `$(XGETTEXT)'.
20277 * po/POTFILES: Add `commands/loadenv.c'.
20278
20279 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
20280
20281 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
20282 instead of specifying them explicit.
20283
20284 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20285
20286 * NEWS: Add grub-probe support for GNU/Hurd.
20287
20288 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20289
20290 * NEWS: gettext was added after 1.97.
20291
20292 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20293
20294 * util/mkisofs/msdos_partition.h: New file (based on
20295 include/grub/msdos_partition.h).
20296 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
20297 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
20298 (ld_options, main): Recognize --protective-msdos-label.
20299 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
20300 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
20301 (padblock_write): If `use_protective_msdos_label' is set, patch a
20302 protective DOS-style label in the output image.
20303
20304 * util/grub-mkrescue.in: Use --protective-msdos-label.
20305
20306 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20307
20308 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
20309 boot.
20310
20311 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20312
20313 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
20314 variables.
20315 (ld_options, main): Recognize `--embedded-boot'.
20316 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
20317 declarations.
20318 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
20319 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
20320 (padblock_write): Likewise. Rewrite to support embedded boot image.
20321
20322 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
20323 for BIOS-based disk boot instead of only ElTorito.
20324
20325 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20326
20327 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
20328 build (not needed for bootstrap).
20329
20330 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20331
20332 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
20333 from i386-pc build (not needed for bootstrap).
20334 Rewrite a pair of strings.
20335
20336 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20337
20338 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
20339
20340 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
20341
20342 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
20343
20344 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20345
20346 * kern/env.c (grub_env_context_open): Mark exported variable for
20347 reexport.
20348
20349 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20350
20351 * kern/env.c (grub_env_export): Create nonexistent variables before
20352 exporting.
20353
20354 2009-12-20 Carles Pina i Estany <carles@pina.cat>
20355
20356 * include/grub/auth.h: Include `<grub/i18n.h>'.
20357 (GRUB_GET_PASSWORD): Gettextizze string.
20358 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
20359 menu_text.c.
20360 (grub_utf8_to_ucs4_alloc): Fix indentation.
20361 (grub_print_ucs4): Likewise.
20362 (grub_getstringwidth): Likewise.
20363 (print_message_indented): New declaration.
20364 * normal/auth.c: Include `<grub/i18n.h>'.
20365 (grub_auth_check_authentication): Gettexttize string.
20366 * normal/cmdline.c: Include `<grub/i18n.h>'.
20367 (grub_cmdline_get): Gettextizze.
20368 * normal/color.c: Include `<grub/i18n.h>'.
20369 (grub_parse_color_name_pair): Gettexttize strings.
20370 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
20371 string (use `print_message_indented').
20372 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
20373 `include/grub/normal.h'.
20374 (print_message_indented): Renamed to ...
20375 (grub_print_message_indented): ... this. Remove `static' qualifer (now
20376 used in normal/main.c).
20377 (print_message): Use `grub_print_message_indented' instead of
20378 `print_message_indented'.
20379 (print_timeout): Likewise.
20380 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
20381 (grub_normal_print_device_info): Gettexttize strings.
20382 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
20383
20384 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20385
20386 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
20387 of arguments. Return number of tokens and not arguments. All users
20388 updated.
20389
20390 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20391
20392 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
20393 non-MSDOS paritions.
20394
20395 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20396
20397 * include/grub/types.h (UNUSED): Removed since it conflicts with
20398 NetBSD headers. All users changed to direct __attribute__ ((unused)).
20399 Reported by Grégoire Sutre.
20400
20401 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20402
20403 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
20404 (grub_print_ucs4_alloc): Likewise.
20405 (grub_getstringwidth): Likewise.
20406 * normal/main.c (grub_normal_init_page): Gettextize version string.
20407 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
20408 (getstringwidth): Renamed to ...
20409 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
20410 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
20411 (grub_print_ucs4): Remove `static' qualifer (now used in
20412 normal/main.c).
20413 * po/POTFILES: Add normal/main.c.
20414
20415 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20416
20417 * normal/menu_text.c (STANDARD_MARGIN): New macro.
20418 (print_message_indented): Add `margin_left' and `margin_right'
20419 parameters.
20420 (print_message): Update `print_message_indented' calls. Adds '\n' to the
20421 strings.
20422 (print_timeout): Use `print_message_indented' to print the message.
20423 Deletes `second_stage' parameter.
20424 (run_menu): Update `print_timeout' calls.
20425
20426 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20427
20428 Fix console palette on OpenFirmware.
20429
20430 * term/ieee1275/ofconsole.c (MAX): Removed.
20431 (colors): Redone based on VGA palette.
20432 (grub_ofconsole_setcolor): Discard brightness bit since only 8
20433 colors are supported.
20434 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
20435
20436 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20437
20438 Fix potential EfiEmu double prepare.
20439
20440 * efiemu/main.c (prepared): New variable
20441 (grub_efiemu_unload): Set prepare to '0'.
20442 (grub_efiemu_prepare): Return if already prepared. Set prepared.
20443
20444 set_virtual_address_map support.
20445
20446 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
20447 prototype.
20448 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
20449 prototype.
20450 (grub_efiemu_crc32): Likewise.
20451 (grub_efiemu_crc64): Likewise.
20452 (grub_efiemu_set_virtual_address_map): Likewise.
20453 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
20454 New definition.
20455 (grub_autoefi_set_virtual_address_map): Likewise.
20456 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
20457 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
20458 Restructure flow to accomodate it.
20459 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
20460 (grub_efiemu_crc): Recompute CRC32.
20461 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
20462 (efiemu_ptv_relocated): ... this. Made global. All users updated.
20463 * efiemu/symbols.c (relocated_handle): New variable.
20464 (grub_efiemu_free_syms): Free relocated_handle.
20465 (grub_efiemu_alloc_syms): Allocate relocated_handle.
20466 (grub_efiemu_write_sym_markers): New function.
20467 (grub_efiemu_set_virtual_address_map): Likewise.
20468
20469 Newer XNU parameters.
20470
20471 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
20472 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
20473 (grub_xnu_fill_devicetree): New prototype.
20474 (grub_xnu_heap_real_start): New variable.
20475 * loader/xnu.c (get_name_ptr): New function.
20476 (grub_xnu_load_driver): Fill namelen and name.
20477
20478 64-bit xnu support.
20479
20480 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
20481 and 'loader/macho64.c'.
20482 * conf/i386-pc.rmk: Likewise.
20483 * conf/x86_64-efi.rmk: Likewise.
20484 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
20485 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
20486 * include/grub/macho.h (grub_macho_segment64): New structure.
20487 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
20488 (grub_macho_size32): ... to this.
20489 (grub_macho32_get_entry_point): Renamed from ...
20490 (grub_macho_get_entry_point32): ... to this.
20491 (grub_macho_contains_macho64): New prototype.
20492 (grub_macho_size64): Likewise.
20493 (grub_macho_get_entry_point64): Likewise.
20494 (grub_macho32_load): Renamed from ...
20495 (grub_macho_load32): ... to this.
20496 (grub_macho32_filesize): Renamed from ...
20497 (grub_macho_filesize32): ... to this.
20498 (grub_macho32_readfile): Renamed from ...
20499 (grub_macho_readfile32): ... to this.
20500 (grub_macho_filesize64): New prototype.
20501 (grub_macho_readfile64): Likewise.
20502 (grub_macho_parse32): Likewise.
20503 (grub_macho_parse64): Likewise.
20504 * loader/macho.c: Split into ...
20505 * loader/machoXX.c: ... and this. Replace 32 with XX.
20506 * loader/macho32.c: New file.
20507 * loader/macho64.c: Likewise.
20508 * loader/xnu.c (grub_xnu_is_64bit): New variable.
20509 (grub_cmd_xnu_kernel): Make 32-bit only.
20510 (grub_cmd_xnu_kernel64): New function.
20511 (grub_xnu_load_driver): Support Mach-O 64.
20512 (grub_cmd_xnu_mkext): Likewise.
20513 * util/grub.d/30_os-prober.in (osx_entry): New function.
20514 Generate entries for 64-bit boot too.
20515
20516 Eliminate ad-hoc tree format in XNU and EfiEmu.
20517
20518 * efiemu/main.c (grub_efiemu_prepare): Update comment.
20519 * efiemu/pnvram.c: Rewritten to use environment variables.
20520 All users updated.
20521
20522 Inline utf16_to_utf8.
20523
20524 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
20525 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
20526 All users updated.
20527 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
20528
20529 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
20530 * commands/usbtest.c (grub_usb_get_string): ... move here.
20531 (usb_print_str): Fix error handling.
20532 * include/grub/usb.h (grub_usb_get_string): Remove.
20533
20534 UTF-8 to UTF-16 transformation.
20535
20536 * conf/common.rmk (pkglib_MODULES): Add charset.mod
20537 (charset_mod_SOURCES): New variable.
20538 (charset_mod_CFLAGS): Likewise.
20539 (charset_mod_LDFLAGS): Likewise.
20540 * include/grub/utf.h: New file.
20541 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
20542
20543 Support for device properties.
20544
20545 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
20546 (grub_xnu_devprop_device_header): Likewise.
20547 (grub_xnu_devprop_device_descriptor): Likewise.
20548 (grub_xnu_devprop_add_device): New prototype.
20549 (grub_xnu_devprop_remove_device): Likewise.
20550 (grub_xnu_devprop_remove_property): Likewise.
20551 (grub_xnu_devprop_add_property_utf8): Likewise.
20552 (grub_xnu_devprop_add_property_utf16): Likewise.
20553 (grub_cpu_xnu_init): Likewise.
20554 (grub_cpu_xnu_fini): Likewise.
20555 (grub_cpu_xnu_unload): Likewise.
20556 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
20557 (property_descriptor): Likewise.
20558 (devices): New variable.
20559 (grub_xnu_devprop_remove_property): New function.
20560 (grub_xnu_devprop_add_device): Likewise.
20561 (grub_xnu_devprop_remove_device): Likewise.
20562 (grub_xnu_devprop_add_property): Likewise.
20563 (grub_xnu_devprop_add_property_utf8): Likewise.
20564 (grub_xnu_devprop_add_property_utf16): Likewise.
20565 (hextoval): Likewise.
20566 (grub_cpu_xnu_fill_devprop): Likewise.
20567 (grub_cmd_devprop_load): Likewise.
20568 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
20569 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
20570 (cmd_devprop_load): New variable.
20571 (grub_cpu_xnu_init): New function.
20572 (grub_cpu_xnu_fini): Likewise.
20573 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
20574 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
20575 (grub_cmd_xnu_devtree): Likewise.
20576 (hextoval): New function.
20577 (unescape): Likewise.
20578 (grub_xnu_fill_devicetree): Likewise.
20579
20580 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
20581 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
20582
20583 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20584
20585 Workaround for broken ATI VBE.
20586
20587 * video/i386/pc/vbe.c (last_set_mode): New variable.
20588 (grub_vbe_set_video_mode): Set 'last_set_mode'.
20589 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
20590 (grub_video_vbe_setup): Don't check for reserved flag.
20591
20592 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
20593
20594 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
20595 the `find' command.
20596
20597 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
20598
20599 UUID support for HFS.
20600
20601 * fs/hfs.c (grub_hfs_uuid): New function.
20602 (grub_hfs_fs): New value .uuid.
20603 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
20604
20605 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
20606
20607 Fix a segfault with parsing unknown long options.
20608
20609 * util/grub-mkrelpath.c (options): Zero terminate it.
20610
20611 2009-12-13 Carles Pina i Estany <carles@pina.cat>
20612
20613 * include/grub/misc.h (grub_puts): New declaration.
20614 (grub_puts_): Likewise.
20615 * kern/misc.c (grub_puts): New definition.
20616 (grub_puts_): Likewise.
20617
20618 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
20619
20620 * util/grub-probe.c (probe): Improve error message.
20621
20622 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
20623
20624 * loader/i386/multiboot_elfxx.c
20625 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
20626 initialization.
20627
20628 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
20629
20630 Relocator framework
20631
20632 * loader/i386/xnu_helper.S: Removed. All users updated.
20633 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
20634 (relocator_mod_SOURCES): New variable.
20635 (relocator_mod_CFLAGS): Likewise.
20636 (relocator_mod_LDFLAGS): Likewise.
20637 (relocator_mod_ASFLAGS): Likewise.
20638 * conf/x86_64.rmk: Likewise.
20639 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
20640 (grub_multiboot_payload_entry_offset): Likewise.
20641 (grub_multiboot_forward_relocator): Likewise.
20642 (grub_multiboot_forward_relocator_end): Likewise.
20643 (grub_multiboot_backward_relocator): Likewise.
20644 (grub_multiboot_backward_relocator_end): Likewise.
20645 (grub_multiboot_payload_eip): New variable.
20646 (grub_multiboot_payload_orig): Likewise.
20647 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
20648 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
20649 * include/grub/i386/memory.h
20650 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
20651 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
20652 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
20653 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
20654 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
20655 * include/grub/i386/relocator.h: New file.
20656 * include/grub/x86_64/relocator.h: Likewise.
20657 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
20658 (XNU_RELOCATOR): New macro.
20659 (grub_xnu_launcher_start): Remove.
20660 (grub_xnu_launcher_end): Likewise.
20661 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
20662 (grub_xnu_heap_real_start): Remove.
20663 (grub_xnu_heap_start): Change to void *. All users updated.
20664 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
20665 * lib/i386/relocator.c: New file.
20666 * lib/i386/relocator_asm.S: Likewise.
20667 * lib/i386/relocator_backward.S: Likewise.
20668 * lib/mips/relocator.c: Likewise.
20669 * lib/mips/relocator_asm.S: Likewise.
20670 * lib/relocator.c: Likewise.
20671 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
20672 (entry): Removed.
20673 (playground): Likewise.
20674 (grub_multiboot_payload_orig): New variable.
20675 (grub_multiboot_payload_dest): Likewise.
20676 (grub_multiboot_payload_size): Likewise.
20677 (grub_multiboot_payload_eip): Likewise.
20678 (grub_multiboot_payload_esp): Likewise.
20679 (grub_multiboot_boot): Use grub_relocator32_boot.
20680 (grub_multiboot_unload): Free relocators.
20681 (grub_multiboot): Setup stack. Use relocators.
20682 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
20683 (grub_multiboot_load_elfXX): Use relocators.
20684 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
20685 (grub_multiboot_payload_size): Likewise.
20686 (grub_multiboot_payload_dest): Likewise.
20687 (grub_multiboot_payload_entry_offset): Likewise.
20688 (grub_multiboot_forward_relocator): Likewise.
20689 (grub_multiboot_backward_relocator): Likewise.
20690 (grub_multiboot_real_boot): Likewise.
20691 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
20692 (grub_xnu_entry_point): Likewise.
20693 (grub_xnu_arg1): Likewise.
20694 (grub_xnu_stack): Likewise.
20695 (grub_xnu_launch): Removed.
20696 (grub_xnu_boot_resume): New function.
20697 (grub_xnu_boot): Use relocators.
20698 * loader/i386/xnu_helper.S: Removed.
20699 * loader/xnu.c (grub_xnu_heap_start): New variable.
20700 (grub_xnu_heap_size): Likewise.
20701 (grub_xnu_heap_malloc): Use relocators.
20702 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
20703
20704 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
20705
20706 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
20707 anything.
20708
20709 2009-12-13 Carles Pina i Estany <carles@pina.cat>
20710
20711 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
20712 GRUB_ERR_NONE before calling grub_env_set.
20713
20714 2009-12-12 Robert Millan <rmh@aybabtu.com>
20715
20716 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
20717 * genmk.rb (video): New variable.
20718 (CLEANFILES, VIDEOFILES): Add #{video}.
20719 (#{video}): New target rule.
20720 * genvideolist.sh: New file.
20721 * Makefile.in (pkglib_DATA): Add video.lst.
20722 (video.lst): New target rule.
20723 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
20724 `video.lst'.
20725 * util/grub.d/30_os-prober.in: Replace `vbe' with
20726 ${GRUB_VIDEO_BACKEND}.
20727
20728 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
20729
20730 * THANKS: Add David Miller.
20731
20732 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
20733
20734 libpciaccess support.
20735
20736 * Makefile.in (LIBPCIACCESS): New variable.
20737 (enable_grub_emu_pci): Likewise.
20738 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
20739 util/pci.c and commands/lspci.c.
20740 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
20741 * configure.ac (grub-emu-pci): New option.
20742 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
20743 (grub_pci_device_unmap_range): Likewise.
20744 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
20745 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
20746 (grub_pci_address_t) [!GRUB_UTIL]: New type.
20747 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
20748 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
20749 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
20750 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
20751 * include/grub/pciutils.h: New file.
20752 * util/pci.c: Likewise.
20753
20754 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
20755
20756 * util/misc.c: Don't include <errno.h> twice.
20757
20758 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
20759
20760 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
20761 name in an error message.
20762 (grub_biosdisk_rw): Likewise.
20763
20764 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
20765
20766 Eliminate NTFS 4Gib barrier.
20767
20768 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
20769 (read_run_data): Likewise.
20770 (grub_ntfs_read_run_list): Likewise.
20771 (grub_ntfs_read_block): Likewise.
20772 (grub_ntfs_iterate_dir): Likewise.
20773 (read_mft): Likewise.
20774 (read_data): Likewise.
20775 Use COM_LOG_LEN.
20776 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
20777 to avoid 64-bit division
20778 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
20779 (grub_ntfs_rlst): Use grub_disk_addr_t.
20780
20781 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
20782
20783 Eliminate grub-fstest 4Gib barrier.
20784
20785 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
20786 (read_file): Fix error reporting.
20787
20788 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
20789
20790 Eliminate hexdump 4Gib barrier.
20791
20792 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
20793 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
20794
20795 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
20796
20797 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
20798 Fixes amarsh bug.
20799
20800 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
20801
20802 Remove miscellaneous files in distclean target.
20803
20804 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
20805
20806 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
20807
20808 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
20809 if they're already set. This resolves the conflict between my
20810 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
20811 fixing the --grub-probe option again.
20812 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
20813 change on 2009-10-06, so that we now once again source
20814 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
20815
20816 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
20817
20818 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
20819 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
20820 `util/devicemap.c'.
20821
20822 2009-12-08 Carles Pina i Estany <carles@pina.cat>
20823
20824 * include/grub/misc.h (grub_printf_): New declaration.
20825 * kern/misc.c (grub_printf_): New definition.
20826 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
20827 instead of `grub_printf' and `_'.
20828 * normal/menu_entry.c (store_completion): Likewise.
20829 (run): Likewise.
20830 (grub_menu_entry_run): Likewise.
20831 * normal/menu_text.c (grub_wait_after_message): Likewise.
20832 (notify_booting): Likewise.
20833 (notify_fallback): Likewise.
20834 (notify_execution_failure): Likewise.
20835
20836 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
20837
20838 * configure.ac: Check for vasprintf.
20839 * util/misc.c (asprintf): Move allocation from here ...
20840 (vasprintf): ... to here. New function.
20841 (xasprintf): New function.
20842 * include/grub/util/misc.h (vasprintf, xasprintf): Add
20843 prototypes.
20844 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
20845 * util/grub-mkfont.c (write_font): Likewise.
20846 * util/grub-probe.c (probe): Likewise.
20847 * util/hostdisk.c (make_device_name): Likewise.
20848
20849 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
20850
20851 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
20852 anything even prefixed with 'cdrom' as a cdrom.
20853
20854 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
20855
20856 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
20857 mount points.
20858
20859 2009-12-05 Carles Pina i Estany <carles@pina.cat>
20860
20861 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
20862 grub_gettext_msg_list.
20863 (grub_gettext_gettranslation_from_position): Return const char *
20864 and not char *.
20865 (grub_gettext_translate): Add the translated strings into a list,
20866 returns from the list if existing there.
20867 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
20868 (grub_gettext_delete_list): Delete the list.
20869 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
20870 lang environment variable is changed.
20871 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
20872
20873 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
20874
20875 Rename kernel.mod to kernel.img.
20876
20877 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
20878 (kernel_mod_EXPORTS): Rename to ...
20879 (kernel_img_EXPORTS): ... this.
20880 (kernel_mod_SOURCES): Rename to ...
20881 (kernel_img_SOURCES): ... this.
20882 (kernel_mod_HEADERS): Rename to ...
20883 (kernel_img_HEADERS): ... this. All users updated.
20884 (kernel_mod_CFLAGS): Rename to ...
20885 (kernel_img_CFLAGS): ... this.
20886 (kernel_mod_ASFLAGS): Rename to ...
20887 (kernel_img_ASFLAGS): ... this.
20888 (kernel_mod_LDFLAGS): Rename to ...
20889 (kernel_img_LDFLAGS): ... this.
20890 * conf/x86_64-efi.rmk: Likewise.
20891 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
20892 (read_kernel_image): ... this. All users updated.
20893 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
20894
20895 2009-12-05 Carles Pina i Estany <carles@pina.cat>
20896
20897 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
20898 (print_spaces): New function.
20899 (grub_print_ucs4): New function.
20900 (getstringwidth): New function.
20901 (print_message_indented): New function.
20902 (print_message): Gettexttize strings using print_message_indented.
20903 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
20904 width.
20905 (get_entry_number): Gettextize and uses dynamic terminal width.
20906 (notify_booting, notify_fallback, notify_execution_failure):
20907 Gettextize.
20908 * normal/menu_entry.c (store_completion): Cleanup the gettextized
20909 string.
20910 (run): Likewise.
20911 (grub_menu_entry_run): Likewise.
20912 * PO/POTFILES: Add normal/menu_entry.c.
20913
20914 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
20915
20916 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
20917
20918 2009-12-05 Carles Pina i Estany <carles@pina.cat>
20919
20920 * util/grub-install.in: Install gettext .mo files.
20921 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
20922
20923 2009-12-05 Carles Pina i Estany <carles@pina.cat>
20924
20925 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
20926 grub_dprintf.
20927
20928 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
20929
20930 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
20931 non-firmware-dependant one in realmode.S takes precedence.
20932
20933 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
20934
20935 * commands/halt.c: Replace misc arch-specific headers with
20936 `<grub/misc.h>'.
20937 * commands/reboot.c: Likewise.
20938 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
20939 `<grub/misc.h>'.
20940 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
20941 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
20942 (kernel_img_SOURCES): ... to here.
20943
20944 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
20945 * include/grub/i386/pc/init.h: Likewise.
20946 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20947 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20948
20949 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
20950
20951 * include/grub/i386/halt.h: Remove.
20952 * include/grub/i386/reboot.h: Likewise.
20953
20954 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
20955
20956 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
20957
20958 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
20959 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
20960 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
20961 "progname.h"
20962 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
20963 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20964 (usage): Add missing comma in printf.
20965
20966 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
20967
20968 Use the same reboot approach on i386 coreboot and qemu as we do on
20969 BIOS.
20970
20971 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
20972 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
20973 * kern/i386/reboot.c: Remove.
20974 * include/grub/i386/reboot.h (grub_reboot): Export function.
20975 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
20976 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
20977 0xf000:0xfff0 instead of 0xffff:0x0000.
20978 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
20979 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
20980
20981 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
20982
20983 Fix $srcdir != $objdir build.
20984
20985 * Makefile.in (po/%.po): Rewrite as ...
20986 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
20987
20988 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
20989
20990 Fix GNU/Hurd grub-install crash.
20991 * util/grub-probe.c (probe): Try to access `path' only when it is not
20992 NULL.
20993
20994 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
20995
20996 Correct module naming.
20997
20998 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
20999 (GRUB_MOD_INIT(efi_uga)): ... to this
21000 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21001 (GRUB_MOD_FINI(efi_uga)): ... to this
21002 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21003 (GRUB_MOD_INIT(efi_gop)): ... to this
21004 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21005 (GRUB_MOD_FINI(efi_gop)): ... to this
21006
21007 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
21008
21009 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
21010 translatable.
21011 (usage): Translate `arg' strings using gettext().
21012 Thanks to Jordi Mallach for the suggestion.
21013
21014 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21015
21016 GOP support. Based on patch from Bean
21017 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21018
21019 * video/efi_gop.c: New file.
21020 * include/grub/efi/graphics_output.h: Likewise.
21021 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
21022 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21023 variables.
21024 * conf/x86_64-efi.rmk: Likewise.
21025
21026 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21027
21028 Rename efi_fb to efi_uga.
21029
21030 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21031 'efi_uga.mod'.
21032 (efi_fb_mod_SOURCES): Rename this ...
21033 (efi_uga_mod_SOURCES): ... to this.
21034 (efi_fb_mod_CFLAGS): Rename this ...
21035 (efi_uga_mod_CFLAGS): ... to this.
21036 (efi_fb_mod_LDFLAGS): Rename this ...
21037 (efi_uga_mod_LDFLAGS): ... to this.
21038 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21039 'efi_uga.mod'.
21040 (efi_fb_mod_SOURCES): Rename this ...
21041 (efi_uga_mod_SOURCES): ... to this.
21042 (efi_fb_mod_CFLAGS): Rename this ...
21043 (efi_uga_mod_CFLAGS): ... to this.
21044 (efi_fb_mod_LDFLAGS): Rename this ...
21045 (efi_uga_mod_LDFLAGS): ... to this.
21046 * video/efi_fb.c: Move this ...
21047 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
21048
21049 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21050
21051 * po/README: New file. Explain our PO file workflow.
21052
21053 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21054
21055 * po/ChangeLog: Remove. Move relevant entries back to ...
21056 * ChangeLog: ... here.
21057 * po/ca.po: Remove (now handled by TLP).
21058 * po/id.po: Likewise.
21059 * po/zh_CN.po: Likewise.
21060 * Makefile.in (LINGUAS): Initialize in a way that supports
21061 empty set.
21062
21063 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21064
21065 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
21066 reliing on po/LINGUAS.
21067 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
21068 (po/%.po): ... this.
21069
21070 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21071
21072 * util/i386/efi/grub-mkimage.c: Include "progname.h".
21073 (main): Use `program_name' instead of nonexistent `progname'.
21074
21075 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21076
21077 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21078 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
21079
21080 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21081
21082 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
21083 commit.
21084 * conf/i386-efi.rmk: Likewise.
21085 * conf/i386-ieee1275.rmk: Likewise.
21086 * conf/powerpc-ieee1275.rmk: Likewise.
21087 * conf/sparc64-ieee1275.rmk: Likewise.
21088 * conf/x86_64-efi.rmk: Likewise.
21089
21090 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21091
21092 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
21093
21094 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21095
21096 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
21097
21098 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21099
21100 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
21101 (grub_mkdevicemap_SOURCES): New variable.
21102 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
21103 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
21104 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
21105 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
21106 (grub_mkdevicemap_SOURCES): Remove.
21107 * conf/i386-efi.rmk: Likewise.
21108 * conf/i386-ieee1275.rmk: Likewise.
21109 * conf/i386-pc.rmk: Likewise.
21110 * conf/powerpc-ieee1275.rmk: Likewise.
21111 * conf/sparc64-ieee1275.rmk: Likewise.
21112 * conf/x86_64-efi.rmk: Likewise.
21113 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
21114 (usage): Fix strings to use `program_name'.
21115 (main): Initialize gettext.
21116 * util/grub-editenv.c: Likewise.
21117 * util/grub-emu.c: Likewise.
21118 * util/grub-fstest.c: Likewise.
21119 * util/grub-mkdevicemap.c: Likewise.
21120 * util/grub-mkfont.c: Likewise.
21121 * util/grub-mkrelpath.c: Likewise.
21122 * util/grub-pe2elf.c: Likewise.
21123 * util/grub-probe.c: Likewise.
21124 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
21125 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21126 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21127
21128 * util/misc.c: Include `"progname.h"'.
21129 (progname): Remove variable.
21130 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
21131
21132 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21133
21134 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
21135 printf and print a newline after the menuentry header line.
21136 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21137
21138 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21139
21140 autoconf >= 2.60 support $(localedir).
21141
21142 * INSTALL: Note that autoconf 2.60 is required.
21143 * configure.ac (AC_PREREQ): Bump to 2.60.
21144 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
21145 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21146
21147 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
21148
21149 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
21150 aclocal is run.
21151
21152 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21153
21154 * normal/main.c (grub_normal_read_line): Fix off-by-one
21155 buffer overflow.
21156
21157 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21158
21159 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
21160 "parser.grub" in grub_command_execute() call.
21161
21162 2009-11-24 Carles Pina i Estany <carles@pina.cat>
21163
21164 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
21165 * conf/i386-efi.rmk: Likewise.
21166 * conf/i386-ieee1275.rmk: Likewise.
21167 * conf/i386-pc.rmk: Likewise.
21168 * conf/powerpc-ieee1275.rmk: Likewise.
21169 * conf/sparc64-ieee1275.rmk: Likewise.
21170 * conf/x86_64-efi.rmk: Likewise.
21171 * gettext/gettex.c: Include <grub/i18n.h>.
21172 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
21173 here ...
21174 * include/grub/i18n.h: ... to here
21175 * include/grub/i18n.h: ... to here.
21176 * kern/misc.c: Include <grub/i18n.h>
21177 (grub_gettext_dummy): Move above user.
21178
21179 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21180
21181 * util/Makefile.in (install-local): Convert a `for' into a normal
21182 shell expansion.
21183
21184 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
21185
21186 * autogen.sh: Add automake call.
21187 * config.guess: Remove.
21188 * config.sub: Likewise.
21189 * install-sh: Likewise.
21190
21191 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21192
21193 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
21194
21195 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21196
21197 * util/Makefile.in (install-local): Convert a make `$(foreach)'
21198 function to a normal shell `for'.
21199
21200 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21201
21202 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21203
21204 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21205
21206 * util/grub-mkrelpath.c: New file.
21207 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
21208 (grub_mkrelpath_SOURCES): New variable.
21209 * include/grub/util/misc.h: New function prototype.
21210 * util/misc.c (make_system_path_relative_to_its_root): New function.
21211
21212 * util/grub-mkconfig_lib.in (bindir): New variable.
21213 (grub_mkrelpath): Likewise.
21214 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
21215
21216 * util/probe.c (probe): Make the file path relative to its root.
21217 Change a info message to use the GRUB path. Enable again the
21218 check if we can read the file with GRUB facilities.
21219
21220 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
21221 to its root.
21222
21223 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21224
21225 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
21226 platform.
21227
21228 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21229
21230 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
21231 strncmp().
21232
21233 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21234
21235 * util/getroot.c (grub_util_is_dmraid): New function.
21236 (grub_util_get_dev_abstraction): Treat dmraid and multipath
21237 devices as normal ones, not as LVM.
21238
21239 2009-11-23 Carles Pina i Estany <carles@pina.cat>
21240
21241 * conf/common.rmk: Add grub-gettext_lib target and updates
21242 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
21243 LDFLAGS.
21244 * gettext/gettext.c: New file. (Reads mo files).
21245 * include/grub/file.h (grub_file_pread): New prototype.
21246 * include/grub/i18n.h (_): New prototype.
21247 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
21248 prototypes.
21249 * kern/misc.c (grub_gettext_dummy): New function.
21250 * normal/menu_text.c: Include <grub/i18n.h>.
21251 * normal/menu_text.c (print_timeout): Gettexttize string.
21252 * normal/menu_text.c (print_message): Gettexttize string.
21253 * po/POTFILES: Add `normal/menu_text.c'.
21254 * po/ca.po: Add new translations.
21255 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
21256 gettext module and defines locale_dir and lang in grub.cfg.
21257 * NEWS: Add gettext support.
21258
21259 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21260
21261 * util/hostdisk.c: Include `<grub/i18n.h>'.
21262 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
21263 (make_device_name): Rewrite using asprintf.
21264 (convert_system_partition_to_system_disk): Replace 0 with NULL.
21265 (find_system_device): If a device is not found, generate one just
21266 by reusing the OS path name.
21267 (read_device_map): Make it permissible for device.map not to exist.
21268
21269 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21270
21271 * script/sh/execute.c: Move from here ...
21272 * script/execute.c: ... to here. Update all users.
21273 * script/sh/function.c: Move from here ...
21274 * script/function.c: ... to here. Update all users.
21275 * script/sh/lexer.c: Move from here ...
21276 * script/lexer.c: ... to here. Update all users.
21277 * script/sh/main.c: Move from here ...
21278 * script/main.c: ... to here. Update all users.
21279 * script/sh/parser.y: Move from here ...
21280 * script/parser.y: ... to here. Update all users.
21281 * script/sh/script.c: Move from here ...
21282 * script/script.c: ... to here. Update all users.
21283
21284 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21285
21286 * configure.ac: Detect all `emu' platforms. Define
21287 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
21288 --enable-grub-emu logic. Disable include/grub/machine
21289 symlink on `emu' platforms.
21290
21291 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
21292 * gensymlist.sh.in: Likewise.
21293
21294 * include/grub/i386/coreboot/machine.h: Remove file.
21295 * include/grub/i386/efi/machine.h: Likewise.
21296 * include/grub/i386/ieee1275/machine.h: Likewise.
21297 * include/grub/i386/pc/machine.h: Likewise.
21298 * include/grub/i386/qemu/machine.h: Likewise.
21299 * include/grub/powerpc/ieee1275/machine.h: Likewise.
21300 * include/grub/sparc64/ieee1275/machine.h: Likewise.
21301 * include/grub/x86_64/efi/machine.h: Likewise.
21302
21303 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
21304 * commands/halt.c: Likewise.
21305 * commands/reboot.c: Likewise.
21306 * include/grub/autoefi.h: Likewise.
21307 * include/grub/i386/at_keyboard.h: Likewise.
21308 * include/grub/i386/kernel.h: Likewise.
21309 * include/grub/i386/loader.h: Likewise.
21310 * include/grub/i386/pc/memory.h: Likewise.
21311 * kern/dl.c: Likewise.
21312 * kern/i386/coreboot/init.c: Likewise.
21313 * loader/i386/bsd.c: Likewise.
21314 * loader/i386/linux.c: Likewise.
21315 * loader/multiboot_loader.c: Likewise.
21316 * term/i386/pc/serial.c: Likewise.
21317 * term/usb_keyboard.c: Likewise.
21318
21319 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
21320 `<grub/machine/machine.h>'
21321 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
21322 * util/misc.c: Remove `<grub/machine/machine.h>' and
21323 `<grub/machine/time.h>'.
21324
21325 * Makefile.in (enable_grub_emu): Remove variable.
21326 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
21327
21328 * conf/any-emu.rmk: New file.
21329 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
21330 (grub_emu_init.c): Move from here ...
21331 * conf/any-emu.rmk: ... to here.
21332
21333 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
21334 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
21335 * conf/any-emu.rmk: ... to here.
21336
21337 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21338
21339 * include/grub/parser.h (grub_parser_register): Document need
21340 of `name' parameter.
21341 * normal/main.c (grub_normal_read_line): Simplify prompt string.
21342 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
21343 "sh" to "grub".
21344
21345 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21346
21347 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
21348 `$(XGETTEXT)'.
21349 * include/grub/i18n.h (N_): New macro.
21350 * util/mkisofs/mkisofs.h: Likewise.
21351 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
21352 around N_().
21353 (usage): Use gettext() to translate help strings when printing them.
21354
21355 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21356
21357 Based on patch from Bean
21358 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21359
21360 * video/efi_fb.c: New file.
21361 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
21362 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21363 variables.
21364 * conf/x86_64-efi.rmk: Likewise.
21365
21366 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
21367
21368 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
21369 * util/i386/pc/grub-setup.c: Likewise.
21370
21371 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21372
21373 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
21374 <hurd/fs.h>
21375 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
21376 file_get_storage_info to implement grub_guess_root_device.
21377
21378 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21379
21380 * Makefile.in (target): Use make's builtin $(shell) function
21381 instead of calling directly $(SHELL) to create the locale directories,
21382 inside the $(foreach) function.
21383
21384 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21385
21386 * util/grub-mkrescue.in: Print an error and usage if output option
21387 has not been given.
21388
21389 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21390
21391 Patch from Loïc Minier <loic.minier@ubuntu.com>.
21392 * util/grub.d/30_os-prober.in: Cope with Linux entries where
21393 root and /boot are on different devices.
21394
21395 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21396
21397 Fix build for srcdir != objdir.
21398
21399 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
21400 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
21401 $(srcdir).
21402 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
21403 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
21404 reference for input.
21405
21406 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21407
21408 * util/grub-mkrescue.in: Use source directory direcly (without copiing
21409 or hardlinking it). Remove -J option, Joliet is not compatible with
21410 multiple source directories.
21411
21412 2009-11-21 Carles Pina i Estany <carles@pina.cat>
21413 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21414
21415 * util/grub-mkrescue.in: Recognize `--override-directory' option.
21416 (process_input_dir): New function. Process an arbitrary input
21417 directory.
21418 Misc adjustments to support both "override mode" and system-wide mode.
21419
21420 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21421
21422 * configure.ac (UNIFONT_BDF): Rename to ...
21423 (FONT_SOURCE): ... this. Update all users.
21424
21425 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21426
21427 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
21428 to the list of unifont files to look for.
21429
21430 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21431
21432 Patch from Joe Auricchio <jauricchio@gmail.com>
21433 * commands/minicmd.c (grub_mini_cmd_clear): New function.
21434 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
21435 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
21436
21437 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21438
21439 * Makefile.in (install-local): Add a missing backslash.
21440
21441 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21442
21443 * include/grub/x86_64/io.h: New file.
21444
21445 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21446
21447 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
21448 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
21449 Include `"progname.h"'.
21450 (main): Initialize gettext.
21451 * util/i386/pc/grub-setup.c: Gettexttize.
21452 * util/i386/pc/grub-mkimage.c: Likewise.
21453
21454 * Makefile.in (po/*.po): Redefine as ...
21455 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
21456
21457 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
21458
21459 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21460
21461 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
21462 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
21463 (program_name): Remove.
21464 (main): Initialize gettext support.
21465 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
21466 Include `<libintl.h>'.
21467 (_): New macro.
21468
21469 * util/mkisofs/eltorito.c: Gettexttize.
21470 * util/mkisofs/joliet.c: Likewise.
21471 * util/mkisofs/mkisofs.c: Likewise.
21472 * util/mkisofs/multi.c: Likewise.
21473 * util/mkisofs/rock.c: Likewise.
21474 * util/mkisofs/tree.c: Likewise.
21475 * util/mkisofs/write.c: Likewise.
21476
21477 * po/POTFILES: Update with new files.
21478
21479 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21480
21481 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
21482 * util/mkisofs/iso9660.h: Likewise.
21483 * util/mkisofs/joliet.c: Likewise.
21484 * util/mkisofs/mkisofs.c: Likewise.
21485 * util/mkisofs/mkisofs.h: Likewise.
21486 * util/mkisofs/rock.c: Likewise.
21487 * util/mkisofs/tree.c: Likewise.
21488 * util/mkisofs/write.c: Likewise.
21489
21490 * util/mkisofs/eltorito.c (rcsid): Remove.
21491 * util/mkisofs/hash.c: Likewise.
21492 * util/mkisofs/joliet.c: Likewise.
21493 * util/mkisofs/name.c: Likewise.
21494 * util/mkisofs/rock.c: Likewise.
21495 * util/mkisofs/tree.c: Likewise.
21496 * util/mkisofs/write.c: Likewise.
21497
21498 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21499
21500 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
21501 instead of static allocation.
21502 * util/mkisofs/match.h: Likewise.
21503
21504 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21505
21506 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
21507 and `util/grub.d/10_linux.in'.
21508 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
21509 translatable Shell files.
21510
21511 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21512
21513 * Makefile.in ($(srcdir)/aclocal.m4): New target.
21514
21515 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21516
21517 * INSTALL: Document Automake is needed for bootstrap.
21518 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
21519 * util/grub.d/10_kfreebsd.in (bindir): New variable.
21520 Add gettext initialization.
21521 (kfreebsd_entry): Make menuentry output translatable.
21522
21523 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21524
21525 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
21526 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
21527 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
21528 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
21529 (LINGUAS): Auto-generate using `po/LINGUAS'.
21530 * po/LINGUAS: New file.
21531
21532 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21533
21534 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
21535 other things).
21536 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
21537 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
21538 bindtextdomain() calls for gettext initialization.
21539
21540 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21541
21542 * gnulib/progname.c: New file (imported from Gnulib).
21543 * gnulib/progname.h: Likewise.
21544 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21545 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
21546 (usage): Replace `progname' with `program_name'.
21547 (main): Use set_program_name() for program name initialization.
21548
21549 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21550
21551 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
21552 from here ...
21553 * Makefile.in (CPPFLAGS): ... to here.
21554
21555 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21556
21557 * aclocal.m4: Move from here ...
21558 * acinclude.m4: ... to here.
21559 * autogen.sh: Add call to `aclocal'.
21560 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
21561
21562 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21563
21564 * Makefile.in (CLEANFILES): Add `po/*.mo'.
21565 (LINGUAS): New variable.
21566 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
21567 (install-local): Install MO files.
21568 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
21569 * include/grub/i18n.h: New file.
21570 * po/POTFILES: New file.
21571 * po/ca.po: New file.
21572 * util/grub.d/10_linux.in (bindir): New variable.
21573 Add gettext initialization.
21574 (linux_entry): Make menuentry output translatable.
21575 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
21576 (usage): Make --help output translatable.
21577 (main): Initialize gettext.
21578
21579 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21580
21581 * import_gcry.py: New file (written by Vladimir with minor
21582 adjustments).
21583 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
21584 ciphers.
21585 * INSTALL: Document that Python is required for bootstrap.
21586
21587 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21588
21589 Import ciphers from libgcrypt 1.4.4.
21590
21591 * lib/libgcrypt/cipher/ChangeLog
21592 * lib/libgcrypt/cipher/ac.c
21593 * lib/libgcrypt/cipher/arcfour.c
21594 * lib/libgcrypt/cipher/bithelp.h
21595 * lib/libgcrypt/cipher/blowfish.c
21596 * lib/libgcrypt/cipher/camellia-glue.c
21597 * lib/libgcrypt/cipher/camellia.c
21598 * lib/libgcrypt/cipher/camellia.h
21599 * lib/libgcrypt/cipher/cast5.c
21600 * lib/libgcrypt/cipher/cipher.c
21601 * lib/libgcrypt/cipher/crc.c
21602 * lib/libgcrypt/cipher/des.c
21603 * lib/libgcrypt/cipher/dsa.c
21604 * lib/libgcrypt/cipher/ecc.c
21605 * lib/libgcrypt/cipher/elgamal.c
21606 * lib/libgcrypt/cipher/hash-common.c
21607 * lib/libgcrypt/cipher/hash-common.h
21608 * lib/libgcrypt/cipher/hmac-tests.c
21609 * lib/libgcrypt/cipher/md.c
21610 * lib/libgcrypt/cipher/md4.c
21611 * lib/libgcrypt/cipher/md5.c
21612 * lib/libgcrypt/cipher/primegen.c
21613 * lib/libgcrypt/cipher/pubkey.c
21614 * lib/libgcrypt/cipher/rfc2268.c
21615 * lib/libgcrypt/cipher/rijndael-tables.h
21616 * lib/libgcrypt/cipher/rijndael.c
21617 * lib/libgcrypt/cipher/rmd.h
21618 * lib/libgcrypt/cipher/rmd160.c
21619 * lib/libgcrypt/cipher/rsa.c
21620 * lib/libgcrypt/cipher/seed.c
21621 * lib/libgcrypt/cipher/serpent.c
21622 * lib/libgcrypt/cipher/sha1.c
21623 * lib/libgcrypt/cipher/sha256.c
21624 * lib/libgcrypt/cipher/sha512.c
21625 * lib/libgcrypt/cipher/tiger.c
21626 * lib/libgcrypt/cipher/twofish.c
21627 * lib/libgcrypt/cipher/whirlpool.c
21628
21629 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21630
21631 Fix build for systems without error().
21632
21633 * gnulib/error.c: New file (imported from Gnulib).
21634 * gnulib/error.h: Likewise.
21635 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
21636 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
21637 (this variable is now used by error()).
21638
21639 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
21640
21641 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
21642 instead of relying that char is signed.
21643
21644 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21645
21646 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
21647 blocksize different from specified.
21648 (grub_pxefs_read): Likewise.
21649
21650 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
21651
21652 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
21653
21654 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
21655 (grub_ata_readwrite): Likewise. Update 2 format strings.
21656 (grub_atapi_read): Likewise.
21657
21658 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
21659 * conf/i386.rmk (pkglib_MODULES): ... to here ...
21660 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
21661 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
21662 (ata_mod_LDFLAGS): Move from here ...
21663 * conf/i386.rmk: ... to here ...
21664 * conf/x86_64-efi.rmk: ... and here.
21665 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
21666 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
21667
21668 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21669
21670 Relicense multiboot.h, with RMS' blessing.
21671
21672 * include/multiboot.h: Change to X11 license.
21673
21674 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
21675
21676 Support --version in grub-mkisofs.
21677
21678 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
21679 (OPTION_VERSION): New macro.
21680 (ld_options): Recognize --version.
21681 (usage): Move `program_name' from here ...
21682 (program_name): ... to here. Add `static' qualifier.
21683 (main): Recognize `OPTION_VERSION'.
21684
21685 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
21686
21687 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
21688 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
21689
21690 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
21691
21692 Fix help2man generation for mkisofs.
21693
21694 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
21695 (usage): Send output to stdout (rather than stderr).
21696
21697 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
21698
21699 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
21700 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
21701 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
21702 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
21703 (bin_SCRIPTS): Add `grub-mkfloppy'.
21704 (grub_mkfloppy_SOURCES): New variable.
21705
21706 * util/grub-mkrescue.in: New file.
21707 * util/i386/pc/grub-mkfloppy.in: New file.
21708
21709 * util/i386/coreboot/grub-mkrescue.in: Remove.
21710 * util/i386/pc/grub-mkrescue.in: Remove.
21711
21712 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
21713
21714 * include/grub/multiboot.h (struct grub_multiboot_header): Move
21715 from here ...
21716 * include/multiboot.h (struct multiboot_header): ... to here. Update
21717 all users.
21718 * include/grub/multiboot.h (struct grub_multiboot_info): Move
21719 from here ...
21720 * include/multiboot.h (struct multiboot_info): ... to here. Update
21721 all users.
21722 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
21723 from here ...
21724 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
21725 Update all users.
21726 * include/grub/multiboot.h (struct grub_mod_list): Move
21727 from here ...
21728 * include/multiboot.h (struct multiboot_mod_list): ... to here.
21729 Update all users.
21730
21731 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
21732
21733 * include/multiboot2.h (multiboot_word): Rename from this ...
21734 (multiboot2_word): ... to this. Update all users.
21735 (multiboot_header): Rename from this ...
21736 (multiboot2_header): ... to this. Update all users.
21737 (multiboot_tag_header): Rename from this ...
21738 (multiboot2_tag_header): ... to this. Update all users.
21739 (multiboot_tag_start): Rename from this ...
21740 (multiboot2_tag_start): ... to this. Update all users.
21741 (multiboot_tag_name): Rename from this ...
21742 (multiboot2_tag_name): ... to this. Update all users.
21743 (multiboot_tag_module): Rename from this ...
21744 (multiboot2_tag_module): ... to this. Update all users.
21745 (multiboot_tag_memory): Rename from this ...
21746 (multiboot2_tag_memory): ... to this. Update all users.
21747 (multiboot_tag_unused): Rename from this ...
21748 (multiboot2_tag_unused): ... to this. Update all users.
21749 (multiboot_tag_end): Rename from this ...
21750 (multiboot2_tag_end): ... to this. Update all users.
21751
21752 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
21753
21754 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
21755 this platform we should support Multiboot1 first.
21756
21757 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
21758 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
21759 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
21760
21761 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
21762
21763 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
21764 of write calls (converting them to fwrite() if they aren't already).
21765 (get_torito_desc): Likewise.
21766 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
21767
21768 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
21769
21770 * util/i386/pc/grub-install.in: Move from here ...
21771 * util/grub-install.in: ... to here. Update all users.
21772
21773 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
21774
21775 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
21776
21777 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
21778
21779 Support for El Torito without floppy emulation.
21780
21781 * util/mkisofs/eltorito.c: Include `<errno.h>'.
21782 (init_boot_catalog): Improve error handling.
21783 (get_torito_desc): Don't use floppy emulation unless requested by
21784 user. Patch boot information table when requested via
21785 `-boot-info-table'.
21786 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
21787 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
21788 (use_boot_info_table): New variables.
21789 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
21790 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
21791 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
21792 `--eltorito-emul-floppy'.
21793 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
21794 and `OPTION_ELTORITO_EMUL_FLOPPY'.
21795 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
21796 (use_boot_info_table, get_731): New prototypes.
21797 * util/mkisofs/write.c (get_731): New function.
21798
21799 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
21800
21801 Fix the generation of the man page.
21802
21803 * util/pc/i386/grub-install.in: Source
21804 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
21805
21806 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
21807
21808 Large file support for grub-mkisofs.
21809
21810 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
21811 * util/mkisofs/mkisofs.c (next_extent, last_extent)
21812 (session_start): Upgrade type to `uint64_t'. Update all users.
21813 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
21814 (struct directory_entry): Upgrade type of `starting_block' and
21815 `size' to `uint64_t'. Update all users.
21816 (struct deferred): Remove unused structure.
21817 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
21818 Update all users.
21819 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
21820 file is larger than `UINT32_MAX'.
21821 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
21822 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
21823 return value.
21824 (struct deferred_write): Upgrade type of `extent' and `size' to
21825 `uint64_t'. Update all users.
21826 (last_extent_written): Upgrade type to `uint64_t'. Update all
21827 users.
21828 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
21829 Update all users. Upgrade type of `remain' to `int64_t' and
21830 `use' to `size_t'. Use error() to handle fread() errors.
21831 (write_files): Rely on write_one_file() rather than calling
21832 xfwrite() directly.
21833
21834 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
21835
21836 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
21837
21838 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21839
21840 * util/mkisofs/fnmatch.c: Remove.
21841 * util/mkisofs/getopt1.c: Likewise.
21842 * util/mkisofs/getopt.c: Likewise.
21843 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
21844 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
21845 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
21846 `gnulib/getopt1.c' and `gnulib/getopt.c'.
21847 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
21848
21849 * configure.ac: Detect `mingw32msvc' host_os.
21850 Check for lstat(), getuid() and getgid().
21851
21852 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
21853 instances of `u_char' with `uint8_t'.
21854
21855 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
21856 [!HAVE_GETUID] (getuid): New function (stub).
21857 [!HAVE_GETGID] (getgid): Likewise.
21858 [!HAVE_LSTAT] (lstat): Likewise.
21859 [!S_IROTH] (S_IROTH): New macro (dummy).
21860 [!S_IRGRP] (S_IRGRP): Likewise.
21861
21862 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21863
21864 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
21865 conditional expression).
21866
21867 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21868
21869 Import from Gnulib.
21870
21871 * gnulib/fnmatch.c: New file.
21872 * gnulib/fnmatch.h: Likewise.
21873 * gnulib/fnmatch_loop.c: Likewise.
21874 * gnulib/getopt.c: Likewise.
21875 * gnulib/getopt.h: Likewise.
21876 * gnulib/getopt1.c: Likewise.
21877 * gnulib/getopt_int.h: Likewise.
21878 * gnulib/gettext.h: Likewise.
21879
21880 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21881
21882 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
21883 * normal/handler.c (read_handler_list): Likewise.
21884
21885 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21886
21887 Misc cleanup.
21888
21889 * kern/command.c (grub_register_command_prio): Use
21890 grub_zalloc() instead of explicitly zeroing data.
21891 * kern/list.c: Include `<grub/mm.h>'.
21892 (grub_named_list_find): Replace `0' with `NULL'.
21893 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
21894 (fs_module_list): Change type to `grub_named_list_t'. Update all
21895 users.
21896 * normal/dyncmd.c (read_command_list): Add space between function
21897 call and parenthesis.
21898 * normal/handler.c (read_handler_list): Likewise.
21899
21900 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21901
21902 * normal/auth.c (punishment_delay): Moved from here ...
21903 (grub_auth_strcmp): ... to here (inside function).
21904
21905 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21906
21907 * include/grub/list.h (struct grub_named_list): Remove `const'
21908 qualifier from `name'.
21909 (struct grub_prio_list): Likewise.
21910
21911 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21912
21913 * normal/auth.c: Include `<grub/time.h>'.
21914 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
21915
21916 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21917
21918 * normal/auth.c (punishment_delay): New variable.
21919 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
21920 (grub_auth_check_authentication): Punish failed login attempts with
21921 an incremental (2^N) delay.
21922
21923 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21924
21925 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
21926 path with $(srcdir).
21927
21928 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
21929
21930 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
21931
21932 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
21933
21934 * util/i386/coreboot/grub-mkrescue.in: New file.
21935 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
21936 variables.
21937
21938 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
21939 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
21940 * configure.ac: Add header and function checks to satisfy grub-mkisofs
21941 requirements.
21942 * util/mkisofs/defaults.h: New file.
21943 * util/mkisofs/eltorito.c: Likewise.
21944 * util/mkisofs/exclude.h: Likewise.
21945 * util/mkisofs/fnmatch.c: Likewise.
21946 * util/mkisofs/getopt.c: Likewise.
21947 * util/mkisofs/getopt1.c: Likewise.
21948 * util/mkisofs/hash.c: Likewise.
21949 * util/mkisofs/include/fctldefs.h: Likewise.
21950 * util/mkisofs/include/mconfig.h: Likewise.
21951 * util/mkisofs/include/prototyp.h: Likewise.
21952 * util/mkisofs/include/statdefs.h: Likewise.
21953 * util/mkisofs/iso9660.h: Likewise.
21954 * util/mkisofs/joliet.c: Likewise.
21955 * util/mkisofs/match.c: Likewise.
21956 * util/mkisofs/match.h: Likewise.
21957 * util/mkisofs/mkisofs.c: Likewise.
21958 * util/mkisofs/mkisofs.h: Likewise.
21959 * util/mkisofs/multi.c: Likewise.
21960 * util/mkisofs/name.c: Likewise.
21961 * util/mkisofs/rock.c: Likewise.
21962 * util/mkisofs/tree.c: Likewise.
21963 * util/mkisofs/write.c: Likewise.
21964
21965 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
21966
21967 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
21968 being insecure.
21969
21970 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
21971
21972 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
21973 `grub-mkimage' (and use $0 when possible).
21974
21975 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
21976
21977 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
21978 error message for excessively large memory map.
21979
21980 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
21981
21982 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
21983 executable bit.
21984
21985 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
21986
21987 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
21988 message for coreboot users.
21989
21990 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
21991
21992 Fix build with GNU gold.
21993
21994 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
21995 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
21996 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
21997 link addresses.
21998 * aclocal.m4: Likewise.
21999
22000 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
22001
22002 * configure.ac (AC_PREREQ): Bump to 2.59d.
22003 * INSTALL: Make it more clear when Autoconf and Ruby are
22004 needed and when to run `./autogen.sh'.
22005
22006 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22007
22008 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
22009 OSes.
22010
22011 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22012
22013 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
22014
22015 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22016
22017 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
22018 giving it to GNU Mach.
22019
22020 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22021
22022 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
22023 GNU partition number to get internal GRUB partition number.
22024
22025 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22026
22027 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
22028 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
22029
22030 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
22031
22032 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
22033 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
22034 case.
22035
22036 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
22037
22038 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
22039
22040 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22041
22042 Fix build problem.
22043
22044 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
22045 `-isystem=$(srcdir)/include'.
22046
22047 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22048
22049 * util/i386/pc/grub-install.in: Remove hint that device.map should be
22050 checked (grub-install doesn't currently rely on it).
22051
22052 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
22053
22054 Revert SVN r2660.
22055
22056 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
22057 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22058 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
22059 * conf/i386-ieee1275.rmk: Likewise.
22060 * conf/i386-pc.rmk: Likewise.
22061 * conf/powerpc-ieee1275.rmk: Likewise.
22062 * conf/sparc64-ieee1275.rmk: Likewise.
22063 * conf/x86_64-efi.rmk: Likewise.
22064
22065 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22066
22067 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
22068
22069 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22070
22071 * include/grub/misc.h: Stop checking for APPLE_CC.
22072
22073 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22074
22075 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
22076 doesn't cause an infinite call loop.
22077
22078 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
22079
22080 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
22081 strings.
22082
22083 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22084
22085 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
22086 variable.
22087 * Makefile.in: Likewise.
22088
22089 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22090
22091 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
22092
22093 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22094
22095 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
22096
22097 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22098
22099 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
22100
22101 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22102
22103 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
22104 from here ...
22105 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
22106
22107 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22108
22109 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
22110 in $(MAKEINFO) invocation. This makes it clear in output that
22111 errors are being ignored.
22112
22113 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22114
22115 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
22116 from here ...
22117 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22118 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
22119 * conf/i386-ieee1275.rmk: Likewise.
22120 * conf/i386-pc.rmk: Likewise.
22121 * conf/powerpc-ieee1275.rmk: Likewise.
22122 * conf/sparc64-ieee1275.rmk: Likewise.
22123 * conf/x86_64-efi.rmk: Likewise.
22124
22125 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22126
22127 * util/grub-editenv.c (main): If only a command is given, use
22128 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
22129 (usage): FILENAME is now optional and has a default.
22130
22131 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22132
22133 Improve grub-mkconfig performance when there are several menu
22134 entries on a single filesystem.
22135
22136 * util/grub.d/10_linux.in (linux_entry): Cache the output of
22137 prepare_grub_to_access_device.
22138 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22139 * util/grub.d/30_os-prober.in: Likewise.
22140
22141 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22142
22143 * util/grub.d/10_freebsd.in: Remove.
22144 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
22145 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
22146
22147 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22148
22149 * docs/grub.cfg: Fix example usage of *BSD loaders.
22150
22151 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22152
22153 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
22154 grub_util_error() call.
22155
22156 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22157
22158 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
22159 `reserved_first_sector' member.
22160 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
22161 `reserved_first_sector' to 1.
22162 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
22163 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
22164 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
22165 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
22166 filesystems which begin at first sector.
22167 (options): New option --skip-fs-probe.
22168 (main): Handle --skip-fs-probe and pass it to setup().
22169
22170 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22171
22172 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
22173 (memset): Fix function prototype.
22174
22175 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22176 2009-10-25 Vasily Averin <vvs@parallels.com>
22177
22178 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
22179 `dirent.direntlen == 0'.
22180
22181 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22182
22183 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
22184 `cpio'.
22185 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
22186
22187 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22188
22189 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
22190 `__trampoline_setup' and `__ucmpdi2'.
22191 * include/grub/powerpc/libgcc.h: Only export symbols for functions
22192 that libgcc provides.
22193
22194 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22195
22196 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
22197 * include/grub/sparc64/libgcc.h (memset): Likewise.
22198 * include/grub/misc.h (memset, memcmp): New function prototypes.
22199
22200 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22201
22202 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
22203 `cpio'.
22204 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
22205
22206 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22207
22208 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
22209 * docs/grub.cfg: Compensate for recent change in multiboot
22210 loader (since 2009-08-14 it won't pass filename to payload).
22211 * util/grub.d/10_hurd.in: Likewise.
22212
22213 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
22214
22215 * config.guess: Update to latest version from config git
22216 repository.
22217 * config.sub: Likewise.
22218
22219 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
22220
22221 Fix build on sparc64.
22222
22223 * configure.ac: Perform checks for libgcc symbols before
22224 adding `-nostdlib' to LDFLAGS.
22225
22226 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22227
22228 Let user specify OpenBSD root device.
22229
22230 * loader/i386/bsd.c (openbsd_root): New variable.
22231 (openbsd_opts): New option 'root'.
22232 (OPENBSD_ROOT_ARG): New macro.
22233 (grub_openbsd_boot): Use 'openbsd_root'.
22234 (grub_cmd_openbsd): Fill 'openbsd_root'.
22235
22236 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22237
22238 * NEWS: Misc adjustments.
22239
22240 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22241
22242 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
22243
22244 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22245
22246 * configure.ac: Bump version to 1.97.
22247
22248 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
22249
22250 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
22251 -mno-3dnow on x86 architectures. Some toolchains enable these
22252 features by default, but they rely on registers that aren't enabled
22253 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
22254
22255 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
22256
22257 Make entry text a bit more readable.
22258
22259 * util/grub.d/10_linux.in: Add `with' before `Linux'.
22260
22261 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22262
22263 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
22264
22265 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22266
22267 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
22268 operations.
22269
22270 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22271
22272 * configure.ac: Add missing dollar.
22273
22274 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
22277
22278 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
22279 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
22280 exports.
22281 * include/grub/sparc64/libgcc.h: Likewise. Use
22282 preprocessor conditionals.
22283
22284 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22285
22286 * conf/common.rmk (grub-dumpbios): Remove rule.
22287 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
22288 * util/grub-dumpbios.in: Remove file.
22289
22290 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22291
22292 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
22293 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
22294
22295 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
22296 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
22297 users.
22298
22299 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
22300 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
22301 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
22302 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
22303 users.
22304
22305 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
22306
22307 * term/tparm.c: Switch to GPLv3.
22308
22309 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22310
22311 * include/grub/i386/cpuid.h: Add header protection.
22312
22313 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22314
22315 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
22316
22317 * include/grub/i386/cpuid.h: New file.
22318 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
22319 (has_longmode): Rename to ...
22320 (grub_cpuid_has_longmode): ... this. Update all users. Remove
22321 `static' attribute.
22322 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
22323 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
22324 on a CPU that doesn't implement AMD64 instruction set.
22325
22326 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22327
22328 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
22329 that version.texi is rebuilt on version number changes.
22330
22331 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22332
22333 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
22334 Fixes bug #27602.
22335
22336 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22337
22338 * util/i386/pc/grub-install.in: Source
22339 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
22340 that the --grub-probe option will work.
22341 * util/sparc64/ieee1275/grub-install.in: Likewise.
22342
22343 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
22344
22345 * configure.ac: Bump version to 1.97~beta4.
22346
22347 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
22348
22349 Resync grub-mkdevicemap in x86_64-efi.
22350
22351 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
22352 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
22353 `util/devicemap.c'.
22354
22355 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
22356
22357 * util/grub-editenv.c (create_envblk_file): Write new block with a
22358 .new suffix and then rename it into place, to ensure atomic
22359 creation.
22360
22361 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
22362
22363 Do not automatically install headers.
22364
22365 * Makefile.in (include_DATA): Remove. Update all users.
22366
22367 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
22368
22369 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
22370 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
22371
22372 * util/osdetect.lua: Remove.
22373 * script/lua/lauxlib.c: Likewise.
22374 * script/lua/ldebug.c: Likewise.
22375 * script/lua/grub_main.c: Likewise.
22376 * script/lua/lauxlib.h: Likewise.
22377 * script/lua/ldebug.h: Likewise.
22378 * script/lua/ltablib.c: Likewise.
22379 * script/lua/liolib.c: Likewise.
22380 * script/lua/lstrlib.c: Likewise.
22381 * script/lua/lualib.h: Likewise.
22382 * script/lua/ldo.c: Likewise.
22383 * script/lua/ldump.c: Likewise.
22384 * script/lua/ldo.h: Likewise.
22385 * script/lua/loslib.c: Likewise.
22386 * script/lua/lundump.c: Likewise.
22387 * script/lua/grub_lib.c: Likewise.
22388 * script/lua/ldblib.c: Likewise.
22389 * script/lua/lundump.h: Likewise.
22390 * script/lua/lmem.c: Likewise.
22391 * script/lua/grub_lib.h: Likewise.
22392 * script/lua/lmathlib.c: Likewise.
22393 * script/lua/lstate.c: Likewise.
22394 * script/lua/ltm.c: Likewise.
22395 * script/lua/lvm.c: Likewise.
22396 * script/lua/lmem.h: Likewise.
22397 * script/lua/lstate.h: Likewise.
22398 * script/lua/ltm.h: Likewise.
22399 * script/lua/ltable.c: Likewise.
22400 * script/lua/lvm.h: Likewise.
22401 * script/lua/llex.c: Likewise.
22402 * script/lua/lgc.c: Likewise.
22403 * script/lua/grub_lua.h: Likewise.
22404 * script/lua/loadlib.c: Likewise.
22405 * script/lua/lfunc.c: Likewise.
22406 * script/lua/lopcodes.c: Likewise.
22407 * script/lua/lparser.c: Likewise.
22408 * script/lua/ltable.h: Likewise.
22409 * script/lua/llex.h: Likewise.
22410 * script/lua/lgc.h: Likewise.
22411 * script/lua/lfunc.h: Likewise.
22412 * script/lua/lbaselib.c: Likewise.
22413 * script/lua/lopcodes.h: Likewise.
22414 * script/lua/lparser.h: Likewise.
22415 * script/lua/lzio.c: Likewise.
22416 * script/lua/linit.c: Likewise.
22417 * script/lua/lobject.c: Likewise.
22418 * script/lua/llimits.h: Likewise.
22419 * script/lua/lstring.c: Likewise.
22420 * script/lua/lzio.h: Likewise.
22421 * script/lua/lapi.c: Likewise.
22422 * script/lua/lcode.c: Likewise.
22423 * script/lua/lua.h: Likewise.
22424 * script/lua/lobject.h: Likewise.
22425 * script/lua/lstring.h: Likewise.
22426 * script/lua/lapi.h: Likewise.
22427 * script/lua/lcode.h: Likewise.
22428 * script/lua/luaconf.h: Likewise.
22429
22430 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
22431
22432 * docs/grub.texi (Command-line and menu entry commands): Document
22433 date and echo commands.
22434
22435 2009-09-24 Pavel Roskin <proski@gnu.org>
22436
22437 * include/grub/kernel.h (struct grub_module_header): Remove
22438 `grub_module_header_types'. Make `type' unsigned. Make `size'
22439 32-bit on all platforms.
22440 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
22441 8-bit field. Use grub_host_to_target32() for `size'.
22442 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
22443 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
22444 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
22445
22446 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22447
22448 Fix "lost keypress" bug in at_keyboard.
22449
22450 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
22451 Checks for readyness of input buffer (without flushing it).
22452 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
22453 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
22454
22455 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22456
22457 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
22458 size check within GRUB_MACHINE_PCBIOS section.
22459
22460 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22461
22462 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
22463 return value.
22464 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
22465 KEYBOARD_ISREADY check.
22466 (grub_at_keyboard_checkkey): Rename to ...
22467 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
22468 Remove gratuitous cast.
22469
22470 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
22471
22472 * configure.ac: Call AC_PROG_MKDIR_P.
22473 * Makefile.in (docs/stamp-vti): Create docs directory. Create
22474 version.texi in $(builddir) rather than $(srcdir).
22475 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
22476 to makeinfo's @include search path.
22477
22478 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22479
22480 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
22481
22482 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22483
22484 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
22485 for `*.dpkg-new'.
22486
22487 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
22488
22489 Build info documentation. Some code borrowed from Automake.
22490
22491 * configure.ac: Check for makeinfo.
22492 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
22493 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
22494 docs/version.texi.
22495 (MOSTLYCLEANFILES): Add vti.tmp.
22496 (docs/version.texi, docs/stamp-vti): Update automatically.
22497 (docs/grub.info): Build info documentation. Use --force and ignore
22498 errors for now.
22499 (all-local): Add $(INFOS).
22500 (install-local): Install info files.
22501 (uninstall): Uninstall info files.
22502 * docs/version.texi: Remove from revision control. This file is
22503 automatically generated on build now.
22504 * gendistlist.sh: Add `*.info'.
22505
22506 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
22507
22508 * kern/term.c: Fix indentation.
22509
22510 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
22511
22512 * util/hostdisk.c: Fix a comment.
22513
22514 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
22515
22516 Fix regression introduced in r2539.
22517
22518 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
22519 to 0xA1.
22520
22521 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
22522
22523 * util/grub.d/30_os-prober.in: Don't throw away stderr from
22524 os-prober. Under normal operation, it does not print anything to
22525 stderr; if it does, we need to debug it, and throwing away stderr
22526 makes that excessively difficult.
22527
22528 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
22529
22530 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
22531
22532 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
22533
22534 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
22535 AC_LANG_PROGRAM from autoconf.
22536 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
22537 prototypes (fixes warning).
22538
22539 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
22540 `--disable-werror' was used.
22541
22542 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
22543
22544 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
22545 uninitialized `lastaddr'.
22546
22547 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22548
22549 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
22550
22551 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
22552
22553 * commands/test.c (get_fileinfo): Return immediately if
22554 grub_fs_probe fails.
22555
22556 2009-09-14 José Martínez <xosemp@gmail.com>
22557
22558 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
22559
22560 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
22561
22562 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
22563 output.
22564
22565 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
22566
22567 * configure.ac: Remove --enable-grub-pe2elf. Only build
22568 grub-pe2elf when needed by the build system itself.
22569 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
22570
22571 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
22572
22573 * configure.ac: Bump version to 1.97~beta3.
22574 * docs/version.texi: Likewise.
22575
22576 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
22577
22578 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
22579 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
22580 from here ...
22581 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
22582 (grub_linux_setup_video): ... to here (with some adjustments).
22583
22584 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
22585
22586 Fix memory corruption issue (spotted by Colin Watson).
22587
22588 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
22589 causing returned size to be stored in an incorrect memory location.
22590 Fix use of uninitialized value when storing the returned size.
22591
22592 2009-09-12 Yves Blusseau <blusseau@zetam.org>
22593
22594 Change clean rules to properly remove files
22595
22596 * genmk.rb: add new clean rules
22597 * Makefile.in (clean): add the new targets
22598 (mostlyclean): likewise
22599
22600 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
22601
22602 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
22603 to grub_uint64_t.
22604 * fs/ntfs.c (init_file): Understand 64-bit sizes for
22605 non-resident files.
22606
22607 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
22608
22609 * configure.ac: Don't look for help2man when cross-compiling. Fixes
22610 part of bug #27349.
22611
22612 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
22613
22614 * util/grub-mkconfig.in: Make the created config mode 400 and
22615 print a warning if it fails.
22616
22617 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
22618
22619 * util/grub.d/40_custom.in: Ask user to type custom entries below
22620 comment, rather than below 'exec tail' line.
22621
22622 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
22623
22624 * util/grub.d/40_custom.in: Make sure that the explanatory text is
22625 visible in grub.cfg.
22626
22627 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
22628
22629 * util/grub.d/40_custom.in: Make it a little clearer how to use this
22630 file.
22631
22632 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
22633
22634 * docs/grub.cfg: Add an example menu entry for memtest86+.
22635
22636 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
22637
22638 * config.guess: Update to latest version from config git.
22639 * config.sub: Likewise.
22640
22641 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
22642
22643 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
22644 unknown-command case. Fixes bug #27320.
22645
22646 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
22647
22648 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
22649 `help' if the command exists.
22650
22651 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
22652
22653 * INSTALL: Require GCC 4.1.3 or later.
22654
22655 2009-09-06 Yves Blusseau <blusseau@zetam.org>
22656
22657 * Makefile.in (RMKFILES): add i386-qemu.rmk
22658 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
22659 $(srcdir)/stamp-h.in
22660
22661 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
22662
22663 * util/grub-probe.c (probe): Comment out buggy codepath, which
22664 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
22665 should be re-enabled after 1.97.
22666
22667 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
22668
22669 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
22670 find searches for.
22671
22672 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
22673
22674 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
22675 unnecessary calls to grub_error.
22676
22677 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
22678
22679 * NEWS: Mention `keystatus' and Unicode fonts.
22680
22681 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
22682
22683 * configure.ac: Bump version to 1.97~beta2.
22684 * docs/version.texi: Likewise.
22685
22686 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
22687
22688 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
22689 containing unwind information in some cases where it previously did
22690 not. Use -fno-dwarf2-cfi-asm if available to restore the old
22691 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
22692 discussion.
22693
22694 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
22695
22696 Embedding loadenv module into grub-emu
22697
22698 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
22699 commands/loadenv.c
22700 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
22701 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
22702 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
22703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
22704 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
22705 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
22706
22707 2009-09-03 Magnus Granberg <zorry@ume.nu>
22708
22709 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
22710 include -fPIE in the default specs.
22711 * configure.ac: Check if pie_possible is yes and add -fno-PIE
22712 to TARGET_CFLAGS.
22713
22714 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
22715
22716 * INSTALL: Note that GNU Bison 2.3 or later is required.
22717
22718 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
22719
22720 * kern/i386/pc/startup.S: Fix typo.
22721
22722 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
22723
22724 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
22725 according to GCS.
22726
22727 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
22728
22729 * docs/grub.texi (Naming convention): Describe one-based partition
22730 numbering.
22731 (Device syntax): Likewise.
22732 (File name syntax): Likewise.
22733 (Block list syntax): Likewise.
22734 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
22735 menu.lst.
22736 (File name syntax): Likewise.
22737 (Command-line and menu entry commands): Document acpi, blocklist,
22738 crc, export, insmod, keystatus, ls, set, and unset commands.
22739
22740 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
22741
22742 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
22743 to avoid implying that only one of --shift, --ctrl, or --alt may be
22744 used.
22745
22746 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
22747
22748 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
22749 rather than comparing against S_IFREG, which will almost never work.
22750
22751 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
22752
22753 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
22754 (write_blocklists): Likewise.
22755
22756 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
22757
22758 * script/lua/grub_lua.h (fputs): Supply a format string as the first
22759 argument to grub_printf.
22760
22761 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
22762
22763 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
22764 non GNU test.
22765
22766 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22767
22768 * kern/file.c (grub_file_read): Spelling fix
22769
22770 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22771
22772 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
22773 loading of headers in some cases.
22774
22775 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
22776
22777 * configure.ac: Bump version to 1.97~beta1.
22778 * docs/version.texi: Likewise.
22779
22780 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22781
22782 * include/grub/i386/xnu.h: Add license header.
22783 include grub/err.h explicitly.
22784
22785 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
22786
22787 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
22788 to `ufs' in the vfs.root.mountfrom kernel parameter.
22789
22790 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
22791
22792 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
22793
22794 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
22795 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
22796
22797 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
22798 `ARRAY_SIZE' macro.
22799
22800 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22801
22802 * kern/file.c (grub_file_read): Check offset.
22803 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
22804 * fs/jfs.c (grub_jfs_read_file): Likewise.
22805 * fs/ntfs.c (grub_ntfs_read): Likewise.
22806 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
22807 * fs/minix.c (grub_minix_read_file): Correct offset check.
22808 * fs/ufs.c (grub_ufs_read_file): Likewise.
22809
22810 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
22811
22812 * term/i386/pc/console.c (bios_data_area): Cast
22813 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
22814
22815 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22816
22817 1-bit optimised blitters.
22818
22819 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
22820 prototype.
22821 (grub_video_fbblit_replace_24bit_1bit): Likewise.
22822 (grub_video_fbblit_replace_16bit_1bit): Likewise.
22823 (grub_video_fbblit_replace_8bit_1bit): Likewise.
22824 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
22825 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
22826 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
22827 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
22828 function.
22829 (grub_video_fbblit_replace_24bit_1bit): Likewise.
22830 (grub_video_fbblit_replace_16bit_1bit): Likewise.
22831 (grub_video_fbblit_replace_8bit_1bit): Likewise.
22832 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
22833 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
22834 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
22835 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
22836 when possible.
22837 * video/video.c (grub_video_get_blit_format): Return
22838 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
22839
22840 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
22841
22842 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
22843 the first argument to grub_printf.
22844
22845 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
22846 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
22847
22848 Add `getkeystatus' terminal method. Add a new `keystatus' command
22849 to query it.
22850
22851 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
22852 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
22853 modifier key bitmasks.
22854 (struct grub_term_input): Add `getkeystatus' member.
22855 (grub_getkeystatus): Add prototype.
22856 * kern/term.c (grub_getkeystatus): New function.
22857
22858 * include/grub/i386/pc/memory.h
22859 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
22860 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
22861 Data Area layout.
22862 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
22863 (grub_console_term_input): Set `getkeystatus' member.
22864 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
22865 constants.
22866 (grub_usb_keyboard_getreport): Likewise.
22867 (grub_usb_keyboard_checkkey): Likewise.
22868 (grub_usb_keyboard_getkeystatus): New function.
22869 (grub_usb_keyboard_term): Set `getkeystatus' member.
22870
22871 * commands/keystatus.c: New file.
22872 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
22873 (keystatus_mod_SOURCES): New variable.
22874 (keystatus_mod_CFLAGS): Likewise.
22875 (keystatus_mod_LDFLAGS): Likewise.
22876 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
22877 commands/keystatus.c.
22878 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22879 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22880 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22882 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22883 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22884
22885 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22886
22887 Split befs.mod and afs.mod into *_be.mod and *.mod
22888
22889 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
22890 (grub_fstest_SOURCES): Likewise.
22891 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
22892 (afs_be_mod_SOURCES): New variable.
22893 (afs_be_mod_CFLAGS): Likewise.
22894 (afs_be_mod_LDFLAGS): Likewise.
22895 (befs_be_mod_SOURCES): Likewise.
22896 (befs_be_mod_CFLAGS): Likewise.
22897 (befs_be_mod_LDFLAGS): Likewise.
22898 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
22899 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22900 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22901 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22902 (grub_emu_SOURCES): Likewise.
22903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22904 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22905 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22906 * fs/afs_be.c: New file.
22907 * fs/befs_be.c: New file.
22908 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
22909 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
22910 (U16): Replaced with ...
22911 (grub_afs_to_cpu16): ...this. All users updated.
22912 (U32): Replaced with ...
22913 (grub_afs_to_cpu32): ...this. All users updated.
22914 (U64): Replaced with ...
22915 (grub_afs_to_cpu64): ...this. All users updated.
22916 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
22917 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
22918 (grub_afs_validate_sblock): Check only one endianness.
22919 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
22920 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
22921 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
22922 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
22923 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
22924 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
22925 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
22926 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
22927
22928 2009-08-26 Bean <bean123ch@gmail.com>
22929
22930 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
22931 64-bit number.
22932 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
22933 (grub_xfs_inode_block): Change return type to grub_uint64_t.
22934 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
22935
22936 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22937
22938 NetBSD memory map support.
22939
22940 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
22941 (grub_netbsd_btinfo_mmap_header): New structure.
22942 (grub_netbsd_btinfo_mmap_entry): Likewise.
22943 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
22944
22945 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22946
22947 Enable bsd.mod on coreboot.
22948
22949 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
22950 (bsd_mod_SOURCES): New variable.
22951 (bsd_mod_CFLAGS): Likewise.
22952 (bsd_mod_LDFLAGS): Likewise.
22953 (bsd_mod_ASFLAGS): Likewise.
22954 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
22955 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
22956
22957 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22958
22959 Cleanup NetBSD root support.
22960
22961 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
22962 grub_bsd_get_device.
22963 Fix typo.
22964
22965 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
22966
22967 * util/grub.d/00_header.in: Move check for the video backend of
22968 gfxterm from here ...
22969 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
22970 a suitable video backend.
22971
22972 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22973
22974 Fix breakage in grub-setup.
22975
22976 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
22977 "msdos_partition_map".
22978
22979 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22980
22981 Fix breakage in normal/auth.c.
22982
22983 * normal/auth.c (grub_iswordseparator): New function.
22984
22985 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22986
22987 Authentication support.
22988
22989 * commands/password.c: New file.
22990 * conf/common.rmk (pkglib_MODULES): Add password.mod.
22991 (password_mod_SOURCES): New variable.
22992 (password_mod_CFLAGS): Likewise.
22993 (password_mod_LDFLAGS): Likewise.
22994 (normal_mod_SOURCES): Add normal/auth.c.
22995 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
22996 normal/auth.c.
22997 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22998 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22999 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23000 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23001 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23002 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23003 * include/grub/auth.h: New file.
23004 * include/grub/err.h (grub_err_t): New enum value
23005 GRUB_ERR_ACCESS_DENIED.
23006 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
23007 'users'.
23008 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
23009 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
23010 users updated.
23011 * normal/auth.c: New file.
23012 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
23013 (grub_cmdline_run): Don't allow to go to command line without
23014 authentication.
23015 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
23016 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
23017 menuentry without superuser rights.
23018 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
23019 user isn't a superuser.
23020
23021 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23022
23023 Save space by inlining misc.c functions.
23024
23025 * kern/misc.c (grub_iswordseparator): Made static.
23026 * kern/misc.c (grub_strcat): Moved from here ...
23027 * include/grub/misc.h (grub_strcat): ... here. Inlined.
23028 * kern/misc.c (grub_strncat): Moved from here ...
23029 * include/grub/misc.h (grub_strncat): ... here. Inlined.
23030 * kern/misc.c (grub_strcasecmp): Moved from here ...
23031 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
23032 * kern/misc.c (grub_strncasecmp): Moved from here ...
23033 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
23034 * kern/misc.c (grub_isalpha): Moved from here ...
23035 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
23036 * kern/misc.c (grub_isdigit): Moved from here ...
23037 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
23038 * kern/misc.c (grub_isgraph): Moved from here ...
23039 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
23040 * kern/misc.c (grub_tolower): Moved from here ...
23041 * include/grub/misc.h (grub_tolower): ... here. Inlined.
23042
23043 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23044
23045 * script/sh/function.c (grub_script_function_find): Cut error message
23046 not to flood terminal.
23047 * script/sh/lexer.c (grub_script_yylex): Remove command line length
23048 limit.
23049 * script/sh/script.c (grub_script_arg_add): Duplicate string.
23050
23051 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
23052
23053 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
23054 `report' grub_uint8_t *.
23055 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
23056 Use a 50-millisecond timeout rather than just repeating
23057 grub_usb_keyboard_getreport 50 times.
23058 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
23059
23060 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23061
23062 Rename *_partition_map to part_*
23063
23064 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
23065 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
23066 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
23067 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
23068 All users updated.
23069 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
23070 All users updated.
23071 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
23072 * util/grub-probe.c (probe_partmap): Don't transform partition name
23073 to get module name.
23074
23075 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23076
23077 Fix OpenBSD and NetBSD support.
23078
23079 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
23080 memory address conflict.
23081 (OPENBSD_MMAP_ACPI): New definition.
23082 (OPENBSD_MMAP_NVS): Likewise.
23083 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
23084 and OPENBSD_MMAP_NVS.
23085 Add memory map terminator
23086 Explicit cast when calling grub_unix_real_boot.
23087 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
23088
23089 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23090
23091 Let user specify NetBSD root device.
23092
23093 * loader/i386/bsd.c (netbsd_root): New variable.
23094 (netbsd_opts): New option 'root'.
23095 (NETBSD_ROOT_ARG): New macro.
23096 (grub_netbsd_boot): Use 'netbsd_root'.
23097 (grub_bsd_unload): Free 'netbsd_root'.
23098 (grub_cmd_netbsd): Fill 'netbsd_root'.
23099
23100 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23101
23102 Support for 64-bit NetBSD.
23103
23104 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
23105 point when booting non-FreeBSD.
23106
23107 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23108
23109 Support --no-smp and --no-acpi for NetBSD.
23110
23111 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
23112 (NETBSD_AB_NOACPI): Likewise.
23113 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
23114 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
23115
23116 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23117
23118 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
23119 errors.
23120 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
23121 errors. Call grub_error when needed.
23122
23123 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23124
23125 * commands/search.c (search_fs): Try searching without autoload first.
23126 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
23127 filesystem module explicitly for faster booting.
23128
23129 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23130
23131 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
23132
23133 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23134
23135 * util/grub.d/30_os-prober.in: Disable os-prober if
23136 `GRUB_DISABLE_OS_PROBER' was set to true.
23137
23138 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
23139
23140 * partmap/pc.c: Rename to ...
23141 * partmap/msdos.c: ... this. Update all users.
23142 (grub_pc_partition_map): Rename to ...
23143 (grub_msdos_partition_map): ... this. Update all users.
23144
23145 * parttool/pcpart.c: Rename to ...
23146 * parttool/msdospart.c: ... this. Update all users.
23147
23148 * include/grub/pc_partition.h: Rename to ...
23149 * include/grub/msdos_partition.h: ... this. Update all users.
23150 (grub_pc_partition_bsd_entry): Rename to ...
23151 (grub_msdos_partition_bsd_entry): ... this. Update all users.
23152 (grub_pc_partition_disk_label): Rename to ...
23153 (grub_msdos_partition_disk_label): ... this. Update all users.
23154 (grub_pc_partition_entry): Rename to ...
23155 (grub_msdos_partition_entry): ... this. Update all users.
23156 (grub_pc_partition_mbr): Rename to ...
23157 (grub_msdos_partition_mbr): ... this. Update all users.
23158 (grub_pc_partition): Rename to ...
23159 (grub_msdos_partition): ... this. Update all users.
23160 (grub_pc_partition_is_empty): Rename to ...
23161 (grub_msdos_partition_is_empty): ... this. Update all users.
23162 (grub_pc_partition_is_extended): Rename to ...
23163 (grub_msdos_partition_is_extended): ... this. Update all users.
23164 (grub_pc_partition_is_bsd): Rename to ...
23165 (grub_msdos_partition_is_bsd): ... this. Update all users.
23166
23167 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
23168 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
23169 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
23170 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
23171 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
23172 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
23173 (gpt_mod_LDFLAGS): Rename to ...
23174 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
23175 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
23176 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
23177 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
23178 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
23179 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
23180 (part_gpt_mod_LDFLAGS): ... this.
23181 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
23182 `pcpart.mod' to `msdospart.mod'.
23183 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
23184 to ...
23185 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
23186 (msdospart_mod_LDFLAGS): ... this.
23187
23188 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23189
23190 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
23191 (openbsd_opts): Likewise.
23192 (netbsd_opts): Likewise.
23193 (freebsd_flags): Added 0 terminator.
23194 (openbsd_flags): Likewise.
23195 (netbsd_flags): Likewise.
23196 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
23197 (grub_cmd_freebsd): Transformed into extended command.
23198 (grub_cmd_openbsd): Likewise.
23199 (grub_cmd_netbsd): Likewise.
23200 (cmd_freebsd): Changed type to grub_extcmd_t.
23201 (cmd_openbsd): Likewise.
23202 (cmd_netbsd): Likewise.
23203 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
23204 grub_cmd_openbsd as extended commands.
23205 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
23206 cmd_netbsd and cmd_openbsd
23207
23208 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
23209
23210 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
23211
23212 2009-08-21 Pavel Roskin <proski@gnu.org>
23213
23214 * Makefile.in (install-local): When checking if a file is in the
23215 build directory, use "test -e" to detect symlinks.
23216
23217 * Makefile.in (install-local): Remove all files in
23218 $(DESTDIR)$(pkglibdir) before installing new files there.
23219
23220 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23221
23222 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
23223 grub-mkelfimage.
23224
23225 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23226
23227 * util/grub-mkconfig.in: Don't use gfxterm by default if not
23228 explicitly specified by the user.
23229
23230 2009-08-18 Pavel Roskin <proski@gnu.org>
23231
23232 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
23233 grub_uint8_t pointer for data.
23234 * include/grub/fbutil.h (struct grub_video_fbblit_info):
23235 Likewise.
23236 * video/fb/fbutil.c: Remove unnecessary casts.
23237
23238 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23239
23240 VBE cleanup.
23241
23242 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
23243 (grub_vbe_set_video_mode): Save active mode info
23244 only after setting the mode.
23245 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
23246 second argument.
23247
23248 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23249
23250 Rename variables for clarity.
23251
23252 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
23253 (active_vbe_mode_info): ... this. All users updated.
23254 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
23255 All users updated.
23256 (initial_mode): Rename to ...
23257 (initial_vbe_mode): ... this. All users updated.
23258 (mode_in_use): Rename to ..
23259 (vbe_mode_in_use): ... this. All users updated.
23260 (mode_list): Rename to ..
23261 (vbe_mode_list): ... this. All users updated.
23262 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
23263 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
23264 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
23265 'mode_list_size' to 'vbe_mode_list_size'.
23266 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
23267 'best_mode_info' to 'best_vbe_mode_info' and
23268 'best_mode' to 'best_vbe_mode'
23269
23270 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23271
23272 Remove duplicate grub_video_fb_get_video_ptr.
23273
23274 * include/grub/fbutil.h (get_data_ptr): Rename to ...
23275 (grub_video_fb_get_video_ptr): ... this.
23276 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
23277 * video/fb/fbutil.c: Add comment about addressing.
23278 (get_data_ptr): Rename to ...
23279 (grub_video_fb_get_video_ptr): ... this. All users updated.
23280 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
23281
23282 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23283
23284 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
23285 grub_dprintf() that was just added.
23286
23287 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23288
23289 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
23290 (DEFAULT_VIDEO_MODE): Remove macros.
23291 (grub_linux_boot): Remove assumption that Linux has FB support,
23292 and use "text" as default video mode.
23293
23294 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
23295
23296 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
23297 grub_dprintf.
23298 * fs/fat.c (grub_fat_read_data): Likewise.
23299
23300 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23301
23302 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
23303 payload.
23304 (grub_module): Likewise.
23305
23306 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23307
23308 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
23309 mbi->cmdline but free playground.
23310
23311 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23312
23313 Handle group offset on UFS1.
23314
23315 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
23316 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
23317
23318 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23319
23320 Split ufs.mod into ufs1.mod and ufs2.mod.
23321
23322 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
23323 (grub_fstest_SOURCES): Likewise.
23324 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
23325 (ufs_mod_SOURCES): Remove.
23326 (ufs_mod_CFLAGS): Likewise.
23327 (ufs_mod_LDFLAGS): Likewise.
23328 (ufs1_mod_SOURCES): New variable.
23329 (ufs1_mod_CFLAGS): Likewise.
23330 (ufs1_mod_LDFLAGS): Likewise.
23331 (ufs2_mod_SOURCES): New variable.
23332 (ufs2_mod_CFLAGS): Likewise.
23333 (ufs2_mod_LDFLAGS): Likewise.
23334 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
23335 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23336 Likewise.
23337 (grub_emu_SOURCES): Likewise.
23338 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23339 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23340 (grub_setup_SOURCES): Likewise.
23341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23342 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
23343 (grub_setup_SOURCES): Likewise.
23344 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23345 Likewise.
23346 * fs/ufs2.c: New file.
23347 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
23348
23349 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23350
23351 Framebuffer split.
23352
23353 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
23354 subsystem at the end.
23355 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
23356 (video_fb_mod_SOURCES): New variable.
23357 (video_fb_mod_CFLAGS): Likewise.
23358 (video_fb_mod_LDFLAGS): Likewise.
23359 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
23360 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
23361 * video/i386/pc/vbeblit.c: Moved from here ...
23362 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
23363 * video/i386/pc/vbefill.c: Moved from here ...
23364 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
23365 * video/i386/pc/vbeutil.c: Moved from here ...
23366 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
23367 * include/grub/i386/pc/vbeblit.h: Moved from here ...
23368 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
23369 * include/grub/i386/pc/vbefill.h: Moved from here ...
23370 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
23371 * include/grub/i386/pc/vbeutil.h: Moved from here ...
23372 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
23373 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
23374 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
23375 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
23376 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
23377 (grub_video_adapter): Added 'get_info_and_fini'.
23378 (grub_video_get_info_and_fini): New prototype.
23379 (grub_video_set_mode): make modestring const char *.
23380 * loader/i386/linux.c (grub_linux_setup_video): Use
23381 grub_video_get_info_and_fini.
23382 (grub_linux_boot): Move modesetting just before booting.
23383 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
23384 grub_video_get_info_and_fini.
23385 * video/i386/pc/vbe.c: Moved framebuffer part ...
23386 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
23387 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
23388 grub_video_fbstd_colors and grub_video_fb_set_palette.
23389 (grub_video_vbe_init): Clear 'framebuffer' variable and use
23390 grub_video_fb_init.
23391 (grub_video_vbe_fini): Use grub_video_fb_fini.
23392 (grub_video_vbe_setup): Use framebuffer.render_target instead of
23393 render_target and use grub_video_fb_set_active_render_target and
23394 grub_video_fb_set_palette.
23395 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
23396 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
23397 (grub_video_vbe_adapter): Use framebuffer.
23398 * video/video.c (grub_video_get_info_and_fini): New function.
23399 (grub_video_set_mode): Make modestring const char *.
23400 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
23401 values are already initialised.
23402
23403 2009-08-14 Pavel Roskin <proski@gnu.org>
23404
23405 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
23406 ABS and APPLE_CC.
23407 * boot/i386/pc/diskboot.S: Likewise.
23408 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
23409 sectors allow compilation on MacOSX.
23410 * conf/i386-pc.rmk: Enable unconditional compilation of
23411 lnxboot.img.
23412
23413 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
23414
23415 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
23416 * util/grub.d/00_header.in: Enter interruptible sleep if
23417 GRUB_HIDDEN_TIMEOUT is set.
23418
23419 2009-08-13 Yves Blusseau <blusseau@zetam.org>
23420
23421 * include/grub/symbol.h: Add the LOCAL macro.
23422 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
23423 starting with "L_".
23424
23425 2009-08-13 Pavel Roskin <proski@gnu.org>
23426
23427 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
23428 any modern compilers we support.
23429
23430 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
23431 Use local labels starting with "L_" so that Apple assembler
23432 knows they are local.
23433
23434 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
23435
23436 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
23437 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
23438 (bsd_kernel_types): ... this enum.
23439
23440 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
23441 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
23442 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
23443
23444 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
23445 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
23446 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
23447 messages.
23448
23449 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23450
23451 * util/grub-dumpdevtree: Moved from here ...
23452 * util/i386/efi/grub-dumpdevtree: ... to here.
23453 (hexify): New function. Converts a string to its hex version.
23454 Generate hex versions of "efi" and "device-properties" by calling
23455 hexify() on the ASCII strings rather than by hardcoding numbers.
23456
23457 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23458
23459 * fs/jfs.c: Update copyright year.
23460
23461 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23462
23463 * util/grub.d/00_header.in: Fix a comment.
23464 * util/grub.d/10_linux.in: Likewise.
23465 * util/grub.d/10_windows.in: Likewise.
23466 * util/grub.d/10_hurd.in: Likewise.
23467
23468 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23469
23470 * util/grub-mkconfig.in: Allow the user to specify the used font
23471 with GRUB_FONT.
23472
23473 2009-08-08 Pavel Roskin <proski@gnu.org>
23474
23475 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
23476 available, xfs.mod needs it now.
23477
23478 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
23479 the "g" modifier in sed when the intention is to strip something
23480 once. This fixes comparison of kernels with multiple dashes.
23481
23482 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
23483 on it. Add missing space before closing bracket. Fix
23484 misleading formatting.
23485
23486 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23487
23488 * docs/grub.texi: Major overhaul. Remove all sections that are
23489 specific to GRUB Legacy, or mostly composed of Legacy-specific
23490 information.
23491
23492 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23493
23494 * docs/version.texi: New file. Provides version information for
23495 grub.texi.
23496
23497 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23498
23499 * docs/grub.texi: Update CVS information to SVN.
23500 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
23501
23502 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23503
23504 * util/grub-mkconfig.in: Remove a wrong `fi'.
23505
23506 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23507
23508 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
23509 (grub_jfs_uuid): New function.
23510 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
23511
23512 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23513
23514 * util/grub-mkconfig_lib.in (font_path): Move the functionality
23515 of it to ...
23516 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
23517 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
23518
23519 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23520
23521 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
23522 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
23523 Update all users.
23524
23525 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
23526 not just "vmlinu[zx]".
23527 Moved from here ...
23528 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
23529 all users.
23530
23531 * util/grub.d/10_linux.in (find_latest): Moved from here ...
23532 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
23533 all users.
23534
23535 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23536
23537 * util/grub.d/10_freebsd.in: Use an absolute device path for
23538 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
23539
23540 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
23541
23542 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
23543 handling of multiple abstraction modules.
23544
23545 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
23546
23547 Fix a bug resulting in black screen when loading Linux using a
23548 packed video mode.
23549
23550 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
23551 function.
23552
23553 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
23554 (grub_vbe_bios_getset_dac_palette_width): New function.
23555 (grub_vbe_bios_get_dac_palette_width)
23556 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
23557 grub_vbe_bios_getset_dac_palette_width()).
23558
23559 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
23560 check for return status.
23561 (grub_vbe_get_video_mode_info): When getting information for a packed
23562 mode (<= 8 bpp), obtain DAC palette width using
23563 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
23564 {red,green,blue}_mark_size.
23565
23566 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
23567
23568 * commands/search.c (options): Fix help output to match actual code.
23569
23570 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
23571
23572 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
23573 of homegrown code.
23574
23575 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23576
23577 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
23578 on XFS or ReiserFS.
23579
23580 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23581
23582 Support Apple partition map with sector size different from 512 bytes.
23583
23584 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
23585 (apple_partition_map_iterate): Respect 'aheader.blocksize'
23586 and 'apart.partmap_size'.
23587
23588 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23589 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
23590
23591 Fix cpuid command.
23592
23593 * commands/i386/cpuid.c (options): New variable.
23594 (grub_cmd_cpuid): Return real error.
23595 (GRUB_MOD_INIT(cpuid)): Declare options.
23596
23597 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
23598
23599 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
23600 valid.
23601
23602 2009-07-31 Bean <bean123ch@gmail.com>
23603
23604 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
23605 log2_inode.
23606 (grub_fshelp_node): Move inode field to the end.
23607 (grub_xfs_data): Remove inode field.
23608 (grub_xfs_inode_block): Calculate inode size using sblock.
23609 (grub_xfs_inode_offset): Likewise.
23610 (grub_xfs_read_inode): Calculate inode size using sblock.
23611 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
23612 (grub_xfs_iterate_dir): Calculate inode size using sblock.
23613 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
23614 to match inode size.
23615 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
23616 not accessible when data is null.
23617 (grub_xfs_open): Likewise.
23618
23619 2009-07-31 Bean <bean123ch@gmail.com>
23620
23621 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
23622 Don't change pv->disk if it's already set.
23623
23624 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
23625 (grub_raid_register): ... here.
23626 (grub_raid_rescan): Removed.
23627
23628 * include/grub/raid.h (grub_raid_rescan): Removed.
23629
23630 * util/grub-fstest.c: Remove include file <grub/raid.h>.
23631 (fstest): Replace grub_raid_rescan with module fini function followed
23632 by init function.
23633
23634 * util/grub-probe.c: Add include file <grub/raid.h>.
23635 (probe_raid_level): New function.
23636 (probe): Detect abstraction by walking the disk device, support two
23637 level of abstraction (LVM on RAID) when detecting partition map.
23638
23639 2009-07-31 Pavel Roskin <proski@gnu.org>
23640
23641 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
23642 to grub_zalloc(), it was erroneous.
23643 Reported by Bean <bean123ch@gmail.com>
23644
23645 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
23646
23647 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
23648 embedding zone, not only the first one.
23649
23650 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
23651
23652 * term/gfxterm.c (clear_char): New function.
23653 (grub_virtual_screen_setup): Use clear_char.
23654 (scroll_up): Likewise.
23655 (grub_virtual_screen_cls): Likewise.
23656
23657 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
23658
23659 * util/deviceiter.c (get_acceleraid_disk_name): New static
23660 function.
23661 (grub_util_iterate_devices): Handle Accelraid devices.
23662 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
23663
23664 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
23665
23666 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
23667 separator for the suggested gfxpayload string (';' collides with the
23668 parser and needs escaping).
23669
23670 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
23671
23672 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
23673 Clear direction flag before jumping to OS.
23674 (grub_multiboot2_real_boot): Likewise.
23675
23676 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
23677
23678 * util/i386/pc/grub-install: Fix parsing of --disk-module
23679 option.
23680
23681 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
23682
23683 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
23684 when embedding.
23685
23686 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
23687
23688 * util/grub-mkconfig.in (package_version): New variable.
23689 Use it do display the version.
23690
23691 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
23692
23693 * kern/file.c (grub_file_open): Revert to previous check with
23694 grub_errno.
23695
23696 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
23697
23698 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
23699 from help line. It's out of sync with code.
23700
23701 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
23702
23703 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
23704 entries on failed boot.
23705
23706 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
23707
23708 * kern/file.c (grub_file_open): Fix an error check.
23709
23710 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
23711
23712 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
23713 partition map couldn't be identified.
23714
23715 2009-07-23 Pavel Roskin <proski@gnu.org>
23716
23717 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
23718 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
23719 case of little endian words becomes just an optimization.
23720 Respect const modifier.
23721 (md5_final): Use code that doesn't depend on endianness.
23722
23723 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
23724 to avoid loss of upper bits if align is unsigned and shorter
23725 than addr.
23726
23727 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
23728
23729 UUID support for UFS
23730
23731 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
23732 (grub_ufs_uuid): New function.
23733 (grub_ufs_fs): add .uuid
23734
23735 2009-07-21 Pavel Roskin <proski@gnu.org>
23736
23737 * kern/dl.c (grub_dl_check_header): Make static.
23738
23739 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
23740
23741 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
23742 add drivemap for Vista. It breaks Windows 7.
23743
23744 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
23745
23746 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
23747 128 bytes
23748
23749 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23750
23751 Add BFS support
23752
23753 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
23754 (grub_fstest_SOURCES): Likewise.
23755 (pkglib_MODULES): Add befs.mod.
23756 (befs_mod_SOURCES): New variable.
23757 (befs_mod_CFLAGS): Likewise.
23758 (befs_mod_LDFLAGS): Likewise.
23759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
23760 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23761 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23762 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23763 (grub_setup_SOURCES): Likewise.
23764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23766 (grub_setup_SOURCES): Likewise.
23767 * fs/befs.c: New file.
23768 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
23769 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
23770 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
23771 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
23772 (B_KEY_INDEX_ALIGN): New declaration.
23773 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
23774 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
23775 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
23776 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
23777 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
23778 (grub_afs_mount) [MODE_BFS]: Likewise.
23779 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
23780 (grub_afs_fs): Use GRUB_AFS_FSNAME
23781 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
23782 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
23783 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
23784 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
23785
23786 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
23787
23788 * util/getroot.c (find_root_device): Add support for MacOSX.
23789 * util/hostdisk.c: Likewise.
23790
23791 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23792
23793 * font/font.c (find_glyph): Check whether a font is present to avoid
23794 segmentation fault.
23795
23796 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
23797
23798 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
23799
23800 2009-07-20 Pavel Roskin <proski@gnu.org>
23801
23802 * configure.ac: Trim excessively wordy excuses.
23803
23804 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23805
23806 Add symlink, mtime and label support to AtheFS.
23807
23808 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
23809 (grub_afs_iterate_dir): Handle symlinks.
23810 (grub_afs_open): Use grub_afs_read_symlink.
23811 (grub_afs_dir): Likewise.
23812 Pass mtime.
23813 (grub_afs_label): New function.
23814 (grub_afs_fs): Add grub_afs_label.
23815 (grub_afs_read_symlink): New function.
23816
23817 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23818
23819 Fix AtheFS support.
23820
23821 * fs/afs.c: Fix comments style.
23822 (grub_afs_blockrun): Declare as packed.
23823 (grub_afs_datastream): Likewise.
23824 (grub_afs_bnode): Likewise.
23825 (grub_afs_btree): Likewise.
23826 (grub_afs_sblock): Likewise.
23827 Declare `name' as char.
23828 (grub_afs_inode): Declare as packed.
23829 Change void *vnode to grub_uint32_t unused.
23830 (grub_afs_iterate_dir): Check that key_size is positive.
23831 (grub_afs_mount): Don't read superblock twice.
23832 (grub_afs_dir): Don't free node in case of error,
23833 grub_fshelp_find_file already handles this.
23834 (grub_afs_open): Likewise.
23835
23836 2009-07-19 Pavel Roskin <proski@gnu.org>
23837
23838 * Makefile.in: Remove LIBLZO and enable_lzo.
23839 * conf/i386-pc.rmk: Remove lzo support.
23840 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
23841 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
23842 support.
23843 * kern/i386/pc/lzo1x.S: Remove.
23844 * kern/i386/pc/startup.S: Remove lzo support.
23845 * util/i386/pc/grub-mkimage.c: Likewise.
23846
23847 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
23848
23849 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
23850 * fs/xfs.c (grub_xfs_dir): Likewise.
23851 * fs/afs.c (grub_afs_dir): Likewise.
23852 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
23853 (grub_iso9660_open): Likewise.
23854 * fs/jfs.c (grub_jfs_open): Likewise.
23855 * fs/ext2.c (grub_ext2_dir): Likewise.
23856 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
23857 * script/sh/lexer.c (grub_script_yylex): Likewise.
23858
23859 2009-07-16 Pavel Roskin <proski@gnu.org>
23860
23861 * configure.ac: Never add "-c" to CFLAGS.
23862
23863 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
23864
23865 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
23866 grub_cv_cc_efiemu should be used.
23867
23868 * configure.ac: Typo fixes.
23869
23870 * kern/mm.c (grub_zalloc): New function.
23871 (grub_debug_zalloc): Likewise.
23872 * include/grub/mm.h: Declare grub_zalloc() and
23873 grub_debug_zalloc().
23874 * util/misc.c (grub_zalloc): New function.
23875 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
23876 instead of grub_malloc(), remove unneeded initializations.
23877 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
23878 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
23879 * commands/parttool.c (grub_cmd_parttool): Likewise.
23880 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
23881 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
23882 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
23883 * disk/usbms.c (grub_usbms_finddevs): Likewise.
23884 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
23885 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
23886 (grub_cmd_efiemu_pnvram): Likewise.
23887 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
23888 * fs/iso9660.c (grub_iso9660_mount): Likewise.
23889 (grub_iso9660_iterate_dir): Likewise.
23890 * fs/jfs.c (grub_jfs_opendir): Likewise.
23891 * fs/ntfs.c (list_file): Likewise.
23892 (grub_ntfs_mount): Likewise.
23893 * kern/disk.c (grub_disk_open): Likewise.
23894 * kern/dl.c (grub_dl_load_core): Likewise.
23895 * kern/elf.c (grub_elf_file): Likewise.
23896 * kern/env.c (grub_env_context_open): Likewise.
23897 (grub_env_set): Likewise.
23898 (grub_env_set_data_slot): Likewise.
23899 * kern/file.c (grub_file_open): Likewise.
23900 * kern/fs.c (grub_fs_blocklist_open): Likewise.
23901 * loader/i386/multiboot.c (grub_module): Likewise.
23902 * loader/xnu.c (grub_xnu_create_key): Likewise.
23903 (grub_xnu_create_value): Likewise.
23904 * normal/main.c (grub_normal_add_menu_entry): Likewise.
23905 (read_config_file): Likewise.
23906 * normal/menu_entry.c (make_screen): Likewise.
23907 * partmap/sun.c (sun_partition_map_iterate): Likewise.
23908 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
23909 * script/sh/script.c (grub_script_parse): Likewise.
23910 * video/bitmap.c (grub_video_bitmap_create): Likewise.
23911 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
23912 * video/readers/png.c (grub_png_output_byte): Likewise.
23913 (grub_video_reader_png): Likewise.
23914
23915 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
23916
23917 Enable all targets that can be built by default
23918
23919 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
23920 grub-mkfont and grub-fstest if they can be built
23921
23922 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
23923
23924 Fix hang and segmentation fault in grub-emu-usb
23925
23926 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
23927 * util/usb.c (grub_libusb_devices): likewise
23928 (grub_libusb_init): rename to ...
23929 (GRUB_MOD_INIT (libusb)):...this
23930 (grub_libusb_fini): rename to ..
23931 (GRUB_MOD_FINI (libusb)):...this
23932 * disk/usbms.c (grub_usbms_transfer): fix retry logic
23933 * include/grub/disk.h (grub_raid_init): removed, it's useless
23934 (grub_raid_fini): likewise
23935 (grub_lvm_init): likewise
23936 (grub_lvm_fini): likewise
23937 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
23938 by grub_init_all
23939
23940 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
23941
23942 Fix libusb
23943
23944 * Makefile.in (LIBUSB): new macro
23945 * genmk.rb (Utility/print_tail): new method
23946 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
23947 (top level): call util.print_tail at the end.
23948
23949 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
23950
23951 Make FreeBSD accept zpool.cache
23952
23953 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
23954 type is /boot/zfs/zpool.cache
23955
23956 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
23957
23958 Fix 64-bit efiemu
23959
23960 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
23961 correct wrong typedef
23962 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
23963
23964 2009-07-15 Pavel Roskin <proski@gnu.org>
23965
23966 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
23967 * kern/disk.c (struct grub_disk_cache): Likewise.
23968
23969 * commands/probe.c (options): Typo fix.
23970
23971 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
23972 Increase to 0x5a to accommodate FAT32. Adjust other offsets
23973 accordingly.
23974 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
23975
23976 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
23977 the end of "Error" to make the message more readable.
23978
23979 * boot/i386/pc/boot.S (kernel_segment): Remove.
23980 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
23981 for destination.
23982
23983 * boot/i386/pc/boot.S (boot_version): Remove.
23984 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
23985 Remove.
23986
23987 * include/grub/i386/pc/boot.h: Sort all offsets.
23988 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
23989 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
23990 * boot/i386/pc/boot.S: Assert location of every offset listed in
23991 include/grub/i386/pc/boot.h.
23992
23993 2009-07-13 Pavel Roskin <proski@gnu.org>
23994
23995 * include/grub/i386/coreboot/machine.h: Rename
23996 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
23997 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
23998 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
23999
24000 * kern/dl.c: Force native word size to suppress warnings when
24001 compiling grub-emu.
24002
24003 * kern/device.c (grub_device_iterate): Change struct part_ent to
24004 hold the name, not a pointer to it. Use one grub_malloc() per
24005 partition, not two. Free partition_name if grub_malloc() fails.
24006 Set ents to NULL only before grub_partition_iterate() is called.
24007
24008 2009-07-11 Bean <bean123ch@gmail.com>
24009
24010 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
24011 childname.
24012
24013 2009-07-10 Bean <bean123ch@gmail.com>
24014 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
24015
24016 * kern/ieee1275/openfw.c (grub_children_iterate)
24017 (grub_devalias_iterate): Fix size evaluation for property or path
24018 strings, which was broken since r2132.
24019
24020 2009-07-07 Pavel Roskin <proski@gnu.org>
24021
24022 * commands/search.c (search_file): Merge into ...
24023 (search_fs): ... this. Accept search type as argument.
24024 (grub_cmd_search): Pass search type to search_fs().
24025
24026 * include/grub/util/console.h: New file.
24027 * util/console.c: Use it instead of grub/machine/console.h.
24028 * util/grub-emu.c: Likewise.
24029
24030 * lib/arg.c (find_long_option): Remove.
24031 (find_long): Add `len' argument, make `s' const char *.
24032 (grub_arg_parse): Parse long options in place, not in a
24033 temporary buffer.
24034
24035 2009-07-06 Pavel Roskin <proski@gnu.org>
24036
24037 * commands/search.c (search_fs): Fix potential NULL pointer
24038 dereference.
24039
24040 * commands/search.c (search_fs): Replace QUID macro with quid_fn
24041 function pointer.
24042
24043 2009-07-06 Daniel Mierswa <impulze@impulze.org>
24044
24045 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
24046 comparison.
24047
24048 2009-07-05 Pavel Roskin <proski@gnu.org>
24049
24050 * include/grub/i386/linux.h (struct linux_kernel_params):
24051 Restore padding3, it's still needed.
24052
24053 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
24054 FreeBSD.
24055 * util/osdetect.lua: Likewise.
24056
24057 2009-07-05 Bean <bean123ch@gmail.com>
24058
24059 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
24060
24061 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
24062 (grub_lua_getenv): Likewise.
24063 (grub_lua_setenv): Likewise.
24064 (save_errno): New function.
24065 (push_result): Likewise.
24066 (grub_lua_enum_device): Likewise.
24067 (grub_lua_enum_file): Likewise.
24068 (grub_lua_file_open): Likewise.
24069 (grub_lua_file_close): Likewise.
24070 (grub_lua_file_seek): Likewise.
24071 (grub_lua_file_read): Likewise.
24072 (grub_lua_file_getline): Likewise.
24073 (grub_lua_file_getsize): Likewise.
24074 (grub_lua_file_getpos): Likewise.
24075 (grub_lua_file_eof): Likewise.
24076 (grub_lua_file_exist): Likewise.
24077 (grub_lua_add_menu): Likewise.
24078
24079 * script/lua/grub_lua.h (isupper): New inline function.
24080 (islower): Likewise.
24081 (ispunct): Likewise.
24082 (isxdigit): Likewise.
24083 (strcspn): Change to normal function.
24084 (strpbkr): New function declaration.
24085 (memchr): Likewise.
24086
24087 * script/lua/grub_main.c (scan_str): New function.
24088 (strcspn): Likewise.
24089 (strpbrk): Likewise.
24090 (memchr): Likewise.
24091
24092 * script/lua/linit.c (lualibs): Enable the string library.
24093
24094 * util/osdetect.lua: New file.
24095
24096 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
24097
24098 * include/grub/i386/linux.h (struct linux_kernel_params): Add
24099 `capabilities' member.
24100
24101 2009-07-02 Pavel Roskin <proski@gnu.org>
24102
24103 * genparttoollist.sh: Add missing newline at the end.
24104
24105 2009-07-01 Pavel Roskin <proski@gnu.org>
24106
24107 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
24108
24109 * util/hostdisk.c (open_device): Remove `const' from
24110 `sysctl_size', as sysctlbyname() can change it (in this case it
24111 doesn't actually happen).
24112
24113 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
24114 using signed long int constants.
24115
24116 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
24117 constant to avoid a warning on FreeBSD.
24118
24119 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
24120 where it's needed.
24121
24122 * Makefile.in: Install include/grub/machine symlink.
24123
24124 * Makefile.in: When installing symlinks, use "cp -fR", which
24125 works on FreeBSD and MacOSX.
24126 From Yves Blusseau <cl7m42e02@sneakemail.com>
24127
24128 * kern/dl.c (grub_dl_resolve_symbol): Make static.
24129 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
24130
24131 * util/misc.c: Move grub_reboot() and grub_halt() ...
24132 * util/grub-emu.c: ... here. Make main_env static.
24133 * include/grub/util/misc.h: Remove main_env.
24134
24135 * kern/mm.c: Use correct format to print size_t.
24136
24137 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
24138 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
24139 * kern/powerpc/dl.c: Likewise.
24140 * kern/sparc64/dl.c: Likewise.
24141 * kern/x86_64/dl.c: Likewise.
24142
24143 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24144
24145 Fix grub-emu build on sparc64-ieee1275.
24146
24147 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
24148 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
24149
24150 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24151
24152 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
24153 (grub_reboot, grub_halt): New functions.
24154
24155 * util/i386/pc/misc.c: Delete. Update all users.
24156 * util/sparc64/ieee1275/misc.c: Likewise.
24157 * util/powerpc/ieee1275/misc.c: Likewise.
24158
24159 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24160
24161 * conf/i386.rmk (setjmp_mod_SOURCES)
24162 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
24163 * conf/common.rmk (setjmp_mod_SOURCES)
24164 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
24165 to use $(target_cpu).
24166 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
24167 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
24168 * conf/powerpc-ieee1275.rmk: Likewise.
24169 * conf/sparc64-ieee1275.rmk: Likewise.
24170
24171 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
24172 $(target_cpu) for kern/$(target_cpu)/dl.c.
24173 * conf/i386-efi.rmk: Likewise.
24174 * conf/i386-ieee1275.rmk: Likewise.
24175 * conf/x86_64-efi.rmk: Likewise.
24176 * conf/i386-coreboot.rmk: Likewise.
24177 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
24178 $(target_cpu) for kern/$(target_cpu)/dl.c and for
24179 kern/$(target_cpu)/cache.S.
24180 * conf/sparc64-ieee1275.rmk: Likewise.
24181
24182 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24183
24184 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
24185 type to `grub_uint8_t', and adjust `padding9' accordingly.
24186
24187 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24188
24189 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
24190
24191 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
24192 assembly in final jump, using register constraints.
24193
24194 (grub_linux_boot): For text mode, initialize `have_vga' using
24195 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
24196
24197 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
24198 right before the final jump.
24199
24200 Set `video_mode' to 0x3.
24201
24202 Document initialization of `video_page', `video_mode' and
24203 `video_ega_bx'.
24204
24205 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24206
24207 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
24208 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
24209 and set GRUB_LINUX_FLAG_QUIET appropriately.
24210
24211 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24212
24213 Fix build on Debian / sparc.
24214
24215 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
24216
24217 2009-06-28 Pavel Roskin <proski@gnu.org>
24218
24219 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
24220 fix a warning.
24221
24222 * util/grub.d/10_linux.in: Match SUSE style initrd names.
24223
24224 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24225
24226 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
24227 `err'.
24228
24229 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24230
24231 Revert r2338.
24232
24233 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
24234 file can't be opened. grub_file_open() is already supposed to set
24235 grub_errno / grub_errmsg appropriately.
24236 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24237
24238 2009-06-27 Pavel Roskin <proski@gnu.org>
24239 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24240
24241 * include/grub/dl.h: Include grub/elf.h.
24242 (struct grub_dl): Add symtab field.
24243 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
24244 GRUB_MODULES_MACHINE_READONLY.
24245 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
24246 of the header for read-only modules.
24247 (grub_dl_unload): Free mod->symtab for read-only modules.
24248 * kern/i386/dl.c: Use mod->symtab.
24249 * kern/powerpc/dl.c: Likewise.
24250 * kern/sparc64/dl.c: Likewise.
24251 * kern/x86_64/dl.c: Likewise.
24252
24253 * conf/i386-qemu.rmk: New file.
24254 * kern/i386/qemu/startup.S: Likewise.
24255 * kern/i386/qemu/mmap.c: Likewise.
24256 * boot/i386/qemu/boot.S: Likewise.
24257 * include/grub/i386/qemu/time.h: Likewise.
24258 * include/grub/i386/qemu/serial.h: Likewise.
24259 * include/grub/i386/qemu/kernel.h: Likewise.
24260 * include/grub/i386/qemu/console.h: Likewise.
24261 * include/grub/i386/qemu/boot.h: Likewise.
24262 * include/grub/i386/qemu/init.h: Likewise.
24263 * include/grub/i386/qemu/machine.h: Likewise.
24264 * include/grub/i386/qemu/loader.h: Likewise.
24265 * include/grub/i386/qemu/memory.h: Likewise.
24266
24267 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
24268 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
24269 [qemu] (pkglib_IMAGES): Add `boot.img'.
24270 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
24271 [qemu] (boot_img_FORMAT): New variables.
24272 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
24273 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
24274 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
24275 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24276 [qemu] (kernel_img_FORMAT): New variables.
24277
24278 * configure.ac: Recognise `i386-qemu'.
24279
24280 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
24281 (for no compression).
24282 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
24283 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
24284 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
24285 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
24286 ifdefs).
24287
24288 2009-06-27 Pavel Roskin <proski@gnu.org>
24289
24290 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
24291 read.
24292 * efiemu/prepare32.c: Likewise.
24293 * efiemu/prepare64.c: Likewise.
24294
24295 2009-06-26 Pavel Roskin <proski@gnu.org>
24296
24297 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
24298 * include/grub/elf.h: Define symbols without "32" or "64" based
24299 on GRUB_TARGET_WORDSIZE.
24300 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
24301 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
24302 ELF definitions.
24303 * efiemu/loadcore64.c: Likewise.
24304 * loader/i386/bsd32.c: Likewise.
24305 * loader/i386/bsd64.c: Likewise.
24306 * kern/dl.c: Remove own ELF definitions.
24307 * util/i386/efi/grub-mkimage.c: Likewise.
24308
24309 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
24310
24311 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
24312 segment 0x0 unconditionally, because the reference generated by
24313 GAS is an absolute address.
24314
24315 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24316
24317 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
24318 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
24319
24320 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24321
24322 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
24323 indexes. Check for -f explicitly.
24324 (search_file): Improve error message.
24325 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
24326
24327 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24328
24329 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
24330 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
24331
24332 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24333
24334 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
24335 * conf/i386-ieee1275.rmk: Likewise.
24336 * conf/i386-coreboot.rmk: Likewise.
24337
24338 * kern/i386/pc/startup.S (grub_stop): Remove function.
24339 * kern/i386/ieee1275/startup.S: Likewise.
24340 * kern/i386/coreboot/startup.S: Likewise.
24341 * kern/i386/misc.S (grub_stop): New function.
24342
24343 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24344
24345 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
24346 * kern/i386/realmode.S (real_to_prot): ... to here.
24347
24348 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24349
24350 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
24351 with `kernel.img'.
24352 (kernel_elf_SOURCES): Rename to ...
24353 (kernel_img_SOURCES): ... this.
24354 (kernel_elf_HEADERS): Rename to ...
24355 (kernel_img_HEADERS): ... this. Update all users.
24356 (kernel_elf_ASFLAGS): Rename to ...
24357 (kernel_img_ASFLAGS): ... this.
24358 (kernel_elf_CFLAGS): Rename to ...
24359 (kernel_img_CFLAGS): ... this.
24360 (kernel_elf_LDFLAGS): Rename to ...
24361 (kernel_img_LDFLAGS): ... this.
24362 * conf/i386-coreboot.rmk: Likewise.
24363 * conf/powerpc-ieee1275.rmk: Likewise.
24364
24365 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
24366 with "kernel.img".
24367
24368 2009-06-21 Pavel Roskin <proski@gnu.org>
24369
24370 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
24371 to match nested functions.
24372 * loader/sparc64/ieee1275/linux.c: Likewise.
24373
24374 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
24375
24376 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24377
24378 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
24379 all i386 platforms.
24380
24381 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24382
24383 Fix asm file handling on ELF, and remove workarounds.
24384
24385 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
24386 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
24387 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
24388 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
24389
24390 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
24391
24392 Load BSD ELF modules
24393
24394 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
24395 and loader/i386/bsd64.c
24396 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
24397 (FREEBSD_MODTYPE_ELF_MODULE): New definition
24398 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
24399 (grub_freebsd_load_elfmodule32): New declaration
24400 (grub_freebsd_load_elfmoduleobj64): Likewise
24401 (grub_freebsd_load_elf_meta32): Likewise
24402 (grub_freebsd_load_elf_meta64): Likewise
24403 (grub_freebsd_add_meta): Likewise
24404 (grub_freebsd_add_meta_module): Likewise
24405 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
24406 (grub_freebsd_add_meta_module): Likewise and move module-specific
24407 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
24408 (grub_cmd_freebsd): Add elf-kernel specific parts
24409 based on grub_freebsd_add_meta_module
24410 (grub_cmd_freebsd_module): Add type parsing moved from
24411 grub_freebsd_add_meta_module
24412 (grub_cmd_freebsd_module_elf): New function
24413 (cmd_freebsd_module_elf): New variable
24414 (GRUB_MOD_INIT): Register freebsd_module_elf
24415 * loader/i386/bsd32.c: New file
24416 * loader/i386/bsd64.c: Likewise
24417 * loader/i386/bsdXX.c: Likewise
24418 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
24419 (grub_elf64_load): Likewise
24420 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
24421 All users updated
24422 (grub_elf64_load_hook_t): Likewise
24423
24424 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
24425
24426 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
24427 variable.
24428 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
24429 don't write a menu entry for recovery mode.
24430
24431 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24432
24433 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
24434 after it's no longer needed.
24435
24436 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24437
24438 * include/grub/i386/loader.h (grub_linux_prot_size)
24439 (grub_linux_tmp_addr, grub_linux_real_addr)
24440 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
24441 GRUB_MACHINE_PCBIOS.
24442 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
24443 common grub_util_info() call to ...
24444 (generate_image): ... here.
24445 Fix use of uninitialized memory, comparison of signed with
24446 unsigned integers and memory leak.
24447 Remove bogus module address message.
24448
24449 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24450
24451 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
24452 grub_raid_register
24453 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
24454
24455 2009-06-19 Pavel Roskin <proski@gnu.org>
24456
24457 * configure.ac: Remove stray AC_MSG_CHECKING.
24458
24459 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
24460
24461 * disk/scsi.c (grub_scsi_open): use continue instead of big if
24462
24463 2009-06-18 Pavel Roskin <proski@gnu.org>
24464
24465 * conf/common.rmk: Add fs_file.mod.
24466 * disk/fs_file.c: New file.
24467 * include/grub/disk.h (enum grub_disk_dev_id): Add
24468 GRUB_DISK_DEVICE_FILE_ID.
24469
24470 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24471
24472 Fix build with Apple's toolchain. Part 2
24473
24474 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
24475 a fake start
24476
24477 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24478
24479 Fix build with Apple's toolchain. Part 1
24480
24481 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
24482 for long calls
24483 * configure.ac: remove a leftover AC_MSG_RESULT
24484 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
24485 Apple's toolchain
24486
24487 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24488
24489 Fix warnings
24490
24491 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
24492 (decomp_block): initialize ch
24493 use grub_memcpy instead of memcpy
24494
24495 2009-06-17 Pavel Roskin <proski@gnu.org>
24496
24497 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
24498 version, use declarations needed to use vga_text as the startup
24499 console.
24500
24501 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
24502 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
24503 the kernel.
24504 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
24505 and grub_at_keyboard_fini(), it's done on module load and
24506 unload.
24507
24508 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
24509
24510 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
24511 file can't be found.
24512 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24513
24514 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
24515
24516 Fix newline handling
24517
24518 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
24519 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
24520 (grub_script_yylex): don't segfault on unterminated script
24521 newline terminates command and variable
24522
24523 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
24524
24525 avoid double grub_adjust_range call. Bug reported by David Simner
24526
24527 * kern/disk.c (grub_disk_write): change to raw disk access before
24528 calling disk_read
24529
24530 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
24531
24532 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
24533 spaces, for the benefit of help2man.
24534 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24535
24536 2009-06-16 Pavel Roskin <proski@gnu.org>
24537
24538 * kern/i386/halt.c: Include grub/machine/init.h.
24539 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
24540
24541 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
24542
24543 * util/grub.d/30_os-prober.in: Use ${root} in the generated
24544 drivemap menuentry.
24545
24546 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
24547
24548 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
24549 `echo' command.
24550
24551 2009-06-16 Pavel Roskin <proski@gnu.org>
24552
24553 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
24554 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
24555 save %dx, we only need %dl and we never change it.
24556 * boot/i386/pc/cdboot.S: Don't set the root drive.
24557 * boot/i386/pc/pxeboot.S: Likewise.
24558 * include/grub/i386/pc/boot.h: Remove
24559 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
24560 GRUB_BOOT_MACHINE_DRIVE_CHECK.
24561 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
24562 * kern/i386/pc/init.c (make_install_device): Remove references
24563 to grub_root_drive.
24564 * kern/i386/pc/startup.S: Likewise.
24565 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
24566
24567 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
24568
24569 xnu_uuid command
24570
24571 * commands/xnu_uuid.c: new file
24572 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
24573 (xnu_uuid_mod_SOURCES): new variable
24574 (xnu_uuid_mod_CFLAGS): likewise
24575 (xnu_uuid_mod_LDFLAGS): likewise
24576 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
24577 * conf/i386-ieee1275.rmk: likewise
24578 * conf/i386-pc.rmk: likewise
24579 * conf/powerpc-ieee1275.rmk: likewise
24580 * conf/sparc64-ieee1275.rmk: likewise
24581 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
24582
24583 2009-06-16 Pavel Roskin <proski@gnu.org>
24584
24585 * configure.ac: Avoid '==' in test command, it's not portable.
24586
24587 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
24588
24589 Probe command
24590
24591 * commands/probe.c: new file
24592 * conf/common.rmk (pkglib_MODULES): add probe.mod
24593 (probe_mod_SOURCES): new variable
24594 (probe_mod_CFLAGS): likewise
24595 (probe_mod_LDFLAGS): likewise
24596 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
24597 * conf/i386-ieee1275.rmk: likewise
24598 * conf/i386-pc.rmk: likewise
24599 * conf/powerpc-ieee1275.rmk: likewise
24600 * conf/sparc64-ieee1275.rmk: likewise
24601
24602 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
24603
24604 Fix handling of string like \"hello\" and "a
24605 b"
24606
24607 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
24608 (grub_script_yylex): fix parsing of quoting, escaping and newline
24609
24610 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
24611
24612 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
24613 handling
24614
24615 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
24616
24617 * util/grub-mkconfig.in: Fix parsing of --output option.
24618
24619 2009-06-12 Pavel Roskin <proski@gnu.org>
24620
24621 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
24622 genmk.rb don't need to be generated or installed.
24623
24624 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24625
24626 * commands/i386/pc/drivemap_int13h.S: add more comments
24627
24628 2009-06-11 Pavel Roskin <proski@gnu.org>
24629
24630 * Makefile.in (uninstall): Uninstall manuals.
24631
24632 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
24633 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
24634 and update-grub_lib in two places.
24635 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
24636
24637 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
24638 a compiler warning.
24639
24640 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
24641 `entry_lo' to fix variable shadowing.
24642
24643 2009-06-11 Christian Franke <franke@computer.org>
24644
24645 * kern/misc.c (__enable_execute_stack): Add missing return type
24646 to prevent gcc warning.
24647
24648 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
24649
24650 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
24651
24652 2009-06-11 Pavel Roskin <proski@gnu.org>
24653
24654 * Makefile.in: Don't rely on any scripts being executable.
24655 Always use $(SHELL) to run shell scripts.
24656
24657 * configure.ac: Always define ___main if using -nostdlib. This
24658 fixes tests on Cygwin.
24659
24660 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
24661
24662 UDF fix
24663
24664 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
24665 is in bytes and not in blocks
24666
24667 2009-06-11 Pavel Roskin <proski@gnu.org>
24668
24669 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
24670 warning.
24671
24672 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
24673
24674 * util/grub.d/30_os-prober.in: Fix a comment. Source
24675 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
24676 to set the root device. Place drivemap command in the generated
24677 chain entry.
24678
24679 2009-06-11 Pavel Roskin <proski@gnu.org>
24680
24681 * configure.ac: Remove host_m32. Issues with 64-bit utilities
24682 have long been resolved.
24683
24684 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
24685
24686 * util/grub.d/10_linux.in: Capitalise "Linux".
24687
24688 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
24689
24690 2009-06-11 Pavel Roskin <proski@gnu.org>
24691
24692 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
24693 fix a gcc warning and ensure that the function won't ever exit.
24694
24695 * kern/i386/ieee1275/init.c: Add missing prototype for
24696 grub_stop_floppy().
24697
24698 * loader/ieee1275/multiboot2.c [__i386__]: Include
24699 grub/cpu/multiboot.h.
24700
24701 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
24702 casts to short - they are not portable and cause warnings. Fix
24703 use of uninitialized values in input_buf. Use ARRAY_SIZE.
24704
24705 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
24706
24707 Drivemap fixes
24708
24709 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
24710 new function
24711 (grub_get_root_biosnumber_saved): new variable
24712 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
24713 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
24714 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
24715 %dx after the call if necessary
24716 * conf/common.rmk (pkglib_MODULES): remove boot.mod
24717 (boot_mod_SOURCES): remove
24718 (boot_mod_CFLAGS): remove
24719 (boot_mod_LDFLAGS): remove
24720 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
24721 (boot_mod_SOURCES): new variable
24722 (boot_mod_CFLAGS): likewise
24723 (boot_mod_LDFLAGS): likewise
24724 * conf/i386-efi.rmk: likewise
24725 * conf/i386-ieee1275.rmk: likewise
24726 * conf/i386-pc.rmk: likewise
24727 * conf/powerpc-ieee1275.rmk: likewise
24728 * conf/sparc64-ieee1275.rmk: likewise
24729 * conf/x86_64-efi.rmk: likewise
24730 * include/grub/i386/pc/biosnum.h: new file
24731 * lib/i386/pc/biosnum.c: likewise
24732 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
24733 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
24734 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
24735
24736 2009-06-10 Pavel Roskin <proski@gnu.org>
24737
24738 * io/gzio.c (test_header): Don't reuse one buffer for all data.
24739 Use separate variables. Read only the file size at the end, but
24740 not the checksum that we don't use.
24741
24742 * kern/file.c (grub_file_read): Use void pointer for the buffer.
24743 Adjust all callers.
24744
24745 * kern/ieee1275/openfw.c: Remove libc includes.
24746 * kern/ieee1275/cmain.c: Likewise.
24747 * include/grub/ieee1275/ieee1275.h: Likewise.
24748
24749 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
24750 compiler warnings.
24751
24752 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
24753
24754 * Makefile.in: Remove all trailing whitespace.
24755 * conf/i386-pc.rmk: Likewise.
24756 * conf/powerpc-ieee1275.rmk: Likewise.
24757 * conf/sparc64-ieee1275.rmk: Likewise.
24758 * docs/grub.texi: Likewise.
24759 * docs/texinfo.tex: Likewise.
24760 * disk/fs_uuid.c: Likewise.
24761 * disk/lvm.c: Likewise.
24762 * disk/scsi.c: Likewise.
24763 * disk/ata.c: Likewise.
24764 * disk/ieee1275/ofdisk.c: Likewise.
24765 * disk/i386/pc/biosdisk.c: Likewise.
24766 * disk/host.c: Likewise.
24767 * disk/raid.c: Likewise.
24768 * disk/efi/efidisk.c: Likewise.
24769 * disk/usbms.c: Likewise.
24770 * disk/memdisk.c: Likewise.
24771 * disk/loopback.c: Likewise.
24772 * kern/powerpc/dl.c: Likewise.
24773 * kern/device.c: Likewise.
24774 * kern/dl.c: Likewise.
24775 * kern/sparc64/dl.c: Likewise.
24776 * kern/ieee1275/ieee1275.c: Likewise.
24777 * kern/term.c: Likewise.
24778 * kern/fs.c: Likewise.
24779 * kern/i386/dl.c: Likewise.
24780 * kern/i386/pc/startup.S: Likewise.
24781 * kern/i386/pc/init.c: Likewise.
24782 * kern/i386/pc/mmap.c: Likewise.
24783 * kern/i386/pc/lzo1x.S: Likewise.
24784 * kern/i386/ieee1275/init.c: Likewise.
24785 * kern/i386/realmode.S: Likewise.
24786 * kern/i386/tsc.c: Likewise.
24787 * kern/partition.c: Likewise.
24788 * kern/corecmd.c: Likewise.
24789 * kern/file.c: Likewise.
24790 * kern/efi/efi.c: Likewise.
24791 * kern/efi/init.c: Likewise.
24792 * kern/efi/mm.c: Likewise.
24793 * kern/main.c: Likewise.
24794 * kern/err.c: Likewise.
24795 * kern/env.c: Likewise.
24796 * kern/disk.c: Likewise.
24797 * kern/generic/millisleep.c: Likewise.
24798 * kern/generic/rtc_get_time_ms.c: Likewise.
24799 * kern/misc.c: Likewise.
24800 * kern/parser.c: Likewise.
24801 * genmk.rb: Likewise.
24802 * configure.ac: Likewise.
24803 * boot/i386/pc/diskboot.S: Likewise.
24804 * boot/i386/pc/pxeboot.S: Likewise.
24805 * boot/i386/pc/boot.S: Likewise.
24806 * boot/i386/pc/lnxboot.S: Likewise.
24807 * boot/i386/pc/cdboot.S: Likewise.
24808 * parttool/pcpart.c: Likewise.
24809 * video/readers/tga.c: Likewise.
24810 * video/video.c: Likewise.
24811 * video/bitmap.c: Likewise.
24812 * lib/envblk.c: Likewise.
24813 * lib/i386/setjmp.S: Likewise.
24814 * fs/xfs.c: Likewise.
24815 * fs/afs.c: Likewise.
24816 * fs/fat.c: Likewise.
24817 * fs/ntfs.c: Likewise.
24818 * fs/udf.c: Likewise.
24819 * fs/affs.c: Likewise.
24820 * fs/iso9660.c: Likewise.
24821 * fs/hfs.c: Likewise.
24822 * fs/fshelp.c: Likewise.
24823 * fs/ext2.c: Likewise.
24824 * fs/jfs.c: Likewise.
24825 * fs/reiserfs.c: Likewise.
24826 * fs/hfsplus.c: Likewise.
24827 * fs/minix.c: Likewise.
24828 * fs/cpio.c: Likewise.
24829 * fs/sfs.c: Likewise.
24830 * fs/ufs.c: Likewise.
24831 * efiemu/prepare.c: Likewise.
24832 * efiemu/loadcore_common.c: Likewise.
24833 * efiemu/runtime/efiemu.sh: Likewise.
24834 * efiemu/runtime/efiemu.S: Likewise.
24835 * efiemu/runtime/efiemu.c: Likewise.
24836 * efiemu/pnvram.c: Likewise.
24837 * efiemu/main.c: Likewise.
24838 * efiemu/i386/pc/cfgtables.c: Likewise.
24839 * efiemu/i386/loadcore64.c: Likewise.
24840 * efiemu/i386/loadcore32.c: Likewise.
24841 * efiemu/loadcore.c: Likewise.
24842 * efiemu/symbols.c: Likewise.
24843 * efiemu/mm.c: Likewise.
24844 * include/grub/autoefi.h: Likewise.
24845 * include/grub/datetime.h: Likewise.
24846 * include/grub/term.h: Likewise.
24847 * include/grub/hfs.h: Likewise.
24848 * include/grub/lvm.h: Likewise.
24849 * include/grub/i386/tsc.h: Likewise.
24850 * include/grub/i386/linux.h: Likewise.
24851 * include/grub/i386/xnu.h: Likewise.
24852 * include/grub/i386/efiemu.h: Likewise.
24853 * include/grub/i386/pc/biosdisk.h: Likewise.
24854 * include/grub/i386/pc/memory.h: Likewise.
24855 * include/grub/i386/pc/vbe.h: Likewise.
24856 * include/grub/parttool.h: Likewise.
24857 * include/grub/video.h: Likewise.
24858 * include/grub/memory.h: Likewise.
24859 * include/grub/fs.h: Likewise.
24860 * include/grub/partition.h: Likewise.
24861 * include/grub/xnu.h: Likewise.
24862 * include/grub/efi/api.h: Likewise.
24863 * include/grub/efi/pe32.h: Likewise.
24864 * include/grub/efi/memory.h: Likewise.
24865 * include/grub/multiboot.h: Likewise.
24866 * include/grub/usbdesc.h: Likewise.
24867 * include/grub/multiboot2.h: Likewise.
24868 * include/grub/acpi.h: Likewise.
24869 * include/grub/efiemu/efiemu.h: Likewise.
24870 * include/grub/disk.h: Likewise.
24871 * include/grub/ieee1275/ieee1275.h: Likewise.
24872 * include/grub/net.h: Likewise.
24873 * include/grub/machoload.h: Likewise.
24874 * include/grub/macho.h: Likewise.
24875 * include/multiboot.h: Likewise.
24876 * genmoddep.awk: Likewise.
24877 * normal/main.c: Likewise.
24878 * normal/menu_entry.c: Likewise.
24879 * normal/menu_viewer.c: Likewise.
24880 * normal/completion.c: Likewise.
24881 * normal/cmdline.c: Likewise.
24882 * normal/misc.c: Likewise.
24883 * normal/datetime.c: Likewise.
24884 * bus/usb/usbtrans.c: Likewise.
24885 * bus/usb/ohci.c: Likewise.
24886 * bus/usb/uhci.c: Likewise.
24887 * bus/usb/usb.c: Likewise.
24888 * mmap/efi/mmap.c: Likewise.
24889 * mmap/i386/pc/mmap_helper.S: Likewise.
24890 * mmap/i386/pc/mmap.c: Likewise.
24891 * mmap/i386/mmap.c: Likewise.
24892 * mmap/i386/uppermem.c: Likewise.
24893 * mmap/mmap.c: Likewise.
24894 * commands/acpi.c: Likewise.
24895 * commands/echo.c: Likewise.
24896 * commands/blocklist.c: Likewise.
24897 * commands/loadenv.c: Likewise.
24898 * commands/usbtest.c: Likewise.
24899 * commands/boot.c: Likewise.
24900 * commands/parttool.c: Likewise.
24901 * commands/search.c: Likewise.
24902 * commands/cat.c: Likewise.
24903 * commands/i386/pc/play.c: Likewise.
24904 * commands/i386/pc/drivemap.c: Likewise.
24905 * commands/i386/pc/vbeinfo.c: Likewise.
24906 * commands/i386/pc/acpi.c: Likewise.
24907 * commands/i386/pc/vbetest.c: Likewise.
24908 * commands/ls.c: Likewise.
24909 * commands/cmp.c: Likewise.
24910 * commands/test.c: Likewise.
24911 * commands/efi/acpi.c: Likewise.
24912 * commands/gptsync.c: Likewise.
24913 * commands/help.c: Likewise.
24914 * partmap/amiga.c: Likewise.
24915 * partmap/apple.c: Likewise.
24916 * partmap/acorn.c: Likewise.
24917 * partmap/pc.c: Likewise.
24918 * partmap/sun.c: Likewise.
24919 * partmap/gpt.c: Likewise.
24920 * script/sh/lexer.c: Likewise.
24921 * script/sh/function.c: Likewise.
24922 * font/font.c: Likewise.
24923 * font/font_cmd.c: Likewise.
24924 * loader/powerpc/ieee1275/linux.c: Likewise.
24925 * loader/efi/chainloader.c: Likewise.
24926 * loader/multiboot_loader.c: Likewise.
24927 * loader/macho.c: Likewise.
24928 * loader/i386/multiboot.c: Likewise.
24929 * loader/i386/linux.c: Likewise.
24930 * loader/i386/pc/linux.c: Likewise.
24931 * loader/i386/pc/multiboot2.c: Likewise.
24932 * loader/i386/pc/chainloader.c: Likewise.
24933 * loader/i386/pc/xnu.c: Likewise.
24934 * loader/i386/bsd_trampoline.S: Likewise.
24935 * loader/i386/efi/linux.c: Likewise.
24936 * loader/i386/multiboot_elfxx.c: Likewise.
24937 * loader/i386/bsd_helper.S: Likewise.
24938 * loader/i386/bsd.c: Likewise.
24939 * loader/i386/linux_trampoline.S: Likewise.
24940 * loader/i386/xnu_helper.S: Likewise.
24941 * loader/i386/xnu.c: Likewise.
24942 * loader/i386/bsd_pagetable.c: Likewise.
24943 * loader/i386/multiboot_helper.S: Likewise.
24944 * loader/xnu.c: Likewise.
24945 * loader/xnu_resume.c: Likewise.
24946 * io/gzio.c: Likewise.
24947 * term/efi/console.c: Likewise.
24948 * term/terminfo.c: Likewise.
24949 * term/ieee1275/ofconsole.c: Likewise.
24950 * term/i386/pc/serial.c: Likewise.
24951 * term/i386/pc/vesafb.c: Likewise.
24952 * term/i386/pc/vga.c: Likewise.
24953 * term/usb_keyboard.c: Likewise.
24954 * term/gfxterm.c: Likewise.
24955 * aclocal.m4: Likewise.
24956 * util/lvm.c: Likewise.
24957 * util/grub.d/30_os-prober.in: Likewise.
24958 * util/grub.d/10_hurd.in: Likewise.
24959 * util/console.c: Likewise.
24960 * util/grub-macho2img.c: Likewise.
24961 * util/grub-probe.c: Likewise.
24962 * util/hostfs.c: Likewise.
24963 * util/i386/pc/grub-mkimage.c: Likewise.
24964 * util/i386/pc/grub-setup.c: Likewise.
24965 * util/i386/efi/grub-mkimage.c: Likewise.
24966 * util/grub-mkconfig.in: Likewise.
24967 * util/raid.c: Likewise.
24968 * util/resolve.c: Likewise.
24969 * util/grub-mkdevicemap.c: Likewise.
24970 * util/grub-emu.c: Likewise.
24971 * util/getroot.c: Likewise.
24972 * util/hostdisk.c: Likewise.
24973 * util/usb.c: Likewise.
24974 * util/grub-editenv.c: Likewise.
24975 * util/misc.c: Likewise.
24976
24977 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
24978
24979 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
24980 `genparttoollist.sh'.
24981 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
24982 Add `*.sh' to the list find searches for and change `mdate.sh'
24983 to `mdate-sh'.
24984
24985 2009-06-10 Pavel Roskin <proski@gnu.org>
24986
24987 * include/grub/multiboot2.h: Provide compatibility defines for
24988 multiboot2.h.
24989 * include/multiboot2.h: Include stdint.h only if needed, using
24990 angle brackets.
24991 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
24992 grub/multiboot2.h.
24993 * loader/ieee1275/multiboot2.c: Likewise.
24994 * loader/multiboot2.c: Likewise.
24995 * loader/multiboot_loader.c: Likewise.
24996
24997 * configure.ac: Use -nostdlib when probing for the target. It
24998 should not be required to have libc for the target.
24999
25000 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
25001 they fail without libc headers for the target.
25002 * include/grub/powerpc/libgcc.h: Use weak attribute for all
25003 exports.
25004 * include/grub/sparc64/libgcc.h: Likewise. Don't use
25005 preprocessor conditionals.
25006
25007 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
25008 build system doesn't need to be aware of the tar.c internals.
25009
25010 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
25011
25012 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
25013
25014 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
25015
25016 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
25017 disk limit to 26 for IDE, Virtio, Xen and SCSI.
25018
25019 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
25020
25021 * util/i386/pc/grub-install.in: Change the error message if UUIDs
25022 aren't available if ata.mod gets used.
25023
25024 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
25025
25026 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
25027 initialising controller.
25028 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25029
25030 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25031
25032 * util/i386/pc/grub-install.in: Add a parameter --disk-module
25033 to choose between ata and biosdisk module on i386-pc.
25034
25035 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
25036
25037 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
25038 Subclass and Programming Interface fields in terms of the 3 byte
25039 Class Code register.
25040 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25041
25042 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
25043 interface is OHCI. Add grub_dprintf for symmetry with
25044 bus/usb/uhci.c.
25045 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
25046 interface is UHCI. Add interf variable for programming
25047 interface. Print interface with class/subclass.
25048
25049 * bus/usb/ohci.c: Set interf with correct field.
25050
25051 * bus/usb/uhci.c: Remove unneeded doubled lines.
25052 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
25053 Remove whitespace inside comment.
25054
25055 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
25056
25057 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
25058 as fallback an equivalent option without depth.
25059
25060 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25061
25062 Not fail if unable to retrieve C/H/S on LBA disks
25063
25064 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
25065 if unable to retrieve C/H/S on LBA disks
25066
25067 2009-06-08 Pavel Roskin <proski@gnu.org>
25068
25069 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
25070 about aliasing.
25071
25072 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25073
25074 * Makefile.in (uninstall): Remove all $lib_DATA files.
25075
25076 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25077
25078 Bugfix: install on partitionless device
25079
25080 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
25081 is a whole disk
25082
25083 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25084
25085 * Makefile.in (uninstall): Remove all $include_DATA files.
25086
25087 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25088
25089 * commands/true.c: New file. Implement the true and false commands.
25090 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
25091 (true_mod_SOURCES): New variable.
25092 (true_mod_CFLAGS): Likewise.
25093 (true_mod_LDFLAGS): Likewise.
25094
25095 2009-06-05 Colin D Bennett <colin@gibibit.com>
25096
25097 Optimized font character lookup using binary search instead of linear
25098 search. Fonts now are required to have the character index ordered by
25099 code point.
25100
25101 * font/font.c (load_font_index): Verify that fonts have ordered
25102 character indices.
25103 (find_glyph): Use binary search instead of linear search to find a
25104 character in a font.
25105
25106 2009-06-05 Michael Scherer <misc@mandriva.org>
25107
25108 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
25109 uses case sensitive btree.
25110 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
25111 only for case insensitive filesystems.
25112
25113 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
25114
25115 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
25116 * conf/common.rmk (search_mod_CFLAGS): likewise
25117
25118 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25119
25120 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
25121 compensate a compiler bug
25122
25123 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25124
25125 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
25126 instead of '\b'
25127
25128 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25129
25130 Definitions for creating asm symbols with Apple's CC
25131
25132 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
25133 [APPLE_CC] (VARIABLE): likewise
25134
25135 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25136
25137 Disable lnxboot.img when compiled
25138 with Apple's CC
25139
25140 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
25141 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
25142 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
25143 [! APPLE_CC] (CODE_LENG): skip
25144 [! APPLE_CC] (setup_sects): likewise
25145 [! APPLE_CC]: skip filling
25146
25147 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25148
25149 Address in trampolines based on 32-bit registers when compiled
25150 with Apple's CC
25151
25152 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
25153 for addresses
25154 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
25155
25156 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25157
25158 Avoid aliases when compiling with Apple's CC for PCBIOS machine
25159
25160 * kern/misc.c [APPLE_CC] (memcpy): new function
25161 [APPLE_CC] (memmove): likewise
25162 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
25163 (memcpy): define alias conditionally on !APPLE_CC
25164 (memset): likewise
25165 (abort): likewise
25166 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
25167 APPLE_CC are defined
25168 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
25169 (grub_assert_fail): make prototype conditional
25170
25171 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25172
25173 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
25174
25175 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
25176 grub-macho2img
25177 (CLEANFILES): add grub-macho2img
25178 (grub_macho2img_SOURCES): new variable
25179 * kern/i386/pc/startup.S (bss_start): new variable
25180 (bss_end): likewise
25181 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
25182 * util/grub-macho2img.c: new file
25183
25184 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25185
25186 Use objconv when compiling with Apple's CC
25187
25188 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
25189 (efiemu64.o): likewise
25190 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
25191 when compiling with Apple's CC
25192 (efiemu64_s.o): likewise
25193 * configure.ac: check for objconv when compiling with Apple's CC
25194 * genmk.rb: use objconv for modules when compiled with Apple's CC
25195
25196 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25197
25198 Define segment as well as section when compiling with
25199 Apple's CC
25200
25201 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
25202 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
25203 (efiemu_convert_pointer): likewise
25204 (efiemu_set_virtual_address_map): likewise
25205 (efiemu_convert_pointer): likewise
25206 (efiemu_getcrc32): likewise
25207 (init_crc32_table): likewise
25208 (reflect): likewise
25209 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
25210 (GRUB_MOD_DEP): likewise
25211
25212 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25213
25214 Allow a compilation without -mcmodel=large
25215
25216 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
25217 when compiled without -mcmodel=large
25218 (filter_memory_map): remove memory post 4 GiB when compiled
25219 without -mcmodel=large
25220 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
25221 TARGET_CFLAGS when -mcmodel=large isn't supported
25222
25223 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25224
25225 Remove nested functions in efiemu core
25226
25227 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
25228
25229 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25230
25231 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
25232
25233 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
25234 temporary storage
25235 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
25236 using Apple's CC
25237 (grub_cpu_is_tsc_supported): likewise
25238 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
25239
25240 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25241
25242 Absolute addressing through constant with Apple's cc
25243
25244 * kern/i386/pc/startup.S: Define necessary constants
25245 and address through it when using ABS with Apple's CC
25246 * boot/i386/pc/diskboot.S: likewise
25247 * boot/i386/pc/boot.S: likewise
25248 * boot/i386/pc/lnxboot.S: likewise
25249 * boot/i386/pc/cdboot.S: likewise
25250 * mmap/i386/pc/mmap_helper.S: likewise
25251 * commands/i386/pc/drivemap_int13h.S: likewise
25252
25253 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25254
25255 Check if compiler is apple cc
25256
25257 * Makefile.in (ASFLAGS): new variable
25258 (TARGET_ASFLAGS): likewise
25259 (TARGET_MODULE_FORMAT): likewise
25260 (TARGET_APPLE_CC): likewise
25261 (OBJCONV): likewise
25262 (TARGET_IMG_CFLAGS): likewise
25263 (TARGET_CPPFLAGS): add includedir
25264 * configure.ac: call grub_apple_cc and grub_apple_target_cc
25265 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
25266 Check for linker script only if compiler isn't Apple's CC
25267 (TARGET_MODULE_FORMAT): set
25268 (TARGET_APPLE_CC): likewise
25269 (TARGET_ASFLAGS): likewise
25270 (ASFLAGS): likewise
25271 Check for objcopy only if compiler isn't Apple's CC
25272 Check for BSS symbol only if compiler isn't Apple's CC
25273 * genmk.rb: adapt nm options if we use Apple's utils
25274 * aclocal.m4 (grub_apple_cc): new test
25275 (grub_apple_target_cc): likewise
25276
25277 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25278
25279 Simplify sed expressions and improve awk
25280
25281 * Makefile.in (install-local): simplify sed expression
25282 * gencmdlist.sh: likewise
25283 * genmoddep.awk: avoid adding module as a dependency of itself
25284
25285 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25286
25287 Add missing start symbols
25288
25289 * boot/i386/pc/boot.S: add start
25290 * boot/i386/pc/pxeboot.S: likewise
25291
25292 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25293
25294 Fix wrong assumptions with grub-mkimage on EFI
25295
25296 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
25297 (relocate_addresses): consider both r_addend and value at offset
25298 (make_mods_section): zerofill modinfo and header
25299 (convert_elf): write prefix here
25300
25301 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25302
25303 Use .asciz instead of .string
25304
25305 * i386/pc/diskboot.S: use .asciz instead of .string
25306 * i386/pc/boot.S: likewise
25307 * include/grub/dl.h (GRUB_MOD_DEP): likewise
25308 (GRUB_MOD_NAME): likewise
25309
25310 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25311
25312 gfxpayload support
25313
25314 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
25315 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
25316 (grub_video_setup): remove
25317 (grub_video_set_mode): new prototype
25318 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
25319 (vid_mode): remove
25320 (linux_vesafb_res): compile only on PCBIOS
25321 (grub_linux_boot): support gfxpayload
25322 * loader/i386/pc/xnu.c (video_hook): new function
25323 (grub_xnu_set_video): support gfxpayload
25324 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
25325 (DEFAULT_VIDEO_HEIGHT): likewise
25326 (DEFAULT_VIDEO_FLAGS): likewise
25327 (DEFAULT_VIDEO_MODE): new definition
25328 (video_hook): new function
25329 (grub_gfxterm_init): use grub_video_set_mode
25330 * util/grub.d/30_os-prober.in: remove explicit modesetting before
25331 loading xnu
25332 * video/video.c (grub_video_setup): removed
25333 (grub_video_set_mode): new function based on grub_gfxterm_init and
25334 grub_video_setup
25335
25336 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25337
25338 Avoid calling biosdisk in drivemap
25339
25340 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
25341 (revparse_biosdisk): likewise
25342 (list_mappings): derive name from id directly
25343 (grub_cmd_drivemap): use tryparse_diskstring
25344
25345 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25346
25347 Script fixes
25348
25349 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
25350 (grub_lexer_param): add tokenonhold
25351 (grub_script_create_cmdline): remove cmdline. All callers updated
25352 (grub_script_function_create): make functionname
25353 grub_script_arg. All callers updated
25354 (grub_script_execute_argument_to_string): new prototype
25355 * kern/parser.c (state_transitions): reorder
25356 (grub_parser_cmdline_state): fix a bug and make more compact
25357 * script/sh/execute.c (grub_script_execute_argument_to_string):
25358 make global
25359 (grub_script_execute_cmdline): use new format
25360 * script/sh/function.c (grub_script_function_create): make functionname
25361 grub_script_arg. All callers updated
25362 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
25363 (grub_script_yylex): remove
25364 (grub_script_yylex2): renamed to ...
25365 (grub_script_yylex): ...renamed
25366 parse the expressions like a${b}c
25367 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
25368 (GRUB_PARSER_TOKEN_VAR): remove
25369 (GRUB_PARSER_TOKEN_NAME): likewise
25370 ("if"): declare as typeless
25371 ("while"): likewise
25372 ("function"): likewise
25373 ("else"): likewise
25374 ("then"): likewise
25375 ("fi"): likewise
25376 (text): remove
25377 (argument): likewise
25378 (script): accept empty scripts and make exit on error
25379 (arguments): use GRUB_PARSER_TOKEN_ARG
25380 (function): likewise
25381 (command): move error handling to script
25382 (menuentry): move grub_script_lexer_ref before
25383 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
25384 argument. All callers updated
25385
25386 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25387
25388 Prevent GRUB from probing floppies during boot.
25389
25390 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
25391 * commands/search.c (options): Add --no-floppy.
25392 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
25393 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
25394 --no-floppy when searching for UUIDs.
25395
25396 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25397
25398 Simplify the code duplication in commands/search.c.
25399
25400 * commands/search.c (search_label, search_fs_uuid): Merge into ...
25401 (search_fs): ... this. Update all users.
25402
25403 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
25404
25405 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
25406
25407 2009-05-28 Pavel Roskin <proski@gnu.org>
25408
25409 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
25410 Remove the original symlink explicitly.
25411
25412 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
25413 just one slash. That's how grub_fshelp_find_file() does it.
25414
25415 2009-05-26 Pavel Roskin <proski@gnu.org>
25416
25417 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
25418 to `str'.
25419
25420 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
25421 possibly unused.
25422
25423 2009-05-25 Christian Franke <franke@computer.org>
25424
25425 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
25426 register.
25427 (grub_atapi_identify): Add wait after drive select.
25428 (grub_ata_identify): Do more strict status register check before
25429 calling grub_atapi_identify (). Suppress error message if status
25430 register is 0x00 after command failure. Add status register
25431 check after PIO read to avoid bogus identify due to stuck DRQ.
25432 Thanks to Pavel Roskin for testing.
25433 (grub_device_initialize): Remove unsafe status register check.
25434 Thanks to 'phcoder' for problem report and patch.
25435 Prevent sign extension in debug message.
25436
25437 2009-05-23 Colin D Bennett <colin@gibibit.com>
25438
25439 Cleaned up `include/grub/normal.h'. Grouped prototypes by
25440 definition file, and functions defined in `normal/menu.c' have had
25441 their prototypes moved to `include/grub/menu.h' for consistency.
25442
25443 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
25444 from normal.h.
25445 (grub_menu_get_entry): Likewise.
25446 (grub_menu_get_timeout): Likewise.
25447 (grub_menu_set_timeout): Likewise.
25448 (grub_menu_execute_entry): Likewise.
25449 (grub_menu_execute_with_fallback): Likewise.
25450 (grub_menu_entry_run): Likewise.
25451
25452 * include/grub/normal.h: Re-ordered and grouped function
25453 prototypes by file that the function is defined in.
25454 (grub_menu_execute_callback): Removed; moved to menu.h.
25455 (grub_menu_get_entry): Likewise.
25456 (grub_menu_get_timeout): Likewise.
25457 (grub_menu_set_timeout): Likewise.
25458 (grub_menu_execute_entry): Likewise.
25459 (grub_menu_execute_with_fallback): Likewise.
25460 (grub_menu_entry_run): Likewise.
25461 (grub_menu_addentry): Renamed from this ...
25462 (grub_normal_add_menu_entry): ... to this.
25463
25464 * normal/main.c (grub_menu_addentry): Renamed from this ...
25465 (grub_normal_add_menu_entry): ... to this.
25466
25467 * script/sh/execute.c (grub_script_execute_menuentry): Update
25468 reference to renamed grub_menu_addentry function.
25469
25470 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
25471
25472 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
25473
25474 2009-05-22 Pavel Roskin <proski@gnu.org>
25475
25476 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
25477 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
25478 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
25479 compiling for the i386 targets, but not for the utilities.
25480
25481 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
25482 to grub_uint8_t.
25483 (grub_root_drive): Likewise.
25484 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
25485 remove alignment.
25486 (grub_root_drive): Change size to byte.
25487 (grub_start_addr): Remove.
25488 (grub_end_addr): Likewise.
25489 (grub_apm_bios_info): Likewise.
25490
25491 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
25492
25493 * normal/i386: Remove.
25494 * normal/powerpc: Likewise.
25495 * normal/sparc64: Likewise.
25496 * normal/x86_64: Likewise.
25497
25498 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
25499
25500 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
25501 * loader/i386/linux_trampoline.S: Fix indentation
25502 * loader/i386/xnu_helper.S: Likewise
25503
25504 2009-05-18 Colin D Bennett <colin@gibibit.com>
25505
25506 Display error messages when parsing a Lua statement fails.
25507 Previously, executing a syntactically invalid statement like
25508 ")foo" or "bar;" would silently fail.
25509
25510 * script/lua/grub_main.c (handle_lua_error): New function.
25511 (grub_lua_parse_line): Improved reporting of Lua parser and
25512 execution errors.
25513
25514 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25515
25516 Remove -Werror which causes build to fail on some systems
25517
25518 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
25519 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
25520 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
25521
25522 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25523
25524 trampoline for linux on 64-bit platform
25525
25526 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
25527 loader/i386/efi/linux_trampoline.S
25528 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
25529 declaration
25530 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
25531 here
25532 * loader/i386/linux_trampoline.S: moved here
25533 * loader/i386/efi/linux.c (allocate_pages): reserve space for
25534 trampoline
25535 (jumpvector): removed
25536 (grub_linux_trampoline_start): new declaration
25537 (grub_linux_trampoline_end): likewise
25538 (grub_linux_boot): use trampoline when on 64-bit platform
25539 * loader/i386/linux.c: likewise
25540
25541 2009-05-16 Pavel Roskin <proski@gnu.org>
25542
25543 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
25544 const to avoid a warning.
25545 (grub_lua_setenv): Likewise.
25546 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
25547 lmsg to fix a warning.
25548
25549 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
25550
25551 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
25552 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25553 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
25554 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25555 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
25556 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25557 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
25558 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25559
25560 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
25561
25562 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
25563
25564 2009-05-16 Bean <bean123ch@gmail.com>
25565
25566 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
25567 (lua_mod_SOURCES): New variable.
25568 (lua_mod_CFLAGS): Likewise.
25569 (lua_mod_LDFLAGS): Likewise.
25570
25571 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
25572 (setjmp_mod_SOURCES): New variable.
25573 (setjmp_mod_CFLAGS): Likewise.
25574 (setjmp_LDFLAGS): Likewise.
25575
25576 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
25577 (setjmp_mod_SOURCES): New variable.
25578 (setjmp_mod_CFLAGS): Likewise.
25579 (setjmp_LDFLAGS): Likewise.
25580
25581 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
25582 (setjmp_mod_SOURCES): New variable.
25583 (setjmp_mod_CFLAGS): Likewise.
25584 (setjmp_LDFLAGS): Likewise.
25585
25586 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
25587 (setjmp_mod_SOURCES): New variable.
25588 (setjmp_mod_CFLAGS): Likewise.
25589 (setjmp_LDFLAGS): Likewise.
25590
25591 * normal/i386/setjmp.S: Moved from here ...
25592 * lib/i386/setjmp.S: ... Moved here
25593 * normal/x86_64/setjmp.S: Moved from here ...
25594 * lib/x86_64/setjmp.S: ... Moved here
25595 * normal/powerpc/setjmp.S: Moved from here ...
25596 * lib/powerpc/setjmp.S: ... Moved here
25597 * normal/sparc64/setjmp.S: Moved from here ...
25598 * lib/sparc64/setjmp.S: ... Moved here
25599
25600 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
25601 returns_twice in mingw.
25602
25603 * script/lua/grub_lib.c: New file.
25604 * script/lua/grub_lib.h: Likewise.
25605 * script/lua/grub_lua.h: Likewise.
25606 * script/lua/grub_main.c: Likewise.
25607 * script/lua/lapi.c: Likewise.
25608 * script/lua/lapi.h: Likewise.
25609 * script/lua/lauxlib.c: Likewise.
25610 * script/lua/lauxlib.h: Likewise.
25611 * script/lua/lbaselib.c: Likewise.
25612 * script/lua/lcode.c: Likewise.
25613 * script/lua/lcode.h: Likewise.
25614 * script/lua/ldblib.c: Likewise.
25615 * script/lua/ldebug.c: Likewise.
25616 * script/lua/ldebug.h: Likewise.
25617 * script/lua/ldo.c: Likewise.
25618 * script/lua/ldo.h: Likewise.
25619 * script/lua/ldump.c: Likewise.
25620 * script/lua/lfunc.c: Likewise.
25621 * script/lua/lfunc.h: Likewise.
25622 * script/lua/lgc.c: Likewise.
25623 * script/lua/lgc.h: Likewise.
25624 * script/lua/linit.c: Likewise.
25625 * script/lua/liolib.c: Likewise.
25626 * script/lua/llex.c: Likewise.
25627 * script/lua/llex.h: Likewise.
25628 * script/lua/llimits.h: Likewise.
25629 * script/lua/lmathlib.c: Likewise.
25630 * script/lua/lmem.c: Likewise.
25631 * script/lua/lmem.h: Likewise.
25632 * script/lua/loadlib.c: Likewise.
25633 * script/lua/lobject.c: Likewise.
25634 * script/lua/lobject.h: Likewise.
25635 * script/lua/lopcodes.c: Likewise.
25636 * script/lua/lopcodes.h: Likewise.
25637 * script/lua/loslib.c: Likewise.
25638 * script/lua/lparser.c: Likewise.
25639 * script/lua/lparser.h: Likewise.
25640 * script/lua/lstate.c: Likewise.
25641 * script/lua/lstate.h: Likewise.
25642 * script/lua/lstring.c: Likewise.
25643 * script/lua/lstring.h: Likewise.
25644 * script/lua/lstrlib.c: Likewise.
25645 * script/lua/ltable.c: Likewise.
25646 * script/lua/ltable.h: Likewise.
25647 * script/lua/ltablib.c: Likewise.
25648 * script/lua/ltm.c: Likewise.
25649 * script/lua/ltm.h: Likewise.
25650 * script/lua/lua.h: Likewise.
25651 * script/lua/luaconf.h: Likewise.
25652 * script/lua/lualib.h: Likewise.
25653 * script/lua/lundump.c: Likewise.
25654 * script/lua/lundump.h: Likewise.
25655 * script/lua/lvm.c: Likewise.
25656 * script/lua/lvm.h: Likewise.
25657 * script/lua/lzio.c: Likewise.
25658 * script/lua/lzio.h: Likewise.
25659
25660 2009-05-16 Bean <bean123ch@gmail.com>
25661
25662 * include/grub/kernel.h (grub_module_header_types): Add type
25663 OBJ_TYPE_CONFIG.
25664
25665 * kern/main.c (grub_load_config): New function.
25666 (grub_main): Call grub_load_config to read boot config.
25667
25668 * grub-mkimage (generate_image): New parameter config_path.
25669 (options): New option --config.
25670 (main): Parse --config option, and pass it to generate_image.
25671
25672 2009-05-14 Christian Franke <franke@computer.org>
25673
25674 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
25675 This fixes build on Cygwin.
25676
25677 2009-05-14 Pavel Roskin <proski@gnu.org>
25678
25679 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
25680 jump. This saves two bytes, so the typical case of 2 swapped
25681 drives would fit 32 bytes.
25682
25683 2009-05-13 Pavel Roskin <proski@gnu.org>
25684
25685 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
25686 grub_uint32_t to avoid a warning.
25687
25688 * loader/i386/linux.c (allocate_pages): When assigning
25689 real_mode_mem, cast through grub_size_t to fix a warning. The
25690 code already makes sure that the value would fit a pointer.
25691 (grub_linux_setup_video): Cast render_target->data to
25692 grub_size_t to fix a warning.
25693
25694 2009-05-13 Javier Martín <lordhabbit@gmail.com>
25695
25696 * commands/i386/pc/drivemap.c: New file - implement drivemap
25697 command.
25698 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
25699 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
25700
25701 2009-05-13 Pavel Roskin <proski@gnu.org>
25702
25703 * util/i386/pc/grub-setup.c (setup): Remove unused variable
25704 embedding_area_exists.
25705
25706 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
25707
25708 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
25709 it easier to understand / work with.
25710 Improve warning messages for cases where there's no embedding area,
25711 or when it is too small (or core.img too large).
25712
25713 2009-05-13 Pavel Roskin <proski@gnu.org>
25714
25715 * loader/i386/pc/multiboot2.c: Add necessary includes for
25716 grub_multiboot2_real_boot().
25717
25718 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
25719 PX record is always little-endian. We only need the lower 2
25720 bytes of the mode.
25721
25722 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
25723 facilitate code reuse.
25724 (grub_cpio_mount): Use "struct head", not a char buffer. This
25725 fixes a warning reported by gcc 4.4.
25726
25727 * kernel/disk.c (grub_disk_read): Use void pointer for the
25728 buffer.
25729 (grub_disk_write): Use const void pointer for the buffer.
25730 Adjust all callers. Remove unnecessary casts.
25731
25732 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
25733
25734 * util/i386/pc/grub-install.in: Update copyright year.
25735
25736 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25737
25738 gptsync
25739
25740 * commands/gptsync.c: new file
25741 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
25742 (gptsync_mod_SOURCES): new variable
25743 (gptsync_mod_CFLAGS): likewise
25744 (gptsync_mod_LDFLAGS): likewise
25745 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
25746 new definition
25747 (GRUB_PC_PARTITION_TYPE_HFS): likewise
25748 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
25749 * conf/i386-ieee1275.rmk: likewise
25750 * conf/i386-pc.rmk: likewise
25751 * conf/powerpc-ieee1275.rmk: likewise
25752
25753 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25754
25755 Fixed grub-emu
25756
25757 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
25758 (grub_dl_ref): likewise
25759
25760 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
25761
25762 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
25763 split in two functions (one for msdos and one for gpt).
25764
25765 2009-05-08 Pavel Roskin <proski@gnu.org>
25766
25767 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
25768 not modified.
25769
25770 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
25771 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
25772 Initialize them with -1. Add sanity check for bad1. Eliminate
25773 nerr variable.
25774
25775 2009-05-08 David S. Miller <davem@davemloft.net>
25776
25777 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
25778
25779 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
25780
25781 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
25782 existence.
25783
25784 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
25785
25786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25787 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
25788
25789 2009-05-05 David S. Miller <davem@davemloft.net>
25790
25791 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
25792
25793 2009-05-05 Pavel Roskin <proski@gnu.org>
25794
25795 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
25796 of grub_dl_ref() and grub_dl_unref().
25797 * commands/parttool.c: Remove preprocessor conditionals around
25798 grub_dl_ref() and grub_dl_unref().
25799 * fs/affs.c: Likewise.
25800 * fs/afs.c: Likewise.
25801 * fs/cpio.c: Likewise.
25802 * fs/ext2.c: Likewise.
25803 * fs/fat.c: Likewise.
25804 * fs/hfs.c: Likewise.
25805 * fs/hfsplus.c: Likewise.
25806 * fs/iso9660.c: Likewise.
25807 * fs/jfs.c: Likewise.
25808 * fs/minix.c: Likewise.
25809 * fs/ntfs.c: Likewise.
25810 * fs/reiserfs.c: Likewise.
25811 * fs/sfs.c: Likewise.
25812 * fs/udf.c: Likewise.
25813 * fs/ufs.c: Likewise.
25814 * fs/xfs.c: Likewise.
25815 * include/grub/dl.h: Likewise.
25816 * loader/xnu.c: Likewise.
25817
25818 2009-05-04 Pavel Roskin <proski@gnu.org>
25819
25820 * commands/acpi.c: Remove unused variable my_mod.
25821 * partmap/amiga.c: Likewise.
25822 * partmap/apple.c: Likewise.
25823 * partmap/gpt.c: Likewise.
25824 * partmap/pc.c: Likewise.
25825 * partmap/sun.c: Likewise.
25826 * term/gfxterm.c: Likewise.
25827 * term/i386/pc/vesafb.c: Likewise.
25828 * term/i386/pc/vga.c: Likewise.
25829
25830 2009-05-04 David S. Miller <davem@davemloft.net>
25831
25832 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
25833 pointer args to grub_ieee1275_get_property().
25834
25835 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
25836
25837 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
25838 devices, and do not traverse down under controller nodes.
25839
25840 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
25841 (grub_ofdisk_open): Use it to un-escape "," characters.
25842 * kern/disk.c (find_part_sep): New.
25843 (grub_disk_open): Use it to find the first non-escaped ','
25844 character in the disk name.
25845 * util/ieee1275/devicemap.c (escape_of_path): New.
25846 (grub_util_emit_devicemap_entry): Use it.
25847 * util/sparc64/ieee1275/grub-install.in: Update script to
25848 strip partition specifiers properly by not triggering on
25849 '\' escaped ',' characters.
25850
25851 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
25852
25853 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
25854 to 0x300.
25855 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
25856 resolutions.
25857 (linux_vesafb_modes): Add a lot of additional modes to the list (based
25858 on documentation from Wikipedia).
25859
25860 2009-05-04 Pavel Roskin <proski@gnu.org>
25861
25862 * disk/ata.c: Spelling fixes.
25863 * disk/raid.c: Likewise.
25864 * disk/usbms.c: Likewise.
25865 * disk/dmraid_nvidia.c: Likewise.
25866 * kern/ieee1275/openfw.c: Likewise.
25867 * kern/ieee1275/init.c: Likewise.
25868 * kern/ieee1275/cmain.c: Likewise.
25869 * boot/i386/pc/cdboot.S: Likewise.
25870 * video/readers/png.c: Likewise.
25871 * video/i386/pc/vbe.c: Likewise.
25872 * fs/udf.c: Likewise.
25873 * fs/hfs.c: Likewise.
25874 * fs/reiserfs.c: Likewise.
25875 * efiemu/runtime/efiemu.c: Likewise.
25876 * efiemu/main.c: Likewise.
25877 * efiemu/mm.c: Likewise.
25878 * include/grub/elf.h: Likewise.
25879 * include/grub/xnu.h: Likewise.
25880 * include/grub/usbdesc.h: Likewise.
25881 * include/grub/usb.h: Likewise.
25882 * include/grub/script_sh.h: Likewise.
25883 * include/grub/lib/LzmaEnc.h: Likewise.
25884 * include/grub/efiemu/efiemu.h: Likewise.
25885 * include/grub/command.h: Likewise.
25886 * normal/menu.c: Likewise.
25887 * normal/main.c: Likewise.
25888 * normal/datetime.c: Likewise.
25889 * bus/usb/uhci.c: Likewise.
25890 * mmap/i386/uppermem.c: Likewise.
25891 * mmap/mmap.c: Likewise.
25892 * commands/acpi.c: Likewise.
25893 * commands/test.c: Likewise.
25894 * partmap/apple.c: Likewise.
25895 * font/font.c: Likewise.
25896 * loader/sparc64/ieee1275/linux.c: Likewise.
25897 * loader/macho.c: Likewise.
25898 * loader/i386/bsd_trampoline.S: Likewise.
25899 * loader/i386/bsd.c: Likewise.
25900 * loader/xnu.c: Likewise.
25901 * term/i386/pc/vesafb.c: Likewise.
25902 * term/usb_keyboard.c: Likewise.
25903 * util/resolve.c: Likewise.
25904 * util/getroot.c: Likewise.
25905
25906 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
25907
25908 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
25909
25910 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
25911
25912 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
25913 build error.
25914
25915 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
25916
25917 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
25918 parameter only available on BIOS.
25919
25920 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
25921
25922 Removed wrong semicolon in declaration
25923
25924 * grub/misc.h (grub_dprintf): remove semicolon
25925
25926 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
25927
25928 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
25929 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
25930 is done by grub_cmd_linux() now).
25931 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
25932 restore video to text mode.
25933 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
25934 indicates lack of "vga=" parameter. "vga=0" is mapped to
25935 `GRUB_LINUX_VID_MODE_NORMAL'.
25936
25937 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
25938
25939 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
25940 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
25941 and `normal/script.c'. Add `kern/rescue_reader.c',
25942 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
25943 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
25944 `grub_script.tab.c'.
25945
25946 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25947 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25949 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25950 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25951
25952 * Makefile.in: Remove duplicated 2008 in Copyright line.
25953
25954 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
25955
25956 * util/misc.c (grub_util_warn): New function. Emits a warning
25957 unconditionally.
25958 * include/grub/util/misc.h (grub_util_warn): New declaration.
25959
25960 * util/i386/pc/grub-install.in: Understand --force and pass it down
25961 to grub-setup.
25962
25963 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
25964 down to setup().
25965 (setup): Improve error messages and add warnings when requested to
25966 install in odd layouts. Refuse to install using blocklists unless
25967 --force was set.
25968
25969 2009-05-04 martin f. krafft <madduck@madduck.net>
25970
25971 * disk/raid.c (grub_raid_scan_device): Improve debug message.
25972
25973 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
25974
25975 Updated copyright year
25976
25977 * fs/hfsplus.c: updated copyright year
25978
25979 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
25980
25981 HFS+ UUID
25982
25983 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
25984 in the space previously used by unused3
25985 (grub_hfsplus_uuid): new function
25986 (grub_hfsplus_fs): added uuid field
25987
25988 2009-05-03 Pavel Roskin <proski@gnu.org>
25989
25990 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
25991 suppress warnings. It's no longer needed.
25992 * disk/host.c: Likewise.
25993 * disk/ata_pthru.c: Likewise.
25994 * disk/loopback.c: Likewise.
25995 * hook/datehook.c: Likewise.
25996 * parttool/pcpart.c: Likewise.
25997 * fs/i386/pc/pxe.c: Likewise.
25998 * fs/ntfscomp.c: Likewise.
25999 * efiemu/main.c: Likewise.
26000 * mmap/mmap.c: Likewise.
26001 * commands/crc.c: Likewise.
26002 * commands/hexdump.c: Likewise.
26003 * commands/hdparm.c: Likewise.
26004 * commands/acpi.c: Likewise.
26005 * commands/echo.c: Likewise.
26006 * commands/minicmd.c: Likewise.
26007 * commands/blocklist.c: Likewise.
26008 * commands/memrw.c: Likewise.
26009 * commands/loadenv.c: Likewise.
26010 * commands/usbtest.c: Likewise.
26011 * commands/lsmmap.c: Likewise.
26012 * commands/boot.c: Likewise.
26013 * commands/parttool.c: Likewise.
26014 * commands/configfile.c: Likewise.
26015 * commands/search.c: Likewise.
26016 * commands/ieee1275/suspend.c: Likewise.
26017 * commands/cat.c: Likewise.
26018 * commands/i386/pc/pxecmd.c: Likewise.
26019 * commands/i386/pc/play.c: Likewise.
26020 * commands/i386/pc/halt.c: Likewise.
26021 * commands/i386/pc/vbeinfo.c: Likewise.
26022 * commands/i386/pc/vbetest.c: Likewise.
26023 * commands/lspci.c: Likewise.
26024 * commands/date.c: Likewise.
26025 * commands/handler.c: Likewise.
26026 * commands/ls.c: Likewise.
26027 * commands/test.c: Likewise.
26028 * commands/cmp.c: Likewise.
26029 * commands/efi/loadbios.c: Likewise.
26030 * commands/efi/fixvideo.c: Likewise.
26031 * commands/halt.c: Likewise.
26032 * commands/help.c: Likewise.
26033 * commands/reboot.c: Likewise.
26034 * hello/hello.c: Likewise.
26035 * script/sh/main.c: Likewise.
26036 * loader/xnu.c: Likewise.
26037 * term/terminfo.c: Likewise.
26038 * term/i386/pc/serial.c: Likewise.
26039 * term/usb_keyboard.c: Likewise.
26040
26041 2009-05-03 David S. Miller <davem@davemloft.net>
26042
26043 * normal/menu.c: Include grub/parser.h
26044
26045 2009-05-03 Pavel Roskin <proski@gnu.org>
26046
26047 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
26048 not char*.
26049 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
26050 Suggested by Javier Martín <lordhabbit@gmail.com>
26051
26052 * util/i386/pc/grub-mkrescue.in: Allow for the case when
26053 efiemu??.o doesn't exist.
26054 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
26055 copying.
26056
26057 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
26058
26059 FreeBSD 64-bit support
26060
26061 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
26062 and loader/i386/bsd_trampoline.S
26063 (bsd_mod_ASFLAGS): new variable
26064 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
26065 (FREEBSD_MODTYPE_KERNEL64): likewise
26066 (grub_bsd64_trampoline_start): likewise
26067 (grub_bsd64_trampoline_end): likewise
26068 (grub_bsd64_trampoline_selfjump): likewise
26069 (grub_bsd64_trampoline_gdt): likewise
26070 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
26071 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
26072 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
26073 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
26074 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
26075 of "attrib" member
26076 * loader/i386/bsd_pagetable.c: new file
26077 * loader/i386/bsd_trampoline.S: likewise
26078 * loader/i386/bsd.c (ALIGN_QWORD): new macro
26079 (ALIGN_VAR): likewise
26080 (entry_hi): new variable
26081 (kern_end_mdofs): likewise
26082 (is_64bit): likewise
26083 (grub_freebsd_add_meta): use ALIGN_VAR
26084 (grub_e820_mmap): new declaration
26085 (grub_freebsd_add_mmap): new function
26086 (grub_freebsd_add_meta_module): support 64 bit kernels
26087 (grub_freebsd_list_modules): use ALIGN_VAR
26088 (gdt_descriptor): new declaration
26089 (grub_freebsd_boot): support 64 bit kernels
26090 (grub_bsd_elf64_hook): new function
26091 (grub_bsd_load_elf): support elf64
26092
26093 2009-05-03 Bean <bean123ch@gmail.com>
26094
26095 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
26096 after we get the result of if statement.
26097
26098 2009-05-03 Bean <bean123ch@gmail.com>
26099
26100 * Makefile.in (enable_efiemu): New variable.
26101
26102 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
26103 set.
26104 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
26105 path.
26106 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
26107 path, add -mno-red-zone option.
26108 (efiemu64_s.o): Likewise.
26109 (efiemu64.o): Use macro $^ for source file.
26110
26111 * configure.ac (--enable-efiemu): New option.
26112
26113 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
26114
26115 xnu support
26116
26117 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
26118 (pkglib_MODULES): add xnu.mod
26119 (xnu_mod_SOURCES): new variable
26120 (xnu_mod_CFLAGS): likewise
26121 (xnu_mod_LDFLAGS): likewise
26122 (xnu_mod_ASFLAGS): likewise
26123 * conf/i386-pc.rmk: likewise
26124 * conf/x86_64-efi.rmk: likewise
26125 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
26126 new declaration
26127 * include/grub/i386/macho.h: new file
26128 * include/grub/i386/xnu.h: likewise
26129 * include/grub/macho.h: likewise
26130 * include/grub/machoload.h: likewise
26131 * include/grub/x86_64/macho.h: likewise
26132 * include/grub/x86_64/xnu.h: likewise
26133 * include/grub/xnu.h: likewise
26134 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
26135 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
26136 * loader/i386/efi/xnu.c: new file
26137 * loader/i386/pc/xnu.c: likewise
26138 * loader/i386/xnu.c: likewise
26139 * loader/i386/xnu_helper.S: likewise
26140 * loader/macho.c: likewise
26141 * loader/xnu.c: likewise
26142 * loader/xnu_resume.c: likewise
26143 * util/grub-dumpdevtree: likewise
26144 * include/grub/i386/pit.h: include grub/err.h
26145 (grub_pit_wait): export
26146 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
26147
26148 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26149
26150 Efiemu
26151
26152 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
26153 _linux_efi, linux_efi.
26154 new files in grub-emu
26155 new targets efiemu32.o and efiemu64.o
26156 * loader/linux_normal_efiemu.c: likewise
26157 * loader/i386/efi/linux.c: added preliminary efiemu support
26158 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
26159 files to copy
26160 * include/grub/autoefi.h: new file
26161 * include/grub/i386/efiemu.h: likewise
26162 * include/grub/i386/pc/efiemu.h: likewise
26163 * include/grub/efi/api.h: add LL suffix when necessary
26164 new definitions relating to tables
26165 * include/grub/efiemu/efiemu.h: new file
26166 * include/grub/efiemu/runtime.h: likewise
26167 * efiemu/prepare.c: likewise
26168 * efiemu/loadcore_common.c: likewise
26169 * efiemu/loadcore64.c: likewise
26170 * efiemu/runtime/efiemu.sh: likewise
26171 * efiemu/runtime/efiemu.S: likewise
26172 * efiemu/runtime/efiemu.c: likewise
26173 * efiemu/runtime/config.h: likewise
26174 * efiemu/prepare32.c: likewise
26175 * efiemu/main.c: likewise
26176 * efiemu/modules/pnvram.c: likewise
26177 * efiemu/modules/i386: likewise
26178 * efiemu/modules/i386/pc: likewise
26179 * efiemu/modules/acpi.c: likewise
26180 * efiemu/i386/pc/cfgtables.c: likewise
26181 * efiemu/i386/loadcore64.c: likewise
26182 * efiemu/i386/loadcore32.c: likewise
26183 * efiemu/prepare64.c: likewise
26184 * efiemu/loadcore.c: likewise
26185 * efiemu/symbols.c: likewise
26186 * efiemu/mm.c: likewise
26187 * efiemu/loadcore32.c: likewise
26188
26189 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26190
26191 ACPI spoofing
26192
26193 * commands/acpi.c: new file
26194 * commands/i386/pc/acpi.c: likewise
26195 * commands/efi/acpi.c: likewise
26196 * include/grub/acpi.h: likewise
26197 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
26198 (acpi_mod_SOURCES): new variable
26199 (acpi_mod_CFLAGS): likewise
26200 (acpi_mod_LDFLAGS): likewise
26201 * conf/i386-efi.rmk: likewise
26202 * conf/x86_64-efi.rmk: likewise
26203
26204 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26205
26206 Missing part from mmap patch
26207
26208 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
26209 (grub_mmap_unregister)
26210 (grub_mmap_free_and_unregister): use grub_mmap_register
26211
26212 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26213
26214 Mmap services
26215
26216 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
26217 * loader/i386/linux.c (find_mmap_size): likewise
26218 (allocate_pages): likewise
26219 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
26220 (grub_fill_multiboot_mmap): likewise
26221 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
26222 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
26223 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
26224 (OPENBSD_MMAP_RESERVED): likewise
26225 * include/grub/i386/pc/memory.h: include grub/memory.h
26226 (grub_lower_mem): removed
26227 (grub_upper_mem): likewise
26228 (GRUB_MACHINE_MEMORY_ACPI): new definition
26229 (GRUB_MACHINE_MEMORY_NVS): likewise
26230 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
26231 (GRUB_MACHINE_MEMORY_HOLE): likewise
26232 (grub_machine_mmap_register): likewise
26233 (grub_machine_mmap_unregister): likewise
26234 (grub_machine_get_upper): likewise
26235 (grub_machine_get_lower): likewise
26236 (grub_machine_get_post64): likewise
26237 * include/grub/i386/efi/memory.h: new file
26238 * include/grub/x86_64/efi/memory.h: likewise
26239 * include/grub/efi/memory.h: likewise
26240 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
26241 (mmap_mod_SOURCES): new variable
26242 (mmap_mod_LDFLAGS): likewise
26243 (mmap_mod_ASFLAGS): likewise
26244 * conf/i386-coreboot.rmk: likewise
26245 * conf/i386-ieee1275.rmk: likewise
26246 * conf/i386-efi.rmk: likewise
26247 * conf/x86_64-efi.rmk: likewise
26248 * include/grub/types.h (UINT_TO_PTR): new macro
26249 (PTR_TO_UINT32): likewise
26250 (PTR_TO_UINT64): likewise
26251 * include/grub/memory.h: new file
26252 * mmap/i386/pc/mmap.c: likewise
26253 * mmap/i386/pc/mmap_helper.S: likewise
26254 * mmap/i386/uppermem.c: likewise
26255 * mmap/mmap.c: likewise
26256 * mmap/efi/mmap.c: likewise
26257 * kern/i386/coreboot/init.c (grub_machine_init): don't use
26258 grub_upper_mem
26259 * kern/i386/pc/init.c (grub_lower_mem): removed variable
26260 (grub_upper_mem): likewise
26261 (grub_machine_init): don't use grub_upper_mem,
26262 make grub_lower_mem local
26263 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
26264 grub_mmap_iterate and grub_mmap_get_upper
26265 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
26266
26267 2009-05-02 Bean <bean123ch@gmail.com>
26268
26269 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
26270 script/sh/parser.y.
26271 (pkglib_MODULES): Add normal.mod and sh.mod.
26272 (normal_SOURCES): New variable.
26273 (normal_mod_CFLAGS): Likewise.
26274 (normal_mod_LDFLAGS): Likewise.
26275 (sh_mod_SOURCES): Likewise.
26276 (sh_mod_CFLAGS): Likewise.
26277 (sh_mod_LDFLAGS): Likewise.
26278
26279 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
26280 script/sh/lexer.c_DEPENDENCIES.
26281 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
26282 kern/rescue_reader.c and kern/rescue_parser.c.
26283 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
26284 (grub_emu_SOURCES): Change source files.
26285 (pkglib_MODULES): Remove normal.mod.
26286 (normal_SOURCES): Removed.
26287 (normal_mod_CFLAGS): Likewise.
26288 (normal_mod_LDFLAGS): Likewise.
26289 * conf/i386-coreboot.rmk: Likewise.
26290 * conf/i386-efi.rmk: Likewise.
26291 * conf/i386-ieee1276.rmk: Likewise.
26292 * conf/powerpc-ieee1275.rmk: Likewise.
26293 * conf/sparc64-ieee1275.rmk: Likewise.
26294 * conf/x86_64-efi.rmk: Likewise.
26295
26296 * include/grub/command.h (grub_command_execute): New inline function.
26297
26298 * include/grub/menu.h (grub_menu_entry): Removed commands field.
26299
26300 * include/grub/normal.h: Remove <grub/setjmp.h>.
26301 (grub_fs_module_list): Moved to normal/autofs.c.
26302 (grub_exit_env): Removed.
26303 (grub_command_execute): Likewise.
26304 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
26305 parameter script.
26306 (read_command_list): New function declaration.
26307 (read_fs_list): Likewise.
26308
26309 * include/parser.h: Include <grub/reader.h>.
26310 (grub_parser_split_cmdline): Change type of getline parameter.
26311 (grub_parser): New structure.
26312 (grub_parser_class): New variable.
26313 (grub_parser_execute): New function declaration.
26314 (grub_register_rescue_parser): Likewise.
26315 (grub_parser_register): New inline function.
26316 (grub_parser_unregister): Likewise.
26317 (grub_parser_get_current): Likewise.
26318 (grub_parser_set_current): Likewise.
26319
26320 * include/grub/reader.h: New file.
26321 * kern/reader.c: Likewise.
26322 * kern/rescue_parser.c: Likewise.
26323 * kern/rescue_reader.c: Likewise.
26324 * normal/autofs.c: Likewise.
26325 * normal/dyncmd.c: Likewise.
26326
26327 * include/grub/rescue.h: Removed.
26328 * normal/command.h: Likewise.
26329
26330 * include/grub/script.h: Moved to ...
26331 * include/grub/script_sh.h: ... Moved here.
26332 * normal/execute.c: Moved to ...
26333 * script/sh/execute.c: ... Moved here.
26334 * normal/function.c: Moved to ...
26335 * script/sh/function.c: ... Moved here.
26336 * normal/lexer.c: Moved to ...
26337 * script/sh/lexer.c: ... Moved here.
26338 * normal/parser.y: Moved to ...
26339 * script/sh/parser.y: ... Moved here.
26340 * normal/script.c: Moved to ...
26341 * script/sh/script.c: ... Moved here.
26342
26343 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
26344 <grub/reader.h>.
26345 (grub_exit_env): Removed.
26346 (fs_module_list): Moved to normal/autofs.c.
26347 (grub_file_getline): Don't handle comment here.
26348 (free_menu): Skip removed field entry->commands.
26349 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
26350 script parameter.
26351 (read_config_file): Removed nested parameter, change getline function.
26352 (grub_enter_normal_mode): Removed.
26353 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
26354 (read_command_list): Likewise.
26355 (autoload_fs_module): Moved to normal/autofs.c.
26356 (read_fs_list): Likewise.
26357 (reader_nested): New variable.
26358 (grub_normal_execute): Run parser.sh to switch to sh parser.
26359 (grub_cmd_rescue): Removed.
26360 (cmd_normal): Removed.
26361 (grub_cmd_normal): Unregister itself at the beginning. Don't register
26362 rescue command.
26363 (grub_cmdline_run): New function.
26364 (grub_normal_reader_init): Likewise.
26365 (grub_normal_read_line): Likewise.
26366 (grub_env_write_pager): Likewise.
26367 (cmdline): New variable.
26368 (grub_normal_reader): Likewise.
26369 (GRUB_MOD_INIT): Register normal reader and set as current, register
26370 pager hook, register normal command with grub_register_command_prio,
26371 so that it won't show up in command.lst.
26372 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
26373 grub_fs_autoload_hook.
26374
26375 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
26376 (grub_menu_execute_entry): Replace grub_script_execute with
26377 grub_parser_execute, change parameter to grub_command_execute.
26378
26379 * normal/menu_text.c: Remove <grub/script.h>.
26380
26381 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
26382 and <grub/parser.h>.
26383 (run): Change editor_getline to use new parser interface. Change
26384 parameter to grub_command_execute.
26385
26386 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
26387 <grub/reader.h> and <grub/parser.h>.
26388 (grub_load_normal_mode): Execute normal command.
26389 (grub_main): Call grub_register_core_commands,
26390 grub_register_rescue_parser and grub_register_rescue_reader, use
26391 grub_reader_loop to enter input loop.
26392
26393 * kern/parser.c (grub_parser_split_cmdline): Change type of
26394 getline parameter.
26395 (grub_parser_class): New variable.
26396 (grub_parser_execute): New function.
26397
26398 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
26399 * loader/multiboot2.c: Likewise.
26400 * loader/sparc64/ieee1275/linux.c: Likewise.
26401
26402 * util/grub-emu.c (read_command_list): New dummy function.
26403
26404 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26405
26406 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
26407 count to 16 for CCISS and IDA.
26408
26409 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26410
26411 * normal/menu_text.c (grub_wait_after_message): Print a newline
26412 after waiting for user input.
26413
26414 * loader/i386/linux.c: Include `<grub/normal.h>'.
26415 (grub_cmd_linux): Improve the error message about `ask' mode, by
26416 waiting for user input so it's not missed (we can do this, since
26417 user requested interaction).
26418
26419 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26420
26421 Added missing lst to grub-mkrescue
26422
26423 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
26424 and ${input_dir}/parttool.lst
26425
26426 2009-04-30 David S. Miller <davem@davemloft.net>
26427
26428 * util/hostdisk.c (device_is_wholedisk): New function.
26429 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
26430 zero only if device_is_wholedisk() returns true.
26431
26432 * util/hostdisk.c (convert_system_partition_to_system_disk):
26433 Handle virtual disk devices named /dev/vdiskX as found on sparc
26434 and powerpc.
26435
26436 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
26437 lettered partition specifier is found, convert to numbered.
26438
26439 2009-04-29 David S. Miller <davem@davemloft.net>
26440
26441 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
26442 * include/grub/sparc64/ieee1275/memory.h: Likewise.
26443
26444 * normal/command.c: Add missing newline at end of file.
26445
26446 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
26447 warnings.
26448 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
26449 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
26450 grub_ofdisk_read): Likewise, and deal similarly with the fact that
26451 ihandles have a 32-bit type but need to be stored in a "void *".
26452
26453 2009-04-28 Pavel Roskin <proski@gnu.org>
26454
26455 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
26456 not disk. Adjust all dependencies.
26457 (grub_fs_uuid_close): Use grub_device_close(), not
26458 grub_disk_close().
26459
26460 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
26461 parent's partition, don't copy it by reference, as it gets freed
26462 on close.
26463
26464 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26465
26466 Preboot hooks support
26467
26468 * commands/boot.c (struct grub_preboot_t): new declaration
26469 (preboots_head): new variable
26470 (preboots_tail): likewise
26471 (grub_loader_register_preboot_hook): new function
26472 (grub_loader_unregister_preboot_hook): likewise
26473 (grub_loader_set): launch preboot hooks
26474 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
26475 (grub_loader_register_preboot_hook): new declaration
26476 (grub_loader_unregister_preboot_hook): likewise
26477
26478 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26479
26480 Warning fix
26481
26482 * disk/scsi.c (grub_scsi_open): added missing cast when
26483 calling grub_dprintf
26484
26485 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
26486
26487 Bug and warning fixes
26488
26489 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
26490 declaration
26491 * commands/test.c (test_parse): fixed bug with file tests and corrected
26492 declaration of find_file
26493
26494 2009-04-26 Pavel Roskin <proski@gnu.org>
26495
26496 * Makefile.in: Don't install empty manual pages if help2man is
26497 missing. Use help2man option for output, not shell redirection.
26498
26499 2009-04-26 David S. Miller <davem@davemloft.net>
26500
26501 * util/grub-mkdevicemap.c (make_device_map): Add missing
26502 NESTED_FUNC_ATTR to process_device().
26503
26504 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
26505
26506 Test command
26507
26508 * commands/test.c: rewritten to use bash-like test
26509
26510 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
26511
26512 Parttool autoloading and improvements
26513
26514 * Makefile.in (pkglib_DATA): add parttool.lst
26515 (parttool.lst): new target
26516 * genmk.rb: generate parttool-*
26517 (CLEANFILES): add #{parttool}
26518 (PARTTOOLFILES): new variable
26519 * genparttoollist.sh: new file
26520 * parttool/pcpart.c (grub_pcpart_boot): more feedback
26521 (grub_pcpart_type): likewise
26522 * commands/parttool.c (helpmsg): new variable
26523 (grub_cmd_parttool): output help if not enough arguments are supplied
26524 autoload modules
26525 (GRUB_MOD_INIT(parttool)): use helpmsg
26526
26527 2009-04-24 David S. Miller <davem@davemloft.net>
26528
26529 Avoiding opening same device multiple times in device iterator.
26530
26531 * kern/device.c: (grub_device_iterate): Define struct part_ent,
26532 and use it to build a list of partitions in iterate_disk() and
26533 iterate_partition().
26534
26535 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
26536 on disk->data.
26537
26538 * disk/ieee1275/nand.c (grub_nand_iterate): Return
26539 grub_devalias_iterate() result instead of unconditional 0.
26540 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
26541 Also, capture hook return value, either directly or via
26542 grub_children_iterate(), and propagate to caller.
26543 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
26544 grub_children_iterate): Return value is now 'int' instead of
26545 'grub_err_t'.
26546 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
26547 like a proper iterator, stopping when hooks return non-zero.
26548 (grub_devalias_iterate): Likewise.
26549
26550 2009-04-23 David S. Miller <davem@davemloft.net>
26551
26552 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
26553
26554 2009-04-22 David S. Miller <davem@davemloft.net>
26555
26556 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
26557 is larger than address_cells, use that value for address_cells too.
26558
26559 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
26560 IEEE1275_MAX_PATH_LEN): Define.
26561 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
26562 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
26563 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
26564 'devtype'. Explicitly NULL terminate devalias expansion.
26565
26566 * util/sparc64/ieee1275/misc.c: New file.
26567 * util/sparc64/ieee1275/grub-setup.c: New file.
26568 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
26569 * util/sparc64/ieee1275/grub-mkimage.c: New file.
26570 * util/sparc64/ieee1275/grub-install.in: New file.
26571 * util/ieee1275/ofpath.c: New file.
26572 * util/ieee1275/devicemap.c: New file.
26573 * util/devicemap.c: New file.
26574 * util/deviceiter.c: New file.
26575 * kern/sparc64/ieee1275/init.c: New file.
26576 * include/grub/util/ofpath.h: New file.
26577 * include/grub/util/deviceiter.h: New file.
26578 * util/grub-mkdevicemap.c: Include deviceiter.h.
26579 Implement using grub_util_emit_devicemap_entry and
26580 grub_util_iterate_devices.
26581 * conf/i386-corebook.rmk: Build util/deviceiter.c and
26582 util/devicemap.c into grub-mkdevicemap
26583 * conf/i386-efi.rmk: Likewise.
26584 * conf/i386-ieee1275.rmk: Likewise.
26585 * conf/i386-pc.rmk: Likewise.
26586 * conf/powerpc-ieee1275.rmk: Likewise.
26587 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
26588 images and installation utilities. Build kernel as image
26589 instead of as elf binary. Use common rules as much as possible.
26590
26591 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
26592
26593 Correct GPT definition
26594
26595 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
26596 of "attrib" member
26597
26598 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
26599
26600 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
26601
26602 2009-04-19 David S. Miller <davem@davemloft.net>
26603
26604 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
26605 (grub_rescue_cmd_linux): Rename to...
26606 (grub_cmd_linux): and fix prototype.
26607 (grub_rescue_cmd_initrd): Rename to...
26608 (grub_cmd_initrd): and fix prototype.
26609 (cmd_linux, cmd_initrd): New.
26610 (GRUB_MOD_INIT(linux)): Use grub_register_command().
26611 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
26612
26613 2009-04-17 Pavel Roskin <proski@gnu.org>
26614
26615 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
26616 format.
26617 (grub_ohci_transfer): Likewise.
26618
26619 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
26620
26621 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
26622 return without a value. Fix inconsistent indentation.
26623
26624 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
26625 match struct grub_fs.
26626
26627 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
26628 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
26629 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
26630 * commands/lspci.c (grub_lspci_iter): Likewise.
26631
26632 2009-04-16 Bean <bean123ch@gmail.com>
26633
26634 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
26635 value.
26636
26637 2009-04-15 Pavel Roskin <proski@gnu.org>
26638
26639 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
26640 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
26641 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
26642 definitions.
26643
26644 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
26645
26646 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
26647 that no multiple data or metadata areas are supported and `Unknown
26648 metadata header'.
26649
26650 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
26651
26652 Move loader out of the kernel
26653
26654 * kern/loader.c: moved to ...
26655 * commands/boot.c: ... moved here
26656 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
26657 * commands/boot.c (grub_cmd_boot): moved here. All users updated
26658 * include/grub/kernel.h (grub_machine_fini): export
26659 * include/grub/loader.h (grub_loader_is_loaded): update declaration
26660 (grub_loader_set): likewise
26661 (grub_loader_unset): likewise
26662 (grub_loader_boot): likewise
26663 * conf/common.rmk: new module boot.mod
26664 (pkglib_MODULES): add boot.mod
26665 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
26666 (grub_emu_SOURCES): likewise
26667 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
26668 (grub_emu_SOURCES): likewise
26669 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
26670 (grub_emu_SOURCES): likewise
26671 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
26672 (grub_emu_SOURCES): likewise
26673 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
26674 (grub_emu_SOURCES): likewise
26675 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
26676 (grub_emu_SOURCES): likewise
26677 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
26678 (grub_emu_SOURCES): likewise
26679
26680 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
26681
26682 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
26683
26684 * kern/misc.c (grub_itoa): Removed function
26685 (grub_ltoa): likewise
26686 (grub_vsprintf): use grub_lltoa
26687
26688 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
26689
26690 Restore grub-emu
26691
26692 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
26693 * conf/i386-coreboot.rmk: likewise
26694 * conf/i386-ieee1275.rmk: likewise
26695 * conf/powerpc-ieee1275.rmk: likewise
26696
26697 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
26698
26699 * INSTALL: Add that `./autogen.sh' needs to be run before
26700 `./configure.'.
26701
26702 2009-04-14 Bean <bean123ch@gmail.com>
26703
26704 * Makefile.in (pkglib_DATA): Add handler.lst.
26705 (handler.lst): New rule.
26706
26707 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
26708 * conf/i386-coreboot.rmk: Likewise.
26709 * conf/i386-ieee1275.rmk: Likewise.
26710 * conf/i386-efi.rmk: Likewise.
26711 * conf/x86_64-efi.rmk: Likewise.
26712 * conf/powerpc-ieee1275.rmk: Likewise.
26713 * conf/sparc64-ieee1275.rmk: Likewise.
26714
26715 * genhandlerlist.sh: New file.
26716
26717 * genmk.rb: Add rules to generate handler.lst.
26718
26719 * include/grub/normal.h (grub_file_getline): New function definition.
26720 (read_handler_list): Likewise.
26721 (free_handler_list): Likewise.
26722
26723 * include/grub/term.h (grub_term_register_input): Add name parameter
26724 for auto generation of handler.lst.
26725 (grub_term_register_output): Likewise.
26726
26727 * normal/handler.c: New file.
26728
26729 * normal/main.c (get_line): Renamed to grub_file_getline.
26730 (read_config_file): Use the newly renamed grub_file_getline.
26731 (read_command_list): Likewise.
26732 (read_fs_list): Likewise.
26733 (grub_normal_execute): Call read_handler_list to parse handler.lst.
26734 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
26735
26736 * term/efi/console.c (grub_console_init): Add name parameter for auto
26737 generation of handler.lst.
26738 * term/gfxterm.c: Likewise.
26739 * term/i386/pc/at_keyboard.c: Likewise.
26740 * term/i386/pc/console.c: Likewise.
26741 * term/i386/pc/serial.c: Likewise.
26742 * term/i386/pc/vesafb.c: Likewise.
26743 * term/i386/pc/vga.c: Likewise.
26744 * term/i386/pc/vga_text.c: Likewise.
26745 * term/ieee1275/ofconsole.c: Likewise.
26746 * term/usb_keyboard.c: Likewise.
26747
26748 2009-04-14 Bean <bean123ch@gmail.com>
26749
26750 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
26751 properly with null character.
26752
26753 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
26754
26755 * configure: Remove.
26756 * config.h.in: Likewise.
26757 * stamp-h.in: Likewise.
26758 * DISTLIST: Likewise.
26759 * conf/common.mk: Likewise.
26760 * conf/i386-coreboot.mk: Likewise.
26761 * conf/i386-efi.mk: Likewise.
26762 * conf/i386-ieee1275.mk: Likewise.
26763 * conf/i386.mk: Likewise.
26764 * conf/i386-pc.mk: Likewise.
26765 * conf/powerpc-ieee1275.mk: Likewise.
26766 * conf/sparc64-ieee1275.mk: Likewise.
26767 * conf/x86_64-efi.mk: Likewise.
26768
26769 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
26770 develop on GRUB.
26771
26772 2009-04-14 John Stanley <jpsinthemix@verizon.net>
26773 David S. Miller <davem@davemloft.net>
26774
26775 * util/hostdisk.c (make_device_name): Fix buffer length
26776 calculations.
26777
26778 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
26779
26780 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
26781 <sys/param.h> and <sys/sysctl.h>.
26782 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
26783 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
26784 opening the device and reset them afterwards.
26785
26786 2009-04-13 Pavel Roskin <proski@gnu.org>
26787
26788 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
26789 Reported by John Stanley <jpsinthemix@verizon.net>
26790
26791 2009-04-13 Robert Millan <rmh@aybabtu.com>
26792
26793 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
26794 that name for menuentries when appropriate.
26795
26796 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
26797
26798 * util/grub.d/10_freebsd.in: Add a missing `fi'.
26799
26800 2009-04-13 Robert Millan <rmh@aybabtu.com>
26801
26802 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
26803 to Linux, simply abort telling the user it's no longer supported.
26804
26805 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
26806
26807 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
26808 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
26809 `freebsd_loadenv' only when devices.hints exist.
26810
26811 2009-04-13 Pavel Roskin <proski@gnu.org>
26812
26813 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
26814
26815 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
26816
26817 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
26818 partition number.
26819 (grub_drive): Likewise.
26820
26821 2009-04-13 David S. Miller <davem@davemloft.net>
26822
26823 * kern/sparc64/ieee1275/ieee1275.c: New file.
26824 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
26825 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
26826 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
26827 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
26828 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
26829 grub_ieee1275_alloc_physmem): Declare new exported functions.
26830
26831 * include/grub/sparc64/ieee1275/loader.h: New file.
26832 * include/grub/sparc64/ieee1275/memory.h: Likewise.
26833 * include/grub/sparc64/kernel.h: Likewise.
26834 * loader/sparc64/ieee1275/linux.c: Likewise.
26835
26836 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
26837 (grub_fstest_SOURCES): Likewise.
26838
26839 * util/hostdisk.c (make_device_name): Do not make any assumptions
26840 about the length of drive names.
26841
26842 * kern/dl.c (grub_dl_load_file): Close file immediately when
26843 we are done using it.
26844
26845 2009-04-12 David S. Miller <davem@davemloft.net>
26846
26847 * kern/misc.c (grub_ltoa): Fix cast when handling negative
26848 values. Noticed by Pavel Roskin.
26849
26850 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
26851 target compiler.
26852
26853 * genmk.rb: Add more flexible image type specification, also
26854 pass --strip-unneeded to objcopy.
26855 * conf/i386-pc.rmk: Use *_FORMAT.
26856 * conf/i386-pc.mk: Rebuilt.
26857
26858 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
26859 (OFDISK_HASH_SZ): Define.
26860 (ofdisk_hash): New hash table.
26861 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
26862 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
26863 instead of device phandle which is not unique.
26864
26865 * kern/sparc64/ieee1275/init.c: Delete, replace with...
26866 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
26867 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
26868 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
26869 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
26870 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
26871 GRUB_KERNEL_MACHINE_DATA_END): Define.
26872 (grub_kernel_image_size, grub_total_module_size): Declare.
26873
26874 2009-04-12 Pavel Roskin <proski@gnu.org>
26875
26876 * configure.ac: Change the logic when we check for target tools.
26877 Do it when the target is specified and it's different from the
26878 specified value of the host.
26879
26880 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
26881
26882 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
26883 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
26884 GNU/kFreeBSD. Check if a device is a character device. Use
26885 DIOCGMEDIASIZE to get the size.
26886 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
26887 support for GNU/kFreeBSD.
26888 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
26889 is a character device instead of a block device. Add support for
26890 FreeBSD device names.
26891
26892 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
26893 is a character device instead of a block device.
26894
26895 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
26896 is a character device instead of a block device.
26897
26898 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
26899
26900 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
26901 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
26902 FreeBSD. Check if a device is a character device. Use
26903 DIOCGMEDIASIZE to get the size.
26904 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
26905 support for FreeBSD.
26906 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
26907 is a character device instead of a block device. Add support for
26908 FreeBSD device names.
26909
26910 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
26911 a character device instead of a block device.
26912 (grub_util_check_char_device): New function.
26913
26914 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
26915 a character device instead of a block device.
26916
26917 * include/grub/util/getroot.h (grub_util_check_char_device): New
26918 prototype.
26919
26920 2009-04-11 David S. Miller <davem@davemloft.net>
26921
26922 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
26923 static libgcc.
26924 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
26925 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
26926 function, if present.
26927 (__bswapdi2): Likewise.
26928
26929 * include/grub/sparc64/ieee1275/boot.h: New file.
26930 * boot/sparc64/ieee1275/boot.S: Likewise.
26931 * boot/sparc64/ieee1275/diskboot.S: Likewise.
26932
26933 * kern/misc.c (grub_ltoa): New function.
26934 (grub_vsprintf): Use it to format 'long' integers.
26935
26936 2009-04-10 David S. Miller <davem@davemloft.net>
26937
26938 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
26939 slots are of type grub_ieee1275_cell_t.
26940 (grub_nand_read): Likewise.
26941 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
26942 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
26943 macros are used to compare values in arg/ret block of the call.
26944 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
26945 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
26946 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
26947 grub_ieee1275_instance_to_path, grub_ieee1275_write,
26948 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
26949 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
26950 grub_ieee1275_close, grub_ieee1275_set_property,
26951 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
26952 grub_ieee1275_cell_t.
26953 * kern/ieee1275/openfw.c (grub_map): Likewise.
26954 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
26955 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
26956
26957 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
26958 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
26959 (grub_devalias_iterate): Likewise.
26960
26961 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26962
26963 UFS improvements
26964
26965 * fs/ufs.c (INODE_NBLOCKS): new definition
26966 (struct grub_ufs_dirent): added fields for non-BSD dirents
26967 (grub_ufs_get_file_block): fixed double indirect handling
26968 (grub_ufs_lookup_symlink): use more robust way to determine whether
26969 symlink is inline
26970 (grub_ufs_find_file): support for non-BSD dirents
26971 (grub_ufs_dir): support for non-BSD dirents
26972
26973 2009-04-10 Bean <bean123ch@gnail.com>
26974
26975 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
26976 attribute, otherwise the size would be wrong for i386 platform.
26977
26978 * include/grub/pci.h (grub_pci_read_word): New inline function.
26979 (grub_pci_read_byte): Likewise.
26980 (grub_pci_write): Likewise.
26981 (grub_pci_write_word): Likewise.
26982 (grub_pci_write_byte): Likewise.
26983
26984 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
26985
26986 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
26987 (find_framebuf): Scan pci to locate the frame buffer address.
26988
26989 * commands/efi/fixvideo.c: New file.
26990
26991 * commands/efi/loadbios.c: Likewise.
26992
26993 * commands/memrw.c: Likewise.
26994
26995 * util/grub-dumpbios.in: Likewise.
26996
26997 * conf/common.rmk (grub-dumpbios): New utility.
26998 (pkglib_MODULES): New module memrw.mod.
26999 (memrw_mod_SOURCE): New macro.
27000 (memrw_mod_CFLAGS): Likewise.
27001 (memrw_mod_LDFLAGS): Likewise.
27002
27003 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
27004 fixvideo.mod.
27005 (loadbios_mod_SOURCE): New macro.
27006 (loadbios_mod_CFLAGS): Likewise.
27007 (loadbios_mod_LDFLAGS): Likewise.
27008 (fixvideo_mod_SOURCE): Likewise.
27009 (fixvideo_mod_CFLAGS): Likewise.
27010 (fixvideo_mod_LDFLAGS): Likewise.
27011
27012 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
27013 fixvideo.mod.
27014 (loadbios_mod_SOURCE): New macro.
27015 (loadbios_mod_CFLAGS): Likewise.
27016 (loadbios_mod_LDFLAGS): Likewise.
27017 (fixvideo_mod_SOURCE): Likewise.
27018 (fixvideo_mod_CFLAGS): Likewise.
27019 (fixvideo_mod_LDFLAGS): Likewise.
27020
27021 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
27022
27023 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
27024
27025 2009-04-07 David S. Miller <davem@davemloft.net>
27026
27027 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
27028 support for R_SPARC_OLO10 relocations. Fix compile warning for
27029 R_SPARC_WDISP30 case.
27030 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
27031
27032 2009-04-06 Pavel Roskin <proski@gnu.org>
27033
27034 * include/grub/misc.h (ARRAY_SIZE): New macro.
27035 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
27036 New macro.
27037 * loader/i386/linux.c (allocate_pages): Use free_pages().
27038 (grub_linux_unload): Don't use free_pages().
27039 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
27040 wrong index. Treat all other modes as text modes.
27041 (grub_cmd_linux): Initialize vid_mode unconditionally to
27042 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
27043
27044 * commands/help.c (print_command_help): Use cmd->prio, not
27045 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
27046
27047 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
27048
27049 Parttool
27050
27051 * parttool/pcpart.c: new file
27052 * commands/parttool.c: likewise
27053 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
27054 (parttool_mod_SOURCES): new variable
27055 (parttool_mod_CFLAGS): likewise
27056 (parttool_mod_LDFLAGS): likewise
27057 (pcpart_mod_SOURCES): likewise
27058 (pcpart_mod_CFLAGS): likewise
27059 (pcpart_mod_LDFLAGS): likewise
27060 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
27061 and parttool/pcpart.c
27062 * conf/i386-efi.rmk: likewise
27063 * conf/i386-ieee1275.rmk: likewise
27064 * conf/i386-pc.rmk: likewise
27065 * conf/powerpc-ieee1275.rmk: likewise
27066 * conf/sparc64-ieee1275.rmk: likewise
27067 * conf/x86_64-ieee1275.rmk: likewise
27068
27069 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27070
27071 Support for mtime and further expandability of dir command
27072
27073 * include/grub/lib/datetime.h: moved to ...
27074 * include/grub/datetime.h: ... moved here and added
27075 declaration of grub_unixtime2datetime. All users updated
27076 * include/grub/fs.h: new syntax for dir and mtime functions in
27077 struct grub_fs
27078 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
27079 and GRUB_FSHELP_FLAGS_MASK
27080 * commands/ls.c (grub_ls_list_files): Write mtime in long format
27081 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
27082 (grub_ext2_mtime): new function
27083 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
27084 (grub_hfsplus_mtime): new function
27085 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
27086 (GRUB_UFS_ATTR_FILE): likewise
27087 (GRUB_UFS_ATTR_LNK): likewise
27088 (struct grub_ufs_sblock): new fields mtime
27089 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
27090 all users updated
27091 (grub_ufs_dir): mtime support
27092 (grub_ufs_mtime): new function
27093 * fs/affs.c (grub_affs_dir): use new dir syntax
27094 * fs/afs.c (grub_afs_dir): likewise
27095 * fs/cpio.c (grub_cpio_dir): likewise
27096 * fs/fat.c (grub_fat_find_dir): likewise
27097 * fs/hfs.c (grub_hfs_dir): likewise
27098 * fs/iso9660.c (grub_iso9660_dir): likewise
27099 * fs/jfs.c (grub_jfs_dir): likewise
27100 * fs/minix.c (grub_minix_dir): likewise
27101 * fs/ntfs.c (grub_ntfs_dir): likewise
27102 * fs/reiserfs.c (grub_reiserfs_dir): likewise
27103 * fs/sfs.c (grub_sfs_dir): likewise
27104 * fs/xfs.c (grub_xfs_dir): likewise
27105 * util/hostfs.c (grub_hostfs_dir): likewise
27106 * lib/datetime.c: moved to ...
27107 * normal/datetime.c: ... moved here
27108 (grub_unixtime2datetime): new function
27109 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
27110 * normal/completion.c (iterate_dir): use new dir syntax
27111 * normal/misc.c (grub_normal_print_device_info): tell the
27112 last modification time of a volume
27113 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
27114 * conf/common.rmk: added lib/datetime.c to ls.mod
27115 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
27116 (normal_mod_SOURCES): likewise
27117 (datetime_mod_SOURCES): Removed lib/datetime.c
27118 * conf/i386-efi.rmk: likewise
27119 * conf/i386-ieee1275.rmk: likewise
27120 * conf/i386-pc.rmk: likewise
27121 * conf/powerpc-ieee1275.rmk: likewise
27122 * conf/sparc64-ieee1275.rmk: likewise
27123 * conf/x86_64-efi.rmk: likewise
27124
27125 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27126
27127 Trim trailing spaces in FAT label and support mtools-like labels
27128
27129 * fs/fat.c (grub_fat_iterate_dir): New function based
27130 on grub_fat_find_dir
27131 (grub_fat_find_dir): use grub_fat_iterate_dir
27132 (grub_fat_label): likewise
27133
27134 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
27135
27136 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
27137 and command.h
27138 remove extraneous kernel_elf_HEADERS
27139
27140 2009-04-04 Bean <bean123ch@gnail.com>
27141
27142 * include/grub/util/misc.h: Add dummy function fsync for mingw.
27143
27144 * util/misc.c: Likewise.
27145
27146 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27147
27148 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
27149 instead of grub_printf.
27150
27151 2009-04-03 Robert Millan <rmh@aybabtu.com>
27152
27153 * loader/i386/linux.c (grub_linux_setup_video): Fill
27154 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
27155 values from `mode info' structure instead of hardcoded
27156 values.
27157
27158 2009-04-01 Pavel Roskin <proski@gnu.org>
27159
27160 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
27161 unused now.
27162 * genmk.rb: Likewise.
27163 * configure.ac: Likewise.
27164
27165 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
27166
27167 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
27168 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
27169
27170 2009-04-01 David S. Miller <davem@davemloft.net>
27171
27172 * normal/sparc64/setjmp.S: Fix setjmp implementation.
27173 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
27174 (grub_setjmp): Mark with 'returns_twice' attribute.
27175 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
27176 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
27177 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
27178
27179 2009-04-01 Robert Millan <rmh@aybabtu.com>
27180
27181 Reapply fix from 2008-07-28 which was accidentally reverted; also
27182 perform the same fix to a similar check in same function.
27183
27184 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
27185 with the same number are found, just use issue a warning with
27186 grub_dprintf(), as this error has been reported to be non-fatal.
27187
27188 2009-03-31 Pavel Roskin <proski@gnu.org>
27189
27190 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
27191 for cross-compilation.
27192
27193 2009-03-30 Robert Millan <rmh@aybabtu.com>
27194
27195 Fix i386-ieee1275 build.
27196
27197 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
27198 Remove declaration.
27199
27200 2009-03-30 Pavel Roskin <proski@gnu.org>
27201
27202 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
27203 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
27204 zero-terminated, rely only on the strlen value. Fix comparison
27205 of strings differing in length.
27206
27207 2009-03-30 Robert Millan <rmh@aybabtu.com>
27208
27209 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
27210 checking for abi version. Improve error messages on BIOS to notify
27211 user about `linux16' command.
27212
27213 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
27214
27215 Leak fixes
27216
27217 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
27218 in case of collision
27219 * disk/scsi.c (grub_scsi_open): free scsi in case of error
27220
27221 2009-03-29 Robert Millan <rmh@aybabtu.com>
27222
27223 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
27224 set `vid_mode' accordingly.
27225 (grub_linux_boot): Process `vid_mode' and set video mode.
27226
27227 2009-03-29 Robert Millan <rmh@aybabtu.com>
27228
27229 * util/grub.d/10_linux.in (linux_entry): New function.
27230 Factorize generation of Linux boot entries.
27231
27232 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
27233
27234 Make the format of Environment Block plain text. The boot loader
27235 part is not tested well yet.
27236
27237 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
27238 (buffer): Removed.
27239 (envblk): Likewise.
27240 (usage): Remove "info" and "clear". Add "unset". Update the
27241 description of "set", as this does not delete variables any
27242 longer.
27243 (create_envblk_file): Complete rewrite.
27244 (open_envblk_file): Likewise.
27245 (cmd_info): Removed.
27246 (cmd_list): Likewise.
27247 (cmd_set): Likewise.
27248 (cmd_clear): Likewise.
27249 (list_variables): New function.
27250 (write_envblk): Likewise.
27251 (set_variables): Likewise.
27252 (unset_variables): Likewise.
27253 (main): Complete rewrite.
27254
27255 * commands/loadenv.c (buffer): Removed.
27256 (envblk): Likewise.
27257 (open_envblk_file): New function.
27258 (read_envblk_file): Complete rewrite.
27259 (grub_cmd_load_env): Likewise.
27260 (grub_cmd_list_env): Likewise.
27261 (struct blocklist): New struct.
27262 (free_blocklists): New function.
27263 (check_blocklists): Likewise.
27264 (write_blocklists): Likewise.
27265 (grub_cmd_save_env): Complete rewrite.
27266
27267 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
27268 a plain text signature.
27269 (GRUB_ENVBLK_MAXLEN): Removed.
27270 (struct grub_envblk): Complete rewrite.
27271 (grub_envblk_find): Removed.
27272 (grub_envblk_insert): Likewise.
27273 (grub_envblk_open): New prototype.
27274 (grub_envblk_set): Likewise.
27275 (grub_envblk_delete): Put const to VALUE.
27276 (grub_envblk_iterate): Put const to NAME and VALUE.
27277 (grub_envblk_close): New prototype.
27278 (grub_envblk_buffer): New inline function.
27279 (grub_envblk_size): Likewise.
27280
27281 * lib/envblk.c: Include grub/mm.h.
27282 (grub_env_find): Removed.
27283 (grub_envblk_open): New function.
27284 (grub_envblk_close): Likewise.
27285 (escaped_value_len): Likewise.
27286 (find_next_line): Likewise.
27287 (grub_envblk_insert): Removed.
27288 (grub_envblk_set): New function.
27289 (grub_envblk_delete): Complete rewrite.
27290 (grub_envblk_iterate): Likewise.
27291
27292 2009-03-28 Robert Millan <rmh@aybabtu.com>
27293
27294 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
27295 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
27296 variables. Use 16-bit loader.
27297 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
27298 loader.
27299 * kern/i386/loader.S (grub_linux_boot): Rename to ...
27300 (grub_linux16_boot): ... this. Update all users.
27301 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
27302 (grub_linux_boot): ... this. Update all users.
27303
27304 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
27305 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
27306 commands to `linux16' and `initrd16'.
27307 (GRUB_MOD_FINI(linux)): Rename to ...
27308 (GRUB_MOD_FINI(linux16)): ... this.
27309
27310 2009-03-24 Pavel Roskin <proski@gnu.org>
27311
27312 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
27313 not just for compilation.
27314
27315 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
27316
27317 Move multiboot helper out of kernel
27318
27319 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
27320 `loader/i386/multiboot_helper.S'.
27321 * conf/i386-coreboot.rmk: Likewise
27322 * conf/i386-ieee1275.rmk: Likewise
27323
27324 * kern/i386/loader.S: Move multiboot helpers from here...
27325 * loader/i386/multiboot_helper.S: ...moved here
27326 * include/grub/i386/loader.h: Move declarations of multiboot
27327 helpers from here...
27328 * include/grub/i386/multiboot.h: ...moved here
27329 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
27330
27331 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27332
27333 * kern/env.c (grub_env_context_open): Added an argument to specify
27334 whether a new context inherits exported variables from current
27335 one. This is useful when making a sandbox to interpret a config
27336 file.
27337 All callers updated.
27338
27339 * include/grub/env.h (grub_env_context_open): Updated the prototype.
27340
27341 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27342
27343 * kern/env.c (grub_env_context_close): Fix memory leaks.
27344
27345 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27346
27347 * normal/main.c (grub_normal_execute): Added an argument
27348 BATCH to specify if an interactive interface should be provided
27349 after reading a config file.
27350 All callers updated.
27351 (read_command_list): Prevent being executed twice.
27352 (read_fs_list): Likewise.
27353
27354 * include/grub/normal.h (grub_normal_execute): Updated the
27355 prototype.
27356
27357 2009-03-22 Pavel Roskin <proski@gno.org>
27358
27359 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
27360 _start.
27361 * kern/i386/pc/startup.S: Likewise.
27362 * kern/i386/efi/startup.S: Likewise.
27363 * kern/i386/ieee1275/startup.S: Likewise.
27364 * kern/i386/coreboot/startup.S: Likewise.
27365 * kern/x86_64/efi/startup.S: Likewise.
27366
27367 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
27368 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
27369 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
27370
27371 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
27372
27373 Bugfixes in multiboot for bugs uncovered by solaris kernel.
27374
27375 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
27376 limit detection.
27377 Use vaddr of correct segment for entry_point.
27378
27379 2009-03-21 Bean <bean123ch@gmail.com>
27380
27381 * commands/blocklist.c: Add include file <grub/command.h>, remove
27382 <grub/normal.h> and <grub/arg.h>.
27383 (grub_cmd_blocklist): Use the new command interface.
27384 (GRUB_MOD_INIT): Likewise.
27385 (GRUB_MOD_FINI): Likewise.
27386 * commands/boot.c: Likewise.
27387 * commands/cat.c: Likewise.
27388 * commands/cmp.c: Likewise.
27389 * commands/configfile.c: Likewise.
27390 * commands/crc.c: Likewise.
27391 * commands/echo.c: Likewise.
27392 * commands/halt.c: Likewise.
27393 * commands/handler.c: Likewise.
27394 * commands/hdparm.c: Likewise.
27395 * commands/help.c: Likewise.
27396 * commands/hexdump.c: Likewise.
27397 * commands/loadenv.c: Likewise.
27398 * commands/ls.c: Likewise.
27399 * commands/lsmmap.c: Likewise.
27400 * commands/lspci.c: Likewise.
27401 * commands/loadenv.c: Likewise.
27402 * commands/read.c: Likewise.
27403 * commands/reboot.c: Likewise.
27404 * commands/search.c: Likewise.
27405 * commands/sleep.c: Likewise.
27406 * commands/test.c: Likewise.
27407 * commands/usbtest.c: Likewise.
27408 * commands/videotest.c: Likewise.
27409 * commands/i386/cpuid.c: Likewise.
27410 * commands/i386/pc/halt.c: Likewise.
27411 * commands/i386/pc/play.c: Likewise.
27412 * commands/i386/pc/pxecmd.c: Likewise.
27413 * commands/i386/pc/vbeinfo.c: Likewise.
27414 * commands/i386/pc/vbetest.c: Likewise.
27415 * commands/ieee1275/suspend.c: Likewise.
27416 * disk/loopback.c: Likewise.
27417 * font/font_cmd.c: Likewise.
27418 * hello/hello.c: Likewise.
27419 * loader/efi/appleloader.c: Likewise.
27420 * loader/efi/chainloader.c: Likewise.
27421 * loader/i386/bsd.c: Likewise.
27422 * loader/i386/efi/linux.c: Likewise.
27423 * loader/i386/ieee1275/linux.c: Likewise.
27424 * loader/i386/linux.c: Likewise.
27425 * loader/i386/pc/chainloader.c: Likewise.
27426 * loader/i386/pc/linux.c: Likewise.
27427 * loader/powerpc/ieee1275/linux.c: Likewise.
27428 * loader/multiboot_loader.c: Likewise.
27429 * term/gfxterm.c: Likewise.
27430 * term/i386/pc/serial.c: Likewise.
27431 * term/terminfo.c: Likewise.
27432
27433 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
27434 * term/i386/pc/vga.c: Likewise.
27435 * video/readers/jpeg.c: Likewise.
27436 * video/readers/png.c: Likewise.
27437 * video/readers/tga.c: Likewise.
27438
27439 * util/grub-fstest (cmd_loopback): Removed.
27440 (cmd_blocklist): Likewise.
27441 (cmd_ls): Likewise.
27442 (grub_register_command): Likewise.
27443 (grub_unregister_command): Likewise.
27444 (execute_command): Use grub_command_find to locate command and execute
27445 it.
27446
27447 * include/grub/efi/chainloader.h: Removed.
27448 * loader/efi/chainloader_normal.c: Likewise.
27449 * loader/i386/bsd_normal.c: Likewise.
27450 * loader/i386/pc/chainloader_normal.c: Likewise.
27451 * loader/i386/pc/multiboot_normal.c: Likewise.
27452 * loader/linux_normal.c: Likewise.
27453 * loader/multiboot_loader_normal.c: Likewise.
27454 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27455
27456 * gencmdlist.sh: Scan new registration command grub_register_extcmd
27457 and grub_register_command_p1.
27458
27459 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
27460 kern/command.c, lib/arg.c and commands/extcmd.c.
27461 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
27462 (minicmd_mod_SOURCES): New variable.
27463 (minicmd_mod_CFLAGS): Likewise.
27464 (minicmd_mod_LDFLAGS): Likewise.
27465 (extcmd_mod_SOURCES): Likewise.
27466 (extcmd_mod_CFLAGS): Likewise.
27467 (extcmd_mod_LDFLAGS): Likewise.
27468 (boot_mod_SOURCES): Removed.
27469 (boot_mod_CFLAGS): Likewise.
27470 (boot_mod_LDFLAGS): Likewise.
27471
27472 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
27473 kern/corecmd.c.
27474 (kernel_img_HEADERS): Add command.h.
27475 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
27476 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
27477 and lib/arg.c.
27478 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
27479 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
27480 remove the corresponding normal mode command.
27481 (normal_mod_SOURCES): Remove normal/arg.c.
27482 * conf/i386-coreboot.rmk: Likewise.
27483 * conf/i386-efi.rmk: Likewise.
27484 * conf/i386-ieee1275.rmk: Likewise.
27485 * conf/powerpc-ieee1275.rmk: Likewise.
27486 * conf/x86_64-efi.rmk: Likewise.
27487
27488 * include/grub/arg.h: Move from here ...
27489 * include/grub/lib/arg.h: ... to here.
27490
27491 * normal/arg.c: Move from here ...
27492 * lib/arg.c: ... to here.
27493
27494 * commands/extcmd.c: New file.
27495 * commands/minicmd.c: Likewise.
27496 * include/grub/command.h: Likewise.
27497 * include/grub/extcmd.h: Likewise.
27498 * kern/command.c: Likewise.
27499 * kern/corecmd.c: Likewise.
27500
27501 * kern/list.c (grub_list_iterate): Return int instead of void.
27502 (grub_list_insert): New function.
27503 (grub_prio_list_insert): Likewise.
27504
27505 * kern/rescue.c (grub_rescue_command): Removed.
27506 (grub_rescue_command_list): Likewise.
27507 (grub_rescue_register_command): Likewise.
27508 (grub_rescue_unregister_command): Likewise.
27509 (grub_rescue_cmd_boot): Move to minicmd.c
27510 (grub_rescue_cmd_help): Likewise.
27511 (grub_rescue_cmd_info): Likewise.
27512 (grub_rescue_cmd_boot): Likewise.
27513 (grub_rescue_cmd_testload): Likewise.
27514 (grub_rescue_cmd_dump): Likewise.
27515 (grub_rescue_cmd_rmmod): Likewise.
27516 (grub_rescue_cmd_lsmod): Likewise.
27517 (grub_rescue_cmd_exit): Likewise.
27518 (grub_rescue_print_devices): Moved to corecmd.c.
27519 (grub_rescue_print_files): Likewise.
27520 (grub_rescue_cmd_ls): Likewise.
27521 (grub_rescue_cmd_insmod): Likewise.
27522 (grub_rescue_cmd_set): Likewise.
27523 (grub_rescue_cmd_unset): Likewise.
27524 (attempt_normal_mode): Use grub_command_find to get normal module.
27525 (grub_enter_rescue_mode): Use grub_register_core_commands to register
27526 commands, remove grub_rescue_register_command calls.
27527
27528 * normal/command.c (grub_register_command): Removed.
27529 (grub_unregister_command): Likewise.
27530 (grub_command_find): Likewise.
27531 (grub_iterate_commands): Likewise.
27532 (rescue_command): Likewise.
27533 (export_command): Moved to corecmd.c.
27534 (set_command): Removed.
27535 (unset_command): Likewise.
27536 (insmod_command): Likewise.
27537 (rmmod_command): Likewise.
27538 (lsmod_command): Likewise.
27539 (grub_command_init): Likewise.
27540
27541 * normal/completion.c (iterate_command): Use cmd->prio to check for
27542 active command.
27543 (complete_arguments): Use grub_extcmd_t structure to find options.
27544 (grub_normal_do_completion): Change function grub_iterate_commands to
27545 grub_command_iterate.
27546
27547 * normal/execute.c (grub_script_execute_cmd): No need to parse
27548 argument here.
27549
27550 * normal/main.c (grub_dyncmd_dispatcher): New function.
27551 (read_command_list): Register unload commands as dyncmd.
27552 (grub_cmd_normal): Use new command interface, register rescue,
27553 unregister normal at entry, register normal, unregister rescue at exit.
27554
27555 * include/grub/list.h (grub_list_test_t): New type.
27556 (grub_list_iterate): Return int instead of void.
27557 (grub_list_insert): New function.
27558 (GRUB_AS_NAMED_LIST_P): New macro.
27559 (GRUB_AS_PRIO_LIST): Likewise.
27560 (GRUB_AS_PRIO_LIST_P): Likewise.
27561 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
27562 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
27563 (grub_prio_list): New structure.
27564 (grub_prio_list_insert): New function.
27565 (grub_prio_list_remove): New inline function.
27566
27567 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
27568 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
27569 (GRUB_COMMAND_FLAG_MENU): Likewise.
27570 (GRUB_COMMAND_FLAG_BOTH): Likewise.
27571 (GRUB_COMMAND_FLAG_TITLE): Likewise.
27572 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
27573 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
27574 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
27575 (grub_command): Likewise.
27576 (grub_register_command): Likewise.
27577 (grub_command_find): Likewise.
27578 (grub_iterate_commands): Likewise.
27579 (grub_command_init): Likewise.
27580 (grub_arg_parse): Likewise.
27581 (grub_arg_show_help): Likewise.
27582
27583 * include/grub/rescue.h (grub_rescue_register_command): Removed.
27584 (grub_rescue_unregister_command): Likewise.
27585
27586 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
27587 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
27588 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
27589
27590 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
27591 grub_rescue_cmd_initrd.
27592 * include/grub/i386/loader.h: Likewise.
27593 * include/grub/x86_64/loader.h: Likewise.
27594
27595 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
27596
27597 2009-03-21 Bean <bean123ch@gmail.com>
27598
27599 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
27600 instead of stat in mingw environment.
27601
27602 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
27603
27604 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
27605
27606 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
27607 AC_CONFIG_LINKS.
27608
27609 2009-03-21 Bean <bean123ch@gmail.com>
27610
27611 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
27612 out of range error.
27613
27614 2009-03-18 Michel Dänzer <michel@daenzer.net>
27615
27616 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
27617 checking inode flags for EXT4_EXTENTS_FLAG.
27618
27619 2009-03-18 Robert Millan <rmh@aybabtu.com>
27620
27621 * loader/i386/linux.c: Include `<grub/video.h>' and
27622 `<grub/i386/pc/vbe.h>'..
27623 (grub_linux_setup_video): New function. Loosely based on the EFI one.
27624 (grub_linux32_boot): Attempt to configure video settings with
27625 grub_linux_setup_video().
27626 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
27627 to avoid grub_console_fini() which would step out of graphical mode
27628 unconditionally.
27629
27630 2009-03-14 Robert Millan <rmh@aybabtu.com>
27631
27632 Fix build on powerpc.
27633 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
27634
27635 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
27636
27637 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
27638 background image command.
27639
27640 2009-03-12 Colin D Bennett <colin@gibibit.com>
27641
27642 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
27643 (grub_gfxterm_putchar): Extract pairs of identical calls to
27644 draw_cursor out of conditional blocks.
27645
27646 2009-03-11 Pavel Roskin <proski@gnu.org>
27647
27648 * fs/hfs.c (grub_hfs_strncasecmp): New function.
27649 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
27650
27651 2009-03-11 Robert Millan <rmh@aybabtu.com>
27652
27653 * loader/i386/multiboot_elfxx.c
27654 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
27655
27656 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
27657
27658 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
27659 `kern/handler.c'.
27660
27661 2009-03-11 Robert Millan <rmh@aybabtu.com>
27662
27663 * loader/i386/multiboot.c (code_size): New variable.
27664 (grub_multiboot): Define offsets by adding to `code_size' rather
27665 than subtracting from `grub_multiboot_payload_size'. Provide
27666 4-byte alignment to MBI and others by increasing
27667 `boot_loader_name_length' appropriately.
27668
27669 * loader/i386/multiboot_elfxx.c
27670 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
27671
27672 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
27673
27674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
27675 `fs/ext2.c'.
27676
27677 2009-03-08 Robert Millan <rmh@aybabtu.com>
27678
27679 Make loader/i386/linux.c usable on i386-pc again.
27680
27681 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
27682 memory to heap.
27683 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
27684 `#error' stanza.
27685
27686 2009-03-07 Bean <bean123ch@gmail.com>
27687
27688 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
27689 allocation.
27690
27691 2009-03-06 Robert Millan <rmh@aybabtu.com>
27692
27693 Fix display issue on terminals with screen size other than 80x25
27694 (e.g. gfxterm with resolution higher than 640x480).
27695
27696 * normal/main.c (grub_normal_init_page): Display title text in a
27697 position relative to the center of the terminal instead of relying
27698 on a hardcoded offset.
27699
27700 2009-03-04 Robert Millan <rmh@aybabtu.com>
27701
27702 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
27703 installed.
27704
27705 * Makefile.in (host_kernel): New variable.
27706 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
27707 scripts instead of just the windows one.
27708 * configure.ac: Initialize and AC_SUBST `host_kernel'.
27709
27710 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
27711
27712 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
27713 `kern/handler.c'.
27714 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27715 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27716 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
27717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27718 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27719 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27720
27721 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
27722
27723 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
27724 or if there's no space for the disk label and print the partition number on a
27725 invalid magic.
27726
27727 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
27728
27729 * util/misc.c: Include <time.h>.
27730 (grub_millisleep): New function.
27731
27732 2009-03-04 Bean <bean123ch@gmail.com>
27733
27734 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
27735 another option -mno-red-zone.
27736
27737 * commands/handler.c: Change module description.
27738
27739 * kern/handler.c: Add missing space at the end of description line.
27740
27741 * kern/list.c: Likewise.
27742
27743 2009-03-03 Robert Millan <rmh@aybabtu.com>
27744
27745 Move more components to the relocation area, and fix mbi pointer
27746 handling to use the destination rather than the origin (thanks to
27747 Vladimir Serbinenko for spotting).
27748
27749 * loader/i386/multiboot.c (mbi_dest): New variable.
27750 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
27751 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
27752 relocation area.
27753
27754 2009-03-01 Bean <bean123ch@gmail.com>
27755
27756 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
27757 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
27758 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
27759 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
27760
27761 * loader/i386/efi/linux.c (acpi_guid): New variable.
27762 (acpi_guid): Likewise.
27763 (EBDA_SEG_ADDR): New constant.
27764 (LOW_MEM_ADDR): Likewise.
27765 (FAKE_EBDA_SEG): Likewise.
27766 (fake_bios_data): New function.
27767 (grub_linux_boot): Call fake_bios_data.
27768
27769 2009-03-01 Bean <bean123ch@gmail.com>
27770
27771 * commands/terminal.c: Removed.
27772
27773 * commands/handler.c: New file.
27774
27775 * include/grub/list.h: Likewise.
27776
27777 * include/grub/handler.h: Likewise.
27778
27779 * kern/list.c: Likewise.
27780
27781 * kern/handler.c: Likewise.
27782
27783 * kern/term.h: Include header file <grub/handler.h>.
27784 (grub_term_input): Move next field to the beginning.
27785 (grub_term_output): Likewise.
27786 (grub_term_input_class): New variable.
27787 (grub_term_output_class): Likewise.
27788 (grub_term_register_input): Changed to inline function.
27789 (grub_term_register_output): Likewise.
27790 (grub_term_unregister_input): Likewise.
27791 (grub_term_unregister_output): Likewise.
27792 (grub_term_set_current_input): Likewise.
27793 (grub_term_set_current_output): Likewise.
27794 (grub_term_get_current_input): Likewise.
27795 (grub_term_get_current_output): Likewise.
27796 (grub_term_iterate_input): Removed.
27797 (grub_term_iterate_output): Likewise.
27798
27799 * kern/term.c (grub_term_list_input): Removed.
27800 (grub_term_list_output): Likewise.
27801 (grub_term_input_class): New variable.
27802 (grub_term_output_class): Likewise.
27803 (grub_cur_term_input): Change variable as macro.
27804 (grub_cur_term_output): Likewise.
27805 (grub_term_register_input): Removed.
27806 (grub_term_register_output): Likewise.
27807 (grub_term_unregister_input): Likewise.
27808 (grub_term_unregister_output): Likewise.
27809 (grub_term_set_current_input): Likewise.
27810 (grub_term_set_current_output): Likewise.
27811 (grub_term_iterate_input): Likewise.
27812 (grub_term_iterate_output): Likewise.
27813 (grub_term_get_current_input): Likewise.
27814 (grub_term_get_current_output): Likewise.
27815
27816 * util/grub-editenv.c: Include header file <grub/handler.h>.
27817 (grub_term_get_current_input): Removed.
27818 (grub_term_get_current_output): Likewise.
27819 (grub_term_input_class): New variable.
27820 (grub_term_output_class): Likewise.
27821
27822 * util/grub-fstest.c (grub_term_get_current_input): Removed.
27823 (grub_term_get_current_output): Likewise.
27824 (grub_term_input_class): New variable.
27825 (grub_term_output_class): Likewise.
27826
27827 * util/grub-probe.c (grub_term_get_current_input): Removed.
27828 (grub_term_get_current_output): Likewise.
27829 (grub_term_input_class): New variable.
27830 (grub_term_output_class): Likewise.
27831
27832 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
27833 (grub_term_get_current_output): Likewise.
27834 (grub_term_input_class): New variable.
27835 (grub_term_output_class): Likewise.
27836
27837 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
27838 (terminal_mod_SOURCES): Likewise.
27839 (terminal_mod_CFLAGS): Likewise.
27840 (terminal_mod_LDFLAGS): Likewise.
27841
27842 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
27843 handler.c.
27844 (kernel_img_SOURCES): Add list.c and handler.c.
27845 (kernel_img_HEADERS): Add list.h and handler.h.
27846
27847 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
27848 handler.c.
27849 (kernel_mod_SOURCES): Add list.c and handler.c.
27850 (kernel_mod_HEADERS): Add list.h and handler.h.
27851
27852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
27853 handler.c.
27854 (kernel_elf_SOURCES): Add list.c and handler.c.
27855 (kernel_elf_HEADERS): Add list.h and handler.h.
27856
27857 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
27858 handler.c.
27859 (kernel_elf_SOURCES): Add list.c and handler.c.
27860 (kernel_elf_HEADERS): Add list.h and handler.h.
27861
27862 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
27863 handler.c.
27864 (kernel_mod_SOURCES): Add list.c and handler.c.
27865 (kernel_mod_HEADERS): Add list.h and handler.h.
27866
27867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
27868 handler.c.
27869 (kernel_elf_SOURCES): Add list.c and handler.c.
27870 (kernel_elf_HEADERS): Add list.h and handler.h.
27871
27872 2009-02-27 Robert Millan <rmh@aybabtu.com>
27873
27874 Factorize elf32 / elf64 code in Multiboot loader. This will
27875 prevent it from getting out of sync again.
27876
27877 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
27878 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
27879 grub_multiboot_load_elf64): Move from here ...
27880 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
27881 grub_multiboot_load_elf): ... to here (new file).
27882
27883 2009-02-27 Robert Millan <rmh@aybabtu.com>
27884
27885 * util/grub.d/10_linux.in: Rename "single-user mode" to
27886 "recovery mode".
27887
27888 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
27889
27890 Don't leak in SCSI code.
27891 * disk/scsi.c (grub_scsi_close): free `scsi'.
27892
27893 2009-02-27 Robert Millan <rmh@aybabtu.com>
27894
27895 * loader/i386/pc/multiboot.c: Move from here ...
27896 * loader/i386/multiboot.c: ... to here. Update all users.
27897
27898 2009-02-27 Robert Millan <rmh@aybabtu.com>
27899
27900 Patch from Alexandre Bique <bique.alexandre@gmail.com>
27901 * util/i386/pc/grub-setup.c (setup): Fix directory path.
27902
27903 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
27904
27905 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
27906 b-tree.
27907
27908 2009-02-27 Robert Millan <rmh@aybabtu.com>
27909
27910 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
27911 `0x' qualifier as 0 when base is specified as parameter).
27912
27913 2009-02-24 Bean <bean123ch@gmail.com>
27914
27915 * configure.ac: Check for -mcmodel=large in x86_64 target.
27916
27917 * include/grub/efi/api.h (efi_call_10): New macro.
27918 (efi_wrap_10): New function.
27919
27920 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
27921 (GRUB_PE32_REL_BASED_HIGH): Likewise.
27922 (GRUB_PE32_REL_BASED_LOW): Likewise.
27923 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
27924 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
27925 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
27926 (GRUB_PE32_REL_BASED_SECTION): Likewise.
27927 (GRUB_PE32_REL_BASED_REL): Likewise.
27928 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
27929 (GRUB_PE32_REL_BASED_DIR64): Likewise.
27930 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
27931
27932 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
27933 issue.
27934
27935 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
27936 (efi_wrap_10): New function.
27937
27938 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
27939
27940 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
27941 MB/MBP model (NV chipset).
27942 (devdata_devs): Add devpath_5 to the list.
27943
27944 * load/i386/efi/linux.c (video_base): Remove variable.
27945 (RGB_MASK): New macro.
27946 (RGB_MAGIC): Likewise.
27947 (LINE_MIN): Likewise.
27948 (LINE_MAX): Likewise.
27949 (FBTEST_STEP): Likewise.
27950 (FBTEST_COUNT): Likewise.
27951 (fb_list): New variable.
27952 (grub_find_video_card): Remove function.
27953 (find_framebuf): New function.
27954 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
27955 line length.
27956
27957 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
27958 problem for x86_64.
27959
27960 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
27961
27962 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
27963
27964 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
27965 coding tool name.
27966
27967 2009-02-22 Robert Millan <rmh@aybabtu.com>
27968
27969 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
27970 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
27971 in our relocation, instead of using it directly from heap. Also
27972 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
27973
27974 2009-02-21 Robert Millan <rmh@aybabtu.com>
27975
27976 Implement USB keyboard support (based on patch by Marco Gerards)
27977
27978 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
27979 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
27980 (usb_keyboard_mod_LDFLAGS): New variables.
27981
27982 * term/usb_keyboard.c: New file.
27983
27984 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27985
27986 Corrected wrong declaration
27987
27988 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
27989
27990 2009-02-14 Christian Franke <franke@computer.org>
27991
27992 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
27993 (grub_lspci_iter): Print class code and programming interface byte.
27994
27995 2009-02-14 Christian Franke <franke@computer.org>
27996
27997 * gendistlist.sh: Ignore `.svn' directories.
27998
27999 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
28000
28001 * fs/fat.c: Add 2009 to Copyright line.
28002
28003 2009-02-14 Christian Franke <franke@computer.org>
28004
28005 * commands/hdparm.c: New file. Provides `hdparm' command
28006 which sends ATA commands via grub_disk_ata_pass_through ().
28007
28008 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
28009
28010 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
28011 and <grub/cpu/io.h> to include/grub/ata.h.
28012 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
28013 (GRUB_CDROM_SECTOR_SIZE): Remove.
28014 (GRUB_ATA_*): Move to include/grub/ata.h.
28015 (GRUB_ATAPI_*): Likewise.
28016 (enum grub_ata_commands): Likewise.
28017 (enum grub_ata_timeout_milliseconds): Likewise.
28018 (struct grub_ata_device): Likewise.
28019 (grub_ata_regset): Likewise.
28020 (grub_ata_regget): Likewise.
28021 (grub_ata_regset2): Likewise.
28022 (grub_ata_regget2): Likewise.
28023 (grub_ata_check_ready): Likewise.
28024 (grub_ata_wait_not_busy): Remove static, exported in
28025 include/grub/ata.h.
28026 (grub_ata_wait_drq): Likewise.
28027 (grub_ata_pio_read): Likewise.
28028
28029 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
28030 function for hdparm.mod.
28031
28032 * include/grub/ata.h: New file, contains declarations from
28033 disk/ata.c.
28034 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
28035
28036 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
28037 (grub_disk_ata_pass_through): New exported variable.
28038
28039 * kern/disk.c (grub_disk_ata_pass_through): New variable.
28040
28041 2009-02-13 Colin D Bennett <colin@gibibit.com>
28042
28043 Support multiple fallback entries, and provide an API to support
28044 executing default+fallback menu entries. Renamed the `terminal' menu
28045 viewer to `text'.
28046
28047 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
28048 variable declaration.
28049 (grub_menu_execute_callback): New structure declaration.
28050 (grub_menu_execute_callback_t): New typedef.
28051 (grub_menu_execute_with_fallback): New function declaration.
28052 (grub_menu_get_entry): Likewise.
28053 (grub_menu_get_timeout): Likewise.
28054 (grub_menu_set_timeout): Likewise.
28055
28056 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
28057
28058 * normal/menu.c (grub_wait_after_message): Moved to
28059 `normal/menu_text.c'.
28060 (draw_border): Likewise.
28061 (print_message): Likewise.
28062 (print_entry): Likewise.
28063 (print_entries): Likewise.
28064 (grub_menu_init_page): Likewise.
28065 (get_entry_number): Likewise.
28066 (print_timeout): Likewise.
28067 (run_menu): Likewise.
28068 (grub_menu_execute_entry): Likewise.
28069 (show_text_menu): Likewise.
28070 (get_and_remove_first_entry_number): New function.
28071 (grub_menu_execute_with_fallback): Likewise.
28072 (get_entry): Renamed to ...
28073 (grub_menu_get_entry): .. this and made it global.
28074 (get_timeout): Renamed to ...
28075 (grub_menu_get_timeout): ... this and made it global.
28076 (set_timeout): Renamed to ...
28077 (grub_menu_set_timeout): ... this and made it global.
28078 (grub_normal_terminal_menu_viewer): Renamed to ...
28079 (grub_normal_text_menu_viewer): ... this.
28080
28081 * normal/menu_text.c: New file. Extracted text-menu-specific code
28082 from normal/menu.c.
28083
28084 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
28085 (normal_mod_SOURCES): Likewise.
28086
28087 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28088 (normal_mod_SOURCES): Likewise.
28089
28090 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28091 (normal_mod_SOURCES): Likewise.
28092
28093 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
28094 (normal_mod_SOURCES): Likewise.
28095
28096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28097 (normal_mod_SOURCES): Likewise.
28098
28099 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28100 (normal_mod_SOURCES): Likewise.
28101
28102 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28103 (normal_mod_SOURCES): Likewise.
28104
28105 2009-02-11 Robert Millan <rmh@aybabtu.com>
28106
28107 * util/grub.d/00_header.in: Update old reference to `font' command.
28108
28109 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
28110
28111 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
28112
28113 Based on patch from Javier Martín.
28114
28115 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28116
28117 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
28118 to avoid false positives with FAT.
28119 (grub_fstest_SOURCES): Likewise.
28120 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28121 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28122 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28123 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28124 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28125 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28126
28127 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28128
28129 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
28130 bpb.version_specific.fat12_or_fat16.fstype and
28131 bpb.version_specific.fat32.fstype.
28132
28133 2009-02-08 Robert Millan <rmh@aybabtu.com>
28134
28135 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
28136
28137 2009-02-08 Robert Millan <rmh@aybabtu.com>
28138
28139 * Makefile.in (host_os, host_cpu): New variables.
28140 (target_os): Remove. Update all users.
28141
28142 2009-02-08 Marco Gerards <marco@gnu.org>
28143
28144 * Makefile.in (enable_grub_emu_usb): New variable.
28145 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
28146 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
28147 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
28148 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
28149 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
28150 `usbtest.mod' and `usbms.mod'.
28151 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
28152 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
28153 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
28154 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
28155 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
28156 variables.
28157
28158 * disk/usbms.c: New file.
28159
28160 * include/grub/usb.h: Likewise.
28161
28162 * include/grub/usbtrans.h: Likewise.
28163
28164 * include/grub/usbdesc.h: Likewise.
28165
28166 * bus/usb/usbtrans.c: Likewise.
28167
28168 * bus/usb/ohci.c: Likewise.
28169
28170 * bus/usb/uhci.c: Likewise.
28171
28172 * bus/usb/usbhub.c: Likewise.
28173
28174 * bus/usb/usb.c: Likewise.
28175
28176 * commands/usbtest.c: Likewise.
28177
28178 * util/usb.c: Likewise.
28179
28180 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
28181
28182 * configure.ac: Test for libusb presence.
28183
28184 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
28185
28186 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
28187
28188 * kern/mm.c: Add more comments.
28189
28190 2009-02-08 Robert Millan <rmh@aybabtu.com>
28191
28192 Patch from Javier Martín.
28193 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
28194 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
28195
28196 2009-02-08 Robert Millan <rmh@aybabtu.com>
28197
28198 * fs/cpio.c: Split tar functionality to ...
28199 * fs/tar.c: ... here (new file). Update all users.
28200
28201 2009-02-07 Robert Millan <rmh@aybabtu.com>
28202
28203 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
28204 backward-incompatible features.
28205
28206 Based on patch from Javier Martín, with some adjustments.
28207
28208 2009-02-07 Michael Scherer <misc@mandriva.org>
28209
28210 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
28211
28212 2009-02-07 Robert Millan <rmh@aybabtu.com>
28213
28214 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
28215 position of `disk/lvm.c' to ensure grub_init_all() always picks it
28216 after the RAID stuff.
28217
28218 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
28219
28220 Fixes problem when running vbetest command as reported by
28221 Vladimir Serbinenko <phcoder@gmail.com>.
28222
28223 * (grub_vbe_set_video_mode): Fixed problem with text modes.
28224
28225 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
28226
28227 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
28228 /dev/md/NpN style mdraid devices.
28229
28230 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28231
28232 * util/unifont2pff.rb: Remove.
28233
28234 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28235
28236 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
28237 `#'.
28238
28239 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28240
28241 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
28242 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28243 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28244 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28245 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28247 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28248
28249 2009-02-02 Christian Franke <franke@computer.org>
28250
28251 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
28252
28253 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
28254
28255 * INSTALL: Note that we now require at least autoconf 2.59 and
28256 that LZO is optional.
28257
28258 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28259
28260 Base on patch on bug #24154 created by Tomas Tintera
28261 <trosos@seznam.cz>.
28262
28263 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
28264
28265 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28266
28267 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
28268 <bero@arklinux.org>.
28269
28270 * normal/parser.y (script_init): Add missing semicolon.
28271
28272 2009-01-31 Colin D Bennett <colin@gibibit.com>
28273
28274 * normal/main.c: Add include to grub/menu_viewer.h.
28275 (free_menu_entry_classes): Added.
28276 (grub_normal_menu_addentry): Added class property handling.
28277 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
28278 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
28279
28280 * normal/menu_viewer.c: New file.
28281
28282 * normal/menu.c (run_menu_entry): Renamed to ...
28283 (grub_menu_execute_entry): ... this and made it as global.
28284 (grub_menu_run): Renamed to ...
28285 (show_text_menu): ... this and made it local.
28286 (show_text_menu): Adapt to new function names.
28287 (grub_normal_terminal_menu_viewer): New global variable.
28288
28289 * include/grub/menu.h: New file.
28290
28291 * include/grub/menu_viewer.h: New file.
28292
28293 * include/grub/normal.h: Added include to grub/menu.h.
28294 (grub_menu_entry): Moved to include/grub/menu.h.
28295 (grub_menu_entry_t): Likewise.
28296 (grub_menu): Likewise.
28297 (grub_menu_t): Likewise.
28298 (grub_normal_terminal_menu_viewer): Added.
28299 (grub_menu_execute_entry): Likewise.
28300 (grub_menu_run): Removed.
28301
28302 * DISTLIST: Added include/grub/menu.h.
28303 Added include/grub/menu_viewer.h.
28304 Added normal/menu_viewer.c.
28305
28306 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
28307
28308 * normal/execute.c (grub_script_execute_menuentry): Changed to use
28309 arglist for menutitle arguments.
28310
28311 * normal/main.c (grub_normal_menu_addentry): Likewise.
28312
28313 * normal/parser.y (menuentry): Likewise.
28314
28315 * normal/script.c (grub_script_create_cmdmenu): Likewise.
28316
28317 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
28318 (grub_script_create_cmdmenu): Likewise.
28319
28320 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
28321
28322 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
28323 changes.
28324
28325 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
28326
28327 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
28328
28329 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
28330
28331 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28332
28333 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28334
28335 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28336
28337 2009-01-30 Christian Franke <franke@computer.org>
28338
28339 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
28340 in option help text.
28341
28342 2009-01-27 Pavel Roskin <proski@gnu.org>
28343
28344 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
28345
28346 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28347
28348 * commands/lsmmap.c: Add include to grub/machine/memory.h.
28349
28350 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
28351
28352 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
28353 unregister function.
28354
28355 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28356
28357 * disk/scsi.c (grub_scsi_read): Fix sign problem.
28358
28359 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
28360
28361 * util/grub-mkfont.c (usage): Fix typo.
28362
28363 * util/elf/grub-mkimage.c (load_modules): Fix warning.
28364
28365 2009-01-26 Daniel Mierswa <impulze@impulze.org>
28366
28367 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
28368
28369 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
28370
28371 * kern/misc.c (grub_strcasecmp): New function.
28372 (grub_strcasecmp): Use grub_size_t instead of int for length.
28373 Fix return value.
28374 * include/grub/misc.h: Update function prototypes.
28375
28376 2009-01-26 Robert Millan <rmh@aybabtu.com>
28377
28378 * configure.ac: Fix cross-compilation check.
28379
28380 2009-01-22 Christian Franke <franke@computer.org>
28381
28382 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
28383 (precision) digit string. Allow `.format2' without `format1' (width).
28384 Limit input chars for `%s' output to `format2' if specified. This is
28385 compatible with standard printf ().
28386
28387 2009-01-22 Christian Franke <franke@computer.org>
28388
28389 * disk/ata.c (grub_ata_wait_status): Replace by ...
28390 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
28391 other status bits may be invalid while BSY is asserted.
28392 (grub_ata_check_ready): New function.
28393 (grub_ata_cmd): Removed.
28394 (grub_ata_wait_drq): New function.
28395 (grub_ata_strncpy): Remove inline.
28396 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
28397 and error check now done by grub_ata_wait_drq ().
28398 (grub_ata_pio_write): Likewise.
28399 (grub_atapi_identify): Set DEV before check for !BSY. Use
28400 grub_ata_wait_drq () to wait for data.
28401 (grub_ata_device_initialize): Add status register check to
28402 detect missing SATA slave devices. Add debug messages.
28403 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
28404 (grub_atapi_packet): Set DEV before check for !BSY. Replace
28405 transfer loop by grub_ata_pio_write ().
28406 (grub_ata_identify): Set DEV before check for !BSY. Use
28407 grub_ata_wait_drq () to wait for data.
28408 (grub_ata_setaddress): Set DEV before check for !BSY.
28409 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
28410 read/write in one loop. Fix invalid command on write. Fix incomplete
28411 command on (size % batch) == 0. Add missing error check after write of
28412 last block. Add debug messages.
28413 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
28414
28415 2009-01-19 Christian Franke <franke@computer.org>
28416
28417 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
28418 (GRUB_ATAPI_IREASON_*): Likewise.
28419 (grub_ata_pio_write): Fix timeout error return.
28420 (grub_atapi_identify): Add grub_ata_wait () after cmd.
28421 (grub_atapi_wait_drq): New function.
28422 (grub_atapi_packet): New parameter `size'.
28423 Use grub_atapi_wait_drq () and direct write instead of
28424 grub_ata_pio_write ().
28425 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
28426 reads the number of bytes requested by the device for each DRQ
28427 assertion.
28428 (grub_atapi_write): Remove old implementation, return not
28429 implemented instead.
28430
28431 2009-01-19 Christian Franke <franke@computer.org>
28432
28433 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
28434 of 512 to calculate data size.
28435 (grub_scsi_read12): Likewise.
28436 (grub_scsi_write10): Likewise.
28437 (grub_scsi_write12): Likewise.
28438 (grub_scsi_read): Adjust size according to blocksize.
28439 Add checks for invalid blocksize and unaligned transfer.
28440
28441 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
28442
28443 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
28444
28445 * term/gfxterm.c (write_char): Fix background rendering for wide
28446 width glyphs.
28447
28448 2009-01-19 Robert Millan <rmh@aybabtu.com>
28449
28450 * config.guess: Update to latest version from config git.
28451 * config.sub: Likewise.
28452
28453 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
28454
28455 * Makefile.in: Change font compilation to use new grub-mkfont instead
28456 of java version.
28457
28458 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
28459 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
28460 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28461 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28462 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
28463 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
28464 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
28465 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
28466 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
28467
28468 2009-01-16 Christian Franke <franke@computer.org>
28469
28470 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
28471 (enum grub_ata_timeout_milliseconds): New enum.
28472 (grub_ata_wait_status): Add parameter milliseconds.
28473 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
28474 recovery from timed-out commands.
28475 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
28476 return grub_errno instead of REG_ERROR.
28477 (grub_ata_pio_write): Add parameter milliseconds.
28478 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
28479 Pass milliseconds to grub_ata_wait_status () and
28480 grub_ata_pio_read ().
28481 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
28482 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
28483 grub_ata_wait_status (). Fix IDENTIFY timeout check.
28484 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
28485 It is not suitable for device detection, because DEV bit is ignored,
28486 the command may run too long, and not all devices set the signature
28487 properly.
28488 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
28489 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
28490 Fix device selection, DEV bit must be set first to address the registers
28491 of the correct device.
28492 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
28493 grub_ata_pio_read/write ().
28494 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
28495 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
28496
28497 2009-01-13 Carles Pina i Estany <carles@pina.cat>
28498
28499 * util/grub-editenv.c (main): Use fseeko(), not fseek().
28500
28501 2009-01-13 Bean <bean123ch@gmail.com>
28502
28503 * util/grub-mkfont.c (write_font): forget to remove some debug code.
28504
28505 2009-01-13 Bean <bean123ch@gmail.com>
28506
28507 * Makefile.in: (enable_grub_mkfont): New variable.
28508 (freetype_cflags): Likewise.
28509 (freetype_libs): Likewise.
28510
28511 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
28512 (grub_mkfont_SOURCES): New variable.
28513 (grub_mkfont_CFLAGS): Likewise.
28514 (grub_mkfont_LDFLAGS): Likewise.
28515
28516 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
28517 library if `--enable-grub-mkfont' is requested.
28518 (enable_grub_mkfont): New variable.
28519 (freetype_cflags): Likewise.
28520 (freetype_libs): Likewise.
28521
28522 * util/grub-mkfont.c: New file.
28523
28524 2009-01-12 Christian Franke <franke@computer.org>
28525
28526 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
28527 mode check. Fix setting of compat_use[].
28528
28529 2009-01-10 Robert Millan <rmh@aybabtu.com>
28530
28531 Update a few copyright years which we forgot to do in 2008 (only for
28532 files whose changes made in 2008 were copyright-significant)
28533
28534 * Makefile.in: Add 2008 to Copyright line.
28535 * disk/ieee1275/ofdisk.c: Likewise.
28536 * disk/efi/efidisk.c: Likewise.
28537 * kern/dl.c: Likewise.
28538 * kern/sparc64/ieee1275/init.c: Likewise.
28539 * kern/mm.c: Likewise.
28540 * kern/efi/mm.c: Likewise.
28541 * boot/i386/pc/boot.S: Likewise.
28542 * genfslist.sh: Likewise.
28543 * fs/iso9660.c: Likewise.
28544 * fs/hfs.c: Likewise.
28545 * fs/jfs.c: Likewise.
28546 * fs/minix.c: Likewise.
28547 * fs/ufs.c: Likewise.
28548 * gensymlist.sh.in: Likewise.
28549 * genkernsyms.sh.in: Likewise.
28550 * include/grub/misc.h: Likewise.
28551 * include/grub/types.h: Likewise.
28552 * include/grub/symbol.h: Likewise.
28553 * include/grub/elf.h: Likewise.
28554 * include/grub/kernel.h: Likewise.
28555 * include/grub/disk.h: Likewise.
28556 * include/grub/dl.h: Likewise.
28557 * include/grub/i386/linux.h: Likewise.
28558 * include/grub/i386/pc/biosdisk.h: Likewise.
28559 * include/grub/efi/api.h: Likewise.
28560 * include/grub/efi/pe32.h: Likewise.
28561 * include/grub/util/misc.h: Likewise.
28562 * normal/execute.c: Likewise.
28563 * normal/arg.c: Likewise.
28564 * normal/completion.c: Likewise.
28565 * normal/lexer.c: Likewise.
28566 * normal/parser.y: Likewise.
28567 * normal/misc.c: Likewise.
28568 * commands/i386/pc/vbeinfo.c: Likewise.
28569 * commands/hexdump.c: Likewise.
28570 * commands/terminal.c: Likewise.
28571 * commands/ls.c: Likewise.
28572 * commands/help.c: Likewise.
28573 * partmap/pc.c: Likewise.
28574 * loader/efi/chainloader.c: Likewise.
28575 * loader/multiboot_loader.c: Likewise.
28576 * loader/i386/pc/multiboot2.c: Likewise.
28577 * term/efi/console.c: Likewise.
28578 * term/i386/pc/serial.c: Likewise.
28579 * util/lvm.c: Likewise.
28580 * util/console.c: Likewise.
28581 * util/i386/efi/grub-mkimage.c: Likewise.
28582 * util/raid.c: Likewise.
28583
28584 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
28585
28586 * commands/videotest.c: Removed include to grub/machine/memory.h.
28587
28588 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
28589 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
28590 (video_mod_SOURCES): Removed.
28591 (video_mod_CFLAGS): Likewise.
28592 (video_mod_LDFLAGS): Likewise.
28593 (gfxterm_mod_SOURCES): Likewise.
28594 (gfxterm_mod_CFLAGS): Likewise.
28595 (gfxterm_mod_LDFLAGS): Likewise.
28596 (videotest_mod_SOURCES): Likewise.
28597 (videotest_mod_CFLAGS): Likewise.
28598 (videotest_mod_LDFLAGS): Likewise.
28599 (bitmap_mod_SOURCES): Likewise.
28600 (bitmap_mod_CFLAGS): Likewise.
28601 (bitmap_mod_LDFLAGS): Likewise.
28602 (tga_mod_SOURCES): Likewise.
28603 (tga_mod_CFLAGS): Likewise.
28604 (tga_mod_LDFLAGS): Likewise.
28605 (jpeg_mod_SOURCES): Likewise.
28606 (jpeg_mod_CFLAGS): Likewise.
28607 (jpeg_mod_LDFLAGS): Likewise.
28608 (png_mod_SOURCES): Likewise.
28609 (png_mod_CFLAGS): Likewise.
28610 (png_mod_LDFLAGS): Likewise.
28611
28612 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
28613 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
28614 (video_mod_SOURCES): Added.
28615 (video_mod_CFLAGS): Likewise.
28616 (video_mod_LDFLAGS): Likewise.
28617 (videotest_mod_SOURCES): Likewise.
28618 (videotest_mod_CFLAGS): Likewise.
28619 (videotest_mod_LDFLAGS): Likewise.
28620 (bitmap_mod_SOURCES): Likewise.
28621 (bitmap_mod_CFLAGS): Likewise.
28622 (bitmap_mod_LDFLAGS): Likewise.
28623 (tga_mod_SOURCES): Likewise.
28624 (tga_mod_CFLAGS): Likewise.
28625 (tga_mod_LDFLAGS): Likewise.
28626 (jpeg_mod_SOURCES): Likewise.
28627 (jpeg_mod_CFLAGS): Likewise.
28628 (jpeg_mod_LDFLAGS): Likewise.
28629 (png_mod_SOURCES): Likewise.
28630 (png_mod_CFLAGS): Likewise.
28631 (png_mod_LDFLAGS): Likewise.
28632 (gfxterm_mod_SOURCES): Likewise.
28633 (gfxterm_mod_CFLAGS): Likewise.
28634 (gfxterm_mod_LDFLAGS): Likewise.
28635
28636 * term/gfxterm.c: Removed include to grub/machine/memory.h,
28637 grub/machine/console.h.
28638
28639 2009-01-04 Jerone Young <jerone@gmail.com>
28640
28641 Make on screen instructions clearer
28642
28643 Based on patch created by Jidanni <jidanni@jidanni.org>
28644
28645 * normal/menu.c: print clearer instructions on the screen
28646
28647 2009-01-02 Colin D Bennett <colin@gibibit.com>
28648
28649 New font engine.
28650
28651 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
28652 build system and fixed gfxterm.c to work with different sized fonts.
28653
28654 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
28655
28656 * configure: Re-generated.
28657
28658 * DISTLIST: Removed font/manager.c.
28659 Added font/font.c.
28660 Added font/font_cmd.c.
28661
28662 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
28663 compilation.
28664
28665 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
28666
28667 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
28668
28669 * kern/term.c: Changed users of grub_utf8_to_ucs4.
28670
28671 * normal/menu.c: Likewise.
28672
28673 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
28674 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
28675
28676 * include/grub/font.h: Replaced with new file.
28677
28678 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
28679 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
28680 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
28681 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
28682 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
28683 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
28684 fg_red, fg_green, fg_blue, fg_alpha.
28685 (grub_video_adapter): Removed blit_glyph.
28686 (grub_video_blit_glyph): Removed.
28687
28688 * font/manager.c: Removed file.
28689
28690 * font/font.c: New file.
28691
28692 * font/font_cmd.c: Likewise.
28693
28694 * video/video.c (grub_video_blit_glyph): Removed.
28695
28696 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
28697 (grub_video_vbe_map_rgba): Likewise.
28698 (grub_video_vbe_unmap_color_int): Likewise.
28699 (grub_video_vbe_blit_glyph): Removed.
28700 (grub_video_vbe_adapter): Removed blit_glyph.
28701
28702 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
28703 (get_pixel): Likewise.
28704 (set_pixel): Likewise.
28705
28706 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
28707
28708 * term/gfxterm.c: Adapted to new font engine.
28709
28710 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
28711
28712 * term/i386/pc/vga.c: Likewise.
28713
28714 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
28715
28716 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
28717
28718 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28719
28720 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28721
28722 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
28723
28724 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
28725
28726 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
28727
28728 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
28729
28730 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
28731
28732 * util/grub.d/00_header.in: Changed to use new loadfont command.
28733
28734 * util/grub-mkconfig_lib.in: Changed font extension.
28735
28736 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
28737
28738 * util/getroot.c (grub_util_get_grub_dev): Add support for
28739 /dev/md/dNNpNN style partitionable mdraid devices.
28740
28741 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
28742
28743 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
28744 at a time limit of the PXE TFTP API correctly.
28745 (grub_pxefs_close): Likewise.
28746
28747 2008-11-29 Robert Millan <rmh@aybabtu.com>
28748
28749 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
28750 grub_ata_device_initialize() calls.
28751
28752 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
28753
28754 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
28755 iteration failed.
28756 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
28757
28758 2008-11-28 Robert Millan <rmh@aybabtu.com>
28759
28760 Fix build on powerpc-ieee1275. Based on patch created by
28761 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
28762 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28763 `kern/ieee1275/mmap.c'.
28764 * include/grub/powerpc/ieee1275/memory.h: New file.
28765
28766 Provide grub-install on coreboot.
28767 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
28768 (grub_install_SOURCES): New variable.
28769 * util/i386/pc/grub-install.in: Add a few condition checks to make it
28770 usable on coreboot.
28771
28772 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
28773
28774 * util/grub-fstest.c (grub_term_get_current_input): Change return type
28775 to `grub_term_input_t'.
28776 (grub_term_get_current_output): Change return type to
28777 `grub_term_output_t'.
28778
28779 2008-11-22 Robert Millan <rmh@aybabtu.com>
28780
28781 Fix breakage on coreboot due to declaration mismatch.
28782 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
28783 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
28784 grub_vga_text_cls().
28785
28786 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
28787 comments. Avoid copying one more byte than necessary (just in case).
28788
28789 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
28790 to 0x200000 (avoids trouble with some OFW implementations, and matches
28791 with the one in Yaboot).
28792 Reported by Manoel Abranches
28793
28794 2008-11-20 Robert Millan <rmh@aybabtu.com>
28795
28796 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
28797 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
28798
28799 * util/grub-mkconfig_lib.in (grub_warn): New function.
28800 (convert_system_path_to_grub_path): Use grub_warn() when issuing
28801 warnings, to obtain consistent formatting.
28802 * util/grub.d/00_header.in: Likewise.
28803 * util/update-grub_lib.in: Likewise.
28804
28805 * loader/i386/linux.c (allocate_pages): Fix a warning.
28806 Move comment text to `#error' stanza.
28807
28808 Harmonize ieee1275's grub_available_iterate() with the generic
28809 grub_machine_mmap_iterate() interface (fixes a recently-introduced
28810 build problem on i386-ieee1275):
28811 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
28812 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
28813 parameter `type'. Update all users of this function.
28814 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
28815 `kern/ieee1275/mmap.c'.
28816 * kern/ieee1275/init.c
28817 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
28818 with ...
28819 (grub_machine_mmap_iterate): ... this.
28820 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
28821 return type to `grub_err_t'. Update all implementations of this
28822 function prototype.
28823 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
28824 Likewise.
28825
28826 Add `lsmmap' command (lists firmware-provided memory map):
28827 * commands/lsmmap.c: New file.
28828 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
28829 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
28830 variables.
28831 * conf/powerpc-ieee1275.rmk: Likewise.
28832 * conf/i386-coreboot.rmk: Likewise.
28833 * conf/i386-ieee1275.rmk: Likewise.
28834
28835 2008-11-19 Robert Millan <rmh@aybabtu.com>
28836
28837 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
28838 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
28839 constraints to initrd allocation (based on code from
28840 loader/i386/pc/linux.c). Without them, initrd was allocated too high
28841 for Linux to find it.
28842
28843 2008-11-14 Robert Millan <rmh@aybabtu.com>
28844
28845 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
28846 order to cope with duplicate slashes.
28847
28848 2008-11-14 Robert Millan <rmh@aybabtu.com>
28849
28850 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
28851 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
28852 don't want to mess with lower memory, because it is used in the Linux
28853 loader.
28854
28855 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
28856 an appropriate place in lower memory, between 0x10000 and 0x90000,
28857 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
28858 is in our heap (probably as a result of it being corrupted during
28859 decompression). Add #error instance with comment to explain why this
28860 loader isn't currently usable on PC/BIOS.
28861
28862 2008-11-14 Robert Millan <rmh@aybabtu.com>
28863
28864 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
28865 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
28866
28867 2008-11-12 Robert Millan <rmh@aybabtu.com>
28868
28869 Make loader/i386/linux.c buildable on i386-pc (although disabled).
28870
28871 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
28872 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
28873 from here ...
28874 * include/grub/i386/pc/memory.h: ... to here.
28875
28876 2008-11-12 Robert Millan <rmh@aybabtu.com>
28877
28878 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
28879 split).
28880
28881 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
28882 (grub_console_cur_color, grub_console_real_putchar)
28883 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
28884 (grub_console_setcolorstate, grub_console_setcolor)
28885 (grub_console_getcolor): Move from here ...
28886 * include/grub/i386/vga_common.h: ... to here (new file).
28887
28888 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
28889 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
28890 `<grub/i386/io.h>'.
28891 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
28892 `<grub/i386/vga_common.h>'.
28893
28894 2008-11-12 Robert Millan <rmh@aybabtu.com>
28895
28896 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
28897 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
28898 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
28899 variables.
28900 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
28901 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
28902
28903 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
28904 grub_console_init() with call to grub_vga_text_init().
28905 (grub_machine_fini): Replace call to
28906 grub_console_fini() with call to grub_vga_text_fini() and
28907 grub_at_keyboard_fini().
28908
28909 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
28910 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
28911 (grub_console_setcolorstate, grub_console_setcolor)
28912 (grub_console_getcolor): New function prototypes.
28913
28914 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
28915 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
28916 (grub_vga_text_setcursor): Static-ize.
28917 (grub_vga_text_term): New structure.
28918 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
28919
28920 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
28921 (grub_console_cur_color, grub_console_standard_color)
28922 (grub_console_normal_color, grub_console_highlight_color)
28923 (map_char, grub_console_putchar, grub_console_getcharwidth)
28924 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
28925 (grub_console_getcolor): Move from here ...
28926 * term/i386/vga_common.c: ... to here (same function names).
28927
28928 2008-11-12 Robert Millan <rmh@aybabtu.com>
28929
28930 Use newly-added Multiboot support in coreboot.
28931
28932 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
28933 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
28934
28935 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
28936 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
28937 (codestart): Store the MBI in `startup_multiboot_info' when we're
28938 being loaded using Multiboot.
28939
28940 * kern/i386/coreboot/init.c (grub_machine_init): Move
28941 grub_at_keyboard_init() call to beginning of function (useful for
28942 debugging). Call grub_machine_mmap_init() before attempting to use
28943 grub_machine_mmap_iterate().
28944 (grub_lower_mem, grub_upper_mem): Move from here ...
28945 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
28946 here (new file).
28947
28948 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
28949 function prototype.
28950
28951 2008-11-12 Robert Millan <rmh@aybabtu.com>
28952
28953 Fix a regression introduced by the at_keyboard.mod split. Because
28954 some terminals are default on some platforms and non-default on
28955 others, the first terminal being registered determines which is
28956 going to be default.
28957
28958 * kern/term.c (grub_term_register_input): If this is the first
28959 terminal being registered, set it as the current one.
28960 (grub_term_register_output): Likewise.
28961
28962 * term/efi/console.c (grub_console_init): Do not call
28963 grub_term_set_current_output() or grub_term_set_current_input().
28964 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
28965 * term/i386/pc/console.c (grub_console_init): Likewise.
28966 (grub_console_fini): Do not call grub_term_set_current_input()
28967 (but leave grub_term_set_current_output() to restore text mode).
28968
28969 2008-11-10 Robert Millan <rmh@aybabtu.com>
28970
28971 * util/grub.d/00_header.in: Add backward compatibility check for
28972 versions of terminal.mod that don't understand `terminal_input' or
28973 `terminal_output'.
28974
28975 2008-11-09 Robert Millan <rmh@aybabtu.com>
28976
28977 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
28978 `terminal_input' / `terminal_output', not `terminal'.
28979
28980 2008-11-08 Robert Millan <rmh@aybabtu.com>
28981
28982 * Makefile.in (include_DATA): Fix srcdir=. assumption.
28983 (DISTCLEANFILES): Add `build_env.mk'.
28984
28985 2008-11-08 Robert Millan <rmh@aybabtu.com>
28986
28987 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
28988 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
28989 members. Update all users.
28990 * util/console.c (grub_ncurses_term): Split in ...
28991 (grub_ncurses_term_input): ... this, and ...
28992 (grub_ncurses_term_output): ... this. Update all users.
28993 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
28994
28995 2008-11-08 Robert Millan <rmh@aybabtu.com>
28996
28997 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
28998 (PKGDATA): Add $(pkgdata_SRCDIR).
28999 (pkglib_BUILDDIR): New variable.
29000 (pkgdata_SRCDIR): New variable.
29001 (build_env.mk): New target.
29002 (include_DATA): New variable.
29003 (install-local): Install $(include_DATA) files in $(includedir).
29004
29005 2008-11-07 Pavel Roskin <proski@gnu.org>
29006
29007 * gendistlist.sh: Use C locale for sorting to ensure consistent
29008 output on all systems.
29009
29010 * util/grub.d/00_header.in: Remove incorrect space before
29011 "serial".
29012
29013 2008-11-07 Robert Millan <rmh@aybabtu.com>
29014
29015 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
29016 per specification.
29017 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
29018 * loader/multiboot_loader.c (find_multi_boot2_header): New function
29019 (based on find_multi_boot1_header).
29020 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
29021 using find_multi_boot2_header(), and abort if neither Multiboot or
29022 Multiboot headers were found.
29023
29024 2008-11-07 Robert Millan <rmh@aybabtu.com>
29025
29026 Modularize at_keyboard.mod:
29027
29028 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
29029 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
29030 (at_keyboard_mod_LDFLAGS): New variables.
29031
29032 Actual terminal split:
29033
29034 * include/grub/term.h (struct grub_term): Split in ...
29035 (struct grub_term_input): ... this, and ...
29036 (struct grub_term_output): ... this. Update all users.
29037 (grub_term_set_current): Split in ...
29038 (grub_term_set_current_input): ... this, and ...
29039 (grub_term_set_current_output): ... this.
29040 (grub_term_get_current): Split in ...
29041 (grub_term_get_current_input): ... this, and ...
29042 (grub_term_get_current_output): ... this.
29043 (grub_term_register): Split in ...
29044 (grub_term_register_input): ... this, and ...
29045 (grub_term_register_output): ... this.
29046 (grub_term_unregister): Split in ...
29047 (grub_term_unregister_input): ... this, and ...
29048 (grub_term_unregister_output): ... this.
29049 (grub_term_iterate): Split in ...
29050 (grub_term_iterate_input): ... this, and ...
29051 (grub_term_iterate_output): ... this.
29052
29053 * kern/term.c (grub_term_list): Split in ...
29054 (grub_term_list_input): ... this, and ...
29055 (grub_term_list_output): ... this. Update all users.
29056 (grub_cur_term): Split in ...
29057 (grub_cur_term_input): ... this, and ...
29058 (grub_cur_term_output): ... this. Update all users.
29059 (grub_term_set_current): Split in ...
29060 (grub_term_set_current_input): ... this, and ...
29061 (grub_term_set_current_output): ... this.
29062 (grub_term_get_current): Split in ...
29063 (grub_term_get_current_input): ... this, and ...
29064 (grub_term_get_current_output): ... this.
29065 (grub_term_register): Split in ...
29066 (grub_term_register_input): ... this, and ...
29067 (grub_term_register_output): ... this.
29068 (grub_term_unregister): Split in ...
29069 (grub_term_unregister_input): ... this, and ...
29070 (grub_term_unregister_output): ... this.
29071 (grub_term_iterate): Split in ...
29072 (grub_term_iterate_input): ... this, and ...
29073 (grub_term_iterate_output): ... this.
29074
29075 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
29076 a check for input and one for output (and only attempt to get keys
29077 from user when input works).
29078
29079 * util/grub-probe.c (grub_term_get_current): Split in ...
29080 (grub_term_get_current_input): ... this, and ...
29081 (grub_term_get_current_output): ... this.
29082 * util/grub-fstest.c: Likewise.
29083 * util/i386/pc/grub-setup.c: Likewise.
29084 * util/grub-editenv.c: Likewise.
29085
29086 Portability adjustments:
29087
29088 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
29089 `term/i386/pc/at_keyboard.c'.
29090 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
29091 grub_keyboard_controller_init() (now handled by terminal .init).
29092 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
29093 grub_at_keyboard_init().
29094 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
29095 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
29096 at_keyboard.mod via input terminal interface).
29097 * include/grub/i386/coreboot/console.h: Convert into a stub for
29098 `<grub/i386/pc/console.h>'.
29099
29100 Migrate full terminals to new API:
29101
29102 * term/efi/console.c (grub_console_term): Split into ...
29103 (grub_console_term_input): ... this, and ...
29104 (grub_console_term_output): ... this. Update all users.
29105 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
29106 (grub_ofconsole_init): Split into ...
29107 (grub_ofconsole_init_input): ... this, and ...
29108 (grub_ofconsole_init_output): ... this.
29109 (grub_ofconsole_term): Split into ...
29110 (grub_ofconsole_term_input): ... this, and ...
29111 (grub_ofconsole_term_output): ... this. Update all users.
29112 * term/i386/pc/serial.c (grub_serial_term): Split into ...
29113 (grub_serial_term_input): ... this, and ...
29114 (grub_serial_term_output): ... this. Update all users.
29115 * term/i386/pc/console.c (grub_console_term): Split into ...
29116 (grub_console_term_input): ... this, and ...
29117 (grub_console_term_output): ... this. Update all users.
29118 (grub_console_term_input): Only enable it on PC/BIOS platform.
29119 (grub_console_init): Remove grub_keyboard_controller_init() call.
29120
29121 Migrate input terminals to new API:
29122
29123 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
29124 `i386' and `i386/pc' to enable build on x86_64 (this driver is
29125 i386-specific anyway).
29126 (grub_console_checkkey): Rename to ...
29127 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
29128 users.
29129 (grub_keyboard_controller_orig): New variable.
29130 (grub_console_getkey): Rename to ...
29131 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
29132 users.
29133 (grub_keyboard_controller_init): Static-ize. Save original
29134 controller value so that it can be restored ...
29135 (grub_keyboard_controller_fini): ... here (new function).
29136 (grub_at_keyboard_term): New structure.
29137 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
29138 functions.
29139
29140 Migrate output terminals to new API:
29141
29142 * term/i386/pc/vga.c (grub_vga_term): Change type to
29143 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29144 members. Update all users.
29145 * term/gfxterm.c (grub_video_term): Change type to
29146 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29147 members. Update all users.
29148 * include/grub/i386/pc/console.h (grub_console_checkkey)
29149 (grub_console_getkey): Do not export (no longer needed by gfxterm,
29150 etc).
29151
29152 Migrate `terminal' command and userland tools to new API:
29153
29154 * commands/terminal.c (grub_cmd_terminal): Split into ...
29155 (grub_cmd_terminal_input): ... this, and ...
29156 (grub_cmd_terminal_output): ... this.
29157 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
29158 `terminal_input' and `terminal_output'.
29159 * util/grub.d/00_header.in: Adjust `terminal' calls to new
29160 `terminal_input' / `terminal_output' API.
29161 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
29162 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
29163 provided ${GRUB_TERMINAL}, convert it).
29164
29165 2008-11-04 Robert Millan <rmh@aybabtu.com>
29166
29167 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
29168 for FreeBSD.
29169 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
29170
29171 2008-11-03 Bean <bean123ch@gmail.com>
29172
29173 * kern/elf.c (grub_elf32_load): Revert to previous code.
29174 (grub_elf64_load): Likewise.
29175
29176 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
29177
29178 2008-11-01 Robert Millan <rmh@aybabtu.com>
29179
29180 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
29181 (TARGET_CPPFLAGS): Likewise.
29182 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
29183
29184 2008-11-01 Carles Pina i Estany <carles@pina.cat>
29185
29186 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
29187
29188 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29189
29190 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
29191 addition of objects until the code is not going to be able to fail.
29192
29193 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29194
29195 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
29196 (add a missing NULL check, and correct them by moving the pointer
29197 operations after the actual check).
29198
29199 2008-10-29 Robert Millan <rmh@aybabtu.com>
29200
29201 * util/i386/pc/grub-install.in: Handle empty string as output from
29202 make_system_path_relative_to_its_root().
29203
29204 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
29205
29206 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
29207 circular metadata worst case scenario. If the metadata is circular
29208 then copy the wrap in place.
29209 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
29210 project lib/format_text/layout.h
29211 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
29212
29213 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29214
29215 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
29216
29217 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29218
29219 * util/update-grub_lib.in: Mention filename in warning message.
29220
29221 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29222
29223 * NEWS: Update for rename of update-grub to grub-mkconfig.
29224
29225 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29226
29227 * util/update-grub_lib.in: Copy to ...
29228 * util/grub-mkconfig_lib.in: ... this. Update all users.
29229 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
29230 * util/update-grub.in: Rename to ...
29231 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
29232 option. Add `--output' option to allow users to specify the generated
29233 configuration file. Default to stdout.
29234 (update_grub_dir): Rename to ...
29235 (grub_mkconfig_dir): ... this.
29236 (grub_cfg): Default to an empty string.
29237 * conf/common.rmk (update-grub): Rename to ...
29238 (grub-mkconfig): ... this.
29239 (update-grub_lib): Copy to ...
29240 (grub-mkconfig_lib): ... this.
29241 (update-grub_SCRIPTS): Copy to ...
29242 (grub-mkconfig_SCRIPTS): ... this. Update all users.
29243 (update-grub_DATA): Rename to ...
29244 (grub-mkconfig_DATA): ... this.
29245
29246 2008-09-28 Robert Millan <rmh@aybabtu.com>
29247
29248 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
29249 to `modified'. Add the real `created' field.
29250 (grub_iso9660_uuid): Use `modified' rather than `created' for
29251 constructing the UUID.
29252
29253 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
29254
29255 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
29256 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
29257
29258 2008-09-28 Bean <bean123ch@gmail.com>
29259
29260 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
29261 Thanks to Christian Franke for finding this bug.
29262
29263 2008-09-25 Robert Millan <rmh@aybabtu.com>
29264
29265 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
29266 instances of grub_util_get_disk_name() (see previous commit).
29267
29268 2008-09-25 Robert Millan <rmh@aybabtu.com>
29269
29270 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
29271 `util/i386/get_disk_name.c'.
29272 * conf/i386-efi.rmk: Likewise.
29273 * conf/x86_64-efi.rmk: Likewise.
29274 * conf/i386-coreboot.rmk: Likewise.
29275 * conf/i386-ieee1275.rmk: Likewise.
29276 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
29277 `util/ieee1275/get_disk_name.c'.
29278 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
29279 * util/ieee1275/get_disk_name.c: Remove file.
29280 * util/i386/get_disk_name.c: Remove file.
29281 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
29282 "hd%d" for device.map entries, rather than using
29283 grub_util_get_disk_name().
29284
29285 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29286
29287 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
29288 warning.
29289 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
29290
29291 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29292
29293 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
29294 Changed to 0x5100.
29295 (GRUB_TERM_PPAGE): Changed to 0x4900.
29296
29297 2008-09-24 Robert Millan <rmh@aybabtu.com>
29298
29299 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
29300 macros (they were i386-pc specific).
29301 * include/grub/sparc64/ieee1275/console.h: Likewise.
29302 * include/grub/efi/console.h: Likewise.
29303
29304 2008-09-22 Bean <bean123ch@gmail.com>
29305
29306 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
29307 resident and in attribute list.
29308
29309 * include/grub/ntfs.h (BMP_LEN): Removed.
29310
29311 2008-09-22 Bean <bean123ch@gmail.com>
29312
29313 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
29314 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
29315
29316 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
29317 error occurs, as grub_disk_open will call grub_disk_close, which will
29318 call p->close (scsi).
29319
29320 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29321
29322 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
29323 (AC_PREREQ): Bumped to 2.59.
29324 (AC_TRY_COMPILE): Replace obsolete macro with ...
29325 (AC_COMPILE_IFELSE): ... this.
29326 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
29327 (AC_LINK_IFELSE): ... this.
29328
29329 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29330
29331 * autogen.sh: Add a call to `gendistlist.sh'.
29332
29333 2008-09-19 Christian Franke <franke@computer.org>
29334
29335 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
29336 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
29337 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
29338 Export __enable_execute_stack() to modules.
29339 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
29340 New function.
29341
29342 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29343
29344 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
29345 Sort the list.
29346
29347 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29348
29349 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
29350 #include <grub/util/hostdisk.h>.
29351
29352 2008-09-08 Robert Millan <rmh@aybabtu.com>
29353
29354 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
29355 segments when their filesz is zero (grub_file_read() interprets
29356 zero-size as "read until EOF", which results in memory corruption).
29357 Use `lowest_segment' rather than 0 for calculating the current
29358 segment load address.
29359
29360 2008-09-08 Robert Millan <rmh@aybabtu.com>
29361
29362 * util/hostdisk.c (open_device): Replace a grub_util_info() call
29363 with grub_dprintf("hostdisk", ...), as it was so verbose that it
29364 clobbered useful information.
29365
29366 2008-09-08 Robert Millan <rmh@aybabtu.com>
29367
29368 * include/grub/util/biosdisk.h: Move to ...
29369 * include/grub/util/hostdisk.h: ... here. Update all users.
29370 * util/biosdisk.c: Move to ...
29371 * util/hostdisk.c: ... here. Update all users.
29372
29373 2008-09-07 Robert Millan <rmh@aybabtu.com>
29374
29375 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
29376 variables.
29377 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
29378 and length can be stored directly in the `mbi->mmap_addr' and
29379 `mbi->mmap_length' struct fields.
29380
29381 2008-09-07 Robert Millan <rmh@aybabtu.com>
29382
29383 * conf/i386.rmk: New file. Provides declaration for building
29384 `cpuid.mod'.
29385 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
29386 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
29387 variables.
29388 Include `conf/i386.mk'.
29389 * conf/i386-efi.rmk: Likewise.
29390 * conf/x86_64-efi.rmk: Likewise.
29391 * conf/i386-coreboot.rmk: Likewise.
29392 * conf/i386-ieee1275.rmk: Likewise.
29393
29394 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
29395
29396 Based on patch created by Colin D Bennett <colin@gibibit.com>.
29397 Adds optimization support for BGR based modes.
29398
29399 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
29400 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29401 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29402 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29403 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29404 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29405 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29406 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29407 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29408 (grub_video_i386_vbeblit_index_index): Likewise.
29409 (grub_video_i386_vbeblit_replace_directN): Added.
29410 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29411 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29412 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29413 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29414 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29415 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29416 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29417 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29418 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29419 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29420 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29421 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29422 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29423
29424 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
29425 (grub_video_i386_vbefill_R8G8B8): Likewise.
29426 (grub_video_i386_vbefill_index): Likewise.
29427 (grub_video_i386_vbefill_direct32): Added.
29428 (grub_video_i386_vbefill_direct24): Likewise.
29429 (grub_video_i386_vbefill_direct16): Likewise.
29430 (grub_video_i386_vbefill_direct8): Likewise.
29431
29432 * include/grub/video.h (grub_video_blit_format): Removed
29433 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
29434 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
29435 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
29436 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
29437 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
29438
29439 * video/video.c (grub_video_get_blit_format): Updated to use new
29440 blit formats. Added handling for 16 bit color modes.
29441
29442 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
29443 fillers.
29444 (common_blitter): Updated to use new blitters.
29445
29446 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
29447 Removed.
29448 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29449 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29450 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29451 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29452 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29453 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29454 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29455 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29456 (grub_video_i386_vbeblit_index_index): Likewise.
29457 (grub_video_i386_vbeblit_replace_directN): Added.
29458 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29459 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29460 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29461 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29462 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29463 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29464 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29465 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29466 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29467 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29468 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29469 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29470 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29471
29472 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
29473 (grub_video_i386_vbefill_R8G8B8): Likewise.
29474 (grub_video_i386_vbefill_index): Likewise.
29475 (grub_video_i386_vbefill_direct32): Added.
29476 (grub_video_i386_vbefill_direct24): Likewise.
29477 (grub_video_i386_vbefill_direct16): Likewise.
29478 (grub_video_i386_vbefill_direct8): Likewise.
29479
29480 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
29481 types.
29482
29483 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
29484 types.
29485
29486 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
29487 blitter types.
29488
29489 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
29490 types.
29491
29492 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
29493
29494 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
29495 RAID level 1.
29496
29497 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
29498
29499 * fs/iso9660.c (grub_iso9660_date): New structure.
29500 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
29501 (grub_iso9660_uuid): New function.
29502
29503 2008-09-05 Bean <bean123ch@gmail.com>
29504
29505 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
29506
29507 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
29508 insensitive bit for names in Win32 and Win32 & DOS namespace.
29509
29510 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
29511
29512 * include/grub/types.h (LONG_MAX): Likewise.
29513
29514 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
29515
29516 * util/getroot.c: Include <config.h>.
29517 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
29518 add support for /dev/md/N devices and handle LVM double dash escaping.
29519
29520 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
29521
29522 * config.guess: Update to latest version from config git.
29523 * config.sub: Likewise.
29524
29525 2008-09-03 Robert Millan <rmh@aybabtu.com>
29526
29527 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
29528 `disk->total_sectors'.
29529
29530 2008-09-01 Colin D Bennett <colin@gibibit.com>
29531
29532 * include/grub/normal.h: Fixed incorrect comment for
29533 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
29534
29535 2008-09-01 Colin D Bennett <colin@gibibit.com>
29536
29537 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
29538 values with defines.
29539
29540 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
29541 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
29542 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
29543 (GRUB_VBE_MODEATTR_COLOR): Likewise.
29544 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
29545 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
29546 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
29547 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
29548 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
29549 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
29550 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
29551 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
29552 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
29553 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
29554 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
29555 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
29556 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
29557 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
29558 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
29559
29560 2008-08-31 Robert Millan <rmh@aybabtu.com>
29561
29562 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
29563 declaration.
29564 (grub_multiboot): Fix a few warnings.
29565
29566 2008-08-31 Robert Millan <rmh@aybabtu.com>
29567
29568 * loader/i386/pc/multiboot.c: Update comment not to say that
29569 boot_device support is unimplemented.
29570
29571 2008-08-31 Robert Millan <rmh@aybabtu.com>
29572
29573 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
29574 or memory map support are unimplemented.
29575
29576 2008-08-31 Colin D Bennett <colin@gibibit.com>
29577
29578 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
29579
29580 2008-08-31 Colin D Bennett <colin@gibibit.com>
29581
29582 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
29583 total video memory in 'vbeinfo' output; show color format details for
29584 each video mode.
29585
29586 2008-08-30 Pavel Roskin <proski@gnu.org>
29587
29588 * util/genmoddep.c: Remove for real this time.
29589 * DISTLIST: Remove util/genmoddep.c.
29590
29591 2008-08-30 Robert Millan <rmh@aybabtu.com>
29592
29593 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
29594 as required by Multiboot spec (it was already 4-byte aligned, but
29595 only by chance).
29596
29597 2008-08-29 Pavel Roskin <proski@gnu.org>
29598
29599 * kern/powerpc/ieee1275/crt0.S: Rename to ...
29600 * kern/powerpc/ieee1275/startup.S: ... this.
29601 * conf/powerpc-ieee1275.rmk: Adjust for the above.
29602 * DISTLIST: Likewise.
29603
29604 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
29605 grub/cpu/kernel.h. Add start label for consistency with other
29606 platforms. Add grub_prefix immediately after start. Add jump
29607 to the code after grub_prefix.
29608 * include/grub/powerpc/kernel.h: Provide valid values for
29609 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
29610
29611 2008-08-29 Bean <bean123ch@gmail.com>
29612
29613 * configure.ac: Change host_os to cygwin for mingw.
29614 (asprintf): New check for function.
29615
29616 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
29617 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
29618
29619 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
29620 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
29621 sync, sleep and grub_util_get_disk_size for mingw.
29622
29623 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
29624 to get size in mingw.
29625 (open_device): Use flag O_BINARY if it's defined.
29626 (find_root_device): Add dummy code for mingw.
29627
29628 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
29629 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
29630 (get_scsi_disk_name): Return 0 for mingw.
29631
29632 * util/hostfs.c: #include <grub/util/misc.h>.
29633 (grub_hostfs_open): Use "rb" flag to open file, use
29634 grub_util_get_disk_size to get disk size for mingw.
29635
29636 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
29637 (asprintf): New function if HAVE_ASPRINTF is not set.
29638 (sync): New function for mingw.
29639 (sleep): Likewise.
29640 (grub_util_get_disk_size): Likewise.
29641
29642 2008-08-28 Pavel Roskin <proski@gnu.org>
29643
29644 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
29645 kern/time.c.
29646
29647 2008-08-28 Robert Millan <rmh@aybabtu.com>
29648
29649 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
29650
29651 2008-08-28 Robert Millan <rmh@aybabtu.com>
29652
29653 Change find_grub_drive() syntax so it doesn't prevent it from
29654 detecting NULL names as errors.
29655
29656 * util/biosdisk.c (find_grub_drive): Move free slot search code
29657 from here ...
29658 (find_free_slot): ... to here.
29659 (read_device_map): Use find_free_slot() to search for free slots.
29660
29661 2008-08-27 Marco Gerards <marco@gnu.org>
29662
29663 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
29664 (scsi_mod_SOURCES): New variable.
29665 (scsi_mod_CFLAGS): Likewise
29666 (scsi_mod_LDFLAGS): Likewise.
29667
29668 * disk/scsi.c: New file.
29669
29670 * include/grub/scsi.h: Likewise.
29671
29672 * include/grub/scsicmd.h: Likewise.
29673
29674 * disk/ata.c: Include <grub/scsi.h>.
29675 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
29676 instead.
29677 (grub_ata_iterate): Skip ATAPI devices.
29678 (grub_ata_open): Only handle ATAPI devices.
29679 (struct grub_atapi_read): Removed.
29680 (grub_atapi_readsector): Likewise.
29681 (grub_ata_read): No longer handle ATAPI devices.
29682 (grub_ata_write): Likewise.
29683 (grub_atapi_iterate): New function.
29684 (grub_atapi_read): Likewise.
29685 (grub_atapi_write): Likewise.
29686 (grub_atapi_open): Likewise.
29687 (grub_atapi_close): Likewise.
29688 (grub_atapi_dev): New variable.
29689 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
29690 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
29691
29692 * include/grub/disk.h (enum grub_disk_dev_id): Add
29693 `GRUB_DISK_DEVICE_SCSI_ID'.
29694
29695 2008-08-26 Robert Millan <rmh@aybabtu.com>
29696
29697 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
29698 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
29699 descriptive.
29700
29701 2008-08-23 Bean <bean123ch@gmail.com>
29702
29703 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
29704 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
29705 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
29706 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
29707 dm_nv.mod.
29708 (raid5rec_mod_SOURCES): New macro.
29709 (raid5rec_mod_CFLAGS): Likewise.
29710 (raid5rec_mod_LDFLAGS): Likewise.
29711 (raid6rec_mod_SOURCES): Likewise.
29712 (raid6rec_mod_CFLAGS): Likewise.
29713 (raid6rec_mod_LDFLAGS): Likewise.
29714 (mdraid_mod_SOURCES): Likewise.
29715 (mdraid_mod_CFLAGS): Likewise.
29716 (mdraid_mod_LDFLAGS): Likewise.
29717 (dm_nv_mod_SOURCES): Likewise.
29718 (dm_nv_mod_CFLAGS): Likewise.
29719 (dm_nv_mod_LDFLAGS): Likewise.
29720
29721 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
29722 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
29723 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
29724
29725 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
29726 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
29727
29728 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29729
29730 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29731
29732 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29733
29734 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29735
29736 * disk/raid5_recover.c: New file.
29737
29738 * disk/raid6_recover.c: Likewise.
29739
29740 * disk/mdraid_linux.c: Likewise.
29741
29742 * disk/dmraid_nvidia.c: Likewise.
29743
29744 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
29745 ULONG_MAX.
29746
29747 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
29748 calculate the size of raid device.
29749 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
29750 different layout of raid5.
29751 (grub_raid_scan_device): Remove code specific to mdraid.
29752 (grub_raid_list): New variable.
29753 (free_array): New function.
29754 (grub_raid_register): Likewise.
29755 (grub_raid_unregister): Likewise.
29756 (grub_raid_rescan): Likewise.
29757 (GRUB_MOD_INIT): Don't iterate device here.
29758 (GRUB_MOD_FINI): Use free_array to release resource.
29759
29760 * include/grub/raid.h: Remove macro and structure specific to mdraid.
29761 (grub_raid5_recover_func_t): New function variable type.
29762 (grub_raid6_recover_func_t): Likewise.
29763 (grub_raid5_recover_func): New variable.
29764 (grub_raid6_recover_func): Likewise.
29765 (grub_raid_register): New function.
29766 (grub_raid_unregister): Likewise.
29767 (grub_raid_rescan): Likewise.
29768 (grub_raid_block_xor): Likewise.
29769
29770 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
29771 (CMD_CRC): New macro.
29772 (part): Removed.
29773 (read_file): Handle device as well as file.
29774 (cmd_crc): New function.
29775 (fstest): Handle multiple disks.
29776 (options): Remove part, raw and long, add root and diskcount.
29777 (usage): Add crc, remove -p, -r, -l, add -r and -c.
29778 (main): Find the first non option entry and ignore subsequent options,
29779 add handling for the new options, support multiple disks.
29780
29781 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
29782
29783 2008-08-23 Bean <bean123ch@gmail.com>
29784
29785 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
29786
29787 * genfslist.sh: Ignore kernel.mod.
29788
29789 * genpartmaplist.sh: Likewise.
29790
29791 2008-08-23 Robert Millan <rmh@aybabtu.com>
29792
29793 * util/getroot.c (find_root_device): Skip anything that starts with
29794 a dot, not just directories. This avoids things like /dev/.tmp.md0.
29795
29796 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
29797
29798 * util/update-grub.in (GRUB_GFXMODE): Export variable.
29799 * util/grub.d/00_header.in: Allow the administrator to change default
29800 gfxmode via ${GRUB_GFXMODE}.
29801
29802 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
29803
29804 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
29805
29806 2008-08-21 Robert Millan <rmh@aybabtu.com>
29807
29808 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
29809 loader.
29810 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
29811 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
29812
29813 2008-08-20 Carles Pina i Estany <carles@pina.cat>
29814
29815 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
29816 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
29817
29818 2008-08-19 Robert Millan <rmh@aybabtu.com>
29819
29820 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
29821 (struct grub_virtual_screen): Remove `cursor_color'.
29822 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
29823 initialization.
29824 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
29825
29826 2008-08-18 Robert Millan <rmh@aybabtu.com>
29827
29828 Unify (identical) linux_normal.c files.
29829 * loader/i386/efi/linux_normal.c: Move from here ...
29830 * loader/linux_normal.c: ... to here. Update all users.
29831 * loader/i386/pc/linux_normal.c: Delete. Update all users.
29832 * loader/i386/ieee1275/linux_normal.c: Likewise.
29833
29834 2008-08-18 Robert Millan <rmh@aybabtu.com>
29835
29836 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
29837 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
29838 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
29839 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
29840 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
29841 New macros.
29842 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
29843 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
29844 (GRUB_LINUX_CL_END_OFFSET): ... to here.
29845 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
29846 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
29847 (GRUB_EFI_CL_END_OFFSET): Rename to ...
29848 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
29849 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
29850 Initialize `params->video_cursor_x' and `params->video_cursor_y'
29851 portably using grub_getxy().
29852 Replace `-EFI' with `-bzImage' in boot message.
29853
29854 2008-08-17 Robert Millan <rmh@aybabtu.com>
29855
29856 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
29857
29858 2008-08-17 Robert Millan <rmh@aybabtu.com>
29859
29860 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
29861
29862 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
29863 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
29864 (grub_machine_mmap_iterate): New function declaration.
29865 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
29866 structure.
29867 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
29868 macros.
29869
29870 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
29871 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
29872 Move e820 parsing from here ...
29873 * kern/i386/pc/mmap.c: New file.
29874 (grub_machine_mmap_iterate): ... to here.
29875
29876 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
29877 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
29878 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
29879 (grub_available_iterate): Redeclare to return `void', and redeclare
29880 its hook to use grub_uint64_t as addr and size parameters, and rename
29881 to ...
29882 (grub_machine_mmap_iterate): ... this. Update all users.
29883
29884 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
29885 to make it more readable. Rename to ...
29886 (grub_machine_mmap_iterate): ... this.
29887
29888 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
29889 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
29890 (grub_multiboot): Allocate an extra region after the payload, and fill
29891 it with a Multiboot memory map. Adjust a.out loader to calculate size
29892 with the extra space.
29893 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
29894 with the extra space.
29895
29896 2008-08-17 Carles Pina i Estany <carles@pina.cat>
29897
29898 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
29899
29900 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
29901
29902 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
29903 mdate-sh to the list `find' searches for.
29904 * DISTLIST: Regenerated.
29905
29906 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
29907
29908 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
29909 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
29910 genmoddep.awk, gensymlist.sh.in.
29911 (DISTDIRS): Add bus, docs, hook, lib.
29912 * DISTLIST: Regenerated.
29913 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
29914
29915 2008-08-16 Robert Millan <rmh@aybabtu.com>
29916
29917 * disk/raid.c (grub_raid_init): Handle/report errors set by
29918 grub_device_iterate().
29919 * disk/lvm.c (grub_lvm_init): Likewise.
29920
29921 2008-08-15 Bean <bean123ch@gmail.com>
29922
29923 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
29924 and datehook.mod.
29925 (datetime_mod_SOURCES): New macro.
29926 (datetime_mod_CFLAGS): Likewise.
29927 (datetime_mod_LDFLAGS): Likewise.
29928 (date_mod_SOURCES): Likewise.
29929 (date_mod_CFLAGS): Likewise.
29930 (date_mod_LDFLAGS): Likewise.
29931 (datehook_mod_SOURCES): Likewise.
29932 (datehook_mod_CFLAGS): Likewise.
29933 (datehook_mod_LDFLAGS): Likewise.
29934
29935 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
29936 and datehook.mod.
29937 (datetime_mod_SOURCES): New macro.
29938 (datetime_mod_CFLAGS): Likewise.
29939 (datetime_mod_LDFLAGS): Likewise.
29940 (date_mod_SOURCES): Likewise.
29941 (date_mod_CFLAGS): Likewise.
29942 (date_mod_LDFLAGS): Likewise.
29943 (datehook_mod_SOURCES): Likewise.
29944 (datehook_mod_CFLAGS): Likewise.
29945 (datehook_mod_LDFLAGS): Likewise.
29946
29947 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
29948 and datehook.mod.
29949 (datetime_mod_SOURCES): New macro.
29950 (datetime_mod_CFLAGS): Likewise.
29951 (datetime_mod_LDFLAGS): Likewise.
29952 (date_mod_SOURCES): Likewise.
29953 (date_mod_CFLAGS): Likewise.
29954 (date_mod_LDFLAGS): Likewise.
29955 (datehook_mod_SOURCES): Likewise.
29956 (datehook_mod_CFLAGS): Likewise.
29957 (datehook_mod_LDFLAGS): Likewise.
29958
29959 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
29960 and datehook.mod.
29961 (datetime_mod_SOURCES): New macro.
29962 (datetime_mod_CFLAGS): Likewise.
29963 (datetime_mod_LDFLAGS): Likewise.
29964 (date_mod_SOURCES): Likewise.
29965 (date_mod_CFLAGS): Likewise.
29966 (date_mod_LDFLAGS): Likewise.
29967 (datehook_mod_SOURCES): Likewise.
29968 (datehook_mod_CFLAGS): Likewise.
29969 (datehook_mod_LDFLAGS): Likewise.
29970
29971 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
29972 and datehook.mod.
29973 (datetime_mod_SOURCES): New macro.
29974 (datetime_mod_CFLAGS): Likewise.
29975 (datetime_mod_LDFLAGS): Likewise.
29976 (date_mod_SOURCES): Likewise.
29977 (date_mod_CFLAGS): Likewise.
29978 (date_mod_LDFLAGS): Likewise.
29979 (datehook_mod_SOURCES): Likewise.
29980 (datehook_mod_CFLAGS): Likewise.
29981 (datehook_mod_LDFLAGS): Likewise.
29982
29983 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
29984
29985 * commands/date.c: New file.
29986
29987 * hook/datehook.c: Likewise.
29988
29989 * include/grub/lib/datetime.h: Likewise.
29990
29991 * include/grub/i386/cmos.h: Likewise.
29992
29993 * lib/datetime.c: Likewise.
29994
29995 * lib/i386/datetime.c: Likewise.
29996
29997 * lib/efi/datetime.c: Likewise.
29998
29999 2008-08-14 Robert Millan <rmh@aybabtu.com>
30000
30001 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
30002 (grub_mkelfimage_SOURCES): New variable.
30003 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
30004
30005 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
30006 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
30007 * conf/powerpc-ieee1275.rmk: Likewise.
30008 * conf/i386-ieee1275.rmk: Likewise.
30009
30010 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
30011 * kern/i386/coreboot/init.c: Likewise.
30012
30013 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
30014 with `<grub/cpu/kernel.h>'.
30015 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
30016 to ...
30017 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
30018 * kern/i386/coreboot/startup.S: Likewise.
30019
30020 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
30021 (GRUB_MOD_GAP): Remove.
30022 * include/grub/powerpc/kernel.h: New file.
30023 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
30024 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30025 * include/grub/i386/kernel.h: New file.
30026 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
30027 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
30028 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30029
30030 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
30031 `grub-mkelfimage'.
30032 Use --directory when invoking grub_mkimage.
30033
30034 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
30035 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
30036 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
30037 and GRUB_KERNEL_CPU_PREFIX.
30038
30039 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
30040
30041 * include/grub/err.h (grub_err_printf): New function prototype.
30042 * util/misc.c (grub_err_printf): New function.
30043 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
30044 grub_printf.
30045 * kern/err.c (grub_print_error): Use grub_err_printf.
30046
30047 2008-08-13 Robert Millan <rmh@aybabtu.com>
30048
30049 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
30050
30051 2008-08-13 Robert Millan <rmh@aybabtu.com>
30052
30053 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
30054 boot entry.
30055
30056 2008-08-12 Robert Millan <rmh@aybabtu.com>
30057
30058 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
30059 of the relocation code from here ...
30060 (grub_multiboot): ... to here.
30061 (forward_relocator, backward_relocator): Move from here ...
30062 * kern/i386/loader.S (grub_multiboot_forward_relocator)
30063 (grub_multiboot_backward_relocator): ... to here.
30064 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
30065 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
30066 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
30067 (grub_multiboot_forward_relocator_end)
30068 (grub_multiboot_backward_relocator)
30069 (grub_multiboot_backward_relocator_end): New variables.
30070
30071 2008-08-12 Bean <bean123ch@gmail.com>
30072
30073 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
30074
30075 2008-08-11 Robert Millan <rmh@aybabtu.com>
30076
30077 * kern/i386/linuxbios/startup.S: Move from here ...
30078 * kern/i386/coreboot/startup.S: ... to here.
30079
30080 * kern/i386/linuxbios/init.c: Move from here ...
30081 * kern/i386/coreboot/init.c: ... to here.
30082
30083 * kern/i386/linuxbios/table.c: Move from here ...
30084 * kern/i386/coreboot/mmap.c: ... to here.
30085
30086 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
30087
30088 2008-08-11 Robert Millan <rmh@aybabtu.com>
30089
30090 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
30091 errors. Leave it to the upper layer to handle them.
30092
30093 2008-08-09 Christian Franke <franke@computer.org>
30094
30095 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
30096 * conf/common.rmk: Install `grub-pe2elf' only if requested.
30097 Install `grub.d/10_windows' only on Cygwin.
30098 * configure.ac: Add subst of `target_os'.
30099 Check `target_os' also before setting TARGET_OBJ2ELF.
30100 Add `--enable-grub-pe2elf'.
30101
30102 2008-08-08 Robert Millan <rmh@aybabtu.com>
30103
30104 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30105 (grub_last_time): Change type to grub_uint64_t.
30106 (grub_disk_open): Migrate code from to using grub_get_time_ms().
30107 (grub_disk_close): Likewise.
30108
30109 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30110 (run_menu): Migrate code from to using grub_get_time_ms().
30111
30112 * util/misc.c (grub_get_time_ms): New function.
30113
30114 2008-08-08 Marco Gerards <marco@gnu.org>
30115
30116 * disk/ata.c (grub_ata_regget): Change return type to
30117 `grub_uint8_t'.
30118 (grub_ata_regget2): Likewise.
30119 (grub_ata_wait_status): New function.
30120 (grub_ata_wait_busy): Removed function, updated all users to use
30121 `grub_ata_wait_status'.
30122 (grub_ata_wait_drq): Likewise.
30123 (grub_ata_cmd): New function.
30124 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
30125 error handling.
30126 (grub_ata_pio_write): Add error handling.
30127 (grub_atapi_identify): Likewise.
30128 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
30129 handling.
30130 (grub_ata_identify): Use `grub_ata_cmd' and improve error
30131 handling. Actually use the detected registers. Reorder the
30132 detection logic such that it is easier to read.
30133 (grub_ata_pciinit): Do not assign the same ID to each controller.
30134 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
30135 handling.
30136 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
30137
30138 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
30139
30140 2008-08-08 Marco Gerards <marco@gnu.org>
30141
30142 * NEWS: Update.
30143
30144 2008-08-07 Bean <bean123ch@gmail.com>
30145
30146 * include/grub/x86_64/pci.h: New file.
30147
30148 2008-08-07 Christian Franke <franke@computer.org>
30149
30150 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
30151 (TIMER2_GATE): Likewise.
30152 (grub_pit_wait): Add enable/disable of the timer2 gate
30153 bit of port 0x61. This fixes a possible infinite loop.
30154
30155 2008-08-07 Bean <bean123ch@gmail.com>
30156
30157 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
30158 kern/i386/tsc.c and kern/i386/pit.c.
30159
30160 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
30161 x86_64 platform.
30162
30163 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
30164 <grub/i386/tsc.h>.
30165
30166 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
30167
30168 2008-08-07 Bean <bean123ch@gmail.com>
30169
30170 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
30171
30172 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
30173
30174 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
30175 multiple inclusion. Add #include <grub/types.h>.
30176
30177 2008-08-06 Christian Franke <franke@computer.org>
30178
30179 * conf/common.rmk: Build and install `10_windows'.
30180 * util/grub.d/10_windows.in: New script.
30181
30182 2008-08-06 Pavel Roskin <proski@gnu.org>
30183
30184 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
30185
30186 2008-08-06 Robert Millan <rmh@aybabtu.com>
30187
30188 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
30189 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
30190
30191 2008-08-06 Bean <bean123ch@gmail.com>
30192
30193 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
30194 (grub_pxefs_fs_int): Remove dummy definition.
30195 (grub_pxefs_open): Use data->block_size to store the current block
30196 size setting.
30197 (grub_pxefs_read): Use block size stored in data->block_size. As the
30198 value of grub_pxe_blksize can be changed after the file is opened.
30199
30200 2008-08-06 Bean <bean123ch@gmail.com>
30201
30202 * fs/i386/pc/pxe.c (curr_file): new variable.
30203 (grub_pxefs_open): Simply the handling of pxe file system. Don't
30204 require the dummy internal file system anymore.
30205 (grub_pxefs_read): Removed.
30206 (grub_pxefs_close): Likewise.
30207 (grub_pxefs_fs_int): Likewise.
30208 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
30209 connection when we switch file.
30210 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
30211
30212 2008-08-06 Robert Millan <rmh@aybabtu.com>
30213
30214 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
30215 `halt.mod'.
30216 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
30217 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
30218
30219 * kern/i386/halt.c: New file.
30220 * kern/i386/reboot.c: Likewise.
30221 * include/grub/i386/reboot.h: Likewise.
30222 * include/grub/i386/halt.h: Likewise.
30223
30224 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
30225 Include `<grub/cpu/halt.h>'.
30226 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
30227 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
30228
30229 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
30230 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
30231 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
30232 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
30233 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
30234 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
30235 from here ...
30236 * include/grub/i386/at_keyboard.h: ... to here.
30237
30238 2008-08-05 Robert Millan <rmh@aybabtu.com>
30239
30240 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
30241 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
30242 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
30243 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30244 `kern/generic/millisleep.c'.
30245
30246 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
30247 instead of grub_get_rtc().
30248 (grub_tsc_init): Initialize `tsc_boot_time'.
30249
30250 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
30251 (grub_machine_init): Use grub_tsc_init() rather than
30252 installing an RTC-based handler via grub_install_get_time_ms().
30253
30254 * kern/i386/pit.c: New file.
30255 * include/grub/i386/pit.h: Likewise.
30256
30257 2008-08-05 Bean <bean123ch@gmail.com>
30258
30259 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
30260
30261 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
30262 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
30263 (pxe_mod_SOURCES): New macro.
30264 (pxe_mod_CFLAGS): Likewise.
30265 (pxe_mod_LDFLAGS): Likewise.
30266 (pxecmd_mod_SOURCES): Likewise.
30267 (pxecmd_mod_CFLAGS): Likewise.
30268 (pxecmd_mod_LDFLAGS): Likewise.
30269
30270 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
30271 (grub_pxe_call): Likewise.
30272
30273 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
30274
30275 * commands/i386/pc/pxecmd.c: New file.
30276
30277 * fs/i386/pc/pxe.c: Likewise.
30278
30279 * include/grub/i386/pc/pxe.h: Likewise.
30280
30281 2008-08-05 Bean <bean123ch@gmail.com>
30282
30283 * util/console.c (grub_console_cur_color): New variable.
30284 (grub_console_standard_color): Likewise.
30285 (grub_console_normal_color): Likewise.
30286 (grub_console_highlight_color): Likewise.
30287 (color_map): Likewise.
30288 (use_color): Likewise.
30289 (NUM_COLORS): New macro.
30290 (grub_ncurses_setcolorstate): Handle color properly.
30291 (grub_ncurses_setcolor): Don't change color here, just remember the
30292 settings, color will be set in grub_ncurses_setcolorstate.
30293 (grub_ncurses_getcolor): New function.
30294 (grub_ncurses_init): Initialize color pairs.
30295 (grub_ncurses_term): New member grub_ncurses_getcolor.
30296
30297 2008-08-05 Colin D Bennett <colin@gibibit.com>
30298
30299 High resolution timer support. Implemented for x86 CPUs using TSC.
30300 Extracted generic grub_millisleep() so it's linked in only as needed.
30301 This requires a Pentium compatible CPU; if the RDTSC instruction is
30302 not supported, then it falls back on the generic grub_get_time_ms()
30303 implementation that uses the machine's RTC.
30304
30305 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
30306 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30307 `kern/generic/millisleep.c'.
30308
30309 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
30310 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
30311
30312 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
30313 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
30314
30315 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30316
30317 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30318 `kern/generic/millisleep.c'.
30319
30320 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30321
30322 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
30323
30324 * kern/generic/rtc_get_time_ms.c: New file.
30325
30326 * kern/generic/millisleep.c: New file.
30327
30328 * kern/misc.c: Don't include
30329 <kern/time.h> anymore.
30330 (grub_millisleep_generic): Removed.
30331
30332 * commands/sleep.c (grub_interruptible_millisleep): Uses
30333 grub_get_time_ms() instead of grub_get_rtc().
30334
30335 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
30336 function.
30337 (grub_cpu_is_cpuid_supported): New inline function.
30338 (grub_cpu_is_tsc_supported): New inline function.
30339 (grub_tsc_init): New function prototype.
30340 (grub_tsc_get_time_ms): New function prototype.
30341
30342 * kern/i386/tsc.c (grub_get_time_ms): New file.
30343
30344 * include/grub/time.h: Include <grub/types.h.
30345 (grub_millisleep_generic): Removed.
30346 (grub_get_time_ms): New prototype.
30347 (grub_install_get_time_ms): New prototype.
30348 (grub_rtc_get_time_ms): New prototype.
30349
30350 * kern/time.c (grub_get_time_ms): New function.
30351 (grub_install_get_time_ms): New function.
30352
30353 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
30354 <grub/time.h> anymore.
30355 (grub_millisleep): Removed.
30356 (grub_machine_init): Call grub_tsc_init.
30357
30358 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
30359 get_time_ms() implementation.
30360
30361 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
30362 (ieee1275_get_time_ms): New function.
30363 (grub_machine_init): Install get_time_ms() implementation.
30364
30365 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
30366 (grub_machine_init): Call grub_tsc_init().
30367 (grub_millisleep): Removed.
30368
30369 * kern/ieee1275/init.c (grub_millisleep): Removed.
30370 (grub_machine_init): Install ieee1275_get_time_ms()
30371 implementation.
30372 (ieee1275_get_time_ms): New function.
30373 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
30374 real work.
30375
30376 2008-08-05 Marco Gerards <marco@gnu.org>
30377
30378 * disk/ata.c: Include <grub/pci.h>.
30379 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
30380 (grub_ata_initialize): Rewritten.
30381 (grub_ata_device_initialize): New function.
30382
30383 2008-08-04 Pavel Roskin <proski@gnu.org>
30384
30385 * kern/main.c: Include grub/mm.h.
30386
30387 2008-08-04 Robert Millan <rmh@aybabtu.com>
30388
30389 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
30390 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
30391 corruption problem).
30392
30393 2008-08-04 Robert Millan <rmh@aybabtu.com>
30394
30395 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
30396 warnings introduced in my last commit.
30397
30398 2008-08-03 Robert Millan <rmh@aybabtu.com>
30399
30400 Make PCI available on all i386 architectures.
30401
30402 * include/grub/i386/pc/pci.h: Move from here ...
30403 * include/grub/i386/pci.h: ... to here.
30404
30405 * include/grub/i386/pc/pci.h: Remove.
30406 * include/grub/i386/efi/pci.h: Remove.
30407 * include/grub/x86_64/efi/pci.h: Remove.
30408
30409 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
30410 `<grub/cpu/pci.h>'.
30411
30412 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
30413 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
30414 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
30415
30416 * conf/i386-ieee1275.rmk: Likewise.
30417
30418 2008-08-03 Robert Millan <rmh@aybabtu.com>
30419
30420 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
30421 (grub_console_setcursor): Make it possible to set cursor off.
30422
30423 2008-08-03 Robert Millan <rmh@aybabtu.com>
30424
30425 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
30426 of modules instead of assuming which platform provides what.
30427 * util/update-grub.in: Likewise.
30428
30429 2008-08-03 Robert Millan <rmh@aybabtu.com>
30430
30431 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
30432 instead of `grub_install_dos_part' to determine whether a drive needs
30433 to be prepended to prefix (`grub_install_dos_part' is not reliable,
30434 because it can be overridden when loading GRUB via Multiboot).
30435
30436 2008-08-02 Robert Millan <rmh@aybabtu.com>
30437
30438 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
30439
30440 2008-08-02 Robert Millan <rmh@aybabtu.com>
30441
30442 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
30443 of informational grub_dprintf() calls.
30444
30445 2008-08-02 Robert Millan <rmh@aybabtu.com>
30446
30447 * disk/memdisk.c (memdisk_size): Don't initialize.
30448 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
30449
30450 * include/grub/i386/pc/kernel.h
30451 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
30452 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
30453 (grub_memdisk_image_size, grub_arch_memdisk_addr)
30454 (grub_arch_memdisk_size): Remove.
30455
30456 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
30457 field (was only used to transfer a constant). Add `type' field to
30458 support multiple module types.
30459 (grub_module_iterate): New function.
30460
30461 * kern/device.c (grub_device_open): Do not hide error messages
30462 when grub_disk_open() fails. Use grub_print_error() instead.
30463
30464 * kern/i386/pc/init.c (grub_arch_modules_addr)
30465 (grub_arch_memdisk_size): Remove functions.
30466 (grub_arch_modules_addr): Return the module address in high memory
30467 (now that it isn't copied anymore).
30468
30469 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
30470 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
30471 decompression routine (grub_total_module_size already includes that
30472 now). Don't copy modules back to low memory.
30473
30474 * kern/main.c: Include `<grub/mm.h>'.
30475 (grub_load_modules): Split out (and use) ...
30476 (grub_module_iterate): ... this function, which iterates through
30477 module objects and runs a hook.
30478 Comment out grub_mm_init_region() call, as it would cause non-ELF
30479 modules to be overwritten.
30480
30481 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
30482 the memdisk image in its own region, make it part of the module list.
30483 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
30484 (main): Parse --memdisk|-m option, and pass user-provided path as
30485 parameter to generate_image().
30486 (add_segments): Pass `memdisk_path' down to load_modules().
30487 (load_modules): Embed memdisk image in module section when requested.
30488 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
30489 `header.type' instead of `header.offset'.
30490
30491 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
30492 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
30493 (memdisk_mod_LDFLAGS): New variables.
30494 * conf/i386-coreboot.rmk: Likewise.
30495 * conf/i386-ieee1275.rmk: Likewise.
30496
30497 2008-08-02 Robert Millan <rmh@aybabtu.com>
30498
30499 * loader/i386/pc/multiboot.c (playground, forward_relocator)
30500 (backward_relocator): New variables. Used to allocate and relocate
30501 the payload, respectively.
30502 (grub_multiboot_load_elf32): Load into heap instead of requested
30503 address, install the appropriate relocator code in each bound of
30504 the payload, and set the entry point such that
30505 grub_multiboot_real_boot() will jump to one of them.
30506
30507 * kern/i386/loader.S (grub_multiboot_payload_size)
30508 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
30509 (grub_multiboot_payload_entry_offset): New variables.
30510 (grub_multiboot_real_boot): Set cpu context to what the relocator
30511 expects, and jump to the relocator instead of the payload.
30512
30513 * include/grub/i386/loader.h (grub_multiboot_payload_size)
30514 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
30515 (grub_multiboot_payload_entry_offset): Export.
30516
30517 2008-08-01 Bean <bean123ch@gmail.com>
30518
30519 * normal/menu_entry.c (editor_getline): Don't return the original
30520 string as result, as it will be released by lexer once it has done
30521 using it.
30522
30523 2008-08-01 Robert Millan <rmh@aybabtu.com>
30524
30525 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
30526 within menuentries, not before them.
30527 util/grub.d/10_hurd.in: Likewise.
30528
30529 2008-08-01 Bean <bean123ch@gmail.com>
30530
30531 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
30532 (bufio_mod_SOURCES): New macro.
30533 (bufio_mod_CFLAGS): Likewise.
30534 (bufio_mod_LDFLAGS): Likewise.
30535
30536 * include/grub/bufio.h: New file.
30537
30538 * io/bufio.c: Likewise.
30539
30540 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
30541 (grub_video_reader_png): Use grub_buffile_open to open file.
30542
30543 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
30544 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
30545
30546 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
30547 (grub_video_reader_tga): Use grub_buffile_open to open file.
30548
30549 * font/manager.c: Include <grub/bufio.h>.
30550 (add_font): Use grub_buffile_open to open file.
30551
30552 2008-07-31 Robert Millan <rmh@aybabtu.com>
30553
30554 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
30555 ELF segments, use a macro for arbitrarily accessing any of them instead
30556 of preparing a pointer that allows access to one at a time.
30557 (grub_multiboot_load_elf64): Likewise.
30558
30559 2008-07-31 Bean <bean123ch@gmail.com>
30560
30561 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
30562 GRUB_KERNEL_MACHINE_DATA_END.
30563
30564 2008-07-30 Robert Millan <rmh@aybabtu.com>
30565
30566 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
30567 Increase from 0x50 to 0x60.
30568 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
30569 use UUIDs to identify the root drive for them. If that's not
30570 possible, abort.
30571 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
30572 check, for cross-disk installs.
30573
30574 2008-07-30 Robert Millan <rmh@aybabtu.com>
30575
30576 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
30577 is non-empty, use it to set the `prefix' environment variable instead
30578 of the usual approach.
30579 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
30580 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
30581 environment variable instead of dummy make_install_device().
30582
30583 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
30584 (start): Insert a data section, with `grub_prefix' variable.
30585 * kern/i386/linuxbios/startup.S: Likewise.
30586
30587 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
30588 New variable reference.
30589 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
30590 New macro. Defines offset of `grub_prefix' within startup.S (relative
30591 to `start').
30592 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
30593 section within startup.S (relative to `start').
30594 * include/grub/i386/coreboot/kernel.h: Likewise.
30595
30596 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
30597 Overwrite grub_prefix with its contents, at the beginning of the
30598 first segment.
30599 (main): Understand -p|--prefix.
30600
30601 2008-07-30 Robert Millan <rmh@aybabtu.com>
30602
30603 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
30604
30605 2008-07-30 Robert Millan <rmh@aybabtu.com>
30606
30607 * term/i386/pc/vga_text.c (grub_console_cls): Use
30608 grub_console_gotoxy() to go back to beginning of the screen.
30609 Found by Patrick Georgi <patrick.georgi@coresystems.de>
30610
30611 2008-07-29 Christian Franke <franke@computer.org>
30612
30613 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
30614 Add conversion of emulated mount points on Cygwin.
30615
30616 2008-07-29 Christian Franke <franke@computer.org>
30617
30618 * util/update-grub.in: Add a check for admin
30619 group on Cygwin.
30620 Remove old `grub.cfg.new' before creation.
30621 Add `-f' to `mv' to handle the different filesystem
30622 semantics of Windows.
30623
30624 2008-07-29 Bean <bean123ch@gmail.com>
30625
30626 * normal/main.c (get_line): Fix buffer overflow bug.
30627
30628 2008-07-28 Robert Millan <rmh@aybabtu.com>
30629
30630 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
30631 (struct grub_apple_header): New struct. Describes the layout of
30632 the partmap header.
30633 (apple_partition_map_iterate): Check the header magic as well as the
30634 partition magic (which was already being checked).
30635
30636 2008-07-28 Pavel Roskin <proski@gnu.org>
30637
30638 * genmk.rb: Add a warning to the beginning of the output that
30639 it's a generated file and should not be edited.
30640
30641 2008-07-28 Robert Millan <rmh@aybabtu.com>
30642
30643 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
30644 with the same number are found, just use issue a warning with
30645 grub_dprintf(), as this error has been reported to be non-fatal.
30646
30647 2008-07-27 Robert Millan <rmh@aybabtu.com>
30648
30649 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
30650 information.
30651
30652 2008-07-27 Bean <bean123ch@gmail.com>
30653
30654 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
30655 (grub_fat_find_dir): Ignore case when comparing filename.
30656
30657 2008-07-27 Bean <bean123ch@gmail.com>
30658
30659 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
30660 smallino, as it's more descriptive, and i8count can be confused with
30661 the other field count.
30662 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
30663 inode type.
30664
30665 2008-07-27 Bean <bean123ch@gmail.com>
30666
30667 * commands/crc.c: New file.
30668
30669 * lib/crc.c: Likewise.
30670
30671 * include/grub/lib/crc.h: Likewise.
30672
30673 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
30674
30675 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
30676 (hexdump): Move this function to ...
30677
30678 * lib/hexdump.c: ... here.
30679
30680 * include/grub/hexdump.h: Renamed to ...
30681
30682 * include/grub/lib/hexdump.h: ... this.
30683
30684 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
30685
30686 * util/grub-editenv.c: Likewise.
30687
30688 * include/envblk.h: Renamed to ...
30689
30690 * include/lib/envblk.h: ... this.
30691
30692 * util/envblk.c: Renamed to ...
30693
30694 * lib/envblk.c: ... this.
30695
30696 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
30697 lib/hexdump.c.
30698 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
30699 (pkglib_MODULES): Add crc.mod.
30700 (hexdump_mod_SOURCES): Add lib/hexdump.c.
30701 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
30702 (crc_mod_SOURCES): New macro.
30703 (crc_mod_CFLAGS): Likewise.
30704 (crc_mod_LDFLAGS): Likewise.
30705
30706 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
30707
30708 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30709
30710 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30711
30712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30713
30714 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30715
30716 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
30717
30718 * commands/help.c: Include <grub/term.h>.
30719 (TERM_WIDTH): Removed. Updated all users.
30720
30721 2008-07-27 Pavel Roskin <proski@gnu.org>
30722
30723 * util/getroot.c (find_root_device): Rephrase a comment to avoid
30724 spurious warnings about a comment within a comment.
30725
30726 2008-07-25 Robert Millan <rmh@aybabtu.com>
30727
30728 * util/getroot.c (find_root_device): Skip devices that match
30729 /dev/dm-[0-9]. This lets the real device be found for any type of
30730 abstraction (LVM, EVMS, RAID..).
30731 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
30732 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
30733 device is found first, find_root_device() will now skip it.
30734
30735 2008-07-24 Pavel Roskin <proski@gnu.org>
30736
30737 * include/grub/types.h: Use __builtin_bswap32() and
30738 __builtin_bswap64() with gcc 4.3 and newer.
30739
30740 2008-07-24 Christian Franke <franke@computer.org>
30741
30742 * util/i386/pc/grub-install.in: If `--debug' is specified,
30743 pass `--verbose' to grub-setup.
30744 Abort script if make_system_path_relative_to_its_root() fails.
30745
30746 2008-07-24 Bean <bean123ch@gmail.com>
30747
30748 * configure.ac: Fixed a bug caused by the previous cygwin patch,
30749 variable `target_platform' should be `platform'.
30750
30751 2008-07-24 Bean <bean123ch@gmail.com>
30752
30753 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
30754 (grub_png_init_fixed_block): New function.
30755 (grub_png_decode_image_data): Handle fixed huffman code compression.
30756
30757 2008-07-24 Bean <bean123ch@gmail.com>
30758
30759 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
30760 (grub_pe2elf_SOURCES): New macro.
30761 (CLEANFILES): Add grub-pe2elf.
30762
30763 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
30764 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
30765 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
30766 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
30767 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
30768 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
30769 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
30770 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
30771 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
30772 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
30773 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
30774 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
30775 (GRUB_PE32_DT_FUNCTION): Likewise.
30776 (GRUB_PE32_REL_I386_DIR32): Likewise.
30777 (GRUB_PE32_REL_I386_REL32): Likewise.
30778 (grub_pe32_symbol): New structure.
30779 (grub_pe32_reloc): Likewise.
30780
30781 * util/grub-pe2elf.c: New file.
30782
30783 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
30784 start symbol in non pc platform.
30785
30786 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
30787
30788 The following patches are from Christian Franke.
30789
30790 * include/grub/dl.h: Remove .previous, gas supports this only
30791 for ELF format.
30792
30793 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
30794 Remove .type, gas supports this only for ELF format.
30795
30796 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
30797 nullbytes in symbol table. This fixes an infinite loop if table is
30798 zero filled.
30799
30800 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
30801 TARGET_IMG_LDFLAGS and EXEEXT.
30802
30803 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
30804 TARGET_IMG_LDFLAGS_AC.
30805 (grub_CHECK_STACK_ARG_PROBE): New function.
30806
30807 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
30808
30809 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
30810
30811 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
30812 to set TARGET_IMG_LD* accordingly.
30813 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
30814 Add call to grub_CHECK_STACK_ARG_PROBE.
30815 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
30816
30817 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
30818
30819 * genmk.rb: Add EXEEXT to CLEANFILES.
30820
30821 2008-07-23 Robert Millan <rmh@aybabtu.com>
30822
30823 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
30824 define the codes for arrows and lines used for the menu).
30825 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
30826 as well.
30827
30828 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
30829 fonts, because the latter are too slow.
30830
30831 2008-07-21 Bean <bean123ch@gmail.com>
30832
30833 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
30834 a20. Run keyboard test last, as it will cause macbook to halt.
30835
30836 2008-07-18 Pavel Roskin <proski@gnu.org>
30837
30838 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
30839 load foreign architecture modules correctly anyway. Keep
30840 support for loading host architecture modules, whether we
30841 compile them or not.
30842
30843 2008-07-17 Pavel Roskin <proski@gnu.org>
30844
30845 * configure.ac: Use -m32 or -m64 regardless of whether we had to
30846 change target_cpu. The compiler default can mismatch target_cpu
30847 in any case.
30848
30849 * disk/efi/efidisk.c: Fix format warnings on x86_64.
30850 * kern/efi/efi.c: Likewise.
30851
30852 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
30853 target compiler is functional.
30854 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
30855 are set up.
30856
30857 * configure.ac: Default to efi platform for x86_64-apple. Allow
30858 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
30859 adjustments from the rest, only do them if target is not
30860 explicitly given. Merge other adjustments with the final sanity
30861 check. Remove an extraneous check for supported CPU. Be
30862 specific which CPU and which platform is not supported.
30863
30864 * configure.ac: Default to pc platform for x86_64.
30865
30866 2008-07-17 Robert Millan <rmh@aybabtu.com>
30867
30868 Partial LinuxBIOS -> Coreboot rename.
30869
30870 * conf/i386-linuxbios.rmk: Renamed to ...
30871 * conf/i386-coreboot.rmk: ... this.
30872 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
30873 * configure.ac: Accept "coreboot" as input platform (but maintain
30874 compatibility with "linuxbios").
30875 * include/grub/i386/linuxbios: Renamed to ...
30876 * include/grub/i386/coreboot: ... this.
30877
30878 2008-07-17 Bean <bean123ch@gmail.com>
30879
30880 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
30881 (appleldr_mod_SOURCE): New variable.
30882 (appleldr_mod_CFLAGS): Likewise.
30883 (appleldr_mod_LDFLAGS): Likewise.
30884 (pci_mod_SOURCES): Likewise.
30885 (pci_mod_CFLAGS): Likewise.
30886 (pci_mod_LDFLAGS): Likewise.
30887 (lspci_mod_SOURCES): Likewise.
30888 (lspci_mod_CFLAGS): Likewise.
30889 (lspci_mod_LDFLAGS): Likewise.
30890
30891 * conf/x86_64-efi.rmk: New file.
30892
30893 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
30894 macro.
30895 (grub_efidisk_write): Likewise.
30896
30897 * include/efi/api.h (efi_call_0): New macro.
30898 (efi_call_1): Likewise.
30899 (efi_call_2): Likewise.
30900 (efi_call_3): Likewise.
30901 (efi_call_4): Likewise.
30902 (efi_call_5): Likewise.
30903 (efi_call_6): Likewise.
30904
30905 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
30906 grub_rescue_cmd_chainloader.
30907
30908 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
30909 (grub_pe32_optional_header): Change some fields based on i386 or
30910 x86_64 platform.
30911 (GRUB_PE32_PE32_MAGIC): Likewise.
30912
30913 * include/grub/efi/uga_draw.h: New file.
30914
30915 * include/grub/elf.h (STN_ABS): New constant.
30916 (R_X86_64_NONE): Relocation constant for x86_64.
30917 (R_X86_64_64): Likewise.
30918 (R_X86_64_PC32): Likewise.
30919 (R_X86_64_GOT32): Likewise.
30920 (R_X86_64_PLT32): Likewise.
30921 (R_X86_64_COPY): Likewise.
30922 (R_X86_64_GLOB_DAT): Likewise.
30923 (R_X86_64_JUMP_SLOT): Likewise.
30924 (R_X86_64_RELATIVE): Likewise.
30925 (R_X86_64_GOTPCREL): Likewise.
30926 (R_X86_64_32): Likewise.
30927 (R_X86_64_32S): Likewise.
30928 (R_X86_64_16): Likewise.
30929 (R_X86_64_PC16): Likewise.
30930 (R_X86_64_8): Likewise.
30931 (R_X86_64_PC8): Likewise.
30932
30933 * include/grub/i386/efi/pci.h: New file.
30934
30935 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
30936 Change it value based on platform.
30937 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
30938 (GRUB_E820_RAM): Likewise.
30939 (GRUB_E820_RESERVED): Likewise.
30940 (GRUB_E820_ACPI): Likewise.
30941 (GRUB_E820_NVS): Likewise.
30942 (GRUB_E820_EXEC_CODE): Likewise.
30943 (GRUB_E820_MAX_ENTRY): Likewise.
30944 (grub_e820_mmap): New structure.
30945 (linux_kernel_header): Change the efi field according to different
30946 kernel version, also field from linux_kernel_header.
30947
30948 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
30949
30950 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
30951 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
30952 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
30953 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
30954 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
30955 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
30956 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
30957 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
30958 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
30959 (GRUB_PCI_ADDR_IO_MASK): Likewise.
30960
30961 * include/grub/x86_64/efi/kernel.h: New file.
30962
30963 * include/grub/x86_64/efi/loader.h: Likewise.
30964
30965 * include/grub/x86_64/efi/machine.h: Likewise.
30966
30967 * include/grub/x86_64/efi/pci.h: Likewise.
30968
30969 * include/grub/x86_64/efi/time.h: Likewise.
30970
30971 * include/grub/x86_64/linux.h: Likewise.
30972
30973 * include/grub/x86_64/setjmp.h: Likewise.
30974
30975 * include/grub/x86_64/time.h: Likewise.
30976
30977 * include/grub/x86_64/types.h: Likewise.
30978
30979 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
30980 GRUB_TARGET_SIZEOF_VOID_P.
30981
30982 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
30983 (grub_efi_locate_handle): Likewise.
30984 (grub_efi_open_protocol): Likewise.
30985 (grub_efi_set_text_mode): Likewise.
30986 (grub_efi_stall): Likewise.
30987 (grub_exit): Likewise.
30988 (grub_reboot): Likewise.
30989 (grub_halt): Likewise.
30990 (grub_efi_exit_boot_services): Likewise.
30991 (grub_get_rtc): Likewise.
30992
30993 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
30994 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
30995 (grub_efi_allocate_pages): Wrap efi calls.
30996 (grub_efi_free_pages): Wrap efi calls.
30997 (grub_efi_get_memory_map): Wrap efi calls.
30998
30999 * kern/x86_64/dl.c: New file.
31000
31001 * kern/x86_64/efi/callwrap.S: Likewise.
31002
31003 * kern/x86_64/efi/startup.S: Likewise.
31004
31005 * loader/efi/appleloader.c: Likewise.
31006
31007 * loader/efi/chainloader.c (cmdline): New variable.
31008 (grub_chainloader_unload): Wrap efi calls.
31009 (grub_chainloader_boot): Likewise.
31010 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
31011 command line.
31012
31013 * loader/efi/chainloader_normal.c (chainloader_command):
31014 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
31015 command line.
31016
31017 * loader/i386/efi/linux.c (allocate_pages): Change allocation
31018 method.
31019 (grub_e820_add_region): New function.
31020 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
31021 booting.
31022 (grub_find_video_card): New function.
31023 (grub_linux_setup_video): New function.
31024 (grub_rescue_cmd_linux): Probe for video information.
31025
31026 * normal/x86_64/setjmp.S: New file.
31027
31028 * term/efi/console.c (map_char): New function.
31029 (grub_console_putchar): Map unicode char.
31030 (grub_console_checkkey): Wrap efi calls.
31031 (grub_console_getkey): Likewise.
31032 (grub_console_getwh): Likewise.
31033 (grub_console_gotoxy): Likewise.
31034 (grub_console_cls): Likewise.
31035 (grub_console_setcolorstate): Likewise.
31036 (grub_console_setcursor): Likewise.
31037
31038 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
31039
31040 2008-07-16 Pavel Roskin <proski@gnu.org>
31041
31042 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
31043 format strings.
31044
31045 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
31046 pointer, not an integer. This fixes a warning and prevents
31047 precision loss on 64-bit systems.
31048 (relocate_addresses): Remove unneeded cast.
31049
31050 2008-07-15 Pavel Roskin <proski@gnu.org>
31051
31052 * kern/i386/ieee1275/init.c: Include grub/cache.h.
31053
31054 * term/ieee1275/ofconsole.c: Disable code unused on i386.
31055
31056 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
31057 Fix comparison between signed and unsigned.
31058
31059 * include/grub/i386/ieee1275/console.h: Declare
31060 grub_console_init() and grub_console_fini().
31061
31062 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
31063 It's empty and unused.
31064
31065 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
31066 beginning to avoid warnings with some compilers.
31067
31068 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
31069 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
31070
31071 2008-07-14 Pavel Roskin <proski@gnu.org>
31072
31073 * kern/env.c (grub_register_variable_hook): Don't copy empty
31074 string, it leaks memory. Pass "" to grub_env_set(), it should
31075 handle constant strings.
31076
31077 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
31078 * commands/cmp.c (grub_cmd_cmp): Likewise.
31079 * kern/dl.c (grub_dl_flush_cache): Likewise.
31080 (grub_dl_load_core): Likewise.
31081 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
31082 (grub_elf64_load_phdrs): Likewise.
31083
31084 2008-07-13 Pavel Roskin <proski@gnu.org>
31085
31086 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
31087 between signed and unsigned.
31088 (LzmaEnc_Finish): Fix warning about an unused parameter.
31089
31090 2008-07-13 Bean <bean123ch@gmail.com>
31091
31092 * Makefile.in (enable_lzo): New rule.
31093
31094 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
31095
31096 * configure.ac (ENABLE_LZO): New option --enable-lzo.
31097
31098 * boot/i386/pc/lnxboot.S: #include <config.h>.
31099
31100 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
31101 its value according to the compression algorithm used, lzo or lzma.
31102
31103 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
31104 compression algorithm according to configure macro.
31105
31106 * kern/i386/pc/startup.S (codestart): Likewise.
31107
31108 * kern/i386/pc/lzma_decode.S: New file.
31109
31110 * include/grub/lib/LzFind.h: Likewise.
31111
31112 * include/grub/lib/LzHash.h: Likewise.
31113
31114 * include/grub/lib/LzmaDec.h: Likewise.
31115
31116 * include/grub/lib/LzmaEnc.h: Likewise.
31117
31118 * include/grub/lib/LzmaTypes.h: Likewise.
31119
31120 * lib/LzFind.c: Likewise.
31121
31122 * lib/LzmaDec.c: Likewise.
31123
31124 * lib/LzmaEnc.c: Likewise.
31125
31126 2008-07-13 Bean <bean123ch@gmail.com>
31127
31128 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
31129 (grub_ext4_extent_header): New structure.
31130 (grub_ext4_extent): Likewise.
31131 (grub_ext4_extent_idx): Likewise.
31132 (grub_ext4_find_leaf): New function.
31133 (grub_ext2_read_block): Handle extents.
31134
31135 2008-07-12 Robert Millan <rmh@aybabtu.com>
31136
31137 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
31138
31139 2008-07-11 Robert Millan <rmh@aybabtu.com>
31140
31141 * util/grub.d/40_custom.in: New file. Example on how to add custom
31142 entries to /etc/grub.d.
31143 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
31144 40_custom (implicitly, by merging all the grub.d rules).
31145
31146 2008-07-11 Pavel Roskin <proski@gnu.org>
31147
31148 * commands/read.c (grub_getline): Fix invalid memory access.
31149 Don't add newline to the variable value.
31150
31151 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
31152 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
31153 (serial_hw_get_port): Check validity of the port number.
31154 (grub_cmd_serial): Check return value of serial_hw_get_port().
31155
31156 2008-07-07 Pavel Roskin <proski@gnu.org>
31157
31158 * boot/i386/pc/diskboot.S (notification_string): Replace
31159 "Loading kernel" with just "loading". This is shorter, less
31160 confusing and saves a few bytes for possible future changes.
31161
31162 2008-07-05 Pavel Roskin <proski@gnu.org>
31163
31164 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
31165 size for ATAPI devices, they are undefined. Output sector
31166 number in decimal form.
31167
31168 * disk/ata.c: Use named constants for status bits.
31169
31170 2008-07-04 Pavel Roskin <proski@gnu.org>
31171
31172 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
31173 grub_addr_t before casting it to the void pointer to fix a
31174 warning. Non-addressable regions are discarded earlier.
31175 (grub_arch_modules_addr): Cast _end to grub_addr_t.
31176 * kern/i386/linuxbios/table.c: Include grub/misc.h.
31177 (check_signature): Don't shadow table_header.
31178 (grub_linuxbios_table_iterate): Cast numeric constants to
31179 grub_linuxbios_table_header_t.
31180 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
31181 grub_stop().
31182
31183 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
31184 prevent warnings.
31185
31186 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
31187 pointer, which can cause warnings. Support 64-bit addresses.
31188
31189 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
31190 of sizeof(long). This fixes PowerPC image generation on x86_64.
31191
31192 2008-07-04 Robert Millan <rmh@aybabtu.com>
31193
31194 This fixes a performance issue when pc & gpt partmap iterators
31195 didn't abort iteration even after our hook found what it was
31196 looking for (often causing expensive probes of non-existent drives).
31197
31198 Some callers relied on previous buggy behaviour, since they would
31199 raise an error when their own hooks caused early abortion of its
31200 iteration.
31201
31202 * kern/device.c (grub_device_open): Improve error message.
31203 * disk/lvm.c (grub_lvm_open): Likewise.
31204 * disk/raid.c (grub_raid_open): Likewise.
31205
31206 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
31207 when hook requests it, independently of grub_errno.
31208 (pc_partition_map_probe): Do not fail when find_func() caused
31209 early abortion of pc_partition_map_iterate().
31210
31211 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
31212 when hook requests it, independently of grub_errno.
31213 (gpt_partition_map_probe): Do not fail when find_func() caused
31214 early abortion of gpt_partition_map_iterate().
31215
31216 * kern/partition.c (grub_partition_iterate): Abort parent iteration
31217 when hook requests it, independently of grub_errno. Do not fail when
31218 part_map_iterate_hook() caused early abortion of p->iterate().
31219
31220 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
31221 when grub_partition_iterate() returned with non-zero.
31222
31223 2008-07-03 Pavel Roskin <proski@gnu.org>
31224
31225 * disk/ata.c (grub_ata_pio_write): Check status before writing,
31226 like we do in grub_ata_pio_read().
31227 (grub_ata_readwrite): Always write individual sectors. Fix the
31228 sector count for the remainder.
31229 (grub_ata_write): Enable writing to ATA devices. Correctly
31230 report error for ATAPI devices.
31231
31232 2008-07-02 Pavel Roskin <proski@gnu.org>
31233
31234 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
31235 warning.
31236
31237 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
31238 for every read sector, we already increment it for the whole
31239 batch. This fixes reading more than 256 sectors at once.
31240
31241 * util/grub-editenv.c (cmd_info): Cast argument to long
31242 explicitly. ptrdiff_t reduces to int on i386.
31243
31244 * util/grub-editenv.c (main): Be specific which parameter is
31245 missing.
31246
31247 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
31248 (memdisk): Make memdisk_orig_addr a pointer.
31249
31250 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
31251 for file offsets, use grub_off_t instead. Fix printf format
31252 warnings.
31253
31254 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
31255 there. Real unexpected warnings should not drown in the noise
31256 about known problems.
31257
31258 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
31259 grub_disk_addr_t for memory addresses.
31260
31261 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
31262 explicitly to fix a warning.
31263
31264 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
31265
31266 * Makefile.in (MODULE_LDFLAGS): New variable.
31267 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
31268 the linker accepts --build-id=none.
31269 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
31270 MODULE_LDFLAGS.
31271 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
31272
31273 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
31274 those in Linux XFS code. Provide a way to access 64-bit parent
31275 inode.
31276 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
31277 the end of struct grub_xfs_dir_header.
31278
31279 2008-07-02 Bean <bean123ch@gmail.com>
31280
31281 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
31282 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31283 and GRUB_IEEE1275_FLAG_NO_ANSI.
31284
31285 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
31286 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31287 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
31288
31289 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
31290 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
31291
31292 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
31293 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
31294
31295 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
31296 esc sequence on non ANSI terminal.
31297 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
31298
31299 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
31300 beginning of file.
31301
31302 2008-07-02 Bean <bean123ch@gmail.com>
31303
31304 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
31305 (grub_editenv_SOURCES): New variable.
31306 (pkglib_MODULES): Add loadenv.mod.
31307 (loadenv_mod_SOURCES): New variable.
31308 (loadenv_mod_CFLAGS): Likewise.
31309 (loadenv_mod_LDFLAGS): Likewise.
31310
31311 * include/grub/envblk.h: New file.
31312
31313 * util/envblk.c: New file.
31314
31315 * util/grub-editenv.c: New file.
31316
31317 * commands/loadenv.c: New file.
31318
31319 2008-07-01 Pavel Roskin <proski@gnu.org>
31320
31321 * include/multiboot2.h (struct multiboot_tag_module): Use char,
31322 not unsigned char. This fixes warnings and is consistent with
31323 other tags.
31324
31325 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
31326
31327 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
31328
31329 * term/tparm.c (analyze): Always set *popcount.
31330
31331 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
31332 cast to fix a warning.
31333
31334 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
31335 cast to suppress a warning.
31336
31337 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
31338 grub_fshelp_read_file() expects.
31339
31340 * fs/fat.c: Fix UUID calculation on big-endian systems. We
31341 write uuid as a 32-bit value in CPU byte order, so declare and
31342 use it as such.
31343
31344 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
31345 long if the format specifier expects it.
31346 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
31347 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31348 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
31349 long to fix a warning.
31350 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
31351 grub_dprintf() arguments to fix warnings.
31352
31353 2008-06-30 Pavel Roskin <proski@gnu.org>
31354
31355 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
31356 install_bsd_part immediately before core.img is embedded or
31357 modified on disk. This fixes core.img verification if core.img
31358 cannot be embedded.
31359
31360 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
31361 core_path to calculate the blocklist.
31362 Patch from Javier Martín <lordhabbit@gmail.com>
31363
31364 2008-06-29 Robert Millan <rmh@aybabtu.com>
31365
31366 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
31367 block to disk block.
31368 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
31369 Patch from Niels Böhm <bitbucket@arcor.de>
31370
31371 2008-06-29 Robert Millan <rmh@aybabtu.com>
31372
31373 * util/update-grub_lib.in (font_path): Search for fonts in
31374 /boot/grub first, which is more likely to be readable (we aren't
31375 deciding where fonts live, just looking for them).
31376
31377 2008-06-26 Pavel Roskin <proski@gnu.org>
31378
31379 * util/biosdisk.c (read_device_map): Don't leave dead map
31380 entries for devices failing stat() check.
31381
31382 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
31383 core_path_dev for the core.img path on the target device.
31384
31385 2008-06-26 Robert Millan <rmh@aybabtu.com>
31386
31387 * disk/fs_uuid.c: New file.
31388 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
31389 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
31390 (fs_uuid_mod_LDFLAGS): New variables.
31391 * include/grub/disk.h (grub_disk_dev_id): Add
31392 `GRUB_DISK_DEVICE_UUID_ID'.
31393 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
31394 implement iterate().
31395
31396 2008-06-26 Robert Millan <rmh@aybabtu.com>
31397
31398 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
31399 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
31400 Linux image includes no initrd.
31401
31402 2008-06-21 Javier Martín <lordhabbit@gmail.com>
31403
31404 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
31405 call to resolve the core image location that effectively appended the
31406 name twice.
31407
31408 2008-06-21 Robert Millan <rmh@aybabtu.com>
31409
31410 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
31411 call from here ...
31412
31413 * util/grub.d/10_hurd.in: ... to here ...
31414 * util/grub.d/10_linux.in: ... and here.
31415
31416 2008-06-19 Robert Millan <rmh@aybabtu.com>
31417
31418 * kern/main.c (grub_main): Export `prefix' variable immediately
31419 after it has been set by grub_machine_set_prefix().
31420
31421 2008-06-19 Robert Millan <rmh@aybabtu.com>
31422
31423 * commands/search.c (search_label, search_fs_uuid, search_file): Print
31424 search result when not saving to variable, not the other way around.
31425 When saving to variable, abort iteration as soon as a match is found.
31426
31427 2008-06-19 Robert Millan <rmh@aybabtu.com>
31428
31429 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
31430 check for partition that provides /boot/grub. Its logic is flawed,
31431 as it prevents prepare_grub_to_access_device() from being called
31432 multiple times.
31433
31434 2008-06-19 Robert Millan <rmh@aybabtu.com>
31435
31436 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
31437 "insmod" command directly when abstraction modules are needed,
31438 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
31439 since it had already been processed).
31440
31441 2008-06-19 Pavel Roskin <proski@gnu.org>
31442
31443 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
31444 changed. This is needed in case GRUB_LIBDIR changes.
31445 * conf/i386-ieee1275.rmk: Likewise.
31446 * conf/i386-linuxbios.rmk: Likewise.
31447 * conf/i386-pc.rmk: Likewise.
31448 * conf/powerpc-ieee1275.rmk: Likewise.
31449
31450 2008-06-18 Pavel Roskin <proski@gnu.org>
31451
31452 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
31453 kernel_elf_symlist.c to symlist.c for consistency with other
31454 architectures. Update all users.
31455 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31456
31457 2008-06-18 Robert Millan <rmh@aybabtu.com>
31458
31459 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
31460 it in prefix.
31461
31462 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
31463 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
31464 a RAID device, run setup() for all members independently on whether
31465 LVM abstraction is being used.
31466 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
31467 If grub-mkimage has set `*install_dos_part == -2', don't override this
31468 value.
31469 Perform *install_dos_part adjustments independently on whether
31470 we're embedding or not.
31471 Clarify error message when image is too big for embedding.
31472 Remove duplicate *install_dos_part stanza.
31473
31474 2008-06-17 Robert Millan <rmh@aybabtu.com>
31475
31476 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
31477 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
31478 variables.
31479 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
31480 values in grub_ofconsole_normal_color and
31481 grub_ofconsole_highlight_color (they're not directly related to
31482 background and foreground).
31483 (grub_ofconsole_setcolorstate): Extract background and foreground
31484 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
31485
31486 2008-06-17 Robert Millan <rmh@aybabtu.com>
31487
31488 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
31489 /boot/grub for the check in last commit, not /boot (they could be
31490 different partitions).
31491
31492 2008-06-16 Robert Millan <rmh@aybabtu.com>
31493
31494 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
31495 asked to setup access for the same partition that provides /boot,
31496 don't bother using UUIDs since our root already has the value we
31497 want.
31498
31499 2008-06-16 Robert Millan <rmh@aybabtu.com>
31500
31501 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
31502 I2O devices.
31503 Patch from Sven Mueller <sven@debian.org>.
31504
31505 2008-06-16 Robert Millan <rmh@aybabtu.com>
31506
31507 * util/update-grub.in: Check for $EUID instead of $UID.
31508 Reported by Vincent Zweije.
31509
31510 2008-06-16 Bean <bean123ch@gmail.com>
31511
31512 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
31513 (grub_ext2_read_block): Likewise.
31514 (grub_ext2_read_inode): Likewise.
31515 (grub_ext2_mount): Likewise.
31516 (grub_ext2_close): Likewise.
31517 (grub_ext3_get_journal): Removed.
31518
31519 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
31520 (grub_reiserfs_read_symlink): Likewise.
31521 (grub_reiserfs_mount): Likewise.
31522 (grub_reiserfs_open): Likewise.
31523 (grub_reiserfs_read): Likewise.
31524 (grub_reiserfs_close): Likewise.
31525 (grub_reiserfs_get_journal): Removed.
31526
31527 * fs/fshelp.c (grub_fshelp_read): Removed.
31528 (grub_fshelp_map_block): Likewise.
31529
31530 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
31531 (grub_fshelp_journal): Likewise.
31532 (grub_fshelp_read): Likewise.
31533 (grub_fshelp_map_block): Likewise.
31534
31535 2008-06-16 Pavel Roskin <proski@gnu.org>
31536
31537 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
31538 floating point anymore.
31539 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
31540
31541 2008-06-15 Pavel Roskin <proski@gnu.org>
31542
31543 * commands/ls.c (grub_ls_list_files): Use integer calculations
31544 for human readable format, avoid floating point use.
31545 * kern/misc.c (grub_ftoa): Remove.
31546 (grub_vsprintf): Remove floating point support.
31547
31548 2008-06-15 Robert Millan <rmh@aybabtu.com>
31549
31550 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
31551 devices.
31552 Reported by Max Vozeler.
31553
31554 2008-06-15 Robert Millan <rmh@aybabtu.com>
31555
31556 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
31557 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
31558 skipped later.
31559 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
31560 the beginning of the prefix.
31561
31562 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
31563 It is assumed that if we have a memdisk, grub-mkimage has set
31564 grub_prefix to include the "(memdisk)" drive in it.
31565
31566 2008-06-15 Robert Millan <rmh@aybabtu.com>
31567
31568 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
31569 Initialize keyboard controller after registering the terminal, so that
31570 grub_printf() can be called from grub_keyboard_controller_init().
31571
31572 2008-06-15 Robert Millan <rmh@aybabtu.com>
31573
31574 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
31575 extent-btree which is written as big endian on disk.
31576 Reported by Alain Greppin <al@chilibi.org>.
31577
31578 2008-06-14 Robert Millan <rmh@aybabtu.com>
31579
31580 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
31581 * util/i386/pc/grub-install.in (modules): Likewise.
31582
31583 2008-06-13 Pavel Roskin <proski@gnu.org>
31584
31585 * commands/ls.c (grub_ls_list_files): Fix format warnings.
31586
31587 2008-06-13 Bean <bean123ch@gmail.com>
31588
31589 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
31590
31591 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
31592
31593 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
31594 to indicate sparse block.
31595
31596 2008-06-12 Pavel Roskin <proski@gnu.org>
31597
31598 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
31599 number, grub_fshelp_read() does it for us.
31600
31601 * fs/fshelp.c (grub_fshelp_read): New function. Implement
31602 linear disk read with journal translation.
31603 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
31604 * include/grub/fshelp.h: Declare grub_fshelp_read().
31605
31606 2008-06-09 Pavel Roskin <proski@gnu.org>
31607
31608 * fs/minix.c (grub_minix_mount): Handle error reading
31609 superblock.
31610
31611 2008-06-08 Robert Millan <rmh@aybabtu.com>
31612
31613 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
31614 don't append the RAID prefix afterwards.
31615 Reported by Clint Adams.
31616
31617 2008-06-08 Robert Millan <rmh@aybabtu.com>
31618
31619 Based on description from Pavel:
31620 * kern/disk.c (grub_disk_check_range): Rename to ...
31621 (grub_disk_adjust_range): ... this. Add a comment explaining the
31622 tasks performed by this function.
31623
31624 2008-06-08 Robert Millan <rmh@aybabtu.com>
31625
31626 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
31627 `num_serial' (for consistency with other variables).
31628 (struct grub_ntfs_data): Add `uuid' member.
31629 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
31630 (grub_ntfs_uuid): New function.
31631 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
31632
31633 2008-06-07 Pavel Roskin <proski@gnu.org>
31634
31635 * util/biosdisk.c (open_device): Revert last change to the
31636 function, it broke installation. The sector needs to be
31637 different dependent on which device is opened.
31638
31639 2008-06-06 Robert Millan <rmh@aybabtu.com>
31640
31641 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
31642 rest of GRUB, and breakage doesn't happen if its value were modified.
31643
31644 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
31645 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
31646 a constant (same value).
31647 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
31648 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
31649
31650 2008-06-06 Robert Millan <rmh@aybabtu.com>
31651
31652 * util/biosdisk.c (open_device): Do not modify sector offset when
31653 accessing a partition. kern/disk.c already handles this for us.
31654
31655 2008-06-06 Robert Millan <rmh@aybabtu.com>
31656
31657 * util/grub-emu.c (grub_machine_init): Move code in this function from
31658 here ...
31659 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
31660 segfault in case grub_printf() is called).
31661
31662 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
31663 grub_probe. Update all users not to explicitly add it again.
31664 (grub_device): New variable; contains corresponding device for grubdir.
31665 (fs_module, partmap_module, devabstraction_module): Pass
31666 `--device ${grub_device}' to grub_probe to avoid traversing /dev
31667 every time.
31668
31669 2008-06-05 Robert Millan <rmh@aybabtu.com>
31670
31671 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
31672 is found, print it (same layout as with labels).
31673
31674 2008-06-04 Robert Millan <rmh@aybabtu.com>
31675
31676 * util/biosdisk.c (get_drive): Rename to ...
31677 (find_grub_drive): ... this. Update all users.
31678
31679 (get_os_disk): Rename to ...
31680 (convert_system_partition_to_system_disk): ... this. Update all users.
31681
31682 (find_drive): Rename to ...
31683 (find_system_device): ... this. Update all users.
31684
31685 2008-06-04 Robert Millan <rmh@aybabtu.com>
31686
31687 * util/biosdisk.c (get_os_disk): Handle IDA devices.
31688 * util/grub-mkdevicemap.c (get_mmc_disk_name)
31689 (make_device_map): Likewise.
31690
31691 2008-06-01 Robert Millan <rmh@aybabtu.com>
31692
31693 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
31694 before dereferencing it.
31695
31696 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
31697 union with fat12/fat16-specific ones. Add some new fields, including
31698 `num_serial' for both versions.
31699 (struct grub_fat_data): Add `uuid' member.
31700 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
31701 names. Initialize `data->uuid' using `num_serial'.
31702 (grub_fat_uuid): New function.
31703 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
31704
31705 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
31706 (grub_reiserfs_uuid): New function.
31707 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
31708 member.
31709
31710 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
31711 (grub_xfs_uuid): New function.
31712 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
31713
31714 2008-06-01 Robert Millan <rmh@aybabtu.com>
31715
31716 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
31717 code that is backward compatible with pre-uuid search command.
31718
31719 2008-05-31 Robert Millan <rmh@aybabtu.com>
31720
31721 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
31722 floppies after everything else, to ensure floppy drive isn't accessed
31723 unnecessarily (patch from Bean).
31724
31725 2008-05-31 Robert Millan <rmh@aybabtu.com>
31726
31727 * commands/search.c (search_label, search_fs_uuid, search_file): Do
31728 not print device names when we were asked to set a variable.
31729
31730 2008-05-31 Robert Millan <rmh@aybabtu.com>
31731
31732 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
31733 using "cursor-on" and "cursor-off" commands (understood at least by
31734 the Open Firmware flavour on OLPC).
31735
31736 2008-05-31 Michael Gorven <michael@gorven.za.net>
31737
31738 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
31739 on and off sequences.
31740
31741 2008-05-31 Robert Millan <rmh@aybabtu.com>
31742
31743 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
31744 * util/update-grub.in: Likewise.
31745
31746 2008-05-30 Pavel Roskin <proski@gnu.org>
31747
31748 * util/biosdisk.c (linux_find_partition): Simplify logic and
31749 make the code more universal. Keep special processing for
31750 devfs, but use a simple rule for all other devices. If the
31751 device ends with a number, append 'p' and the partition number.
31752 Otherwise, append only the partition number.
31753
31754 2008-05-30 Robert Millan <rmh@aybabtu.com>
31755
31756 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
31757 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
31758 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
31759 the `root' parameter to Linux.
31760
31761 2008-05-30 Robert Millan <rmh@aybabtu.com>
31762
31763 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
31764 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
31765 --fs_uuid with --fs-uuid.
31766 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
31767 all filesystems support them).
31768
31769 2008-05-30 Robert Millan <rmh@aybabtu.com>
31770
31771 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
31772 grub_printf() flags, since we're printing in units of 2 bytes.
31773
31774 2008-05-30 Robert Millan <rmh@aybabtu.com>
31775
31776 * util/grub.d/00_header.in: Remove obsolete comment referencing
31777 convert_system_path_to_grub_path().
31778 * util/update-grub.in: Likewise.
31779 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
31780 (convert_system_path_to_grub_path): Add a warning message explaining
31781 that this function is deprecated. Rely on is_path_readable_by_grub()
31782 for the readability checks.
31783 (font_path): Use is_path_readable_by_grub() for the readability
31784 check rather than convert_system_path_to_grub_path().
31785
31786 2008-05-30 Robert Millan <rmh@aybabtu.com>
31787
31788 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
31789 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
31790 converting it first.
31791 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
31792 grub.cfg for access to font file, and afterwards call it again to set
31793 the root device.
31794
31795 2008-05-30 Robert Millan <rmh@aybabtu.com>
31796
31797 * commands/search.c (options): Add --fs_uuid option.
31798 (search_fs_uuid): New function.
31799 (grub_cmd_search): Fix --set argument passing.
31800 Use search_fs_uuid() when requested via --fs_uuid.
31801 (grub_search_init): Update help message.
31802 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
31803 and redeclare it as an array of 16-bit words.
31804 (grub_ext2_uuid): New function.
31805 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
31806 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
31807 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
31808 (GRUB_DEVICE_BOOT_UUID): New variables.
31809 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
31810 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
31811 whenever possible.
31812 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
31813 just assume `root' variable has the right value.
31814 * util/grub.d/10_linux.in: Likewise.
31815 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
31816 via PRINT_FS_UUID.
31817 (main): Recognise `-t fs_uuid' argument.
31818
31819 2008-05-30 Robert Millan <rmh@aybabtu.com>
31820
31821 * util/biosdisk.c (map): Redefine structure to hold information
31822 about GRUB drive name.
31823 (get_drive): Reimplement without assuming (and verifying) BIOS-like
31824 drive names.
31825 (call_hook): Remove.
31826 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
31827 member. Assume drive has partitions.
31828 (grub_util_biosdisk_open): Access device names via `.device' struct
31829 member.
31830 (open_device): Likewise.
31831 (find_drive): Likewise.
31832 (read_device_map): Adjust map[] usage to match the new struct
31833 definition. Don't check for duplicates (still possible, but not cheap
31834 anymore).
31835 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
31836 (make_device_name): Remove assumption of BIOS-like drive names.
31837
31838 2008-05-30 Pavel Roskin <proski@gnu.org>
31839
31840 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
31841 compiling execute.c doesn't need grub_script.tab.h anymore.
31842 (normal/command.c_DEPENDENCIES): Likewise.
31843 (normal/function.c_DEPENDENCIES): Likewise.
31844 * conf/i386-ieee1275.rmk: Likewise.
31845 * conf/i386-linuxbios.rmk: Likewise.
31846 * conf/i386-pc.rmk: Likewise.
31847 * conf/powerpc-ieee1275.rmk: Likewise.
31848 * conf/sparc64-ieee1275.rmk: Likewise.
31849
31850 2008-05-29 Pavel Roskin <proski@gnu.org>
31851
31852 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
31853 when scanning metadata for volume group name.
31854
31855 * include/grub/script.h: Don't include grub_script.tab.h. It's
31856 a generated file, which may only be included from the files with
31857 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
31858 use union YYSTYPE, as the later allows forward declaration.
31859 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
31860
31861 2008-05-29 Robert Millan <rmh@aybabtu.com>
31862
31863 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
31864 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
31865 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
31866 (grub_console_checkkey): Add grub_dprintf() call to report unknown
31867 scan codes.
31868
31869 2008-05-29 Robert Millan <rmh@aybabtu.com>
31870
31871 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
31872 control key combinations.
31873
31874 2008-05-29 Robert Millan <rmh@aybabtu.com>
31875
31876 * util/powerpc/ieee1275/grub-install.in: Move from here ...
31877 * util/ieee1275/grub-install.in: ... to here.
31878 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
31879 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
31880 (grub_install_SOURCES): Likewise.
31881
31882 2008-05-29 Robert Millan <rmh@aybabtu.com>
31883
31884 * fs/affs.c: Update copyright year.
31885 * fs/ext2.c: Likewise.
31886 * fs/fshelp.c: Likewise.
31887 * fs/hfsplus.c: Likewise.
31888 * fs/ntfs.c: Likewise.
31889 * fs/xfs.c: Likewise.
31890 * include/grub/fshelp.h: Likewise.
31891 * util/grub-mkdevicemap.c: Likewise.
31892
31893 2008-05-28 Robert Millan <rmh@aybabtu.com>
31894
31895 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
31896 might need to be fatfs to support some firmware implementations
31897 (e.g. OFW or EFI).
31898
31899 2008-05-28 Robert Millan <rmh@aybabtu.com>
31900
31901 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
31902 devices.
31903 * util/grub-mkdevicemap.c (get_mmc_disk_name)
31904 (make_device_map): Likewise.
31905
31906 2008-05-20 Bean <bean123ch@gmail.com>
31907
31908 * fs/fshelp.c (grub_fshelp_map_block): New function.
31909 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
31910 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
31911
31912 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
31913 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
31914 (grub_fshelp_journal): New structure.
31915 (grub_fshelp_map_block): New function prototype.
31916 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
31917 (grub_fshelp_map_block): Likewise.
31918
31919 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
31920 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
31921 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
31922 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
31923 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
31924 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
31925 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
31926 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
31927 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
31928 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
31929 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
31930 (grub_ext2_sblock): New members for journal support.
31931 (grub_ext3_journal_header): New structure.
31932 (grub_ext3_journal_revoke_header): Likewise.
31933 (grub_ext3_journal_block_tag): Likewise.
31934 (grub_ext3_journal_sblock): Likewise.
31935 (grub_fshelp_node): New members logfile and journal.
31936 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
31937 grub_fshelp_map_block to get real block number.
31938 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
31939 number.
31940 (grub_ext2_read_inode): Likewise.
31941 (grub_ext3_get_journal): New function.
31942 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
31943 (grub_ext2_close): Release memory used by journal.
31944
31945 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
31946 (REISERFS_MAGIC_DESC_BLOCK): New macro.
31947 (grub_reiserfs_transaction_header): Renamed to
31948 grub_reiserfs_description_block, replace field data with real_blocks.
31949 (grub_reiserfs_commit_block): New structure.
31950 (grub_reiserfs_data): New member journal.
31951 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
31952 number.
31953 (grub_reiserfs_read_symlink): Likewise.
31954 (grub_reiserfs_iterate_dir): Likewise.
31955 (grub_reiserfs_open): Likewise.
31956 (grub_reiserfs_read): Likewise.
31957 (grub_reiserfs_get_journal): New function.
31958 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
31959 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
31960 using grub_reiserfs_get_journal.
31961 (grub_reiserfs_close): Release memory used by journal.
31962
31963 * fs/affs.c (grub_affs_read_block): Change block type to
31964 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
31965
31966 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
31967
31968 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
31969
31970 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
31971
31972 * fs/udf.c (grub_udf_read_block): Change block type to
31973 grub_disk_addr_t. Use type cast to avoid warning.
31974
31975 * fs/xfs.c (grub_xfs_read_block): Likewise.
31976
31977 2008-05-16 Christian Franke <franke@computer.org>
31978
31979 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
31980 to ensure that break with ESC will always work.
31981 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
31982 Remove ESC from keyboard queue.
31983
31984 2008-05-16 Christian Franke <franke@computer.org>
31985
31986 * util/biosdisk.c: [__CYGWIN__] Add includes.
31987 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
31988 (get_os_disk): Move variable declarations to OS specific
31989 parts to avoid warning.
31990 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
31991 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
31992 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
31993 Cygwin.
31994 * util/getroot.c: [__CYGWIN__] Add includes.
31995 (strip_extra_slashes): Fix "/" case.
31996 [__CYGWIN__] (get_win32_path): New function.
31997 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
31998 [__CYGWIN__] (find_root_device): Disable.
31999 [__CYGWIN__] (get_bootsec_serial): New function.
32000 [__CYGWIN__] (find_cygwin_root_device): Likewise.
32001 [__linux__] (grub_guess_root_device): Add early returns to simplify
32002 structure.
32003 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
32004 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
32005 check for Linux only.
32006
32007 2008-05-15 Bean <bean123ch@gmail.com>
32008
32009 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
32010 keyboard hang problem in apple's intel mac.
32011
32012 2008-05-09 Robert Millan <rmh@aybabtu.com>
32013
32014 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
32015 devices.
32016 * util/grub-mkdevicemap.c (get_virtio_disk_name)
32017 (make_device_map): Likewise.
32018 Reported by Aurelien Jarno <aurel32@debian.org>
32019
32020 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
32021
32022 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
32023 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
32024 (make_device_map): Output entries for xvd type disks.
32025
32026 2008-05-07 Robert Millan <rmh@aybabtu.com>
32027
32028 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
32029 devices.
32030 * util/grub-mkdevicemap.c (get_cciss_disk_name)
32031 (make_device_map): Likewise.
32032 Reported by Roland Dreier <rdreier@cisco.com>
32033
32034 2008-05-07 Robert Millan <rmh@aybabtu.com>
32035
32036 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
32037 grub_strstr() call. Correct a few mistakes in failure path handling.
32038
32039 2008-05-06 Robert Millan <rmh@aybabtu.com>
32040
32041 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
32042 Do not print a trailing slash (therefore, the root directory is an
32043 empty string).
32044 (convert_system_path_to_grub_path): Do not remove trailing slash
32045 from make_system_path_relative_to_its_root() output.
32046
32047 * util/i386/pc/grub-install.in: Add trailing slash to output from
32048 make_system_path_relative_to_its_root().
32049
32050 2008-05-06 Robert Millan <rmh@aybabtu.com>
32051
32052 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
32053 ensures that output lines aren't intermangled with those sent to
32054 stderr (via grub_util_info()).
32055 * util/grub-probe.c (grub_refresh): Likewise.
32056 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
32057
32058 2008-05-05 Christian Franke <franke@computer.org>
32059
32060 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
32061 Add Cygwin device names.
32062 (get_ide_disk_name) [__CYGWIN__]: Likewise.
32063 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
32064 (check_device): Return error instead of success on empty name.
32065 (make_device_map): Move label inside linux specific code to
32066 prevent compiler warning.
32067
32068 2008-04-30 Robert Millan <rmh@aybabtu.com>
32069
32070 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
32071 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
32072 first boot option.
32073 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
32074
32075 2008-04-29 Robert Millan <rmh@aybabtu.com>
32076
32077 * docs/grub.cfg: New file (example GRUB configuration).
32078
32079 2008-04-26 Robert Millan <rmh@aybabtu.com>
32080
32081 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
32082 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
32083 and `disk/ieee1275/nand.c'.
32084
32085 2008-04-25 Bean <bean123ch@gmail.com>
32086
32087 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
32088 i386-linuxbios.
32089
32090 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
32091 change the buffer size to 4096 for cdrom device.
32092
32093 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
32094 and nand.mod.
32095 (_linux_mod_SOURCES): New variable.
32096 (_linux_mod_CFLAGS): Likewise.
32097 (_linux_mod_LDFLAGS): Likewise.
32098 (linux_mod_SOURCES): Likewise.
32099 (linux_mod_CFLAGS): Likewise.
32100 (linux_mod_LDFLAGS): Likewise.
32101 (nand_mod_SOURCES): Likewise.
32102 (nand_mod_CFLAGS): Likewise.
32103 (nand_mod_LDFLAGS): Likewise.
32104
32105 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
32106 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
32107 type property. (nand device in olpc don't have this property)
32108
32109 * include/grub/disk.h (grub_disk_dev_id): New macro
32110 GRUB_DISK_DEVICE_NAND_ID.
32111
32112 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
32113 function prototype.
32114 (grub_rescue_cmd_initrd): Likewise.
32115
32116 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
32117 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
32118 ofw_cif_handler and ofw_idt, adjust padding number.
32119
32120 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
32121 GRUB_MACHINE_IEEE1275 is defined.
32122
32123 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
32124 Use NESTED_FUNC_ATTR attribute on the hook parameter.
32125
32126 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
32127 on nested function heap_init.
32128 (grub_upper_mem): New variable for i386-ieee1275.
32129 (grub_get_extended_memory): New function for i386-ieee1275.
32130 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
32131
32132 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
32133 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
32134 property.
32135
32136 * loader/i386/ieee1275/linux.c: New file.
32137
32138 * loader/i386/ieee1275/linux_normal.c: New file.
32139
32140 * disk/ieee1275/nand.c: New file.
32141
32142 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
32143
32144 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
32145 value.
32146 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
32147
32148 2008-04-18 Robert Millan <rmh@aybabtu.com>
32149
32150 Restructures early code path on ieee1275 to unify grub_main() as
32151 the first C function that is executed in every platform.
32152
32153 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
32154 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
32155 cmain().
32156 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
32157 * kern/ieee1275/cmain.c (cmain): Rename to ...
32158 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
32159 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
32160 at the beginning.
32161
32162 2008-04-18 Robert Millan <rmh@aybabtu.com>
32163
32164 * util/update-grub.in: Fix syntax error when setting
32165 `GRUB_PRELOAD_MODULES'.
32166 Reported by Stephane Chazelas <stephane@artesyncp.com>
32167
32168 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
32169
32170 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
32171 section into account, newer toolchains generate unique build ids
32172 * configure.ac: remove the test for --build-id=none acceptance,
32173 we want build ids to be preserved
32174 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
32175 far from other sections don't cause the raw binary images grow
32176 size
32177
32178 2008-04-15 Robert Millan <rmh@aybabtu.com>
32179
32180 * disk/lvm.c: Update copyright year.
32181 * kern/misc.c: Likewise.
32182
32183 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32184
32185 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
32186 there is no memory left for physical volume name.
32187
32188 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32189
32190 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
32191 volume name mapping to support bigger than 9 character names properly.
32192
32193 2008-04-13 Robert Millan <rmh@aybabtu.com>
32194
32195 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
32196 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
32197
32198 2008-04-13 Christian Franke <franke@computer.org>
32199
32200 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
32201 to create a floppy emulation boot CD when non emulation mode
32202 does not work.
32203 Enable Joliet CD filesystem extension.
32204
32205 2008-04-13 Robert Millan <rmh@aybabtu.com>
32206
32207 * kern/misc.c (grub_strncat): Fix off-by-one error.
32208 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
32209
32210 * kern/env.c (grub_env_context_close): Clear current context, not
32211 previous one.
32212 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
32213
32214 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
32215
32216 2008-04-13 Robert Millan <rmh@aybabtu.com>
32217
32218 Improve robustness when handling LVM.
32219
32220 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
32221 (and leave `*p' unmodified).
32222 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
32223 through it.
32224 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
32225 iterating through it.
32226 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
32227 through it.
32228 (grub_lvm_scan_device): Check the return value (and fail gracefully
32229 when due) on each grub_lvm_getvalue() or grub_strstr() call.
32230 Don't assume `vg->pvs != NULL' when iterating through it.
32231
32232 2008-04-13 Robert Millan <rmh@aybabtu.com>
32233
32234 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
32235 * genmk.rb (partmap): New variable.
32236 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
32237 (#{partmap}): New target rule.
32238 * genpartmaplist.sh: New file.
32239 * Makefile.in (pkglib_DATA): Add partmap.lst.
32240 (partmap.lst): New target rule.
32241 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
32242 modules (including all partition maps), instead of preloading them.
32243
32244 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
32245
32246 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
32247 `linux-boot-prober' (if installed) to detect other operating
32248 systems which are installed on the computer and add them to
32249 the boot menu.
32250 * conf/common.rmk: Build and install 30_os-prober.
32251
32252 2008-04-12 Robert Millan <rmh@aybabtu.com>
32253
32254 * kern/powerpc/ieee1275/init.c: Move from here ...
32255 * kern/ieee1275/init.c: ... to here. Update all users.
32256
32257 * kern/powerpc/ieee1275/cmain.c: Move from here ...
32258 * kern/ieee1275/cmain.c: ... to here. Update all users.
32259
32260 * kern/powerpc/ieee1275/openfw.c: Move from here ...
32261 * kern/ieee1275/openfw.c: ... to here. Update all users.
32262
32263 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
32264 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
32265
32266 2008-04-10 Pavel Roskin <proski@gnu.org>
32267
32268 * configure.ac: Always use "_cv_" in cache variables for
32269 compatibility with Autoconf 2.62.
32270
32271 2008-04-07 Robert Millan <rmh@aybabtu.com>
32272
32273 Revert grub/machine/init.h addition by Pavel (since it breaks on
32274 i386-ieee1275 and others):
32275 * util/i386/pc/misc.c: Remove grub/machine/init.h.
32276 * util/powerpc/ieee1275/misc.c: Likewise.
32277
32278 2008-04-07 Robert Millan <rmh@aybabtu.com>
32279
32280 * util/grub-probe.c (probe): Improve error message.
32281
32282 2008-04-07 Robert Millan <rmh@aybabtu.com>
32283
32284 * util/biosdisk.c (read_device_map): Skip devices that don't exist
32285 (this prevents the presence of a bogus entry from ruining the whole
32286 thing).
32287
32288 2008-04-06 Pavel Roskin <proski@gnu.org>
32289
32290 * util/biosdisk.c: Include grub/util/biosdisk.h.
32291 * util/grub-fstest.c (execute_command): Make static.
32292 * util/grub-mkdevicemap.c (check_device): Likewise.
32293 * util/i386/pc/misc.c: Include grub/machine/init.h.
32294 * util/powerpc/ieee1275/misc.c: Likewise.
32295 * util/lvm.c: Include grub/util/lvm.h.
32296 * util/misc.c: Include grub/kernel.h, grub/misc.h and
32297 grub/cache.h.
32298 * util/raid.c: Include grub/util/raid.h.
32299 (grub_util_getdiskname): Make static.
32300
32301 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
32302 grub_hostfs_fini(), as they are called from grub_init_all() and
32303 grub_fini_all() respectively. This fixes an infinite loop in
32304 grub-fstest due to double registration of hostfs.
32305 Reported by Christian Franke <Christian.Franke@t-online.de>
32306
32307 2008-04-05 Pavel Roskin <proski@gnu.org>
32308
32309 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
32310 all 8 functions. Otherwise, probe function 0 only.
32311
32312 2008-04-04 Pavel Roskin <proski@gnu.org>
32313
32314 * commands/lspci.c (grub_lspci_iter): Print the bus number
32315 correctly.
32316
32317 * commands/lspci.c (grub_pci_classes): Fix typos.
32318 (grub_lspci_iter): Don't print func twice. Print vendor ID
32319 before device ID, as it's normally done.
32320
32321 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
32322 Fix signedness warnings.
32323 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
32324 Likewise.
32325 * util/ieee1275/get_disk_name.c: Include config.h so that
32326 _GNU_SOURCE is defined and getline() is declared. Mark an
32327 unused argument as such. Fix a signedness warning.
32328
32329 2008-04-02 Pavel Roskin <proski@gnu.org>
32330
32331 * genkernsyms.sh.in: Use more robust assignments for CC and
32332 srcdir. Quote srcdir.
32333 * gensymlist.sh.in: Likewise. Assert at the compile time that
32334 the symbol table is not empty.
32335
32336 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
32337 * fs/cpio.c (grub_cpio_read): Likewise.
32338
32339 2008-04-01 Pavel Roskin <proski@gnu.org>
32340
32341 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
32342 * disk/host.c (grub_host_open): Likewise.
32343 * disk/loopback.c (grub_loopback_open): Likewise.
32344 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
32345 disk->id as in disk/host.c, not a multi-character constant.
32346
32347 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
32348 later is obsolete, potentially dangerous and sets a bad example.
32349 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
32350 * util/misc.c (grub_util_get_image_size): Likewise.
32351
32352 * disk/loopback.c (options): Improve help for "--partitions".
32353
32354 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
32355 options to align them with the short options, e.g. "echo -e".
32356
32357 2008-03-31 Bean <bean123ch@gmail.com>
32358
32359 * video/reader/png.c (grub_png_data): New member is_16bit and
32360 image_data.
32361 (grub_png_decode_image_header): Detect 16 bit png image.
32362 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
32363 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
32364 (grub_video_reader_png): Release memory occupied by image_data.
32365
32366 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
32367 4096 bytes.
32368 (grub_nfs_mount): Skip the test for sector per cluster.
32369
32370 * include/grub/ntfs.h (MAX_SPC): Removed.
32371
32372 2008-03-31 Bean <bean123ch@gmail.com>
32373
32374 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
32375 (grub_probe_SOURCES): Add fs/afs.c.
32376 (grub_fstest_SOURCES): Likewise.
32377 (afs_mod_SOURCES): New variable.
32378 (afs_mod_CFLAGS): Likewise.
32379 (afs_mod_LDFLAGS): Likewise.
32380
32381 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
32382 (grub_emu_SOURCES): Likewise.
32383
32384 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32385
32386 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32387
32388 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32389
32390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32391
32392 * fs/afs.c: New file.
32393
32394 2008-03-30 Pavel Roskin <proski@gnu.org>
32395
32396 * disk/host.c: Include grub/misc.h to fix a warning.
32397 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
32398 warnings about implicit declarations.
32399
32400 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
32401 variable.
32402 * include/grub/i386/loader.h: Change declaration of
32403 grub_linux_boot() to match what grub_loader_set() expects.
32404 * util/getroot.c (grub_guess_root_device): Return const char* to
32405 fix a warning.
32406 * util/grub-probe.c (probe): Fix a warning about uninitialized
32407 abstraction_name variable.
32408 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
32409 second argument as unused to fix a warning.
32410
32411 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
32412 missing grub_error() call.
32413
32414 * util/update-grub_lib.in: Define datarootdir, since Autoconf
32415 2.60 and newer uses it to define datadir.
32416
32417 * commands/sleep.c: Fix warning about implicit declaration.
32418 * disk/memdisk.c: Likewise.
32419 * loader/aout.c: Likewise.
32420 * loader/i386/bsd_normal.c: Likewise.
32421 * util/grub-probe.c: Likewise.
32422
32423 * commands/i386/cpuid.c (has_longmode): Make static.
32424 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
32425 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
32426
32427 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
32428 GDT. This is more robust, as %ds can change.
32429 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
32430 calling real_to_prot().
32431 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
32432
32433 2008-03-28 Pavel Roskin <proski@gnu.org>
32434
32435 * kern/i386/pc/startup.S: Assert that uncompressed functions
32436 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
32437 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
32438 code, as they push parts of the code (error handlers) beyond
32439 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
32440 code as correctness and size.
32441
32442 2008-03-28 Pavel Roskin <proski@gnu.org>
32443
32444 * kern/i386/pc/startup.S
32445 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
32446 data block address to the real mode, keep offset minimal. This
32447 works around a bug in AWARD BIOS on old Athlon systems, which
32448 makes CD detection hang.
32449
32450 2008-03-26 Pavel Roskin <proski@gnu.org>
32451
32452 * normal/color.c (grub_parse_color_name_pair): Make `name' a
32453 const.
32454 * include/grub/normal.h: Add grub_parse_color_name_pair()
32455 declaration.
32456
32457 2008-03-24 Bean <bean123ch@gmail.com>
32458
32459 * disk/i386/pc/biosdisk.c (cd_start): Removed.
32460 (cd_count): Removed.
32461 (cd_drive): New variable.
32462 (grub_biosdisk_get_drive): Don't check for (cdN) device.
32463 (grub_biosdisk_call_hook): Likewise.
32464 (grub_biosdisk_iterate): Change cdrom detection method.
32465 (grub_biosdisk_open): Replace cd_start with cd_drive.
32466 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
32467 detect cdrom device.
32468
32469 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
32470 Removed.
32471 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
32472 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
32473 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
32474 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
32475 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
32476 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
32477 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
32478 (grub_biosdisk_cdrp): New structure.
32479 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
32480
32481 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
32482
32483 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
32484 device.
32485
32486 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
32487 New function.
32488
32489 2008-03-20 Robert Millan <rmh@aybabtu.com>
32490
32491 Remove 2 TiB limit in ata.mod.
32492 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
32493 (grub_ata_dumpinfo): Print sector count with 0x%llx.
32494 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
32495 grub_uint64_t instead of grub_uint32_t.
32496
32497 2008-03-05 Bean <bean123ch@gmail.com>
32498
32499 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
32500 (grub_multiboot): Set boot device.
32501
32502 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
32503
32504 2008-03-02 Bean <bean123ch@gmail.com>
32505
32506 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
32507 symlink_buffer.
32508
32509 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
32510
32511 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
32512 texinfo.tex.
32513
32514 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
32515 modified.
32516
32517 * docs/fdl.texi: New file.
32518
32519 * docs/mdate-sh: New file. Copied from gnulib.
32520 * docs/texinfo.tex: Likewise.
32521
32522 * config.guess: Updated from gnulib.
32523 * install-sh: Likewise.
32524
32525 2008-02-28 Robert Millan <rmh@aybabtu.com>
32526
32527 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
32528 (aout_mod_SOURCES): New variable.
32529 (aout_mod_CFLAGS): Likewise.
32530 (aout_mod_LDFLAGS): Likewise.
32531
32532 * conf/i386-ieee1275.rmk: Likewise.
32533
32534 2008-02-28 Robert Millan <rmh@aybabtu.com>
32535
32536 * util/update-grub.in: Reorganise terminal validity check. Accept
32537 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
32538 Based on suggestion by Franklin PIAT.
32539
32540 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
32541
32542 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
32543 function.
32544 * util/getroot.c (grub_util_check_block_device): New function that
32545 returns the given argument if it is a block device and returns NULL else.
32546 * util/grub-probe.c (argument_is_device): New variable.
32547 (probe): Promote device_name from a variable to an argument. Receive
32548 device_name from grub_util_check_block_device() if path is NULL and from
32549 grub_guess_root_device() else. Do not free() device_name anymore.
32550 (options): Introduce new parameter '-d, --device'.
32551 (main): Add description of the new parameter to the help screen.
32552 Rename path variable to argument. Set argument_is_device if the '-d'
32553 option is given. Pass argument to probe() depending on
32554 argument_is_device.
32555
32556 2008-02-24 Bean <bean123ch@gmail.com>
32557
32558 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
32559 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
32560 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
32561 (GRUB_ISO9660_VOLDESC_PART): Likewise.
32562 (GRUB_ISO9660_VOLDESC_END): Likewise.
32563 (grub_iso9660_primary_voldesc): New member escape.
32564 (grub_iso9660_data): New member joliet.
32565 (grub_iso9660_convert_string): New function.
32566 (grub_iso9660_mount): Detect joliet extension.
32567 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
32568 (grub_iso9660_iso9660_label): Likewise.
32569
32570 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
32571 (grub_setup_SOURCES): Add fs/udf.c.
32572 (grub_fstest_SOURCES): Likewise.
32573 (udf_mod_SOURCES): New variable.
32574 (udf_mod_CFLAGS): Likewise.
32575 (udf_mod_LDFLAGS): Likewise.
32576
32577 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
32578 (grub_emu_SOURCES): Likewise.
32579
32580 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32581
32582 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32583
32584 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32585
32586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32587
32588 * fs/udf.c: New file.
32589
32590 2008-02-24 Robert Millan <rmh@aybabtu.com>
32591
32592 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
32593 (normal/lexer.c_DEPENDENCIES): New variables.
32594 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
32595 (normal/lexer.c_DEPENDENCIES): Likewise.
32596 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
32597 (normal/lexer.c_DEPENDENCIES): Likewise.
32598 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
32599 (normal/lexer.c_DEPENDENCIES): Likewise.
32600 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
32601 (normal/lexer.c_DEPENDENCIES): Likewise.
32602 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
32603 (normal/lexer.c_DEPENDENCIES): Likewise.
32604
32605 2008-02-23 Robert Millan <rmh@aybabtu.com>
32606
32607 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
32608 since they were intended to be in hex. This didn't break previously
32609 because of a bug in gpt_partition_map_iterate() (see below).
32610
32611 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
32612 when checking the validity of GPT header.
32613 Remove `partno', since it always provides the same information as `i'.
32614
32615 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
32616
32617 * include/grub/efi/time.h: Fix a wrong comment.
32618
32619 2008-02-19 Pavel Roskin <proski@gnu.org>
32620
32621 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
32622 message.
32623
32624 2008-02-19 Bean <bean123ch@gmail.com>
32625
32626 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
32627 (aout_mod_SOURCES): New variable.
32628 (aout_mod_CFLAGS): Likewise.
32629 (aout_mod_LDFLAGS): Likewise.
32630 (_bsd_mod_SOURCES): New variable.
32631 (_bsd_mod_CFLAGS): Likewise.
32632 (_bsd_mod_LDFLAGS): Likewise.
32633 (bsd_mod_SOURCES): New variable.
32634 (bsd_mod_CFLAGS): Likewise.
32635 (bsd_mod_LDFLAGS): Likewise.
32636
32637 * include/grub/aout.h: New file.
32638
32639 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
32640
32641 * include/grub/i386/bsd.h: New file.
32642
32643 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
32644 to make it public.
32645
32646 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
32647 function is called, so that it's possible to change it inside the hook.
32648 (grub_elf64_load): Likewise.
32649 (grub_elf_file): Don't close the file if elf header is not found.
32650 (grub_elf_close): Close the file if grub_elf_file fails (The new
32651 grub_elf_file won't close it).
32652 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
32653 (grub_elf64_size): Likewise.
32654
32655 * kern/i386/loader.S (grub_unix_real_boot): New function.
32656
32657 * loader/aout.c: New file.
32658
32659 * loader/i386/bsd.c: New file.
32660
32661 * loader/i386/bsd_normal.c: New file.
32662
32663 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
32664
32665 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
32666 can test other formats.
32667
32668 2008-02-19 Robert Millan <rmh@aybabtu.com>
32669
32670 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
32671 (grub_gpt_partition_type_empty): Redefine with macro from
32672 `<grub/gpt_partition.h>'.
32673 (gpt_partition_map_iterate): Adjust partition type comparison.
32674
32675 Export `entry' as partmap-specific `part.data' struct.
32676 (grub_gpt_header, grub_gpt_partentry): Move from here ...
32677
32678 * include/grub/gpt_partition.h (grub_gpt_header)
32679 (grub_gpt_partentry): ... to here (new file).
32680
32681 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
32682
32683 (grub_gpt_partition_type_bios_boot): New const variable, defined
32684 with macro from `<grub/gpt_partition.h>'.
32685
32686 (setup): Replace `first_start' with `embed_region', which keeps
32687 track of the embed region (and is partmap-agnostic).
32688
32689 Replace find_first_partition_start() with find_usable_region(),
32690 which finds a usable region for embedding using partmap-specific
32691 knowledge (supports PC/MSDOS and GPT).
32692
32693 Fix all assumptions that the embed region start at sector 1, using
32694 `embed_region.start' from now on. Similarly, use `embed_region.end'
32695 rather than `first_start' to calculate available size.
32696
32697 In grub_util_info() message, replace "into after the MBR" with an
32698 indication of the specific sector our embed region starts at.
32699
32700 2008-02-19 Robert Millan <rmh@aybabtu.com>
32701
32702 * DISTLIST: Replace `commands/ieee1275/halt.c' and
32703 `commands/ieee1275/reboot.c' with `commands/halt.c' and
32704 `commands/reboot.c'.
32705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
32706 (halt_mod_SOURCES): Likewise.
32707 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
32708 (halt_mod_SOURCES): Likewise.
32709
32710 2008-02-17 Christian Franke <franke@computer.org>
32711
32712 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
32713
32714 2008-02-17 Robert Millan <rmh@aybabtu.com>
32715
32716 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
32717 set `first_start' to 0 for non-PC/MSDOS partition maps.
32718
32719 2008-02-16 Robert Millan <rmh@aybabtu.com>
32720
32721 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
32722 do not assume partition map is PC/MSDOS before performing checks that
32723 are specific to that layout.
32724
32725 2008-02-13 Robert Millan <rmh@aybabtu.com>
32726
32727 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
32728 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
32729 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
32730
32731 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
32732
32733 * configure.ac: Only a cosmetic change on the handling of
32734 -fno-stack-protector.
32735
32736 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
32737
32738 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
32739 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
32740 reboot.c.
32741 (grub_install_SOURCES): Add halt.mod and reboot.mod.
32742 (halt_mod_SOURCES): New variable.
32743 (halt_mod_CFLAGS): Likewise.
32744 (halt_mod_LDFLAGS): Likewise.
32745 (reboot_mod_SOURCES): Likewise.
32746 (reboot_mod_CFLAGS): Likewise.
32747 (reboot_mod_LDFLAGS): Likewise.
32748
32749 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
32750 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
32751 reboot.c.
32752 (halt_mod_SOURCES): Likewise.
32753 (reboot_mod_SOURCES): Likewise.
32754
32755 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
32756 commands/i386/pc/reboot.c by commands/reboot.c.
32757 (reboot_mod_SOURCES): Likewise.
32758
32759 * commands/i386/pc/reboot.c: merge this file ...
32760
32761 * commands/ieee1275/reboot.c: ... and this file ...
32762
32763 * commands/reboot.c: ... to this file.
32764 Add some precompiler directive to include the correct header for
32765 each machine.
32766
32767 * commands/ieee1275/halt.c: move this file ...
32768
32769 * commands/halt.c: ... to here.
32770 Add some precompiler directive to include the correct header for
32771 each machine.
32772
32773 * include/grub/efi/efi.h (grub_reboot): New function declaration.
32774 (grub_halt): Likewise.
32775
32776 * kern/efi/efi.c (grub_reboot): New function.
32777 (grub_halt): Likewise.
32778
32779 2008-02-12 Robert Millan <rmh@aybabtu.com>
32780
32781 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
32782 /dev (like it is done for /dev/mapper). This doesn't provide support
32783 for EVMS, but at least it is now easy to identify the problem when it
32784 arises.
32785
32786 2008-02-11 Robert Millan <rmh@aybabtu.com>
32787
32788 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
32789 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
32790 comparing it with -1, not 0.
32791
32792 2008-02-10 Robert Millan <rmh@aybabtu.com>
32793
32794 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
32795 `disk/lvm.c'.
32796 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32797 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
32798
32799 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
32800 `disk/lvm.c' to the end of the list.
32801 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32802 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32803
32804 2008-02-10 Robert Millan <rmh@aybabtu.com>
32805
32806 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
32807 grub_print_error() instead. This will let user know why we're entering
32808 rescue mode.
32809 Based on suggestions from Sam Morris.
32810
32811 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
32812
32813 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
32814 on remaining N args, instead of "--" arg N times.
32815
32816 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
32817
32818 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
32819 (fill_with_default_glyph): Changed to use unknown_glyph for fill
32820 pattern for unknown glyphs.
32821
32822 2008-02-09 Robert Millan <rmh@aybabtu.com>
32823
32824 * configure.ac: Probe for `help2man'.
32825 * Makefile.in (builddir): New variable.
32826 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
32827 or otherwise add a few flags/options to it.
32828 (install-local): For every executable utility or script that is
32829 installed, invoke $(HELP2MAN) to install a manpage based on --help
32830 output.
32831
32832 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
32833 that it doesn't prevent --help from working in build tree.
32834
32835 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
32836 with `bug-grub@gnu.org'.
32837 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
32838 * util/update-grub.in (usage): New function.
32839 Implement proper argument check, with support for --help and --version
32840 (as well as existing -y).
32841
32842 2008-02-09 Christian Franke <franke@computer.org>
32843
32844 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
32845 avoid overwriting previous output.
32846 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
32847
32848 2008-02-09 Robert Millan <rmh@aybabtu.com>
32849
32850 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
32851 drawing the menu.
32852
32853 2008-02-09 Robert Millan <rmh@aybabtu.com>
32854
32855 * commands/sleep.c: New file.
32856 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
32857 (sleep_mod_SOURCES): New variable.
32858 (sleep_mod_CFLAGS): Likewise.
32859 (sleep_mod_LDFLAGS): Likewise.
32860
32861 2008-02-09 Robert Millan <rmh@aybabtu.com>
32862
32863 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
32864 situations in which we can deduce the RAID size and the superblock
32865 doesn't match it.
32866
32867 2008-02-09 Robert Millan <rmh@aybabtu.com>
32868
32869 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
32870 and return a grub_diskmemberlist_t composed of LVM physical volumes.
32871 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
32872
32873 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
32874 and return a grub_diskmemberlist_t composed of physical array members.
32875 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
32876
32877 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
32878 prototype.
32879 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
32880 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
32881 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
32882
32883 * util/grub-probe.c (probe): Move partmap probing code from here ...
32884 (probe_partmap): ... to here.
32885 (probe): Use probe_partmap() once for the disk we're probing, and
32886 additionally, when such disk contains a memberlist() struct member,
32887 once for each disk that is contained in the structure returned by
32888 memberlist().
32889
32890 2008-02-09 Robert Millan <rmh@aybabtu.com>
32891
32892 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
32893 environment variable to 'all' in order to obtain debug output from
32894 non-util/ code.
32895 * util/i386/pc/grub-setup.c (main): Likewise.
32896
32897 2008-02-08 Robert Millan <rmh@aybabtu.com>
32898
32899 * disk/raid.c (grub_raid_scan_device): Check for
32900 `array->device[sb.this_disk.number]' rather than for
32901 `array->device[sb.this_disk.number]->name', since the latter is not
32902 guaranteed to be accessible.
32903
32904 2008-02-08 Robert Millan <rmh@aybabtu.com>
32905
32906 * disk/raid.c: Update copyright.
32907 * fs/cpio.c: Likewise.
32908 * include/grub/raid.h: Likewise.
32909 * loader/i386/pc/multiboot.c: Likewise.
32910 * util/hostfs.c: Likewise.
32911
32912 2008-02-08 Robert Millan <rmh@aybabtu.com>
32913
32914 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
32915 to a grub_disk_t array.
32916 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
32917 `device[x]'.
32918 (grub_raid_scan_device): Replace `device[x].name' accesses with
32919 `device[x]->name'. Simplify initialization of `array->device[x]'.
32920
32921 2008-02-08 Robert Millan <rmh@aybabtu.com>
32922
32923 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
32924 grub_dprintf() calls.
32925 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
32926 error message.
32927
32928 2008-02-07 Christian Franke <franke@computer.org>
32929
32930 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
32931 instead of fseek and ftell to support large files.
32932 (grub_hostfs_read): Likewise.
32933
32934 2008-02-07 Robert Millan <rmh@aybabtu.com>
32935
32936 Patch from Jeroen Dekkers.
32937 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
32938 failure, since successfully reading all array members might not be
32939 required.
32940
32941 2008-02-06 Robert Millan <rmh@aybabtu.com>
32942
32943 * util/grub-probe.c (probe): Simplify partmap probing (with the
32944 assumption that the first word up to the underscore equals to
32945 the module name).
32946
32947 2008-02-06 Christian Franke <franke@computer.org>
32948
32949 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
32950 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
32951 last block of a cpio or tar stream.
32952 Check for "TRAILER!!!" instead of any empty data
32953 block to detect last block of a cpio stream.
32954 (grub_cpio_dir): Fix constness of variable np.
32955 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
32956 cpio or tar trailer is detected. This fixes a crash
32957 on open of a non existing file.
32958
32959 2008-02-05 Bean <bean123ch@gmail.com>
32960
32961 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
32962 address of entry.
32963 (grub_multiboot_load_elf64): Likewise.
32964 (grub_multiboot): Initialize mbi structure.
32965
32966 * util/grub-fstest.c: Don't include unused header file script.h.
32967
32968 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
32969 of file.
32970 (grub_fstest_SOURCES): Likewise.
32971
32972 2008-02-05 Robert Millan <rmh@aybabtu.com>
32973
32974 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
32975 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
32976 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
32977 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
32978
32979 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
32980 (translation_table): Replace hardcoded values with macros
32981 provided by `<grub/term.h>'.
32982
32983 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
32984 (keyboard_map): Correct/add a few values, with macros provided
32985 by `<grub/term.h>'.
32986 (keyboard_map_shift): Zero values that don't differ from their
32987 `keyboard_map' equivalents.
32988 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
32989 Discard the second scan code that is always sent by Caps lock.
32990 Only use `keyboard_map_shift' when it provides a non-zero value,
32991 otherwise fallback to `keyboard_map'.
32992
32993 2008-02-04 Bean <bean123ch@gmail.com>
32994
32995 * Makefile.in (enable_grub_fstest): New variable.
32996
32997 * conf/common.rmk (grub_fstest_init.lst): New rule.
32998 (grub_fstest_init.h): Likewise.
32999 (grub_fstest_init.c): Likewise.
33000 (util/grub-fstest.c_DEPENDENCIES): New variable.
33001 (grub_fstest_SOURCES): Likewise.
33002
33003 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
33004
33005 * util/grub-fstest.c: New file.
33006
33007 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33008
33009 Make grub-setup handle a separate root device.
33010
33011 * util/i386/pc/grub-setup.c (setup): Always open the root device,
33012 so that the root device can be compared with the destination
33013 device.
33014 When embedding the core image, if the root and destination devices
33015 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
33016 0xFF.
33017 When not embedding, set ROOT_DRIVE to 0xFF.
33018
33019 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33020
33021 Add support for having a grub directory in a different drive. This
33022 is still only the data handling part.
33023
33024 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
33025 (codestart): Save %dh in GRUB_ROOT_DRIVE.
33026 (grub_root_drive): New variable.
33027
33028 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
33029 instead of GRUB_BOOT_DRIVE to construct a device name. Set
33030 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
33031 as it was.
33032
33033 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
33034
33035 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
33036 macro.
33037 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
33038
33039 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
33040 is bogus, because PXE booting does not specify any drive
33041 correctly.
33042
33043 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
33044 am not sure if this is really correct.
33045
33046 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
33047 is always identical to the boot drive when booting from a CD.
33048
33049 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
33050 longer.
33051 (root_drive): New variable.
33052 (real_start): Unconditionally set %dh to ROOT_DRIVE.
33053 (setup_sectors): Push %dx right after popping it, because %dh will
33054 be modified later.
33055 (copy_buffer): Restore %dx.
33056
33057 2008-02-03 Robert Millan <rmh@aybabtu.com>
33058
33059 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
33060 use `cdboot.img' for cdrom images.
33061
33062 2008-02-03 Robert Millan <rmh@aybabtu.com>
33063
33064 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
33065 only setup gfxterm when `font' command has succeeded.
33066
33067 2008-02-03 Robert Millan <rmh@aybabtu.com>
33068
33069 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
33070 (grub_rescue_cmd_multiboot_loader)
33071 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
33072
33073 2008-02-03 Pavel Roskin <proski@gnu.org>
33074
33075 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
33076 %edx and %esi from stack only after grub_gate_a20() is called.
33077 grub_gate_a20() clobbers %edx.
33078
33079 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33080
33081 * configure.ac (AC_INIT): Bumped to 1.96.
33082
33083 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
33084 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
33085 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
33086 video/readers/png.c.
33087
33088 2008-02-03 Bean <bean123ch@gmail.com>
33089
33090 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
33091 (cdboot_img_SOURCES): New variable.
33092 (cdboot_img_ASFLAGS): New variable.
33093 (cdboot_img_LDFLAGS): New variable.
33094
33095 * boot/i386/pc/cdboot.S: New file.
33096
33097 * disk/i386/pc/biosdisk.c (cd_start): New variable.
33098 (cd_count): Likewise.
33099 (grub_biosdisk_get_drive): Add support for cd device.
33100 (grub_biosdisk_call_hook): Likewise.
33101 (grub_biosdisk_iterate): Likewise.
33102 (grub_biosdisk_open): Likewise.
33103 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
33104 (grub_biosdisk_rw): Support reading from cd device.
33105 (GRUB_MOD_INIT): Iterate cd devices.
33106
33107 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
33108 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
33109 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
33110
33111 * kern/i386/pc/init.c (make_install_device): Check for cd device.
33112
33113 2008-02-02 Robert Millan <rmh@aybabtu.com>
33114
33115 * commands/read.c: New file.
33116 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
33117 (read_mod_SOURCES): New variable.
33118 (read_mod_CFLAGS): Likewise.
33119 (read_mod_LDFLAGS): Likewise.
33120
33121 2008-02-02 Robert Millan <rmh@aybabtu.com>
33122
33123 * normal/main.c (grub_normal_execute): Check for `menu->size' when
33124 determining whether menu has to be displayed.
33125
33126 2008-02-02 Marco Gerards <marco@gnu.org>
33127
33128 * bus/pci.c: New file.
33129
33130 * include/grub/pci.h: Likewise.
33131
33132 * include/grub/i386/pc/pci.h: Likewise.
33133
33134 * commands/lspci.c: Likewise.
33135
33136 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
33137 `lspci.mod'.
33138 (pci_mod_SOURCES): New variable.
33139 (pci_mod_CFLAGS): Likewise.
33140 (pci_mod_LDFLAGS): Likewise.
33141 (lspci_mod_SOURCES): Likewise.
33142 (lspci_mod_CFLAGS): Likewise.
33143 (lspci_mod_LDFLAGS): Likewise.
33144
33145 2008-02-02 Bean <bean123ch@gmail.com>
33146
33147 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
33148 (grub_ufs_get_file_block): Fix indirect block calculation problem.
33149
33150 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
33151 (grub_xfs_btree_node): New structure.
33152 (grub_xfs_btree_root): New structure.
33153 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
33154 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
33155 (GRUB_XFS_EXTENT_BLOCK): Likewise.
33156 (GRUB_XFS_EXTENT_SIZE): Likewise.
33157 (grub_xfs_read_block): Support btree format type.
33158 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
33159 Use directory block as basic unit.
33160
33161 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
33162
33163 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
33164 __attribute__ ((__regparm__ (1))).
33165
33166 2008-02-01 Robert Millan <rmh@aybabtu.com>
33167
33168 Correct a mistake in previous commit.
33169
33170 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
33171 top.
33172 (normal/command.c_DEPENDENCIES): New variable.
33173
33174 2008-02-01 Robert Millan <rmh@aybabtu.com>
33175
33176 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
33177 top.
33178 (normal/command.c_DEPENDENCIES): New variable.
33179 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
33180 * conf/i386-ieee1275.rmk: Likewise.
33181 * conf/i386-linuxbios.rmk: Likewise.
33182 * conf/i386-pc.rmk: Likewise.
33183 * conf/sparc64-ieee1275.rmk: Likewise.
33184 * conf/powerpc-ieee1275.rmk: Likewise.
33185 (grub_emu_SOURCES): Add `fs/fshelp.c'.
33186
33187 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
33188
33189 2008-02-01 Robert Millan <rmh@aybabtu.com>
33190
33191 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
33192 call at beginning of function.
33193
33194 2008-01-31 Pavel Roskin <proski@gnu.org>
33195
33196 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
33197 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
33198 (grub_mkrescue_SOURCES): Likewise.
33199 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
33200
33201 2008-01-30 Robert Millan <rmh@aybabtu.com>
33202
33203 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
33204 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
33205 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
33206 (grub_probe_SOURCES): ... to here.
33207
33208 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
33209 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
33210 * conf/i386-ieee1275.rmk: Likewise.
33211 * conf/i386-linuxbios.rmk: Likewise.
33212 * conf/powerpc-ieee1275.rmk: Likewise.
33213
33214 2008-01-30 Tristan Gingold <gingold@free.fr>
33215
33216 * kern/rescue.c: Silently accept empty lines.
33217
33218 2008-01-29 Bean <bean123ch@gmail.com>
33219
33220 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
33221 (real_code_2): Code cleanup and change comment style.
33222 (move_memory): Avoid using 32-bit address mode.
33223
33224 2008-01-29 Bean <bean123ch@gmail.com>
33225
33226 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
33227 (png_mod_SOURCES): New variable.
33228 (png_mod_CFLAGS): Likewise.
33229 (png_mod_LDFLAGS): Likewise.
33230
33231 * video/readers/png.c: New file.
33232
33233 2008-01-28 Robert Millan <rmh@aybabtu.com>
33234
33235 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
33236 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
33237 `ifndef GRUB_MOD_GAP' hack.
33238 * util/elf/grub-mkimage.c (add_segments): Likewise.
33239
33240 2008-01-27 Robert Millan <rmh@aybabtu.com>
33241
33242 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
33243 `GRUB_MOD_GAP' for platforms in which it's not defined.
33244 * util/elf/grub-mkimage.c (add_segments): Likewise.
33245
33246 2008-01-27 Robert Millan <rmh@aybabtu.com>
33247
33248 Get grub-emu to build again (including parallel builds).
33249
33250 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
33251 Split into ...
33252 (util/grub-emu.c_DEPENDENCIES): ... this, ...
33253 (normal/execute.c_DEPENDENCIES): ... this, ...
33254 (grub-emu_DEPENDENCIES): ... and this.
33255
33256 * conf/i386-efi.rmk: Likewise.
33257 * conf/i386-linuxbios.rmk: Likewise.
33258 * conf/i386-ieee1275.rmk: Likewise.
33259 * conf/powerpc-ieee1275.rmk: Likewise.
33260 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
33261
33262 2008-01-27 Robert Millan <rmh@aybabtu.com>
33263
33264 * NEWS: Add a few items.
33265
33266 2008-01-27 Robert Millan <rmh@aybabtu.com>
33267
33268 Fix parallel builds with grub-emu. Based on earlier commit for
33269 grub-probe and grub-setup.
33270
33271 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33272 (util/grub-emu.c_DEPENDENCIES): ... this.
33273 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33274 (util/grub-emu.c_DEPENDENCIES): ... this.
33275 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33276 (util/grub-emu.c_DEPENDENCIES): ... this.
33277 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33278 (util/grub-emu.c_DEPENDENCIES): ... this.
33279 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33280 (util/grub-emu.c_DEPENDENCIES): ... this.
33281
33282 2008-01-27 Pavel Roskin <proski@gnu.org>
33283
33284 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
33285 to create a gap between _end and the modules added to the image
33286 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
33287 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
33288 * util/elf/grub-mkimage.c (add_segments): Likewise.
33289
33290 2008-01-26 Pavel Roskin <proski@gnu.org>
33291
33292 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
33293 just return an error.
33294
33295 2008-01-26 Bean <bean123ch@gmail.com>
33296
33297 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
33298 (grub_reiserfs_get_item): Save offset of the next item.
33299 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
33300
33301 2008-01-25 Robert Millan <rmh@aybabtu.com>
33302
33303 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
33304 make all filesystem sources appear together (possibly fixing omissions
33305 while at it).
33306 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33307 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33308 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33310
33311 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
33312 add `kern/file.c'.
33313 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
33314 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33315 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
33316 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33317
33318 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
33319 (probe): Add a sanity check to make sure of our ability to read
33320 requested files when probing for filesystem type.
33321
33322 * genmk.rb: Update copyright year (2007).
33323
33324 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
33325 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
33326 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
33327 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
33328 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
33329 : Remove function prototypes.
33330
33331 2008-01-25 Robert Millan <rmh@aybabtu.com>
33332
33333 Revert my previous commits (based on wrong assumption of how grub_errno
33334 works).
33335
33336 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
33337 * kern/file.c (grub_file_open): Likewise.
33338
33339 2008-01-24 Pavel Roskin <proski@gnu.org>
33340
33341 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
33342 that hang if GRUB tries to setup colors.
33343 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
33344 colors for firmwares that don't support it.
33345 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
33346 Recognize Open Hack'Ware, set flags to work around its
33347 limitations.
33348
33349 2008-01-24 Robert Millan <rmh@aybabtu.com>
33350
33351 * kern/file.c (grub_file_open): Do not account previous failures of
33352 unrelated functions when grub_errno is checked for.
33353 Reported by Oleg Strikov.
33354
33355 2008-01-24 Bean <bean123ch@gmail.com>
33356
33357 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
33358 (grub_ufs_sblock): New member volume name.
33359 (grub_ufs_find_file): Fix string copy bug.
33360 (grub_ufs_label): Implement this function properly.
33361
33362 * fs/hfs.c (grub_hfs_cnid_type): New enum.
33363 (grub_hfs_iterate_records): Use the correct file number for extents
33364 and catalog file. Fix problem in next index calculation.
33365 (grub_hfs_find_node): Replace recursive function call with loop.
33366 (grub_hfs_iterate_dir): Replace recursive function call with loop.
33367
33368 2008-01-23 Robert Millan <rmh@aybabtu.com>
33369
33370 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
33371 `<grub/symbol.h>' and `<grub/multiboot.h>'.
33372 (grub_multiboot2_real_boot): New function prototype.
33373
33374 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
33375 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
33376
33377 * kern/i386/ieee1275/init.c (grub_os_area_addr)
33378 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
33379
33380 2008-01-23 Robert Millan <rmh@aybabtu.com>
33381
33382 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
33383 #ifdef'ed out grub_printf().
33384
33385 2008-01-23 Robert Millan <rmh@aybabtu.com>
33386
33387 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
33388 grub_dprintf calls, since they make "debug=all" mode unusable.
33389 (grub_console_checkkey): Likewise.
33390
33391 2008-01-23 Robert Millan <rmh@aybabtu.com>
33392
33393 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33394 `term/i386/pc/at_keyboard.c'.
33395 (pkglib_MODULES): Add `serial.mod'.
33396 (serial_mod_SOURCES): New variable.
33397 (serial_mod_CFLAGS): Likewise.
33398 (serial_mod_LDFLAGS): Likewise.
33399
33400 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
33401 `<grub/powerpc/ieee1275/console.h>'.
33402 (grub_keyboard_controller_init): New function prototype.
33403 (grub_console_checkkey): Likewise.
33404 (grub_console_getkey): Likewise.
33405
33406 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
33407 keyboard on i386.
33408
33409 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
33410 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
33411
33412 2008-01-23 Robert Millan <rmh@aybabtu.com>
33413
33414 * kern/i386/pc/init.c (make_install_device): When memdisk image is
33415 present, "(memdisk)/boot/grub" becomes the default prefix.
33416
33417 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
33418 a memdisk tarball with all the modules. Add --overlay=DIR option that
33419 allows users to overlay additional files into the image.
33420
33421 2008-01-23 Robert Millan <rmh@aybabtu.com>
33422
33423 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
33424 and `machine/memory.h'.
33425 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
33426 (_multiboot_mod_SOURCES): New variable.
33427 (_multiboot_mod_CFLAGS): Likewise.
33428 (_multiboot_mod_LDFLAGS): Likewise.
33429 (multiboot_mod_SOURCES): Likewise.
33430 (multiboot_mod_CFLAGS): Likewise.
33431 (multiboot_mod_LDFLAGS): Likewise.
33432
33433 * include/grub/i386/ieee1275/loader.h: New file.
33434
33435 * include/grub/i386/ieee1275/machine.h: Likewise.
33436
33437 * include/grub/i386/ieee1275/memory.h: Likewise.
33438
33439 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
33440 variable declaration.
33441 (grub_os_area_size): Likewise.
33442
33443 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
33444 (grub_lower_mem, grub_upper_mem): New variables.
33445 (grub_stop_floppy): New function (just to make
33446 grub_multiboot2_real_boot() happy).
33447
33448 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
33449 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
33450 (grub_stop): New function.
33451 Include `"../realmode.S"' and `"../loader.S"'.
33452
33453 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
33454 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
33455
33456 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
33457 rely on grub_multiboot2_real_boot() for final boot.
33458
33459 2008-01-22 Robert Millan <rmh@aybabtu.com>
33460
33461 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
33462 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
33463 device that doesn't look like an SD card.
33464 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33465 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
33466 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
33467 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
33468 found.
33469
33470 2008-01-22 Robert Millan <rmh@aybabtu.com>
33471
33472 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
33473 avoid claiming over our own code.
33474
33475 2008-01-22 Bean <bean123ch@gmail.com>
33476
33477 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
33478 (jpeg_mod_SOURCES): New variable.
33479 (jpeg_mod_CFLAGS): Likewise.
33480 (jpeg_mod_LDFLAGS): Likewise.
33481
33482 * video/readers/jpeg.c : New file.
33483
33484 2008-01-22 Bean <bean123ch@gmail.com>
33485
33486 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
33487 there are no more items.
33488
33489 2008-01-21 Robert Millan <rmh@aybabtu.com>
33490
33491 * kern/mm.c (grub_mm_init_region): Improve debug message.
33492
33493 2008-01-21 Robert Millan <rmh@aybabtu.com>
33494
33495 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
33496 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
33497 address.
33498 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
33499 a C macro.
33500 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
33501 Indicates start of upper memory.
33502 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
33503 (generate_image): Abort when image size is big enough to corrupt
33504 upper memory.
33505
33506 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
33507 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
33508 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
33509 instead of hardcoding 0xA0000.
33510 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
33511 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
33512 instead of hardcoding 0xA0000.
33513
33514 2008-01-21 Robert Millan <rmh@aybabtu.com>
33515
33516 * disk/memdisk.c (memdisk_size): New variable.
33517 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
33518 `memdisk_size'.
33519 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
33520 image to dynamic memory.
33521 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
33522 `memdisk_size'. Free memdisk block.
33523
33524 2008-01-21 Robert Millan <rmh@aybabtu.com>
33525
33526 Fix detection of very small filesystems (like tar).
33527
33528 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
33529 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
33530 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
33531 a problem with this disk).
33532
33533 2008-01-21 Robert Millan <rmh@aybabtu.com>
33534
33535 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
33536 on grub_biosdisk_rw_standard() error.
33537
33538 2008-01-21 Robert Millan <rmh@aybabtu.com>
33539
33540 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
33541 recent changes.
33542 * kern/elf.c: Likewise.
33543 * kern/ieee1275/ieee1275.c: Likewise.
33544 * kern/powerpc/ieee1275/openfw.c: Likewise.
33545 * term/ieee1275/ofconsole.c: Likewise.
33546
33547 2008-01-21 Robert Millan <rmh@aybabtu.com>
33548
33549 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
33550
33551 * include/grub/kernel.h (grub_arch_memdisk_addr)
33552 (grub_arch_memdisk_size): Moved from here ...
33553
33554 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
33555 (grub_arch_memdisk_size): ... to here.
33556
33557 2008-01-21 Robert Millan <rmh@aybabtu.com>
33558
33559 Mostly based on bugfix from Bean.
33560
33561 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
33562 attribute with hook() parameter.
33563 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
33564 declaration.
33565 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
33566 attribute with hook() parameter.
33567 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
33568 declaration.
33569
33570 2008-01-21 Robert Millan <rmh@aybabtu.com>
33571
33572 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
33573 (pkglib_MODULES): Add `memdisk.mod'.
33574 (memdisk_mod_SOURCES): New variable.
33575 (memdisk_mod_CFLAGS): Likewise.
33576 (memdisk_mod_LDFLAGS): Likewise.
33577
33578 * disk/memdisk.c: New file.
33579
33580 * include/grub/disk.h (grub_disk_dev_id): Add
33581 `GRUB_DISK_DEVICE_MEMDISK_ID'.
33582
33583 * include/grub/i386/pc/kernel.h
33584 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
33585 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
33586 (grub_kernel_image_size): New variable declaration.
33587 (grub_total_module_size): Likewise.
33588 (grub_memdisk_image_size): Likewise.
33589
33590 * include/grub/i386/pc/memory.h
33591 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
33592
33593 * include/grub/kernel.h: Include `<grub/symbol.h>'.
33594 (grub_arch_memdisk_addr): New variable declaration.
33595 (grub_arch_memdisk_size): Likewise.
33596
33597 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
33598 (grub_arch_memdisk_size): Likewise.
33599
33600 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
33601 (codestart): Replace hardcoded `0x100000' with
33602 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
33603
33604 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
33605 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
33606 not NULL, append the contents of the file it refers to, at the end of
33607 the compressed kernel image. Initialize `grub_memdisk_image_size'
33608 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
33609 (options): Add "memdisk"|'m' option.
33610 (main): Parse --memdisk|-m option, and pass user-provided path as
33611 parameter to generate_image().
33612
33613 2008-01-20 Robert Millan <rmh@aybabtu.com>
33614
33615 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
33616 grub_dprintf() calls from here ...
33617 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
33618
33619 2008-01-20 Robert Millan <rmh@aybabtu.com>
33620
33621 Fix detection of "real mode" when /options/real-mode? doesn't exist.
33622
33623 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
33624 declaration.
33625 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
33626 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
33627 `GRUB_IEEE1275_FLAG_REAL_MODE'.
33628 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
33629 property).
33630 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
33631 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
33632
33633 2008-01-19 Robert Millan <rmh@aybabtu.com>
33634
33635 Get rid of confusing function (superseded by
33636 `grub_ieee1275_get_integer_property')
33637 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
33638 prototype.
33639 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
33640 function.
33641 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
33642 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
33643 in native endianness from grub_ieee1275_get_integer_property().
33644
33645 2008-01-19 Robert Millan <rmh@aybabtu.com>
33646
33647 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
33648 command after "shut-down", since implementations differ on which
33649 the command for halt is.
33650
33651 2008-01-19 Robert Millan <rmh@aybabtu.com>
33652
33653 * include/grub/i386/linuxbios/console.h: Add header protection.
33654 (grub_keyboard_controller_init): New function prototype.
33655 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
33656 (KEYBOARD_COMMAND_READ): Likewise.
33657 (KEYBOARD_COMMAND_WRITE): Likewise.
33658 (KEYBOARD_SCANCODE_SET1): Likewise.
33659 (grub_keyboard_controller_write): New function.
33660 (grub_keyboard_controller_read): Likewise.
33661 (grub_keyboard_controller_init): Likewise.
33662
33663 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
33664 (grub_console_init): On coreboot/LinuxBIOS, call
33665 grub_keyboard_controller_init().
33666
33667 2008-01-19 Robert Millan <rmh@aybabtu.com>
33668
33669 PowerPC changes provided by Pavel Roskin.
33670
33671 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
33672 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
33673 don't rely on cmain() doing it.
33674 * kern/i386/ieee1275/startup.S (_start): Store %eax in
33675 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
33676
33677 2008-01-16 Robert Millan <rmh@aybabtu.com>
33678
33679 * include/grub/i386/linuxbios/memory.h
33680 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
33681 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
33682 receive `table_header' as argument. Instead, probe for it in the
33683 known memory ranges where it can be present.
33684 (grub_available_iterate): Do not pass a fixed `table_header' address
33685 to grub_linuxbios_table_iterate().
33686
33687 2008-01-15 Robert Millan <rmh@aybabtu.com>
33688
33689 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
33690 * conf/i386-ieee1275.rmk: New file.
33691 * include/grub/i386/ieee1275/console.h: Likewise.
33692 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
33693 * include/grub/i386/ieee1275/kernel.h: Likewise.
33694 * include/grub/i386/ieee1275/time.h: Likewise.
33695 * kern/i386/ieee1275/init.c: Likewise.
33696 * kern/i386/ieee1275/startup.S: Likewise.
33697
33698 2008-01-15 Robert Millan <rmh@aybabtu.com>
33699
33700 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
33701 when pointers are 32-bit (but still do set it to one when they are
33702 64-bit).
33703
33704 2008-01-15 Robert Millan <rmh@aybabtu.com>
33705
33706 * include/grub/ieee1275/ieee1275.h
33707 (grub_ieee1275_get_integer_property): New function prototype.
33708
33709 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
33710 (grub_ieee1275_get_integer_property): New function. Wraps around
33711 grub_ieee1275_get_property() to handle endianness.
33712
33713 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
33714 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
33715 where appropriate.
33716 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
33717 (grub_map): Likewise.
33718 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
33719
33720 2008-01-15 Bean <bean123ch@gmail.com>
33721
33722 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
33723 (grub_script_execute_cmdline): Reset grub_errno.
33724
33725 * normal/main.c (read_config_file): Reset grub_errno.
33726
33727 * normal/parse.y (script_init): New.
33728 (script): Move function and menuentry here.
33729 (delimiter): New.
33730 (command): Add delimiter at the end of command.
33731 (commands): Adjust to match the new command.
33732 (commandblock): Remove grub_script_lexer_record_start.
33733 (menuentry): Add grub_script_lexer_record_start, use the new commands.
33734 (if): Use the new commands.
33735
33736 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
33737
33738 2008-01-15 Robert Millan <rmh@aybabtu.com>
33739
33740 * normal/menu.c (run_menu): Move timeout message from here ...
33741 (print_timeout): ... to here.
33742 (run_menu): Use print_timeout() once during initial draw to print
33743 the whole message, and again in every clock tick to update only
33744 the number of seconds.
33745
33746 2008-01-15 Robert Millan <rmh@aybabtu.com>
33747
33748 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
33749 actual size of `available' from grub_ieee1275_get_property(), and
33750 restrict parsing to that bound.
33751
33752 2008-01-15 Christian Franke <franke@computer.org>
33753
33754 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
33755 (argp_program_version): Remove variable.
33756 (argp_program_bug_address): Likewise.
33757 (options): Convert from struct argp_option to struct option.
33758 (struct arguments): Remove.
33759 (parse_opt): Remove.
33760 (usage): New function.
33761 (main): Replace struct args members by simple variables.
33762 Replace argp_parse() by getopt_long().
33763 Add switch to evaluate options.
33764 Add missing "(...)" around root_dev in prefix string.
33765
33766 2008-01-14 Robert Millan <rmh@aybabtu.com>
33767
33768 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
33769 for grub_ieee1275_exit(), in order to improve portability.
33770
33771 2008-01-14 Robert Millan <rmh@aybabtu.com>
33772
33773 * util/grub.d/10_linux.in (prefix): Define.
33774 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
33775
33776 2008-01-13 Pavel Roskin <proski@gnu.org>
33777
33778 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
33779 grub_errno if no errors have been detected.
33780
33781 2008-01-12 Robert Millan <rmh@aybabtu.com>
33782
33783 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
33784 (grub_util_get_dev_abstraction): New function prototype.
33785
33786 * util/getroot.c: Include `<grub/util/getroot.h>'
33787 (grub_util_get_grub_dev): Move detection of abstraction type to ...
33788 (grub_util_get_dev_abstraction): ... here (new function).
33789
33790 * util/grub-probe.c: Convert PRINT_* to an enum. Add
33791 `PRINT_ABSTRACTION'.
33792 (probe): Probe for abstraction type when requested.
33793 (main): Understand `--target=abstraction'.
33794
33795 * util/i386/efi/grub-install.in: Add abstraction module to core
33796 image when it is found to be necessary.
33797 * util/i386/pc/grub-install.in: Likewise.
33798 * util/powerpc/ieee1275/grub-install.in: Likewise.
33799
33800 * util/update-grub_lib.in (font_path): Return system path without
33801 converting to GRUB path.
33802 * util/update-grub.in: Convert system path returned by font_path()
33803 to a GRUB path. Use `grub-probe -t abstraction' to determine what
33804 abstraction module is needed for loading fonts (if any). Export
33805 that as `GRUB_PRELOAD_MODULES'.
33806 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
33807 insmod commands).
33808
33809 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
33810
33811 Remove some unused code from reiserfs.
33812
33813 * fs/reiserfs.c (struct grub_reiserfs_key)
33814 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
33815 (struct grub_reiserfs_node_body): Removed.
33816 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
33817 Likewise.
33818 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
33819 Likewise.
33820 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
33821 Likewise.
33822 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
33823 Likewise.
33824 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
33825 Likewise.
33826 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
33827 Likewise.
33828 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
33829 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
33830 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
33831
33832 2008-01-10 Robert Millan <rmh@aybabtu.com>
33833
33834 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
33835 Determines if a file is garbage left by packaging systems, etc.
33836 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
33837 for processing /etc/grub.d scripts.
33838 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
33839 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
33840 as a condition for processing Linux images.
33841
33842 2008-01-10 Pavel Roskin <proski@gnu.org>
33843
33844 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
33845 to compile reiserfs.c on PowerPC.
33846
33847 2008-01-10 Robert Millan <rmh@aybabtu.com>
33848
33849 * kern/device.c (grub_device_iterate): Do not abort device iteration
33850 when one of the devices cannot be opened.
33851 * kern/disk.c (grub_disk_open): Do not account previous failures of
33852 unrelated functions when grub_errno is checked for.
33853
33854 2008-01-08 Robert Millan <rmh@aybabtu.com>
33855
33856 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
33857 `! grub_linux_is_bzimage', change order of address comparison to make
33858 it more intuitive, and improve "too big zImage" error message.
33859
33860 2008-01-08 Robert Millan <rmh@aybabtu.com>
33861
33862 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
33863 `$(update-grub_DATA)'.
33864 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
33865 targets.
33866
33867 2008-01-07 Robert Millan <rmh@aybabtu.com>
33868
33869 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
33870 which instruction is modified by grub-setup during installation
33871 (since it wasn't obvious by only looking at this file).
33872
33873 2008-01-07 Robert Millan <rmh@aybabtu.com>
33874
33875 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
33876 listing actual TODO items.
33877
33878 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
33879
33880 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
33881 correctly.
33882 (grub_reiserfs_get_key_offset): Likewise.
33883 (grub_reiserfs_set_key_offset): Likewise.
33884 (grub_reiserfs_set_key_type): Likewise.
33885 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
33886
33887 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
33888 better to remove the bitfield version completely.
33889
33890 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
33891
33892 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
33893 allocated from the heap, due to the fshelp implementation.
33894 (grub_reiserfs_dir): Free NODE, due to the same reason.
33895
33896 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
33897
33898 Mostly from Vincent Pelletier:
33899
33900 * fs/reiserfs.c: New file.
33901
33902 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
33903 (reiserfs_mod_SOURCES): New variable.
33904 (reiserfs_mod_CFLAGS): Likewise.
33905 (reiserfs_mod_LDFLAGS): Likewise.
33906
33907 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
33908 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
33909 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
33910 normal/color.c.
33911
33912 2008-01-06 Robert Millan <rmh@aybabtu.com>
33913
33914 * normal/color.c: Remove `<grub/env.h>'.
33915
33916 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
33917
33918 * include/grub/normal.h: Include <grub/env.h>.
33919
33920 2008-01-05 Robert Millan <rmh@aybabtu.com>
33921
33922 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
33923 usage example with `(hd0,1)'.
33924 Reported by Samuel Thibault.
33925
33926 2008-01-05 Robert Millan <rmh@aybabtu.com>
33927
33928 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
33929 (grub_linux_boot_zimage): Rename to ...
33930 (grub_linux_boot): ... this.
33931 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
33932 (grub_linux_boot_zimage): Conditionalize zImage copy.
33933
33934 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
33935 (grub_linux_boot_bzimage): Remove prototype.
33936 (grub_linux_boot_zimage): Rename to ...
33937 (grub_linux_boot): ... this.
33938
33939 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
33940 (grub_linux_boot): Remove function.
33941
33942 2008-01-05 Robert Millan <rmh@aybabtu.com>
33943
33944 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
33945 (grub_env_write_color_highlight): Likewise.
33946 (grub_wait_after_message): Likewise.
33947
33948 * normal/color.c: New file.
33949
33950 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
33951 (normal_mod_DEPENDENCIES): Likewise.
33952
33953 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
33954 (normal_mod_DEPENDENCIES): Likewise.
33955
33956 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
33957 (normal_mod_DEPENDENCIES): Likewise.
33958
33959 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
33960 (normal_mod_DEPENDENCIES): Likewise.
33961
33962 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
33963 for waiting after a message is printed.
33964 * normal/main.c (read_config_file): Likewise.
33965 (grub_normal_init): Register grub_env_write_color_normal() and
33966 grub_env_write_color_highlight() hooks. Mark `color_normal' and
33967 `color_highlight' variables as global.
33968
33969 * normal/menu.c (grub_wait_after_message): New function.
33970 (grub_color_menu_normal): New variable. Replaces ...
33971 (GRUB_COLOR_MENU_NORMAL): ... this macro.
33972 (grub_color_menu_highlight): New variable. Replaces ...
33973 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
33974 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
33975 `GRUB_TERM_COLOR_STANDARD'.
33976 (print_message): Use `grub_setcolorstate' to reload colors. Rename
33977 `normal_code' and `highlight_code' to `old_color_normal' and
33978 `old_color_highlight', respectively.
33979 (grub_menu_init_page): Update colors when drawing the menu, based on
33980 `menu_color_normal' and `menu_color_highlight' variables.
33981 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
33982 a message is printed.
33983
33984 2008-01-05 Robert Millan <rmh@aybabtu.com>
33985
33986 * kern/env.c (grub_env_context_open): Propagate hooks for global
33987 variables to new context.
33988
33989 * kern/main.c (grub_set_root_dev): Export `root' variable.
33990
33991 2008-01-05 Robert Millan <rmh@aybabtu.com>
33992
33993 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
33994 discs unconditionally, since udev and others have options to provide
33995 them.
33996
33997 2008-01-05 Robert Millan <rmh@aybabtu.com>
33998
33999 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
34000
34001 2008-01-04 Christian Franke <franke@computer.org>
34002
34003 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
34004 of eisa_mmap.
34005
34006 2008-01-03 Pavel Roskin <proski@gnu.org>
34007
34008 * kern/i386/linuxbios/init.c: Put "void" to all function
34009 declarations with no arguments.
34010 * kern/powerpc/ieee1275/init.c: Likewise.
34011 * term/i386/pc/at_keyboard.c: Likewise.
34012 * term/i386/pc/vga_text.c: Likewise.
34013 * util/grub-mkdevicemap.c: Likewise.
34014
34015 2008-01-02 Robert Millan <rmh@aybabtu.com>
34016
34017 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
34018 message when loaded image is out of bounds.
34019 (grub_multiboot_load_elf64): Likewise.
34020
34021 2008-01-02 Pavel Roskin <proski@gnu.org>
34022
34023 * util/grub.d/10_linux.in: Try version without ".old" when
34024 looking for initrd. It's better to use initrd from the newer
34025 kernel of the same version than no initrd at all.
34026
34027 2008-01-01 Robert Millan <rmh@aybabtu.com>
34028
34029 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
34030
34031 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
34032
34033 * include/grub/video.h: Added grub_video_unmap_color and
34034 grub_video_get_active_render_target.
34035 (grub_video_adapter): Added unmap_color and get_active_render_target.
34036
34037 * video/video.c: Added grub_video_unmap_color and
34038 grub_video_get_active_render_target.
34039 (grub_video_get_info): Changed method to accept NULL pointer as an
34040 argument to allow detection of active video adapter.
34041
34042 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
34043 grub_video_vbe_unmap_color_int.
34044 Added grub_video_vbe_unmap_color and
34045 grub_video_vbe_get_active_render_target.
34046 (grub_video_vbe_adapter): Added unmap_color and
34047 get_active_render_target.
34048
34049 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
34050 with grub_video_vbe_unmap_color_int.
34051
34052 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
34053 (DEFAULT_NORMAL_COLOR): Likewise.
34054 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
34055 (DEFAULT_FG_COLOR): Removed.
34056 (DEFAULT_BG_COLOR): Likewise.
34057 (DEFAULT_CURSOR_COLOR): Changed value.
34058 (grub_virtual_screen): Added standard_color_setting,
34059 normal_color_setting, highlight_color_setting and term_color.
34060 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
34061 (bitmap_width): Added.
34062 (bitmap_height): Likewise.
34063 (bitmap): Likewise.
34064 (set_term_color): Likewise.
34065 (grub_virtual_screen_setup): Changed to use new terminal coloring
34066 settings.
34067 (grub_gfxterm_init): Added init for bitmap.
34068 (grub_gfxterm_fini): Added destroy for bitmap.
34069 (redraw_screen_rect): Updated to use background bitmap and new
34070 terminal coloring.
34071 (scroll_up): Added optimization for case when there is no bitmap.
34072 (grub_gfxterm_cls): Fixed to use correct background color.
34073 (grub_virtual_screen_setcolorstate): Changed to use new terminal
34074 coloring.
34075 (grub_virtual_screen_setcolor): Likewise.
34076 (grub_virtual_screen_getcolor): Added.
34077 (grub_gfxterm_background_image_cmd): Likewise.
34078 (grub_video_term): Added setcolor and getcolor.
34079 (MOD_INIT): Added registration of background_image command.
34080 (MOD_TERM): Added unregistration for background_image command.
34081
34082 2007-12-30 Pavel Roskin <proski@gnu.org>
34083
34084 * loader/multiboot_loader.c: Fix multiboot command
34085 unregistration. Fix all typos in the word "multiboot".
34086
34087 2007-12-29 Pavel Roskin <proski@gnu.org>
34088
34089 * util/grub.d/10_linux.in: Refactor search for initrd. Add
34090 support for initrd names used in Fedora.
34091
34092 2007-12-26 Bean <bean123ch@gmail.com>
34093
34094 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
34095 (cpio_mod_SOURCES): New variable.
34096 (cpio_mod_CFLAGS): Likewise.
34097 (cpio_mod_LDFLAGS): Likewise.
34098
34099 * fs/cpio.c: New file.
34100
34101 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
34102
34103 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34104
34105 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34106
34107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34108
34109 2007-12-25 Robert Millan <rmh@aybabtu.com>
34110
34111 * include/grub/term.h (struct grub_term): Add `getcolor' function.
34112 (grub_getcolor): New function.
34113
34114 * kern/term.c (grub_getcolor): New function.
34115 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
34116 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
34117 (print_entry): Set normal and highlight colors to
34118 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
34119 respectively, before printing and restore them to old
34120 values afterwards.
34121 (grub_menu_init_page): Likewise. Fill an additional colored space
34122 that would otherwise be left blank.
34123
34124 * term/efi/console.c (grub_console_getcolor): New function.
34125 (struct grub_console_term.getcolor): New variable.
34126 * term/i386/pc/console.c (grub_console_getcolor): New function.
34127 (struct grub_console_term.getcolor): New variable.
34128 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
34129 (struct grub_console_term.getcolor): New variable.
34130
34131 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
34132 (struct grub_console_term.setcolor): Remove variable.
34133 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
34134 (struct grub_console_term.setcolor): Remove variable.
34135 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
34136 (struct grub_console_term.setcolor): Remove variable.
34137 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
34138 (struct grub_console_term.setcolor): Remove variable.
34139
34140 2007-12-25 Robert Millan <rmh@aybabtu.com>
34141
34142 * configure.ac: Search for possible unifont.hex locations, and
34143 define UNIFONT_HEX if found.
34144
34145 * Makefile.in (UNIFONT_HEX): Define variable.
34146 (DATA): Rename to ...
34147 (PKGLIB): ... this. Update all users.
34148 (PKGDATA): New variable.
34149 (pkgdata_IMAGES): Rename to ...
34150 (pkglib_IMAGES): ... this. Update all users.
34151 (pkgdata_MODULES): Rename to ...
34152 (pkglib_MODULES): ... this. Update all users.
34153 (pkgdata_PROGRAMS): Rename to ...
34154 (pkglib_PROGRAMS): ... this. Update all users.
34155 (pkgdata_DATA): Rename to ...
34156 (pkglib_DATA): ... this. Update all users.
34157 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
34158 (unicode.pff, ascii.pff): New rules.
34159 (all-local): Add `$(PKGDATA)' dependency.
34160 (install-local): Process `$(PKGDATA)'.
34161
34162 * util/update-grub_lib.in (font_path): Search for *.pff files in
34163 a few more locations, including `${pkgdata}'.
34164
34165 2007-12-23 Robert Millan <rmh@aybabtu.com>
34166
34167 Patch from Bean <bean123ch@gmail.com>:
34168 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
34169 `size'.
34170
34171 2007-12-21 Bean <bean123ch@gmail.com>
34172
34173 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
34174 (ntfscomp_mod_SOURCES): New variable.
34175 (ntfscomp_mod_CFLAGS): Likewise.
34176 (ntfscomp_mod_LDFLAGS): Likewise.
34177
34178 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
34179 (grub_probe_SOURCES): Likewise.
34180 (grub_emu_SOURCES): Likewise.
34181
34182 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34183 (grub_emu_SOURCES): Likewise.
34184
34185 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34186 (grub_emu_SOURCES): Likewise.
34187
34188 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34189 (grub_emu_SOURCES): Likewise.
34190
34191 * fs/ntfs.c (grub_ntfscomp_func): New variable.
34192 (read_run_list): Renamed to grub_ntfs_read_run_list.
34193 (decomp_nextvcn): Moved to ntfscomp.c.
34194 (decomp_getch): Likewise.
34195 (decomp_get16): Likewise.
34196 (decomp_block): Likewise.
34197 (read_block): Likewise.
34198 (read_data): Partially moved to ntfscomp.c.
34199 (fixup): Change unsigned to grub_uint16_t.
34200 (read_mft): Change unsigned long to grub_uint32_t.
34201 (read_attr): Likewise.
34202 (read_data): Likewise.
34203 (read_run_data): Likewise.
34204 (read_run_list): Likewise.
34205 (read_mft): Likewise.
34206
34207 * fs/ntfscomp.c: New file.
34208
34209 * include/grub/ntfs.h: New file.
34210
34211 2007-12-16 Robert Millan <rmh@aybabtu.com>
34212
34213 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
34214 IDE disk check, since Linux is known to support 20 IDE disks.
34215 Reported by Colin Watson.
34216
34217 2007-12-15 Bean <bean123ch@gmail.com>
34218
34219 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
34220 (lnxboot_img_SOURCES): New variable.
34221 (lnxboot_img_ASFLAGS): Likewise.
34222 (lnxboot_img_LDFLAGS): Likewise.
34223
34224 * boot/i386/pc/lnxboot.S: New file.
34225
34226 2007-11-24 Pavel Roskin <proski@gnu.org>
34227
34228 * configure.ac: Test if '--build-id=none' is supported by the
34229 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
34230 objcopy to generate incorrect binary files (binutils
34231 2.17.50.0.18-1 as shipped by Fedora 8).
34232 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
34233 linking, so that build ID doesn't break the test.
34234
34235 2007-11-24 Pavel Roskin <proski@gnu.org>
34236
34237 * include/grub/i386/time.h: use "void" in the argument list
34238 of grub_cpu_idle().
34239 * include/grub/powerpc/time.h: Likewise.
34240 * include/grub/sparc64/time.h: Likewise.
34241
34242 2007-11-18 Christian Franke <franke@computer.org>
34243
34244 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
34245 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
34246 This fixes the problem that function keys did not work in grub-emu.
34247
34248 2007-11-18 Christian Franke <franke@computer.org>
34249
34250 * disk/host.c (grub_host_open): Remove attribute unused from
34251 name parameter. Add check for "host". This fixes the problem
34252 that grub-emu does not find partitions.
34253
34254 2007-11-18 Christian Franke <franke@computer.org>
34255
34256 * util/hostfs.c (is_dir): New function.
34257 (grub_hostfs_dir): Handle missing dirent.d_type case.
34258 (grub_hostfs_read): Add missing fseek().
34259 (grub_hostfs_label): Clear label pointer. This fixes a crash
34260 of grub-emu on "ls (host)".
34261
34262 2007-11-18 Christian Franke <franke@computer.org>
34263
34264 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
34265 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
34266 to 64 bit boundary by default.
34267
34268 2007-11-18 Bean <bean123ch@gmail.com>
34269
34270 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
34271 (hexdump_mod_SOURCES): New variable.
34272 (hexdump_mod_CFLAGS): Likewise.
34273 (hexdump_mod_LDFLAGS): Likewise.
34274
34275 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34276
34277 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34278
34279 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34280
34281 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34282
34283 * include/grub/hexdump.h: New file.
34284
34285 * commands/hexdump.c: New file.
34286
34287 2007-11-10 Robert Millan <rmh@aybabtu.com>
34288
34289 * commands/i386/pc/play.c (beep_off): Switch order of arguments
34290 in grub_outb() calls.
34291 (beep_on): Likewise.
34292
34293 2007-11-10 Christian Franke <franke@computer.org>
34294
34295 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
34296 (grub_menu_run): Likewise.
34297
34298 2007-11-10 Robert Millan <rmh@aybabtu.com>
34299
34300 * include/grub/i386/efi/machine.h: New file.
34301 * include/grub/i386/linuxbios/machine.h: Likewise.
34302 * include/grub/i386/pc/machine.h: Likewise.
34303 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34304 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34305
34306 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
34307 (serial_hw_io_addr): New variable.
34308 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
34309 instead of `(unsigned short *) 0x400'.
34310
34311 2007-11-10 Bean <bean123ch@gmail.com>
34312
34313 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
34314
34315 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34316
34317 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
34318 (vga_mod_SOURCES): Added.
34319 (vga_mod_CFLAGS): Likewise.
34320 (vga_mod_LDFLAGS): Likewise.
34321
34322 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
34323 grub_outb() calls.
34324 (set_map_mask): Likewise.
34325 (set_read_map): Likewise.
34326 (set_read_address): Likewise.
34327 (vga_font): Removed variable.
34328 (get_vga_glyph): Removed function.
34329 (invalidate_char): Likewise.
34330 (write_char): Changed to use grub_font_get_glyph() for font
34331 information.
34332 (grub_vga_putchar): Likewise.
34333 (grub_vga_getcharwidth): Likewise.
34334
34335 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34336
34337 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
34338 flags.
34339 (pxeboot_img_LDFLAGS): Likewise.
34340 (diskboot_img_LDFLAGS): Likewise.
34341 (kernel_img_LDFLAGS): Likewise.
34342
34343 2007-11-06 Robert Millan <rmh@aybabtu.com>
34344
34345 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
34346 in grub_outb() calls.
34347 (serial_hw_init): Likewise.
34348
34349 2007-11-05 Robert Millan <rmh@aybabtu.com>
34350
34351 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
34352 spaces. Skip non-regular files.
34353
34354 2007-11-05 Robert Millan <rmh@aybabtu.com>
34355
34356 * kern/disk.c (grub_disk_firmware_fini)
34357 (grub_disk_firmware_is_tainted): New variables.
34358
34359 * include/grub/disk.h (grub_disk_firmware_fini)
34360 (grub_disk_firmware_is_tainted): Likewise.
34361
34362 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
34363 (grub_disk_biosdisk_fini): ... to here.
34364 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
34365 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
34366 is set. Register grub_disk_biosdisk_fini() in
34367 `grub_disk_firmware_fini'.
34368
34369 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
34370 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
34371 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
34372 to finish existing firmware disk interface.
34373
34374 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
34375 (ata_mod_SOURCES): New variable.
34376 (ata_mod_CFLAGS): Likewise.
34377 (ata_mod_LDFLAGS): Likewise.
34378
34379 2007-11-05 Robert Millan <rmh@aybabtu.com>
34380
34381 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
34382 (grub_ata_wait): Reimplement using grub_millisleep().
34383
34384 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
34385 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
34386
34387 2007-11-03 Marco Gerards <marco@gnu.org>
34388
34389 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
34390 (CRTC_ADDR_PORT): New macro.
34391 (CRTC_DATA_PORT): Likewise.
34392 (CRTC_CURSOR): Likewise.
34393 (CRTC_CURSOR_ADDR_HIGH): Likewise.
34394 (CRTC_CURSOR_ADDR_LOW): Likewise.
34395 (update_cursor): New function.
34396 (grub_console_real_putchar): Call `update_cursor'.
34397 (grub_console_gotoxy): Likewise.
34398 (grub_console_cls): Set the default color when clearing the
34399 screen.
34400 (grub_console_setcursor): Implemented.
34401
34402 2007-11-03 Marco Gerards <marco@gnu.org>
34403
34404 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
34405 become activate.
34406 (grub_ata_pio_write): Likewise.
34407
34408 (grub_atapi_identify): Wait after issuing an ATA command.
34409 (grub_atapi_packet): Likewise.
34410 (grub_ata_identify): Likewise.
34411 (grub_ata_readwrite): Likewise.
34412
34413 2007-11-03 Marco Gerards <marco@gnu.org>
34414
34415 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
34416 (grub_ata_pio_write): Likewise.
34417 (grub_ata_readwrite): Use `grub_error', instead of
34418 returning `grub_errno'.
34419
34420 2007-11-03 Marco Gerards <marco@gnu.org>
34421
34422 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
34423 grub_ata_pio_write once for every single sector, instead of for
34424 multiple sectors.
34425
34426 2007-10-31 Robert Millan <rmh@aybabtu.com>
34427
34428 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
34429
34430 * conf/i386-linuxbios.rmk: New file.
34431
34432 * kern/i386/pc/hardware.c: Likewise.
34433 * term/i386/pc/at_keyboard.c: Likewise.
34434 * term/i386/pc/vga_text.c: Likewise.
34435
34436 * include/grub/i386/linuxbios/boot.h: Likewise.
34437 * include/grub/i386/linuxbios/console.h: Likewise.
34438 * include/grub/i386/linuxbios/init.h: Likewise.
34439 * include/grub/i386/linuxbios/kernel.h: Likewise.
34440 * include/grub/i386/linuxbios/loader.h: Likewise.
34441 * include/grub/i386/linuxbios/memory.h: Likewise.
34442 * include/grub/i386/linuxbios/serial.h: Likewise.
34443 * include/grub/i386/linuxbios/time.h: Likewise.
34444
34445 * kern/i386/linuxbios/init.c: Likewise.
34446 * kern/i386/linuxbios/startup.S: Likewise.
34447 * kern/i386/linuxbios/table.c: Likewise.
34448
34449 2007-10-31 Marco Gerards <marco@gnu.org>
34450
34451 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
34452 (ata_mod_SOURCES): New variable.
34453 (ata_mod_CFLAGS): Likewise.
34454 (ata_mod_LDFLAGS): Likewise.
34455
34456 * disk/ata.c: New file.
34457
34458 * include/grub/disk.h (grub_disk_dev_id): Add
34459 `GRUB_DISK_DEV_ATA_ID'.
34460
34461 2007-10-31 Robert Millan <rmh@aybabtu.com>
34462
34463 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
34464 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
34465
34466 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
34467 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
34468
34469 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
34470 `<grub/types.h>'.
34471
34472 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
34473
34474 2007-10-27 Robert Millan <rmh@aybabtu.com>
34475
34476 * include/grub/types.h (ULONG_MAX): Define macro.
34477
34478 2007-10-22 Robert Millan <rmh@aybabtu.com>
34479
34480 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
34481 `"../realmode.S"'.
34482 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
34483
34484 2007-10-22 Robert Millan <rmh@aybabtu.com>
34485
34486 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
34487 (pkgdata_MODULES): Add `biosdisk.mod'.
34488 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
34489 variables.
34490
34491 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
34492 (grub_biosdisk_init): Replace with ...
34493 (GRUB_MOD_INIT(biosdisk)): ... this.
34494 (grub_biosdisk_fini): Replace with ...
34495 (GRUB_MOD_FINI(biosdisk)): ... this.
34496
34497 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
34498 (grub_machine_init): Remove call to grub_biosdisk_init().
34499 (grub_machine_fini): Remove call to grub_machine_fini().
34500
34501 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
34502
34503 2007-10-22 Robert Millan <rmh@aybabtu.com>
34504
34505 * include/grub/time.h: New file.
34506 * include/grub/i386/time.h: Likewise.
34507 * include/grub/powerpc/time.h: Likewise.
34508 * include/grub/sparc64/time.h: Likewise.
34509
34510 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
34511 instances to ...
34512 (KERNEL_MACHINE_TIME_HEADER): ... this.
34513 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
34514 instances to ...
34515 (KERNEL_MACHINE_TIME_HEADER): ... this.
34516 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
34517 instances to ...
34518 (KERNEL_MACHINE_TIME_HEADER): ... this.
34519
34520 * kern/i386/efi/init.c: Include `<grub/time.h>'.
34521 (grub_millisleep): New function.
34522 * kern/i386/pc/init.c: Include `<grub/time.h>'.
34523 (grub_millisleep): New function.
34524 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
34525 Remove `grub/machine/time.h' include.
34526 (grub_millisleep): New function.
34527 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
34528 Remove `grub/machine/time.h' include.
34529 (grub_millisleep): New function.
34530
34531 * include/grub/misc.h (grub_div_roundup): New function.
34532
34533 * kern/misc.c: Include `<grub/time.h>'.
34534 (grub_millisleep_generic): New function.
34535
34536 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
34537 Add `time.h'.
34538 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
34539 Add `time.h'.
34540 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
34541 `machine/time.h'. Add `time.h'.
34542 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34543
34544 2007-10-21 Robert Millan <rmh@aybabtu.com>
34545
34546 * include/grub/misc.h (grub_max): New function.
34547
34548 2007-10-21 Robert Millan <rmh@aybabtu.com>
34549
34550 * util/misc.c (grub_util_info): Call fflush() before returning.
34551
34552 2007-10-20 Robert Millan <rmh@aybabtu.com>
34553
34554 * genmk.rb (Image): Copy `extra_flags' from here ...
34555 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
34556
34557 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
34558 to `argc' and `args' arguments.
34559
34560 2007-10-17 Robert Millan <rmh@aybabtu.com>
34561
34562 * kern/i386/loader.S: New file.
34563
34564 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
34565 * kern/i386/loader.S (grub_linux_prot_size)... to here.
34566 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
34567 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
34568 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
34569 * kern/i386/loader.S (grub_linux_real_addr)... to here.
34570 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
34571 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
34572 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
34573 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
34574 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
34575 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
34576 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
34577 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
34578
34579 * kern/i386/realmode.S: New file.
34580
34581 * kern/i386/pc/startup.S (protstack): Moved from here ...
34582 * kern/i386/realmode.S (protstack)... to here.
34583 * kern/i386/pc/startup.S (gdt): Moved from here ...
34584 * kern/i386/realmode.S (gdt)... to here.
34585 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
34586 * kern/i386/realmode.S (prot_to_real)... to here.
34587
34588 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
34589 `kern/i386/realmode.S'.
34590
34591 2007-10-17 Robert Millan <rmh@aybabtu.com>
34592
34593 * include/grub/i386/loader.h: New file.
34594
34595 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
34596 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
34597 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
34598 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
34599 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
34600 * include/grub/i386/loader.h (grub_linux_prot_size)
34601 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
34602 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
34603 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
34604 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
34605
34606 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
34607
34608 2007-10-15 Robert Millan <rmh@aybabtu.com>
34609
34610 * normal/misc.c (grub_normal_print_device_info): Do not probe for
34611 filesystem when dev->disk is unset.
34612 Do probe for filesystem even when dev->disk->has_partitions is set.
34613 In case a filesystem is found, always report it.
34614 In case it isn't, if dev->disk->has_partitions is set, report that
34615 a partition table was found instead of reporting that no filesystem
34616 could be identified.
34617
34618 2007-10-12 Robert Millan <rmh@aybabtu.com>
34619
34620 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
34621 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
34622
34623 * include/grub/types.h (grub_host_to_target16): New macro.
34624 (grub_host_to_target32): Likewise.
34625 (grub_host_to_target64): Likewise.
34626 (grub_target_to_host16): Likewise.
34627 (grub_target_to_host32): Likewise.
34628 (grub_target_to_host64): Likewise.
34629
34630 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
34631 Renamed from to ...
34632 (GRUB_MOD_ALIGN): ...this. Update all users.
34633
34634 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
34635 grub_host_to_target32.
34636 Replace grub_be_to_cpu32 with grub_target_to_host32.
34637 (load_modules): Likewise.
34638 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
34639 Replace grub_be_to_cpu32 with grub_target_to_host32.
34640 Replace grub_cpu_to_be16 with grub_host_to_target16.
34641 Replace grub_cpu_to_be32 grub_host_to_target32.
34642
34643 2007-10-12 Robert Millan <rmh@aybabtu.com>
34644
34645 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
34646 * util/elf/grub-mkimage.c: ... here.
34647
34648 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
34649 `util/powerpc/ieee1275/grub-mkimage.c'.
34650
34651 2007-10-07 Robert Millan <rmh@aybabtu.com>
34652
34653 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
34654 and make it easier to figure out.
34655 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
34656 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
34657 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
34658 leave us with less than HEAP_MIN_SIZE total heap.
34659 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
34660
34661 2007-10-03 Robert Millan <rmh@aybabtu.com>
34662
34663 * include/grub/i386/io.h: New file.
34664 * commands/i386/pc/play.c (inb): Removed.
34665 (outb): Removed.
34666 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
34667 with grub_outb().
34668 * term/i386/pc/serial.c (inb): Removed.
34669 (outb): Removed.
34670 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
34671 with grub_outb().
34672 * term/i386/pc/vga.c (inb): Removed.
34673 (outb): Removed.
34674 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
34675 with grub_outb().
34676
34677 2007-10-02 Robert Millan <rmh@aybabtu.com>
34678
34679 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
34680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34681 Reported by Marcin Kurek.
34682
34683 2007-09-07 Robert Millan <rmh@aybabtu.com>
34684
34685 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
34686 SmartFirmware version updates (as released by Sven Luther), and avoid
34687 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
34688 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
34689 known broken.
34690
34691 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
34692
34693 From Hitoshi Ozeki:
34694 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
34695 when merging two regions.
34696
34697 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
34698
34699 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
34700 * normal/completion.c (grub_normal_do_completion): Likewise.
34701 Reported by Hitoshi Ozeki.
34702
34703 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
34704
34705 Do not use devices at boot in chainloading.
34706
34707 * loader/i386/pc/chainloader.c (boot_drive): New variable.
34708 (boot_part_addr): Likewise.
34709 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
34710 with BOOT_DRIVE and BOOT_PART_ADDR.
34711 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
34712 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
34713
34714 2007-08-29 Robert Millan <rmh@aybabtu.com>
34715
34716 Patch from Simon Peter <dn.tlp@gmx.net>:
34717 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
34718 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
34719 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
34720 util/i386/pc/grub-setup.c_DEPENDENCIES.
34721 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
34722 util/grub-probe.c_DEPENDENCIES.
34723 * conf/powerpc-ieee1275.rmk: Likewise.
34724
34725 2007-08-28 Robert Millan <rmh@aybabtu.com>
34726
34727 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
34728 to tell grub-mkdevicemap how to name devices.
34729 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
34730 feature).
34731
34732 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
34733 util/i386/get_disk_name.c.
34734 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
34735 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
34736 util/ieee1275/get_disk_name.c.
34737
34738 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
34739
34740 * DISTLIST: Add util/i386/get_disk_name.c and
34741 util/ieee1275/get_disk_name.c.
34742
34743 * util/grub-mkdevicemap.c: Replace device naming logic with
34744 grub_util_get_disk_name() calls.
34745
34746 2007-08-20 Robert Millan <rmh@aybabtu.com>
34747
34748 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
34749 (so that it works for both plural and singular quantities).
34750
34751 2007-08-05 Robert Millan <rmh@aybabtu.com>
34752
34753 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
34754 so that [xz] isn't taken into account when determining order.
34755
34756 2007-08-02 Marco Gerards <marco@gnu.org>
34757
34758 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
34759 `include/multiboot2.h', `include/grub/elfload.h',
34760 `include/multiboot.h', `include/grub/multiboot.h',
34761 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
34762 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
34763 `kern/elf.c', `loader/multiboot_loader.c',
34764 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
34765 `loader/i386/pc/multiboot2.c',
34766 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
34767 `util/i386/pc/grub-mkrescue.in'. Remove
34768 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
34769 `include/grub/i386/pc/util/biosdisk.h' and
34770 `include/grub/powerpc/ieee1275/multiboot.h'.
34771
34772 2007-08-02 Bean <bean123ch@gmail.com>
34773
34774 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
34775 (ntfs_mod_SOURCES): New variable.
34776 (ntfs_mod_CFLAGS): Likewise.
34777 (ntfs_mod_LDFLAGS): Likewise.
34778
34779 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
34780 (grub_probe_SOURCES): Likewise.
34781 (grub_emu_SOURCES): Likewise.
34782
34783 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
34784 (grub_emu_SOURCES): Likewise.
34785
34786 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
34787 (grub_emu_SOURCES): Likewise.
34788
34789 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
34790
34791 * fs/ntfs.c: New file.
34792
34793 2007-08-02 Bean <bean123ch@gmail.com>
34794
34795 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
34796
34797 * file.h (grub_file): Likewise.
34798
34799 * fshelp.h (grub_fshelp_read_file): Likewise.
34800
34801 * util/i386/pc/grub-setup.c (setup): Likewise.
34802 (save_first_sector): Likewise.
34803 (save_blocklists): Likewise.
34804
34805 * fs/affs.c (grub_affs_read_file): Likewise.
34806
34807 * fs/ext2.c (grub_ext2_read_file): Likewise.
34808
34809 * fs/fat.c (grub_fat_read_data): Likewise.
34810
34811 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
34812
34813 * fs/hfs.c (grub_hfs_read_file): Likewise.
34814
34815 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
34816
34817 * fs/jfs.c (grub_jfs_read_file): Likewise.
34818
34819 * fs/minix.c (grub_minix_read_file): Likewise.
34820
34821 * fs/sfs.c (grub_sfs_read_file): Likewise.
34822
34823 * fs/ufs.c (grub_ufs_read_file): Likewise.
34824
34825 * fs/xfs.c (grub_xfs_read_file): Likewise.
34826
34827 * command/blocklist.c (read_blocklist): Likewise.
34828 (print_blocklist): Likewise.
34829
34830 2007-08-02 Marco Gerards <marco@gnu.org>
34831
34832 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
34833 `util/hostfs.c'.
34834
34835 * disk/host.c: New file.
34836
34837 * util/hostfs.c: Likewise.
34838
34839 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
34840 return `GRUB_ERR_BAD_FS'.
34841 * fs/sfs.c (grub_sfs_mount): Likewise.
34842 * fs/xfs.c (grub_xfs_mount): Likewise.
34843
34844 * include/grub/disk.h (enum grub_disk_dev_id): Add
34845 `GRUB_DISK_DEVICE_HOST_ID'.
34846
34847 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
34848
34849 2007-07-24 Jerone Young <jerone@gmail.com>
34850
34851 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
34852 modules for compilation.
34853 * conf/powerpc-ieee1275.rmk: Likewise.
34854
34855 * include/multiboot.h: Move multiboot definitions to one file. Rename
34856 many definitions to not get grub specific.
34857 * include/multiboot2.h: Create header with multiboot 2 definitions.
34858 * include/grub/multiboot.h: Header for grub specific function
34859 prototypes and definitions.
34860 * include/grub/multiboot2.h: Likewise.
34861 * include/grub/multiboot_loader.h: Likewise.
34862 * include/grub/i386/pc/multiboot.h: Removed.
34863 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
34864
34865 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
34866 and 2 to allow for one multiboot and module commands.
34867 * loader/multiboot2.c: Add multiboot2 functionality.
34868 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
34869 and definition names.
34870 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
34871 2 functions.
34872 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
34873 ieee1275 specific multiboot2 code.
34874
34875 * kern/i386/pc/startup.S: Change headers and definition names for
34876 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
34877
34878 2007-07-22 Robert Millan <rmh@aybabtu.com>
34879
34880 * geninitheader.sh: Process file specified in first parameter rather
34881 than hardcoding grub_modules_init.lst.
34882 * geninit.sh: Likewise. Also, construct header name dynamically rather
34883 than hardcoding grub_modules_init.h.
34884
34885 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
34886 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
34887 grub_probe_init.[ch] and grub_setup_init.[ch].
34888
34889 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
34890 grub_modules_init.h with grub_emu_init.h.
34891 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
34892 grub_probe_init.[ch] files.
34893 * conf/i386-efi.rmk: Likewise.
34894 * conf/i386-pc.rmk: Likewise.
34895 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
34896 grub_setup_init.[ch] files.
34897
34898 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
34899 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
34900 to initialize modules rather than a list of hardcoded functions.
34901 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
34902 grub_init_all() to initialize modules rather than a list of hardcoded
34903 functions.
34904
34905 2007-07-22 Robert Millan <rmh@aybabtu.com>
34906
34907 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
34908 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
34909
34910 2007-07-22 Robert Millan <rmh@aybabtu.com>
34911
34912 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
34913 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
34914 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
34915 flag when running on SmartFirmware.
34916 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
34917 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
34918 was set.
34919
34920 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
34921 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
34922 rather than decreasing it.
34923
34924 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
34925 there's not enough space to do it, fail in the same way as when it
34926 can't be done because there are no partitions.
34927
34928 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
34929 when nvsetenv failed.
34930
34931 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
34932
34933 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
34934 because this rule is automatically generated.
34935 (grub-mkrescue): Removed for the same reason as above.
34936
34937 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
34938
34939 Migrate to GNU General Public License Version 3.
34940
34941 * COPYING: Replaced with the plain text version of GPLv3.
34942
34943 * config.guess: Updated from gnulib.
34944 * config.sub: Likewise.
34945
34946 * geninit.sh: Output a GPLv3 copyright notice.
34947 * geninitheader.sh: Likewise.
34948 * genmodsrc.sh: Likewise.
34949 * gensymlist.sh.in: Likewise.
34950
34951 * boot/i386/pc/boot.S: Upgraded to GPLv3.
34952 * boot/i386/pc/diskboot.S: Likewise.
34953 * boot/i386/pc/pxeboot.S: Likewise.
34954 * commands/blocklist.c: Likewise.
34955 * commands/boot.c: Likewise.
34956 * commands/cat.c: Likewise.
34957 * commands/cmp.c: Likewise.
34958 * commands/configfile.c: Likewise.
34959 * commands/echo.c: Likewise.
34960 * commands/help.c: Likewise.
34961 * commands/ls.c: Likewise.
34962 * commands/search.c: Likewise.
34963 * commands/terminal.c: Likewise.
34964 * commands/test.c: Likewise.
34965 * commands/videotest.c: Likewise.
34966 * commands/i386/cpuid.c: Likewise.
34967 * commands/i386/pc/halt.c: Likewise.
34968 * commands/i386/pc/play.c: Likewise.
34969 * commands/i386/pc/reboot.c: Likewise.
34970 * commands/i386/pc/vbeinfo.c: Likewise.
34971 * commands/i386/pc/vbetest.c: Likewise.
34972 * commands/ieee1275/halt.c: Likewise.
34973 * commands/ieee1275/reboot.c: Likewise.
34974 * commands/ieee1275/suspend.c: Likewise.
34975 * disk/loopback.c: Likewise.
34976 * disk/lvm.c: Likewise.
34977 * disk/raid.c: Likewise.
34978 * disk/efi/efidisk.c: Likewise.
34979 * disk/i386/pc/biosdisk.c: Likewise.
34980 * disk/ieee1275/ofdisk.c: Likewise.
34981 * font/manager.c: Likewise.
34982 * fs/affs.c: Likewise.
34983 * fs/ext2.c: Likewise.
34984 * fs/fat.c: Likewise.
34985 * fs/fshelp.c: Likewise.
34986 * fs/hfs.c: Likewise.
34987 * fs/hfsplus.c: Likewise.
34988 * fs/iso9660.c: Likewise.
34989 * fs/jfs.c: Likewise.
34990 * fs/minix.c: Likewise.
34991 * fs/sfs.c: Likewise.
34992 * fs/ufs.c: Likewise.
34993 * fs/xfs.c: Likewise.
34994 * hello/hello.c: Likewise.
34995 * include/grub/acorn_filecore.h: Likewise.
34996 * include/grub/arg.h: Likewise.
34997 * include/grub/bitmap.h: Likewise.
34998 * include/grub/boot.h: Likewise.
34999 * include/grub/cache.h: Likewise.
35000 * include/grub/device.h: Likewise.
35001 * include/grub/disk.h: Likewise.
35002 * include/grub/dl.h: Likewise.
35003 * include/grub/elfload.h: Likewise.
35004 * include/grub/env.h: Likewise.
35005 * include/grub/err.h: Likewise.
35006 * include/grub/file.h: Likewise.
35007 * include/grub/font.h: Likewise.
35008 * include/grub/fs.h: Likewise.
35009 * include/grub/fshelp.h: Likewise.
35010 * include/grub/gzio.h: Likewise.
35011 * include/grub/hfs.h: Likewise.
35012 * include/grub/kernel.h: Likewise.
35013 * include/grub/loader.h: Likewise.
35014 * include/grub/lvm.h: Likewise.
35015 * include/grub/misc.h: Likewise.
35016 * include/grub/mm.h: Likewise.
35017 * include/grub/net.h: Likewise.
35018 * include/grub/normal.h: Likewise.
35019 * include/grub/parser.h: Likewise.
35020 * include/grub/partition.h: Likewise.
35021 * include/grub/pc_partition.h: Likewise.
35022 * include/grub/raid.h: Likewise.
35023 * include/grub/rescue.h: Likewise.
35024 * include/grub/script.h: Likewise.
35025 * include/grub/setjmp.h: Likewise.
35026 * include/grub/symbol.h: Likewise.
35027 * include/grub/term.h: Likewise.
35028 * include/grub/terminfo.h: Likewise.
35029 * include/grub/tparm.h: Likewise.
35030 * include/grub/types.h: Likewise.
35031 * include/grub/video.h: Likewise.
35032 * include/grub/efi/api.h: Likewise.
35033 * include/grub/efi/chainloader.h: Likewise.
35034 * include/grub/efi/console.h: Likewise.
35035 * include/grub/efi/console_control.h: Likewise.
35036 * include/grub/efi/disk.h: Likewise.
35037 * include/grub/efi/efi.h: Likewise.
35038 * include/grub/efi/pe32.h: Likewise.
35039 * include/grub/efi/time.h: Likewise.
35040 * include/grub/i386/linux.h: Likewise.
35041 * include/grub/i386/setjmp.h: Likewise.
35042 * include/grub/i386/types.h: Likewise.
35043 * include/grub/i386/efi/kernel.h: Likewise.
35044 * include/grub/i386/efi/loader.h: Likewise.
35045 * include/grub/i386/efi/time.h: Likewise.
35046 * include/grub/i386/pc/biosdisk.h: Likewise.
35047 * include/grub/i386/pc/boot.h: Likewise.
35048 * include/grub/i386/pc/chainloader.h: Likewise.
35049 * include/grub/i386/pc/console.h: Likewise.
35050 * include/grub/i386/pc/init.h: Likewise.
35051 * include/grub/i386/pc/kernel.h: Likewise.
35052 * include/grub/i386/pc/loader.h: Likewise.
35053 * include/grub/i386/pc/memory.h: Likewise.
35054 * include/grub/i386/pc/multiboot.h: Likewise.
35055 * include/grub/i386/pc/serial.h: Likewise.
35056 * include/grub/i386/pc/time.h: Likewise.
35057 * include/grub/i386/pc/vbe.h: Likewise.
35058 * include/grub/i386/pc/vbeblit.h: Likewise.
35059 * include/grub/i386/pc/vbefill.h: Likewise.
35060 * include/grub/i386/pc/vbeutil.h: Likewise.
35061 * include/grub/i386/pc/vga.h: Likewise.
35062 * include/grub/ieee1275/ieee1275.h: Likewise.
35063 * include/grub/ieee1275/ofdisk.h: Likewise.
35064 * include/grub/powerpc/libgcc.h: Likewise.
35065 * include/grub/powerpc/setjmp.h: Likewise.
35066 * include/grub/powerpc/types.h: Likewise.
35067 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
35068 * include/grub/powerpc/ieee1275/console.h: Likewise.
35069 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
35070 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
35071 * include/grub/powerpc/ieee1275/loader.h: Likewise.
35072 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
35073 * include/grub/powerpc/ieee1275/time.h: Likewise.
35074 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
35075 * include/grub/sparc64/libgcc.h: Likewise.
35076 * include/grub/sparc64/setjmp.h: Likewise.
35077 * include/grub/sparc64/types.h: Likewise.
35078 * include/grub/sparc64/ieee1275/console.h: Likewise.
35079 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
35080 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
35081 * include/grub/sparc64/ieee1275/time.h: Likewise.
35082 * include/grub/util/biosdisk.h: Likewise.
35083 * include/grub/util/getroot.h: Likewise.
35084 * include/grub/util/lvm.h: Likewise.
35085 * include/grub/util/misc.h: Likewise.
35086 * include/grub/util/raid.h: Likewise.
35087 * include/grub/util/resolve.h: Likewise.
35088 * io/gzio.c: Likewise.
35089 * kern/device.c: Likewise.
35090 * kern/disk.c: Likewise.
35091 * kern/dl.c: Likewise.
35092 * kern/elf.c: Likewise.
35093 * kern/env.c: Likewise.
35094 * kern/err.c: Likewise.
35095 * kern/file.c: Likewise.
35096 * kern/fs.c: Likewise.
35097 * kern/loader.c: Likewise.
35098 * kern/main.c: Likewise.
35099 * kern/misc.c: Likewise.
35100 * kern/mm.c: Likewise.
35101 * kern/parser.c: Likewise.
35102 * kern/partition.c: Likewise.
35103 * kern/rescue.c: Likewise.
35104 * kern/term.c: Likewise.
35105 * kern/efi/efi.c: Likewise.
35106 * kern/efi/init.c: Likewise.
35107 * kern/efi/mm.c: Likewise.
35108 * kern/i386/dl.c: Likewise.
35109 * kern/i386/efi/init.c: Likewise.
35110 * kern/i386/efi/startup.S: Likewise.
35111 * kern/i386/pc/init.c: Likewise.
35112 * kern/i386/pc/lzo1x.S: Likewise.
35113 * kern/i386/pc/startup.S: Likewise.
35114 * kern/ieee1275/ieee1275.c: Likewise.
35115 * kern/powerpc/cache.S: Likewise.
35116 * kern/powerpc/dl.c: Likewise.
35117 * kern/powerpc/ieee1275/cmain.c: Likewise.
35118 * kern/powerpc/ieee1275/crt0.S: Likewise.
35119 * kern/powerpc/ieee1275/init.c: Likewise.
35120 * kern/powerpc/ieee1275/openfw.c: Likewise.
35121 * kern/sparc64/cache.S: Likewise.
35122 * kern/sparc64/dl.c: Likewise.
35123 * kern/sparc64/ieee1275/init.c: Likewise.
35124 * kern/sparc64/ieee1275/openfw.c: Likewise.
35125 * loader/efi/chainloader.c: Likewise.
35126 * loader/efi/chainloader_normal.c: Likewise.
35127 * loader/i386/efi/linux.c: Likewise.
35128 * loader/i386/efi/linux_normal.c: Likewise.
35129 * loader/i386/pc/chainloader.c: Likewise.
35130 * loader/i386/pc/chainloader_normal.c: Likewise.
35131 * loader/i386/pc/linux.c: Likewise.
35132 * loader/i386/pc/linux_normal.c: Likewise.
35133 * loader/i386/pc/multiboot.c: Likewise.
35134 * loader/i386/pc/multiboot_normal.c: Likewise.
35135 * loader/powerpc/ieee1275/linux.c: Likewise.
35136 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35137 * normal/arg.c: Likewise.
35138 * normal/cmdline.c: Likewise.
35139 * normal/command.c: Likewise.
35140 * normal/completion.c: Likewise.
35141 * normal/execute.c: Likewise.
35142 * normal/function.c: Likewise.
35143 * normal/lexer.c: Likewise.
35144 * normal/main.c: Likewise.
35145 * normal/menu.c: Likewise.
35146 * normal/menu_entry.c: Likewise.
35147 * normal/misc.c: Likewise.
35148 * normal/parser.y: Likewise.
35149 * normal/script.c: Likewise.
35150 * normal/i386/setjmp.S: Likewise.
35151 * normal/powerpc/setjmp.S: Likewise.
35152 * normal/sparc64/setjmp.S: Likewise.
35153 * partmap/acorn.c: Likewise.
35154 * partmap/amiga.c: Likewise.
35155 * partmap/apple.c: Likewise.
35156 * partmap/gpt.c: Likewise.
35157 * partmap/pc.c: Likewise.
35158 * partmap/sun.c: Likewise.
35159 * term/gfxterm.c: Likewise.
35160 * term/terminfo.c: Likewise.
35161 * term/efi/console.c: Likewise.
35162 * term/i386/pc/console.c: Likewise.
35163 * term/i386/pc/serial.c: Likewise.
35164 * term/i386/pc/vesafb.c: Likewise.
35165 * term/i386/pc/vga.c: Likewise.
35166 * term/ieee1275/ofconsole.c: Likewise.
35167 * util/biosdisk.c: Likewise.
35168 * util/console.c: Likewise.
35169 * util/genmoddep.c: Likewise.
35170 * util/getroot.c: Likewise.
35171 * util/grub-emu.c: Likewise.
35172 * util/grub-mkdevicemap.c: Likewise.
35173 * util/grub-probe.c: Likewise.
35174 * util/lvm.c: Likewise.
35175 * util/misc.c: Likewise.
35176 * util/raid.c: Likewise.
35177 * util/resolve.c: Likewise.
35178 * util/update-grub.in: Likewise.
35179 * util/update-grub_lib.in: Likewise.
35180 * util/grub.d/00_header.in: Likewise.
35181 * util/grub.d/10_hurd.in: Likewise.
35182 * util/grub.d/10_linux.in: Likewise.
35183 * util/i386/efi/grub-install.in: Likewise.
35184 * util/i386/efi/grub-mkimage.c: Likewise.
35185 * util/i386/pc/grub-install.in: Likewise.
35186 * util/i386/pc/grub-mkimage.c: Likewise.
35187 * util/i386/pc/grub-mkrescue.in: Likewise.
35188 * util/i386/pc/grub-setup.c: Likewise.
35189 * util/i386/pc/misc.c: Likewise.
35190 * util/powerpc/ieee1275/grub-install.in: Likewise.
35191 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
35192 * util/powerpc/ieee1275/misc.c: Likewise.
35193 * video/bitmap.c: Likewise.
35194 * video/video.c: Likewise.
35195 * video/i386/pc/vbe.c: Likewise.
35196 * video/i386/pc/vbeblit.c: Likewise.
35197 * video/i386/pc/vbefill.c: Likewise.
35198 * video/i386/pc/vbeutil.c: Likewise.
35199 * video/readers/tga.c: Likewise.
35200
35201 2007-07-02 Robert Millan <rmh@aybabtu.com>
35202
35203 * conf/i386-efi.rmk: Replace obsolete reference to
35204 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
35205 with util/getroot.c.
35206 * conf/powerpc-ieee1275.rmk: Likewise.
35207 * conf/sparc64-ieee1275.rmk: Likewise.
35208
35209 * util/grub-emu.c (main): Fix unchecked pointer handling.
35210
35211 2007-07-02 Robert Millan <rmh@aybabtu.com>
35212
35213 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
35214 invocation to fail, in order to support partition-less media.
35215
35216 * util/i386/pc/grub-install.in: Likewise.
35217
35218 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
35219 which fs or partmap modules are needed (akin to its sister scripts).
35220
35221 Also use grub-probe to get rid of unportable /proc/mounts check.
35222
35223 Print the same informational message that the other scripts do, before
35224 exiting.
35225
35226 2007-06-23 Robert Millan <rmh@aybabtu.com>
35227
35228 * util/update-grub_lib.in (font_path): New function. Determine whether
35229 a font file can be found and, if so, echo the GRUB path to it.
35230
35231 * util/update-grub.in: Handle multiple terminals depending on user
35232 input, platform availability and font file presence. Propagate
35233 variables of our findings to /etc/grub.d/ children.
35234
35235 * util/grub.d/00_header.in: Handle multiple terminals, based on
35236 environment setup by update-grub.
35237
35238 2007-06-23 Robert Millan <rmh@aybabtu.com>
35239
35240 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
35241
35242 2007-06-21 Robert Millan <rmh@aybabtu.com>
35243
35244 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
35245 indicate end of data section in kernel image.
35246 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
35247 GRUB_KERNEL_MACHINE_DATA_END.
35248
35249 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
35250 space for it.
35251 * kern/i386/efi/startup.S: Likewise.
35252
35253 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
35254 during image generation. Implement --prefix option to override this
35255 patch.
35256 * util/i386/efi/grub-mkimage.c: Likewise.
35257
35258 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
35259 code to make path relative to its root into a separate function.
35260
35261 * util/i386/pc/grub-install.in: Use newly provided
35262 make_system_path_relative_to_its_root() to convert ${grubdir}, then
35263 pass the result to grub-install --prefix.
35264
35265 2007-06-13 Robert Millan <rmh@aybabtu.com>
35266
35267 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
35268 DEFAULT_DEVICE_MAP.
35269 * util/grub-emu.c: Use above definitions from misc.h instead of
35270 defining them.
35271 * util/grub-mkdevicemap.c: Likewise.
35272 * util/i386/pc/grub-setup.c: Likewise.
35273 * util/grub-probe.c: Likewise.
35274 (probe): Abort with grub_util_error() when either
35275 grub_guess_root_device or grub_util_get_grub_dev fails.
35276
35277 2007-06-12 Robert Millan <rmh@aybabtu.com>
35278
35279 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
35280 "pager" assignment.
35281 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
35282 "pcdata".
35283 * util/grub-probe.c (probe): Likewise for "drive_name".
35284
35285 2007-06-11 Robert Millan <rmh@aybabtu.com>
35286
35287 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
35288 not just the cdrom one.
35289
35290 2007-06-11 Robert Millan <rmh@aybabtu.com>
35291
35292 * util/i386/pc/grub-mkrescue.in: Add "set -e".
35293 Add --pkglibdir=DIR option to override pkglibdir.
35294 Mention --image-type=TYPE in help output.
35295 Fix --grub-mkimage (it was a no-op).
35296 Abort gracefully when no parameter is given.
35297
35298 2007-06-11 Robert Millan <rmh@aybabtu.com>
35299
35300 * util/i386/pc/grub-mkrescue.in: New file.
35301 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
35302 * Makefile.in: Handle bin_SCRIPTS.
35303
35304 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
35305
35306 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
35307 list of video modes.
35308
35309 2007-06-06 Robert Millan <rmh@aybabtu.com>
35310
35311 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
35312 file doesn't exist, or if it is in a filesystem grub can't read.
35313
35314 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
35315 not abort if GRUB_DRIVE could not be defined. Rearrange generated
35316 header comment to fit in 80 columns when the variables are resolved.
35317
35318 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
35319 could be identified by update-grub. Remove redundant check for
35320 unifont.pff existence (since convert_system_path_to_grub_path now
35321 handles that).
35322
35323 2007-06-04 Robert Millan <rmh@aybabtu.com>
35324
35325 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
35326
35327 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
35328
35329 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
35330
35331 2007-06-04 Robert Millan <rmh@aybabtu.com>
35332
35333 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
35334
35335 * include/grub/partition.h: Declare grub_apple_partition_map_init and
35336 grub_apple_partition_map_fini.
35337
35338 * util/biosdisk.c
35339 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
35340 to access >2 TiB disks).
35341
35342 Print disk->total_sectors with %llu instead of %lu, since this
35343 variable is always 64-bit (prevents wrong disk size from being displayed
35344 on either >2 TiB disk or big-endian CPU).
35345
35346 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
35347 into a generic case that supports all (sane) partition maps.
35348
35349 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
35350 breaks big-endian.
35351
35352 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
35353 and grub_apple_partition_map_fini() after that.
35354
35355 2007-06-01 Robert Millan <rmh@aybabtu.com>
35356
35357 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
35358
35359 * util/grub.d/00_header.in: Only enable gfxterm when
35360 convert_system_path_to_grub_path() succeeds.
35361
35362 2007-05-20 Robert Millan <rmh@aybabtu.com>
35363
35364 * util/update-grub_lib.in: New file.
35365 * DISTLIST: Add update-grub_lib.in.
35366 * conf/common.rmk: Generate update-grub_lib and install it in
35367 $(lib_DATA).
35368 * Makefile.in: Add install routine for $(lib_DATA).
35369
35370 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
35371 function provided by update-grub_lib to support arbitrary paths of
35372 unifont.pff.
35373 * util/update-grub.in: Use convert_system_path_to_grub_path() to
35374 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
35375
35376 2007-05-19 Robert Millan <rmh@aybabtu.com>
35377
35378 * commands/i386/cpuid.c: New module.
35379 * DISTLIST: Add it.
35380 * conf/i386-efi.rmk: Enable cpuid.mod.
35381 * conf/i386-pc.rmk: Likewise.
35382
35383 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35384
35385 * kern/disk.c (grub_disk_read): Check return value of
35386 grub_realloc().
35387
35388 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35389
35390 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
35391 arrays.
35392 * disk/raid.c (grub_raid_open): Likewise.
35393
35394 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35395
35396 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
35397 stack instead of on the heap.
35398
35399 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
35400 before doing a read on it.
35401
35402 * configure.ac: Only use -fno-stack-protector for the target
35403 environment.
35404
35405 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35406
35407 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
35408 __attribute_ ((unused)) to mode_type argument.
35409
35410 * util/getroot.c (grub_guess_root_device): Fix #endif.
35411
35412 * kern/misc.c (memcmp): Fix prototype.
35413
35414 * include/grub/partition.h [GRUB_UTIL]
35415 (grub_gpt_partition_map_init): Add prototype.
35416 (grub_gpt_partition_map_fini): Likewise.
35417
35418 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
35419 at the right place.
35420
35421 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
35422 (grub_fat_read_data): Likewise.
35423 (grub_fat_find_dir): Likewise.
35424
35425 * font/manager.c (find_glyph): Make table a const.
35426 (grub_font_get_glyph): Remove bitmap from if statement.
35427
35428 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
35429
35430 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
35431 code, first search for device in /dev/mapper, then in /dev.
35432 (grub_util_get_grub_dev): New function.
35433 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
35434 prototype.
35435 * util/grub-probe.c (probe): Remove check for RAID, call
35436 grub_util_get_grub_dev() instead of
35437 grub_util_biosdisk_get_grub_dev().
35438 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
35439 grub_util_biosdisk_get_grub_dev().
35440 * util/i386/pc/grub-setup.c (main): Likewise.
35441
35442 2007-05-16 Robert Millan <rmh@aybabtu.com>
35443
35444 * DISTLIST: Update for the latest changes.
35445 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
35446 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
35447 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
35448 grub/util/biosdisk.h.
35449 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
35450 grub/util/biosdisk.h.
35451
35452 2007-05-16 Robert Millan <rmh@aybabtu.com>
35453
35454 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
35455
35456 2007-05-16 Robert Millan <rmh@aybabtu.com>
35457
35458 * util/i386/efi/grub-install.in: New.
35459 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
35460 newly added grub-install.
35461 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
35462 include.
35463 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
35464 grub/util/biosdisk.h.
35465 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
35466 grub/util/biosdisk.h.
35467
35468 2007-05-16 Robert Millan <rmh@aybabtu.com>
35469
35470 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
35471 * include/grub/util/biosdisk.h: ... here.
35472 * util/i386/pc/biosdisk.c: Moved to ...
35473 * util/biosdisk.c: ... here.
35474 * util/i386/pc/getroot.c: Moved to ...
35475 * util/getroot.c: ... here.
35476 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
35477 * util/grub-mkdevicemap.c: ... here.
35478 * util/i386/pc/grub-probe.c: Moved to ...
35479 * util/grub-probe.c: ... here.
35480
35481 2007-05-15 Robert Millan <rmh@aybabtu.com>
35482
35483 * util/update-grub.in: Remove duplicated line in grub.cfg header
35484 message.
35485
35486 2007-05-13 Robert Millan <rmh@aybabtu.com>
35487
35488 * util/update-grub.in: Fix a few assumptions about the devices holding
35489 /, /boot and /boot/grub being the same.
35490 * util/grub.d/00_header.in: Likewise.
35491 * util/grub.d/10_hurd.in: Likewise.
35492 * util/grub.d/10_linux.in: Likewise.
35493
35494 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
35495 patterns. Use that to define the `.old' suffix as older than `'.
35496
35497 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
35498
35499 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
35500 the grub.cfg header message.
35501
35502 2007-05-11 Robert Millan <rmh@aybabtu.com>
35503
35504 * util/update-grub.in: Create device.map if it doesn't already exist,
35505 before attempting to run grub-probe.
35506 Check for grub-probe and grub-mkdevicemap with the same code
35507 grub-install is using.
35508 Remove test mode.
35509
35510 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
35511
35512 * Makefile.in: Add the datarootdir autoconf variable.
35513
35514 2007-05-09 Robert Millan <rmh@aybabtu.com>
35515
35516 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
35517 fail gracefully if dev->disk->partition == NULL.
35518
35519 2007-05-07 Robert Millan <rmh@aybabtu.com>
35520
35521 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
35522 determine partition map module.
35523 * util/i386/pc/grub-install.in: Use this feature to decide which
35524 partition module to load, instead of hardcoding pc and gpt.
35525
35526 2007-05-07 Robert Millan <rmh@aybabtu.com>
35527
35528 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
35529 source directory differs from build directory.
35530
35531 2007-05-05 Robert Millan <rmh@aybabtu.com>
35532
35533 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
35534 initialisation.
35535
35536 2007-05-05 Robert Millan <rmh@aybabtu.com>
35537
35538 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
35539
35540 2007-05-05 Robert Millan <rmh@aybabtu.com>
35541
35542 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
35543 command-line arguments via ${GRUB_CMDLINE_LINUX}.
35544
35545 2007-05-05 Robert Millan <rmh@aybabtu.com>
35546
35547 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
35548 (grub_probe_SOURCES): Likewise.
35549 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
35550 GPT and initialize dos_part and bsd_part accordingly.
35551 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
35552 install_bsd_part.
35553 (main): Activate gpt module for use during partition identification,
35554 and deactivate it afterwards.
35555 * util/i386/pc/grub-install.in: Add gpt module to core.img.
35556 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
35557 partition identification, and deactivate it afterwards.
35558
35559 2007-05-05 Robert Millan <rmh@aybabtu.com>
35560
35561 * term/i386/pc/console.c (grub_console_fini): Call
35562 grub_term_set_current() before grub_term_unregister().
35563
35564 2007-05-04 Robert Millan <rmh@aybabtu.com>
35565
35566 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
35567 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
35568 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
35569 and update-grub_DATA.
35570 * conf/common.rmk: Build and install update-grub components.
35571 * conf/common.mk: Regenerate.
35572 * util/update-grub.in: New. Core of update-grub.
35573 * util/grub.d/00_header.in: New. Generates grub.cfg header.
35574 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
35575 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
35576 * util/grub.d/README: New. Document grub.d directory layout.
35577
35578 2007-05-01 Robert Millan <rmh@aybabtu.com>
35579
35580 * util/grub-emu.c: Move initialization functions
35581 grub_util_biosdisk_init() and grub_init_all() before
35582 grub_util_biosdisk_get_grub_dev(), which relies on them.
35583
35584 2007-04-19 Robert Millan <rmh@aybabtu.com>
35585
35586 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
35587 it is used later.
35588
35589 2007-04-18 Jerone Young <jerone@gmail.com>
35590
35591 * kernel/elf.c: Add missing parenthesis for conditional statement
35592 stanza.
35593
35594 2007-04-10 Jerone Young <jerone@gmail.com>
35595
35596 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
35597 continue on and look for device node with real device name.
35598
35599 2007-04-10 Jerone Young <jerone@gmail.com>
35600
35601 * configure.ac: Add argument for autoconf to use transformation
35602 ability.
35603 * Makefile.in: Add autoconf package transformation code.
35604 * util/i386/pc/grub-install.in: Likewise.
35605 * util/powerpc/ieee1275/grub-install.in: Likewise.
35606
35607 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
35608
35609 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
35610 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
35611 (EXT2_REVISION): Likewise.
35612 (EXT2_INODE_SIZE): Likewise.
35613 (struct grub_ext2_block_group): Added a missing member
35614 "used_dirs".
35615 (grub_ext2_read_inode): Divide by the inode size in a superblock
35616 instead of 128 to obtain INODES_PER_BLOCK.
35617 Use the macro EXT2_INODE_SIZE instead of directly using
35618 SBLOCK->INODE_SIZE.
35619
35620 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
35621
35622 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
35623 superblock instead of the structure size to compute an
35624 offset. This fixes the problem that GRUB could not read a
35625 filesystem when inode size is different from 128-byte.
35626
35627 2007-03-05 Marco Gerards <marco@gnu.org>
35628
35629 * normal/main.c (read_config_file): When "menu" is not set, create
35630 an initial context.
35631
35632 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
35633
35634 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
35635 (HEAP_LIMIT): New macro.
35636 (grub_claim_heap): Claim memory up to `heaplimit'.
35637
35638 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
35639
35640 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
35641 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
35642 (_start): Likewise.
35643 (grub_arch_modules_addr): Return address after `_end'.
35644 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
35645 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
35646 (add_segments): Calculate `_end' from phdr size and location.
35647 (ALIGN_UP): Moved to ...
35648 * include/grub/misc.h: here.
35649 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
35650 New macro.
35651 (GRUB_IEEE1275_MODULE_BASE): Removed.
35652
35653 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
35654
35655 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
35656 loop boundary.
35657
35658 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
35659
35660 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
35661 All users updated.
35662 (grub_elf64_load_hook_t): Likewise.
35663 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
35664 debug output.
35665
35666 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
35667
35668 * kern/mm.c: Update copyright.
35669 (grub_mm_debug): Correct syntax error.
35670 (grub_mm_dump_free): New function.
35671 (grub_debug_free): Call `grub_free'.
35672 * include/grub/mm.h: Update copyright.
35673 (grub_mm_dump_free): Add declaration.
35674
35675 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
35676
35677 * include/grub/ieee1275/ieee1275.h: Update copyright.
35678 * kern/powerpc/ieee1275/init.c: Likewise.
35679 * kern/powerpc/ieee1275/openfw.c: Likewise.
35680
35681 * loader/powerpc/ieee1275/linux.c: Likewise.
35682 * include/grub/elfload.h: Likewise.
35683 * kern/elf.c: Likewise.
35684 (grub_elf32_load): Pass `base' and `size' parameters. Update all
35685 callers.
35686 (grub_elf64_load): Likewise.
35687 (grub_elf32_load_segment): Move to a nested function.
35688 (grub_elf64_load_segment): Likewise.
35689
35690 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
35691
35692 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
35693 prototype.
35694 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
35695 (grub_heap_len): Likewise.
35696 (HEAP_SIZE): New macro.
35697 (grub_claim_heap): New function.
35698 (grub_machine_init): Don't claim heap directly. Call
35699 `grub_claim_heap'.
35700 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
35701 (grub_available_iterate): New function.
35702
35703 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
35704
35705 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
35706 * configure.ac: Use it for testing the HOST and TARGET compilers.
35707
35708 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
35709
35710 * Makefile.in (enable_grub_emu): New variable.
35711 * configure.ac (--enable-grub-emu): New option.
35712 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
35713 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
35714 * conf/i386-pc.rmk: Likewise.
35715 * conf/powerpc-ieee1275.rmk: Likewise.
35716 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
35717
35718 2006-12-12 Marco Gerards <marco@gnu.org>
35719
35720 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
35721
35722 * kern/env.c (grub_env_unset): Don't free the member `value' when
35723 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
35724 pointer.
35725
35726 * normal/main.c (current_menu): Removed.
35727 (free_menu): Unset the `menu' environment variable.
35728 (grub_normal_menu_addentry): Make use of the environment variable
35729 `menu', instead of using the global `current_menu'. Allocate
35730 memory for the sourcecode of this entry.
35731 (read_config_file): New argument `nested', changed all callers.
35732 Only in the case of a new context, initialize a new menu. Set the
35733 `menu' environment variable.
35734 (grub_normal_execute): Don't set and unset the environment
35735 variable `menu' here anymore. Only free the menu when leaving the
35736 context.
35737
35738 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
35739 leak.
35740
35741 2006-12-11 Marco Gerards <marco@gnu.org>
35742
35743 * normal/menu_entry.c (run): Fix off by one bug so the last line
35744 is executed. Move the loader check to outside the loop.
35745
35746 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
35747
35748 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
35749
35750 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
35751
35752 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
35753 the number of sectors. Reported by Andrey Shuvikov
35754 <mr_hyro@yahoo.com>.
35755
35756 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
35757
35758 * kern/disk.c (grub_disk_read): When there is a read error, always
35759 try to read only the necessary data.
35760
35761 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
35762 disk/raid.c.
35763 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
35764 prototype.
35765 [GRUB_UTIL] (grub_raid_fini): Likewise.
35766 [GRUB_UTIL] (grub_lvm_init): Likewise.
35767 [GRUB_UTIL] (grub_lvm_fini): Likewise.
35768 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
35769 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
35770 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
35771 and grub_raid_fini().
35772
35773 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
35774
35775 * include/grub/types.h (__unused): Rename to UNUSED.
35776 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
35777 (grub_elf64_size): Likewise.
35778
35779 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
35780
35781 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
35782 grub_error_push and grub_error_pop in the error-handling path.
35783 (grub_elf32_load_segment): Only call grub_file_read with non-zero
35784 length.
35785
35786 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
35787
35788 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
35789 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35791 (kernel_elf_SOURCES): Likewise.
35792 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
35793 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
35794 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
35795 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
35796 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
35797 (elf_mod_SOURCES): New variable.
35798 (elf_mod_CFLAGS): Likewise.
35799 (elf_mod_LDFLAGS): Likewise.
35800 * include/grub/types.h (__unused): New macro.
35801 * include/grub/elfload.h: New file.
35802 * kern/elf.c: Likewise.
35803 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
35804 (ELF32_LOADMASK): New macro.
35805 (ELF64_LOADMASK): Likewise.
35806 (vmlinux): Removed.
35807 (grub_linux_load32): New function.
35808 (grub_linux_load64): Likewise.
35809 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
35810 Use grub_elf_t instead of grub_file_t.
35811
35812 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
35813
35814 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
35815 `catch_result' to struct set_color_args.
35816
35817 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
35818
35819 * normal/menu.c: Include grub/script.h.
35820 * normal/menu_entry.c: Likewise.
35821 * include/grub/normal.h: Do not include grub/script.h.
35822
35823 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
35824
35825 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
35826
35827 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
35828
35829 * kern/disk.c (grub_disk_open): Print debug messages when opening a
35830 disk.
35831 (grub_disk_close): Print debug messages when closing a disk.
35832 (grub_disk_read): Print debug messages when disk read fails.
35833 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
35834 filesystem type.
35835 * kern/partition.c: Include misc.h.
35836 (grub_partition_iterate): Print debug messages when detecting
35837 partition type.
35838
35839 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
35840
35841 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
35842 is negative.
35843 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
35844
35845 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
35846
35847 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
35848 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
35849
35850 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
35851
35852 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
35853 instead of sizeof(lv). Patch by Michael Guntsche.
35854
35855 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
35856
35857 * disk/lvm.c: Rename VGS to VG_LIST.
35858 (grub_lvm_iterate): Change VGS->LV to VG-LV.
35859 (grub_lvm_open): Likewise.
35860 Thanks to Michael Guntsche for finding this bug.
35861
35862 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
35863
35864 * configure.ac (AC_INIT): Bumped to 1.95.
35865
35866 2006-10-14 Robert Millan <rmh@aybabtu.com>
35867
35868 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
35869 with "/dev/.static/dev/md".
35870
35871 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
35872
35873 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
35874 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
35875 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
35876 DRIVE_NAME are always freed.
35877
35878 * util/i386/pc/biosdisk.c (make_device_name): Add one into
35879 DOS_PART, as a DOS partition is counted from one instead of zero
35880 now. Reported by Robert Millan.
35881
35882 2006-10-14 Robert Millan <rmh@aybabtu.com>
35883
35884 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
35885 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
35886 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
35887 string returned by grub_guess_root_device.
35888 * util/i386/pc/grub-setup.c: Likewise.
35889 * util/i386/pc/grub-probefs.c: Likewise.
35890
35891 * util/i386/pc/grub-probefs.c: Rename to ...
35892 * util/i386/pc/grub-probe.c: ... this.
35893 * DISTLIST: Remove grub-probefs, add grub-probe.
35894 * conf/i386-efi.rmk: Likewise.
35895 * conf/i386-pc.rmk: Likewise.
35896 * util/i386/pc/grub-install.in: Likewise.
35897
35898 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
35899 choose which information we want to print.
35900
35901 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
35902
35903 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
35904 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
35905 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
35906 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
35907 video/readers/tga.c and video/i386/pc/vbeutil.c.
35908
35909 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
35910
35911 Added support for RAID and LVM.
35912
35913 * disk/lvm.c: New file.
35914 * disk/raid.c: Likewise.
35915 * include/grub/lvm.h: Likewise.
35916 * include/grub/raid.h: Likewise.
35917 * include/grub/util/lvm.h: Likewise.
35918 * include/grub/util/raid.h: Likewise.
35919 * util/lvm.c: Likewise.
35920 * util/raid.c: Likewise.
35921
35922 * include/grub/disk.h (grub_disk_dev_id): Add
35923 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
35924 (grub_disk_get_size): New prototype.
35925 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
35926 returns a partition.
35927 (grub_disk_get_size): New function.
35928
35929 * kern/i386/pc/init.c (make_install_device): Copy the prefix
35930 verbatim if grub_install_dos_part is -2.
35931
35932 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
35933 and LVM devices.
35934
35935 * util/i386/pc/grub-setup.c (setup): New argument
35936 MUST_EMBED. Force embedding of GRUB when the argument is
35937 true. Close FILE before returning.
35938 (main): Add support for RAID and LVM.
35939
35940 * conf/common.rmk: Add RAID and LVM modules.
35941 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
35942 util/lvm.c.
35943 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
35944
35945 * kern/misc.c (grub_strstr): New function.
35946 * include/grub/misc.h (grub_strstr): New prototype.
35947
35948 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
35949
35950 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
35951
35952 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
35953
35954 * kern/misc.c (grub_strtoull): Guess the base only if not
35955 specified.
35956
35957 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
35958
35959 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
35960 PowerMac support.
35961
35962 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
35963
35964 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
35965
35966 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
35967 Remove `flags' argument. All callers changed.
35968 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
35969 (IEEE1275_IHANDLE_INVALID): New variable.
35970 (IEEE1275_CELL_INVALID): New variable.
35971 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
35972 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
35973 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
35974 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
35975 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
35976 codes from Open Firmware. All callers updated.
35977 (grub_ieee1275_next_property): Directly return Open Firmware return
35978 code.
35979 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
35980 Standardize error checking from `grub_ieee1275_get_property'.
35981 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
35982 `devalias' to `aliases'. Correct comments. Consolidate error paths.
35983
35984 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
35985
35986 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
35987 `instance_to_package_args' to `instance_to_path_args'.
35988
35989 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
35990 `grub_ieee1275_chosen'.
35991
35992 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
35993 `grub_ieee1275_interpret'.
35994
35995 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
35996
35997 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
35998
35999 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36000
36001 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
36002 (__cmpdi): Likewise.
36003
36004 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
36005 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
36006 `grub_ssize_t'.
36007
36008 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
36009
36010 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
36011 to type `grub_ssize_t'.
36012 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
36013
36014 2006-09-22 Marco Gerards <marco@gnu.org>
36015
36016 * normal/script.c (grub_script_create_cmdmenu): Skip leading
36017 newlines.
36018
36019 2006-09-22 Marco Gerards <marco@gnu.org>
36020
36021 * commands/echo.c: New file.
36022
36023 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
36024
36025 * conf/common.rmk (echo_mod_SOURCES): New variable.
36026 (echo_mod_CFLAGS): Likewise.
36027 (echo_mod_LDFLAGS): Likewise.
36028
36029 2006-09-22 Marco Gerards <marco@gnu.org>
36030
36031 * normal/main.c (get_line): Malloc memory instead of using
36032 preallocated memory. Removed the arguments `cmdline' and
36033 `max_len'. Updated all callers.
36034
36035 2006-09-22 Marco Gerards <marco@gnu.org>
36036
36037 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
36038 (normal_mod_DEPENDENCIES): Likewise.
36039
36040 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
36041 (normal_mod_DEPENDENCIES): Likewise.
36042
36043 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
36044
36045 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
36046
36047 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
36048 programs.
36049 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
36050 (normal_mod_DEPENDENCIES): Likewise.
36051 * conf/i386-pc.mk: Regenerate.
36052 * conf/i386-efi.mk: Likewise
36053 * conf/common.mk: Likewise.
36054 * conf/powerpc-ieee1275.mk: Likewise.
36055 * conf/sparc64-ieee1275.mk: Likewise.
36056
36057 2006-09-22 Robert Millan <rmh@aybabtu.com>
36058
36059 Sync with i386 version.
36060 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
36061 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
36062
36063 2006-09-21 Robert Millan <rmh@aybabtu.com>
36064
36065 Import from GRUB Legacy (lib/device.c):
36066 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
36067 (init_device_map) [__linux__]: Add support for I2O devices.
36068
36069 2006-09-14 Marco Gerards <marco@gnu.org>
36070
36071 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
36072 `-melf_i386'.
36073
36074 2006-09-14 Robert Millan <rmh@aybabtu.com>
36075
36076 * util/i386/pc/grub-install.in: Skip menu.lst when removing
36077 /boot/grub/*.lst.
36078
36079 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
36080
36081 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
36082 before adding it to device.map.
36083
36084 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
36085
36086 * genmk.rb: Let GCC generate dependencies the first time it
36087 compiles a file; using the -MD option.
36088 * conf/common.mk: Regenerate.
36089 * conf/i386-pc.mk: Likewise.
36090 * conf/i386-efi.mk: Likewise.
36091 * conf/powerpc-ieee1275.mk: Likewise.
36092 * conf/sparc64-ieee1275.mk: Likewise.
36093
36094 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
36095
36096 Move the prototypes of grub_setjmp and grub_longjmp to
36097 cpu/setjmp.h, so that each architecture may specify different
36098 attributes.
36099
36100 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
36101 (grub_longjmp): Likewise.
36102 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
36103 (grub_longjmp): Likewise.
36104 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
36105 (grub_longjmp): Likewise.
36106
36107 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
36108 [!GRUB_UTIL] (grub_longjmp): Removed.
36109
36110 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
36111
36112 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
36113 "color!" method does not return any value.
36114
36115 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36116
36117 * include/grub/bitmap.h: New file.
36118
36119 * include/grub/i386/pc/vbeutil.h: Likewise.
36120
36121 * video/bitmap.c: Likewise.
36122
36123 * video/readers/tga.c: Likewise.
36124
36125 * video/i386/pc/vbeutil.c: Likewise.
36126
36127 * commands/videotest.c: Code cleanup and updated to reflect to new
36128 video API.
36129
36130 * term/gfxterm.c: Likewise.
36131
36132 * video/video.c: Likewise.
36133
36134 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
36135 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
36136 (bitmap_mod_SOURCES): New entry.
36137 (bitmap_mod_CFLAGS): Likewise.
36138 (bitmap_mod_LDFLAGS): Likewise.
36139 (tga_mod_SOURCES): Likewise.
36140 (tga_mod_CFLAGS): Likewise.
36141 (tga_mod_LDFLAGS): Likewise.
36142
36143 * include/grub/video.h (grub_video_blit_operators): New enum type.
36144 (grub_video_render_target): Changed as forward declaration and moved
36145 actual definition to be video driver specific.
36146 (grub_video_adapter.blit_bitmap): Added blitting operator.
36147 (grub_video_adapter.blit_render_target): Likewise.
36148 (grub_video_blit_bitmap): Likewise.
36149 (grub_video_blit_render_target): Likewise.
36150
36151 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
36152 driver specific render target definition.
36153 (grub_video_vbe_map_rgba): Added driver internal helper.
36154 (grub_video_vbe_unmap_color): Updated to use
36155 grub_video_i386_vbeblit_info.
36156 (grub_video_vbe_get_video_ptr): Likewise.
36157
36158 * include/grub/i386/pc/vbeblit.h
36159 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
36160 grub_video_i386_vbeblit_info.
36161 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36162 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36163 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36164 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36165 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36166 (grub_video_i386_vbeblit_index_index): Likewise.
36167 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
36168 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36169 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36170 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
36171 operator.
36172 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
36173 operator.
36174
36175 * video/i386/pc/vbeblit.c: Updated to reflect changes on
36176 include/grub/i386/pc/vbeblit.h.
36177
36178 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
36179 Updated to use grub_video_i386_vbeblit_info.
36180 (grub_video_i386_vbefill_R8G8B8): Likewise.
36181 (grub_video_i386_vbefill_index): Likewise.
36182 (grub_video_i386_vbefill): Added generic filler.
36183
36184 * video/i386/pc/vbefill.c: Updated to reflect changes on
36185 include/grub/i386/pc/vbefill.h.
36186
36187 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
36188 grub_video_i386_vbeblit_info.
36189 (grub_video_vbe_unmap_color): Likewise.
36190 (grub_video_vbe_blit_glyph): Likewise.
36191 (grub_video_vbe_scroll): Likewise.
36192 (grub_video_vbe_draw_pixel): Removed function.
36193 (grub_video_vbe_get_pixel): Likewise.
36194 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
36195 updated code to use it.
36196 (common_blitter): Added common blitter for render target and bitmap.
36197 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
36198 (grub_video_vbe_blit_render_target): Likewise.
36199
36200 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
36201
36202 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
36203 is in text mode if there is no console control protocol instance
36204 available.
36205
36206 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36207
36208 * include/grub/video.h: Code cleanup.
36209
36210 * include/grub/i386/pc/vbe.h: Likewise.
36211
36212 * video/i386/pc/vbe.c: Likewise.
36213
36214 * video/i386/pc/vbeblit.c: Likewise.
36215
36216 * video/i386/pc/vbefill.c: Likewise.
36217
36218 * video/video.c: Likewise. Also added more comments.
36219
36220 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36221
36222 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
36223 (struct grub_biosdisk_dap): Likewise.
36224
36225 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
36226 linkage settings for all functions.
36227
36228 2006-07-12 Marco Gerards <marco@gnu.org>
36229
36230 * configure.ac (--enable-mm-debug): Fix typo.
36231
36232 * genkernsyms.sh.in: Use proper quoting for `CC'.
36233
36234 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
36235
36236 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
36237 (normal_mod_ASFLAGS): Remove "-m32".
36238
36239 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
36240
36241 * util/misc.c: Include config.h.
36242 [!HAVE_MEMALIGN]: Do not include malloc.h.
36243 (grub_memalign): Use posix_memalign, if present. Then, use
36244 memalign, if present. Otherwise, emit an error.
36245
36246 * util/grub-emu.c: Do not include malloc.h.
36247
36248 * include/grub/util/misc.h: Include unistd.h. This is required for
36249 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
36250 D. Eades III <hde@foobar-qux.org>.
36251
36252 * configure.ac (AC_GNU_SOURCE): Added.
36253 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
36254 type.
36255
36256 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
36257
36258 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
36259 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
36260
36261 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
36262
36263 * include/grub/types.h (grub_host_addr_t): Rename to
36264 grub_target_addr_t.
36265 (grub_host_off_t): Rename to grub_target_off_t.
36266 (grub_host_size_t): Rename to grub_target_size_t.
36267 (grub_host_ssize_t): Rename to grub_target_ssize_t.
36268 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
36269
36270 * include/grub/kernel.h (struct grub_module_header): Change type
36271 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
36272 (grub_module_info): Likewise.
36273
36274 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36275
36276 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
36277 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
36278 Velazquez <jesus.velazquez@gmail.com>.
36279
36280 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36281
36282 Count partitions from 1 instead of 0 in the string representation
36283 of partitions. Still use 0-based internally.
36284
36285 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
36286 (sun_partition_map_iterate): Use grub_partition_t instead of
36287 struct grub_partition *. Cast DESC->START_CYLINDER to
36288 grub_uint64_t after converting the endian.
36289 (sun_partition_map_probe): Subtract 1 for PARTNUM.
36290 (sun_partition_map_get_name): Add 1 to P->INDEX.
36291
36292 * partmap/pc.c (grub_partition_parse): Subtract 1 for
36293 PCDATA->DOS_PART.
36294 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
36295
36296 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
36297 zero instead of one.
36298 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
36299 (gpt_partition_map_get_name): Add 1 into P->INDEX.
36300
36301 * partmap/apple.c (apple_partition_map_iterate): Change the type
36302 of POS to unsigned.
36303 (apple_partition_map_probe): Subtract 1 for PARTNUM.
36304 (apple_partition_map_get_name): Add 1 into P->INDEX.
36305
36306 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
36307 of POS to unsigned.
36308 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
36309 calculate the offset of a partition.
36310 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
36311 (amiga_partition_map_get_name): Add 1 into P->INDEX.
36312
36313 * partmap/acorn.c (acorn_partition_map_find): Change the type of
36314 SECTOR to grub_disk_addr_t.
36315 (acorn_partition_map_iterate): Likewise.
36316 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
36317 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
36318 top.
36319 (acorn_partition_map_get_name): Add 1 into P->INDEX.
36320
36321 * kern/i386/pc/init.c (make_install_device): Add 1 into
36322 GRUB_INSTALL_DOS_PART.
36323
36324 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
36325 conditional.
36326
36327 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36328
36329 Clean up the code to support 64-bit addressing in disks and
36330 files. This change is not enough for filesystems yet.
36331
36332 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
36333 type of "start" to grub_uint64_t.
36334 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
36335 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
36336 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
36337 convert addresses.
36338
36339 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
36340 to grub_disk_addr_t.
36341
36342 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
36343 string.
36344
36345 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36346
36347 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
36348 to char *.
36349
36350 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
36351
36352 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
36353
36354 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
36355
36356 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
36357 to grub_off_t, to detect an error from grub_file_seek.
36358 (grub_multiboot_load_elf32): Likewise.
36359
36360 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
36361 maximum unsigned long value when an overflow is detected.
36362 (grub_strtoull): New function.
36363 (grub_divmod64): Likewise.
36364 (grub_lltoa): use grub_divmod64.
36365
36366 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
36367 grub_disk_addr_t.
36368 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
36369 the pointer to next character. Use grub_strtoull instead of
36370 grub_strtoul.
36371 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
36372 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
36373 respectively.
36374
36375 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
36376 return value is signed.
36377 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
36378 test if OFFSET is less than zero, as OFFSET is unsigned now.
36379
36380 * kern/disk.c (struct grub_disk_cache): Change the type of
36381 "sector" to grub_disk_addr_t.
36382 (grub_disk_cache_get_index): Change the type of SECTOR to
36383 grub_disk_addr_t. Calculate the hash with SECTOR casted to
36384 unsigned after shifting.
36385 (grub_disk_cache_invalidate): Change the type of SECTOR to
36386 grub_disk_addr_t.
36387 (grub_disk_cache_unlock): Likewise.
36388 (grub_disk_cache_store): Likewise.
36389 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
36390 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
36391 grub_disk_addr_t and grub_uint64_t, respectively.
36392 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
36393 body, as the value of OFFSET is tweaked by
36394 grub_disk_check_range. Change the types of START_SECTOR, LEN and
36395 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
36396 respectively.
36397 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
36398 body, as the value of OFFSET is tweaked by
36399 grub_disk_check_range. Change the types of LEN and N to
36400 grub_size_t.
36401
36402 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
36403 and "saved_offset" to grub_off_t.
36404 (test_header): Cast BUF to char *.
36405 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
36406 to char *.
36407 (grub_gzio_read): Change the types of OFFSET and SIZE to
36408 grub_off_t and grub_size_t, respectively.
36409
36410 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
36411 Removed.
36412 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
36413 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
36414 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
36415 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
36416 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
36417
36418 * include/grub/types.h (grub_off_t): Unconditionally set to
36419 grub_uint64_t.
36420 (grub_disk_addr_t): Changed to grub_uint64_t.
36421
36422 * include/grub/partition.h (struct grub_partition): Change the
36423 types of "start", "len" and "offset" to grub_disk_addr_t,
36424 grub_uint64_t and grub_disk_addr_t, respectively.
36425 (grub_partition_get_start): Return grub_disk_addr_t.
36426 (grub_partition_get_len): Return grub_uint64_t.
36427
36428 * include/grub/misc.h (grub_strtoull): New prototype.
36429 (grub_divmod64): Likewise.
36430
36431 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
36432 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
36433 grub_off_t, respectively.
36434 All callers and references changed.
36435
36436 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
36437 grub_size_t in "read".
36438 All callers and references changed.
36439
36440 * include/grub/file.h (struct grub_file): Change the types of
36441 "offset" and "size" to grub_off_t and grub_off_t,
36442 respectively. Change the type of SECTOR to grub_disk_addr_t in
36443 "read_hook".
36444 (grub_file_read): Change the type of LEN to grub_size_t.
36445 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
36446 grub_off_t.
36447 (grub_file_size): Return grub_off_t.
36448 (grub_file_tell): Likewise.
36449 All callers and references changed.
36450
36451 * include/grub/disk.h (struct grub_disk_dev): Change the types of
36452 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
36453 "write".
36454 (struct grub_disk): Change the type of "total_sectors" to
36455 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
36456 "read_hook".
36457 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
36458 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
36459 (grub_disk_write): Likewise.
36460 All callers and references changed.
36461
36462 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
36463 char * for grub_strncmp to silence gcc.
36464 (grub_iso9660_mount): Likewise.
36465 (grub_iso9660_mount): Likewise.
36466 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
36467 return statement.
36468 (grub_iso9660_iterate_dir): Likewise.
36469 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
36470
36471 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
36472 LEN to grub_disk_addr_t and grub_size_t, respectively.
36473
36474 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
36475
36476 * fs/jfs.c (grub_jfs_read_file): Likewise.
36477
36478 * fs/minix.c (grub_jfs_read_file): Likewise.
36479
36480 * fs/sfs.c (grub_jfs_read_file): Likewise.
36481
36482 * fs/ufs.c (grub_jfs_read_file): Likewise.
36483
36484 * fs/xfs.c (grub_jfs_read_file): Likewise.
36485
36486 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
36487 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
36488 respectively.
36489
36490 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
36491 BLKNR to -1 instead of returning GRUB_ERRNO.
36492 (grub_ext2_read_file): Change the types of SECTOR and
36493 LEN to grub_disk_addr_t and grub_size_t, respectively.
36494
36495 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
36496 LEN to grub_disk_addr_t and grub_size_t, respectively.
36497
36498 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
36499 grub_file_read.
36500
36501 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
36502 string. Do not cast SECTOR explicitly.
36503
36504 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
36505 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
36506 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
36507 grub_disk_addr_t and grub_size_t, respectively. If the sector is
36508 over 2TB and LBA mode is not supported, raise an error.
36509 (get_safe_sectors): New function.
36510 (grub_biosdisk_read): Use get_safe_sectors.
36511 (grub_biosdisk_write): Likewise.
36512
36513 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
36514 (grub_efidisk_write): Likewise.
36515
36516 * disk/loopback.c (delete_loopback): Cosmetic changes.
36517 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
36518 correctly.
36519 (grub_loopback_open): Likewise.
36520 (grub_loopback_read): Likewise. Also, change the type of POS to
36521 grub_off_t, and fix the usage of grub_memset.
36522
36523 * commands/i386/pc/play.c: Include grub/machine/time.h.
36524
36525 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
36526 print FILE->SIZE.
36527
36528 * commands/configfile.c: Include grub/env.h.
36529
36530 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
36531 GRUB_ERRNO directly instead. Change the type of POS to
36532 grub_off_t. Follow the coding standard.
36533
36534 * commands/blocklist.c: Include grub/partition.h.
36535 (grub_cmd_blocklist): Return an error if the underlying device is
36536 not a disk. Take the starting sector of a partition into account,
36537 if a partition is used.
36538
36539 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
36540 a length field.
36541 (lba_mode): Support 64-bit addresses.
36542 (chs_mode): Likewise.
36543 (copy_buffer): Adapted to the new offsets of a length field and a
36544 segment field.
36545 (blocklist_default_start): Allocate 64-bit space.
36546
36547 * boot/i386/pc/boot.S (force_lba): Removed.
36548 (boot_drive): Moved to under KERNEL_SECTOR.
36549 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
36550 space.
36551 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
36552 is useless.
36553 (lba_mode): Refactored to support a 64-bit address. More size
36554 optimization.
36555 (setup_sectors): Likewise.
36556
36557 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36558
36559 * DISTLIST: Added include/grub/i386/linux.h. Removed
36560 include/grub/i386/pc/linux.h
36561
36562 * configure.ac (AC_INIT): Bumped to 1.94.
36563
36564 * config.guess: Updated from gnulib.
36565 * config.sub: Likewise.
36566 * install-sh: Likewise.
36567 * mkinstalldirs: Likewise.
36568
36569 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
36570
36571 * conf/common.rmk (grub_modules_init.lst): Depended on
36572 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
36573 MODSRCFILES.
36574
36575 * genmk.rb (PModule::rule): Reverted the previous change.
36576
36577 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
36578
36579 * conf/common.rmk (grub_modules_init.lst): Depends on
36580 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
36581 that the target does not exist before producing.
36582 (grub_modules_init.h): Remove the target before generating.
36583 (grub_emu_init.c): Likewise.
36584
36585 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
36586
36587 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
36588
36589 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
36590 for the target-specific tests. Make sure that we also have the
36591 up-to-date target variables for those tests.
36592
36593 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
36594
36595 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
36596 (PModule::rule): Likewise.
36597
36598 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
36599
36600 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
36601 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
36602 target-specific flags should be prefixed.
36603 (PModule::rule): Likewise.
36604
36605 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
36606
36607 * configure.ac (CMP): Check if cmp is available explicitly.
36608
36609 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
36610
36611 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
36612 (target_cpu): New variable.
36613 (pkglibdir): Use target_cpu instead of host_cpu.
36614
36615 * util/i386/pc/grub-install.in (host_cpu): Removed.
36616 (target_cpu): New variable.
36617 (pkglibdir): Use target_cpu instead of host_cpu.
36618
36619 * util/genmoddep.c: Removed.
36620
36621 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
36622 instead of GRUB_HOST_SIZEOF_VOID_P.
36623 * kern/dl.c: Likewise.
36624
36625 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
36626 ...
36627 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
36628 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
36629 (GRUB_TARGET_SIZEOF_LONG): ... this.
36630 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
36631 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
36632 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
36633 to ...
36634 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
36635 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
36636 (GRUB_TARGET_SIZEOF_LONG): ... this.
36637 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
36638 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
36639 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
36640 to ...
36641 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
36642 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
36643 (GRUB_TARGET_SIZEOF_LONG): ... this.
36644 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
36645 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
36646
36647 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
36648 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
36649 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
36650 instead of GRUB_HOST_SIZEOF_LONG.
36651 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
36652 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
36653 GRUB_CPU_WORDS_BIGENDIAN.
36654 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
36655 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
36656 grub_host_ssize_t.
36657
36658 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
36659 (genmoddep_SOURCES): Likewise.
36660 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
36661 (genmoddep_SOURCES): Likewise.
36662 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
36663 (genmoddep_SOURCES): Likewise.
36664 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
36665 Likewise.
36666 (genmoddep_SOURCES): Likewise.
36667
36668 * genmoddep.awk: New file.
36669
36670 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
36671 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
36672 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
36673 (PModule::rule): Likewise.
36674 (Program::rule): Likewise.
36675 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
36676 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
36677 respectively.
36678
36679 * configure.ac: Rewritten intensively to use host and target
36680 instead of build and host, respectively.
36681
36682 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
36683 (host_cpu): Removed.
36684 (target_cpu): New variable.
36685 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
36686 (BUILD_CC): Removed.
36687 (BUILD_CFLAGS): Likewise.
36688 (BUILD_CPPFLAGS): Likewise.
36689 (TARGET_CC): New variable.
36690 (TARGET_CFLAGS): Likewise.
36691 (TARGET_CPPFLAGS): Likewise.
36692 (TARGET_LDFLAGS): Likewise.
36693 (AWK): Likewise.
36694 (include): Use target_cpu instead of host_cpu.
36695 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
36696
36697 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
36698
36699 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
36700
36701 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
36702 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
36703 field 'false' to 'exec_on_false'.
36704 (grub_script_create_cmdif): Renamed argument names to reflect above
36705 changes.
36706
36707 * normal/execute.c (grub_script_execute_cmdif): Likewise.
36708
36709 * normal/script.c (grub_script_create_cmdif): Likewise.
36710
36711 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
36712
36713 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
36714 top.
36715 (grub_hfsplus_btree_recptr): Likewise.
36716 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
36717 FILEBLOCK both to pass a block number and store next block
36718 number.
36719 (grub_hfsplus_read_block): Rewritten heavily to support an extent
36720 overflow file correctly. Specify errors appropriately, because
36721 fshelp expects that GRUB_ERRNO is set when fails. Reuse
36722 grub_hfsplus_btree_recptr to get the pointer to a found key.
36723 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
36724 is found.
36725
36726 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
36727 linux.mod.
36728 (_linux_mod_SOURCES): New variable.
36729 (_linux_mod_CFLAGS): Likewise.
36730 (_linux_mod_LDFLAGS): Likewise.
36731 (linux_mod_SOURCES): Likewise.
36732 (linux_mod_CFLAGS): Likewise.
36733 (linux_mod_LDFLAGS): Likewise.
36734
36735 * DISTLIST: Added loader/i386/efi/linux.c,
36736 loader/i386/efi/linux_normal.c and
36737 include/grub/i386/efi/loader.h.
36738
36739 * loader/i386/efi/linux.c: New file.
36740 * loader/i386/efi/linux_normal.c: Likewise.
36741 * include/grub/i386/efi/loader.h: Likewise.
36742
36743 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
36744
36745 * commands/blocklist.c: New file.
36746
36747 * DISTLIST: Added commands/blocklist.c.
36748
36749 * term/efi/console.c (grub_console_highlight_color): Use a lighter
36750 color for the background, and a darker color for the foreground.
36751 (grub_console_checkkey): Return READ_KEY.
36752 (grub_console_cls): Set the background to
36753 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
36754
36755 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
36756
36757 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
36758 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
36759
36760 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
36761 prototype.
36762
36763 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
36764 BG. The spec is wrong again.
36765
36766 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
36767 prototype.
36768 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
36769
36770 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
36771 commands/blocklist.c.
36772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36773
36774 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
36775 (blocklist_mod_SOURCES): New variable.
36776 (blocklist_mod_CFLAGS): Likewise.
36777 (blocklist_mod_LDFLAGS): Likewise.
36778
36779 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
36780
36781 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
36782 duplication.
36783 (lba_mode): Use %eax more intensively to reduce the code size.
36784
36785 2006-05-20 Marco Gerards <marco@gnu.org>
36786
36787 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
36788
36789 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
36790 for `menuentry'.
36791 (script): Accept leading newlines.
36792 (newlines): New rule to describe 0 or more newlines.
36793 (commands): Accept `command' with trailing newline. Fixed the
36794 order in which arguments were passed to `grub_script_add_cmd'.
36795 Accept commands separated by newlines.
36796 (function): Changed to accept newlines.
36797 (menuentry) Rewritten.
36798
36799 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
36800 front of the list, instead of to the end.
36801
36802 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
36803
36804 * util/i386/pc/grub-install.in (bindir): New variable.
36805 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
36806 Shaver <lbgwjl@gmail.com>.
36807
36808 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
36809
36810 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
36811 grub/machine/linux.h
36812 * loader/i386/pc/linux.c: Likewise.
36813
36814 * include/grub/i386/pc/linux.h: Moved to ...
36815 * include/grub/i386/linux.h: ... here.
36816
36817 * include/grub/i386/linux.h (struct linux_kernel_params): New
36818 struct.
36819
36820 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
36821
36822 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
36823 checking.
36824 (grub_video_vbe_blit_glyph): Likewise.
36825 (grub_video_vbe_blit_bitmap): Likewise.
36826 (grub_video_vbe_blit_render_target): Likewise.
36827
36828 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
36829
36830 * configure.ac (--with-platform): Properly quote the square
36831 brackets.
36832
36833 2006-05-08 Marco Gerards <marco@gnu.org>
36834
36835 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
36836 this...
36837 (kernel_elf_HEADERS): ...to this. Updated all users.
36838 (grubof_symlist.c): Renamed from this...
36839 (kernel_elf_symlist.c): ...to this. Updated all users.
36840 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
36841 (grubof_SOURCES): Renamed from this...
36842 (kernel_elf_SOURCES): ...to this.
36843 (grubof_HEADERS): Renamed from this...
36844 (kernel_elf_HEADERS): ...to this.
36845 (grubof_CFLAGS): Renamed from this...
36846 (kernel_elf_CFLAGS): ...to this.
36847 (grubof_ASFLAGS): Renamed from this...
36848 (kernel_elf_ASFLAGS): ...to this.
36849 (grubof_LDFLAGS): Renamed from this...
36850 (kernel_elf_LDFLAGS): ...to this.
36851
36852 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
36853 this...
36854 (kernel_elf_HEADERS): ...to this. Updated all users.
36855 (grubof_symlist.c): Renamed from this...
36856 (kernel_elf_symlist.c): ...to this. Updated all users.
36857 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
36858 (grubof_SOURCES): Renamed from this...
36859 (kernel_elf_SOURCES): ...to this.
36860 (grubof_HEADERS): Renamed from this...
36861 (kernel_elf_HEADERS): ...to this.
36862 (grubof_CFLAGS): Renamed from this...
36863 (kernel_elf_CFLAGS): ...to this.
36864 (grubof_ASFLAGS): Renamed from this...
36865 (kernel_elf_ASFLAGS): ...to this.
36866 (grubof_LDFLAGS): Renamed from this...
36867 (kernel_elf_LDFLAGS): ...to this.
36868
36869 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
36870 `kernel.elf' instead of `grubof'.
36871
36872 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
36873
36874 Add --with-platform to configure. Use pkglibdir instead of
36875 pkgdatadir. This is reported by Roger Leigh.
36876
36877 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
36878 (host_vendor): Likewise.
36879 (host_os): Likewise.
36880 (pkgdatadir): Likewise.
36881 (platform): New variable.
36882 (pkglibdir): Likewise.
36883 Use PKGLIBDIR instead of PKGDATADIR.
36884
36885 * util/i386/pc/grub-install.in (datadir): Removed.
36886 (host_vendor): Likewise.
36887 (host_os): Likewise.
36888 (pkgdatadir): Likewise.
36889 (platform): New variable.
36890 (pkglibdir): Likewise.
36891 Use PKGLIBDIR instead of PKGDATADIR.
36892
36893 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
36894 instead of GRUB_DATADIR.
36895 (main): Likewise.
36896 * util/i386/pc/grub-mkimage.c (usage): Likewise.
36897 (main): Likewise.
36898 * util/i386/efi/grub-mkimage.c (usage): Likewise.
36899 (main): Likewise.
36900
36901 * configure.ac (--with-platform): New option.
36902 Use PLATFORM instead of HOST_VENDOR to specify a platform.
36903
36904 * Makefile.in: Include a makefile based on PLATFORM instead of
36905 HOST_VENDOR.
36906 (pkgdatadir): Not appended by the machine type.
36907 (pkglibdir): Appended by the machine type.
36908 (host_vendor): Removed.
36909 (platform): New variable.
36910 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
36911 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
36912 (uninstall): Likewise.
36913
36914 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
36915
36916 Use the environment context in the menu. Remove the commands
36917 "default" and "timeout", and use variables instead.
36918
36919 * normal/menu.c: Include grub/env.h.
36920 (print_entry): Cast TITLE to silence gcc.
36921 (get_timeout): New function.
36922 (set_timeout): Likewise.
36923 (get_entry_number): Likewise.
36924 (run_menu): Use a default entry, a fallback entry and a timeout
36925 in the environment variables "default", "fallback" and
36926 "timeout". Also, tweak the default entry if it is not within the
36927 current menu entries.
36928 (grub_menu_run): Use a fallback entry in the environment variable
36929 "fallback".
36930
36931 * normal/main.c (read_config_file): Do not initialize
36932 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
36933 NEWMENU->TIMEOUT.
36934 (grub_normal_execute): Use a data slot to store the menu.
36935
36936 * include/grub/normal.h (struct grub_menu): Removed default_entry,
36937 fallback_entry and timeout.
36938 (struct grub_menu_list): Removed.
36939 (grub_menu_list_t): Likewise.
36940 (struct grub_context): Likewise.
36941 (grub_context_t): Likewise.
36942 (grub_context_get): Likewise.
36943 (grub_context_get_current_menu): Likewise.
36944 (grub_context_push_menu): Likewise.
36945 (grub_context_pop_menu): Likewise.
36946 (grub_default_init): Likewise.
36947 (grub_default_fini): Likewise.
36948 (grub_timeout_init): Likewise.
36949 (grub_timeout_fini): Likewise.
36950
36951 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
36952 and timeout.mod.
36953 (normal_mod_SOURCES): Removed normal/context.c.
36954
36955 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
36956 commands/default.c, commands/timeout.c and normal/context.c.
36957 (normal_mod_SOURCES): Removed normal/context.c.
36958
36959 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
36960 commands/timeout.c and normal/context.c.
36961 (normal_mod_SOURCES): Removed normal/context.c.
36962
36963 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
36964 commands/default.c, commands/timeout.c and normal/context.c.
36965 (normal_mod_SOURCES): Removed normal/context.c.
36966
36967 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
36968 timeout.mod.
36969 (default_mod_SOURCES): Removed.
36970 (default_mod_CFLAGS): Likewise.
36971 (default_mod_LDFLAGS): Likewise.
36972 (timeout_mod_SOURCES): Removed.
36973 (timeout_mod_CFLAGS): Likewise.
36974 (timeout_mod_LDFLAGS): Likewise.
36975
36976 * DISTLIST: Removed commands/default.c, commands/timeout.c and
36977 normal/context.c.
36978
36979 * commands/default.c: Removed.
36980 * commands/timeout.c: Likewise.
36981 * normal/context.c: Likewise.
36982
36983 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
36984
36985 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
36986
36987 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
36988
36989 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
36990 "next" to "prev" for readability.
36991 (struct grub_env_sorted_var): New struct.
36992 (grub_env_context): Renamed to ...
36993 (initial_context): ... this.
36994 (grub_env_var_context): Renamed to ...
36995 (current_context): ... this.
36996 (grub_env_find): Look only at CURRENT_CONTEXT.
36997 (grub_env_context_open): Rewritten to copy exported variables from
36998 previous context.
36999 (grub_env_context_close): Rewritten according to the new
37000 scheme. Also, add an assertion to prevent the initial context from
37001 removed.
37002 (grub_env_insert): Removed the code for the sorted list.
37003 (grub_env_remove): Likewise.
37004 (grub_env_export): Simply mark the variable with
37005 GRUB_ENV_VAR_GLOBAL.
37006 (grub_env_set): A cosmetic change for naming consistency.
37007 (grub_env_get): Likewise.
37008 (grub_env_unset): Likewise.
37009 (grub_env_iterate): Rewritten to sort variables within this
37010 function.
37011 (grub_register_variable_hook): Fixed for naming consistency. Call
37012 grub_env_find again, only if NAME is not found at the first time.
37013 (mangle_data_slot_name): New function.
37014 (grub_env_set_data_slot): Likewise.
37015 (grub_env_get_data_slot): Likewise.
37016 (grub_env_unset_data_slot): Likewise.
37017
37018 * include/grub/env.h (grub_env_var_type): New enum.
37019 (GRUB_ENV_VAR_LOCAL): New constant.
37020 (GRUB_ENV_VAR_GLOBAL): Likewise.
37021 (GRUB_ENV_VAR_DATA): Likewise.
37022 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
37023 "type".
37024 (grub_env_set): Replace VAR with NAME for consistency.
37025 (grub_register_variable_hook): Likewise.
37026 (grub_env_export): Specify the name of the argument.
37027 (grub_env_set_data_slot): New prototype.
37028 (grub_env_get_data_slot): Likewise.
37029 (grub_env_unset_data_slot): Likewise.
37030
37031 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37032
37033 Extend the loader so that GRUB can accept a loader which comes
37034 back to GRUB when a loaded image exits. Also, this change adds
37035 support for a chainloader on EFI.
37036
37037 * term/efi/console.c: Include grub/misc.h.
37038 (grub_console_checkkey): Display a scan code on the top for
37039 debugging. This will be removed once the EFI port gets stable.
37040 Correct the scan code mapping.
37041
37042 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
37043 allocate memory from larger regions, in order to reduce the number
37044 of allocated regions. Otherwise, the MacOSX loader panics.
37045 (filter_memory_map): Avoid less than 1MB for compatibility with
37046 other loaders.
37047 (add_memory_regions): Allocate from the tail of a region, if
37048 possible, to avoid allocating a region near to 1MB, for the MacOSX
37049 loader.
37050
37051 * kern/efi/init.c (grub_efi_set_prefix): Specify
37052 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
37053
37054 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
37055 argument IMAGE_HANDLE and specify it to get a loaded image.
37056 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
37057 grub_efi_get_loaded_image.
37058 (grub_efi_get_filename): Divide the length by the size of
37059 grub_efi_char16_t.
37060 (grub_efi_get_device_path): New function.
37061 (grub_efi_print_device_path): Print End Device Path nodes. Divide
37062 the length by the size of grub_efi_char16_t for a file path device
37063 path node.
37064
37065 * kern/loader.c (grub_loader_noreturn): New variable.
37066 (grub_loader_set): Accept a new argument NORETURN. Set
37067 GRUB_LOADER_NORETURN to NORETURN.
37068 All callers changed.
37069 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
37070 grub_machine_fini.
37071
37072 * include/grub/efi/efi.h (grub_efi_get_device_path): New
37073 prototype.
37074 (grub_efi_get_loaded_image): Take an argument to specify an image
37075 handle.
37076
37077 * include/grub/loader.h (grub_loader_set): Added one more argument
37078 NORETURN.
37079
37080 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
37081 instead of grub_efi_open_protocol.
37082 (grub_efidisk_get_device_name): Likewise.
37083 (grub_efidisk_close): Print a newline.
37084 (grub_efidisk_get_device_handle): Fixed to use
37085 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
37086 GRUB_EFI_DEVICE_PATH_TYPE.
37087
37088 * disk/efi/efidisk.c (device_path_guid): Moved to ...
37089 * kern/efi/efi.c (device_path_guid): ... here.
37090
37091 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
37092 chain.mod.
37093 (kernel_mod_HEADERS): Added efi/disk.h.
37094 (_chain_mod_SOURCES): New variable.
37095 (_chain_mod_CFLAGS): Likewise.
37096 (_chain_mod_LDFLAGS): Likewise.
37097 (chain_mod_SOURCES): Likewise.
37098 (chain_mod_CFLAGS): Likewise.
37099 (chain_mod_LDFLAGS): Likewise.
37100
37101 * DISTLIST: Added include/grub/efi/chainloader.h,
37102 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
37103
37104 * include/grub/efi/chainloader.h: New file.
37105 * loader/efi/chainloader.c: Likewise.
37106 * loader/efi/chainloader_normal.c: Likewise.
37107
37108 2006-04-30 Marco Gerards <marco@gnu.org>
37109
37110 * commands/configfile.c (grub_cmd_source): New function.
37111 (GRUB_MOD_INIT): Register the commands `source' and `.'.
37112 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
37113
37114 2006-04-30 Marco Gerards <marco@gnu.org>
37115
37116 * normal/execute.c (grub_script_execute_cmd): Change the return
37117 type to `grub_err_t'. Correctly return the error.
37118 (grub_script_execute_cmdline): In case a command line is not a
37119 command or a function, try to interpret it as an assignment.
37120
37121 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37122
37123 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
37124 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
37125 skip a node whose name is obviously invalid as UTF-16,
37126 i.e. contains a NUL character. Stop the iteration when the last
37127 directory entry is found. Instead of using the return value of
37128 grub_hfsplus_btree_iterate_node, store the value in RET and use
37129 it, because the iterator can be stopped by the last directory
37130 entry.
37131
37132 2006-04-30 Marco Gerards <marco@gnu.org>
37133
37134 * include/grub/env.h (grub_env_export): New prototype. Reported
37135 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
37136
37137 2006-04-30 Marco Gerards <marco@gnu.org>
37138
37139 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
37140 size of the extents in a catalog file record.
37141
37142 2006-04-29 Marco Gerards <marco@gnu.org>
37143
37144 * commands/configfile.c (grub_cmd_configfile): Execute the
37145 configfile within its own context.
37146
37147 * include/grub/env.h (grub_env_context_open): New prototype.
37148 (grub_env_context_close): Likewise.
37149
37150 * kern/env.c (grub_env): Removed.
37151 (grub_env_sorted): Likewise.
37152 (grub_env_context): New variable.
37153 (grub_env_var_context): Likewise.
37154 (grub_env_find): Search both the active context and the global
37155 context.
37156 (grub_env_context_open): New function.
37157 (grub_env_context_close): Likewise.
37158 (grub_env_insert): Likewise.
37159 (grub_env_remove): Likewise.
37160 (grub_env_export): Likewise.
37161 (grub_env_set): Changed to use helper functions to avoid code
37162 duplication.
37163 (grub_env_iterate): Rewritten so both the current context and the
37164 global context are being used.
37165
37166 * normal/command.c (export_command): New function.
37167 (grub_command_init): Register the `export' function.
37168
37169 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
37170
37171 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
37172 explicitly to suppress gcc's warnings.
37173 * fs/fat.c (grub_fat_find_dir): Likewise.
37174 (grub_fat_label): Likewise.
37175 * fs/xfs.c (grub_xfs_read_inode): Likewise.
37176 (grub_xfs_mount): Likewise.
37177 (grub_xfs_label): Likewise.
37178 * fs/affs.c (grub_affs_mount): Likewise.
37179 (grub_affs_label): Likewise.
37180 (grub_affs_iterate_dir): Likewise.
37181 * fs/sfs.c (grub_sfs_mount): Likewise.
37182 (grub_sfs_iterate_dir): Likewise.
37183 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
37184 * fs/hfs.c (grub_hfs_mount): Likewise.
37185 (grub_hfs_cmp_catkeys): Likewise.
37186 (grub_hfs_find_dir): Likewise.
37187 (grub_hfs_dir): Likewise.
37188 (grub_hfs_label): Likewise.
37189 * fs/jfs.c (grub_jfs_mount): Likewise.
37190 (grub_jfs_opendir): Likewise.
37191 (grub_jfs_getent): Likewise.
37192 (grub_jfs_lookup_symlink): Likewise.
37193 (grub_jfs_label): Likewise.
37194 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
37195 (grub_hfsplus_iterate_dir): Likewise.
37196 (grub_hfsplus_btree_iterate_node): Made static.
37197
37198 * util/grub-emu.c (prefix): New variable.
37199 (grub_machine_set_prefix): New function.
37200 (main): Do not set the environment variable "prefix" here. Only
37201 set PREFIX, which is used later by grub_machine_set_prefix.
37202
37203 * include/grub/video.h: Do not include grub/symbol.h.
37204 (grub_video_register): Not exported. This symbol is not defined in
37205 the kernel.
37206 (grub_video_unregister): Likewise.
37207 (grub_video_iterate): Likewise.
37208 (grub_video_setup): Likewise.
37209 (grub_video_restore): Likewise.
37210 (grub_video_get_info): Likewise.
37211 (grub_video_get_blit_format): Likewise.
37212 (grub_video_set_palette): Likewise.
37213 (grub_video_get_palette): Likewise.
37214 (grub_video_set_viewport): Likewise.
37215 (grub_video_get_viewport): Likewise.
37216 (grub_video_map_color): Likewise.
37217 (grub_video_map_rgb): Likewise.
37218 (grub_video_map_rgba): Likewise.
37219 (grub_video_fill_rect): Likewise.
37220 (grub_video_blit_glyph): Likewise.
37221 (grub_video_blit_bitmap): Likewise.
37222 (grub_video_blit_render_target): Likewise.
37223 (grub_video_scroll): Likewise.
37224 (grub_video_swap_buffers): Likewise.
37225 (grub_video_create_render_target): Likewise.
37226 (grub_video_delete_render_target): Likewise.
37227 (grub_video_set_active_render_target): Likewise.
37228
37229 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
37230 Undefined.
37231 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
37232
37233 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
37234 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37235 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37236 instead of $(srcdir)/genkernsyms.sh.
37237
37238 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
37239 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37240 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37241 instead of $(srcdir)/genkernsyms.sh.
37242
37243 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
37244 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37245 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37246 instead of $(srcdir)/genkernsyms.sh.
37247
37248 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
37249 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37250 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37251 instead of $(srcdir)/genkernsyms.sh.
37252
37253 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
37254 genkernsyms.sh.
37255
37256 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
37257 genkernsyms.sh.
37258 (gensymlist.sh): New target.
37259 (genkernsyms.sh): Likewise.
37260
37261 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
37262 genkernsyms.sh.in and gensymlist.sh.in.
37263
37264 * genkernsyms.sh: Removed.
37265 * gensymlist.sh: Likewise.
37266
37267 * genkernsyms.sh.in: New file.
37268 * gensymlist.sh.in: Likewise.
37269
37270 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37271
37272 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
37273 clobber "prefix", since we may have already set it manually.
37274
37275 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37276
37277 * kern/misc.c (abort): New alias for grub_abort.
37278
37279 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
37280
37281 A new machine-specific function "grub_machine_set_prefix" is
37282 defined. This is called after loading modules, so that a prefix
37283 initialization can use modules. Also, this change adds an
37284 intensive debugging feature for the memory manager via the
37285 configure option "--enable-mm-debug".
37286
37287 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
37288 PART.LEN.
37289
37290 * kern/sparc64/ieee1275/init.c (abort): Removed.
37291 (grub_stop): Likewise.
37292 (grub_exit): New function.
37293 (grub_set_prefix): Renamed to ...
37294 (grub_machine_set_prefix): ... this.
37295 (grub_machine_init): Do not call grub_set_prefix.
37296
37297 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
37298 (grub_machine_set_prefix): ... this.
37299 (grub_machine_init): Do not call grub_set_prefix.
37300
37301 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
37302 (grub_machine_init): Do not set the prefix here.
37303
37304 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
37305
37306 * kern/efi/init.c: Include grub/mm.h.
37307 (grub_efi_set_prefix): New function.
37308
37309 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
37310 (grub_efi_get_filename): New function.
37311 (grub_print_device_path): Renamed to ...
37312 (grub_efi_print_device_path): ... this.
37313
37314 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
37315 [MM_DEBUG] (grub_realloc): Likewise.
37316 [MM_DEBUG] (grub_free): Likewise.
37317 [MM_DEBUG] (grub_memalign): Likewise.
37318 [MM_DEBUG] (grub_mm_debug): New variable.
37319 [MM_DEBUG] (grub_debug_malloc): New function.
37320 [MM_DEBUG] (grub_debug_free): New function.
37321 [MM_DEBUG] (grub_debug_realloc): New function.
37322 [MM_DEBUG] (grub_debug_memalign): New function.
37323
37324 * kern/misc.c (grub_abort): Print a newline to distinguish
37325 the message.
37326
37327 * kern/main.c (grub_main): Call grub_machine_set_prefix and
37328 grub_set_root_dev after loading modules. This is necessary when
37329 setting a prefix depends on modules.
37330
37331 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
37332 (grub_efi_print_device_path): ... this.
37333 (grub_efi_get_filename): New prototype.
37334 (grub_efi_set_prefix): Likewise.
37335
37336 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
37337 and grub/disk.h.
37338 (grub_efidisk_get_device_handle): New prototype.
37339 (grub_efidisk_get_device_name): Likewise.
37340
37341 * include/grub/mm.h: Include config.h.
37342 (MM_DEBUG): Removed.
37343 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
37344 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
37345 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
37346 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
37347 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
37348 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
37349 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
37350 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
37351 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
37352
37353 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
37354
37355 * disk/efi/efidisk.c: Include grub/partition.h.
37356 (iterate_child_devices): New function.
37357 (add_device): First, compare only last device path nodes, so that
37358 devices are sorted by the types.
37359 (grub_efidisk_get_device_handle): New function.
37360 (grub_efidisk_get_device_name): Likewise.
37361
37362 * configure.ac (--enable-mm-debug): New option to enable the
37363 memory manager debugging feature. This makes the binary much
37364 bigger, so is disabled by default.
37365
37366 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
37367
37368 Use grub_abort instead of grub_stop, and grub_exit must be
37369 define in each architecture now. Also, this change adds support
37370 for EFI disks.
37371
37372 * util/i386/pc/grub-probefs.c: Include grub/term.h.
37373 (grub_getkey): New function.
37374 (grub_term_get_current): Likewise.
37375
37376 * util/i386/pc/grub-setup.c: Include grub/term.h.
37377 (grub_getkey): New function.
37378 (grub_term_get_current): Likewise.
37379
37380 * util/misc.c (grub_stop): Renamed to ...
37381 (grub_exit): ... this.
37382
37383 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
37384 (grub_exit): ... this.
37385 (grub_machine_init): Use grub_abort instead of abort.
37386 (grub_stop): Removed.
37387
37388 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
37389 abort.
37390
37391 * kern/i386/pc/startup.S (grub_exit): New function.
37392 (cold_reboot): New label.
37393
37394 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
37395 (grub_efi_init): Call grub_efidisk_init.
37396 (grub_efi_fini): Call grub_efidisk_fini.
37397
37398 * kern/efi/efi.c: Include grub/mm.h.
37399 (grub_efi_console_control_guid): Renamed to ...
37400 (console_control_guid): ... this.
37401 (grub_efi_loaded_image_guid): Renamed to ...
37402 (loaded_image_guid): ... this.
37403 (grub_efi_locate_handle): New function.
37404 (grub_efi_open_protocol): Likewise.
37405 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
37406 GRUB_EFI_CONSOLE_CONTROL_GUID.
37407 (grub_efi_exit): Removed.
37408 (grub_stop): Likewise.
37409 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
37410 (grub_exit): New function.
37411 (grub_print_device_path): Likewise.
37412
37413 * kern/rescue.c (grub_rescue_cmd_exit): New function.
37414 (grub_enter_rescue_mode): Register "exit".
37415
37416 * kern/misc.c (grub_real_dprintf): A cosmetic change.
37417 (grub_abort): New function.
37418
37419 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
37420
37421 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
37422
37423 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
37424
37425 * include/grub/efi/efi.h (grub_efi_exit): Removed.
37426 (grub_print_device_path): New prototype.
37427 (grub_efi_locate_handle): Likewise.
37428 (grub_efi_open_protocol): Likewise.
37429
37430 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
37431 * disk/efi/efidisk.c: Likewise.
37432
37433 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
37434
37435 * include/grub/efi/console_control.h
37436 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
37437
37438 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
37439 last 8 bytes as an array.
37440 (GRUB_EFI_DISK_IO_GUID): New macro.
37441 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
37442 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
37443 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
37444 grub_uint8_t.
37445 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
37446 (struct grub_efi_device_path): Rename the member "sub_type" to
37447 "subtype".
37448 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
37449 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
37450 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
37451 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
37452 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
37453 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
37454 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
37455 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
37456 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
37457 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
37458 (struct grub_efi_pci_device_path): New structure.
37459 (grub_efi_pci_device_path_t): New type.
37460 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
37461 (struct grub_efi_pccard_device_path): New structure.
37462 (grub_efi_pccard_device_path_t): New type.
37463 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
37464 (struct grub_efi_memory_mapped_device_path): New structure.
37465 (grub_efi_memory_mapped_device_path_t): New type.
37466 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
37467 (struct grub_efi_vendor_device_path): New structure.
37468 (grub_efi_vendor_device_path_t): New type.
37469 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
37470 (struct grub_efi_controller_device_path): New structure.
37471 (grub_efi_controller_device_path_t): New type.
37472 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
37473 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
37474 (struct grub_efi_acpi_device_path): New structure.
37475 (grub_efi_acpi_device_path_t): New type.
37476 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
37477 (struct grub_efi_expanded_acpi_device_path): New structure.
37478 (grub_efi_expanded_acpi_device_path_t): New type.
37479 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
37480 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
37481 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
37482 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
37483 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
37484 (struct grub_efi_atapi_device_path): New structure.
37485 (grub_efi_atapi_device_path_t): New type.
37486 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
37487 (struct grub_efi_fibre_channel_device_path): New structure.
37488 (grub_efi_fibre_channel_device_path_t): New type.
37489 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
37490 (struct grub_efi_1394_device_path): New structure.
37491 (grub_efi_1394_device_path_t): New type.
37492 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
37493 (struct grub_efi_usb_device_path): New structure.
37494 (grub_efi_usb_device_path_t): New type.
37495 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
37496 (struct grub_efi_usb_class_device_path): New structure.
37497 (grub_efi_usb_class_device_path_t): New type.
37498 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
37499 (struct grub_efi_i2o_device_path): New structure.
37500 (grub_efi_i2o_device_path_t): New type.
37501 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
37502 (struct grub_efi_mac_address_device_path): New structure.
37503 (grub_efi_mac_address_device_path_t): New type.
37504 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
37505 (struct grub_efi_ipv4_device_path): New structure.
37506 (grub_efi_ipv4_device_path_t): New type.
37507 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
37508 (struct grub_efi_ipv6_device_path): New structure.
37509 (grub_efi_ipv6_device_path_t): New type.
37510 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
37511 (struct grub_efi_infiniband_device_path): New structure.
37512 (grub_efi_infiniband_device_path_t): New type.
37513 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
37514 (struct grub_efi_uart_device_path): New structure.
37515 (grub_efi_uart_device_path_t): New type.
37516 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
37517 (struct grub_efi_vendor_messaging_device_path): New structure.
37518 (grub_efi_vendor_messaging_device_path_t): New type.
37519 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
37520 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
37521 (struct grub_efi_hard_drive_device_path): New structure.
37522 (grub_efi_hard_drive_device_path_t): New type.
37523 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
37524 (struct grub_efi_cdrom_device_path): New structure.
37525 (grub_efi_cdrom_device_path_t): New type.
37526 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
37527 (struct grub_efi_vendor_media_device_path): New structure.
37528 (grub_efi_vendor_media_device_path_t): New type.
37529 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
37530 (struct grub_efi_file_path_device_path): New structure.
37531 (grub_efi_file_path_device_path_t): New type.
37532 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
37533 (struct grub_efi_protocol_device_path): New structure.
37534 (grub_efi_protocol_device_path_t): New type.
37535 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
37536 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
37537 (struct grub_efi_bios_device_path): New structure.
37538 (grub_efi_bios_device_path_t): New type.
37539 (struct grub_efi_disk_io): New structure.
37540 (grub_efi_disk_io_t): New type.
37541 (struct grub_efi_block_io_media): New structure.
37542 (grub_efi_block_io_media_t): New type.
37543 (struct grub_efi_block_io): New structure.
37544 (grub_efi_block_io_t): New type.
37545
37546 * include/grub/misc.h (grub_stop): Removed.
37547 (grub_exit): New prototype.
37548 (grub_abort): Likewise.
37549
37550 * include/grub/disk.h (enum grub_disk_dev_id): Added
37551 GRUB_DISK_DEVICE_EFIDISK_ID.
37552
37553 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
37554 disk/efi/efidisk.c.
37555 (kernel_syms.lst): Remove the target if an error occurs.
37556
37557 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
37558
37559 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
37560 as it was simply too buggy.
37561
37562 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
37563
37564 * kern/misc.c (grub_lltoa): New function.
37565 (grub_vsprintf): Added support for the long long suffix,
37566 i.e. "ll".
37567
37568 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
37569
37570 * Makefile.in (LDFLAGS): Add variable.
37571 (LD): Remove variable.
37572 * configure.ac: Add -m32 to LDFLAGS.
37573 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
37574 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
37575 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
37576 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
37577 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
37578 variables.
37579 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
37580 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
37581 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
37582
37583 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
37584
37585 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
37586 length for unknown glyph.
37587
37588 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
37589
37590 Add support for pre-loaded modules into the EFI port.
37591
37592 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
37593 completely. Accept one more argument DIR. The caller has changed.
37594
37595 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
37596
37597 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
37598 (grub_efi_loaded_image_guid): New variable.
37599 (grub_efi_get_loaded_image): New function.
37600 (grub_arch_modules_addr): Likewise.
37601
37602 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
37603 prototype.
37604
37605 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
37606 (struct grub_efi_loaded_image): New structure.
37607 (grub_efi_loaded_image_t): New type.
37608
37609 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
37610
37611 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
37612 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
37613 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
37614
37615 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
37616
37617 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
37618
37619 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
37620
37621 * DISTLIST: Added include/grub/efi/console.h,
37622 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
37623 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
37624
37625 * include/grub/efi/console.h: New file.
37626 * include/grub/efi/time.h: Likewise.
37627 * include/grub/i386/efi/kernel.h: Likewise.
37628 * kern/efi/init.c: Likewise.
37629 * kern/efi/mm.c: Likewise.
37630 * term/efi/console.c: Likewise.
37631
37632 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
37633 (grub_stop): Removed.
37634 (grub_get_rtc): Likewise.
37635 (grub_machine_init): Simply call grub_efi_init.
37636 (grub_machine_fini): Call grub_efi_fini.
37637
37638 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
37639 (grub_efi_output_string): Removed.
37640 (grub_efi_stall): New function.
37641 (grub_stop): Likewise.
37642 (grub_get_rtc): Likewise.
37643
37644 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
37645 (grub_efi_stall): New prototype.
37646 (grub_efi_allocate_pages): Likewise.
37647 (grub_efi_free_pages): Likewise.
37648 (grub_efi_get_memory_map): Likewise.
37649 (grub_efi_mm_init): Likewise.
37650 (grub_efi_mm_fini): Likewise.
37651 (grub_efi_init): Likewise.
37652 (grub_efi_fini): Likewise.
37653
37654 * include/grub/i386/efi/time.h: Do not include
37655 grub/symbol.h. Include grub/efi/time.h.
37656 (GRUB_TICKS_PER_SECOND): Removed.
37657 (grub_get_rtc): Likewise.
37658
37659 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
37660 Added padding. The EFI spec is buggy.
37661 (GRUB_EFI_BLACK): New macro.
37662 (GRUB_EFI_BLUE): Likewise.
37663 (GRUB_EFI_GREEN): Likewise.
37664 (GRUB_EFI_CYAN): Likewise.
37665 (GRUB_EFI_RED): Likewise.
37666 (GRUB_EFI_MAGENTA): Likewise.
37667 (GRUB_EFI_BROWN): Likewise.
37668 (GRUB_EFI_LIGHTGRAY): Likewise.
37669 (GRUB_EFI_BRIGHT): Likewise.
37670 (GRUB_EFI_DARKGRAY): Likewise.
37671 (GRUB_EFI_LIGHTBLUE): Likewise.
37672 (GRUB_EFI_LIGHTGREEN): Likewise.
37673 (GRUB_EFI_LIGHTCYAN): Likewise.
37674 (GRUB_EFI_LIGHTRED): Likewise.
37675 (GRUB_EFI_LIGHTMAGENTA): Likewise.
37676 (GRUB_EFI_YELLOW): Likewise.
37677 (GRUB_EFI_WHITE): Likewise.
37678 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
37679 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
37680 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
37681 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
37682 (GRUB_EFI_BACKGROUND_RED): Likewise.
37683 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
37684 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
37685 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
37686 (GRUB_EFI_TEXT_ATTR): Likewise.
37687
37688 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
37689 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
37690 (kernel_mod_HEADERS): Added efi/time.h.
37691
37692 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
37693
37694 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
37695 include/grub/efi/api.h, include/grub/efi/console_control.h,
37696 include/grub/efi/efi.h, include/grub/efi/pe32.h,
37697 include/grub/i386/efi/time.h, kern/efi/efi.c,
37698 kern/i386/efi/init.c, kern/i386/efi/startup.S,
37699 and util/i386/efi/grub-mkimage.c.
37700
37701 * Makefile.in (RMKFILES): Added i386-efi.rmk.
37702
37703 * genmk.rb (PModule#rule): Do not export symbols if
37704 #{prefix}_EXPORTS is set to "no".
37705
37706 * conf/i386-efi.mk: New file.
37707 * conf/i386-efi.rmk: Likewise.
37708 * include/grub/efi/api.h: Likewise.
37709 * include/grub/efi/console_control.h: Likewise.
37710 * include/grub/efi/efi.h: Likewise.
37711 * include/grub/efi/pe32.h: Likewise.
37712 * include/grub/i386/efi/time.h: Likewise.
37713 * kern/efi/efi.c: Likewise.
37714 * kern/i386/efi/init.c: Likewise.
37715 * kern/i386/efi/startup.S: Likewise.
37716 * util/i386/efi/grub-mkimage.c: Likewise.
37717
37718 2006-04-17 Marco Gerards <marco@gnu.org>
37719
37720 * include/grub/script.h: Include <grub/parser.h> and
37721 "grub_script.tab.h".
37722 (struct grub_lexer_param): New struct.
37723 (struct grub_parser_param): Likewise.
37724 (grub_script_create_arglist): Pass the state in an argument.
37725 (grub_script_add_arglist): Likewise.
37726 (grub_script_create_cmdline): Likewise.
37727 (grub_script_create_cmdblock): Likewise.
37728 (grub_script_create_cmdif): Likewise.
37729 (grub_script_create_cmdmenu): Likewise.
37730 (grub_script_add_cmd): Likewise.
37731 (grub_script_arg_add): Likewise.
37732 (grub_script_lexer_ref): Likewise.
37733 (grub_script_lexer_deref): Likewise.
37734 (grub_script_lexer_record_start): Likewise.
37735 (grub_script_lexer_record_stop): Likewise.
37736 (grub_script_mem_record): Likewise.
37737 (grub_script_mem_record_stop): Likewise.
37738 (grub_script_malloc): Likewise.
37739 (grub_script_yylex): Likewise.
37740 (grub_script_yyparse): Likewise.
37741 (grub_script_yyerror): Likewise.
37742 (grub_script_yylex): Likewise.
37743 (grub_script_lexer_init): Return the state.
37744
37745 * normal/lexer.c (grub_script_lexer_state): Removed variable.
37746 (grub_script_lexer_done): Likewise.
37747 (grub_script_lexer_getline): Likewise.
37748 (grub_script_lexer_refs): Likewise.
37749 (script): Likewise.
37750 (newscript): Likewise.
37751 (record): Likewise.
37752 (recording): Likewise.
37753 (recordpos): Likewise.
37754 (recordlen): Likewise.
37755 (grub_script_lexer_init): Return the state instead of setting
37756 global variables.
37757 (grub_script_lexer_ref): Use the newly added argument for state
37758 instead of globals.
37759 (grub_script_lexer_deref): Likewise.
37760 (grub_script_lexer_record_start): Likewise.
37761 (grub_script_lexer_record_stop): Likewise.
37762 (recordchar): Likewise.
37763 (nextchar): Likewise.
37764 (grub_script_yylex2): Likewise.
37765 (grub_script_yylex): Likewise.
37766 (grub_script_yyerror): Likewise.
37767
37768 * normal/parser.y (func_mem): Removed variable.
37769 (menu_entry): Likewise.
37770 (err): Likewise.
37771 (%lex-param): New parser option.
37772 (%parse-param): Likewise.
37773 (script): Always return the AST.
37774 (argument): Pass the state around.
37775 (arguments): Likewise.
37776 (grubcmd): Likewise.
37777 (commands): Likewise.
37778 (function): Likewise.
37779 (menuentry): Likewise.
37780 (if_statement): Likewise.
37781 (if): Likewise.
37782
37783 * normal/script.c (grub_script_memused): Removed variable.
37784 (grub_script_parsed): Likewise.
37785 (grub_script_malloc): Added a state argument. Use that instead of
37786 global variables.
37787 (grub_script_mem_record): Likewise.
37788 (grub_script_mem_record_stop): Likewise.
37789 (grub_script_arg_add): Likewise.
37790 (grub_script_add_arglist): Likewise.
37791 (grub_script_create_cmdline): Likewise.
37792 (grub_script_create_cmdif): Likewise.
37793 (grub_script_create_cmdmenu): Likewise.
37794 (grub_script_add_cmd): Likewise.
37795 (grub_script_parse): Setup the state before calling the parser.
37796
37797 2006-04-16 Marco Gerards <marco@gnu.org>
37798
37799 * normal/command.c (grub_command_init): Remove the title command.
37800
37801 * normal/lexer.c (grub_script_yylex): Renamed from this...
37802 (grub_script_yylex2): ... to this.
37803 (grub_script_yylex): New function. Temporary
37804 introduced to filter some tokens.
37805 (grub_script_yyerror): Print a newline.
37806
37807 * normal/main.c (read_config_file): Output information about the
37808 lines that contain errors. Wait for a key after all lines have
37809 been processed. Don't return an empty menu.
37810
37811 * normal/parser.y (func_mem): Don't initialize.
37812 (menu_entry): Likewise.
37813 (err): New variable.
37814 (script): Don't return anything when an error was encountered.
37815 (ws, returns): Removed rules.
37816 (argument): Disabled concatenated variable support.
37817 (arguments): Remove explicit separators.
37818 (grubcmd): Likewise.
37819 (function): Likewise.
37820 (menuentry): Likewise.
37821 (if): Likewise.
37822 (commands): Likewise. Add error handling.
37823
37824 * normal/script.c (grub_script_create_cmdline): If
37825 `grub_script_parsed' is 0, assume the parser encountered an error.
37826
37827 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
37828
37829 * configure.ac: Add support for EFI. Fix the typo
37830 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
37831
37832 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
37833
37834 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
37835 foreign multibyte characters should be shown correctly.
37836
37837 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
37838
37839 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
37840 calculation.
37841 (read_config_file): Made it to close file before returning.
37842
37843 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
37844
37845 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
37846 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
37847 video/i386/pc/vbefill.c.
37848
37849 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
37850 video/i386/pc/vbefill.c.
37851
37852 * include/grub/video.h (grub_video_blit_format): New enum.
37853 (grub_video_mode_info): Added new member blit_format.
37854 (grub_video_get_blit_format): New function prototype.
37855
37856 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
37857 function prototype.
37858 (grub_video_vbe_map_rgb): Likewise.
37859 (grub_video_vbe_unmap_color): Likewise.
37860
37861 * include/grub/i386/pc/vbeblit.h: New file.
37862
37863 * include/grub/i386/pc/vbefill.h: New file.
37864
37865 * video/video.c (grub_video_get_blit_format): New function.
37866 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
37867 (grub_video_vbe_map_rgb): Likewise.
37868 (grub_video_vbe_unmap_color): Likewise.
37869
37870 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
37871 optimized fills.
37872 (grub_video_vbe_blit_render_target): Changed to use more optimized
37873 blits.
37874 (grub_video_vbe_setup): Added detection for optimized settings.
37875 (grub_video_vbe_create_render_target): Likewise.
37876
37877 * video/i386/pc/vbeblit.c: New file.
37878
37879 * video/i386/pc/vbefill.c: New file.
37880
37881 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
37882
37883 * font/manager.c (grub_font_get_glyph): Removed font fixup from
37884 here...
37885
37886 * util/unifont2pff.rb: ... and moved it to here. Improved argument
37887 parsing to support both hex and dec ranges. If filename was missing
37888 show usage information.
37889
37890 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
37891
37892 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
37893 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
37894
37895 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
37896 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
37897 (video_mod_SOURCES): Added.
37898 (video_mod_CFLAGS): Likewise.
37899 (video_mod_LDFLAGS): Likewise.
37900 (gfxterm_mod_SOURCES): Likewise.
37901 (gfxterm_mod_CFLAGS): Likewise.
37902 (gfxterm_mod_LDFLAGS): Likewise.
37903 (videotest_mod_SOURCES): Likewise.
37904 (videotest_mod_CFLAGS): Likewise.
37905 (videotest_mod_LDFLAGS): Likewise.
37906 (vesafb_mod_SOURCES): Removed.
37907 (vesafb_mod_CFLAGS): Likewise.
37908 (vesafb_mod_LDFLAGS): Likewise.
37909 (vga_mod_SOURCES): Likewise.
37910 (vga_mod_CFLAGS): Likewise.
37911 (vga_mod_LDFLAGS): Likewise.
37912
37913 * commands/videotest.c: New file.
37914
37915 * font/manager.c (fill_with_default_glyph): Modified to use
37916 grub_font_glyph.
37917 (grub_font_get_glyph): Likewise.
37918 (fontmanager): Renamed from this...
37919 (font_manager): ... to this.
37920
37921 * include/grub/font.h (grub_font_glyph): Added new structure.
37922 (grub_font_get_glyph): Modified to use grub_font_glyph.
37923
37924 * include/grub/misc.h (grub_abs): Added as inline function.
37925
37926 * include/grub/video.h: New file.
37927
37928 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
37929 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
37930 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
37931 (grub_vbe_get_controller_info): Renamed from this...
37932 (grub_vbe_bios_get_controller_info): ... to this.
37933 (grub_vbe_get_mode_info): Renamed from this...
37934 (grub_vbe_bios_get_mode_info): ... to this.
37935 (grub_vbe_set_mode): Renamed from this...
37936 (grub_vbe_bios_set_mode): ... to this.
37937 (grub_vbe_get_mode): Renamed from this...
37938 (grub_vbe_bios_get_mode): ... to this.
37939 (grub_vbe_set_memory_window): Renamed from this...
37940 (grub_vbe_bios_set_memory_window): ... to this.
37941 (grub_vbe_get_memory_window): Renamed from this...
37942 (grub_vbe_bios_get_memory_window): ... to this.
37943 (grub_vbe_set_scanline_length): Renamed from this...
37944 (grub_vbe_set_scanline_length): ... to this.
37945 (grub_vbe_get_scanline_length): Renamed from this...
37946 (grub_vbe_bios_get_scanline_length): ... to this.
37947 (grub_vbe_set_display_start): Renamed from this...
37948 (grub_vbe_bios_set_display_start): ... to this.
37949 (grub_vbe_get_display_start): Renamed from this...
37950 (grub_vbe_bios_get_display_start): ... to this.
37951 (grub_vbe_set_palette_data): Renamed from this...
37952 (grub_vbe_bios_set_palette_data): ... to this.
37953 (grub_vbe_set_pixel_rgb): Removed.
37954 (grub_vbe_set_pixel_index): Likewise.
37955
37956 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
37957 from this...
37958 (grub_vbe_bios_get_controller_info): ... to this.
37959 (grub_vbe_get_mode_info): Renamed from this...
37960 (grub_vbe_bios_get_mode_info): ... to this.
37961 (grub_vbe_set_mode): Renamed from this...
37962 (grub_vbe_bios_set_mode): ... to this.
37963 (grub_vbe_get_mode): Renamed from this...
37964 (grub_vbe_bios_get_mode): ... to this.
37965 (grub_vbe_set_memory_window): Renamed from this...
37966 (grub_vbe_bios_set_memory_window): ... to this.
37967 (grub_vbe_get_memory_window): Renamed from this...
37968 (grub_vbe_bios_get_memory_window): ... to this.
37969 (grub_vbe_set_scanline_length): Renamed from this...
37970 (grub_vbe_set_scanline_length): ... to this.
37971 (grub_vbe_get_scanline_length): Renamed from this...
37972 (grub_vbe_bios_get_scanline_length): ... to this.
37973 (grub_vbe_set_display_start): Renamed from this...
37974 (grub_vbe_bios_set_display_start): ... to this.
37975 (grub_vbe_get_display_start): Renamed from this...
37976 (grub_vbe_bios_get_display_start): ... to this.
37977 (grub_vbe_set_palette_data): Renamed from this...
37978 (grub_vbe_bios_set_palette_data): ... to this.
37979 (grub_vbe_bios_get_controller_info): Fixed problem with registers
37980 getting corrupted after calling it. Added more pushes and pops.
37981 (grub_vbe_bios_set_mode): Likewise.
37982 (grub_vbe_bios_get_mode): Likewise.
37983 (grub_vbe_bios_get_memory_window): Likewise.
37984 (grub_vbe_bios_set_scanline_length): Likewise.
37985 (grub_vbe_bios_get_scanline_length): Likewise.
37986 (grub_vbe_bios_get_display_start): Likewise.
37987 (grub_vbe_bios_set_palette_data): Likewise.
37988
37989 * normal/cmdline.c (cl_set_pos): Refresh the screen.
37990 (cl_insert): Likewise.
37991 (cl_delete): Likewise.
37992
37993 * term/gfxterm.c: New file.
37994
37995 * term/i386/pc/vesafb.c: Removed file.
37996
37997 * video/video.c: New file.
37998
37999 * video/i386/pc/vbe.c (real2pm): Added new function.
38000 (grub_video_vbe_draw_pixel): Likewise.
38001 (grub_video_vbe_get_video_ptr): Likewise.
38002 (grub_video_vbe_get_pixel): Likewise
38003 (grub_video_vbe_init): Likewise.
38004 (grub_video_vbe_fini): Likewise.
38005 (grub_video_vbe_setup): Likewise.
38006 (grub_video_vbe_get_info): Likewise.
38007 (grub_video_vbe_set_palette): Likewise.
38008 (grub_video_vbe_get_palette): Likewise.
38009 (grub_video_vbe_set_viewport): Likewise.
38010 (grub_video_vbe_get_viewport): Likewise.
38011 (grub_video_vbe_map_color): Likewise.
38012 (grub_video_vbe_map_rgb): Likewise.
38013 (grub_video_vbe_map_rgba): Likewise.
38014 (grub_video_vbe_unmap_color): Likewise.
38015 (grub_video_vbe_fill_rect): Likewise.
38016 (grub_video_vbe_blit_glyph): Likewise.
38017 (grub_video_vbe_blit_bitmap): Likewise.
38018 (grub_video_vbe_blit_render_target): Likewise.
38019 (grub_video_vbe_scroll): Likewise.
38020 (grub_video_vbe_swap_buffers): Likewise.
38021 (grub_video_vbe_create_render_target): Likewise.
38022 (grub_video_vbe_delete_render_target): Likewise.
38023 (grub_video_vbe_set_active_render_target): Likewise.
38024 (grub_vbe_set_pixel_rgb): Remove function.
38025 (grub_vbe_set_pixel_index): Likewise.
38026 (index_color_mode): Remove static variable.
38027 (active_mode): Likewise.
38028 (framebuffer): Likewise.
38029 (bytes_per_scan_line): Likewise.
38030 (grub_video_vbe_adapter): Added new static variable.
38031 (framebuffer): Likewise.
38032 (render_target): Likewise.
38033 (initial_mode): Likewise.
38034 (mode_in_use): Likewise.
38035 (mode_list): Likewise.
38036
38037 2006-03-10 Marco Gerards <marco@gnu.org>
38038
38039 * configure.ac (AC_INIT): Bumped to 1.93.
38040
38041 * DISTLIST: Added `include/grub/hfs.h'.
38042
38043 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
38044
38045 * boot/i386/pc/boot.S (general_error): Before looping, try INT
38046 18H, which might help the BIOS falling back to next boot media.
38047
38048 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
38049
38050 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
38051 Poe Chen <poe.poechen@gmail.com>.
38052
38053 2006-01-17 Marco Gerards <marco@gnu.org>
38054
38055 * include/grub/normal.h: Include <grub/script.h>.
38056 (grub_command_list): Removed struct.
38057 (grub_command_list_t): Removed type.
38058 (grub_menu_entry): Remove members `num' and `command_list'. Add
38059 members `commands' and `sourcecode'.
38060 * include/grub/script.h: Add inclusion guards.
38061 (grub_script_cmd_menuentry): New struct.
38062 (grub_script_execute_menuentry): New prototype.
38063 (grub_script_lexer_record_start): Likewise.
38064 (grub_script_lexer_record_stop): Likewise.
38065 * normal/execute.c (grub_script_execute_menuentry): New function.
38066 * normal/lexer.c (record, recording, recordpos, recordlen): New
38067 variables.
38068 (grub_script_lexer_record_start): New function.
38069 (grub_script_lexer_record_stop): Likewise.
38070 (recordchar): Likewise.
38071 (nextchar): Likewise.
38072 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
38073 2048 as the buffer size. Add the tokens `menuentry' and `@'.
38074 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
38075 (current_menu): New variable.
38076 (free_menu): Mainly rewritten.
38077 (grub_normal_menu_addentry): New function.
38078 (read_config_file): Rewritten.
38079 * normal/menu.c (run_menu_entry): Mainly rewritten.
38080 * normal/menu_entry.c (make_screen): Rewritten the code to insert
38081 the menu entry.
38082 (run): Mainly rewritten.
38083 * normal/parser.y (menu_entry): New variable.
38084 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
38085 (menuentry): New rule.
38086 (command): Add `menuentry'.
38087 (if_statement): Allow additional returns before `fi'.
38088 * normal/script.c (grub_script_create_cmdmenu): New function.
38089
38090 2006-01-03 Marco Gerards <marco@gnu.org>
38091
38092 * INSTALL: GNU Bison is required.
38093 * configure.ac: Rewritten the test to detect Bison.
38094 * Makefile.in (YACC): New variable. Reported by Xun Sun
38095 <xun.sun.cn@gmail.com>.
38096
38097 2006-01-03 Marco Gerards <marco@gnu.org>
38098
38099 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
38100 the HFS+ filesystem to filesystem blocks.
38101 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
38102 GCC warning is silenced.
38103
38104 2006-01-03 Marco Gerards <marco@gnu.org>
38105
38106 * partmap/apple.c (apple_partition_map_iterate): Convert the data
38107 read from disk from big endian to host byte order.
38108
38109 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
38110
38111 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
38112 documentation.
38113 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
38114 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
38115 embedded HFS+ filesystem.
38116 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
38117 (grub_hfs_sblock): Move from here...
38118 * include/grub/hfs.h: To here... New file.
38119 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
38120 documentation.
38121 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
38122 New macros.
38123 (grub_hfsplus_volheader): Change type of member `magic' to
38124 `grub_uint16_t'.
38125 (grub_hfsplus_data): Add new member `embedded_offset'.
38126 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
38127 returned block.
38128 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
38129 Calculate the offset.
38130
38131 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38132
38133 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
38134 Removed.
38135 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
38136
38137 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38138
38139 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
38140 ENV->NAME is NULL after allocating ENV->VALUE.
38141
38142 2005-12-25 Marco Gerards <marco@gnu.org>
38143
38144 * kern/env.c (grub_env_set): Rewritten the error handling code.
38145
38146 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38147
38148 * geninit.sh: Made more robust, and more portable.
38149
38150 2005-12-25 Marco Gerards <marco@gnu.org>
38151
38152 Add support for Apple HFS+ filesystems.
38153
38154 * fs/hfsplus.c: New file.
38155
38156 * DISTLIST: Added `fs/hfsplus.c'.
38157
38158 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
38159 (hfsplus_mod_SOURCES): New variable.
38160 (hfsplus_mod_CFLAGS): Likewise.
38161 (hfsplus_mod_LDFLAGS): Likewise.
38162 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
38163 (grub_setup_SOURCES): Likewise.
38164 (grub_mkdevicemap_SOURCES): Likewise.
38165 (grub_emu_SOURCES): Likewise.
38166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38167
38168 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
38169
38170 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
38171
38172 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38173
38174 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
38175 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
38176 include/grub/parser.h, include/grub/script.h, kern/parser.c,
38177 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
38178 normal/lexer.c, normal/parser.y, normal/script.c, and
38179 partmap/gpt.c.
38180 Removed kern/sparc64/cache.c.
38181
38182 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
38183 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
38184 grub_emu_init.c.
38185
38186 * configure.ac (AC_INIT): Bumped to 1.92.
38187
38188 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
38189
38190 * kern/err.c (grub_error_push): Added new function to support error
38191 stacks.
38192 (grub_error_pop): Likewise.
38193 (grub_error_stack_items): New local variable to support error stacks.
38194 (grub_error_stack_pos): Likewise.
38195 (grub_error_stack_assert): Likewise.
38196 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
38197 stack depth.
38198 (grub_print_error): Added support to print errors from error stack.
38199
38200 * include/grub/err.h (grub_error_push): Added function prototype.
38201 (grub_error_pop): Likewise.
38202
38203 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
38204
38205 * configure.ac: Accept `powerpc64' as host_cpu.
38206 (amd64): Rename to `biarch32'.
38207
38208 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
38209 non-cacheline-aligned addresses.
38210
38211 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
38212 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
38213 if `size' is non-zero.
38214
38215 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
38216
38217 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
38218 and `cd' to make sure the filename is not prefixed with a
38219 directory name.
38220 (pkgdata_MODULES): Add `gpt.mod'.
38221 (gpt_mod_SOURCES): New variable.
38222 (gpt_mod_CFLAGS): Likewise.
38223 (gpt_mod_LDFLAGS): Likewise.
38224
38225 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
38226
38227 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
38228 New macro.
38229
38230 * partmap/gpt.c: New file.
38231
38232 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
38233 GPT partition map is detected.
38234
38235 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
38236
38237 * commands/i386/pc/play.c: New file.
38238 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
38239 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
38240 macros.
38241
38242 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
38243
38244 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
38245 ((unused))' to silence gcc warning.
38246
38247 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
38248
38249 * configure.ac: Correct `AC_PROG_YACC' test.
38250
38251 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38252
38253 * util/powerpc/ieee1275/grub-install.in: Run the mount point
38254 check before installing files.
38255
38256 2005-11-22 Mike Small <smallm@panix.com>
38257
38258 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
38259 number regex so multidigit numbers are recognized correctly.
38260
38261 2005-11-22 Mike Small <smallm@panix.com>
38262
38263 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
38264 debugging message before attempting to claim memory.
38265 (grub_rescue_cmd_initrd): Add a claim debugging message and try
38266 multiple addresses in case of failure.
38267
38268 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38269
38270 * term/tparm.c (get_space): Remove empty `if' statement.
38271
38272 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
38273
38274 * kern/parser.c (check_varstate): Rename `state' to 's'.
38275
38276 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38277
38278 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
38279 variable definitions to the beginning of each function. Sort stack
38280 variables by size.
38281 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
38282 `buf' argument to `char *'.
38283
38284 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38285
38286 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
38287 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38288 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38289 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38290 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38291 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38292 configfile.mod, search.mod, gzio.mod and test.mod.
38293 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38294 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38295 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38296 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38297 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38298 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38299 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38300 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38301 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38302 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38303 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38304 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38305 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38306 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38307 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38308 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38309 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38310 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38311 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38312 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38313 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38314 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38315 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
38316
38317 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
38318 `grep --include'.
38319 (pkgdata_MODULES): Add test.mod.
38320
38321 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38322
38323 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
38324 appending to variables with "+=".
38325 (PModule): Use full pathname to generate *.lst filenames.
38326
38327 * Makefile.in: Fixed list rules moved from genmk.rb.
38328 (.DELETE_ON_ERROR): New special target.
38329 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
38330
38331 * conf/i386-pc.rmk: Include conf/common.mk.
38332 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38333 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38334 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38335 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38336 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38337 configfile.mod, search.mod, gzio.mod and test.mod.
38338 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38339 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38340 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38341 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38342 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38343 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38344 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38345 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38346 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38347 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38348 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38349 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38350 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38351 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38352 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38353 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38354 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38355 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38356 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38357 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38358 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38359 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38360 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
38361 here...
38362 * conf/common.rmk: ... to here. New file.
38363
38364 * conf/common.mk: New file.
38365
38366 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
38367
38368 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
38369 (grub_script.tab.c): ... here.
38370
38371 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
38372 (grub_script.tab.c): ... here.
38373
38374 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
38375 (grub_script.tab.c): ... here.
38376
38377 * normal/command.c (grub_command_find): Fixed a memory leak of
38378 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
38379
38380 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38381
38382 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
38383 "@" which marks the start of a comment on ARM.
38384 (VARIABLE): Likewise.
38385
38386 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38387
38388 Add support for Linux/ADFS partition tables.
38389
38390 * partmap/acorn.c: New file.
38391
38392 * include/grub/acorn_filecore.h: Likewise.
38393
38394 * DISTLIST: Added `partmap/acorn.c' and
38395 `include/grub/acorn_filecore.h'.
38396
38397 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38398 `partmap/acorn.c'.
38399 (pkgdata_MODULES): Add `acorn.mod'.
38400 (acorn_mod_SOURCES): New variable.
38401 (acorn_mod_CFLAGS): Likewise.
38402
38403 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
38404 `partmap/acorn.c'.
38405 (pkgdata_MODULES): Add `acorn.mod'.
38406 (acorn_mod_SOURCES): New variable.
38407 (acorn_mod_CFLAGS): Likewise.
38408
38409 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
38410 (pkgdata_MODULES): Add `acorn.mod'.
38411 (acorn_mod_SOURCES): New variable.
38412 (acorn_mod_CFLAGS): Likewise.
38413 (acorn_mod_LDFLAGS): Likewise.
38414
38415 * include/types.h (grub_disk_addr_t): New typedef.
38416
38417 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
38418
38419 * geninit.sh: New file.
38420
38421 * geninitheader.sh: Likewise.
38422
38423 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
38424 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
38425 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
38426 * commands/configfile.c (grub_configfile_init)
38427 (grub_configfile_fini): Likewise.
38428 * commands/default.c (grub_default_init, grub_default_fini):
38429 Likewise.
38430 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
38431 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
38432 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
38433 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
38434 Likewise.
38435 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
38436 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
38437 Likewise.
38438 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
38439 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
38440 Likewise.
38441 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
38442 Likewise.
38443 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
38444 Likewise.
38445 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
38446 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
38447 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
38448 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
38449 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
38450 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
38451 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
38452 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
38453 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
38454 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
38455 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
38456 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
38457 * partmap/amiga.c (grub_amiga_partition_map_init)
38458 (grub_amiga_partition_map_fini): Likewise.
38459 * partmap/apple.c (grub_apple_partition_map_init)
38460 (grub_apple_partition_map_fini): Likewise.
38461 * partmap/pc.c (grub_pc_partition_map_init)
38462 (grub_pc_partition_map_fini): Likewise.
38463 * partmap/sun.c (grub_sun_partition_map_init,
38464 grub_sun_partition_map_fini): Likewise.
38465 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
38466 Likewise.
38467
38468 * util/grub-emu.c: Include <grub_modules_init.h>.
38469 (main): Don't initialize and de-initialize any modules directly,
38470 use `grub_init_all' and `grub_fini_all' instead.
38471
38472 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
38473 `grub_vesafb_mod_init'.
38474 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
38475 all users.
38476 * term/i386/pc/vga.c (grub_vga_init): Renamed to
38477 `grub_vga_mod_init'. Updated all users.
38478 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
38479
38480 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
38481 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
38482 rules.
38483
38484 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
38485 Generate a function to initialize the module in utilities.
38486 Updated all callers.
38487 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
38488 initialize the module in utilities. Updated all callers.
38489
38490 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
38491
38492 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
38493 escape sequence and a literal ^L to clear the screen.
38494
38495 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
38496 when returning from Open Firmware.
38497
38498 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
38499
38500 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
38501 (grub_ofconsole_height): Likewise.
38502 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
38503 manually insert a '\n'.
38504 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
38505 `grub_ofconsole_height'. Return early if these are already set.
38506
38507 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
38508
38509 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
38510 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
38511 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
38512 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
38513 and `normal/script.c'.
38514 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38515 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38516 (test_mod_SOURCES): New variable.
38517 (test_mod_CFLAGS): Likewise.
38518 (test_mod_LDFLAGS): Likewise.
38519 (pkgdata_MODULES): Add `test.mod'.
38520 (grub_script.tab.c): New rule.
38521 (grub_script.tab.h): Likewise.
38522
38523 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
38524
38525 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38526 `commands/test.c', `normal/execute.c', `normal/lexer.c',
38527 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38528 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38529 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38530 (test_mod_SOURCES): New variable.
38531 (test_mod_CFLAGS): Likewise.
38532 (pkgdata_MODULES): Add `test.mod'.
38533 (grub_script.tab.c): New rule.
38534 (grub_script.tab.h): Likewise.
38535
38536 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
38537
38538 Add initial scripting support.
38539
38540 * commands/test.c: New file.
38541 * include/grub/script.h: Likewise.
38542 * normal/execute.c: Likewise.
38543 * normal/function.c: Likewise.
38544 * normal/lexer.c: Likewise.
38545 * normal/parser.y: Likewise.
38546 * normal/script.c: Likewise.
38547
38548 * configure.ac: Add `AC_PROG_YACC' test.
38549
38550 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
38551 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
38552 `normal/function.c' and `normal/script.c'.
38553 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38554 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38555 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
38556 variables.
38557 (pkgdata_MODULES): Add `test.mod'.
38558 (grub_script.tab.c): New rule.
38559 (grub_script.tab.h): Likewise.
38560
38561 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
38562
38563 * include/grub/normal.h (grub_test_init): New prototype.
38564 (grub_test_fini): Likewise.
38565
38566 * normal/command.c: Include <grub/script.h>.
38567 (grub_command_execute): Rewritten.
38568
38569 * util/grub-emu.c (main): Call `grub_test_init' and
38570 `grub_test_fini'.
38571
38572 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
38573
38574 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
38575 to 0.
38576 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
38577 there are no pending characters.
38578
38579 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
38580
38581 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
38582 `grub_strndup' to drop device arguments. Replace unnecessary
38583 `grub_strndup' with `grub_strdup'.
38584
38585 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
38586
38587 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
38588 `debug' environment variable has been set.
38589
38590 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
38591
38592 * Makefile.in (install-local): Use $(DATA).
38593 (uninstall): Likewise.
38594 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
38595 (sbin_UTILITIES): ... to here.
38596 (sbin_SCRIPTS): New variable.
38597 (grub_install_SOURCES): New variable.
38598 * util/powerpc/ieee1275/grub-install.in: New file.
38599 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
38600 variable.
38601 (add_segments): Call `grub_util_get_path'.
38602
38603 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
38604
38605 From Timothy Baldwin:
38606 * commands/ls.c (grub_ls_list_files): Close FILE with
38607 grub_file_close.
38608 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
38609
38610 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
38611
38612 * include/grub/parser.h: New file.
38613
38614 * kern/parser.c: Likewise.
38615
38616 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
38617 (grub_setup_SOURCES): Likewise.
38618 (grub_probefs_SOURCES): Likewise.
38619 (grub_emu_SOURCES): Likewise.
38620 (kernel_img_HEADERS): Add `parser.h'.
38621
38622 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
38623 (grub_emu_SOURCES): Add `kern/parser.c'.
38624 (grubof_SOURCES): Likewise.
38625
38626 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
38627 (grubof_SOURCES): Add `kern/parser.c'.
38628
38629 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
38630
38631 * kern/misc.c (grub_split_cmdline): Removed function.
38632
38633 * kern/rescue.c: Include <grub/parser.h>.
38634 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
38635 of `grub_split_cmdline'.
38636
38637 * normal/command.c: Include <grub/parser.h>.
38638 (grub_command_execute): Use `grub_parser_split_cmdline' instead
38639 of `grub_split_cmdline'.
38640
38641 * normal/completion.c: Include <grub/parser.h>.
38642 (cmdline_state): New variable.
38643 (iterate_dir): End the filename with a quote depending on the
38644 command line state.
38645 (get_state): new function.
38646 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
38647 split the arguments and determine the current argument. When the
38648 argument string is not quoted, escape all spaces.
38649
38650 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
38651
38652 * normal/sparc64/setjmp.S: New file.
38653
38654 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
38655
38656 * include/grub/sparc64/libgcc.h: New file.
38657 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
38658 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
38659 normal/sparc64/setjmp.c.
38660
38661 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
38662
38663 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
38664 * kern/sparc64/cache.S: New file.
38665 * kern/sparc64/cache.c: Removed.
38666 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
38667 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
38668 -mtune=ultrasparc.
38669 (COMMON_LDFLAGS): Add -melf64_sparc.
38670 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
38671 (grubof_SOURCES): Use cache.S instead of cache.c.
38672 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
38673 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
38674 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
38675 commented though.
38676 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
38677 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
38678 (linux_mod_CFLAGS): Commented out.
38679 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
38680 out because module isn't built.
38681 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
38682 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
38683 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
38684 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
38685 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
38686 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
38687 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
38688 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
38689 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
38690 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
38691 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38692 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38693 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
38694 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
38695
38696 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
38697
38698 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
38699 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
38700 longer, because HFS should not be used on PC.
38701
38702 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38703
38704 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
38705 consistently within the loop.
38706
38707 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
38708
38709 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
38710 directory can not be read.
38711
38712 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
38713
38714 * configure.ac (AC_INIT): Increase the version number to 1.91.
38715
38716 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
38717 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
38718 term/i386/pc/serial.c.
38719
38720 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
38721
38722 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
38723 file size must be permitted.
38724
38725 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
38726 between %ah and %al.
38727
38728 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
38729
38730 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
38731 grub_uint64_t.
38732 Call the hook with a NUL-terminated filename.
38733 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
38734 grub_cpu_to_be32.
38735
38736 * kern/term.c (cursor_state): New variable.
38737 (grub_term_set_current): Reset the cursor state on a new
38738 terminal.
38739 (grub_setcursor): Rewritten to use CURSOR_STATE.
38740 (grub_getcursor): New function.
38741
38742 * include/grub/term.h (grub_getcursor): New prototype.
38743
38744 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
38745 integers on ARM. Reported by Timothy Baldwin
38746 <T.E.Baldwin99@members.leeds.ac.uk>.
38747
38748 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
38749
38750 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
38751 allocated.
38752 (grub_sfs_dir): Likewise.
38753
38754 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
38755
38756 Add support for the SFS filesystem.
38757
38758 * fs/sfs.c: New file.
38759
38760 * DISTLIST: Added `fs/sfs.c'.
38761
38762 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
38763 (grub_probefs_SOURCES): Likewise.
38764 (grub_emu_SOURCES): Likewise.
38765 (pkgdata_MODULES): Add `sfs.mod'.
38766 (sfs_mod_SOURCES): New variable.
38767 (sfs_mod_CFLAGS): Likewise.
38768 (sfs_mod_LDFLAGS): Likewise.
38769
38770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
38771 (pkgdata_MODULES): Add `sfs.mod'.
38772 (sfs_mod_SOURCES): New variable.
38773 (sfs_mod_CFLAGS): Likewise.
38774
38775 * util/grub-emu.c (main): Call `grub_sfs_init' and
38776 `grub_sfs_fini'.
38777
38778 * include/grub/fs.h (grub_sfs_init): New prototype.
38779 (grub_sfs_fini): Likewise.
38780
38781 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
38782
38783 Add support for the AFFS filesystem.
38784
38785 * fs/affs.c: New file.
38786
38787 * DISTLIST: Added `fs/affs.c'.
38788
38789 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
38790 (grub_probefs_SOURCES): Likewise.
38791 (grub_emu_SOURCES): Likewise.
38792 (pkgdata_MODULES): Add `affs.mod'.
38793 (affs_mod_SOURCES): New variable.
38794 (affs_mod_CFLAGS): Likewise.
38795 (affs_mod_LDFLAGS): Likewise.
38796
38797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
38798 (pkgdata_MODULES): Add `affs.mod'.
38799 (affs_mod_SOURCES): New variable.
38800 (affs_mod_CFLAGS): Likewise.
38801
38802 * util/grub-emu.c (main): Call `grub_affs_init' and
38803 `grub_affs_fini'.
38804
38805 * include/grub/fs.h (grub_affs_init): New prototype.
38806 (grub_affs_fini): Likewise.
38807
38808 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
38809
38810 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
38811
38812 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
38813
38814 * configure.ac: Accept `x86_64' as host_cpu. In that case add
38815 `-m32' to CFLAGS.
38816
38817 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
38818 linking.
38819
38820 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
38821 (COMMON_LDFLAGS): New variable.
38822 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
38823 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
38824 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
38825 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
38826 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
38827 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
38828 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
38829 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
38830 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
38831 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
38832 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
38833 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
38834 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
38835 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
38836 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
38837 variables.
38838 (normal_mod_ASFLAGS): Add `-m32'.
38839
38840 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
38841 (grub_host_size_t, grub_host_ssize_t): New types.
38842 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
38843 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
38844 `GRUB_HOST_SIZEOF_VOID_P'.
38845
38846 * include/grub/kernel.h (struct grub_module_header): Type of
38847 member offset changed to `grub_host_off_t'. Type of member size
38848 changed to `grub_host_size_t'.
38849 (struct grub_module_info): Type of member offset changed to
38850 `grub_host_off_t'. Type of member size changed to
38851 `grub_host_size_t'.
38852
38853 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
38854
38855 Make GRUB's kernel compliant to Multiboot Specification.
38856
38857 * kern/i386/pc/startup.S (multiboot_header): New label.
38858 (multiboot_entry): Likewise.
38859 (multiboot_trampoline): Likewise.
38860
38861 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38862 Increased to 0x4A0.
38863
38864 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
38865 put parentheses after a question mark.
38866 [!GRUB_UTIL] (my_mod): New variable.
38867
38868 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
38869
38870 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
38871
38872 Adds support for the XFS filesystem. Btrees are not supported
38873 yet.
38874
38875 * fs/xfs.c: New file.
38876
38877 * DISTLIST: Added `fs/xfs.c'.
38878
38879 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
38880 (grub_probefs_SOURCES): Likewise.
38881 (grub_emu_SOURCES): Likewise.
38882 (pkgdata_MODULES): Add `xfs.mod'.
38883 (xfs_mod_SOURCES): New variable.
38884 (xfs_mod_CFLAGS): Likewise.
38885
38886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
38887 (pkgdata_MODULES): Add `xfs.mod'.
38888 (xfs_mod_SOURCES): New variable.
38889 (xfs_mod_CFLAGS): Likewise.
38890
38891 * util/grub-emu.c (main): Call `grub_xfs_init' and
38892 `grub_xfs_fini'.
38893
38894 * include/grub/fs.h (grub_xfs_init): New prototype.
38895 (grub_xfs_fini): Likewise.
38896
38897
38898 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
38899
38900 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
38901 color modes, allow greater than 16 colors to be configured as
38902 a default palette.
38903
38904 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
38905
38906 * normal/completion.c (complete_arguments): Add the qualifier
38907 const into OPTIONS.
38908
38909 From Omniflux <omniflux+lists@omniflux.com>:
38910 * include/grub/terminfo.h: New file.
38911 * include/grub/tparm.h: Likewise.
38912 * include/grub/i386/pc/serial.h: Likewise.
38913 * term/terminfo.c: Likewise.
38914 * term/tparm.c: Likewise.
38915 * term/i386/pc/serial.c: Likewise.
38916 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
38917 serial.mod.
38918 (terminfo_mod_SOURCES): New variable.
38919 (terminfo_mod_CFLAGS): Likewise.
38920 (serial_mod_SOURCES): Likewise.
38921 (serial_mod_CFLAGS): Likewise.
38922
38923 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
38924
38925 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
38926 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
38927 and kern/powerpc/ieee1275/cmain.c, respectively.
38928
38929 * boot/powerpc/ieee1275/crt0.S: Moved to ...
38930 * kern/powerpc/ieee1275/crt0.S: ... here.
38931
38932 * boot/powerpc/ieee1275/cmain.c: Moved to ...
38933 * kern/powerpc/ieee1275/cmain.c: ... here.
38934
38935 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
38936 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
38937 instead of boot/powerpc/ieee1275/crt0.S and
38938 boot/powerpc/ieee1275/cmain.c, respectively.
38939
38940 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
38941 sectors. It was not used anyway.
38942
38943 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
38944
38945 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
38946 `unused parameter' warning.
38947
38948 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
38949
38950 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
38951 function.
38952 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
38953 getcharwidth.
38954
38955 2005-08-28 Marco Gerards <metgerards@student.han.nl>
38956
38957 * include/grub/normal.h (enum grub_completion_type): Added
38958 `GRUB_COMPLETION_TYPE_ARGUMENT'.
38959
38960 * normal/cmdline.c (print_completion): Handle
38961 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
38962 * normal/menu_entry.c (store_completion): Likewise.
38963
38964 * normal/completion.c (complete_arguments): New function.
38965 (grub_normal_do_completion): Call `complete_arguments' when the
38966 current words start with a dash.
38967
38968 2005-08-27 Marco Gerards <metgerards@student.han.nl>
38969
38970 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
38971 `gzio.mod' instead of `io.mod').
38972
38973 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
38974
38975 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
38976 (DISTDIRS): Added io and video.
38977 Rewrite the search routine to make an output consistently.
38978
38979 * DISTLIST: Added conf/sparc64-ieee1275.mk,
38980 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
38981 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
38982 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
38983 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
38984 util/powerpc/ieee1275/misc.c.
38985
38986 * include/grub/gzio.h: New file.
38987 * io/gzio.c: Likewise.
38988
38989 * kern/file.c (grub_file_close): Call grub_device_close only if
38990 FILE->DEVICE is not NULL.
38991
38992 * include/grub/mm.h [!NULL] (NULL): New macro.
38993
38994 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
38995
38996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
38997 (pkgdata_MODULES): Added gzio.mod.
38998 (gzio_mod_SOURCES): New variable.
38999 (gzio_mod_CFLAGS): Likewise.
39000
39001 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
39002 (pkgdata_MODULES): Added gzio.mod.
39003 (gzio_mod_SOURCES): New variable.
39004 (gzio_mod_CFLAGS): Likewise.
39005
39006 * commands/cat.c: Include grub/gzio.h.
39007 (grub_cmd_cat): Use grub_gzfile_open instead of
39008 grub_file_open.
39009
39010 * commands/cmp.c: Include grub/gzio.h.
39011 (grub_cmd_cmp): Use grub_gzfile_open instead of
39012 grub_file_open.
39013
39014 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
39015 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
39016 grub_file_open.
39017 (grub_rescue_cmd_module): Likewise.
39018
39019 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39020
39021 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
39022 kern/sparc64/ieee1275/init.c because it contains _start.
39023 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
39024
39025 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39026
39027 * configure.ac: Add support for sparc64 host with ieee1275
39028 firmware.
39029 * configure: Generated from configure.ac.
39030 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
39031 instead of int.
39032 (grub_ofdisk_read): Likewise.
39033 (grub_ofdisk_open): Use %p to print pointer values, and cast the
39034 pointers as (void *) to remove a warning.
39035 (grub_ofdisk_close): Likewise.
39036 (grub_ofdisk_read): Likewise.
39037 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
39038 returns, so make it return void to remove a warning.
39039 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
39040 Corresponding prototype change.
39041 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
39042 values, and cast the pointers as (void *) to remove a warning.
39043 (grub_mm_dump): Likewise.
39044 * conf/sparc64-ieee1275.mk: New file.
39045 * conf/sparc64-ieee1275.rmk: Likewise.
39046 * include/grub/sparc64/setjmp.h: Likewise.
39047 * include/grub/sparc64/types.h: Likewise.
39048 * include/grub/sparc64/ieee1275/console.h: Likewise.
39049 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39050 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39051 * include/grub/sparc64/ieee1275/time.h: Likewise.
39052 * kern/sparc64/cache.c: Likewise.
39053 * kern/sparc64/dl.c: Likewise.
39054 * kern/sparc64/ieee1275/init.c: Likewise.
39055 * kern/sparc64/ieee1275/openfw.c: Likewise.
39056
39057 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39058
39059 * util/console.c (grub_ncurses_putchar): If C is greater than
39060 0x7f, set C to a question mark.
39061 (grub_ncurses_getcharwidth): New function.
39062 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
39063 getcharwidth.
39064
39065 * normal/menu.c (print_entry): Made aware of Unicode. First,
39066 convert TITLE to UCS-4, and predict the cursor position by
39067 grub_getcharwidth.
39068
39069 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
39070 const to SRC.
39071 * kern/misc.c (grub_utf16_to_utf8): Likewise.
39072
39073 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39074
39075 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
39076 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39077 grub_strcat.
39078
39079 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
39080 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39081 grub_strcpy and grub_strlen. Take it into account that a space
39082 character is inserted as a delimiter.
39083
39084 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39085
39086 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
39087 invalid magic in the error.
39088
39089 * commands/search.c: New file.
39090
39091 * util/grub-emu.c (main): Call grub_search_init and
39092 grub_search_fini.
39093
39094 * kern/rescue.c (grub_rescue_print_disks): Removed.
39095 (grub_rescue_print_devices): New function.
39096 (grub_rescue_cmd_ls): Use grub_device_iterate with
39097 grub_rescue_print_devices instead of grub_disk_dev_iterate with
39098 grub_rescue_print_disks.
39099
39100 * kern/partition.c (grub_partition_iterate): Return the result of
39101 PARTMAP->ITERATE instead of GRUB_ERRNO.
39102
39103 * kern/device.c: Include grub/partition.h.
39104 (grub_device_iterate): New function.
39105
39106 * include/grub/partition.h (grub_partition_iterate): Return int
39107 instead of grub_err_t.
39108
39109 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
39110 prototype.
39111 [GRUB_UTIL] (grub_search_fini): Likewise.
39112
39113 * include/grub/device.h (grub_device_iterate): New prototype.
39114
39115 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39116 commands/search.c.
39117 (pkgdata_MODULES): Added search.mod.
39118 (search_mod_SOURCES): New variable.
39119 (search_mod_CFLAGS): Likewise.
39120
39121 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
39122 (pkgdata_MODULES): Added search.mod.
39123 (search_mod_SOURCES): New variable.
39124 (search_mod_CFLAGS): Likewise.
39125
39126 * commands/ls.c (grub_ls_list_disks): Renamed to ...
39127 (grub_ls_list_devices): ... this, and use grub_device_iterate.
39128 All callers changed.
39129
39130 * DISTLIST: Added commands/search.c.
39131
39132 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39133
39134 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
39135 conversion.
39136 (grub_getcharwidth): New function.
39137
39138 * kern/misc.c (grub_utf8_to_ucs4): New function.
39139
39140 * include/grub/term.h (struct grub_term): Added a new member
39141 "getcharwidth".
39142 (grub_getcharwidth): New prototype.
39143
39144 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
39145
39146 * term/i386/pc/console.c (map_char): New function. Segregated from
39147 grub_console_putchar.
39148 (grub_console_putchar): Use map_char.
39149 (grub_console_getcharwidth): New function.
39150 (grub_console_term): Specified grub_console_getcharwidth as
39151 getcharwidth.
39152
39153 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
39154 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
39155
39156 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
39157 GRUB_ERRNO.
39158 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
39159 on grub_strtoul completely.
39160 (write_char): Declare local variables in the beginning of the
39161 function.
39162 (grub_vesafb_getcharwidth): New function.
39163 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
39164 getcharwidth.
39165
39166 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
39167
39168 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
39169 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
39170 commands/i386/pc/vbetest.c.
39171
39172 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
39173 call grub_vbe_get_controller_info again, because the returned
39174 information is volatile.
39175 (grub_vbe_set_video_mode): Mostly rewritten.
39176 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
39177 grub_vbe_status_t correctly.
39178 (grub_vbe_get_video_mode_info): Likewise.
39179 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
39180 several if statements.
39181
39182 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
39183 * commands/i386/pc/vbeinfo.c: ... this.
39184
39185 * commands/i386/pc/vbe_test.c: Renamed to ...
39186 * commands/i386/pc/vbetest.c: ... this.
39187
39188 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
39189 ...
39190 (grub_cmd_vbeinfo): ... this. Save video modes before
39191 iterating. Skip a video mode, if it is not available, not enough
39192 information is given or it is monochrome. Show the memory
39193 model. Leave the interpretation of MODEVAR to grub_strtoul
39194 completely.
39195 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
39196 (GRUB_MOD_FINI): Likewise.
39197
39198 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
39199 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
39200 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
39201 duplicated grub_env_get. Leave the interpretation of MODEVAR to
39202 grub_strtoul completely.
39203 (real2pm): Removed.
39204 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
39205 (GRUB_MOD_FINI): Likewise.
39206
39207 * normal/misc.c: Include grub/mm.h.
39208
39209 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
39210 vbe_list_modes with vbetest.mod and vbeinfo.mod.
39211 (vbe_list_modes_mod_SOURCES): Removed.
39212 (vbe_list_modes_mod_CFLAGS): Likewise.
39213 (vbe_test_mod_SOURCES): Likewise.
39214 (vbe_test_mod_CFLAGS): Likewise.
39215 (vbeinfo_mod_SOURCES): New variable.
39216 (vbeinfo_mod_CFLAGS): Likewise.
39217 (vbetest_mod_SOURCES): Likewise.
39218 (vbetest_mod_CFLAGS): Likewise.
39219
39220 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
39221
39222 * normal/misc.c: New file.
39223
39224 * DISTLIST: Added normal/misc.c.
39225
39226 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
39227 DISK to HOOK. Call HOOK with DISK.
39228 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39229 * partmap/pc.c (pc_partition_map_iterate): Likewise.
39230 * partmap/sun.c (sun_partition_map_iterate): Likewise.
39231
39232 * normal/menu_entry.c (struct screen): Added a new member
39233 "completion_shown".
39234 (completion_buffer): New global variable.
39235 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
39236 (store_completion): New function.
39237 (complete): Likewise.
39238 (clear_completions): Likewise.
39239 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
39240 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
39241 a tab, call complete.
39242
39243 * normal/completion.c (disk_dev): Removed.
39244 (print_simple_completion): Likewise.
39245 (print_partition_completion): Likewise.
39246 (print_func): New global variable.
39247 (add_completion): Do not take the arguments WHAT or PRINT any
39248 longer. Added a new argument TYPE. Instead of printing directly,
39249 call PRINT_FUNC if not NULL.
39250 All callers changed.
39251 (complete_device): Use a local variable DEV instead of
39252 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
39253 (grub_normal_do_completion): Take a new argument HOOK. Do not
39254 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
39255 empty string, return NULL instead.
39256 All callers changed.
39257
39258 * normal/cmdline.c (print_completion): New function.
39259
39260 * kern/partition.c (grub_partition_iterate): Add an argument DISK
39261 to HOOK.
39262 All callers changed.
39263
39264 * kern/disk.c (grub_print_partinfo): Removed.
39265
39266 * include/grub/partition.h (struct grub_partition_map): Add a new
39267 argument DISK into HOOK of ITERATE.
39268 (grub_partition_iterate): Add a new argument DISK to HOOK.
39269
39270 * include/grub/normal.h (enum grub_completion_type): New enum.
39271 (grub_completion_type_t): New type.
39272 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
39273 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
39274 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
39275 (GRUB_COMPLETION_TYPE_FILE): Likewise.
39276 (grub_normal_do_completion): Added a new argument HOOK.
39277 (grub_normal_print_device_info): New prototype.
39278
39279 * include/grub/disk.h (grub_print_partinfo): Removed.
39280
39281 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
39282 (normal_mod_SOURCES): Likewise.
39283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39284 (normal_mod_SOURCES): Likewise.
39285
39286 * commands/ls.c (grub_ls_list_disks): Use
39287 grub_normal_print_device_info instead of grub_print_partinfo. Free
39288 PNAME.
39289 (grub_ls_list_files): Use grub_normal_print_device_info instead of
39290 duplicating the code.
39291
39292 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39293
39294 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
39295 follow GCS more precisely.
39296 * commands/i386/pc/vbe_test.c: Likewise.
39297 * include/grub/i386/pc/vbe.h: Likewise.
39298 * term/i386/pc/vesafb.c: Likewise.
39299 * video/i386/pc/vbe.c: Likewise.
39300
39301 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39302
39303 * DISTLIST: Added term/i386/pc/vesafb.c
39304 DISTLIST: Added video/i386/pc/vbe.c
39305 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
39306 DISTLIST: Added commands/i386/pc/vbe_test.c.
39307 * commands/i386/pc/vbe_list_modes.c: New file.
39308 * commands/i386/pc/vbe_test.c: Likewise.
39309 * term/i386/pc/vesafb.c: Likewise.
39310 * video/i386/pc/vbe.c: Likewise.
39311 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
39312 (grub_vbe_probe) Added prototype.
39313 (grub_vbe_set_video_mode) Likewise.
39314 (grub_vbe_get_video_mode) Likewise.
39315 (grub_vbe_get_video_mode_info) Likewise.
39316 (grub_vbe_set_pixel_rgb) Likewise.
39317 (grub_vbe_set_pixel_index) Likewise.
39318 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
39319 (pkgdata_MODULES): Added vesafb.mod.
39320 (pkgdata_MODULES): Added vbe_list_modes.mod.
39321 (pkgdata_MODULES): Added vbe_test.mod.
39322 (vbe_mod_SOURCES): Added.
39323 (vbe_mod_CFLAGS): Likewise.
39324 (vesafb_mod_SOURCES): Likewise.
39325 (vesafb_mod_CFLAGS): Likewise.
39326 (vbe_list_modes_mod_SOURCES): Likewise.
39327 (vbe_list_modes_mod_CFLAGS): Likewise.
39328 (vbe_test_mod_SOURCES): Likewise.
39329 (vbe_test_mod_CFLAGS): Likewise.
39330
39331 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
39332
39333 * normal/command.c (grub_command_execute): If INTERACTIVE is
39334 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
39335 CMDLINE. Disable the pager if INTERACTIVE is true.
39336 All callers are changed.
39337
39338 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
39339 before reading a config file.
39340 * normal/main.c (read_config_file): Even if a command is not
39341 found, register it if it is within an entry.
39342
39343 * util/grub-emu.c: Include sys/types.h and unistd.h.
39344 (options): Added --hold.
39345 (struct arguments): Added a new member "hold".
39346 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
39347 missing.
39348 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
39349 cleared by a debugger, if it is not zero.
39350
39351 * include/grub/normal.h (grub_command_execute): Add an argument
39352 INTERACTIVE.
39353
39354 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
39355
39356 * DISTLIST: Added include/grub/i386/pc/vbe.h.
39357
39358 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
39359
39360 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
39361 program with another one, because the old one didn't detect a bug
39362 in gcc-3.4. Always use regparm 2, because the new test is still
39363 not enough for gcc-4.0. Someone must investigate a simple test
39364 case which detects a bug in gcc-4.0.
39365
39366 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
39367
39368 * DISTLIST: Added normal/completion.c.
39369
39370 * normal/completion.c: New file.
39371
39372 * term/i386/pc/console.c (grub_console_getwh): New function.
39373 (grub_console_term): Assign grub_console_getwh to getwh.
39374
39375 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
39376 function is defined in normal/completion.c as
39377 grub_normal_do_completion.
39378 (grub_cmdline_get): Use grub_normal_do_completion instead of
39379 grub_tab_complete.
39380
39381 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
39382 returns non-zero, otherwise return 0.
39383 (grub_partition_iterate): First, probe the partition map. Then,
39384 call ITERATE only for this partition map.
39385
39386 * kern/misc.c (grub_strncmp): Rewritten.
39387
39388 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
39389 returns non-zero. Otherwise return 0.
39390
39391 * include/grub/partition.h (grub_partition_map_iterate): Return
39392 int instead of void.
39393
39394 * include/grub/normal.h (grub_normal_do_completion): New prototype.
39395
39396 * include/grub/misc.h (grub_strncmp): Change the type of N to
39397 grub_size_t.
39398
39399 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
39400 of void.
39401
39402 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
39403 unsigned explicitly before comparing it with I.
39404
39405 * kern/main.c (grub_env_write_root): Add the attribute unused into
39406 VAR.
39407
39408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39409 normal/completion.c.
39410 (normal_mod_SOURCES): Likewise.
39411 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39412 (normal_mod_SOURCES): Likewise.
39413
39414 * normal/command.c (grub_iterate_commands): If ITERATE returns
39415 non-zero, return one immediately.
39416
39417 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
39418
39419 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
39420 * kern/i386/pc/startup.S: Updated Global Descriptor table's
39421 descriptions.
39422 (grub_vbe_get_controller_info): New function.
39423 (grub_vbe_get_mode_info): Likewise.
39424 (grub_vbe_set_mode): Likewise.
39425 (grub_vbe_get_mode): Likewise.
39426 (grub_vbe_set_memory_window): Likewise.
39427 (grub_vbe_get_memory_window): Likewise.
39428 (grub_vbe_set_scanline_length): Likewise.
39429 (grub_vbe_get_scanline_length): Likewise.
39430 (grub_vbe_set_display_start): Likewise.
39431 (grub_vbe_get_display_start): Likewise.
39432 (grub_vbe_set_palette_data): Likewise.
39433 * include/grub/i386/pc/vbe.h: New file.
39434
39435 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39436
39437 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
39438 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
39439 * DISTLIST: Likewise.
39440 * kern/ieee1275/of.c: Moved to ...
39441 * kern/ieee1275/ieee1275.c: ... here.
39442
39443 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39444
39445 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
39446 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
39447 Pass 0 as `end' parameter to grub_strtoul().
39448
39449 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39450
39451 * include/grub/powerpc/ieee1275/console.h: Do not include
39452 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
39453 ifdef.
39454 (grub_console_cur_color): Remove i386-specific prototype.
39455 (grub_console_real_putchar): Likewise.
39456 (grub_console_checkkey): Likewise.
39457 (grub_console_getkey): Likewise.
39458 (grub_console_getxy): Likewise.
39459 (grub_console_gotoxy): Likewise.
39460 (grub_console_cls): Likewise.
39461 (grub_console_setcursor): Likewise.
39462 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
39463 Include <grub/machine/console.h>.
39464 * term/ieee1275/ofconsole.c: Likewise.
39465
39466 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
39467
39468 * Makefile.in (LIBLZO): New variable.
39469
39470 * configure.ac: Check for LZO version 2.
39471
39472 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
39473 lzo/lzo1x.h instead of lzo1x.h.
39474
39475 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
39476 of -llzo.
39477
39478 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
39479 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
39480
39481 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
39482 copying the data from PARTITION to P.
39483
39484 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39485
39486 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
39487 negative, unload the module.
39488
39489 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
39490 map is "pc_partition_map" but not "pc".
39491 (usage): Fix the description. The options are --boot-image and
39492 --core-image but not --boot-file or --core-file.
39493 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
39494 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
39495 DEFAULT_DIRECTORY.
39496
39497 * util/i386/pc/grub-install.in: Do not specify --boot-file or
39498 --core-file. Specify INSTALL_DEVICE as an argument.
39499
39500 * util/console.c: Include config.h.
39501 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
39502 [HAVE_NCURSES_H]: Include ncurses.h.
39503 [HAVE_CURSES_H]: Include curses.h.
39504 [!A_NORMAL] (A_NORMAL): Defined as zero.
39505 [!A_STANDOUT] (A_STANDOUT): Likewise.
39506
39507 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
39508 -lncurses.
39509 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
39510
39511 * configure.ac: Check for curses libraries and headers.
39512
39513 * Makefile.in (LIBCURSES): New variable.
39514
39515 * genmk.rb (Script::rule): Set the executable bits.
39516
39517 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
39518 name of the PC partition map is "pc_partition_map" but not "pc".
39519
39520 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39521
39522 * util/i386/pc/grub-install.in (grub_probefs): New variable.
39523 (modules): Likewise.
39524 (usage): Added descriptions for --modules and --grub-probefs.
39525 Handle --modules and --grub-probefs. Save the arguments in MODULES
39526 and GRUB_PROBEFS, respectively.
39527 Auto-detect a filesystem module against GRUBDIR. If the result is
39528 empty and modules are not specified explicitly, abort the
39529 installation. Add the result to MODULES.
39530
39531 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
39532 disk/powerpc/ieee1275/ofdisk.c,
39533 include/grub/powerpc/ieee1275/init.h and
39534 term/powerpc/ieee1275/ofconsole.c.
39535 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
39536 term/ieee1275/ofconsole.c.
39537
39538 * include/grub/powerpc/ieee1275/console.h: Resurrected.
39539
39540 * COPYING: Upgraded to the latest version. Only the address of the
39541 FSF office has changed.
39542
39543 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39544
39545 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
39546 kern/ieee1275.c with kern/ieee1275/of.c.
39547
39548 * kern/ieee1275.c: Moved to ...
39549 * kern/ieee1275/of.c: ... here.
39550
39551 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
39552
39553 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
39554 readability.
39555
39556 * config.guess: Updated to the latest version from gnulib.
39557 * config.sub: Likewise.
39558 * install.sh: Likewise.
39559 * mkinstalldirs: Likewise.
39560
39561 * include/grub/console.h: Removed. This file is arch-specific. Do
39562 not put this in include/grub.
39563
39564 * include/grub/i386/pc/console.h: Resurrected.
39565
39566 * util/console.c: Include grub/machine/console.h instead of
39567 grub/console.h.
39568 * util/grub-emu.c: Likewise.
39569
39570 2005-08-04 Marco Gerards <metgerards@student.han.nl>
39571
39572 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
39573 hardcoded value.
39574
39575 From Vincent Pelletier <subdino2004@yahoo.fr>
39576 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
39577 Redefined to use grub_getwh.
39578 (grub_term): New member named getwh.
39579 (grub_getwh): New prototype.
39580 * kern/term.c (grub_getwh): New function.
39581 * term/i386/pc/console.c (grub_console_getwh): New function.
39582 (grub_console_term): New member `getwh'.
39583 * term/i386/pc/vga.c (grub_vga_getwh): New function.
39584 (grub_vga_term): New member `getwh'.
39585 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
39586 grub_ssize_t.
39587 (grub_ofconsole_getw): New function.
39588 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
39589 (grub_ofconsole_term): New field named getwh and new initial
39590 value.
39591
39592 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
39593
39594 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
39595 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
39596 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
39597 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
39598 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
39599 of <grub/machine/ieee1275.h>.
39600 * commands/ieee1275/reboot.c: Likewise.
39601 * boot/powerpc/ieee1275/ieee1275.c: Move ...
39602 * kern/ieee1275.c: ... to here. All users updated. Change all
39603 parameter structs to use new type `grub_ieee1275_cell_t'.
39604 * term/powerpc/ieee1275/ofconsole.c: Move ...
39605 * term/ieee1275/ofconsole.c: ... to here. All users updated.
39606 * disk/powerpc/ieee1275/ofdisk.c: Move ...
39607 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
39608 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
39609 to return int.
39610 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
39611 Remove unused prototypes. All users updated.
39612 * include/grub/powerpc/ieee1275/console.h: Removed.
39613 * include/grub/powerpc/ieee1275/ieee1275.h: Define
39614 `grub_ieee1275_cell_t'.
39615 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
39616 Cast comparisons with -1 to the correct type.
39617 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
39618 type to match `grub_ieee1275_entry_fn'.
39619
39620 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
39621
39622 * DISTLIST: Added util/i386/pc/grub-probefs.c.
39623
39624 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
39625 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
39626 partmap/sun.c.
39627 (grub_probefs_SOURCES): New variable.
39628
39629 * util/i386/pc/grub-probefs.c: New file.
39630
39631 * util/i386/pc/grub-setup.c (main): Call
39632 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
39633 grub_hfs_init and grub_jfs_init to initialize the system. Call
39634 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
39635 grub_pc_partition_map_fini to finish the system.
39636
39637 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
39638
39639 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
39640 function.
39641 (grub_multiboot_load_elf32): Likewise.
39642 (grub_multiboot_is_elf64): Likewise.
39643 (grub_multiboot_load_elf64): Likewise.
39644 (grub_multiboot_load_elf): Likewise.
39645 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
39646 an ELF32 or ELF64 file.
39647 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
39648
39649 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
39650 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
39651 NULL before calling FS->LABEL.
39652 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
39653 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
39654 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
39655 before calling FS->LABEL.
39656
39657 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
39658
39659 * util/i386/pc/grub-install.in (datadir): New variable.
39660 (libdir): Removed.
39661 (pkgdatadir): New variable.
39662 (pkglibdir): Removed.
39663
39664 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
39665
39666 * DISTLIST: Added util/i386/pc/grub-install.in.
39667
39668 * util/i386/pc/grub-install.in: New file.
39669
39670 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
39671 (grub_install_SOURCES): Likewise.
39672
39673 * genmk.rb: Added support for scripts.
39674 (Script): New class.
39675 (scripts): New variable.
39676
39677 * Makefile.in (install-local): Install sbin_SCRIPTS by
39678 INSTALL_SCRIPT.
39679 (uninstall): Remove sbin_SCRIPTS.
39680
39681 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
39682 device, try to get a GRUB device by
39683 grub_util_biosdisk_get_grub_dev.
39684 Free DEST_DEV.
39685
39686 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
39687 description for --device-map.
39688
39689 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
39690
39691 Change the semantics of variable hooks. They now return strings
39692 instead of error values.
39693
39694 * util/i386/pc/grub-setup.c: Include grub/env.h.
39695 (setup): Use grub_device_set_root instead of grub_env_set.
39696
39697 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
39698 grub_env_get instead of grub_device_set_root and
39699 grub_device_get_root, respectively.
39700
39701 * kern/main.c (grub_env_write_root): New function.
39702 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
39703 grub_env_set instead of grub_device_set_root.
39704
39705 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
39706 many variables.
39707 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
39708 rather than calling ENV->WRITE_HOOK afterwards.
39709 (grub_env_get): Return the result of ENV->READ_HOOK rather than
39710 passing a pointer of a pointer.
39711 (grub_register_variable_hook): Change the types of "read_hook" and
39712 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
39713 respectively.
39714 Allocate the default empty string on the heap, because this string
39715 may be freed later.
39716
39717 * kern/device.c: Include grub/env.h.
39718 (grub_device_set_root): Removed.
39719 (grub_device_get_root): Likewise.
39720 (grub_device_open): Use grub_env_get instead of
39721 grub_device_get_root.
39722
39723 * include/grub/env.h (grub_env_read_hook_t): New type.
39724 (grub_env_write_hook_t): Likewise.
39725 (grub_env_var): Change the types of "read_hook" and "write_hook"
39726 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
39727 (grub_register_variable_hook): Likewise.
39728
39729 * include/grub/device.h (grub_device_set_root): Removed.
39730 (grub_device_set_root): Likewise.
39731
39732 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
39733 make sure that DIRNAME terminates with '/', so that
39734 grub_fat_find_dir will fail if PATH is not a directory.
39735
39736 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
39737 from DIRNAME.
39738 Use the qualifier auto for print_files and print_files_long.
39739 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
39740 as a regular file.
39741 Put a newline only if there is no error.
39742 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
39743 used.
39744
39745 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
39746
39747 * kern/partition.c (grub_partition_probe): Initialize PART to
39748 NULL. Otherwise, when no partition map is registered, this returns
39749 a garbage.
39750
39751 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
39752
39753 * partmap/apple.c (apple_partition_map_iterate): Check if POS
39754 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
39755 valid.
39756
39757 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
39758
39759 * commands/ls.c (grub_ls_list_disks): Print the filesystem
39760 information on each device, if it does not have partitions. Print
39761 "Device" instead of "Disk", because this function is not specific
39762 to disk devices.
39763
39764 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
39765 static to ensure that it is put on the memory rather than a
39766 register.
39767
39768 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
39769
39770 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
39771 (grub_cat_init): Likewise.
39772 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
39773 (options): Likewise.
39774 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
39775 (grub_configfile_init): Likewise.
39776 * font/manager.c (GRUB_MOD_INIT): Likewise.
39777 * commands/help.c (GRUB_MOD_INIT): Likewise.
39778 (grub_help_init): Likewise.
39779 * normal/command.c (grub_command_init): Likewise.
39780 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
39781 * disk/loopback.c (grub_loop_init): Likewise.
39782 (GRUB_MOD_INIT): Likewise.
39783 * commands/ls.c (grub_ls_init): Likewise.
39784 (GRUB_MOD_INIT): Likewise.
39785 (options): Likewise.
39786 * commands/boot.c (grub_boot_init): Likewise.
39787 (GRUB_MOD_INIT): Likewise.
39788 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
39789 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
39790 (GRUB_MOD_INIT): Likewise.
39791 * commands/cmp.c (grub_cmp_init): Likewise.
39792 (GRUB_MOD_INIT): Likewise.
39793
39794 * normal/arg.c: Use <> instead of "" to include header files.
39795 (SHORT_ARG_HELP): New macro.
39796 (SHORT_ARG_USAGE): Likewise.
39797 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
39798 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
39799 descriptions.
39800 (find_short): Check if C is 'h' or 'u' explicitly.
39801 (grub_arg_show_help): Use space characters instead of tabs. Treat
39802 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
39803 are shown with --help and --usage only if they are not used for
39804 the command itself.
39805 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
39806 'h' and 'u'.
39807
39808 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
39809 const into "longarg". Change the type of "shortarg" to int.
39810
39811 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
39812
39813 * boot/i386/pc/boot.S (boot_drive_check): New label.
39814
39815 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
39816 macro.
39817
39818 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
39819 which do not pass a boot drive correctly. Copied from GRUB Legacy.
39820
39821 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
39822
39823 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
39824 When turning off Gate A20, skip the check and return immediately,
39825 because this is not fatal usually.
39826
39827 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
39828
39829 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
39830 be 0x7C00 instead of 0x8000.
39831
39832 * boot/i386/pc/pxeboot.S: Rewritten.
39833
39834 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
39835 EXT_C.
39836 (gate_a20_check_state): Read a byte from 0x108000. Invert the
39837 result.
39838
39839 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
39840
39841 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
39842 robustness. This routine now supports a BIOS call and System
39843 Control Port A to modify the gate A20.
39844
39845 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39846 Increased to 0x440.
39847
39848 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
39849
39850 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
39851 device path and resulting ihandle.
39852 (grub_ofdisk_close): dprintf the ihandle being closed.
39853 (grub_ofdisk_read): dprintf function parameters.
39854 * kern/mm.c (grub_mm_init_region): Likewise.
39855 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
39856 (grub_linux_boot): dprintf the Linux entry point, initrd address and
39857 size, and boot arguments.
39858 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
39859 before loading into memory.
39860 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
39861 before loading into memory.
39862
39863 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
39864
39865 * kern/mm.c: Added much documentation.
39866 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
39867 8, set to 5 instead of 8.
39868
39869 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
39870
39871 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
39872
39873 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
39874 (grub_mkdevicemap_SOURCES): New variable.
39875
39876 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
39877 lib/device.c of GRUB Legacy.
39878
39879 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
39880
39881 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
39882 instead of PATH is NULL.
39883
39884 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
39885
39886 * commands/cmp.c (BUFFER_SIZE): New macro.
39887 (grub_cmd_cmp): Close the right file at the right time. Compare
39888 only data just read. Don't report files of different size as
39889 identical. Dynamically allocate buffers. Move variable
39890 declarations at the beginning of function.
39891
39892 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
39893
39894 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
39895 reverse.
39896
39897 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
39898
39899 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
39900 when backspace is pressed at beginning of line.
39901
39902 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
39903
39904 * DISTLIST: Added genfslist.sh.
39905
39906 * normal/main.c (fs_module_list): New variable.
39907 (autoload_fs_module): New function.
39908 (read_fs_list): Likewise.
39909 (grub_normal_execute): Call read_fs_list.
39910
39911 * kern/fs.c (grub_fs_autoload_hook): New variable.
39912 (grub_fs_probe): Added support for auto-loading.
39913
39914 * include/grub/normal.h (struct grub_fs_module_list): New struct.
39915 (grub_fs_module_list_t): New type.
39916
39917 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
39918 (grub_fs_autoload_hook): New prototype.
39919
39920 * genfslist.sh: New file.
39921
39922 * genmk.rb: Added a rule to generate a filesystem list.
39923
39924 2005-06-30 Marco Gerards <metgerards@student.han.nl>
39925
39926 * configure.ac: Fix the test for cross-compiling.
39927
39928 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
39929 define GRUB_UTIL anymore.
39930
39931 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
39932 so this function works on other systems than just big endian.
39933 (load_modules): Likewise.
39934 (add_segments): Likewise.
39935
39936 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
39937
39938 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
39939 contains `l' modifier, get a long from va_arg().
39940
39941 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
39942
39943 * kern/mm.c (grub_free): If the next free block which is being
39944 merged is the first free block, set the first block to the block
39945 being freed.
39946 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
39947
39948 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
39949
39950 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
39951 `grub_ieee1275_chosen'.
39952
39953 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
39954
39955 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
39956 (grub_ieee1275_chosen): New variable.
39957 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
39958 `chosen'.
39959 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
39960 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39961 Rename first argument to `phandle' for consistency.
39962 (grub_ieee1275_get_property_length): Likewise.
39963 (grub_ieee1275_next_property): Likewise. Change type of first argument
39964 to grub_ieee1275_phandle_t.
39965 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
39966 Move export next to declaration.
39967 (grub_ieee1275_chosen): New variable.
39968 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
39969 Correct cosmetic typo.
39970 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
39971 `grub_ieee1275_chosen'.
39972 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
39973 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
39974 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
39975 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
39976 `grub_ieee1275_chosen'.
39977
39978 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
39979
39980 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
39981 /chosen/bootargs.
39982 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
39983 /chosen/bootargs as "variable=value" pairs.
39984
39985 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
39986
39987 * include/grub/misc.h (grub_dprintf): New macro.
39988 (grub_real_dprintf): New prototype.
39989 (grub_strword): Likewise.
39990 (grub_iswordseparator): Likewise.
39991 * kern/misc.c (grub_real_dprintf): New function.
39992 (grub_strword): Likewise.
39993 (grub_iswordseparator): Likewise.
39994
39995 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
39996
39997 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
39998 (roundup): Remove macro.
39999 (grub_ieee1275_flags): Make static.
40000 (grub_ieee1275_realmode): Remove.
40001 (grub_ieee1275_test_flag): New function.
40002 (grub_ieee1275_set_flag): Likewise.
40003 (find_options): Rename to `grub_ieee1275_find_options'; update
40004 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
40005 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
40006 (cmain): New prototype.
40007 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
40008 `grub_ieee1275_flags' directly.
40009 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
40010 machine/biosdisk.h.
40011 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
40012 Don't include grub/machine/init.h.
40013 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
40014 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
40015 Remove prototype.
40016 (grub_ieee1275_realmode): Likewise.
40017 (grub_ieee1275_flag): New enum.
40018 (grub_ieee1275_test_flag): New prototype.
40019 (grub_ieee1275_set_flag): New prototype.
40020 * include/grub/powerpc/ieee1275/init.h: Remove file.
40021 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
40022 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
40023 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
40024 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
40025 comment.
40026 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
40027 `grub_ieee1275_test_flag'.
40028 (grub_ieee1275_encode_devname): Likewise.
40029
40030 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
40031
40032 * include/grub/powerpc/ieee1275/ieee1275.h
40033 (grub_ieee1275_encode_devname): New prototype.
40034 (grub_ieee1275_get_filename): Likewise.
40035 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
40036 function.
40037 (grub_set_prefix): Likewise.
40038 (grub_machine_init): Call grub_set_prefix.
40039 * kern/powerpc/ieee1275/openfw.c: Fix typos.
40040 (grub_parse_type): New enum.
40041 (grub_ieee1275_get_devargs): New function.
40042 (grub_ieee1275_get_devname): Likewise.
40043 (grub_ieee1275_parse_args): Likewise.
40044 (grub_ieee1275_get_filename): Likewise.
40045 (grub_ieee1275_encode_devname): Likewise.
40046
40047 2005-03-30 Marco Gerards <metgerards@student.han.nl>
40048
40049 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
40050 `grub_loader_unset'.
40051
40052 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
40053
40054 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
40055 instead of grub_ieee1275_interpret.
40056 (grub_halt_init): New function.
40057 (grub_halt_fini): Likewise.
40058 (GRUB_MOD_INIT): Correct message grammar.
40059 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
40060 instead of grub_ieee1275_interpret.
40061 (grub_reboot_init): New function.
40062 (grub_reboot_fini): Likewise.
40063 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
40064 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
40065 util/i386/pc/misc.c with commands/ieee1275/halt.c,
40066 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
40067 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
40068 function.
40069 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
40070 Add prototype.
40071 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
40072 prototype.
40073 (grub_halt): Likewise.
40074 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
40075 (cmain): Remove __attribute__((unused)).
40076 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
40077 (grub_heap_len): Likewise.
40078 (grub_machine_fini): New function.
40079 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
40080 (grub_halt): Likewise.
40081 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
40082 function.
40083 * util/powerpc/ieee1275/misc.c: New file.
40084
40085 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40086
40087 * DISTLIST: New file.
40088 * gendistlist.sh: Likewise.
40089
40090 * Makefile.in (COMMON_DISTFILES): Removed.
40091 (BOOT_DISTFILES): Likewise.
40092 (CONF_DISTFILES): Likewise.
40093 (DISK_DISTFILES): Likewise.
40094 (FS_DISTFILES): Likewise.
40095 (INCLUDE_DISTFILES): Likewise.
40096 (KERN_DISTFILES): Likewise.
40097 (LOADER_DISTFILES): Likewise.
40098 (TERM_DISTFILES): Likewise.
40099 (UTIL_DISTFILES): Likewise.
40100 (DISTFILES): Likewise.
40101 (uninstall): Uninstall files in $(pkgdata_DATA).
40102 (DISTLIST): New target.
40103 (distdir): Use the contents of the file DISTLIST to get a list of
40104 distributed files.
40105
40106 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40107
40108 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
40109 descriptor. This is ported from GRUB Legacy.
40110
40111 * gencmdlist.sh: Added an extra semicolon to make it work with
40112 old sed versions. Reported by Robert Bihlmeyer
40113 <robbe@orcus.priv.at>.
40114
40115 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
40116
40117 Automatic loading of commands is supported.
40118
40119 * normal/main.c (read_command_list): New function.
40120 (grub_normal_execute): Call read_command_list.
40121
40122 * normal/command.c (grub_register_command): Return zero or CMD.
40123 Allocate CMD->NAME from the heap.
40124 Initialize CMD->MODULE_NAME to zero.
40125 Find the same name as well. If the same command is found and it is
40126 a dummy command, overwrite members. If it is not a dummy command,
40127 return zero.
40128 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
40129 (grub_command_find): If a dummy command is found, load a module
40130 and retry to find a command only once.
40131
40132 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
40133 make sure that each command is loaded.
40134
40135 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
40136 macro.
40137 (struct grub_command): Remove const from the member `name'.
40138 Add a new member `module_name'.
40139 (grub_register_command): Return grub_command_t.
40140
40141 * commands/help.c (grub_cmd_help): Call grub_command_find to make
40142 sure that each command is loaded.
40143
40144 * genmk.rb (PModule::rule): Specify a module name without the
40145 suffix ".mod" to gencmdlist.sh.
40146
40147 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40148
40149 * gencmdlist.sh: New file.
40150
40151 * genmk.rb (PModule::rule): Generate a rule for a command list.
40152 Clean command.lst.
40153 Generate command.lst from $(COMMANDFILES).
40154
40155 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
40156 (DATA): Added $(pkgdata_DATA).
40157 (install-local): Install files in $(pkgdata_DATA).
40158
40159 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40160
40161 * term/i386/pc/vga.c (debug_command): Removed.
40162 (GRUB_MOD_INIT): Do not register the command "debug".
40163
40164 From Hollis Blanchard:
40165 * commands/configfile.c: New file.
40166 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40167 commands/configfile.c.
40168 (pkgdata_MODULES): Added configfile.mod.
40169 (configfile_mod_SOURCES): New variable.
40170 (configfile_mod_CFLAGS): Likewise.
40171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40172 commands/configfile.c.
40173 (pkgdata_MODULES): Added configfile.mod.
40174 (configfile_mod_SOURCES): New variable.
40175 (configfile_mod_CFLAGS): Likewise.
40176 * util/grub-emu.c (main): Call grub_configfile_init and
40177 grub_configfile_fini.
40178 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
40179 prototype.
40180 [GRUB_UTIL] (grub_configfile_fini): Likewise.
40181
40182 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40183
40184 * normal/arg.c (grub_arg_show_help): Do not show the bug report
40185 address.
40186
40187 * commands/help.c (grub_cmd_help): Do not print newlines after
40188 the last command in print_command_help.
40189
40190 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40191
40192 * commands/default.h: New file.
40193 * commands/timeout.h: Likewise.
40194 * normal/context.c: Likewise.
40195
40196 * util/misc.c: Do not include sys/times.h.
40197 Include sys/time.h and grub/machine/time.h.
40198 (grub_get_rtc): Rewritten with gettimeofday.
40199
40200 * util/grub-emu.c (main): Call grub_default_init and
40201 grub_timeout_init before grub_normal_init, and call
40202 grub_timeout_fini and grub_default_fini after grub_main.
40203
40204 * util/console.c (grub_ncurses_checkkey): Return the read
40205 character or -1.
40206
40207 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
40208 timeouts.
40209
40210 * normal/main.c (read_config_file): Push MENU. If this fails,
40211 print an error and wait for a user input.
40212 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
40213 If a menu is empty or an error occurs, pop MENU.
40214 (grub_normal_execute): Pop and free MENU after grub_menu_run
40215 returns.
40216
40217 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
40218
40219 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
40220 include time.h.
40221 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40222 without GRUB_UTIL.
40223 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
40224 time.h.
40225 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40226 without GRUB_UTIL.
40227
40228 * include/grub/normal.h (struct grub_menu_list): New struct.
40229 (grub_menu_list_t): New type.
40230 (struct grub_context): New struct.
40231 (grub_context_t): New type.
40232 (grub_register_command): Got rid of EXPORT_FUNC.
40233 (grub_unregister_command): Likewise.
40234 (grub_context_get): New prototype.
40235 (grub_context_get_current_menu): Likewise.
40236 (grub_context_push_menu): Likewise.
40237 (grub_context_pop_menu): Likewise.
40238 [GRUB_UTIL] (grub_default_init): Likewise.
40239 [GRUB_UTIL] (grub_default_fini): Likewise.
40240 [GRUB_UTIL] (grub_timeout_init): Likewise.
40241 [GRUB_UTIL] (grub_timeout_fini): Likewise.
40242
40243 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
40244 commands/timeout.c and normal/context.c.
40245 (pkgdata_MODULES): Added default.mod and timeout.mod.
40246 (normal_mod_SOURCES): Added normal/context.c.
40247 (default_mod_SOURCES): New variable.
40248 (default_mod_CFLAGS): Likewise.
40249 (timeout_mod_SOURCES): Likewise.
40250 (timeout_mod_CFLAGS): Likewise.
40251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
40252 conf/i386-pc.rmk.
40253 (pkgdata_MODULES): Added default.mod and timeout.mod.
40254 (normal_mod_SOURCES): Added normal/context.c.
40255 (default_mod_SOURCES): New variable.
40256 (default_mod_CFLAGS): Likewise.
40257 (timeout_mod_SOURCES): Likewise.
40258 (timeout_mod_CFLAGS): Likewise.
40259
40260 * Makefile.in (all-local): Added $(MKFILES).
40261
40262 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
40263
40264 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
40265 (grub_emu_SOURCES): Likewise.
40266 (pkgdata_MODULES): Add `sun.mod'.
40267 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40269 `partmap/sun.c'.
40270 (pkgdata_MODULES): Add `sun.mod'.
40271 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40272 * include/grub/partition.h (grub_sun_partition_map_init): New
40273 prototype.
40274 (grub_sun_partition_map_fini): Likewise.
40275 * partmap/sun.c: New file.
40276 * util/grub-emu.c (main): Initialize and de-initialize the sun
40277 partitionmap support.
40278
40279 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
40280
40281 This implements an Emacs-like menu entry editor.
40282
40283 * normal/menu_entry.c: New file.
40284
40285 * util/console.c (grub_ncurses_putchar): Translate some Unicode
40286 characters to ASCII.
40287 (saved_char): New variable.
40288 (grub_ncurses_checkkey): Rewritten completely.
40289 (grub_ncurses_getkey): Likewise.
40290 (grub_ncurses_init): Call raw instead of cbreak.
40291
40292 * normal/menu.c (print_entry): Do not put a space.
40293 (init_page): Renamed to ...
40294 (grub_menu_init_page): ... this. All callers changed.
40295 (edit_menu_entry): Removed.
40296 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
40297
40298 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
40299
40300 * kern/misc.c (grub_vprintf): Call grub_refresh.
40301
40302 * normal/menu.c (DISP_LEFT): Renamed to ...
40303 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
40304 * normal/menu.c (DISP_UP): Renamed to ...
40305 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
40306 * normal/menu.c (DISP_RIGHT): Renamed to ...
40307 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
40308 * normal/menu.c (DISP_DOWN): Renamed to ...
40309 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
40310 * normal/menu.c (DISP_HLINE): Renamed to ...
40311 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
40312 * normal/menu.c (DISP_VLINE): Renamed to ...
40313 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
40314 * normal/menu.c (DISP_UL): Renamed to ...
40315 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
40316 * normal/menu.c (DISP_UR): Renamed to ...
40317 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
40318 * normal/menu.c (DISP_LL): Renamed to ...
40319 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
40320 * normal/menu.c (DISP_LR): Renamed to ...
40321 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
40322 * normal/menu.c (TERM_WIDTH): Renamed to ...
40323 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
40324 * normal/menu.c (TERM_HEIGHT): Renamed to ...
40325 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
40326 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
40327 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
40328 * normal/menu.c (TERM_MARGIN): Renamed to ...
40329 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
40330 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
40331 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
40332 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
40333 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
40334 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
40335 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
40336 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
40337 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
40338 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
40339 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
40340 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
40341 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
40342 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
40343 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
40344 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
40345 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
40346 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
40347 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
40348 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
40349 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
40350 All callers changed.
40351
40352 * include/grub/normal.h: New prototype.
40353
40354 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40355 normal/menu_entry.c.
40356 (normal_mod_SOURCES): Likewise.
40357 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40358 (normal_mod_SOURCES): Likewise.
40359
40360 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
40361
40362 * include/grub/normal.h (grub_halt_init): New prototype.
40363 (grub_halt_fini): Likewise.
40364 (grub_reboot_init): Likewise.
40365 (grub_reboot_fini): Likewise.
40366
40367 * util/grub-emu.c: Include signal.h.
40368 (main_env): New global variable.
40369 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
40370 catch C-c.
40371 (grub_machine_fini): New function.
40372 (main): Call grub_halt_init and grub_reboot_init before
40373 grub_main, and grub_reboot_fini and grub_halt_fini after it.
40374 Call setjmp with MAIN_ENV to go back afterwards.
40375 Call grub_machine_fini right before return.
40376
40377 * include/grub/util/misc.h: Include setjmp.h.
40378 (main_env): New prototype.
40379
40380 * include/grub/kernel.h (grub_machine_fini): New prototype.
40381 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
40382 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
40383
40384 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
40385 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
40386 * term/i386/pc/console.c (grub_console_fini): Likewise.
40387
40388 * util/i386/pc/misc.c: New file.
40389
40390 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40391 util/i386/pc/misc.c, commands/i386/pc/halt.c and
40392 commands/i386/pc/reboot.c.
40393
40394 2005-02-14 Guillem Jover <guillem@hadrons.org>
40395
40396 * include/grub/dl.h (grub_dl_check_header): New prototype.
40397 (grub_arch_dl_check_header): Change return type to grub_err_t,
40398 remove size parameter and export function. Update all callers.
40399 * kern/dl.c (grub_dl_check_header): New function.
40400 (grub_dl_load_core): Use `grub_dl_check_header' instead of
40401 `grub_arch_dl_check_header'. Check ELF type. Check if sections
40402 are inside the core.
40403 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
40404 independent ELF header checks.
40405 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
40406 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
40407 `grub_dl_check_header' instead of explicit checks. Check for the
40408 ELF type.
40409 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
40410 `grub_dl_check_header' instead of explicit checks. Remove arch
40411 specific ELF header checks.
40412
40413 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
40414 argument SIZE.
40415
40416 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
40417
40418 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
40419 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
40420
40421 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
40422
40423 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
40424 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
40425 (part_map_iterate): Clear `grub_errno' and return 0 if
40426 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
40427 * partmap/amiga.c (amiga_partition_map_iterate): Return
40428 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
40429 * partmap/apple.c (apple_partition_map_iterate): Likewise.
40430
40431 2005-02-01 Guillem Jover <guillem@hadrons.org>
40432
40433 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
40434 help info.
40435
40436 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40437
40438 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
40439 Removed prototype.
40440 (grub_rescue_cmd_linux): New prototype.
40441 (grub_rescue_cmd_initrd): Likewise.
40442 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
40443 `bi_rec'.
40444 (grub_linux_release_mem): Release the memory for the initrd.
40445 (grub_load_linux): Renamed from this...
40446 (grub_rescue_cmd_linux): ...To this. Changed all callers.
40447 Changed `entry' not to be static. Loop over memory regions to
40448 find another one when the default fails.
40449 (grub_rescue_cmd_initrd): New function.
40450 (grub_linux_init): Remove function.
40451 (grub_linux_fini): Likewise.
40452 (GRUB_MOD_INIT): Register `initrd'.
40453 (GRUB_MOD_FINI): Unregister `initrd'.
40454 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
40455 Function removed.
40456 (grub_linux_normal_fini): Likewise.
40457 (GRUB_MOD_INIT): Register `initrd'.
40458 (GRUB_MOD_FINI): Unregister `initrd'.
40459
40460 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40461
40462 * commands/help.c: New file.
40463 * normal/arg.c (show_help): Renamed to...
40464 (grub_arg_show_help): ... this.
40465 * commands/i386/pc/halt.c: New file.
40466 * commands/i386/pc/reboot.c: Likewise.
40467 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
40468 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
40469 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
40470 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
40471 variables.
40472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40473 `commands/help.c'.
40474 (pkgdata_MODULES): Add `help.mod'.
40475 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
40476 * grub/i386/pc/init.h (grub_reboot): New prototype.
40477 (grub_halt): Likewise.
40478 * include/grub/normal.h (grub_arg_show_help): New prototype.
40479 (grub_help_init): Likewise.
40480 (grub_help_fini): Likewise.
40481 * util/grub-emu.c (main): Initialize and deinitialize the help
40482 command.
40483
40484 * normal/cmdline.c (grub_cmdline_get): Doc fix.
40485
40486 * normal/command.c (grub_command_init): Fixed the description of
40487 the `set' and `unset' commands.
40488
40489 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40490
40491 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
40492 function.
40493 * commands/ieee1275/halt.c: New file.
40494 * commands/ieee1275/reboot.c: Likewise.
40495 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
40496 `__attribute__ ((unused))'. Some GCS related fixed.
40497 (grub_suspend_init) [GRUB_UTIL]: Function removed.
40498 (grub_suspend_fini): Likewise.
40499 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
40500 and `halt.mod'.
40501 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
40502 (halt_mod_CFLAGS): New variables.
40503 * include/grub/powerpc/ieee1275/ieee1275.h
40504 (grub_ieee1275_interpret): New prototype.
40505
40506 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
40507
40508 * include/grub/misc.h (memmove): New prototype.
40509 (memcpy): Likewise.
40510
40511 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
40512
40513 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
40514 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
40515
40516 2005-01-22 Marco Gerards <metgerards@student.han.nl>
40517
40518 * kern/misc.c (grub_strndup): Function rewritten.
40519
40520 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
40521
40522 * normal/menu.c (TERM_WIDTH): Macro redefined.
40523 (TERM_TOP_BORDER_Y): Likewise.
40524 (draw_border): Replaced while-loop by a for-loop. Make the number
40525 of lines consistent with the number of lines displayed in
40526 print_entries. Added a margin below the rectangle.
40527 (print_entry): Make the entry fit in the rectangle.
40528 (print_entries): Display the scroll arrows next to the right
40529 border.
40530
40531 2005-01-21 Marco Gerards <metgerards@student.han.nl>
40532
40533 * fs/minix.c (grub_minix_find_file): Reserve more space for
40534 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
40535 `grub_strncpy' to copy `path' into it.
40536
40537 2005-01-21 Marco Gerards <metgerards@student.han.nl>
40538
40539 Add the loopback device, a device via which files can be accessed
40540 as devices.
40541
40542 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
40543 (pkgdata_MODULES): Add loopback.mod.
40544 (loopback_mod_SOURCES): New variable.
40545 (loopback_mod_CFLAGS): Likewise.
40546 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40547 `disk/loopback.c'.
40548 (pkgdata_MODULES): Add loopback.mod.
40549 (loopback_mod_SOURCES): New variable.
40550 (loopback_mod_CFLAGS): Likewise.
40551 * disk/loopback.c: new file.
40552 * include/grub/normal.h (grub_loop_init): New prototype.
40553 (grub_loop_fini): New prototype.
40554 * util/grub-emu.c (main): Initialize and de-initialize loopback
40555 support.
40556 * include/grub/disk.h (grub_disk_dev_id): Add
40557 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
40558
40559 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
40560
40561 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
40562 function.
40563 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
40564 (suspend_mod_SOURCES): New variable.
40565 (suspend_mod_CFLAGS): Likewise.
40566 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
40567 New prototype.
40568 * commands/ieee1275/suspend.c: New file.
40569
40570 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
40571
40572 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
40573 ((unused))' to `__attribute__ ((used))'.
40574 (GRUB_MOD_FINI): Likewise.
40575 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
40576 * genmk.rb (PModule): Assign space to common symbols when linking
40577 modules.
40578
40579 2005-01-20 Marco Gerards <metgerards@student.han.nl>
40580
40581 * include/grub/mm.h (grub_mm_init_region): Change the type of the
40582 `unsigned' arguments to `grub_size_t'.
40583 (grub_malloc): Likewise.
40584 (grub_realloc): Likewise.
40585 (grub_memalign): Likewise.
40586 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
40587 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
40588 * util/misc.c (grub_malloc): Likewise.
40589 (grub_realloc): Likewise.
40590 * kern/mm.c (get_header_from_pointer): Change the casts to
40591 `unsigned' into a cast to `grub_size_t'.
40592
40593 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
40594 point to `currnode' when `currnode' is changed.
40595
40596 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
40597 Schottelius <nico-linux@schottelius.org>.
40598
40599 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
40600
40601 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
40602 (note_path): Remove variable.
40603 (GRUB_IEEE1275_NOTE_NAME): New macro.
40604 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
40605 (grub_ieee1275_note_hdr): New structure.
40606 (grub_ieee1275_note_desc): Likewise.
40607 (grub_ieee1275_note): Likewise.
40608 (load_note): Remove `dir' argument. All callers updated. Remove
40609 `note_img' and `path'. Do not load a file from `note_path'.
40610 Initialize a struct grub_ieee1275_note and write that to `out'.
40611 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
40612
40613 2005-01-05 Marco Gerards <metgerards@student.han.nl>
40614
40615 * util/misc.c (grub_util_read_image): Revert last change. It
40616 called `grub_util_read_at', which seeks from the beginning of the
40617 file.
40618
40619 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
40620
40621 * TODO: Add note about endianness in grub-mkimage.
40622 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
40623 section.
40624 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
40625 (grub_mkimage_SOURCES): New target.
40626 * include/grub/kernel.h (grub_start_addr): Remove variable.
40627 (grub_end_addr): Likewise.
40628 (grub_total_module_size): Likewise.
40629 (grub_kernel_image_size): Likewise.
40630 (GRUB_MODULE_MAGIC): New constant.
40631 (grub_module_info): New structure.
40632 (grub_arch_modules_addr): New prototype.
40633 (grub_get_end_addr): Remove prototype.
40634 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
40635 * include/grub/powerpc/ieee1275/kernel.h: New file.
40636 * include/grub/util/misc.h (grub_util_get_fp_size): New
40637 prototype.
40638 (grub_util_read_at): Likewise.
40639 (grub_util_write_image_at): Likewise.
40640 * kern/main.c (grub_get_end_addr): Remove function.
40641 (grub_load_modules): Call grub_arch_modules_addr instead of using
40642 grub_end_addr. Look for a grub_module_info struct in memory. Use
40643 the grub_module_info fields instead of calling grub_get_end_addr
40644 as loop conditions. Move grub_add_unused_region code here.
40645 (grub_add_unused_region): Remove function.
40646 * kern/i386/pc/init.c: Include grub/cache.h.
40647 (grub_machine_init): Remove call to grub_get_end_addr. Remove
40648 one call to add_mem_region.
40649 (grub_arch_modules_addr): New function.
40650 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
40651 (grub_total_module_size): Likewise.
40652 Include grub/machine/kernel.h.
40653 (grub_arch_modules_addr): New function.
40654 * util/grub-emu.c (grub_end_addr): Remove variable.
40655 (grub_total_module_size): Likewise.
40656 (grub_arch_modules_addr): New function.
40657 * util/misc.c: Include unistd.h.
40658 (grub_util_get_fp_size): New function.
40659 (grub_util_read_at): Likewise.
40660 (grub_util_write_image_at): Likewise.
40661 (grub_util_read_image): Call grub_util_read_at.
40662 (grub_util_write_image): Call grub_util_write_image_at.
40663 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
40664 additional memory in kernel_img for a struct grub_module_info.
40665 Fill in that grub_module_info.
40666 * util/powerpc/ieee1275/grub-mkimage.c: New file.
40667
40668 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
40669
40670 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
40671 New function.
40672 * include/grub/powerpc/ieee1275/ieee1275.h
40673 (grub_ieee1275_milliseconds): New prototype.
40674 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
40675 Change to 1000.
40676 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
40677 grub_ieee1275_milliseconds.
40678
40679 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
40680
40681 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
40682 variable.
40683 (find_options): New function.
40684 (cmain): Call find_options.
40685 * include/grub/powerpc/ieee1275/ieee1275.h
40686 (grub_ieee1275_realmode): New extern variable.
40687 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
40688 grub_map if grub_ieee1275_realmode is false.
40689
40690 2004-12-29 Marco Gerards <metgerards@student.han.nl>
40691
40692 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
40693 lines are inserted and make it work like readline. Reported by
40694 Vincent Pelletier <subdino2004@yahoo.fr>.
40695
40696 2004-12-28 Marco Gerards <metgerards@student.han.nl>
40697
40698 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
40699
40700 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
40701 `kern/powerpc/cache.S'.
40702
40703 2004-12-27 Marco Gerards <metgerards@student.han.nl>
40704
40705 * genmk.rb: Handle the `Program' class in the main loop. Written
40706 by Johan Rydberg <jrydberg@gnu.org>.
40707 (Program): New class.
40708 (programs): New variable.
40709 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
40710 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
40711 instead of "grub/kernel.h". Include <grub/machine/init.h>.
40712 (help_arch): Function removed.
40713 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
40714 `powerpc/libgcc.h' and `loader.h'.
40715 (pkgdata_PROGRAMS): New variable.
40716 (sbin_UTILITIES): Variable removed.
40717 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
40718 (grubof_SOURCES): Variable re-defined so it only includes the
40719 core functionality.
40720 (grubof_CFLAGS): Remove `-DGRUBOF'.
40721 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
40722 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
40723 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
40724 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
40725 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
40726 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
40727 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
40728 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
40729 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
40730 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
40731 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
40732 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
40733 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
40734 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
40735 (pc_mod_CFLAGS): New variables.
40736 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
40737 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
40738 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
40739 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
40740 Moved from here...
40741 * include/grub/i386/pc/init.h (grub_os_area_addr)
40742 (rub_os_area_size): ... to here.
40743 * include/grub/powerpc/ieee1275/ieee1275.h
40744 (grub_ieee1275_entry_fn): Export symbol.
40745 * include/grub/powerpc/ieee1275/init.h: New file.
40746 * include/grub/powerpc/libgcc.h: Likewise.
40747 * include/grub/cache.h: Likewise.
40748 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
40749 <hollis@penguinppc.org>.
40750 * kern/dl.c: Include <grub/cache.h>.
40751 (grub_dl_flush_cache): New function.
40752 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
40753 for this module.
40754 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
40755 (grub_console_init): Removed prototypes.
40756 (grub_machine_init): Don't initialize the modules anymore.
40757 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
40758 static.
40759 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
40760 Macro undef removed.
40761 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
40762 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
40763 relocation `R_PPC_REL32'. Return an error when the relocation is
40764 unknown.
40765 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
40766 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
40767 * util/misc.c (grub_arch_sync_caches): Likewise.
40768
40769 2004-12-19 Marco Gerards <metgerards@student.han.nl>
40770
40771 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
40772 `symlist.c', add `grubof_symlist.c'.
40773 (symlist.c): Variable removed.
40774 (grubof_HEADERS): Variable added.
40775 (grubof_symlist.c): New target.
40776 (kernel_syms.lst): Use `grubof_HEADERS' instead of
40777 `kernel_img_HEADERS'.
40778 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
40779 * kern/powerpc/dl.c: New file.
40780 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
40781 Function removed.
40782 (grub_arch_dl_relocate_symbols): Likewise.
40783 (grub_register_exported_symbols): Likewise.
40784
40785 2004-12-13 Marco Gerards <metgerards@student.han.nl>
40786
40787 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
40788 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
40789 to fail instead. Reported by Vincent Pelletier
40790 <subdino2004@yahoo.fr>.
40791
40792 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
40793 it is not allocated. Reported by Vincent Pelletier
40794 <subdino2004@yahoo.fr>.
40795
40796 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
40797 output so the output looks better.
40798
40799 2004-12-04 Marco Gerards <metgerards@student.han.nl>
40800
40801 Modulize the partition map support and add support for the amiga
40802 partition map.
40803
40804 * commands/ls.c: Include <grub/partition.h> instead of
40805 <grub/machine/partition.h>.
40806 * kern/disk.c: Likewise.
40807 * kern/rescue.c: Likewise.
40808 * loader/i386/pc/chainloader.c: Likewise.
40809 * normal/cmdline.c: Likewise.
40810 * kern/powerpc/ieee1275/init.c: Likewise.
40811 (grub_machine_init): Call `grub_pc_partition_map_init',
40812 `grub_amiga_partition_map_init' and
40813 `grub_apple_partition_map_init'.
40814 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
40815 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
40816 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
40817 `partition.h' and `pc_partition.h'.
40818 (grub_setup_SOURCES): Remove
40819 `disk/i386/pc/partition.c'. Add `kern/partition.c',
40820 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
40821 (grub_emu_SOURCES): Likewise.
40822 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
40823 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
40824 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
40825 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
40826 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
40827 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
40828 (grubof_SOURCES): Likewise.
40829 * disk/i386/pc/partition.c: File removed.
40830 * disk/powerpc/ieee1275/partition.c: Likewise.
40831 * include/grub/powerpc/ieee1275/partition.h: Likewise.
40832 * include/grub/i386/pc/partition.h: Likewise.
40833 * kern/partition.c: New file.
40834 * partmap/amiga.c: Likewise.
40835 * partmap/apple.c: Likewise.
40836 * partmap/pc.c: Likewise.
40837 * include/grub/partition.h: Likewise..
40838 * include/grub/pc_partition.h: Likewise.
40839 * util/grub-emu.c: Include <grub/partition.h> instead of
40840 <grub/machine/partition.h>.
40841 (main): Call `grub_pc_partition_map_init',
40842 `grub_amiga_partition_map_init' and
40843 `grub_apple_partition_map_init' and deinitialize afterwards.
40844 * util/i386/pc/biosdisk.c: Include `#include
40845 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
40846 `<grub/machine/partition.h>'.
40847 * util/i386/pc/grub-setup.c: Likewise.
40848 * util/i386/pc/biosdisk.c: Likewise.
40849 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
40850 partition information in case of a PC partition.
40851 * util/i386/pc/grub-setup.c: Include `#include
40852 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
40853 `<grub/machine/partition.h>'.
40854 (setup): Only access the PC specific partition information in case
40855 of a PC partition.
40856
40857 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
40858
40859 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
40860 (grub_longjmp): Likewise.
40861 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
40862 20.
40863 * normal/powerpc/setjmp.S: New file.
40864 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
40865 `normal/powerpc/setjmp.S'.
40866 (grubof_CFLAGS): Add `-DGRUBOF'.
40867 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
40868 [GRUB_UTIL && !GRUBOF].
40869
40870 2004-11-16 Marco Gerards <metgerards@student.han.nl>
40871
40872 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
40873 property named `name'. Correctly handle the error returned by
40874 `grub_ieee1275_finddevice' if a device can not be opened.
40875
40876 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
40877
40878 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
40879 `actual' for negativity.
40880 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
40881 kern/fshelp.c.
40882
40883 2004-11-01 Marco Gerards <metgerards@student.han.nl>
40884
40885 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
40886 (PAGE_OFFSET): New macro.
40887 (CRTC_ADDR_PORT): Likewise.
40888 (CRTC_DATA_PORT): Likewise.
40889 (START_ADDR_HIGH_REGISTER): Likewise.
40890 (START_ADDR_LOW_REGISTER): Likewise.
40891 (GRAPHICS_ADDR_PORT): Likewise.
40892 (GRAPHICS_DATA_PORT): Likewise.
40893 (READ_MAP_REGISTER): Likewise.
40894 (INPUT_STATUS1_REGISTER): Likewise.
40895 (INPUT_STATUS1_VERTR_BIT): Likewise.
40896 (page): New variable.
40897 (wait_vretrace): New function.
40898 (set_read_map): Likewise.
40899 (set_start_address): Likewise.
40900 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
40901 the right page.
40902 (check_vga_mem): Take the page into account.
40903 (write_char): Likewise.
40904 (write_cursor): Likewise.
40905 (scroll_up): Likewise. Copy the page to the page that is not
40906 shown and switch between both pages.
40907 (grub_vga_putchar): Fix off by one error.
40908 (grub_vga_cls): Wait for the vertical retrace. Take the page into
40909 account.
40910
40911 2004-11-01 Marco Gerards <metgerards@student.han.nl>
40912
40913 Add support for iso9660 (including rockridge).
40914
40915 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
40916 (iso9660_mod_SOURCES): New variable.
40917 (iso9660_mod_CFLAGS): Likewise.
40918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
40919 * include/grub/fs.h (grub_iso9660_init): New prototype.
40920 * util/grub-emu.c (main): Call `grub_iso9660_init'.
40921 * fs/iso9660.c: New file.
40922
40923 * include/grub/misc.h (grub_strncat): New prototype.
40924 * kern/misc.c (grub_strncat): New function.
40925
40926 * fs/hfs.c (grub_hfs_mount): Translate the error
40927 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
40928 * fs/jfs.c (grub_jfs_mount): Likewise.
40929 * fs/ufs.c (grub_ufs_mount): Likewise.
40930
40931 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
40932
40933 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
40934 which initialized BAT registers.
40935 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
40936 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
40937 Move from here...
40938 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
40939 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
40940 ... to here.
40941 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
40942 (grub_mapclaim): Likewise.
40943 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
40944 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
40945 hand.
40946
40947 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
40948
40949 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
40950 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
40951 -ffreestanding and -msoft-float.
40952
40953 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
40954
40955 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
40956 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
40957 set in grub_ieee1275_flags.
40958
40959 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
40960
40961 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
40962 prototype.
40963 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
40964 grub_console_init first.
40965 Change the memory range used for grub_ieee1275_claim and
40966 grub_mm_init_region.
40967 Print an error message if the claim fails.
40968 Include <grub/misc.h>.
40969
40970 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
40971
40972 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
40973 Call grub_children_iterate for device nodes of type `scsi',
40974 `ide', or `ata'.
40975 (grub_ofdisk_open): Remove manual device alias resolution.
40976 Fix memory leak when device cannot be opened.
40977 * include/grub/powerpc/ieee1275/ieee1275.h
40978 (grub_children_iterate): New prototype.
40979 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
40980 New function.
40981 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
40982 Return -1 if args.size was -1.
40983
40984 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
40985
40986 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
40987 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
40988 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
40989 Open Firmware's memory for it; claim memory from _start to _end.
40990 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
40991 (_end): New extern.
40992 (_start): Zero BSS from __bss_start to _end.
40993 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
40994 New extern.
40995 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
40996
40997 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
40998
40999 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
41000 -1 if args.base was -1.
41001
41002 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
41003
41004 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
41005 escape sequence instead of a literal ^L. Also call
41006 grub_ofconsole_gotoxy.
41007
41008 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
41009
41010 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
41011 void * arguments to grub_addr_t. All callers updated. Also make
41012 the `result' argument optional.
41013 (grub_ieee1275_release): change void * arguments to grub_addr_t.
41014 All callers updated.
41015
41016 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
41017
41018 * commands/ls.c (grub_ls_list_files): Use the string following the
41019 initial ')', if present, as the filesystem path.
41020 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
41021
41022 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
41023
41024 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
41025
41026 Make the source code of the menu interface more readable.
41027
41028 * normal/menu.c: Include grub/mm.h.
41029 (TERM_WIDTH): New macro.
41030 (TERM_HEIGHT): Likewise.
41031 (TERM_INFO_HEIGHT): Likewise.
41032 (TERM_MARGIN): Likewise.
41033 (TERM_SCROLL_WIDTH): Likewise.
41034 (TERM_TOP_BORDER_Y): Likewise.
41035 (TERM_LEFT_BORDER_X): Likewise.
41036 (TERM_BORDER_WIDTH): Likewise.
41037 (TERM_MESSAGE_HEIGHT): Likewise.
41038 (TERM_BORDER_HEIGHT): Likewise.
41039 (TERM_NUM_ENTRIES): Likewise.
41040 (TERM_FIRST_ENTRY_Y): Likewise.
41041 (TERM_ENTRY_WIDTH): Likewise.
41042 (TERM_CURSOR_X): Likewise.
41043 (draw_border): Use macros instead of magic numbers.
41044 (print_entry): Likewise.
41045 (print_entries): Likewise.
41046 (run_menu): Likewise. Also, handle the key 'e'.
41047 (run_menu_entry): Ignore empty command lines.
41048 (print_message): Added a new argument EDIT. If EDIT is true,
41049 print a different message.
41050 (init_page): Likewise.
41051 (edit_menu_entry): New function. Not implemented yet.
41052
41053 2004-09-17 Marco Gerards <metgerards@student.han.nl>
41054
41055 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
41056 can be loaded from normal mode.
41057
41058 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
41059 `multiboot.mod'.
41060 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
41061 (multiboot_mod_CFLAGS): New variables.
41062 * loader/i386/pc/linux_normal.c: New file.
41063 * loader/i386/pc/multiboot_normal.c: Likewise.
41064
41065 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
41066 attribute `unused'.
41067
41068 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
41069 `fdiro' to read the mode information from instead of `diro'.
41070
41071 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
41072 looking up a symlink.
41073
41074 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
41075 macro.
41076 * normal/command.c (grub_command_execute): Don't parse the
41077 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
41078 flags of the command.
41079
41080 * normal/menu.c (grub_menu_run): Fix typo.
41081
41082 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
41083
41084 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
41085
41086 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
41087 `y + 1' instead of `y - 1'.
41088
41089 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
41090
41091 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
41092
41093 From Hollis Blanchard <hollis@penguinppc.org>:
41094 * kern/misc.c (memmove): New alias for grub_memmove.
41095 (memcmp): New alias for grub_memcmp.
41096 (memset): New alias for grub_memset.
41097 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41098 Change "int handle" to "grub_ieee1275_phandle_t handle".
41099 * include/grub/powerpc/ieee1275/ieee1275.h
41100 (grub_ieee1275_get_property): Likewise.
41101
41102 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
41103
41104 Added normal mode command `chainloader' as module chain.mod, which
41105 depends on normal.mod and _chain.mod.
41106
41107 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
41108 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
41109 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
41110 Deleted prototype.
41111 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
41112 but arguments parsing moved to ...
41113 (grub_chainloader_cmd): ... here. New function.
41114 * include/grub/i386/pc/chainloader.h: New file.
41115 * loader/i386/pc/chainloader_normal.c: Likewise.
41116
41117 2004-09-11 Marco Gerards <metgerards@student.han.nl>
41118
41119 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
41120 (grub_mkimage_LDFLAGS): Likewise.
41121 (grub_emu_SOURCES): Likewise.
41122 (kernel_img_HEADERS): Added fshelp.h.
41123 * fs/ext2.c: Include <grub/fshelp.h>.
41124 (FILETYPE_REG): New macro.
41125 (FILETYPE_INO_REG): Likewise.
41126 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
41127 Changed all users.
41128 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
41129 all users.
41130 (grub_fshelp_node): New struct.
41131 (grub_ext2_data): Added member `diropen'. Changed member `inode'
41132 to a pointer.
41133 (grub_ext2_get_file_block): Removed function.
41134 (grub_ext2_read_block): New function.
41135 (grub_ext2_read_file): Replaced parameter `data' by `node'.
41136 This function was written.
41137 (grub_ext2_mount): Read the root inode. Create a diropen struct.
41138 (grub_ext2_find_file): Removed function.
41139 (grub_ext2_read_symlink): New function.
41140 (grub_ext2_iterate_dir): Likewise.
41141 (grub_ext2_open): Rewritten.
41142 (grub_ext2_dir): Rewritten.
41143 * include/grub/fshelp.h: New file.
41144 * fs/fshelp.c: Likewise.
41145
41146 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
41147
41148 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
41149 (print_message): Add a missing newline.
41150 (run_menu): Added timeout support.
41151 (run_menu_entry): New local function.
41152 (grub_menu_run): Added support for booting.
41153
41154 * kern/loader.c (grub_loader_is_loaded): New function.
41155
41156 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
41157 (grub_get_rtc): Exported.
41158
41159 * include/grub/i386/pc/time.h: Include grub/symbol.h.
41160 (grub_get_rtc): Exported.
41161
41162 * include/grub/normal.h (struct grub_command_list): Remove
41163 constant from the member `command'.
41164
41165 * include/grub/loader.h (grub_loader_is_loaded): Declared.
41166
41167 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
41168
41169 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
41170
41171 2004-08-28 Marco Gerards <metgerards@student.han.nl>
41172
41173 Add support for the JFS filesystem.
41174
41175 * fs/jfs.c: New file.
41176 * include/grub/fs.h (grub_jfs_init): New prototype.
41177 (grub_jfs_fini): New prototype.
41178 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
41179 (grub_emu_SOURCES): Likewise.
41180 (pkgdata_MODULES): Add jfs.mod.
41181 (jfs_mod_SOURCES): New variable.
41182 (jfs_mod_CFLAGS): Likewise.
41183 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
41184 (grubof_SOURCES): Likewise.
41185 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
41186
41187 * fs/fat.c (grub_fat_find_dir): Convert the filename little
41188 endian to the host endian.
41189 (grub_fat_utf16_to_utf8): Move function from there...
41190 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
41191 the endianness of the source string anymore.
41192 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
41193
41194 2004-08-24 Marco Gerards <metgerards@student.han.nl>
41195
41196 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
41197 (grub_boot_fini) [GRUB_UTIL]: Likewise.
41198 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
41199 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
41200
41201 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
41202 (grub_hfs_iterate_dir): Make the function static. Add prototypes
41203 for `node_found' and `it_dir'.
41204 (grub_hfs_dir): Add prototype for `dir_hook'.
41205
41206 * fs/minix.c (grub_minix_get_file_block): Add prototype for
41207 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
41208 and `indir32' to silence a gcc warning.
41209
41210 * include/grub/fs.h (grub_hfs_init): New prototype.
41211 (grub_hfs_fini): Likewise.
41212
41213
41214 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
41215
41216 Each disk device has its own id now. This is useful to make use
41217 of multiple disk devices.
41218
41219 * include/grub/disk.h (grub_disk_dev_id): New enum.
41220 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
41221 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
41222
41223 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
41224 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41225
41226 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
41227 GRUB_DISK_DEVICE_OFDISK_ID as an id.
41228
41229 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
41230 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41231
41232 * include/grub/disk.h (struct grub_disk_dev): Added a new member
41233 "id" which is used by the cache manager.
41234
41235 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
41236 of just "GRUB".
41237
41238 2004-08-18 Marco Gerards <metgerards@student.han.nl>
41239
41240 * fs/hfs.c: New file.
41241 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
41242 (grub_emu_SOURCES): Likewise.
41243 (pkgdata_MODULES): Add hfs.mod.
41244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
41245 (grubof_SOURCES): Likewise.
41246 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
41247
41248 * include/grub/misc.h (grub_strncasecmp): Add prototype.
41249 * kern/misc.c (grub_strncasecmp): Add function.
41250
41251 2004-08-14 Marco Gerards <metgerards@student.han.nl>
41252
41253 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
41254 with parentheses.
41255
41256 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
41257 (grub_ext2_dir): In case the directory entry type is unknown, read
41258 it from the inode.
41259
41260 2004-08-02 Peter Bruin <pjbruin@dds.nl>
41261
41262 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
41263 grub_load_linux instead of grub_rescue_cmd_linux as second
41264 argument of grub_rescue_register_command.
41265
41266 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
41267
41268 2004-07-27 Marco Gerards <metgerards@student.han.nl>
41269
41270 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
41271 function.
41272 * commands/boot.c: Remove the check for `GRUB_UTIL'.
41273 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41274 `loader/powerpc/ieee1275/linux.c',
41275 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
41276 * include/grub/powerpc/ieee1275/ieee1275.h
41277 (grub_ieee1275_release): New prototype.
41278 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
41279 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
41280 normal, boot, linux and linux_normal.
41281 * loader/powerpc/ieee1275/linux.c: New file.
41282 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41283
41284 2004-07-12 Marco Gerards <metgerards@student.han.nl>
41285
41286 * normal/arg.c (grub_arg_parse): Correct error handling after
41287 reallocating the argumentlist (check if `argl' is not null instead
41288 of checking if `args' is not null).
41289 * kern/mm.c (grub_realloc): Return the same pointer when using the
41290 same region, instead of returning the header address.
41291
41292 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41293
41294 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
41295 one block instead of two when looking for the initial partition.
41296 (grub_partition_probe): Initialize the local variable `p' with 0.
41297 Use base 10 for the grub_strtoul call.
41298 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
41299 need for one local variable.
41300 (grub_strtoul): Don't add the new value to `num', instead of that
41301 just assign it.
41302
41303 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41304
41305 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
41306 (pxeboot_img_SOURCES): New variable.
41307 (pxeboot_img_ASFLAGS): Likewise.
41308 (pxeboot_img_LDFLAGS): Likewise.
41309 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
41310 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
41311 <lode_leroy@hotmail.com>.
41312
41313 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41314
41315 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
41316 there was no input.
41317
41318 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41319
41320 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
41321 the history buffer logic.
41322
41323 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41324
41325 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
41326 (FILETYPE_INO_SYMLINK): New macros.
41327 (grub_ext2_find_file): Check if the node is a directory using the
41328 inode stat information instead of using the filetype in the
41329 dirent. Exclude the first character of an absolute symlink.
41330 (grub_ext2_dir): Mask out the filetype part of the mode member of
41331 the inode.
41332
41333 2004-05-24 Marco Gerards <metgerards@student.han.nl>
41334
41335 Add support for UFS version 1 and 2. Add support for the minix
41336 filesystem version 1 and 2, both the variants with 14 and 30 long
41337 filenames.
41338
41339 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
41340 fs/minix.c.
41341 (grub_emu_SOURCES): Likewise.
41342 (pkgdata_MODULES): Add ufs.mod and minix.mod.
41343 (ufs_mod_SOURCES): New variable.
41344 (ufs_mod_CFLAGS): Likewise.
41345 (minix_mod_SOURCES): Likewise.
41346 (minix_mod_CFLAGS): Likewise.
41347 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
41348 fs/minix.c.
41349 (grubof_SOURCES): Likewise.
41350 * fs/ufs.c: New file.
41351 * fs/minix.c: New file.
41352 * include/grub/fs.h (grub_ufs_init): New prototype.
41353 (grub_ufs_fini): Likewise.
41354 (grub_minix_init): Likewise.
41355 (grub_minix_fini): Likewise.
41356 * util/grub-emu.c (main): Initialize and deinitialize UFS and
41357 minix fs.
41358
41359 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
41360
41361 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
41362 commands/ls.c, commands/terminal.c, commands/boot.c,
41363 commands/cmp.c and commands/cat.c.
41364 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
41365
41366 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
41367 "env.h"
41368
41369 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41370
41371 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
41372 and grub_, respectively. Because the conversion is trivial and
41373 mechanical, I omit the details here. Please refer to the CVS
41374 if you need more information.
41375
41376 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41377
41378 * include/pupa: Renamed to ...
41379 * include/grub: ... this.
41380 * util/i386/pc/pupa-mkimage.c: Renamed to ...
41381 * util/i386/pc/grub-mkimage.c: ... this.
41382 * util/i386/pc/pupa-setup.c: Renamed to ...
41383 * util/i386/pc/grub-setup.c: ... this.
41384 * util/pupa-emu.c: Renamed to ...
41385 * util/grub-emu.c: ... this.
41386
41387 2004-03-29 Marco Gerards <metgerards@student.han.nl>
41388
41389 Add support for the newworld apple macintosh (PPC). This has been
41390 tested on the powerbook 2000 only. It only adds support for
41391 generic ieee1275 functions, console and disk support. This should
41392 be easy to port to other architectures with support for Open
41393 Firmware.
41394
41395 * configure.ac: Accept the powerpc as host_cpu. In the case of
41396 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
41397 specific tests are only executed while building for the i386.
41398 Inverse test for crosscompile.
41399 * genmk.rb (Utility): Allow assembler files.
41400 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
41401 * conf/powerpc-ieee1275.rmk: New file.
41402 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
41403 * disk/powerpc/ieee1275/partition.c: Likewise.
41404 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
41405 * include/pupa/powerpc/ieee1275/console.h: Likewise.
41406 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
41407 * include/pupa/powerpc/ieee1275/time.h: Likewise.
41408 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
41409 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
41410 * include/pupa/powerpc/ieee1275/loader.h
41411 * include/pupa/powerpc/setjmp.h: Likewise.
41412 * include/pupa/powerpc/types.h: Likewise.
41413 * kern/powerpc/ieee1275/init.c: Likewise.
41414 * kern/powerpc/ieee1275/openfw.c: Likewise.
41415 * term/powerpc/ieee1275/ofconsole.c: Likewise.
41416
41417 These files were written by Johan Rydberg
41418 (jrydberg@night.trouble.net) and I only modified them slightly.
41419
41420 * boot/powerpc/ieee1275/cmain.c: New file.
41421 * boot/powerpc/ieee1275/crt0.S: Likewise.
41422 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
41423 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
41424
41425 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
41426
41427 * Makefile.in: Update copyright.
41428 * genmodsrc.sh: Likewise.
41429 * gensymlist.sh: Likewise.
41430 * term/i386/pc/vga.c: Indent correctly.
41431
41432 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
41433 bugreporting address.
41434 * util/i386/pc/pupa-setup.c (usage): Likewise,
41435 (main): Call pupa_ext2_init and pupa_ext2_fini.
41436
41437 * fs/fat.c (log2): Renamed to ...
41438 (fat_log2): ... this.
41439 All callers changed.
41440 * kern/misc.c (memcpy): Alias to pupa_memmove.
41441 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
41442 lvalue cast.
41443 * util/console.c (pupa_ncurses_fini): Return 0.
41444
41445 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
41446 Move fail label here.
41447 [__GNU__]: Don't warn when using stat.
41448 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
41449 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
41450 long int. Use strtol instead of strtoul.
41451
41452 2004-03-14 Marco Gerards <metgerards@student.han.nl>
41453
41454 * commands/boot.c: New file.
41455 * commands/cat.c: Likewise.
41456 * commands/cmp.c: Likewise.
41457 * commands/ls.c: Likewise.
41458 * commands/terminal.c: Likewise.
41459 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
41460 (pupa_register_command): Changed interface to match the new
41461 argument parser.
41462 (pupa_command_execute): Changed (almost rewritten) so it uses
41463 pupa_split_command. Added support for setting variables using the
41464 syntax `foo=bar'.
41465 (rescue_command): Changed to work with the new argument parser.
41466 (terminal_command): Moved from here to commands/terminal.c.
41467 (set_command): New function.
41468 (unset_command): New function.
41469 (insmod_command): New function.
41470 (rmmod_command): New function.
41471 (lsmod_command): New function.
41472 (pupa_command_init): Don't initialize the command terminal
41473 anymore. Initialize the commands set, unset, insmod, rmmod and
41474 lsmod.
41475 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
41476 (kernel_img_HEADERS): Add arg.h and env.h.
41477 (pupa_mkimage_LDFLAGS): Add kern/env.c.
41478 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
41479 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
41480 normal/arg.c.
41481 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
41482 terminal.mod.
41483 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
41484 (boot_mod_SOURCES): New variable.
41485 (terminal_mod_SOURCES): Likewise.
41486 (ls_mod_SOURCES): Likewise.
41487 (cmp_mod_SOURCES): Likewise.
41488 (cat_mod_SOURCES): Likewise.
41489
41490 * normal/arg.c: New file.
41491 * kern/env.c: Likewise.
41492 * include/pupa/arg.h: Likewise.
41493 * include/pupa/env.h: Likewise.
41494 * font/manager.c (font_command): Changed to match argument parsing
41495 interface changes.
41496 (PUPA_MOD_INIT): Likewise.
41497 * hello/hello.c (pupa_cmd_hello): Likewise.
41498 (PUPA_MOD_INIT): Likewise.
41499 * include/pupa/disk.h: Include <pupa/device.h>.
41500 (pupa_print_partinfo): New prototype.
41501 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
41502 (pupa_dl_get_prefix): Likewise.
41503 * include/pupa/misc.h: Include <pupa/err.h>.
41504 (pupa_isgraph): New prototype.
41505 (pupa_isdigit): Likewise.
41506 (pupa_split_cmdline): Likewise.
41507 * include/pupa/normal.h: Include <pupa/arg.h>.
41508 (pupa_command): Changed the prototype of the member `func' to
41509 match the argument parsing interface. Added member `options'.
41510 (pupa_register_command): Updated to match function.
41511 (pupa_arg_parse): New prototype.
41512 (pupa_hello_init) [PUPA_UTIL]: New prototype.
41513 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
41514 (pupa_ls_init) [PUPA_UTIL]: Likewise.
41515 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
41516 (pupa_cat_init) [PUPA_UTIL]: Likewise.
41517 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
41518 (pupa_boot_init) [PUPA_UTIL]: Likewise.
41519 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
41520 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
41521 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
41522 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
41523 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
41524 * kern/disk.c: Include <pupa/file.h>.
41525 (pupa_print_partinfo): New function.
41526 * kern/dl.c: Include <pupa/env.h>.
41527 (pupa_dl_dir): Variable removed.
41528 (pupa_dl_load): Use the environment variable `prefix' instead of
41529 the variable pupa_dl_dir.
41530 (pupa_dl_set_prefix): Function removed.
41531 (pupa_dl_get_prefix): Likewise.
41532 * kern/i386/pc/init.c: Include <pupa/env.h>.
41533 (pupa_machine_init): Use the environment variable `prefix' instead of
41534 using pupa_dl_set_prefix to set the prefix.
41535 * kern/main.c: Include <pupa/env.h>.
41536 (pupa_set_root_dev): Use the environment variable `prefix' instead of
41537 using pupa_dl_get_prefix to get the prefix.
41538 * kern/misc.c: Include <pupa/env.h>.
41539 (pupa_isdigit): New function.
41540 (pupa_isgraph): Likewise.
41541 (pupa_ftoa): Likewise.
41542 (pupa_vsprintf): Added support for printing values of the type
41543 `double'. Make it possible to format variable output when using
41544 formatting like `%1.2%f'.
41545 (pupa_split_cmdline): New function.
41546 * kern/rescue.c: Include <pupa/env.h>.
41547 (next_word): Removed function.
41548 (pupa_rescue_cmd_prefix): Likewise.
41549 (pupa_rescue_cmd_set): New function.
41550 (pupa_rescue_cmd_unset): New function.
41551 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
41552 split the command line instead of splitting it here. Added
41553 support for setting variables using the syntax `foo=bar'. Don't
41554 initialize the prefix command anymore. Initialized the set and
41555 unset commands.
41556 * normal/cmdline.c: Include <pupa/env.h>.
41557 (pupa_tab_complete): Added prototypes for print_simple_completion,
41558 print_partition_completion, add_completion, iterate_commands,
41559 iterate_dev, iterate_part and iterate_dir. Moved code to print
41560 partition information from here to kern/disk.c.
41561 (pupa_cmdline_run): Don't check if the function exists anymore.
41562 * normal/main.c: Include <pupa/env.h>.
41563 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
41564 instead of using pupa_dl_get_prefix to get the prefix.
41565 * term/i386/pc/vga.c: Include <pupa/arg.h>.
41566 (check_vga_mem): Cast pointers to `void *' to silence a gcc
41567 warning.
41568 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
41569 (pupa_vga_setcolor): Declare unused variables with `__attribute__
41570 ((unused))' to silence a gcc warning.
41571 (pupa_vga_setcolor): Likewise.
41572 (debug_command): Changed to match argument parsing
41573 interface changes.
41574 * util/pupa-emu.c: Include <pupa/env.h>.
41575 (options): Added 0's for unused fields to silence a gcc warning.
41576 (argp): Likewise.
41577 (main): Use the environment variable `prefix' instead of using
41578 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
41579 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
41580 and terminal.
41581
41582 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
41583 * util/misc.c: Include <malloc.h>.
41584 (pupa_malloc): Rewritten so errors are correctly reported.
41585 (pupa_realloc): Likewise.
41586 (pupa_memalign): Likewise.
41587 (pupa_mm_init_region): Declare unused variables with
41588 `__attribute__ ((unused))' to silence a gcc warning.
41589 * normal/i386/setjmp.S: Remove tab at the end of the file to
41590 silence a gcc warning.
41591 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
41592 variables with `__attribute__ ((unused))' to silence a gcc
41593 warning.
41594 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
41595 local variable i unsigned to silence a gcc warning.
41596
41597 * kern/term.c: Include <pupa/misc.h>.
41598 (pupa_more_lines): New variable.
41599 (pupa_more): Likewise.
41600 (pupa_putcode): When the pager is active pause at the end of every
41601 screen.
41602 (pupa_set_more): New function.
41603 * include/pupa/term.h (pupa_set_more): New prototype.
41604
41605
41606 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
41607
41608 Now this project is GRUB 2 rather than PUPA. The location of
41609 the CVS repository was moved to GRUB's.
41610
41611 * configure.ac: Use bug-grub as the reporting address.
41612 Use GRUB instead of PUPA.
41613 Change the version number to 1.90.
41614
41615 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
41616
41617 * genkernsyms.sh: Updated copyright information.
41618 * genmk.rb: Likewise.
41619 * genmodsrc.sh: Likewise.
41620 * gensymlist.sh: Likewise.
41621 * boot/i386/pc/boot.S: Likewise.
41622 * boot/i386/pc/diskboot.S: Likewise.
41623 * disk/i386/pc/biosdisk.c: Likewise.
41624 * disk/i386/pc/partition.c: Likewise.
41625 * font/manager.c: Likewise.
41626 * fs/ext2.c: Likewise.
41627 * fs/fat.c: Likewise.
41628 * include/pupa/boot.h: Likewise.
41629 * include/pupa/device.h: Likewise.
41630 * include/pupa/disk.h: Likewise.
41631 * include/pupa/dl.h: Likewise.
41632 * include/pupa/elf.h: Likewise.
41633 * include/pupa/err.h: Likewise.
41634 * include/pupa/file.h: Likewise.
41635 * include/pupa/font.h: Likewise.
41636 * include/pupa/fs.h: Likewise.
41637 * include/pupa/kernel.h: Likewise.
41638 * include/pupa/loader.h: Likewise.
41639 * include/pupa/misc.h: Likewise.
41640 * include/pupa/mm.h: Likewise.
41641 * include/pupa/net.h: Likewise.
41642 * include/pupa/normal.h: Likewise.
41643 * include/pupa/rescue.h: Likewise.
41644 * include/pupa/setjmp.h: Likewise.
41645 * include/pupa/symbol.h: Likewise.
41646 * include/pupa/term.h: Likewise.
41647 * include/pupa/types.h: Likewise.
41648 * include/pupa/i386/setjmp.h: Likewise.
41649 * include/pupa/i386/types.h: Likewise.
41650 * include/pupa/i386/pc/biosdisk.h: Likewise.
41651 * include/pupa/i386/pc/boot.h: Likewise.
41652 * include/pupa/i386/pc/console.h: Likewise.
41653 * include/pupa/i386/pc/init.h: Likewise.
41654 * include/pupa/i386/pc/kernel.h: Likewise.
41655 * include/pupa/i386/pc/linux.h: Likewise.
41656 * include/pupa/i386/pc/loader.h: Likewise.
41657 * include/pupa/i386/pc/memory.h: Likewise.
41658 * include/pupa/i386/pc/multiboot.h: Likewise.
41659 * include/pupa/i386/pc/partition.h: Likewise.
41660 * include/pupa/i386/pc/time.h: Likewise.
41661 * include/pupa/i386/pc/vga.h: Likewise.
41662 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
41663 * include/pupa/util/getroot.h: Likewise.
41664 * include/pupa/util/misc.h: Likewise.
41665 * include/pupa/util/resolve.h: Likewise.
41666 * kern/device.c: Likewise.
41667 * kern/disk.c: Likewise.
41668 * kern/dl.c: Likewise.
41669 * kern/err.c: Likewise.
41670 * kern/file.c: Likewise.
41671 * kern/fs.c: Likewise.
41672 * kern/loader.c: Likewise.
41673 * kern/main.c: Likewise.
41674 * kern/misc.c: Likewise.
41675 * kern/mm.c: Likewise.
41676 * kern/rescue.c: Likewise.
41677 * kern/term.c: Likewise.
41678 * kern/i386/dl.c: Likewise.
41679 * kern/i386/pc/init.c: Likewise.
41680 * kern/i386/pc/lzo1x.S: Likewise.
41681 * kern/i386/pc/startup.S: Likewise.
41682 * loader/i386/pc/chainloader.c: Likewise.
41683 * loader/i386/pc/linux.c: Likewise.
41684 * loader/i386/pc/multiboot.c: Likewise.
41685 * normal/cmdline.c: Likewise.
41686 * normal/command.c: Likewise.
41687 * normal/main.c: Likewise.
41688 * normal/menu.c: Likewise.
41689 * normal/i386/setjmp.S: Likewise.
41690 * term/i386/pc/console.c: Likewise.
41691 * term/i386/pc/vga.c: Likewise.
41692 * util/console.c: Likewise.
41693 * util/genmoddep.c: Likewise.
41694 * util/misc.c: Likewise.
41695 * util/pupa-emu.c: Likewise.
41696 * util/resolve.c: Likewise.
41697 * util/unifont2pff.rb: Likewise.
41698 * util/i386/pc/biosdisk.c: Likewise.
41699 * util/i386/pc/getroot.c: Likewise.
41700 * util/i386/pc/pupa-mkimage.c: Likewise.
41701 * util/i386/pc/pupa-setup.c: Likewise.
41702
41703 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
41704
41705 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
41706 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
41707 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
41708 reading and reset it after reading.
41709 (pupa_ext2_close): Return PUPA_ERR_NONE.
41710
41711 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
41712 Correct value.
41713 (struct linux_kernel_header): Add kernel_version and
41714 initrd_addr_max.
41715 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
41716 pupa_file_read succeeds.
41717 (pupa_rescue_cmd_initrd): Implement.
41718
41719 2003-12-03 Marco Gerards <metgerards@student.han.nl>
41720
41721 * fs/ext2.c (pupa_ext2_label): New function.
41722 (pupa_ext2_fs): Added label.
41723 * fs/fat.c (pupa_fat_label): New function.
41724 (pupa_fat_fs): Added label.
41725 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
41726
41727 * kern/misc.c (pupa_strndup): New function.
41728 * include/pupa/misc.h (pupa_strndup): New prototype.
41729
41730 * include/pupa/normal.h: Include <pupa/err.h>.
41731 (pupa_set_history): New prototype.
41732 (pupa_iterate_commands): New prototype.
41733 * normal/cmdline.c: Include <pupa/machine/partition.h>,
41734 <pupa/disk.h>, <pupa/file.h>.
41735 (hist_size): New variable.
41736 (hist_lines): Likewise.
41737 (hist_end): Likewise.
41738 (hist_used): Likewise.
41739 (pupa_set_history): New function.
41740 (pupa_history_get): Likewise.
41741 (pupa_history_add): Likewise.
41742 (pupa_history_replace): Likewise.
41743 (pupa_tab_complete): Likewise.
41744 (pupa_cmdline_run): Added tab completion and history buffer. Tab
41745 completion shows partitionnames while completing partitions, this
41746 feature was suggested by Jeff Bailey.
41747 * normal/command.c (pupa_iterate_commands): New function.
41748 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
41749 (pupa_normal_init): Initialize history buffer.
41750 (PUPA_MOD_INIT): Likewise.
41751 (pupa_normal_fini): Free the history buffer.
41752 (PUPA_MOD_FINI): Likewise.
41753
41754 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
41755 key.
41756
41757 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
41758 * configure.ac [i386]: Check for regparam bug.
41759 (NESTED_FUNC_ATTR) [! i386]: Defined.
41760
41761 2003-11-17 Marco Gerards <metgerards@student.han.nl>
41762
41763 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
41764 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
41765 (pupa_emu_SOURCES): New variable.
41766 (pupa_emu_LDFLAGS): Likewise.
41767 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
41768 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
41769 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
41770 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
41771 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
41772 (pupa_jmp_buf): New typedef.
41773 (pupa_setjmp) [PUPA_UTIL]: New macro.
41774 (pupa_longjmp) [PUPA_UTIL]: Likewise.
41775 * include/pupa/term.h (struct pupa_term): New member `refresh'.
41776 (pupa_refresh): New prototype.
41777 * include/pupa/util/getroot.h: New file.
41778 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
41779 it.
41780 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
41781 (pupa_rescue_cmd_cat): Likewise.
41782 (pupa_rescue_cmd_ls): Likewise.
41783 (pupa_rescue_cmd_testload): Likewise.
41784 (pupa_rescue_cmd_lsmod): Likewise.
41785 * normal/cmdline.c (pupa_cmdline_get): Likewise.
41786 * normal/menu.c (run_menu): Likewise.
41787 * kern/term.c (pupa_cls): Likewise.
41788 (pupa_refresh): New function.
41789 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
41790 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
41791 * util/console.c: New file.
41792
41793 * util/i386/pc/getroot.c: New file.
41794 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
41795 (pupa_putchar): New function.
41796 (pupa_refresh): Likewise.
41797 (xgetcwd): Function moved to ...
41798 (strip_extra_slashes): Likewise.
41799 (get_prefix): Likewise.
41800 * util/i386/pc/getroot.c: ... here.
41801 (find_root_device): Function moved and renamed to...
41802 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
41803 Changed all callers.
41804 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
41805 and renamed to...
41806 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
41807 Changed all callers.
41808 * util/misc.c (pupa_memalign): New function.
41809 (pupa_mm_init_region): Likewise.
41810 (pupa_register_exported_symbols): Likewise.
41811 (pupa_putchar): Function removed.
41812 * util/pupa-emu.c: New file.
41813
41814 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
41815
41816 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
41817 (_multiboot_mod_SOURCES): New variable.
41818 (_multiboot_mod_CFLAGS): Likewise.
41819 * loader/i386/pc/multiboot.c: New file.
41820 * include/pupa/i386/pc/multiboot.h: Likewise.
41821 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
41822 (pupa_multiboot_real_boot): New function.
41823 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
41824 (pupa_multiboot_real_boot): New prototype.
41825 (pupa_rescue_cmd_multiboot): Likewise
41826 (pupa_rescue_cmd_module): Likewise.
41827
41828 * kern/loader.c (pupa_loader_set): Continue when
41829 pupa_loader_unload_func() fails.
41830 (pupa_loader_unset): New function.
41831 * include/pupa/loader.h (pupa_loader_unset): New prototype.
41832
41833 * kern/misc.c (pupa_stpcpy): New function.
41834 * include/pupa/misc.h (pupa_stpcpy): New prototype.
41835
41836 2003-11-12 Marco Gerards <metgerards@student.han.nl>
41837
41838 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
41839 for available extensions.
41840
41841 * include/pupa/i386/pc/time.h: New file.
41842 * kern/disk.c: Include <pupa/machine/time.h>.
41843 (PUPA_CACHE_TIMEOUT): New macro.
41844 (pupa_last_time): New variable.
41845 (pupa_disk_open): Flush the cache when there was a timeout.
41846 (pupa_disk_close): Reset the timer.
41847 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
41848 pupa_currticks.
41849 * util/misc.c: Include <sys/times.h>
41850 (pupa_get_rtc): New function.
41851
41852 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41853
41854 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
41855 as blocks.
41856 (pupa_ext2_get_file_block): Use blocks member.
41857
41858 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
41859 first block. Return -1 instead of pupa_errno on error.
41860
41861 2003-10-27 Marco Gerards <metgerards@student.han.nl>
41862
41863 * README: In the pupa-mkimage example use _chain instead of chain
41864 and ext2 instead of fat.
41865 * TODO: Replace ext2fs with jfs as an example. Add an item for
41866 adding journal playback for ext2fs.
41867 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
41868 (pkgdata_MODULES): Added ext2.mod.
41869 (ext2_mod_SOURCES): New variable.
41870 (ext2_mod_CFLAGS): Likewise.
41871 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
41872 * include/pupa/misc.h (pupa_strncpy): New prototype.
41873 (pupa_strcat): Likewise.
41874 (pupa_strncmp): Likewise.
41875 * kern/misc.c (pupa_strcat): Enable function.
41876 (pupa_strncpy): New function.
41877 (pupa_strncmp): Likewise.
41878 * fs/ext2.c: New file.
41879
41880 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
41881 when the read failed before retrying.
41882 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
41883 (_FILE_OFFSET_BITS): Likewise.
41884 * configure.ac: Added AC_SYS_LARGEFILE.
41885
41886 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
41887
41888 * genmk.rb (PModule#rule): Make sure to get only symbol names
41889 from the output of nm.
41890 Reported by Robert Millan <rmh.grub@aybabtu.com>.
41891
41892 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
41893
41894 I forgot to check in these changes for a long time. This adds
41895 incomplete support for VGA console, and this is still very
41896 buggy. Also, a lot of consideration is required for I18N,
41897 UNICODE, and VGA font issues. Therefore, assume that this is
41898 such that "better than nothing".
41899
41900 * font/manager.c: New file.
41901 * include/pupa/font.h: Likewise.
41902 * include/pupa/i386/pc/vga.h: Likewise.
41903 * term/i386/pc/vga.c: Likewise.
41904 * util/unifont2pff.rb: Likewise.
41905
41906 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
41907 (pkgdata_MODULES): Added vga.mod and font.mod.
41908 (vga_mod_SOURCES): New variables.
41909 (vga_mod_CFLAGS): Likewise.
41910 (font_mod_SOURCES): Likewise.
41911 (font_mod_CFLAGS): Likewise.
41912
41913 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
41914
41915 * include/pupa/term.h: Include pupa/err.h.
41916 (struct pupa_term): Added init and fini.
41917 Changed the argument of putchar to pupa_uint32_t.
41918
41919 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
41920 (pupa_console_real_putchar): New prototype.
41921 (pupa_console_putchar): Removed.
41922 (pupa_console_checkkey): Exported.
41923 (pupa_console_getkey): Likewise.
41924
41925 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
41926 characters.
41927
41928 * kern/term.c (pupa_term_set_current): Rewritten.
41929 (pupa_putchar): Likewise.
41930 (pupa_putcode): New function.
41931
41932 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
41933 (pupa_console_real_putchar): ... this.
41934 (pupa_vga_set_mode): New function.
41935 (pupa_vga_get_font): Likewise.
41936
41937 * normal/command.c: Include pupa/term.h.
41938 (terminal_command): New function.
41939 (pupa_command_init): Register the command "terminal".
41940
41941 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
41942 (DISP_UP): Likewise.
41943 (DISP_RIGHT): Likewise.
41944 (DISP_DOWN): Likewise.
41945 (DISP_HLINE): Likewise.
41946 (DISP_VLINE): Likewise.
41947 (DISP_UL): Likewise.
41948 (DISP_UR): Likewise.
41949 (DISP_LL): Likewise.
41950 (DISP_LR): Likewise.
41951
41952 * term/i386/pc/console.c (pupa_console_putchar): New function.
41953
41954 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
41955
41956 * util/resolve.c (pupa_util_resolve_dependencies): BUG
41957 FIX. Reverse the path_list.
41958
41959 * include/pupa/normal.h: Export pupa_register_command and
41960 pupa_unregister_command.
41961
41962 * hello/hello.c (pupa_cmd_hello): New module.
41963 * conf/i386-pc.rmk: Added hello.mod.
41964
41965 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
41966
41967 * kern/i386/pc/lzo1x.S: New file.
41968
41969 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
41970 (compress_kernel): New variable.
41971 (generate_image): Heavily modified to support compressing a
41972 large part of the core image.
41973
41974 * util/misc.c (pupa_util_read_image): Fix a file descriptor
41975 leak.
41976 (pupa_util_load_image): New function.
41977
41978 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
41979 (pupa_compressed_size): New variable.
41980 (codestart): Enable Gate A20 here.
41981 Decompress the compressed part of the core image.
41982 Rearrange the code to put functions and variables which are
41983 required for initialization in the non-compressed part.
41984 Include lzo1x.S.
41985
41986 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
41987 here.
41988
41989 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
41990
41991 * include/pupa/i386/pc/kernel.h
41992 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
41993 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
41994 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
41995 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
41996 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
41997
41998 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
41999
42000 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
42001 (Utility#rule): Likewise.
42002
42003 * configure.ac: Check if LZO is available.
42004
42005 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
42006
42007 * include/pupa/normal.h: New file.
42008 * include/pupa/setjmp.h: Likewise.
42009 * include/pupa/i386/setjmp.h: Likewise.
42010 * normal/cmdline.c: Likewise.
42011 * normal/command.c: Likewise.
42012 * normal/main.c: Likewise.
42013 * normal/menu.c: Likewise.
42014 * normal/i386/setjmp.S: Likewise.
42015
42016 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
42017 (pupa_rescue_cmd_initrd): Likewise.
42018
42019 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
42020 Likewise.
42021
42022 * kern/i386/pc/startup.S (translation_table): New variable.
42023 (translate_keycode): New function.
42024 (pupa_console_getkey): Call translate_keycode.
42025
42026 * kern/rescue.c (attempt_normal_mode): New function.
42027 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
42028 it failed, print a message.
42029
42030 * kern/mm.c (pupa_real_malloc): Print more information when a
42031 free magic is broken.
42032 (pupa_free): If the first free header is not free actually, set
42033 it to P.
42034
42035 * kern/main.c (pupa_load_normal_mode): Just load the module
42036 "normal".
42037 (pupa_main): Don't print the message
42038 "Entering into rescue mode..." here.
42039
42040 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
42041 Declared.
42042 (pupa_rescue_cmd_initrd): Likewise.
42043 (pupa_rescue_cmd_initrd): Likewise.
42044
42045 * include/pupa/symbol.h (FUNCTION): Specify the type.
42046 (VARIABLE): Likewise.
42047
42048 * include/pupa/err.h (pupa_err_t): Added
42049 PUPA_ERR_UNKNOWN_COMMAND.
42050
42051 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
42052 (pupa_dl_get_prefix): Likewise.
42053
42054 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
42055 Added _chain.mod and _linux.mod instead of chain.mod and
42056 linux.mod.
42057 (chain_mod_SOURCES): Renamed to ...
42058 (_chain_mod_SOURCES): ... this.
42059 (chain_mod_CFLAGS): Renamed to ...
42060 (_chain_mod_CFLAGS): ... this.
42061 (linux_mod_SOURCES): Renamed to ...
42062 (_linux_mod_SOURCES): ... this.
42063 (linux_mod_CFLAGS): Renamed to ...
42064 (_linux_mod_CFLAGS): ... this.
42065 (normal_mod_SOURCES): New variable.
42066 (normal_mod_CFLAGS): Likewise.
42067 (normal_mod_ASFLAGS): Likewise.
42068
42069 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
42070
42071 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
42072 possible.
42073
42074 * kern/dl.c (pupa_dl_ref): Refer depending modules
42075 recursively.
42076 (pupa_dl_unref): Unrefer depending modules recursively.
42077 Don't call pupa_dl_unload implicitly, because PUPA can crash if
42078 a module is unloaded before one depending on that module is
42079 unloaded.
42080 (pupa_dl_unload): Unload depending modules explicitly,
42081 if possible.
42082
42083 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
42084
42085 * include/pupa/i386/pc/linux.h: New file.
42086 * loader/i386/pc/linux.c: Likewise.
42087
42088 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
42089 Removed.
42090 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
42091 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
42092 of PUPA_CHAINLOADER_BOOT_SECTOR.
42093
42094 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
42095 (pupa_linux_prot_size): New variable.
42096 (pupa_linux_tmp_addr): Likewise.
42097 (pupa_linux_real_addr): Likewise.
42098 (pupa_linux_boot_zimage): New function.
42099 (pupa_linux_boot_bzimage): Likewise.
42100
42101 * kern/i386/pc/init.c (struct mem_region): New structure.
42102 (MAX_REGIONS): New macro.
42103 (mem_regions): New variable.
42104 (num_regions): Likewise.
42105 (pupa_os_area_addr): Likewise.
42106 (pupa_os_area_size): Likewise.
42107 (pupa_lower_mem): Likewise.
42108 (pupa_upper_mem): Likewise.
42109 (add_mem_region): New function.
42110 (compact_mem_regions): Likewise.
42111 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
42112 the size of the conventional memory and that of so-called upper
42113 memory (before the first memory hole).
42114 Instead of adding each found region to free memory, use
42115 add_mem_region and add them after removing overlaps.
42116 Also, add only 1/4 of the upper memory to free memory. The rest
42117 is used for loading OS images. Maybe this is ad hoc, but this
42118 makes it much easier to relocate OS images when booting.
42119
42120 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
42121 (pupa_enter_rescue_mode): Don't register initrd and module.
42122
42123 * kern/mm.c: Include pupa/dl.h.
42124
42125 * kern/main.c: Include pupa/file.h and pupa/device.h.
42126
42127 * kern/loader.c (pupa_loader_load_module_func): Removed.
42128 (pupa_loader_load_module): Likewise.
42129
42130 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
42131 ``.o''.
42132
42133 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
42134 (pupa_linux_tmp_addr): Likewise.
42135 (pupa_linux_real_addr): Likewise.
42136 (pupa_linux_boot_zimage): Likewise.
42137 (pupa_linux_boot_bzimage): Likewise.
42138
42139 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
42140 (pupa_upper_mem): Likewise.
42141 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
42142 module is too dangerous.
42143
42144 * include/pupa/loader.h (pupa_os_area_addr): Declared.
42145 (pupa_os_area_size): Likewise.
42146 (pupa_loader_set): Remove the first argument. Loader doesn't
42147 manage modules or initrd any longer.
42148 (pupa_loader_load_module): Removed.
42149
42150 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
42151 (linux_mod_SOURCES): New variable.
42152 (linux_mod_CFLAGS): Likewise.
42153
42154 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
42155
42156 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
42157 the length of a blocklist correctly.
42158
42159 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
42160 Use ioctl only if the OS file is a block device.
42161 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
42162 not very useful for normal files.
42163
42164 * kern/main.c (pupa_set_root_dev): New function.
42165 (pupa_load_normal_mode): Likewise.
42166 (pupa_main): Call those above.
42167
42168 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
42169 pupa_uint16_t.
42170
42171 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
42172
42173 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42174
42175 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
42176 (setup): Configure the installed partition information and the
42177 dl prefix.
42178
42179 * loader/i386/pc/chainloader.c (my_mod): New variable.
42180 (pupa_chainloader_unload): New function.
42181 (pupa_rescue_cmd_chainloader): Refer itself.
42182 (PUPA_MOD_INIT): Save its own module in MY_MOD.
42183
42184 * kern/i386/pc/startup.S (install_partition): Removed.
42185 (version_string): Likewise.
42186 (config_file): Likewise.
42187 (pupa_install_dos_part): New variable.
42188 (pupa_install_bsd_part): Likewise.
42189 (pupa_prefix): Likewise.
42190 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
42191
42192 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
42193 and pupa/misc.h.
42194 (make_install_device): New function.
42195 (pupa_machine_init): Set the dl prefix.
42196
42197 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
42198 (buf): Renamed to ...
42199 (linebuf): ... this.
42200 (pupa_rescue_cmd_prefix): New function.
42201 (pupa_rescue_cmd_insmod): Likewise.
42202 (pupa_rescue_cmd_rmmod): Likewise.
42203 (pupa_rescue_cmd_lsmod): Likewise.
42204 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
42205 rmmod and lsmod.
42206
42207 * kern/mm.c (pupa_memalign): If failed even after invalidating
42208 disk caches, unload unneeded modules and retry.
42209
42210 * kern/misc.c (pupa_memmove): New function.
42211 (pupa_memcpy): Removed.
42212 (pupa_strcpy): New function.
42213 (pupa_itoa): Made static.
42214
42215 * kern/dl.c (pupa_dl_iterate): New function.
42216 (pupa_dl_ref): Likewise.
42217 (pupa_dl_unref): Likewise.
42218 (pupa_dl_unload): Return if succeeded or not.
42219 (pupa_dl_unload_unneeded): New function.
42220 (pupa_dl_unload_all): Likewise.
42221 (pupa_dl_init): Renamed to ...
42222 (pupa_dl_set_prefix): ... this.
42223 (pupa_dl_get_prefix): New function.
42224
42225 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
42226 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
42227 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42228 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42229 (pupa_install_dos_part): Declared.
42230 (pupa_install_bsd_part): Likewise.
42231 (pupa_prefix): Likewise.
42232 (pupa_boot_drive): Likewise.
42233
42234 * include/pupa/types.h: Fix a typo.
42235
42236 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
42237 pupa_memmove.
42238 (pupa_memmove): Declared.
42239 (pupa_strcpy): Likewise.
42240
42241 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
42242 pupa_mod_init takes one argument, its own module.
42243 (pupa_dl_unload_unneeded): Declared.
42244 (pupa_dl_unload_all): Likewise.
42245 (pupa_dl_ref): Likewise.
42246 (pupa_dl_unref): Likewise.
42247 (pupa_dl_iterate): Likewise.
42248 (pupa_dl_init): Renamed to ...
42249 (pupa_dl_set_prefix): ... this.
42250 (pupa_dl_get_prefix): Declared.
42251
42252 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
42253 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
42254 unloaded.
42255 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
42256 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
42257
42258 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
42259 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
42260
42261 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42262
42263 * util/i386/pc/pupa-setup.c (setup): Define the internal
42264 function find_first_partition_start at the top level, because GCC
42265 3.0.x cannot compile internal functions in deeper scopes
42266 correctly.
42267 (find_root_device): Use lstat instead of stat.
42268 Don't follow symbolic links.
42269 Fix the path-constructing code.
42270
42271 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
42272 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
42273 by a BLKGETSIZE ioctl first, because block devices don't fill
42274 the member st_mode of the structure stat on Linux.
42275 [__linux__] (linux_find_partition): Use a temporary buffer
42276 REAL_DEV for the working space. Copy it to DEV before returning.
42277 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
42278 buffer cache consistent.
42279 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
42280 strncmp. The previous value was merely wrong.
42281 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
42282
42283 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
42284 FAT size is 12. The previous value was merely wrong.
42285
42286 * kern/main.c (pupa_main): Don't split the starting message from
42287 newlines.
42288
42289 * kern/term.c (pupa_putchar): Put CR after LF instead of before
42290 LF, because BIOS goes crazy about character attributes in this
42291 case.
42292
42293 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42294
42295 * include/i386/pc/util/biosdisk.h: New file.
42296 * util/i386/pc/biosdisk.c: Likewise.
42297 * util/i386/pc/pupa-setup.c: Likewise.
42298
42299 * Makefile.in (INCLUDE_DISTFILES): Added
42300 include/pupa/i386/pc/util/biosdisk.h.
42301 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
42302 directory util/i386/pc.
42303 (install-local): Added a rule for sbin_UTILITIES.
42304 (uninstall): Likewise.
42305
42306 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
42307
42308 * util/misc.c (xrealloc): New function.
42309 (pupa_malloc): Likewise.
42310 (pupa_free): Likewise.
42311 (pupa_realloc): Likewise.
42312 (pupa_stop): Likewise.
42313 (pupa_putchar): Likewise.
42314
42315 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
42316
42317 * include/pupa/util/misc.h (xrealloc): Declared.
42318
42319 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
42320 macro.
42321 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
42322 (PUPA_BOOT_MACHINE_BPB_END): ... this.
42323
42324 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
42325 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42326
42327 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
42328 way should be implemented.
42329 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42330
42331 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
42332 the size of NAME for safety.
42333 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
42334 0x88.
42335
42336 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
42337 (pupa_setup_SOURCES): Likewise.
42338
42339 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
42340
42341 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42342
42343 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
42344 bunch of pushl's from pusha, because this destroys the return
42345 value.
42346
42347 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42348
42349 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
42350 This means that any missing prototypes could be fatal. Also, you
42351 must take care when writing assembly code. See the comments at
42352 the beginning of startup.S, for more details.
42353
42354 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
42355 compilation mechanism.
42356 (pupa_chainloader_real_boot): Likewise.
42357 (pupa_biosdisk_rw_int13_extensions): Likewise.
42358 (pupa_biosdisk_rw_standard): Likewise.
42359 (pupa_biosdisk_check_int13_extensions): Likewise.
42360 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
42361 (pupa_biosdisk_get_diskinfo_standard): Likewise.
42362 (pupa_get_memsize): Likewise.
42363 (pupa_get_mmap_entry): Likewise.
42364 (pupa_console_putchar): Likewise.
42365 (pupa_console_setcursor): Likewise.
42366 (pupa_getrtsecs): Use pushl instead of push.
42367
42368 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
42369 memory instead of the stack for a mmap entry, because some
42370 BIOSes may ignore the maximum size and overflow.
42371
42372 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
42373
42374 * genmk.rb (PModule#rule): Compile automatically generated
42375 sources with module-specific CFLAGS as well as other sources.
42376
42377 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42378
42379 * configure.ac: Check ld.
42380 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
42381 respectively, before checking endianness and sizes.
42382
42383 * Makefile.in (LD): New variable.
42384
42385 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42386
42387 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
42388
42389 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42390
42391 * Changelog: New file.
42392