]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* include/grub/env.h (grub_env_find): Remove prototype.
[grub2.git] / ChangeLog
1 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * include/grub/env.h (grub_env_find): Remove prototype.
4 * grub-core/kern/env.c (grub_env_find): Make static.
5 (grub_env_set): Remove useless set.
6
7 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8
9 * grub-core/kern/i386/realmode.S: Remove useless align.
10
11 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * include/grub/dl.h (grub_dl_load_file): Don't export.
14
15 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
16
17 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
18 grub_dprintf.
19
20 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
23 grub_errors.
24 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
25 not reloading whole superblock but only the part which is really needed.
26 Remove useless grub_errors.
27 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
28 grub_errors.
29
30 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
31
32 Don't export grub_get_rtc.
33
34 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
35 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
36
37 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
40
41 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
42
43 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
44 argument since it can be deduced from diskfilter. All users updated.
45
46 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47
48 Remove prio_list.
49
50 * include/grub/list.h (grub_prio_list): Removed.
51 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
52 GRUB_COMMAND_PRIO_MASK.
53 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
54 GRUB_COMMAND_FLAG_ACTIVE.
55 (grub_prio_list_insert): Removed.
56 (grub_prio_list_remove): Likewise.
57 (GRUB_AS_PRIO_LIST): Likewise.
58 (GRUB_AS_PRIO_LIST_P): Likewise.
59 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
60 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
61 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
62 * grub-core/kern/command.c (grub_register_command_prio): Inline
63 the prio_list code.
64 (grub_unregister_command): Likewise.
65
66 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67
68 Fix interrupt mixup from previous commit.
69
70 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
71 (grub_realidt): New var.
72 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
73 Load idt.
74 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
75 New declaration.
76 (grub_relocator16_boot): Set grub_relocator16_idt.
77 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
78 (LOCAL(realidt)): ... this.
79 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
80 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
81 (grub_realidt): New variable.
82
83 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
84
85 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
86 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
87 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
88 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
89 Gettextize.
90 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
91 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
92 * po/POTFILES.in: Regenerate.
93
94 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
95
96 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
97 errors.
98
99 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
102 \0.
103 (add_length): Likewise.
104
105 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
106 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
107
108 GDB serial and backtrace support.
109
110 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
111 (prot_to_real): Likewise.
112 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
113 * grub-core/Makefile.core.def (backtrace): New module.
114 (gdb): Likewise.
115 * grub-core/gdb/cstub.c: New file.
116 * grub-core/gdb/gdb.c: Likewise.
117 * grub-core/gdb/i386/idt.c: Likewise.
118 * grub-core/gdb/i386/machdep.S: Likewise.
119 * grub-core/gdb/i386/signal.c: Likewise.
120 * grub-core/lib/i386/backtrace.c: Likewise.
121 * grub-core/lib/backtrace.c: Likewise.
122 * include/grub/backtrace.h: Likewise.
123 * include/grub/gdb.h: Likewise.
124 * include/grub/i386/gdb.h: Likewise.
125
126 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
127
128 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
129 New function.
130 (add_length): Likewise.
131 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
132 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
133 proto.
134 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
135 __argp_get_display_len.
136
137 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
138
139 $"..." support in scripts.
140
141 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
142 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
143 * grub-core/script/yylex.l: Likewise.
144 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
145 value.
146
147 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * gentpl.py: Remove obsolete pkglib_DATA handling.
150
151 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
152
153 Don't transform PACKAGE_TARNAME following a discussion on autoconf
154 mailing list.
155
156 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
157 * util/grub-kbdcomp.in: Likewise.
158 * util/grub-mkconfig.in: Likewise.
159 * util/grub-mkconfig_lib.in: Likewise.
160 * util/grub-mknetdir.in: Likewise.
161 * util/grub-mkrescue.in: Likewise.
162 * util/grub-mkstandalone.in: Likewise.
163 * util/grub-reboot.in: Likewise.
164 * util/grub-set-default.in: Likewise.
165 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
166
167 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
168
169 Remove GRUB_PREFIX.
170
171 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
172 * util/grub.d/00_header.in: Compute prefix in the only place it's still
173 used for backward compatibility.
174
175 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
176
177 Add new all_video module.
178
179 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
180 * grub-core/Makefile.core.def (all_video): New module.
181 * grub-core/genmoddep.awk: Generate dependency of all_video from
182 video.lst.
183 * grub-core/lib/fake_module.c: New file.
184 * grub-core/normal/main.c (features): Add feature_all_video_module.
185 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
186 don't do explicit search again.
187 insmod all_video in load_video if available.
188
189 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
190
191 Another round of string clarification and adding TRANSLATORS comments.
192
193 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
194
195 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
196
197 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
200 to grub_ssize_t.
201 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
202 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
203
204 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
205
206 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
207 trailing newline implicitly. All users updated.
208
209 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
210
211 Implement serial on IEEE1275 and EFI.
212
213 * docs/grub.texi (Platform-specific limitations): Fix the columen video
214 on emu. Mention arc and emu as the only platforms without serial
215 support.
216 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
217 ieee1275 platforms.
218 * grub-core/term/efi/serial.c: New file.
219 * grub-core/term/ieee1275/serial.c: Likewise.
220 * grub-core/term/serial.c (grub_serial_find): Disable direct port
221 specification if no ns8250 driver is available.
222 (grub_cmd_serial): Likewise.
223 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
224 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
225 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
226 (grub_efi_parity_type_t): New type.
227 (grub_efi_stop_bits_t): Likewise.
228 (grub_efi_serial_io_interface): New struct.
229 * include/grub/serial.h (grub_serial_port): Make 'broken' field
230 available for all interfaces.
231 Add EFI and IEEE1275 fields.
232 (grub_ofserial_init): New proto.
233 (grub_efiserial_init): Likeiwse.
234 * util/grub.d/00_header.in: Don't check for the presence of serial
235 module.
236
237 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
238
239 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
240 name as if it was an alias.
241
242 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * grub-core/commands/lsacpi.c (options): Fix typo.
245
246 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
247
248 Convert grub-emu to argp.
249
250 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
251 emu.
252 * util/argp_common.c: Rename to ...
253 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
254 Add missing includes.
255 * grub-core/kern/emu/main.c: Convert to argp.
256 * po/POTFILES.in: Regenerate.
257 * util/grub-install.in (usage): Make first letter lowcase in messages
258 for uniformity.
259 * util/grub-setup.c (options): Likewise.
260
261 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
264 Put back accidently commented-out code.
265
266 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
267
268 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
269 loop check using Brent algorithm.
270 (grub_hfsplus_btree_search): Likewise.
271
272 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
273
274 * util/grub-install.in: Fix usage of wrong device for PreP install.
275
276 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
277
278 * conf/Makefile.common (CFLAGS_GNULIB): Add
279 -Wno-unsafe-loop-optimizations.
280 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
281 on tools.
282 * grub-core/commands/legacycfg.c: Add pragma to skip
283 -Wunsafe-loop-optimizations.
284 (check_password_md5_real): Fix loop counter type.
285 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
286 reading.
287 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
288 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
289 loop condition.
290 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
291 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
292 * grub-core/net/net.c (grub_net_route_address): Add safety loop
293 condition.
294 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
295 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
296 avoid possible infinite loops.
297 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
298 and -Wunsafe-loop-optimizations.
299 * grub-core/script/yylex.l: Likewise.
300 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
301 (print_glyphs): Avoid infinite loops.
302 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
303
304 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
305
306 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
307 to avoid infinite loop.
308 (disp_acpi_rsdt_table): Likewise.
309
310 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/font/font.c (grub_font_load): Add support for default
313 path for fonts ($prefix/fonts).
314 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
315 for checking if string is a path.
316 * grub-core/normal/main.c (features): Add feature_default_font_path.
317 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
318 * util/grub.d/00_header.in: Use default directory if possible.
319 * util/grub-install.in: Install unicode.pf2.
320
321 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
322
323 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
324 * po/Rules-swiss: New file.
325 * po/swiss.sed: Likewise.
326
327 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
328
329 * grub-core/fs/btrfs.c (find_device): Fix typos.
330 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
331 * util/grub-mkrelpath.c (argp_parser): Likewise.
332 Reported by: Yuri Chornoivan.
333
334 2012-02-23 Dalet Omega <daletomega@gmail.com>
335
336 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
337 for usual informative messages.
338
339 2012-02-23 Dalet Omega <daletomega@gmail.com>
340
341 Starfield theme.
342
343 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
344 * conf/Makefile.common: Define starfielddir.
345 * configure.ac: Configure starfield.
346 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
347 * themes/starfield/README: Likewise.
348 * themes/starfield/blob_w.png: Likewise.
349 * themes/starfield/boot_menu_c.png: Likewise.
350 * themes/starfield/boot_menu_e.png: Likewise.
351 * themes/starfield/boot_menu_n.png: Likewise.
352 * themes/starfield/boot_menu_ne.png: Likewise.
353 * themes/starfield/boot_menu_nw.png: Likewise.
354 * themes/starfield/boot_menu_s.png: Likewise.
355 * themes/starfield/boot_menu_se.png: Likewise.
356 * themes/starfield/boot_menu_sw.png: Likewise.
357 * themes/starfield/boot_menu_w.png: Likewise.
358 * themes/starfield/slider_c.png: Likewise.
359 * themes/starfield/slider_n.png: Likewise.
360 * themes/starfield/slider_s.png: Likewise.
361 * themes/starfield/src/blob_nw.xcf: Likewise.
362 * themes/starfield/src/bootmenu/: Likewise.
363 * themes/starfield/src/bootmenu/center.xcf: Likewise.
364 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
365 * themes/starfield/src/bootmenu/side.xcf: Likewise.
366 * themes/starfield/src/slider_c.xcf: Likewise.
367 * themes/starfield/src/slider_n.xcf: Likewise.
368 * themes/starfield/src/slider_s.xcf: Likewise.
369 * themes/starfield/src/terminalbox/: Likewise.
370 * themes/starfield/src/terminalbox/center.xcf: Likewise.
371 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
372 * themes/starfield/src/terminalbox/side.xcf: Likewise.
373 * themes/starfield/starfield.png: Likewise.
374 * themes/starfield/terminal_box_c.png: Likewise.
375 * themes/starfield/terminal_box_e.png: Likewise.
376 * themes/starfield/terminal_box_n.png: Likewise.
377 * themes/starfield/terminal_box_ne.png: Likewise.
378 * themes/starfield/terminal_box_nw.png: Likewise.
379 * themes/starfield/terminal_box_s.png: Likewise.
380 * themes/starfield/terminal_box_se.png: Likewise.
381 * themes/starfield/terminal_box_sw.png: Likewise.
382 * themes/starfield/terminal_box_w.png: Likewise.
383 * themes/starfield/theme.txt: Likewise.
384
385 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
386
387 * util/grub.d/00_header.in: Add missing export theme.
388
389 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
390
391 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
392 already included.
393 Reported by: Eren D.
394
395 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
396
397 * conf/Makefile.common (grubdatadir): Removed.
398 (Makefile.am): Move eveything grubdata to pkgdata.
399
400 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * grub-core/commands/acpihalt.c (get_sleep_type):
403 Remove unused variable.
404
405 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
408 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
409 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
410 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
411 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
412 i18n with gettext no-op.
413 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
414 GRUB_ACPI_OPCODE_STRING_CONST.
415 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
416 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
417
418 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
419
420 * po/POTFILES.in: Regenerate.
421
422 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
423
424 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
425 -Wno-error=missing-noreturn.
426
427 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
430 condition to avoid possibly infinite loops.
431 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
432 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
433
434 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
437 condition to avoid possibly infinite loops.
438
439 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
440
441 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
442 on show_error.
443
444 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
445
446 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
447
448 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
449
450 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
451
452 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * util/bin2h.c (usage): Add missing attribute noreturn.
455
456 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
459 if the size isn't divisible by 512.
460
461 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
462
463 Make list_push and list_remove functions rather than inline functions
464 to decrease size and avoid aliasing violations.
465
466 * include/grub/list.h (grub_list_push): Move to ...
467 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
468 * include/grub/list.h (grub_list_remove): Move to ...
469 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
470
471 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
474 and -Wunused-result.
475
476 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
479 Reported by: Seth Goldberg
480
481 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
484
485 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
486
487 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
488 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
489 command line.
490 * docs/grub.texi (Simple configuration): Document
491 GRUB_CMDLINE_GNUMACH.
492
493 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * conf/Makefile.common (platform_SCRIPTS): New variable.
496 (platform_PROGRAMS): Likewise.
497 * gentpl.py: Mark *,module and *.image for install.
498 * grub-core/gdb_grub.in: Add a notice of expected environment.
499 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
500 (gmodule.pl): Likewise.
501
502 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
503
504 Replace grub_checkkey with grub_getkey_noblock.
505
506 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
507 (grub_getkey_noblock): ... this. All users updated.
508
509 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
510
511 * grub-core/kern/emu/console.c: Move to ...
512 * grub-core/term/emu/console.c: ...here.
513 (grub_ncurses_getkey): Fix return value if no key is detected.
514
515 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
516
517 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
518 (grub_unit_test_fini): Likewise.
519 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
520
521 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
522
523 * include/grub/test.h (GRUB_UNIT_TEST)
524
525 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * grub-core/script/execute.c (grub_script_break): Clarify logic.
528 Better error handling.
529 (grub_script_return): Likewise.
530 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
531
532 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
535 rimplicit redifinition.
536
537 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
538
539 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
540 GRUB.
541
542 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
543
544 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
545 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
546 prompt here.
547
548 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
549
550 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
551 as GRUB_ERR_BUG. Don't malloc if no device is available.
552
553 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
554
555 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
556 Mark calling with invalid term as GRUB_ERR_BUG.
557
558 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
559
560 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
561 packets rather than raising an error.
562
563 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
564
565 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
566 in if.
567
568 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
569
570 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
571 diagnostic to dprintf.
572 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
573
574 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
575
576 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
577 device name.
578
579 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
580
581 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
582 (grub_ntfs_iterate_dir): Likewise.
583
584 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
585
586 Efiemu stylistic fixes and gettext.
587
588 * grub-core/efiemu/i386/loadcore32.c
589 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
590 * grub-core/efiemu/i386/loadcore64.c
591 (grub_arch_efiemu_relocate_symbols64): Likewise.
592 * grub-core/efiemu/i386/pc/cfgtables.c
593 (grub_machine_efiemu_init_tables): Likewise.
594 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
595 (grub_efiemu_loadcore_initXX): Add a filename argument.
596 All users updated.
597 Improved error message.
598 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
599 Add a filename argument.
600 All users updated.
601 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
602 Reclassify double relocation as GRUB_ERR_BUG.
603
604 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
605
606 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
607 handling.
608
609 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
612 on partition.
613
614 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
617
618 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
619
620 Improve string. Gettextize.
621
622 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
623
624 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
625 utils.
626 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
627
628 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
629
630 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
631 [GRUB_UTIL]: New function.
632 (insert_array) [GRUB_UTIL]: Store partmaps.
633 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
634 partmaps.
635 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
636 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
637 (probe_abstraction): Print diskfilter and not raid.
638 Reported by: Lennart Sorensen
639
640 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
643 * util/grub-mkimagexx.c (MASK3): New define.
644 (add_value_to_slot_20b): Use MASK3.
645 (add_value_to_slot_21): Likewise.
646 (relocate_addresses): Fix format specification.
647 (load_image): Explicitly init symtab_section.
648
649 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
652 (grub_util_biosdisk_get_grub_dev): Fix format specification.
653
654 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
655
656 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
657 on powerpc.
658 Reported by: Lennart Sorensen
659
660 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
661
662 * gentpl.py: Add missing license header.
663 * docs/grub.texi: Update copyright year.
664
665 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
666
667 Source grub-mkconfig_lib from the build directory at build time.
668 Suggested by: Vladimir Serbinenko.
669
670 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
671 * util/grub-install.in: Define pkgdatadir if not already set, and source
672 grub-mkconfig_lib from there.
673 * util/grub-kbdcomp.in: Likewise.
674 * util/grub-mkconfig.in: Likewise.
675 * util/grub-mknetdir.in: Likewise.
676 * util/grub-mkrescue.in: Likewise.
677 * util/grub-mkstandalone.in: Likewise.
678 * util/grub-reboot.in: Likewise.
679 * util/grub-set-default.in: Likewise.
680 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
681
682 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
683
684 Increase warning level.
685
686 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
687 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
688 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
689 (TARGET_CFLAGS): Likewise.
690 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
691 * grub-core/Makefile.core.def (decompressor_xz): Add
692 -Wno-unreachable-code.
693 (normal): Add -Wno-redundant-decls.
694 (xzio): Add -Wno-unreachable-code.
695 (lzopio): Add -Wno-redundant-decls -Wno-error.
696 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
697 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
698 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
699 * grub-core/kern/dl.c: Add exception to -Wcast-align.
700 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
701 * grub-core/kern/i386/coreboot/init.c: Add exception to
702 -Wsuggest-attribute=noreturn.
703 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
704 * grub-core/kern/ia64/dl_helper.c: Likewise.
705 * grub-core/kern/mips/dl.c: Likewise.
706 * grub-core/kern/sparc64/dl.c: Likewise.
707 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
708 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
709 (memcmp): Likewise.
710 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
711 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
712 * grub-core/loader/mips/linux.c: Likewise.
713 * grub-core/loader/multiboot_elfxx.c: Likewise.
714 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
715 * grub-core/video/sm712.c: Add exception to -Wcast-align.
716 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
717 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
718 fixme.
719 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
720 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
721 Fix prototype.
722
723 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
724
725 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
726 address.
727
728 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
729
730 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
731 Avoid improper use of strings.
732 (grub_cmd_legacy_initrdnounzip): Likewise.
733
734 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
735
736 * include/grub/emu/misc.h (grub_util_warn): Add missing format
737 attribute.
738 (grub_util_info): Likewise.
739 (grub_util_error): Likewise.
740
741 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
742
743 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
744 * util/grub-fstest.c (fstest): Likewise.
745
746 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
747
748 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
749 (grub_md_sha512_real): Likewise.
750 (grub_util_get_geli_uuid): Likewise.
751 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
752 (grub_util_biosdisk_open): Fix format specification.
753 Respect format security.
754 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
755 (xrealloc): Likewise.
756 (xasprintf): Likewise.
757
758 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
759
760 * util/import_gcry.py: Include grub/crypto.h in init.c.
761
762 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
763
764 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
765 (generate_image): Make prefix a const char *.
766 Fix format specifications. Respect format security.
767 Avoid void * arithmetics.
768 Avoid shadowing.
769 (argp_parser): Remove unused variable. Respect format security.
770 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
771 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
772 (count_funcs): Remove unused variable.
773 (relocate_addresses): Fix format specification.
774 Disable x86-64 with elf32. Remove unused variables.
775 (add_fixup_entry): Avoid shadowing.
776 (make_reloc_section): Fix format specification.
777 Use assert.
778 (locate_sections): Fix format specifications.
779 (load_image): Avoid shadowing.
780
781 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
782
783 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
784 Fix format specifications. Respect format security.
785 Don't translate already translated grub_errmsg.
786 (argp_parser): Remove unused variable
787
788 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
789
790 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
791
792 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
793
794 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
795 (main): Likewise. Use xmalloc. Respect format security.
796
797 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
800 a const char *.
801 (argp_parser): Remove unused variable.
802
803 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
806 (add_pixel): Make static.
807 (add_font): Likewise.
808 (write_string_section): Make name and str a const char *.
809 (write_be16_section): Make name a const char *.
810 (print_glyphs): Make static.
811 (write_font_ascii_bitmap): Likewise.
812 (write_font_width_spec): Likewise.
813 (write_font_pf2): Likewise.
814 (argp_parser): Remove unused variable.
815 Respect format security.
816 (main): Avoid shadowing. Respect format security.
817
818 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * util/grub-editenv.c (argp_parser): Make static.
821 (create_envblk_file): Use xmalloc.
822 (open_envblk_file): Likewise.
823 Resepect format security.
824 (set_variables): Respect format security.
825
826 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * util/getroot.c (grub_find_device): Respect format security.
829 (get_mdadm_uuid): Remove unused variable.
830 (grub_util_pull_device): Dont call gettext on already translated
831 grub_errmsg.
832 (find_system_device): Remove unused variable.
833 (grub_util_get_grub_dev): Likewise.
834 (grub_make_system_path_relative_to_its_root): Respect format security.
835
836 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
837
838 * util/grub-fstest.c (execute_command): Make first argument
839 a const char *.
840 (read_file): Avoid shadowing.
841 Reuse underlying error message if device open fails.
842 (cmd_cmp): Respect format security.
843 (root): Make const char *.
844 (fstest): Remove args argument and use global copy.
845 Respect format security.
846 (argp_parser): Make static.
847 (main): Make default_root const char *.
848
849 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * util/grub-mount.c (root): Make const char *.
852 (execute_command): Make first argument a const char *.
853 (fuse_init): Respect format security.
854 (argp_parser): Make static. Remove unused variable.
855 (main): Make default_root a const char *.
856 Respect format security.
857
858 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
859
860 * util/grub-probe.c (probe): Don't call gettext on already translated
861 grub_errmsg.
862 Remove unused variables.
863 (argp_parser): Remove unused variable.
864
865 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
866
867 * util/grub-script-check.c (argp_parser): Remove unused variable.
868 (main): Rename read to curread to avoid shadowing.
869
870 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
871
872 * util/misc.c (grub_util_write_image_at): Fix format specification.
873 (grub_util_write_image): Likewise.
874 (grub_script_execute_argument_to_string): Removed (unused).
875 (grub_script_execute_menuentry): Likewise.
876 (grub_putchar): Likewise.
877
878 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
879
880 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
881 (FUNCTION) [GRUB_UTIL]: Likewise.
882 (VARIABLE) [GRUB_UTIL]: Likewise.
883
884 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
885
886 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
887 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
888
889 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
892 buffer.
893
894 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
897 (LzmaEnc_SaveState): Removed (unused).
898 (LzmaEnc_RestoreState): Likewise.
899 (LzmaEnc_InitPriceTables): Made static.
900 (LzmaEnc_Construct): Likewise.
901 (LzmaEnc_FreeLits): Likewise.
902 (LzmaEnc_Destruct): Likewise.
903 (LzmaEnc_Init): Likewise.
904 (LzmaEnc_InitPrices): Likewise.
905 (LzmaEnc_Finish): Likewise.
906 (LzmaEnc_PrepareForLzma2): Removed (unused).
907 (LzmaEnc_MemPrepare): Likewise.
908 (LzmaEnc_GetNumAvailableBytes): Likewise.
909 (LzmaEnc_GetCurBuf): Likewise.
910 (LzmaEnc_CodeOneMemBlock): Likewise.
911
912 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
913
914 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
915 (grub_util_ldm_embed): Likewise.
916
917 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
918
919 * util/grub-editenv.c (print_var): Rename name to varname to
920 avoid shadowing.
921 (main): Rename index to curindex to avoid shadowing.
922 Make filename a const char *.
923
924 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
927 to arg_getline to avoid shadowing.
928
929 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
932 disk_ to avoid shadowing.
933
934 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
937 curindex to avoid shadowing.
938 Make static.
939 (MatchFinder_GetNumAvailableBytes): Make static.
940
941 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
944 avoid shadowing.
945
946 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
947
948 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
949 argument from encrypt to do_encrypt to avoid shadowing.
950
951 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
952
953 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
954 incorrect nesting of #if's.
955
956 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
957
958 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
959 checks which are always false on some platforms.
960 (grub_cmd_lsacpi): Likewise.
961 * grub-core/kern/misc.c (grub_strtoul): Likewise.
962 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
963 Likewise.
964
965 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
968 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
969
970 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
973 re_dfa_t to avoid breaking alignment invariants.
974 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
975 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
976
977 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
980 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
981
982 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
983
984 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
985 Fix declaration.
986
987 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
988
989 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
990 conserve alignment invariants.
991 (grub_ehci_ehcc_read16): Likewise.
992 (grub_ehci_oper_read32): Likewise.
993 (grub_ehci_oper_write32): Likewise.
994 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
995 Conserve alignment invariants.
996
997 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
998
999 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
1000 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
1001 declarations.
1002
1003 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
1006 Remove unused variable.
1007
1008 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
1011 Remove set in if.
1012
1013 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * include/grub/net.h: Remove double declarations.
1016
1017 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 Remove "payload" command in ia64 Linux loader since I couldn't
1020 find any evidence of it being used for anything.
1021 Replace "relocate" command with an environment variable
1022
1023 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
1024 fields.
1025 (ia64_boot_payload): Removed.
1026 (last_payload): Likewise.
1027 (RELOCATE_OFF): Likewise.
1028 (RELOCATE_ON): Likewise.
1029 (RELOCATE_FORCE): Likewise.
1030 (relocate): Likewise.
1031 (free_pages): Don't free payloads.
1032 (grub_load_elf64): Use common error messages.
1033 Use "linux_relocate" variable.
1034 Increase the space after boot_params.
1035 (grub_cmd_payload): Removed.
1036 (grub_cmd_relocate): Likewise.
1037 (grub_cmd_fpswa): Improve messages.
1038 (cmd_payload): Removed.
1039 (cmd_relocate): Likewise.
1040 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
1041 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
1042
1043 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 Convert UHCI to DMA framework.
1046
1047 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
1048 (grub_uhci_pci_iter): Fill new members
1049 (grub_alloc_td): Use P2V and V2P functions.
1050 (grub_free_queue): Likewise.
1051 (grub_alloc_qh): Likewise.
1052 (grub_uhci_setup_transfer): Likewise.
1053 (grub_uhci_check_transfer): Likewise.
1054
1055 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
1058 Remove assignment in if while on it.
1059
1060 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1061
1062 * util/grub-mkstandalone.in: Fix modules directory.
1063
1064 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
1067 on i386-pc target.
1068 (argp_parser): Accept "auto" as compression specification.
1069
1070 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1071
1072 Fix `help' with unloaded modules.
1073
1074 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
1075 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
1076 (grub_dyncmd_dispatcher): Small stylistic fix.
1077 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
1078 explicit help is requested.
1079
1080 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
1083 Explicitly init restart while on it.
1084
1085 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
1088 uninited variable.
1089
1090 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * util/grub-mknetdir.in: Use . rather than source for POSIX
1093 compatibility.
1094
1095 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
1098
1099 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1100
1101 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
1102 variable.
1103
1104 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
1107 without quotes.
1108
1109 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
1112
1113 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
1116 iteration of partitions.
1117
1118 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 Improve gettext support. Stylistic fixes and error handling fixes while
1121 on it.
1122
1123 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
1126 part. Instead setup the correct stack in RM.
1127 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
1128 for stack.
1129 * include/grub/i386/relocator_private.h: New file.
1130
1131 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
1134 argument.
1135 * util/grub-fstest.c (options): Add missing DEVICE part.
1136
1137 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1138
1139 Clarify and unify messages.
1140
1141 * grub-core/commands/hashsum.c (options): Unify messages.
1142 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
1143 literal-only message as translatable.
1144 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
1145 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
1146 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
1147 commands.
1148 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
1149 key, not the key used to unlock. Clarify what it's used for.
1150 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
1151 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
1152 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
1153 * util/grub-editenv.c (options): Unify "verbose" message.
1154 * util/grub-fstest.c (read_file): Unify error message.
1155 (fstest): Add quotes around commands.
1156 (options): Unify "verbose" message.
1157 * util/grub-install.in: Add quotes around variable name.
1158 * util/grub-kbdcomp.in: Unify error message.
1159 * util/grub-mkfont.c (main): Likewise.
1160 * util/grub-mkrescue.in: Likewise.
1161 * util/grub-mklayout.c (options): Unify "verbose" message.
1162 * util/grub-mkstandalone.in: Unify help and verbose messages.
1163 * util/grub-mount.c (options): Unify "verbose" message.
1164 * util/grub-probe.c (options): Likewise.
1165 * util/grub-script-check.c (options): Likewise.
1166 * util/grub-setup.c (setup): Unify no-terminator message.
1167 (options): Use DEVICE and not DEV.
1168 Unify "verbose" message.
1169 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
1170
1171 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1172
1173 Improve and unify messages.
1174
1175 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
1176 name. All users updated.
1177 Print filename in error.
1178 (read_device_map): Print filename in error.
1179 * util/getroot.c (grub_guess_root_devices): Print filename in error.
1180 (grub_util_get_os_disk): Likewise.
1181 (grub_util_biosdisk_get_grub_dev): Likewise.
1182 (grub_util_check_block_device): Likewise.
1183 (grub_util_check_char_device): Likewise.
1184 (grub_make_system_path_relative_to_its_root): Likewise.
1185 * util/grub-editenv.c (create_envblk_file): Likewise.
1186 (open_envblk_file): Likewise.
1187 (write_envblk): Likewise.
1188 * util/grub-fstest.c (cmd_cp): Likewise.
1189 (cmd_cat): Likewise.
1190 (cmd_cmp): Likewise.
1191 * util/grub-menulst2cfg.c (main): Likewise.
1192 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
1193 (write_font_width_spec): Likewise.
1194 (write_font_pf2): Likewise.
1195 * util/grub-mkimage.c (generate_image): New argument outname.
1196 All users updated.
1197 Remove unreacheable message.
1198 (options): Unify messages.
1199 (help_filter): Likewise.
1200 * util/grub-mklayout.c (usage): Removed (unused).
1201 (main): Print filename in error.
1202 * util/grub-mkrescue.in: Fix wrong quoting.
1203 * util/grub-setup.c (setup): Print filename in error.
1204 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
1205 (check_sas): Likewise.
1206 * util/misc.c (grub_util_get_fp_size): Removed.
1207 (grub_util_get_image_size): Print filename in error.
1208 (grub_util_read_at): Removed.
1209 (grub_util_read_image): Print filename in error.
1210 (grub_util_load_image): Likewise.
1211 (grub_util_write_image_at): New argument filename. All users updated.
1212 Print filename in error.
1213 (grub_util_write_image): New argument filename. All users updated.
1214 Print filename in error.
1215 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
1216 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
1217
1218 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 * grub-core/Makefile.core.def (pxechain): New module.
1221 * grub-core/loader/i386/pc/pxechainloader.c: New file.
1222 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
1223 function.
1224 (grub_pc_net_config_real): Use grub_pxe_get_cached.
1225 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
1226
1227 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
1230 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
1231 * include/grub/err.h (grub_error_saved): New struct.
1232 (grub_errmsg): Make array size explicit.
1233 * include/grub/misc.h (grub_error_save): New function.
1234 (grub_error_load): Likewise.
1235 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
1236 (grub_error_push): Update `errno' member name.
1237 (grub_error_pop): Likewise
1238 * grub-core/net/tftp.c (tftp_data): New member save_err.
1239 (tftp_receive): Save error.
1240 (tftp_open): Restore error.
1241
1242 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
1245 to real mode down to execute A20-related code in protected mode as
1246 intended.
1247
1248 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1249
1250 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
1251 NULL when the argument `level' has an unexpected value.
1252
1253 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1254
1255 Move platform-dependent files from $prefix to $prefix/$platform.
1256
1257 * config.h.in (GRUB_TARGET_CPU): New definition.
1258 (GRUB_PLATFORM): Likewise.
1259 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
1260 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
1261 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1262 * grub-core/kern/dl.c (grub_dl_load): Likewise.
1263 * grub-core/normal/autofs.c (read_fs_list): Likewise.
1264 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
1265 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
1266 * grub-core/normal/term.c (read_terminal_list): Likewise.
1267 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
1268 $prefix/locale.
1269 (grub_gettext_init_ext): Likewise.
1270 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
1271 grub_platform.
1272 * util/grub-install.in: Update directories.
1273 * util/grub-mknetdir.in: Likewise.
1274 * util/grub-mkrescue.in: Likewise.
1275
1276 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1277
1278 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
1279 grub_error framework. All users updated.
1280
1281 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
1284 lists (by always binsearching), improve caching (cache strings
1285 used for binsearch, not only results), improve
1286 maintainability (by using more structured binary search) and correct
1287 error handling.
1288
1289 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 * grub-core/script/execute.c (grub_script_return): Fix warning.
1292
1293 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * grub-core/script/execute.c (grub_script_return): Fix potential
1296 NULL-dereference.
1297 Reported by: Jim Meyering.
1298
1299 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * po/POTFILES.in: Regenerate.
1302 * util/grub-install.in: Gettextize the strings missed in first pass.
1303
1304 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * Makefile.util.def (grub-mkdevicemap): Removed.
1307 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
1308 * include/grub/util/deviceiter.h: Removed.
1309 * util/deviceiter.c: Likewise.
1310 * util/getroot.c (grub_util_get_os_disk): New function.
1311 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
1312 replacement for EFI.
1313 * util/grub-mkdevicemap.c: Removed.
1314 * util/grub-probe.c (probe): Handle PRINT_DISK.
1315 (argp_parser): Handle -t disk.
1316
1317 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * util/grub-mkfont.c: Migrate to argp.
1320 * util/grub-mklayout.c: Likewise.
1321 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1322 * util/grub-mkrelpath.c: Likewise.
1323 * util/grub-probe.c: Likewise.
1324 * util/grub-script-check.c: Likewise.
1325
1326 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 * util/grub-reboot.in: Add missing datarootdir.
1329 Add missing newline.
1330 * util/grub-set-default.in: Add missing datarootdir.
1331 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
1332 * util/grub-mkrescue.in: Likewise.
1333
1334 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
1337
1338 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 * util/grub-kbdcomp.in: Add decent help and gettextize.
1341 * docs/man/grub-kbdcomp.h2m: New file.
1342
1343 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 Migrate grub-mkimage.c to argp.
1346
1347 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
1348 (grub-setup): Likewise.
1349 * util/grub-setup.c (print_version): Move to ...
1350 * util/argp_common.c (print_version): ... here.
1351 * util/grub-setup.c (argp_program_version_hook): Move to ...
1352 * util/argp_common.c (argp_program_version_hook): ... here.
1353 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
1354 safety.
1355 * util/grub-mkimage.c (main): Migrate to argp.
1356
1357 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 * util/grub-mkrescue.in: Use same message as
1360 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
1361 for better translations.
1362
1363 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
1366 options with generic grub-mkrescue.in with the goal of future
1367 merge.
1368
1369 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * grub-core/kern/mm.c: Add missing include of i18n.h
1372 * grub-core/lib/relocator.c: Likewise.
1373
1374 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1375
1376 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
1377 error.
1378 (allocate_pages): Check return value.
1379 Replace fatal with error.
1380 (grub_linux_boot): Replace printf with dprintf.
1381 Check find_mmap_size return value.
1382 Replace fatal with error.
1383 Don't call grub_machine_fini.
1384 (grub_load_elf64): Replace printf with dprintf.
1385 (grub_cmd_linux): Likewise.
1386 (grub_cmd_initrd): Likewise.
1387 (grub_cmd_payload): Likewise.
1388
1389 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1390
1391 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
1392 message.
1393 * grub-core/video/radeon_fuloong2e.c
1394 (grub_video_radeon_fuloong2e_setup): Likewise.
1395 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
1396 * grub-core/video/video.c (grub_video_set_mode): Don't override
1397 standard out of memory message.
1398
1399 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1400
1401 NetBSD disk wedge support.
1402
1403 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
1404 [__NetBSD__]: Handle NetBSD disk wedges.
1405 * util/getroot.c (convert_system_partition_to_system_disk)
1406 [__NetBSD__]: Likewise.
1407
1408 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
1409
1410 * util/grub-mkconfig.in: Use umask rather than chmod to create
1411 grub.cfg.new to avoid insecure grub.cfg.
1412
1413 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * grub-core/commands/ls.c: Gettextize.
1416 * grub-core/commands/setpci.c: Likewise.
1417 * grub-core/commands/videotest.c: Likewise.
1418 * grub-core/disk/geli.c: Likewise.
1419 * grub-core/kern/mm.c: Likewise.
1420 * grub-core/lib/relocator.c: Likewise.
1421 * grub-core/loader/efi/appleloader.c: Likewise.
1422 * grub-core/loader/i386/xnu.c: Likewise.
1423 * grub-core/loader/ia64/efi/linux.c: Likewise.
1424 * grub-core/loader/xnu.c: Likewise.
1425 * grub-core/net/dns.c: Likewise.
1426 * grub-core/net/net.c: Likewise.
1427 * grub-core/script/lexer.c: Likewise.
1428 * grub-core/script/parser.y: Likewise.
1429 * grub-core/script/yylex.l: Likewise.
1430 * util/getroot.c: Likewise.
1431 * util/grub-setup.c: Likewise.
1432
1433 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
1436 number.
1437
1438 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
1441
1442 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
1445 macro.
1446 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
1447 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
1448
1449 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
1452 * util/grub-install.in: Gettextize.
1453 * util/grub-mkconfig.in: Likewise.
1454 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
1455 if not available.
1456 (grub_warn): Gettextize.
1457 * util/grub-mknetdir.in: Gettextize.
1458 * util/grub-mkrescue.in: Likewise.
1459 * util/grub-mkstandalone.in: Likewise.
1460 * util/grub-reboot.in: Likewise.
1461 * util/grub-set-default.in: Likewise.
1462 * util/grub.d/00_header.in: Likewise.
1463 * util/grub.d/10_hurd.in: Likewise.
1464 * util/grub.d/10_kfreebsd.in: Likewise.
1465 * util/grub.d/10_linux.in: Likewise.
1466 * util/grub.d/10_netbsd.in: Likewise.
1467 * util/grub.d/10_windows.in: Likewise.
1468 * util/grub.d/20_linux_xen.in: Likewise.
1469 * util/grub.d/30_os-prober.in: Likewise.
1470 * po/POTFILES-shell.in: Regenerate.
1471
1472 2012-02-03 Richard Laager <rlaager@wiktel.com>
1473
1474 * util/grub-mkimage.c (main): Fix format-security warning.
1475 * util/grub-mkrelpath.c (main): Likewise.
1476 * util/grub-probe.c (main): Likewise.
1477
1478 2012-02-03 Richard Laager <rlaager@wiktel.com>
1479
1480 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
1481 failure.
1482 Put back lost PRINT_DRIVE.
1483
1484 2012-02-03 Richard Laager <rlaager@wiktel.com>
1485
1486 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
1487 (grub_guess_root_devices): Replace strlen with sizeof.
1488 Avoid crash.
1489 (find_root_devices_from_poolname): Remove unused variable.
1490 Handle raidzN.
1491
1492 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 Support install on multi-device filesystems.
1495
1496 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
1497 (grub_guess_root_devices): ...this. Return char **. All users updated.
1498 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
1499 Removed.
1500 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
1501 (find_root_devices_from_poolname): ... here.
1502 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
1503 Support zfs-fuse.
1504 (grub_guess_root_device): Rename to ...
1505 (grub_guess_root_devices): ... this. Return char **. All users updated.
1506 * util/grub-install.in: Handle multi-device filesystems.
1507 * util/grub-probe.c (probe). Make device_names a char **. Add delim
1508 argument. All users updated.
1509 Handle multi-device filesystems.
1510 Use 'delim' as separator.
1511 Remove device check to allow filesystems on file.
1512 (main): Support -0 argument. Handle multi-device.
1513 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
1514 Fix a cross-device check while on it.
1515 (arguments): Remove root_dev.
1516 (argp_parser): Remove -r.
1517 (main): Remove root_dev.
1518
1519 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
1522
1523 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
1526 symbol.
1527 Reported by: NODA, Kai <nodakai>.
1528
1529 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 Fix ehci on amd64.
1532
1533 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
1534 pointers.
1535 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
1536 (grub_ehci_setup_qh): Likewise.
1537 (grub_ehci_find_qh): Likewise.
1538 (grub_ehci_transaction): Likewise.
1539 (grub_ehci_setup_transfer): Likewise.
1540 (grub_ehci_check_transfer): Likewise.
1541 (grub_ehci_portstatus): Likewise.
1542 (grub_ehci_detect_dev): Likewise.
1543 (grub_ehci_transfer_controller_data): New field td_last_phys.
1544 (grub_ehci_setup_transfer): Fill td_last_phys.
1545 (grub_ehci_check_transfer): Use td_last_phys.
1546
1547 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
1548
1549 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
1550 if no submenu is present.
1551
1552 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1553
1554 CBI support.
1555
1556 * include/grub/usb.h (grub_usbms_protocol_t): New values
1557 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
1558 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
1559 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
1560 (grub_usbms_dev): Add subclass, protocol and intrpt.
1561 Remove in_maxsz and out_maxsz.
1562 (grub_usbms_reset): Rename to ...
1563 (grub_usbms_bo_reset): .. this.
1564 (grub_usbms_cbi_cmd): New function.
1565 (grub_usbms_cbi_reset): Likewise.
1566 (grub_usbms_reset): Likewise.
1567 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
1568 (grub_usbms_transfer): Rename to ...
1569 (grub_usbms_transfer_bo): ... this.
1570 (grub_usbms_transfer_cbi): Likewise.
1571 (grub_usbms_transfer): Likewise.
1572
1573 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1574 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
1577 the support for the CS5536 modification thereos and few bugfixes.
1578
1579 * grub-core/Makefile.core.def (ehci): New module.
1580 * grub-core/bus/usb/ehci.c: New file.
1581 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
1582 port and hubaddr. All users updated.
1583 Save port and hubaddr into dev structure.
1584 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
1585 define.
1586 * include/grub/pci.h (grub_dma_phys2virt): New function.
1587 (grub_dma_virt2phys): Likewise.
1588 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
1589
1590 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
1593 check as some mkfs implementations omit it.
1594
1595 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * docs/grub.texi (Unicode): Mention identifier and space limitations.
1598
1599 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
1602 Add new member volname2.
1603 (grub_jfs_label): Use volname2 if available.
1604
1605 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
1608 over last_mounted as seen in image generated by mkfs.nilfs2.
1609 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
1610
1611 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
1614 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
1615 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
1616
1617 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
1620 over the sector.
1621
1622 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
1625 subvolume name (by removing a bogus and useless check).
1626
1627 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
1630 sizeof while on it.
1631
1632 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
1635 (grub_scsi_read_capacity10): ... this.
1636 (grub_scsi_read_capacity16): New function.
1637 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
1638 0xffffffff.
1639 Fix off-by-one error.
1640 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
1641 64-bit unsigned.
1642 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
1643 (grub_scsi_read_capacity10): ... this.
1644 (grub_scsi_read_capacity_data): Rename to ...
1645 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
1646 (grub_scsi_read_capacity16): New struct.
1647 (grub_scsi_read_capacity16_data): Likewise.
1648 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
1649 grub_scsi_cmd_read_capacity10.
1650 New command grub_scsi_cmd_read_capacity16.
1651
1652 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 SCSI >2TiB support.
1655
1656 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
1657 (grub_scsi_write16): Likewise.
1658 (grub_scsi_read): Use read16 when necessary.
1659 (grub_scsi_write): Likewise.
1660 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
1661 (grub_scsi_write16): Likewise.
1662 (grub_scsi_cmd_t): Add READ16 and WRITE16.
1663
1664 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 SCSI write support (for usbms mainly).
1667
1668 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
1669 a const pointer.
1670 (grub_scsi_write): Implement.
1671 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
1672
1673 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
1676 variable.
1677
1678 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * grub-core/lib/posix_wrap/string.h (memchr): New function.
1681
1682 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 * po/POTFILES.in: Regenerate.
1685
1686 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
1689 with grub_printf to avoid unnecessary fatal failure.
1690
1691 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
1694 (INT_MAX): Likewise.
1695 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
1696 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
1697 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
1698 (strcpy): Likewise.
1699 (strstr): Likewise.
1700 (strchr): Likewise.
1701 (strncpy): Likewise.
1702 (strcat): Likewise.
1703 (strncat): Likewise.
1704 (strcoll): Likewise.
1705 * include/grub/types.h (GRUB_SHRT_MAX): New define.
1706 (GRUB_INT_MAX): Likewise.
1707
1708 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
1711 unexpected error.
1712 (optimize_utf8): Likewise.
1713 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
1714
1715 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * grub-core/boot/i386/pc/lnxboot.S: Use
1718 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
1719 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
1720 location.
1721 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
1722 definition.
1723 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
1724
1725 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
1728 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
1729 now to avoid double free.
1730 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
1731 hostdisk.
1732 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
1733 * util/grub-probe.c (escape_of_path): Always return a new copy.
1734 (print_full_name): Escape path.
1735 (probe): Don't call grub_util_devname_to_ofpath on NULL.
1736 Fix hints on abstractions.
1737
1738 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
1741 Don't add "root" line if no compatibility hont is available.
1742 Suggested by: Seth Goldberg.
1743
1744 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
1747 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
1748 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
1749 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
1750
1751 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
1754
1755 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 * util/grub-pe2elf.c (ehdr): Make static.
1758 (shdr): Likewise.
1759 (num_sections): Likewise.
1760 (offset): Likewise.
1761
1762 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 Eliminate ofpath limits and possible overflows.
1765
1766 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
1767 (OF_PATH_MAX): Removed.
1768 (MAX_DISK_CAT): New const.
1769 (find_obppath): Use allocated rather than preallocated buffer.
1770 Return result. Argument of_path removed. All users updated.
1771 Add missing fdstat.
1772 (xrealpath): New function.
1773 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
1774 Allocate rather than use preallocated buffer. All users updated.
1775 (__of_path_common): Use allocated rather than preallocatecd buffer.
1776 Return result. Argument of_path removed. All users updated.
1777 (vendor_is_ATA): Read only needed part form the file.
1778 (check_sas): Allocate depending on contents rather than fixed.
1779 (main) [STANDALONE]: Handle NULL result.
1780
1781 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 * grub-core/normal/completion.c (iterate_dev): Close the disk.
1784
1785 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 Cryptodisk write support.
1788
1789 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
1790 (grub_cryptodisk_decrypt): Moved logic to ...
1791 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
1792 (grub_cryptodisk_write): Implement.
1793 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
1794 (grub_util_fd_write): ... this. Make global.
1795 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
1796
1797 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1798
1799 * include/grub/list.h (grub_list_remove): Don't crash if element is
1800 removed twice.
1801
1802 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 Rename ofconsole to console.
1805
1806 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
1807 as sysnonym to console.
1808 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
1809 * grub-core/term/ieee1275/console.c: ... this. All users updated.
1810 Rename grub_ofconsole_ to grub_console_. All users updated
1811 (grub_console_term_output): Rename "ofconsole" to "console".
1812 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
1813 as "console".
1814
1815 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
1818 handling.
1819 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
1820 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
1821 GRUB_DISK_DEVICE_FILE_ID.
1822
1823 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
1826 and improve performance.
1827
1828 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
1831 missing ieee1275/ prefix on whole disk.
1832
1833 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1834
1835 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
1836 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
1837
1838 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1839
1840 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
1841
1842 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 Merge common RAID and LVM logic to an abstract diskfilter.
1845 Add LDM support using the same framework.
1846
1847 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
1848 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
1849 (libgrubmods): Remove grub-core/disk/raid.c and
1850 grub-core/partmap/gpt.c.
1851 * grub-core/Makefile.core.def (ldm): New module.
1852 (raid): Renamed to diskfilter. All users updated.
1853 * grub-core/disk/raid.c: Moved to ...
1854 * grub-core/disk/diskfilter.c: ... here.
1855 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
1856 (lv_num): New var.
1857 (find_array): Renamed to ...
1858 (find_lv): ... this. Support multi-LV. Skip nameless LVs
1859 (grub_is_array_readable): Renamed to ...
1860 (grub_is_lv_readable): ... this. Support multinode hierarchy.
1861 (insert_array): New argument id.
1862 (is_node_readable): New function.
1863 (scan_device): Rename to ...
1864 (scan_disk): .. this. Restrict to one disk.
1865 (scan_devices): New function.
1866 (grub_diskfilter_iterate): Support multi-LV.
1867 Skip invisible and nameless LVs.
1868 (grub_diskfilter_memberlist): Support multi-LV.
1869 (grub_diskfilter_read_node): New function.
1870 (grub_raid_read): Most of logic moved to ...
1871 (read_segment): ... here
1872 (read_lv): New function.
1873 (grub_diskfilter_get_vg_by_uuid): New function.
1874 (grub_diskfilter_make_raid): Likewise.
1875 * grub-core/disk/ldm.c: New file.
1876 * grub-core/disk/lvm.c (vg_list): Removed.
1877 (lv_count): Likewise.
1878 (scan_depth): Likewise.
1879 (is_lv_readable): Likewise.
1880 (grub_lvm_getvalue): Advance pointer past the number.
1881 (find_lv): Removed.
1882 (do_lvm_scan): Refactored into ...
1883 (grub_lvm_detect): ... this. Support raid.
1884 (grub_lvm_iterate): Removed.
1885 (grub_lvm_memberlist): Likewise.
1886 (grub_lvm_open): Likewise.
1887 (grub_lvm_close): Likewise.
1888 (read_lv): Likewise.
1889 (read_node): Likewise.
1890 (is_node_readable): Likewise.
1891 (is_lv_readable): Likewise.
1892 (grub_lvm_read): Likewise.
1893 (grub_lvm_write): Likewise.
1894 (grub_lvm_dev): Use diskfilter
1895 (GRUB_MOD_INIT): Likewise.
1896 (GRUB_MOD_FINI): Likewise.
1897 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
1898 new interface.
1899 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
1900 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1901 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
1902 grub_diskfilter_read_node.
1903 Fix a bug with xor.
1904 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
1905 grub_diskfilter_read_node.
1906 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
1907 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
1908 (grub_disk_dev_iterate): Move from here...
1909 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
1910 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1911 Make global.
1912 (grub_hostdisk_find_partition_start): Likewise.
1913 (grub_hostdisk_os_dev_to_grub_drive): New function.
1914 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
1915 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
1916 * util/getroot.c (make_device_name): ... here.
1917 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1918 Move to ...
1919 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
1920 * grub-core/kern/emu/hostdisk.c
1921 (convert_system_partition_to_system_disk): Move to ...
1922 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
1923 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
1924 * util/getroot.c (device_is_wholedisk): ... here.
1925 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
1926 * util/getroot.c (find_system_device): ... here.
1927 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
1928 Move to ...
1929 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
1930 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1931 Move to ...
1932 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
1933 Handle LDM.
1934 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
1935 Move to ...
1936 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
1937 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
1938 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
1939 DISKFILTER.
1940 * include/grub/raid.h: Renamed to ...
1941 * include/grub/diskfilter.h: ... this.
1942 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
1943 (GRUB_RAID_LAYOUT_*): Make into array.
1944 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
1945 (grub_diskfilter_vg): New struct.
1946 (grub_diskfilter_pv_id): Likewise.
1947 (grub_raid_member): Removed.
1948 (grub_raid_array): Likewise.
1949 (grub_diskfilter_pv): New struct.
1950 (grub_diskfilter_lv): Likewise.
1951 (grub_diskfilter_segment): Likewise.
1952 (grub_diskfilter_node): Likewise.
1953 (grub_diskfilter_get_vg_by_uuid): New proto.
1954 (grub_raid_register): Inline.
1955 (grub_diskfilter_unregister): Likewise.
1956 (grub_diskfilter_make_raid): New proto.
1957 (grub_diskfilter_vg_register): Likewise.
1958 (grub_diskfilter_read_node): Likewise.
1959 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
1960 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
1961 (grub_util_is_ldm): Likewise.
1962 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
1963 (grub_hostdisk_find_partition_start): Likewise.
1964 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
1965 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
1966 New definition.
1967 (grub_gpt_partition_map_iterate): New proto.
1968 * include/grub/lvm.h (grub_lvm_vg): Removed.
1969 (grub_lvm_pv): Likewise.
1970 (grub_lvm_lv): Likewise.
1971 (grub_lvm_segment): Likewise.
1972 (grub_lvm_node): Likewise.
1973 * util/getroot.c [...]
1974 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
1975 (probe_abstraction): Likewise.
1976 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
1977 (main): Remove dead logic.
1978
1979 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
1980
1981 Simplify root device discover and don't fail when trying to open
1982 incorrect devices.
1983
1984 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
1985 function.
1986 (get_diskname_from_path): Likewise.
1987 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
1988 of iterating.
1989
1990 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
1993
1994 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
1997 pastthe end.
1998
1999 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 * util/grub-install.in: Add missing \.
2002 Reported by: gentoofan
2003
2004 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
2007 (direct_read): Use correct compressed size.
2008 (grub_squash_read_data): Likewise.
2009
2010 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 * docs/grub.texi (Platform limitations): New section.
2013 (Platform-specific operations): Likewise.
2014 * docs/grub-dev.texi (Porting): Likewise.
2015
2016 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 IEEE1275 disk write support.
2019
2020 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
2021 const void *.
2022 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
2023 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
2024 and seek loginc to ...
2025 (grub_ofdisk_prepare): ... here.
2026 (grub_ofdisk_write): Implement.
2027
2028 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 ARC disk write support.
2031
2032 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
2033 (reopen): New argument writable. All users updated.
2034 Handle required access mode.
2035 (grub_arcdisk_write): Implement.
2036 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
2037 (grub_arc_firmware_vector): Make buffer to write a const buffer.
2038
2039 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
2042 (read_sblock): Don't attempt to read superblocks outside the disk size.
2043
2044 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2045
2046 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
2047 first superblock to find the second one when possible.
2048
2049 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2050
2051 * util/grub-install.in: Fix an ARC bug.
2052 Print a warning if no platform-specific setup is available.
2053
2054 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 Use static allocation rather than scratch pointer in reed_solomon.
2057 It decreases its size significantly and avoids a variable in .text.
2058
2059 * grub-core/lib/reed_solomon.c (scratch): Removed.
2060 (chosenstat): New const or static array.
2061 (sigma): Likewise.
2062 (errpot): Likewise.
2063 (errpos): Likewise.
2064 (sy): Likewise.
2065 (mstat): Likewise.
2066 (errvals): Likewise.
2067 (eqstat): Likewise.
2068 (pol_evaluate): Replace x with log_x argument. All users updated.
2069 (syndroms): Removed.
2070 (gauss_solve): Use statically allocated arrays.
2071 (rs_recover): Likewise.
2072 Calculate syndroms directly.
2073 (decode_block): Use statically allocated arrays.
2074 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
2075 (main) [TEST]: Allow -DTEST -DSTANDALONE.
2076
2077 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 Eliminate fixed limit on reed solomon decoder length.
2080
2081 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
2082 rather than hardcoding the address.
2083 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
2084 no_reed_solomon_length.
2085 Move gate_a20 to no-reed-solomon part.
2086 Don't force a particular size of no reed-solomon part.
2087 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
2088 Removed.
2089 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
2090 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
2091
2092 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * grub-core/commands/wildcard.c (match_files): Handle filenames
2095 without explicit device.
2096 (wildcard_expand): Don't add explicit device if not already present.
2097 * tests/grub_script_echo1.in: Add a new expansion test.
2098
2099 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2100
2101 Replace single-linked with double-linked lists. It results in more
2102 compact and more efficient code.
2103
2104 * grub-core/kern/list.c (grub_list_push): Moved from here ...
2105 * include/grub/list.h (grub_list_push): ... to here. Set prev.
2106 (grub_list_remove): Moved from here ...
2107 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
2108 (grub_prio_list_insert): Set prev.
2109 * include/grub/list.h (grub_list): Add prev. All users updated.
2110
2111 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 Handle newer autotools. Add some missing quotes while on it.
2114
2115 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
2116 (pkglib_DATA): Move grub-mkconfig_lib from here ...
2117 (pkgdata_DATA): ... here.
2118 * Makefile.util.def (update-grub_lib): Removed.
2119 * conf/Makefile.common (pkglib_DATA): Removed.
2120 (pkglib_SCRIPTS): Likewise.
2121 (pkgdata_DATA): New variable.
2122 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
2123 needed.
2124 Add missing quotes.
2125 Remove unused variable while on it.
2126 * tests/util/grub-shell.in: Likewise.
2127 * util/grub-install.in: Likewise.
2128 * util/grub-mkconfig.in: Likewise.
2129 * util/grub-mknetdir.in: Likewise.
2130 * util/grub-mkrescue.in: Likewise.
2131 * util/grub-mkstandalone.in: Likewise.
2132 * util/grub.d/00_header.in: Likewise.
2133 * util/grub.d/10_hurd.in: Likewise.
2134 * util/grub.d/10_illumos.in: Likewise.
2135 * util/grub.d/10_kfreebsd.in: Likewise.
2136 * util/grub.d/10_linux.in: Likewise.
2137 * util/grub.d/10_netbsd.in: Likewise.
2138 * util/grub.d/10_windows.in: Likewise.
2139 * util/grub.d/20_linux_xen.in: Likewise.
2140 * util/grub.d/30_os-prober.in: Likewise.
2141 * util/update-grub_lib.in: Removed.
2142
2143 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
2144
2145 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
2146 a workaround for intel problem.
2147
2148 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
2149 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2150 2012-01-23 pfsmorigo
2151
2152 * util/grub-install.in: Support dd'in into PreP partition.
2153 * util/grub-probe.c (probe): Support discovering partition type.
2154 (main): Support -t msdos_parttype.
2155
2156 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
2159 infinite recursion using counter.
2160 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
2161 init to skip it if the magic check fails.
2162 (dec_stream_header): Init s->crc32.
2163
2164 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2165 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
2166 2012-01-22 Richard Laager <rlaager@wiktel.com>
2167
2168 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
2169 All users updated.
2170 (find_bestub): Determine correct size.
2171 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
2172 (scan_disk): Align the size down.
2173 Call check pool before find_bestub to have ashift.
2174
2175 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
2178 dprintf in no-malloc zone.
2179
2180 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
2181
2182 * configure.ac: Add back in test for limits.h.
2183
2184 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2185
2186 Support 4K-sector NTFS.
2187
2188 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
2189 (grub_ntfs_data): Remove blocksize.
2190 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
2191 Remove data argument. All users updated.
2192
2193 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2194
2195 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
2196 being in .text to avoid dprel references.
2197 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
2198 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
2199 (grub_arch_highmemsize): Likewise.
2200 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
2201 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
2202 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
2203
2204 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
2207
2208 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
2209 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
2210
2211 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
2214 GRUB_UTIL.
2215 (grub_set_datetime_cmos): Likewise.
2216
2217 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 Make XZ compression parameters dependent on target and not host CPU.
2220
2221 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
2222 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
2223
2224 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2225
2226 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
2227 set but not used variable.
2228
2229 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
2232 created when no uuid support is compiled into mkfs.reiser.
2233
2234 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
2237 (utf8_to_macroman): Do the opposite.
2238 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
2239
2240 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * configure.ac: Refise build qemu_mips w/o unifont.
2243
2244 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2245
2246 Eliminate grub_min/grub_max prone to overflow usage.
2247
2248 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
2249 (poll_nonroot_hub): Likewise.
2250 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
2251 (grub_affs_label): Likewise.
2252 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
2253 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
2254 (grub_hfs_label): Likewise.
2255 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
2256 * grub-core/fs/zfs/zfs.c (MIN): Remove.
2257 (zap_leaf_array_equal): Use grub_size. Remove MIN.
2258 (zap_leaf_array_get): Likewise.
2259 (dnode_get_path): Likewise.
2260 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
2261 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
2262 * grub-core/script/execute.c (grub_script_break): Likewise.
2263 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
2264 grub_max.
2265 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
2266 * include/grub/misc.h (grub_min): Removed.
2267 (grub_max): Likewise.
2268
2269 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2270
2271 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
2272 direct.inode = 0.
2273
2274 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
2277
2278 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
2281
2282 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
2285 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
2286
2287 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
2290 rather than a hack for grub_strncasemap.
2291
2292 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 Support multiple initrds
2295 Note: part of this was accidently committed in r3739.
2296
2297 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
2298 initrd.
2299 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
2300 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
2301 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2302 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2303 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2304
2305 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
2308 disks with unknown size.
2309 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
2310
2311 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 Remove defines pertaining to arbitrary limits not affecting GRUB
2314 anymore.
2315
2316 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
2317 (EXT2_MAX_SYMLINKCNT): Likewise.
2318 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
2319 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
2320 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
2321 (GRUB_PXE_MAX_BLKSIZE): Likewise.
2322 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
2323 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
2324 (DN_MAX_OBJECT_SHIFT): Likewise.
2325 (DN_MAX_OFFSET_SHIFT): Likewise.
2326 (DN_MAX_OBJECT): Likewise.
2327 (DNODES_PER_LEVEL_SHIFT): Likewise.
2328 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
2329 (SPA_MAXBLOCKSIZE): Likewise.
2330 (SPA_BLOCKSIZES): Likewise.
2331 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
2332 (MZAP_MAX_BLKSZ): Likewise.
2333
2334 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
2337 handle NULL appropriately.
2338 Remove MIN.
2339
2340 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 Fix efiemu.
2343
2344 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
2345 cpu/types.h.
2346 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
2347 * configure.ac: Fix efiemu check.
2348
2349 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2350
2351 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
2352 grub_probe.
2353 Reported by: adamwill
2354
2355 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
2356
2357 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
2358
2359 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2360
2361 Fix handling of wide characters in gfxterm.
2362
2363 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
2364 (clear_char): Likewise.
2365 (paint_char): Skip code == NULL chars.
2366 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
2367
2368 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * grub-core/normal/charset.c: Move comment to right place.
2371
2372 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
2375 (GRUB_AFFS_FLAG_FFS): Put back where it was.
2376 (grub_affs_mount): Revert the correct version checking.
2377
2378 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 * docs/grub.texi (Unicode): Mention several other unsupported features.
2381
2382 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2383
2384 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
2385 case statements as compile-time one.
2386 (direct_read): Prevent spurious warnings.
2387 (grub_squash_read_data): Likewise.
2388
2389 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 Various squash4 fixes and LZO and XZ support.
2392
2393 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
2394 Add xzembed source files.
2395 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
2396 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
2397 (grub_squash_inode): New subtype long_dir.
2398 (SQUASH_TYPE_LONG_DIR): New inode type.
2399 (COMPRESSION): New enum.
2400 (XZBUFSIZ): New const.
2401 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
2402 (read_chunk): Use data->decompress.
2403 (zlib_decompress): New function.
2404 (lzo_decompress): Likewise.
2405 (xz_decompress): Likewise.
2406 (squash_mount): Set new data fields.
2407 (grub_squash_iterate_dir): Handle long dir.
2408 (squash_unmount): Free xzdec and xzbuf.
2409 (grub_squash_open): Check ino type.
2410 (direct_read): Stylistic fixes. Use data->decompress.
2411 (grub_squash_read_data): Likewise.
2412 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
2413 (get_byte): Likewise.
2414 (grub_zlib_disk_read): Removed.
2415 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
2416 (GRUB_POSIX_BOOL_DEFINED): New define.
2417 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
2418 * grub-core/lib/xzembed/xz.h: Addmissing includes.
2419 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
2420 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
2421
2422 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 Don't override more informative errors.
2425
2426 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
2427 * grub-core/font/font.c (open_section): Likewise.
2428 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
2429 filename. Don't override errors.
2430 (grub_cmd_openbsd_ramdisk): Don't override errors.
2431 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
2432 (grub_cmd_initrd): Likewise.
2433 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2434 (grub_cmd_initrd): Likewise.
2435 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
2436 (grub_cmd_linux): Likewise.
2437 (grub_cmd_initrd): Likewise.
2438 (grub_cmd_payload): Likewise.
2439 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2440 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
2441 (grub_cmd_module): Likewise.
2442 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2443 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2444 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
2445 (grub_cmd_xnu_mkext): Likewise.
2446 (grub_cmd_xnu_ramdisk): Likewise.
2447 (grub_xnu_check_os_bundle_required): Likewise.
2448 (grub_xnu_load_kext_from_dir): Likewise.
2449 (grub_cmd_xnu_kextdir): Likewise.
2450 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
2451
2452 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
2455 as 1024 in block size field. Found on one of my test images.
2456 Small optimisation while on it.
2457
2458 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
2461 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
2462 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
2463 performance fixes while on it.
2464 (grub_sfs_close): Fix memory leak while on it.
2465 (grub_sfs_label): Convert Latin1 to UTF-8.
2466
2467 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
2470 space to avoid overflows.
2471 (grub_hfs_label): Convert from macroman to UTF-8.
2472
2473 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
2476
2477 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
2480
2481 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 * unicode: Import Unicode 6.0 data.
2484
2485 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
2488 outside of range.
2489
2490 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 Avoid cutting in the middle of UTF-8 character.
2493
2494 * include/grub/charset.h (grub_getend): New function.
2495 * grub-core/script/function.c (grub_script_function_find): Use
2496 grub_getend.
2497 * grub-core/normal/completion.c (add_completion): Likewise.
2498
2499 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
2502 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
2503 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
2504 (GRUB_UNICODE_TAG_END): Likewise.
2505 (GRUB_UNICODE_LAST_VALID): Likewise.
2506
2507 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
2510 len and make it smaller. All users updated.
2511 * util/import_unicode.py: Put length and not end character.
2512 Check length.
2513
2514 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 Make better Unicode-compliant and unify some UTF-8 code pathes.
2517
2518 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
2519 valid character.
2520 (grub_is_valid_utf8): Use grub_utf8_process.
2521 Check resulting code range.
2522 (grub_utf8_to_ucs4): Use grub_utf8_process.
2523 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
2524 valid character.
2525
2526 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
2529
2530 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 * docs/grub.texi (Filesystems): Mention AFS.
2533
2534 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * docs/grub.texi (Filesystems): Clarify restrictions.
2537 (Regexp): Mention non-Unicode regexp behaviour.
2538 (Other): Mention non-Unicode matching behaviour.
2539
2540 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 Make HFS implementation use MacRoman.
2543
2544 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
2545 (macroman): New const array.
2546 (macroman_to_utf8): New function.
2547 (utf8_to_macroman): Likewise.
2548 (grub_hfs_find_dir): Use utf8_to_macroman.
2549 (grub_hfs_dir): Use macroman_to_utf8.
2550 Set case_insensitive.
2551
2552 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
2555
2556 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 Integrate hints into autogeneration scripts.
2559
2560 * docs/grub.texi (Filesystems): Add a hostdisk example.
2561 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
2562 (grub-probe): Add ofpath.
2563 * gentpl.py: Remove group nosparc64.
2564 * grub-core/commands/search.c (cache_entry): New struct.
2565 (cache): New var.
2566 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
2567 * grub-core/commands/search_wrap.c (options): Add platform-specific
2568 hint options.
2569 (grub_cmd_search): Handle platform-specific hints.
2570 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
2571 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
2572 (grub_util_biosdisk_data): Likewise.
2573 (grub_util_biosdisk_open): Set device_map.
2574 (read_device_map): Handle "" as indication of no map.
2575 Set device_map.
2576 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
2577 (grub_util_biosdisk_get_compatibility_hint): New function.
2578 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
2579 * include/grub/emu/hostdisk.h
2580 (grub_util_biosdisk_get_compatibility_hint): New proto.
2581 * util/grub-install.in: Don't call grub-mkdevicemap.
2582 Add platform-specific hint to load.cfg.
2583 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
2584 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2585 hints. Set root preliminary to compatibility hint, not to OS name.
2586 * util/grub-probe.c (PRINT_*): Add hints.
2587 (print): Make static.
2588 (escape_of_path): New function.
2589 (guess_bios_drive): Likewise.
2590 (guess_efi_drive): Likewise.
2591 (guess_baremetal_drive): Likewise.
2592 (print_full_name): Likewise.
2593 (probe): Handle hints.
2594 (main): Likewise.
2595 * util/ieee1275/devicemap.c: Removed.
2596 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
2597 updated.
2598 (grub_util_devname_to_ofpath): Return NULL on failure.
2599
2600 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
2601 resource leak.
2602 * util/getroot.c (grub_util_pull_device): Fix memory leak.
2603
2604 * po/POTFILES.in: Regenerated.
2605
2606 Allow purely long options
2607
2608 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
2609 (SHORT_ARG_USAGE): Likewise.
2610 (grub_arg_show_help): Compare opt with help_options.
2611 (parse_option): Receive opt as argument. If makes big simplificatons.
2612 All users updated
2613
2614 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
2617 Restructure to avoid warning.
2618
2619 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 * util/grub-install.in: Account for possible escaped comma in device
2622 name.
2623
2624 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
2627 channel.
2628
2629 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
2632 allocation and zero-setting.
2633 (grub_ieee1275_get_devname): Check that alias is complete.
2634
2635 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2636
2637 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
2638 unaligned segments.
2639
2640 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
2643 prefix.
2644 (grub_ofdisk_open): Check and discard ieee1275 prefix.
2645 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2646 Add ieee1275 prefix.
2647
2648 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * docs/grub.texi (Filesystems): Update.
2651
2652 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 Support odc, newc and bigendian cpio formats.
2655
2656 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
2657 * grub-core/Makefile.core.def (newc): New module.
2658 (odc): Likewise.
2659 (cpio_be): Likewise.
2660 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
2661 (MAGIC): Likewise.
2662 (MAGIC2): Likewise.
2663 (head) [MODE_ODC]: Adapt for the format.
2664 (head) [MODE_NEWC]: Likewise.
2665 (head) [!MODE_*]: Write fields of interest as arrays.
2666 (MAGIC_USTAR): Removed.
2667 (read_number) [MODE_NEWC]: Change to hex.
2668 (read_number) [!MODE_*]: Parse binary arrays.
2669 (grub_cpio_find_file): Factor out the code for better structure and
2670 always use read_number.
2671 (grub_cpio_mount): Use MAGIC and MAGIC2.
2672 (grub_cpio_dir): Exit on first hook non-0 return.
2673 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
2674 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
2675 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
2676 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
2677 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
2678 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
2679 * grub-core/fs/newc.c: New file.
2680 * grub-core/fs/odc.c: Likewise.
2681 * grub-core/fs/cpio_be.c: Likewise.
2682
2683 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2684
2685 Fix handling of tar numbers occupying the whole field.
2686
2687 * grub-core/fs/cpio.c (read_number): New function.
2688 (grub_cpio_find_file): Use read_number instead of strtoull.
2689
2690 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
2693 occupying the whole field size.
2694
2695 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
2696
2697 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
2698
2699 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
2702
2703 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
2704
2705 * grub-core/Makefile.core.def (lzma_decompress): Add missing
2706 TARGET_IMG_LDFLAGS.
2707
2708 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * util/getroot.c (ESCAPED_PATH_MAX): New define.
2711 (mountinfo_entry): Increase the field size to take escaping into
2712 account.
2713 (find_root_device_from_libzfs): Add one byte to size of strings for
2714 security.
2715
2716 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
2719 an assert.
2720 * util/grub-setup.c (setup): Likewise.
2721
2722 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
2725 _LzmaDecodeA.
2726
2727 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 * docs/grub.texi (Internationalisation): New section.
2730
2731 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * docs/grub.texi (Loopback booting): New section.
2734
2735 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
2736
2737 * util/grub-mkstandalone.in: Fix minor typo errors.
2738
2739 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
2742
2743 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
2744 net/icmp.c and net/icmp6.c.
2745 (http): New module.
2746 (priority_queue): Likewise.
2747 * grub-core/io/bufio.c: Rewritten.
2748 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
2749 TYPE_WITH_CONFIGFILE_OPTION.
2750 (legacy_commands): Add bootp and dhcp.
2751 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
2752 (grub_legacy_parse): Likewise.
2753 * grub-core/lib/priority_queue.c: New file.
2754 * grub-core/net/arp.c: Add missing license header.
2755 (arp_find_entry): Removed.
2756 (arp_find_entry): Likewise.
2757 (grub_net_arp_resolve): Rename to ...
2758 (grub_net_arp_send_request): ...this.
2759 (grub_net_arp_receive): New card argument.
2760 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
2761 Set router and DNS server.
2762 (grub_net_configure_by_dhcp_ack): Handle routing information.
2763 (grub_cmd_bootp): Set checksum.
2764 (grub_bootp_init): Remove net_dhcp.
2765 * grub-core/net/dns.c: New file.
2766 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
2767 completion.
2768 (get_card_packet): Handle allocation.
2769 (grub_efinet_findcards): Set mtu.
2770 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
2771 (get_card_packet): Handle allocation.
2772 (emucard): Set mtu.
2773 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
2774 (GRUB_MOD_INIT): Set mtu.
2775 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
2776 mtu.
2777 (get_card_packet): Handle allocation.
2778 (grub_ofnet_findcards): Set mtu.
2779 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
2780 assert.
2781 (grub_net_recv_ethernet_packet): Handle IPv6.
2782 * grub-core/net/http.c: New file.
2783 * grub-core/net/icmp.c: Likewise.
2784 * grub-core/net/icmp6.c: Likewise.
2785 * grub-core/net/ip.c (ip6addr): New type.
2786 (ip6hdr): Likewise.
2787 (reassemble): Likewise.
2788 (cmp): New function.
2789 (reassembles): New variable.
2790 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
2791 (id): New variable.
2792 (send_fragmented): New function.
2793 (grub_net_send_ip_packet): Rename to ...
2794 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
2795 Handle non-UDP.
2796 (grub_net_recv_ip_packets): Rename to ...
2797 (handle_dgram): ... this. Check checksum. Handle non-UDP.
2798 (free_rsm): New function.
2799 (free_old_fragments): Likewise.
2800 (grub_net_recv_ip4_packets): New function.
2801 (grub_net_send_ip6_packet): Likewise.
2802 (grub_net_send_ip_packet): Likewise.
2803 (grub_net_recv_ip6_packets): Likewise.
2804 (grub_net_recv_ip_packets): Likewise.
2805 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
2806 (LINK_LAYER_CACHE_SIZE): New const.
2807 (link_layer_find_entry): New function.
2808 (grub_net_link_layer_add_address): Likewise.
2809 (grub_net_link_layer_resolve_check): Likewise.
2810 (grub_net_link_layer_resolve): Likewise.
2811 (grub_net_ipv6_get_slaac): Likewise.
2812 (grub_net_ipv6_get_link_local): Likewise.
2813 (grub_cmd_ipv6_autoconf): Likewise.
2814 (parse_ip): Handle one number representation.
2815 (parse_ip6): New functoion.
2816 (match_net): Handle IPv6.
2817 (grub_net_resolve_address): Handle IPv6 and DNS.
2818 (grub_net_resolve_net_address): Handle IPv6.
2819 (route_cmp): New function.
2820 (grub_net_route_address): Find best route.
2821 (grub_net_addr_to_str): Handle IPv6.
2822 (grub_net_addr_cmp): New function.
2823 (grub_net_add_addr): Register local route.
2824 (print_net_address): Handle net address.
2825 (grub_net_poll_cards): Retransmit TCP.
2826 (grub_net_poll_cards_idle_real): Likewise.
2827 (have_ahead): New function.
2828 (grub_net_seek_real): Use underlying seek.
2829 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
2830 * grub-core/net/tcp.c: New file.
2831 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
2832 (cmp): New function.
2833 (ack): Likewise.
2834 (tftp_receive): Handle unordered input.
2835 (destroy_pq): New function.
2836 (tftp_close): Close pq.
2837 * grub-core/net/udp.c: Put missing license header.
2838 (grub_net_udp_socket): New function.
2839 (udp_socket_register): Likewise.
2840 (grub_net_udp_close): Likewise.
2841 (grub_net_recv_udp_packet): Check checksum.
2842 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
2843 * include/grub/misc.h (grub_memchr): New function.
2844 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
2845 (grub_net_card_driver): Return buf in recv.
2846 (grub_net_slaac_mac_list): New struct.
2847 (grub_network_level_protocol_id): Add ipv6.
2848 (grub_net_network_level_addr): Likewise.
2849 (grub_net_network_level_net_addr): Likewise.
2850 (grub_net_app_protocol): Add seek.
2851 (grub_net_socket): Removed.
2852 (grub_net_sockets): Likewise.
2853 (grub_net_socket_register): Likewise.
2854 (grub_net_socket_unregister): Likewise.
2855 (FOR_NET_SOCKETS): Likewise.
2856 (grub_net_add_addr): Add const.
2857 (GRUB_NET_BOOTP_*): New enum.
2858 (grub_net_addr_cmp): New proto.
2859 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
2860 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
2861 (grub_net_hwaddr_to_str): NEw proto.
2862 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
2863 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
2864 (grub_dns_init): New proto.
2865 (grub_dns_fini): Likewise.
2866 (grub_net_tcp_retransmit): Likewise.
2867 (grub_net_link_layer_add_address): Likewise.
2868 (grub_net_link_layer_resolve_check): Likewise.
2869 (grub_net_link_layer_resolve): Likewise.
2870 (grub_net_dns_lookup): Likewise.
2871 (grub_net_add_dns_server): Likewise.
2872 (grub_net_remove_dns_server): Likewise.
2873 (GRUB_NET_TRIES): New const.
2874 (GRUB_NET_INTERVAL): Likewise.
2875 * include/grub/net/arp.h: Mostly rewritten.
2876 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
2877 * include/grub/net/ip.h: Mostly rewritten.
2878 * include/grub/net/netbuff.h: Indent.
2879 * include/grub/net/tcp.h: New file.
2880 * include/grub/net/udp.h: Mostly rewritten.
2881 * include/grub/priority_queue.h: New file.
2882 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
2883 (grub_swap_bytes64_compile_time): Likewise.
2884 (grub_cpu_to_be16_compile_time): Likewise.
2885 (grub_cpu_to_be32_compile_time): Likewise.
2886 (grub_cpu_to_be64_compile_time): Likewise.
2887 (grub_be_to_cpu64_compile_time): Likewise.
2888
2889 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
2892 UINT_TO_PTR with cast.
2893
2894 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
2897 don't use them.
2898
2899 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
2902 already there.
2903
2904 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2905
2906 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
2907 confusing ipxe.
2908
2909 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
2912 Add missing const attribute.
2913 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
2914 Likewise.
2915 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
2916 Likewise.
2917
2918 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
2921 misaligned access.
2922 (serpent_setkey): Likewise.
2923 (serpent_encrypt_internal): Likewise.
2924 (serpent_decrypt_internal): Likewise.
2925 (serpent_encrypt): Don't put an alignment-increasing cast.
2926 (serpent_decrypt): Likewise.
2927 (serpent_test): Likewise.
2928
2929 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
2932
2933 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
2936
2937 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
2938 grub_addr_t casts.
2939 (PTR_TO_UINT64): Likewise.
2940 (PTR_TO_UINT32): Likewise.
2941
2942 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * util/grub-mkimage.c (generate_image): Decrease the higher limit
2945 because of stack.
2946 * util/grub-setup.c (setup): Don't add redundancy past the higher load
2947 limit.
2948
2949 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
2952 text_width > available width a bit more gracefully.
2953
2954 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
2957 current address calculation.
2958
2959 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2960
2961 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
2962 stack.
2963 (encode_block): Likewise.
2964
2965 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
2968 certainety.
2969
2970 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
2973 non-RS part to avoid RS messing with GDT.
2974 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
2975 Increase to suit in realmode routines.
2976
2977 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2978
2979 * grub-core/kern/i386/realmode.S: Increase alignment.
2980 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
2981
2982 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2983
2984 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
2985 be deterministic.
2986 (syndroms): Compute 0 syndrom.
2987 (rs_recover): Use 0 syndrom.
2988
2989 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
2992
2993 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2994
2995 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
2996 brackets.
2997
2998 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
3001 account.
3002 (get_top_pad): Likewise.
3003 (get_right_pad): Likewise.
3004 (get_bottom_pad): Likewise.
3005
3006 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
3009
3010 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
3013 attribute as the structure isn't guaranteed to be properly aligned.
3014 (grub_efi_pci_device_path): Likewise.
3015 (grub_efi_pccard_device_path): Likewise.
3016 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
3017 specify the size of `memory_type'.
3018 (grub_efi_vendor_device_path): Likewise.
3019 (grub_efi_controller_device_path): Likewise.
3020 (grub_efi_acpi_device_path): Likewise.
3021 (grub_efi_expanded_acpi_device_path): Likewise.
3022 (grub_efi_atapi_device_path): Likewise.
3023 (grub_efi_scsi_device_path): Likewise.
3024 (grub_efi_fibre_channel_device_path): Likewise.
3025 (grub_efi_1394_device_path): Likewise.
3026 (grub_efi_usb_device_path): Likewise.
3027 (grub_efi_usb_class_device_path): Likewise.
3028 (grub_efi_i2o_device_path): Likewise.
3029 (grub_efi_mac_address_device_path): Likewise.
3030 (grub_efi_ipv4_device_path): Likewise.
3031 (grub_efi_ipv6_device_path): Likewise.
3032 (grub_efi_infiniband_device_path): Likewise.
3033 (grub_efi_uart_device_path): Likewise.
3034 (grub_efi_vendor_messaging_device_path): Likewise.
3035 (grub_efi_hard_drive_device_path): Likewise.
3036 (grub_efi_cdrom_device_path): Likewise.
3037 (grub_efi_vendor_media_device_path): Likewise.
3038 (grub_efi_file_path_device_path): Likewise.
3039 (grub_efi_protocol_device_path): Likewise.
3040 (grub_efi_piwg_device_path): Likewise.
3041 (grub_efi_bios_device_path): Likewise.
3042
3043 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
3046 (grub_ucs4_to_utf8_alloc): Likewise.
3047 (grub_ucs4_to_utf8): Likewise.
3048 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
3049 (grub_ucs4_to_utf8_alloc): Likewise.
3050
3051 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 AFFS never uses unicode.
3054
3055 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
3056 (grub_latin1_to_utf8): New inline function.
3057 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
3058
3059 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
3062 overflow.
3063
3064 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
3067 (grub_squash_dirent_header): Likewise.
3068 (read_chunk): Don't double swap.
3069 (grub_squash_iterate_dir): Fix swap sizes.
3070
3071 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
3074
3075 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3076
3077 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
3078 (grub_hfs_iterate_dir): Likewise.
3079
3080 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 Fix video on platforms where unaligned access is forbidden.
3083 Make several optimisations while on it.
3084
3085 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
3086 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3087 (grub_video_fbblit_replace_32bit_1bit): Likewise.
3088 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3089 Disable.
3090 (grub_video_fbblit_replace_16bit_1bit):
3091 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3092 (grub_video_fbblit_replace_8bit_1bit): Likewise.
3093 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
3094 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
3095 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3096 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3097 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
3098 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
3099 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
3100 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
3101 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
3102 (grub_video_fbblit_replace_index_RGB888): Likewise.
3103 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
3104 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
3105 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
3106 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3107 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
3108 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
3109 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3110 Disable.
3111 (grub_video_fbblit_blend_XXX565_1bit):
3112 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3113 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
3114 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
3115 void *.
3116 * grub-core/video/fb/video_fb.c (common_blitter)
3117 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
3118 (grub_video_fb_create_render_target_from_pointer)
3119 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
3120 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
3121 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
3122 definition.
3123 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
3124
3125 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
3128 HH22 and HM10 relocations.
3129
3130 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3131
3132 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
3133
3134 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
3137 allocation succeeded.
3138
3139 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
3142 argument a u8 pointer. All users updated.
3143 Handle unaligned buffers.
3144
3145 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
3148 add_part to workaround compiler bug.
3149
3150 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
3153
3154 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
3157 Reserve alignment invariants.
3158 (grub_multiboot_load): Likewise.
3159 (retrieve_video_parameters): Likewise.
3160 (grub_multiboot_make_mbi): Likewise.
3161
3162 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
3165 incorrect pointer.
3166
3167 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
3170 (grub_pata_pio_write): Likewise.
3171
3172 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3173
3174 Add noreturn attributes and remove unreachable code.
3175
3176 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
3177 code.
3178 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
3179 code. Mark as noreturn.
3180 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
3181 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
3182 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
3183 unreachable code.
3184 * grub-core/kern/main.c (grub_main): Mark as noreturn.
3185 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
3186 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
3187 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
3188 * include/grub/kernel.h (grub_main): Mark as noreturn.
3189 * include/grub/reader.h (grub_rescue_run): Likewise.
3190
3191 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
3194 redundant declaration.
3195
3196 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 * include/grub/net.h (grub_net_network_level_interfaces): Remove
3199 redundant declaration.
3200 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
3201
3202 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3203
3204 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
3205 to ensure alignment.
3206 (grub_hdparm_print_identify): Make argument uint16 * to ensure
3207 alignment. Ensure tmp alignment.
3208 (grub_cmd_hdparm): Ensure buf alignment.
3209 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
3210 to ensure alignment.
3211 (grub_ata_dumpinfo): Ensure text alignment.
3212 (grub_atapi_identify): Preserve alignment invariant.
3213 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
3214
3215 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
3218 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
3219 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
3220 * include/grub/misc.h (grub_reboot)
3221 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
3222 (grub_halt) [__mips__]: Likewise.
3223
3224 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
3227 Remove redundant declaration.
3228 (grub_mmap_get_post64): Likewise.
3229 (grub_mmap_get_upper): Likewise.
3230 (grub_mmap_get_lower): Likewise.
3231
3232 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
3235 uint32_t * to ensure alignment.
3236 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
3237
3238 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3239
3240 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
3241 uint16_t * to ensure alignment.
3242 (sun_pc_partition_map_iterate): Make `block' a union to ensure
3243 alignment.
3244
3245 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
3248 to ensure alignment.
3249 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
3250
3251 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * grub-core/fs/ntfs.c (u16at): Make into inline function.
3254 Handle unaligned pointers.
3255 (u32at): Likewise.
3256 (u64at): Likewise.
3257 (fixup): Use byte access instead of v16at.
3258 (find_attr): Fix imporper usage of v32at.
3259 (read_data): Likewise.
3260 (list_file): Handle byte-swapping and unaligned strings.
3261 (grub_ntfs_label): Likewise.
3262
3263 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
3266 as it's not necessarily aligned.
3267
3268 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
3271 redundant declaration.
3272 (grub_serial_init): Likewise.
3273 (grub_terminfo_init): Likewise.
3274
3275 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
3278 function.
3279 (ZAP_HASH_IDX): Likewise.
3280 (ZAP_LEAF_HASH_SHIFT): Likewise.
3281 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
3282 (LEAF_HASH): Likewise.
3283 (ZAP_LEAF_NUMCHUNKS): Likewise.
3284 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
3285 alignment invariants. Return pointer. All users updated.
3286 (ZAP_LEAF_ENTRY): Make into inline function.
3287 (NBBY): Removed.
3288 (xor): LIkewise.
3289 (xor_out): Use grub_crypto_xor.
3290 (dnode_get_path): Use grub_get_unaligned.
3291 (nvlist_find_value): Likewise.
3292 (grub_zfs_nvlist_lookup_uint64): Likewise.
3293 (grub_zfs_nvlist_lookup_string): Likewise.
3294 (get_nvlist_size): Likewise.
3295 (grub_zfs_open): Likewise.
3296 (fill_fs_info): Likewise.
3297 (grub_zfs_dir): Likewise.
3298 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
3299 alignment invariants.
3300 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
3301 necessarily aligned.
3302
3303 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
3306
3307 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
3310 arithmetic to conserve alignment invariants.
3311
3312 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
3315 redundant declaration.
3316 (grub_efiemu_mm_obtain_request): Likewise.
3317 (grub_efiemu_prepare): Likewise.
3318
3319 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
3322 to match types.
3323
3324 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
3327 case of aunaligned recptr.
3328 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
3329 alignment.
3330 (grub_hfsplus_btree_search): Handle unaligned index.
3331
3332 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
3335 to get freetag and skip.
3336
3337 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
3340 array.
3341 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
3342 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
3343
3344 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
3347 name for checksum and fix allocation algorithm.
3348
3349 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * include/grub/types.h (grub_properly_aligned_t): New type.
3352 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
3353 (grub_get_unaligned16): Add explicit casts.
3354 (grub_get_unaligned32): Likewise.
3355 (grub_get_unaligned64): Likewise.
3356 (grub_set_unaligned16): New function.
3357 (grub_set_unaligned32): Likewise.
3358
3359 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
3362
3363 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3364
3365 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
3366 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
3367 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
3368
3369 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
3372 conditionals.
3373
3374 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
3377 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
3378
3379 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 Unify and improve RAID and crypto xor.
3382
3383 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
3384 changed to grub_crypto_xor
3385 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
3386 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
3387 Use bigger types when possible.
3388
3389 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * grub-core/disk/raid.c (scan_devices): Fix condition.
3392
3393 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
3396 Make name a const ptr.
3397
3398 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
3401 first argument a const pointer.
3402 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3403 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
3404 proto.
3405 (grub_children_iterate): Likewise.
3406 (grub_machine_mmap_iterate): Remove redundant declaration.
3407
3408 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
3411 (grub_cmd_acpi) [!x86]: Disable EBDA.
3412
3413 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 Enable UTF8 in gnulib regexp.
3416
3417 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
3418 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
3419 (isupper): Use grub_isupper.
3420 (isascii): New inline function.
3421 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
3422 * grub-core/lib/posix_wrap/wctype.h: Likewise.
3423 * grub-core/normal/charset.c (grub_utf8_process): New function.
3424 (grub_utf8_to_utf16): Use grub_utf8_process.
3425 (grub_encode_utf8_character): New function.
3426 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
3427 * include/grub/charset.h (grub_utf8_process): New declaration.
3428 (grub_encode_utf8_character): Likewise.
3429 * include/grub/misc.h (grub_islower): New inline function.
3430 (grub_isupper): Likewise.
3431 (grub_strchrsub): Moved down to fix the definitions.
3432
3433 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
3436 specification.
3437
3438 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3439
3440 * include/grub/loader.h (grub_loader_register_preboot_hook):
3441 Use struct preboot * and not void * for handle. All users updated.
3442 (grub_loader_unregister_preboot_hook): Likewise.
3443
3444 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
3447 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
3448 UTF-16-BE. All users updated.
3449 (grub_hfsplus_cmp_catkey): Fix unicode handling.
3450 (grub_hfsplus_iterate_dir): Likewise.
3451 (grub_hfsplus_label): Likewise.
3452
3453 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
3456
3457 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 Add missing const qualifiers.
3460
3461 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
3462 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
3463 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
3464 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
3465 (grub_lvm_check_flag): Likewise.
3466 * grub-core/efiemu/i386/coredetect.c
3467 (grub_efiemu_get_default_core_name): Likewise
3468 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
3469 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
3470 * grub-core/fs/ntfs.c (fixup): Likewise.
3471 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
3472 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
3473 (fzap_lookup): Likewise.
3474 (zap_lookup): Likewise.
3475 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
3476 * grub-core/lib/legacy_parse.c (check_option): Likewise.
3477 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
3478 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
3479 (grub_freebsd_add_meta_module): Likewise.
3480 (grub_cmd_freebsd_module): Likewise.
3481 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
3482 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
3483 (grub_xnu_writetree_get_size): Likewise.
3484 (grub_xnu_writetree_toheap_real): Likewise.
3485 (grub_xnu_find_key): Likewise.
3486 (grub_xnu_create_key): Likewise.
3487 (grub_xnu_create_value): Likewise.
3488 (grub_xnu_register_memory): Likewise.
3489 (grub_xnu_check_os_bundle_required): Likewise.
3490 (grub_xnu_scan_dir_for_kexts): Likewise.
3491 (grub_xnu_load_kext_from_dir): Likewise.
3492 * grub-core/normal/color.c (color_list): Likewise.
3493 * grub-core/normal/completion.c (current_word): Likewise.
3494 * grub-core/normal/menu_entry.c (insert_string): Likewise.
3495 * grub-core/term/serial.c (grub_serial_find): Likewise.
3496 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
3497 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
3498 Likewise.
3499 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
3500 (grub_freebsd_add_meta_module): Likewise.
3501 * include/grub/lib/arg.h (grub_arg_option): Likewise.
3502 * include/grub/net.h (grub_net_card_driver): Likewise.
3503 (grub_net_card): Likewise.
3504 (grub_net_app_protocol): Likewise.
3505 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
3506 * include/grub/serial.h (grub_serial_find): Likewise.
3507 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
3508 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
3509 (grub_xnu_create_value): Likewise.
3510 (grub_xnu_find_key): Likewise.
3511 (grub_xnu_scan_dir_for_kexts): Likewise.
3512 (grub_xnu_load_kext_from_dir): Likewise.
3513
3514 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
3515 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
3516 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
3517 Moved from here ...
3518 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
3519
3520 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
3521
3522 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
3523
3524 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
3527 (read_device): Fix size calculation.
3528
3529 2011-11-25 Robert Millan <rmh@gnu.org>
3530
3531 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
3532 (find_root_device_from_libzfs): Add zpool output parser to be used
3533 as fallback when libzfs isn't available.
3534
3535 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
3536
3537 * po/Makefile.in.in: Add missing escape-continuation.
3538
3539 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
3542
3543 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
3546
3547 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
3550
3551 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
3554
3555 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/lib/adler32.c: Add missing license specification.
3558 * grub-core/lib/crc64.c: Likewise.
3559 * grub-core/loader/i386/pc/plan9.c: Likewise.
3560 * grub-core/partmap/plan.c: Likewise.
3561
3562 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
3563
3564 Add facility to debug GRUB with gdb under qemu.
3565
3566 * grub-core/gdb_grub.in: New file.
3567 * grub-core/gmodule.pl.in: Likewise.
3568 * grub-core/Makefile.core.def (gmodule.pl): New script.
3569 (gdb_grub): Likewise.
3570
3571 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * util/grub-mount.c (argp_parser): Accept relative pathes.
3574 * util/grub-fstest.c (argp_parser): Likewise.
3575
3576 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 Plan9 support.
3579
3580 * Makefile.util.def (libgrubmods): Add
3581 grub-core/partmap/plan.c.
3582 * docs/grub.texi: Notice Plan9 support.
3583 * grub-core/Makefile.core.def (plan9): New module.
3584 (part_plan): Likewise.
3585 * grub-core/loader/i386/pc/plan9.c: New file.
3586 * grub-core/partmap/plan.c: Likewise.
3587 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
3588 define.
3589 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
3590 * include/grub/mm.h (grub_extend_alloc): New inline function.
3591
3592 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 Make Reed-Solomon faster by using power of generator representation of
3595 GF(256)*.
3596
3597 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
3598 (gf_double_t): Likewise.
3599 (gf_invert): Removed.
3600 (gf_powx): New array.
3601 (gf_powx_inv): Likewise.
3602 (scratch): Move higher.
3603 (gf_reduce): Removed.
3604 (gf_mul): Use powx.
3605 (gf_invert): Likewise.
3606 (init_inverts): Replaced with ...
3607 (init_powx): ...this. All users updated.
3608 (pol_evaluate): Replace multiplications with additions.
3609 (rs_encode): Likewise.
3610 (gauss_eliminate): Call gf_invert.
3611 (grub_reed_solomon_add_redundancy): Call init_powx.
3612 (grub_reed_solomon_recover): Call init_powx unconditionally.
3613
3614 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
3617
3618 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
3621 disk->partiton for safety.
3622
3623 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
3626 Fix a memory leak.
3627 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
3628
3629 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
3632
3633 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
3636
3637 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 Fix spaces handling in proc/self/mountinfo.
3640
3641 * util/getroot.c (unescape): New function.
3642 (grub_find_root_device_from_mountinfo): Use unescape.
3643
3644 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3645
3646 Support ZFS embedding.
3647
3648 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
3649 (grub_zfs_fs): Register grub_zfs_embed.
3650
3651 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 Fix MIPS compilation.
3654
3655 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
3656 * include/grub/offsets.h: Rename decompressor fields from
3657 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
3658 * util/grub-mkimage.c (image_targets): Use new names.
3659
3660 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 Defer multiboot device parsing until we're in compressed part.
3663
3664 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
3665 bsd_part. setdevice has fallen into disuse.
3666 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
3667 (bsd_part): Likewise.
3668 (boot_dev): New variable.
3669 (multiboot_trampoline): Don't parse multiboot device.
3670 Pass multiboot device in %edx.
3671 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
3672 grub_boot_device.
3673 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
3674 Likewise.
3675 * grub-core/kern/i386/pc/startup.S: Save edx.
3676 (grub_boot_drive): Removed.
3677 (grub_install_dos_part): Likewise.
3678 (grub_install_bsd_part): Likewise.
3679 (grub_boot_device): New variable.
3680 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
3681 (grub_install_bsd_part): Likewise.
3682 (grub_boot_drive): Likewise.
3683 (grub_boot_device): New variable.
3684 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
3685 Removed.
3686 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3687 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
3688 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
3689 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
3690 * util/grub-install.in: Remove redundant condition.
3691
3692 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 Fix bug introduced by previous commit.
3695
3696 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
3697
3698 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 Use decompressors framework on i386-pc. It increases core size
3701 by 46 bytes but improves compatibility and maintainability.
3702
3703 * grub-core/Makefile.core.def (lzma_decompress): New image.
3704 (kernel): Add i386_pc_ldflags.
3705 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
3706 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
3707 to real_to_prot, prot_to_real and device info.
3708 * include/grub/offsets.h: Renamed decompressor offsets.
3709 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
3710 (image_target_desc): Remove raw_size and rename decompressor fields.
3711 (compress_kernel): Handle lzma.
3712 (generate_image): Handle decompressors on i386-pc.
3713
3714 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * configure.ac: Add -fno-asynchronous-unwind-tables.
3717
3718 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 Move assembly code to C by using intwrap. It increases core size
3721 by 88 bytes but improves compatibility and maintainability.
3722
3723 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
3724 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
3725 ... here. Translated to C.
3726 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
3727 * grub-core/term/i386/pc/console.c (grub_console_getkey):
3728 ... here. Translated to C.
3729 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
3730 * grub-core/term/i386/pc/console.c (grub_console_getxy):
3731 ... here. Translated to C.
3732 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
3733 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
3734 ... here. Translated to C.
3735 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
3736 * grub-core/term/i386/pc/console.c (grub_console_cls):
3737 ... here. Translated to C.
3738 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
3739 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
3740 ... here. Translated to C.
3741 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
3742 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
3743 Translated to C.
3744 * grub-core/term/i386/pc/console.c (int10_9): New function.
3745 (grub_console_putchar): Likewise.
3746 * include/grub/i386/pc/console.h: Removed the not anymore shared
3747 functions.
3748
3749 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 Move grub_chainloader_real_boot out of the kernel.
3752
3753 * grub-core/Makefile.am: Remove machine/loader.h.
3754 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3755 Removed.
3756 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
3757 variable.
3758 (grub_relocator16_keep_a20_enabled): Likewise.
3759 (grub_relocator16_boot): Fill new variables.
3760 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
3761 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
3762 relocator.
3763 (grub_chainloader_unload): Likewise.
3764 (grub_chainloader_cmd): Likewise.
3765 * include/grub/i386/pc/loader.h: Removed.
3766 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
3767 and esi. All initialisers updated.
3768
3769 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3770 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
3771
3772 * Makefile.util.def (grub-mount): New util.
3773 * .bzrignore: Add grub-mount.
3774 * configure.ac: Check for fuse and enable grub-mount if available.
3775 * docs/man/grub-mount.h2m: New file.
3776 * util/grub-mount.c: Likewise.
3777
3778 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * grub-core/commands/efi/fixvideo.c: Gettextize.
3781 * grub-core/commands/hashsum.c: Likewise.
3782 * grub-core/commands/i386/cmostest.c: Likewise.
3783 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3784 * grub-core/commands/i386/pc/lsapm.c: Likewise.
3785 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3786 * grub-core/commands/lsmmap.c: Likewise.
3787 * grub-core/commands/menuentry.c: Likewise.
3788 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3789 * grub-core/commands/setpci.c: Likewise.
3790 * grub-core/loader/i386/bsd.c: Likewise.
3791 * grub-core/loader/i386/linux.c: Likewise.
3792 * util/getroot.c: Likewise.
3793 * util/grub-editenv.c: Likewise.
3794 * util/grub-fstest.c: Likewise.
3795 * util/grub-mkfont.c: Likewise.
3796 * util/grub-mkimage.c: Likewise.
3797 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3798 * util/grub-pe2elf.c: Likewise.
3799 * util/grub-probe.c: Likewise.
3800 * util/grub-setup.c: Likewise.
3801 * util/ieee1275/ofpath.c: Likewise.
3802 * util/misc.c: Likewise.
3803 * util/raid.c: Likewise.
3804
3805 2011-11-11 Robert Millan <rmh@gnu.org>
3806
3807 * util/getroot.c (grub_util_get_geom_abstraction): Remove
3808 __attribute__((unused)) from `os_dev', which *is* being used.
3809
3810 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
3813 forgotten define.
3814 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
3815 GRUB_IA64_DL_GOT_ALIGN.
3816 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
3817 GRUB_IA64_DL_TRAMP_ALIGN.
3818
3819 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 Replace grub_fatal with normal errors in i386 linux loader.
3822
3823 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
3824 (allocate_pages): Check find_efi_mmap_size return value.
3825 (grub_e820_add_region): Return error.
3826 (grub_linux_boot): Check mmap return value.
3827
3828 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/commands/acpihalt.c: Gettextized.
3831 * grub-core/commands/cacheinfo.c: Likewise.
3832 * grub-core/commands/cmp.c: Likewise.
3833 * grub-core/commands/efi/loadbios.c: Likewise.
3834 * grub-core/commands/gptsync.c: Likewise.
3835 * grub-core/commands/ieee1275/suspend.c: Likewise.
3836 * grub-core/commands/legacycfg.c: Likewise.
3837 * grub-core/commands/memrw.c: Likewise.
3838 * grub-core/commands/minicmd.c: Likewise.
3839 * grub-core/commands/parttool.c: Likewise.
3840 * grub-core/commands/time.c: Likewise.
3841 * grub-core/commands/videoinfo.c: Likewise.
3842 * grub-core/disk/geli.c: Likewise.
3843 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
3844 * grub-core/disk/luks.c: Likewise.
3845 * grub-core/disk/lvm.c: Likewise.
3846 * grub-core/font/font_cmd.c: Likewise.
3847 * grub-core/fs/zfs/zfscrypt.c: Likewise.
3848 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3849 * grub-core/gfxmenu/view.c: Likewise.
3850 * grub-core/kern/emu/hostdisk.c: Likewise.
3851 * grub-core/kern/emu/main.c: Likewise.
3852 * grub-core/kern/emu/misc.c: Likewise.
3853 * grub-core/kern/emu/mm.c: Likewise.
3854 * grub-core/kern/mips/arc/init.c: Likewise.
3855 * grub-core/kern/mips/loongson/init.c: Likewise.
3856 * grub-core/kern/partition.c: Likewise.
3857 * grub-core/lib/i386/halt.c: Likewise.
3858 * grub-core/lib/mips/arc/reboot.c: Likewise.
3859 * grub-core/lib/mips/loongson/reboot.c: Likewise.
3860 * grub-core/loader/i386/pc/chainloader.c: Likewise.
3861 * grub-core/loader/i386/xnu.c: Likewise.
3862 * grub-core/loader/multiboot.c: Likewise.
3863 * grub-core/net/bootp.c: Likewise.
3864 * grub-core/net/net.c: Likewise.
3865 * grub-core/normal/term.c: Likewise.
3866 * grub-core/partmap/bsdlabel.c: Likewise.
3867 * grub-core/parttool/msdospart.c: Likewise.
3868 * grub-core/term/gfxterm.c: Likewise.
3869 * grub-core/term/terminfo.c: Likewise.
3870 * grub-core/video/i386/pc/vbe.c: Likewise.
3871 * util/grub-menulst2cfg.c: Likewise.
3872 * util/grub-mkdevicemap.c: Likewise.
3873 * util/grub-mklayout.c: Likewise.
3874 * util/grub-mkrelpath.c: Likewise.
3875 * util/grub-script-check.c: Likewise.
3876 * util/ieee1275/grub-ofpathname.c: Likewise.
3877 * util/resolve.c: Likewise.
3878
3879 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 Support %1$d syntax.
3882
3883 * tests/printf_unit_test.c: New file.
3884 * Makefile.util.def (printf_test): New test.
3885 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
3886
3887 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
3890 fix.
3891
3892 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
3895 dprintf.
3896 * grub-core/font/font.c (grub_font_load): Likewise.
3897
3898 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 * util/grub-macho2img.c: Add comment concerning gettext.
3901 * grub-core/lib/legacy_parse.c: Likewise.
3902
3903 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
3906 (grub_xvasprintf): Likewise.
3907
3908 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 Add const keyword to grub_env_get and gettextize week days.
3911
3912 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
3913 (grub_read_hook_datetime): Return const char *.
3914 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
3915 updated.
3916 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
3917 Mark for gettext.
3918 (grub_get_weekday_name): Return const char *. Call gettext.
3919 * grub-core/script/argv.c (grub_script_argv_append): Receive const
3920 char * and len as the argument. All users updated.
3921 (grub_script_argv_split_append): Receive const char *.
3922 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
3923 * include/grub/env.h (grub_env_get): Likewise.
3924 (grub_env_read_hook_t): Return const char *.
3925 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
3926 (grub_script_argv_split_append): Likewise.
3927
3928 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3929
3930 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
3931
3932 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
3935 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
3936
3937 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
3940 Fix prototype.
3941
3942 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3943
3944 Fix mips compilation.
3945
3946 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
3947 normal decoder.
3948 (hashes): Use in embed decoder as well (for sizes).
3949 (dec_stream_header): Fix embed decompressor logic.
3950 (dec_stream_footer): Likewise.
3951
3952 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
3955 an error and not a fatal on unrecognised relocation types.
3956
3957 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
3960 Issue error rather than printf on unknown arguments.
3961
3962 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
3965 Make buf a const.
3966
3967 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
3970 Fix module name.
3971
3972 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
3975 leftover debug printf.
3976
3977 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
3980
3981 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
3984 A stylistic fix.
3985
3986 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
3989
3990 2011-11-10 Shea Levy <slevy@tieronedesign.com>
3991
3992 Allow all modules to perform serial IO
3993
3994 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
3995 * include/grub/serial.h (grub_serial_port_configure): New inline
3996 function.
3997 (grub_serial_port_fetch): Likewise.
3998 (grub_serial_port_put): Likewise.
3999 (grub_serial_port_fini): Likewise.
4000 (grub_serial_find): New proto.
4001
4002 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 Put symlink at the end of the node and fix a potential
4005 memory corruption.
4006
4007 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
4008 Make symlink into an array.
4009 (set_rockridge): Set have_symlink and alloc_dirents.
4010 (grub_iso9660_read_symlink): Use new layout.
4011 (grub_iso9660_iterate_dir): Fix memory corruption.
4012 Use new layout.
4013 (grub_iso9660_dir): Set have_symlink.
4014 (grub_iso9660_open): Likewise.
4015
4016 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 Remove local keyword.
4019
4020 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
4021 (version_test_gt): Likewise.
4022 (version_find_latest): Likewise.
4023 (gettext_printf): Likewise.
4024 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
4025
4026 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
4029
4030 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4031
4032 Fix ZFS memory and resource leaks.
4033
4034 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
4035 All users updated.
4036 Free type on exit.
4037 (fill_vdev_info): New parameter inserted. All users updated.
4038 (check_pool_label): Likewise.
4039 (scan_disk): Likewise.
4040 (scan_devices): Close non-inserted disks.
4041 (fzap_iterate): Free l.
4042 (unmount_device): Free children descripto memory.
4043
4044 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4045
4046 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
4047 argument (access out of bounds).
4048
4049 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4050
4051 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
4052 >= 6 drives.
4053
4054 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
4057 Fix declaration.
4058
4059 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4060
4061 Fix several memory leaks.
4062
4063 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
4064 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
4065 (grub_cpio_dir): Likewise.
4066 * grub-core/fs/fat.c (grub_fat_label): Likewise.
4067 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
4068 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
4069 (grub_romfs_label): Likewise.
4070 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
4071 (squash_unmount): New function.
4072 (grub_squash_dir): Fix memory leak.
4073 (grub_squash_open): Likewise.
4074 (grub_squash_read): Likewise.
4075 (grub_squash_mtime): Likewise.
4076 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
4077 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
4078 * util/grub-fstest.c (fstest): Likewise.
4079
4080 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
4083 avoid accessing beyond the array.
4084
4085 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
4088
4089 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4090
4091 Several AFFS fixes.
4092
4093 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
4094 (GRUB_AFFS_FLAG_FFS): Removed.
4095 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
4096 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
4097 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
4098 (grub_fshelp_node): Make block 32-bit.
4099 Add block_cache and last_block_cache.
4100 (grub_affs_read_block): Fill and use block cache.
4101 (grub_affs_read_file): Removed.
4102 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
4103 boot block.
4104 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
4105 safety.
4106 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
4107 space.
4108 (grub_affs_close): Free block cache.
4109 (grub_affs_read): Use grub_fshelp_read_file directly.
4110
4111 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
4114 with no error set.
4115
4116 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
4119 used variable.
4120 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4121 Likewise.
4122
4123 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
4126
4127 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
4128 byteswap when needed.
4129
4130 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 Fix FreeBSD compilation.
4133
4134 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
4135 to avoid circular dependency.
4136 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
4137 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
4138 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
4139
4140 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 Fix ZFS crypto error types.
4143
4144 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
4145 (grub_gcm_decrypt): Likewise.
4146 (grub_zfs_load_key_real): Fix error code type. Handle possible error
4147 from PBKDF2.
4148
4149 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 Illumos support.
4152
4153 * Makefile.util.def (10_illumos): New script.
4154 * configure.ac: Set COND_HOST_ILLUMOS.
4155 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
4156 Support Illumos calls.
4157 (find_partition_start) [__sun__]: Likewise.
4158 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
4159 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
4160 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
4161 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
4162 device.
4163 * util/grub-probe.c (probe) [__sun__]: Do character check.
4164 * util/grub.d/10_illumos.in: New file.
4165
4166 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4167
4168 Support escaped commas in hostdisk.
4169
4170 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
4171 (find_grub_drive): Use unescape_cmp.
4172 (make_device_name): Escape commas.
4173
4174 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
4177
4178 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
4181 variable.
4182
4183 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 Support trampoline jumps on powerpc.
4186
4187 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
4188 __ia64__ path.
4189 (grub_dl_load_segments): Set mod->sz.
4190 (grub_dl_flush_cache): Flush whole space occupied by module, not just
4191 segments.
4192 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
4193 (jump): Likewise.
4194 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
4195 function.
4196 (trampoline): New struct.
4197 (trampoline_template): New const.
4198 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
4199 * include/grub/dl.h (grub_dl): Add sz element.
4200 [__powerpc__]: Follow __ia64__.
4201 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
4202 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
4203 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
4204 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
4205
4206 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 ZFS crypto support.
4209
4210 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
4211 * grub-core/Makefile.core.def (zfscrypt): New module.
4212 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
4213 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
4214 it. All users updated.
4215 (grub_zfs_decrypt): New var.
4216 (grub_zfs_load_key): Likewise.
4217 (zio_checksum_functions): Add SHA256+MAC.
4218 (zio_checksum_verify): Handle incomplete comparison due to MAC.
4219 (zio_read): Handle encrypted blocks.
4220 (zap_verify): Remove incorrect check.
4221 (fzap_iterate): Handle non-standard fzap.
4222 (zap_iterate): Likewise.
4223 (zap_iterate_u64): New function.
4224 (dnode_get_fullpath): Load keys.
4225 * grub-core/fs/zfs/zfscrypt.c: New file.
4226 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
4227 (grub_crypto_ecb_encrypt): Make input const.
4228 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
4229 (grub_crypto_ecb_encrypt): Make input const.
4230 (GRUB_CIPHER_AES): New macro.
4231 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
4232 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
4233 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
4234 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
4235 prefix. All users updated.
4236 (grub_zfs_add_key): New proto.
4237 (grub_zfs_decrypt): Likewise.
4238 (grub_zfs_load_key): Likewise.
4239 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
4240 * util/grub-fstest.c (options): Add -K option.
4241 (argp_parser): Likewise.
4242
4243 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4244
4245 Support zle compression on ZFS.
4246
4247 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
4248 (decomp_table): Add zle.
4249 * include/grub/zfs/zio.h (zio_compress): Add zle.
4250
4251 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 Support BtrFS embedding.
4254
4255 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
4256 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
4257 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
4258 * util/grub-setup.c (setup): Use fs embedding if available.
4259 Add additional sanity check.
4260
4261 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * util/grub-install.in: Fix condition for config_opt.
4264
4265 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 Support third redundancy strip on raidz3.
4268
4269 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
4270 Return error on singularity. All users updated.
4271 (read_device): Don't stop on 3rd failure on raidz3.
4272
4273 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 Support case-insensitive ZFS subvolumes.
4276
4277 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
4278 All users updated.
4279 (zap_hash): Likewise.
4280 (name_cmp): New function.
4281 (zap_leaf_array_equal): New parameter case_insensitive.
4282 All users updated.
4283 (zap_leaf_lookup): Likewise.
4284 (fzap_lookup): Likewise.
4285 (zap_lookup): Likewise.
4286 (dnode_get_path): New parameter case_insensitive. Retrieve case
4287 sensitiviness of a volume. All users updated.
4288 (dnode_get_fullpath): New parameter case_insensitive.
4289 All users updated.
4290 (grub_zfs_dir): Set info.case_insensitiveness.
4291
4292 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 Support second redundancy strip on raidz(2,3).
4295
4296 * grub-core/fs/zfs/zfs.c (powx): New array.
4297 (powx_inv): Likewise.
4298 (poly): New const.
4299 (xor_out): New function.
4300 (gf_mul): Likewise.
4301 (recovery): Likewise.
4302 (read_device): Use second redundancy strip.
4303
4304 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 Use a power of generator representation of GF(256) multiplication group
4307 to save space time and complexity.
4308
4309 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
4310 (raid6_table2): Likewise.
4311 (powx): New array.
4312 (powx_inv): Likewise.
4313 (poly): New const.
4314 (grub_raid_block_mul): Replace with ...
4315 (grub_raid_block_mulx): ...this.
4316 (grub_raid6_init_table): Rewritten.
4317 (grub_raid6_recover): Use power of generator representation.
4318
4319 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
4322 for the right device.
4323
4324 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
4327 expected by grub-mkimage and it's more clear since there is no implicit
4328 padding.
4329
4330 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
4333 disk.
4334 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4335
4336 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
4337
4338 * util/grub-mkrescue.in: Fix handling xorriso option.
4339
4340 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4341
4342 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
4343 NULL.
4344
4345 2011-11-03 crocket <crockabiscuit@gmail.com>
4346
4347 * util/grub.d/10_linux.in: Add Slackware initrd naming.
4348
4349 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 XZ CRC64 and SHA256 support.
4352
4353 * Makefile.util.def (libgrubmods): Add crc64.c.
4354 * grub-core/Makefile.core.def (crc64): New module.
4355 * grub-core/lib/crc64.c: New file.
4356 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
4357 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
4358 Fix the type.
4359 (MAX_HASH_SIZE): New define.
4360 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
4361 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
4362 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4363 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4364 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
4365 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
4366 Handle non-crc32 hashes.
4367 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
4368 (dec_stream_header): Handle non-crc32 hashes.
4369 (dec_stream_footer): Likewise.
4370 (dec_block_header): Likewise.
4371 (dec_main): Likewise.
4372 (xz_dec_init): Likewise.
4373 (xz_dec_reset): Likewise.
4374 (xz_dec_end): Likewise.
4375 * util/import_gcry.py: Add CRC64 line.
4376
4377 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
4380 as well.
4381
4382 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 Make reiserfs label retrieval similar to other *_label functions.
4385
4386 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
4387 (REISERFS_MAX_LABEL_LENGTH): Removed.
4388 (REISERFS_LABEL_OFFSET): Likewise.
4389 (grub_reiserfs_label): Rewritten.
4390
4391 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
4394 field.
4395
4396 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
4399
4400 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
4403 drive failure on both raidz and raidz2.
4404
4405 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 Fix RAIDZ(2) for >= 5 devices.
4408
4409 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
4410 asize argument. All users updated.
4411
4412 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 Fix RAIDZ(2).
4415
4416 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
4417 (fill_vdev_info_real): Set ashift.
4418 (read_device): Rewrite RAIDZ part based on reverse engineering.
4419
4420 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
4423 don't report potentially unavialiable fields in debug output.
4424 (find_path): Fix double-free and memory leak.
4425
4426 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 Read label on UFS1.
4429
4430 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
4431 (grub_ufs_fs): Always set .label.
4432
4433 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 Use shifts in UFS.
4436
4437 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
4438 (grub_ufs_data): New field log2_blksz.
4439 (grub_ufs_read_file): Use shifts.
4440 (grub_ufs_mount): Check block size and logarithm it.
4441
4442 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
4445 long symlinks.
4446
4447 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 Handle symlinks and long names on tar and cpio.
4450
4451 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
4452 (ATTR_FILE): Likewise.
4453 (ATTR_DIR): Likewise.
4454 (ATTR_LNK): Likewise.
4455 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
4456 (grub_cpio_find_file): Fill mode, handle linkname field as well as
4457 L and K entries.
4458 (grub_cpio_mount): Zero-fill data.
4459 (handle_symlink): New function.
4460 (grub_cpio_dir): Handle symlinks.
4461 (grub_cpio_open): Likewise.
4462 (grub_cpio_close) [MODE_USTAR]: Free linkname.
4463
4464 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4465
4466 Fix iso9660 filename limitations and fix memory leaks.
4467
4468 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
4469 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
4470
4471 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 Fix JFS file name length limitations.
4474
4475 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
4476 (grub_jfs_diropen): Fix maximum filename length.
4477 (grub_jfs_getent): Fix filename length.
4478 (grub_jfs_lookup_symlink): Fix size checks.
4479
4480 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
4483 string.
4484
4485 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 Leverage BFS implementation to read AFS.
4488
4489 * Makefile.util.def (libgrubmods): Add afs.c.
4490 * grub-core/Makefile.core.def (afs): New module
4491 * grub-core/fs/afs.c: New file.
4492 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
4493
4494 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
4497
4498 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4499
4500 * grub-core/fs/bfs.c: Run indent.
4501
4502 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 BFS implementation based on the specification.
4505
4506 * grub-core/fs/bfs.c: New file.
4507 * Makefile.util.def (libgrubmods): Add bfs.c.
4508 * grub-core/Makefile.core.def (bfs): New module.
4509
4510 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * util/grub-fstest.c (cmd_cp): Clarify error message.
4513 (cmd_cmp): Likewise.
4514
4515 2011-10-30 Yves Blusseau <blusseau@zetam.org>
4516
4517 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
4518 and befs_be.
4519
4520 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 Remove afs and befs because of copyright problem.
4523
4524 * grub-core/fs/afs.c: Removed.
4525 * grub-core/fs/afs_be.c: Removed.
4526 * grub-core/fs/befs.c: Removed.
4527 * grub-core/fs/befs_be.c: Removed.
4528 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
4529 * grub-core/Makefile.core.def (afs): Removed.
4530 (afs_be): Likewise.
4531 (befs): Likewise.
4532 (befs_be): Likewise.
4533
4534 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 Prefer rockridge over Joliet.
4537
4538 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
4539 to ...
4540 (set_rockridge): ... here.
4541 (grub_iso9660_mount): Check rockridge on the primary label when
4542 discovering. Ignore Joliet if Rockridge is present.
4543
4544 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4545
4546 Use shifts in nilfs2.
4547
4548 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
4549 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
4550 (grub_nilfs2_palloc_entries_per_group): Replace with ...
4551 (grub_nilfs2_log_palloc_entries_per_group): ... this.
4552 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
4553 (grub_nilfs2_entries_per_block): Replaced with ...
4554 (grub_nilfs2_log_entries_per_block_log): ... this.
4555 (grub_nilfs2_blocks_per_group): Replaced with ...
4556 (grub_nilfs2_blocks_per_group_log): ... this.
4557 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
4558 (grub_nilfs2_blocks_per_desc_block_log): ... this.
4559 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
4560 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
4561 (grub_nilfs2_palloc_entry_offset): Replaced ...
4562 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
4563 (grub_nilfs2_dat_translate): Use shifts.
4564 (grub_nilfs2_read_inode): Likewise.
4565 (GRUB_MOD_INIT): Ensure that logs are correct.
4566
4567 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 Use shifts in minix filesystem.
4570
4571 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
4572 (GRUB_MINIX_ZONE2SECT): Likewise.
4573 (grub_minix_data): Replace block_size with log_block_size.
4574 (grub_minix_read_file): Use shifts.
4575 (grub_minix_mount): Check block size and take a logarithm.
4576
4577 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 Use shifts in squash4.
4580
4581 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
4582 (squash_mount): Check block size and take logarithm.
4583 (direct_read): Use shifts.
4584
4585 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 Correct befs block counting logic.
4588
4589 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
4590 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
4591 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
4592 (grub_afs_read_inode): Use block_shift.
4593 (RANGE_SHIFT): New definition.
4594 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
4595 unexpected conditions, use shifts and appropriate types.
4596 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
4597
4598 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 * grub-core/disk/raid.c (scan_devices): Check partition.
4601 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4602
4603 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 Support BFS (befs) UUID.
4606
4607 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
4608 (grub_afs_small_data_element_header): New struct.
4609 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
4610 (grub_afs_read_attribute) [MODE_BFS]: New function.
4611 (grub_afs_iterate_dir): Allocate for complete inode.
4612 (grub_afs_mount): Likewise.
4613 (grub_afs_uuid) [MODE_BFS]: New function.
4614 (grub_afs_fs) [MODE_BFS]: Add .uuid.
4615
4616 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4617
4618 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
4619 (zfs_unmount): Fix memory leak.
4620
4621 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4622
4623 Support NTFS reparse points.
4624
4625 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
4626 (symlink_descriptor): New struct.
4627 (grub_ntfs_read_symlink): New function.
4628 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
4629 (grub_ntfs_open): Likewise.
4630
4631 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
4634
4635 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 fstest xnu_uuid subcommand.
4638
4639 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
4640 grub-core/commands/xnu_uuid.c.
4641 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
4642 (fstest): Handle xnu_uuid.
4643 (options): Document xnu_uuid.
4644 (argp_parser): Parse xnu_uuid.
4645
4646 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4647
4648 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
4649 -l argument. Add newline at the end if printing.
4650 (GRUB_MOD_INIT): Document -l.
4651
4652 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
4655
4656 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 ZFS multi-device and version 33 support.
4659
4660 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
4661 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
4662 (grub_zfs_data): Add multidev-ice-related fields.
4663 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
4664 (dva_get_offset): Make dva const.
4665 (zfs_fetch_nvlist): New function.
4666 (fill_vdev_info_real): Likewise.
4667 (fill_vdev_info): Likewise.
4668 (check_pool_label): Likewise.
4669 (scan_disk): Likewise.
4670 (scan_devices): Likewise.
4671 (read_device): Likewise.
4672 (read_dva): Likewise.
4673 (zio_read_gang): Use read_dva.
4674 (zio_read_data): Likewise.
4675 (zap_leaf_lookup): Add missing endian conversion.
4676 (zap_verify): Add missing endian conversion. All users updated.
4677 (fzap_lookup): Likewise.
4678 (fzap_iterate): Likewise.
4679 (dnode_get_path): Handle SA bonus.
4680 (nvlist_find_value): Make input const. All users updated.
4681 (unmount_device): New function.
4682 (zfs_unmount): Use unmount_device.
4683 (zfs_mount): Use scan_disk.
4684 (zfs_mtime): New function.
4685 (grub_zfs_open): Handle system attributes.
4686 (fill_fs_info): Likewise.
4687 (grub_zfs_dir): Likewise.
4688 (grub_zfs_fs): Add mtime.
4689 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
4690 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
4691 (SA_MTIME_OFFSET): Likewise.
4692 (SA_SYMLINK_OFFSET): Likewise.
4693 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
4694 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
4695 (fstest): Support zfsinfo.
4696 (argp_parser): Likewise.
4697
4698 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
4701 error.
4702
4703 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 ZFS fixes.
4706
4707 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
4708 sharing the same block. Iterate over correct number of indices.
4709 (dnode_get_path): Handle symlinks correctly.
4710
4711 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
4714
4715 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 Read label on HFS+.
4718
4719 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
4720 (grub_hfsplus_btree_search): Fix types.
4721 (grub_hfsplus_label): Implement.
4722
4723 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
4726
4727 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
4730
4731 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 Fix symlink handling on iso9660.
4734
4735 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
4736 All users updated.
4737 (grub_iso9660_susp_iterate): Accept zero-size iterate.
4738 (grub_iso9660_read_symlink): Moved most of code ...
4739 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
4740
4741 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4744 Use union to avoid breaking strict-aliasing rules.
4745
4746 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 Support multi-extent iso files.
4749
4750 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
4751 Add node.
4752 (grub_fshelp_node): Revamp. All users updated.
4753 (FLAG_*): New enum.
4754 (read_node): New function.
4755 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
4756 All users updated.
4757 (grub_iso9660_mount): Don't attempt to read sua when there is none.
4758 (get_node_size): New function.
4759 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
4760 entries.
4761 Fix memory leak on . and ..
4762 (grub_iso9660_read): Use read_node.
4763 (grub_iso9660_close): Free node.
4764
4765 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 Fix tar 4G limit and handle paths containing dot.
4768
4769 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
4770 (canonicalize): New function.
4771 (grub_cpio_find_file): Use canonicalize. Store offs in
4772 grub_disk_addr_t.
4773 (grub_cpio_dir): Use grub_disk_addr_t.
4774 (grub_cpio_open): Likewise.
4775
4776 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4777
4778 Fix handling of uncompressed blocks on squashfs and break 4G limit.
4779
4780 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
4781 unused flags.
4782 (grub_squash_inode): Add long_file and block_size.
4783 (grub_squash_cache_inode): New struct.
4784 (grub_squash_dirent): Make types into enum.
4785 (SQUASH_TYPE_LONG_REGULAR): New type.
4786 (grub_squash_frag_desc): Add field size.
4787 (SQUASH_BLOCK_FLAGS): New enum.
4788 (grub_squash_data): Use grub_squash_cache_inode.
4789 (grub_fshelp_node): Make ino_chunk 64-bit.
4790 (read_chunk): Minor argument change. All users updated.
4791 (squash_mount): Use correct le_to_cpu.
4792 (grub_squash_open): Handle LONG_REGULAR.
4793 (direct_read): New function.
4794 (grub_squash_read_data): Handle blocks correctly.
4795
4796 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
4799
4800 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
4803
4804 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 Fix 2G limit on ZFS.
4807
4808 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
4809 types.
4810 (uberblock_verify): Likewise.
4811 (dmu_read): Likewise.
4812 (grub_zfs_read): Likewise. Remove invalid cast.
4813
4814 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
4817 (grub_jfs_blkno): Fix incorrect shift.
4818 (grub_jfs_read_file): Use more appropriate types.
4819
4820 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 Support triple indirect on minix2 and minix3.
4823
4824 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
4825 Declare triple_indir_zone.
4826 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
4827 indirect.
4828
4829 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 Minix FS fixes.
4832
4833 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
4834 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
4835 Rename ctime to mtime. All users updated.
4836 (grub_minix_get_file_block): Fix types and double indirect computations.
4837
4838 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4839
4840 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
4841 if no label is found.
4842 (grub_fat_iterate_dir): Fix file size type.
4843 (grub_fat_iterate_dir): Likewise.
4844
4845 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
4848 save some space.
4849 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
4850 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
4851
4852 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
4855
4856 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 * util/import_gcry.py: Accept space between # and include.
4859
4860 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
4863
4864 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 Fine grainely disable warnings on lexer. Remove Wno-error on it.
4867
4868 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
4869 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
4870 yylex_strncpy.
4871 * grub-core/script/yylex.l: Add fine-grained #pragma.
4872
4873 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
4876 New inline function.
4877 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
4878 Likewise.
4879 (memset) [GRUB_UTIL]: Likewise.
4880 (memcmp) [GRUB_UTIL]: Likewise.
4881
4882 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
4885 inline function rather than a define.
4886
4887 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * util/grub-setup.c: Add missing include.
4890
4891 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * util/ieee1275/grub-ofpathname.c: Add missing include.
4894
4895 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4896
4897 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
4898 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
4899 Likewise.
4900
4901 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
4904 grub_memcmp usage.
4905
4906 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * util/grub-install.in: Add datarootdir as per automake manual
4909 suggestion.
4910 * util/grub-mknetdir.in: Likewise.
4911
4912 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4913
4914 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
4915 suggestion.
4916 * util/grub.d/10_kfreebsd.in: Likewise.
4917 * util/grub.d/10_linux.in: Likewise.
4918 * util/grub.d/10_netbsd.in: Likewise.
4919 * util/grub.d/10_windows.in: Likewise.
4920 * util/grub.d/20_linux_xen.in: Likewise.
4921
4922 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 Remove redundant grub_kernel_image_size.
4925
4926 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
4927 _edata and _start.
4928 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
4929 the small code. It moves it only by few bytes but simplifies the code.
4930 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
4931 _start.
4932 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
4933 (grub_kernel_image_size): Removed.
4934 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
4935 (grub_kernel_image_size): Removed.
4936 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
4937 compiled with Apple toolchain.
4938 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
4939 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
4940 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
4941 (grub_total_module_size): Likewise.
4942 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
4943 Removed.
4944 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
4945 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
4946 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
4947 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
4948 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
4949 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
4950 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
4951 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
4952 Removed.
4953 (grub_total_module_size): Removed.
4954 * util/grub-mkimage.c (image_target_desc): Remove image_size.
4955 (image_targets): Likewise.
4956 Set .compressed_size to no field on sparc.
4957 (generate_image): Remove kernel_image_size handling.
4958
4959 2011-10-19 Szymon Janc <szymon@janc.net.pl>
4960
4961 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
4962 NULL pointer dereference.
4963
4964 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4965
4966 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
4967 done with a dedicated section.
4968
4969 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
4970 Ensure the correct position of boot_path.
4971 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
4972 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
4973 other fields.
4974 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
4975 * include/grub/boot.h: Removed. All references removed.
4976 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
4977 Removed.
4978 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
4979
4980 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4981
4982 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
4983 name.
4984
4985 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
4988
4989 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
4992 Don't add the bogus brackets.
4993
4994 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 ExFAT support.
4997
4998 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
4999 * grub-core/Makefile.core.def (exfat): New module.
5000 * grub-core/fs/exfat.c: New file.
5001 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
5002 (GRUB_FAT_ATTR_*): Make into an enum.
5003 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
5004 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
5005 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
5006 (GRUB_FAT_MAXFILE): Removed.
5007 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
5008 (grub_current_fat_bpb_t): New type.
5009 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
5010 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
5011 (grub_fat_dir_node_t): New type.
5012 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
5013 (fat_log2) [MODE_EXFAT]: Removed.
5014 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
5015 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
5016 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
5017 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
5018 (grub_fat_label) [MODE_EXFAT]: New function.
5019 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
5020 reserved_first_sector to 0.
5021
5022 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 Move grub_reboot out of the kernel.
5025
5026 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
5027 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
5028 * grub-core/lib/efi/reboot.c: ... here.
5029 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
5030 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
5031 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
5032 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
5033 * grub-core/lib/i386/reboot_trampoline.S: ... here.
5034 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
5035 * grub-core/lib/ieee1275/reboot.c: ... here.
5036 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
5037 * grub-core/lib/mips/arc/reboot.c: ... here.
5038 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
5039 * grub-core/lib/mips/loongson/reboot.c: ...here.
5040 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
5041 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
5042 * include/grub/emu/misc.h (grub_reboot): New function declaration.
5043 * include/grub/i386/reboot.h: New file.
5044 * include/grub/mips/loongson/ec.h: Fix includes.
5045 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
5046 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
5047 * grub-core/lib/i386/reboot.c: New file.
5048
5049 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 Make grub_prefix into module to fix the arbitrary limit and save
5052 some space.
5053
5054 * grub-core/kern/emu/main.c (grub_prefix): Removed.
5055 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
5056 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
5057 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
5058 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
5059 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
5060 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
5061 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
5062 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
5063 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
5064 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
5065 * include/grub/ia64/efi/kernel.h: Removed.
5066 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
5067 (grub_prefix): Removed.
5068 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
5069 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
5070 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
5071 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
5072 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
5073 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
5074 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
5075 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
5076 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
5077 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
5078 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
5079 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
5080 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5081 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5082 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
5083 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
5084 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
5085 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5086 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
5087 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
5088 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
5089 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
5090 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
5091 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
5092 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
5093 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
5094 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
5095 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
5096 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
5097 from module.
5098 * util/grub-mkimage.c (image_target_desc): Removed prefix and
5099 prefix_end.
5100 (image_targets): Likewise.
5101 (generate_image): Put prefix as a module.
5102
5103 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5104
5105 Replace grub_module_iterate with FOR_MODULES.
5106
5107 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
5108 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
5109 (grub_efi_modules_addr): ...this.
5110 * grub-core/kern/efi/init.c (grub_modbase): New variable.
5111 (grub_efi_init): Set grub_modbase.
5112 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
5113 (grub_modbase): New variable.
5114 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
5115 (grub_modbase): New variable.
5116 (grub_machine_init): Set grub_modbase.
5117 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
5118 (grub_modbase): New variable.
5119 (grub_machine_init): Set grub_modbase.
5120 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
5121 (grub_modbase): New variable.
5122 (grub_machine_init): Set grub_modbase.
5123 * grub-core/kern/main.c (grub_module_iterate): Remove.
5124 (grub_modules_get_end): Use grub_modbase.
5125 (grub_load_modules): Use FOR_MODULES.
5126 (grub_load_config): Likewise.
5127 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
5128 (grub_modbase): New variable.
5129 (grub_machine_init): Set grub_modbase.
5130 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
5131 (grub_modbase): New variable.
5132 (grub_machine_init): Set grub_modbase.
5133 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
5134 Removed.
5135 (grub_modbase): New variable.
5136 (grub_machine_init): Set grub_modbase.
5137 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
5138 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
5139 (grub_module_iterate): Likewise.
5140 (grub_modbase): New variable declaration.
5141 (FOR_MODULES): New macro.
5142
5143 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 * configure.ac: Check for __ctzdi2 and __ctzsi2.
5146 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
5147
5148 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 Fix few obvious type discrepancies.
5151
5152 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
5153 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
5154 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
5155 variable.
5156 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
5157 and connected types.
5158 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
5159 offset.
5160 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
5161 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
5162 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
5163 and connected types.
5164
5165 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 Fix python 3.x incompatibilities.
5168
5169 * gentpl.py: Put brackets around print strings.
5170 * util/import_gcry.py: Open explicitly as utf-8.
5171 Use in instead of has_key.
5172
5173 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
5176 (GRUB_XFS_INO_AGBITS): Make into inline function.
5177 (GRUB_XFS_INO_INOINAG): Likewise.
5178 (GRUB_XFS_INO_AG): Likewise.
5179 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
5180 (GRUB_XFS_EXTENT_OFFSET): Likewise.
5181 (GRUB_XFS_EXTENT_BLOCK): Likewise.
5182 (GRUB_XFS_EXTENT_SIZE): Likewise.
5183 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
5184 (GRUB_XFS_NEXT_DIRENT): Likewise.
5185 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
5186 (grub_xfs_read_file): Fix offset type.
5187
5188 2011-10-15 Robert Millan <rmh@gnu.org>
5189
5190 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
5191
5192 2011-10-15 Robert Millan <rmh@gnu.org>
5193
5194 Fix build problem on FreeBSD and GNU/kFreeBSD.
5195
5196 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
5197
5198 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
5201
5202 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
5203 types.
5204 (grub_hfsplus_btree_recoffset): Likewise.
5205 (grub_hfsplus_btree_recptr): Likewise.
5206 (grub_hfsplus_find_block): Likewise.
5207 (grub_hfsplus_btree_search): Likewise.
5208 (grub_hfsplus_read_block): Likewise.
5209 (grub_hfsplus_read_file): Likewise.
5210 (grub_hfsplus_mount): Likewise.
5211 (grub_hfsplus_btree_iterate_node): Likewise.
5212 (grub_hfsplus_btree_search): Likewise.
5213 (grub_hfsplus_iterate_dir): Likewise.
5214 (grub_hfsplus_read): A small code simplification.
5215
5216 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5217
5218 * grub-core/kern/emu/hostdisk.c
5219 (convert_system_partition_to_system_disk): Don't assume that children
5220 of mapper nodes are mapper nodes.
5221
5222 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
5225 * include/grub/misc.h (grub_isxdigit): New function.
5226 * grub-core/video/colors.c (my_isxdigit): Removed. All users
5227 switched to grub_isxdigit.
5228 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
5229 number starting with a letter.
5230
5231 2011-10-09 Robert Millan <rmh@gnu.org>
5232
5233 LVM support for FreeBSD and GNU/kFreeBSD.
5234
5235 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
5236 GNU/kFreeBSD.
5237 (LVM_DEV_MAPPER_STRING): Move from here ...
5238 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
5239 * util/getroot.c: Include `<grub/util/lvm.h>'.
5240 (grub_util_get_dev_abstraction): Enable
5241 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
5242 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
5243 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
5244 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
5245 support it.
5246 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
5247 GNU/kFreeBSD.
5248 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
5249 when LVM abstraction is required for ${GRUB_DEVICE}.
5250
5251 2011-10-06 Szymon Janc <szymon@janc.net.pl>
5252
5253 Add support for LZO compression in GRUB:
5254 - import of minilzo library,
5255 - LZO decompression for btrfs,
5256 - lzop files decompression.
5257
5258 * grub-core/io/lzopio.c: New file.
5259 * grub-core/lib/adler32.c: Likewise.
5260 * grub-core/lib/minilzo/lzoconf.h: Likewise.
5261 * grub-core/lib/minilzo/lzodefs.h: Likewise.
5262 * grub-core/lib/minilzo/minilzo.c: Likewise.
5263 * grub-core/lib/minilzo/minilzo.h: Likewise.
5264 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
5265 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
5266 grub-core/lib/minilzo/minilzo.c to common.
5267 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
5268 cflags in cppflags.
5269 * grub-core/Makefile.core.def (btrfs): Likewise.
5270 * grub-core/Makefile.core.def (lzopio): New module.
5271 (adler32): Likewise.
5272 * grub-core/fs/btrfs.c: Include minilzo.h.
5273 (GRUB_BTRFS_COMPRESSION_LZO): New define.
5274 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
5275 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
5276 (grub_btrfs_lzo_decompress): New function.
5277 (grub_btrfs_extent_read): Add support for LZO compression type.
5278 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
5279 (GRUB_USHRT_MAX): Likewise.
5280 (GRUB_UINT_MAX): Likewise.
5281 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
5282 (UINT_MAX): Likewise.
5283 (CHAR_BIT): Likewise.
5284 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
5285 grub-core/lib/posix_wrap/limits.h
5286 (UCHAR_MAX): Likewise.
5287 * include/grub/file.h (grub_file_filter_id): New compression filter
5288 GRUB_FILE_FILTER_LZOPIO.
5289 * include/grub/file.h (grub_file_filter_id): Set
5290 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
5291 * include/grub/types.h (grub_get_unaligned16): New function.
5292 (grub_get_unaligned32): Likewise.
5293 (grub_get_unaligned64): Likewise.
5294 * util/import_gcry.py (cryptolist): Add adler32.
5295
5296 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
5299 in perspective decreases the complexity of build system and fixes
5300 compilation right now.
5301
5302 2011-10-01 Ales Nesrsta <starous@volny.cz>
5303
5304 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
5305 (fixed problem related to using UHCI with coreboot).
5306
5307 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
5308
5309 * gentpl.py: Use Autogen macros so that the output template file
5310 (Makefile.tpl) size is reduced.
5311
5312 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
5313
5314 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
5315 extra_dist.
5316
5317 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5318
5319 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
5320 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
5321
5322 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5323
5324 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
5325 _fullpath.
5326
5327 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5328
5329 Remove extra declaration of sleep for mingw32.
5330
5331 * util/misc.c (sleep) [__MINGW32__]: Removed.
5332 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
5333
5334 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5335
5336 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
5337 type and packname.
5338 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
5339 Resurrected.
5340 (NETBSD_BTINFO_BOOTWEDGE): New definition.
5341 (grub_netbsd_btinfo_bootwedge): New struct.
5342 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5343 New function.
5344 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
5345
5346 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
5347
5348 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
5349 loader.
5350
5351 2011-09-28 Andreas Born <futur.andy@googlemail.com>
5352
5353 Fix incorrect identifiers in bash-completion.
5354
5355 * util/bash-completion.d/grub-completion.bash.in
5356 (_grub_mkpasswd-pbkdf2): Rename to ...
5357 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
5358 (_grub_script-check): Rename to ...
5359 (_grub_script_check): ... this. All users updated.
5360
5361 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
5364 Return 0 if disk isn't biosdisk.
5365
5366 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5367
5368 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
5369 on NetBSD.
5370 * Makefile.util.def (grub-fstest): Likewise.
5371
5372 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5373
5374 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
5375 Get sector size from disk label.
5376
5377 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
5378
5379 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
5380 */README* as well as README*.
5381 Reported by: Axel Beckert.
5382
5383 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5384
5385 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
5386 case of less than 256 MiB of RAM.
5387
5388 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 * grub-core/commands/wildcard.c (make_regex): Handle @.
5391
5392 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * util/grub-install.in: Move cryptodisk logic to appropriate place.
5395
5396 2011-08-21 Szymon Janc <szymon@janc.net.pl>
5397
5398 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
5399 AC_LANG_CONFTEST macros.
5400
5401 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5402
5403 Add grub-fstest option to uncompress data for commands.
5404
5405 * util/grub-fstest.c (uncompress): New var.
5406 (options): New option -u.
5407
5408 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5409
5410 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5411 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
5412
5413 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5414
5415 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
5416 file type was not recognized correctly (not gzip or corrupted).
5417
5418 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5419
5420 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
5421 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
5422
5423 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5424
5425 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
5426 loongson.
5427 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5428 video_radeon_fuloong2e.
5429 * grub-core/video/radeon_fuloong2e.c: New file.
5430 * include/grub/video.h (grub_video_id_t): Add new ID
5431 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
5432
5433 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
5436 define.
5437 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
5438 that PRID matches the detected subplatform and reset the subplatform
5439 if it doesn't.
5440
5441 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5442
5443 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
5444
5445 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 Fix PCI iterating on functions >= 4.
5448
5449 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
5450 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
5451 Removed.
5452 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
5453 (grub_pci_read): Fix bitmask.
5454 (grub_pci_read_word): Likewise.
5455 (grub_pci_read_byte): Likewise.
5456 (grub_pci_write): Likewise.
5457 (grub_pci_write_word): Likewise.
5458 (grub_pci_write_byte): Likewise.
5459
5460 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
5463 can still be specified in TARGET_CFLAGS)
5464
5465 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5466
5467 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
5468
5469 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
5470 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
5471 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
5472 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
5473 (FULOONG): Rename to ...
5474 (FULOONG2F): ... this. All users updated.
5475 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
5476 (machtype_fuloong2f_str): ... this.
5477 (machtype_fuloong2e_str): New string.
5478 Check for machtype_fuloong2e_str.
5479 * grub-core/loader/mips/linux.c (loongson_machtypes)
5480 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
5481 * grub-core/term/serial.c (loongson_defserial)
5482 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
5483 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
5484 loongson_defserial.
5485 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
5486 Rename to ...
5487 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
5488 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
5489 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
5490 to IMAGE_FULOONG2F_FLASH. All users updated.
5491 (image_targets): Rename images.
5492 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
5493
5494 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5495
5496 Make enable of disk cache statistics code configurable.
5497
5498 * configure.ac: --enable-cache-stats added.
5499 * config.h.in (DISK_CACHE_STATS): New define.
5500 * grub-core/Makefile.core.def (cacheinfo): New command.
5501 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
5502 * grub-core/commands/cacheinfo.c: New file.
5503 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
5504 moved to cacheinfo.c.
5505 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
5506 debug code.
5507 * include/grub/disk.h: Likewise.
5508
5509 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5510
5511 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
5512 * grub-core/Makefile.am: Likewise.
5513
5514 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5515
5516 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
5517 non-zero pull.
5518
5519 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5520
5521 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
5522 All users updated.
5523 (grub_jfs_lookup_symlink): Use correct starting inode.
5524
5525 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 * util/grub-setup.c (main): Add missing gcry initialisation.
5528
5529 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 Don't accept text modes on EFI when booting Linux.
5532
5533 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
5534 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
5535
5536 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
5537 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5538
5539 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
5540 use of "/path/.." as in grub-install for EFI as well as handling
5541 symlinks correctly.
5542 Fixes Debian bug #637768.
5543
5544 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5545
5546 * util/grub-probe.c: Remove duplicate #include.
5547
5548 2011-08-10 Robert Millan <rmh@gnu.org>
5549
5550 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
5551
5552 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
5553 function.
5554 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
5555 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
5556
5557 2011-08-03 Robert Millan <rmh@gnu.org>
5558
5559 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
5560 la_array as packed.
5561 Reported by: Zachary Bedell
5562
5563 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5564
5565 * configure.ac: The Loongson port requires grub-mkfont due to its
5566 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
5567 be built.
5568
5569 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5570
5571 * util/grub-install.in: Don't source grub-mkconfig_lib until after
5572 processing arguments (otherwise help2man fails when GRUB has not yet
5573 been installed).
5574
5575 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5576
5577 New script grub-mkstandalone.
5578
5579 * Makefile.util.def (grub-mkstandalone): New script.
5580 * docs/man/grub-mkstandalone.h2m: New file.
5581 * util/grub-mkstandalone.in: Likewise.
5582
5583 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 Support ATA disks with 4K sectors.
5586
5587 * include/grub/ata.h (grub_ata): New member log_sector_size.
5588 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
5589 (grub_ata_identify): Read sector size.
5590 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
5591
5592 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * util/grub-install.in: Don't use uhci outside of x86.
5595
5596 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 * util/grub-mkrescue.in: Add missing quotes.
5599
5600 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
5603 dereference.
5604
5605 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
5608
5609 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * include/grub/video.h: add missing EXPORT_FUND on
5612 grub_video_edid_checksum and grub_video_edid_preferred_mode.
5613
5614 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5615
5616 * include/grub/mips/kernel.h: Fix define conflict.
5617
5618 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
5621 all four ways.
5622
5623 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
5624
5625 Preferred resolution detection for VBE.
5626
5627 * grub-core/video/video.c (grub_video_edid_checksum): New function.
5628 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
5629 the Flat Panel extension, in line with the X.org VESA driver.
5630 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
5631 New function.
5632 (grub_vbe_bios_get_ddc_capabilities): Likewise.
5633 (grub_vbe_bios_read_edid): Likewise.
5634 (grub_vbe_get_preferred_mode): Likewise.
5635 (grub_video_vbe_setup): When the mode is "auto", try to get the
5636 preferred mode from VBE, and use the largest mode that is no larger
5637 than the preferred mode (some BIOSes expose a preferred mode that is
5638 not in their mode list!). If this fails, fall back to 640x480 as a
5639 safe conservative choice.
5640 (grub_video_vbe_get_edid): New function.
5641 (grub_video_vbe_adapter): Add get_edid.
5642 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
5643 (struct grub_video_adapter): Add get_edid.
5644 (grub_video_edid_checksum): Add prototype.
5645 (grub_video_edid_preferred_mode): Likewise.
5646 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
5647 structure.
5648
5649 * grub-core/commands/videoinfo.c (print_edid): New function.
5650 (grub_cmd_videoinfo): Print EDID if available.
5651
5652 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
5653 is more appropriate on a wider range of platforms than 640x480.
5654 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
5655 documentation.
5656
5657 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5658
5659 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
5660
5661 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * po/POTFILES.in: Regenerate.
5664
5665 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5666
5667 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
5668 incorrect memory usage.
5669
5670 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5671
5672 * util/grub-install.in: Source grub-mkconfig_lib.
5673
5674 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5675
5676 Remove getroot.c from core on emu platform.
5677
5678 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
5679 kern/emu/raid.c.
5680 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
5681 useless.
5682 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
5683 * util/getroot.c (get_win32_path): ... here.
5684 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
5685 * util/getroot.c (fini_libzfs): ... here.
5686 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
5687 * util/getroot.c (grub_get_libzfs_handle): ... here.
5688 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
5689 Moved from here...
5690 * util/getroot.c (grub_find_zpool_from_dir): ... here.
5691 * grub-core/kern/emu/misc.c
5692 (grub_make_system_path_relative_to_its_root): Moved from here...
5693 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
5694 * grub-core/kern/emu/getroot.c: Moved from here ...
5695 * util/getroot.c: ... here. All users updated.
5696 * grub-core/kern/emu/raid.c: Moved from here ...
5697 * util/raid.c: ... here. All users updated.
5698
5699 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5700
5701 * po/POTFILES.in: Regenerate.
5702
5703 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 Fix compilation on GNU/Linux.
5706
5707 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
5708 Disable geli.
5709 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
5710 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
5711 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
5712
5713 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5714 2011-07-07 Michael Gorven <michael@gorven.za.net>
5715 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
5716
5717 LUKS and GELI support.
5718
5719 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
5720 grub-core/disk/luks.c, grub-core/disk/geli.c,
5721 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
5722 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
5723 grub-core/lib/arg.c.
5724 (libgrubmods.a): Remove gcrypts cflags and cppflags.
5725 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
5726 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
5727 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
5728 (grub-bin2h): Add libgcry.a.
5729 (grub-mkimage): Likewise.
5730 (grub-mkrelpath): Likewise.
5731 (grub-script-check): Likewise.
5732 (grub-editenv): Likewise.
5733 (grub-mkpasswd-pbkdf2): Likewise.
5734 (grub-pe2elf): Likewise.
5735 (grub-fstest): Likewise.
5736 (grub-mkfont): Likewise.
5737 (grub-mkdevicemap): Likewise.
5738 (grub-probe): Likewise.
5739 (grub-ofpath): Likewise.
5740 (grub-mklayout): Likewise.
5741 (example_unit_test): Likewise.
5742 (grub-menulst2cfg): Likewise.
5743 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
5744 * grub-core/Makefile.core.def (cryptodisk): New module.
5745 (luks): Likewise.
5746 (geli): Likewise.
5747 * grub-core/disk/AFSplitter.c: New file.
5748 * grub-core/disk/cryptodisk.c: Likewise.
5749 * grub-core/disk/geli.c: Likewise.
5750 * grub-core/disk/luks.c: Likewise.
5751 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
5752 grub_util_is_lvm.
5753 (grub_util_get_dm_abstraction): New function.
5754 (grub_util_follow_gpart_up): Likewise.
5755 (grub_util_get_geom_abstraction): Likewise.
5756 (grub_util_get_dev_abstraction): Use new functions.
5757 (grub_util_pull_device): Pull GELI and LUKS.
5758 (grub_util_get_grub_dev): Handle LUKS and GELI.
5759 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
5760 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
5761 (follow_geom_up): Removed.
5762 (grub_util_fd_seek): New function.
5763 (open_device): Use grub_util_fd_seek.
5764 (nread): Rename to ..
5765 (grub_util_fd_read): ... this. All users updated.
5766 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
5767 (grub_crypto_cbc_decrypt): Likewise.
5768 (grub_crypto_hmac_write): Likewise.
5769 (grub_crypto_hmac_buffer): Likewise.
5770 (grub_password_get): Extend to util.
5771 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
5772 New member modname.
5773 (gcry_md_spec) [GRUB_UTIL]: Likewise.
5774 * include/grub/cryptodisk.h: New file.
5775 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
5776 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
5777 LUKS and GELI.
5778 (grub_util_follow_gpart_up): New proto.
5779 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
5780 (grub_util_fd_read): Likewise.
5781 (grub_cryptodisk_cheat_mount): Likewise.
5782 (grub_util_cryptodisk_print_uuid): Likewise.
5783 (grub_util_get_fd_sectors): Likewise.
5784 * util/grub-fstest.c (mount_crypt): New var.
5785 (fstest): Mount crypto if requested.
5786 (options): New option -C.
5787 (argp_parser): Parse -C.
5788 (main): Init and fini gcry.
5789 * util/grub-install.in: Support cryptodisk install.
5790 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
5791 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
5792 cryptodisk.
5793 (prepare_grub_to_access_device): Likewise.
5794 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
5795 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
5796 (probe_cryptodisk_uuid): New function.
5797 (probe_abstraction): Likewise.
5798 (probe): Use new functions.
5799 * util/import_gcry.py: Create Makefile.utilgcry.def.
5800 Add modname member.
5801
5802 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5803
5804 Lazy device scanning.
5805
5806 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
5807 (grub-setup): Remove util/raid.c.
5808 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
5809 * grub-core/disk/lvm.c (scan_depth): New variable.
5810 (grub_lvm_iterate): Rescan if necessary.
5811 (find_lv): New function based on grub_lvm_open.
5812 (grub_lvm_open): Use find_lv. Rescan on error.
5813 (is_node_readable): New function.
5814 (is_lv_readable): Likewise.
5815 (grub_lvm_scan_device): Skip already found disks.
5816 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
5817 Stop if searched device is found and readable.
5818 * grub-core/disk/raid.c (inscnt): New variable.
5819 (scan_depth): Likewise.
5820 (scan_devices): New function based on grub_raid_register. Abort if
5821 looked for device is found.
5822 (grub_raid_iterate): Rescan if needed.
5823 (find_array): NEw function based on -grub_raid_open.
5824 (grub_raid_open): Use find_array and rescan.
5825 (insert_array): Set became_readable_at.
5826 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
5827 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
5828 New function.
5829 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
5830 (grub_util_pull_device): New function.
5831 (grub_util_get_grub_dev): Call grub_util_pull_device.
5832 * util/raid.c: Moved to ..
5833 * grub-core/kern/emu/raid.c: ... here.
5834 (grub_util_raid_getmembers): New parameter "bootable".
5835 All users updated. Support 1.x.
5836 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
5837 All users updated.
5838 * include/grub/disk.h (grub_disk_pull_t): New enum.
5839 (grub_disk_dev): Change iterate prototype.
5840 All users updated.
5841 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
5842 New proto.
5843 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
5844 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
5845 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
5846 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
5847 All users updated.
5848 * include/grub/util/raid.h: Removed.
5849
5850 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * po/POTFILES.in: Regenerate.
5853
5854 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 Unify sparc init with other ieee1275.
5857
5858 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
5859 instead of kern/sparc64/ieee1275/init.c.
5860 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
5861 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
5862 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
5863 grub/machine/kernel.h.
5864 (grub_ieee1275_original_stack) [__sparc__]: New variable.
5865 (grub_claim_heap) [__sparc__]: Use sparc version.
5866 (grub_machine_init): Moved args parsing to
5867 (grub_parse_cmdline): ...this.
5868 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
5869 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
5870 New definition.
5871 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
5872
5873 Move BOOTP to separate file.
5874
5875 * grub-core/Makefile.core.def (net): Add net/bootp.c.
5876 * grub-core/net/net.c: Move all BOOTP functions to
5877 * grub-core/net/bootp.c: ... here.
5878
5879 Use frame interface on PXE.
5880
5881 * grub-core/Makefile.core.def (pxecmd): Removed.
5882 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
5883 * grub-core/commands/i386/pc/pxecmd.c: Removed.
5884 * grub-core/i386/pc/pxe.c: Moved from here ...
5885 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
5886 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
5887 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
5888
5889 EFI network support.
5890
5891 * grub-core/Makefile.core.def (efinet): New module.
5892 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
5893 here...
5894 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
5895 All users updated.
5896 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
5897 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
5898 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
5899 * grub-core/net/drivers/efi/efinet.c: New file.
5900 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
5901 (grub_efi_net_config): New extern var.
5902
5903 Various cleanups and bugfixes.
5904
5905 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
5906 error.
5907 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
5908 disk declared as partition.
5909 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
5910 leak on failure.
5911 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
5912 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
5913 (grub_debug_zalloc): Likewise.
5914 (grub_debug_realloc): Likewise.
5915 (grub_debug_memalign): Likewise.
5916 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
5917 Check that target is IPv4.
5918 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
5919 local-mac-address as fallback.
5920 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
5921 memory leak.
5922 * grub-core/net/ip.c (ipchksum): Rename to ...
5923 (grub_net_ip_chksum): ... this. All users updated.
5924 (grub_net_recv_ip_packets): Special handling for DHCP.
5925 * util/grub-mkimage.c (generate_image): Zero-out aout header.
5926
5927 Unify prefix handling
5928
5929 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
5930 (grub_machine_get_bootlocation): ... this.
5931 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
5932 (grub_machine_get_bootlocation): ... this.
5933 (grub_prefix): New variable.
5934 (prefix): Removed.
5935 (root_dev): New variable.
5936 (dir): Likewise.
5937 (main): Use new variables.
5938 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
5939 Revamped into ...
5940 (grub_machine_get_bootlocation): ... this.
5941 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
5942 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
5943 (grub_machine_get_bootlocation): ... this.
5944 (grub_machine_set_prefix): Removed.
5945 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
5946 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
5947 Revamped into ...
5948 (grub_machine_get_bootlocation): ... this.
5949 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
5950 (grub_set_prefix_and_root): ... this. All users updated.
5951 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
5952 Revamped into ...
5953 (grub_machine_get_bootlocation): ... this.
5954 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
5955 (grub_machine_get_bootlocation): New proto.
5956 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
5957
5958 Less intrusive and more reliable seek on network implementation.
5959
5960 * grub-core/kern/file.c (grub_file_net_seek): Removed.
5961 (grub_file_seek): Don't call grub_file_net_seek.
5962 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
5963 (grub_net_fs_read_real): .. this.
5964 (grub_net_seek_real): Use net->offset.
5965 (grub_net_fs_read): Seek if necessary.
5966
5967 Unify IEEE1275 netwotk config with the other platforms.
5968
5969 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
5970 New variable.
5971 (grub_machine_get_bootlocation): Support network.
5972 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
5973 Support type and device parsing.
5974 (grub_ieee1275_get_device_type): New function.
5975 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
5976 into ...
5977 (grub_ieee1275_net_config_real): ... this.
5978 (grub_ofnet_probecards): Removed.
5979 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
5980 * include/grub/ieee1275/ofnet.h: Removed.
5981 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
5982 extern var.
5983 (grub_ieee1275_get_device_type): New function.
5984
5985 Unify network device closing across platforms and make more robust.
5986
5987 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
5988 grub_grubnet_fini.
5989 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
5990 already.
5991 * grub-core/net/net.c (grub_net_network_level_interface_register):
5992 Update num_ifaces.
5993 (grub_net_card_unregister): Close all interfaces.
5994 (receive_packets): Don't poll if no iterfaces are registered.
5995 Open if necessary.
5996 (grub_net_fini_hw): New function.
5997 (grub_net_restore_hw): Likewise.
5998 (fini_hnd): New variable.
5999 (GRUB_MOD_INIT): Register preboot hook.
6000 (GRUB_MOD_FINI): Run and unregister preboot hook.
6001
6002 Poll network cards when idle.
6003
6004 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
6005 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
6006 * grub-core/net/net.c (receive_packets): Save last poll time.
6007 (grub_net_poll_cards_idle_real): New function.
6008 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
6009 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
6010 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
6011
6012 Rename ofnet interfaces.
6013
6014 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
6015 (grub_ofnet_findcards): Use ofnet_%s names.
6016
6017 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
6018
6019 Cleanup socket opening.
6020
6021 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
6022 (grub_net_fs_close): Likewise.
6023 (grub_net_fs_read_real): Use eof member.
6024 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
6025 (+grub_net_udp_close): New inline function.
6026
6027 * include/grub/net/tftp.h: Moved to the top of ...
6028 * grub-core/net/tftp.c: ... here.
6029 * include/grub/net/ip.h: Moved mostly to the top of ...
6030 * grub-core/net/ip.c: ... here.
6031 * include/grub/net/ethernet.h: Moved mostly to the top of ...
6032 * grub-core/net/ethernet.c: ... here.
6033
6034 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
6035
6036 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
6037 FS name.
6038
6039 * include/grub/net/ip.h (ipv4_ini): Removed.
6040 (ipv4_fini): Likewise.
6041
6042 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
6043 (grub_net_send_ip_packets): Likewise.
6044
6045 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6046
6047 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
6048 grub_read_cmos prototype.
6049
6050 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 VGA text support in qemu-mips
6053
6054 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
6055 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
6056 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
6057 text.
6058 * grub-core/kern/i386/qemu/init.c: Renamed to ...
6059 * grub-core/kern/vga_init.c: ... this.
6060 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
6061 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
6062 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
6063 Adjust.
6064 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
6065 GRUB_MACHINE_PCI_IO_BASE.
6066
6067 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6068
6069 MIPS qemu flash support.
6070
6071 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
6072 magic.
6073 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
6074 (grub_machine_init): Probe memory if its size isn't known.
6075 * util/grub-mkimage.c (image_targets): Add flash targets.
6076 (generate_image): Handle flash targets.
6077
6078 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 MIPS qemu at_keyboard support.
6081
6082 * gentpl.py (videoinkernel): Add qemu-mips.
6083 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
6084 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
6085 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
6086 modules.
6087 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
6088 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
6089 * grub-core/term/serial.c (grub_serial_register)
6090 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
6091
6092 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 CMOS support on sparc.
6095
6096 * gentpl.py (cmos): Add powerpc and sparc.
6097 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
6098 powerpc and sparc.
6099 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
6100 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
6101 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
6102 grub_set_datetime_cmos.
6103 * grub-core/lib/ieee1275/cmos.c: New file.
6104 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
6105 (find_rtc): Set no_ieee1275_rtc on error.
6106 (grub_get_datetime): Call grub_get_datetime_cmos on error.
6107 (grub_set_datetime): Call grub_set_datetime_cmos on error.
6108 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
6109 fail. Move value to argument. All users updated
6110 (grub_cmos_write): Likewise.
6111 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
6112 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
6113 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
6114 grub_get_datetime_cmos and grub_set_datetime_cmos.
6115
6116 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6117
6118 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
6119 sourcing grub-mkconfig_lib.
6120 * util/update-grub_lib.in: Likewise.
6121 * util/grub.d/00_header.in: Likewise.
6122 * util/grub.d/10_hurd.in: Likewise.
6123 * util/grub.d/10_kfreebsd.in: Likewise.
6124 * util/grub.d/10_linux.in: Likewise.
6125 * util/grub.d/10_netbsd.in: Likewise.
6126 * util/grub.d/10_windows.in: Likewise.
6127 * util/grub.d/20_linux_xen.in: Likewise.
6128 * util/grub.d/30_os-prober.in: Likewise.
6129
6130 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
6131
6132 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6133 default_bg_color rather than black.
6134 (grub_gfxterm_fullscreen): Likewise.
6135 (grub_gfxterm_background_color_cmd): Save new background color in
6136 default_bg_color.
6137
6138 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
6141
6142 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
6145 mismerge.
6146
6147 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6148
6149 Chainloading on coreboot support.
6150
6151 * grub-core/Makefile.core.def (chain): Add coreboot.
6152 * grub-core/loader/i386/coreboot/chainloader.c: New file.
6153
6154 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
6157 if it happens.
6158
6159 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 Implement time command.
6162
6163 * grub-core/Makefile.core.def (time): New module.
6164 * grub-core/commands/time.c: New file.
6165 * grub-core/script/parser.y: Remove "time" keyword.
6166 * grub-core/script/yylex.l: Likewise.
6167
6168 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
6171
6172 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
6175 when handling leftovers.
6176
6177 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
6180 so that help2man doesn't fail.
6181
6182 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6183
6184 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
6185 type in pointers on sparc64.
6186 (get_card_packet): Likewise.
6187
6188 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
6189
6190 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
6191 with `*'.
6192 (grub_cmd_videoinfo): Fetch current video mode.
6193
6194 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6195
6196 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
6197 because of underlying system restrictions.
6198
6199 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
6202 necessary.
6203
6204 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 Coreboot video support.
6207
6208 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
6209 (vbe): Likewise.
6210 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
6211 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
6212 here ...
6213 * grub-core/kern/i386/int.S: ... here.
6214 * grub-core/video/i386/pc/vbe.c: Updated includes.
6215 * grub-core/video/i386/pc/vga.c: Likewise.
6216 * include/grub/i386/coreboot/memory.h
6217 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
6218 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
6219 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
6220 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
6221 Disable interrupts.
6222 * include/grub/i386/pc/vga.h: Removed. All users updated.
6223
6224 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
6227 definitions for dprintf.
6228 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
6229
6230 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
6233 prototype.
6234 (get_card_packet): Likewise.
6235
6236 2011-06-26 Yves Blusseau <blusseau@zetam.org>
6237
6238 Display the path of the file when file is not found
6239
6240 * grub-core/fs/fat.c: Display the filename when file is not found.
6241 * grub-core/fs/fshelp.c: Likewise.
6242 * grub-core/fs/hfs.c: Likewise.
6243 * grub-core/fs/jfs.c: Likewise.
6244 * grub-core/fs/minix.c: Likewise.
6245 * grub-core/fs/ufs.c: Likewise.
6246 * grub-core/fs/btrfs.c: Likewise.
6247 * grub-core/commands/i386/pc/play.c: Likewise.
6248
6249 2011-06-26 Szymon Janc <szymon@janc.net.pl>
6250
6251 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
6252 pointer checks before calling grub_free().
6253 * grub-core/commands/wildcard.c (match_devices): Likewise.
6254 * grub-core/commands/wildcard.c (match_files): Likewise.
6255 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
6256 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
6257 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
6258 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
6259 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
6260 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
6261 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
6262 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
6263 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
6264
6265 2011-06-25 Patrick <p55@mailinator.com>
6266
6267 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
6268
6269 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
6272 (grub_pxe_send): Likewise.
6273 (GRUB_MOD_INIT): Fix types.
6274
6275 2011-06-24 Szymon Janc <szymon@janc.net.pl>
6276
6277 * grub-core/io/xzio.c: Fix code style issues
6278
6279 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6280 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
6281
6282 Network infrastructure.
6283 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
6284
6285 * include/grub/net/arp.h: New file.
6286 * include/grub/net/device.h: Likewise.
6287 * include/grub/net/ethernet.h: Likewise.
6288 * include/grub/net/ip.h: Likewise.
6289 * include/grub/net/netbuff.h: Likewise.
6290 * include/grub/net/tftp.h: Likewise.
6291 * include/grub/net/udp.h: Likewise.
6292 * include/grub/ieee1275/ofnet.h: Likewise.
6293 * include/grub/emu/export.h: Likewise.
6294 * include/grub/net.h: Likewise.
6295 * grub-core/net/arp.c: Likewise.
6296 * grub-core/net/ethernet.c: Likewise.
6297 * grub-core/net/ip.c: Likewise.
6298 * grub-core/net/udp.c: Likewise.
6299 * grub-core/net/tftp.c: Likewise.
6300 * grub-core/net/netbuff.c: Likewise.
6301 * grub-core/net/net.c: Likewise.
6302 * grub-core/net/drivers/emu/emunet.c: Likewise.
6303 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
6304 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
6305 export.h.
6306 * grub-core/Makefile.core.def (net): New module.
6307 (tftp): Likewise.
6308 (ofnet): Likewise.
6309 (emunet): Likewise.
6310 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
6311 network protocols.
6312 * grub-core/kern/device.c (grub_net_open) : New variable.
6313 (grub_device_open): Handle network device.
6314 (grub_device_close): Likewise.
6315 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
6316 (grub_grubnet_fini): Likewise.
6317 (grub_file_seek): Seek in network device.
6318 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
6319 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
6320 network root.
6321 (grub_machine_fini): Call grub_grubnet_fini.
6322 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
6323 network.
6324 (grub_ieee1275_get_aliasdevname): New function.
6325 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6326 Add unofficial Solaris network info.
6327 (grub_multiboot_make_mbi): Likewise.
6328 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
6329 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
6330 * include/grub/device.h (grub_fs): Removed.
6331 * include/grub/err.h (grub_err_t): Add network-related values.
6332 * include/grub/i386/pc/pxe.h: Removed bootp parts.
6333 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
6334 (grub_ieee1275_get_aliasdevname): New proto.
6335 * include/grub/net.h: Rewritten.
6336
6337 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
6340 names.
6341
6342 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
6345 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
6346 it truncates the output.
6347 Reported by: Ximin Luo.
6348
6349 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
6352
6353 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
6356 partmap before abstraction.
6357
6358 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
6359
6360 * util/grub-mkconfig_lib.in: Add missing quotes.
6361
6362 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
6365 old method if mountinfo would return /dev/root and /dev/root doesn't
6366 exist.
6367
6368 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 ZFS zlib support
6371
6372 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
6373 (decomp_table): Add zlib entries.
6374 (zio_read): USe 8 bits for compression function rather than 3.
6375 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
6376
6377 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6378
6379 * grub-core/disk/ahci.c: Add missing license statements.
6380 * grub-core/fs/romfs.c: Likewise.
6381 * grub-core/lib/ia64/setjmp.S: Likewise.
6382 * grub-core/loader/i386/pc/freedos.c: Likewise.
6383 * grub-core/loader/ia64/efi/linux.c: Likewise.
6384 * grub-core/video/colors.c: Likewise.
6385 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
6386
6387 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6388
6389 AHCI support.
6390
6391 * grub-core/Makefile.core.def (ata_pthru): Removed.
6392 (ahci): New module.
6393 (pata): Likewise.
6394 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
6395 on unload.
6396 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
6397 readwrite.
6398 (grub_hdparm_do_check_powermode_cmd): Likewise.
6399 (grub_hdparm_do_smart_cmd): Likewise.
6400 (grub_hdparm_set_val_cmd): Likewise.
6401 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
6402 * grub-core/disk/ahci.c: New file.
6403 * grub-core/disk/ata.c: Factor out the low-level part into ...
6404 * grub-core/disk/pata.c: ... here.
6405 * grub-core/disk/ata_pthru.c: Contents moved to ...
6406 * grub-core/disk/pata.c: ... here.
6407 * grub-core/disk/scsi.c (grub_scsi_names): New array.
6408 (grub_scsi_iterate): Use grub_scsi_names.
6409 (grub_scsi_open): Likewise.
6410 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
6411 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
6412 (grub_ata_regs_t): New struct.
6413 (grub_disk_ata_pass_through_parms): Likewise.
6414 (grub_ata_device): Renamed to ...
6415 (grub_ata): ... this.
6416 (grub_ata_dev): New struct.
6417 Removed all low-level inline functions.
6418 * include/grub/scsi.h: Add PATA and AHCI subsystems.
6419 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
6420 iterate hooks and open. All users updated.
6421 * util/grub-install.in: Handle AHCI disk module.
6422
6423 2011-06-23 Szymon Janc <szymon@janc.net.pl>
6424
6425 Add support for DRI and RSTn markers in JPEG files.
6426
6427 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
6428 (JPEG_MARKER_RST0): Likewise.
6429 (JPEG_MARKER_RST1): Likewise.
6430 (JPEG_MARKER_RST2): Likewise.
6431 (JPEG_MARKER_RST3): Likewise.
6432 (JPEG_MARKER_RST4): Likewise.
6433 (JPEG_MARKER_RST5): Likewise.
6434 (JPEG_MARKER_RST6): Likewise.
6435 (JPEG_MARKER_RST7): Likewise.
6436 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
6437 (grub_jpeg_decode_dri): New function.
6438 (grub_jpeg_decode_sos): Move image data related part into
6439 grub_jpeg_decode_data function.
6440 (grub_jpeg_decode_data): New function.
6441 (grub_jpeg_reset): New function.
6442 (grub_jpeg_decode_jpeg): Handle new markers.
6443
6444 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * util/ieee1275/ofpath.c (check_sas): Close fd.
6447 (main): Free of_path.
6448 Reported by: David Volgyes <dvolgyes>.
6449
6450 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6451
6452 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
6453 Reported by: David Volgyes <dvolgyes>.
6454
6455 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
6458 file after stat.
6459 Reported by: David Volgyes <dvolgyes>.
6460
6461 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
6464
6465 Reported by: David Volgyes <dvolgyes>.
6466
6467 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
6470 Prevent memory leak.
6471
6472 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
6475 (main): Close file.
6476 Reported by: David Volgyes <dvolgyes>.
6477
6478 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6479
6480 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
6481 to continue if allocation is failed.
6482
6483 Reported by: David Volgyes <dvolgyes>.
6484
6485 2011-06-23 David Volgyes <dvolgyes>
6486
6487 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
6488 dereference.
6489
6490 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 Fix spurious warning.
6493
6494 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
6495 (acorn_partition_map_find): Use .bin member.
6496
6497 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
6500 /dev/root as a valid device.
6501
6502 2011-06-23 Jim Meyering <meyering@redhat.com>
6503
6504 Avoid NULL deref in grub_device_open.
6505
6506 * grub-core/kern/device.c (grub_device_open): Don't dereference
6507 a NULL pointer upon failed grub_env_get.
6508
6509 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 Support non-512B sectors and agglomerate reads.
6512
6513 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
6514 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
6515 (disk_io_guid): Removed.
6516 (make_devices): Locate solely by BlockIO.
6517 (grub_efidisk_open): Fill log_sector_size and total_sectors.
6518 (grub_efidisk_read): Use read_blocks.
6519 (grub_efidisk_write): Use write_blocks.
6520 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
6521 log_sector_size.
6522 (get_safe_sectors): Handle non-512B sectors.
6523 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
6524 sectors.
6525 (grub_biosdisk_write): Handle non-512B sectors.
6526 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
6527 (grub_scsi_read): Remove special non-512B block handling (now handled
6528 one level up).
6529 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
6530 and do sanity checks.
6531 (grub_disk_adjust_range): Handle non-512B sectors.
6532 (transform_sector): New function.
6533 (grub_disk_read_small): Likewise.
6534 (grub_disk_read): Rewritten.
6535 (grub_disk_write): Handle non-512B sectors.
6536 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
6537 log_sector_size.
6538 (open_device): Use log_sector_size.
6539 (grub_util_biosdisk_read): Likewise.
6540 (grub_util_biosdisk_write): Likewise.
6541 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
6542 non-512B sectors.
6543 (pc_partition_map_embed): Likewise.
6544 * include/grub/disk.h (grub_disk): New field log_sector_size.
6545 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
6546 (GRUB_DISK_CACHE_BITS): Increased to 6.
6547 * util/grub-fstest.c (fstest): New command testload.
6548 (argp_parser): Likewise.
6549
6550 2011-06-16 Robert Millan <rmh@gnu.org>
6551
6552 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
6553 `ata' driver on kernel of FreeBSD 9.
6554
6555 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
6556 (get_ataraid_disk_name): New functions.
6557 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
6558 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
6559 get_ataraid_disk_name() and get_ada_disk_name().
6560
6561 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
6562
6563 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
6564 input format.
6565
6566 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
6567
6568 * docs/grub.texi (Obtaining and Building GRUB): Substitute
6569 `ftp.gnu.org' for `alpha.gnu.org'.
6570
6571 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6572
6573 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
6574 partitions under /dev/disk/by-id/.
6575
6576 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6577
6578 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
6579 after ten consecutive open failures. Scanning all the way up to
6580 10000 is excessive and can cause serious performance problems in
6581 some configurations.
6582 Fixes Ubuntu bug #787461.
6583
6584 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
6587 opening new one.
6588
6589 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
6590 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6591
6592 Don't stat devices unless we have to.
6593
6594 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
6595 dir == /dev/mapper.
6596 (grub_guess_root_device): Use already known os_dev if possible.
6597 * grub-core/kern/emu/hostdisk.c
6598 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
6599 if device is known to be a dm one.
6600
6601 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
6602
6603 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
6604 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
6605 Reported by: Pawel Tecza.
6606
6607 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
6610 (lsefisystab): Likewise.
6611 (lssal): Likewise.
6612 (lsefimmap): Likewise.
6613 (hdparm): Enable on qemu-mips.
6614 (setjmp): Add ia64 nodist.
6615 (serial): Simplify tags.
6616
6617 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6618
6619 * Makefile.util.def (grub-ofpathname): Install manual page.
6620
6621 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6622
6623 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
6624
6625 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6626
6627 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
6628
6629 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6630
6631 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
6632 into dprintf.
6633
6634 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 Use full 64-bit division.
6637
6638 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
6639 (grub_divmod64): ... this.
6640 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
6641 version.
6642
6643 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6644
6645 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
6646 `source'.
6647
6648 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6649
6650 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
6651 to avoid accidents when debugging with 'sh -x'.
6652 * grub-core/gensyminfo.sh.in: Likewise.
6653 * tests/example_scripted_test.in: Likewise.
6654 * tests/grub_cmd_regexp.in: Likewise.
6655 * tests/grub_script_blanklines.in: Likewise.
6656 * tests/grub_script_dollar.in: Likewise.
6657 * tests/grub_script_expansion.in: Likewise.
6658 * tests/grub_script_final_semicolon.in: Likewise.
6659 * tests/partmap_test.in: Likewise.
6660 * tests/util/grub-shell-tester.in: Likewise.
6661 * tests/util/grub-shell.in: Likewise.
6662
6663 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6664
6665 Move gfxmenu color handling to video, so that gfxterm can use it
6666 too.
6667
6668 * grub-core/gfxmenu/named_colors.c: Move to ...
6669 * grub-core/video/colors.c: ... here. Rename
6670 grub_gui_get_named_color to grub_video_get_named_color.
6671 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
6672 * grub-core/video/colors.c (my_isxdigit): ... here.
6673 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
6674 Move to ...
6675 * grub-core/video/colors.c (parse_hex_color_component): ... here.
6676 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
6677 to ...
6678 * grub-core/video/colors.c (grub_video_parse_color): ... here.
6679
6680 * include/grub/gui.h (grub_gui_color_t): Move to ...
6681 * include/grub/video.h (grub_video_rgba_color_t): ... here.
6682 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
6683 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
6684 * include/grub/gui.h (grub_gui_map_color): Move to ...
6685 * include/grub/video.h (grub_video_map_rgba_color): ... here.
6686 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
6687 to ...
6688 * include/grub/video.h (grub_video_get_named_color): ... here.
6689 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
6690 * include/grub/video.h (grub_video_parse_color): ... here.
6691
6692 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
6693 video/colors.c.
6694 (gfxmenu): Remove gfxmenu/named_colors.c.
6695 (video) [videomodules]: Add video/colors.c.
6696
6697 Add a background_color command.
6698
6699 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
6700 function.
6701 (GRUB_MOD_INIT): Register background_color command.
6702 (GRUB_MOD_FINI): Unregister background_color command.
6703 (redraw_screen_rect): Allow blend/replace of text layer to be
6704 controlled independently from whether there is a background bitmap.
6705 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
6706 changing bitmap.
6707
6708 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6709
6710 Patch BPB in ntldr and chainloader --bpb.
6711
6712 * grub-core/fs/fat.c: Include grub/fat.h.
6713 (grub_fat_bpb): Moved to ...
6714 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
6715 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
6716 grub/ntfs.h.
6717 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
6718 Moved from here...
6719 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
6720 here.
6721 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
6722 New function.
6723 (grub_chainloader_cmd): Patch BPB if --bpb is given.
6724 (GRUB_MOD_INIT): Show --bpb.
6725 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
6726 * grub-core/normal/main.c (features): New variable.
6727 (GRUB_MOD_INIT): Set feature_* variables.
6728 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
6729 proto.
6730 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
6731
6732 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
6735 for cleanness.
6736
6737 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 FreeDOS direct loading support.
6740
6741 * docs/grub.texi (Supported OS): Add FreeDOS.
6742 * grub-core/Makefile.core.def (freedos): New module.
6743 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
6744 variable.
6745 (grub_relocator16_boot): Handle %ebx.
6746 * grub-core/lib/i386/relocator16.S: Likewise.
6747 * grub-core/loader/i386/pc/freedos.c: New file.
6748
6749 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6750
6751 Long Linux command line support.
6752
6753 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6754 (maximal_cmdline_size): New variable.
6755 (allocate_pages): Use maximal_cmdline_size.
6756 (grub_cmd_linux): Set and use maximal_cmdline_size.
6757 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6758 (allocate_pages): Use maximal_cmdline_size.
6759 (grub_cmd_linux): Set and use maximal_cmdline_size.
6760 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
6761 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
6762 and cmdline_size.
6763
6764 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6765 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6766
6767 Improve devmapper support
6768
6769 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
6770 (grub_util_is_lvm): New function.
6771 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
6772 than lvm if not dmraid.
6773 Handle mapped md nodes.
6774 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
6775 (grub_util_device_is_mapped): ... this. Make always available. All users
6776 updated.
6777 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
6778 (convert_system_partition_to_system_disk): Handle lvm, mpath and
6779 dmraid nodes.
6780 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
6781
6782 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
6785
6786 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
6787 * grub-core/modinfo.sh.in: New file.
6788 * grub-core/Makefile.core.def (modinfo.sh): New script.
6789 * util/grub-mknetdir.in: Use modinfo.sh.
6790 * util/grub-mkrescue.in: Likewise.
6791
6792 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
6795 Fix potential usage of Elf32 instead of Elf64 when compiling on
6796 32-bit architecture. Add endianness macros while on it.
6797
6798 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 Use mipsel- rather than mips- in directories involving mipsel ports to
6801 allow both endiannesses coexist.
6802
6803 * configure.ac: proparate target_cpu=mipsel rather than resetting to
6804 mips. All conditions adjusted.
6805 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
6806 variable.
6807 * util/grub-install.in: Adjust conditions to take renaming into account.
6808 * util/grub-mkimage.c (image_targets): Likewise. New target
6809 mips-qemu_mips-elf for bigendian mips.
6810
6811 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 Avoid unnecessary copying on MIPS.
6814
6815 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
6816 early if src == dest.
6817 * util/grub-mkimage.c (generate_image): Arange for src == dest if
6818 compression is none.
6819
6820 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6821
6822 Reduce memory footprint on SGI by putting modules before the kernel
6823 as opposed to after.
6824
6825 * grub-core/Makefile.core.def (kernel): Increase linking address.
6826 (none_decompress): Likewise.
6827 (xz_decompress): Likewise.
6828 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
6829 address.
6830 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
6831 layout change.
6832 (grub_arch_modules_addr): New function.
6833 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
6834 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
6835 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
6836 here.
6837 * grub-core/kern/mips/startup.S (total_size): Rename to ...
6838 (grub_total_modules_size): ... this. Make global.
6839 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
6840 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
6841 New definition.
6842 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
6843 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
6844 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
6845 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
6846 * util/grub-mkimage.c (image_target_desc): New flag
6847 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
6848 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
6849 (generate_image): Handle images with modules before kernel.
6850
6851 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 Prevent potential loss of memory map by overwrite on qemu-mips.
6854
6855 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
6856 Save ram size in $s4.
6857 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
6858 All users changed to grub_arch_memsize.
6859 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
6860 Loongson.
6861 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
6862 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
6863 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
6864 external variable.
6865
6866 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6867
6868 * .bzrignore: Remove grub-dumpbios.
6869
6870 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6871
6872 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
6873 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
6874 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
6875 existing options which append).
6876 * docs/grub.texi (Simple configuration): Document new options.
6877 Reported by: Ian Jackson. Fixes Debian bug #617538.
6878
6879 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6880
6881 * util/grub-fstest.c (cmd_cat): New function.
6882 (fstest): Handle CMD_CAT.
6883 (options): Add cat.
6884 (argp_parser): Handle cat.
6885
6886 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6887
6888 * Makefile.util.def (grub-bin2h): Don't install.
6889 * docs/man/grub-bin2h.h2m: Remove.
6890
6891 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6892
6893 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
6894 place.
6895
6896 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 Reenable qemu-mips port.
6899
6900 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
6901 Fix small arc bug while on it.
6902 * gentpl.py: Handle qemu_mips.
6903 * grub-core/Makefile.am: Likewise.
6904 * grub-core/Makefile.core.def: Likewise.
6905 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
6906 inappropriate includes.
6907 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
6908 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
6909 * grub-core/kern/main.c (grub_modules_get_end)
6910 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
6911 * grub-core/kern/mips/qemu-mips: Moved to ..
6912 * grub-core/kern/mips/qemu_mips: ... this.
6913 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
6914 (grub_machine_init): Call terminfo_init and serial_init.
6915 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
6916 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
6917 New variable.
6918 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
6919 parameter passing.
6920 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
6921 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
6922 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6923 * include/grub/mips/qemu_mips/cmos.h: New file.
6924 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
6925 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
6926 Removed.
6927 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
6928 Use correct mips-style address.
6929 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
6930 (GRUB_TICKS_PER_SECOND): Removed.
6931 (grub_get_rtc): Likewise.
6932 (grub_cpu_idle): Likewise.
6933 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
6934 New definition.
6935 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
6936 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
6937 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
6938 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
6939 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
6940 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
6941 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
6942 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
6943
6944 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6945
6946 SGI ARCS port.
6947
6948 * Makefile.util.def (libgrubmods.a): Add dvh.c.
6949 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
6950 platforms.
6951 * configure.ac: New target mips-arc.
6952 * gentpl.py: Likewise.
6953 * grub-core/Makefile.am: Likewise.
6954 * grub-core/Makefile.core.def: Likewise.
6955 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
6956 (none_decompress): Likewise.
6957 (lsdev): New module.
6958 (datetime): Use lib/arc/datetime.c on ARC.
6959 (part_dvh): New module.
6960 * grub-core/commands/arc/lsdev.c: New file.
6961 * grub-core/disk/arc/arcdisk.c: Likewise.
6962 * grub-core/kern/mips/arc/init.c: Likewise.
6963 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
6964 aligned addresses.
6965 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
6966 support.
6967 (grub_arch_dl_relocate_symbols): Likewise.
6968 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
6969 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
6970 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
6971 platforms.
6972 * grub-core/lib/arc/datetime.c: New file.
6973 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
6974 pci.h on non-loongson.
6975 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
6976 (grub_linux_boot): Set unused registers to 0.
6977 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
6978 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
6979 * grub-core/mmap/mips/uppermem.c: ...here.
6980 * grub-core/partmap/dvh.c: New file.
6981 * grub-core/term/arc/console.c: Likewise.
6982 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
6983 (grub_terminfo_set_current): Add terminal "arc".
6984 (grub_terminfo_readkey): Support ARC sequences.
6985 * include/grub/arc/arc.h: New file.
6986 * include/grub/arc/console.h: Likewise.
6987 * include/grub/disk.h (grub_disk_dev_id): Add
6988 GRUB_DISK_DEVICE_ARCDISK_ID.
6989 * include/grub/mips/arc/kernel.h: New file.
6990 * include/grub/mips/arc/memory.h: Likewise.
6991 * include/grub/mips/arc/time.h: Likewise.
6992 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
6993 * include/grub/mips/kernel.h (grub_halt): ... here.
6994 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
6995 here...
6996 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
6997 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
6998 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
6999 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
7000 proto.
7001 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
7002 from here ...
7003 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
7004 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
7005 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
7006 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
7007 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
7008 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
7009 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
7010 (grub_phys_addr_t): Moved from here ...
7011 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
7012 (grub_vtop): Moved from here ...
7013 * include/grub/mips/memory.h (grub_vtop): ... here.
7014 (grub_map_memory): Moved from here ...
7015 * include/grub/mips/memory.h (grub_map_memory): ... here.
7016 (grub_unmap_memory): Moved from here ...
7017 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
7018 (grub_machine_mmap_iterate): Moved from here ...
7019 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
7020 (grub_mmap_get_lower): Moved from here ...
7021 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
7022 (grub_mmap_get_upper): Moved from here ...
7023 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
7024 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7025 here ...
7026 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7027 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
7028 here ...
7029 * include/grub/mips/time.h (grub_get_rtc): ... here.
7030 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7031 here ...
7032 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7033 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
7034 here ...
7035 * include/grub/mips/time.h (grub_cpu_idle): ... here.
7036 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
7037 definition.
7038 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
7039 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
7040 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
7041 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
7042 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
7043 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
7044 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
7045 (GRUB_MACHINE_LINK_ADDR): Likewise.
7046 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
7047 to 6.
7048 * util/grub-install.in: Run dvhtool on ARC.
7049 * util/grub-mkimage.c (image_targets): Add mips-arc.
7050 (generate_image): Handle ECOFF output for mips-arc.
7051
7052 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
7055 blocks.
7056
7057 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7058
7059 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
7060 after enabling port.
7061
7062 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7063
7064 Skip incorrect USB devices.
7065
7066 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
7067 configcnt == 0.
7068 * include/grub/usb.h (grub_usb_err_t): New enum value
7069 GRUB_USB_ERR_BADDEVICE.
7070
7071 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7072
7073 Fuloong video init support.
7074
7075 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
7076 well.
7077 (grub_vga_read_arx): New function.
7078 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
7079 definition.
7080 (framebuffer): New members io, mmioptr and mmiobase.
7081 (read_sis_cmd): New function.
7082 (write_sis_cmd): Likewise.
7083 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
7084 rather than 640x400.
7085 * grub-core/video/sis315_init.c: New file.
7086
7087 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7088
7089 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
7090 non-loongson.
7091 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
7092 to grub_dl_register_symbol.
7093
7094 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 Fix compilation errors.
7097
7098 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
7099 potentially unused.
7100 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
7101 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
7102 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
7103 to loongson machines.
7104
7105 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7106
7107 Several FS mtime support.
7108
7109 * grub-core/fs/affs.c (grub_affs_time): New struct.
7110 (grub_affs_file): New field mtime.
7111 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
7112 type. Removed 'size'. New field 'di'. All users updated.
7113 (grub_affs_mount): Simplify checsum checking.
7114 (grub_affs_iterate_dir): New helper grub_affs_create_node.
7115 (grub_affs_dir): Handle mtime.
7116 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
7117 (grub_cpio_dir): Likewise.
7118 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
7119 (grub_hfs_filerec): New field mtime.
7120 (grub_hfs_dir): Handle mtime.
7121 (grub_hfs_mtime): New function.
7122 (grub_hfs_fs): Register grub_hfs_mtime.
7123 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
7124 (grub_iso9660_dir): New field mtime.
7125 (grub_fshelp_node): New field dirent.
7126 (iso9660_to_unixtime): New function.
7127 (iso9660_to_unixtime2): Likewise.
7128 (grub_iso9660_read_symlink): Use node->dirent.
7129 (grub_iso9660_iterate_dir): Likewise.
7130 (grub_iso9660_dir): Set mtime.
7131 (grub_iso9660_mtime): New function.
7132 (grub_iso9660_fs): Register grub_iso9660_mtime.
7133 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
7134 (grub_jfs_inode): New fields atime, ctime and mtime.
7135 (grub_jfs_dir): Set mtime.
7136 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7137 * grub-core/fs/ntfs.c (list_file): Set mtime.
7138 (grub_ntfs_dir): Likewise.
7139 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
7140 (grub_reiserfs_iterate_dir): Set mtime.
7141 (grub_reiserfs_dir): Likewise.
7142 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
7143 (grub_fshelp_node): Likewise.
7144 (grub_sfs_iterate_dir): Set mtime.
7145 (grub_sfs_dir): Likewise.
7146 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
7147 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
7148 (grub_xfs_inode): New fields atime, mtime, ctime.
7149 (grub_xfs_dir): Set mtime.
7150 * include/grub/datetime.h (grub_datetime2unixtime): New function.
7151 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
7152 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
7153
7154 Support UDF symlinks.
7155
7156 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
7157 (grub_ufs_read_symlink): New function. All users updated.
7158
7159 Check amiga partmap checksum.
7160
7161 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
7162 (grub_amiga_partition): Likewise.
7163 (amiga_partition_map_checksum): New function.
7164 (amiga_partition_map_iterate): Check checksum.
7165
7166 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7167
7168 ROMFS support.
7169
7170 * Makefile.util.def (libgrubmods.a): Add romfs.
7171 * grub-core/Makefile.core.def (romfs): New module.
7172 * grub-core/fs/romfs.c: New file.
7173
7174 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 Squashfs v4 support.
7177
7178 * Makefile.util.def (libgrubmods.a): Add squash4.
7179 * grub-core/Makefile.core.def (squash4): New module.
7180 * grub-core/fs/squash4.c: New file.
7181 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
7182 disk_input_start, disk_input.
7183 (get_byte): Handle disk_input.
7184 (grub_zlib_disk_read): New function.
7185 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
7186
7187 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7188 2011-05-15 Feiran Zheng <famcool@gmail.com>
7189
7190 * Makefile.util.def (libgrubmods.a): Add minix3.
7191 * grub-core/Makefile.core.def (minix3): New module.
7192 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
7193 (GRUB_MINIX_BSIZE): Removed.
7194 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
7195 (grub_minix_ino_t): New type.
7196 (grub_minix_le_to_cpu_ino): New macro.
7197 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
7198 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
7199 (grub_minix_data): New field block_size.
7200 (grub_minix_read_file): Handle 64-bit correctly.
7201 * grub-core/fs/minix3.c: New file.
7202
7203 2011-05-15 Tristan Gingold <gingold@free.fr>
7204 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
7205 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 IA64 support.
7208
7209 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
7210 * configure.ac: Add ia64-efi target.
7211 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
7212 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
7213 * gentpl.py: Add ia64_efi platform.
7214 Rename x86_efi to efi and Add ia64-efi. All users updated.
7215 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
7216 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
7217 Remove kern/generic/rtc_get_time_ms.c on EFI.
7218 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
7219 kern/ia64/dl_helper.c on ia64-efi.
7220 Add kern/emu/cache.c on emu.
7221 (linux): Use on loader/ia64/efi/linux.c on ia64.
7222 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
7223 whether symbol is a function.
7224 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
7225 (grub_symbol): New field 'isfunc'.
7226 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
7227 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
7228 (grub_dl_load_segments): Place all sections into the same region.
7229 [__ia64__]: Create trampolines and got.
7230 [GRUB_MACHINE_EMU]: Call mprotect.
7231 (grub_dl_resolve_symbols): Resolve symbol type as well.
7232 [__ia64__]: Create function descriptors.
7233 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
7234 (grub_rtc_get_time_ms): ... this. Expressions simplified.
7235 (grub_get_rtc): New function.
7236 * grub-core/kern/emu/cache.c [__ia64__]: New file.
7237 * grub-core/kern/emu/cache.S: Renamed to ...
7238 * grub-core/kern/emu/cache_s.S: ... this.
7239 [__ia64__]: Add a nop.
7240 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
7241 [__ia64__]: New function.
7242 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
7243 * grub-core/kern/ia64/dl.c: New file.
7244 * grub-core/kern/ia64/dl_helper.c: Likewise.
7245 * grub-core/kern/ia64/efi/init.c: New file.
7246 * grub-core/kern/ia64/efi/startup.S: Likewise.
7247 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
7248 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
7249 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
7250 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
7251 * grub-core/loader/ia64/efi/linux.c: New file.
7252 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
7253 (GRUB_MOD_DEP): Likewise.
7254 (grub_dl) [__ia64__]: New fields got and tramp.
7255 (grub_dl): New field 'base'.
7256 (grub_dl_register_symbol): New argument isfunc. All users updated.
7257 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
7258 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
7259 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
7260 (grub_ia64_dl_get_tramp_got_size): New proto.
7261 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
7262 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
7263 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
7264 * include/grub/efi/api.h: Skip call wrappers on ia64.
7265 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
7266 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
7267 * include/grub/elf.h (ELF_ST_INFO): New definition.
7268 * include/grub/ia64/efi/kernel.h: New file.
7269 * include/grub/ia64/efi/memory.h: Likewise.
7270 * include/grub/ia64/efi/time.h: Likewise.
7271 * include/grub/ia64/kernel.h: Likewise.
7272 * include/grub/ia64/setjmp.h: Likewise (from glibc).
7273 * include/grub/ia64/time.h: New file.
7274 * include/grub/ia64/types.h: Likewise.
7275 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
7276 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
7277 New protos.
7278 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
7279 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
7280 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
7281 * util/grub-mkimage.c (image_target_desc): New field pe_target.
7282 All users updated.
7283 (EFI64_HEADER_SIZE): New definition. All users updated.
7284 (image_targets): Add ia64-efi.
7285 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
7286 jumpers_addr. All users updated.
7287 Create function descriptors.
7288 (count_funcs): New function.
7289 (unaligned_uint32): New struct.
7290 (MASK20): New definition.
7291 (MASK19): Likewise.
7292 (MASKF21): Likewise.
7293 (add_value_to_slot_20b): New function.
7294 (add_value_to_slot_21_real): Likewise.
7295 (add_value_to_slot_21): Likewise.
7296 (ia64_kernel_trampoline): New struct.
7297 (nopm): New variable.
7298 (jump): Likewise.
7299 (make_trampoline): New function.
7300 (relocate_addresses): Handle ia64.
7301 (make_reloc_section): Likewise.
7302 (load_image): Likewise.
7303
7304 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
7307 warning. Move variables before code while on it.
7308
7309 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 Fuloong support.
7312
7313 * configure.ac: Rename yeeloong platform to loongson. All users updated.
7314 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
7315 * grub-core/boot/mips/loongson/fuloong.S: New file.
7316 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
7317 Explicitly init CS5536.
7318 [FULOONG]: Don't use serial until CS5536 is available.
7319 Set GPIO based on dumps.
7320 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
7321 [FULOONG]: Handle GPIO and memory controller differences.
7322 Parse machine type in $a2.
7323 * grub-core/boot/mips/startup_raw.S: Determine and save the
7324 architecture.
7325 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
7326 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
7327 init on architecture type.
7328 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
7329 SIS315E. Don't init at_keyboard on fuloong.
7330 (grub_halt): Support Fuloong.
7331 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
7332 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
7333 (loongson_machtypes): New array.
7334 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
7335 type.
7336 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
7337 config. All users updated. Handle CS5536 serial.
7338 * grub-core/term/serial.c (grub_serial_register): Conditionalise
7339 default port on machine type. Register serial as inactive.
7340 * grub-core/video/sis315pro.c: New file.
7341 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
7342 definition.
7343 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
7344 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
7345 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
7346 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
7347 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
7348 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
7349 to ...
7350 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
7351 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
7352 definition.
7353 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
7354 (grub_arch_machine): New extern var.
7355 * include/grub/mips/loongson/serial.h
7356 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
7357 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
7358 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
7359 (GRUB_MACHINE_SERIAL_PORT0): ... this.
7360 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
7361 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
7362 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
7363 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
7364 * include/grub/term.h (grub_term_register_input_inactive): New inline
7365 function.
7366 (grub_term_register_output_inactive): Likewise.
7367 * include/grub/video.h (grub_video_driver_id): New value
7368 GRUB_VIDEO_DRIVER_SIS315PRO.
7369 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
7370 New field "names". All users updated.
7371 New field value IMAGE_FULOONG_FLASH.
7372 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
7373
7374 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
7375
7376 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
7377 and add some clarification.
7378
7379 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
7382 platforms if kernel is compressed.
7383
7384 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7385
7386 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
7387 unused modules since currently referrence counter isn't reliable and
7388 there isn't much memory to recover there anyway.
7389
7390 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
7393 rather than resetting it to allow modules to reference themselves
7394 in init.
7395
7396 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
7399 counter on dependencies since grub_dl_unref already handles this.
7400
7401 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
7404 on error if not already done.
7405
7406 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 Fix few potential memory misusage.
7409
7410 * grub-core/font/font.c (load_font_index): Don't free char_index to
7411 avoid double free.
7412 (grub_font_load): Zero-fill font at alloc for safety.
7413 Close file on error.
7414 (free_font): Free bmp_idx.
7415
7416 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 * docs/grub.texi (Installation): Fix several outdated claims.
7419
7420 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 Handle module_license on windows.
7423
7424 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
7425 sections shifted.
7426 (insert_string): Make argument const char * instead of char *.
7427 (write_section_data): Handle long section names.
7428 Handle module_license.
7429
7430 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
7433 handle class-free menuentries.
7434 (grub_normal_add_menu_entry): Add a check to be sure.
7435
7436 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7437
7438 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
7439 PgUp and PgDown.
7440
7441 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7442
7443 * configure.ac: Bump version to 1.99.
7444
7445 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 Give ATA device a bit more time on first try in order to allow disks
7448 to spin up.
7449
7450 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
7451 if dev->present is 1. Reset dev->present on failure.
7452 (grub_ata_device_initialize): Set dev->present to 1.
7453 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
7454 (grub_ata_device): New member 'present'.
7455
7456 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * util/grub-mkimage.c (generate_image): Update hash.
7459
7460 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 Flush caches on DMA memory.
7463
7464 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
7465 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
7466 (grub_dma_free): Likewise.
7467 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
7468
7469 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
7472 to avoid asm treating ld and sd as macros.
7473
7474 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7475
7476 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
7477 decompressor.
7478
7479 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
7482 grub_decompress_core since later would fail if grub_decompress_core
7483 is too far.
7484
7485 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
7488 R_MIPS_JALR since it's used by newer compiler.
7489
7490 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
7493
7494 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7495
7496 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
7497 file_path to 0 for surety.
7498 (grub_chainloader_boot): Set exit_data to NULL.
7499 Unset the loader once done.
7500 (grub_cmd_chainloader): Fix confusing error message if file is empty.
7501
7502 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7503
7504 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
7505 unknown key into a dprintf.
7506
7507 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
7510 on first non-existant partition.
7511
7512 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
7515 openning fails.
7516 Reported by: Mark Korenberg.
7517
7518 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
7521 overflow.
7522
7523 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 * util/grub-mkimage.c (main): Explicitely flush and sync the output
7526 before closing to ensure that it will be readable by grub-setup.
7527
7528 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
7531 (devpath_1): Use MAKE_PIWG_PATH.
7532 (devpath_2): Likewise.
7533 (devpath_3): Likewise.
7534 (devpath_4): Likewise.
7535 (devpath_5): Likewise.
7536 (devpath_6): Likewise.
7537
7538 The appleldr.mod was checked that to be binary identical to previous
7539 version.
7540
7541 2011-05-05 Zach <mikezackles>
7542
7543 Support 2010 Macbooks.
7544
7545 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
7546 (devs): Add devpath_6.
7547
7548 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
7551 /dev/random. /dev/urandom is good enough for our purposes (salting).
7552
7553 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
7556
7557 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7558
7559 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
7560 hexadecimal.
7561
7562 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
7565 and not 0 on failure.
7566
7567 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7568
7569 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
7570 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
7571 disk; otherwise grub_fs_probe will not fall back to the next
7572 filesystem.
7573 (grub_pxefs_open): Likewise, for consistency.
7574 Reported and tested by: Ezekiel Grave.
7575
7576 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7577
7578 * tests/partmap_test.in: Don't hardcode path to parted.
7579 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
7580
7581 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
7582
7583 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
7584 of `ls' to find out which devices are available.
7585
7586 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7587
7588 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
7589 than source address for efi mmap buffer.
7590
7591 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7592
7593 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
7594 wrong action on non-detecting the magic.
7595
7596 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
7599 already supplied by another part of the module (fixes compilation on
7600 FreeBSD).
7601
7602 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
7605 match the one used by mdadm.
7606
7607 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7608
7609 * po/README: Add instructions for creating po/LINGUAS.
7610
7611 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7612
7613 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
7614 #551428.
7615
7616 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
7617 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
7618 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
7619 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7620 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
7621 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
7622 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
7623 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
7624 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
7625 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7626 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
7627 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
7628 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
7629 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
7630 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
7631 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
7632 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
7633 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
7634 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
7635 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
7636 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
7637 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
7638
7639 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7640
7641 * grub-core/kern/emu/getroot.c
7642 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
7643 test that was incorrectly reintroduced in r3214.
7644 Reported by: Ian Dall. Fixes Savannah bug #33133.
7645
7646 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7647
7648 Fix stack pointer handling in 16-bit relocator.
7649
7650 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
7651 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
7652 Fixes Ubuntu bug #683904.
7653
7654 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 * configure.ac: Bump version to 1.99~rc2.
7657
7658 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7659
7660 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
7661 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
7662 * grub-core/lib/x86_64/setjmp.S: Likewise.
7663 * grub-core/lib/mips/setjmp.S: Likewise.
7664 * grub-core/lib/powerpc/setjmp.S: Likewise.
7665 * grub-core/lib/sparc64/setjmp.S: Likewise.
7666
7667 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7668
7669 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
7670 * grub-core/lib/efi/datetime.c: Likewise.
7671
7672 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
7675 New function.
7676 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
7677 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
7678 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
7679
7680 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
7683 bitmap.
7684 (grub_gfxterm_term_init): Likewise.
7685
7686 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 Take into account the decorations the computing menu entry width.
7689
7690 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
7691 (grub_gfxmenu_create_box): Register get_border_width.
7692 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
7693 if available.
7694 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
7695 get_border_width.
7696
7697 2011-04-18 Endres Puschner <code@e7p.de>
7698
7699 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
7700 Don't skip first class.
7701
7702 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
7705 chunks.
7706 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
7707
7708 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 Complete 64-bit division support.
7711
7712 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
7713 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
7714 * include/grub/misc.h (grub_divmod64): Rename to ...
7715 (grub_divmod64_full): ... this.
7716 (grub_divmod64): New inline function.
7717
7718 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * util/grub-mkimage.c (generate_image): Add forgotten comma.
7721
7722 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7723
7724 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
7725 performing the necessary test.
7726
7727 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7728
7729 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
7730 (kfreebsd.elf): Likewise.
7731 (pc-chainloader.elf): Likewise.
7732 (ntldr.elf): Likewise.
7733
7734 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 Identify RAID by its UUID rather than (guessed) name.
7737
7738 * grub-core/disk/raid.c (ascii2hex): New function.
7739 (grub_raid_open): Accept mduuid/%s specification.
7740 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
7741 (get_mdadm_uuid): ... this.
7742 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
7743
7744 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
7745
7746 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
7747 to negative size.
7748
7749 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7750
7751 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
7752 btrfs subvolume.
7753 * util/grub.d/20_linux_xen.in: Likewise.
7754
7755 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7756
7757 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
7758 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
7759
7760 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7761 Build a list of relevant visible mounts using the mnt_id and
7762 parent_mnt_id fields, and then scan that list at the end.
7763
7764 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7765
7766 * docs/grub.texi (normal): New section.
7767 (normal_exit): New section.
7768 (Embedded configuration): Add reference to normal.
7769 (GRUB only offers a rescue shell): Likewise.
7770 * docs/grub-dev.texi (Error Handling): Fix typo.
7771
7772 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7773
7774 * NEWS: Drop obsolete entry about probe-only btrfs support.
7775
7776 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7777
7778 * util/import_gcry.py: Fix typo.
7779
7780 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * NEWS: Add btrfs support.
7783
7784 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7785 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
7786
7787 BtrFS support. Written by me (Vladimir) with important bugfixes and
7788 even more important testing by Colin.
7789
7790 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
7791 * grub-core/Makefile.core.def (btrfs): Add crc.c.
7792 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
7793 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
7794 mem_input_off and mem_input. All users updated to accept in-RAM input.
7795 (gzio_seek): New function.
7796 (test_zlib_header): Likewise.
7797 (grub_gzio_read): Likewise.
7798 (grub_zlib_decompress): Likewise.
7799 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
7800 Accept partial and non-virtual mounts.
7801 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
7802 avoid receiving /dev/dm-X as device.
7803 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
7804 Handle bind and partial mounts.
7805 * grub-core/lib/crc.c: New file.
7806 * include/grub/deflate.h: Likewise.
7807 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
7808 proto.
7809 * include/grub/lib/crc.h: New file.
7810
7811 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7812
7813 Implement automatic module license checking according to new GNU
7814 guidelines.
7815
7816 * grub-core/kern/dl.c (grub_dl_check_license): New function.
7817 (grub_dl_load_core): Use grub_dl_check_license.
7818 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
7819 (GRUB_MOD_LICENSE): Likewise.
7820 (GRUB_MOD_DUAL_LICENSE): Likewise.
7821 All modules updated.
7822
7823 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
7824
7825 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
7826 reserved_first_sector to 1. btrfs reserves plenty of space for boot
7827 loaders.
7828 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
7829
7830 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7831
7832 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
7833
7834 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 * util/grub-fstest.c (read_file): Report GRUB error if file opening
7837 failed.
7838
7839 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 * grub-core/kern/file.c (grub_file_open): Don't take into account the
7842 parenthesis in the middle of the filename.
7843
7844 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7845
7846 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
7847 rather than trying to put initrd way too high.
7848 Reported by: Ryan Lortie <desrt@desrt.ca>
7849
7850 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7851
7852 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
7853 improperly removed string.
7854
7855 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7856
7857 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
7858 is_disk.
7859 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
7860 (open_device) Likewise.
7861 (grub_util_biosdisk_close): Likewise.
7862 Reported by: Mark Korenberg.
7863
7864 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
7865
7866 * util/grub-mkconfig_lib.in: Add missing quotes.
7867
7868 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
7869
7870 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
7871 is NULL.
7872
7873 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7874
7875 Dynamically count the number of lines for the lower banner.
7876
7877 * grub-core/normal/menu_entry.c (per_term_screen): New member
7878 num_entries.
7879 (print_down): Use num_entries.
7880 (update_screen): Likewise.
7881 (grub_menu_entry_run): Set num_entries.
7882 * grub-core/normal/menu_text.c (menu_viewer_data): New member
7883 num_entries.
7884 (grub_print_message_indented): Move real part to ...
7885 (grub_print_message_indented_real): ... here. Additional argument
7886 dry_run.
7887 (draw_border): Additional argument num_entries.
7888 (print_message): Additional argument dry_run.
7889 (print_entries): Receive menu viewer data.
7890 (grub_menu_init_page): New argment num_entries.
7891 (menu_text_set_chosen_entry): Use num_entries.
7892 (grub_menu_try_text): Likewise.
7893 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
7894 All users updated.
7895 (grub_ucs4_count_lines): New function.
7896 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
7897 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
7898 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
7899 (grub_term_border_height): Likewise.
7900 (grub_term_num_entries): Likewise.
7901
7902 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7903
7904 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
7905 Remove now unused string.
7906
7907 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
7908
7909 * docs/grub-dev.texi (Finding your way around): Update for 1.99
7910 build system.
7911 (Getting started): GRUB is developed in Bazaar now, not Subversion.
7912
7913 (Comment): Fix typo.
7914 (Getting started): General copy-editing.
7915 (Typical Development Experience): Likewise.
7916 (Error Handling): Likewise.
7917 (Video API): Likewise.
7918
7919 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
7920
7921 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
7922 throughout.
7923
7924 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 * util/grub-mkimage.c (main): Handle special naming of yeeloong
7927 directory.
7928
7929 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
7930
7931 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
7932 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
7933 "development".
7934
7935 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7936
7937 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
7938 grub_strcpy since the lines aren't necessarily 0-terminated.
7939
7940 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7941
7942 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
7943 root on legacy.
7944
7945 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7946
7947 * grub-core/commands/probe.c (options): Argument to set isn't optional.
7948 (GRUB_MOD_INIT): DEVICE isn't optional.
7949
7950 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7951
7952 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
7953 word on new line if it's too long anyway. Fixes a hang.
7954
7955 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7956
7957 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
7958 const.
7959 * util/grub-setup.c (main): Reuse md device name if available.
7960 * util/raid.c (grub_util_raid_getmembers): Receive device name and
7961 not GRUB name as argument.
7962 Based on patch by: Florian Wagner <fwagner>.
7963
7964 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7967 Place mbi on low memory for better compatibility.
7968
7969 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7970
7971 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
7972
7973 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7974 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
7975
7976 * autogen.sh: Ensure that collate and ctype locale is C.
7977 * conf/Makefile.common: Likewise.
7978
7979 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7980
7981 * grub-core/normal/menu.c: Add missing include.
7982
7983 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7984
7985 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
7986
7987 2011-04-08 Martin Zuther <mzuther@mzuther.de>
7988
7989 * util/grub-mkconfig.in: Ignore emacsen backup.
7990
7991 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7992
7993 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
7994 on open.
7995 (grub_util_biosdisk_close): Likewise.
7996
7997 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7998
7999 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
8000 const attribute and use grub_isdigit.
8001
8002 2011-04-06 Andrey <dev_null@ukr.net>
8003
8004 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
8005 gcc warning.
8006
8007 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
8010 useful grub_dprintf's.
8011
8012 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8013
8014 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
8015
8016 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8017
8018 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
8019
8020 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 Output errors if theme loading failed.
8023
8024 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
8025 grub_gfxterm_fullscreen on error paths to ...
8026 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
8027 theme loading error.
8028
8029 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
8032 space for older compilers.
8033 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
8034
8035 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
8038 and report them as not RAID members since they are useless for GRUB.
8039 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8040
8041 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8042
8043 Increase LVM implementation robustness in order not to crash on
8044 configurations like pvmove. Previously code assumed that in some places
8045 only lvs or only pvs are used whereas it seems that they are used
8046 interchangeably.
8047
8048 * grub-core/disk/lvm.c (read_node): New function.
8049 (read_lv): Use read_node.
8050 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
8051 Match volumes only at the end when all lvs are found. Take both
8052 pvs (first) and lvs (second) into account.
8053 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
8054 mirror_* into node_*. All users updated.
8055 (grub_lvm_stripe): Merge this ...
8056 (grub_lvm_mirror): ... and this ...
8057 (grub_lvm_node): ... into this. All users updated.
8058
8059 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
8062 of function to allow further scanning for LVMs.
8063
8064 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
8067 on failed seek as it breaks open fd reusage.
8068
8069 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 * util/grub-install.in: Add a recommendation to use --recheck before
8072 reporting bugs.
8073
8074 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8075
8076 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
8077 are obtained.
8078
8079 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8080
8081 GRUB developper manual based on existing Internals section and
8082 contributions by the various authors with active copyright assignment.
8083
8084 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
8085 * docs/font_char_metrics.png: New file.
8086 * docs/font_char_metrics.txt: Likewise.
8087 * docs/grub-dev.texi: Likewise.
8088 * docs/grub.texi (Internals): Move from here ...
8089 * docs/grub-dev.texi: ... here.
8090
8091 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8092
8093 Store the loopback device as data on loopback grub_disk structures,
8094 rather than the file it points to. This fixes use of freed memory
8095 if an existing loopback device is replaced.
8096
8097 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
8098 disk->data, not dev->file.
8099 (grub_loopback_read): Adjust file assignment to match.
8100 Fixes Ubuntu bug #742967.
8101
8102 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8103
8104 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
8105 when replacing an existing device.
8106
8107 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
8110 memory corruptions.
8111
8112 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
8113 unsigned.
8114 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
8115 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
8116 (grub_jfs_read_inode): Likewise.
8117 (grub_jfs_opendir): Likewise. Remove now useless casts.
8118 (grub_jfs_getent): Likewise.
8119 Make ino a grub_uint32_t rather than int.
8120 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
8121 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
8122 division and module with bit operations.
8123 (grub_jfs_find_file): Make ino a grub_uint32_t.
8124 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
8125
8126 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8127
8128 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
8129 warning. (This was in fact always initialised before use, but GCC
8130 wasn't smart enough to prove that.)
8131 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
8132
8133 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
8136 stack alignment.
8137 (efi_wrap_1): Likewise.
8138 (efi_wrap_2): Likewise.
8139 (efi_wrap_3): Likewise.
8140 (efi_wrap_4): Likewise.
8141 (efi_wrap_5): Likewise.
8142 (efi_wrap_6): Likewise.
8143 (efi_wrap_10): Likewise.
8144 Based on information by: Red Hat/Peter Jones.
8145
8146 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8147
8148 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
8149 set-but-not-used variable.
8150
8151 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8152
8153 * docs/grub.texi (Simple configuration): Be more explicit about
8154 GRUB_DEFAULT, and add an example.
8155 Reported by: Leslie Rhorer.
8156
8157 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8158
8159 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
8160 shell".
8161
8162 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8163
8164 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
8165 * util/grub.d/20_linux_xen.in: Likewise.
8166
8167 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8168
8169 * util/grub.d/10_linux.in: Try alternative config filenames where
8170 we parse config file.
8171 * util/grub.d/20_linux_xen.in: Likewise.
8172
8173 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8174
8175 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
8176 * util/grub.d/20_linux_xen.in: Likewise.
8177
8178 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * grub-core/disk/raid.c (insert_array): Add few potentially
8181 useful grub_util_info.
8182 (grub_raid_register): Likewise.
8183
8184 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
8187 Preserve partition number in mdadm code path.
8188
8189 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8190
8191 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
8192 few potentially useful grub_util_info.
8193
8194 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
8197
8198 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8199
8200 * docs/grub.texi (default): Use @example rather than nested
8201 itemized lists to avoid breaking gendocs.
8202
8203 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8204
8205 * docs/grub.texi (Future): Update.
8206
8207 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8208
8209 * docs/grub.texi (Environment): New chapter.
8210 (Changes from GRUB Legacy): Link to "Environment block" section for
8211 details of limitations.
8212 (Simple configuration): Likewise. Link to documentation of gfxmode
8213 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
8214 respectively.
8215 (Shell-like scripting): Note that normal variables are stored in the
8216 environment.
8217 (gettext): Link to documentation of lang and locale_dir.
8218 (list_env): New section.
8219 (load_env): New section.
8220 (save_env): New section.
8221
8222 (Reporting bugs): Fix typo.
8223
8224 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8225
8226 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
8227 the example.
8228
8229 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8230
8231 * grub-core/term/at_keyboard.c (set_scancodes)
8232 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
8233
8234 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8235
8236 * docs/grub.texi (Menu-specific commands): Remove some semantics
8237 that were true in GRUB Legacy but not in GRUB 2.
8238 (submenu): New section.
8239 (false): New section.
8240 (read): New section.
8241 (true): New section.
8242
8243 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8244
8245 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
8246
8247 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8248
8249 * docs/grub.texi (Simple configuration): Explain some of the
8250 current limitations of grub-mkconfig.
8251 Reported by: Leslie Rhorer.
8252
8253 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8254
8255 Old macs search for boot.efi rather than for bootia32.efi.
8256
8257 * util/grub-install.in: Copy bootia32.efi to boot.efi.
8258 * util/grub-mkrescue.in: Likewise.
8259 Suggested by: Peter Jones.
8260
8261 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8262
8263 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
8264
8265 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
8268 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
8269 (grub_lvm_mirror): New struct.
8270 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
8271 (grub_lvm_iterate): Iterate only visible volumes.
8272 (grub_lvm_read): Factor out to ..
8273 (read_lv): ... this. Support mirrors.
8274 (grub_lvm_read): New wrapper function.
8275 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
8276 stripped or mirrored.
8277
8278 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
8281
8282 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8283
8284 * docs/grub.texi (loopback): New section.
8285
8286 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8287
8288 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
8289 removed -p option.
8290
8291 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8292
8293 * docs/grub.texi (BIOS installation): New section, partly based on
8294 previous text in other sections.
8295 (Installing GRUB using grub-install): Replace BIOS discussion with a
8296 cross-reference.
8297 (Images): Likewise.
8298
8299 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8300
8301 * grub-core/kern/emu/hostdisk.c (find_partition_start)
8302 [HAVE_DIOCGDINFO]: Add safety checks.
8303
8304 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8305
8306 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
8307 per default compiled in kernel and prior to 8.0 isn't shipped at all.
8308
8309 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8310
8311 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
8312 real_sb->size is zero (e.g. RAID-0), get the disk size from
8313 real_sb->data_size instead.
8314 Fixes Ubuntu bug #743136.
8315
8316 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8317
8318 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
8319 printf clauses for printing size and start.
8320
8321 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8322
8323 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
8324 Reported and tested by: Timothy Nikkel.
8325
8326 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8327
8328 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
8329 (dirty_region_add_real): ... this.
8330 (dirty_region_add): Don't discard margin refresh when performing
8331 scheduled repaint.
8332
8333 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8334
8335 * grub-core/lib/relocator.c (allocate_regstart)
8336 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
8337 terminals are capabple of malloc-free operation.
8338 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8339 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8340
8341 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
8342
8343 * util/grub-setup.c: Copy the partition table zone if floppy support
8344 is disabled, even if no partition table is found.
8345
8346 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
8347 during POST if an invalid partition table is contained in the PBR
8348 of the active partition when GRUB is installed to a partition.
8349
8350 2011-03-28 Colin Watson <cjwatson@debian.org>
8351
8352 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
8353 comment.
8354
8355 2011-03-28 Colin Watson <cjwatson@debian.org>
8356
8357 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
8358 to be specific about what kind of RAID device we're scanning for.
8359
8360 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
8361
8362 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
8363 return freed string.
8364
8365 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8366
8367 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
8368
8369 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8370
8371 Use libgeom on FreeBSD to detect partitions.
8372
8373 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
8374 (grub-mkrelpath): Likewise.
8375 (grub-script-check): Likewise.
8376 (grub-editenv): Likewise.
8377 (grub-mkpasswd-pbkdf2): Likewise.
8378 (grub-fstest): Likewise.
8379 (grub-mkfont): Likewise.
8380 (grub-mkdevicemap): Likewise.
8381 (grub-probe): Likewise.
8382 (grub-setup): Likewise.
8383 (grub-ofpathname): Likewise.
8384 (grub-mklayout): Likewise.
8385 (example_unit_test): Likewise.
8386 (grub-menulst2cfg): Likewise.
8387 * grub-core/Makefile.core.def (grub-emu): Likewise.
8388 (grub-emu-lite): Likewise.
8389 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
8390 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
8391 define HAVE_DIOCGDINFO.
8392 (follow_geom_up) [FreeBSD]: New function.
8393 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
8394 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
8395 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
8396 unconditionally of HAVE_DIOCGDINFO.
8397
8398 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8399
8400 Fix FreeBSD compilation problem.
8401
8402 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
8403 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
8404
8405 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
8406
8407 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
8408 Switch back to page zero before loading a kernel, since some kernel
8409 drivers expect that.
8410 Thanks to: Felix Kuehling.
8411
8412 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
8415 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
8416 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
8417
8418 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8419
8420 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
8421 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
8422
8423 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8424
8425 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
8426 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
8427 malloc is disabled.
8428
8429 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
8432 for modules headers when counting the needed allocation size.
8433
8434 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8435
8436 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
8437 if no ASCII character is found to prevent crash.
8438
8439 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
8440
8441 * grub-core/video/bitmap.c (match_extension): Ignore case.
8442
8443 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
8446
8447 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8448
8449 * grub-core/script/parser.y: Declare "time" as valid argument.
8450
8451 2011-03-23 Peter Jones <pjones@redhat.com>
8452
8453 Fix incorrect assert failure reporting.
8454
8455 * grub-core/tests/example_functional_test.c (example_test): Add
8456 a failure comment.
8457 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
8458 (failure_start): ...this. Check that malloc succeeded.
8459 Don't call xvasprintf. Return failure struct.
8460 (failure_append_vtext): New function.
8461 (failure_append_text): Likewise.
8462 (add_failure): Likewise.
8463 (grub_test_assert_helper): Likewise.
8464 * include/grub/test.h (grub_test_assert_helper): New declaration.
8465 (grub_test_assert): Macro rewritten.
8466
8467 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8468
8469 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
8470
8471 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8472
8473 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
8474
8475 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
8478 into GRUB-style one.
8479
8480 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
8483 error and not grub_errno.
8484 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
8485
8486 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8487
8488 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
8489 GRUB_USB_SPEED_NONE in case of failure and not the error code.
8490
8491 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8492
8493 * grub-core/efiemu/i386/pc/cfgtables.c
8494 (grub_machine_efiemu_init_tables): Make declaration a prototype.
8495 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
8496 (grub_xnu_unlock): Likewise.
8497 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
8498
8499 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
8502 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
8503 * grub-core/commands/hashsum.c (aliases): Likewise.
8504 * grub-core/commands/setpci.c (pci_registers): Likewise.
8505 * grub-core/disk/usbms.c (attach_hook): Likewise.
8506 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
8507 (zio_checksum_table): Likewise.
8508 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
8509 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
8510 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
8511 * grub-core/lib/relocator.c (leftovers): Likewise.
8512 (extra_blocks): Likewise.
8513 * grub-core/loader/i386/bsd.c (relocator): Likewise.
8514 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
8515 (modules_last): Likewise.
8516 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
8517 (devices): Likewise.
8518 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
8519 (modules_last): Likewise.
8520 * grub-core/normal/auth.c (users): Likewise.
8521 * grub-core/normal/context.c (initial_menu): Likewise.
8522 (current_menu): Likewise.
8523 * grub-core/normal/crypto.c (crypto_specs): Likewise.
8524 * grub-core/term/serial.c (grub_serial_ports): Likewise.
8525 (grub_serial_terminfo_input_template): Likewise.
8526 (grub_serial_terminfo_output_template): Likewise.
8527 (grub_serial_terminfo_input): Likewise.
8528 (grub_serial_terminfo_output): Likewise.
8529 (registered): Likewise.
8530 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
8531
8532 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
8535 grub_video_mode_type_t.
8536 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
8537 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
8538 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
8539
8540 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8541
8542 * util/grub-install.in: Correct the x86-64 name as x86_64.
8543
8544 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
8545
8546 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
8547 initial chunk read from the kernel always includes GRUB's multiboot
8548 header, which is now outside the first sector.
8549
8550 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8551
8552 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
8553 cached mmap_size, so that this works correctly when called multiple
8554 times.
8555 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
8556
8557 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8558
8559 * docs/grub.texi (Simple configuration): Tidy up formatting.
8560
8561 2011-03-07 Szymon Janc <szymon@janc.net.pl>
8562
8563 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
8564 Set-but-not-used variable removed.
8565
8566 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8567
8568 Workaround yet another IEEE1275 bug.
8569
8570 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8571 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
8572 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
8573 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
8574 is set.
8575 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8576 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
8577
8578 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8579
8580 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
8581 error.
8582
8583 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
8584
8585 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
8586 empty, since in that case we can only generate either nothing or a
8587 syntactically invalid configuration file.
8588 Reported by: Michal Suchanek. Fixes Debian bug #612898.
8589
8590 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8591
8592 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
8593 (Making a GRUB bootable CD-ROM): Likewise.
8594 (Invoking grub-mkrescue): New section.
8595 Reported by: Yann Dirson. Fixes Debian bug #612585.
8596
8597 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8598
8599 * util/grub-install.in: Remove unnecessary brackets from tr
8600 arguments.
8601 * util/grub.d/10_hurd.in: Likewise.
8602 * util/grub.d/10_kfreebsd.in: Likewise.
8603 * util/grub.d/10_linux.in: Likewise.
8604 * util/grub.d/20_linux_xen.in: Likewise.
8605 Reported by: Jamie Heilman. Fixes Debian bug #612564.
8606
8607 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
8608
8609 * include/grub/file.h (not_easly_seekable): Rename to ...
8610 (not_easily_seekable): ... this. Update all users.
8611
8612 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
8613
8614 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
8615 grub-mkrescue.
8616
8617 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8618
8619 * util/grub-mkimage.c (generate_image): Refuse to create the images
8620 bigger than the actual flash (512K) in Loongson machines. 512K is also
8621 the biggest chip supported by them.
8622
8623 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8624
8625 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
8626
8627 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
8628
8629 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
8630 super_offset field.
8631
8632 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8633
8634 * util/grub-install.in: Ignore install device on platforms
8635 where it doesn't make sense. Always use UUIDs except on pc, efi and
8636 sparc64.
8637 Reported by: Daniel Kahn Gillmor.
8638
8639 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
8642
8643 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8644
8645 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
8646 (iterate_real): Don't rely on partition being non-NULL.
8647
8648 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8649
8650 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
8651 supported platforms. Put a compile time assert for this rather than
8652 generate a warning with 32-bit shift.
8653
8654 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
8657 logical expression more readable.
8658
8659 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8660
8661 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
8662 even if some elements have a name.
8663 Reported by: Alexander GQ Gerasiov.
8664
8665 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8666
8667 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
8668 path unreadable if `grub-probe -t abstraction' fails, for example if
8669 memberlist fails on an LVM volume group.
8670 Reported by: Darius Jahandarie.
8671
8672 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8673
8674 * docs/grub.texi (Simple configuration): Document
8675 GRUB_PRELOAD_MODULES.
8676
8677 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
8678
8679 * .bzrignore: Remove nonexistent grub-pbkdf2.
8680
8681 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * configure.ac: Bump version to 1.99~rc1.
8684
8685 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
8688 for safety.
8689
8690 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
8693 module.
8694
8695 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8696
8697 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
8698
8699 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
8702 diskdevid.
8703
8704 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 Fix compilation on cygwin.
8707
8708 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
8709 -R .drectve on cygwin.
8710 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
8711 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
8712 (COND_CYGWIN): New condition.
8713 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
8714 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
8715 not @TARGET_OBJ2ELF@.
8716 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
8717 type to determine whether aux is to be used.
8718
8719 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8720
8721 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
8722 realpath'ed device string.
8723 Handle floppy (somewhat).
8724 Issue error in unknown case rather than garbage.
8725 Reported by: Axel Beckert.
8726
8727 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8728
8729 * util/grub.d/00_header.in (load_video): Handle the case when no video
8730 drivers available.
8731 Thanks to: Axel Beckert.
8732
8733 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
8736 variable. Fixes problem on big endian platforms.
8737
8738 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8739
8740 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
8741 It doesn't work well there.
8742
8743 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8744
8745 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
8746 warning.
8747 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
8748 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
8749 counter.
8750
8751 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8752
8753 Use alias->path rather than buggy "canon".
8754
8755 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
8756 (ofdisk_hash_add): New argument curcan. All users updated.
8757
8758 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8759
8760 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
8761
8762 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8763
8764 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
8765 loadmask before doing any calculations. Use correct type for offset.
8766 (grub_linux_load64): Likewise.
8767
8768 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8769
8770 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
8771 with NULL.
8772 (console_grub_equivalences_unshift): Likewise.
8773 Reported by: Daniel Dehennin.
8774
8775 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
8778 (set_env_limn_ro): Likewise.
8779 (GRUB_MOD_INIT): Likewise.
8780 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
8781 ARRAY_SIZE while on it.
8782 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
8783 * grub-core/normal/context.c (grub_env_export): Move from here ...
8784 * grub-core/kern/env.c (grub_env_export): ... here.
8785 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
8786 prefix.
8787 * grub-core/kern/main.c (grub_main): Export root and prefix.
8788 * include/grub/env.h (grub_env_export): Export.
8789 Reported by: Seth Goldberg.
8790
8791 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8794 Take into account space used by ELF sections and multiboot palette.
8795 Reported by: Grégoire Sutre.
8796
8797 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 * BUGS: New file.
8800
8801 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8802
8803 Pass more appropriate video id to Linux.
8804
8805 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
8806 grub_video_get_driver_id and variable gfxpayloadforcelfb to
8807 fill have_vga.
8808 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
8809 shift params->lfb_size.
8810 * include/grub/i386/linux.h: Make an enume out of have_vga values.
8811
8812 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 * util/grub-menulst2cfg.c: Add missing include of misc.h.
8815
8816 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8817
8818 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
8819 separator and pass bootpath/devid even if only one of them is available.
8820 Reported by: Seth Goldberg.
8821
8822 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
8825 implementations bug on them.
8826
8827 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
8828 memory.
8829 (filter_memory_map): Likewise.
8830
8831 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
8834 Reported by: nebuchadnezzar.
8835
8836 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
8839 Reported by: nebuchadnezzar.
8840
8841 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 Submenu default support.
8844
8845 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
8846 auto_boot. All users updated.
8847 Declared static.
8848 Handle chosen and default with submenus.
8849 (grub_menu_execute_with_fallback): Declared static.
8850 Don't notify failure if autobooted. Upper level does it.
8851 (menuentry_eq): New function.
8852 (get_entry_number): Use menuentry_eq.
8853 (show_menu): New parameter "autobooted". All users updated.
8854 (grub_show_menu): Likewise.
8855 * include/grub/normal.h (grub_show_menu): Likewise.
8856 * include/grub/menu.h (grub_menu_execute_entry): Removed.
8857 (grub_menu_execute_with_fallback): Likewise.
8858
8859 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 * util/grub-mklayout.c (usage): Update help text.
8862
8863 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
8866
8867 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8868
8869 * util/grub-menulst2cfg.c (main): Trim the line.
8870
8871 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
8874 (grub_machine_init): Don't check amount of low memory as reportedly
8875 INT 12h can be broken and if low memory is too low we wouldn't have
8876 gotten into grub_machine_init anyway.
8877
8878 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
8881 (grub_machine_mmap_iterate): Take low memory into account
8882
8883 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8884
8885 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
8886 badfs.
8887 Reported by: TiCPU.
8888
8889 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
8892 members errors.
8893
8894 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
8895
8896 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
8897 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
8898
8899 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
8900
8901 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
8902 openbsd and netbsd types being in part_bsd module.
8903
8904 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
8907 (_FILE_OFFSET_BITS): Likewise.
8908 Reported by: Seth Goldberg.
8909
8910 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8911
8912 * configure.ac: Check for libdevmapper header.
8913
8914 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
8917 avoid aliasing.
8918 (fzap_lookup): Likewise.
8919 (dnode_get): Likewise.
8920 (make_mdn): Likewise.
8921 (zfs_mount): Likewise.
8922 (fzap_iterate): Use temporary pointer to avoid aliasing.
8923 (grub_zfs_read): Likewise.
8924 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
8925 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
8926 pointers to avoid aliasing.
8927 (grub_cmd_xnu_kernel64): Likewise.
8928 (grub_xnu_load_driver): Likewise.
8929
8930 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
8933 aliasing warning.
8934 (grub_cmd_terminal_output): Likewise.
8935 Reported and tested by: Grégoire Sutre.
8936
8937 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
8940 warning.
8941 Reported and tested by: Grégoire Sutre.
8942
8943 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * configure.ac: Do CPU substitution even if it's specified explicitly.
8946 Reported and tested by: Alain Greppin.
8947
8948 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8949
8950 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
8951 Reported and tested by: Alain Greppin.
8952
8953 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 Satisfy some bison versions need for inttypes.h.
8956
8957 * grub-core/lib/posix_wrap/inttypes.h: New file.
8958 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
8959 (int16_t): Likewise.
8960 (int32_t): Likewise.
8961 (int64_t): Likewise.
8962 Reported and tested by: Alain Greppin.
8963
8964 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8965
8966 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
8967 Silence spurious warning.
8968 Reported and tested by: Alain Greppin.
8969
8970 2011-01-07 Szymon Janc <szymon@janc.net.pl>
8971
8972 * docs/grub.texi (Support automatic decompression): Update with xz
8973 decompression support.
8974
8975 2011-01-07 Szymon Janc <szymon@janc.net.pl>
8976
8977 Improve loaders' kernel command line handling.
8978
8979 * grub-core/lib/cmdline.c: New file.
8980 * include/grub/lib/cmdline.h: Likewise.
8981 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
8982 grub_create_loader_cmdline to create kernel command line.
8983 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8984 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
8985 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
8986 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
8987 (linux): Add lib/cmdline.c on common.
8988
8989 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
8992 inopos might be unaligned.
8993
8994 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
8997 endian transformations.
8998 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8999 Based on report by: Doug Nazar.
9000
9001 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
9002
9003 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
9004 array->members[i].start_sector.
9005 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9006
9007 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9008
9009 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
9010 Reported and tested by: Grégoire Sutre.
9011
9012 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9013
9014 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
9015 avoid causing test failures by clearing the screen.
9016
9017 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9018
9019 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
9020 Fix prefix check to handle the case where dir ends with a slash
9021 (most significantly, "/" itself).
9022 Reported by: Michael Vogt.
9023
9024 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9025
9026 Run terminfo_cls on initing terminfo output to clear the screen and
9027 move the cursor to (0,0).
9028
9029 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
9030 Call grub_terminfo_output_init.
9031 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
9032 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
9033 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
9034
9035 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9036
9037 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
9038 only when needed.
9039
9040 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9041
9042 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
9043 CTRL.
9044
9045 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 The E820 type 5 is BADRAM, not EXEC_CODE.
9048
9049 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9050 (GRUB_E820_BADRAM): New define.
9051 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
9052 into reserved. Propagate BADRAM.
9053 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9054 (GRUB_E820_BADRAM): New define.
9055
9056 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9057
9058 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
9059 Ignore the memory post-4G.
9060 (grub_relocator_firmware_alloc_region): Additional debug statement.
9061
9062 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
9065 names.
9066 Reported by: David Pravec.
9067
9068 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
9071 BIOSes.
9072
9073 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9074
9075 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
9076 Prevent overflow.
9077 (grub_reed_solomon_recover): Likewise.
9078
9079 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9080
9081 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
9082
9083 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
9086 variable.
9087
9088 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
9089
9090 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
9091 descriptions of extract_legacy_entries_source and
9092 extract_legacy_entries_configfile.
9093 Reported by: Seung Soo, Ha.
9094
9095 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
9096
9097 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
9098 on devices that do not implement function 0.
9099
9100 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
9101
9102 * grub-core/fs/hfsplus.c: Make parent unsigned.
9103 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
9104 overflows.
9105 (grub_hfsplus_cmp_extkey): Likewise
9106
9107 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 * util/grub-install.in: Correctly use bootloader_id and not
9110 GRUB_DISTRIBUTOR on efibootmgr line.
9111
9112 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9113
9114 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
9115
9116 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
9117
9118 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
9119 Xen and reorder menu item wording to make it clearer that this entry
9120 will launch Xen. Print separate messages when loading Xen and
9121 Linux.
9122
9123 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
9126 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
9127 loop in case of incorrect amiga partmap.
9128
9129 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
9132 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
9133 Reported by:EHeM.
9134
9135 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9136
9137 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
9138 spurious warning.
9139 Reported by: crocket
9140
9141 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
9144 Preload EFIemu.
9145 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
9146
9147 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
9150 is loaded
9151 (grub_cmd_xnu_kextdir): Likewise.
9152 (grub_cmd_xnu_splash): Likewise.
9153
9154 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 Avoid using Reed-Solomon with 0 redundancy.
9157
9158 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
9159 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
9160 or 0 redundancy.
9161 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
9162 (grub_reed_solomon_recover): Likewise.
9163
9164 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 Don't use disk subsystem in freebsd_boot.
9167
9168 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
9169 (freebsd_biosdev): Likewise.
9170 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
9171 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
9172
9173 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 Handling of files of unknown size is currently limited. They can't be
9176 used e.g. for initrd or modules. Moreover gzip handling of not
9177 easily seekable files is buggy. Disable unknown file size for now. May
9178 be inefficient but works.
9179
9180 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
9181 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
9182
9183 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
9184
9185 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
9186 floppy probe.
9187
9188 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
9189
9190 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
9191
9192 2010-12-25 Shea Levy <shlevy>
9193
9194 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
9195
9196 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9197
9198 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
9199 Windows Server 2008.
9200 Reported by: Devin Giddings.
9201
9202 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9203
9204 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
9205 writing an error message because of async power management.
9206 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
9207 (grub_reboot): Likewise.
9208
9209 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
9210
9211 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
9212 keep unit tests from failing when they shouldn't.
9213
9214 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9215
9216 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
9217 previous patch increased the size of the RS code by 20 bytes (at
9218 least with gcc-4.4), so increase this by 20 bytes to match.
9219 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9220
9221 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9222
9223 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
9224 scratch area. Make sure to initialise chosen in standalone mode as
9225 well as non-standalone.
9226 Reported by: Robert Hooker and Andy Whitcroft.
9227 Tested by: Andy Whitcroft.
9228
9229 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9230
9231 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
9232 constructing a new unescaped string and passing it to grub_xputs in
9233 one go, rather than passing characters to grub_printf one at a time.
9234
9235 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9236
9237 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
9238 initialising utf16.
9239
9240 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9241
9242 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
9243 comment. Add an extra layer of quotation, requiring the output of
9244 this function to be used in a printf format string.
9245 (gettext_printf): New function.
9246 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
9247 Extract translatable strings from here-documents and use a temporary
9248 variable instead, so that xgettext can find them.
9249 * util/grub.d/10_kfreebsd.in: Likewise.
9250 * util/grub.d/10_linux.in: Likewise.
9251 * util/grub.d/20_linux_xen.in: Likewise.
9252
9253 * po/grub.d.sed: New file.
9254 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
9255 arguments. Set c-format flags on all strings extracted from
9256 util/grub.d/ (xgettext refuses to include these itself for strings
9257 it extracted from a shell file, but these really are c-format).
9258
9259 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9260
9261 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
9262 Avoid next pointing to nowhere.
9263
9264 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9265
9266 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
9267 rather than assuming than rootblock is exactly in the middle.
9268 (grub_affs_label): Likewise.
9269
9270 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
9273 reserved_first_sector to 0.
9274 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
9275 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
9276 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
9277
9278 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 Fix handling of UTF-16 UDF labels.
9281
9282 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
9283 (read_string): .. here.
9284 (grub_udf_label): Use read_string.
9285
9286 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
9287
9288 * grub-core/normal/menu_entry.c (run): Execute commands from menu
9289 editor under argument scope.
9290 Reported by: Jordan Uggla
9291
9292 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9293
9294 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
9295
9296 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
9297
9298 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
9299 line, and other keys scroll an entire page (previous handling was
9300 for \r and \n to scroll a page and other keys to scroll two lines).
9301
9302 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9305 Set ptrdest to correct get_physical_target_address rather than
9306 incorrect get_virtual_current_address.
9307
9308 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
9309
9310 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
9311 correct cat to grub_uint8_t * rather than grub_uint32_t *.
9312
9313 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9314
9315 * .bzrignore: Ignore grub-core/rs_decoder.S.
9316
9317 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9318
9319 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
9320 .mo/.mo.gz opening sequence to ...
9321 (grub_mofile_open_lang): ... here.
9322 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
9323 * util/grub.d/00_header.in (grub_lang): Include country part of
9324 locale.
9325 Reported by: Mario Limonciello.
9326
9327 2010-12-09 Robert Millan <rmh@gnu.org>
9328
9329 * NEWS: Document addition of ZFS support.
9330
9331 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
9332
9333 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
9334 rather than `/ 2', as the latter requires -Wa,--divide which would
9335 require bumping our minimum binutils version.
9336
9337 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
9338
9339 * util/grub-script-check.c (main): Print script line number on
9340 error.
9341
9342 2010-12-01 Robert Millan <rmh@gnu.org>
9343
9344 * grub-core/fs/zfs/zfs.c: New file.
9345 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
9346 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
9347 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
9348 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9349
9350 * include/grub/zfs/dmu.h: Likewise.
9351 * include/grub/zfs/dmu_objset.h: Likewise.
9352 * include/grub/zfs/dnode.h: Likewise.
9353 * include/grub/zfs/dsl_dataset.h: Likewise.
9354 * include/grub/zfs/dsl_dir.h: Likewise.
9355 * include/grub/zfs/sa_impl.h: Likewise.
9356 * include/grub/zfs/spa.h: Likewise.
9357 * include/grub/zfs/uberblock_impl.h: Likewise.
9358 * include/grub/zfs/vdev_impl.h: Likewise.
9359 * include/grub/zfs/zap_impl.h: Likewise.
9360 * include/grub/zfs/zap_leaf.h: Likewise.
9361 * include/grub/zfs/zfs.h: Likewise.
9362 * include/grub/zfs/zfs_acl.h: Likewise.
9363 * include/grub/zfs/zfs_znode.h: Likewise.
9364 * include/grub/zfs/zil.h: Likewise.
9365 * include/grub/zfs/zio.h: Likewise.
9366 * include/grub/zfs/zio_checksum.h: Likewise.
9367
9368 * Makefile.util.def: Build ZFS into libgrubmods.
9369 * grub-core/Makefile.core.def: Build zfs.mod.
9370
9371 2010-11-30 Szymon Janc <szymon@janc.net.pl>
9372
9373 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
9374 variable.
9375 * grub-core/commands/wildcard.c (match_files): Likewise.
9376
9377 2010-11-30 Robert Millan <rmh@gnu.org>
9378
9379 * grub-core/loader/i386/bsd.c
9380 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
9381 whether kernel is loaded using grub_loader_is_loaded(), rather
9382 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
9383 certain error conditions.
9384
9385 2010-11-30 Robert Millan <rmh@gnu.org>
9386
9387 * grub-core/commands/echo.c: Include `<grub/term.h>'.
9388 (grub_cmd_echo): Call grub_refresh() after printing a message.
9389
9390 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9391
9392 Avoid using tricks for initialising endian variables.
9393
9394 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
9395 Make const.
9396 (GRUB_MOD_INIT): Don't byte-swap.
9397 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9398 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
9399 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
9400 (grub_swap_bytes32_compile_time): Likewise.
9401 (grub_cpu_to_le32_compile_time): Likewise.
9402 (grub_cpu_to_le16_compile_time): Likewise.
9403
9404 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 * util/grub-setup.c (setup): Stop recommending --force. People who
9407 understand the dangers of blocklists are able to find this option
9408 anyway and the ones who don't shouldn't use it anyway.
9409
9410 2010-11-26 Robert Millan <rmh@gnu.org>
9411
9412 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
9413 Update all users.
9414
9415 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
9416
9417 Fix LVM-on-RAID probing.
9418
9419 * util/grub-probe.c (probe): Remember which disk was detected as
9420 RAID (perhaps an LVM physical volume). Use that disk's raidname
9421 rather than that of the top-level disk.
9422
9423 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
9424
9425 Fix cmdline argument quotes for setparams command of menuentry
9426 definitions.
9427
9428 * grub-core/commands/menuentry.c (setparams_prefix): Use single
9429 quotes for arguments.
9430 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
9431 grub_strchrsub function instead.
9432
9433 * include/grub/misc.h (grub_strchrsub): New function.
9434
9435 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9436
9437 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
9438 effort by skipping "." and ".." entries up-front.
9439 Suggested by: Michael Lazarev.
9440
9441 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9442
9443 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
9444 ldflags to ldadd, to fix link line ordering.
9445 (none_decompress): Likewise.
9446
9447 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9448
9449 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
9450 platforms.
9451 (grub-emu-lite): Remove kern/emu/cache.S.
9452
9453 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9454
9455 * util/deviceiter.c (compare_devices): If the by-id link for a
9456 device couldn't be resolved, fall back to sorting by the by-id link
9457 rather than segfaulting.
9458 Reported and tested by: Daniel Mierswa.
9459
9460 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9461
9462 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
9463 ldflags, to fix link line ordering.
9464
9465 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9466
9467 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
9468 linkers are picky about this.
9469
9470 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9471
9472 * grub-core/Makefile.am (command.lst): Adjust sed expression
9473 ordering so that extended and priority commands aren't treated as
9474 ordinary commands.
9475
9476 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9477
9478 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9479 Remove byte-swapping function calls, which are not valid in
9480 structure initialisers.
9481 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
9482 non-const.
9483 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
9484 grub_gpt_partition_type_bios_boot.
9485
9486 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9487
9488 Fix test program build on GNU/kFreeBSD.
9489
9490 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
9491 $(LIBNVPAIR)' library dependencies.
9492
9493 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9494
9495 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
9496
9497 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9498
9499 * util/grub-install.in: Remove excessive quoting that broke
9500 installations to RAID devices.
9501
9502 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9503
9504 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
9505 bootloader version instead of 0.
9506
9507 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
9510 warning.
9511
9512 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
9515 retrieve the metadat sector if size isn't known.
9516 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9517
9518 2010-11-18 Robert Millan <rmh@gnu.org>
9519
9520 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
9521 with grub_memcmp().
9522
9523 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
9524
9525 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
9526 arrow.
9527 Reported by: Jordan Uggla.
9528
9529 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9530
9531 Make better UTF compliant.
9532
9533 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
9534 sequences as incorrect.
9535 (grub_is_valid_utf8): Likewise.
9536 (grub_utf8_to_ucs4): Likewise.
9537 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
9538 (grub_ucs4_to_utf8_alloc): Likewise.
9539 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
9540
9541 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9542
9543 Make legacy_source behave like source.
9544
9545 * grub-core/commands/legacycfg.c (legacy_file): Don't call
9546 grub_show_menu.
9547 (grub_cmd_legacy_source): Call grub_show_menu if needed.
9548
9549 2010-11-16 Colin Watson <cjwatson@debian.org>
9550
9551 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
9552 (-Wunused implies -Wunused-parameter, but not vice versa).
9553
9554 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
9555
9556 * configure.ac: Make error messages less confusing by testing for
9557 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
9558 accepted, but produces a diagnostic if something else is wrong).
9559
9560 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
9563 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
9564 (now unused).
9565 (grub_keyboard_controller_init)
9566 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
9567 read the initial state since controller isn't inited yet.
9568
9569 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9570
9571 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
9572 allocate_regbeg may need to create new chunk header.
9573
9574 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9575
9576 Fix quoting in legacy parser.
9577
9578 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
9579 single quotes.
9580 (grub_legacy_parse): Likewise.
9581 Reported by: Jordan Uggla.
9582 Tested by: Jordan Uggla.
9583
9584 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9585
9586 Don't add -lgcc on i386 and x86_64.
9587
9588 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
9589 * conf/Makefile.common (LDADD_KERNEL): Likewise.
9590 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
9591
9592 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9593
9594 * configure.ac: Add -Wno-trampolines when supported.
9595
9596 2010-11-14 Modestas Vainius <modax@debian.org>
9597
9598 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
9599 fakeraid.
9600
9601 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9602
9603 Add generic logical block size support for UDF.
9604
9605 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
9606 (GRUB_UDF_BLKSZ): Removed.
9607 (struct grub_udf_data): New field "lbshift" to hold the logical block
9608 size of the file system in log2 format. All users updated.
9609 (sblocklist): Change type to unsigned.
9610 (grub_udf_mount): Change type of "sblklist" to unsigned.
9611 Move AVDP search before VRS recognition, because the latter requires
9612 knowledge of the logical block size, which is detected during the
9613 former.
9614 Detect and validate logical block size during AVDP search, adding
9615 support for block sizes 512, 1024 and 4096.
9616 Make VRS recognition independent of block size.
9617
9618 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9619
9620 Properly handle deleted files on UDF.
9621
9622 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
9623 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
9624 set.
9625
9626 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9627
9628 Support reading files larger than 2 GiB.
9629
9630 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
9631 "offset" to grub_off_t.
9632 (grub_udf_read_file): Likewise for parameter "pos".
9633
9634 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
9637 unavailable.
9638 (Simple configuration): Refer to Changes from GRUB Legacy about
9639 save_env availability.
9640
9641 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9642
9643 * util/grub-install.in: Ignore empty partition table detection
9644 instead of trying to include part_ module.
9645
9646 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
9649 LVM on RAID support.
9650
9651 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 Properly define WORDS_BIGENDIAN in wrapped environments.
9654
9655 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
9656 definition.
9657 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
9658
9659 Reported by: Manoel Rebelo Abranches.
9660 Tested by: Manoel Rebelo Abranches.
9661
9662 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 * util/grub-mkconfig.in: Fix quoting.
9665
9666 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 Support big ext2 files.
9669
9670 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
9671 (grub_ext2_read_block): Support triple indirect blocks.
9672 (grub_ext2_read_file): Use 64-bit types and read size_high.
9673 (grub_ext2_open): Read size_high.
9674 Reported by: Ximin Luo.
9675 Tested by: Manoel Rebelo Abranches.
9676
9677 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 * util/grub-install.in: Handle filenames containing spaces.
9680 Reported by: Jordan Uggla.
9681 Tested by: Jordan Uggla.
9682
9683 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9684
9685 * util/grub-mkconfig.in (grub_script_check): New variable.
9686 Use grub_script_check instead of grub-script-check.
9687 Reported by: Barry Jackson.
9688
9689 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9690
9691 * docs/grub.texi (menu): Correct the order.
9692 Reported by: D. Hugh Redelmeier.
9693
9694 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9695
9696 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
9697 jump.
9698
9699 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
9700
9701 * include/grub/elfload.h (grub_elf32_size): New parameter.
9702 All users updated.
9703 Return maximum segments alignment.
9704 (grub_elf64_size): Likewise.
9705 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
9706 Return maximum segments alignment.
9707 (grub_elf64_size): Likewise.
9708 * grub-core/loader/powerpc/ieee1275/linux.c:
9709 (grub_linux_claimmap_iterate): New function. Uses the
9710 "available" property in the "memory" node for memory allocation
9711 for kernel in the PowerPC loader.
9712 (grub_linux_load32): Correctly find linux entry point offset.
9713 (grub_linux_load64): Likewise.
9714
9715 2010-11-07 Robert Millan <rmh@gnu.org>
9716
9717 On mips-yeeloong, build with -march=loongson2f when this flag is
9718 available (GCC >= 4.4).
9719 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
9720 `-march=mips3'.
9721 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
9722 or otherwise add -march=mips3.
9723
9724 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
9725
9726 Suppress shell expansion on echo '*' and echo "*" like cases.
9727 Reported by: Jordan Uggla.
9728
9729 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9730 string arguments before shell expansion.
9731 * tests/grub_cmd_echo.in: New testcases.
9732
9733 2010-11-07 Robert Millan <rmh@gnu.org>
9734
9735 * conf/mips-qemu-mips.rmk: Remove stale file from previous
9736 transition.
9737
9738 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
9739
9740 * grub-core/kern/emu/hostdisk.c
9741 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
9742
9743 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9744
9745 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
9746 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
9747 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
9748
9749 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9750
9751 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
9752
9753 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9754
9755 * util/grub-install.in: Replace useless recomendation to pass
9756 --modules with a recomendation to report a bug.
9757
9758 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 Properly register serial terminfo.
9761 Reported by: Jordan Uggla
9762
9763 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
9764 const.
9765 (grub_serial_terminfo_output_template): Likewise.
9766 (grub_cmd_serial): Register "serial" with terminfo.
9767 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
9768 grub_serial_terminfo_output.
9769
9770 2010-11-05 Robert Millan <rmh@gnu.org>
9771
9772 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
9773 needed).
9774
9775 2010-11-05 Robert Millan <rmh@gnu.org>
9776
9777 On Yeeloong, pass machine type information to Linux.
9778
9779 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
9780 (LOONGSON_MACHTYPE): New macro, set to
9781 "machtype=lemote-yeeloong-2f-8.9inches".
9782 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
9783 additional argument to Linux.
9784
9785 2010-11-04 Robert Millan <rmh@gnu.org>
9786
9787 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
9788 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
9789 (its SATA disks are detected as slaveless IDE master drives on
9790 kFreeBSD).
9791 Reported by Carsten Aulbert.
9792
9793 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
9794
9795 * util/bin2h.c (main): Fix spelling error in generated output.
9796
9797 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
9798
9799 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
9800
9801 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9802
9803 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
9804 vga= option is supplied.
9805
9806 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9807
9808 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
9809 * util/grub.d/10_kfreebsd.in: Likewise.
9810 * util/grub.d/10_linux.in: Likewise.
9811 * util/grub.d/20_linux_xen.in: Likewise.
9812
9813 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
9816 argument as an argument to no-argument option.
9817
9818 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 * util/grub.d/10_linux.in: Add missing load_video with explicit
9821 GRUB_GFXPAYLOAD_LINUX.
9822
9823 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
9826
9827 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
9830 elements with invlid index.
9831 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9832 * grub-core/disk/raid.c (insert_array): Automatically reallocate
9833 members.
9834 * include/grub/raid.h (grub_raid_member): New struct.
9835 (grub_raid_array): Transform devices and start_sector into usage of
9836 grub_raid_member. All users updated
9837 (allocated_devs): New member.
9838
9839 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
9842 is modified
9843
9844 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
9845
9846 NetBSD build fix for getline function conflict from gnulib.
9847
9848 * Makefile.util.def (libgrubkern.a): New library for grub kernel
9849 components that depend on gnulib headers.
9850 (libgrubmods.a): Renamed from earlier libgrub.a.
9851 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
9852
9853 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9854
9855 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
9856 install rather than creating a broken install.
9857
9858 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 * util/grub-setup.c (argp): Remove misleading example of installing to
9861 a partition.
9862
9863 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 * util/grub-setup.c (setup): Clarify the error message.
9866
9867 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
9870
9871 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9872
9873 * grub-core/kern/emu/misc.c
9874 (grub_make_system_path_relative_to_its_root)
9875 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
9876
9877 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9878
9879 * grub-core/kern/emu/misc.c
9880 (grub_make_system_path_relative_to_its_root): Revert r2882.
9881
9882 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
9885 useless field head. All users updated.
9886 (free_subchunk): Correct handling of IN_REGION subchunk.
9887
9888 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
9889
9890 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
9891 (Supported kernels): Likewise.
9892
9893 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
9894
9895 Make mktemp invocations portable.
9896
9897 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
9898 exit if mktemp fails.
9899 * tests/grub_script_blockarg.in: Likewise.
9900 * tests/partmap_test.in: Likewise.
9901 * tests/util/grub-shell-tester.in: Likewise.
9902 * tests/util/grub-shell.in: Likewise.
9903 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9904 * Makefile.am: Likewise, and chain shell commands with `&&'
9905 instead of ';'.
9906 * util/grub-mkrescue.in: Use the same explicit template as above, and
9907 exit if mktemp fails.
9908
9909 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
9910
9911 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
9912 Linux kernel, reported by Dennis Schridde.
9913
9914 2010-10-17 Szymon Janc <szymon@janc.net.pl>
9915
9916 * grub-core/normal/auth.c (grub_auth_check_authentication):
9917 Set-but-not-used variable removed.
9918
9919 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9920
9921 * docs/grub.texi (GNU/Linux): Document APM unavailability with
9922 32-bit linux protocol.
9923
9924 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
9927 cursor shape for sanity.
9928
9929 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * docs/grub.texi (Installation): Document buggy BIOS install.
9932
9933 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9934
9935 * docs/grub.texi (Installation): Indent.
9936
9937 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9938
9939 * util/grub-setup.c (setup): New parameter allow_floppy.
9940 (arguments): New member allow_floppy.
9941 (argp_parser): Handle --allow-floppy.
9942 (main): Pass allow_floppy.
9943 * util/grub-install.in: New option --allow-floppy passed though to
9944 grub-setup.
9945
9946 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * util/grub-install.in: Handle partitionless disks.
9949
9950 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 * util/grub-setup.c (setup): Don't clean blocklists before readability
9953 verfification.
9954
9955 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 * docs/grub.texi (Installation): Document embedding zone. Remove
9958 obsolete grub-install example.
9959
9960 2010-10-16 Szymon Janc <szymon@janc.net.pl>
9961
9962 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
9963 Set-but-not-used variable ifdef'ed.
9964 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
9965 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
9966 variable removed.
9967 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
9968 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
9969 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
9970 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
9971 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
9972 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
9973 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
9974 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
9975 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
9976 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
9977 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
9978 Likewise.
9979
9980 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9981
9982 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
9983 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
9984 enum value.
9985
9986 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9987
9988 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
9989 synonym to _S5_. Needed for some DSDTs.
9990
9991 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9992
9993 Userspace ACPI parser debugging.
9994
9995 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
9996 headers and add relevant defines. Don't include standard headers.
9997 (main) [GRUB_DSDT_TEST]: New function.
9998 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
9999 Don't declare functions.
10000
10001 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10002
10003 Remove dead grub_efi_mm_fini.
10004
10005 * grub-core/kern/efi/mm.c (allocated_page): Removed.
10006 (ALLOCATED_PAGES_SIZE): Likewise.
10007 (MAX_ALLOCATED_PAGES): Likewise.
10008 (allocated_pages): Likewise.
10009 (grub_efi_allocate_pages): Don't record allocated pages.
10010 (grub_efi_free_pages): Likewise.
10011 (grub_efi_mm_init): Likewise.
10012 (grub_efi_mm_fini): Removed.
10013
10014 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
10017 (grub_efi_mm_init): Take into account the memory map size increase.
10018
10019 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10020
10021 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
10022 (serial_hw_put): Wait based on real time rather than port reads. Don't
10023 roken ports.
10024 * include/grub/serial.h (grub_serial_port): New field broken.
10025
10026 2010-10-16 Robert Millan <rmh@gnu.org>
10027
10028 * grub-core/kern/emu/misc.c
10029 (grub_make_system_path_relative_to_its_root): Fix premature return
10030 when processing non-root ZFS filesystems.
10031 Reported by Sergio Talens-Oliag.
10032
10033 2010-10-15 Robert Millan <rmh@gnu.org>
10034
10035 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
10036 guarantee compressed ones are processed first.
10037
10038 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
10041 grub_efiemu_autocore.
10042
10043 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
10046 rather than 0x1b.
10047 (grub_console_getkey): Use correct jae opcode rather than ja.
10048
10049 2010-10-12 Robert Millan <rmh@gnu.org>
10050
10051 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
10052 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
10053 variable. All references updated.
10054
10055 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
10056
10057 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 Correctly distinguish mdraid flavours.
10060
10061 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
10062 (insert_array): New argument raid.
10063 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
10064 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
10065 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
10066
10067 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
10068
10069 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
10070 handling of special keys.
10071
10072 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10073
10074 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
10075 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
10076
10077 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10078
10079 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
10080 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
10081 users updated.
10082 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
10083 Use right endpoint when querying descriptor.
10084
10085 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 Clear out 0x80 color bit on EFI.
10088 Tested by: decoder
10089 Reported by: decoder and meta tech.
10090
10091 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
10092 (grub_console_setcolorstate): Clear out 0x80 bit.
10093 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
10094 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
10095 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
10096
10097 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10098
10099 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
10100 Set to "auto".
10101
10102 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
10105 mo_file after freeing.
10106
10107 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
10110
10111 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
10114 flags.
10115
10116 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10117
10118 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
10119 usage.
10120
10121 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 Put terminfo into core on ieee1275 and yeeloong (needed for console).
10124
10125 * gentpl.py: New groups terminfoinkernel and terminfomodule.
10126 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
10127 and terminfo.h when needed.
10128 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
10129 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
10130 (terminfo): Enable only on terminfokernel.
10131 (extcmd): Likewise.
10132 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
10133 * include/grub/lib/arg.h: Likewise.
10134 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
10135 incorrect usage of ->.
10136
10137 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10138
10139 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
10140 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
10141
10142 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10143
10144 Fix coreboot compilation.
10145
10146 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10147 Take VBE info into account even if only text is supported.
10148 (fill_vbe_info): Take into account the case when only VGA text
10149 is supported.
10150 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
10151 on coreboot, multiboot and qemu.
10152
10153 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10154
10155 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
10156 debug messages.
10157 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
10158
10159 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10160
10161 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
10162 parameters.
10163
10164 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
10167 if they were BSD-style.
10168
10169 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 * grub-core/boot/i386/pc/lnxboot.S: Replace
10172 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
10173 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
10174
10175 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10176
10177 Write embedding zone using Reed-Solomon.
10178
10179 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
10180 * grub-core/Makefile.am (rs_decoder.S): New target.
10181 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
10182 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
10183 (multiboot): Move to RS part.
10184 (post_reed_solomon): New label.
10185 (grub_boot_drive): Move to non-RS part since it's modified in memory
10186 on boot.
10187 Include rs_decoder.S.
10188 * grub-core/lib/reed_solomon.c: New file.
10189 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
10190 New definition.
10191 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
10192 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
10193 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
10194 * include/grub/partition.h (grub_partition_map): Change prototype of
10195 embed to allow returning additional sectors.
10196 * include/grub/reed_solomon.h: New file.
10197 * util/grub-setup.c (setup): Handle Reed-Solomon.
10198
10199 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
10200
10201 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10202 i386 and x86-64 definedness tests.
10203
10204 2010-09-27 Yves Blusseau <blusseau@zetam.org>
10205
10206 Fix generation of kernel_syms.lst
10207
10208 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
10209 ASM_PREFIX
10210
10211 2010-09-26 Robert Millan <rmh@gnu.org>
10212
10213 Support degraded ZFS arrays in "grub-probe -t device" resolution.
10214
10215 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
10216 the pool is an array of devices, iterate through it and return the
10217 first device that passes a stat() test (instead of blindly returning
10218 the first one).
10219
10220 2010-09-26 Robert Millan <rmh@gnu.org>
10221
10222 Build fixes for GNU/kFreeBSD.
10223
10224 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
10225 to programs that require ZFS conversion.
10226 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
10227 kernels that don't have FLOPPY_MAJOR.
10228
10229 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10230
10231 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
10232
10233 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10234
10235 Fix grub-emu build.
10236
10237 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
10238 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
10239 mdraid09 and mdraid1x.
10240
10241 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
10242
10243 Re-enable grub-extras.
10244
10245 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
10246 avoid confusing Automake. Run autogen only twice, once for the top
10247 level and once for grub-core. Add Makefile.util.def and
10248 Makefile.core.def from extra modules to the appropriate autogen
10249 invocations. If Makefile.common exists in an extra module, include
10250 it in both Makefile.util.am and grub-core/Makefile.core.am;
10251 similarly, include any Makefile.util.common file in Makefile.util.am
10252 and any Makefile.core.common file in grub-core/Makefile.core.am.
10253 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
10254 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
10255 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
10256 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
10257
10258 * gentpl.py (gvar_add): Turn GVARS into a set.
10259 (global_variable_initializers): Sort global variables on output.
10260 (vars_init): New function.
10261 (first_time): Likewise.
10262 (library): Ensure that non-global variable initialisations are
10263 emitted before the first time we emit code for a library block.
10264 Append to variables rather than setting them. Only emit
10265 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
10266 each conditional path.
10267 (program): installdir() emits an Autogen macro, so must be passed to
10268 var_add rather than gvar_add.
10269 (data): Likewise.
10270 (script): Likewise.
10271 (rules): New function, centralising handling for different target
10272 types. Set up Guile association lists for first_time and vars_init,
10273 and send most output to a diversion so that variable initialisations
10274 can be emitted first.
10275 (module_rules): Use new rules function.
10276 (kernel_rules): Likewise.
10277 (image_rules): Likewise.
10278 (library_rules): Likewise.
10279 (program_rules): Likewise.
10280 (script_rules): Likewise.
10281 (data_rules): Likewise.
10282
10283 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
10284
10285 * .bzrignore: Add contrib and grub-core/contrib. Remove
10286 grub-core/Makefile.gcry.am.
10287
10288 2010-09-24 Yves Blusseau <blusseau@zetam.org>
10289
10290 * grub-core/lib/LzFind.c: Add missing include.
10291 * grub-core/lib/LzmaEnc.c: Likewise.
10292 * grub-core/script/lexer.c: Likewise.
10293 * grub-core/script/yylex.l: Likewise.
10294 * util/grub-macho2img.c: Likewise.
10295 * util/grub-menulst2cfg.c: Likewise.
10296 * util/grub-mklayout.c: Likewise.
10297 * util/grub-mkpasswd-pbkdf2.c
10298 * util/grub-mkrelpath.c: Likewise.
10299 * util/resolve.c: Likewise.
10300
10301 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
10302
10303 * Makefile.util.def (example_unit_test): Add
10304 grub-core/gnulib/libgnu.a.
10305
10306 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
10307
10308 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
10309
10310 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 Support xz compression on yeeloong.
10313
10314 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
10315 * configure.ac: Check for LZMA.
10316 * grub-core/Makefile.core.def (xz_decompress): New target.
10317 (none_decompress): Likewise.
10318 * grub-core/boot/decompressor/minilib.c: New file.
10319 * grub-core/boot/decompressor/none.c: Likewise.
10320 * grub-core/boot/decompressor/xz.c: Likewise.
10321 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
10322 * grub-core/kern/mips/cache_flush.S: Likewise.
10323 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
10324 * grub-core/kern/mips/startup.S: Move first stage to ...
10325 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
10326 nomacro.
10327 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
10328 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
10329 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
10330 Allocate statically.
10331 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
10332 Allocate statically or use scratch. Don't check CRC32.
10333 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
10334 Allocate statically. Don't check CRC32.
10335 * include/grub/decompressor.h: New file.
10336 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
10337 Removed.
10338 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
10339 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
10340 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
10341 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
10342 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
10343 * util/grub-mkimage.c (grub_compression_t): New type.
10344 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
10345 (image_target_desc): New field default_compression.
10346 (image_targets): Adjust yeeloong targets.
10347 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
10348 (compress_kernel): New parameter comp.
10349 (generate_image): Likewise. Handle new compression case.
10350 (options): New option --compression
10351 (help): Likewise.
10352 (main): Handle new option.
10353
10354 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
10355
10356 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
10357
10358 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
10359
10360 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10361 typo in __i386__ conditional.
10362
10363 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10364
10365 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
10366 include.
10367
10368 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 Implement EFI and ACPI multiboot2 extensions.
10371
10372 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
10373 new tags as supported.
10374 (acpiv2_size): New function.
10375 (grub_multiboot_get_mbi_size): Take new tags into account.
10376 (grub_multiboot_make_mbi): Add new tags.
10377 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
10378
10379 2010-09-21 Aleš Nesrsta <starous@volny.cz>
10380
10381 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
10382 Added missing configuration of USB device.
10383
10384 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10385
10386 * grub-core/normal/menu_entry.c (run): Make sure we always return
10387 a value.
10388
10389 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10390
10391 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
10392 NumberOfPages is UINT64 according to the UEFI specification, not
10393 UINTN. Fix printf format.
10394
10395 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10396
10397 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
10398 `err' to grub_usb_err_t.
10399 Reported and tested by: KESHAV P.R.
10400
10401 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10402
10403 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
10404 tpart non-const, so that we can assign to it. (Since this is a
10405 typedef, the constness refers to the pointer rather than what it
10406 points to.)
10407
10408 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10409
10410 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
10411 $(top_srcdir)/grub-core/gnulib as well as
10412 $(top_builddir)/grub-core/gnulib.
10413 Reported by: KESHAV P.R.
10414
10415 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10416
10417 * util/grub-install.in: Fix the bootloader ID option to be
10418 consistently --bootloader-id, not --bootloader_id.
10419 Reported by: KESHAV P.R.
10420
10421 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10422
10423 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
10424 check hash checksum." consistently translatable.
10425
10426 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10427
10428 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
10429 $(top_builddir).
10430
10431 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10432
10433 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
10434 (GRUB_MOD_INIT): Register sha1sum command.
10435 (GRUB_MOD_FINI): Unregister sha1sum command.
10436
10437 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10438
10439 Keep boot and grub directory names in sync with utils scripts
10440
10441 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
10442 * config.h.in: Add previous macros.
10443 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
10444 * util/grub-install.in: Use $bootdir and $grubdir variables.
10445
10446 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10447
10448 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
10449 convert partition names to disk names if the new `convert' parameter
10450 is set.
10451 (grub_util_biosdisk_get_grub_dev): If opening the disk device
10452 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
10453 disk in its own right. This can happen with Xen disk images.
10454
10455 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10456
10457 * util/grub-editenv.c: Update strings to avoid warnings when generating
10458 grub.pot file.
10459 * util/grub-setup.c: Likewise.
10460
10461 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * configure.ac: Change version to 1.99~beta0.
10464
10465 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10466
10467 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10468 Add BADRAM.
10469 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
10470 Likewise.
10471 * include/multiboot.h: Resynced with specification.
10472 * include/multiboot2.h: Likewise.
10473
10474 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10475
10476 Fix po directory handling.
10477
10478 * configure.ac: Create po/Makefile.in rather than po/Makefile.
10479 * grub-core/gnulib/Makefile.am: Import gettext module.
10480 * m4/gnulib-cache.m4: Likewise.
10481 * m4/gnulib-comp.m4: Likewise.
10482 * m4/gettext.m4: New file, from gnulib.
10483 * m4/glibc2.m4: Likewise.
10484 * m4/iconv.m4: Likewise.
10485 * m4/intdiv0.m4: Likewise.
10486 * m4/intl.m4: Likewise.
10487 * m4/intldir.m4: Likewise.
10488 * m4/intlmacosx.m4: Likewise.
10489 * m4/intmax.m4: Likewise.
10490 * m4/inttypes-pri.m4: Likewise.
10491 * m4/lcmessage.m4: Likewise.
10492 * m4/lib-ld.m4: Likewise.
10493 * m4/lib-link.m4: Likewise.
10494 * m4/lib-prefix.m4: Likewise.
10495 * m4/lock.m4: Likewise.
10496 * m4/nls.m4: Likewise.
10497 * m4/po.m4: Likewise.
10498 * m4/printf-posix.m4: Likewise.
10499 * m4/progtest.m4: Likewise.
10500 * m4/threadlib.m4: Likewise.
10501 * m4/uintmax_t.m4: Likewise.
10502 * m4/visibility.m4: Likewise.
10503 * po/Makefile.am: Remove.
10504 * po/Makefile.in.in: New file, from gettext.
10505 ($(DOMAIN).pot-update): Support POTFILES-shell.
10506 * po/Makevars: New file.
10507 * po/POTFILES-shell: Rename to ...
10508 * po/POTFILES-shell.in: ... this. Update.
10509 * po/POTFILES: Rename to ...
10510 * po/POTFILES.in: ... this. Update.
10511 * po/Rules-quot: New file, from gettext.
10512 * po/boldquot.sed: Likewise.
10513 * po/en@boldquot.header: Likewise.
10514 * po/en@quot.header: Likewise.
10515 * po/insert-header.sin: Likewise.
10516 * po/quot.sed: Likewise.
10517 * po/remove-potcdate.sin: Likewise.
10518
10519 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10520
10521 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
10522
10523 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10524
10525 * util/grub.d/20_linux_xen.in: Use submenus.
10526
10527 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 Support submenus.
10530
10531 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
10532 parameter submenu. All users updated.
10533 * grub-core/normal/main.c (free_menu): Rename to ...
10534 (grub_normal_free_menu): ... this. Made global.
10535 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
10536 if requested.
10537 * grub-core/normal/menu_entry.c (screen): New field submenu.
10538 (make_screen): Set submenu.
10539 (run): Open new context if requested.
10540 * include/grub/menu.h (grub_menu_entry): New field submenu.
10541 * include/grub/normal.h (grub_normal_free_menu): New proto.
10542
10543 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10544
10545 Menu entries extractor.
10546
10547 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
10548 variants.
10549 (GRUB_MOD_INIT): Register new variants.
10550 (GRUB_MOD_FINI): Unregister new variants.
10551 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
10552 into grub_cmd_legacy_source.
10553 (grub_cmd_legacy_source): Implement extractor variants.
10554 (GRUB_MOD_INIT): Register new variants.
10555 (GRUB_MOD_FINI): Unregister new variants.
10556 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
10557 as an extractor.
10558 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
10559 search as an extractor.
10560 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
10561 test as an extractor.
10562 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
10563 as an extractor.
10564 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
10565 (grub_env_new_context): New function.
10566 (grub_env_context_open): Likewise.
10567 (grub_env_extractor_open): Likewise.
10568 (grub_env_extractor_close): Likewise.
10569 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
10570 grub_extractor_level.
10571 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
10572 * include/grub/env.h (grub_env_extractor_open): New proto.
10573 (grub_env_extractor_close): Likewise.
10574 * include/grub/normal.h (grub_extractor_level): New external variable.
10575
10576 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10577
10578 Make cutmem accept a region specification.
10579 Suggested by: Samuel Thibault
10580
10581 * grub-core/mmap/mmap.c (parsemem): New function.
10582 (grub_cmd_cutmem): Handle new arguments.
10583
10584 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 New command cutmem.
10587
10588 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
10589 (GRUB_MOD_INIT): Register new command.
10590 (GRUB_MOD_FINI): Unregister new command.
10591
10592 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10593
10594 Support some annoying BSD and Minix subpartitions.
10595
10596 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
10597 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
10598 Properly handle concatenation.
10599 * grub-core/kern/device.c (grub_device_iterate): Likewise.
10600 * grub-core/normal/completion.c (iterate_partition): Likewise.
10601 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
10602 contain partition. All users updated.
10603 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
10604 struct.
10605 (grub_openbsdlabel_partition_map): Likewise.
10606 (bsdlabel_partition_map_iterate): Rename to ..
10607 (iterate_real): ... this. New arguments sector, freebsd and pmap.
10608 (bsdlabel_partition_map_iterate): New function.
10609 (netopenbsdlabel_partition_map_iterate): Likewise.
10610 (netbsdlabel_partition_map_iterate): Likewise.
10611 (openbsdlabel_partition_map_iterate): Likewise.
10612 (GRUB_MOD_INIT): Register new partmaps.
10613 (GRUB_MOD_FINI): Unregister new partmaps.
10614 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
10615 (grub_partition_msdos_iterate): ... this. All users updated.
10616 Don't support embedding other than in a minix partition.
10617 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
10618 proto.
10619 * include/grub/partition.h (grub_partition): New field msdostype.
10620 * util/grub-install.in: Handle openbsd and netbsd types being in
10621 part_bsd module.
10622
10623 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
10626
10627 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
10628 * grub-core/Makefile.core.def (mdraid): Renamed to ...
10629 (mdraid09): ... this.
10630 (mdraid1x): New module.
10631 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
10632 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
10633
10634 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
10637 vsprintf.
10638
10639 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10640
10641 * grub-core/commands/efi/lsefimmap.c: Correct header.
10642 * NEWS: Update.
10643
10644 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10645
10646 * util/grub-editenv.c (argp_parser): Don't pass translated strings
10647 as printf format strings; the translations might contain '%' which
10648 could cause a crash.
10649 (main): Likewise.
10650 * util/grub-fstest.c (argp_parser): Likewise.
10651 * util/grub-setup.c (argp_parser): Likewise.
10652 (main): Likewise.
10653
10654 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 Use argp in grub-fstest.
10657
10658 * util/grub-fstest.c: Don't include getopt.h.
10659 Include argp.h.
10660 (root): New variable.
10661 (args_count): Likewise.
10662 (nparm): Likewise.
10663 (num_disks): Likewise.
10664 (images): Likewise.
10665 (cmd): Likewise.
10666 (debug_str): Likewise.
10667 (args): Likewise.
10668 (options): Transformed to argp.
10669 (usage): Removed.
10670 (main): Split argument parsing into ...
10671 (argp_parser): ... this. Changed to argp format.
10672 (argp): New variable.
10673 (main): Use argp_parse.
10674
10675 2010-09-20 Tristan Gingold <gingold@free.fr>
10676 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
10677 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10678
10679 * grub-core/commands/efi/lsefimmap.c: New file.
10680 * grub-core/Makefile.core.def (lsefimmap): New module.
10681 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
10682
10683 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10684
10685 Pause the execution (10s max) if any errors are displayed so the user
10686 has a chance to see them.
10687
10688 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
10689 (grub_print_error): Increment grub_err_printed_errors.
10690 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
10691 execution if any errors were displayed.
10692 (show_menu): Remove old code for pause.
10693 * grub-core/normal/menu_entry.c (run): Likewise.
10694 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
10695 users updated.
10696 (grub_normal_get_char_counter): Likewise.
10697 * include/grub/err.h (grub_err_printed_errors): New external variable.
10698 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
10699
10700 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 Support multiboot VBE info.
10703
10704 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10705 Take VBE info into account.
10706 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
10707 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10708 Call fill_vbe_info when appropriate.
10709 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
10710 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
10711 as supported.
10712 (grub_multiboot_get_mbi_size): Take new tags into account.
10713 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
10714 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10715 Call fill_vbe_tag when appropriate.
10716 (grub_multiboot_make_mbi): Properly align tags.
10717 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
10718 function.
10719 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
10720 proto.
10721 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
10722
10723 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 Suport manual terminal geometry specification.
10726
10727 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
10728 Save state in grub_ofconsole_terminfo_output.
10729 (grub_ofconsole_term): Use grub_terminfo_getwh.
10730 (grub_ofconsole_getwh): Removed.
10731 * grub-core/term/serial.c (grub_serial_getwh): Removed.
10732 (grub_serial_term): Use grub_terminfo_getwh.
10733 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
10734 (options): New struct.
10735 (OPTION_*): New enum.
10736 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
10737 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
10738 width and height.
10739 (grub_terminfo_getwh): New proto.
10740 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
10741
10742 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 Handle legacy "terminal" command.
10745
10746 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
10747 and FLAG_TERMINAL.
10748 (legacy_commands): Add terminal and title.
10749 (grub_legacy_parse): Handle terminal. Simplify title handling.
10750
10751 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
10754 parameters overflow.
10755
10756 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10757
10758 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
10759 widthspec.h.
10760
10761 * docs/grub.texi (Shell-like scripting): Document `!'.
10762 (Network): Simplify using new i386-pc-pxe format. Mention
10763 grub-mknetdir.
10764
10765 * NEWS: Update.
10766
10767 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10768
10769 * Makefile.am (SUBDIRS): Restore "."; it's important to force
10770 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
10771 when needed.
10772
10773 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10774
10775 * grub-core/commands/efi/lsefisystab.c: Correct header.
10776 * grub-core/commands/efi/lssal.c: Likewise.
10777 * grub-core/commands/testload.c: Likewise.
10778
10779 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10780
10781 * util/grub-mkrescue.in: Add explicit root argument to --set to
10782 prevent the UUID being interpreted as an argument to --set (matches
10783 previous change to prepare_grub_to_access_device).
10784
10785 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10786
10787 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
10788 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
10789 the verbosity of later #ifs.
10790 (find_partition_start): Define this function on FreeBSD too.
10791 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
10792 function.
10793 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
10794 on FreeBSD.
10795
10796 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10797
10798 * util/grub-editenv.c: Use argp instead of getopt.
10799
10800 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10801
10802 * util/grub-setup.c: Use argp instead of getopt.
10803
10804 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10805
10806 Use gnulib-tool to create gnulib source files.
10807
10808 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
10809 grub-core/gnulib directories
10810 * .bzignore: Add **/.deps and autogenerated gnulib files
10811 * configure.ac: Assign auxiliary directory to build-aux, add invocation
10812 of gnulib macros, add grub-core/gnulib/Makefile
10813 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
10814 include m4 directory to aclocal.
10815 * Makefile.util.def: Remove direct compilation of gnulib source files
10816 and use the new grub-core/gnulib/libgnu.a.
10817 * build-aux/config.rpath: move config.rpath from top directory to
10818 build-aux
10819 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
10820 in gnulib headers
10821 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
10822 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
10823 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
10824 header.
10825 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
10826 string.
10827
10828 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10829
10830 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
10831 grub-core/genmod.sh and grub-core/gensyminfo.sh
10832
10833 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
10834
10835 Add a test for echo command options.
10836
10837 * tests/grub_cmd_echo.in: New test.
10838 * Makefile.util.def: Rules for new test.
10839
10840 2010-09-20 Szymon Janc <szymon@janc.net.pl>
10841
10842 Remove crc.mod and move crc command to hashsum.mod.
10843 Remove lib/crc.c - users updated to use gcrypt implementation.
10844
10845 * grub-core/commands/crc.c: Removed.
10846 * grub-core/Makefile.core.def (crc): Module removed.
10847 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
10848 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
10849 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
10850 * grub-core/lib/crc.c: Removed.
10851 * include/grub/lib/crc.h: Removed.
10852 * Makefile.util.def (crc): Remove lib/crc.c
10853 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
10854 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
10855 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
10856 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
10857 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
10858 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
10859
10860 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
10863
10864 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10865
10866 Split config.h for util and core.
10867
10868 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
10869 (ADDR32): Likewise.
10870 (DATA32): Likewise.
10871 (BSS_START_SYMBOL): Likewise.
10872 (END_SYMBOL): Likewise.
10873 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
10874 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
10875 * config.h.in: New file.
10876 * configure.ac: Use config-util.h as config define file.
10877 Rename MACHINE into GRUB_MACHINE. All users updated.
10878 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
10879 updated.
10880 (NESTED_FUNC_ATTR): Likewise.
10881 Substitue new variables.
10882 (COND_HAVE_ASM_USCORE): New conditional.
10883 * grub-core/Makefile.am (ASM_PREFIX): New variable.
10884 (kernel_syms.lst): Use ASM_PREFIX.
10885 * grub-core/kern/emu/console.c: Include config-util.h.
10886 * grub-core/kern/emu/misc.c: Likewise.
10887 * grub-core/kern/emu/mm.c: Likewise.
10888 * include/grub/emu/misc.h: Likewise.
10889 * include/grub/libgcc.h: Likewise.
10890
10891 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
10894 constants usage.
10895 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
10896 Fix GRUB_TERM_KEY_* constants usage.
10897 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
10898
10899 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10900
10901 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
10902 print pointer.
10903 * grub-core/bus/usb/uhci.c: Remove empty define.
10904 (grub_uhci_check_transfer): Add missing cast.
10905 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
10906 print pointer.
10907 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
10908 PRIuGRUB_SIZE.
10909 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
10910
10911 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 * grub-core/Makefile.core.def (legacycfg): Add
10914 lib/i386/pc/vesa_modes_table.c on emu.
10915
10916 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
10917
10918 Reduce number of temporary files generated by build system.
10919
10920 * grub-core/gencmdlist.sh: Removed.
10921 * grub-core/genfslist.sh: Removed.
10922 * grub-core/genhandlerlist.sh: Removed.
10923 * grub-core/genmodsrc.sh: Removed.
10924 * grub-core/genpartmaplist.sh: Removed.
10925 * grub-core/genparttoollist.sh: Removed.
10926 * grub-core/gentermiinallist.sh: Removed.
10927 * grub-core/genvideolist.sh: Removed.
10928
10929 * grub-core/genmod.sh.in: New file.
10930 * grub-core/gensyminfo.sh.in: New file.
10931
10932 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
10933 * conf/Makefile.extra-dist: Update with new files.
10934 * gentpl.py: Remove rules related to unnecessary temporary files.
10935 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
10936 and und-* files.
10937 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
10938 genmod.sh scripts.
10939 * grub-core/bus/usb/uhci.c: Remove empty #define.
10940 * grub-core/genmoddep.awk: Updated with new syminfo format.
10941 * util/bash-completion.d/Makefile.am: Add config.log to
10942 CLEANFILES.
10943
10944 2010-09-19 Yves Blusseau <blusseau@zetam.org>
10945
10946 * Makefile.util.def: Add forgotten $(LIBINTL) library.
10947
10948 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
10949
10950 * util/grub-mkconfig.in: Check the config script for syntax errors
10951 before saving.
10952
10953 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
10954 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 * Makefile.util.def (grub-install): Use util/grub-install.in on all
10957 platforms.
10958 * util/grub-install.in: Add EFI and IEEE1275 support.
10959 * util/i386/efi/grub-install.in: Removed.
10960 * util/ieee1275/grub-install.in: Likewise.
10961
10962 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10963
10964 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
10965 (grub_cmd_cmosclean): Likewise.
10966 (GRUB_MOD_INIT): Register command cmosclean.
10967 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
10968 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
10969
10970 2010-09-18 Carles Pina i Estany <carles@pina.cat>
10971 2010-09-18 Aleš Nesrsta <starous@volny.cz>
10972 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
10973
10974 Add keyboard layouts support.
10975
10976 * Makefile.util.def (grub-mklayout): New file.
10977 (grub-kbdcomp): New script.
10978 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
10979 Add keyboard_layouts.h.
10980 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
10981 commands/boot.c on yeeloong.
10982 (keylayouts): New module.
10983 * grub-core/bus/usb/ohci.c
10984 * grub-core/bus/usb/uhci.c
10985 * grub-core/bus/usb/usbhub.c (rescan): New variable.
10986 (grub_usb_add_hub): Poll interrupt pipe for device handling.
10987 (attach_root_port): Likewise.
10988 (poll_nonroot_hub): Likewise.
10989 (grub_usb_poll_devices): Likewise.
10990 (detach_device): Close transfer.
10991 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
10992 function.
10993 (grub_usb_bulk_setup_readwrite): Likewise.
10994 (grub_usb_bulk_finish_readwrite): Likewise.
10995 * grub-core/commands/keylayouts.c: New file.
10996 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
10997 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
10998 aliases.
10999 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
11000 support scancode 2.
11001 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
11002 * include/grub/keyboard_layouts.h: New file.
11003 * util/grub-mklayout.c: New file.
11004 * util/grub-kbdcomp.in: Likewise.
11005
11006 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11007
11008 Unify memory types.
11009
11010 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
11011 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
11012 types.
11013 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
11014 (grub_upper_mem): Likewise.
11015 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
11016 * include/grub/memory.h (grub_memory_type_t): New enum.
11017 All users updated.
11018
11019 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 * grub-core/Makefile.core.def (lsapm): New module.
11022 * grub-core/commands/i386/pc/lsapm.c: New file.
11023 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
11024 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
11025 Likewise.
11026 * include/grub/i386/pc/apm.h: New file.
11027 * include/multiboot.h (multiboot_apm_info): New struct.
11028
11029 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11030
11031 GRUB-legacy configuration file support.
11032
11033 * Makefile.util.def (grub-menulst2cfg): New util.
11034 * docs/man/grub-menulst2cfg.h2m: New file.
11035 * grub-core/Makefile.core.def (legacycfg): New module.
11036 * grub-core/commands/legacycfg.c: New file.
11037 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
11038 (grub_normal_add_menu_entry): ... this.
11039 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
11040 (grub_normal_set_password): ...this.
11041 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
11042 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
11043 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
11044 * grub-core/lib/legacy_parse.c: New file.
11045 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
11046 * include/grub/i386/pc/vesa_modes_table.h: New file.
11047 * include/grub/legacy_parse.h: Likewise.
11048 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
11049 * util/grub-menulst2cfg.c: New file.
11050
11051 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11052
11053 * grub-core/kern/emu/hostdisk.c
11054 (convert_system_partition_to_system_disk): Initialise node.
11055
11056 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11057
11058 * grub-core/kern/emu/hostdisk.c
11059 (convert_system_partition_to_system_disk): Fix devmapper memory pool
11060 leak.
11061 Reported and based on patch by: Modestas Vainius.
11062
11063 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11064
11065 Fix DM-RAID probing with recent versions of device-mapper udev
11066 rules.
11067
11068 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
11069 canonicalise device paths under /dev/mapper/.
11070 (convert_system_partition_to_system_disk): Compare the
11071 uncanonicalised path to /dev/mapper/ rather than the canonicalised
11072 path, since device nodes under /dev/mapper/ are often symlinks.
11073
11074 2010-09-17 Yves Blusseau <blusseau@zetam.org>
11075
11076 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
11077
11078 2010-09-16 Yves Blusseau <blusseau@zetam.org>
11079
11080 * configure.ac: Avoid some annoying error messages if freetype-config
11081 program is not found.
11082
11083 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11084
11085 Support RAID on virtio devices, and others.
11086
11087 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
11088 Rename to ...
11089 [__MINGW32__] (grub_find_device): ... this.
11090 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
11091 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
11092 reasonable default if dir is NULL.
11093 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
11094 ...
11095 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
11096 (grub_guess_root_device): Update callers.
11097 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
11098
11099 * util/raid.c (grub_util_getdiskname): Remove.
11100 (grub_util_raid_getmembers): Use grub_find_device rather than
11101 grub_util_getdiskname.
11102
11103 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11104
11105 * docs/grub.texi (serial): Remove obsolete comment about GRUB
11106 needing to be compiled with serial support.
11107 (ls): Indicate that multiple files are accepted.
11108 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
11109 indicate that multiple files are accepted.
11110
11111 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11112
11113 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
11114 libgrub_a_init.c, and util/bash-completion.d/grub.
11115
11116 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11117
11118 * util/grub-setup.c (setup): Fix incorrect container semantics.
11119
11120 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11121
11122 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
11123 misusage.
11124 Reported by: J. Nick Terry
11125
11126 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 Move embedding routines to partmap sources files.
11129
11130 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
11131 [GRUB_UTIL]: New variable.
11132 (gpt_partition_map_iterate): Set part.parent.
11133 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
11134 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
11135 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
11136 New function.
11137 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
11138 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
11139 (grub_partition_map) [GRUB_UTIL]: New field embed.
11140 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
11141 (setup): Use ->embed.
11142
11143 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
11146 function.
11147 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
11148 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
11149
11150 2010-09-15 Yves Blusseau <blusseau@zetam.org>
11151
11152 Add function to get completions from usage.
11153
11154 * util/bash-completion.d/grub-completion.bash.in: Add function to get
11155 completions from usage. Use LC_ALL=C to get options properly.
11156
11157 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11158
11159 * grub-core/gnulib/basename-lgpl.c: Imported.
11160 * grub-core/gnulib/basename.c: Likewise.
11161 * grub-core/gnulib/dirname-lgpl.c: Likewise.
11162 * grub-core/gnulib/dirname.c: Likewise.
11163 * grub-core/gnulib/dirname.h: Likewise.
11164 * grub-core/gnulib/stripslash.c: Likewise.
11165
11166 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11167
11168 * grub-core/gnulib/error.c: Resynced.
11169 * grub-core/gnulib/getopt.c: Likewise.
11170 * grub-core/gnulib/getopt_int.h: Likewise.
11171 * grub-core/gnulib/regex.h: Likewise.
11172 * grub-core/gnulib/regex_internal.c: Likewise.
11173 * grub-core/gnulib/regex_internal.h: Likewise.
11174
11175 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11176
11177 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
11178 CRC calculations and validity checks.
11179 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
11180 calculations.
11181
11182 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11183
11184 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
11185
11186 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11187
11188 Fix incorrect echo options handling.
11189 Reported by: Yves Blusseau.
11190
11191 * include/grub/command.h (grub_command_flags_t): New flags
11192 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
11193 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
11194 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
11195
11196 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
11199 users updated.
11200 (GRUB_COMMAND_FLAG_MENU): Likewise.
11201 (GRUB_COMMAND_FLAG_BOTH): Likewise.
11202 (GRUB_COMMAND_FLAG_TITLE): Removed.
11203 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
11204 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
11205 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
11206 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
11207 (grub_command_flags_t): New enum. All users updated.
11208
11209 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
11210
11211 Fix solaris compilation.
11212
11213 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
11214 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
11215 (grub-emu-list): Likewise.
11216
11217 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11218
11219 Remove deprecated root command.
11220
11221 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
11222 updated.
11223
11224 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 * util/i386/pc/grub-setup.c: Merge this ...
11227 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
11228 * util/grub-setup.c: ... into this.
11229 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
11230 New struct.
11231
11232 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11233
11234 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
11235 possible.
11236
11237 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
11240 allocate p.
11241
11242 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11245 explicit root argument to set to prevent UUID to be interpreted as
11246 argument to set.
11247
11248 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11249
11250 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
11251
11252 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 Don't export grub_gate_a20.
11255
11256 * grub-core/kern/i386/pc/init.c: Remove leftovers.
11257 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
11258 to ...
11259 (grub_gate_a20): ... this. All users updated.
11260 * include/grub/i386/pc/init.h: Removed. All users updated.
11261
11262 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11263
11264 Create euro.pf2 which supports most European languages.
11265
11266 * Makefile.am (grubdata_DATA): Add euro.pf2.
11267 (euro.pf2): New target.
11268 (CLEANFILES): Add euro.pf2.
11269
11270 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11271
11272 * configure.ac: Disable emu-usb by default to prevent inadvertent
11273 device takeover.
11274
11275 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11276
11277 Disable usbserial on grub-emu since our libusb code isn't good enough
11278 yet.
11279
11280 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
11281 (usbserial_pl2303): Likewise.
11282 (usbserial_ftdi): Likewise.
11283
11284 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11285
11286 * include/grub/disk.h (grub_disk): Remove has_partitions.
11287 All users updated.
11288 * disk/loopback.c (grub_loopback): Remove has_partitions.
11289 All users updated.
11290 (options): Remove partitions. All users updated.
11291 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
11292 * util/i386/pc/grub-setup.c (setup): copy partition table only when
11293 actual partition table is found.
11294
11295 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11296
11297 Remove readability checks (too many false negatives).
11298
11299 * util/grub-install.in: Remove readability checks.
11300 * util/grub-mkconfig.in: Likewise.
11301 * util/grub.d/10_hurd.in: Likewise.
11302 * util/grub.d/10_kfreebsd.in: Likewise.
11303 * util/grub.d/10_linux.in: Likewise.
11304 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
11305 way.
11306
11307 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11308
11309 Enable acpi shutdown on all ACPI platforms.
11310
11311 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
11312 on coreboo, multiboot and EFI.
11313 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
11314 (grub_acpi_halt): Likewise.
11315 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
11316 (grub_cmd_halt): Don't call grub_acpi_halt directly.
11317 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
11318 * grub-core/lib/i386/halt.c (grub_halt)
11319 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
11320
11321 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
11324 context.
11325
11326 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11327
11328 * grub-core/video/efi_gop.c: Fix over-80-chars line.
11329 * grub-core/video/efi_uga.c: Likewise.
11330
11331 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11332
11333 Filter devaliases and never open same device twice.
11334
11335 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
11336 (last_ihandle): Likewise.
11337 (ofdisk_hash_ent): New member shortest.
11338 (ofdisk_hash_add): Add canonical path too.
11339 (scan): New function.
11340 (grub_ofdisk_iterate): Iterate over hashed entries.
11341 (compute_dev_path): Don't add :0.
11342 (grub_ofdisk_open): Don't really open the disk.
11343 (grub_ofdisk_close): Avoid closing unrelated disk.
11344 (grub_ofdisk_read): Implement reopen logic.
11345 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
11346 New function.
11347 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
11348 New proto.
11349
11350 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11351
11352 Fix sparc64.
11353
11354 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
11355 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
11356 right address. Add sparc64_ieee1275_ldflags.
11357 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
11358 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
11359 to grub_host_to_target_addr
11360 (load_image): Likewise.
11361
11362 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11363
11364 * grub-core/normal/completion.c (complete_file): Handle device
11365 containing slash.
11366 Fix based on patch by Doug Nazar.
11367
11368 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11369
11370 grub-mknetdir script.
11371
11372 * Makefile.util.def (grub-mknetdir): New module.
11373 * tests/util/grub-shell.in: Support boot=net
11374 * util/grub-mknetdir.in: New file.
11375
11376 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11377
11378 videoinfo on non-vbe.
11379
11380 * grub-core/Makefile.core.def (vbeinfo): Removed.
11381 (vbetest): Removed.
11382 (videoinfo): New module.
11383 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
11384 * grub-core/commands/i386/pc/vbetest.c: Removed.
11385 * grub-core/commands/videoinfo.c: New file.
11386 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
11387 specification.
11388 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
11389 as vbetest.
11390 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
11391 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
11392 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
11393 mode_number. New parameter mode. All users updated.
11394 (grub_video_gop_iterate): New function.
11395 (grub_video_efi_gop): New member iterate.
11396 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
11397 (grub_vbe_set_video_mode): Remove setting useless fields.
11398 (vbe2videoinfo): New function.
11399 (grub_video_vbe_iterate): Likewise.
11400 (grub_video_vbe_setup): Use vbe2videoinfo.
11401 (grub_video_vbe_print_adapter_specific_info): New function.
11402 (grub_video_vbe_adapter): New fields iterate and
11403 print_adapter_specific_info.
11404 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
11405 All users updated.
11406 (grub_video_mode_info): New field mode_number.
11407 (grub_video_adapter): New fields iterate and
11408 print_adapter_specific_info.
11409
11410 2010-09-13 Tristan Gingold <gingold@free.fr>
11411 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
11412 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11413
11414 * grub-core/commands/efi/lsefisystab.c: New file.
11415 * grub-core/commands/efi/lssal.c: Likewise.
11416 * grub-core/Makefile.core.def (lsacpi): New module.
11417 (lsefisystab): Likewise.
11418 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
11419 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
11420 (grub_efi_sal_system_table): New struct.
11421 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
11422 (grub_efi_sal_system_table_memory_descriptor): Likewise.
11423 (grub_efi_sal_system_table_platform_features): Likewise.
11424 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
11425 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
11426 (grub_efi_sal_system_table_ap_wakeup): Likewise.
11427 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
11428
11429 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 Support explicit user claim that a device is BIOS-visible.
11432
11433 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
11434 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
11435 * grub-core/kern/emu/hostdisk.c
11436 (convert_system_partition_to_system_disk): Support mdX.
11437 (find_system_device): New parameter add. All users updated.
11438 (grub_util_biosdisk_is_present): New function.
11439 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
11440 proto.
11441
11442 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 Search hints support.
11445
11446 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
11447 All users updated.
11448
11449 2010-09-13 Yves Blusseau <blusseau@zetam.org>
11450
11451 Bash completion script for util commands
11452
11453 * Makefile.am: Add util/bash-completion.d directory
11454 * configure.ac: Likewise.
11455 * util/bash-completion.d/Makefile.am: New file.
11456 * util/bash-completion.d/grub-completion.bash.in: Likewise.
11457
11458 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
11461 (print_backlog): set backlog_ucs4 and backlog_glyphs.
11462 Reported by: Yves Blusseau.
11463
11464 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11465
11466 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
11467 partition size and offset.
11468
11469 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11470
11471 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
11472
11473 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11474
11475 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
11476
11477 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
11480 (grub_xvasprintf): Likewise.
11481
11482 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11483
11484 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
11485
11486 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11487
11488 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
11489 args ending with NULL.
11490
11491 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11492
11493 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
11494 pointer.
11495
11496 2010-09-11 Szymon Janc <szymon@janc.net.pl>
11497
11498 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
11499
11500 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 Shutdown using ACPI.
11503
11504 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
11505 * grub-core/commands/acpihalt.c: New file.
11506 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
11507 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
11508 (grub_acpi_halt): New proto.
11509 (GRUB_ACPI_SLP_EN): New const.
11510 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
11511 (GRUB_ACPI_OPCODE_*): New enum.
11512 (GRUB_ACPI_EXTOPCODE_*): Likewise.
11513
11514 2010-09-11 Tristan Gingold <gingold@free.fr>
11515 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
11516 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 * commands/lsacpi.c: New file.
11519 * grub-core/Makefile.core.def (lsacpi): New module.
11520 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
11521 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
11522 (grub_acpi_madt_entry_header): New struct.
11523 (grub_acpi_madt): Likewise.
11524 (grub_acpi_madt_entry_interrupt_override): Likewise.
11525 (grub_acpi_madt_entry_sapic): Likewise.
11526 (grub_acpi_madt_entry_lsapic): Likewise.
11527 (grub_acpi_madt_entry_platform_int_source): Likewise.
11528 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
11529 (PRIuGRUB_UINT32_T): Likewise.
11530 (PRIxGRUB_UINT64_T): Likewise.
11531
11532 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 Implement loading palette on ieee1275_fb.
11535
11536 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
11537 (have_setcolors): Likewise.
11538 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
11539 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
11540 (grub_video_ieee1275_set_palette): Implement.
11541
11542 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11543 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
11544
11545 * util/grub-install.in (grub_partition): New variable.
11546 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
11547 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
11548 Fixes a bug reported by Yves Blusseau.
11549
11550 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 Fix emu on mipsel.
11553
11554 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
11555 =grub_cpu_flush_cache on all mips and not only yeeloong.
11556 * configure.ac (COND_mips): New conditional.
11557 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
11558 platforms.
11559 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
11560 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
11561 [GRUB_LINKER_HAVE_INIT]: New function.
11562 (grub_emu_post_init): Likewise.
11563 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
11564 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
11565 * include/grub/cache.h (_mips): Include mips/cache.h.
11566 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
11567 LVM and RAID prototypes.
11568 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
11569 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
11570 function.
11571
11572 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11573
11574 * util/grub-install.in: Don't try to verify core.img until after
11575 running grub-mkimage to create it.
11576
11577 2010-09-10 Robert Millan <rmh@gnu.org>
11578
11579 * util/grub.d/10_hurd.in: Add misc readability checks.
11580 * util/grub.d/10_kfreebsd.in: Likewise.
11581 * util/grub.d/10_linux.in: Likewise.
11582
11583 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11584
11585 * util/grub-install.in: ${imgext} won't be defined here until the
11586 install branch is merged. For the meantime, only verify core.img on
11587 i386-pc and sparc64-ieee1275 platforms.
11588
11589 2010-09-10 Robert Millan <rmh@gnu.org>
11590
11591 Solaris support in grub_find_zpool_from_dir(). Thanks
11592 Seth Goldberg for referring to getextmntent() facility.
11593
11594 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
11595 `sys/mkdev.h'.
11596 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
11597 `<sys/mnttab.h>'.
11598 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
11599 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
11600 method for finding zpool name.
11601
11602 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11603
11604 grub-fstest needs the host and hostfs modules while other utilities
11605 actively require those modules to be absent, so grub-fstest needs
11606 its own initialisation and finalisation code.
11607
11608 * Makefile.am (grub_fstest.pp): New target.
11609 (grub_fstest_init.lst): Likewise.
11610 (grub_fstest_init.c): Likewise.
11611 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
11612
11613 2010-09-10 Robert Millan <rmh@gnu.org>
11614
11615 * configure.ac: Check for `struct statfs.f_fstypename' and
11616 `struct statfs.f_mntfromname'.
11617
11618 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
11619 kFreeBSD-specific code.
11620
11621 2010-09-10 Robert Millan <rmh@gnu.org>
11622
11623 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
11624 on ZFS. Now non-main filesystems are supported as / too.
11625
11626 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
11627
11628 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
11629 and grub-core/disk/host.c to ...
11630 (grub-fstest): ... here. Having the host disk implementation
11631 present confuses grub-probe and other utility programs.
11632
11633 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
11634 when writing to a file, not when writing to stdout.
11635
11636 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
11637
11638 * tests/partmap_test.in: New test for partitions.
11639 * Makefile.util.def: Rules for new test.
11640
11641 2010-09-09 Robert Millan <rmh@gnu.org>
11642
11643 * util/grub-probe.c (probe): Fix a pair of unhandled error
11644 conditions.
11645
11646 2010-09-09 Robert Millan <rmh@gnu.org>
11647
11648 Basic Btrfs support (detection and UUID).
11649
11650 * grub-core/fs/btrfs.c: New file.
11651 * Makefile.util.def (library): Register btrfs.c.
11652 * grub-core/Makefile.core.def: Likewise.
11653
11654 2010-09-08 Robert Millan <rmh@gnu.org>
11655
11656 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
11657 with (optional) parameters to specify device and relative path.
11658 * util/grub-install.in: Use is_path_readable_by_grub() to
11659 verify readability of a few critical files.
11660 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
11661 verify readability of grub.cfg.new.
11662
11663 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11664
11665 Split minix.mod into minix.mod and minix2.mod.
11666
11667 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
11668 * grub-core/Makefile.core.def (minix2): New module.
11669 * grub-core/fs/minix.c: Use definitions instead of runtime version
11670 checking.
11671 * grub-core/fs/minix2.c: New file.
11672
11673 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11674
11675 Add new --boot-directory option to replace --root-directory
11676
11677 * util/grub-install.in: Add new --boot-directory option
11678 * util/grub-reboot.in: Likewise.
11679 * util/grub-set-default.in: Likewise.
11680
11681 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11682
11683 * util/grub-mkconfig.in: Use new variable.
11684
11685 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11686
11687 * configure.ac: Define some useful variables.
11688
11689 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11690
11691 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11692 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
11693 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
11694 Use terminfo and don't use cursor-on/cursor-off unless it's known
11695 to work.
11696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
11697 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
11698
11699 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
11700
11701 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
11702 starts with "(,", fill the drive containing the loaded image in
11703 between those two characters, but expect that a full partition
11704 specification including partition map names will follow.
11705
11706 2010-09-08 Robert Millan <rmh@gnu.org>
11707
11708 * configure.ac: Remove `--enable-grub-fstest' option.
11709 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
11710
11711 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
11712 `grub-fstest' instead of `grub-probe' for readability verification.
11713 * util/grub-probe.c (probe): Remove readability verification kludge.
11714
11715 2010-09-08 Robert Millan <rmh@gnu.org>
11716
11717 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
11718 initializing `GRUB_FS'.
11719
11720 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
11721
11722 Not command (!) support to GRUB script.
11723
11724 * tests/grub_script_not.in: New test.
11725 * Makefile.util.def: Rules for new test.
11726
11727 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
11728 ! command as a special case.
11729 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
11730
11731 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11732
11733 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
11734 grub_free.
11735
11736 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11737
11738 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
11739
11740 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11741
11742 * docs/grub.texi (Shell-like scripting): Documentation for break,
11743 continue, shift and return commands.
11744
11745 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
11746
11747 Rename CD-ROM to cd on BIOS.
11748
11749 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
11750 "cd".
11751 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
11752
11753 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11754
11755 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
11756 * util/grub-probe.c (main): Likewise.
11757 * util/i386/pc/grub-setup.c (main): Likewise.
11758 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
11759 Reported and debugged by: alexxy
11760
11761 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11762
11763 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
11764 diagnostic info.
11765
11766 2010-09-05 Jo Shields <directhex@apebox.org>
11767
11768 * util/grub.d/30_os-prober.in: Add missing classes.
11769
11770 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 * docs/grub.texi (Theme file format): Document new position format.
11773
11774 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11775
11776 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
11777 a table. Use @code instead of @verbatim.
11778
11779 2010-09-05 Colin D Bennett <colin@gibibit.com>
11780
11781 Gfxmenu documentation.
11782
11783 * docs/grub.texi (Theme file format): New chapter.
11784
11785 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11786
11787 * grub-core/Makefile.core.def (xzio): New module.
11788 * grub-core/io/xzio.c: New file.
11789 * grub-core/lib/xzembed/xz.h: New file (from xembed).
11790 * grub-core/lib/xzembed/xz_config.h: Likewise.
11791 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
11792 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
11793 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
11794 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
11795 * grub-core/lib/xzembed/xz_private.h: Likewise.
11796 * grub-core/lib/xzembed/xz_stream.h: Likewise.
11797 * include/grub/file.h (grub_file_filter_id): New compression filter
11798 GRUB_FILE_FILTER_XZIO.
11799
11800 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11801
11802 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
11803 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
11804 size.
11805
11806 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
11809 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
11810
11811 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 Uncompressed checksum support.
11814
11815 * grub-core/commands/hashsum.c (options): Add option --uncompress.
11816 (check_list): New parameter uncompress.
11817 (grub_cmd_hashsum): Handle --uncompress.
11818
11819 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11820
11821 Reintroduce testload.
11822
11823 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
11824 from here ...
11825 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
11826 (GRUB_MOD_INIT): New function.
11827 (GRUB_MOD_FINI): Likewise.
11828 * grub-core/Makefile.core.def (testload): New module.
11829
11830 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11831
11832 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
11833 (uint8_t): New type.
11834 (uint16_t): Likewise.
11835 (uint32_t): Likewise.
11836 (uint64_t): Likewise.
11837
11838 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11839
11840 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
11841
11842 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11843
11844 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
11845 Made static.
11846 (grub_gzfile_open): Removed. All users updated.
11847 (GRUB_MOD_INIT): New function.
11848 (GRUB_MOD_FINI): Likewise.
11849 * grub-core/kern/file.c (grub_file_filters_all): New variable.
11850 (grub_file_filters_enabled): Likewise.
11851 (grub_file_open): Handle filters.
11852 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
11853 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
11854 * include/grub/file.h (grub_file_filter_id_t): New type.
11855 (grub_file_filter_t): Likewise.
11856 (grub_file_filters_all): New extern variable.
11857 (grub_file_filters_enabled): Likewise.
11858 (grub_file_filter_register): New inline function.
11859 (grub_file_filter_unregister): Likewise.
11860 (grub_file_filter_disable): Likewise.
11861 (grub_file_filter_disable_compression): Likewise.
11862 * include/grub/gzio.h: Removed.
11863
11864 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11865
11866 Filename expansion support for wildcards in GRUB script.
11867
11868 * tests/grub_script_expansion.in: New test.
11869 * Makefile.util.def: Rule for new test.
11870
11871 * grub-core/commands/wildcard.c: New file, implements filename
11872 expansion support for GRUB script.
11873 * grub-core/Makefile.core.def: Rule update for regexp.mod.
11874 * grub-core/script/argv.c: Cosmetic changes.
11875 * grub-core/script/execute.c (grub_script_arglist_to_argv):
11876 Refactored to perform wildcard expansion on arguments.
11877 * include/grub/script_sh.h (grub_script_wildcard_translator): New
11878 struct.
11879
11880 * tests/util/grub-shell.in: Fix quoting for read input.
11881
11882 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11883
11884 Support for updating environment variables with matched substrings
11885 of regexp.
11886
11887 * tests/grub_cmd_regexp.in: New test.
11888 * Makefile.util.def: Rule for new test.
11889
11890 * grub-core/commands/regexp.c: New option -s to update environment
11891 variables with regexp matches.
11892
11893 2010-09-04 Szymon Janc <szymon@janc.net.pl>
11894
11895 * include/grub/file.h (grub_file): New member not_easly_seekable.
11896 (grub_file_seekable): New inline function.
11897 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
11898 easily seekable.
11899 (grub_gzio_open): Set not_easly_seekable.
11900 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
11901 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
11902
11903 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11904
11905 Support for options to appear multiple times on cmdline.
11906
11907 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
11908 * grub-core/commands/extcmd.c: Support for repeatable option.
11909 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
11910 repeatable option support.
11911
11912 Refactor menuentry into a regular command.
11913
11914 * grub-core/commands/menuentry.c: New file, menuentry command
11915 implementation.
11916 * grub-core/Makefile.core.def: Rule update for normal.mod.
11917 * grub-core/normal/main.c: Moved menuentry creation to
11918 grub-core/commands/menuentry.c.
11919 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
11920 (grub_menu_execute_entry_real): Removed.
11921 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
11922 function.
11923 (grub_script_execute_menuentry): Removed.
11924 * grub-core/script/parser.y (menuentry): Removed.
11925 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
11926 * grub-core/script/yylex.l (menuentry): Removed.
11927 * include/grub/menu.h (grub_menu_init): New prototype.
11928 (grub_menu_fini): New prototype.
11929 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
11930 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
11931 (grub_script_execute_sourcecode): New prototype.
11932
11933 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11934
11935 "return" command for GRUB script functions.
11936
11937 * tests/grub_script_return.in: New test.
11938 * Makefile.util.def: Rules for new test.
11939
11940 * grub-core/script/execute.c (grub_script_return): New function.
11941 * grub-core/script/main.c: Register/unregister return commaond.
11942 * include/grub/script_sh.h (grub_script_return): New prototype.
11943
11944 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11945
11946 "setparams" command to update positional parameters.
11947
11948 * tests/grub_script_setparams.in: New test.
11949 * Makefile.util.def: Rules for new test.
11950
11951 * grub-core/script/argv.c (grub_script_argv_make): New function.
11952 * grub-core/script/execute.c (replace_scope): New function.
11953 (grub_script_setparams): New function.
11954 * grub-core/script/lexer.c: Remove unused variables.
11955 * grub-core/script/main.c: Register/unregister setparams command.
11956 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
11957 (grub_script_setparams): New prototype.
11958
11959 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11960
11961 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
11962 grub_free order.
11963
11964 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11965
11966 Support for passing block of commands as an argument to extcmds.
11967
11968 * Makefile.util.def: Rules for new test.
11969 * tests/grub_script_blockarg.in: New test.
11970 * grub-core/tests/test_blockarg.c: New file, block argument
11971 command used in the test.
11972
11973 * include/grub/extcmd.h (grub_extcmd_context): New struct.
11974 (grub_register_extcmd_prio): New function prototype.
11975 (grub_extcmd_dispatcher): New function prototype.
11976 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
11977 type.
11978 * include/grub/script_sh.h (struct grub_script): New members
11979 `children', `next_siblings' and `refcnt' for block arguments and
11980 reference counting.
11981 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
11982 (grub_script_arg): New member `script' for block argument.
11983 (grub_script_argv): New member `script' for block argument.
11984 (grub_parser_param): New member `scripts' for block argument.
11985 (grub_script_mem_free): New extern function prototype.
11986 (grub_script_ref): New function prototype.
11987 (grub_script_unref): New function prototype.
11988
11989 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
11990 extcmd form to support block arguments.
11991 * grub-core/script/argv.c: Block arguments support.
11992 * grub-core/script/execute.c: Likewise.
11993 * grub-core/script/lexer.c: Likewise.
11994 * grub-core/script/main.c: Likewise.
11995 * grub-core/script/script.c: Likewise.
11996 * grub-core/script/parser.y: Likewise. New `block' and `block0'
11997 non-terminals.
11998
11999 * grub-core/commands/acpi.c: Update extcmd implementations with
12000 grub_extcmd_context_t.
12001 * grub-core/commands/cat.c: Likewise.
12002 * grub-core/commands/echo.c: Likewise.
12003 * grub-core/commands/extcmd.c: Likewise.
12004 * grub-core/commands/hashsum.c: Likewise.
12005 * grub-core/commands/hdparm.c: Likewise.
12006 * grub-core/commands/help.c: Likewise.
12007 * grub-core/commands/hexdump.c: Likewise.
12008 * grub-core/commands/i386/cpuid.c: Likewise.
12009 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12010 * grub-core/commands/i386/pc/halt.c: Likewise.
12011 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12012 * grub-core/commands/iorw.c: Likewise.
12013 * grub-core/commands/keystatus.c: Likewise.
12014 * grub-core/commands/loadenv.c: Likewise.
12015 * grub-core/commands/ls.c: Likewise.
12016 * grub-core/commands/lspci.c: Likewise.
12017 * grub-core/commands/memrw.c: Likewise.
12018 * grub-core/commands/probe.c: Likewise.
12019 * grub-core/commands/search_wrap.c: Likewise.
12020 * grub-core/commands/setpci.c: Likewise.
12021 * grub-core/commands/sleep.c: Likewise.
12022 * grub-core/disk/loopback.c: Likewise.
12023 * grub-core/hello/hello.c: Likewise.
12024 * grub-core/loader/i386/bsd.c: Likewise.
12025 * grub-core/loader/xnu.c: Likewise.
12026 * grub-core/term/gfxterm.c: Likewise.
12027 * grub-core/term/serial.c: Likewise.
12028 * grub-core/tests/lib/functional_test.c: Likewise.
12029
12030 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12031
12032 Multi-line quoted strings support.
12033
12034 * grub-core/script/lexer.c (append_newline): Removed.
12035 (grub_script_lexer_yywrap): Refactored.
12036 (grub_script_lexer_init): Refactored.
12037 * grub-core/script/yylex.l (yywrap): New function.
12038 (grub_lexer_resplit): New function.
12039 (grub_lexer_unput): New function.
12040 * include/grub/script_sh.h (grub_lexer_param): New members, unput
12041 and resplit.
12042 * tests/grub_script_echo1.in: Added few more testcases.
12043
12044 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 * grub-core/kern/misc.c: Don't add abort alias in utils.
12047 Reported by: echoline.
12048
12049 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
12050
12051 Add missing files into "make dist" tarball for other platforms.
12052
12053 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
12054 * conf/Makefile.common (dist_noinst_DATA): New variable.
12055 * conf/Makefile.extra-dist: Added missing make dist files.
12056 * grub-core/Makefile.core.def: Likewise.
12057
12058 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12059
12060 Compress grub_prefix.
12061
12062 * grub-core/boot/i386/pc/lnxboot.S: Use
12063 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
12064 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
12065 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
12066 GRUB_MACHINE_PREFIX_END. All users updated.
12067 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
12068 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
12069 + 0x40.
12070 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12071 * util/grub-mkimage.c (image_target_desc): Change data_end to
12072 prefix_end. All users updated.
12073
12074 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
12077 value.
12078 (grub_openbsd_boot): Likewise.
12079 (grub_netbsd_boot): Likewise.
12080 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
12081 (grub_xnu_boot): Likewise.
12082
12083 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12084
12085 * configure.ac: Clean LIBS variable after tests.
12086
12087 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12088
12089 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
12090
12091 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
12094 echo if libdevmapper will be used.
12095
12096 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
12097
12098 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
12099 constant for the same file.
12100
12101 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12102
12103 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
12104
12105 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12106
12107 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
12108 grub-core/*.pp.
12109
12110 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12111
12112 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
12113 required by the boot protocol.
12114
12115 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
12116 ebp and edi members.
12117 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
12118 state.ebp and state.edi.
12119 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
12120 %ebp and %edi according to grub_relocator32_ebp and
12121 grub_relocator32_edi respectively.
12122 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
12123 and state.edi.
12124
12125 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12126
12127 Add i386-pc-pxe image target.
12128
12129 * util/grub-mkimage.c (image_target_desc): New enum value
12130 IMAGE_I386_PC_PXE.
12131 (image_targets): New target i386-pc-pxe.
12132 (generate_image): Handle i386-pc-pxe image.
12133
12134 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12135
12136 Fix grub_pxe_scan.
12137
12138 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
12139 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
12140 All users updated.
12141 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
12142 (grub_pxe_pxenv): Correct type.
12143
12144 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12145
12146 * NEWS: Document most of the important changes since 1.98.
12147
12148 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12149
12150 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
12151 generated manual page) a little.
12152
12153 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12154
12155 * docs/grub.texi: Add myself as an author.
12156
12157 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
12158
12159 * Makefile.util.def (libgrub.a): Add missing sunpc.
12160 Reported by: Seth Goldberg.
12161
12162 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12163
12164 Interrupt wrapping and code simplifications.
12165
12166 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
12167 x86_noieee1275 which are functionaly equivalent in this case.
12168 (grub-install): Make source on each platform explicit. Enable on
12169 all noemu.
12170 * gentpl.py (x86_efi_pc): Removed group.
12171 (x86_noefi): Likewise.
12172 (i386_noefi): Likewise.
12173 (x86_noieee1275): Likewise.
12174 (i386_noieee1275): Likewise.
12175 (i386_noefi_noieee1275): Likewise.
12176 (i386_pc_qemu_coreboot): Likewise.
12177 (i386_coreboot_multiboot): Likewise.
12178 (i386_pc_coreboot_multiboot_qemu): Likewise.
12179 (x86_noefi_mips): Likewise.
12180 (noieee1275): Likewise.
12181 (ieee1275_mips): Likewise.
12182 (noemu_noieee1275): Likewise.
12183 (cmos): New group.
12184 (usb): Likewise.
12185 (videoinkernel): Likewise.
12186 (videomodules): Likewise.
12187 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
12188 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
12189 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
12190 include/grub/loader.h, include/grub/msdos_partition.h,
12191 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
12192 include/grub/machine/console.h, include/grub/machine/vga.h,
12193 include/grub/machine/vbe.h, include/grub/machine/init.h,
12194 include/grub/machine/kernel.h, include/grub/cpu/time.h,
12195 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
12196 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
12197 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
12198 * grub-core/Makefile.core.def (kernel): Explicit the source for
12199 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
12200 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
12201 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
12202 Use videoinkernel tag.
12203 (usb): Enable on all usb.
12204 (usbserial_common): Likewise.
12205 (usbserial_pl2303): Likewise.
12206 (usbserial_ftdi): Likewise.
12207 (uhci): Enable on all x86.
12208 (ohci): Enable on all pci.
12209 (cmostest): Enable on all CMOS.
12210 (acpi): Include commands/acpi.c on all platforms.
12211 (halt): Add relevant lib/*/halt.c.
12212 (hdparm): Enable on all pci.
12213 (lspci): Likewise.
12214 (usbtest): Enable on all usb.
12215 (ata): Enable on all pci.
12216 (ata_pthru): Likewise.
12217 (usbms): Enable on all usb.
12218 (usb_keyboard): Likewise.
12219 (font): Use tag videomodules.
12220 (bufio): Likewise.
12221 (datetime): Use tag cmos. Enable on all noemu.
12222 (mmap): Use tags common and x86.
12223 (gfxterm): Use tag videomodules.
12224 (bitmap): Likewise.
12225 (bitmap_scale): Likewise.
12226 (video_fb): Likewise.
12227 (video): Likewise.
12228 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
12229 adjust padding accordingly. All users updated.
12230 (grub_ohci_transaction): Fix bad format specification.
12231 (GRUB_MOD_INIT): Add asserts for struct size.
12232 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
12233 (grub_alloc_td): Likewise.
12234 (grub_free_queue): Likewise.
12235 (grub_uhci_transfer): Likewise.
12236 (grub_uhci_transaction): Fix bad format specification.
12237 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
12238 (grub_usb_bulk_readwrite): Likewise.
12239 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
12240 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
12241 Made static.
12242 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
12243 Made static.
12244 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
12245 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
12246 Transformed into C.
12247 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
12248 Moved from here ...
12249 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
12250 ... here. Transformed into C. Made static.
12251 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
12252 Moved from here ...
12253 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
12254 ... here. Transformed into C. Made static.
12255 * grub-core/kern/i386/pc/startup.S
12256 (grub_biosdisk_check_int13_extensions): Moved from here ...
12257 * grub-core/disk/i386/pc/biosdisk.c
12258 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
12259 Made static.
12260 * grub-core/kern/i386/pc/startup.S
12261 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
12262 * grub-core/disk/i386/pc/biosdisk.c
12263 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
12264 Transformed into C. Made static.
12265 * grub-core/kern/i386/pc/startup.S
12266 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
12267 * grub-core/disk/i386/pc/biosdisk.c
12268 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
12269 Transformed into C. Made static.
12270 * grub-core/kern/i386/pc/startup.S
12271 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
12272 * grub-core/disk/i386/pc/biosdisk.c
12273 (grub_biosdisk_get_diskinfo_standard): ... here.
12274 Transformed into C. Made static.
12275 * grub-core/kern/i386/pc/startup.S
12276 (grub_biosdisk_get_num_floppies): Moved from here ...
12277 * grub-core/disk/i386/pc/biosdisk.c
12278 (grub_biosdisk_get_num_floppies): ... here.
12279 Transformed into C. Made static.
12280 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
12281 New function.
12282 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
12283 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
12284 Transformed into C. Made static.
12285 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
12286 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
12287 Transformed into C. Made static.
12288 * grub-core/kern/i386/ieee1275/init.c: Removed.
12289 * grub-core/kern/i386/misc.S: Likewise.
12290 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
12291 Splitted from here ...
12292 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
12293 Transformed into C. Made static. All users updated.
12294 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
12295 Transformed into C. Made static. All users updated.
12296 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
12297 Moved from here...
12298 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
12299 Transformed into C. Made static. All users updated.
12300 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
12301 Moved from here...
12302 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
12303 Transformed into C. Made static. All users updated.
12304 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
12305 Removed (replaced by C version).
12306 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
12307 Moved from here...
12308 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
12309 Transformed into C. Made static.
12310 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
12311 Moved from here...
12312 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
12313 ... here. Transformed into C.
12314 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
12315 Moved from here...
12316 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
12317 ... here. Transformed into C.
12318 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
12319 Moved from here...
12320 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
12321 ... here. Transformed into C. Made static.
12322 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
12323 Moved from here...
12324 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
12325 ... here. Transformed into C.
12326 * grub-core/kern/i386/pc/startup.S
12327 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
12328 * grub-core/video/i386/pc/vbe.c
12329 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
12330 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
12331 Moved from here...
12332 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
12333 ... here. Transformed into C.
12334 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
12335 Moved from here...
12336 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
12337 ... here. Transformed into C.
12338 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
12339 Moved from here...
12340 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
12341 ... here. Transformed into C.
12342 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
12343 Moved from here...
12344 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
12345 ... here. Transformed into C.
12346 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
12347 Moved from here...
12348 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
12349 ... here. Transformed into C. Made static.
12350 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
12351 Moved from here...
12352 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
12353 ... here. Transformed into C. Made static.
12354 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
12355 Moved from here...
12356 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
12357 ... here. Transformed into C. Made static.
12358 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
12359 pxe_rm_entry as third argument.
12360 (grub_bios_interrupt): New function.
12361 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
12362 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
12363 of calling grub_stop.
12364 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
12365 * grub-core/lib/efi/halt.c (grub_halt): ...here.
12366 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
12367 * grub-core/lib/emu/halt.c (grub_halt): ... here.
12368 * grub-core/lib/i386/halt.c: Moved from here ...
12369 * grub-core/lib/i386/halt.c: ... here.
12370 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
12371 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
12372 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
12373 grub_stop_floppy.
12374 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
12375 * include/grub/i386/coreboot/init.h: Removed.
12376 * include/grub/i386/multiboot/init.h: Likewise.
12377 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
12378 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
12379 * include/grub/i386/pc/int.h: New file.
12380 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
12381 (grub_pxe_scan): Removed.
12382 (grub_pxe_call): Update prototype.
12383 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
12384 prototypes.
12385 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
12386 * include/grub/i386/qemu/init.h: Removed.
12387 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
12388 noreturn.
12389 (grub_halt): Likewise.
12390 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
12391 (grub_reboot): Likewise.
12392 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
12393 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
12394 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
12395
12396 2010-08-30 Robert Millan <rmh@gnu.org>
12397
12398 * NEWS: Document addition of ZFS support in `grub-install' and
12399 `grub-mkconfig'.
12400
12401 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
12402
12403 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
12404 dprintf output.
12405
12406 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12407
12408 Remove leftover embedding of font objects.
12409
12410 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12411 * util/grub-install.in (font): Removed.
12412 * util/grub-mkimage.c (generate_image): Remove font support. All users
12413 updated.
12414
12415 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 Remove leftover embedding of font objects.
12418
12419 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12420 * util/grub-install.in (font): Removed.
12421 * util/grub-mkimage.c (generate_image): Remove font support. All users
12422 updated.
12423
12424 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12425
12426 * docs/grub.texi (Network): Fix reference to pxe_blksize.
12427 Reported by: Ian Turner
12428
12429 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12430
12431 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
12432 timeout to avoid indefinite boot stalling.
12433
12434 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12435
12436 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
12437 (grub_env_write_color_highlight): Likewise.
12438
12439 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12440
12441 * grub-core/normal/term.c (print_more): Return to normal and not
12442 to standard state after printing "---MORE---".
12443
12444 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12445
12446 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
12447 Mask out the bit 0x80 since it has other meaning that specifiing color.
12448
12449 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12450
12451 New relocator. Allows for more kernel support and more straightforward
12452 loader writing.
12453
12454 * Makefile.am (BOOTTARGET): New variable.
12455 (QEMU32): Likewise.
12456 (linux.init.x86_64): New target.
12457 (linux.init.i386): Likewise.
12458 (multiboot.elf): Likewise.
12459 (kfreebsd.elf): Likewise.
12460 (kfreebsd.aout): Likewise.
12461 (pc-chainloader.elf): Likewise.
12462 (pc-chainloader.bin): Likewise.
12463 (ntldr.elf): Likewise.
12464 (ntldr.bin): Likewise.
12465 (multiboot2.elf): Likewise.
12466 (kfreebsd.init.x86_64): Likewise.
12467 (kfreebsd.init.i386): Likewise.
12468 (knetbsd.init.i386): Likewise.
12469 (kopenbsd.init.i386): Likewise.
12470 (knetbsd.init.x86_64): Likewise.
12471 (kopenbsd.init.x86_64): Likewise.
12472 (linux-initramfs.i386): Likewise.
12473 (linux-initramfs.x86_64): Likewise.
12474 (kfreebsd-mfsroot.i386.img): Likewise.
12475 (knetbsd.image.i386): Likewise.
12476 (kopenbsd.image.i386): Likewise.
12477 (kopenbsd.image.x86_64): Likewise.
12478 (knetbsd.miniroot-image.i386.img): Likewise.
12479 (kfreebsd-mfsroot.x86_64.img): Likewise.
12480 (knetbsd.image.x86_64): Likewise.
12481 (knetbsd.miniroot-image.x86_64.img): Likewise.
12482 (kfreebsd-mfsroot.i386.gz): Likewise.
12483 (bootcheck-kfreebsd-i386): Likewise.
12484 (kfreebsd-mfsroot.x86_64.gz): Likewise.
12485 (bootcheck-kfreebsd-x86_64): Likewise.
12486 (knetbsd.miniroot-image.i386.gz): Likewise.
12487 (bootcheck-knetbsd-i386): Likewise.
12488 (bootcheck-kopenbsd-i386): Likewise.
12489 (bootcheck-kopenbsd-x86_64): Likewise.
12490 (knetbsd.miniroot-image.x86_64.gz): Likewise.
12491 (bootcheck-knetbsd-x86_64): Likewise.
12492 (bootcheck-linux-i386): Likewise.
12493 (bootcheck-linux-x86_64): Likewise.
12494 (bootcheck-linux16-i386): Likewise.
12495 (bootcheck-linux16-x86_64): Likewise.
12496 (bootcheck-multiboot): Likewise.
12497 (bootcheck-multiboot2): Likewise.
12498 (bootcheck-kfreebsd-aout): Likewise.
12499 (bootcheck-pc-chainloader): Likewise.
12500 (bootcheck-ntldr): Likewise.
12501 (CLEANFILES): Add new targets.
12502 (BOOTCHECKS): New variable.
12503 (.PHONY): Add bootchecks.
12504 (SUCCESSFUL_BOOT_STRING): New variable.
12505 (BOOTCHECK_TIMEOUT): Likewise.
12506 (bootcheck): New target
12507 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
12508 * configure.ac: Correct efiemu excuse.
12509 * docs/grub.texi (Supported kernels): New chapter.
12510 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
12511 include/grub/mm_private.h. Simplify inclusion of
12512 include/grub/boot.h, include/grub/loader.h
12513 and include/grub/msdos_partition.h
12514 (KERNEL_HEADER_FILES) [i386_coreboot]:
12515 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
12516 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
12517 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
12518 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
12519 include/grub/machine/loader.h.
12520 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
12521 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
12522 extra_dist.
12523 (pci.mod): Enable on i386-multiboot.
12524 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
12525 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
12526 i386-qemu.
12527 (relocator.mod): Rewritten.
12528 (aout.mod): Enable on all x86.
12529 (bsd.mod): Likewise.
12530 (ntldr.mod): New module.
12531 (linux.mod): Use loader/i386/linux.c on all x86.
12532 (xnu.mod): Enable on all x86.
12533 (vga_text.mod): disable on EFI and QEMU.
12534 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
12535 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
12536 * grub-core/efiemu/loadcore.c: Likewise.
12537 * grub-core/efiemu/main.c: Likewise.
12538 (grub_efiemu_exit_boot_services): Removed.
12539 (grub_efiemu_finish_boot_services): Likewise.
12540 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
12541 function.
12542 * grub-core/efiemu/i386/nocfgtables.c: New file.
12543 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
12544 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
12545 (grub_efi_finish_boot_services): Moved from here ...
12546 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
12547 Fille finish memory map and related data.
12548 (finish_mmap_buf): New variable.
12549 (grub_efi_uintn_t finish_mmap_size): Likewise.
12550 (grub_efi_uintn_t finish_key): Likewise.
12551 (grub_efi_uintn_t finish_desc_size): Likewise.
12552 (grub_efi_uint32_t finish_desc_version): Likewise.
12553 (grub_efi_is_finished): Likewise.
12554 (grub_efi_get_memory_map): Use saved memory map if EFI is already
12555 finished.
12556 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
12557 (grub_elf64_phdr_iterate): Likewise.
12558 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
12559 (grub_os_area_size): Likewise.
12560 (grub_machine_init): Don't reserve os area.
12561 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
12562 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12563 * grub-core/kern/i386/loader.S: Removed.
12564 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
12565 (grub_os_area_size): Likewise.
12566 (grub_machine_init): Don't reserve os area.
12567 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12568 Don't call grub_dl_unload_all.
12569 Don't include loader.S.
12570 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
12571 Declare the memory after _end as available.
12572 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
12573 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
12574 (GRUB_MM_ALLOC_MAGIC): Moved from here...
12575 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
12576 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
12577 * include/grub/mm_private.h (grub_mm_header): ... here.
12578 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
12579 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
12580 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
12581 (grub_mm_region): ..here. Removed addr. Added pre_size.
12582 All users updated.
12583 * grub-core/kern/mm.c (base): Renamed to ...
12584 (grub_mm_base): ... this. Made global.
12585 (grub_real_malloc): Alloc from end of region.
12586 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
12587 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
12588 * grub-core/kern/powerpc/cache_flush.S: ... here.
12589 * grub-core/lib/efi/relocator.c: New file.
12590 * grub-core/lib/i386/relocator.c: Rewritten.
12591 * grub-core/lib/i386/relocator16.S: New file.
12592 * grub-core/lib/i386/relocator32.S: Likewise.
12593 * grub-core/lib/i386/relocator64.S: Likewise.
12594 * grub-core/lib/i386/relocator_asm.S: Rewritten.
12595 * grub-core/lib/i386/relocator_common.S: New file.
12596 * grub-core/lib/ieee1275/relocator.c: Likewise.
12597 * grub-core/lib/mips/relocator.c: Rewritten.
12598 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
12599 stylistic adjustments.
12600 * grub-core/lib/powerpc/relocator.c: New file.
12601 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
12602 * grub-core/lib/relocator.c: Rewritten.
12603 * grub-core/lib/x86_64/relocator_asm.S: New file.
12604 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
12605 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
12606 (bsd_tag): New struct.
12607 (tags): New variable.
12608 (tags_last): Likewise.
12609 (netbsd_module): New struct.
12610 (netbsd_mods): New variable.
12611 (netbsd_mods_last): Likewise.
12612 (openbsd_opts): New parameter "serial".
12613 (OPENBSD_SERIAL_ARG): New definition.
12614 (netbsd_opts): New parameter "serial".
12615 (NETBSD_SERIAL_ARG): New definition.
12616 (grub_freebsd_add_meta): Reorganised into ...
12617 (grub_bsd_add_meta): ...this. All users updated.
12618 (grub_freebsd_add_mmap): Reorganised into ...
12619 (generate_e820_mmap): ...this...
12620 (grub_bsd_add_mmap): ...and this. All users updated.
12621 (grub_freebsd_list_modules): Use tags.
12622 (grub_netbsd_add_meta_module): New function.
12623 (grub_netbsd_list_modules): Likewise.
12624 (grub_freebsd_boot): Use relocator and finish EFI.
12625 (grub_openbsd_boot): Likewise.
12626 (grub_netbsd_setup_video): New function.
12627 (grub_netbsd_add_modules): Likewise.
12628 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
12629 and finish EFI.
12630 (grub_bsd_unload): Unload tags.
12631 (grub_bsd_load_aout): Use relocator.
12632 (grub_bsd_elf32_size_hook): New function.
12633 (grub_bsd_elf32_hook): Use relocator.
12634 (grub_bsd_elf64_size_hook): New function.
12635 (grub_bsd_elf64_hook): Use relocator.
12636 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
12637 (grub_bsd_load): Zero-out openbsd_ramdisk.
12638 (grub_bsd_load): Use relocator.
12639 (grub_cmd_openbsd): Support serial.
12640 (grub_cmd_netbsd): Support modules.
12641 (grub_cmd_freebsd_module): Use relocator.
12642 (grub_netbsd_module_load): New function.
12643 (grub_cmd_netbsd_module): Likewise.
12644 (grub_cmd_openbsd_ramdisk): Likewise.
12645 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
12646 kopenbsd_ramdisk.
12647 (GRUB_MOD_FINI): Unregister new commands.
12648 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
12649 (grub_freebsd_load_elfmodule_obj): Use relocator.
12650 (grub_freebsd_load_elfmodule): Likewise.
12651 (grub_freebsd_load_elf_meta): Likewise.
12652 (grub_netbsd_load_elf_meta): New function.
12653 (grub_openbsd_find_ramdisk): Likewise.
12654 * grub-core/loader/i386/bsd_helper.S: Removed.
12655 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
12656 * grub-core/loader/i386/bsd_trampoline.S: Removed.
12657 * grub-core/loader/i386/efi/linux.c: Likewise.
12658 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
12659 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
12660 (DEFAULT_VIDEO_MODE): Likewise.
12661 (real_mode_target): New variable.
12662 (prot_mode_target): Likewise.
12663 (initrd_mem_target): Likewise.
12664 (relocator): Likewise.
12665 (efi_mmap_buf): Likewise.
12666 (efi_mmap_size): Likewise.
12667 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
12668 (free_pages): Use relocator.
12669 (allocate_pages): Account for efi_mmap and use relocator. Return error.
12670 (grub_linux_setup_video): Return error.
12671 (grub_linux_trampoline_start): Removed.
12672 (grub_linux_trampoline_end): Likewise.
12673 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
12674 andd video parameters depending on firmware.
12675 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
12676 [GRUB_MACHINE_EFI]: Pass EFI parameters.
12677 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
12678 (grub_cmd_initrd): Use relocator.
12679 * grub-core/loader/i386/linux_trampoline.S: Removed.
12680 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
12681 (elf_sec_entsize): Likewise.
12682 (elf_sec_shstrndx): Likewise.
12683 (elf_sections): Likewise.
12684 (grub_multiboot_load): Use relocator.
12685 (grub_multiboot_get_mbi_size): Account for sections.
12686 (grub_multiboot_make_mbi): Use relocator and support sections.
12687 (grub_multiboot_add_elfsyms): New function.
12688 (grub_multiboot_free_mbi): Free sections.
12689 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
12690 (grub_linux_real_target): Likewise.
12691 (grub_linux_real_chunk): Likewise.
12692 (grub_linux16_prot_size): Likewise.
12693 (grub_linux16_boot): Use relocator.
12694 (grub_linux_unload): Unload relocator.
12695 (grub_cmd_linux): Use relocator.
12696 (grub_cmd_initrd): Likewise.
12697 * grub-core/loader/i386/pc/ntldr.c: New file.
12698 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
12699 Don't try to guess CPU frequency.
12700 (grub_xnu_set_video): Stretch bitmap.
12701 (grub_xnu_boot): Use relocator.
12702 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
12703 (grub_linux_unload): Free relocator.
12704 (grub_linux_load32): Use relocator.
12705 (grub_linux_load64): Likewise.
12706 (grub_cmd_initrd): Likewise.
12707 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
12708 (grub_multiboot_unload): Unload relocator.
12709 (grub_cmd_multiboot): Use relocator.
12710 (grub_cmd_module): Likewise.
12711 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
12712 Use relocator and support sections.
12713 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
12714 (elf_sec_entsize): Likewise.
12715 (elf_sec_shstrndx): Likewise.
12716 (elf_sections): Likewise.
12717 (grub_multiboot_load): Use relocator.
12718 (grub_multiboot_get_mbi_size): Account for sections.
12719 (grub_multiboot_make_mbi): Use relocator and support sections.
12720 (grub_multiboot_add_elfsyms): New function.
12721 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
12722 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
12723 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
12724 Prototype changed. All users updated.
12725 (grub_xnu_align_heap): Simplified.
12726 (grub_xnu_writetree_toheap): Likewise.
12727 (grub_xnu_unload): Unload relocator.
12728 (grub_cmd_xnu_kernel): Use relocator.
12729 (grub_cmd_xnu_kernel64): Likewise.
12730 (grub_xnu_register_memory): Simplified.
12731 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
12732 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
12733 EFI is finished.
12734 (grub_console_checkkey): Likewise.
12735 (grub_console_getkey): Likewise.
12736 (grub_console_getwh): Likewise.
12737 (grub_console_getxy): Likewise.
12738 (grub_console_gotoxy): Likewise.
12739 (grub_console_cls): Likewise.
12740 (grub_console_setcolorstate): Likewise.
12741 (grub_console_setcursor): Likewise.
12742 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
12743 * grub-core/tests/boot/kbsd.init-i386.S: New file.
12744 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
12745 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
12746 * grub-core/tests/boot/kernel-8086.S: Likewise.
12747 * grub-core/tests/boot/kernel-i386.S: Likewise.
12748 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
12749 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
12750 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
12751 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
12752 * grub-core/tests/boot/knetbsd.cfg: Likewise.
12753 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
12754 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
12755 * grub-core/tests/boot/linux.cfg: Likewise.
12756 * grub-core/tests/boot/linux.init-i386.S: Likewise.
12757 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
12758 * grub-core/tests/boot/linux16.cfg: Likewise.
12759 * grub-core/tests/boot/multiboot.cfg: Likewise.
12760 * grub-core/tests/boot/multiboot2.cfg: Likewise.
12761 * grub-core/tests/boot/ntldr.cfg: Likewise.
12762 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
12763 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
12764 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
12765 New definition.
12766 * include/grub/dl.h (grub_dl_unload_all): Removed.
12767 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
12768 (grub_efi_finish_boot_services): Change prototype.
12769 (grub_efi_is_finished): New variable.
12770 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
12771 Changed prototype.
12772 (grub_efiemu_finish_boot_services): Removed.
12773 (grub_machine_efiemu_init_tables): New prototype.
12774 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
12775 (grub_elf64_phdr_iterate): Likewise.
12776 * include/grub/i386/bsd.h: Include relocator.h.
12777 (freebsd_tag_header): New struct.
12778 (grub_openbsd_bios_mmap): Removed.
12779 (grub_unix_real_boot): Removed.
12780 (grub_freebsd_load_elfmodule32): Changed prototype.
12781 (grub_freebsd_load_elfmodule_obj64): Likewise.
12782 (grub_freebsd_load_elf_meta32): Likewise.
12783 (grub_freebsd_load_elf_meta64): Likewise.
12784 (grub_freebsd_add_meta): Removed.
12785 (grub_netbsd_load_elf_meta32): New prototype.
12786 (grub_netbsd_load_elf_meta64): Likewise.
12787 (grub_bsd_add_meta): Likewise.
12788 (grub_openbsd_ramdisk_descriptor): New struct.
12789 (grub_openbsd_find_ramdisk32): New prototype.
12790 (grub_openbsd_find_ramdisk64): Likewise.
12791 * include/grub/i386/coreboot/loader.h: Removed.
12792 * include/grub/i386/efi/loader.h: Likewise.
12793 * include/grub/i386/ieee1275/loader.h: Likewise.
12794 * include/grub/i386/linux.h (linux_kernel_header): Change void *
12795 to grub_uint32_t.
12796 * include/grub/i386/loader.h: Removed.
12797 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
12798 value.
12799 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
12800 (grub_phys_addr_t): New type.
12801 (grub_vtop): New inline function.
12802 (grub_map_memory): Likewise.
12803 (grub_unmap_memory): Likewise.
12804 * include/grub/i386/multiboot/loader.h: Removed.
12805 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
12806 (NETBSD_BTINFO_CONSOLE): New definition.
12807 (NETBSD_BTINFO_SYMTAB): Likewise.
12808 (NETBSD_BTINFO_MODULES): Likewise.
12809 (NETBSD_BTINFO_FRAMEBUF): Likewise.
12810 (grub_netbsd_bootinfo): New struct.
12811 (grub_netbsd_btinfo_common): Use explicit bitsize.
12812 (grub_netbsd_btinfo_mmap_entry): Removed.
12813 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
12814 (grub_netbsd_btinfo_bootdisk): New struct.
12815 (grub_netbsd_btinfo_symtab): Likewise.
12816 (grub_netbsd_btinfo_serial): Likewise.
12817 (grub_netbsd_btinfo_modules): Likewise.
12818 (grub_netbsd_btinfo_framebuf): Likewise.
12819 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
12820 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
12821 Likewise.
12822 (grub_openbsd_bootargs): Use explicit bitsize.
12823 (grub_openbsd_bootarg_console): New struct.
12824 (GRUB_OPENBSD_COM_MAJOR): New definition.
12825 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
12826 * include/grub/i386/pc/efiemu.h: Removed.
12827 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
12828 * include/grub/i386/qemu/loader.h: Removed.
12829 * include/grub/i386/relocator.h: Rewritten.
12830 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
12831 * include/grub/mips/memory.h: New file.
12832 * include/grub/mips/multiboot.h: Rewritten.
12833 * include/grub/mips/relocator.h: Rewritten.
12834 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
12835 (grub_vtop): New function.
12836 (grub_map_memory): Likewise.
12837 (grub_unmap_memory): Likewise.
12838 * include/grub/misc.h (ALIGN_DOWN): New definition.
12839 * include/grub/mm.h (grub_mm_check_real): New proto.
12840 (GRUB_MM_CHECK): New definition.
12841 * include/grub/mm_private.h: New file.
12842 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
12843 (grub_multiboot_get_mbi_size): Removed.
12844 (grub_multiboot_make_mbi): Change prottype.
12845 (grub_multiboot_set_accepts_video): New proto.
12846 (grub_multiboot_add_elfsyms): Likewise.
12847 (grub_multiboot_payload_eip): New variable.
12848 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
12849 New prototype.
12850 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
12851 New definition.
12852 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
12853 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
12854 * include/grub/powerpc/ieee1275/loader.h: Removed.
12855 * include/grub/powerpc/memory.h: New file.
12856 * include/grub/powerpc/relocator.h: Likewise.
12857 * include/grub/relocator.h: Likewise.
12858 * include/grub/relocator_private.h: Likewise.
12859 * include/grub/sparc64/ieee1275/loader.h: Removed.
12860 * include/grub/x86_64/memory.h: New file.
12861 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
12862 (grub_xnu_heap_malloc): Likewise.
12863 (grub_xnu_heap_real_start): Removed.
12864 (grub_xnu_heap_start): Likewise.
12865 (grub_xnu_relocator): New variable.
12866 (grub_xnu_heap_target_start): Likewise.
12867 * tests/util/grub-shell.in: Support non-pc.
12868 * util/grub-mkimage.c (image_targets): Fix multiboot target.
12869
12870 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
12873 on malloc error.
12874 (grub_bidi_logical_to_visual): Check that malloc succeded.
12875 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
12876 puts.
12877 (grub_xputs_normal): Likewise.
12878
12879 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12880
12881 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
12882 extra_dist.
12883
12884 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12885
12886 * grub-core/efiemu/runtime/efiemu.sh: Removed.
12887
12888 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12889
12890 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
12891
12892 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
12895 dprintf.
12896
12897 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
12898
12899 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
12900
12901 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12902
12903 * grub-core/normal/term.c (print_more): Fix a memory leak.
12904 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
12905 (grub_xputs_normal): Likewise.
12906
12907 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12908
12909 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
12910 the begining of the string
12911
12912 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12913
12914 * grub-core/script/script.c (grub_script_parse): Free parsed on
12915 failure.
12916
12917 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12918
12919 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
12920 on failure.
12921
12922 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12923
12924 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
12925 return.
12926
12927 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12928
12929 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
12930 (scroll_up): Fix a memory leak.
12931
12932 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
12935 errors.
12936
12937 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
12938
12939 Handle USB pendrives exposed as floppies.
12940
12941 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
12942 floppy.
12943 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
12944 Check for partitions on all devices.
12945
12946 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
12947
12948 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
12949 (readkey): Likewise.
12950
12951 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
12952
12953 Multiple variable names support to "export" command.
12954
12955 * normal/context.c (grub_cmd_export): "export" command supports
12956 multiple variable names.
12957
12958 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
12959
12960 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
12961 --target=drive output to Mach device name.
12962
12963 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
12964
12965 New Automake based build system for GRUB.
12966
12967 * ABOUT-NLS: New file.
12968 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
12969 in Makefile.util.def file.
12970 * Makefile.util.def: New file. Autogen build definitions file for
12971 GRUB host utils.
12972 * conf/Makefile.common: New file. Common variables for GRUB host
12973 utils and target modules.
12974 * conf/Makefile.extra-dist: New file. Extra files for make dist.
12975 * docs/Makefile.am: New file. Automake file for docs.
12976 * gentpl.py: New file. Python script to generate Autogen
12977 template.
12978 * grub-core/Makefile.am: New file. GRUB target modules' rules
12979 that doesn't fit in Makefile.core.def file.
12980 * grub-core/Makefile.core.def: New file. Autogen build
12981 definitions file for GRUB target modules.
12982 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
12983 specific setjmp.S file.
12984 * po/Makefile.am: New file.
12985
12986 * .bzrignore: New ignores.
12987 * INSTALL: New requirements, without Ruby.
12988 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
12989 * autogen.sh: Updated to invoke autogen as necessary.
12990 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
12991 and defines for Automake conditionals.
12992 * geninit.sh: Refactoring.
12993
12994 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
12995 necessary.
12996 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
12997 New prototype.
12998
12999 * include/grub/test.h: Fix functional test modules' naming.
13000 * grub-core/tests/example_functional_test.c: Fix test module name.
13001
13002 * util/misc.c: Hosted versions' of grub functions for libgrub.a
13003 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
13004 * util/grub-editenv.c: Likewise.
13005 * util/grub-fstest.c: Likewise.
13006 * util/grub-mkdevicemap.c: Likewise.
13007 * util/grub-mkfont.c: Likewise.
13008 * util/grub-mkimage.c: Likewise.
13009 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13010 * util/grub-probe.c: Likewise.
13011 * util/grub-script-check.c: Likewise.
13012 * util/i386/pc/grub-setup.c: Likewise.
13013 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13014
13015 * tests/util/grub-shell.in: Fix override directory path.
13016 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
13017 * util/import_gcry.py: Create Makefile.gcry.def file instead.
13018
13019 * util/lvm.c: Update #includes.
13020 * util/raid.c: Likewise.
13021 * util/resolve.c: Likewise.
13022 * grub-core/bus/emu/pci.c: Likewise.
13023 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
13024 * grub-core/lib/posix_wrap/string.h: Likewise.
13025 * grub-core/kern/emu/main.c: Likewise.
13026
13027 * grub-core/gensymlist.sh: New file. Script for generating kernel
13028 symbols file.
13029 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
13030
13031 * grub-core/gentrigtables.c: Fix unused variable warnings.
13032
13033 * Makefile.in: Removed.
13034 * conf/any-emu.rmk: Removed.
13035 * conf/common.rmk: Removed.
13036 * conf/i386-coreboot.rmk: Removed.
13037 * conf/i386-efi.rmk: Removed.
13038 * conf/i386-ieee1275.rmk: Removed.
13039 * conf/i386-multiboot.rmk: Removed.
13040 * conf/i386-pc.rmk: Removed.
13041 * conf/i386-qemu.rmk: Removed.
13042 * conf/i386.rmk: Removed.
13043 * conf/mips-yeeloong.rmk: Removed.
13044 * conf/mips.rmk: Removed.
13045 * conf/powerpc-ieee1275.rmk: Removed.
13046 * conf/sparc64-ieee1275.rmk: Removed.
13047 * conf/tests.rmk: Removed.
13048 * conf/x86-efi.rmk: Removed.
13049 * conf/x86_64-efi.rmk: Removed.
13050 * gendistlist.sh: Removed.
13051 * geninitheader.sh: Removed.
13052 * genkernsyms.sh.in: Removed.
13053 * genmk.rb: Removed.
13054 * gensymlist.sh.in: Removed.
13055 * mkinstalldirs: Removed.
13056 * boot: Moved ...
13057 * grub-core/boot: ... to here.
13058 * bus: Moved ...
13059 * grub-core/bus: ... to here.
13060 * commands: Moved ...
13061 * grub-core/commands: ... to here.
13062 * disk: Moved ...
13063 * grub-core/disk: ... to here.
13064 * efiemu: Moved ...
13065 * grub-core/efiemu: ... to here.
13066 * font: Moved ...
13067 * grub-core/font: ... to here.
13068 * fs: Moved ...
13069 * grub-core/fs: ... to here.
13070 * gencmdlist.sh: Moved ...
13071 * grub-core/gencmdlist.sh: ... to here.
13072 * genemuinit.sh: Moved ...
13073 * grub-core/genemuinit.sh: ... to here.
13074 * genemuinitheader.sh: Moved ...
13075 * grub-core/genemuinitheader.sh: ... to here.
13076 * genfslist.sh: Moved ...
13077 * grub-core/genfslist.sh: ... to here.
13078 * genhandlerlist.sh: Moved ...
13079 * grub-core/genhandlerlist.sh: ... to here.
13080 * genmoddep.awk: Moved ...
13081 * grub-core/genmoddep.awk: ... to here.
13082 * genmodsrc.sh: Moved ...
13083 * grub-core/genmodsrc.sh: ... to here.
13084 * genpartmaplist.sh: Moved ...
13085 * grub-core/genpartmaplist.sh: ... to here.
13086 * genparttoollist.sh: Moved ...
13087 * grub-core/genparttoollist.sh: ... to here.
13088 * genterminallist.sh: Moved ...
13089 * grub-core/genterminallist.sh: ... to here.
13090 * gentrigtables.c: Moved ...
13091 * grub-core/gentrigtables.c: ... to here.
13092 * genvideolist.sh: Moved ...
13093 * grub-core/genvideolist.sh: ... to here.
13094 * gettext: Moved ...
13095 * grub-core/gettext: ... to here.
13096 * gfxmenu: Moved ...
13097 * grub-core/gfxmenu: ... to here.
13098 * gnulib: Moved ...
13099 * grub-core/gnulib: ... to here.
13100 * hello: Moved ...
13101 * grub-core/hello: ... to here.
13102 * hook: Moved ...
13103 * grub-core/hook: ... to here.
13104 * io: Moved ...
13105 * grub-core/io: ... to here.
13106 * kern: Moved ...
13107 * grub-core/kern: ... to here.
13108 * lib: Moved ...
13109 * grub-core/lib: ... to here.
13110 * loader: Moved ...
13111 * grub-core/loader: ... to here.
13112 * mmap: Moved ...
13113 * grub-core/mmap: ... to here.
13114 * normal: Moved ...
13115 * grub-core/normal: ... to here.
13116 * partmap: Moved ...
13117 * grub-core/partmap: ... to here.
13118 * parttool: Moved ...
13119 * grub-core/parttool: ... to here.
13120 * script: Moved ...
13121 * grub-core/script: ... to here.
13122 * term: Moved ...
13123 * grub-core/term: ... to here
13124 * tests/example_functional_test.c: Moved ...
13125 * grub-core/tests/example_functional_test.c: ... to here.
13126 * tests/lib/functional_test.c: Moved ...
13127 * grub-core/tests/lib/functional_test.c: ... to here.
13128 * tests/lib/test.c: Moved ...
13129 * grub-core/tests/lib/test.c: ... to here.
13130 * video: Moved ...
13131 * grub-core/video: ... to here.
13132
13133 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13134
13135 Replace --enable-grub-emu-modules with grub-emu-lite.
13136
13137 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
13138 cache.S.
13139
13140 * include/grub/emu/misc.h (grub_emu_init): New prototype.
13141 * kern/emu/full.c: New file. For grub-emu specific initialization.
13142 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
13143 * kern/emu/main.c: Call initialization function grub_emu_init.
13144
13145 * Makefile.in: Include grub-emu-lite in install.
13146 * commands/parttool.c: Use grub_no_autoload to differentiate
13147 between grub-emu and grub-emu-lite.
13148 * include/grub/misc.h: New variable grub_no_autoload.
13149
13150 * conf/any-emu.rmk: New rules for grub-emu-lite.
13151 * configure.ac: Remove --enable-grub-emu-modules.
13152 * genmk.rb: Cleanup unnecessary rules.
13153 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
13154
13155 * normal/main.c: Don't load list files on grub-emu-lite.
13156 * util/misc.c (grub_arch_sync_caches): Removed.
13157
13158 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
13159
13160 * kern/mips/startup.S (grub_prefix): Update comment to refer to
13161 grub-mkimage rather than grub-mkelfimage.
13162 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
13163
13164 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
13167 a key after CapsLock or NumLock. It's just a qemu bug.
13168
13169 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13170
13171 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
13172 needed by libusb wrapper.
13173
13174 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
13175
13176 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
13177
13178 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13179
13180 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
13181 --nounzip is passed.
13182
13183 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
13184
13185 USB hotunplugging and USB serial support.
13186
13187 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
13188 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
13189 (grub_uhci_transfer): Respect timeout and set *actual.
13190 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
13191 non-standard length.
13192 (grub_usb_device_attach): Autoload modules.
13193 (GRUB_MOD_INIT): Set grub_term_poll_usb.
13194 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
13195 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
13196 users updated.
13197 (grub_usb_add_hub): Fill nports and children.
13198 (attach_root_port): Receive hub instead of controller.
13199 All users updated. Fill hub->devices.
13200 (grub_usb_root_hub): Allocate hub->devices.
13201 (detach_device): New function.
13202 (poll_nonroot_hub): Fill children and detach devices.
13203 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
13204 actual arguments. All users updated.
13205 (grub_usb_bulk_read_extended): New function.
13206 * bus/usb/serial/common.c: New file.
13207 * bus/usb/serial/ftdi.c: Likewise.
13208 * bus/usb/serial/pl2303.c: Likewise.
13209 * commands/terminal.c (handle_command): Support wildcard.
13210 * commands/usbtest.c: Output "Unknown" instead of empty string.
13211 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
13212 (usbserial_common_mod_SOURCES): New variable.
13213 (usbserial_common_mod_CFLAGS): Likewise.
13214 (usbserial_common_mod_LDFLAGS): Likewise.
13215 (pkglib_MODULES): Add usbserial_pl2303.mod.
13216 (usbserial_pl2303_mod_SOURCES): New variable.
13217 (usbserial_pl2303_mod_CFLAGS): Likewise.
13218 (usbserial_pl2303_mod_LDFLAGS): Likewise.
13219 (pkglib_MODULES): Add usbserial_ftdi.mod.
13220 (usbserial_ftdi_mod_SOURCES): New variable.
13221 (usbserial_ftdi_mod_CFLAGS): Likewise.
13222 (usbserial_ftdi_mod_LDFLAGS): Likewise.
13223 (pkglib_MODULES): Add serial.mod.
13224 (serial_mod_SOURCES): New variable.
13225 (serial_mod_CFLAGS): Likewise.
13226 (serial_mod_LDFLAGS): Likewise.
13227 * conf/i386-pc.rmk: Likewise.
13228 * conf/mips-yeeloong.rmk: Likewise.
13229 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
13230 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13231 * disk/usbms.c (first_available_slot): New variable.
13232 (grub_usbms_attach): Don't reuse free slots due to potential cache
13233 problems.
13234 * include/grub/serial.h: Moved to ..
13235 * include/grub/ns8250.h: ...this.
13236 * include/grub/serial.h: New file.
13237 * include/grub/term.h (grub_term_poll_usb): New variable.
13238 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
13239 readkey. All users updated.
13240 (grub_terminfo_output_state): Pass term to put.
13241 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
13242 (grub_usb_controller_dev): Add timeout and actual arguments to
13243 transfer. All users updated.
13244 (grub_usb_interface): New field detach_data.
13245 (grub_usb_device): New fields children and nports.
13246 (grub_usb_ep_type_t): New type.
13247 (grub_usb_get_ep_type): New function.
13248 (grub_usb_bulk_read_extended): Likewise.
13249 * include/grub/usbdesc.h (grub_usb_desc): New type.
13250 * include/grub/usbserial.h: New file.
13251 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
13252 * kern/term.c (grub_term_poll_usb): New variable.
13253 (grub_getkey): Call grub_term_poll_usb if set.
13254 (grub_checkkey): Likewise.
13255 (grub_getkeystatus): Likewise.
13256 * term/serial.c: Moved controller-specific parts to ...
13257 * term/ns8250.c: ... here.
13258 * term/serial.c: Mostly rewritten.
13259 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
13260 according to spec.
13261
13262 2010-08-20 Robert Millan <rmh@gnu.org>
13263
13264 Make kFreeBSD code more generic to support ext2fs as root, ufs as
13265 a separate module and maybe other interesting combinations.
13266
13267 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
13268 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
13269 (kfreebsd_entry): Add generic filesystem module load routine.
13270 Map GRUB `ext2' to kFreeBSD `ext2fs'.
13271
13272 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13273
13274 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
13275 "numcenter" (I misunderstood the purpose of this entry).
13276 * docs/grub.texi (sendkey): Likewise.
13277
13278 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13279
13280 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
13281 status flag options; simply omitting the option is equivalent and
13282 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
13283 (keysym_table): Rename "num5numlock" to "numlock".
13284 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
13285 can uniformly say that only the last of multiple `sendkey'
13286 invocations has any effect.
13287 * docs/grub.texi (sendkey): New section.
13288
13289 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
13290
13291 * commands/i386/pc/sendkey.c (options): Fix three typos.
13292
13293 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 Implement sendkey support.
13296
13297 * commands/i386/pc/sendkey.c: New file.
13298 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
13299 (sendkey_mod_SOURCES): New variable.
13300 (sendkey_mod_CFLAGS): Likewise.
13301 (sendkey_mod_LDFLAGS): Likewise.
13302
13303 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13304
13305 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
13306 fix warnings from Autoconf.
13307
13308 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13309
13310 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
13311 to avoid false positives with some assemblers that output things
13312 like "someprefix_func" as part of their output.
13313
13314 2010-08-15 Robert Millan <rmh@gnu.org>
13315
13316 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
13317 errors.
13318 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
13319 grub_get_libzfs_handle() errors.
13320
13321 2010-08-14 Robert Millan <rmh@gnu.org>
13322
13323 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
13324 filesystem is not ZFS.
13325
13326 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13327
13328 Fix for misspelled color names defaulting to black/black (bug
13329 reported by Doug Nazar)
13330
13331 * include/grub/normal.h (grub_parse_color_name_pair): Add return
13332 status to prototype.
13333 * normal/color.c (grub_parse_color_name_pair): Return failure
13334 status.
13335 (grub_env_write_color_normal): Ignore bad color names.
13336 (grub_env_write_color_highlight): Likewise.
13337 * normal/main.c (GRUB_MOD_INIT): Set default color names.
13338
13339 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13340
13341 "shift" command support to GRUB script.
13342
13343 * include/grub/script_sh.h (grub_script_shift): New prototype.
13344 * script/execute.c (grub_script_shift): New function.
13345 * script/main.c (grub_script_init): Register shift command.
13346 (grub_script_fini): Unregister shift command.
13347 * util/grub-script-check.c (grub_script_cmd_shift): New function.
13348
13349 * tests/grub_script_shift.in: New testcase.
13350 * conf/tests.rmk: Rules for new testcase.
13351
13352 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13353
13354 "continue" command support to GRUB script.
13355
13356 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
13357 (grub_script_break): Continue support.
13358 * script/main.c (grub_script_init): Register continue command.
13359 (grub_script_fini): Unregister continue command.
13360
13361 * tests/grub_script_continue.in: New testcase.
13362 * conf/tests.rmk: Rules for new testcase.
13363
13364 2010-08-12 BVK Chaitanya <bvk@dbook>
13365
13366 "break" command support to GRUB script.
13367
13368 * conf/common.rmk: Rule updates to grub-script-check.
13369 * include/grub/misc.h (grub_min): New function.
13370 * include/grub/script_sh.h (grub_script_init): New prototype.
13371 (grub_script_fini): New prototype.
13372 (grub_script_break): New prototype.
13373 * script/main.c (grub_script_init): New function.
13374 (grub_script_fini): New function.
13375 * script/execute.c (grub_script_break): New function.
13376 * normal/main.c: Calls to grub_script_{init,fini}.
13377 * util/grub-script-check.c (grub_script_break): New function.
13378
13379 * tests/grub_script_break.in: New testcase.
13380 * conf/tests.rmk: Rules for new test case.
13381
13382 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13383
13384 Function parameters support to GRUB script.
13385
13386 * script/yylex.l (VARIABLE): Regular expression update.
13387 * script/function.c (grub_script_function_call): Moved ...
13388 * script/execute.c (grub_script_function_call): ... to here.
13389 (grub_script_execute_arglist_to_argv): Removed.
13390 (grub_script_arglist_to_argv): New function.
13391 * script/argv.c: New file.
13392 (grub_script_argv_free): New function.
13393 (grub_script_argv_next): Likewise.
13394 (grub_script_argv_append): Likewise.
13395 (grub_script_argv_split_append): Likewise.
13396 * include/grub/script_sh.h (grub_script_argv): New struct.
13397 (grub_script_argv_free): New function.
13398 (grub_script_argv_next): Likewise.
13399 (grub_script_argv_append): Likewise.
13400 (grub_script_argv_split_append): Likewise.
13401
13402 * conf/common.rmk (normal.mod): New source script/argv.c.
13403
13404 * tests/grub_script_echo1.in: More tests.
13405 * tests/grub_script_vars1.in: Likewise.
13406 * tests/grub_script_functions.in: New test case.
13407 * conf/tests.rmk: Rules for new testcase.
13408
13409 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13410
13411 Remove grub_script_cmdblock struct.
13412
13413 * include/grub/script_sh.h: Remove grub_script_cmdblock.
13414 * script/parser.y: Likewise.
13415 * script/execute.c: Rename cmdblock suffix to cmdlist.
13416 * script/script.c: Likewise.
13417 * util/grub-script-check.c: Likewise.
13418
13419 2010-08-11 Yves Blusseau <blusseau@zetam.org>
13420
13421 * .bzrignore: add grub-macho2img
13422
13423 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
13426
13427 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13428
13429 Remove the dump of sm712 initialisation sequence.
13430
13431 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
13432 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
13433 (GRUB_VGA_IO_MISC_WRITE): Likewise.
13434 (GRUB_VGA_CR_*): Added many registers.
13435 (GRUB_VGA_SR_*): Likewise.
13436 (GRUB_VGA_GR_*): Likewise.
13437 (grub_vga_write_arx): New function.
13438 (grub_video_hw_config): New struct.
13439 (grub_vga_set_geometry): New function.
13440 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
13441 GRUB_PCI_CLASS_SUBCLASS_VGA.
13442 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
13443 * video/sm712.c (grub_sm712_write_reg): New function
13444 (grub_sm712_read_reg): Likewise.
13445 (grub_sm712_sr_write): Likewise.
13446 (grub_sm712_gr_write): Likewise.
13447 (grub_sm712_cr_write): Likewise.
13448 (grub_sm712_write_arx): Likewise.
13449 (grub_sm712_cr_shadow_write): Likewise.
13450 (grub_sm712_write_dda_lookup): Likewise.
13451 (grub_video_sm712_setup): Initialise the video rather then
13452 blindly replay the dump.
13453 (main) [TEST]: Add a routine to be able to compile as standalone for
13454 tests.
13455 * video/sm712_init.c (sm712_init): Removed.
13456 (sm712_sr_seq1): New array.
13457 (sm712_sr_seq2): Likewise.
13458
13459 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13460
13461 * include/grub/vga.h: Add missing grub/pci.h include.
13462
13463 2010-08-10 Yves Blusseau <blusseau@zetam.org>
13464
13465 * util/grub-macho2img.c (main): fix typo
13466
13467 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
13470 (grub_vga_gr_read): Likewise.
13471 (grub_vga_cr_write): Likewise.
13472 (grub_vga_cr_read): Likewise.
13473 (grub_vga_sr_write): Likewise.
13474 (grub_vga_sr_read): Likewise.
13475 (grub_vga_palette_read): Likewise.
13476 (grub_vga_palette_write): Likewise.
13477 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
13478 (grub_sm712_sr_read): New function.
13479 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
13480 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
13481
13482 2010-08-09 Robert Millan <rmh@gnu.org>
13483
13484 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
13485 out unused variables on non-ZFS build.
13486
13487 2010-08-08 Robert Millan <rmh@gnu.org>
13488
13489 Fix path generation for sub-filesystems in ZFS.
13490
13491 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
13492 missing slash.
13493
13494 2010-08-08 Robert Millan <rmh@gnu.org>
13495
13496 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
13497
13498 2010-08-08 Robert Millan <rmh@gnu.org>
13499
13500 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
13501 exist, issue a proper error message (rely on `ls' for translated
13502 strings).
13503
13504 2010-08-08 Robert Millan <rmh@gnu.org>
13505
13506 Fix grub-probe invocation.
13507
13508 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
13509
13510 2010-08-04 Robert Millan <rmh@gnu.org>
13511
13512 * configure.ac: Remove checks for getfsstat() and getmntany().
13513 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
13514 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
13515 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
13516 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
13517 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
13518 function.
13519 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
13520 via find_mount_point_from_dir() and getfsstat() / getmntany().
13521
13522 2010-08-04 Robert Millan <rmh@gnu.org>
13523
13524 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13525 (grub_find_zpool_from_mount_point): Merge into ...
13526 (grub_find_zpool_from_dir): ... this.
13527 * kern/emu/misc.c: Likewise.
13528
13529 * kern/emu/misc.c
13530 (grub_make_system_path_relative_to_its_root): Replace
13531 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
13532 with grub_find_zpool_from_dir().
13533 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
13534
13535 2010-08-04 Robert Millan <rmh@gnu.org>
13536
13537 Support OpenSolaris in ZFS device resolution.
13538
13539 * configure.ac: Check for getmntany().
13540 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
13541 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
13542 support.
13543
13544 2010-08-03 Robert Millan <rmh@gnu.org>
13545
13546 Fix grub-emu build.
13547
13548 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
13549 * include/grub/emu/misc.h: ... here.
13550
13551 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
13552 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
13553
13554 * util/misc.c: Remove `<grub/util/libzfs.h>'.
13555 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
13556 (grub_get_libzfs_handle): Move to ...
13557 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
13558 (grub_get_libzfs_handle): ... here.
13559
13560 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
13561
13562 * script/execute.c (grub_script_execute_cmdline): Check for NULL
13563 as command name case.
13564
13565 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
13566
13567 * disk/raid.c (insert_array): Select unique numbers for named arrays
13568 as well, for use as keys in the disk cache.
13569
13570 2010-08-01 Robert Millan <rmh@gnu.org>
13571
13572 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
13573 kFreeBSD device name, except on ZFS where the filesystem label is
13574 used.
13575 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
13576 `/boot/zfs/zpool.cache'.
13577 Set mountfrom kernel variable using ${kfreebsd_device}.
13578
13579 2010-08-01 Robert Millan <rmh@gnu.org>
13580
13581 Make it even harder to use uninitialized `libzfs_handle' (and
13582 make the interface a bit simpler).
13583
13584 * include/grub/util/misc.h (grub_util_init_libzfs)
13585 (libzfs_handle): Remove.
13586 (grub_get_libzfs_handle): New prototype.
13587
13588 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
13589 attribute.
13590 (grub_util_init_libzfs): Remove.
13591 (grub_get_libzfs_handle): New function.
13592
13593 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
13594 grub_get_libzfs_handle() to obtain a libzfs handle instead of
13595 accessing `libzfs_handle' directly.
13596
13597 2010-08-01 Robert Millan <rmh@gnu.org>
13598
13599 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13600 (grub_find_zpool_from_mount_point): New function prototypes.
13601
13602 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13603 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13604
13605 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13606 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13607 `static' attribute.
13608
13609 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13610 finding zpool from mount point into ...
13611 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13612
13613 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13614 requested path is part of a ZFS pool, use
13615 grub_find_zpool_from_mount_point() to detect its filesystem name,
13616 and generate a path with `/fsname@path' syntax.
13617
13618 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13619
13620 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
13621 (void) rather than () so that this is a proper prototype.
13622
13623 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13624
13625 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
13626
13627 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13628
13629 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
13630 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
13631
13632 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13633
13634 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
13635
13636 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13637
13638 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
13639
13640 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13641
13642 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
13643 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
13644 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
13645 disable gfxpayload.
13646 (Shell-like scripting): Add real content.
13647 (Serial terminal): Suggest `terminal_input serial; terminal_output
13648 serial' rather than putting the two commands on separate lines,
13649 since console input will be inoperative after the first command.
13650 (menuentry): Document --class, --users, and --hotkey options.
13651 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
13652 Vladimir Serbinenko).
13653
13654 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13655 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13656
13657 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
13658
13659 2010-08-01 Robert Millan <rmh@gnu.org>
13660
13661 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13662 (grub_find_zpool_from_mount_point): New function prototypes.
13663
13664 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13665 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13666
13667 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13668 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13669 `static' attribute.
13670
13671 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13672 finding zpool from mount point into ...
13673 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13674
13675 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13676 requested path is part of a ZFS pool, use
13677 grub_find_zpool_from_mount_point() to detect its filesystem name,
13678 and generate a path with `/fsname@path' syntax.
13679
13680 2010-08-01 Robert Millan <rmh@gnu.org>
13681
13682 Prevent accidental use of uninitialized libzfs_handle.
13683
13684 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
13685 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
13686 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
13687
13688 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13689
13690 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
13691 util/grub.d/10_linux.in). Fixes Debian bug #591093.
13692
13693 2010-08-01 Robert Millan <rmh@gnu.org>
13694
13695 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
13696
13697 2010-07-31 Robert Millan <rmh@gnu.org>
13698
13699 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
13700
13701 2010-07-31 Robert Millan <rmh@gnu.org>
13702
13703 * kern/emu/misc.c: Add missing license header.
13704
13705 2010-07-31 Robert Millan <rmh@gnu.org>
13706
13707 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
13708
13709 * include/grub/util/libnvpair.h: Include `<config.h>'.
13710 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
13711 declaring libnvpair prototypes ourselves.
13712 * include/grub/util/libzfs.h: Include `<config.h>'.
13713 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
13714 declaring libzfs prototypes ourselves.
13715
13716 (libzfs_handle): Moved to ...
13717 * include/grub/util/misc.h (libzfs_handle): ... here.
13718 Include `<grub/util/libzfs.h>'.
13719
13720 2010-07-30 Robert Millan <rmh@gnu.org>
13721
13722 * include/grub/emu/misc.h: Add missing license header.
13723
13724 2010-07-30 Robert Millan <rmh@gnu.org>
13725
13726 Enable `grub-probe -t device' resolution on ZFS.
13727
13728 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
13729 * include/grub/util/libnvpair.h: New file.
13730 * include/grub/util/libzfs.h: New file.
13731
13732 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
13733 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
13734 `<grub/util/libnvpair.h>'.
13735 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
13736
13737 (find_mount_point_from_dir): New static function.
13738 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
13739 function.
13740 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
13741 find_root_device_from_libzfs() before ressorting to find_root_device().
13742
13743 * include/grub/util/misc.h (grub_util_init_libzfs): New function
13744 prototype.
13745 * util/misc.c: Include `<grub/util/libzfs.h>'.
13746 (grub_util_init_libzfs): New function.
13747 [HAVE_LIBZFS] (libzfs_handle): New global variable.
13748 [HAVE_LIBZFS] (fini_libzfs): New static function.
13749 (grub_util_init_libzfs): New function.
13750 * util/grub-probe.c (main): Call grub_util_init_libzfs().
13751
13752 2010-07-30 Robert Millan <rmh@gnu.org>
13753
13754 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
13755 (xmalloc, xrealloc, xstrdup, xasprintf): Add
13756 `warn_unused_result' attribute.
13757 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
13758 (grub_xasprintf, grub_xvasprintf): Likewise.
13759 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
13760
13761 2010-07-29 Robert Millan <rmh@gnu.org>
13762
13763 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
13764 (probe): Handle `PRINT_FS_LABEL'.
13765 (main): Handle `-t fs_label'.
13766
13767 2010-07-29 Robert Millan <rmh@gnu.org>
13768
13769 * configure.ac: Remove grub-mkisofs checks.
13770
13771 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
13772
13773 * util/ieee1275/grub-install.in: Don't use empty grub_device.
13774 Reported by: Lennart Sorensen.
13775
13776 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13777
13778 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
13779 prior to terminal_input/terminal_output separation. It's been over 1.5
13780 years and those versions weren't widely deployed.
13781
13782 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
13783
13784 * disk/raid.c (insert_array): Don't count named arrays when looking
13785 for unused array numbers.
13786 Reported and tested by: Michael Guntsche.
13787
13788 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13789
13790 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
13791 implementation of this so that grub-emu links again, with a note
13792 that this should support hotplugging in the future.
13793
13794 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13795
13796 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
13797
13798 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13799
13800 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
13801 handle on failure.
13802 (grub_loopback_close): Remove empty function.
13803 (grub_loopback_dev): Remove close method.
13804
13805 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13806
13807 Disable EFI cursor when the EFI console becomes inactive.
13808
13809 * term/efi/console.c (grub_efi_console_init): New function.
13810 (grub_efi_console_fini): New function.
13811 (grub_console_term_output): Register init and fini methods.
13812
13813 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13814
13815 * tests/util/grub-shell-tester.in: Remove bashism and declare as
13816 sh script.
13817
13818 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13819
13820 * disk/loopback.c (grub_loopback): Replace filename with file.
13821 (delete_loopback): Handle new semantics.
13822 (grub_cmd_loopback): Likewise.
13823 (grub_loopback_iterate): Likewise.
13824 (grub_loopback_close): Likewise.
13825
13826 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13827
13828 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
13829 with -p "".
13830 Reported by: Tito Keitel.
13831
13832 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13833
13834 * docs/grub.texi (Naming convention): Document new naming convention.
13835
13836 2010-07-20 Vadim Solomin <vadic052@gmail.com>
13837 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13838
13839 Generate device.map in something closer to the old ordering.
13840
13841 * util/deviceiter.c (struct device): New declaration.
13842 (compare_file_names): Rename to ...
13843 (compare_devices): ... this. Sort by kernel name in preference to
13844 the stable by-id name, but keep the latter as a fallback comparison.
13845 Update header comment.
13846 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
13847 of `struct device' rather than of plain file names.
13848
13849 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
13850
13851 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
13852 on i386.
13853
13854 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13855
13856 * commands/acpi.c (setup_common_tables): Use sizeof instead of
13857 hardcoding size.
13858 (setv1table): Likewise.
13859
13860 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13861
13862 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
13863 removing the homehost if present.
13864 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
13865 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
13866 removing the homehost if present.
13867 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
13868 if possible.
13869 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
13870
13871 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
13872 parameter. Set its pointer target to 0.
13873 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
13874 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
13875 `data_offset' value from the superblock for 1.x metadata.
13876 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
13877 data on the device.
13878 (insert_array): Record the start sector of data on the device.
13879 (grub_raid_register): Pass start_sector parameters to
13880 grub_raid_list->detect and insert_array.
13881 * include/grub/raid.h (struct grub_raid_array): Add start_sector
13882 member.
13883 (struct grub_raid): Add start_sector parameter to `detect'.
13884
13885 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
13886 __attribute__ ((packed)), leaving a comment.
13887 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
13888 (grub_mdraid_detect_09): ... here and ...
13889 (grub_mdraid_detect_1x): ... here.
13890
13891 2010-07-20 Peter Henn <peter.henn@web.de>
13892
13893 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
13894 chunk size and disk size, which are already given as sector counts
13895 as distinct from the 0.90 units. Fetch the correct device number
13896 from the role table instead of using the table index.
13897
13898 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
13899
13900 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
13901 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
13902 (WriteMostly1): New macro.
13903 Set array->name to NULL for metadata format 0.90. Add support for
13904 metadata 1.x. Fix some comments.
13905 * disk/raid.c (): Add support for name based RAID arrays. Fix a
13906 few comments.
13907 * util/getroot.c (grub_util_get_grub_dev): Add support for
13908 /dev/md/name style devices.
13909
13910 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13911
13912 * .bzrignore: Ignore 20_linux_xen.
13913
13914 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
13915
13916 * util/import_unicode.py: Remove unnecessary imports.
13917
13918 2010-07-17 Aleš Nesrsta <starous@volny.cz>
13919
13920 Hotplugging and USB hub support.
13921
13922 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
13923 (grub_ohci): Likewise.
13924 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
13925 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
13926 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
13927 (GRUB_OHCI_CTRL_EDS): Likewise.
13928 (GRUB_OHCI_BULK_EDS): Likewise.
13929 (GRUB_OHCI_TDS): Likewise.
13930 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
13931 (grub_ohci_ed_phys2virt): New function.
13932 (grub_ohci_virt_to_phys): Likewise.
13933 (grub_ohci_td_phys2virt): Likewise.
13934 (grub_ohci_td_virt2phys): Likewise.
13935 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
13936 attachment.
13937 (grub_ohci_find_ed): New function.
13938 (grub_ohci_alloc_td): Likewise.
13939 (grub_ohci_free_td): Likewise.
13940 (grub_ohci_free_tds): Likewise.
13941 (grub_ohci_transfer): Use previously allocated memory.
13942 (grub_ohci_portstatus): Reset status changed bit.
13943 (grub_ohci_detect_dev): Supply status changed.
13944 (grub_ohci_fini_hw): Free memory.
13945 (grub_ohci_restore_hw): Reallocate memory.
13946 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
13947 Reset status change.
13948 (grub_uhci_detect_dev): Supply status_change.
13949 * bus/usb/usb.c (attach_hooks): New var.
13950 (grub_usb_device_attach): New function.
13951 (grub_usb_register_attach_hook_class): Likewise.
13952 (grub_usb_unregister_attach_hook_class): Likewise.
13953 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
13954 (grub_usb_add_hub): Reset connection changed bit.
13955 (attach_root_port): New function.
13956 (grub_usb_root_hub): Likewise.
13957 (poll_nonroot_hub): Likewise.
13958 (grub_usb_poll_devices): Likewise.
13959 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
13960 * disk/usbms.c (grub_usbms_open): Use device hooks.
13961 (grub_usbms_iterate) :Poll devices.
13962 (grub_usbms_finddevs): Split into ...
13963 (grub_usbms_attach): ... this ...
13964 (grub_usbms_attach): ... and this.
13965 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
13966 in detect_dev.
13967 (grub_usb_interface): New fields attached and detach_hook.
13968 (grub_usb_attach_hook_class): New type.
13969 (grub_usb_attach_desc): New struct.
13970 (grub_usb_register_attach_hook_class): New function.
13971 (grub_usb_unregister_attach_hook_class): Likewise.
13972 (grub_usb_poll_devices): Likewise.
13973 (grub_usb_device_attach): Likewise.
13974 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
13975 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
13976
13977 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
13978
13979 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
13980 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
13981 delta determination style. Works with most NetBSD partitions too.
13982
13983 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
13984
13985 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
13986 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
13987
13988 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
13989
13990 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
13991
13992 2010-07-14 Anton Blanchard <anton@samba.org>
13993
13994 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
13995 ET_DYN files.
13996
13997 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13998
13999 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
14000
14001 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14002
14003 * kern/partition.c (grub_partition_check_containment): New function to
14004 check that a partition is physically contained in a parent. Since
14005 offsets are relative (and non-negative), this reduces to checking that
14006 the partition ends before its parent.
14007 (grub_partition_map_probe): Discard out-of-range sub-partitions.
14008 (grub_partition_iterate): Likewise.
14009 * include/grub/partition.h (grub_partition_map): Slightly more detailed
14010 comments.
14011 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
14012 partitions that start before their parent, and add debug printfs.
14013
14014 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14015
14016 * Makefile.in (.SUFFIX): Spell correctly, as ...
14017 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
14018 bare module name without `.mod', e.g. `test') tried to invoke a
14019 Modula-2 compiler.
14020
14021 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14022
14023 * README: Point to the Info manual.
14024
14025 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
14026
14027 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
14028 2nd superblock position from partition size.
14029
14030 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
14031
14032 * Makefile.in (MAINTAINER_CLEANFILES): Remove
14033 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
14034 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
14035 outputs.
14036
14037 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14038
14039 Restructure SCSI .id handling.
14040 Reported and tested by: Aleš Nesrsta.
14041
14042 * disk/ata.c (grub_atapi_close): Removed. All users updated.
14043 (grub_atapi_dev): Changed .name to "ata". New field .id.
14044 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
14045 (grub_usbms_dev): New field .id.
14046 * disk/scsi.c (grub_scsi_iterate): Generate name.
14047 (grub_scsi_open): Parse name.
14048 * include/grub/scsi.h (grub_make_scsi_id): New function.
14049 (grub_scsi_dev): Change iterate and open to number instead of naming
14050 busses. All users updated.
14051 (grub_scsi): Remove name. Add .bus.
14052
14053 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 * commands/help.c (grub_cmd_help): Fix a typo.
14056
14057 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14058
14059 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
14060 Reported and tested by: Colin Watson.
14061
14062 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
14065 in this context.
14066
14067 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14068
14069 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
14070
14071 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
14072
14073 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
14074 indentation.
14075
14076 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14077
14078 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
14079 and disk/raid6_recover.c.
14080 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14081 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
14082
14083 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14084
14085 * term/gfxterm.c (repaint_schedulded): Rename to ...
14086 (repaint_scheduled): ... this. Update all callers.
14087 (repaint_was_schedulded): Rename to ...
14088 (repaint_was_scheduled): ... this. Update all callers.
14089
14090 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14091
14092 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
14093 which we expect to be handled by upper layers.
14094
14095 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
14096
14097 * bus/usb/usbhub.c: #include time.h header.
14098
14099 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14100
14101 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
14102 entry_name also for entries without stat blocks (e.g. ".."); fixes
14103 corruption of the first entry in a directory.
14104
14105 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14106
14107 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
14108 after setting gfxterm as the active terminal. GRUB_BACKGROUND
14109 doesn't work otherwise.
14110
14111 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14112
14113 * docs/grub.texi (Features): Update list of supported file systems.
14114 (GNU/Linux): Update for GRUB 2.
14115 (Serial terminal): Remove mention of --disable-serial, which was a
14116 GRUB Legacy configure option. Update instructions to use
14117 `terminal_input' and `terminal_output' rather than `terminal'.
14118 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
14119 configuration' and `Installing GRUB using grub-install'.
14120 (Menu entry editor): Update for GRUB 2.
14121 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
14122 Document new -a, -u, and -v options.
14123 (initrd): New section.
14124 (initrd16): New section.
14125 (linux): New section.
14126 (linux16): New section.
14127 (search): The `var' argument to `--set' is optional.
14128 (GRUB only offers a rescue shell): Go into a little more detail on
14129 drive ordering.
14130
14131 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14132
14133 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
14134
14135 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14136
14137 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
14138 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
14139
14140 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14141
14142 * util/i386/pc/grub-setup.c (setup): Rename prefix to
14143 install_prefix, in line with install_dos_part and install_bsd_part.
14144 Add new prefix variable, which is copied to install_prefix after
14145 comparing core.img in memory with the one read from disk in the
14146 no-embedding case, and use that rather than overwriting
14147 install_prefix immediately when installing to a partition.
14148 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
14149 Bicakci.
14150
14151 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14152
14153 * configure.ac: Avoid == in test command, it's not portable.
14154 * util/grub.d/30_os-prober.in: Likewise.
14155
14156 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
14157
14158 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
14159
14160 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14161
14162 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
14163 multiple (top-level) partmaps.
14164
14165 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14166
14167 * util/i386/efi/grub-install.in: Don't use empty grub_device.
14168 Reported by: Tino Keitel.
14169
14170 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14171
14172 Bidi and diacritics support.
14173
14174 * Makefile.in (widthspec.bin): New target.
14175 (widthspec.h): Likewise.
14176 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
14177 * autogen.sh: Generate unidata.c.
14178 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
14179 * commands/ls.c (grub_ls_list_devices): Likewise.
14180 (grub_ls_list_files): Likewise.
14181 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
14182 (grub_mini_cmd_lsmod): Likewise.
14183 * commands/read.c: Likewise.
14184 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
14185 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
14186 * lib/arg.c (grub_arg_show_help): Likewise.
14187 * lib/crypto.c (grub_password_get): Likewise.
14188 * normal/auth.c (grub_username_get): Likewise.
14189 * normal/misc.c (grub_normal_print_device_info): Likewise.
14190 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
14191 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
14192 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
14193 (normal/charset.c_DEPENDENCIES): New variable.
14194 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
14195 (pkglib_MODULES): Remove charset.mod.
14196 (charset_mod_SOURCES): Removed.
14197 (charset_mod_CFLAGS): Likewise.
14198 (charset_mod_LDFLAGS): Likewise.
14199 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
14200 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
14201 and term/tparm.c.
14202 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14203 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14204 (kernel_img_HEADERS): Add terminfo.h.
14205 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
14206 Fill ->font. Reverse ascii bitmaps.
14207 (grub_font_get_xheight): New function.
14208 * font/font.c (grub_font_get_string_width): Moved from here ...
14209 * gfxmenu/font.c (grub_font_get_string_width): ... here.
14210 * font/font.c (grub_font_draw_string): Moved from here ...
14211 * gfxmenu/font.c (grub_font_draw_string): ... here.
14212 * font/font.c (grub_font_dup_glyph): New function.
14213 (grub_font_blit_glyph): Likewise.
14214 (grub_font_blit_glyph_mirror): Likewise.
14215 (blit_comb): Likewise.
14216 (grub_font_construct_dry_run): Likewise.
14217 (grub_font_get_constructed_device_width): Likewise.
14218 (grub_font_construct_glyph): Likewise.
14219 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
14220 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
14221 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
14222 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
14223 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
14224 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
14225 (grub_font_get_xheight): New proto.
14226 (grub_font_get_constructed_device_width): Likewise.
14227 (grub_font_construct_glyph): Likewise.
14228 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
14229 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
14230 * include/grub/font.h (grub_font_draw_string): Moved from here ...
14231 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
14232 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
14233 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
14234 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
14235 (grub_console_getcharwidth): Likewise.
14236 * include/grub/misc.h (grub_xputs): New proto.
14237 (grub_puts): Inlined.
14238 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
14239 (grub_normal_get_line_counter): Removed.
14240 (grub_install_newline_hook): Likewise.
14241 (grub_normal_get_char_counter): New proto.
14242 (grub_normal_reset_more): Likewise.
14243 (grub_xputs_normal): Likewise.
14244 * include/grub/powerpc/ieee1275/console.h: Removed.
14245 * include/grub/sparc64/ieee1275/console.h: Likewise.
14246 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
14247 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
14248 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
14249 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
14250 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
14251 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
14252 (grub_term_input): Pass reference to self. All users updated.
14253 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
14254 Pass reference to self. New fields normal_color, highlight_color and
14255 data. All users updated.
14256 (grub_putchar): Removed.
14257 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
14258 (grub_unicode_estimate_width): New function.
14259 (grub_term_getcharwidth): Add defaults.
14260 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
14261 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
14262 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
14263 (grub_cls): Remove EXPORT_FUNC.
14264 (grub_setcolorstate): Inline.
14265 (grub_newline_hook): Removed.
14266 * include/grub/terminfo.h: Rewritten. All users updated.
14267 * include/grub/unicode.h: New file.
14268 * include/grub/video.h (grub_video_signed_rect): New type.
14269 * kern/emu/console.c (grub_console_highlight_color): Removed.
14270 (grub_console_normal_color): Likewise.
14271 (grub_console_standard_color): Made static.
14272 (grub_ncurses_putchar): Remove mapping.
14273 (grub_ncurses_getcharwidth): Removed.
14274 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14275 (grub_ncurses_setcolor): Removed.
14276 (grub_ncurses_getcolor): Likewise.
14277 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
14278 (grub_console_putchar): ... this.
14279 (grub_console_putchar): Handle argument difference.
14280 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
14281 console_init_early and console_init_lately.
14282 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
14283 * kern/misc.c (grub_puts): Removed.
14284 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
14285 (grub_vsnprintf_real): Remove str = NULL support.
14286 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
14287 * normal/charset.c (grub_utf8_to_ucs4): ... here.
14288 * kern/term.c (grub_putcode): Renamed to ...
14289 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
14290 (grub_putchar): Removed.
14291 (grub_xputs_dumb): New function.
14292 (grub_xputs): New variable.
14293 * lib/charset.c: Move from here ...
14294 * normal/charset.c: ... to here.
14295 (grub_ucs4_to_utf8): New function.
14296 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
14297 (join_types): New variable.
14298 (unpack_join): New function.
14299 (bidi_types): New variable.
14300 (unpack_bidi): New function.
14301 (get_bidi_type): Likewise.
14302 (get_join_type): Likewise.
14303 (is_mirrored): Likewise.
14304 (grub_unicode_get_comb_type): Likewise.
14305 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
14306 (is_type_after): Likewise.
14307 (grub_unicode_aglomerate_comb): Likewise.
14308 (bidi_line_wrap): Likewise.
14309 (grub_bidi_line_logical_to_visual): Likewise.
14310 (grub_bidi_logical_to_visual): Likewise.
14311 (grub_unicode_mirror_code): Likewise.
14312 (grub_unicode_shape_code): Likewise.
14313 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
14314 Don't use grub_putchar.
14315 * normal/main.c (grub_normal_init_page): Use grub_putcode.
14316 (grub_normal_reader_init): Likewise.
14317 (grub_xputs_saved): New variable.
14318 (GRUB_MOD_INIT): Set grub_xputs.
14319 (GRUB_MOD_FINI): Restore grub_xputs.
14320 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
14321 (menu_init): Avoid printing gfxmenu error.
14322 (show_menu): Use grub_normal_get_char_counter.
14323 * normal/menu_entry.c (update_screen): Fix out-of-array.
14324 (complete): Avoid NULL dereferencing.
14325 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
14326 * normal/menu_text.c (print_spaces): Removed.
14327 (grub_print_ucs4): Likewise.
14328 (grub_print_message_indented): Use grub_print_ucs4.
14329 (print_message): Use grub_putcode.
14330 (print_entry): Hanlde diacritics.
14331 * normal/term.c (term_state): New type.
14332 (grub_more_lines): Removed.
14333 (term_states): New variable.
14334 (grub_normal_line_counter): Renamed to ..
14335 (grub_normal_char_counter): ...this. All users updated.
14336 (grub_normal_get_line_counter): Renamed to ...
14337 (grub_normal_get_char_counter): ... this.
14338 (grub_normal_reset_more): New function.
14339 (process_newline): Removed.
14340 (print_more): New function.
14341 (grub_install_newline_hook): Removed.
14342 (map_code): New function.
14343 (grub_puts_terminal): Use grub_print_ucs4.
14344 (putglyph): New function.
14345 (putcode_real): Likewise.
14346 (grub_putcode): Use putcode_real.
14347 (get_maxwidth): New function.
14348 (get_startwidth): Likewise.
14349 (print_ucs4_terminal): Likewise.
14350 (find_term_state): Likewise.
14351 (put_glyphs_terminal): Likewise.
14352 (print_backlog): Likewise.
14353 (print_ucs4_real): Likewise.
14354 (grub_print_ucs4): Likewise.
14355 (grub_xputs_normal): Likewise.
14356 * term/efi/console.c (grub_console_putchar): Output diacritics.
14357 (grub_console_getcharwidth): Removed.
14358 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14359 * term/gfxterm.c (clear_char): Free chars.
14360 (scroll_up): Avoid leaking memory.
14361 (grub_gfxterm_putchar): Support diacritics.
14362 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14363 * term/i386/pc/console.c (grub_console_term_output): Declare as
14364 GRUB_TERM_CODE_TYPE_VGA.
14365 * term/i386/pc/vga.c (grub_vga_term): Declare as
14366 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
14367 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
14368 GRUB_TERM_CODE_TYPE_VGA.
14369 * term/i386/vga_common.c (map_char): Removed.
14370 (grub_console_putchar): Likewise.
14371 (grub_console_getcharwidth): Likewise.
14372 * term/ieee1275/ofconsole.c: Simplify using terminfo.
14373 (colors): Reordered to match terminfo.
14374 (grub_ofconsole_normal_color): Removed.
14375 (grub_ofconsole_writeesc): Likewise.
14376 (grub_ofconsole_highlight_color): Likewise.
14377 (grub_ofconsole_getcharwidth): Likewise.
14378 (grub_ofconsole_setcolorstate): Likewise.
14379 (grub_ofconsole_setcolor): Likewise.
14380 (grub_ofconsole_getcolor): Likewise.
14381 (grub_ofconsole_readkey): Renamed to ...
14382 (readkey): ... this. Remove escape sequence handling. Return -1 on no
14383 key.
14384 (grub_ofconsole_checkkey): Removed.
14385 (grub_ofconsole_getkey): Likewise.
14386 (grub_ofconsole_getxy): Likewise.
14387 (grub_ofconsole_gotoxy): Likewise.
14388 (grub_ofconsole_cls): Likewise.
14389 (grub_ofconsole_refresh): Likewise.
14390 (grub_ofconsole_terminfo_input): New struct.
14391 (grub_ofconsole_terminfo_output): Likewise.
14392 (grub_ofconsole_term_input): Use terminfo.
14393 (grub_ofconsole_term_output): Likewise.
14394 (grub_console_init): Split into ...
14395 (grub_console_init_early): ...this and ...
14396 (grub_console_init_lately): ...this. Use terminfo.
14397 (grub_ofconsole_putchar): Renamed to ...
14398 (put): ... this. Remove mapping.
14399 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14400 * term/serial.c: Simplify using terminfo.
14401 (xpos): Removed.
14402 (ypos): Likewise.
14403 (keep_track): Likewise.
14404 (registered): Likewise.
14405 (input_buf): Likewise.
14406 (npending): Likewise.
14407 (serial_translate_key_sequence): Likewise.
14408 (fill_input_buf): Likewise.
14409 (grub_serial_checkkey): Likewise.
14410 (grub_serial_getkey): Likewise.
14411 (grub_serial_getxy): Likewise.
14412 (grub_serial_gotoxy): Likewise.
14413 (grub_serial_putchar): Likewise.
14414 (grub_serial_cls): Likewise.
14415 (grub_serial_setcolorstate): Likewise.
14416 (grub_serial_setcursor): Likewise.
14417 (serial_hw_init): Use serial_hw_fetch.
14418 (grub_serial_terminfo_input): New variable.
14419 (grub_serial_terminfo_output): Likewise.
14420 (grub_serial_term_input): Use terminfo.
14421 (grub_serial_term_output): Likewise.
14422 * term/terminfo.c (putstr): Use put.
14423 (grub_terminfo_all_free): New function
14424 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
14425 (grub_terminfo_output_register): New function.
14426 (grub_terminfo_output_unregister): Likewise.
14427 (grub_terminfo_getxy): Likewise.
14428 (grub_terminfo_readkey): Likewise.
14429 (grub_terminfo_checkkey): Likewise.
14430 (grub_terminfo_getkey): Likewise.
14431 (grub_terminfo_input_init): Likewise.
14432 (print_terminfo): Likewise.
14433 (grub_cmd_terminfo): Handle encoding.
14434 (grub_terminfo_gotoxy): Track position.
14435 (grub_terminfo_cls): Likewise.
14436 (grub_terminfo_putchar): Likewise.
14437 (grub_terminfo_setcolorstate): Handle colors
14438 (grub_terminfo_cursor_on): This ...
14439 (grub_terminfo_cursor_off): ... and this merged into ...
14440 (grub_terminfo_setcursor): ... this.
14441 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
14442 * unicode/ArabicShaping.txt: New file (imported from Unicode).
14443 * unicode/BidiMirroring.txt: Likewise.
14444 * unicode/UnicodeData.txt: Likewise.
14445 * unicode/COPYING: Likewise.
14446 * util/grub-editenv.c (grub_putchar): Removed.
14447 (grub_xputs_real): New function.
14448 (grub_xputs): New variable.
14449 * util/grub-fstest.c (grub_putchar): Removed.
14450 (grub_xputs_real): New function.
14451 (grub_xputs): New variable.
14452 * util/grub-mkdevicemap.c (grub_putchar): Removed.
14453 (grub_xputs_real): New function.
14454 (grub_xputs): New variable.
14455 * util/grub-probe.c (grub_putchar): Removed.
14456 (grub_xputs_real): New function.
14457 (grub_xputs): New variable.
14458 * util/grub-script-check.c (grub_putchar): Removed.
14459 (grub_xputs_real): New function.
14460 (grub_xputs): New variable.
14461 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
14462 (grub_xputs_real): New function.
14463 (grub_xputs): New variable.
14464 * util/import_unicode.py: New file.
14465 * util/grub-mkfont.c (ft_errmsgs): New array.
14466 (grub_glyph_info): Make bitmap a pointer.
14467 (file_formats): New type WIDTH_SPEC.
14468 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
14469 (options): Add width-spec.
14470 (help): Likewise.
14471 (add_char): Renamed to ...
14472 (add_glyph): ... this.
14473 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
14474 (glyph_replace): New type.
14475 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
14476 (add_char): New function.
14477 (add_subst): Likewise.
14478 (process_cursive): Likewise.
14479 (add_font): Handle GSUB.
14480 (write_font_width_spec): New function.
14481 (main): Sort glyphs.
14482 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
14483 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
14484 * kern/term.c (grub_cls): Moved from here...
14485 * normal/term.c (grub_cls): ... here.
14486
14487 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14488
14489 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
14490 suitable for using within the format argument of printf when
14491 converting grub_size_t.
14492 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
14493 "x" to convert grub_size_t arguments.
14494
14495 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14496
14497 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
14498 too long captions.
14499 (list_get_minimal_size): Take selection box into account.
14500
14501 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14502
14503 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
14504 NULL font.
14505
14506 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14507
14508 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
14509 devices when iterating over /dev/disk/by-id; they will be handled
14510 later if appropriate, which they aren't always (e.g. LVM).
14511
14512 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14513
14514 * include/grub/misc.h (grub_reboot): Declare as noreturn.
14515 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
14516 fails.
14517 (grub_halt): Likewise.
14518 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
14519 reset-all fails.
14520 (grub_halt): Don't return, even if all of shut-down, power-off, and
14521 poweroff fail.
14522
14523 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14524
14525 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
14526 arguments, not three.
14527
14528 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14529
14530 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
14531 * util/grub.d/10_linux.in: Use it to check for LVM, so that
14532 LVM-on-RAID is handled correctly.
14533
14534 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14535
14536 * docs/grub.texi (Changes from GRUB Legacy): New section.
14537 (Future): Fix typo.
14538
14539 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14540
14541 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
14542 grub.d/README accidentally ends up executable for one reason or
14543 another. Ignore it.
14544
14545 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14546
14547 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
14548 (gpt_partition_map_iterate): Support non-512B sectors.
14549
14550 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14551
14552 * kern/efi/init.c (grub_efi_init): Disable watchdog.
14553 Tested by: Seth Goldberg.
14554
14555 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14556
14557 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
14558 Properly align mbi.
14559 Reported by: Seth Goldberg.
14560
14561 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14562
14563 * util/grub-mkrescue.in: Avoid module duplication.
14564
14565 2010-07-01 Sean Finney <seanius@seanius.net>
14566
14567 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
14568
14569 2010-07-01 Sean Finney <seanius@seanius.net>
14570
14571 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
14572
14573 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14574
14575 * disk/lvm.c (grub_lvm_checkvalue): New function.
14576 (grub_lvm_check_flag): Likewise.
14577
14578 2010-07-01 Robert Millan <rmh@gnu.org>
14579
14580 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
14581 Support 'p' as partition separator on kernel of FreeBSD (used
14582 with GPT labels).
14583 (grub_util_biosdisk_get_grub_dev): Likewise.
14584
14585 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14586
14587 Yeeloong firmware port.
14588
14589 * boot/mips/yeeloong/fwstart.S: New file.
14590 * bus/cs5536.c (gpiodump): New const.
14591 (set_io_space): New function.
14592 (set_iod): Likewise.
14593 (set_p2d): Likewise.
14594 (grub_cs5536_init_geode): Likewise.
14595 * commands/mips/yeeloong/lsspd.c: New file.
14596 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
14597 (serial_mod_SOURCES): New variable.
14598 (serial_mod_CFLAGS): Likewise.
14599 (serial_mod_LDFLAGS): Likewise.
14600 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
14601 term/terminfo.c and term/tparm.c.
14602 (pkglib_IMAGES): Add fwstart.img.
14603 (fwstart_img_SOURCES): New variable.
14604 (fwstart_img_CFLAGS): Likewise.
14605 (fwstart_img_ASFLAGS): Likewise.
14606 (fwstart_img_LDFLAGS): Likewise.
14607 (fwstart_img_FORMAT): Likewise.
14608 (pkglib_MODULES): Add lsspd.mod.
14609 (lsspd_mod_SOURCES): New variable.
14610 (lsspd_mod_CFLAGS): Likewise.
14611 (lsspd_mod_LDFLAGS): Likewise.
14612 (pkglib_MODULES): Add halt.mod.
14613 (halt_mod_SOURCES): New variable.
14614 (halt_mod_CFLAGS): Likewise.
14615 (halt_mod_LDFLAGS): Likewise.
14616 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
14617 (serial_mod_SOURCES): Removed.
14618 (serial_mod_CFLAGS): Likewise.
14619 (serial_mod_LDFLAGS): Likewise.
14620 * disk/ata.c (check_device): New function.
14621 (grub_ata_device_initialize): Use check_device.
14622 (grub_ata_iterate): Recheck devices.
14623 (grub_ata_open): Likewise.
14624 (grub_atapi_iterate): Likewise.
14625 (grub_atapi_open): Likewise.
14626 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
14627 (GRUB_ATA_CH1_PORT1): Likewise.
14628 (GRUB_ATA_CH0_PORT2): Likewise.
14629 (GRUB_ATA_CH1_PORT2): Likewise.
14630 * include/grub/mips/loongson.h: New file.
14631 * include/grub/mips/yeeloong/ec.h: Likewise.
14632 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
14633 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
14634 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
14635 * include/grub/misc.h (grub_halt): Declare as noreturn.
14636 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
14637 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
14638 (UART_ENABLE_FIFO_TRIGGER1): New definition.
14639 (UART_ENABLE_DTRRTS): Likewise.
14640 (UART_ENABLE_MODEM): Removed.
14641 (UART_ENABLE_OUT2): New const.
14642 * include/grub/term.h (grub_term_register_input_active): New function.
14643 (grub_term_register_output_active): Likewise.
14644 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
14645 argument.
14646 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
14647 (init_pci): New function.
14648 (grub_machine_init): Execute platform init when firmware. Init serial.
14649 (grub_halt): Implement.
14650 (grub_exit): Likewise.
14651 (grub_reboot): Likewise.
14652 * term/serial.c (serial_hw_init): Update macros.
14653 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
14654 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
14655 (image_targets): New target mipsel-yeeloong-flash.
14656 (generate_image): Support IMAGE_YEELOONG_FLASH.
14657 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
14658 (grub_video_sm712_setup): Init card.
14659 (grub_video_sm712_set_palette): Removed.
14660 * video/sm712_init.c: New file.
14661
14662 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
14663
14664 * Makefile.in (install-local): Temporarily prepend $(builddir) to
14665 PATH when running help2man and then run it on the unadorned
14666 executable names, rather than passing $(builddir)/* paths to
14667 help2man. This avoids the build directory ending up in generated
14668 manual pages.
14669
14670 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14671
14672 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
14673 to avoid accidents when debugging with 'sh -x'.
14674 * util/grub-mkrescue.in: Likewise.
14675 * util/grub.d/00_header.in: Likewise.
14676 * util/grub.d/10_hurd.in: Likewise.
14677 * util/grub.d/10_kfreebsd.in: Likewise.
14678 * util/grub.d/10_linux.in: Likewise.
14679 * util/grub.d/10_netbsd.in: Likewise.
14680 * util/grub.d/10_windows.in: Likewise.
14681 * util/grub.d/20_linux_xen.in: Likewise.
14682 * util/grub.d/30_os-prober.in: Likewise.
14683 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14684
14685 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14686
14687 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
14688 last character in the buffer.
14689 Reported by: Vladimir Serbinenko.
14690
14691 2010-06-29 Robert Millan <rmh@gnu.org>
14692
14693 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
14694 (Command-line and menu entry commands): Document `badram' command.
14695
14696 2010-06-28 Robert Millan <rmh@gnu.org>
14697
14698 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
14699 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
14700 command using ${GRUB_BADRAM} as parameter.
14701
14702 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14703
14704 * docs/grub.texi (Device map): New section.
14705 (Themes): New section (stub).
14706 * Makefile.in (docs/grub.info): The info documentation now builds
14707 without errors. Make sure it stays that way.
14708
14709 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 Use normal parser for menu entries.
14712 Reported by: Thomas Frauendorfer
14713
14714 * include/grub/parser.h (grub_parser_execute): Don't export.
14715 * normal/menu.c (grub_menu_execute_entry_real): New function.
14716 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
14717
14718 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14719
14720 * docs/grub.texi (Embedded configuration): New section (replacing
14721 old "Preset Menu" stub).
14722 (Images): New section.
14723 (configfile): Note that any menu entries defined in `file' are shown
14724 immediately.
14725
14726 2010-06-28 Josh Triplett <josh@joshtriplett.org>
14727
14728 * mmap/i386/pc/mmap_helper.S: Set CF on return.
14729
14730 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14731
14732 * util/grub-install.in: Add --debug-image= option.
14733
14734 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14735
14736 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
14737 possible on Linux.
14738
14739 * util/deviceiter.c (check_device): Rename to ...
14740 (check_device_readable_unique): ... this. Update all callers.
14741 Maintain and check a list of which devices (by canonicalized name)
14742 have already been seen.
14743 (clear_seen_devices): New function.
14744 (compare_file_names) [__linux__]: New function.
14745 (grub_util_iterate_devices): Clear the list of seen devices on exit
14746 and (just in case) on entry.
14747 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
14748 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
14749 seen-devices list, superseded by general code in check_device.
14750
14751 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14752
14753 * commands/cat.c (options): New variable.
14754 (grub_cmd_cat): Parse options. If the --dos option is given, print
14755 DOS-style "\r\n" line endings as simple newlines (Debian bug
14756 #586358).
14757 (GRUB_MOD_INIT): Use extcmd.
14758 (GRUB_MOD_FINI): Likewise.
14759 * docs/grub.texi (cat): Document --dos.
14760
14761 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14762
14763 XEN with Linux grub-mkconfig support.
14764
14765 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
14766 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
14767 GRUB_CMDLINE_XEN_DEFAULT.
14768 * util/grub.d/20_linux_xen.in: New file.
14769
14770 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14771
14772 Initialise VGA video on qemu ourselves.
14773
14774 * boot/i386/qemu/boot.S: Don't call 0xc000.
14775 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
14776 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
14777 (kernel_img_HEADERS): Add pci.h.
14778 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
14779 * configure.ac: Force unifont on qemu and yeeloong.
14780 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
14781 (grub_vga_palette_write): Use correct register.
14782 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
14783 Call grub_qemu_init_cirrus.
14784 * kern/i386/qemu/init.c: New file.
14785 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
14786
14787 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
14788
14789 2010-06-26 Pavel Roskin <proski@gnu.org>
14790
14791 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
14792 13.
14793
14794 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14795
14796 * docs/grub.texi (Simple configuration): Explain that
14797 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
14798 set to `true' to disable their respective recovery entries, not
14799 merely set.
14800
14801 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14802
14803 Make the `source' command slightly faster.
14804
14805 * normal/main.c (grub_normal_execute): Don't re-read list files when
14806 nested.
14807
14808 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
14809
14810 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
14811 field position and mask size to red fields from mode_info, not
14812 green.
14813 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
14814 Remove redundant tag->common.framebuffer_type assignment.
14815 Reported by: Seth Goldberg.
14816
14817 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
14818
14819 Sync up other versions of the Linux loader with Robert Millan's
14820 change of 2010-01-09, "Make loader output a bit more user-friendly".
14821
14822 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
14823 grub_dprintf().
14824 (grub_cmd_linux): Likewise.
14825 (grub_cmd_initrd): Likewise.
14826 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
14827 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14828
14829 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
14830
14831 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
14832 larger than MEMORY_MAP_SIZE.
14833
14834 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
14835
14836 Fix parallel build.
14837
14838 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
14839 dependency.
14840 * script/parser.y: #include grub_script.tab.h header.
14841
14842 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14843
14844 Support >3GiB and <16MiB RAM in i386-qemu.
14845
14846 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
14847 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
14848 (grub_lower_mem): Removed.
14849 (grub_upper_mem): Likewise.
14850 (mem_size): Made static.
14851 (above_4g): New variable.
14852 (grub_machine_mmap_init): Detect small mem_size and above_4g.
14853 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
14854 support.
14855
14856 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14857
14858 Cirrus 5446 and Bochs video cards support.
14859
14860 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
14861 video_bochs.mod
14862 (video_cirrus_mod_SOURCES): New variable.
14863 (video_cirrus_mod_CFLAGS): Likewise.
14864 (video_cirrus_mod_LDFLAGS): Likewise.
14865 (video_bochs_mod_SOURCES): Likewise.
14866 (video_bochs_mod_CFLAGS): Likewise.
14867 (video_bochs_mod_LDFLAGS): Likewise.
14868 * include/grub/vga.h: New file.
14869 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
14870 (grub_video_fb_set_page_t): New type.
14871 (grub_video_fb_setup): New prototype.
14872 (grub_video_fb_swap_buffers): Likewise.
14873 (grub_video_fb_get_info_and_fini): Likewise.
14874 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
14875 (CRTC_DATA_PORT): Likewise.
14876 (CRTC_CURSOR): Likewise.
14877 (CRTC_CURSOR_ADDR_HIGH): Likewise.
14878 (CRTC_CURSOR_ADDR_LOW): Likewise.
14879 (CRTC_CURSOR_DISABLE): Likewise.
14880 (update_cursor): Use grub_vga_cr_write.
14881 (grub_vga_text_setcursor): Likewise.
14882 * video/bochs.c: New file.
14883 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
14884 (palette): Likewise.
14885 (palette_size): Likewise.
14886 (framebuffer): New variable.
14887 (grub_video_fb_init): Use 'framebuffer'.
14888 (grub_video_fb_fini): Likewise.
14889 (grub_video_fb_get_info): Likewise.
14890 (grub_video_fb_get_palette): Likewise.
14891 (grub_video_fb_set_palette): Likewise.
14892 (grub_video_fb_set_viewport): Likewise.
14893 (grub_video_fb_get_viewport): Likewise.
14894 (grub_video_fb_map_color): Likewise.
14895 (grub_video_fb_map_rgb): Likewise.
14896 (grub_video_fb_map_rgba): Likewise.
14897 (grub_video_fb_unmap_color): Likewise.
14898 (grub_video_fb_unmap_color_int): Likewise.
14899 (grub_video_fb_fill_rect): Likewise.
14900 (grub_video_fb_blit_bitmap): Likewise.
14901 (grub_video_fb_blit_render_target): Likewise.
14902 (grub_video_fb_scroll): Likewise.
14903 (grub_video_fb_create_render_target): Likewise.
14904 (grub_video_fb_doublebuf_blit_init): Likewise.
14905 (grub_video_fb_set_active_render_target): Handle doublebuffering.
14906 (doublebuf_pageflipping_update_screen): New function.
14907 (doublebuf_pageflipping_init): Likewise.
14908 (grub_video_fb_setup): Likewise.
14909 (grub_video_fb_swap_buffers): Likewise.
14910 (grub_video_fb_get_info_and_fini): Likewise.
14911 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
14912 All users updated.
14913 (doublebuf_pageflipping_commit): Restructured into ...
14914 (doublebuf_pageflipping_set_page): ... this.
14915 (doublebuf_pageflipping_update_screen): Removed.
14916 (doublebuf_pageflipping_init): Likewise.
14917 (double_buffering_init): Likewise.
14918 (grub_video_vbe_setup): Use grub_video_fb_setup.
14919 (grub_video_vbe_swap_buffers): Removed.
14920 (grub_video_vbe_set_active_render_target): Likewise.
14921 (grub_video_vbe_get_active_render_target): Likewise.
14922 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
14923 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
14924 grub_video_fb_set_active_render_target and
14925 grub_video_fb_get_active_render_target.
14926 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
14927 (SEQUENCER_DATA_PORT): Likewise.
14928 (MAP_MASK_REGISTER): Likewise.
14929 (CRTC_ADDR_PORT): Likewise.
14930 (CRTC_DATA_PORT): Likewise.
14931 (START_ADDR_HIGH_REGISTER): Likewise.
14932 (START_ADDR_LOW_REGISTER): Likewise.
14933 (GRAPHICS_ADDR_PORT): Likewise.
14934 (GRAPHICS_DATA_PORT): Likewise.
14935 (READ_MAP_REGISTER): Likewise.
14936 (INPUT_STATUS1_REGISTER): Likewise.
14937 (INPUT_STATUS1_VERTR_BIT): Likewise.
14938 (get_map_mask): Use grub_vga_sr_read.
14939 (set_map_mask): Use grub_vga_sr_write.
14940 (set_read_map): Use grub_vga_gr_write.
14941 (set_start_address): Use grub_vga_cr_write.
14942 * video/sm712.c (framebuffer): Remove leftover fields.
14943
14944 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
14945
14946 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
14947 setting GRUB_VIDEO_BACKEND. Make it available as a user override
14948 instead. Replace the gfxterm backend check with a check that
14949 ${GRUB_PREFIX}/video.lst is non-empty.
14950 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
14951 again.
14952 (load_video): New generated function. Call it before loading
14953 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
14954 * util/grub.d/10_linux.in (linux_entry): Call load_video.
14955 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
14956 * docs/grub.texi (Simple configuration): Document
14957 GRUB_VIDEO_BACKEND.
14958
14959 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14960
14961 Use video functions in linux and xnu loaders.
14962
14963 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
14964 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
14965 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
14966 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
14967 loader/i386/pc/linux.c.
14968 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
14969 (find_line_len): Removed.
14970 (find_framebuf): Likewise.
14971 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
14972 * loader/i386/efi/xnu.c: Removed.
14973 * loader/i386/pc/xnu.c: Moved from here...
14974 * loader/i386/xnu.c: ...here.
14975
14976 Enable priorities in video drivers.
14977
14978 * include/grub/video.h (grub_video_adapter_prio_t): New type.
14979 (grub_video_adapter): New field prio.
14980 (grub_video_register): Respect prio when inserting.
14981 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
14982 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
14983 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
14984 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
14985 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
14986 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
14987 * video/sm712.c (grub_video_sm712_adapter): Likewise.
14988
14989 Fix SDL driver ID.
14990
14991 * include/grub/video.h (grub_video_driver_id_t): New value
14992 GRUB_VIDEO_DRIVER_SDL.
14993 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
14994
14995 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
14996
14997 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
14998 argument to printf.
14999 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15000
15001 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15002
15003 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
15004 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15005
15006 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15007
15008 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
15009 directly, and recommend grub-install instead.
15010 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15011
15012 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15013
15014 Fix i386-pc prefix handling with nested partitions (Debian bug
15015 #585068). Note that the case where the core image is booted using
15016 multiboot and relocated from its original location still requires
15017 more work.
15018
15019 * kern/i386/pc/init.c (make_install_device): If the prefix starts
15020 with "(,", fill the boot drive in between those two characters, but
15021 expect that a full partition specification including partition map
15022 names will follow.
15023 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
15024 specified, write a prefix without the drive name but including a
15025 full partition specification.
15026
15027 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
15028
15029 * util/grub-mkconfig.in: Ignore non-option arguments, for
15030 compatibility with older versions (before 2010-06-12) which did the
15031 same. In particular, this makes it easier to ship an update-grub
15032 wrapper which is compatible with that used with GRUB Legacy (Debian
15033 bug #586056).
15034
15035 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15036
15037 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
15038 for manual page generation.
15039
15040 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15041
15042 * po/POTFILES: Remove leftover commands/handler.c.
15043
15044 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15045
15046 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
15047 left this script non-functional.
15048
15049 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15050
15051 * docs/man/grub-emu.h2m: New file.
15052
15053 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
15054
15055 * docs/grub.texi (Commands): Document reduced command set in rescue
15056 mode.
15057 (cpuid): New section.
15058
15059 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
15060
15061 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
15062 new partition naming style.
15063 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
15064
15065 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
15066
15067 Add "-o grub.iso" like cmdline options support.
15068
15069 * util/grub-install.in: Improve cmdline option parsing.
15070 * util/grub-mkconfig.in: Likewise.
15071 * util/grub-mkrescue.in: Likewise.
15072 * util/grub-reboot.in: Likewise.
15073 * util/grub-set-default.in: Likewise.
15074 * util/i386/efi/grub-install.in: Likewise.
15075 * util/ieee1275/grub-install.in: Likewise.
15076 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15077
15078 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15079
15080 * .bzrignore: Ignore 41_custom.
15081
15082 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15083
15084 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
15085
15086 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15087
15088 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
15089 prototype declarations.
15090
15091 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
15092 generating fs, partmap, and video lists.
15093 * include/grub/fs.h (grub_fs_register): Omit prototype if
15094 GRUB_LST_GENERATOR is defined.
15095 * include/grub/partition.h (grub_partition_map_register): Likewise.
15096 * include/grub/video.h (grub_video_register): Likewise.
15097
15098 2010-06-12 Javier Martín <lordhabbit@gmail.com>
15099
15100 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
15101
15102 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15103
15104 * util/grub-mkrescue.in: Support --xorriso argument.
15105
15106 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15107
15108 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
15109 Suggested by: Thomas Schmitt.
15110
15111 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15112
15113 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
15114 Suggested by: Thomas Schmitt.
15115
15116 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15117
15118 custom.cfg support.
15119
15120 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
15121 * util/grub.d/41_custom.in: New file.
15122
15123 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15124
15125 * util/grub-mkrescue.in (make_image): Remove sh module, which has
15126 been merged back into normal.
15127
15128 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15129
15130 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
15131 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
15132
15133 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15134
15135 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
15136 when generating manual pages.
15137 * docs/man/grub-bin2h.h2m: New file.
15138 * docs/man/grub-editenv.h2m: New file.
15139 * docs/man/grub-fstest.h2m: New file.
15140 * docs/man/grub-install.h2m: New file.
15141 * docs/man/grub-macho2img.h2m: New file.
15142 * docs/man/grub-mkconfig.h2m: New file.
15143 * docs/man/grub-mkdevicemap.h2m: New file.
15144 * docs/man/grub-mkfont.h2m: New file.
15145 * docs/man/grub-mkimage.h2m: New file.
15146 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
15147 * docs/man/grub-mkrelpath.h2m: New file.
15148 * docs/man/grub-mkrescue.h2m: New file.
15149 * docs/man/grub-ofpathname.h2m: New file.
15150 * docs/man/grub-pe2elf.h2m: New file.
15151 * docs/man/grub-probe.h2m: New file.
15152 * docs/man/grub-reboot.h2m: New file.
15153 * docs/man/grub-script-check.h2m: New file.
15154 * docs/man/grub-set-default.h2m: New file.
15155 * docs/man/grub-setup.h2m: New file.
15156
15157 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 Use FOR_* macros instead of *_iterate whenever possible.
15160
15161 * commands/handler.c: Removed.
15162 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
15163 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
15164 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15165 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
15166 (grub_probe_SOURCES): Remove kern/parser.c.
15167 (util/grub-script-check.c_DEPENDENCIES): Removed.
15168 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
15169 and grub_script_check_init.c.
15170 (grub_script_check_init.lst): Removed.
15171 (grub_script_check_init.h): Likewise.
15172 (grub_script_check_init.c): Likewise.
15173 (pkglib_MODULES): Remove handler.mod and sh.mod.
15174 (handler_mod_SOURCES): Removed.
15175 (handler_mod_CFLAGS): Likewise.
15176 (handler_mod_LDFLAGS): Likewise.
15177 (normal_mod_SOURCES): Remove normal/handler.c.
15178 Add script/main.c, script/script.c, script/execute.c,
15179 script/function.c, script/lexer.c, grub_script.tab.c
15180 and grub_script.yy.c.
15181 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15182 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15183 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
15184 (grub_setup_SOURCES): Remove kern/parser.c.
15185 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15186 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
15187 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
15188 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15189 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15190 (grub_setup_SOURCES): Remove kern/parser.c.
15191 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15192 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
15193 * include/grub/command.h (grub_command_iterate): Removed.
15194 (FOR_COMMANDS): New macro.
15195 * include/grub/dl.h (grub_dl): New member next.
15196 (grub_dl_iterate): Removed.
15197 (grub_dl_head): New variable declaration.
15198 (FOR_DL_MODULES): New macro.
15199 * include/grub/fs.h: Include list.h.
15200 (grub_fs): Make next first element.
15201 (grub_fs_list): New variable declaration.
15202 (grub_fs_register): Make inline.
15203 (grub_fs_unregister): Likewise.
15204 (grub_fs_iterate): Removed.
15205 (FOR_FILESYSTEMS): New macro.
15206 * include/grub/handler.h: Removed.
15207 * include/grub/list.h (grub_list_hook_t): Removed.
15208 (grub_list_test_t): Likewise.
15209 (grub_list_pop): Likewise.
15210 (grub_list_iterate): Likewise.
15211 (grub_list_insert): Likewise.
15212 (FOR_LIST_ELEMENTS): New macro.
15213 * include/grub/parser.h (grub_parser_class): Removed.
15214 (grub_parser_register): Likewise.
15215 (grub_parser_unregister): Likewise.
15216 (grub_parser_get_current): Likewise.
15217 (grub_parser_set_current): Likewise.
15218 (grub_register_rescue_parser): Likewise.
15219 (grub_rescue_parse_line): New function.
15220 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
15221 * include/grub/script_sh.h (grub_script_function_list): New variable
15222 declaration.
15223 (FOR_SCRIPT_FUNCTIONS): New macro.
15224 (grub_script_function_iterate): Removed.
15225 (grub_normal_parse_line): New prototype.
15226 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
15227 (FOR_DISABLED_TERM_INPUTS): Likewise.
15228 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15229 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15230 * include/grub/video.h (grub_video_adapter): Move 'next' to first
15231 element.
15232 (grub_video_register): Inline.
15233 (grub_video_unregister): Likewise.
15234 (grub_video_adapter_list): New variable declaration.
15235 (grub_video_iterate): Removed.
15236 (FOR_VIDEO_ADAPTERS): New macro.
15237 * kern/dl.c (grub_dl_list): Removed. All users updated.
15238 (grub_dl_iterate): Removed.
15239 * kern/fs.c (grub_fs_list): Make global.
15240 (grub_fs_register): Removed.
15241 (grub_fs_unregister): Likewise.
15242 (grub_fs_iterate): Likewise.
15243 * kern/handler.c: Removed.
15244 * kern/list.c (grub_list_pop): Removed.
15245 (grub_list_iterate): Likewise.
15246 (grub_list_insert): Likewise.
15247 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
15248 (grub_prio_list_insert): Don't use grub_list_insert.
15249 * kern/main.c (grub_register_rescue_parser): Don't call
15250 grub_register_rescue_parser.
15251 * kern/parser.c (grub_parser_class): Removed.
15252 (grub_parser_execute): Use grub_rescue_parse_line.
15253 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
15254 (grub_rescue_parser): Removed.
15255 (grub_register_rescue_parser): Likewise.
15256 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
15257 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
15258 (grub_auth_check_authentication): Likewise.
15259 * normal/completion.c (iterate_command): Removed.
15260 (grub_normal_do_completion): Use FOR_COMMANDS.
15261 * normal/handler.c: Removed.
15262 * normal/main.c (read_config_file): Remove parser changing.
15263 (grub_normal_execute): Don't call read_handler_list.
15264 (grub_normal_read_line_real): Statically allocate prompt.
15265 (grub_cmdline_run): Use grub_normal_parse_line.
15266 (GRUB_MOD_FINI): Don't call free_handler_list.
15267 * normal/menu_entry.c (run): Likewise.
15268 * script/function.c (grub_script_function_list): Make global.
15269 (grub_script_function_iterate): Removed.
15270 * script/main.c (grub_normal_parse_line): Make global.
15271 (grub_sh_parser): Removed.
15272 (GRUB_MOD_INIT): Likewise.
15273 (GRUB_MOD_FINI): Likewise.
15274 * tests/lib/functional_test.c (grub_functional_test): Use
15275 FOR_LIST_ELEMENTS.
15276 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
15277 (grub_test_run): Use FOR_LIST_ELEMENTS.
15278 * tests/lib/unit_test.c (main): Likewise.
15279 * util/deviceiter.c (grub_util_iterate_devices): Don't use
15280 grub_list_pop.
15281 * util/grub-fstest.c (grub_term_input_class): Removed.
15282 (grub_term_output_class): Likewise.
15283 * util/grub-probe.c: Likewise.
15284 * util/i386/pc/grub-setup.c: Likewise.
15285 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15286 * util/grub-script-check.c (main): Don't call grub_init_all and
15287 grub_fini_all.
15288 * video/video.c (grub_video_adapter_list): Make global.
15289 (grub_video_register): Removed.
15290 (grub_video_unregister): Likewise.
15291 (grub_video_iterate): Likewise.
15292
15293 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
15296 reported by Henrique Ferreiro.
15297
15298 2010-06-09 Robert Millan <rmh@gnu.org>
15299
15300 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
15301 ones, when both are available.
15302
15303 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15304
15305 Make --version uniform and avoid hard-coded program name.
15306
15307 * util/grub-mkimage.c (main): Use `program_name' instead of
15308 hard-coded string.
15309 * util/i386/pc/grub-setup.c (main): Likewise.
15310 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
15311 * util/grub-install.in: Save the basename of $0 in $self, and use the
15312 latter in informational messages. Use the same format for --version
15313 as the binary programs.
15314 * util/grub-mkconfig.in: Likewise.
15315 * util/grub-mkrescue.in: Likewise.
15316 * util/grub-reboot.in: Likewise.
15317 * util/grub-set-default.in: Likewise.
15318 * util/i386/efi/grub-install.in: Likewise.
15319 * util/ieee1275/grub-install.in: Likewise.
15320 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15321
15322 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15323
15324 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
15325 embedding area. Use <= instead of == when checking for non-emptiness.
15326
15327 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15328
15329 * configure.ac: Add `.' to the directories searched for unifont.
15330
15331 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15332
15333 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
15334 grub_script.yy.h.
15335
15336 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15337
15338 * docs/grub.texi (History): Expand to cover GRUB 2.
15339 (Serial terminal): Refer to `terminal_input' and `terminal_output'
15340 commands, not `terminal'.
15341 (serial): Likewise.
15342 (terminal_input): New section.
15343 (terminal_output): New section.
15344 (uppermem): New section (stub).
15345 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
15346
15347 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15348
15349 * docs/grub.texi (Security): Menu entries are unrestricted by
15350 default, not restricted to superusers as I had previously thought.
15351 Reword to account for this.
15352
15353 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15354
15355 * kern/emu/misc.c (device_mapper_null_log): New function.
15356 (grub_device_mapper_supported): New function.
15357 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
15358 prototype.
15359 * kern/emu/hostdisk.c (find_partition_start): Check whether
15360 device-mapper is supported before trying to use it.
15361 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
15362
15363 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15364
15365 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
15366 (File name syntax): Likewise.
15367 (help): --all is no longer supported in GRUB 2. Be more precise
15368 about pattern matching.
15369
15370 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15371
15372 * normal/completion.c (grub_normal_do_completion): When completing
15373 arguments to "set" and the current word contains an equals sign,
15374 skip to after the equals sign before starting completion.
15375
15376 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15377
15378 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
15379
15380 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15381
15382 * docs/grub.texi (Network): New section.
15383 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
15384 `(nd)' as in GRUB Legacy.
15385 (pxe_unload): New section.
15386
15387 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15388
15389 * docs/grub.texi (Troubleshooting): `echo' is not usually available
15390 in the rescue shell, so recommend using `set' instead. Thanks,
15391 Jordan Uggla.
15392
15393 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15394
15395 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
15396 (password): New section.
15397 (password_pbkdf2): New section.
15398 (search): New section.
15399 (Security): New section.
15400 (Troubleshooting): New section, currently very incomplete.
15401 (Invoking grub-mkpasswd-pbkdf2): New section.
15402 (Internals): New section, currently very incomplete.
15403
15404 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15405
15406 * util/grub.d/00_header.in: Add some more quoting (of
15407 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
15408 work again.
15409 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
15410
15411 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15412
15413 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
15414 to `count', fixing variable shadowing that broke the -c option.
15415
15416 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
15417
15418 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
15419 in case they contain spaces.
15420
15421 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15422
15423 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
15424 "part_" to partmap module names, in line with grub-install.
15425 Reported by: Jindřich Makovička (Debian bug #584426).
15426
15427 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15428
15429 * util/grub-mkimage.c: Make target-related error messages slightly
15430 more helpful; -O talks about "format". Explicitly point to the use
15431 of -O if no target is specified.
15432 Reported by: Didier Raboud (Debian bug #584415).
15433
15434 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
15435
15436 * INSTALL: Document several build requirements for optional features
15437 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
15438
15439 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15440
15441 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
15442 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
15443 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
15444
15445 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15446
15447 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
15448 Thanks to Jordan Uggla for spotting this.
15449
15450 2010-06-02 Aleš Nesrsta <starous@volny.cz>
15451
15452 Finally make USB usable.
15453
15454 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
15455 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
15456 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
15457 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
15458 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
15459 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
15460 (GRUB_OHCI_FSMPS): Likewise.
15461 (GRUB_OHCI_PERIODIC_START): Likewise.
15462 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
15463 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
15464 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
15465 (GRUB_OHCI_SET_PORT_RESET): Likewise.
15466 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
15467 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
15468 (grub_ohci_transaction): Likewise.
15469 (grub_ohci_transfer): Improve condition detection algorithms.
15470 Handle toggle property. Program the transactions correctly.
15471 Improve error handling. Various important fixups.
15472 (grub_ohci_portstatus): Put register writes in right order.
15473 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
15474 (grub_uhci_transfer): Don't show "failed" message on success.
15475 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
15476 array.
15477 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
15478 determine its size.
15479 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
15480 before initialization is completed. Use IN direction for empty
15481 transfers. Use last_trans and compute toggle.
15482 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
15483 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
15484 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
15485 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
15486 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
15487 (grub_usb_device): Increase toggle to 256.
15488 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
15489 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
15490 GRUB_USBMS_SUBCLASS_SFF8070.
15491 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
15492 (grub_scsi_inquiry): New member page and alloc_length.
15493 (grub_scsi_request_sense): New structure.
15494 (grub_scsi_request_sense_data): Likewise.
15495 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
15496 control.
15497 * disk/scsi.c (grub_scsi_request_sense): New function.
15498 (grub_scsi_test_unit_ready): Likewise.
15499 (grub_scsi_inquiry): Fill new fields.
15500 (grub_scsi_read_capacity): Likewise.
15501 (grub_scsi_read10): Add request sense at the end.
15502 (grub_scsi_read12): Likewise.
15503 (grub_scsi_write10): Likewise.
15504 (grub_scsi_write12): Likewise.
15505 (grub_scsi_open): Add Test Unit Ready.
15506 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
15507 Support additional subclasses. Con't clear halt yet. Activate the
15508 proper config. Calculate LUNs correctly.
15509 (grub_usbms_transfer): Various important fixups.
15510
15511 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15512
15513 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
15514 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
15515 (grub_ohci_fini_hw): New function.
15516 (grub_ohci_restore_hw): Likewise.
15517 (GRUB_MOD_INIT(ohci)): Register preboot hook.
15518 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
15519 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
15520
15521 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15522
15523 Dedicated DMA allocations.
15524
15525 * bus/pci.c (grub_memalign_dma32): New function
15526 (grub_dma_free): Likewise.
15527 (grub_dma_get_virt): Likewise.
15528 (grub_dma_get_phys): Likewise.
15529 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
15530 (grub_ohci_pci_iter): Use dma32_alloc.
15531 (grub_ohci_transfer): Likewise.
15532 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
15533 (grub_usb_bulk_readwrite): Likewise.
15534 * include/grub/pci.h: Add declarations.
15535
15536 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 CS5536 support.
15539
15540 * bus/cs5536.c: New file.
15541 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
15542 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
15543 (cs5536_mod_SOURCES): New variable.
15544 (cs5536_mod_CFLAGS): Likewise.
15545 (cs5536_mod_LDFLAGS): Likewise.
15546 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
15547 machine/pci.h.
15548 (kernel_img_SOURCES): Add bus/cs5536.c.
15549 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
15550 usb_keyboard.mod.
15551 (usb_mod_SOURCES): New variable.
15552 (usb_mod_CFLAGS): New variable.
15553 (usb_mod_LDFLAGS): New variable.
15554 (usbtest_mod_SOURCES): New variable.
15555 (usbtest_mod_CFLAGS): New variable.
15556 (usbtest_mod_LDFLAGS): New variable.
15557 (ohci_mod_SOURCES): New variable.
15558 (ohci_mod_CFLAGS): New variable.
15559 (ohci_mod_LDFLAGS): New variable.
15560 (usbms_mod_SOURCES): New variable.
15561 (usbms_mod_CFLAGS): New variable.
15562 (usbms_mod_LDFLAGS): New variable.
15563 (usb_keyboard_mod_SOURCES): New variable.
15564 (usb_keyboard_mod_CFLAGS): New variable.
15565 (usb_keyboard_mod_LDFLAGS): New variable.
15566 * include/grub/smbus.h: New file.
15567 * include/grub/cs5536.h: New file.
15568
15569 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15570
15571 * util/grub.d/00_header.in: Add safety check to make sure that
15572 ${locale_dir} exists before trying to probe it.
15573
15574 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15575
15576 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
15577 per the GNU Coding Standards; this is now too obscure to be worth
15578 documenting.
15579 (QNX): Likewise.
15580 (chainloader): Remove cross-reference to `SCO UnixWare'.
15581
15582 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15583
15584 * docs/grub.texi (Chain-loading): New section.
15585 (DOS/Windows): New section, borrowed from GRUB Legacy with details
15586 adjusted for GRUB 2.
15587 (SCO UnixWare): Likewise.
15588 (QNX): Likewise.
15589 (chainloader): Add reference to `Block list syntax'.
15590 (drivemap): New section.
15591 (parttool): New section.
15592
15593 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15594
15595 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
15596 the grub shell'.
15597 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
15598 (Installing GRUB using grub-install): Remove reference to the grub
15599 shell; mention `grub-mkimage' and `grub-setup' instead.
15600 (Invoking grub-install): Likewise.
15601 (Interface): Add reference to `Menu entry editor'.
15602 (serial): Remove `--device' option.
15603
15604 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15605
15606 * docs/grub.texi (Configuration): New section, documenting
15607 configuration file generation using grub-mkconfig. I've left a slot
15608 for documenting the full shell scripting format but have not yet
15609 started on writing that up.
15610 (Invoking grub-mkconfig): New section.
15611
15612 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15613
15614 * docs/grub.texi (direntry): Remove grub-terminfo reference.
15615 (GNU GRUB manual): Likewise.
15616 (General commands): Update description of `terminfo' for GRUB 2.
15617
15618 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15619
15620 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
15621 (GRUB_MOD_INIT): Fix capitalisation.
15622 * docs/grub.texi (Command-line and menu entry commands): Document
15623 gettext and gptsync commands.
15624
15625 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15626
15627 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
15628 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
15629
15630 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
15631
15632 Add btrfs probing support, currently only in the single-device case.
15633
15634 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
15635 function.
15636 (grub_guess_root_device): Call find_root_device_from_mountinfo
15637 before looking in /dev.
15638
15639 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15640
15641 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
15642 GRUB_DISK_SIZE_UNKNOWN.
15643 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
15644
15645 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
15646
15647 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
15648 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
15649 corrupted or not synced properly.
15650
15651 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15652
15653 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
15654 Reported by: Seth Goldberg.
15655
15656 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
15659 addition of dest.
15660 Reported by: Seth Goldberg.
15661
15662 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15663
15664 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
15665 Reported by: Seth Goldberg.
15666
15667 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15668
15669 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
15670 64-bit address as signed on MIPS.
15671
15672 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15673
15674 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
15675 to the empty string.
15676
15677 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
15678
15679 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
15680
15681 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
15682 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
15683 * kern/misc.c (__enable_execute_stack): Disable on
15684 GRUB_MACHINE_EMU.
15685
15686 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15687
15688 Make grub-probe work with symbolic links under /dev/mapper as well
15689 as with real block devices. The Linux world seems to be (at best)
15690 in transition here, and GRUB shouldn't get caught in the middle.
15691
15692 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
15693 /dev/mapper.
15694
15695 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15696
15697 * util/grub-script-check.c (main): Ensure defined behaviour on empty
15698 input files (in which case exit zero).
15699
15700 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15701
15702 * kern/emu/misc.c (canonicalize_file_name): realpath can still
15703 return NULL for various reasons even if it has a maximum-length
15704 buffer: for example, there might be a symlink loop, or the path
15705 might exceed PATH_MAX. If this happens, return NULL.
15706
15707 2010-05-27 Robert Millan <rmh@gnu.org>
15708
15709 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
15710 partmap module to handle cross-partmap setups.
15711 Reported by Orestes Mas. Gràcies!
15712
15713 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15714
15715 * util/grub-mkrescue.in: Initialise override_dir rather than
15716 assuming that it's unset or empty in the environment.
15717
15718 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
15719
15720 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
15721 variable index into p_index to suppress a warning with -Wshadow.
15722
15723 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
15724
15725 * INSTALL: Added flex >= 2.5.35 requirement.
15726
15727 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15728
15729 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
15730
15731 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15732
15733 cmostest support.
15734
15735 * commands/i386/cmostest.c: New file.
15736 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
15737 (cmostest_mod_SOURCES): New variable.
15738 (cmostest_mod_CFLAGS): Likewise.
15739 (cmostest_mod_LDFLAGS): Likewise.
15740 * conf/i386-pc.rmk: Likewise.
15741 * docs/grub.texi (Vendor power-on keys): New section.
15742 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
15743 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
15744 and GRUB_BUTTON_CMOS_ADDRESS.
15745 * util/grub.d/00_header.in: Handle powering-on by separate button.
15746
15747 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15748
15749 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
15750 Removed drawing_scrollbar argument. All users updated
15751 Fixes #29792.
15752 Reported by Jo Shields
15753
15754 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15755
15756 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
15757 buffer since gfxterm handles double repaint.
15758
15759 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15760
15761 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
15762 * term/gfxterm.c (real_scroll): Likewise.
15763
15764 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15765
15766 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
15767 before calling BIOS.
15768
15769 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 * include/grub/i18n.h: Always enable grub_gettext.
15772
15773 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15774
15775 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
15776 partition naming style.
15777
15778 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
15779
15780 * util/grub-mkconfig.in: Fix handling of -o so that it works when
15781 not the first option.
15782
15783 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15784
15785 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
15786
15787 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15788
15789 * util/misc.c: Move inclusion of <limits.h> to ...
15790 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
15791
15792 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
15793
15794 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
15795 Fix merge error in NetBSD code.
15796 (find_partition_start) [__NetBSD__]: Likewise.
15797
15798 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
15799
15800 Fix grub-mkrescue usage unit testing.
15801
15802 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
15803
15804 2010-05-18 Christian Franke <franke@computer.org>
15805
15806 * util/grub.d/10_windows.in: Use path names instead of
15807 drive letters to prevent warning from Cygwin 1.7.
15808 Add drivemap command to menuentry if needed.
15809
15810 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
15811
15812 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
15813 gnumach and gnumach.gz.
15814
15815 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15816
15817 * include/grub/i18n.h (gettext): Inline instead of using #define.
15818 (grub_gettext): Likewise.
15819 (_): Likewise.
15820
15821 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15822
15823 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
15824 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
15825 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
15826 (main): Add a slash after pkglibdirroot.
15827
15828 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15829
15830 * util/grub-install.in: Add missing "in" keyword.
15831
15832 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15833
15834 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
15835 Reported by: Seth Goldberg.
15836
15837 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15838
15839 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
15840
15841 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15842
15843 * configure.ac: Check for Linux device-mapper support.
15844
15845 * util/hostdisk.c (device_is_mapped): New function.
15846 (find_partition_start): New function, partly broken out from
15847 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
15848 device-mapper support added.
15849 (linux_find_partition): Use find_partition_start.
15850 (convert_system_partition_to_system_disk): Add `st' argument.
15851 Support Linux /dev/mapper/* devices if device-mapper support is
15852 available; only DM-RAID devices are understood at present.
15853 (find_system_device): Add `st' argument. Pass it to
15854 convert_system_partition_to_system_disk.
15855 (grub_util_biosdisk_get_grub_dev): Pass stat result to
15856 find_system_device and convert_system_partition_to_system_disk. Use
15857 find_partition_start.
15858
15859 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
15860 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
15861 * util/deviceiter.c [__linux__]: Define MINOR.
15862 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
15863 * util/mkdevicemap.c (grub_putchar): New function.
15864 (grub_getkey): New function.
15865 (grub_refresh): New function.
15866 (main): Set debug=all if -v -v is used.
15867
15868 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15869
15870 Fix build with non-GNU libcs.
15871
15872 * util/misc.c (canonicalize_file_name): Move to ...
15873 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
15874 grub_make_system_path_relative_to_its_root.
15875
15876 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15877
15878 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
15879 we handle finding grub-mkimage. Default to finding grub-mkimage in
15880 ${bindir} with program_transform_name applied, and provide a
15881 --grub-mkimage option to override this.
15882
15883 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15884
15885 Remove grub-mkisofs.
15886
15887 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
15888 (grub_mkisofs_SOURCES): Removed.
15889 (grub_mkisofs_CFLAGS): Removed.
15890 * util/mkisofs/defaults.h: Removed.
15891 * util/mkisofs/eltorito.c: Likewise.
15892 * util/mkisofs/exclude.h: Likewise.
15893 * util/mkisofs/hash.c: Likewise.
15894 * util/mkisofs/include/: Likewise.
15895 * util/mkisofs/include/fctldefs.h: Likewise.
15896 * util/mkisofs/include/mconfig.h: Likewise.
15897 * util/mkisofs/include/prototyp.h: Likewise.
15898 * util/mkisofs/include/statdefs.h: Likewise.
15899 * util/mkisofs/iso9660.h: Likewise.
15900 * util/mkisofs/joliet.c: Likewise.
15901 * util/mkisofs/match.c: Likewise.
15902 * util/mkisofs/match.h: Likewise.
15903 * util/mkisofs/mkisofs.c: Likewise.
15904 * util/mkisofs/mkisofs.h: Likewise.
15905 * util/mkisofs/msdos_partition.h: Likewise.
15906 * util/mkisofs/multi.c: Likewise.
15907 * util/mkisofs/name.c: Likewise.
15908 * util/mkisofs/rock.c: Likewise.
15909 * util/mkisofs/tree.c: Likewise.
15910 * util/mkisofs/write.c: Likewise.
15911
15912 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15913
15914 Unify grub-mkimage accross platforms.
15915
15916 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
15917 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
15918 (grub_mkelfimage_SOURCES): Removed.
15919 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
15920 (util/grub-mkimage.c_DEPENDENCIES): .. this.
15921 (bin_UTILITIES): Add grub-mkimage.
15922 (grub_mkimage_SOURCES): New variable.
15923 (kernel_img_HEADERS): Remove machine/kernel.h.
15924 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
15925 (pkglib_PROGRAMS): Add kernel.img.
15926 (kernel_img_HEADERS): Add machine/kernel.h.
15927 (kernel_img_FORMAT): Removed.
15928 (bin_UTILITIES): Remove grub-mkimage.
15929 (grub_mkimage_SOURCES): Removed.
15930 (grub_mkimage_CFLAGS): Likewise.
15931 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15932 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
15933 (pkglib_PROGRAMS): Add kernel.img.
15934 (bin_UTILITIES): Remove grub-mkimage.
15935 (grub_mkimage_SOURCES): Removed.
15936 (grub_mkimage_CFLAGS): Likewise.
15937 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15938 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
15939 (pkglib_PROGRAMS): Add kernel.img.
15940 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
15941 (pkglib_PROGRAMS): Add kernel.img.
15942 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
15943 (grub_mkimage_SOURCES): Removed.
15944 (grub_mkimage_CFLAGS): Likewise.
15945 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15946 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
15947 (pkglib_PROGRAMS): Add kernel.img.
15948 (bin_UTILITIES): Remove grub-mkimage.
15949 (grub_mkimage_SOURCES): Removed.
15950 (grub_mkimage_CFLAGS): Likewise.
15951 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15952 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
15953 (grub_mkimage_SOURCES): Removed.
15954 (grub_mkimage_CFLAGS): Likewise.
15955 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
15956 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
15957 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
15958 (grub_pe32_optional_header): ... this.
15959 (grub_pe64_optional_header): ... and this. All users updated.
15960 (GRUB_PE32_PE32_MAGIC): Split into ..
15961 (GRUB_PE32_PE32_MAGIC): .. this.
15962 (GRUB_PE32_PE64_MAGIC): .. and this.
15963 (GRUB_PE32_SIGNATURE_SIZE): New definition.
15964 * include/grub/elf.h (PT_GNU_STACK): New definition.
15965 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
15966 * include/grub/i386/efi/kernel.h: Likewise.
15967 * include/grub/i386/kernel.h: Likewise.
15968 * include/grub/i386/pc/kernel.h: Likewise.
15969 * include/grub/i386/qemu/boot.h: Likewise.
15970 * include/grub/mips/kernel.h: Likewise.
15971 * include/grub/mips/qemu-mips/kernel.h: Likewise.
15972 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
15973 * include/grub/powerpc/kernel.h: Likewise.
15974 * include/grub/sparc64/ieee1275/boot.h: Likewise.
15975 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
15976 * include/grub/sparc64/kernel.h: Likewise.
15977 * include/grub/x86_64/efi/kernel.h: Likewise.
15978 * include/grub/x86_64/kernel.h: Likewise.
15979 * include/grub/offsets.h: New file.
15980 * include/grub/kernel.h (grub_module_info): Split into ...
15981 (grub_module_info32): ... this.
15982 (grub_module_info64): ... and this.
15983 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
15984 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
15985 (grub_boot_blocklist): Moved from here ...
15986 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
15987 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
15988 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
15989 * include/grub/types.h (grub_target_to_host16): Removed.
15990 (grub_target_to_host32): Likewise.
15991 (grub_target_to_host64): Likewise.
15992 (grub_host_to_target16): Likewise.
15993 (grub_host_to_target32): Likewise.
15994 (grub_host_to_target64): Likewise.
15995 (grub_host_to_target_addr): Likewise.
15996
15997 Support grub-mkrescue for efi, coreboot and qemu.
15998
15999 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
16000 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
16001 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
16002 * util/grub-mkrawimage.c: Moved from here ...
16003 * util/grub-mkimage.c: ... here. All users updated.
16004 (ALIGN_ADDR): Use image_target.
16005 (TARGET_NO_FIELD): New const.
16006 (image_target_desc): New type.
16007 (image_targets): New array.
16008 (grub_target_to_host64): Use image_target.
16009 (grub_target_to_host32): Likewise.
16010 (grub_target_to_host16): Likewise.
16011 (grub_host_to_target64): Likewise.
16012 (grub_host_to_target32): Likewise.
16013 (grub_host_to_target16): Likewise.
16014 (grub_host_to_target_addr): Likewise.
16015 (generate_image): Handle multiimage.
16016 (main): Require -O parameter. All users updated.
16017 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
16018 util/efi/grub-mkimage.c
16019 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
16020 New option --rom-directory.
16021 Use xorriso.
16022 * util/i386/efi/grub-mkimage.c: Removed.
16023 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
16024 (grub_target_to_host32): Likewise.
16025 (grub_target_to_host64): Likewise.
16026 (grub_host_to_target16): Likewise.
16027 (grub_host_to_target32): Likewise.
16028 (grub_host_to_target64): Likewise.
16029 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
16030 (grub_target_to_host32): Likewise.
16031 (grub_target_to_host64): Likewise.
16032 (grub_host_to_target16): Likewise.
16033 (grub_host_to_target32): Likewise.
16034 (grub_host_to_target64): Likewise.
16035
16036 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
16037
16038 Source tree is reorganized for emu build.
16039
16040 * include/grub/util/console.h: Move from here...
16041 * include/grub/emu/console.h: ...to here.
16042 * include/grub/util/getroot.h: Move from here...
16043 * include/grub/emu/getroot.h: ...to here.
16044 * include/grub/util/hostdisk.h: Move from here...
16045 * include/grub/emu/hostdisk.h: ...to here.
16046 * util/console.c: Move from here...
16047 * kern/emu/console.c: ...to here.
16048 * util/getroot.c: Move from here...
16049 * kern/emu/getroot.c: ...to here.
16050 * util/grub-emu.c: Move from here...
16051 * kern/emu/main.c: ...to here.
16052 * util/hostdisk.c: Move from here...
16053 * kern/emu/hostdisk.c: ...to here.
16054 * util/hostfs.c: Move from here...
16055 * kern/emu/hostfs.c: ...to here.
16056 * util/mm.c: Move from here...
16057 * kern/emu/mm.c: ...to here.
16058 * util/pci.c: Move from here...
16059 * bus/emu/pci.c: ...to here.
16060 * util/sdl.c: Move from here...
16061 * video/emu/sdl.c: ...to here.
16062 * util/time.c: Move from here...
16063 * kern/emu/time.c: ...to here.
16064 * util/usb.c: Move from here...
16065 * bus/usb/emu/usb.c: ...to here.
16066
16067 * include/grub/emu/misc.h: New header for grub-emu functions.
16068 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
16069
16070 * conf/any-emu.rmk: Rule updates for above renames.
16071 * conf/common.rmk: Likewise.
16072 * conf/i386-pc.rmk: Likewise.
16073 * conf/i386-qemu.rmk: Likewise.
16074 * conf/mips.rmk: Likewise.
16075 * conf/sparc64-ieee1275.rmk: Likewise.
16076 * conf/x86-efi.rmk: Likewise.
16077
16078 * disk/lvm.h: #include updates for above renames.
16079 * util/grub-mkrelpath.c: Likewise.
16080 * util/grub-probe.c: Likewise.
16081 * util/i386/pc/grub-setup.c: Likewise.
16082 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16083 * kern/emu/console.c: Likewise.
16084 * kern/emu/getroot.c: Likewise.
16085 * kern/emu/hostdisk.c: Likewise.
16086 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
16087
16088 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
16089 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
16090 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
16091 * util/misc.c: Remove grub-emu functions.
16092
16093 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16094
16095 Fix gfxmenu crash.
16096 Reported by: Thorsten Grützmacher.
16097
16098 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
16099 timeout hook.
16100 (circprog_set_property): Register and unregister timeout hook.
16101 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
16102 (label_destroy): Free template. and unregister hook.
16103 (label_set_state): New function.
16104 (label_set_property): Handle templates and hooks.
16105 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
16106 timeout hook.
16107 (progress_bar_set_property): Register and unregister timeout hook.
16108 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
16109 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
16110 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
16111 (update_timeout_visit): Removed.
16112 (update_timeouts): New function.
16113 (redraw_timeouts): Likewise.
16114 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
16115 (grub_gfxmenu_clear_timeout): Likewise.
16116 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
16117 (grub_gfxmenu_timeout_notify): Likewise.
16118 (grub_gfxmenu_timeout_notifications): New external variable.
16119 (grub_gfxmenu_timeout_register): New function.
16120 (grub_gfxmenu_timeout_unregister): Likewise.
16121
16122 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16123
16124 Transform (broken) vga terminal into (working) vga video driver.
16125
16126 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
16127 video/i386/pc/vga.c.
16128 * include/grub/video.h (grub_video_driver_id):
16129 Add GRUB_VIDEO_DRIVER_VGA.
16130 * term/i386/pc/vga.c: Renamed to ...
16131 * video/i386/pc/vga.c: ...this
16132 (DEBUG_VGA): Removed.
16133 (CHAR_WIDTH): Likewise.
16134 (CHAR_HEIGHT): Likewise.
16135 (TEXT_WIDTH): Likewise.
16136 (TEXT_HEIGHT): Likewise.
16137 (DEFAULT_FG_COLOR): Likewise.
16138 (DEFAULT_BG_COLOR): Likewise.
16139 (colored_char): Likewise.
16140 (xpos): Likewise.
16141 (ypos): Likewise.
16142 (cursor_state): Likewise.
16143 (fg_color): Likewise.
16144 (bg_color): Likewise.
16145 (text_buf): Likewise.
16146 (page): Likewise.
16147 (font): Likewise.
16148 (framebuffer): New variable.
16149 (set_read_map): Disabled.
16150 (setup): New variable.
16151 (is_target): Likewise.
16152 (grub_vga_mod_init): Likewise.
16153 (grub_vga_mod_fini): Likewise.
16154 (check_vga_mem): Likewise.
16155 (write_char): Likewise.
16156 (write_cursor): Likewise.
16157 (scroll_up): Likewise.
16158 (grub_vga_putchar): Likewise.
16159 (grub_vga_getcharwidth): Likewise.
16160 (grub_vga_getwh): Likewise.
16161 (grub_vga_getxy): Likewise.
16162 (grub_vga_gotoxy): Likewise.
16163 (grub_vga_cls): Likewise.
16164 (grub_vga_setcolorstate): Likewise.
16165 (grub_vga_setcursor): Likewise.
16166 (grub_video_vga_init): New function.
16167 (grub_video_vga_setup): Likewise.
16168 (grub_video_vga_fini): Likewise.
16169 (update_target): Likewise.
16170 (grub_video_vga_blit_bitmap): Likewise.
16171 (grub_video_vga_blit_render_target): Likewise.
16172 (grub_video_vga_set_active_render_target): Likewise.
16173 (grub_video_vga_get_active_render_target): Likewise.
16174 (grub_video_vga_swap_buffers): Likewise.
16175 (grub_video_vga_set_palette): Likewise.
16176 (grub_video_vga_get_info_and_fini): Likewise.
16177 (grub_vga_term): Removed.
16178 (grub_video_vga_adapter): New variable.
16179 (GRUB_MOD_INIT): Register a video driver instead of terminal.
16180 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
16181
16182 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16183
16184 * video/readers/jpeg.c: Indented.
16185
16186 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16187
16188 Various jpeg cleanups.
16189
16190 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
16191 (grub_jpeg_decode_quan_table): Use sizeof.
16192 (grub_jpeg_decode_du): Use ARRAY_SIZE.
16193
16194 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
16195
16196 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
16197 tables. Ignore non-last ac bit.
16198 (grub_jpeg_decode_quan_table): Likewise.
16199
16200 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16201
16202 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
16203 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
16204 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16205 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
16206 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
16207 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
16208
16209 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16210
16211 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
16212 error.
16213
16214 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16215
16216 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
16217
16218 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16219
16220 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
16221 condition.
16222
16223 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16224
16225 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
16226 part.
16227
16228 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16229
16230 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
16231 pointers.
16232
16233 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16234
16235 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
16236
16237 2010-05-01 Christian Franke <franke@computer.org>
16238
16239 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
16240 Remove broken Cygwin path conversion.
16241 * util/misc.c: [__CYGWIN__] Add include and define.
16242 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
16243 for Cygwin 1.7.
16244 (make_system_path_relative_to_its_root): Simplify loop, replace early
16245 return by break.
16246 [__CYGWIN__] Add conversion to win32 path.
16247 Include "/" case in trailing slash removal.
16248
16249 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16250
16251 * kern/main.c (grub_load_config): Fix copy-pasted comment.
16252 Reported by: Seth Goldberg
16253
16254 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16255
16256 * commands/help.c (grub_cmd_help): Fix a typo.
16257 Reported by: Seth Goldberg
16258
16259 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16260
16261 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
16262 name and add N_.
16263 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
16264 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
16265 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
16266 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
16267 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
16268 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
16269 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
16270 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
16271 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
16272 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16273 * normal/context.c (GRUB_MOD_INIT): Likewise.
16274 * normal/main.c (GRUB_MOD_INIT): Likewise.
16275 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
16276 * term/serial.c (GRUB_MOD_INIT): Likewise.
16277 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
16278
16279 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16280
16281 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
16282 extra == 0.
16283
16284 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16285
16286 * commands/iorw.c: New file.
16287 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
16288 (iorw_mod_SOURCES): New variable.
16289 (iorw_mod_CFLAGS): Likewise.
16290 (iorw_mod_LDFLAGS): Likewise.
16291
16292 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 Hotkey support
16295
16296 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
16297 * normal/main.c (hotkey_aliases): New variable.
16298 (grub_normal_add_menu_entry): Parse "--hotkey".
16299 * normal/menu_text.c (run_menu): Handle hotkeys.
16300
16301 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16302
16303 * kern/i386/coreboot/init.c (grub_machine_init): Call
16304 grub_machine_mmap_init on qemu.
16305
16306 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16307
16308 * boot/i386/qemu/boot.S: Add a missing .code16.
16309
16310 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16311
16312 Use LBIO on coreboot.
16313
16314 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
16315 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
16316 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
16317 New declaration.
16318 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
16319 grub_machine_mmap_init on coreboot.
16320 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
16321 GRUB_LINUXBIOS_MEMBER_LINK.
16322 (grub_machine_mmap_iterate): Fix declaration.
16323 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
16324
16325 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16326
16327 Split coreboot and multiboot ports.
16328
16329 * conf/i386-multiboot.rmk: New file.
16330 * configure.ac: Add multiboot port.
16331 * include/grub/i386/multiboot/boot.h: New file.
16332 * include/grub/i386/multiboot/console.h: Likewise.
16333 * include/grub/i386/multiboot/init.h: Likewise.
16334 * include/grub/i386/multiboot/kernel.h: Likewise.
16335 * include/grub/i386/multiboot/loader.h: Likewise.
16336 * include/grub/i386/multiboot/memory.h: Likewise.
16337 * include/grub/i386/multiboot/serial.h: Likewise.
16338 * include/grub/i386/multiboot/time.h: Likewise.
16339 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
16340 * loader/multiboot.c: Likewise.
16341 * loader/multiboot_mbi2.c: Likewise.
16342 * util/grub-mkrescue.in: Generate multiboot rescue.
16343
16344 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16345
16346 * kern/parser.c (grub_parser_execute): Cope with read-only config.
16347
16348 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16349
16350 Merge handling of input and output terminals. Fix a hang.
16351
16352 * commands/terminal.c (abstract_terminal): New struct.
16353 (handle_command): New function. Based on grub_cmd_terminal_input.
16354 (grub_cmd_terminal_input): Use handle_command.
16355 (grub_cmd_terminal_output): Use handle_command.
16356
16357 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
16358
16359 Fix comment handling.
16360
16361 * tests/grub_script_comments.in: New testcase.
16362 * conf/tests.rmk: Rules for new testcase.
16363 * script/yylex.l: Updated flex rules.
16364
16365 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
16366
16367 * docs/grub.texi (play): Document that zero pitches produce rests.
16368 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
16369 if argc is 1.
16370
16371 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
16372
16373 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
16374 autogen issues.
16375
16376 2010-04-26 Christian Franke <franke@computer.org>
16377
16378 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
16379 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
16380 (grub_get_prefix): Remove function.
16381 * util/grub-emu.c (main): Replace grub_get_prefix () call by
16382 make_system_path_relative_to_its_root ().
16383 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16384
16385 2010-04-24 Christian Franke <franke@computer.org>
16386
16387 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
16388 (kernel_img_LDFLAGS): Remove -static-libgcc.
16389
16390 2010-04-24 Christian Franke <franke@computer.org>
16391
16392 * configure.ac: Do not CHECK_BSS_START_SYMBOL
16393 and CHECK_END_SYMBOL if grub-emu is built.
16394 Unset TARGET_OBJ2ELF if grub-emu is built
16395 without module support.
16396
16397 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
16398
16399 Nilfs2 support.
16400
16401 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
16402 (grub_fstest_SOURCES): Likewise.
16403 (pkglib_MODULES): Add nilfs2.mod.
16404 (nilfs2_mod_SOURCES): New variable.
16405 (nilfs2_mod_CFLAGS): Likewise.
16406 (nilfs2_mod_LDFLAGS): Likewise.
16407 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16408 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16409 * fs/nilfs2.c: New file.
16410
16411 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
16412
16413 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
16414 is not supported.
16415
16416 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
16417
16418 Add grub-mkconfig support for NetBSD.
16419
16420 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
16421 * util/grub-mkconfig.in: export new NetBSD specific variables.
16422 * po/POTFILES-shell: added 10_netbsd.in.
16423 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
16424
16425 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
16426
16427 Fix emu build with grub-emu-pci and grub-emu-modules.
16428
16429 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
16430 functions.
16431 * include/grub/libpciaccess.h: New file.
16432 * conf/any-emu.rmk: Update kernel headers for emu build.
16433
16434 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16435
16436 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
16437
16438 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16439
16440 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
16441
16442 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16443
16444 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
16445 Retrieve chosen/bootpath if bootpath isn't hardcoded.
16446 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
16447 util/ieee1275/ofpath.c.
16448 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
16449 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
16450 * include/grub/sparc64/ieee1275/boot.h
16451 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
16452 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
16453 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
16454 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
16455 const char *.
16456 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
16457 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
16458 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
16459 install.
16460
16461 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16462
16463 * util/grub-mkconfig.in: Corrected two == equality tests.
16464 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
16465 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
16466 expect a number appended to it.
16467 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
16468 expects a number appended to it.
16469
16470 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16471
16472 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
16473
16474 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16475
16476 * util/hostdisk.c (make_device_name): Change to new partition naming.
16477
16478 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16479
16480 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
16481
16482 2010-04-17 Christian Franke <franke@computer.org>
16483
16484 * Makefile.in: Add missing localedir setting.
16485
16486 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
16487
16488 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
16489 mistake in r2156. Noticed by Anthony Fok.
16490
16491 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
16492 @localedir@.
16493 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
16494
16495 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
16496
16497 Fix a spurious, uninitialized variable warning.
16498
16499 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
16500 Initialize variable, shdr.
16501 (grub_freebsd_load_elfmodule): Likewise.
16502 (grub_freebsd_load_elf_meta): Likewise.
16503
16504 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
16505
16506 Fix for escaped dollar in double quoted strings.
16507
16508 * script/yylex.l: Updated flex rules.
16509 * conf/tests.rmk: Rule for new testcase.
16510 * tests/grub_script_dollar.in: New testcase.
16511
16512 2010-04-13 Carles Pina i Estany <carles@pina.cat>
16513 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
16514
16515 Enclose all translated strings in grub.cfg in single quotes, and
16516 escape them appropriately (Ubuntu bug #552921).
16517
16518 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
16519 * util/grub.d/10_hurd.in: Use it.
16520 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16521 * util/grub.d/10_linux.in (linux_entry): Likewise.
16522
16523 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16524
16525 Fix cygwin compilation.
16526
16527 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
16528 * include/grub/misc.h (__register_frame_info)
16529 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
16530 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16531 * kern/misc.c (__register_frame_info)
16532 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
16533 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16534
16535 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16536
16537 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
16538
16539 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16540
16541 Unify libgcc processing.
16542
16543 * Makefile.in (kernel_img_LDFLAGS): New variable.
16544 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
16545 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
16546 overwriting.
16547 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
16548 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
16549 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
16550 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
16551 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
16552 overwriting. Remove -lgcc and -static-libgcc
16553 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
16554 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16555 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16556 (kernel_img_LDFLAGS): Append instead of overwriting.
16557 Remove -lgcc and -static-libgcc
16558 * conf/sparc64-ieee1275.rmk: Likewise.
16559 * include/grub/powerpc/libgcc.h: Move to ...
16560 * include/grub/libgcc.h: .. this.
16561 * include/grub/libgcc.h: Don't export most of the function on x86.
16562 (__bswapsi2): New export.
16563 (__bswapdi2): Likewise.
16564 * include/grub/mips/libgcc.h: Removed.
16565 * include/grub/sparc64/libgcc.h: Likewise.
16566
16567 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16568
16569 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
16570 disk_info_msg (conflicts with gettexting into languages with cases).
16571
16572 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
16573
16574 Add grub-probe support for NetBSD.
16575
16576 * util/getroot.c (find_root_device): Convert block device to
16577 character device on NetBSD.
16578 * util/probe.c (probe): Require character device on NetBSD.
16579 * util/hostdisk.c: NetBSD specific headers.
16580 (configure_device_driver): new function to tune device driver
16581 parameters (currently only for NetBSD floppy driver).
16582 (grub_util_biosdisk_open): NetBSD specific code (get disk size
16583 via disklabel ioctl).
16584 (open_device): call configure_device_driver on NetBSD.
16585 (convert_system_partition_to_system_disk): NetBSD specific code.
16586 (device_is_wholedisk): Likewise.
16587 (grub_util_biosdisk_get_grub_dev): Likewise.
16588 (make_device_name): Fixed a typo in bsd_part_str.
16589 * configure.ac: check for opendisk() and getrawpartition() on
16590 NetBSD and set LIBUTIL.
16591 * Makefile.in: add LIBUTIL to LIBS.
16592
16593 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16594
16595 Documentation fix.
16596
16597 * util/grub-script-check.c: Better help message.
16598
16599 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16600
16601 Fix FreeBSD build.
16602
16603 * configure.ac: Flex version check.
16604 * conf/common.rmk: Add -Wno-error to sh.mod.
16605 * script/yylex.l: Remove all #pragma.
16606
16607 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16608
16609 * include/grub/util/misc.h (canonicalise_file_name): Add missing
16610 prototype.
16611 Reported by: Seth Goldberg.
16612
16613 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16614
16615 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
16616 Rename "module" to "module2".
16617 Reported by: Seth Goldberg.
16618
16619 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16620
16621 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
16622 EXPORT_FUNC.
16623 Reported by: Seth Goldberg.
16624
16625 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16626
16627 * lib/posix_wrap/locale.h: Add missing file.
16628 Reported by: Seth Goldberg.
16629
16630 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16631
16632 grub-emu module load support.
16633
16634 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
16635 NO_DYNAMIC_MODULES switched to this.
16636 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
16637 (CFLAGS): Likewise.
16638 * conf/any-emu.rmk: Generate symlist.
16639 (kernel_img_HEADERS): Add util/datetime.h.
16640 (kernel_img_HEADERS) [sdl]: Add sdl.h.
16641 (kernel_img_HEADERS) [libusb]: Add libusb.h.
16642 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
16643 kern/$(target_cpu)/cache.S.
16644 * configure.ac (grub-emu-modules): New option.
16645 * genmk.rb: Handle multiple source lists.
16646 * include/grub/sdl.h: New file.
16647 * include/grub/libusb.h: Likewise.
16648 * util/grub-emu.c (main): Hanle (host) root.
16649 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
16650 GRUB_ERR_UNKNOWN_DEVICE.
16651 * util/misc.c: Move mm functions to ...
16652 * util/mm.c: ... here. All users updated.
16653
16654 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16655
16656 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
16657 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
16658 missing files.
16659 (maintainer-clean): Remove libgcrypt-grub.
16660
16661 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16662
16663 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
16664
16665 2010-04-09 EFI Coder <eficoder@hotmail.com>
16666
16667 * normal/menu_text.c (print_message): Clean up the message and show
16668 the Fn information when on EFI
16669 * term/efi/console.c (grub_console_checkkey): Add F4 support.
16670
16671 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16672
16673 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
16674 All users updated.
16675 * normal/crypto.c (read_crypto_list): Likewise.
16676 * normal/dyncmd.c (read_command_list): Likewise.
16677 * normal/term.c (read_terminal_list): Likewise.
16678 * normal/main.c (read_lists): Use explicit prefix.
16679 (read_lists_hook): Use read_lists.
16680 (grub_normal_execute): Likewise.
16681
16682 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16683
16684 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
16685 Reported by: Thomas Schmitt.
16686 Add -no-emul-boot to grub-mkisofs parameters.
16687
16688 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16689
16690 * font/font.c: Indented.
16691
16692 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16693
16694 Elif support to GRUB script (by Deepak Vankadaru).
16695
16696 * tests/grub_script_if.in: New testcase.
16697 * conf/tests.rmk: Rule for new testcase.
16698 * script/parser.y: Grammar rules for elif.
16699
16700 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16701
16702 While and until loops support to GRUB script.
16703
16704 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
16705 (grub_script_create_cmdwhile): New function prototype.
16706 (grub_script_execute_cmdwhile): New function prototype.
16707 * script/execute.c (grub_script_execute_cmdwhile): New function.
16708 * script/parser.y (command): New commands.
16709 (whilecmd): New grammar rule.
16710 (untilcmd): New grammar rule.
16711 * script/script.c (grub_script_create_cmdwhile): New function.
16712 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
16713 function.
16714
16715 * tests/grub_script_while1.in: New testcase.
16716 * conf/tests.rmk: Rule for new testcase.
16717
16718 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16719
16720 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
16721 as *.jpg.
16722
16723 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
16724
16725 GRUB_BACKGROUND support.
16726
16727 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
16728 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
16729
16730 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16731
16732 Load fonts and modules for gfxmenu in grub-mkconfig.
16733 Idea by: Mario Vazquez
16734
16735 * util/grub.d/00_header.in: Load pf2 and image modules.
16736
16737 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16738
16739 grub-mkconfig multiple terminal support.
16740
16741 * util/grub-mkconfig.in: Handle multiple terminals correctly.
16742 * util/grub.d/00_header.in: Likewise.
16743
16744 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16745
16746 * Makefile.in: Specify files explicitly instead of using $< and $@ since
16747 we use cd $(srcdir).
16748
16749 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
16750
16751 * util/grub.d/10_linux.in: Only use the first word of
16752 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
16753 spaces in GRUB_DISTRIBUTOR.
16754 * util/grub.d/10_kfreebsd.in: Likewise.
16755 * util/grub.d/10_hurd.in: Likewise.
16756
16757 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
16758
16759 Fix unit testing framework for Qemu 0.12.
16760
16761 * tests/util/grub-shell.in: Remove -serial stdio option.
16762
16763 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16764
16765 POSIX header file wrappers.
16766
16767 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
16768 equivalents.
16769 * lib/posix_wrap/ctype.h: Likewise.
16770 * lib/posix_wrap/errno.h: Likewise.
16771 * lib/posix_wrap/langinfo.h: Likewise.
16772 * lib/posix_wrap/limits.h: Likewise.
16773 * lib/posix_wrap/localcharset.h: Likewise.
16774 * lib/posix_wrap/stdint.h: Likewise.
16775 * lib/posix_wrap/stdio.h: Likewise.
16776 * lib/posix_wrap/stdlib.h: Likewise.
16777 * lib/posix_wrap/string.h: Likewise.
16778 * lib/posix_wrap/sys/types.h: Likewise.
16779 * lib/posix_wrap/unistd.h: Likewise.
16780 * lib/posix_wrap/wchar.h: Likewise.
16781 * lib/posix_wrap/wctype.h: Likewise.
16782 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
16783 (grub_script.yy.h): Likewise.
16784 * script/yylex.l: Remove POSIX emulation #defines.
16785 * Makefile.in (POSIX_CFLAGS): New variable.
16786 (GNULIB_UTIL_CFLAGS): Likewise.
16787
16788 Regexp support.
16789
16790 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
16791 (regexp_mod_SOURCES): New variable.
16792 (regexp_mod_CFLAGS): Likewise.
16793 (regexp_mod_LDFLAGS): Likewise.
16794 * commands/regexp.c: New file.
16795 * gnulib/regcomp.c: New file. Imported from gnulib.
16796 * gnulib/regex.c: Likewise.
16797 * gnulib/regex_internal.c: Likewise.
16798 * gnulib/regex_internal.h: Likewise.
16799 * gnulib/regexec.c: Likewise.
16800 * gnulib/regex.h: Likewise.
16801
16802 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16803
16804 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
16805 unsupported video mode types.
16806
16807 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16808
16809 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
16810
16811 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16812
16813 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
16814 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
16815
16816 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
16817
16818 Remove unused grub_vga_get_font.
16819
16820 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
16821 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
16822
16823 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16824
16825 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
16826 * include/grub/misc.h: Likewise.
16827
16828 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16829
16830 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
16831 for which failure is fatal.
16832
16833 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16834
16835 * util/grub-install.in: Use mkdir -p to create grub directory.
16836 * util/i386/efi/grub-install.in: Likewise.
16837 * util/ieee1275/grub-install.in: Likewise.
16838
16839 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16840
16841 * Makefile.in (LEX): new variable.
16842
16843 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16844
16845 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
16846 `=' and added double quotes on operands of this equality test.
16847
16848 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 * Makefile.in (uninstall): Remove a leftover debug echo.
16851 Reported by: Grégoire Sutre
16852
16853 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
16854
16855 MIPS multiboot2 support.
16856
16857 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
16858 (multiboot2_mod_SOURCES): New variable.
16859 (multiboot2_mod_CFLAGS): Likewise.
16860 (multiboot2_mod_LDFLAGS): Likewise.
16861 (multiboot2_mod_ASFLAGS): Likewise.
16862 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
16863 definition.
16864 (MULTIBOOT_ENTRY_REGISTER): Likewise.
16865 (MULTIBOOT_MBI_REGISTER): Likewise.
16866 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
16867 (MULTIBOOT_ELF32_MACHINE): Likewise.
16868 (MULTIBOOT_ELF64_MACHINE): Likewise.
16869 * include/grub/mips/multiboot.h: New file.
16870 * include/grub/video.h (grub_video_driver_id): New type
16871 GRUB_VIDEO_DRIVER_SM712.
16872 (grub_video_get_info_and_fini): Export.
16873 (grub_video_get_palette): Likewise.
16874 (grub_video_get_driver_id): Likewise.
16875 * include/multiboot2.h: Resynced with spec.
16876 * loader/i386/multiboot.c: Moved from here ...
16877 * loader/multiboot.c: ... here. All users updated.
16878 (grub_multiboot_boot): Use platform-specific macros.
16879 * loader/i386/multiboot_elfxx.c: Moved from here ...
16880 * loader/multiboot_elfxx.c: ... here. All users updated.
16881 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
16882 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
16883 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
16884
16885 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16886
16887 Import gnulib argp module.
16888
16889 * gnulib/argp-ba.c: New file.
16890 * gnulib/argp-eexst.c: Likewise.
16891 * gnulib/argp-fmtstream.c: Likewise.
16892 * gnulib/argp-fmtstream.h: Likewise.
16893 * gnulib/argp-fs-xinl.c: Likewise.
16894 * gnulib/argp-help.c: Likewise.
16895 * gnulib/argp-namefrob.h: Likewise.
16896 * gnulib/argp-parse.c: Likewise.
16897 * gnulib/argp-pin.c: Likewise.
16898 * gnulib/argp-pv.c: Likewise.
16899 * gnulib/argp-pvh.c: Likewise.
16900 * gnulib/argp-version-etc.c: Likewise.
16901 * gnulib/argp-version-etc.h: Likewise.
16902 * gnulib/argp-xinl.c: Likewise.
16903 * gnulib/argp.h: Likewise.
16904
16905 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
16906
16907 * kern/device.c (grub_device_iterate): Clear errors after failed
16908 opening device.
16909
16910 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
16911
16912 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
16913 returned by firmware.
16914
16915 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
16918 compilation on coreboot and qemu
16919
16920 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * include/multiboot2.h: Resync with spec.
16923
16924 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 Multiboot2 tag support
16927
16928 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
16929 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
16930 Remove loader/multiboot_loader.c.
16931 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
16932 (grub_multiboot2_real_boot): Likewise.
16933 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
16934 (grub_get_multiboot_mmap_count): New proto.
16935 (grub_fill_multiboot_mmap): Likewise.
16936 (grub_multiboot_set_video_mode): Likewise.
16937 (grub_multiboot_set_console): Likewise.
16938 (grub_multiboot_load): Likewise.
16939 (grub_multiboot_load_elf): Likewise.
16940 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
16941 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
16942 * include/multiboot.h: Resynced with specification.
16943 * include/multiboot2.h: Resynced with specification.
16944 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
16945 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
16946 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
16947 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
16948 users updated.
16949 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
16950 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
16951 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
16952 Removed.
16953 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
16954 Moved from here...
16955 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
16956 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16957 Moved from here...
16958 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
16959 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
16960 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
16961 All users updated.
16962 * loader/i386/multiboot_mbi2.c: New file.
16963
16964 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
16965
16966 Resync with gnulib.
16967
16968 * Makefile.in (GNULIB_CFLAGS): New variable.
16969 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
16970 (grub_script_check_CFLAGS): New variable.
16971 * gnulib/alloca.h: Resync with gnulib.
16972 * gnulib/error.c: Likewise.
16973 * gnulib/error.h: Likewise.
16974 * gnulib/fnmatch.c: Likewise.
16975 * gnulib/fnmatch_loop.c: Likewise.
16976 * gnulib/getdelim.c: Likewise.
16977 * gnulib/getline.c: Likewise.
16978 * gnulib/getopt.c: Likewise.
16979 * gnulib/getopt1.c: Likewise.
16980 * gnulib/getopt_int.h: Likewise.
16981 * gnulib/gettext.h: Likewise.
16982 * gnulib/progname.c: Likewise.
16983 * gnulib/progname.h: Likewise.
16984
16985 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
16986
16987 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
16988 which is the case with --disabled-nls.
16989
16990 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
16991 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
16992 * util/misc.c: Likewise.
16993 * util/mkisofs/mkisofs.c: Likewise.
16994 * util/mkisofs/mkisofs.h: Likewise.
16995
16996 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
16997
16998 Simplify Apple CC support.
16999
17000 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
17001 Add 0 byte at the end not to have a symbol with empty target.
17002 * mmap/i386/pc/mmap_helper.S: Likewise.
17003 * genmk.rb: Ignore errors 2030 and 2050.
17004 * kern/i386/pc/startup.S: Use LOCAL when possible.
17005
17006 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
17007
17008 Testcase and the fix for final semicolon on cmdline.
17009
17010 * tests/grub_script_final_semicolon.in: New testcase.
17011 * conf/tests.rmk: Rules for the new testcase.
17012 * script/parser.y: Grammar fix.
17013
17014 2010-03-26 BVK Chaitanya <bvk@localhost>
17015
17016 Blank lines testcase for GRUB script.
17017
17018 * tests/grub_script_blanklines.in: New testcase.
17019 * conf/tests.rmk: Rules for the new testcase.
17020
17021 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17022
17023 Don't use __FILE__.
17024
17025 * genmk.rb: Add -DGRUB_FILE to all C targets.
17026 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
17027 * include/grub/list.h: Likewise.
17028 * include/grub/misc.h: Likewise.
17029 * include/grub/mm.h: Likewise.
17030 * include/grub/test.h: Likewise.
17031 * kern/mm.c: Likewise.
17032 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17033
17034 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 Sunpc partitions support.
17037
17038 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
17039 (grub_fstest_SOURCES): Likewise.
17040 (pkglib_MODULES): Add part_sunpc.mod.
17041 (part_sunpc_mod_SOURCES): New variable.
17042 (part_sunpc_mod_CFLAGS): Likewise.
17043 (part_sunpc_mod_LDFLAGS): Likewise.
17044 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
17045 * partmap/sunpc.c: New file.
17046
17047 2010-03-26 BVK Chaitanya <bvk@localhost>
17048
17049 For loop support to GRUB script.
17050
17051 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
17052 (grub_script_create_cmdfor): New function prototype.
17053 (grub_script_execute_cmdfor): New function prototype.
17054 * script/execute.c (grub_script_execute_cmdfor): New function.
17055 * script/parser.y (command): New for command.
17056 (forcmd): New grammar rule.
17057 * script/script.c (grub_script_create_cmdfor): New function.
17058 * util/grub-script-check.c (grub_script_execute_cmdfor): New
17059 function.
17060 * tests/grub_script_for1.in: New testcase.
17061 * conf/tests.rmk: Rules for new testcase.
17062
17063 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17064
17065 Nested partitions
17066
17067 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
17068 'partition' is NULL, grub_partition_get_start already does that.
17069 * commands/loadenv.c (check_blocklists): Likewise.
17070 (write_blocklists): Likewise.
17071 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
17072 (grub_fstest_SOURCES): Likewise.
17073 (pkglib_MODULES): Add part_bsd.mod.
17074 (part_bsd_mod_SOURCES): New variable.
17075 (part_bsd_mod_CFLAGS): Likewise.
17076 (part_bsd_mod_LDFLAGS): Likewise.
17077 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
17078 (grub_emu_SOURCES): Likewise.
17079 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17080 * include/grub/bsdlabel.h: New file.
17081 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
17082 'get_name'.
17083 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
17084 (grub_partition_map_list): New variable.
17085 (grub_partition_map_register): Inline.
17086 (grub_partition_map_unregister): Likewise.
17087 (FOR_PARTITION_MAPS): New macro.
17088 (grub_partition_map_iterate): Removed.
17089 (grub_partition_get_start): Handle nested partitions.
17090 * include/grub/msdos_partition.h: Remove bsd-related entries.
17091 (grub_pc_partition): Remove.
17092 * kern/disk.c (grub_disk_close): Free partition data.
17093 (grub_disk_adjust_range): Handle nested partitions.
17094 * kern/partition.c (grub_partition_map_probe): New function.
17095 (grub_partition_probe): Parse name to number, handle subpartitions.
17096 (get_partmap): New function.
17097 (grub_partition_iterate): Handle subpartitions.
17098 (grub_partition_get_name): Likewise.
17099 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
17100 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
17101 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
17102 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
17103 Set 'number'.
17104 (acorn_partition_map_probe): Remove.
17105 (acorn_partition_map_get_name): Likewise.
17106 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
17107 Set 'number'.
17108 Set 'index' to 0 since there can be only one partition entry per sector.
17109 (amiga_partition_map_probe): Remove.
17110 (amiga_partition_map_get_name): Likewise.
17111 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
17112 Set 'number'.
17113 Set 'offset' and 'index' to real positions of partitions.
17114 (apple_partition_map_probe): Remove.
17115 (apple_partition_map_get_name): Likewise.
17116 * partmap/bsdlabel.c: New file.
17117 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
17118 Set 'number'.
17119 Allocate 'data' so it can be correctly freed.
17120 Set 'index' to offset inside sector.
17121 (gpt_partition_map_probe): Remove.
17122 (gpt_partition_map_get_name): Likewise.
17123 * partmap/msdos.c (grub_partition_parse): Remove.
17124 (pc_partition_map_iterate): Don't force raw access.
17125 Set 'number'.
17126 Make 'ext_offset' a local variable.
17127 (pc_partition_map_probe): Remove.
17128 (pc_partition_map_get_name): Remove.
17129 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
17130 Set 'number'.
17131 (sun_partition_map_probe): Remove.
17132 (sun_partition_map_get_name): Likewise.
17133 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
17134 (grub_pcpart_type): Likewise.
17135 * util/hostdisk.c (open_device): Handle new numbering scheme.
17136 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
17137 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
17138 * util/grub-probe.c (probe_partmap): Handle nested paritions.
17139 * util/grub-install.in: Insert all subpartition modules.
17140 * util/ieee1275/grub-install.in: Likewise.
17141
17142 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
17143
17144 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
17145 grammar.
17146
17147 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
17148
17149 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
17150
17151 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
17152
17153 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
17154 match where 'make install' puts them.
17155 * util/i386/efi/grub-install.in: Likewise.
17156
17157 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
17158
17159 * .bzrignore: Add gentrigtables, grub-script-check,
17160 grub_script_check_init.c, grub_script_check_init.h, and
17161 trigtables.c.
17162
17163 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
17164
17165 * kern/parser.c: Indented.
17166
17167 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17168
17169 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
17170
17171 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17172
17173 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
17174 alpha_mask_size == 0 case.
17175
17176 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
17177
17178 GRUB shell lexer and parser improvements.
17179
17180 * conf/any-emu.rmk: Build rule updates.
17181 * conf/common.rmk: Likewise.
17182 * conf/i386-coreboot.rmk: Likewise.
17183 * conf/i386-efi.rmk: Likewise.
17184 * conf/i386-ieee1275.rmk: Likewise.
17185 * conf/i386-pc.rmk: Likewise.
17186 * conf/powerpc-ieee1275.rmk: Likewise.
17187 * conf/x86_64-efi.rmk: Likewise.
17188
17189 * configure.ac: Configure check for flex.
17190
17191 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
17192 types.
17193 (grub_lexer_param): Struct member updates.
17194 (grub_parser_param): Likewise.
17195 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
17196 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
17197 (grub_script_lexer_init): Prototype update.
17198 (grub_script_lexer_record_start): Likewise.
17199 (grub_script_lexer_record_stop): Likewise.
17200 (grub_script_lexer_yywrap): New function prototype.
17201 (grub_script_lexer_fini): Likewise.
17202 (grub_script_execute_argument_to_string): Removed by...
17203 (grub_script_execute_argument_to_argv): ...better version.
17204
17205 * script/execute.c (ROUND_UPTO): New macro.
17206 (grub_script_execute_cmdline): Out of memory fixes.
17207 (grub_script_execute_menuentry): Likewise.
17208 (grub_script_execute_argument_to_string): Removed. Update all
17209 users by...
17210 (grub_script_execute_argument_to_argv): ...better version.
17211 * script/function.c (grub_script_function_create): Use
17212 grub_script_execute_argument_to_argv instead of
17213 grub_script_execute_argument_to_string.
17214
17215 * script/lexer.c (check_varstate): Removed.
17216 (check_textstate): Removed.
17217 (grub_script_lexer_record_start): Likewise.
17218 (grub_script_lexer_record_stop): Likewise.
17219 (recordchar): Replaced with...
17220 (grub_script_lexer_record): ...new function.
17221 (nextchar): Removed.
17222 (grub_script_lexer_init): Rewritten.
17223 (grub_script_yylex): Rewritten.
17224 (append_newline): New function.
17225 (grub_script_lexer_yywrap): New function.
17226 (grub_script_lexer_fini): New function.
17227 (grub_script_yyerror): Sets error flag.
17228
17229 * script/yylex.l: New file.
17230 (grub_lexer_yyfree): Wrapper for flex yyffre.
17231 (grub_lexer_yyalloc): Likewise.
17232 (grub_lexer_yyrealloc): Likewise.
17233 * script/parser.y: Refactored.
17234
17235 * script/script.c (grub_script_arg_add): Out of memory fixes.
17236 (grub_script_add_arglist): Likewise.
17237 (grub_script_create_cmdline): Likewise.
17238 (grub_script_create_cmdmenu): Likewise.
17239 (grub_script_add_cmd): Likewise.
17240 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
17241 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
17242 unnecessary code.
17243
17244 * tests/grub_script_echo1.in: New testcase.
17245 * tests/grub_script_vars1.in: New testcase.
17246 * tests/grub_script_echo_keywords.in: New testcase.
17247
17248 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 Remove some redundancy in build system.
17251
17252 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
17253 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
17254 (TARGET_LDFLAGS): Add -nostdlib.
17255 (TARGET_IMG_LDFLAGS): Likewise.
17256 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
17257 anything since mmap isn't available.
17258 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
17259 Add util/time.c.
17260 (pkglib_MODULES): Remove reboot.mod.
17261 (reboot_mod_SOURCES): Removed.
17262 (reboot_mod_CFLAGS): Likewise.
17263 (reboot_mod_LDFLAGS): Likewise.
17264 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
17265 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
17266 (DEFSYMFILES): Add kernel_syms.lst.
17267 (kernel_img_HEADERS): Add common headers.
17268 (symlist.c): New target.
17269 (kernel_syms.lst): Likewise.
17270 (pkglib_MODULES): Add memdisk.mod.
17271 (memdisk_mod_SOURCES): New variable.
17272 (memdisk_mod_CFLAGS): Likewise.
17273 (memdisk_mod_LDFLAGS): Likewise.
17274 (pkglib_MODULES): Add reboot.mod.
17275 (reboot_mod_SOURCES): New variable.
17276 (reboot_mod_CFLAGS): Likewise.
17277 (reboot_mod_LDFLAGS): Likewise.
17278 (pkglib_MODULES): Add date.mod.
17279 (date_mod_SOURCES): New variable.
17280 (date_mod_CFLAGS): Likewise.
17281 (date_mod_LDFLAGS): Likewise.
17282 (pkglib_MODULES): Add datehook.mod.
17283 (datehook_mod_SOURCES): New variable.
17284 (datehook_mod_CFLAGS): Likewise.
17285 (datehook_mod_LDFLAGS): Likewise.
17286 (pkglib_MODULES): Add lsmmap.mod.
17287 (lsmmap_mod_SOURCES): New variable.
17288 (lsmmap_mod_CFLAGS): Likewise.
17289 (lsmmap_mod_LDFLAGS): Likewise.
17290 (pkglib_MODULES): Add boot.mod.
17291 (boot_mod_SOURCES): New variable.
17292 (boot_mod_CFLAGS): Likewise.
17293 (boot_mod_LDFLAGS): Likewise.
17294 * conf/i386-coreboot.rmk: Removed redundant parts.
17295 * conf/i386-ieee1275.rmk: Likewise.
17296 * conf/i386-pc.rmk: Likewise.
17297 * conf/mips-yeeloong.rmk: Likewise.
17298 * conf/mips.rmk: Likewise.
17299 * conf/powerpc-ieee1275.rmk: Likewise.
17300 * conf/sparc64-ieee1275.rmk: Likewise.
17301 * conf/x86_64-efi.rmk: Likewise.
17302 * conf/i386-coreboot.rmk: Moved qemu parts ..
17303 * conf/i386-qemu.rmk: ... here
17304 * conf/i386-efi.rmk: Moved common parts to...
17305 * conf/x86-efi.rmk: ... here.
17306 * conf/i386.rmk: Added modules common to all x86 variants.
17307 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
17308 * disk/memdisk.c: Remove grub/machine/kernel.h.
17309 * gensymlist.sh.in: Include symbol.h.
17310 * hook/datehook.c: Correct module name.
17311 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
17312 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
17313 * include/grub/i386/efi/serial.h: New file.
17314 * include/grub/x86_64/efi/serial.h: Likewise.
17315 * util/time.c: Likewise.
17316 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
17317
17318 2010-03-14 Colin King <colin.king@ubuntu.com>
17319 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17320
17321 Shrink the pre-partition-table part of boot.img by eight bytes.
17322
17323 * boot/i386/pc/boot.S (ERR): New macro.
17324 (chs_mode): Use ERR.
17325 (geometry_error): Likewise.
17326 (hd_probe_error): Remove. This is only used once, so we wrwite
17327 it inline instead.
17328 (read_error): Instead of printing read_error_string, just set up
17329 %si and fall through to ...
17330 (error_message): ... this new function, also used by ERR.
17331
17332 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17333
17334 Speed up consecutive hostdisk operations on the same device.
17335
17336 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
17337 (grub_util_biosdisk_open): Initialise disk->data.
17338 (struct linux_partition_cache): New structure.
17339 (linux_find_partition): Cache partition start positions; these are
17340 expensive to compute on every read and write.
17341 (open_device): Cache open file descriptor in disk->data, so that we
17342 don't have to reopen it and flush the buffer cache for consecutive
17343 operations on the same device.
17344 (grub_util_biosdisk_close): New function.
17345 (grub_util_biosdisk_dev): Set `close' member.
17346
17347 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
17348 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
17349 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17350 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
17351 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
17352
17353 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17354
17355 Compile parts of grub-emu as modules.
17356
17357 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
17358 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
17359 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
17360 (all-local): Add $(GRUB_EMU).
17361 (install-local): Install $(GRUB_EMU).
17362 (uninstall): Uninstall $(GRUB_EMU).
17363 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
17364 * kern/dl.c: Likewise.
17365 * commands/sleep.c: Not include machine/time.h.
17366 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
17367 (COMMON_CFLAGS): Likewise.
17368 (sbin_UTILITIES): Remove grub-emu.
17369 (grub_emu_SOURCES): Removed.
17370 (kernel_img_RELOCATABLE): New variable.
17371 (pkglib_PROGRAMS): Add kernel.img.
17372 (kernel_img_SOURCES): New variable
17373 (kernel_img_CFLAGS): Likewise.
17374 (kernel_img_LDFLAGS): Likewise.
17375 (TARGET_NO_STRIP): Likewise.
17376 (TARGET_NO_DYNAMIC_MODULES): Likewise.
17377 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
17378 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
17379 (grub-emu): New target.
17380 (GRUB_EMU): New variable.
17381 * configure.ac: Whitelist -emu as possible x86_64 architecture.
17382 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
17383 * loader/xnu.c: Likewise.
17384 * include/grub/pci.h: Likewise.
17385 * genemuinit.sh: New file.
17386 * genemuinitheader.sh: Likewise.
17387 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
17388 Support TARGET_NO_DYNAMIC_MODULES.
17389 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
17390 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
17391 * disk/loopback.c: Likewise.
17392 * font/font_cmd.c: Likewise.
17393 * partmap/acorn.c: Likewise.
17394 * partmap/amiga.c: Likewise.
17395 * partmap/apple.c: Likewise.
17396 * partmap/gpt.c: Likewise.
17397 * partmap/msdos.c: Likewise.
17398 * partmap/sun.c: Likewise.
17399 * parttool/msdospart.c: Likewise.
17400 * term/gfxterm.c: Likewise.
17401 * video/bitmap.c: Likewise.
17402 * video/readers/jpeg.c: Likewise.
17403 * video/readers/png.c: Likewise.
17404 * video/readers/tga.c: Likewise.
17405 * video/video.c: Likewise.
17406 * util/grub-emu.c (read_command_list): Removed.
17407 (main): Don't call util_init_nls.
17408 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
17409 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
17410
17411 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17412
17413 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
17414 date.mod, datehook.mod.
17415 (datetime_mod_SOURCES): New variable.
17416 (datetime_mod_CFLAGS): Likewise.
17417 (datetime_mod_LDFLAGS): Likewise.
17418 (date_mod_SOURCES): Likewise.
17419 (date_mod_CFLAGS): Likewise.
17420 (date_mod_LDFLAGS): Likewise.
17421 (datehook_mod_SOURCES): Likewise.
17422 (datehook_mod_CFLAGS): Likewise.
17423 (datehook_mod_LDFLAGS): Likewise.
17424 * conf/sparc64-ieee1275.rmk: Likewise.
17425 * lib/ieee1275/datetime.c: New file.
17426
17427 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17428
17429 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
17430 (ieee1275_fb_mod_SOURCES): New variable.
17431 (ieee1275_fb_mod_CFLAGS): Likewise.
17432 (ieee1275_fb_mod_LDFLAGS): Likewise.
17433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
17434 New proto.
17435 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
17436 (HEAP_MAX_ADDR): Likewise.
17437 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
17438 type.
17439 Correct stop condition.
17440 (grub_ieee1275_devices_iterate): New function.
17441 * video/ieee1275.c: New file.
17442
17443 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17444
17445 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
17446
17447 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
17448 as scratch.
17449 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
17450 SCRATCH_PAD_DISKBOOT as scratch.
17451 (bootit): Pass Openfirmware pointer in %o4.
17452 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
17453 of 0x200000.
17454 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
17455 with util/grub-mkrawimage.c.
17456 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
17457 * include/grub/aout.h (AOUT_MID_SUN): New definition.
17458 (grub_aout_get_type) [GRUB_UTIL]: Removed.
17459 (grub_aout_load) [GRUB_UTIL]: Likewise.
17460 * include/grub/kernel.h (grub_modules_get_end): New proto.
17461 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
17462 (SCRATCH_PAD_BOOT): New definition.
17463 (SCRATCH_PAD_DISKBOOT): Likewise.
17464 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
17465 * include/grub/sparc64/ieee1275/ieee1275.h
17466 (grub_ieee1275_original_stack): New variable
17467 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17468 New definition
17469 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
17470 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
17471 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
17472 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
17473 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
17474 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
17475 (grub_platform_image_format_t): New type.
17476 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
17477 * kern/main.c (grub_modules_get_end)
17478 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
17479 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
17480 (codestart): Switch stacks.
17481 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
17482 variable.
17483 (grub_heap_init): Use grub_modules_get_end.
17484 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
17485 stack.
17486 * util/grub-mkrawimage.c (generate_image): Support sparc64.
17487 (main): Likewise.
17488 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
17489
17490 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
17491
17492 * util/grub-mkrescue.in: Base ISO UUID on UTC.
17493
17494 2010-03-08 Matt Kraai <kraai@ftbfs.org>
17495
17496 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
17497 bug #559005).
17498
17499 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
17500
17501 * genmoddep.awk: Output all missing symbols and not only first.
17502
17503 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 * NEWS: Put the date of 1.98 release.
17506
17507 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17508
17509 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
17510 ft2build.h.
17511
17512 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17513
17514 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
17515 completition in the middle of string.
17516
17517 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17518
17519 * util/grub-mkrescue.in: Use mktemp with explicit template.
17520
17521 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17522
17523 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
17524
17525 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17526
17527 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
17528 right pointer.
17529
17530 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17531
17532 Fix FreeBSD compilation.
17533
17534 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
17535 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
17536
17537 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17538
17539 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
17540
17541 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17542
17543 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
17544
17545 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17546
17547 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
17548
17549 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
17550
17551 Support relative image path in theme file.
17552
17553 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
17554 (image_set_property): Handle theme_dir and relative path.
17555
17556 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17557
17558 * configure.ac: Alias amd64 to x86_64.
17559
17560 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17561
17562 * NEWS: mention multiboot on EFI.
17563
17564 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17565
17566 * kern/main.c (grub_load_modules): Handle errors from init functions of
17567 embeded modules.
17568
17569 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17570
17571 * normal/autofs.c (autoload_fs_module): Handle errors.
17572
17573 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17574
17575 Disable linux.mod on qemu-mips since it's not functional and leads
17576 to compilation failure.
17577
17578 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
17579 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
17580 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
17581 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
17582 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
17583 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
17584 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
17585 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
17586 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
17587 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
17588 Reported by: BVK Chaitanya
17589
17590 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
17591
17592 * INSTALL: Add gettext as a dependency and add qemu to a new section
17593 "Prerequisites for make-check".
17594
17595 2010-03-04 Christian Franke <franke@computer.org>
17596
17597 * util/grub-pe2elf.c: Add missing include "progname.h".
17598
17599 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17600
17601 * normal/crypto.c (read_crypto_list): Fix a typo.
17602 Reported by: Seth Goldberg.
17603
17604 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17605
17606 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
17607 Reported by: Seth Goldberg.
17608
17609 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17610
17611 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
17612 ascii.bitmaps.
17613
17614 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17615
17616 * genmk.rb: Remove terminal*.lst in make clean.
17617 Reported by: Seth Goldberg.
17618
17619 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17620
17621 * util/i386/efi/grub-install.in: Copy gettext files.
17622
17623 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17624
17625 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
17626
17627 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17628
17629 Wait for user entry basing on presence of output rather than on errors.
17630
17631 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
17632 (grub_install_newline_hook): Likewise.
17633 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
17634 * normal/menu.c (show_menu): Check line_counter to determine presence
17635 of output.
17636 * normal/term.c (grub_normal_line_counter): New variable.
17637 (grub_normal_get_line_counter): New function.
17638 (grub_install_newline_hook): Likewise.
17639
17640 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17641
17642 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
17643
17644 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17645
17646 * configure.ac: Update version to 1.98.
17647
17648 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
17649
17650 * util/grub.d/10_linux.in (linux_entry): Don't default to
17651 gfxpayload=keep if Linux doesn't support video handover.
17652
17653 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
17654
17655 Don't compile video modules on yeeloong since video subsystem is part
17656 of kernel.
17657
17658 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
17659 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
17660 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
17661 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
17662 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
17663 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
17664 * include/grub/bitmap_scale.h: Likewise.
17665 * include/grub/bufio.h: Likewise.
17666 * include/grub/font.h: Likewise.
17667 * include/grub/gfxterm.h: Likewise.
17668 * include/grub/video.h: Likewise.
17669 * include/grub/vbe.h: Don't include video_fb.h.
17670 * video/i386/pc/vbe.c: Include video_fb.h.
17671 * commands/i386/pc/vbetest.c: Include video.h.
17672
17673 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
17674
17675 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
17676 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
17677 default entry if GRUB_SAVEDEFAULT=true. This allows using
17678 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
17679 saving a new default on every boot.
17680
17681 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17682
17683 * normal/crypto.c (read_crypto_list): Fix a memory leak.
17684 * normal/term.c (read_terminal_list): Likewise.
17685 * normal/main.c (grub_normal_init_page): Likewise.
17686 (grub_normal_read_line_real): Likewise.
17687
17688 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17689
17690 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
17691 memory leak.
17692 Reported by: Seth Goldberg.
17693
17694 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
17695
17696 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
17697 duplicate declaration of `start'.
17698
17699 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17700
17701 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
17702 filename.
17703 Reported by: Georgy Buranov
17704
17705 2010-02-20 Carles Pina i Estany <carles@pina.cat>
17706
17707 * util/grub-mkrawimage.c (usage): Change string formatting to
17708 improve gettext.
17709
17710 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17711
17712 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
17713 backspace keys.
17714
17715 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17716
17717 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
17718 Reported by: Michael Suchanek.
17719
17720 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
17721
17722 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
17723 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
17724
17725 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
17726
17727 Remove any reference to non-free fonts.
17728
17729 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
17730 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
17731 uses non-free components.
17732 * font/font.c (grub_font_get_name): Remove example name.
17733 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
17734 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17735 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
17736 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
17737
17738 2010-02-16 Georgy Buranov <gburanov@gmail.com>
17739
17740 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
17741
17742 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17743
17744 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
17745 Double divisor.
17746 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
17747 features.
17748 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
17749
17750 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17751
17752 * gensymlist.sh.in: Use TARGET_CC instead of CC.
17753
17754 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17755
17756 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
17757 * docs/grub.texi (Command-line and menu entry commands): Document play
17758 command.
17759
17760 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17761
17762 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
17763 parse arguments as inline tempo and notes. Move code for playing notes
17764 to...
17765 (play): ... new function.
17766
17767 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17768
17769 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
17770 grub_uint16_t instead of short.
17771 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
17772 disk from little endian to cpu endianness.
17773
17774 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
17775
17776 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
17777 GRUB_TICKS_PER_SECOND instead of 120.
17778
17779 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17780
17781 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
17782 escape sequence after \e.
17783
17784 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17785
17786 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
17787 non-ASCII characters.
17788
17789 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17790
17791 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
17792 set root in single quotes to prevent \, from being unescaped.
17793
17794 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17795
17796 Prevent unknown commands from stopping menuentry execution.
17797
17798 * script/execute.c (grub_script_execute_cmdline): Print error after
17799 unknown command.
17800
17801 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17802
17803 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
17804 Reported by: Pavel Pisa.
17805
17806 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17807
17808 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
17809
17810 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17811
17812 Merge grub_ieee1275_map_physical into grub_map and rename to
17813 grub_ieee1275_map
17814
17815 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
17816 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
17817 Remove.
17818 * kern/ieee1275/openfw.c (grub_map): Rename to ...
17819 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
17820 necessary.
17821 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
17822
17823 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17824
17825 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
17826 opening and not after.
17827
17828 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17829
17830 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
17831 constants.
17832
17833 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17834
17835 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
17836 (alloc_phys): Use ALIGN_UP instead of align_addr.
17837
17838 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17839
17840 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
17841
17842 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17843
17844 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
17845
17846 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17847
17848 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
17849 verbose dprintf.
17850
17851 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17852
17853 Fix over-4GiB seek on sparc64.
17854
17855 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
17856 Replace pos_i and pos_lo with pos. All users updated.
17857 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
17858 New constant.
17859 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
17860 Likewise.
17861 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
17862 and pos_lo.
17863
17864 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17865
17866 * util/grub-mkrawimage.c (main): Call set_program_name.
17867
17868 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17869
17870 Properly align 64-bit targets.
17871
17872 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
17873 (generate_image): Use ALIGN_ADDR.
17874
17875 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17876
17877 Properly create cross-endian images.
17878
17879 * include/grub/types.h (grub_host_to_target_addr): New macro
17880 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
17881
17882 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17883
17884 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
17885
17886 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17887
17888 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
17889
17890 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
17891 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
17892 (grub_linux_boot): Divide by 64K when on VESA.
17893
17894 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17895
17896 Support GRUB_GFXPAYLOAD_LINUX.
17897
17898 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
17899 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
17900
17901 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17902
17903 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
17904 to show messages instead of discarding them.
17905 Process errors after executing command and not before. Keep old method
17906 too as precaution.
17907
17908 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
17909
17910 * configure.ac: Check for ft2build.h.
17911
17912 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17913
17914 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
17915
17916 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17917
17918 * genkernsyms.sh.in: Use TARGET_CC.
17919
17920 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
17921
17922 * NEWS: Update.
17923
17924 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17925
17926 * include/grub/multiboot2.h: Remove leftover file.
17927 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
17928 * include/grub/partition.h [GRUB_UTIL]: Likewise.
17929
17930 2010-02-07 Yves Blusseau <blusseau@zetam.org>
17931
17932 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
17933
17934 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17935
17936 Fix warnings in grub-emu when compiling with maximum warning options.
17937
17938 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
17939 (grub_arch_modules_addr): Return 0 and not NULL.
17940 * util/misc.c (ENABLE_RELOCATABLE): New definition.
17941 (xstrdup): Use newstr instead of dup.
17942 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
17943 of disk to dsk to avoid shadowing.
17944 (find_free_slot): Fix prototype.
17945 * util/getroot.c (grub_util_is_dmraid): Make static.
17946 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
17947 Add missing prototype.
17948 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
17949
17950 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17951
17952 * loader/i386/linux.c (grub_linux_setup_video): Handle error
17953 appropriately.
17954
17955 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17956
17957 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
17958 code out.
17959
17960 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17961
17962 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
17963 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
17964 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
17965 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
17966 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
17967 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
17968
17969 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17970
17971 * include/grub/err.h (grub_err_printf): Don't export.
17972
17973 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17974
17975 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
17976
17977 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
17978
17979 * include/grub/i18n.h (grub_gettext_dummy): Removed.
17980 * kern/misc.c (grub_gettext_dummy): Make static.
17981
17982 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17983
17984 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
17985 by non-valid ones.
17986 * kern/term.c (grub_putchar): Likewise.
17987
17988 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17989
17990 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
17991 buggy hook call and memory leak.
17992
17993 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17994
17995 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
17996
17997 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
17998
17999 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
18000
18001 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18002
18003 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
18004 modevar.
18005 Return grub_errno on allocation error.
18006
18007 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18008
18009 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
18010
18011 2010-02-06 Yves Blusseau <blusseau@zetam.org>
18012
18013 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
18014 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
18015
18016 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18017
18018 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
18019 non-pxe disk.
18020 (grub_pxefs_open): Likewise.
18021
18022 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18023
18024 * util/grub.d/10_hurd.in: Add --class information to menuentries.
18025 * util/grub.d/10_kfreebsd.in: Likewise.
18026 * util/grub.d/10_linux.in: Likewise.
18027
18028 2010-02-06 Colin D Bennett <colin@gibibit.com>
18029
18030 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
18031 (gfxmenu_mod_SOURCES): New variable.
18032 (gfxmenu_mod_CFLAGS): Likewise.
18033 (gfxmenu_mod_LDFLAGS): Likewise.
18034 * include/grub/term.h (grub_term_set_current_output): Declare
18035 argument as const.
18036 * docs/gfxmenu-theme-example.txt: New file.
18037 * gfxmenu/gfxmenu.c: Likewise.
18038 * gfxmenu/gui_box.c: Likewise.
18039 * gfxmenu/gui_canvas.c: Likewise.
18040 * gfxmenu/gui_circular_progress.c: Likewise.
18041 * gfxmenu/gui_image.c: Likewise.
18042 * gfxmenu/gui_label.c: Likewise.
18043 * gfxmenu/gui_list.c: Likewise.
18044 * gfxmenu/gui_progress_bar.c: Likewise.
18045 * gfxmenu/gui_string_util.c: Likewise.
18046 * gfxmenu/gui_util.c: Likewise.
18047 * gfxmenu/icon_manager.c: Likewise.
18048 * gfxmenu/model.c: Likewise.
18049 * gfxmenu/named_colors.c: Likewise.
18050 * gfxmenu/theme_loader.c: Likewise.
18051 * gfxmenu/view.c: Likewise.
18052 * gfxmenu/widget-box.c: Likewise.
18053 * include/grub/gfxmenu_model.h: Likewise.
18054 * include/grub/gfxmenu_view.h: Likewise.
18055 * include/grub/gfxwidgets.h: Likewise.
18056 * include/grub/gui.h: Likewise.
18057 * include/grub/gui_string_util.h: Likewise.
18058 * include/grub/icon_manager.h: Likewise.
18059
18060 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18061
18062 Agglomerate scrolling in gfxterm.
18063
18064 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
18065 (grub_virtual_screen_setup): Initialise 'total_screen'.
18066 (write_char): Split to ...
18067 (paint_char): ... this ...
18068 (write_char): ... and this.
18069 (paint_char): Handle delayed scrolling.
18070 (draw_cursor): Likewise.
18071 (scroll_up): Split to ...
18072 (real_scroll): ... this ...
18073 (scroll_up): ... and this.
18074 (real_scroll): Handle multi-line scroll and draw below-the-bottom
18075 characters.
18076 (grub_gfxterm_refresh): Call real_scroll.
18077
18078 2010-02-06 Colin D Bennett <colin@gibibit.com>
18079
18080 * include/grub/misc.h (grub_iscntrl): New inline function.
18081 (grub_isalnum): Likewise.
18082 (grub_strtol): Likewise.
18083
18084 2010-02-06 Colin D Bennett <colin@gibibit.com>
18085
18086 * normal/menu_text.c (get_entry_number): Move from here ...
18087 * normal/menu.c (get_entry_number): ... moved here.
18088 * include/grub/menu.h (grub_menu_get_default_entry_index):
18089 New prototype.
18090 * normal/menu.c (grub_menu_get_default_entry_index): New function.
18091 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
18092 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
18093 (grub_menu_viewer_should_return): Likewise.
18094 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
18095 * normal/menu_text.c (run_menu): Enable menu switching.
18096 * normal/menu_viewer.c (should_return): New variable.
18097 (menu_viewer_changed): Likewise.
18098 (grub_menu_viewer_show_menu): Handle menu viewer changes.
18099 (grub_menu_viewer_should_return): New function.
18100 (menuviewer_write_hook): Likewise.
18101 (grub_menu_viewer_init): Likewise.
18102
18103 2010-02-06 Colin D Bennet <colin@gibibit.com>
18104 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18105
18106 Support for gfxterm in a window.
18107
18108 * include/grub/gfxterm.h: New file.
18109 * include/grub/video.h (struct grub_video_rect): New declaration.
18110 (grub_video_rect_t): Likewise.
18111 * term/gfxterm.c (struct grub_gfxterm_window): New type.
18112 (refcount): New variable.
18113 (render_target): Likewise.
18114 (window): Likewise.
18115 (repaint_callback): Likewise.
18116 (grub_virtual_screen_setup): Use 'render_target'.
18117 (init_window): New function.
18118 (grub_gfxterm_init_window): Likewise.
18119 (grub_gfxterm_init): Check reference counter.
18120 Use init_window.
18121 (destroy_window): New function.
18122 (grub_gfxterm_destroy_window): Likewise.
18123 (grub_gfxterm_fini): Check reference counter.
18124 Use destroy_window.
18125 (redraw_screen_rect): Restore viewport.
18126 Use 'render_target' and 'window'.
18127 Call 'repaint_callback'.
18128 (write_char): Use 'render_target'.
18129 (draw_cursor): Likewise.
18130 (scroll_up): Restore viewport.
18131 Use 'render_target' and 'window'.
18132 Call 'repaint_callback'.
18133 (grub_gfxterm_cls): Likewise.
18134 (grub_gfxterm_refresh): Use 'window'.
18135 (grub_gfxterm_set_repaint_callback): New function.
18136 (grub_gfxterm_background_image_cmd): Use 'window'.
18137 (grub_gfxterm_get_term): New function.
18138 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
18139
18140 2010-02-06 Colin D Bennett <colin@gibibit.com>
18141
18142 Bitmap scaling support.
18143
18144 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
18145 (bitmap_scale_mod_SOURCES): New variable.
18146 (bitmap_scale_mod_CFLAGS): Likewise.
18147 (bitmap_scale_mod_LDFLAGS): Likewise.
18148 * include/grub/bitmap_scale.h: New file.
18149 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
18150 (background_image_cmd_options): New variable.
18151 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
18152 (cmd): Rename and change type to ...
18153 (background_image_cmd_handle): ... this. All users updated.
18154 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
18155 * video/bitmap_scale.c: New file.
18156
18157 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18158
18159 SDL support.
18160
18161 * Makefile.in (LIBSDL): New variable.
18162 (enable_grub_emu_sdl): Likewise.
18163 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
18164 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
18165 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
18166 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
18167 * util/sdl.c: New file.
18168
18169 2010-02-06 Colin D Bennett <colin@gibibit.com>
18170 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18171
18172 Double buffering support.
18173
18174 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
18175 * include/grub/video.h: Update comment.
18176 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
18177 New type.
18178 (grub_video_fb_doublebuf_blit_init): New prototype.
18179 * term/gfxterm.c (scroll_up): Support double buffering.
18180 (grub_gfxterm_refresh): Likewise.
18181 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
18182 (grub_video_fb_doublebuf_blit_init): Likewise.
18183 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
18184 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
18185 'displayed_page', 'render_page' and 'update_screen'.
18186 (grub_video_vbe_fini): Free offscreen buffer.
18187 (doublebuf_pageflipping_commit): New function.
18188 (doublebuf_pageflipping_update_screen): Likewise.
18189 (doublebuf_pageflipping_init): Likewise.
18190 (double_buffering_init): Likewise.
18191 (grub_video_vbe_setup): Enable doublebuffering.
18192 (grub_video_vbe_swap_buffers): Implement.
18193 (grub_video_vbe_set_active_render_target): Handle double buffering.
18194 (grub_video_vbe_get_active_render_target): Likewise.
18195 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
18196 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
18197 (grub_video_vbe_enable_double_buffering): Likewise.
18198 (grub_video_vbe_swap_buffers): Use update_screen.
18199 (grub_video_set_mode): Use double buffering.
18200
18201 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18202
18203 * maintainance/gentrigtables.py: Remove.
18204 * lib/trig.c: Likewise.
18205
18206 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
18207
18208 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
18209 `trigtables.c'.
18210 (trigtables.c): New rule.
18211 (gentrigtables): Likewise.
18212 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
18213
18214 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18215
18216 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
18217 integer constants.
18218
18219 2010-02-06 Colin D Bennet <colin@gibibit.com>
18220
18221 Trigonometry support.
18222
18223 * include/grub/trig.h: New file.
18224 * lib/trig.c: Likewise.
18225 * maintainance/gentrigtables.py: Likewise.
18226 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
18227 (trig_mod_SOURCES): New variable.
18228 (trig_mod_CFLAGS): Likewise.
18229 (trig_mod_LDFLAGS): Likewise.
18230
18231 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18232
18233 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
18234 disk devices.
18235
18236 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18237
18238 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
18239 error.
18240
18241 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18242
18243 * util/hostdisk.c (open_device): Don't use partition device when reading
18244 before the partition.
18245 (grub_util_biosdisk_read): Don't read from partition and before the
18246 partition in single operation.
18247 (grub_util_biosdisk_write): Don't write to partition and before the
18248 partition in single operation.
18249
18250 2010-02-03 Torsten Landschoff <torsten@debian.org>
18251
18252 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18253 last sectors.
18254
18255 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18256
18257 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
18258 CDROM reads.
18259 (grub_biosdisk_write): Refuse to write to CDROM.
18260
18261 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18262
18263 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
18264
18265 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18266
18267 * font/font.c (find_glyph): Check that bmp_idx is available before
18268 using it.
18269 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
18270 with (font == NULL).
18271
18272 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
18273
18274 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
18275
18276 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
18277
18278 * include/grub/script_sh.h (sourcecode): Add const qualifier.
18279 * util/grub-script-check.c (getline): Fix empty lines case.
18280
18281 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
18282
18283 * Makefile.in (check): Exit with fail status when one of the tests
18284 fails.
18285 * tests/example_functional_test.c (example_test): Fix reversed assert.
18286 * tests/example_unit_test.c (example_test): Likewise.
18287
18288 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
18289
18290 * util/grub.d/10_linux.in: This script does not use any of the
18291 contents of gettext.sh, only the external command `gettext', so stop
18292 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
18293 the same prefix as GRUB.)
18294 * util/grub.d/10_kfreebsd.in: Likewise.
18295
18296 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18297
18298 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
18299 of the line.
18300
18301 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18302
18303 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18304 last sectors.
18305
18306 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18307
18308 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
18309 having a 4KiB and not 32KiB buffer size.
18310
18311 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18312
18313 * util/hostfs.c: Include `<errno.h>'.
18314 (grub_hostfs_read): Handle errors from fseeko() and fread().
18315
18316 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18317
18318 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
18319 loop when using read hooks on files whose size isn't sector-aligned.
18320
18321 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18322
18323 Remove unused parameter.
18324
18325 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
18326 (grub_iso9660_open): Remove initialization of `data->length'.
18327
18328 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18329
18330 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
18331 memleak conditions.
18332
18333 2010-01-27 Carles Pina i Estany <carles@pina.cat>
18334
18335 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
18336 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
18337
18338 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18339
18340 * util/bin2h.c (usage): Fix warning (space after backslash).
18341
18342 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18343
18344 * font/font.c: Include `grub/fontformat.h.
18345 Remove font file format constants.
18346 (grub_font_load): Use the new macros.
18347 * include/grub/fontformat.h: New file.
18348 * util/grub-mkfont.c: Include `grub/fontformat.c'.
18349 (write_font_pf2): Use the new macros.
18350
18351 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18352
18353 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
18354 does.
18355
18356 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18357
18358 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
18359
18360 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
18361 (_start): Macroify `0x7F'.
18362
18363 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
18364 (make_install_device): Use "(pxe)" as fallback prefix when booting
18365 via PXE.
18366
18367 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
18368
18369 * configure.ac: Reset LIBS after check for libgcc symbols.
18370
18371 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
18372
18373 * util/hostdisk.c (open_device): Add trailing newline to debug
18374 message.
18375
18376 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
18377
18378 * configure.ac: Check for `limits.h'.
18379 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
18380
18381 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
18382
18383 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
18384 capitalize error strings.
18385
18386 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
18387
18388 * util/grub.d/10_hurd.in: Add a recovery mode.
18389
18390 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
18391
18392 * configure.ac: Check for libgcc symbols with -nostdlib.
18393
18394 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
18395
18396 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
18397
18398 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18399
18400 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
18401 stack since heap may be unavailable at that point.
18402 (grub_ofconsole_gotoxy): Likewise.
18403
18404 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18405
18406 * configure.ac: Check for _restgpr_14_x.
18407 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
18408 and _savegpr_* prototypes.
18409
18410 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
18411
18412 Use generic grub_reboot() for i386-efi.
18413
18414 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
18415 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
18416 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
18417
18418 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18419
18420 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
18421 presence of "prefix" variable as it breaks when normal.mod is
18422 embedded.
18423
18424 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18425
18426 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
18427 stack since heap is unavailable at that point.
18428
18429 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18430
18431 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
18432 (grub_freebsd_bootinfo): Rewritten.
18433 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
18434
18435 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18436
18437 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
18438
18439 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
18440
18441 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
18442 domain now.
18443
18444 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
18445
18446 * util/misc.c (make_system_path_relative_to_its_root): Change the work
18447 around for handling "/" to the correct fix. Fix a memory leak. Use
18448 xstrdup instead of strdup.
18449
18450 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18451
18452 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
18453
18454 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18455
18456 Optimise glyph lookup by Basic Multilingual Plane lookup array.
18457
18458 * font/font.c (struct grub_font): New member 'bmp_idx'.
18459 (font_init): Initialise 'bmp_idx'.
18460 (load_font_index): Fill 'bmp_idx'.
18461 (find_glyph): Make inline. Use bmp_idx for BMP characters.
18462
18463 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18464
18465 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
18466 unnecessary calls.
18467
18468 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18469
18470 Move context handling out of the kernel.
18471
18472 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
18473 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
18474 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
18475 * conf/i386-efi.rmk: Likewise.
18476 * conf/i386-ieee1275.rmk: Likewise.
18477 * conf/i386-pc.rmk: Likewise.
18478 * conf/powerpc-ieee1275.rmk: Likewise.
18479 * conf/sparc64-ieee1275.rmk: Likewise.
18480 * conf/x86_64-efi.rmk: Likewise.
18481 * include/grub/env.h: Include grub/menu.h.
18482 (grub_env_var_type): Removed.
18483 (grub_env_var): Replaced field 'type' with 'global'.
18484 (grub_env_find): New prototype.
18485 (grub_env_context_open): Remove EXPORT_FUNC.
18486 (grub_env_context_close): Likewise.
18487 (grub_env_export): Likewise.
18488 (grub_env_set_data_slot): Removed.
18489 (grub_env_get_data_slot): Likewise.
18490 (grub_env_unset_data_slot): Likewise.
18491 (grub_env_unset_menu): New prototype.
18492 (grub_env_set_menu): Likewise.
18493 (grub_env_get_menu): Likewise.
18494 * include/grub/env_private.h: New file.
18495 * include/grub/normal.h (grub_context_init): New prototype.
18496 (grub_context_fini): Likewise.
18497 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
18498 * normal/context.c (grub_cmd_export): ... to here.
18499 * kern/env.c: Include env_private.h.
18500 (HASHSZ): Moved to include/grub/env_private.h.
18501 (grub_env_context): Likewise.
18502 (grub_env_sorted_var): Likewise.
18503 (current_context): Renamed from this ...
18504 (grub_current_context): ...to this. 'static' removed. All users updated.
18505 (grub_env_find): Removed 'static'.
18506 (grub_env_context_open): Moved to normal/context.c.
18507 (grub_env_context_close): Likewise.
18508 (grub_env_export): Likewise.
18509 (mangle_data_slot_name): Removed.
18510 (grub_env_set_data_slot): Likewise.
18511 (grub_env_get_data_slot): Likewise.
18512 (grub_env_unset_data_slot): Likewise.
18513 * kern/main.c (grub_set_root_dev): Don't export root.
18514 It will be done later.
18515 (grub_main): Don't export prefix.
18516 It will be done later.
18517 * normal/context.c: New file.
18518 * normal/main.c (free_menu): Use grub_env_unset_menu.
18519 (grub_normal_add_menu_entry): Use grub_env_get_menu.
18520 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
18521 (GRUB_MOD_INIT(normal)): Call grub_context_init.
18522 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
18523
18524 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18525
18526 setpci support.
18527
18528 * commands/setpci.c: New file.
18529 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
18530 (setpci_mod_SOURCES): New variable.
18531 (setpci_mod_CFLAGS): Likewise.
18532 (setpci_mod_LDFLAGS): Likewise.
18533
18534 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18535
18536 Byte-addressable PCI configuration space.
18537
18538 * bus/pci.c (grub_pci_make_address): Use byte address instead of
18539 dword address.
18540 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
18541 GRUB_PCI_REG_CACHELINE.
18542 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
18543 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
18544 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
18545 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
18546 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
18547 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
18548 grub_pci_make_address.
18549 (lock_rom_area): Likewise.
18550 * commands/lspci.c (grub_lspci_iter): Use macroses
18551 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
18552 of grub_pci_make_address.
18553 * disk/ata.c (grub_ata_pciinit): Likewise.
18554 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
18555 (GRUB_PCI_REG_VENDOR): Likewise.
18556 (GRUB_PCI_REG_DEVICE): Likewise.
18557 (GRUB_PCI_REG_COMMAND): Likewise.
18558 (GRUB_PCI_REG_STATUS): Likewise.
18559 (GRUB_PCI_REG_REVISION): Likewise.
18560 (GRUB_PCI_REG_CLASS): Likewise.
18561 (GRUB_PCI_REG_CACHELINE): Likewise.
18562 (GRUB_PCI_REG_LAT_TIMER): Likewise.
18563 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
18564 (GRUB_PCI_REG_BIST): Likewise.
18565 (GRUB_PCI_REG_ADDRESSES): Likewise.
18566 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18567 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18568 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18569 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18570 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18571 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18572 (GRUB_PCI_REG_CIS_POINTER): Likewise.
18573 (GRUB_PCI_REG_SUBVENDOR): Likewise.
18574 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
18575 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
18576 (GRUB_PCI_REG_CAP_POINTER): Likewise.
18577 (GRUB_PCI_REG_IRQ_LINE): Likewise.
18578 (GRUB_PCI_REG_IRQ_PIN): Likewise.
18579 (GRUB_PCI_REG_MIN_GNT): Likewise.
18580 (GRUB_PCI_REG_MAX_LAT): Likewise.
18581 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
18582 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
18583 * video/efi_uga.c (find_framebuf): Likewise.
18584 * video/sm712.c (grub_video_sm712_setup): Likewise.
18585 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
18586 space.
18587
18588 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18589
18590 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
18591 can be reliably determined to be supported.
18592
18593 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18594
18595 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
18596 that VESA is supported.
18597 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
18598 supported.
18599
18600 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18601
18602 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
18603
18604 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18605
18606 * util/misc.c (make_system_path_relative_to_its_root): Work around
18607 special-casing of "/", as previous incarnation of this routine did.
18608
18609 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18610
18611 Fix any-emu compilation.
18612
18613 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
18614 * grub_bin2h_SOURCES: New variable.
18615
18616 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18617
18618 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
18619
18620 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18621
18622 * util/grub.d/00_header.in: Fix handling of locale_dir.
18623
18624 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18625
18626 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
18627 as possible unifont location (Gentoo).
18628 Reported by: Alexander Brüning
18629
18630 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18631
18632 Don't try to generate lists for kernel.img.
18633
18634 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
18635 (pkglib_MODULES): Remove kernel.img.
18636 (kernel_img_EXPORTS): Removed.
18637 (kernel_img_RELOCATABLE): New variable.
18638 * conf/x86_64-efi.rmk: Likewise.
18639 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
18640
18641 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18642
18643 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
18644 grub_xasprintf or grub_snprintf.
18645 (grub_vsprintf): Likewise.
18646 (grub_snprintf): New proto.
18647 (grub_vsnprintf): Likewise.
18648 (grub_xasprintf): Likewise.
18649 (grub_xvasprintf): Likewise.
18650 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
18651 (grub_sprintf): Removed.
18652 (grub_vsnprintf): New function.
18653 (grub_snprintf): Likewise.
18654 (grub_xvasprintf): Likewise.
18655 (grub_xasprintf): Likewise.
18656 (grub_vsprintf): Renamed to ...
18657 (grub_vsnprintf_real): ...this. New argument max_len.
18658
18659 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
18660
18661 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
18662 fix grub-script-check warning.
18663
18664 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18665
18666 * include/grub/font.h (grub_font_load): Fix prototype.
18667
18668 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18669
18670 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
18671
18672 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18673
18674 * include/grub/x86_64/at_keyboard.h: New file.
18675
18676 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18677
18678 * loader/mips/linux.c: Include missing grub/i18n.h.
18679
18680 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18681
18682 * normal/menu.c (notify_execution_failure): Clarify error message.
18683
18684 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18685
18686 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
18687 return value (and revert all return statements). Update users.
18688
18689 2010-01-20 Dan Merillat <debian@dan.merillat.org>
18690
18691 * kern/device.c (grub_device_iterate): Allocate new part_ent
18692 structure based on sizeof (*p) rather than sizeof (p->next), to
18693 account for structure padding.
18694
18695 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
18696 disk is NULL, which might happen for LVM physical volumes with no
18697 LVM signature.
18698
18699 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18700
18701 * loader/mips/linux.c (grub_cmd_initrd)
18702 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
18703
18704 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18705
18706 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
18707 (grub_video_video_init, grub_video_bitmap_init)
18708 (grub_font_manager_init, grub_term_gfxterm_init)
18709 (grub_at_keyboard_init): New extern declarations.
18710 (grub_machine_init): Initialize gfxterm and at_keyboard.
18711
18712 * kern/main.c (grub_main): Revert grub_printf delay kludge.
18713
18714 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
18715 `gfxterm.mod' into core image.
18716
18717 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18718 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18719 (kernel_img_FORMAT): Copy to ...
18720
18721 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18722 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18723 (kernel_img_FORMAT): ... here, and ...
18724
18725 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18726 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18727 (kernel_img_FORMAT): ... here.
18728
18729 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
18730 and input (at_keyboard) terminals in kernel.
18731 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
18732
18733 (pkglib_MODULES): Remove `pci.mod'.
18734 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
18735 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
18736 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
18737 (at_keyboard_mod_LDFLAGS): Remove variables.
18738
18739 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
18740
18741 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
18742
18743 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
18744
18745 * include/grub/mips/libgcc.h: Only export symbols for functions
18746 that libgcc provides.
18747
18748 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
18749
18750 MIPS support.
18751
18752 * bus/bonito.c: New file.
18753 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
18754 GRUB_PCI_NUM_DEVICES.
18755 * term/i386/pc/serial.c: Move to ...
18756 * term/serial.c: ... here. All users updated.
18757 * util/i386/pc/grub-mkimage.c: Move to ...
18758 * util/grub-mkrawimage.c: ... here. All users updated.
18759 * term/i386/pc/at_keyboard.c: Move to ...
18760 * term/at_keyboard.c: ... here. All users updated.
18761 * conf/mips-qemu-mips.rmk: New file.
18762 * conf/mips-yeeloong.rmk: Likewise.
18763 * conf/mips.rmk: Likewise.
18764 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
18765 mipsel-qemu-mips.
18766 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
18767 to port addresses.
18768 (grub_ata_pciinit): Support CS5536.
18769 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
18770 * font/font_cmd.c (loadfont_command): Open file before passing it to
18771 grub_font_load.
18772 (pseudo_file_read): New function.
18773 (pseudo_file_close): Likewise.
18774 (pseudo_fs): New structure.
18775 (load_font_module): New function.
18776 (GRUB_MOD_INIT(font_manager)): Load embedded font.
18777 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
18778 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
18779 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
18780 * include/grub/i386/at_keyboard.h: Split into ...
18781 * include/grub/at_keyboard.h: ... this ...
18782 * include/grub/i386/at_keyboard.h: ... and this.
18783 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
18784 New prototype.
18785 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
18786 updated.
18787 (grub_elf64_size): Likewise.
18788 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
18789 filename.
18790 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
18791 * include/grub/i386/coreboot/serial.h: Rewritten.
18792 * include/grub/i386/ieee1275/serial.h: Include
18793 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
18794 * include/grub/i386/pc/serial.h: Moved from here ...
18795 * include/grub/serial.h: ... to here. All users updated.
18796 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
18797 (GRUB_PCI_NUM_BUS): Likewise.
18798 (GRUB_PCI_NUM_DEVICES): Likewise.
18799 (grub_pci_device_map_range): Add missing volatile keyword.
18800 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
18801 * include/grub/mips/at_keyboard.h: New file.
18802 * include/grub/mips/cache.h: Likewise.
18803 * include/grub/mips/io.h: Likewise.
18804 * include/grub/mips/kernel.h: Likewise.
18805 * include/grub/mips/libgcc.h: Likewise.
18806 * include/grub/mips/pci.h: Likewise.
18807 * include/grub/mips/qemu-mips/boot.h: Likewise.
18808 * include/grub/mips/qemu-mips/kernel.h: Likewise.
18809 * include/grub/mips/qemu-mips/loader.h: Likewise.
18810 * include/grub/mips/qemu-mips/memory.h: Likewise.
18811 * include/grub/mips/qemu-mips/serial.h: Likewise.
18812 * include/grub/mips/qemu-mips/time.h: Likewise.
18813 * include/grub/mips/relocator.h: Likewise.
18814 * include/grub/mips/time.h: Likewise.
18815 * include/grub/mips/types.h: Likewise.
18816 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
18817 * include/grub/mips/yeeloong/boot.h: Likewise.
18818 * include/grub/mips/yeeloong/kernel.h: Likewise.
18819 * include/grub/mips/yeeloong/loader.h: Likewise.
18820 * include/grub/mips/yeeloong/memory.h: Likewise.
18821 * include/grub/mips/yeeloong/pci.h: Likewise.
18822 * include/grub/mips/yeeloong/serial.h: Likewise.
18823 * include/grub/mips/yeeloong/time.h: Likewise.
18824 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
18825 * kern/elf.c (grub_elf32_size): New parameter. All users
18826 updated.
18827 (grub_elf64_size): Likewise.
18828 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
18829 Load modules before saying "Welcome to GRUB!".
18830 Call grub_refresh after saying "Welcome to GRUB!".
18831 * kern/mips/cache.S: New file.
18832 * kern/mips/cache_flush.S: Likewise.
18833 * kern/mips/dl.c: Likewise.
18834 * kern/mips/init.c: Likewise.
18835 * kern/mips/qemu-mips/init.c: Likewise.
18836 * kern/mips/startup.S: Likewise.
18837 * kern/mips/yeeloong/init.c: Likewise.
18838 * kern/term.c (grub_putcode): Handle NULL terminal.
18839 (grub_getcharwidth): Likewise.
18840 (grub_getkey): Likewise.
18841 (grub_checkkey): Likewise.
18842 (grub_getkeystatus): Likewise.
18843 (grub_getxy): Likewise.
18844 (grub_getwh): Likewise.
18845 (grub_gotoxy): Likewise.
18846 (grub_cls): Likewise.
18847 (grub_setcolorstate): Likewise.
18848 (grub_setcolor): Likewise.
18849 (grub_getcolor): Likewise.
18850 (grub_refresh): Likewise.
18851 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
18852 (write_jump): Add hatch nop.
18853 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
18854 * lib/mips/setjmp.S: New file.
18855 * loader/mips/linux.c: Likewise.
18856 * term/i386/pc/at_keyboard.c: Move from here ...
18857 * term/at_keyboard.c: ... to here.
18858 * term/i386/pc/serial.c: Moved from here ...
18859 * term/serial.c: ... to here. All users updated.
18860 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
18861 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
18862 (serial_translate_key_sequence): Avoid deadlock.
18863 (grub_serial_getkey): Handle backspace.
18864 (grub_serial_putchar): Fix newline handling.
18865 * util/i386/pc/grub-mkimage.c: Move from here ...
18866 * util/grub-mkrawimage.c: ... to here. All users updated.
18867 (generate_image): New parameters 'font_path' and 'format'.
18868 Support embedding font.
18869 Use grub_host_to_target* instead of grub_cpu_to_le*.
18870 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
18871 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
18872 (options): New option "--font".
18873 (usage): Likewise.
18874 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
18875 (main): Handle "--font".
18876 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
18877 (grub_virtual_screen_setup): Set bg_color_display.
18878 (redraw_screen_rect): Use bg_color_display instead of incorrect
18879 bg_color.
18880 (grub_gfxterm_cls): Likewise.
18881 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
18882 Support embedding config file.
18883 (add_segments): Likewise.
18884 (options): New option "--config".
18885 (main): Handle "--config".
18886 * video/sm712.c: New file.
18887
18888 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18889
18890 Fix parallel builds.
18891
18892 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
18893 font.c depend on ascii.h).
18894
18895 2010-01-12 Carles Pina i Estany <carles@pina.cat>
18896
18897 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
18898
18899 2010-01-11 Carles Pina i Estany <carles@pina.cat>
18900
18901 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
18902 By default: disabled.
18903 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
18904 parameter.
18905
18906 2010-01-10 Carles Pina i Estany <carles@pina.cat>
18907
18908 * font/font.c: Update copyright years.
18909 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
18910
18911 2010-01-10 Carles Pina i Estany <carles@pina.cat>
18912
18913 * font/font.c: Include `ascii.h'.
18914 (ASCII_BITMAP_SIZE): New macro.
18915 (ascii_font_glyph): Define.
18916 (ascii_glyph_lookup): New function.
18917 (grub_font_get_string_width): Change comment. If glyph not found, use
18918 ascii_glyph_lookup.
18919 (grub_font_get_glyph_with_fallback): If glyph not available returns
18920 ascii_glyph_lookup.
18921 * util/grub-mkfont.c (file_formats): New enum.
18922 (options): Add `ascii-bitmaps' new option.
18923 (usage): Add `asii-bitmaps' new option.
18924 (write_font_ascii_bitmap): New function.
18925 (write_font): Rename to ...
18926 (write_font_p2): ... this. Remove print_glyphs call.
18927 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
18928 used. Call print_glyphs.
18929 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
18930
18931 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
18932
18933 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
18934 (grub_bin2h_SOURCES): New variable.
18935 * util/bin2h.c: New file.
18936
18937 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18938
18939 * include/multiboot.h: Resynced with spec.
18940 * include/multiboot2.h: Likewise.
18941 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
18942 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
18943
18944 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18945
18946 * include/grub/term.h (grub_term_register_input,
18947 grub_term_register_output): Check return of terminal init()
18948 routines, and abort if errors are raised.
18949
18950 * commands/terminal.c: Update copyright year.
18951
18952 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18953
18954 * commands/terminal.c (grub_cmd_terminal_input)
18955 (grub_cmd_terminal_output): Check return of terminal init()
18956 routines, and abort if errors are raised.
18957
18958 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
18959
18960 * include/grub/i386/bsd.h: Fix include pathes.
18961
18962 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
18963
18964 Add missing *BSD copyright headers.
18965
18966 * include/grub/aout.h: Add BSD licence.
18967 * include/grub/i386/bsd.h: Parts under different licences moved to ...
18968 * include/grub/i386/freebsd_linker.h: ... here,
18969 * include/grub/i386/freebsd_reboot.h: ... here,
18970 * include/grub/i386/netbsd_bootinfo.h: ... here,
18971 * include/grub/i386/netbsd_reboot.h: ... here,
18972 * include/grub/i386/openbsd_bootarg.h: ... here,
18973 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
18974 licence to each file.
18975
18976 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18977
18978 * acinclude.m4: Remove `nop' assembly instruction; it's not
18979 implemented by all architectures.
18980
18981 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18982
18983 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
18984 ELILO. This is no longer necessary.
18985
18986 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
18987
18988 Added new tool, grub-scrit-check to verify grub.cfg syntax.
18989
18990 * util/grub-script-check.c: grub-script-check tool.
18991 * conf/common.rmk: Make rules for grub-script-check.
18992
18993 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18994
18995 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
18996 spotting it back in 2008. Shame on me for forgetting he did.
18997
18998 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
18999
19000 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19001
19002 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
19003 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
19004 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
19005 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
19006 (GRUB_VIDEO_TYPE_EFI): Rename to ...
19007 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
19008
19009 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
19010
19011 * include/grub/test.h: Add license header.
19012 * tests/example_functional_test.c: Likewise.
19013 * tests/example_unit_test.c: Likewise.
19014 * tests/lib/functional_test.c: Likewise.
19015 * tests/lib/test.c: Likewise.
19016 * tests/lib/unit_test.c: Likewise.
19017
19018 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
19019
19020 Use flag-based instead of hook-based video mode selection and "auto"
19021 keyword.
19022
19023 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
19024 (grub_video_set_mode): Changed prototype. All users updated.
19025 (grub_video_check_mode_flag): New inline function.
19026 * video/video.c (parse_modespec): New function.
19027 (grub_video_set_mode): Parse flags and keywords.
19028
19029 2010-01-17 Carles Pina i Estany <carles@pina.cat>
19030
19031 * util/misc.c (grub_util_info): Fix the order of the parameters in a
19032 fprintf call.
19033
19034 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
19035
19036 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
19037
19038 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19039
19040 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
19041 string.
19042 * util/grub-emu.c (usage): Likewise.
19043 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
19044 * util/i386/efi/grub-mkimage.c (usage): Likewise.
19045 * util/i386/pc/grub-mkimage.c (usage): Likewise.
19046 * util/i386/pc/grub-setup.c (usage): Likewise.
19047
19048 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19049
19050 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
19051 the message.
19052 (grub_util_info): Likewise.
19053 (grub_util_error): Likewise.
19054 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
19055 and/or new lines in `grub_util_warna', `grub_util_info',
19056 `grub_util_error' calls.
19057 * util/getroot.c: Likewise.
19058 * util/grub-editenv.c: Likewise.
19059 * util/grub-emu.c: Likewise.
19060 * util/grub-fstest.c: Likewise.
19061 * util/grub-mkdevicemap.c: Likewise.
19062 * util/grub-mkfont.c: Likewise.
19063 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19064 * util/grub-mkrelpath.c: Likewise.
19065 * util/grub-pe2elf.c: Likewise.
19066 * util/grub-probe.c: Likewise.
19067 * util/hostdisk.c: Likewise.
19068 * util/i386/efi/grub-mkimage.c: Likewise.
19069 * util/i386/pc/grub-mkimage.c: Likewise.
19070 * util/i386/pc/grub-setup.c: Likewise.
19071 * util/ieee1275/ofpath.c: Likewise.
19072 * util/mkisofs/eltorito.c: Likewise.
19073 * util/mkisofs/rock.c: Likewise.
19074 * util/mkisofs/write.c: Likewise.
19075 * util/raid.c: Likewise.
19076 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19077 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19078
19079 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19080
19081 Enable multiboot on non-pc.
19082
19083 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
19084 multiboot.mod and multiboot2.mod to ...
19085 * conf/i386.rmk (pkglib_MODULES): ... here.
19086 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
19087 Moved to ...
19088 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
19089 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
19090 Moved to ...
19091 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
19092 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
19093 Moved to ...
19094 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
19095 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
19096 Moved to ...
19097 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
19098 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
19099 relocator.mod.
19100 (ata_mod_SOURCES): Removed.
19101 (ata_mod_CFLAGS): Likewise.
19102 (ata_mod_LDFLAGS): Likewise.
19103 (relocator_mod_SOURCES): Removed.
19104 (relocator_mod_CFLAGS): Likewise.
19105 (relocator_mod_ASFLAGS): Likewise.
19106 (relocator_mod_LDFLAGS): Likewise.
19107 Include i386.mk.
19108 * include/grub/x86_64/multiboot.h: New file.
19109 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
19110 Terminate EFI.
19111
19112 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19113
19114 Video multiboot support.
19115
19116 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
19117 New prototype.
19118 * include/multiboot.h: Resynced with multiboot specification.
19119 * include/multiboot2.h: Likewise.
19120 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
19121 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
19122 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
19123 (HAS_VGA_TEXT): Likewise.
19124 (accepts_video): New variable.
19125 (grub_multiboot_set_accepts_video): New function.
19126 (grub_multiboot_get_mbi_size): Account for video structures.
19127 (set_video_mode): New function.
19128 (retrieve_video_parameters): Likewise.
19129 (grub_multiboot_make_mbi): Fill video fields.
19130
19131 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19132
19133 Video driver ids.
19134
19135 * include/grub/video.h (grub_video_driver_id): New type.
19136 (grub_video_adapter): New member 'id'. All users updated.
19137 (grub_video_get_driver_id): New proto.
19138 * video/video.c (grub_video_get_driver_id): New function.
19139
19140 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19141
19142 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
19143 `var=val'.
19144
19145 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19146
19147 * normal/cmdline.c (print_completion): Gettextizze.
19148
19149 2001-01-14 Carles Pina i Estany <carles@pina.cat>
19150
19151 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
19152
19153 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19154
19155 * gettext/gettext.c (grub_gettext_translate): Push and pop
19156 grub_errno.
19157 (grub_gettext_delete_list): Change comment style.
19158 * kern/err.c (grub_error): Gettextizze.
19159 (grub_fatal): Gettextizze.
19160
19161 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19162
19163 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
19164 (grub_linux16_real_boot): ... this.
19165 * kern/i386/loader.S: Likewise.
19166 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
19167 (grub_linux16_boot): New function. Switches to text mode and calls
19168 grub_linux16_real_boot().
19169
19170 * loader/i386/bsd.c: Include `<grub/video.h>'.
19171 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
19172 text mode before calling grub_unix_real_boot().
19173
19174 * loader/i386/multiboot.c: Include `<grub/video.h>'.
19175 (grub_multiboot_boot): Switch to text mode before calling
19176 grub_relocator32_boot().
19177
19178 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
19179 (grub_chainloader_boot): Switch to text mode before calling
19180 grub_chainloader_real_boot().
19181
19182 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19183 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19184
19185 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
19186 non-empty value.
19187
19188 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19189 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19190
19191 * util/grub.d/00_header.in: Define a "savedefault" function for use
19192 in menu entries.
19193 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
19194
19195 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19196 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19197
19198 * util/grub-mkconfig_lib.in (save_default_entry): Only set
19199 saved_entry if boot_once is unset.
19200 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
19201 previous saved entry (i.e. grub-reboot).
19202
19203 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19204
19205 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
19206
19207 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19208
19209 * util/grub.d/00_header.in: Use `set var=val' rather than plain
19210 `var=val'.
19211 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
19212
19213 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19214
19215 * util/grub-reboot.in: Fix --version output.
19216 * util/grub-set-default.in: Likewise.
19217
19218 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19219
19220 * util/grub.d/00_header.in: Silently ignore zero-sized environment
19221 blocks.
19222
19223 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19224
19225 * util/grub.d/00_header.in: Quote the value assigned to `default',
19226 in case it contains spaces.
19227
19228 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19229
19230 * util/grub.d/30_os-prober.in: Fix merge error that moved a
19231 `save_default_entry' call from the macosx case to the linux case.
19232
19233 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
19234 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
19235
19236 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
19237 in `chosen' environment variable.
19238 * normal/menu_text.c (get_entry_number): Check if the variable
19239 matches the title of a menu entry.
19240 (run_menu): Pass menu to get_entry_number.
19241
19242 * util/grub-reboot.in: New file.
19243 * util/grub-set-default.in: New file.
19244 * conf/common.rmk (grub-reboot): New utility.
19245 (grub-set-default): New utility.
19246
19247 * util/grub-mkconfig_lib.in (save_default_entry): New function.
19248 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
19249 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
19250 move it to `saved_entry' for the next boot. Load environment on
19251 initialisation.
19252 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
19253 * util/grub.d/10_hurd.in: Likewise.
19254 * util/grub.d/10_linux.in (linux_entry): Likewise.
19255 * util/grub.d/10_windows.in: Likewise.
19256 * util/grub.d/30_os-prober.in: Likewise.
19257
19258 * util/grub-install.in: Create environment block.
19259 * util/i386/efi/grub-install.in: Likewise.
19260 * util/ieee1275/grub-install.in: Likewise.
19261 * util/sparc64/ieee1275/grub-install.in: Likewise.
19262
19263 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
19264
19265 Unit testing framework for GRUB.
19266
19267 * Makefile.in: Test framework build rules for 'make check'.
19268 * conf/tests.rmk: Build rules for individual tests and framework.
19269
19270 * include/grub/test.h: Header file for whitebox tests.
19271 * tests/lib/functional_test.c: Framework support for whitebox
19272 functional tests.
19273 * tests/lib/test.c: Common whitebox testing code for unit and
19274 functional tests.
19275 * tests/lib/unit_test.c: Framework support for whitebox unit
19276 tests.
19277
19278 * tests/util/grub-shell-tester.in: Support utility for grub-script
19279 tests.
19280 * tests/util/grub-shell.in: Utility to execute grub-script
19281 commands in a Qemu instance.
19282
19283 * tests/example_functional_test.c: Example whitebox functional
19284 test.
19285 * tests/example_grub_script_test.in: Example grub-script test.
19286 * tests/example_scripted_test.in: Example scripted test.
19287 * tests/example_unit_test.c: Example whitebox unit test.
19288
19289 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
19290
19291 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
19292 Add loader/i386/multiboot_mbi.c.
19293 (multiboot2_mod_SOURCES): Likewise.
19294 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
19295 (multiboot2_mod_SOURCES): Likewise.
19296 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
19297 (grub_multiboot_make_mbi): Likewise.
19298 (grub_multiboot_free_mbi): Likewise.
19299 (grub_multiboot_init_mbi): Likewise.
19300 (grub_multiboot_add_module): Likewise.
19301 (grub_multiboot_set_bootdev): Likewise.
19302 * loader/i386/multiboot.c (mbi): Removed.
19303 (mbi_dest): Likewise.
19304 (alloc_mbi): New variable.
19305 (grub_multiboot_payload_size): Removed. All users updated.
19306 (grub_multiboot_pure_size): New variable.
19307 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
19308 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
19309 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
19310 (grub_fill_multiboot_mmap): Likewise.
19311 (grub_multiboot_get_bootdev): Likewise.
19312 (grub_multiboot): Use multiboot_mbi functions.
19313 * loader/i386/multiboot_mbi.c: New file.
19314
19315 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19316
19317 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
19318 it would result in module crash.
19319
19320 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19321
19322 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
19323 (grub_ofconsole_getwh): Split to ...
19324 (grub_ofconsole_getwh): ... this.
19325 (grub_ofconsole_dimensions): ...and this.
19326 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
19327
19328 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
19329
19330 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
19331
19332 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19333
19334 * loader/i386/pc/multiboot2.c: Removed stalled file.
19335
19336 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19337
19338 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
19339 Reported by: Grégoire Sutre
19340
19341 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
19342
19343 * util/misc.c (canonicalize_file_name): New function.
19344 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
19345 instead of realpath().
19346
19347 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
19348
19349 * util/grub-install.in (usage): Clarify meaning of --root-directory,
19350 and make it clearer that it's optional. Based on confusion
19351 witnessed on IRC.
19352
19353 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19354
19355 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
19356 in premature implicit newline.
19357
19358 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19359
19360 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
19361 which resulted in garbled command line at the end of screen.
19362
19363 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19364
19365 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
19366 initialization with similar approach as with other Linux loaders.
19367
19368 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19369
19370 Fix i386-ieee1275 build.
19371
19372 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
19373 and grub_term_height() for video_{width,height} initialization.
19374
19375 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19376
19377 Fix grub-emu build.
19378
19379 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
19380
19381 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19382 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19383
19384 Support for multiple terminals.
19385
19386 * Makefile.in (pkglib_DATA): terminal.lst.
19387 (terminal.lst): New target.
19388 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
19389 (GRUB_MOD_INIT(handler)): Likewise.
19390 (GRUB_MOD_FINI(handler)): Likewise.
19391 * commands/help.c (grub_cmd_help): Handle multiple terminals.
19392 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
19393 * commands/sleep.c (do_print): Use grub_term_restore_pos.
19394 (grub_cmd_sleep): Use grub_term_save_pos.
19395 * commands/terminal.c: New file.
19396 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
19397 commands/terminal.c and lib/charset.c.
19398 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
19399 (pkglib_MODULES): Add terminal.mod.
19400 (terminal_mod_SOURCES): New variable.
19401 (terminal_mod_CFLAGS): Likewise.
19402 (terminal_mod_LDFLAGS): Likewise.
19403 * genhandlerlist.sh: Don't handle terminals.
19404 * genmk.rb: Generate terminal-*.lst.
19405 * genterminallist.sh: New file.
19406 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
19407 (grub_is_valid_utf8): Likewise.
19408 (grub_utf8_to_ucs4_alloc): Likewise.
19409 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
19410 (grub_menu_register_viewer): Changed argument.
19411 (grub_menu_try_text): New proto.
19412 (grub_gfxmenu_try_hook): New declaration.
19413 * include/grub/normal.h (grub_normal_exit_level): New declaration.
19414 (grub_menu_init_page): Additional argument term.
19415 (grub_normal_init_page): Likewise.
19416 (grub_cmdline_get): Arguments simplified.
19417 (grub_utf8_to_ucs4_alloc): Removed.
19418 (grub_print_ucs4): Additional argument term.
19419 (grub_getstringwidth): Likewise.
19420 (grub_print_message_indented): Likewise.
19421 (grub_menu_text_register_instances): New proto.
19422 (grub_show_menu): Likewise.
19423 (read_terminal_list): Likewise.
19424 (grub_set_more): Likewise.
19425 * include/grub/parser.h: Include handler.h.
19426 * include/grub/reader.h: Rewritten.
19427 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
19428 (GRUB_TERM_WIDTH): Changed to function.
19429 (GRUB_TERM_HEIGHT): Likewise.
19430 (GRUB_TERM_BORDER_WIDTH): Likewise.
19431 (GRUB_TERM_BORDER_HEIGHT): Likewise.
19432 (GRUB_TERM_NUM_ENTRIES): Likewise.
19433 (GRUB_TERM_ENTRY_WIDTH): Likewise.
19434 (GRUB_TERM_CURSOR_X): Likewise.
19435 (grub_term_input_class): Likewise.
19436 (grub_term_output_class): Likewise.
19437 (grub_term_outputs_disabled): New declaration.
19438 (grub_term_inputs_disabled): Likewise.
19439 (grub_term_outputs): Likewise.
19440 (grub_term_inputs): Likewise.
19441 (grub_term_register_input): Rewritten.
19442 (grub_term_register_output): Likewise.
19443 (grub_term_unregister_input): Likewise.
19444 (grub_term_unregister_output): Likewise.
19445 (FOR_ACTIVE_TERM_INPUTS): New macro.
19446 (FOR_DISABLED_TERM_INPUTS): Likewise.
19447 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19448 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19449 * include/grub/terminfo.h: Add oterm argument to all protypes.
19450 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
19451 Use grub_rescue_run.
19452 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
19453 All users updated.
19454 * kern/reader.c: Removed. All users updated.
19455 * kern/rescue_reader.c (grub_rescue_init): Removed.
19456 (grub_rescue_reader): Likewise.
19457 (grub_register_rescue_reader): Likewise.
19458 (grub_rescue_run): New function based on kern/reader.c.
19459 * kern/term.c: Adapted for multiterm.
19460 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
19461 (grub_is_valid_utf8): Likewise.
19462 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
19463 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
19464 right terminal.
19465 * loader/i386/linux.c (grub_linux_boot): Likewise.
19466 * normal/auth.c (grub_username_get): New function.
19467 (grub_auth_check_authentication): Use grub_username_get.
19468 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
19469 * normal/color.c: Adapt for multiterm.
19470 * normal/main.c (read_config_file): Don't use grub_reader_loop.
19471 (grub_normal_init_page): Additional argument term.
19472 (read_lists): Call read_terminal_lists.
19473 (grub_enter_normal_mode): Call grub_cmdline_run.
19474 Handle grub_normal_exit_level.
19475 (grub_cmd_normal): Make reentrant.
19476 (grub_cmd_normal_exit): New function.
19477 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
19478 * normal/menu.c: Adapt for multiterm.
19479 * normal/menu_entry.c: Likewise.
19480 * normal/menu_text.c: Likewise.
19481 * normal/menu_viewer.c: Removed. All users updated.
19482 * normal/term.c: New file.
19483 * util/console.c: Change order of includes to workaround a bug in
19484 ncurses headers.
19485 * term/terminfo.c: New argument oterm on all exported functions.
19486 All users updated.
19487 * util/grub-editenv.c (grub_term_input_class): Removed.
19488 (grub_term_output_class): Likewise.
19489
19490 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19491
19492 Make loader output a bit more user-friendly.
19493
19494 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
19495 is being loaded. Likewise for the Hurd.
19496
19497 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
19498 that kernel of FreeBSD ${version} is being loaded.
19499
19500 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
19501 grub_dprintf().
19502 (grub_cmd_initrd): Likewise.
19503 * util/grub.d/10_linux.in (linux_entry): Print message indicating
19504 that Linux ${version} is being loaded. Likewise for initrd.
19505
19506 2010-01-09 Carles Pina i Estany <carles@pina.cat>
19507
19508 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
19509
19510 2010-01-08 Carles Pina i Estany <carles@pina.cat>
19511
19512 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
19513 (GRUB_MOD_INIT): Gettextizze.
19514 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
19515 (GRUB_MOD_INIT): Gettextizze.
19516 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
19517 (grub_cmd_linux): Capitalise Linux.
19518 (GRUB_MOD_INIT): Gettextizze.
19519 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
19520 (grub_cmd_linux): Capitalise Linux.
19521 (GRUB_MOD_INIT): Gettextizze.
19522 * loader/i386/linux.c: Include `<grub/i18n.h>'.
19523 (grub_cmd_linux): Capitalise Linux.
19524 (GRUB_MOD_INIT): Gettextizze.
19525 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
19526 (GRUB_MOD_INIT): Gettextizze.
19527 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
19528 (grub_cmd_linux): Capitalise Linux.
19529 (GRUB_MOD_INIT): Gettextizze.
19530 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
19531 (grub_cpu_xnu_init): Gettextizze.
19532 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
19533 (GRUB_MOD_INIT): Gettextizze.
19534 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
19535 (GRUB_MOD_INIT): Gettextizze.
19536 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
19537 (grub_linux_load64): Capitalise Linux.
19538 (GRUB_MOD_INIT): Gettextizze.
19539 * loader/xnu.c: Include `<grub/i18n.h>'.
19540 (GRUB_MOD_INIT): Gettextizze.
19541 * po/POTFILES: Add `loader/efi/appleloader.c',
19542 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
19543 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
19544 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
19545 `loader/i386/xnu.c', `loader/multiboot_loader.c',
19546 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
19547 and `loader/xnu.c'.
19548
19549 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19550
19551 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
19552
19553 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19554
19555 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
19556 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
19557 * util/mkisofs/mkisofs.c (main): Readjust --version output.
19558
19559 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19560
19561 Reset Multiboot 2 support. New loader implements the draft in
19562 /branches/multiboot2 and shares as much code as possible with the
19563 production Multiboot 1 implementation.
19564
19565 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
19566 * loader/multiboot2.c: Likewise.
19567 * loader/i386/multiboot_helper.S: Likewise.
19568 * include/multiboot2.h: Replace with latest version from the draft
19569 in /branches/multiboot2.
19570
19571 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
19572 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
19573 and `loader/multiboot2.c'.
19574 (pkglib_MODULES): Add `multiboot2.mod'.
19575 (multiboot2_mod_SOURCES): New variable.
19576 (multiboot2_mod_LDFLAGS): Likewise.
19577 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
19578
19579 * conf/i386-pc.rmk: Likewise.
19580
19581 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19582 (multiboot_mod_SOURCES): Remove variable.
19583 (multiboot_mod_LDFLAGS): Likewise.
19584 (multiboot_mod_CFLAGS): Likewise.
19585
19586 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
19587 `<multiboot2.h>' instead of `<multiboot.h>'.
19588 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
19589 (MULTIBOOT_HEADER_MAGIC): New macros.
19590
19591 * loader/multiboot_loader.c (module_version_status): Remove variable.
19592 (find_multi_boot2_header): Remove function.
19593 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
19594 logic. Always check for the Multiboot version we're compiling for.
19595 (grub_cmd_module_loader): Likewise.
19596 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
19597 command instead of `multiboot'.
19598
19599 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19600
19601 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
19602 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
19603 all users.
19604
19605 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19606 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19607
19608 Fix breakage introduced with previous commit.
19609
19610 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
19611 commands.
19612 * normal/handler.c (read_handler_list): Revert part of previous commit
19613 affecting this file.
19614 * normal/main.c (read_lists): Move read_handler_list() call back to ...
19615 (grub_normal_execute): ... here.
19616
19617 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19618
19619 Merge prefix-redefinition-fix branch.
19620
19621 * normal/autofs.c (read_fs_list): Make function capable of being
19622 run multiple times, gracefuly replacing the previous data
19623 structures.
19624 * normal/dyncmd.c (read_command_list): Likewise.
19625 * normal/handler.c (read_handler_list): Likewise.
19626 * normal/main.c (read_lists): New function. Calls all the
19627 list reading functions.
19628 (grub_normal_execute): Use read_lists() instead of calling all
19629 list reading functions explicitly. Register read_lists() as a
19630 variable hook attached to ${prefix}.
19631
19632 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19633
19634 Merge crypto branch.
19635
19636 * Makefile.in (pkglib_DATA): Add crypto.lst.
19637 (crypto.lst): New target.
19638 * commands/hashsum.c: New file.
19639 * commands/password.c (check_password): Use grub_crypto_memcmp.
19640 * commands/password_pbkdf2.c: New file.
19641 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
19642 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
19643 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
19644 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
19645 -I$(srcdir)/lib/libgcrypt_wrap.
19646 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
19647 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
19648 password_pbkdf2.mod.
19649 (crypto_mod_SOURCES): New variable.
19650 (crypto_mod_CFLAGS): Likewise.
19651 (crypto_mod_LDFLAGS): Likewise.
19652 (hashsum_mod_SOURCES): New variable.
19653 (hashsum_mod_CFLAGS): Likewise.
19654 (hashsum_mod_LDFLAGS): Likewise.
19655 (pbkdf2_mod_SOURCES): New variable.
19656 (pbkdf2_mod_CFLAGS): Likewise.
19657 (pbkdf2_mod_LDFLAGS): Likewise.
19658 (password_pbkdf2_mod_SOURCES): New variable.
19659 (password_pbkdf2_mod_CFLAGS): Likewise.
19660 (password_pbkdf2_mod_LDFLAGS): Likewise.
19661 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
19662 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
19663 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
19664 Include conf/gcry.rmk.
19665 * include/grub/auth.h: Rewritten.
19666 * include/grub/crypto.h: New file.
19667 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
19668 * include/grub/normal.h (read_crypto_list): New prototype.
19669 * lib/crypto.c: New file.
19670 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
19671 * lib/pbkdf2.c: Likewise.
19672 * normal/auth.c (grub_auth_strcmp): Removed.
19673 (grub_iswordseparator): Likewise.
19674 (grub_auth_strword): Likewise.
19675 (is_authenticated): Use grub_strword.
19676 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
19677 and grub_strword. Pass entered password to authentication callback.
19678 * normal/crypto.c: New file.
19679 * normal/main.c: Call read_crypto_list.
19680 * util/grub-mkpasswd-pbkdf2.c: New file.
19681 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
19682
19683 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
19684
19685 Fix descent and ascent calculation.
19686
19687 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
19688 (options): New option "asce".
19689 (usage): Likewise.
19690 (add_char): Ignore invalid glyphs for descent calculation.
19691 Calculate ascent from actual content.
19692 (print_glyphs): Use 'asce'.
19693 (write_font): Likewise. Allow ascent override.
19694 (main): Handle "asce" option.
19695
19696 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19697
19698 * kern/err.c: Include `<grub/i18n.h>'.
19699 (grub_print_error): Add full stop. Gettextizze.
19700 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
19701 (grub_bsd_load_elf): Capitalise ELF.
19702 (grub_cmd_freebsd_loadenv): Add `s' in error string.
19703 (grub_cmd_freebsd_module): Likewise.
19704 (grub_cmd_freebsd_module_elf): Likewise.
19705 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
19706
19707 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19708
19709 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
19710 * commands/search_file.c (HELP_MESSAGE): New macro.
19711 * commands/search_label.c (HELP_MESSAGE): Likewise.
19712 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
19713 * po/POTFILES: Add `commands/search_file.c',
19714 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
19715 `commands/search.c'.
19716
19717 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19718
19719 * config.rpath: Update from Gnulib.
19720
19721 2010-01-05 Yves Blusseau <blusseau@zetam.org>
19722
19723 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
19724
19725 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
19726
19727 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
19728
19729 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19730
19731 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
19732 arguments to fread so that we get a return value in bytes, rather
19733 than something that will normally be rounded down to 0.
19734 Adjust error handling to avoid producing garbage when size_t is not
19735 the same size as long long.
19736
19737 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19738
19739 * util/mkisofs/write.c (padblock_write): Check return value of
19740 fread.
19741
19742 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19743
19744 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
19745 floppy images now.
19746
19747 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
19748
19749 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19750
19751 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
19752 instead of manual alignment.
19753 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
19754 verbose). Avoid attempts to read past end of the device
19755 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
19756 but GRUB_DISK_CACHE_SIZE may exceed that).
19757
19758 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19759
19760 * commands/crc.c (grub_cmd_crc): Abort on read errors.
19761 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
19762 it to upper layer.
19763
19764 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19765
19766 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
19767 New constant.
19768 (grub_efi_piwg_device_path): New structure
19769 (grub_efi_piwg_device_path_t): New type.
19770 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
19771 (devpath_1): Transform to a structure. All users updated.
19772 (devpath_2): Likewise.
19773 (devpath_3): Likewise.
19774 (devpath_4): Likewise.
19775 (devpath_5): Likewise.
19776
19777 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19778
19779 * loader/efi/appleloader.c: Restored. Update all users.
19780
19781 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19782
19783 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
19784
19785 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
19786 (struct boot_blocklist): Move from here ...
19787 * include/grub/i386/pc/boot.h [ASM_FILE]
19788 (struct grub_boot_blocklist): ... to here. Update all users.
19789 (setup): Only initialize `start' member of `first_block'
19790 structure. Add assert() calls to verify the other members.
19791
19792 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
19793 (generate_image): Fix broken blocklist length initialization.
19794 Add assert() call to verify blocklist `segment' field.
19795
19796 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19797
19798 * loader/efi/appleloader.c: Remove. Update all users.
19799
19800 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19801
19802 * boot/i386/pc/boot.S: Update copyright year.
19803 * boot/i386/pc/cdboot.S: Likewise.
19804 * boot/i386/pc/diskboot.S: Likewise.
19805 * boot/i386/pc/lnxboot.S: Likewise.
19806 * boot/i386/pc/pxeboot.S: Likewise.
19807 * bus/pci.c: Likewise.
19808 * commands/cmp.c: Likewise.
19809 * commands/help.c: Likewise.
19810 * commands/hexdump.c: Likewise.
19811 * commands/i386/pc/halt.c: Likewise.
19812 * commands/i386/pc/play.c: Likewise.
19813 * commands/i386/pc/vbeinfo.c: Likewise.
19814 * commands/ls.c: Likewise.
19815 * commands/test.c: Likewise.
19816 * disk/dmraid_nvidia.c: Likewise.
19817 * disk/i386/pc/biosdisk.c: Likewise.
19818 * disk/ieee1275/nand.c: Likewise.
19819 * disk/ieee1275/ofdisk.c: Likewise.
19820 * disk/lvm.c: Likewise.
19821 * disk/raid.c: Likewise.
19822 * disk/raid6_recover.c: Likewise.
19823 * disk/scsi.c: Likewise.
19824 * fs/affs.c: Likewise.
19825 * fs/cpio.c: Likewise.
19826 * fs/ext2.c: Likewise.
19827 * fs/hfs.c: Likewise.
19828 * fs/iso9660.c: Likewise.
19829 * fs/ntfs.c: Likewise.
19830 * fs/sfs.c: Likewise.
19831 * fs/udf.c: Likewise.
19832 * fs/ufs.c: Likewise.
19833 * fs/xfs.c: Likewise.
19834 * gencmdlist.sh: Likewise.
19835 * genmk.rb: Likewise.
19836 * include/grub/disk.h: Likewise.
19837 * include/grub/efi/api.h: Likewise.
19838 * include/grub/efi/efi.h: Likewise.
19839 * include/grub/efi/pe32.h: Likewise.
19840 * include/grub/elf.h: Likewise.
19841 * include/grub/fs.h: Likewise.
19842 * include/grub/i386/at_keyboard.h: Likewise.
19843 * include/grub/i386/pc/memory.h: Likewise.
19844 * include/grub/i386/pc/vbe.h: Likewise.
19845 * include/grub/i386/pci.h: Likewise.
19846 * include/grub/i386/tsc.h: Likewise.
19847 * include/grub/ieee1275/ieee1275.h: Likewise.
19848 * include/grub/ntfs.h: Likewise.
19849 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
19850 * include/grub/sparc64/libgcc.h: Likewise.
19851 * include/grub/symbol.h: Likewise.
19852 * include/grub/types.h: Likewise.
19853 * include/multiboot2.h: Likewise.
19854 * io/gzio.c: Likewise.
19855 * kern/device.c: Likewise.
19856 * kern/disk.c: Likewise.
19857 * kern/efi/efi.c: Likewise.
19858 * kern/efi/mm.c: Likewise.
19859 * kern/elf.c: Likewise.
19860 * kern/file.c: Likewise.
19861 * kern/i386/dl.c: Likewise.
19862 * kern/i386/pc/init.c: Likewise.
19863 * kern/i386/pc/startup.S: Likewise.
19864 * kern/ieee1275/ieee1275.c: Likewise.
19865 * kern/ieee1275/init.c: Likewise.
19866 * kern/main.c: Likewise.
19867 * kern/mm.c: Likewise.
19868 * kern/powerpc/dl.c: Likewise.
19869 * kern/sparc64/dl.c: Likewise.
19870 * kern/x86_64/dl.c: Likewise.
19871 * lib/hexdump.c: Likewise.
19872 * loader/efi/appleloader.c: Likewise.
19873 * loader/i386/ieee1275/linux.c: Likewise.
19874 * loader/i386/pc/chainloader.c: Likewise.
19875 * loader/i386/pc/linux.c: Likewise.
19876 * loader/i386/pc/multiboot2.c: Likewise.
19877 * loader/ieee1275/multiboot2.c: Likewise.
19878 * loader/multiboot2.c: Likewise.
19879 * loader/multiboot_loader.c: Likewise.
19880 * loader/powerpc/ieee1275/linux.c: Likewise.
19881 * normal/completion.c: Likewise.
19882 * normal/menu_entry.c: Likewise.
19883 * partmap/apple.c: Likewise.
19884 * util/grub.d/10_hurd.in: Likewise.
19885 * util/hostfs.c: Likewise.
19886 * video/readers/png.c: Likewise.
19887
19888 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
19889
19890 * include/grub/misc.h (GNUC_PREREQ): New macro.
19891 (ATTRIBUTE_ERROR): New macro.
19892 * include/grub/list.h (grub_bad_type_cast_real): Use
19893 ATTRIBUTE_ERROR.
19894
19895 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19896
19897 * normal/menu_text.c (print_message): Change messages.
19898
19899 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19900
19901 * normal/menu_entry.c (store_completion): Gettextizze.
19902
19903 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19904
19905 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
19906
19907 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19908
19909 * po/POTFILES: Sort correctly.
19910
19911 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19912
19913 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
19914 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
19915 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
19916 full stop.
19917 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
19918 summary. Gettextizze the strings.
19919 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
19920 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
19921 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
19922 full stop.
19923 (GRUB_MOD_INIT): Remove command name from summary.
19924 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
19925 summary.
19926 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
19927 * term/i386/pc/serial.c (options): Add full stops.
19928 (GRUB_MOD_INIT): Remove command name from the summary.
19929
19930 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19931
19932 * commands/acpi.c: Gettextizze help strings and/or options. Include
19933 `grub/i18n.h' if needed.
19934 * commands/blocklist.c: Likewise.
19935 * commands/boot.c: Likewise.
19936 * commands/cat.c: Likewise.
19937 * commands/cmp.c: Likewise.
19938 * commands/configfile.c: Likewise.
19939 * commands/crc.c: Likewise.
19940 * commands/date.c: Likewise.
19941 * commands/echo.c: Likewise.
19942 * commands/efi/fixvideo.c: Likewise.
19943 * commands/efi/loadbios.c: Likewise.
19944 * commands/gptsync.c: Likewise.
19945 * commands/halt.c: Likewise.
19946 * commands/handler.c: Likewise.
19947 * commands/hdparm.c: Likewise.
19948 * commands/hexdump.c: Likewise.
19949 * commands/i386/cpuid.c: Likewise.
19950 * commands/i386/pc/drivemap.c: Likewise.
19951 * commands/i386/pc/halt.c: Likewise.
19952 * commands/i386/pc/pxecmd.c: Likewise.
19953 * commands/i386/pc/vbeinfo.c: Likewise.
19954 * commands/i386/pc/vbetest.c: Likewise.
19955 * commands/ieee1275/suspend.c: Likewise.
19956 * commands/keystatus.c: Likewise.
19957 * commands/loadenv.c: Likewise.
19958 * commands/ls.c: Likewise.
19959 * commands/lsmmap.c: Likewise.
19960 * commands/lspci.c: Likewise.
19961 * commands/memrw.c: Likewise.
19962 * commands/minicmd.c: Likewise.
19963 * commands/parttool.c: Likewise.
19964 * commands/password.c: Likewise.
19965 * commands/probe.c: Likewise.
19966 * commands/read.c: Likewise.
19967 * commands/reboot.c: Likewise.
19968 * commands/search.c: Likewise.
19969 * commands/sleep.c: Likewise.
19970 * commands/test.c: Likewise.
19971 * commands/true.c: Likewise.
19972 * commands/usbtest.c: Likewise.
19973 * commands/videotest.c: Likewise.
19974 * commands/xnu_uuid.c: Likewise.
19975 * disk/loopback.c: Likewise.
19976 * hello/hello.c: Likewise.
19977 * loader/i386/bsd.c: Likewise.
19978 * term/i386/pc/serial.c: Likewise.
19979 * po/POTFILES: Add new files.
19980
19981 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
19982
19983 * term/i386/pc/at_keyboard.c
19984 (keyboard_controller_wait_untill_ready): Rename to ...
19985 (keyboard_controller_wait_until_ready): ... this. Update all users.
19986
19987 2010-01-01 Carles Pina i Estany <carles@pina.cat>
19988
19989 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
19990 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
19991 string using string width.
19992 * normal/menu_text.c (grub_print_message_indented): Use
19993 grub_print_spaces and not print_spaces.
19994 (print_timeout): Likewise.
19995 (print_spaces): Move to...
19996 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
19997
19998 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
19999
20000 Import from Gnulib.
20001
20002 * gnulib/getdelim.c: New file.
20003 * gnulib/getline.c: Likewise.
20004
20005 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
20006
20007 * include/grub/list.h (grub_assert_fail): Removed.
20008 (grub_bad_type_cast_real): New function.
20009 (grub_bad_type_cast): New macro.
20010 (GRUB_AS_LIST): Use grub_bad_type_cast.
20011 (GRUB_AS_LIST_P): Likewise.
20012 (GRUB_AS_NAMED_LIST): Likewise.
20013 (GRUB_AS_NAMED_LIST_P): Likewise.
20014 (GRUB_AS_PRIO_LIST): Likewise.
20015 (GRUB_AS_PRIO_LIST_P): Likewise.
20016 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
20017
20018 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
20019
20020 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
20021 Fix syntax error.
20022
20023 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
20024
20025 * configure.ac: Check for TARGET_CFLAGS initialization before we
20026 initialize it ourselves (sigh).
20027 Move a few modifications to TARGET_CFLAGS to be unconditional
20028 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
20029 eh_frame)
20030
20031 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
20032 * term/i386/pc/at_keyboard.c
20033 (keyboard_controller_wait_untill_ready): Likewise.
20034 (keyboard_controller_led): Rename `led_status' paramter to avoid
20035 name conflict.
20036
20037 2009-12-28 Carles Pina i Estany <carles@pina.cat>
20038
20039 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
20040 quotes.
20041
20042 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20043
20044 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
20045
20046 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20047
20048 * normal/menu_text.c (grub_print_message_indented): Prevent
20049 past-the-end-of-array dereference.
20050
20051 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20052
20053 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
20054 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
20055
20056 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20057
20058 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
20059 * normal/main.c (grub_normal_read_line): Remove a space from the
20060 default prompt.
20061
20062 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20063
20064 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
20065 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20066 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20067 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20068 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20069 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20070 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20071
20072 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20073
20074 * video/readers/jpeg.c (cmd): Declare.
20075 (grub_cmd_jpegtest): Use `grub_command_t' type.
20076 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20077 Assign to `cmd'.
20078 (GRUB_MOD_FINI): Use `cmd' to unregister.
20079 * video/readers/png.c (cmd): Declare.
20080 (grub_cmd_pngtest): Use `grub_command_t' type.
20081 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20082 Assign to `cmd'.
20083 (GRUB_MOD_FINI): Use `cmd' to unregister.
20084 * video/readers/tga.c (cmd): Declare.
20085 (grub_cmd_tgatest): Use `grub_command_t' type.
20086 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20087 Assign to `cmd'.
20088 (GRUB_MOD_FINI): Use `cmd' to unregister.
20089
20090 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20091
20092 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
20093 stops.
20094 * kern/corecmd.c (grub_register_core_commands): Likewise.
20095 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
20096 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20097 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
20098 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20099 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20100 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
20101 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20102 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
20103 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20104 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20105 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20106 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20107 * normal/handler.c (insert_handler): Likewise.
20108 * normal/main.c (GRUB_MOD_INIT): Likewise.
20109 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20110
20111 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20112
20113 * commands/help.c (grub_cmd_help): Print the command name before the
20114 summary.
20115 (GRUB_MOD_INIT): Remove command name from the summary.
20116 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
20117 string as summary.
20118 * lib/arg.c (find_long): Print the command name before the summary.
20119 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
20120 summary.
20121 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
20122 * commands/cat.c (GRUB_MOD_INIT): Likewise.
20123 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
20124 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
20125 * commands/crc.c (GRUB_MOD_INIT): Likewise.
20126 * commands/date.c (GRUB_MOD_INIT): Likewise.
20127 * commands/echo.c (GRUB_MOD_INIT): Likewise.
20128 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
20129 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20130 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20131 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
20132 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
20133 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
20134 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
20135 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20136 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
20137 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
20138 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
20139 * commands/ls.c (GRUB_MOD_INIT): Likewise.
20140 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20141 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20142 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20143 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
20144 * commands/password.c (GRUB_MOD_INIT): Likewise.
20145 * commands/probe.c (GRUB_MOD_INIT): Likewise.
20146 * commands/read.c (GRUB_MOD_INIT): Likewise.
20147 * commands/search.c (GRUB_MOD_INIT): Likewise.
20148 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
20149 * commands/test.c (GRUB_MOD_INIT): Likewise.
20150 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
20151 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20152 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20153 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
20154 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20155 * lib/arg.c (GRUB_MOD_INIT): Likewise.
20156 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
20157 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20158 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20159 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20160 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20161 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
20162 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
20163 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
20164
20165 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20166
20167 Use search command for preliminar UUID search.
20168
20169 * commands/search.c: Split into ...
20170 * commands/search_wrap.c: ...this
20171 * commands/search.c: ...and this.
20172 * commands/search_file.c: New file.
20173 * commands/search_label.c: New file.
20174 * commands/search_uuid.c: New file.
20175 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
20176 Add commands/search_wrap.c, commands/search_file.c,
20177 commands/search_label.c and commands/search_uuid.c.
20178 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
20179 (search_mod_SOURCES): Set to commands/search_wrap.c.
20180 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
20181 search_label.mod.
20182 (search_fs_file_mod_SOURCES): New variable.
20183 (search_fs_file_mod_CFLAGS): Likewise.
20184 (search_fs_file_mod_LDFLAGS): Likewise.
20185 (search_label_mod_SOURCES): Likewise.
20186 (search_label_mod_CFLAGS): Likewise.
20187 (search_label_mod_LDFLAGS): Likewise.
20188 (search_fs_uuid_mod_SOURCES): New variable.
20189 (search_fs_uuid_mod_CFLAGS): Likewise.
20190 (search_fs_uuid_mod_LDFLAGS): Likewise.
20191 (fs_file_mod_SOURCES): Removed.
20192 (fs_file_mod_CFLAGS): Likewise.
20193 (fs_file_mod_LDFLAGS): Likewise.
20194 (fs_uuid_mod_SOURCES): Removed.
20195 (fs_uuid_mod_CFLAGS): Likewise.
20196 (fs_uuid_mod_LDFLAGS): Likewise.
20197 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
20198 Set to util/grub-install.in.
20199 * disk/fs_file.c: Removed.
20200 * disk/fs_uuid.c: Likewise.
20201 * include/grub/search.h: New file.
20202 * util/grub-install.in: Handle sparc64.
20203 Create and use load.cfg.
20204 * util/sparc64/ieee1275/grub-install.in: Removed.
20205
20206 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20207
20208 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
20209 Ignore return status if CF is cleared.
20210 (grub_biosdisk_get_diskinfo_standard): Likewise.
20211
20212 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20213
20214 * term/i386/pc/at_keyboard.c
20215 (keyboard_controller_wait_untill_ready): New function.
20216 (grub_keyboard_controller_write, grub_keyboard_controller_read)
20217 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
20218 for keyboard polling, rather than duplicate the same loop. This
20219 saves a few bytes in code size.
20220
20221 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20222
20223 Support for (pxe[:server[:gateway]]) syntax and
20224 use environment variable for PXE.
20225
20226 * commands/i386/pc/pxecmd.c (options): Removed.
20227 (print_ip): Removed.
20228 (grub_cmd_pxe): Removed
20229 (grub_cmd_pxe_unload): New function.
20230 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
20231 (grub_pxe_your_ip): Made static.
20232 (grub_pxe_default_server_ip): Likewise.
20233 (grub_pxe_default_gateway_ip): Likewise.
20234 (grub_pxe_blksize): Likewise.
20235 (parse_ip): New function.
20236 (grub_pxe_open): Support server and gateway specification.
20237 (grub_pxe_close): Free disk->data.
20238 (grub_pxefs_open): Use disk->data.
20239 (grub_pxefs_read): Likewise.
20240 (grub_env_write_readonly): New function.
20241 (set_mac_env): Likewise.
20242 (set_env_limn_ro): Likewise.
20243 (parse_dhcp_vendor): Likewise.
20244 (grub_pxe_detect): Set the environment variables.
20245 (set_ip_env): New function.
20246 (write_ip_env): Likewise.
20247 (grub_env_write_pxe_default_server): Likewise.
20248 (grub_env_write_pxe_default_gateway): Likewise.
20249 (grub_env_write_pxe_blocksize): Likewise.
20250 (GRUB_MOD_INIT(pxe)): Set environment variables.
20251 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
20252 (grub_pxe_mac_addr_t): ... this. All users updated.
20253 (grub_pxe_your_ip): Removed.
20254 (grub_pxe_server_ip): Likewise.
20255 (grub_pxe_gateway_ip): Likewise.
20256 (grub_pxe_blksize): Likewise.
20257
20258 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20259
20260 * commands/help.c: Include `<grub/i18n.h>'.
20261 (grub_cmd_help): Gettextizze.
20262 (GRUB_MOD_INIT): Likewise.
20263 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
20264 (GRUB_MOD_INIT): Gettextizze.
20265 * commands/search.c: Include `<grub/i18n.h>'.
20266 (options): Gettextizze.
20267 (GRUB_MOD_INIT): Gettextizze.
20268 * lib/arg.c: Include `<grub/i18n.h>'.
20269 (help_options): Gettextizze.
20270 (find_long): Likewise.
20271 (grub_arg_show_help): Likewise.
20272 * normal/dyncmd.c: Include `<grub/i18n.h>'.
20273 (read_command_list): Gettextizze.
20274 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
20275 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
20276
20277 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20278
20279 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
20280 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
20281 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
20282 (led_status): New variable.
20283 (keyboard_controller_led): New function.
20284 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
20285 update led status for caps lock, num lock and scroll lock.
20286
20287 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
20288
20289 * util/hostdisk.c (open_device): Fix a comment.
20290
20291 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20292
20293 * util/grub-install.in (host_os): New variable.
20294 * util/i386/efi/grub-install.in (host_os): Likewise.
20295
20296 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20297
20298 * util/mkisofs/write.c (padblock_write): Abort when given an
20299 excedingly large embed image, instead of silently truncating it.
20300
20301 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20302
20303 * include/multiboot.h: Indentation fixes.
20304
20305 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20306
20307 * include/multiboot.h (struct multiboot_aout_symbol_table)
20308 (struct multiboot_elf_section_header_table): New structure
20309 declarations (stolen from GRUB Legacy).
20310 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
20311 table information.
20312
20313 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
20314 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
20315 type aliases.
20316
20317 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20318
20319 * include/multiboot.h: Make comments src2texi-friendly.
20320
20321 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20322
20323 For consistency with [multiboot]/docs/boot.S.
20324
20325 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
20326 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
20327 (MULTIBOOT_MAGIC2): Rename from this ...
20328 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
20329
20330 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20331
20332 * include/multiboot.h: Remove `<grub/types.h>'.
20333 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
20334 types. Update all users.
20335
20336 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20337
20338 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
20339 `couldn't' and `can not' by `cannot'.
20340 * commands/i386/pc/drivemap.c: Likewise.
20341 * disk/ata.c: Likewise.
20342 * disk/ieee1275/nand.c: Likewise.
20343 * fs/affs.c: Likewise.
20344 * fs/fat.c: Likewise.
20345 * fs/hfs.c: Likewise.
20346 * fs/hfsplus.c: Likewise.
20347 * fs/iso9660.c: Likewise.
20348 * fs/jfs.c: Likewise.
20349 * fs/minix.c: Likewise.
20350 * fs/reiserfs.c: Likewise.
20351 * fs/sfs.c: Likewise.
20352 * fs/udf.c: Likewise.
20353 * fs/ufs.c: Likewise.
20354 * fs/xfs.c: Likewise.
20355 * loader/powerpc/ieee1275/linux.c: Likewise.
20356 * loader/sparc64/ieee1275/linux.c: Likewise.
20357 * util/grub-probe.c: Likewise.
20358 * util/misc.c: Likewise.
20359
20360 2009-12-24 Carles Pina i Estany <carles@pina.cat>
20361
20362 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
20363 grub_errno calls.
20364 * commands/acpi.c: Likewise.
20365 * commands/blocklist.c: Likewise.
20366 * commands/efi/loadbios.c: Likewise.
20367 * commands/i386/pc/drivemap.c: Likewise.
20368 * commands/loadenv.c: Likewise.
20369 * commands/memrw.c: Likewise.
20370 * commands/password.c: Likewise.
20371 * commands/videotest.c: Likewise.
20372 * disk/ata.c: Likewise.
20373 * disk/ata_pthru.c: Likewise.
20374 * disk/dmraid_nvidia.c: Likewise.
20375 * disk/ieee1275/nand.c: Likewise.
20376 * disk/ieee1275/ofdisk.c: Likewise.
20377 * disk/loopback.c: Likewise.
20378 * disk/lvm.c: Likewise.
20379 * disk/mdraid_linux.c: Likewise.
20380 * disk/raid.c: Likewise.
20381 * disk/raid6_recover.c: Likewise.
20382 * disk/scsi.c: Likewise.
20383 * efiemu/main.c: Likewise.
20384 * efiemu/mm.c: Likewise.
20385 * efiemu/pnvram.c: Likewise.
20386 * efiemu/symbols.c: Likewise.
20387 * font/font.c: Likewise.
20388 * fs/cpio.c: Likewise.
20389 * fs/hfsplus.c: Likewise.
20390 * fs/iso9660.c: Likewise.
20391 * fs/jfs.c: Likewise.
20392 * fs/minix.c: Likewise.
20393 * fs/ntfs.c: Likewise.
20394 * fs/ntfscomp.c: Likewise.
20395 * fs/reiserfs.c: Likewise.
20396 * fs/ufs.c: Likewise.
20397 * fs/xfs.c: Likewise.
20398 * gettext/gettext.c: Likewise.
20399 * include/grub/auth.h: Likewise.
20400 * kern/elf.c: Likewise.
20401 * kern/file.c: Likewise.
20402 * kern/ieee1275/init.c: Likewise.
20403 * kern/ieee1275/mmap.c: Likewise.
20404 * kern/ieee1275/openfw.c: Likewise.
20405 * kern/powerpc/dl.c: Likewise.
20406 * kern/sparc64/dl.c: Likewise.
20407 * lib/arg.c: Likewise.
20408 * loader/i386/bsd.c: Likewise.
20409 * loader/i386/bsdXX.c: Likewise.
20410 * loader/i386/efi/linux.c: Likewise.
20411 * loader/i386/efi/xnu.c: Likewise.
20412 * loader/i386/ieee1275/linux.c: Likewise.
20413 * loader/i386/linux.c: Likewise.
20414 * loader/i386/multiboot.c: Likewise.
20415 * loader/i386/pc/linux.c: Likewise.
20416 * loader/i386/pc/multiboot2.c: Likewise.
20417 * loader/i386/xnu.c: Likewise.
20418 * loader/ieee1275/multiboot2.c: Likewise.
20419 * loader/macho.c: Likewise.
20420 * loader/machoXX.c: Likewise.
20421 * loader/multiboot2.c: Likewise.
20422 * loader/multiboot_loader.c: Likewise.
20423 * loader/powerpc/ieee1275/linux.c: Likewise.
20424 * loader/sparc64/ieee1275/linux.c: Likewise.
20425 * loader/xnu.c: Likewise.
20426 * loader/xnu_resume.c: Likewise.
20427 * mmap/i386/pc/mmap.c: Likewise.
20428 * normal/menu_viewer.c: Likewise.
20429 * partmap/acorn.c: Likewise.
20430 * partmap/amiga.c: Likewise.
20431 * partmap/apple.c: Likewise.
20432 * script/lexer.c: Likewise.
20433 * term/gfxterm.c: Likewise.
20434 * term/i386/pc/serial.c: Likewise.
20435 * term/i386/pc/vga.c: Likewise.
20436 * term/ieee1275/ofconsole.c: Likewise.
20437 * term/terminfo.c: Likewise.
20438 * video/bitmap.c: Likewise.
20439 * video/efi_gop.c: Likewise.
20440 * video/efi_uga.c: Likewise.
20441 * video/fb/video_fb.c: Likewise.
20442 * video/i386/pc/vbe.c: Likewise.
20443 * video/readers/tga.c: Likewise.
20444 * video/video.c: Likewise.
20445
20446 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
20447
20448 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
20449 * commands/lspci.c: Likewise.
20450 * commands/probe.c: Likewise.
20451 * commands/xnu_uuid.c: Likewise.
20452 * conf/i386-coreboot.rmk: Likewise.
20453 * conf/i386-efi.rmk: Likewise.
20454 * conf/i386-ieee1275.rmk: Likewise.
20455 * conf/i386-pc.rmk: Likewise.
20456 * conf/powerpc-ieee1275.rmk: Likewise.
20457 * conf/sparc64-ieee1275.rmk: Likewise.
20458 * conf/x86_64-efi.rmk: Likewise.
20459 * fs/i386/pc/pxe.c: Likewise.
20460 * gettext/gettext.c: Likewise.
20461 * include/grub/efi/graphics_output.h: Likewise.
20462 * include/grub/i386/pc/memory.h: Likewise.
20463 * kern/env.c: Likewise.
20464 * kern/i386/qemu/startup.S: Likewise.
20465 * lib/i386/pc/biosnum.c: Likewise.
20466 * lib/i386/relocator.c: Likewise.
20467 * lib/i386/relocator_asm.S: Likewise.
20468 * lib/relocator.c: Likewise.
20469 * loader/i386/bsd.c: Likewise.
20470 * loader/i386/multiboot.c: Likewise.
20471 * loader/i386/pc/chainloader.c: Likewise.
20472 * loader/i386/xnu.c: Likewise.
20473 * loader/xnu.c: Likewise.
20474 * normal/main.c: Likewise.
20475 * normal/menu_text.c: Likewise.
20476 * util/getroot.c: Likewise.
20477 * util/grub-mkconfig_lib.in: Likewise.
20478 * util/grub.d/00_header.in: Likewise.
20479 * util/i386/pc/grub-mkimage.c: Likewise.
20480 * util/mkisofs/eltorito.c: Likewise.
20481 * util/mkisofs/exclude.h: Likewise.
20482 * util/mkisofs/hash.c: Likewise.
20483 * util/mkisofs/iso9660.h: Likewise.
20484 * util/mkisofs/joliet.c: Likewise.
20485 * util/mkisofs/mkisofs.c: Likewise.
20486 * util/mkisofs/mkisofs.h: Likewise.
20487 * util/mkisofs/multi.c: Likewise.
20488 * util/mkisofs/name.c: Likewise.
20489 * util/mkisofs/rock.c: Likewise.
20490 * util/mkisofs/tree.c: Likewise.
20491 * util/mkisofs/write.c: Likewise.
20492 * video/efi_gop.c: Likewise.
20493
20494 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
20495
20496 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
20497 size counting.
20498
20499 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20500
20501 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
20502 * genmk.rb (class SCRIPT): Modify the target file instead of source.
20503
20504 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20505
20506 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
20507 (GRUB_MOD_INIT(memrw)): Update help line.
20508
20509 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20510
20511 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
20512 Use grub_extcmd_t. All users updated.
20513 (options): New variable.
20514 (grub_cmd_read): Restructure for readability. Support "-v" option.
20515 (grub_cmd_write): Restructure for readability.
20516
20517 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20518
20519 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
20520
20521 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20522
20523 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
20524 with the actual contents of the correspondending make variable.
20525 * util/grub-mkrescue.in (pkglib_DATA): New variable.
20526 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
20527 specifying `*.lst' and `efiemu??.o'
20528
20529 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20530
20531 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
20532 after function name.
20533 Noticed by Rene Engelhard <rene@debian.org>.
20534
20535 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20536
20537 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
20538 (options): New variable.
20539 (iospace): Likewise.
20540 (grub_lspci_iter): List IO spaces if "-i" was given.
20541 (grub_cmd_lspci): Parse options.
20542 (GRUB_MOD_INIT(lspci)): Use extcmd.
20543 (GRUB_MOD_FINI(lspci)): Likewise.
20544
20545 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20546
20547 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
20548 `function' keyword.
20549 Patch by Tony Mancill <tmancill@debian.org>.
20550
20551 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20552
20553 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
20554 (grub_uhci_portstatus): Likewise.
20555 (grub_uhci_portstatus): Add necessary delay.
20556 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
20557
20558 2009-12-21 Carles Pina i Estany <carles@pina.cat>
20559
20560 * commands/acpi.c (options): Fix capitalizations and/or full stops.
20561 (GRUB_MOD_INIT): Likewise.
20562 * commands/boot.c (GRUB_MOD_INIT): Likewise.
20563 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
20564 * commands/echo.c (options): Fix capitalizations and/or full stops.
20565 * commands/efi/loadbios.c (enable_rom_area): Likewise.
20566 (enable_rom_area): Likewise.
20567 (GRUB_MOD_INIT): Likewise.
20568 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20569 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
20570 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20571 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
20572 * commands/hexdump.c (options): Likewise.
20573 * commands/i386/cpuid.c (options): Likewise.
20574 (GRUB_MOD_INIT): Likewise.
20575 * commands/i386/pc/drivemap.c (options): Likewise.
20576 (GRUB_MOD_INIT): Likewise.
20577 * commands/i386/pc/halt (options): Likewise.
20578 (GRUB_MOD_INIT): Likewise.
20579 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20580 * commands/i386/pc/pxecmd.c (options): Likewise.
20581 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
20582 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
20583 * commands/keystatus.c (options): Likewise.
20584 (GRUB_MOD_INIT): Likewise.
20585 * commands/loadenv.c (options): Likewise.
20586 * commands/ls.c (options): Likewise.
20587 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20588 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20589 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20590 * commands/parttool.c (helpmsg): Likewise.
20591 * commands/probe.c (options): Likewise.
20592 * commands/read.c (GRUB_MOD_INIT): Likewise.
20593 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
20594 * commands/search.c (options): Likewise.
20595 * commands/sleep.c (options): Likewise.
20596 * commands/test.c (GRUB_MOD_INIT): Likewise.
20597 * commands/true.c (GRUB_MOD_INIT): Likewise.
20598 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
20599 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
20600 * lib/arg.c (help_options): Likewise.
20601 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
20602 `$(XGETTEXT)'.
20603 * po/POTFILES: Add `commands/loadenv.c'.
20604
20605 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
20606
20607 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
20608 instead of specifying them explicit.
20609
20610 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20611
20612 * NEWS: Add grub-probe support for GNU/Hurd.
20613
20614 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20615
20616 * NEWS: gettext was added after 1.97.
20617
20618 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20619
20620 * util/mkisofs/msdos_partition.h: New file (based on
20621 include/grub/msdos_partition.h).
20622 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
20623 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
20624 (ld_options, main): Recognize --protective-msdos-label.
20625 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
20626 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
20627 (padblock_write): If `use_protective_msdos_label' is set, patch a
20628 protective DOS-style label in the output image.
20629
20630 * util/grub-mkrescue.in: Use --protective-msdos-label.
20631
20632 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20633
20634 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
20635 boot.
20636
20637 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20638
20639 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
20640 variables.
20641 (ld_options, main): Recognize `--embedded-boot'.
20642 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
20643 declarations.
20644 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
20645 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
20646 (padblock_write): Likewise. Rewrite to support embedded boot image.
20647
20648 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
20649 for BIOS-based disk boot instead of only ElTorito.
20650
20651 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20652
20653 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
20654 build (not needed for bootstrap).
20655
20656 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20657
20658 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
20659 from i386-pc build (not needed for bootstrap).
20660 Rewrite a pair of strings.
20661
20662 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20663
20664 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
20665
20666 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
20667
20668 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
20669
20670 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20671
20672 * kern/env.c (grub_env_context_open): Mark exported variable for
20673 reexport.
20674
20675 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20676
20677 * kern/env.c (grub_env_export): Create nonexistent variables before
20678 exporting.
20679
20680 2009-12-20 Carles Pina i Estany <carles@pina.cat>
20681
20682 * include/grub/auth.h: Include `<grub/i18n.h>'.
20683 (GRUB_GET_PASSWORD): Gettextizze string.
20684 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
20685 menu_text.c.
20686 (grub_utf8_to_ucs4_alloc): Fix indentation.
20687 (grub_print_ucs4): Likewise.
20688 (grub_getstringwidth): Likewise.
20689 (print_message_indented): New declaration.
20690 * normal/auth.c: Include `<grub/i18n.h>'.
20691 (grub_auth_check_authentication): Gettexttize string.
20692 * normal/cmdline.c: Include `<grub/i18n.h>'.
20693 (grub_cmdline_get): Gettextizze.
20694 * normal/color.c: Include `<grub/i18n.h>'.
20695 (grub_parse_color_name_pair): Gettexttize strings.
20696 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
20697 string (use `print_message_indented').
20698 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
20699 `include/grub/normal.h'.
20700 (print_message_indented): Renamed to ...
20701 (grub_print_message_indented): ... this. Remove `static' qualifer (now
20702 used in normal/main.c).
20703 (print_message): Use `grub_print_message_indented' instead of
20704 `print_message_indented'.
20705 (print_timeout): Likewise.
20706 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
20707 (grub_normal_print_device_info): Gettexttize strings.
20708 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
20709
20710 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20711
20712 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
20713 of arguments. Return number of tokens and not arguments. All users
20714 updated.
20715
20716 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20717
20718 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
20719 non-MSDOS paritions.
20720
20721 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20722
20723 * include/grub/types.h (UNUSED): Removed since it conflicts with
20724 NetBSD headers. All users changed to direct __attribute__ ((unused)).
20725 Reported by Grégoire Sutre.
20726
20727 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20728
20729 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
20730 (grub_print_ucs4_alloc): Likewise.
20731 (grub_getstringwidth): Likewise.
20732 * normal/main.c (grub_normal_init_page): Gettextize version string.
20733 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
20734 (getstringwidth): Renamed to ...
20735 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
20736 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
20737 (grub_print_ucs4): Remove `static' qualifer (now used in
20738 normal/main.c).
20739 * po/POTFILES: Add normal/main.c.
20740
20741 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20742
20743 * normal/menu_text.c (STANDARD_MARGIN): New macro.
20744 (print_message_indented): Add `margin_left' and `margin_right'
20745 parameters.
20746 (print_message): Update `print_message_indented' calls. Adds '\n' to the
20747 strings.
20748 (print_timeout): Use `print_message_indented' to print the message.
20749 Deletes `second_stage' parameter.
20750 (run_menu): Update `print_timeout' calls.
20751
20752 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20753
20754 Fix console palette on OpenFirmware.
20755
20756 * term/ieee1275/ofconsole.c (MAX): Removed.
20757 (colors): Redone based on VGA palette.
20758 (grub_ofconsole_setcolor): Discard brightness bit since only 8
20759 colors are supported.
20760 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
20761
20762 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20763
20764 Fix potential EfiEmu double prepare.
20765
20766 * efiemu/main.c (prepared): New variable
20767 (grub_efiemu_unload): Set prepare to '0'.
20768 (grub_efiemu_prepare): Return if already prepared. Set prepared.
20769
20770 set_virtual_address_map support.
20771
20772 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
20773 prototype.
20774 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
20775 prototype.
20776 (grub_efiemu_crc32): Likewise.
20777 (grub_efiemu_crc64): Likewise.
20778 (grub_efiemu_set_virtual_address_map): Likewise.
20779 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
20780 New definition.
20781 (grub_autoefi_set_virtual_address_map): Likewise.
20782 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
20783 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
20784 Restructure flow to accomodate it.
20785 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
20786 (grub_efiemu_crc): Recompute CRC32.
20787 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
20788 (efiemu_ptv_relocated): ... this. Made global. All users updated.
20789 * efiemu/symbols.c (relocated_handle): New variable.
20790 (grub_efiemu_free_syms): Free relocated_handle.
20791 (grub_efiemu_alloc_syms): Allocate relocated_handle.
20792 (grub_efiemu_write_sym_markers): New function.
20793 (grub_efiemu_set_virtual_address_map): Likewise.
20794
20795 Newer XNU parameters.
20796
20797 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
20798 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
20799 (grub_xnu_fill_devicetree): New prototype.
20800 (grub_xnu_heap_real_start): New variable.
20801 * loader/xnu.c (get_name_ptr): New function.
20802 (grub_xnu_load_driver): Fill namelen and name.
20803
20804 64-bit xnu support.
20805
20806 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
20807 and 'loader/macho64.c'.
20808 * conf/i386-pc.rmk: Likewise.
20809 * conf/x86_64-efi.rmk: Likewise.
20810 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
20811 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
20812 * include/grub/macho.h (grub_macho_segment64): New structure.
20813 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
20814 (grub_macho_size32): ... to this.
20815 (grub_macho32_get_entry_point): Renamed from ...
20816 (grub_macho_get_entry_point32): ... to this.
20817 (grub_macho_contains_macho64): New prototype.
20818 (grub_macho_size64): Likewise.
20819 (grub_macho_get_entry_point64): Likewise.
20820 (grub_macho32_load): Renamed from ...
20821 (grub_macho_load32): ... to this.
20822 (grub_macho32_filesize): Renamed from ...
20823 (grub_macho_filesize32): ... to this.
20824 (grub_macho32_readfile): Renamed from ...
20825 (grub_macho_readfile32): ... to this.
20826 (grub_macho_filesize64): New prototype.
20827 (grub_macho_readfile64): Likewise.
20828 (grub_macho_parse32): Likewise.
20829 (grub_macho_parse64): Likewise.
20830 * loader/macho.c: Split into ...
20831 * loader/machoXX.c: ... and this. Replace 32 with XX.
20832 * loader/macho32.c: New file.
20833 * loader/macho64.c: Likewise.
20834 * loader/xnu.c (grub_xnu_is_64bit): New variable.
20835 (grub_cmd_xnu_kernel): Make 32-bit only.
20836 (grub_cmd_xnu_kernel64): New function.
20837 (grub_xnu_load_driver): Support Mach-O 64.
20838 (grub_cmd_xnu_mkext): Likewise.
20839 * util/grub.d/30_os-prober.in (osx_entry): New function.
20840 Generate entries for 64-bit boot too.
20841
20842 Eliminate ad-hoc tree format in XNU and EfiEmu.
20843
20844 * efiemu/main.c (grub_efiemu_prepare): Update comment.
20845 * efiemu/pnvram.c: Rewritten to use environment variables.
20846 All users updated.
20847
20848 Inline utf16_to_utf8.
20849
20850 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
20851 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
20852 All users updated.
20853 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
20854
20855 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
20856 * commands/usbtest.c (grub_usb_get_string): ... move here.
20857 (usb_print_str): Fix error handling.
20858 * include/grub/usb.h (grub_usb_get_string): Remove.
20859
20860 UTF-8 to UTF-16 transformation.
20861
20862 * conf/common.rmk (pkglib_MODULES): Add charset.mod
20863 (charset_mod_SOURCES): New variable.
20864 (charset_mod_CFLAGS): Likewise.
20865 (charset_mod_LDFLAGS): Likewise.
20866 * include/grub/utf.h: New file.
20867 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
20868
20869 Support for device properties.
20870
20871 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
20872 (grub_xnu_devprop_device_header): Likewise.
20873 (grub_xnu_devprop_device_descriptor): Likewise.
20874 (grub_xnu_devprop_add_device): New prototype.
20875 (grub_xnu_devprop_remove_device): Likewise.
20876 (grub_xnu_devprop_remove_property): Likewise.
20877 (grub_xnu_devprop_add_property_utf8): Likewise.
20878 (grub_xnu_devprop_add_property_utf16): Likewise.
20879 (grub_cpu_xnu_init): Likewise.
20880 (grub_cpu_xnu_fini): Likewise.
20881 (grub_cpu_xnu_unload): Likewise.
20882 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
20883 (property_descriptor): Likewise.
20884 (devices): New variable.
20885 (grub_xnu_devprop_remove_property): New function.
20886 (grub_xnu_devprop_add_device): Likewise.
20887 (grub_xnu_devprop_remove_device): Likewise.
20888 (grub_xnu_devprop_add_property): Likewise.
20889 (grub_xnu_devprop_add_property_utf8): Likewise.
20890 (grub_xnu_devprop_add_property_utf16): Likewise.
20891 (hextoval): Likewise.
20892 (grub_cpu_xnu_fill_devprop): Likewise.
20893 (grub_cmd_devprop_load): Likewise.
20894 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
20895 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
20896 (cmd_devprop_load): New variable.
20897 (grub_cpu_xnu_init): New function.
20898 (grub_cpu_xnu_fini): Likewise.
20899 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
20900 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
20901 (grub_cmd_xnu_devtree): Likewise.
20902 (hextoval): New function.
20903 (unescape): Likewise.
20904 (grub_xnu_fill_devicetree): Likewise.
20905
20906 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
20907 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
20908
20909 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20910
20911 Workaround for broken ATI VBE.
20912
20913 * video/i386/pc/vbe.c (last_set_mode): New variable.
20914 (grub_vbe_set_video_mode): Set 'last_set_mode'.
20915 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
20916 (grub_video_vbe_setup): Don't check for reserved flag.
20917
20918 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
20919
20920 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
20921 the `find' command.
20922
20923 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
20924
20925 UUID support for HFS.
20926
20927 * fs/hfs.c (grub_hfs_uuid): New function.
20928 (grub_hfs_fs): New value .uuid.
20929 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
20930
20931 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
20932
20933 Fix a segfault with parsing unknown long options.
20934
20935 * util/grub-mkrelpath.c (options): Zero terminate it.
20936
20937 2009-12-13 Carles Pina i Estany <carles@pina.cat>
20938
20939 * include/grub/misc.h (grub_puts): New declaration.
20940 (grub_puts_): Likewise.
20941 * kern/misc.c (grub_puts): New definition.
20942 (grub_puts_): Likewise.
20943
20944 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
20945
20946 * util/grub-probe.c (probe): Improve error message.
20947
20948 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
20949
20950 * loader/i386/multiboot_elfxx.c
20951 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
20952 initialization.
20953
20954 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
20955
20956 Relocator framework
20957
20958 * loader/i386/xnu_helper.S: Removed. All users updated.
20959 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
20960 (relocator_mod_SOURCES): New variable.
20961 (relocator_mod_CFLAGS): Likewise.
20962 (relocator_mod_LDFLAGS): Likewise.
20963 (relocator_mod_ASFLAGS): Likewise.
20964 * conf/x86_64.rmk: Likewise.
20965 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
20966 (grub_multiboot_payload_entry_offset): Likewise.
20967 (grub_multiboot_forward_relocator): Likewise.
20968 (grub_multiboot_forward_relocator_end): Likewise.
20969 (grub_multiboot_backward_relocator): Likewise.
20970 (grub_multiboot_backward_relocator_end): Likewise.
20971 (grub_multiboot_payload_eip): New variable.
20972 (grub_multiboot_payload_orig): Likewise.
20973 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
20974 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
20975 * include/grub/i386/memory.h
20976 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
20977 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
20978 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
20979 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
20980 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
20981 * include/grub/i386/relocator.h: New file.
20982 * include/grub/x86_64/relocator.h: Likewise.
20983 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
20984 (XNU_RELOCATOR): New macro.
20985 (grub_xnu_launcher_start): Remove.
20986 (grub_xnu_launcher_end): Likewise.
20987 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
20988 (grub_xnu_heap_real_start): Remove.
20989 (grub_xnu_heap_start): Change to void *. All users updated.
20990 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
20991 * lib/i386/relocator.c: New file.
20992 * lib/i386/relocator_asm.S: Likewise.
20993 * lib/i386/relocator_backward.S: Likewise.
20994 * lib/mips/relocator.c: Likewise.
20995 * lib/mips/relocator_asm.S: Likewise.
20996 * lib/relocator.c: Likewise.
20997 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
20998 (entry): Removed.
20999 (playground): Likewise.
21000 (grub_multiboot_payload_orig): New variable.
21001 (grub_multiboot_payload_dest): Likewise.
21002 (grub_multiboot_payload_size): Likewise.
21003 (grub_multiboot_payload_eip): Likewise.
21004 (grub_multiboot_payload_esp): Likewise.
21005 (grub_multiboot_boot): Use grub_relocator32_boot.
21006 (grub_multiboot_unload): Free relocators.
21007 (grub_multiboot): Setup stack. Use relocators.
21008 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
21009 (grub_multiboot_load_elfXX): Use relocators.
21010 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
21011 (grub_multiboot_payload_size): Likewise.
21012 (grub_multiboot_payload_dest): Likewise.
21013 (grub_multiboot_payload_entry_offset): Likewise.
21014 (grub_multiboot_forward_relocator): Likewise.
21015 (grub_multiboot_backward_relocator): Likewise.
21016 (grub_multiboot_real_boot): Likewise.
21017 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
21018 (grub_xnu_entry_point): Likewise.
21019 (grub_xnu_arg1): Likewise.
21020 (grub_xnu_stack): Likewise.
21021 (grub_xnu_launch): Removed.
21022 (grub_xnu_boot_resume): New function.
21023 (grub_xnu_boot): Use relocators.
21024 * loader/i386/xnu_helper.S: Removed.
21025 * loader/xnu.c (grub_xnu_heap_start): New variable.
21026 (grub_xnu_heap_size): Likewise.
21027 (grub_xnu_heap_malloc): Use relocators.
21028 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
21029
21030 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21031
21032 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
21033 anything.
21034
21035 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21036
21037 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
21038 GRUB_ERR_NONE before calling grub_env_set.
21039
21040 2009-12-12 Robert Millan <rmh@aybabtu.com>
21041
21042 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
21043 * genmk.rb (video): New variable.
21044 (CLEANFILES, VIDEOFILES): Add #{video}.
21045 (#{video}): New target rule.
21046 * genvideolist.sh: New file.
21047 * Makefile.in (pkglib_DATA): Add video.lst.
21048 (video.lst): New target rule.
21049 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
21050 `video.lst'.
21051 * util/grub.d/30_os-prober.in: Replace `vbe' with
21052 ${GRUB_VIDEO_BACKEND}.
21053
21054 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
21055
21056 * THANKS: Add David Miller.
21057
21058 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
21059
21060 libpciaccess support.
21061
21062 * Makefile.in (LIBPCIACCESS): New variable.
21063 (enable_grub_emu_pci): Likewise.
21064 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
21065 util/pci.c and commands/lspci.c.
21066 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
21067 * configure.ac (grub-emu-pci): New option.
21068 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
21069 (grub_pci_device_unmap_range): Likewise.
21070 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
21071 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
21072 (grub_pci_address_t) [!GRUB_UTIL]: New type.
21073 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
21074 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
21075 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
21076 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
21077 * include/grub/pciutils.h: New file.
21078 * util/pci.c: Likewise.
21079
21080 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
21081
21082 * util/misc.c: Don't include <errno.h> twice.
21083
21084 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
21085
21086 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
21087 name in an error message.
21088 (grub_biosdisk_rw): Likewise.
21089
21090 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21091
21092 Eliminate NTFS 4Gib barrier.
21093
21094 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
21095 (read_run_data): Likewise.
21096 (grub_ntfs_read_run_list): Likewise.
21097 (grub_ntfs_read_block): Likewise.
21098 (grub_ntfs_iterate_dir): Likewise.
21099 (read_mft): Likewise.
21100 (read_data): Likewise.
21101 Use COM_LOG_LEN.
21102 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
21103 to avoid 64-bit division
21104 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
21105 (grub_ntfs_rlst): Use grub_disk_addr_t.
21106
21107 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21108
21109 Eliminate grub-fstest 4Gib barrier.
21110
21111 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
21112 (read_file): Fix error reporting.
21113
21114 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21115
21116 Eliminate hexdump 4Gib barrier.
21117
21118 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
21119 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
21120
21121 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21122
21123 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
21124 Fixes amarsh bug.
21125
21126 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
21127
21128 Remove miscellaneous files in distclean target.
21129
21130 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
21131
21132 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
21133
21134 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
21135 if they're already set. This resolves the conflict between my
21136 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
21137 fixing the --grub-probe option again.
21138 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
21139 change on 2009-10-06, so that we now once again source
21140 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
21141
21142 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
21143
21144 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
21145 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
21146 `util/devicemap.c'.
21147
21148 2009-12-08 Carles Pina i Estany <carles@pina.cat>
21149
21150 * include/grub/misc.h (grub_printf_): New declaration.
21151 * kern/misc.c (grub_printf_): New definition.
21152 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
21153 instead of `grub_printf' and `_'.
21154 * normal/menu_entry.c (store_completion): Likewise.
21155 (run): Likewise.
21156 (grub_menu_entry_run): Likewise.
21157 * normal/menu_text.c (grub_wait_after_message): Likewise.
21158 (notify_booting): Likewise.
21159 (notify_fallback): Likewise.
21160 (notify_execution_failure): Likewise.
21161
21162 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
21163
21164 * configure.ac: Check for vasprintf.
21165 * util/misc.c (asprintf): Move allocation from here ...
21166 (vasprintf): ... to here. New function.
21167 (xasprintf): New function.
21168 * include/grub/util/misc.h (vasprintf, xasprintf): Add
21169 prototypes.
21170 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21171 * util/grub-mkfont.c (write_font): Likewise.
21172 * util/grub-probe.c (probe): Likewise.
21173 * util/hostdisk.c (make_device_name): Likewise.
21174
21175 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
21176
21177 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
21178 anything even prefixed with 'cdrom' as a cdrom.
21179
21180 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
21181
21182 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
21183 mount points.
21184
21185 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21186
21187 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
21188 grub_gettext_msg_list.
21189 (grub_gettext_gettranslation_from_position): Return const char *
21190 and not char *.
21191 (grub_gettext_translate): Add the translated strings into a list,
21192 returns from the list if existing there.
21193 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
21194 (grub_gettext_delete_list): Delete the list.
21195 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
21196 lang environment variable is changed.
21197 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
21198
21199 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21200
21201 Rename kernel.mod to kernel.img.
21202
21203 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
21204 (kernel_mod_EXPORTS): Rename to ...
21205 (kernel_img_EXPORTS): ... this.
21206 (kernel_mod_SOURCES): Rename to ...
21207 (kernel_img_SOURCES): ... this.
21208 (kernel_mod_HEADERS): Rename to ...
21209 (kernel_img_HEADERS): ... this. All users updated.
21210 (kernel_mod_CFLAGS): Rename to ...
21211 (kernel_img_CFLAGS): ... this.
21212 (kernel_mod_ASFLAGS): Rename to ...
21213 (kernel_img_ASFLAGS): ... this.
21214 (kernel_mod_LDFLAGS): Rename to ...
21215 (kernel_img_LDFLAGS): ... this.
21216 * conf/x86_64-efi.rmk: Likewise.
21217 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
21218 (read_kernel_image): ... this. All users updated.
21219 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
21220
21221 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21222
21223 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
21224 (print_spaces): New function.
21225 (grub_print_ucs4): New function.
21226 (getstringwidth): New function.
21227 (print_message_indented): New function.
21228 (print_message): Gettexttize strings using print_message_indented.
21229 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
21230 width.
21231 (get_entry_number): Gettextize and uses dynamic terminal width.
21232 (notify_booting, notify_fallback, notify_execution_failure):
21233 Gettextize.
21234 * normal/menu_entry.c (store_completion): Cleanup the gettextized
21235 string.
21236 (run): Likewise.
21237 (grub_menu_entry_run): Likewise.
21238 * PO/POTFILES: Add normal/menu_entry.c.
21239
21240 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21241
21242 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
21243
21244 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21245
21246 * util/grub-install.in: Install gettext .mo files.
21247 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
21248
21249 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21250
21251 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
21252 grub_dprintf.
21253
21254 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
21255
21256 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
21257 non-firmware-dependant one in realmode.S takes precedence.
21258
21259 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
21260
21261 * commands/halt.c: Replace misc arch-specific headers with
21262 `<grub/misc.h>'.
21263 * commands/reboot.c: Likewise.
21264 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
21265 `<grub/misc.h>'.
21266 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
21267 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
21268 (kernel_img_SOURCES): ... to here.
21269
21270 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
21271 * include/grub/i386/pc/init.h: Likewise.
21272 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21273 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21274
21275 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
21276
21277 * include/grub/i386/halt.h: Remove.
21278 * include/grub/i386/reboot.h: Likewise.
21279
21280 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
21281
21282 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
21283
21284 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
21285 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
21286 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
21287 "progname.h"
21288 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21289 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21290 (usage): Add missing comma in printf.
21291
21292 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
21293
21294 Use the same reboot approach on i386 coreboot and qemu as we do on
21295 BIOS.
21296
21297 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
21298 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
21299 * kern/i386/reboot.c: Remove.
21300 * include/grub/i386/reboot.h (grub_reboot): Export function.
21301 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
21302 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
21303 0xf000:0xfff0 instead of 0xffff:0x0000.
21304 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
21305 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
21306
21307 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
21308
21309 Fix $srcdir != $objdir build.
21310
21311 * Makefile.in (po/%.po): Rewrite as ...
21312 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
21313
21314 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21315
21316 Fix GNU/Hurd grub-install crash.
21317 * util/grub-probe.c (probe): Try to access `path' only when it is not
21318 NULL.
21319
21320 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21321
21322 Correct module naming.
21323
21324 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21325 (GRUB_MOD_INIT(efi_uga)): ... to this
21326 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21327 (GRUB_MOD_FINI(efi_uga)): ... to this
21328 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21329 (GRUB_MOD_INIT(efi_gop)): ... to this
21330 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21331 (GRUB_MOD_FINI(efi_gop)): ... to this
21332
21333 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
21334
21335 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
21336 translatable.
21337 (usage): Translate `arg' strings using gettext().
21338 Thanks to Jordi Mallach for the suggestion.
21339
21340 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21341
21342 GOP support. Based on patch from Bean
21343 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21344
21345 * video/efi_gop.c: New file.
21346 * include/grub/efi/graphics_output.h: Likewise.
21347 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
21348 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21349 variables.
21350 * conf/x86_64-efi.rmk: Likewise.
21351
21352 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21353
21354 Rename efi_fb to efi_uga.
21355
21356 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21357 'efi_uga.mod'.
21358 (efi_fb_mod_SOURCES): Rename this ...
21359 (efi_uga_mod_SOURCES): ... to this.
21360 (efi_fb_mod_CFLAGS): Rename this ...
21361 (efi_uga_mod_CFLAGS): ... to this.
21362 (efi_fb_mod_LDFLAGS): Rename this ...
21363 (efi_uga_mod_LDFLAGS): ... to this.
21364 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21365 'efi_uga.mod'.
21366 (efi_fb_mod_SOURCES): Rename this ...
21367 (efi_uga_mod_SOURCES): ... to this.
21368 (efi_fb_mod_CFLAGS): Rename this ...
21369 (efi_uga_mod_CFLAGS): ... to this.
21370 (efi_fb_mod_LDFLAGS): Rename this ...
21371 (efi_uga_mod_LDFLAGS): ... to this.
21372 * video/efi_fb.c: Move this ...
21373 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
21374
21375 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21376
21377 * po/README: New file. Explain our PO file workflow.
21378
21379 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21380
21381 * po/ChangeLog: Remove. Move relevant entries back to ...
21382 * ChangeLog: ... here.
21383 * po/ca.po: Remove (now handled by TLP).
21384 * po/id.po: Likewise.
21385 * po/zh_CN.po: Likewise.
21386 * Makefile.in (LINGUAS): Initialize in a way that supports
21387 empty set.
21388
21389 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21390
21391 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
21392 reliing on po/LINGUAS.
21393 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
21394 (po/%.po): ... this.
21395
21396 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21397
21398 * util/i386/efi/grub-mkimage.c: Include "progname.h".
21399 (main): Use `program_name' instead of nonexistent `progname'.
21400
21401 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21402
21403 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21404 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
21405
21406 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21407
21408 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
21409 commit.
21410 * conf/i386-efi.rmk: Likewise.
21411 * conf/i386-ieee1275.rmk: Likewise.
21412 * conf/powerpc-ieee1275.rmk: Likewise.
21413 * conf/sparc64-ieee1275.rmk: Likewise.
21414 * conf/x86_64-efi.rmk: Likewise.
21415
21416 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21417
21418 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
21419
21420 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21421
21422 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
21423
21424 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21425
21426 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
21427 (grub_mkdevicemap_SOURCES): New variable.
21428 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
21429 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
21430 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
21431 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
21432 (grub_mkdevicemap_SOURCES): Remove.
21433 * conf/i386-efi.rmk: Likewise.
21434 * conf/i386-ieee1275.rmk: Likewise.
21435 * conf/i386-pc.rmk: Likewise.
21436 * conf/powerpc-ieee1275.rmk: Likewise.
21437 * conf/sparc64-ieee1275.rmk: Likewise.
21438 * conf/x86_64-efi.rmk: Likewise.
21439 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
21440 (usage): Fix strings to use `program_name'.
21441 (main): Initialize gettext.
21442 * util/grub-editenv.c: Likewise.
21443 * util/grub-emu.c: Likewise.
21444 * util/grub-fstest.c: Likewise.
21445 * util/grub-mkdevicemap.c: Likewise.
21446 * util/grub-mkfont.c: Likewise.
21447 * util/grub-mkrelpath.c: Likewise.
21448 * util/grub-pe2elf.c: Likewise.
21449 * util/grub-probe.c: Likewise.
21450 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
21451 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21452 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21453
21454 * util/misc.c: Include `"progname.h"'.
21455 (progname): Remove variable.
21456 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
21457
21458 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21459
21460 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
21461 printf and print a newline after the menuentry header line.
21462 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21463
21464 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21465
21466 autoconf >= 2.60 support $(localedir).
21467
21468 * INSTALL: Note that autoconf 2.60 is required.
21469 * configure.ac (AC_PREREQ): Bump to 2.60.
21470 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
21471 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21472
21473 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
21474
21475 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
21476 aclocal is run.
21477
21478 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21479
21480 * normal/main.c (grub_normal_read_line): Fix off-by-one
21481 buffer overflow.
21482
21483 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21484
21485 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
21486 "parser.grub" in grub_command_execute() call.
21487
21488 2009-11-24 Carles Pina i Estany <carles@pina.cat>
21489
21490 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
21491 * conf/i386-efi.rmk: Likewise.
21492 * conf/i386-ieee1275.rmk: Likewise.
21493 * conf/i386-pc.rmk: Likewise.
21494 * conf/powerpc-ieee1275.rmk: Likewise.
21495 * conf/sparc64-ieee1275.rmk: Likewise.
21496 * conf/x86_64-efi.rmk: Likewise.
21497 * gettext/gettex.c: Include <grub/i18n.h>.
21498 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
21499 here ...
21500 * include/grub/i18n.h: ... to here
21501 * include/grub/i18n.h: ... to here.
21502 * kern/misc.c: Include <grub/i18n.h>
21503 (grub_gettext_dummy): Move above user.
21504
21505 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21506
21507 * util/Makefile.in (install-local): Convert a `for' into a normal
21508 shell expansion.
21509
21510 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
21511
21512 * autogen.sh: Add automake call.
21513 * config.guess: Remove.
21514 * config.sub: Likewise.
21515 * install-sh: Likewise.
21516
21517 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21518
21519 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
21520
21521 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21522
21523 * util/Makefile.in (install-local): Convert a make `$(foreach)'
21524 function to a normal shell `for'.
21525
21526 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21527
21528 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21529
21530 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21531
21532 * util/grub-mkrelpath.c: New file.
21533 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
21534 (grub_mkrelpath_SOURCES): New variable.
21535 * include/grub/util/misc.h: New function prototype.
21536 * util/misc.c (make_system_path_relative_to_its_root): New function.
21537
21538 * util/grub-mkconfig_lib.in (bindir): New variable.
21539 (grub_mkrelpath): Likewise.
21540 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
21541
21542 * util/probe.c (probe): Make the file path relative to its root.
21543 Change a info message to use the GRUB path. Enable again the
21544 check if we can read the file with GRUB facilities.
21545
21546 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
21547 to its root.
21548
21549 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21550
21551 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
21552 platform.
21553
21554 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21555
21556 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
21557 strncmp().
21558
21559 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21560
21561 * util/getroot.c (grub_util_is_dmraid): New function.
21562 (grub_util_get_dev_abstraction): Treat dmraid and multipath
21563 devices as normal ones, not as LVM.
21564
21565 2009-11-23 Carles Pina i Estany <carles@pina.cat>
21566
21567 * conf/common.rmk: Add grub-gettext_lib target and updates
21568 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
21569 LDFLAGS.
21570 * gettext/gettext.c: New file. (Reads mo files).
21571 * include/grub/file.h (grub_file_pread): New prototype.
21572 * include/grub/i18n.h (_): New prototype.
21573 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
21574 prototypes.
21575 * kern/misc.c (grub_gettext_dummy): New function.
21576 * normal/menu_text.c: Include <grub/i18n.h>.
21577 * normal/menu_text.c (print_timeout): Gettexttize string.
21578 * normal/menu_text.c (print_message): Gettexttize string.
21579 * po/POTFILES: Add `normal/menu_text.c'.
21580 * po/ca.po: Add new translations.
21581 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
21582 gettext module and defines locale_dir and lang in grub.cfg.
21583 * NEWS: Add gettext support.
21584
21585 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21586
21587 * util/hostdisk.c: Include `<grub/i18n.h>'.
21588 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
21589 (make_device_name): Rewrite using asprintf.
21590 (convert_system_partition_to_system_disk): Replace 0 with NULL.
21591 (find_system_device): If a device is not found, generate one just
21592 by reusing the OS path name.
21593 (read_device_map): Make it permissible for device.map not to exist.
21594
21595 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21596
21597 * script/sh/execute.c: Move from here ...
21598 * script/execute.c: ... to here. Update all users.
21599 * script/sh/function.c: Move from here ...
21600 * script/function.c: ... to here. Update all users.
21601 * script/sh/lexer.c: Move from here ...
21602 * script/lexer.c: ... to here. Update all users.
21603 * script/sh/main.c: Move from here ...
21604 * script/main.c: ... to here. Update all users.
21605 * script/sh/parser.y: Move from here ...
21606 * script/parser.y: ... to here. Update all users.
21607 * script/sh/script.c: Move from here ...
21608 * script/script.c: ... to here. Update all users.
21609
21610 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21611
21612 * configure.ac: Detect all `emu' platforms. Define
21613 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
21614 --enable-grub-emu logic. Disable include/grub/machine
21615 symlink on `emu' platforms.
21616
21617 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
21618 * gensymlist.sh.in: Likewise.
21619
21620 * include/grub/i386/coreboot/machine.h: Remove file.
21621 * include/grub/i386/efi/machine.h: Likewise.
21622 * include/grub/i386/ieee1275/machine.h: Likewise.
21623 * include/grub/i386/pc/machine.h: Likewise.
21624 * include/grub/i386/qemu/machine.h: Likewise.
21625 * include/grub/powerpc/ieee1275/machine.h: Likewise.
21626 * include/grub/sparc64/ieee1275/machine.h: Likewise.
21627 * include/grub/x86_64/efi/machine.h: Likewise.
21628
21629 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
21630 * commands/halt.c: Likewise.
21631 * commands/reboot.c: Likewise.
21632 * include/grub/autoefi.h: Likewise.
21633 * include/grub/i386/at_keyboard.h: Likewise.
21634 * include/grub/i386/kernel.h: Likewise.
21635 * include/grub/i386/loader.h: Likewise.
21636 * include/grub/i386/pc/memory.h: Likewise.
21637 * kern/dl.c: Likewise.
21638 * kern/i386/coreboot/init.c: Likewise.
21639 * loader/i386/bsd.c: Likewise.
21640 * loader/i386/linux.c: Likewise.
21641 * loader/multiboot_loader.c: Likewise.
21642 * term/i386/pc/serial.c: Likewise.
21643 * term/usb_keyboard.c: Likewise.
21644
21645 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
21646 `<grub/machine/machine.h>'
21647 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
21648 * util/misc.c: Remove `<grub/machine/machine.h>' and
21649 `<grub/machine/time.h>'.
21650
21651 * Makefile.in (enable_grub_emu): Remove variable.
21652 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
21653
21654 * conf/any-emu.rmk: New file.
21655 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
21656 (grub_emu_init.c): Move from here ...
21657 * conf/any-emu.rmk: ... to here.
21658
21659 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
21660 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
21661 * conf/any-emu.rmk: ... to here.
21662
21663 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21664
21665 * include/grub/parser.h (grub_parser_register): Document need
21666 of `name' parameter.
21667 * normal/main.c (grub_normal_read_line): Simplify prompt string.
21668 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
21669 "sh" to "grub".
21670
21671 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21672
21673 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
21674 `$(XGETTEXT)'.
21675 * include/grub/i18n.h (N_): New macro.
21676 * util/mkisofs/mkisofs.h: Likewise.
21677 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
21678 around N_().
21679 (usage): Use gettext() to translate help strings when printing them.
21680
21681 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21682
21683 Based on patch from Bean
21684 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21685
21686 * video/efi_fb.c: New file.
21687 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
21688 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21689 variables.
21690 * conf/x86_64-efi.rmk: Likewise.
21691
21692 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
21693
21694 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
21695 * util/i386/pc/grub-setup.c: Likewise.
21696
21697 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21698
21699 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
21700 <hurd/fs.h>
21701 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
21702 file_get_storage_info to implement grub_guess_root_device.
21703
21704 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21705
21706 * Makefile.in (target): Use make's builtin $(shell) function
21707 instead of calling directly $(SHELL) to create the locale directories,
21708 inside the $(foreach) function.
21709
21710 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21711
21712 * util/grub-mkrescue.in: Print an error and usage if output option
21713 has not been given.
21714
21715 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21716
21717 Patch from Loïc Minier <loic.minier@ubuntu.com>.
21718 * util/grub.d/30_os-prober.in: Cope with Linux entries where
21719 root and /boot are on different devices.
21720
21721 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21722
21723 Fix build for srcdir != objdir.
21724
21725 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
21726 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
21727 $(srcdir).
21728 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
21729 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
21730 reference for input.
21731
21732 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21733
21734 * util/grub-mkrescue.in: Use source directory direcly (without copiing
21735 or hardlinking it). Remove -J option, Joliet is not compatible with
21736 multiple source directories.
21737
21738 2009-11-21 Carles Pina i Estany <carles@pina.cat>
21739 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21740
21741 * util/grub-mkrescue.in: Recognize `--override-directory' option.
21742 (process_input_dir): New function. Process an arbitrary input
21743 directory.
21744 Misc adjustments to support both "override mode" and system-wide mode.
21745
21746 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21747
21748 * configure.ac (UNIFONT_BDF): Rename to ...
21749 (FONT_SOURCE): ... this. Update all users.
21750
21751 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21752
21753 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
21754 to the list of unifont files to look for.
21755
21756 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21757
21758 Patch from Joe Auricchio <jauricchio@gmail.com>
21759 * commands/minicmd.c (grub_mini_cmd_clear): New function.
21760 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
21761 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
21762
21763 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21764
21765 * Makefile.in (install-local): Add a missing backslash.
21766
21767 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21768
21769 * include/grub/x86_64/io.h: New file.
21770
21771 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21772
21773 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
21774 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
21775 Include `"progname.h"'.
21776 (main): Initialize gettext.
21777 * util/i386/pc/grub-setup.c: Gettexttize.
21778 * util/i386/pc/grub-mkimage.c: Likewise.
21779
21780 * Makefile.in (po/*.po): Redefine as ...
21781 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
21782
21783 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
21784
21785 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21786
21787 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
21788 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
21789 (program_name): Remove.
21790 (main): Initialize gettext support.
21791 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
21792 Include `<libintl.h>'.
21793 (_): New macro.
21794
21795 * util/mkisofs/eltorito.c: Gettexttize.
21796 * util/mkisofs/joliet.c: Likewise.
21797 * util/mkisofs/mkisofs.c: Likewise.
21798 * util/mkisofs/multi.c: Likewise.
21799 * util/mkisofs/rock.c: Likewise.
21800 * util/mkisofs/tree.c: Likewise.
21801 * util/mkisofs/write.c: Likewise.
21802
21803 * po/POTFILES: Update with new files.
21804
21805 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21806
21807 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
21808 * util/mkisofs/iso9660.h: Likewise.
21809 * util/mkisofs/joliet.c: Likewise.
21810 * util/mkisofs/mkisofs.c: Likewise.
21811 * util/mkisofs/mkisofs.h: Likewise.
21812 * util/mkisofs/rock.c: Likewise.
21813 * util/mkisofs/tree.c: Likewise.
21814 * util/mkisofs/write.c: Likewise.
21815
21816 * util/mkisofs/eltorito.c (rcsid): Remove.
21817 * util/mkisofs/hash.c: Likewise.
21818 * util/mkisofs/joliet.c: Likewise.
21819 * util/mkisofs/name.c: Likewise.
21820 * util/mkisofs/rock.c: Likewise.
21821 * util/mkisofs/tree.c: Likewise.
21822 * util/mkisofs/write.c: Likewise.
21823
21824 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21825
21826 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
21827 instead of static allocation.
21828 * util/mkisofs/match.h: Likewise.
21829
21830 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21831
21832 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
21833 and `util/grub.d/10_linux.in'.
21834 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
21835 translatable Shell files.
21836
21837 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21838
21839 * Makefile.in ($(srcdir)/aclocal.m4): New target.
21840
21841 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21842
21843 * INSTALL: Document Automake is needed for bootstrap.
21844 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
21845 * util/grub.d/10_kfreebsd.in (bindir): New variable.
21846 Add gettext initialization.
21847 (kfreebsd_entry): Make menuentry output translatable.
21848
21849 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21850
21851 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
21852 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
21853 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
21854 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
21855 (LINGUAS): Auto-generate using `po/LINGUAS'.
21856 * po/LINGUAS: New file.
21857
21858 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21859
21860 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
21861 other things).
21862 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
21863 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
21864 bindtextdomain() calls for gettext initialization.
21865
21866 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21867
21868 * gnulib/progname.c: New file (imported from Gnulib).
21869 * gnulib/progname.h: Likewise.
21870 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21871 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
21872 (usage): Replace `progname' with `program_name'.
21873 (main): Use set_program_name() for program name initialization.
21874
21875 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21876
21877 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
21878 from here ...
21879 * Makefile.in (CPPFLAGS): ... to here.
21880
21881 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21882
21883 * aclocal.m4: Move from here ...
21884 * acinclude.m4: ... to here.
21885 * autogen.sh: Add call to `aclocal'.
21886 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
21887
21888 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21889
21890 * Makefile.in (CLEANFILES): Add `po/*.mo'.
21891 (LINGUAS): New variable.
21892 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
21893 (install-local): Install MO files.
21894 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
21895 * include/grub/i18n.h: New file.
21896 * po/POTFILES: New file.
21897 * po/ca.po: New file.
21898 * util/grub.d/10_linux.in (bindir): New variable.
21899 Add gettext initialization.
21900 (linux_entry): Make menuentry output translatable.
21901 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
21902 (usage): Make --help output translatable.
21903 (main): Initialize gettext.
21904
21905 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21906
21907 * import_gcry.py: New file (written by Vladimir with minor
21908 adjustments).
21909 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
21910 ciphers.
21911 * INSTALL: Document that Python is required for bootstrap.
21912
21913 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21914
21915 Import ciphers from libgcrypt 1.4.4.
21916
21917 * lib/libgcrypt/cipher/ChangeLog
21918 * lib/libgcrypt/cipher/ac.c
21919 * lib/libgcrypt/cipher/arcfour.c
21920 * lib/libgcrypt/cipher/bithelp.h
21921 * lib/libgcrypt/cipher/blowfish.c
21922 * lib/libgcrypt/cipher/camellia-glue.c
21923 * lib/libgcrypt/cipher/camellia.c
21924 * lib/libgcrypt/cipher/camellia.h
21925 * lib/libgcrypt/cipher/cast5.c
21926 * lib/libgcrypt/cipher/cipher.c
21927 * lib/libgcrypt/cipher/crc.c
21928 * lib/libgcrypt/cipher/des.c
21929 * lib/libgcrypt/cipher/dsa.c
21930 * lib/libgcrypt/cipher/ecc.c
21931 * lib/libgcrypt/cipher/elgamal.c
21932 * lib/libgcrypt/cipher/hash-common.c
21933 * lib/libgcrypt/cipher/hash-common.h
21934 * lib/libgcrypt/cipher/hmac-tests.c
21935 * lib/libgcrypt/cipher/md.c
21936 * lib/libgcrypt/cipher/md4.c
21937 * lib/libgcrypt/cipher/md5.c
21938 * lib/libgcrypt/cipher/primegen.c
21939 * lib/libgcrypt/cipher/pubkey.c
21940 * lib/libgcrypt/cipher/rfc2268.c
21941 * lib/libgcrypt/cipher/rijndael-tables.h
21942 * lib/libgcrypt/cipher/rijndael.c
21943 * lib/libgcrypt/cipher/rmd.h
21944 * lib/libgcrypt/cipher/rmd160.c
21945 * lib/libgcrypt/cipher/rsa.c
21946 * lib/libgcrypt/cipher/seed.c
21947 * lib/libgcrypt/cipher/serpent.c
21948 * lib/libgcrypt/cipher/sha1.c
21949 * lib/libgcrypt/cipher/sha256.c
21950 * lib/libgcrypt/cipher/sha512.c
21951 * lib/libgcrypt/cipher/tiger.c
21952 * lib/libgcrypt/cipher/twofish.c
21953 * lib/libgcrypt/cipher/whirlpool.c
21954
21955 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21956
21957 Fix build for systems without error().
21958
21959 * gnulib/error.c: New file (imported from Gnulib).
21960 * gnulib/error.h: Likewise.
21961 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
21962 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
21963 (this variable is now used by error()).
21964
21965 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
21966
21967 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
21968 instead of relying that char is signed.
21969
21970 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21971
21972 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
21973 blocksize different from specified.
21974 (grub_pxefs_read): Likewise.
21975
21976 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
21977
21978 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
21979
21980 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
21981 (grub_ata_readwrite): Likewise. Update 2 format strings.
21982 (grub_atapi_read): Likewise.
21983
21984 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
21985 * conf/i386.rmk (pkglib_MODULES): ... to here ...
21986 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
21987 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
21988 (ata_mod_LDFLAGS): Move from here ...
21989 * conf/i386.rmk: ... to here ...
21990 * conf/x86_64-efi.rmk: ... and here.
21991 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
21992 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
21993
21994 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21995
21996 Relicense multiboot.h, with RMS' blessing.
21997
21998 * include/multiboot.h: Change to X11 license.
21999
22000 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
22001
22002 Support --version in grub-mkisofs.
22003
22004 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
22005 (OPTION_VERSION): New macro.
22006 (ld_options): Recognize --version.
22007 (usage): Move `program_name' from here ...
22008 (program_name): ... to here. Add `static' qualifier.
22009 (main): Recognize `OPTION_VERSION'.
22010
22011 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
22012
22013 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
22014 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
22015
22016 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22017
22018 Fix help2man generation for mkisofs.
22019
22020 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
22021 (usage): Send output to stdout (rather than stderr).
22022
22023 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22024
22025 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
22026 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22027 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
22028 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22029 (bin_SCRIPTS): Add `grub-mkfloppy'.
22030 (grub_mkfloppy_SOURCES): New variable.
22031
22032 * util/grub-mkrescue.in: New file.
22033 * util/i386/pc/grub-mkfloppy.in: New file.
22034
22035 * util/i386/coreboot/grub-mkrescue.in: Remove.
22036 * util/i386/pc/grub-mkrescue.in: Remove.
22037
22038 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22039
22040 * include/grub/multiboot.h (struct grub_multiboot_header): Move
22041 from here ...
22042 * include/multiboot.h (struct multiboot_header): ... to here. Update
22043 all users.
22044 * include/grub/multiboot.h (struct grub_multiboot_info): Move
22045 from here ...
22046 * include/multiboot.h (struct multiboot_info): ... to here. Update
22047 all users.
22048 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
22049 from here ...
22050 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
22051 Update all users.
22052 * include/grub/multiboot.h (struct grub_mod_list): Move
22053 from here ...
22054 * include/multiboot.h (struct multiboot_mod_list): ... to here.
22055 Update all users.
22056
22057 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22058
22059 * include/multiboot2.h (multiboot_word): Rename from this ...
22060 (multiboot2_word): ... to this. Update all users.
22061 (multiboot_header): Rename from this ...
22062 (multiboot2_header): ... to this. Update all users.
22063 (multiboot_tag_header): Rename from this ...
22064 (multiboot2_tag_header): ... to this. Update all users.
22065 (multiboot_tag_start): Rename from this ...
22066 (multiboot2_tag_start): ... to this. Update all users.
22067 (multiboot_tag_name): Rename from this ...
22068 (multiboot2_tag_name): ... to this. Update all users.
22069 (multiboot_tag_module): Rename from this ...
22070 (multiboot2_tag_module): ... to this. Update all users.
22071 (multiboot_tag_memory): Rename from this ...
22072 (multiboot2_tag_memory): ... to this. Update all users.
22073 (multiboot_tag_unused): Rename from this ...
22074 (multiboot2_tag_unused): ... to this. Update all users.
22075 (multiboot_tag_end): Rename from this ...
22076 (multiboot2_tag_end): ... to this. Update all users.
22077
22078 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22079
22080 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
22081 this platform we should support Multiboot1 first.
22082
22083 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
22084 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
22085 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
22086
22087 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22088
22089 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
22090 of write calls (converting them to fwrite() if they aren't already).
22091 (get_torito_desc): Likewise.
22092 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
22093
22094 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22095
22096 * util/i386/pc/grub-install.in: Move from here ...
22097 * util/grub-install.in: ... to here. Update all users.
22098
22099 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
22100
22101 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
22102
22103 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22104
22105 Support for El Torito without floppy emulation.
22106
22107 * util/mkisofs/eltorito.c: Include `<errno.h>'.
22108 (init_boot_catalog): Improve error handling.
22109 (get_torito_desc): Don't use floppy emulation unless requested by
22110 user. Patch boot information table when requested via
22111 `-boot-info-table'.
22112 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
22113 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
22114 (use_boot_info_table): New variables.
22115 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
22116 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
22117 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
22118 `--eltorito-emul-floppy'.
22119 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
22120 and `OPTION_ELTORITO_EMUL_FLOPPY'.
22121 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
22122 (use_boot_info_table, get_731): New prototypes.
22123 * util/mkisofs/write.c (get_731): New function.
22124
22125 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
22126
22127 Fix the generation of the man page.
22128
22129 * util/pc/i386/grub-install.in: Source
22130 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
22131
22132 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22133
22134 Large file support for grub-mkisofs.
22135
22136 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
22137 * util/mkisofs/mkisofs.c (next_extent, last_extent)
22138 (session_start): Upgrade type to `uint64_t'. Update all users.
22139 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
22140 (struct directory_entry): Upgrade type of `starting_block' and
22141 `size' to `uint64_t'. Update all users.
22142 (struct deferred): Remove unused structure.
22143 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
22144 Update all users.
22145 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
22146 file is larger than `UINT32_MAX'.
22147 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
22148 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
22149 return value.
22150 (struct deferred_write): Upgrade type of `extent' and `size' to
22151 `uint64_t'. Update all users.
22152 (last_extent_written): Upgrade type to `uint64_t'. Update all
22153 users.
22154 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
22155 Update all users. Upgrade type of `remain' to `int64_t' and
22156 `use' to `size_t'. Use error() to handle fread() errors.
22157 (write_files): Rely on write_one_file() rather than calling
22158 xfwrite() directly.
22159
22160 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
22161
22162 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
22163
22164 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22165
22166 * util/mkisofs/fnmatch.c: Remove.
22167 * util/mkisofs/getopt1.c: Likewise.
22168 * util/mkisofs/getopt.c: Likewise.
22169 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
22170 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
22171 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
22172 `gnulib/getopt1.c' and `gnulib/getopt.c'.
22173 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
22174
22175 * configure.ac: Detect `mingw32msvc' host_os.
22176 Check for lstat(), getuid() and getgid().
22177
22178 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
22179 instances of `u_char' with `uint8_t'.
22180
22181 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
22182 [!HAVE_GETUID] (getuid): New function (stub).
22183 [!HAVE_GETGID] (getgid): Likewise.
22184 [!HAVE_LSTAT] (lstat): Likewise.
22185 [!S_IROTH] (S_IROTH): New macro (dummy).
22186 [!S_IRGRP] (S_IRGRP): Likewise.
22187
22188 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22189
22190 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
22191 conditional expression).
22192
22193 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22194
22195 Import from Gnulib.
22196
22197 * gnulib/fnmatch.c: New file.
22198 * gnulib/fnmatch.h: Likewise.
22199 * gnulib/fnmatch_loop.c: Likewise.
22200 * gnulib/getopt.c: Likewise.
22201 * gnulib/getopt.h: Likewise.
22202 * gnulib/getopt1.c: Likewise.
22203 * gnulib/getopt_int.h: Likewise.
22204 * gnulib/gettext.h: Likewise.
22205
22206 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22207
22208 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
22209 * normal/handler.c (read_handler_list): Likewise.
22210
22211 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22212
22213 Misc cleanup.
22214
22215 * kern/command.c (grub_register_command_prio): Use
22216 grub_zalloc() instead of explicitly zeroing data.
22217 * kern/list.c: Include `<grub/mm.h>'.
22218 (grub_named_list_find): Replace `0' with `NULL'.
22219 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
22220 (fs_module_list): Change type to `grub_named_list_t'. Update all
22221 users.
22222 * normal/dyncmd.c (read_command_list): Add space between function
22223 call and parenthesis.
22224 * normal/handler.c (read_handler_list): Likewise.
22225
22226 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22227
22228 * normal/auth.c (punishment_delay): Moved from here ...
22229 (grub_auth_strcmp): ... to here (inside function).
22230
22231 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22232
22233 * include/grub/list.h (struct grub_named_list): Remove `const'
22234 qualifier from `name'.
22235 (struct grub_prio_list): Likewise.
22236
22237 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22238
22239 * normal/auth.c: Include `<grub/time.h>'.
22240 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
22241
22242 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22243
22244 * normal/auth.c (punishment_delay): New variable.
22245 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
22246 (grub_auth_check_authentication): Punish failed login attempts with
22247 an incremental (2^N) delay.
22248
22249 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22250
22251 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
22252 path with $(srcdir).
22253
22254 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22255
22256 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
22257
22258 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22259
22260 * util/i386/coreboot/grub-mkrescue.in: New file.
22261 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
22262 variables.
22263
22264 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
22265 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
22266 * configure.ac: Add header and function checks to satisfy grub-mkisofs
22267 requirements.
22268 * util/mkisofs/defaults.h: New file.
22269 * util/mkisofs/eltorito.c: Likewise.
22270 * util/mkisofs/exclude.h: Likewise.
22271 * util/mkisofs/fnmatch.c: Likewise.
22272 * util/mkisofs/getopt.c: Likewise.
22273 * util/mkisofs/getopt1.c: Likewise.
22274 * util/mkisofs/hash.c: Likewise.
22275 * util/mkisofs/include/fctldefs.h: Likewise.
22276 * util/mkisofs/include/mconfig.h: Likewise.
22277 * util/mkisofs/include/prototyp.h: Likewise.
22278 * util/mkisofs/include/statdefs.h: Likewise.
22279 * util/mkisofs/iso9660.h: Likewise.
22280 * util/mkisofs/joliet.c: Likewise.
22281 * util/mkisofs/match.c: Likewise.
22282 * util/mkisofs/match.h: Likewise.
22283 * util/mkisofs/mkisofs.c: Likewise.
22284 * util/mkisofs/mkisofs.h: Likewise.
22285 * util/mkisofs/multi.c: Likewise.
22286 * util/mkisofs/name.c: Likewise.
22287 * util/mkisofs/rock.c: Likewise.
22288 * util/mkisofs/tree.c: Likewise.
22289 * util/mkisofs/write.c: Likewise.
22290
22291 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22292
22293 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
22294 being insecure.
22295
22296 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22297
22298 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
22299 `grub-mkimage' (and use $0 when possible).
22300
22301 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22302
22303 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
22304 error message for excessively large memory map.
22305
22306 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22307
22308 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
22309 executable bit.
22310
22311 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22312
22313 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
22314 message for coreboot users.
22315
22316 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
22317
22318 Fix build with GNU gold.
22319
22320 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
22321 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
22322 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
22323 link addresses.
22324 * aclocal.m4: Likewise.
22325
22326 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
22327
22328 * configure.ac (AC_PREREQ): Bump to 2.59d.
22329 * INSTALL: Make it more clear when Autoconf and Ruby are
22330 needed and when to run `./autogen.sh'.
22331
22332 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22333
22334 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
22335 OSes.
22336
22337 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22338
22339 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
22340
22341 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22342
22343 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
22344 giving it to GNU Mach.
22345
22346 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22347
22348 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
22349 GNU partition number to get internal GRUB partition number.
22350
22351 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22352
22353 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
22354 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
22355
22356 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
22357
22358 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
22359 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
22360 case.
22361
22362 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
22363
22364 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
22365
22366 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22367
22368 Fix build problem.
22369
22370 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
22371 `-isystem=$(srcdir)/include'.
22372
22373 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22374
22375 * util/i386/pc/grub-install.in: Remove hint that device.map should be
22376 checked (grub-install doesn't currently rely on it).
22377
22378 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
22379
22380 Revert SVN r2660.
22381
22382 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
22383 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22384 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
22385 * conf/i386-ieee1275.rmk: Likewise.
22386 * conf/i386-pc.rmk: Likewise.
22387 * conf/powerpc-ieee1275.rmk: Likewise.
22388 * conf/sparc64-ieee1275.rmk: Likewise.
22389 * conf/x86_64-efi.rmk: Likewise.
22390
22391 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22392
22393 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
22394
22395 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22396
22397 * include/grub/misc.h: Stop checking for APPLE_CC.
22398
22399 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22400
22401 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
22402 doesn't cause an infinite call loop.
22403
22404 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
22405
22406 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
22407 strings.
22408
22409 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22410
22411 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
22412 variable.
22413 * Makefile.in: Likewise.
22414
22415 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22416
22417 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
22418
22419 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22420
22421 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
22422
22423 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22424
22425 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
22426
22427 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22428
22429 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
22430 from here ...
22431 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
22432
22433 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22434
22435 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
22436 in $(MAKEINFO) invocation. This makes it clear in output that
22437 errors are being ignored.
22438
22439 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22440
22441 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
22442 from here ...
22443 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22444 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
22445 * conf/i386-ieee1275.rmk: Likewise.
22446 * conf/i386-pc.rmk: Likewise.
22447 * conf/powerpc-ieee1275.rmk: Likewise.
22448 * conf/sparc64-ieee1275.rmk: Likewise.
22449 * conf/x86_64-efi.rmk: Likewise.
22450
22451 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22452
22453 * util/grub-editenv.c (main): If only a command is given, use
22454 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
22455 (usage): FILENAME is now optional and has a default.
22456
22457 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22458
22459 Improve grub-mkconfig performance when there are several menu
22460 entries on a single filesystem.
22461
22462 * util/grub.d/10_linux.in (linux_entry): Cache the output of
22463 prepare_grub_to_access_device.
22464 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22465 * util/grub.d/30_os-prober.in: Likewise.
22466
22467 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22468
22469 * util/grub.d/10_freebsd.in: Remove.
22470 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
22471 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
22472
22473 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22474
22475 * docs/grub.cfg: Fix example usage of *BSD loaders.
22476
22477 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22478
22479 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
22480 grub_util_error() call.
22481
22482 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22483
22484 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
22485 `reserved_first_sector' member.
22486 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
22487 `reserved_first_sector' to 1.
22488 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
22489 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
22490 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
22491 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
22492 filesystems which begin at first sector.
22493 (options): New option --skip-fs-probe.
22494 (main): Handle --skip-fs-probe and pass it to setup().
22495
22496 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22497
22498 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
22499 (memset): Fix function prototype.
22500
22501 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22502 2009-10-25 Vasily Averin <vvs@parallels.com>
22503
22504 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
22505 `dirent.direntlen == 0'.
22506
22507 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22508
22509 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
22510 `cpio'.
22511 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
22512
22513 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22514
22515 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
22516 `__trampoline_setup' and `__ucmpdi2'.
22517 * include/grub/powerpc/libgcc.h: Only export symbols for functions
22518 that libgcc provides.
22519
22520 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22521
22522 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
22523 * include/grub/sparc64/libgcc.h (memset): Likewise.
22524 * include/grub/misc.h (memset, memcmp): New function prototypes.
22525
22526 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22527
22528 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
22529 `cpio'.
22530 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
22531
22532 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22533
22534 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
22535 * docs/grub.cfg: Compensate for recent change in multiboot
22536 loader (since 2009-08-14 it won't pass filename to payload).
22537 * util/grub.d/10_hurd.in: Likewise.
22538
22539 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
22540
22541 * config.guess: Update to latest version from config git
22542 repository.
22543 * config.sub: Likewise.
22544
22545 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
22546
22547 Fix build on sparc64.
22548
22549 * configure.ac: Perform checks for libgcc symbols before
22550 adding `-nostdlib' to LDFLAGS.
22551
22552 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22553
22554 Let user specify OpenBSD root device.
22555
22556 * loader/i386/bsd.c (openbsd_root): New variable.
22557 (openbsd_opts): New option 'root'.
22558 (OPENBSD_ROOT_ARG): New macro.
22559 (grub_openbsd_boot): Use 'openbsd_root'.
22560 (grub_cmd_openbsd): Fill 'openbsd_root'.
22561
22562 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22563
22564 * NEWS: Misc adjustments.
22565
22566 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22567
22568 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
22569
22570 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22571
22572 * configure.ac: Bump version to 1.97.
22573
22574 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
22575
22576 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
22577 -mno-3dnow on x86 architectures. Some toolchains enable these
22578 features by default, but they rely on registers that aren't enabled
22579 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
22580
22581 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
22582
22583 Make entry text a bit more readable.
22584
22585 * util/grub.d/10_linux.in: Add `with' before `Linux'.
22586
22587 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22588
22589 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
22590
22591 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22592
22593 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
22594 operations.
22595
22596 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22597
22598 * configure.ac: Add missing dollar.
22599
22600 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
22603
22604 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
22605 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
22606 exports.
22607 * include/grub/sparc64/libgcc.h: Likewise. Use
22608 preprocessor conditionals.
22609
22610 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22611
22612 * conf/common.rmk (grub-dumpbios): Remove rule.
22613 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
22614 * util/grub-dumpbios.in: Remove file.
22615
22616 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22617
22618 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
22619 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
22620
22621 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
22622 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
22623 users.
22624
22625 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
22626 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
22627 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
22628 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
22629 users.
22630
22631 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
22632
22633 * term/tparm.c: Switch to GPLv3.
22634
22635 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22636
22637 * include/grub/i386/cpuid.h: Add header protection.
22638
22639 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22640
22641 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
22642
22643 * include/grub/i386/cpuid.h: New file.
22644 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
22645 (has_longmode): Rename to ...
22646 (grub_cpuid_has_longmode): ... this. Update all users. Remove
22647 `static' attribute.
22648 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
22649 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
22650 on a CPU that doesn't implement AMD64 instruction set.
22651
22652 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22653
22654 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
22655 that version.texi is rebuilt on version number changes.
22656
22657 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22658
22659 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
22660 Fixes bug #27602.
22661
22662 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22663
22664 * util/i386/pc/grub-install.in: Source
22665 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
22666 that the --grub-probe option will work.
22667 * util/sparc64/ieee1275/grub-install.in: Likewise.
22668
22669 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
22670
22671 * configure.ac: Bump version to 1.97~beta4.
22672
22673 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
22674
22675 Resync grub-mkdevicemap in x86_64-efi.
22676
22677 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
22678 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
22679 `util/devicemap.c'.
22680
22681 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
22682
22683 * util/grub-editenv.c (create_envblk_file): Write new block with a
22684 .new suffix and then rename it into place, to ensure atomic
22685 creation.
22686
22687 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
22688
22689 Do not automatically install headers.
22690
22691 * Makefile.in (include_DATA): Remove. Update all users.
22692
22693 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
22694
22695 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
22696 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
22697
22698 * util/osdetect.lua: Remove.
22699 * script/lua/lauxlib.c: Likewise.
22700 * script/lua/ldebug.c: Likewise.
22701 * script/lua/grub_main.c: Likewise.
22702 * script/lua/lauxlib.h: Likewise.
22703 * script/lua/ldebug.h: Likewise.
22704 * script/lua/ltablib.c: Likewise.
22705 * script/lua/liolib.c: Likewise.
22706 * script/lua/lstrlib.c: Likewise.
22707 * script/lua/lualib.h: Likewise.
22708 * script/lua/ldo.c: Likewise.
22709 * script/lua/ldump.c: Likewise.
22710 * script/lua/ldo.h: Likewise.
22711 * script/lua/loslib.c: Likewise.
22712 * script/lua/lundump.c: Likewise.
22713 * script/lua/grub_lib.c: Likewise.
22714 * script/lua/ldblib.c: Likewise.
22715 * script/lua/lundump.h: Likewise.
22716 * script/lua/lmem.c: Likewise.
22717 * script/lua/grub_lib.h: Likewise.
22718 * script/lua/lmathlib.c: Likewise.
22719 * script/lua/lstate.c: Likewise.
22720 * script/lua/ltm.c: Likewise.
22721 * script/lua/lvm.c: Likewise.
22722 * script/lua/lmem.h: Likewise.
22723 * script/lua/lstate.h: Likewise.
22724 * script/lua/ltm.h: Likewise.
22725 * script/lua/ltable.c: Likewise.
22726 * script/lua/lvm.h: Likewise.
22727 * script/lua/llex.c: Likewise.
22728 * script/lua/lgc.c: Likewise.
22729 * script/lua/grub_lua.h: Likewise.
22730 * script/lua/loadlib.c: Likewise.
22731 * script/lua/lfunc.c: Likewise.
22732 * script/lua/lopcodes.c: Likewise.
22733 * script/lua/lparser.c: Likewise.
22734 * script/lua/ltable.h: Likewise.
22735 * script/lua/llex.h: Likewise.
22736 * script/lua/lgc.h: Likewise.
22737 * script/lua/lfunc.h: Likewise.
22738 * script/lua/lbaselib.c: Likewise.
22739 * script/lua/lopcodes.h: Likewise.
22740 * script/lua/lparser.h: Likewise.
22741 * script/lua/lzio.c: Likewise.
22742 * script/lua/linit.c: Likewise.
22743 * script/lua/lobject.c: Likewise.
22744 * script/lua/llimits.h: Likewise.
22745 * script/lua/lstring.c: Likewise.
22746 * script/lua/lzio.h: Likewise.
22747 * script/lua/lapi.c: Likewise.
22748 * script/lua/lcode.c: Likewise.
22749 * script/lua/lua.h: Likewise.
22750 * script/lua/lobject.h: Likewise.
22751 * script/lua/lstring.h: Likewise.
22752 * script/lua/lapi.h: Likewise.
22753 * script/lua/lcode.h: Likewise.
22754 * script/lua/luaconf.h: Likewise.
22755
22756 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
22757
22758 * docs/grub.texi (Command-line and menu entry commands): Document
22759 date and echo commands.
22760
22761 2009-09-24 Pavel Roskin <proski@gnu.org>
22762
22763 * include/grub/kernel.h (struct grub_module_header): Remove
22764 `grub_module_header_types'. Make `type' unsigned. Make `size'
22765 32-bit on all platforms.
22766 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
22767 8-bit field. Use grub_host_to_target32() for `size'.
22768 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
22769 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
22770 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
22771
22772 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22773
22774 Fix "lost keypress" bug in at_keyboard.
22775
22776 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
22777 Checks for readyness of input buffer (without flushing it).
22778 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
22779 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
22780
22781 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22782
22783 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
22784 size check within GRUB_MACHINE_PCBIOS section.
22785
22786 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22787
22788 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
22789 return value.
22790 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
22791 KEYBOARD_ISREADY check.
22792 (grub_at_keyboard_checkkey): Rename to ...
22793 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
22794 Remove gratuitous cast.
22795
22796 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
22797
22798 * configure.ac: Call AC_PROG_MKDIR_P.
22799 * Makefile.in (docs/stamp-vti): Create docs directory. Create
22800 version.texi in $(builddir) rather than $(srcdir).
22801 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
22802 to makeinfo's @include search path.
22803
22804 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22805
22806 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
22807
22808 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22809
22810 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
22811 for `*.dpkg-new'.
22812
22813 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
22814
22815 Build info documentation. Some code borrowed from Automake.
22816
22817 * configure.ac: Check for makeinfo.
22818 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
22819 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
22820 docs/version.texi.
22821 (MOSTLYCLEANFILES): Add vti.tmp.
22822 (docs/version.texi, docs/stamp-vti): Update automatically.
22823 (docs/grub.info): Build info documentation. Use --force and ignore
22824 errors for now.
22825 (all-local): Add $(INFOS).
22826 (install-local): Install info files.
22827 (uninstall): Uninstall info files.
22828 * docs/version.texi: Remove from revision control. This file is
22829 automatically generated on build now.
22830 * gendistlist.sh: Add `*.info'.
22831
22832 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
22833
22834 * kern/term.c: Fix indentation.
22835
22836 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
22837
22838 * util/hostdisk.c: Fix a comment.
22839
22840 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
22841
22842 Fix regression introduced in r2539.
22843
22844 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
22845 to 0xA1.
22846
22847 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
22848
22849 * util/grub.d/30_os-prober.in: Don't throw away stderr from
22850 os-prober. Under normal operation, it does not print anything to
22851 stderr; if it does, we need to debug it, and throwing away stderr
22852 makes that excessively difficult.
22853
22854 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
22855
22856 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
22857
22858 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
22859
22860 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
22861 AC_LANG_PROGRAM from autoconf.
22862 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
22863 prototypes (fixes warning).
22864
22865 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
22866 `--disable-werror' was used.
22867
22868 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
22869
22870 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
22871 uninitialized `lastaddr'.
22872
22873 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22874
22875 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
22876
22877 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
22878
22879 * commands/test.c (get_fileinfo): Return immediately if
22880 grub_fs_probe fails.
22881
22882 2009-09-14 José Martínez <xosemp@gmail.com>
22883
22884 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
22885
22886 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
22887
22888 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
22889 output.
22890
22891 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
22892
22893 * configure.ac: Remove --enable-grub-pe2elf. Only build
22894 grub-pe2elf when needed by the build system itself.
22895 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
22896
22897 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
22898
22899 * configure.ac: Bump version to 1.97~beta3.
22900 * docs/version.texi: Likewise.
22901
22902 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
22903
22904 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
22905 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
22906 from here ...
22907 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
22908 (grub_linux_setup_video): ... to here (with some adjustments).
22909
22910 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
22911
22912 Fix memory corruption issue (spotted by Colin Watson).
22913
22914 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
22915 causing returned size to be stored in an incorrect memory location.
22916 Fix use of uninitialized value when storing the returned size.
22917
22918 2009-09-12 Yves Blusseau <blusseau@zetam.org>
22919
22920 Change clean rules to properly remove files
22921
22922 * genmk.rb: add new clean rules
22923 * Makefile.in (clean): add the new targets
22924 (mostlyclean): likewise
22925
22926 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
22927
22928 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
22929 to grub_uint64_t.
22930 * fs/ntfs.c (init_file): Understand 64-bit sizes for
22931 non-resident files.
22932
22933 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
22934
22935 * configure.ac: Don't look for help2man when cross-compiling. Fixes
22936 part of bug #27349.
22937
22938 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
22939
22940 * util/grub-mkconfig.in: Make the created config mode 400 and
22941 print a warning if it fails.
22942
22943 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
22944
22945 * util/grub.d/40_custom.in: Ask user to type custom entries below
22946 comment, rather than below 'exec tail' line.
22947
22948 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
22949
22950 * util/grub.d/40_custom.in: Make sure that the explanatory text is
22951 visible in grub.cfg.
22952
22953 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
22954
22955 * util/grub.d/40_custom.in: Make it a little clearer how to use this
22956 file.
22957
22958 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
22959
22960 * docs/grub.cfg: Add an example menu entry for memtest86+.
22961
22962 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
22963
22964 * config.guess: Update to latest version from config git.
22965 * config.sub: Likewise.
22966
22967 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
22968
22969 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
22970 unknown-command case. Fixes bug #27320.
22971
22972 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
22973
22974 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
22975 `help' if the command exists.
22976
22977 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
22978
22979 * INSTALL: Require GCC 4.1.3 or later.
22980
22981 2009-09-06 Yves Blusseau <blusseau@zetam.org>
22982
22983 * Makefile.in (RMKFILES): add i386-qemu.rmk
22984 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
22985 $(srcdir)/stamp-h.in
22986
22987 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
22988
22989 * util/grub-probe.c (probe): Comment out buggy codepath, which
22990 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
22991 should be re-enabled after 1.97.
22992
22993 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
22994
22995 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
22996 find searches for.
22997
22998 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
22999
23000 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
23001 unnecessary calls to grub_error.
23002
23003 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
23004
23005 * NEWS: Mention `keystatus' and Unicode fonts.
23006
23007 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
23008
23009 * configure.ac: Bump version to 1.97~beta2.
23010 * docs/version.texi: Likewise.
23011
23012 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23013
23014 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
23015 containing unwind information in some cases where it previously did
23016 not. Use -fno-dwarf2-cfi-asm if available to restore the old
23017 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
23018 discussion.
23019
23020 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
23021
23022 Embedding loadenv module into grub-emu
23023
23024 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
23025 commands/loadenv.c
23026 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
23027 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
23028 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
23029 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
23030 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
23031 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
23032
23033 2009-09-03 Magnus Granberg <zorry@ume.nu>
23034
23035 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
23036 include -fPIE in the default specs.
23037 * configure.ac: Check if pie_possible is yes and add -fno-PIE
23038 to TARGET_CFLAGS.
23039
23040 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
23041
23042 * INSTALL: Note that GNU Bison 2.3 or later is required.
23043
23044 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23045
23046 * kern/i386/pc/startup.S: Fix typo.
23047
23048 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23049
23050 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
23051 according to GCS.
23052
23053 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23054
23055 * docs/grub.texi (Naming convention): Describe one-based partition
23056 numbering.
23057 (Device syntax): Likewise.
23058 (File name syntax): Likewise.
23059 (Block list syntax): Likewise.
23060 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
23061 menu.lst.
23062 (File name syntax): Likewise.
23063 (Command-line and menu entry commands): Document acpi, blocklist,
23064 crc, export, insmod, keystatus, ls, set, and unset commands.
23065
23066 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23067
23068 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
23069 to avoid implying that only one of --shift, --ctrl, or --alt may be
23070 used.
23071
23072 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23073
23074 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
23075 rather than comparing against S_IFREG, which will almost never work.
23076
23077 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23078
23079 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
23080 (write_blocklists): Likewise.
23081
23082 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
23083
23084 * script/lua/grub_lua.h (fputs): Supply a format string as the first
23085 argument to grub_printf.
23086
23087 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
23088
23089 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
23090 non GNU test.
23091
23092 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23093
23094 * kern/file.c (grub_file_read): Spelling fix
23095
23096 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23097
23098 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
23099 loading of headers in some cases.
23100
23101 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
23102
23103 * configure.ac: Bump version to 1.97~beta1.
23104 * docs/version.texi: Likewise.
23105
23106 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23107
23108 * include/grub/i386/xnu.h: Add license header.
23109 include grub/err.h explicitly.
23110
23111 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23112
23113 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
23114 to `ufs' in the vfs.root.mountfrom kernel parameter.
23115
23116 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23117
23118 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
23119
23120 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
23121 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
23122
23123 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
23124 `ARRAY_SIZE' macro.
23125
23126 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23127
23128 * kern/file.c (grub_file_read): Check offset.
23129 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
23130 * fs/jfs.c (grub_jfs_read_file): Likewise.
23131 * fs/ntfs.c (grub_ntfs_read): Likewise.
23132 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
23133 * fs/minix.c (grub_minix_read_file): Correct offset check.
23134 * fs/ufs.c (grub_ufs_read_file): Likewise.
23135
23136 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23137
23138 * term/i386/pc/console.c (bios_data_area): Cast
23139 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
23140
23141 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23142
23143 1-bit optimised blitters.
23144
23145 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
23146 prototype.
23147 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23148 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23149 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23150 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23151 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23152 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23153 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
23154 function.
23155 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23156 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23157 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23158 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23159 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23160 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23161 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
23162 when possible.
23163 * video/video.c (grub_video_get_blit_format): Return
23164 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
23165
23166 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23167
23168 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
23169 the first argument to grub_printf.
23170
23171 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23172 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
23173
23174 Add `getkeystatus' terminal method. Add a new `keystatus' command
23175 to query it.
23176
23177 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
23178 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
23179 modifier key bitmasks.
23180 (struct grub_term_input): Add `getkeystatus' member.
23181 (grub_getkeystatus): Add prototype.
23182 * kern/term.c (grub_getkeystatus): New function.
23183
23184 * include/grub/i386/pc/memory.h
23185 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
23186 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
23187 Data Area layout.
23188 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
23189 (grub_console_term_input): Set `getkeystatus' member.
23190 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
23191 constants.
23192 (grub_usb_keyboard_getreport): Likewise.
23193 (grub_usb_keyboard_checkkey): Likewise.
23194 (grub_usb_keyboard_getkeystatus): New function.
23195 (grub_usb_keyboard_term): Set `getkeystatus' member.
23196
23197 * commands/keystatus.c: New file.
23198 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
23199 (keystatus_mod_SOURCES): New variable.
23200 (keystatus_mod_CFLAGS): Likewise.
23201 (keystatus_mod_LDFLAGS): Likewise.
23202 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
23203 commands/keystatus.c.
23204 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23205 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23206 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23207 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23208 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23209 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23210
23211 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23212
23213 Split befs.mod and afs.mod into *_be.mod and *.mod
23214
23215 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
23216 (grub_fstest_SOURCES): Likewise.
23217 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
23218 (afs_be_mod_SOURCES): New variable.
23219 (afs_be_mod_CFLAGS): Likewise.
23220 (afs_be_mod_LDFLAGS): Likewise.
23221 (befs_be_mod_SOURCES): Likewise.
23222 (befs_be_mod_CFLAGS): Likewise.
23223 (befs_be_mod_LDFLAGS): Likewise.
23224 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
23225 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23226 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23227 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23228 (grub_emu_SOURCES): Likewise.
23229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23230 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23231 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23232 * fs/afs_be.c: New file.
23233 * fs/befs_be.c: New file.
23234 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
23235 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
23236 (U16): Replaced with ...
23237 (grub_afs_to_cpu16): ...this. All users updated.
23238 (U32): Replaced with ...
23239 (grub_afs_to_cpu32): ...this. All users updated.
23240 (U64): Replaced with ...
23241 (grub_afs_to_cpu64): ...this. All users updated.
23242 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
23243 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
23244 (grub_afs_validate_sblock): Check only one endianness.
23245 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23246 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23247 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23248 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23249 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23250 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23251 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23252 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23253
23254 2009-08-26 Bean <bean123ch@gmail.com>
23255
23256 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
23257 64-bit number.
23258 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
23259 (grub_xfs_inode_block): Change return type to grub_uint64_t.
23260 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
23261
23262 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23263
23264 NetBSD memory map support.
23265
23266 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
23267 (grub_netbsd_btinfo_mmap_header): New structure.
23268 (grub_netbsd_btinfo_mmap_entry): Likewise.
23269 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
23270
23271 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23272
23273 Enable bsd.mod on coreboot.
23274
23275 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
23276 (bsd_mod_SOURCES): New variable.
23277 (bsd_mod_CFLAGS): Likewise.
23278 (bsd_mod_LDFLAGS): Likewise.
23279 (bsd_mod_ASFLAGS): Likewise.
23280 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
23281 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
23282
23283 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23284
23285 Cleanup NetBSD root support.
23286
23287 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
23288 grub_bsd_get_device.
23289 Fix typo.
23290
23291 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
23292
23293 * util/grub.d/00_header.in: Move check for the video backend of
23294 gfxterm from here ...
23295 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
23296 a suitable video backend.
23297
23298 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23299
23300 Fix breakage in grub-setup.
23301
23302 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
23303 "msdos_partition_map".
23304
23305 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23306
23307 Fix breakage in normal/auth.c.
23308
23309 * normal/auth.c (grub_iswordseparator): New function.
23310
23311 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23312
23313 Authentication support.
23314
23315 * commands/password.c: New file.
23316 * conf/common.rmk (pkglib_MODULES): Add password.mod.
23317 (password_mod_SOURCES): New variable.
23318 (password_mod_CFLAGS): Likewise.
23319 (password_mod_LDFLAGS): Likewise.
23320 (normal_mod_SOURCES): Add normal/auth.c.
23321 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
23322 normal/auth.c.
23323 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23324 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23325 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23326 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23327 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23328 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23329 * include/grub/auth.h: New file.
23330 * include/grub/err.h (grub_err_t): New enum value
23331 GRUB_ERR_ACCESS_DENIED.
23332 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
23333 'users'.
23334 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
23335 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
23336 users updated.
23337 * normal/auth.c: New file.
23338 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
23339 (grub_cmdline_run): Don't allow to go to command line without
23340 authentication.
23341 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
23342 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
23343 menuentry without superuser rights.
23344 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
23345 user isn't a superuser.
23346
23347 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23348
23349 Save space by inlining misc.c functions.
23350
23351 * kern/misc.c (grub_iswordseparator): Made static.
23352 * kern/misc.c (grub_strcat): Moved from here ...
23353 * include/grub/misc.h (grub_strcat): ... here. Inlined.
23354 * kern/misc.c (grub_strncat): Moved from here ...
23355 * include/grub/misc.h (grub_strncat): ... here. Inlined.
23356 * kern/misc.c (grub_strcasecmp): Moved from here ...
23357 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
23358 * kern/misc.c (grub_strncasecmp): Moved from here ...
23359 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
23360 * kern/misc.c (grub_isalpha): Moved from here ...
23361 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
23362 * kern/misc.c (grub_isdigit): Moved from here ...
23363 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
23364 * kern/misc.c (grub_isgraph): Moved from here ...
23365 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
23366 * kern/misc.c (grub_tolower): Moved from here ...
23367 * include/grub/misc.h (grub_tolower): ... here. Inlined.
23368
23369 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23370
23371 * script/sh/function.c (grub_script_function_find): Cut error message
23372 not to flood terminal.
23373 * script/sh/lexer.c (grub_script_yylex): Remove command line length
23374 limit.
23375 * script/sh/script.c (grub_script_arg_add): Duplicate string.
23376
23377 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
23378
23379 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
23380 `report' grub_uint8_t *.
23381 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
23382 Use a 50-millisecond timeout rather than just repeating
23383 grub_usb_keyboard_getreport 50 times.
23384 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
23385
23386 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23387
23388 Rename *_partition_map to part_*
23389
23390 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
23391 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
23392 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
23393 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
23394 All users updated.
23395 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
23396 All users updated.
23397 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
23398 * util/grub-probe.c (probe_partmap): Don't transform partition name
23399 to get module name.
23400
23401 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23402
23403 Fix OpenBSD and NetBSD support.
23404
23405 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
23406 memory address conflict.
23407 (OPENBSD_MMAP_ACPI): New definition.
23408 (OPENBSD_MMAP_NVS): Likewise.
23409 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
23410 and OPENBSD_MMAP_NVS.
23411 Add memory map terminator
23412 Explicit cast when calling grub_unix_real_boot.
23413 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
23414
23415 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23416
23417 Let user specify NetBSD root device.
23418
23419 * loader/i386/bsd.c (netbsd_root): New variable.
23420 (netbsd_opts): New option 'root'.
23421 (NETBSD_ROOT_ARG): New macro.
23422 (grub_netbsd_boot): Use 'netbsd_root'.
23423 (grub_bsd_unload): Free 'netbsd_root'.
23424 (grub_cmd_netbsd): Fill 'netbsd_root'.
23425
23426 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23427
23428 Support for 64-bit NetBSD.
23429
23430 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
23431 point when booting non-FreeBSD.
23432
23433 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23434
23435 Support --no-smp and --no-acpi for NetBSD.
23436
23437 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
23438 (NETBSD_AB_NOACPI): Likewise.
23439 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
23440 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
23441
23442 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23443
23444 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
23445 errors.
23446 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
23447 errors. Call grub_error when needed.
23448
23449 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23450
23451 * commands/search.c (search_fs): Try searching without autoload first.
23452 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
23453 filesystem module explicitly for faster booting.
23454
23455 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23456
23457 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
23458
23459 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23460
23461 * util/grub.d/30_os-prober.in: Disable os-prober if
23462 `GRUB_DISABLE_OS_PROBER' was set to true.
23463
23464 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
23465
23466 * partmap/pc.c: Rename to ...
23467 * partmap/msdos.c: ... this. Update all users.
23468 (grub_pc_partition_map): Rename to ...
23469 (grub_msdos_partition_map): ... this. Update all users.
23470
23471 * parttool/pcpart.c: Rename to ...
23472 * parttool/msdospart.c: ... this. Update all users.
23473
23474 * include/grub/pc_partition.h: Rename to ...
23475 * include/grub/msdos_partition.h: ... this. Update all users.
23476 (grub_pc_partition_bsd_entry): Rename to ...
23477 (grub_msdos_partition_bsd_entry): ... this. Update all users.
23478 (grub_pc_partition_disk_label): Rename to ...
23479 (grub_msdos_partition_disk_label): ... this. Update all users.
23480 (grub_pc_partition_entry): Rename to ...
23481 (grub_msdos_partition_entry): ... this. Update all users.
23482 (grub_pc_partition_mbr): Rename to ...
23483 (grub_msdos_partition_mbr): ... this. Update all users.
23484 (grub_pc_partition): Rename to ...
23485 (grub_msdos_partition): ... this. Update all users.
23486 (grub_pc_partition_is_empty): Rename to ...
23487 (grub_msdos_partition_is_empty): ... this. Update all users.
23488 (grub_pc_partition_is_extended): Rename to ...
23489 (grub_msdos_partition_is_extended): ... this. Update all users.
23490 (grub_pc_partition_is_bsd): Rename to ...
23491 (grub_msdos_partition_is_bsd): ... this. Update all users.
23492
23493 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
23494 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
23495 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
23496 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
23497 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
23498 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
23499 (gpt_mod_LDFLAGS): Rename to ...
23500 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
23501 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
23502 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
23503 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
23504 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
23505 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
23506 (part_gpt_mod_LDFLAGS): ... this.
23507 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
23508 `pcpart.mod' to `msdospart.mod'.
23509 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
23510 to ...
23511 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
23512 (msdospart_mod_LDFLAGS): ... this.
23513
23514 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23515
23516 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
23517 (openbsd_opts): Likewise.
23518 (netbsd_opts): Likewise.
23519 (freebsd_flags): Added 0 terminator.
23520 (openbsd_flags): Likewise.
23521 (netbsd_flags): Likewise.
23522 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
23523 (grub_cmd_freebsd): Transformed into extended command.
23524 (grub_cmd_openbsd): Likewise.
23525 (grub_cmd_netbsd): Likewise.
23526 (cmd_freebsd): Changed type to grub_extcmd_t.
23527 (cmd_openbsd): Likewise.
23528 (cmd_netbsd): Likewise.
23529 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
23530 grub_cmd_openbsd as extended commands.
23531 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
23532 cmd_netbsd and cmd_openbsd
23533
23534 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
23535
23536 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
23537
23538 2009-08-21 Pavel Roskin <proski@gnu.org>
23539
23540 * Makefile.in (install-local): When checking if a file is in the
23541 build directory, use "test -e" to detect symlinks.
23542
23543 * Makefile.in (install-local): Remove all files in
23544 $(DESTDIR)$(pkglibdir) before installing new files there.
23545
23546 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23547
23548 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
23549 grub-mkelfimage.
23550
23551 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23552
23553 * util/grub-mkconfig.in: Don't use gfxterm by default if not
23554 explicitly specified by the user.
23555
23556 2009-08-18 Pavel Roskin <proski@gnu.org>
23557
23558 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
23559 grub_uint8_t pointer for data.
23560 * include/grub/fbutil.h (struct grub_video_fbblit_info):
23561 Likewise.
23562 * video/fb/fbutil.c: Remove unnecessary casts.
23563
23564 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23565
23566 VBE cleanup.
23567
23568 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
23569 (grub_vbe_set_video_mode): Save active mode info
23570 only after setting the mode.
23571 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
23572 second argument.
23573
23574 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23575
23576 Rename variables for clarity.
23577
23578 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
23579 (active_vbe_mode_info): ... this. All users updated.
23580 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
23581 All users updated.
23582 (initial_mode): Rename to ...
23583 (initial_vbe_mode): ... this. All users updated.
23584 (mode_in_use): Rename to ..
23585 (vbe_mode_in_use): ... this. All users updated.
23586 (mode_list): Rename to ..
23587 (vbe_mode_list): ... this. All users updated.
23588 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
23589 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
23590 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
23591 'mode_list_size' to 'vbe_mode_list_size'.
23592 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
23593 'best_mode_info' to 'best_vbe_mode_info' and
23594 'best_mode' to 'best_vbe_mode'
23595
23596 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23597
23598 Remove duplicate grub_video_fb_get_video_ptr.
23599
23600 * include/grub/fbutil.h (get_data_ptr): Rename to ...
23601 (grub_video_fb_get_video_ptr): ... this.
23602 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
23603 * video/fb/fbutil.c: Add comment about addressing.
23604 (get_data_ptr): Rename to ...
23605 (grub_video_fb_get_video_ptr): ... this. All users updated.
23606 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
23607
23608 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23609
23610 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
23611 grub_dprintf() that was just added.
23612
23613 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23614
23615 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
23616 (DEFAULT_VIDEO_MODE): Remove macros.
23617 (grub_linux_boot): Remove assumption that Linux has FB support,
23618 and use "text" as default video mode.
23619
23620 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
23621
23622 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
23623 grub_dprintf.
23624 * fs/fat.c (grub_fat_read_data): Likewise.
23625
23626 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23627
23628 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
23629 payload.
23630 (grub_module): Likewise.
23631
23632 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23633
23634 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
23635 mbi->cmdline but free playground.
23636
23637 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23638
23639 Handle group offset on UFS1.
23640
23641 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
23642 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
23643
23644 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23645
23646 Split ufs.mod into ufs1.mod and ufs2.mod.
23647
23648 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
23649 (grub_fstest_SOURCES): Likewise.
23650 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
23651 (ufs_mod_SOURCES): Remove.
23652 (ufs_mod_CFLAGS): Likewise.
23653 (ufs_mod_LDFLAGS): Likewise.
23654 (ufs1_mod_SOURCES): New variable.
23655 (ufs1_mod_CFLAGS): Likewise.
23656 (ufs1_mod_LDFLAGS): Likewise.
23657 (ufs2_mod_SOURCES): New variable.
23658 (ufs2_mod_CFLAGS): Likewise.
23659 (ufs2_mod_LDFLAGS): Likewise.
23660 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
23661 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23662 Likewise.
23663 (grub_emu_SOURCES): Likewise.
23664 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23665 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23666 (grub_setup_SOURCES): Likewise.
23667 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23668 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
23669 (grub_setup_SOURCES): Likewise.
23670 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23671 Likewise.
23672 * fs/ufs2.c: New file.
23673 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
23674
23675 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23676
23677 Framebuffer split.
23678
23679 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
23680 subsystem at the end.
23681 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
23682 (video_fb_mod_SOURCES): New variable.
23683 (video_fb_mod_CFLAGS): Likewise.
23684 (video_fb_mod_LDFLAGS): Likewise.
23685 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
23686 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
23687 * video/i386/pc/vbeblit.c: Moved from here ...
23688 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
23689 * video/i386/pc/vbefill.c: Moved from here ...
23690 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
23691 * video/i386/pc/vbeutil.c: Moved from here ...
23692 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
23693 * include/grub/i386/pc/vbeblit.h: Moved from here ...
23694 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
23695 * include/grub/i386/pc/vbefill.h: Moved from here ...
23696 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
23697 * include/grub/i386/pc/vbeutil.h: Moved from here ...
23698 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
23699 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
23700 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
23701 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
23702 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
23703 (grub_video_adapter): Added 'get_info_and_fini'.
23704 (grub_video_get_info_and_fini): New prototype.
23705 (grub_video_set_mode): make modestring const char *.
23706 * loader/i386/linux.c (grub_linux_setup_video): Use
23707 grub_video_get_info_and_fini.
23708 (grub_linux_boot): Move modesetting just before booting.
23709 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
23710 grub_video_get_info_and_fini.
23711 * video/i386/pc/vbe.c: Moved framebuffer part ...
23712 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
23713 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
23714 grub_video_fbstd_colors and grub_video_fb_set_palette.
23715 (grub_video_vbe_init): Clear 'framebuffer' variable and use
23716 grub_video_fb_init.
23717 (grub_video_vbe_fini): Use grub_video_fb_fini.
23718 (grub_video_vbe_setup): Use framebuffer.render_target instead of
23719 render_target and use grub_video_fb_set_active_render_target and
23720 grub_video_fb_set_palette.
23721 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
23722 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
23723 (grub_video_vbe_adapter): Use framebuffer.
23724 * video/video.c (grub_video_get_info_and_fini): New function.
23725 (grub_video_set_mode): Make modestring const char *.
23726 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
23727 values are already initialised.
23728
23729 2009-08-14 Pavel Roskin <proski@gnu.org>
23730
23731 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
23732 ABS and APPLE_CC.
23733 * boot/i386/pc/diskboot.S: Likewise.
23734 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
23735 sectors allow compilation on MacOSX.
23736 * conf/i386-pc.rmk: Enable unconditional compilation of
23737 lnxboot.img.
23738
23739 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
23740
23741 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
23742 * util/grub.d/00_header.in: Enter interruptible sleep if
23743 GRUB_HIDDEN_TIMEOUT is set.
23744
23745 2009-08-13 Yves Blusseau <blusseau@zetam.org>
23746
23747 * include/grub/symbol.h: Add the LOCAL macro.
23748 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
23749 starting with "L_".
23750
23751 2009-08-13 Pavel Roskin <proski@gnu.org>
23752
23753 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
23754 any modern compilers we support.
23755
23756 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
23757 Use local labels starting with "L_" so that Apple assembler
23758 knows they are local.
23759
23760 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
23761
23762 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
23763 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
23764 (bsd_kernel_types): ... this enum.
23765
23766 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
23767 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
23768 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
23769
23770 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
23771 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
23772 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
23773 messages.
23774
23775 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23776
23777 * util/grub-dumpdevtree: Moved from here ...
23778 * util/i386/efi/grub-dumpdevtree: ... to here.
23779 (hexify): New function. Converts a string to its hex version.
23780 Generate hex versions of "efi" and "device-properties" by calling
23781 hexify() on the ASCII strings rather than by hardcoding numbers.
23782
23783 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23784
23785 * fs/jfs.c: Update copyright year.
23786
23787 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23788
23789 * util/grub.d/00_header.in: Fix a comment.
23790 * util/grub.d/10_linux.in: Likewise.
23791 * util/grub.d/10_windows.in: Likewise.
23792 * util/grub.d/10_hurd.in: Likewise.
23793
23794 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23795
23796 * util/grub-mkconfig.in: Allow the user to specify the used font
23797 with GRUB_FONT.
23798
23799 2009-08-08 Pavel Roskin <proski@gnu.org>
23800
23801 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
23802 available, xfs.mod needs it now.
23803
23804 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
23805 the "g" modifier in sed when the intention is to strip something
23806 once. This fixes comparison of kernels with multiple dashes.
23807
23808 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
23809 on it. Add missing space before closing bracket. Fix
23810 misleading formatting.
23811
23812 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23813
23814 * docs/grub.texi: Major overhaul. Remove all sections that are
23815 specific to GRUB Legacy, or mostly composed of Legacy-specific
23816 information.
23817
23818 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23819
23820 * docs/version.texi: New file. Provides version information for
23821 grub.texi.
23822
23823 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23824
23825 * docs/grub.texi: Update CVS information to SVN.
23826 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
23827
23828 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23829
23830 * util/grub-mkconfig.in: Remove a wrong `fi'.
23831
23832 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23833
23834 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
23835 (grub_jfs_uuid): New function.
23836 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
23837
23838 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23839
23840 * util/grub-mkconfig_lib.in (font_path): Move the functionality
23841 of it to ...
23842 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
23843 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
23844
23845 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23846
23847 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
23848 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
23849 Update all users.
23850
23851 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
23852 not just "vmlinu[zx]".
23853 Moved from here ...
23854 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
23855 all users.
23856
23857 * util/grub.d/10_linux.in (find_latest): Moved from here ...
23858 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
23859 all users.
23860
23861 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23862
23863 * util/grub.d/10_freebsd.in: Use an absolute device path for
23864 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
23865
23866 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
23867
23868 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
23869 handling of multiple abstraction modules.
23870
23871 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
23872
23873 Fix a bug resulting in black screen when loading Linux using a
23874 packed video mode.
23875
23876 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
23877 function.
23878
23879 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
23880 (grub_vbe_bios_getset_dac_palette_width): New function.
23881 (grub_vbe_bios_get_dac_palette_width)
23882 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
23883 grub_vbe_bios_getset_dac_palette_width()).
23884
23885 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
23886 check for return status.
23887 (grub_vbe_get_video_mode_info): When getting information for a packed
23888 mode (<= 8 bpp), obtain DAC palette width using
23889 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
23890 {red,green,blue}_mark_size.
23891
23892 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
23893
23894 * commands/search.c (options): Fix help output to match actual code.
23895
23896 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
23897
23898 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
23899 of homegrown code.
23900
23901 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23902
23903 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
23904 on XFS or ReiserFS.
23905
23906 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23907
23908 Support Apple partition map with sector size different from 512 bytes.
23909
23910 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
23911 (apple_partition_map_iterate): Respect 'aheader.blocksize'
23912 and 'apart.partmap_size'.
23913
23914 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23915 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
23916
23917 Fix cpuid command.
23918
23919 * commands/i386/cpuid.c (options): New variable.
23920 (grub_cmd_cpuid): Return real error.
23921 (GRUB_MOD_INIT(cpuid)): Declare options.
23922
23923 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
23924
23925 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
23926 valid.
23927
23928 2009-07-31 Bean <bean123ch@gmail.com>
23929
23930 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
23931 log2_inode.
23932 (grub_fshelp_node): Move inode field to the end.
23933 (grub_xfs_data): Remove inode field.
23934 (grub_xfs_inode_block): Calculate inode size using sblock.
23935 (grub_xfs_inode_offset): Likewise.
23936 (grub_xfs_read_inode): Calculate inode size using sblock.
23937 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
23938 (grub_xfs_iterate_dir): Calculate inode size using sblock.
23939 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
23940 to match inode size.
23941 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
23942 not accessible when data is null.
23943 (grub_xfs_open): Likewise.
23944
23945 2009-07-31 Bean <bean123ch@gmail.com>
23946
23947 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
23948 Don't change pv->disk if it's already set.
23949
23950 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
23951 (grub_raid_register): ... here.
23952 (grub_raid_rescan): Removed.
23953
23954 * include/grub/raid.h (grub_raid_rescan): Removed.
23955
23956 * util/grub-fstest.c: Remove include file <grub/raid.h>.
23957 (fstest): Replace grub_raid_rescan with module fini function followed
23958 by init function.
23959
23960 * util/grub-probe.c: Add include file <grub/raid.h>.
23961 (probe_raid_level): New function.
23962 (probe): Detect abstraction by walking the disk device, support two
23963 level of abstraction (LVM on RAID) when detecting partition map.
23964
23965 2009-07-31 Pavel Roskin <proski@gnu.org>
23966
23967 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
23968 to grub_zalloc(), it was erroneous.
23969 Reported by Bean <bean123ch@gmail.com>
23970
23971 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
23972
23973 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
23974 embedding zone, not only the first one.
23975
23976 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
23977
23978 * term/gfxterm.c (clear_char): New function.
23979 (grub_virtual_screen_setup): Use clear_char.
23980 (scroll_up): Likewise.
23981 (grub_virtual_screen_cls): Likewise.
23982
23983 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
23984
23985 * util/deviceiter.c (get_acceleraid_disk_name): New static
23986 function.
23987 (grub_util_iterate_devices): Handle Accelraid devices.
23988 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
23989
23990 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
23991
23992 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
23993 separator for the suggested gfxpayload string (';' collides with the
23994 parser and needs escaping).
23995
23996 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
23997
23998 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
23999 Clear direction flag before jumping to OS.
24000 (grub_multiboot2_real_boot): Likewise.
24001
24002 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24003
24004 * util/i386/pc/grub-install: Fix parsing of --disk-module
24005 option.
24006
24007 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24008
24009 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
24010 when embedding.
24011
24012 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
24013
24014 * util/grub-mkconfig.in (package_version): New variable.
24015 Use it do display the version.
24016
24017 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24018
24019 * kern/file.c (grub_file_open): Revert to previous check with
24020 grub_errno.
24021
24022 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24023
24024 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
24025 from help line. It's out of sync with code.
24026
24027 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24028
24029 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
24030 entries on failed boot.
24031
24032 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24033
24034 * kern/file.c (grub_file_open): Fix an error check.
24035
24036 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
24037
24038 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
24039 partition map couldn't be identified.
24040
24041 2009-07-23 Pavel Roskin <proski@gnu.org>
24042
24043 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
24044 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
24045 case of little endian words becomes just an optimization.
24046 Respect const modifier.
24047 (md5_final): Use code that doesn't depend on endianness.
24048
24049 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
24050 to avoid loss of upper bits if align is unsigned and shorter
24051 than addr.
24052
24053 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24054
24055 UUID support for UFS
24056
24057 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
24058 (grub_ufs_uuid): New function.
24059 (grub_ufs_fs): add .uuid
24060
24061 2009-07-21 Pavel Roskin <proski@gnu.org>
24062
24063 * kern/dl.c (grub_dl_check_header): Make static.
24064
24065 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
24066
24067 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
24068 add drivemap for Vista. It breaks Windows 7.
24069
24070 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24071
24072 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
24073 128 bytes
24074
24075 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24076
24077 Add BFS support
24078
24079 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
24080 (grub_fstest_SOURCES): Likewise.
24081 (pkglib_MODULES): Add befs.mod.
24082 (befs_mod_SOURCES): New variable.
24083 (befs_mod_CFLAGS): Likewise.
24084 (befs_mod_LDFLAGS): Likewise.
24085 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24086 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24087 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24088 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24089 (grub_setup_SOURCES): Likewise.
24090 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24091 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24092 (grub_setup_SOURCES): Likewise.
24093 * fs/befs.c: New file.
24094 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
24095 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
24096 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
24097 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
24098 (B_KEY_INDEX_ALIGN): New declaration.
24099 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
24100 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
24101 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
24102 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
24103 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
24104 (grub_afs_mount) [MODE_BFS]: Likewise.
24105 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
24106 (grub_afs_fs): Use GRUB_AFS_FSNAME
24107 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
24108 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
24109 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
24110 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
24111
24112 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
24113
24114 * util/getroot.c (find_root_device): Add support for MacOSX.
24115 * util/hostdisk.c: Likewise.
24116
24117 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24118
24119 * font/font.c (find_glyph): Check whether a font is present to avoid
24120 segmentation fault.
24121
24122 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
24123
24124 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
24125
24126 2009-07-20 Pavel Roskin <proski@gnu.org>
24127
24128 * configure.ac: Trim excessively wordy excuses.
24129
24130 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24131
24132 Add symlink, mtime and label support to AtheFS.
24133
24134 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
24135 (grub_afs_iterate_dir): Handle symlinks.
24136 (grub_afs_open): Use grub_afs_read_symlink.
24137 (grub_afs_dir): Likewise.
24138 Pass mtime.
24139 (grub_afs_label): New function.
24140 (grub_afs_fs): Add grub_afs_label.
24141 (grub_afs_read_symlink): New function.
24142
24143 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24144
24145 Fix AtheFS support.
24146
24147 * fs/afs.c: Fix comments style.
24148 (grub_afs_blockrun): Declare as packed.
24149 (grub_afs_datastream): Likewise.
24150 (grub_afs_bnode): Likewise.
24151 (grub_afs_btree): Likewise.
24152 (grub_afs_sblock): Likewise.
24153 Declare `name' as char.
24154 (grub_afs_inode): Declare as packed.
24155 Change void *vnode to grub_uint32_t unused.
24156 (grub_afs_iterate_dir): Check that key_size is positive.
24157 (grub_afs_mount): Don't read superblock twice.
24158 (grub_afs_dir): Don't free node in case of error,
24159 grub_fshelp_find_file already handles this.
24160 (grub_afs_open): Likewise.
24161
24162 2009-07-19 Pavel Roskin <proski@gnu.org>
24163
24164 * Makefile.in: Remove LIBLZO and enable_lzo.
24165 * conf/i386-pc.rmk: Remove lzo support.
24166 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
24167 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
24168 support.
24169 * kern/i386/pc/lzo1x.S: Remove.
24170 * kern/i386/pc/startup.S: Remove lzo support.
24171 * util/i386/pc/grub-mkimage.c: Likewise.
24172
24173 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
24174
24175 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
24176 * fs/xfs.c (grub_xfs_dir): Likewise.
24177 * fs/afs.c (grub_afs_dir): Likewise.
24178 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
24179 (grub_iso9660_open): Likewise.
24180 * fs/jfs.c (grub_jfs_open): Likewise.
24181 * fs/ext2.c (grub_ext2_dir): Likewise.
24182 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
24183 * script/sh/lexer.c (grub_script_yylex): Likewise.
24184
24185 2009-07-16 Pavel Roskin <proski@gnu.org>
24186
24187 * configure.ac: Never add "-c" to CFLAGS.
24188
24189 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
24190
24191 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
24192 grub_cv_cc_efiemu should be used.
24193
24194 * configure.ac: Typo fixes.
24195
24196 * kern/mm.c (grub_zalloc): New function.
24197 (grub_debug_zalloc): Likewise.
24198 * include/grub/mm.h: Declare grub_zalloc() and
24199 grub_debug_zalloc().
24200 * util/misc.c (grub_zalloc): New function.
24201 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
24202 instead of grub_malloc(), remove unneeded initializations.
24203 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
24204 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
24205 * commands/parttool.c (grub_cmd_parttool): Likewise.
24206 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24207 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
24208 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
24209 * disk/usbms.c (grub_usbms_finddevs): Likewise.
24210 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
24211 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
24212 (grub_cmd_efiemu_pnvram): Likewise.
24213 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
24214 * fs/iso9660.c (grub_iso9660_mount): Likewise.
24215 (grub_iso9660_iterate_dir): Likewise.
24216 * fs/jfs.c (grub_jfs_opendir): Likewise.
24217 * fs/ntfs.c (list_file): Likewise.
24218 (grub_ntfs_mount): Likewise.
24219 * kern/disk.c (grub_disk_open): Likewise.
24220 * kern/dl.c (grub_dl_load_core): Likewise.
24221 * kern/elf.c (grub_elf_file): Likewise.
24222 * kern/env.c (grub_env_context_open): Likewise.
24223 (grub_env_set): Likewise.
24224 (grub_env_set_data_slot): Likewise.
24225 * kern/file.c (grub_file_open): Likewise.
24226 * kern/fs.c (grub_fs_blocklist_open): Likewise.
24227 * loader/i386/multiboot.c (grub_module): Likewise.
24228 * loader/xnu.c (grub_xnu_create_key): Likewise.
24229 (grub_xnu_create_value): Likewise.
24230 * normal/main.c (grub_normal_add_menu_entry): Likewise.
24231 (read_config_file): Likewise.
24232 * normal/menu_entry.c (make_screen): Likewise.
24233 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24234 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
24235 * script/sh/script.c (grub_script_parse): Likewise.
24236 * video/bitmap.c (grub_video_bitmap_create): Likewise.
24237 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
24238 * video/readers/png.c (grub_png_output_byte): Likewise.
24239 (grub_video_reader_png): Likewise.
24240
24241 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24242
24243 Enable all targets that can be built by default
24244
24245 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
24246 grub-mkfont and grub-fstest if they can be built
24247
24248 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24249
24250 Fix hang and segmentation fault in grub-emu-usb
24251
24252 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
24253 * util/usb.c (grub_libusb_devices): likewise
24254 (grub_libusb_init): rename to ...
24255 (GRUB_MOD_INIT (libusb)):...this
24256 (grub_libusb_fini): rename to ..
24257 (GRUB_MOD_FINI (libusb)):...this
24258 * disk/usbms.c (grub_usbms_transfer): fix retry logic
24259 * include/grub/disk.h (grub_raid_init): removed, it's useless
24260 (grub_raid_fini): likewise
24261 (grub_lvm_init): likewise
24262 (grub_lvm_fini): likewise
24263 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
24264 by grub_init_all
24265
24266 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24267
24268 Fix libusb
24269
24270 * Makefile.in (LIBUSB): new macro
24271 * genmk.rb (Utility/print_tail): new method
24272 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
24273 (top level): call util.print_tail at the end.
24274
24275 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24276
24277 Make FreeBSD accept zpool.cache
24278
24279 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
24280 type is /boot/zfs/zpool.cache
24281
24282 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24283
24284 Fix 64-bit efiemu
24285
24286 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
24287 correct wrong typedef
24288 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
24289
24290 2009-07-15 Pavel Roskin <proski@gnu.org>
24291
24292 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
24293 * kern/disk.c (struct grub_disk_cache): Likewise.
24294
24295 * commands/probe.c (options): Typo fix.
24296
24297 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
24298 Increase to 0x5a to accommodate FAT32. Adjust other offsets
24299 accordingly.
24300 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
24301
24302 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
24303 the end of "Error" to make the message more readable.
24304
24305 * boot/i386/pc/boot.S (kernel_segment): Remove.
24306 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
24307 for destination.
24308
24309 * boot/i386/pc/boot.S (boot_version): Remove.
24310 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
24311 Remove.
24312
24313 * include/grub/i386/pc/boot.h: Sort all offsets.
24314 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
24315 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
24316 * boot/i386/pc/boot.S: Assert location of every offset listed in
24317 include/grub/i386/pc/boot.h.
24318
24319 2009-07-13 Pavel Roskin <proski@gnu.org>
24320
24321 * include/grub/i386/coreboot/machine.h: Rename
24322 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
24323 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
24324 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
24325
24326 * kern/dl.c: Force native word size to suppress warnings when
24327 compiling grub-emu.
24328
24329 * kern/device.c (grub_device_iterate): Change struct part_ent to
24330 hold the name, not a pointer to it. Use one grub_malloc() per
24331 partition, not two. Free partition_name if grub_malloc() fails.
24332 Set ents to NULL only before grub_partition_iterate() is called.
24333
24334 2009-07-11 Bean <bean123ch@gmail.com>
24335
24336 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
24337 childname.
24338
24339 2009-07-10 Bean <bean123ch@gmail.com>
24340 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
24341
24342 * kern/ieee1275/openfw.c (grub_children_iterate)
24343 (grub_devalias_iterate): Fix size evaluation for property or path
24344 strings, which was broken since r2132.
24345
24346 2009-07-07 Pavel Roskin <proski@gnu.org>
24347
24348 * commands/search.c (search_file): Merge into ...
24349 (search_fs): ... this. Accept search type as argument.
24350 (grub_cmd_search): Pass search type to search_fs().
24351
24352 * include/grub/util/console.h: New file.
24353 * util/console.c: Use it instead of grub/machine/console.h.
24354 * util/grub-emu.c: Likewise.
24355
24356 * lib/arg.c (find_long_option): Remove.
24357 (find_long): Add `len' argument, make `s' const char *.
24358 (grub_arg_parse): Parse long options in place, not in a
24359 temporary buffer.
24360
24361 2009-07-06 Pavel Roskin <proski@gnu.org>
24362
24363 * commands/search.c (search_fs): Fix potential NULL pointer
24364 dereference.
24365
24366 * commands/search.c (search_fs): Replace QUID macro with quid_fn
24367 function pointer.
24368
24369 2009-07-06 Daniel Mierswa <impulze@impulze.org>
24370
24371 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
24372 comparison.
24373
24374 2009-07-05 Pavel Roskin <proski@gnu.org>
24375
24376 * include/grub/i386/linux.h (struct linux_kernel_params):
24377 Restore padding3, it's still needed.
24378
24379 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
24380 FreeBSD.
24381 * util/osdetect.lua: Likewise.
24382
24383 2009-07-05 Bean <bean123ch@gmail.com>
24384
24385 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
24386
24387 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
24388 (grub_lua_getenv): Likewise.
24389 (grub_lua_setenv): Likewise.
24390 (save_errno): New function.
24391 (push_result): Likewise.
24392 (grub_lua_enum_device): Likewise.
24393 (grub_lua_enum_file): Likewise.
24394 (grub_lua_file_open): Likewise.
24395 (grub_lua_file_close): Likewise.
24396 (grub_lua_file_seek): Likewise.
24397 (grub_lua_file_read): Likewise.
24398 (grub_lua_file_getline): Likewise.
24399 (grub_lua_file_getsize): Likewise.
24400 (grub_lua_file_getpos): Likewise.
24401 (grub_lua_file_eof): Likewise.
24402 (grub_lua_file_exist): Likewise.
24403 (grub_lua_add_menu): Likewise.
24404
24405 * script/lua/grub_lua.h (isupper): New inline function.
24406 (islower): Likewise.
24407 (ispunct): Likewise.
24408 (isxdigit): Likewise.
24409 (strcspn): Change to normal function.
24410 (strpbkr): New function declaration.
24411 (memchr): Likewise.
24412
24413 * script/lua/grub_main.c (scan_str): New function.
24414 (strcspn): Likewise.
24415 (strpbrk): Likewise.
24416 (memchr): Likewise.
24417
24418 * script/lua/linit.c (lualibs): Enable the string library.
24419
24420 * util/osdetect.lua: New file.
24421
24422 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
24423
24424 * include/grub/i386/linux.h (struct linux_kernel_params): Add
24425 `capabilities' member.
24426
24427 2009-07-02 Pavel Roskin <proski@gnu.org>
24428
24429 * genparttoollist.sh: Add missing newline at the end.
24430
24431 2009-07-01 Pavel Roskin <proski@gnu.org>
24432
24433 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
24434
24435 * util/hostdisk.c (open_device): Remove `const' from
24436 `sysctl_size', as sysctlbyname() can change it (in this case it
24437 doesn't actually happen).
24438
24439 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
24440 using signed long int constants.
24441
24442 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
24443 constant to avoid a warning on FreeBSD.
24444
24445 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
24446 where it's needed.
24447
24448 * Makefile.in: Install include/grub/machine symlink.
24449
24450 * Makefile.in: When installing symlinks, use "cp -fR", which
24451 works on FreeBSD and MacOSX.
24452 From Yves Blusseau <cl7m42e02@sneakemail.com>
24453
24454 * kern/dl.c (grub_dl_resolve_symbol): Make static.
24455 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
24456
24457 * util/misc.c: Move grub_reboot() and grub_halt() ...
24458 * util/grub-emu.c: ... here. Make main_env static.
24459 * include/grub/util/misc.h: Remove main_env.
24460
24461 * kern/mm.c: Use correct format to print size_t.
24462
24463 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
24464 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
24465 * kern/powerpc/dl.c: Likewise.
24466 * kern/sparc64/dl.c: Likewise.
24467 * kern/x86_64/dl.c: Likewise.
24468
24469 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24470
24471 Fix grub-emu build on sparc64-ieee1275.
24472
24473 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
24474 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
24475
24476 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24477
24478 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
24479 (grub_reboot, grub_halt): New functions.
24480
24481 * util/i386/pc/misc.c: Delete. Update all users.
24482 * util/sparc64/ieee1275/misc.c: Likewise.
24483 * util/powerpc/ieee1275/misc.c: Likewise.
24484
24485 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24486
24487 * conf/i386.rmk (setjmp_mod_SOURCES)
24488 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
24489 * conf/common.rmk (setjmp_mod_SOURCES)
24490 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
24491 to use $(target_cpu).
24492 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
24493 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
24494 * conf/powerpc-ieee1275.rmk: Likewise.
24495 * conf/sparc64-ieee1275.rmk: Likewise.
24496
24497 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
24498 $(target_cpu) for kern/$(target_cpu)/dl.c.
24499 * conf/i386-efi.rmk: Likewise.
24500 * conf/i386-ieee1275.rmk: Likewise.
24501 * conf/x86_64-efi.rmk: Likewise.
24502 * conf/i386-coreboot.rmk: Likewise.
24503 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
24504 $(target_cpu) for kern/$(target_cpu)/dl.c and for
24505 kern/$(target_cpu)/cache.S.
24506 * conf/sparc64-ieee1275.rmk: Likewise.
24507
24508 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24509
24510 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
24511 type to `grub_uint8_t', and adjust `padding9' accordingly.
24512
24513 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24514
24515 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
24516
24517 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
24518 assembly in final jump, using register constraints.
24519
24520 (grub_linux_boot): For text mode, initialize `have_vga' using
24521 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
24522
24523 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
24524 right before the final jump.
24525
24526 Set `video_mode' to 0x3.
24527
24528 Document initialization of `video_page', `video_mode' and
24529 `video_ega_bx'.
24530
24531 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24532
24533 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
24534 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
24535 and set GRUB_LINUX_FLAG_QUIET appropriately.
24536
24537 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24538
24539 Fix build on Debian / sparc.
24540
24541 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
24542
24543 2009-06-28 Pavel Roskin <proski@gnu.org>
24544
24545 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
24546 fix a warning.
24547
24548 * util/grub.d/10_linux.in: Match SUSE style initrd names.
24549
24550 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24551
24552 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
24553 `err'.
24554
24555 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24556
24557 Revert r2338.
24558
24559 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
24560 file can't be opened. grub_file_open() is already supposed to set
24561 grub_errno / grub_errmsg appropriately.
24562 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24563
24564 2009-06-27 Pavel Roskin <proski@gnu.org>
24565 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24566
24567 * include/grub/dl.h: Include grub/elf.h.
24568 (struct grub_dl): Add symtab field.
24569 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
24570 GRUB_MODULES_MACHINE_READONLY.
24571 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
24572 of the header for read-only modules.
24573 (grub_dl_unload): Free mod->symtab for read-only modules.
24574 * kern/i386/dl.c: Use mod->symtab.
24575 * kern/powerpc/dl.c: Likewise.
24576 * kern/sparc64/dl.c: Likewise.
24577 * kern/x86_64/dl.c: Likewise.
24578
24579 * conf/i386-qemu.rmk: New file.
24580 * kern/i386/qemu/startup.S: Likewise.
24581 * kern/i386/qemu/mmap.c: Likewise.
24582 * boot/i386/qemu/boot.S: Likewise.
24583 * include/grub/i386/qemu/time.h: Likewise.
24584 * include/grub/i386/qemu/serial.h: Likewise.
24585 * include/grub/i386/qemu/kernel.h: Likewise.
24586 * include/grub/i386/qemu/console.h: Likewise.
24587 * include/grub/i386/qemu/boot.h: Likewise.
24588 * include/grub/i386/qemu/init.h: Likewise.
24589 * include/grub/i386/qemu/machine.h: Likewise.
24590 * include/grub/i386/qemu/loader.h: Likewise.
24591 * include/grub/i386/qemu/memory.h: Likewise.
24592
24593 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
24594 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
24595 [qemu] (pkglib_IMAGES): Add `boot.img'.
24596 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
24597 [qemu] (boot_img_FORMAT): New variables.
24598 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
24599 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
24600 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
24601 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24602 [qemu] (kernel_img_FORMAT): New variables.
24603
24604 * configure.ac: Recognise `i386-qemu'.
24605
24606 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
24607 (for no compression).
24608 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
24609 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
24610 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
24611 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
24612 ifdefs).
24613
24614 2009-06-27 Pavel Roskin <proski@gnu.org>
24615
24616 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
24617 read.
24618 * efiemu/prepare32.c: Likewise.
24619 * efiemu/prepare64.c: Likewise.
24620
24621 2009-06-26 Pavel Roskin <proski@gnu.org>
24622
24623 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
24624 * include/grub/elf.h: Define symbols without "32" or "64" based
24625 on GRUB_TARGET_WORDSIZE.
24626 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
24627 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
24628 ELF definitions.
24629 * efiemu/loadcore64.c: Likewise.
24630 * loader/i386/bsd32.c: Likewise.
24631 * loader/i386/bsd64.c: Likewise.
24632 * kern/dl.c: Remove own ELF definitions.
24633 * util/i386/efi/grub-mkimage.c: Likewise.
24634
24635 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
24636
24637 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
24638 segment 0x0 unconditionally, because the reference generated by
24639 GAS is an absolute address.
24640
24641 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24642
24643 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
24644 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
24645
24646 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24647
24648 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
24649 indexes. Check for -f explicitly.
24650 (search_file): Improve error message.
24651 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
24652
24653 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24654
24655 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
24656 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
24657
24658 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24659
24660 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
24661 * conf/i386-ieee1275.rmk: Likewise.
24662 * conf/i386-coreboot.rmk: Likewise.
24663
24664 * kern/i386/pc/startup.S (grub_stop): Remove function.
24665 * kern/i386/ieee1275/startup.S: Likewise.
24666 * kern/i386/coreboot/startup.S: Likewise.
24667 * kern/i386/misc.S (grub_stop): New function.
24668
24669 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24670
24671 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
24672 * kern/i386/realmode.S (real_to_prot): ... to here.
24673
24674 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24675
24676 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
24677 with `kernel.img'.
24678 (kernel_elf_SOURCES): Rename to ...
24679 (kernel_img_SOURCES): ... this.
24680 (kernel_elf_HEADERS): Rename to ...
24681 (kernel_img_HEADERS): ... this. Update all users.
24682 (kernel_elf_ASFLAGS): Rename to ...
24683 (kernel_img_ASFLAGS): ... this.
24684 (kernel_elf_CFLAGS): Rename to ...
24685 (kernel_img_CFLAGS): ... this.
24686 (kernel_elf_LDFLAGS): Rename to ...
24687 (kernel_img_LDFLAGS): ... this.
24688 * conf/i386-coreboot.rmk: Likewise.
24689 * conf/powerpc-ieee1275.rmk: Likewise.
24690
24691 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
24692 with "kernel.img".
24693
24694 2009-06-21 Pavel Roskin <proski@gnu.org>
24695
24696 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
24697 to match nested functions.
24698 * loader/sparc64/ieee1275/linux.c: Likewise.
24699
24700 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
24701
24702 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24703
24704 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
24705 all i386 platforms.
24706
24707 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24708
24709 Fix asm file handling on ELF, and remove workarounds.
24710
24711 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
24712 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
24713 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
24714 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
24715
24716 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
24717
24718 Load BSD ELF modules
24719
24720 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
24721 and loader/i386/bsd64.c
24722 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
24723 (FREEBSD_MODTYPE_ELF_MODULE): New definition
24724 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
24725 (grub_freebsd_load_elfmodule32): New declaration
24726 (grub_freebsd_load_elfmoduleobj64): Likewise
24727 (grub_freebsd_load_elf_meta32): Likewise
24728 (grub_freebsd_load_elf_meta64): Likewise
24729 (grub_freebsd_add_meta): Likewise
24730 (grub_freebsd_add_meta_module): Likewise
24731 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
24732 (grub_freebsd_add_meta_module): Likewise and move module-specific
24733 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
24734 (grub_cmd_freebsd): Add elf-kernel specific parts
24735 based on grub_freebsd_add_meta_module
24736 (grub_cmd_freebsd_module): Add type parsing moved from
24737 grub_freebsd_add_meta_module
24738 (grub_cmd_freebsd_module_elf): New function
24739 (cmd_freebsd_module_elf): New variable
24740 (GRUB_MOD_INIT): Register freebsd_module_elf
24741 * loader/i386/bsd32.c: New file
24742 * loader/i386/bsd64.c: Likewise
24743 * loader/i386/bsdXX.c: Likewise
24744 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
24745 (grub_elf64_load): Likewise
24746 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
24747 All users updated
24748 (grub_elf64_load_hook_t): Likewise
24749
24750 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
24751
24752 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
24753 variable.
24754 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
24755 don't write a menu entry for recovery mode.
24756
24757 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24758
24759 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
24760 after it's no longer needed.
24761
24762 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24763
24764 * include/grub/i386/loader.h (grub_linux_prot_size)
24765 (grub_linux_tmp_addr, grub_linux_real_addr)
24766 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
24767 GRUB_MACHINE_PCBIOS.
24768 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
24769 common grub_util_info() call to ...
24770 (generate_image): ... here.
24771 Fix use of uninitialized memory, comparison of signed with
24772 unsigned integers and memory leak.
24773 Remove bogus module address message.
24774
24775 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24776
24777 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
24778 grub_raid_register
24779 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
24780
24781 2009-06-19 Pavel Roskin <proski@gnu.org>
24782
24783 * configure.ac: Remove stray AC_MSG_CHECKING.
24784
24785 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
24786
24787 * disk/scsi.c (grub_scsi_open): use continue instead of big if
24788
24789 2009-06-18 Pavel Roskin <proski@gnu.org>
24790
24791 * conf/common.rmk: Add fs_file.mod.
24792 * disk/fs_file.c: New file.
24793 * include/grub/disk.h (enum grub_disk_dev_id): Add
24794 GRUB_DISK_DEVICE_FILE_ID.
24795
24796 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24797
24798 Fix build with Apple's toolchain. Part 2
24799
24800 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
24801 a fake start
24802
24803 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24804
24805 Fix build with Apple's toolchain. Part 1
24806
24807 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
24808 for long calls
24809 * configure.ac: remove a leftover AC_MSG_RESULT
24810 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
24811 Apple's toolchain
24812
24813 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24814
24815 Fix warnings
24816
24817 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
24818 (decomp_block): initialize ch
24819 use grub_memcpy instead of memcpy
24820
24821 2009-06-17 Pavel Roskin <proski@gnu.org>
24822
24823 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
24824 version, use declarations needed to use vga_text as the startup
24825 console.
24826
24827 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
24828 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
24829 the kernel.
24830 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
24831 and grub_at_keyboard_fini(), it's done on module load and
24832 unload.
24833
24834 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
24835
24836 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
24837 file can't be found.
24838 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24839
24840 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
24841
24842 Fix newline handling
24843
24844 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
24845 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
24846 (grub_script_yylex): don't segfault on unterminated script
24847 newline terminates command and variable
24848
24849 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
24850
24851 avoid double grub_adjust_range call. Bug reported by David Simner
24852
24853 * kern/disk.c (grub_disk_write): change to raw disk access before
24854 calling disk_read
24855
24856 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
24857
24858 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
24859 spaces, for the benefit of help2man.
24860 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24861
24862 2009-06-16 Pavel Roskin <proski@gnu.org>
24863
24864 * kern/i386/halt.c: Include grub/machine/init.h.
24865 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
24866
24867 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
24868
24869 * util/grub.d/30_os-prober.in: Use ${root} in the generated
24870 drivemap menuentry.
24871
24872 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
24873
24874 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
24875 `echo' command.
24876
24877 2009-06-16 Pavel Roskin <proski@gnu.org>
24878
24879 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
24880 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
24881 save %dx, we only need %dl and we never change it.
24882 * boot/i386/pc/cdboot.S: Don't set the root drive.
24883 * boot/i386/pc/pxeboot.S: Likewise.
24884 * include/grub/i386/pc/boot.h: Remove
24885 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
24886 GRUB_BOOT_MACHINE_DRIVE_CHECK.
24887 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
24888 * kern/i386/pc/init.c (make_install_device): Remove references
24889 to grub_root_drive.
24890 * kern/i386/pc/startup.S: Likewise.
24891 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
24892
24893 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
24894
24895 xnu_uuid command
24896
24897 * commands/xnu_uuid.c: new file
24898 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
24899 (xnu_uuid_mod_SOURCES): new variable
24900 (xnu_uuid_mod_CFLAGS): likewise
24901 (xnu_uuid_mod_LDFLAGS): likewise
24902 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
24903 * conf/i386-ieee1275.rmk: likewise
24904 * conf/i386-pc.rmk: likewise
24905 * conf/powerpc-ieee1275.rmk: likewise
24906 * conf/sparc64-ieee1275.rmk: likewise
24907 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
24908
24909 2009-06-16 Pavel Roskin <proski@gnu.org>
24910
24911 * configure.ac: Avoid '==' in test command, it's not portable.
24912
24913 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
24914
24915 Probe command
24916
24917 * commands/probe.c: new file
24918 * conf/common.rmk (pkglib_MODULES): add probe.mod
24919 (probe_mod_SOURCES): new variable
24920 (probe_mod_CFLAGS): likewise
24921 (probe_mod_LDFLAGS): likewise
24922 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
24923 * conf/i386-ieee1275.rmk: likewise
24924 * conf/i386-pc.rmk: likewise
24925 * conf/powerpc-ieee1275.rmk: likewise
24926 * conf/sparc64-ieee1275.rmk: likewise
24927
24928 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
24929
24930 Fix handling of string like \"hello\" and "a
24931 b"
24932
24933 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
24934 (grub_script_yylex): fix parsing of quoting, escaping and newline
24935
24936 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
24937
24938 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
24939 handling
24940
24941 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
24942
24943 * util/grub-mkconfig.in: Fix parsing of --output option.
24944
24945 2009-06-12 Pavel Roskin <proski@gnu.org>
24946
24947 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
24948 genmk.rb don't need to be generated or installed.
24949
24950 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24951
24952 * commands/i386/pc/drivemap_int13h.S: add more comments
24953
24954 2009-06-11 Pavel Roskin <proski@gnu.org>
24955
24956 * Makefile.in (uninstall): Uninstall manuals.
24957
24958 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
24959 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
24960 and update-grub_lib in two places.
24961 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
24962
24963 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
24964 a compiler warning.
24965
24966 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
24967 `entry_lo' to fix variable shadowing.
24968
24969 2009-06-11 Christian Franke <franke@computer.org>
24970
24971 * kern/misc.c (__enable_execute_stack): Add missing return type
24972 to prevent gcc warning.
24973
24974 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
24975
24976 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
24977
24978 2009-06-11 Pavel Roskin <proski@gnu.org>
24979
24980 * Makefile.in: Don't rely on any scripts being executable.
24981 Always use $(SHELL) to run shell scripts.
24982
24983 * configure.ac: Always define ___main if using -nostdlib. This
24984 fixes tests on Cygwin.
24985
24986 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
24987
24988 UDF fix
24989
24990 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
24991 is in bytes and not in blocks
24992
24993 2009-06-11 Pavel Roskin <proski@gnu.org>
24994
24995 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
24996 warning.
24997
24998 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
24999
25000 * util/grub.d/30_os-prober.in: Fix a comment. Source
25001 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
25002 to set the root device. Place drivemap command in the generated
25003 chain entry.
25004
25005 2009-06-11 Pavel Roskin <proski@gnu.org>
25006
25007 * configure.ac: Remove host_m32. Issues with 64-bit utilities
25008 have long been resolved.
25009
25010 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
25011
25012 * util/grub.d/10_linux.in: Capitalise "Linux".
25013
25014 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
25015
25016 2009-06-11 Pavel Roskin <proski@gnu.org>
25017
25018 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
25019 fix a gcc warning and ensure that the function won't ever exit.
25020
25021 * kern/i386/ieee1275/init.c: Add missing prototype for
25022 grub_stop_floppy().
25023
25024 * loader/ieee1275/multiboot2.c [__i386__]: Include
25025 grub/cpu/multiboot.h.
25026
25027 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
25028 casts to short - they are not portable and cause warnings. Fix
25029 use of uninitialized values in input_buf. Use ARRAY_SIZE.
25030
25031 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
25032
25033 Drivemap fixes
25034
25035 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
25036 new function
25037 (grub_get_root_biosnumber_saved): new variable
25038 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
25039 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
25040 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
25041 %dx after the call if necessary
25042 * conf/common.rmk (pkglib_MODULES): remove boot.mod
25043 (boot_mod_SOURCES): remove
25044 (boot_mod_CFLAGS): remove
25045 (boot_mod_LDFLAGS): remove
25046 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
25047 (boot_mod_SOURCES): new variable
25048 (boot_mod_CFLAGS): likewise
25049 (boot_mod_LDFLAGS): likewise
25050 * conf/i386-efi.rmk: likewise
25051 * conf/i386-ieee1275.rmk: likewise
25052 * conf/i386-pc.rmk: likewise
25053 * conf/powerpc-ieee1275.rmk: likewise
25054 * conf/sparc64-ieee1275.rmk: likewise
25055 * conf/x86_64-efi.rmk: likewise
25056 * include/grub/i386/pc/biosnum.h: new file
25057 * lib/i386/pc/biosnum.c: likewise
25058 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
25059 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
25060 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
25061
25062 2009-06-10 Pavel Roskin <proski@gnu.org>
25063
25064 * io/gzio.c (test_header): Don't reuse one buffer for all data.
25065 Use separate variables. Read only the file size at the end, but
25066 not the checksum that we don't use.
25067
25068 * kern/file.c (grub_file_read): Use void pointer for the buffer.
25069 Adjust all callers.
25070
25071 * kern/ieee1275/openfw.c: Remove libc includes.
25072 * kern/ieee1275/cmain.c: Likewise.
25073 * include/grub/ieee1275/ieee1275.h: Likewise.
25074
25075 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
25076 compiler warnings.
25077
25078 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25079
25080 * Makefile.in: Remove all trailing whitespace.
25081 * conf/i386-pc.rmk: Likewise.
25082 * conf/powerpc-ieee1275.rmk: Likewise.
25083 * conf/sparc64-ieee1275.rmk: Likewise.
25084 * docs/grub.texi: Likewise.
25085 * docs/texinfo.tex: Likewise.
25086 * disk/fs_uuid.c: Likewise.
25087 * disk/lvm.c: Likewise.
25088 * disk/scsi.c: Likewise.
25089 * disk/ata.c: Likewise.
25090 * disk/ieee1275/ofdisk.c: Likewise.
25091 * disk/i386/pc/biosdisk.c: Likewise.
25092 * disk/host.c: Likewise.
25093 * disk/raid.c: Likewise.
25094 * disk/efi/efidisk.c: Likewise.
25095 * disk/usbms.c: Likewise.
25096 * disk/memdisk.c: Likewise.
25097 * disk/loopback.c: Likewise.
25098 * kern/powerpc/dl.c: Likewise.
25099 * kern/device.c: Likewise.
25100 * kern/dl.c: Likewise.
25101 * kern/sparc64/dl.c: Likewise.
25102 * kern/ieee1275/ieee1275.c: Likewise.
25103 * kern/term.c: Likewise.
25104 * kern/fs.c: Likewise.
25105 * kern/i386/dl.c: Likewise.
25106 * kern/i386/pc/startup.S: Likewise.
25107 * kern/i386/pc/init.c: Likewise.
25108 * kern/i386/pc/mmap.c: Likewise.
25109 * kern/i386/pc/lzo1x.S: Likewise.
25110 * kern/i386/ieee1275/init.c: Likewise.
25111 * kern/i386/realmode.S: Likewise.
25112 * kern/i386/tsc.c: Likewise.
25113 * kern/partition.c: Likewise.
25114 * kern/corecmd.c: Likewise.
25115 * kern/file.c: Likewise.
25116 * kern/efi/efi.c: Likewise.
25117 * kern/efi/init.c: Likewise.
25118 * kern/efi/mm.c: Likewise.
25119 * kern/main.c: Likewise.
25120 * kern/err.c: Likewise.
25121 * kern/env.c: Likewise.
25122 * kern/disk.c: Likewise.
25123 * kern/generic/millisleep.c: Likewise.
25124 * kern/generic/rtc_get_time_ms.c: Likewise.
25125 * kern/misc.c: Likewise.
25126 * kern/parser.c: Likewise.
25127 * genmk.rb: Likewise.
25128 * configure.ac: Likewise.
25129 * boot/i386/pc/diskboot.S: Likewise.
25130 * boot/i386/pc/pxeboot.S: Likewise.
25131 * boot/i386/pc/boot.S: Likewise.
25132 * boot/i386/pc/lnxboot.S: Likewise.
25133 * boot/i386/pc/cdboot.S: Likewise.
25134 * parttool/pcpart.c: Likewise.
25135 * video/readers/tga.c: Likewise.
25136 * video/video.c: Likewise.
25137 * video/bitmap.c: Likewise.
25138 * lib/envblk.c: Likewise.
25139 * lib/i386/setjmp.S: Likewise.
25140 * fs/xfs.c: Likewise.
25141 * fs/afs.c: Likewise.
25142 * fs/fat.c: Likewise.
25143 * fs/ntfs.c: Likewise.
25144 * fs/udf.c: Likewise.
25145 * fs/affs.c: Likewise.
25146 * fs/iso9660.c: Likewise.
25147 * fs/hfs.c: Likewise.
25148 * fs/fshelp.c: Likewise.
25149 * fs/ext2.c: Likewise.
25150 * fs/jfs.c: Likewise.
25151 * fs/reiserfs.c: Likewise.
25152 * fs/hfsplus.c: Likewise.
25153 * fs/minix.c: Likewise.
25154 * fs/cpio.c: Likewise.
25155 * fs/sfs.c: Likewise.
25156 * fs/ufs.c: Likewise.
25157 * efiemu/prepare.c: Likewise.
25158 * efiemu/loadcore_common.c: Likewise.
25159 * efiemu/runtime/efiemu.sh: Likewise.
25160 * efiemu/runtime/efiemu.S: Likewise.
25161 * efiemu/runtime/efiemu.c: Likewise.
25162 * efiemu/pnvram.c: Likewise.
25163 * efiemu/main.c: Likewise.
25164 * efiemu/i386/pc/cfgtables.c: Likewise.
25165 * efiemu/i386/loadcore64.c: Likewise.
25166 * efiemu/i386/loadcore32.c: Likewise.
25167 * efiemu/loadcore.c: Likewise.
25168 * efiemu/symbols.c: Likewise.
25169 * efiemu/mm.c: Likewise.
25170 * include/grub/autoefi.h: Likewise.
25171 * include/grub/datetime.h: Likewise.
25172 * include/grub/term.h: Likewise.
25173 * include/grub/hfs.h: Likewise.
25174 * include/grub/lvm.h: Likewise.
25175 * include/grub/i386/tsc.h: Likewise.
25176 * include/grub/i386/linux.h: Likewise.
25177 * include/grub/i386/xnu.h: Likewise.
25178 * include/grub/i386/efiemu.h: Likewise.
25179 * include/grub/i386/pc/biosdisk.h: Likewise.
25180 * include/grub/i386/pc/memory.h: Likewise.
25181 * include/grub/i386/pc/vbe.h: Likewise.
25182 * include/grub/parttool.h: Likewise.
25183 * include/grub/video.h: Likewise.
25184 * include/grub/memory.h: Likewise.
25185 * include/grub/fs.h: Likewise.
25186 * include/grub/partition.h: Likewise.
25187 * include/grub/xnu.h: Likewise.
25188 * include/grub/efi/api.h: Likewise.
25189 * include/grub/efi/pe32.h: Likewise.
25190 * include/grub/efi/memory.h: Likewise.
25191 * include/grub/multiboot.h: Likewise.
25192 * include/grub/usbdesc.h: Likewise.
25193 * include/grub/multiboot2.h: Likewise.
25194 * include/grub/acpi.h: Likewise.
25195 * include/grub/efiemu/efiemu.h: Likewise.
25196 * include/grub/disk.h: Likewise.
25197 * include/grub/ieee1275/ieee1275.h: Likewise.
25198 * include/grub/net.h: Likewise.
25199 * include/grub/machoload.h: Likewise.
25200 * include/grub/macho.h: Likewise.
25201 * include/multiboot.h: Likewise.
25202 * genmoddep.awk: Likewise.
25203 * normal/main.c: Likewise.
25204 * normal/menu_entry.c: Likewise.
25205 * normal/menu_viewer.c: Likewise.
25206 * normal/completion.c: Likewise.
25207 * normal/cmdline.c: Likewise.
25208 * normal/misc.c: Likewise.
25209 * normal/datetime.c: Likewise.
25210 * bus/usb/usbtrans.c: Likewise.
25211 * bus/usb/ohci.c: Likewise.
25212 * bus/usb/uhci.c: Likewise.
25213 * bus/usb/usb.c: Likewise.
25214 * mmap/efi/mmap.c: Likewise.
25215 * mmap/i386/pc/mmap_helper.S: Likewise.
25216 * mmap/i386/pc/mmap.c: Likewise.
25217 * mmap/i386/mmap.c: Likewise.
25218 * mmap/i386/uppermem.c: Likewise.
25219 * mmap/mmap.c: Likewise.
25220 * commands/acpi.c: Likewise.
25221 * commands/echo.c: Likewise.
25222 * commands/blocklist.c: Likewise.
25223 * commands/loadenv.c: Likewise.
25224 * commands/usbtest.c: Likewise.
25225 * commands/boot.c: Likewise.
25226 * commands/parttool.c: Likewise.
25227 * commands/search.c: Likewise.
25228 * commands/cat.c: Likewise.
25229 * commands/i386/pc/play.c: Likewise.
25230 * commands/i386/pc/drivemap.c: Likewise.
25231 * commands/i386/pc/vbeinfo.c: Likewise.
25232 * commands/i386/pc/acpi.c: Likewise.
25233 * commands/i386/pc/vbetest.c: Likewise.
25234 * commands/ls.c: Likewise.
25235 * commands/cmp.c: Likewise.
25236 * commands/test.c: Likewise.
25237 * commands/efi/acpi.c: Likewise.
25238 * commands/gptsync.c: Likewise.
25239 * commands/help.c: Likewise.
25240 * partmap/amiga.c: Likewise.
25241 * partmap/apple.c: Likewise.
25242 * partmap/acorn.c: Likewise.
25243 * partmap/pc.c: Likewise.
25244 * partmap/sun.c: Likewise.
25245 * partmap/gpt.c: Likewise.
25246 * script/sh/lexer.c: Likewise.
25247 * script/sh/function.c: Likewise.
25248 * font/font.c: Likewise.
25249 * font/font_cmd.c: Likewise.
25250 * loader/powerpc/ieee1275/linux.c: Likewise.
25251 * loader/efi/chainloader.c: Likewise.
25252 * loader/multiboot_loader.c: Likewise.
25253 * loader/macho.c: Likewise.
25254 * loader/i386/multiboot.c: Likewise.
25255 * loader/i386/linux.c: Likewise.
25256 * loader/i386/pc/linux.c: Likewise.
25257 * loader/i386/pc/multiboot2.c: Likewise.
25258 * loader/i386/pc/chainloader.c: Likewise.
25259 * loader/i386/pc/xnu.c: Likewise.
25260 * loader/i386/bsd_trampoline.S: Likewise.
25261 * loader/i386/efi/linux.c: Likewise.
25262 * loader/i386/multiboot_elfxx.c: Likewise.
25263 * loader/i386/bsd_helper.S: Likewise.
25264 * loader/i386/bsd.c: Likewise.
25265 * loader/i386/linux_trampoline.S: Likewise.
25266 * loader/i386/xnu_helper.S: Likewise.
25267 * loader/i386/xnu.c: Likewise.
25268 * loader/i386/bsd_pagetable.c: Likewise.
25269 * loader/i386/multiboot_helper.S: Likewise.
25270 * loader/xnu.c: Likewise.
25271 * loader/xnu_resume.c: Likewise.
25272 * io/gzio.c: Likewise.
25273 * term/efi/console.c: Likewise.
25274 * term/terminfo.c: Likewise.
25275 * term/ieee1275/ofconsole.c: Likewise.
25276 * term/i386/pc/serial.c: Likewise.
25277 * term/i386/pc/vesafb.c: Likewise.
25278 * term/i386/pc/vga.c: Likewise.
25279 * term/usb_keyboard.c: Likewise.
25280 * term/gfxterm.c: Likewise.
25281 * aclocal.m4: Likewise.
25282 * util/lvm.c: Likewise.
25283 * util/grub.d/30_os-prober.in: Likewise.
25284 * util/grub.d/10_hurd.in: Likewise.
25285 * util/console.c: Likewise.
25286 * util/grub-macho2img.c: Likewise.
25287 * util/grub-probe.c: Likewise.
25288 * util/hostfs.c: Likewise.
25289 * util/i386/pc/grub-mkimage.c: Likewise.
25290 * util/i386/pc/grub-setup.c: Likewise.
25291 * util/i386/efi/grub-mkimage.c: Likewise.
25292 * util/grub-mkconfig.in: Likewise.
25293 * util/raid.c: Likewise.
25294 * util/resolve.c: Likewise.
25295 * util/grub-mkdevicemap.c: Likewise.
25296 * util/grub-emu.c: Likewise.
25297 * util/getroot.c: Likewise.
25298 * util/hostdisk.c: Likewise.
25299 * util/usb.c: Likewise.
25300 * util/grub-editenv.c: Likewise.
25301 * util/misc.c: Likewise.
25302
25303 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25304
25305 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
25306 `genparttoollist.sh'.
25307 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
25308 Add `*.sh' to the list find searches for and change `mdate.sh'
25309 to `mdate-sh'.
25310
25311 2009-06-10 Pavel Roskin <proski@gnu.org>
25312
25313 * include/grub/multiboot2.h: Provide compatibility defines for
25314 multiboot2.h.
25315 * include/multiboot2.h: Include stdint.h only if needed, using
25316 angle brackets.
25317 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
25318 grub/multiboot2.h.
25319 * loader/ieee1275/multiboot2.c: Likewise.
25320 * loader/multiboot2.c: Likewise.
25321 * loader/multiboot_loader.c: Likewise.
25322
25323 * configure.ac: Use -nostdlib when probing for the target. It
25324 should not be required to have libc for the target.
25325
25326 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
25327 they fail without libc headers for the target.
25328 * include/grub/powerpc/libgcc.h: Use weak attribute for all
25329 exports.
25330 * include/grub/sparc64/libgcc.h: Likewise. Don't use
25331 preprocessor conditionals.
25332
25333 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
25334 build system doesn't need to be aware of the tar.c internals.
25335
25336 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
25337
25338 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
25339
25340 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
25341
25342 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
25343 disk limit to 26 for IDE, Virtio, Xen and SCSI.
25344
25345 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
25346
25347 * util/i386/pc/grub-install.in: Change the error message if UUIDs
25348 aren't available if ata.mod gets used.
25349
25350 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
25351
25352 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
25353 initialising controller.
25354 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25355
25356 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25357
25358 * util/i386/pc/grub-install.in: Add a parameter --disk-module
25359 to choose between ata and biosdisk module on i386-pc.
25360
25361 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
25362
25363 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
25364 Subclass and Programming Interface fields in terms of the 3 byte
25365 Class Code register.
25366 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25367
25368 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
25369 interface is OHCI. Add grub_dprintf for symmetry with
25370 bus/usb/uhci.c.
25371 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
25372 interface is UHCI. Add interf variable for programming
25373 interface. Print interface with class/subclass.
25374
25375 * bus/usb/ohci.c: Set interf with correct field.
25376
25377 * bus/usb/uhci.c: Remove unneeded doubled lines.
25378 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
25379 Remove whitespace inside comment.
25380
25381 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
25382
25383 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
25384 as fallback an equivalent option without depth.
25385
25386 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25387
25388 Not fail if unable to retrieve C/H/S on LBA disks
25389
25390 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
25391 if unable to retrieve C/H/S on LBA disks
25392
25393 2009-06-08 Pavel Roskin <proski@gnu.org>
25394
25395 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
25396 about aliasing.
25397
25398 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25399
25400 * Makefile.in (uninstall): Remove all $lib_DATA files.
25401
25402 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25403
25404 Bugfix: install on partitionless device
25405
25406 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
25407 is a whole disk
25408
25409 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25410
25411 * Makefile.in (uninstall): Remove all $include_DATA files.
25412
25413 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25414
25415 * commands/true.c: New file. Implement the true and false commands.
25416 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
25417 (true_mod_SOURCES): New variable.
25418 (true_mod_CFLAGS): Likewise.
25419 (true_mod_LDFLAGS): Likewise.
25420
25421 2009-06-05 Colin D Bennett <colin@gibibit.com>
25422
25423 Optimized font character lookup using binary search instead of linear
25424 search. Fonts now are required to have the character index ordered by
25425 code point.
25426
25427 * font/font.c (load_font_index): Verify that fonts have ordered
25428 character indices.
25429 (find_glyph): Use binary search instead of linear search to find a
25430 character in a font.
25431
25432 2009-06-05 Michael Scherer <misc@mandriva.org>
25433
25434 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
25435 uses case sensitive btree.
25436 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
25437 only for case insensitive filesystems.
25438
25439 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
25440
25441 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
25442 * conf/common.rmk (search_mod_CFLAGS): likewise
25443
25444 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25445
25446 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
25447 compensate a compiler bug
25448
25449 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25450
25451 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
25452 instead of '\b'
25453
25454 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25455
25456 Definitions for creating asm symbols with Apple's CC
25457
25458 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
25459 [APPLE_CC] (VARIABLE): likewise
25460
25461 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25462
25463 Disable lnxboot.img when compiled
25464 with Apple's CC
25465
25466 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
25467 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
25468 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
25469 [! APPLE_CC] (CODE_LENG): skip
25470 [! APPLE_CC] (setup_sects): likewise
25471 [! APPLE_CC]: skip filling
25472
25473 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25474
25475 Address in trampolines based on 32-bit registers when compiled
25476 with Apple's CC
25477
25478 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
25479 for addresses
25480 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
25481
25482 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25483
25484 Avoid aliases when compiling with Apple's CC for PCBIOS machine
25485
25486 * kern/misc.c [APPLE_CC] (memcpy): new function
25487 [APPLE_CC] (memmove): likewise
25488 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
25489 (memcpy): define alias conditionally on !APPLE_CC
25490 (memset): likewise
25491 (abort): likewise
25492 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
25493 APPLE_CC are defined
25494 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
25495 (grub_assert_fail): make prototype conditional
25496
25497 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25498
25499 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
25500
25501 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
25502 grub-macho2img
25503 (CLEANFILES): add grub-macho2img
25504 (grub_macho2img_SOURCES): new variable
25505 * kern/i386/pc/startup.S (bss_start): new variable
25506 (bss_end): likewise
25507 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
25508 * util/grub-macho2img.c: new file
25509
25510 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25511
25512 Use objconv when compiling with Apple's CC
25513
25514 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
25515 (efiemu64.o): likewise
25516 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
25517 when compiling with Apple's CC
25518 (efiemu64_s.o): likewise
25519 * configure.ac: check for objconv when compiling with Apple's CC
25520 * genmk.rb: use objconv for modules when compiled with Apple's CC
25521
25522 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25523
25524 Define segment as well as section when compiling with
25525 Apple's CC
25526
25527 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
25528 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
25529 (efiemu_convert_pointer): likewise
25530 (efiemu_set_virtual_address_map): likewise
25531 (efiemu_convert_pointer): likewise
25532 (efiemu_getcrc32): likewise
25533 (init_crc32_table): likewise
25534 (reflect): likewise
25535 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
25536 (GRUB_MOD_DEP): likewise
25537
25538 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25539
25540 Allow a compilation without -mcmodel=large
25541
25542 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
25543 when compiled without -mcmodel=large
25544 (filter_memory_map): remove memory post 4 GiB when compiled
25545 without -mcmodel=large
25546 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
25547 TARGET_CFLAGS when -mcmodel=large isn't supported
25548
25549 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25550
25551 Remove nested functions in efiemu core
25552
25553 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
25554
25555 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25556
25557 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
25558
25559 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
25560 temporary storage
25561 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
25562 using Apple's CC
25563 (grub_cpu_is_tsc_supported): likewise
25564 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
25565
25566 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25567
25568 Absolute addressing through constant with Apple's cc
25569
25570 * kern/i386/pc/startup.S: Define necessary constants
25571 and address through it when using ABS with Apple's CC
25572 * boot/i386/pc/diskboot.S: likewise
25573 * boot/i386/pc/boot.S: likewise
25574 * boot/i386/pc/lnxboot.S: likewise
25575 * boot/i386/pc/cdboot.S: likewise
25576 * mmap/i386/pc/mmap_helper.S: likewise
25577 * commands/i386/pc/drivemap_int13h.S: likewise
25578
25579 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25580
25581 Check if compiler is apple cc
25582
25583 * Makefile.in (ASFLAGS): new variable
25584 (TARGET_ASFLAGS): likewise
25585 (TARGET_MODULE_FORMAT): likewise
25586 (TARGET_APPLE_CC): likewise
25587 (OBJCONV): likewise
25588 (TARGET_IMG_CFLAGS): likewise
25589 (TARGET_CPPFLAGS): add includedir
25590 * configure.ac: call grub_apple_cc and grub_apple_target_cc
25591 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
25592 Check for linker script only if compiler isn't Apple's CC
25593 (TARGET_MODULE_FORMAT): set
25594 (TARGET_APPLE_CC): likewise
25595 (TARGET_ASFLAGS): likewise
25596 (ASFLAGS): likewise
25597 Check for objcopy only if compiler isn't Apple's CC
25598 Check for BSS symbol only if compiler isn't Apple's CC
25599 * genmk.rb: adapt nm options if we use Apple's utils
25600 * aclocal.m4 (grub_apple_cc): new test
25601 (grub_apple_target_cc): likewise
25602
25603 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25604
25605 Simplify sed expressions and improve awk
25606
25607 * Makefile.in (install-local): simplify sed expression
25608 * gencmdlist.sh: likewise
25609 * genmoddep.awk: avoid adding module as a dependency of itself
25610
25611 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25612
25613 Add missing start symbols
25614
25615 * boot/i386/pc/boot.S: add start
25616 * boot/i386/pc/pxeboot.S: likewise
25617
25618 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25619
25620 Fix wrong assumptions with grub-mkimage on EFI
25621
25622 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
25623 (relocate_addresses): consider both r_addend and value at offset
25624 (make_mods_section): zerofill modinfo and header
25625 (convert_elf): write prefix here
25626
25627 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25628
25629 Use .asciz instead of .string
25630
25631 * i386/pc/diskboot.S: use .asciz instead of .string
25632 * i386/pc/boot.S: likewise
25633 * include/grub/dl.h (GRUB_MOD_DEP): likewise
25634 (GRUB_MOD_NAME): likewise
25635
25636 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25637
25638 gfxpayload support
25639
25640 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
25641 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
25642 (grub_video_setup): remove
25643 (grub_video_set_mode): new prototype
25644 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
25645 (vid_mode): remove
25646 (linux_vesafb_res): compile only on PCBIOS
25647 (grub_linux_boot): support gfxpayload
25648 * loader/i386/pc/xnu.c (video_hook): new function
25649 (grub_xnu_set_video): support gfxpayload
25650 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
25651 (DEFAULT_VIDEO_HEIGHT): likewise
25652 (DEFAULT_VIDEO_FLAGS): likewise
25653 (DEFAULT_VIDEO_MODE): new definition
25654 (video_hook): new function
25655 (grub_gfxterm_init): use grub_video_set_mode
25656 * util/grub.d/30_os-prober.in: remove explicit modesetting before
25657 loading xnu
25658 * video/video.c (grub_video_setup): removed
25659 (grub_video_set_mode): new function based on grub_gfxterm_init and
25660 grub_video_setup
25661
25662 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25663
25664 Avoid calling biosdisk in drivemap
25665
25666 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
25667 (revparse_biosdisk): likewise
25668 (list_mappings): derive name from id directly
25669 (grub_cmd_drivemap): use tryparse_diskstring
25670
25671 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25672
25673 Script fixes
25674
25675 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
25676 (grub_lexer_param): add tokenonhold
25677 (grub_script_create_cmdline): remove cmdline. All callers updated
25678 (grub_script_function_create): make functionname
25679 grub_script_arg. All callers updated
25680 (grub_script_execute_argument_to_string): new prototype
25681 * kern/parser.c (state_transitions): reorder
25682 (grub_parser_cmdline_state): fix a bug and make more compact
25683 * script/sh/execute.c (grub_script_execute_argument_to_string):
25684 make global
25685 (grub_script_execute_cmdline): use new format
25686 * script/sh/function.c (grub_script_function_create): make functionname
25687 grub_script_arg. All callers updated
25688 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
25689 (grub_script_yylex): remove
25690 (grub_script_yylex2): renamed to ...
25691 (grub_script_yylex): ...renamed
25692 parse the expressions like a${b}c
25693 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
25694 (GRUB_PARSER_TOKEN_VAR): remove
25695 (GRUB_PARSER_TOKEN_NAME): likewise
25696 ("if"): declare as typeless
25697 ("while"): likewise
25698 ("function"): likewise
25699 ("else"): likewise
25700 ("then"): likewise
25701 ("fi"): likewise
25702 (text): remove
25703 (argument): likewise
25704 (script): accept empty scripts and make exit on error
25705 (arguments): use GRUB_PARSER_TOKEN_ARG
25706 (function): likewise
25707 (command): move error handling to script
25708 (menuentry): move grub_script_lexer_ref before
25709 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
25710 argument. All callers updated
25711
25712 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25713
25714 Prevent GRUB from probing floppies during boot.
25715
25716 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
25717 * commands/search.c (options): Add --no-floppy.
25718 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
25719 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
25720 --no-floppy when searching for UUIDs.
25721
25722 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25723
25724 Simplify the code duplication in commands/search.c.
25725
25726 * commands/search.c (search_label, search_fs_uuid): Merge into ...
25727 (search_fs): ... this. Update all users.
25728
25729 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
25730
25731 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
25732
25733 2009-05-28 Pavel Roskin <proski@gnu.org>
25734
25735 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
25736 Remove the original symlink explicitly.
25737
25738 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
25739 just one slash. That's how grub_fshelp_find_file() does it.
25740
25741 2009-05-26 Pavel Roskin <proski@gnu.org>
25742
25743 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
25744 to `str'.
25745
25746 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
25747 possibly unused.
25748
25749 2009-05-25 Christian Franke <franke@computer.org>
25750
25751 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
25752 register.
25753 (grub_atapi_identify): Add wait after drive select.
25754 (grub_ata_identify): Do more strict status register check before
25755 calling grub_atapi_identify (). Suppress error message if status
25756 register is 0x00 after command failure. Add status register
25757 check after PIO read to avoid bogus identify due to stuck DRQ.
25758 Thanks to Pavel Roskin for testing.
25759 (grub_device_initialize): Remove unsafe status register check.
25760 Thanks to 'phcoder' for problem report and patch.
25761 Prevent sign extension in debug message.
25762
25763 2009-05-23 Colin D Bennett <colin@gibibit.com>
25764
25765 Cleaned up `include/grub/normal.h'. Grouped prototypes by
25766 definition file, and functions defined in `normal/menu.c' have had
25767 their prototypes moved to `include/grub/menu.h' for consistency.
25768
25769 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
25770 from normal.h.
25771 (grub_menu_get_entry): Likewise.
25772 (grub_menu_get_timeout): Likewise.
25773 (grub_menu_set_timeout): Likewise.
25774 (grub_menu_execute_entry): Likewise.
25775 (grub_menu_execute_with_fallback): Likewise.
25776 (grub_menu_entry_run): Likewise.
25777
25778 * include/grub/normal.h: Re-ordered and grouped function
25779 prototypes by file that the function is defined in.
25780 (grub_menu_execute_callback): Removed; moved to menu.h.
25781 (grub_menu_get_entry): Likewise.
25782 (grub_menu_get_timeout): Likewise.
25783 (grub_menu_set_timeout): Likewise.
25784 (grub_menu_execute_entry): Likewise.
25785 (grub_menu_execute_with_fallback): Likewise.
25786 (grub_menu_entry_run): Likewise.
25787 (grub_menu_addentry): Renamed from this ...
25788 (grub_normal_add_menu_entry): ... to this.
25789
25790 * normal/main.c (grub_menu_addentry): Renamed from this ...
25791 (grub_normal_add_menu_entry): ... to this.
25792
25793 * script/sh/execute.c (grub_script_execute_menuentry): Update
25794 reference to renamed grub_menu_addentry function.
25795
25796 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
25797
25798 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
25799
25800 2009-05-22 Pavel Roskin <proski@gnu.org>
25801
25802 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
25803 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
25804 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
25805 compiling for the i386 targets, but not for the utilities.
25806
25807 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
25808 to grub_uint8_t.
25809 (grub_root_drive): Likewise.
25810 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
25811 remove alignment.
25812 (grub_root_drive): Change size to byte.
25813 (grub_start_addr): Remove.
25814 (grub_end_addr): Likewise.
25815 (grub_apm_bios_info): Likewise.
25816
25817 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
25818
25819 * normal/i386: Remove.
25820 * normal/powerpc: Likewise.
25821 * normal/sparc64: Likewise.
25822 * normal/x86_64: Likewise.
25823
25824 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
25825
25826 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
25827 * loader/i386/linux_trampoline.S: Fix indentation
25828 * loader/i386/xnu_helper.S: Likewise
25829
25830 2009-05-18 Colin D Bennett <colin@gibibit.com>
25831
25832 Display error messages when parsing a Lua statement fails.
25833 Previously, executing a syntactically invalid statement like
25834 ")foo" or "bar;" would silently fail.
25835
25836 * script/lua/grub_main.c (handle_lua_error): New function.
25837 (grub_lua_parse_line): Improved reporting of Lua parser and
25838 execution errors.
25839
25840 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25841
25842 Remove -Werror which causes build to fail on some systems
25843
25844 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
25845 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
25846 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
25847
25848 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25849
25850 trampoline for linux on 64-bit platform
25851
25852 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
25853 loader/i386/efi/linux_trampoline.S
25854 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
25855 declaration
25856 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
25857 here
25858 * loader/i386/linux_trampoline.S: moved here
25859 * loader/i386/efi/linux.c (allocate_pages): reserve space for
25860 trampoline
25861 (jumpvector): removed
25862 (grub_linux_trampoline_start): new declaration
25863 (grub_linux_trampoline_end): likewise
25864 (grub_linux_boot): use trampoline when on 64-bit platform
25865 * loader/i386/linux.c: likewise
25866
25867 2009-05-16 Pavel Roskin <proski@gnu.org>
25868
25869 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
25870 const to avoid a warning.
25871 (grub_lua_setenv): Likewise.
25872 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
25873 lmsg to fix a warning.
25874
25875 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
25876
25877 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
25878 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25879 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
25880 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25881 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
25882 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25883 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
25884 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25885
25886 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
25887
25888 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
25889
25890 2009-05-16 Bean <bean123ch@gmail.com>
25891
25892 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
25893 (lua_mod_SOURCES): New variable.
25894 (lua_mod_CFLAGS): Likewise.
25895 (lua_mod_LDFLAGS): Likewise.
25896
25897 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
25898 (setjmp_mod_SOURCES): New variable.
25899 (setjmp_mod_CFLAGS): Likewise.
25900 (setjmp_LDFLAGS): Likewise.
25901
25902 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
25903 (setjmp_mod_SOURCES): New variable.
25904 (setjmp_mod_CFLAGS): Likewise.
25905 (setjmp_LDFLAGS): Likewise.
25906
25907 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
25908 (setjmp_mod_SOURCES): New variable.
25909 (setjmp_mod_CFLAGS): Likewise.
25910 (setjmp_LDFLAGS): Likewise.
25911
25912 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
25913 (setjmp_mod_SOURCES): New variable.
25914 (setjmp_mod_CFLAGS): Likewise.
25915 (setjmp_LDFLAGS): Likewise.
25916
25917 * normal/i386/setjmp.S: Moved from here ...
25918 * lib/i386/setjmp.S: ... Moved here
25919 * normal/x86_64/setjmp.S: Moved from here ...
25920 * lib/x86_64/setjmp.S: ... Moved here
25921 * normal/powerpc/setjmp.S: Moved from here ...
25922 * lib/powerpc/setjmp.S: ... Moved here
25923 * normal/sparc64/setjmp.S: Moved from here ...
25924 * lib/sparc64/setjmp.S: ... Moved here
25925
25926 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
25927 returns_twice in mingw.
25928
25929 * script/lua/grub_lib.c: New file.
25930 * script/lua/grub_lib.h: Likewise.
25931 * script/lua/grub_lua.h: Likewise.
25932 * script/lua/grub_main.c: Likewise.
25933 * script/lua/lapi.c: Likewise.
25934 * script/lua/lapi.h: Likewise.
25935 * script/lua/lauxlib.c: Likewise.
25936 * script/lua/lauxlib.h: Likewise.
25937 * script/lua/lbaselib.c: Likewise.
25938 * script/lua/lcode.c: Likewise.
25939 * script/lua/lcode.h: Likewise.
25940 * script/lua/ldblib.c: Likewise.
25941 * script/lua/ldebug.c: Likewise.
25942 * script/lua/ldebug.h: Likewise.
25943 * script/lua/ldo.c: Likewise.
25944 * script/lua/ldo.h: Likewise.
25945 * script/lua/ldump.c: Likewise.
25946 * script/lua/lfunc.c: Likewise.
25947 * script/lua/lfunc.h: Likewise.
25948 * script/lua/lgc.c: Likewise.
25949 * script/lua/lgc.h: Likewise.
25950 * script/lua/linit.c: Likewise.
25951 * script/lua/liolib.c: Likewise.
25952 * script/lua/llex.c: Likewise.
25953 * script/lua/llex.h: Likewise.
25954 * script/lua/llimits.h: Likewise.
25955 * script/lua/lmathlib.c: Likewise.
25956 * script/lua/lmem.c: Likewise.
25957 * script/lua/lmem.h: Likewise.
25958 * script/lua/loadlib.c: Likewise.
25959 * script/lua/lobject.c: Likewise.
25960 * script/lua/lobject.h: Likewise.
25961 * script/lua/lopcodes.c: Likewise.
25962 * script/lua/lopcodes.h: Likewise.
25963 * script/lua/loslib.c: Likewise.
25964 * script/lua/lparser.c: Likewise.
25965 * script/lua/lparser.h: Likewise.
25966 * script/lua/lstate.c: Likewise.
25967 * script/lua/lstate.h: Likewise.
25968 * script/lua/lstring.c: Likewise.
25969 * script/lua/lstring.h: Likewise.
25970 * script/lua/lstrlib.c: Likewise.
25971 * script/lua/ltable.c: Likewise.
25972 * script/lua/ltable.h: Likewise.
25973 * script/lua/ltablib.c: Likewise.
25974 * script/lua/ltm.c: Likewise.
25975 * script/lua/ltm.h: Likewise.
25976 * script/lua/lua.h: Likewise.
25977 * script/lua/luaconf.h: Likewise.
25978 * script/lua/lualib.h: Likewise.
25979 * script/lua/lundump.c: Likewise.
25980 * script/lua/lundump.h: Likewise.
25981 * script/lua/lvm.c: Likewise.
25982 * script/lua/lvm.h: Likewise.
25983 * script/lua/lzio.c: Likewise.
25984 * script/lua/lzio.h: Likewise.
25985
25986 2009-05-16 Bean <bean123ch@gmail.com>
25987
25988 * include/grub/kernel.h (grub_module_header_types): Add type
25989 OBJ_TYPE_CONFIG.
25990
25991 * kern/main.c (grub_load_config): New function.
25992 (grub_main): Call grub_load_config to read boot config.
25993
25994 * grub-mkimage (generate_image): New parameter config_path.
25995 (options): New option --config.
25996 (main): Parse --config option, and pass it to generate_image.
25997
25998 2009-05-14 Christian Franke <franke@computer.org>
25999
26000 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
26001 This fixes build on Cygwin.
26002
26003 2009-05-14 Pavel Roskin <proski@gnu.org>
26004
26005 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
26006 jump. This saves two bytes, so the typical case of 2 swapped
26007 drives would fit 32 bytes.
26008
26009 2009-05-13 Pavel Roskin <proski@gnu.org>
26010
26011 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
26012 grub_uint32_t to avoid a warning.
26013
26014 * loader/i386/linux.c (allocate_pages): When assigning
26015 real_mode_mem, cast through grub_size_t to fix a warning. The
26016 code already makes sure that the value would fit a pointer.
26017 (grub_linux_setup_video): Cast render_target->data to
26018 grub_size_t to fix a warning.
26019
26020 2009-05-13 Javier Martín <lordhabbit@gmail.com>
26021
26022 * commands/i386/pc/drivemap.c: New file - implement drivemap
26023 command.
26024 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
26025 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
26026
26027 2009-05-13 Pavel Roskin <proski@gnu.org>
26028
26029 * util/i386/pc/grub-setup.c (setup): Remove unused variable
26030 embedding_area_exists.
26031
26032 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
26033
26034 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
26035 it easier to understand / work with.
26036 Improve warning messages for cases where there's no embedding area,
26037 or when it is too small (or core.img too large).
26038
26039 2009-05-13 Pavel Roskin <proski@gnu.org>
26040
26041 * loader/i386/pc/multiboot2.c: Add necessary includes for
26042 grub_multiboot2_real_boot().
26043
26044 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
26045 PX record is always little-endian. We only need the lower 2
26046 bytes of the mode.
26047
26048 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
26049 facilitate code reuse.
26050 (grub_cpio_mount): Use "struct head", not a char buffer. This
26051 fixes a warning reported by gcc 4.4.
26052
26053 * kernel/disk.c (grub_disk_read): Use void pointer for the
26054 buffer.
26055 (grub_disk_write): Use const void pointer for the buffer.
26056 Adjust all callers. Remove unnecessary casts.
26057
26058 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
26059
26060 * util/i386/pc/grub-install.in: Update copyright year.
26061
26062 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26063
26064 gptsync
26065
26066 * commands/gptsync.c: new file
26067 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
26068 (gptsync_mod_SOURCES): new variable
26069 (gptsync_mod_CFLAGS): likewise
26070 (gptsync_mod_LDFLAGS): likewise
26071 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
26072 new definition
26073 (GRUB_PC_PARTITION_TYPE_HFS): likewise
26074 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
26075 * conf/i386-ieee1275.rmk: likewise
26076 * conf/i386-pc.rmk: likewise
26077 * conf/powerpc-ieee1275.rmk: likewise
26078
26079 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26080
26081 Fixed grub-emu
26082
26083 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
26084 (grub_dl_ref): likewise
26085
26086 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
26087
26088 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
26089 split in two functions (one for msdos and one for gpt).
26090
26091 2009-05-08 Pavel Roskin <proski@gnu.org>
26092
26093 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
26094 not modified.
26095
26096 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
26097 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
26098 Initialize them with -1. Add sanity check for bad1. Eliminate
26099 nerr variable.
26100
26101 2009-05-08 David S. Miller <davem@davemloft.net>
26102
26103 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
26104
26105 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
26106
26107 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
26108 existence.
26109
26110 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
26111
26112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26113 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
26114
26115 2009-05-05 David S. Miller <davem@davemloft.net>
26116
26117 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
26118
26119 2009-05-05 Pavel Roskin <proski@gnu.org>
26120
26121 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
26122 of grub_dl_ref() and grub_dl_unref().
26123 * commands/parttool.c: Remove preprocessor conditionals around
26124 grub_dl_ref() and grub_dl_unref().
26125 * fs/affs.c: Likewise.
26126 * fs/afs.c: Likewise.
26127 * fs/cpio.c: Likewise.
26128 * fs/ext2.c: Likewise.
26129 * fs/fat.c: Likewise.
26130 * fs/hfs.c: Likewise.
26131 * fs/hfsplus.c: Likewise.
26132 * fs/iso9660.c: Likewise.
26133 * fs/jfs.c: Likewise.
26134 * fs/minix.c: Likewise.
26135 * fs/ntfs.c: Likewise.
26136 * fs/reiserfs.c: Likewise.
26137 * fs/sfs.c: Likewise.
26138 * fs/udf.c: Likewise.
26139 * fs/ufs.c: Likewise.
26140 * fs/xfs.c: Likewise.
26141 * include/grub/dl.h: Likewise.
26142 * loader/xnu.c: Likewise.
26143
26144 2009-05-04 Pavel Roskin <proski@gnu.org>
26145
26146 * commands/acpi.c: Remove unused variable my_mod.
26147 * partmap/amiga.c: Likewise.
26148 * partmap/apple.c: Likewise.
26149 * partmap/gpt.c: Likewise.
26150 * partmap/pc.c: Likewise.
26151 * partmap/sun.c: Likewise.
26152 * term/gfxterm.c: Likewise.
26153 * term/i386/pc/vesafb.c: Likewise.
26154 * term/i386/pc/vga.c: Likewise.
26155
26156 2009-05-04 David S. Miller <davem@davemloft.net>
26157
26158 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
26159 pointer args to grub_ieee1275_get_property().
26160
26161 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
26162
26163 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
26164 devices, and do not traverse down under controller nodes.
26165
26166 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
26167 (grub_ofdisk_open): Use it to un-escape "," characters.
26168 * kern/disk.c (find_part_sep): New.
26169 (grub_disk_open): Use it to find the first non-escaped ','
26170 character in the disk name.
26171 * util/ieee1275/devicemap.c (escape_of_path): New.
26172 (grub_util_emit_devicemap_entry): Use it.
26173 * util/sparc64/ieee1275/grub-install.in: Update script to
26174 strip partition specifiers properly by not triggering on
26175 '\' escaped ',' characters.
26176
26177 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26178
26179 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
26180 to 0x300.
26181 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
26182 resolutions.
26183 (linux_vesafb_modes): Add a lot of additional modes to the list (based
26184 on documentation from Wikipedia).
26185
26186 2009-05-04 Pavel Roskin <proski@gnu.org>
26187
26188 * disk/ata.c: Spelling fixes.
26189 * disk/raid.c: Likewise.
26190 * disk/usbms.c: Likewise.
26191 * disk/dmraid_nvidia.c: Likewise.
26192 * kern/ieee1275/openfw.c: Likewise.
26193 * kern/ieee1275/init.c: Likewise.
26194 * kern/ieee1275/cmain.c: Likewise.
26195 * boot/i386/pc/cdboot.S: Likewise.
26196 * video/readers/png.c: Likewise.
26197 * video/i386/pc/vbe.c: Likewise.
26198 * fs/udf.c: Likewise.
26199 * fs/hfs.c: Likewise.
26200 * fs/reiserfs.c: Likewise.
26201 * efiemu/runtime/efiemu.c: Likewise.
26202 * efiemu/main.c: Likewise.
26203 * efiemu/mm.c: Likewise.
26204 * include/grub/elf.h: Likewise.
26205 * include/grub/xnu.h: Likewise.
26206 * include/grub/usbdesc.h: Likewise.
26207 * include/grub/usb.h: Likewise.
26208 * include/grub/script_sh.h: Likewise.
26209 * include/grub/lib/LzmaEnc.h: Likewise.
26210 * include/grub/efiemu/efiemu.h: Likewise.
26211 * include/grub/command.h: Likewise.
26212 * normal/menu.c: Likewise.
26213 * normal/main.c: Likewise.
26214 * normal/datetime.c: Likewise.
26215 * bus/usb/uhci.c: Likewise.
26216 * mmap/i386/uppermem.c: Likewise.
26217 * mmap/mmap.c: Likewise.
26218 * commands/acpi.c: Likewise.
26219 * commands/test.c: Likewise.
26220 * partmap/apple.c: Likewise.
26221 * font/font.c: Likewise.
26222 * loader/sparc64/ieee1275/linux.c: Likewise.
26223 * loader/macho.c: Likewise.
26224 * loader/i386/bsd_trampoline.S: Likewise.
26225 * loader/i386/bsd.c: Likewise.
26226 * loader/xnu.c: Likewise.
26227 * term/i386/pc/vesafb.c: Likewise.
26228 * term/usb_keyboard.c: Likewise.
26229 * util/resolve.c: Likewise.
26230 * util/getroot.c: Likewise.
26231
26232 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26233
26234 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
26235
26236 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26237
26238 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
26239 build error.
26240
26241 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26242
26243 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
26244 parameter only available on BIOS.
26245
26246 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26247
26248 Removed wrong semicolon in declaration
26249
26250 * grub/misc.h (grub_dprintf): remove semicolon
26251
26252 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26253
26254 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
26255 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
26256 is done by grub_cmd_linux() now).
26257 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
26258 restore video to text mode.
26259 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
26260 indicates lack of "vga=" parameter. "vga=0" is mapped to
26261 `GRUB_LINUX_VID_MODE_NORMAL'.
26262
26263 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26264
26265 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
26266 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
26267 and `normal/script.c'. Add `kern/rescue_reader.c',
26268 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
26269 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
26270 `grub_script.tab.c'.
26271
26272 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26273 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26274 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26275 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26276 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26277
26278 * Makefile.in: Remove duplicated 2008 in Copyright line.
26279
26280 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26281
26282 * util/misc.c (grub_util_warn): New function. Emits a warning
26283 unconditionally.
26284 * include/grub/util/misc.h (grub_util_warn): New declaration.
26285
26286 * util/i386/pc/grub-install.in: Understand --force and pass it down
26287 to grub-setup.
26288
26289 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
26290 down to setup().
26291 (setup): Improve error messages and add warnings when requested to
26292 install in odd layouts. Refuse to install using blocklists unless
26293 --force was set.
26294
26295 2009-05-04 martin f. krafft <madduck@madduck.net>
26296
26297 * disk/raid.c (grub_raid_scan_device): Improve debug message.
26298
26299 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26300
26301 Updated copyright year
26302
26303 * fs/hfsplus.c: updated copyright year
26304
26305 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26306
26307 HFS+ UUID
26308
26309 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
26310 in the space previously used by unused3
26311 (grub_hfsplus_uuid): new function
26312 (grub_hfsplus_fs): added uuid field
26313
26314 2009-05-03 Pavel Roskin <proski@gnu.org>
26315
26316 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
26317 suppress warnings. It's no longer needed.
26318 * disk/host.c: Likewise.
26319 * disk/ata_pthru.c: Likewise.
26320 * disk/loopback.c: Likewise.
26321 * hook/datehook.c: Likewise.
26322 * parttool/pcpart.c: Likewise.
26323 * fs/i386/pc/pxe.c: Likewise.
26324 * fs/ntfscomp.c: Likewise.
26325 * efiemu/main.c: Likewise.
26326 * mmap/mmap.c: Likewise.
26327 * commands/crc.c: Likewise.
26328 * commands/hexdump.c: Likewise.
26329 * commands/hdparm.c: Likewise.
26330 * commands/acpi.c: Likewise.
26331 * commands/echo.c: Likewise.
26332 * commands/minicmd.c: Likewise.
26333 * commands/blocklist.c: Likewise.
26334 * commands/memrw.c: Likewise.
26335 * commands/loadenv.c: Likewise.
26336 * commands/usbtest.c: Likewise.
26337 * commands/lsmmap.c: Likewise.
26338 * commands/boot.c: Likewise.
26339 * commands/parttool.c: Likewise.
26340 * commands/configfile.c: Likewise.
26341 * commands/search.c: Likewise.
26342 * commands/ieee1275/suspend.c: Likewise.
26343 * commands/cat.c: Likewise.
26344 * commands/i386/pc/pxecmd.c: Likewise.
26345 * commands/i386/pc/play.c: Likewise.
26346 * commands/i386/pc/halt.c: Likewise.
26347 * commands/i386/pc/vbeinfo.c: Likewise.
26348 * commands/i386/pc/vbetest.c: Likewise.
26349 * commands/lspci.c: Likewise.
26350 * commands/date.c: Likewise.
26351 * commands/handler.c: Likewise.
26352 * commands/ls.c: Likewise.
26353 * commands/test.c: Likewise.
26354 * commands/cmp.c: Likewise.
26355 * commands/efi/loadbios.c: Likewise.
26356 * commands/efi/fixvideo.c: Likewise.
26357 * commands/halt.c: Likewise.
26358 * commands/help.c: Likewise.
26359 * commands/reboot.c: Likewise.
26360 * hello/hello.c: Likewise.
26361 * script/sh/main.c: Likewise.
26362 * loader/xnu.c: Likewise.
26363 * term/terminfo.c: Likewise.
26364 * term/i386/pc/serial.c: Likewise.
26365 * term/usb_keyboard.c: Likewise.
26366
26367 2009-05-03 David S. Miller <davem@davemloft.net>
26368
26369 * normal/menu.c: Include grub/parser.h
26370
26371 2009-05-03 Pavel Roskin <proski@gnu.org>
26372
26373 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
26374 not char*.
26375 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
26376 Suggested by Javier Martín <lordhabbit@gmail.com>
26377
26378 * util/i386/pc/grub-mkrescue.in: Allow for the case when
26379 efiemu??.o doesn't exist.
26380 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
26381 copying.
26382
26383 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
26384
26385 FreeBSD 64-bit support
26386
26387 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
26388 and loader/i386/bsd_trampoline.S
26389 (bsd_mod_ASFLAGS): new variable
26390 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
26391 (FREEBSD_MODTYPE_KERNEL64): likewise
26392 (grub_bsd64_trampoline_start): likewise
26393 (grub_bsd64_trampoline_end): likewise
26394 (grub_bsd64_trampoline_selfjump): likewise
26395 (grub_bsd64_trampoline_gdt): likewise
26396 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
26397 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
26398 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
26399 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
26400 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
26401 of "attrib" member
26402 * loader/i386/bsd_pagetable.c: new file
26403 * loader/i386/bsd_trampoline.S: likewise
26404 * loader/i386/bsd.c (ALIGN_QWORD): new macro
26405 (ALIGN_VAR): likewise
26406 (entry_hi): new variable
26407 (kern_end_mdofs): likewise
26408 (is_64bit): likewise
26409 (grub_freebsd_add_meta): use ALIGN_VAR
26410 (grub_e820_mmap): new declaration
26411 (grub_freebsd_add_mmap): new function
26412 (grub_freebsd_add_meta_module): support 64 bit kernels
26413 (grub_freebsd_list_modules): use ALIGN_VAR
26414 (gdt_descriptor): new declaration
26415 (grub_freebsd_boot): support 64 bit kernels
26416 (grub_bsd_elf64_hook): new function
26417 (grub_bsd_load_elf): support elf64
26418
26419 2009-05-03 Bean <bean123ch@gmail.com>
26420
26421 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
26422 after we get the result of if statement.
26423
26424 2009-05-03 Bean <bean123ch@gmail.com>
26425
26426 * Makefile.in (enable_efiemu): New variable.
26427
26428 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
26429 set.
26430 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
26431 path.
26432 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
26433 path, add -mno-red-zone option.
26434 (efiemu64_s.o): Likewise.
26435 (efiemu64.o): Use macro $^ for source file.
26436
26437 * configure.ac (--enable-efiemu): New option.
26438
26439 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
26440
26441 xnu support
26442
26443 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
26444 (pkglib_MODULES): add xnu.mod
26445 (xnu_mod_SOURCES): new variable
26446 (xnu_mod_CFLAGS): likewise
26447 (xnu_mod_LDFLAGS): likewise
26448 (xnu_mod_ASFLAGS): likewise
26449 * conf/i386-pc.rmk: likewise
26450 * conf/x86_64-efi.rmk: likewise
26451 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
26452 new declaration
26453 * include/grub/i386/macho.h: new file
26454 * include/grub/i386/xnu.h: likewise
26455 * include/grub/macho.h: likewise
26456 * include/grub/machoload.h: likewise
26457 * include/grub/x86_64/macho.h: likewise
26458 * include/grub/x86_64/xnu.h: likewise
26459 * include/grub/xnu.h: likewise
26460 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
26461 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
26462 * loader/i386/efi/xnu.c: new file
26463 * loader/i386/pc/xnu.c: likewise
26464 * loader/i386/xnu.c: likewise
26465 * loader/i386/xnu_helper.S: likewise
26466 * loader/macho.c: likewise
26467 * loader/xnu.c: likewise
26468 * loader/xnu_resume.c: likewise
26469 * util/grub-dumpdevtree: likewise
26470 * include/grub/i386/pit.h: include grub/err.h
26471 (grub_pit_wait): export
26472 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
26473
26474 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26475
26476 Efiemu
26477
26478 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
26479 _linux_efi, linux_efi.
26480 new files in grub-emu
26481 new targets efiemu32.o and efiemu64.o
26482 * loader/linux_normal_efiemu.c: likewise
26483 * loader/i386/efi/linux.c: added preliminary efiemu support
26484 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
26485 files to copy
26486 * include/grub/autoefi.h: new file
26487 * include/grub/i386/efiemu.h: likewise
26488 * include/grub/i386/pc/efiemu.h: likewise
26489 * include/grub/efi/api.h: add LL suffix when necessary
26490 new definitions relating to tables
26491 * include/grub/efiemu/efiemu.h: new file
26492 * include/grub/efiemu/runtime.h: likewise
26493 * efiemu/prepare.c: likewise
26494 * efiemu/loadcore_common.c: likewise
26495 * efiemu/loadcore64.c: likewise
26496 * efiemu/runtime/efiemu.sh: likewise
26497 * efiemu/runtime/efiemu.S: likewise
26498 * efiemu/runtime/efiemu.c: likewise
26499 * efiemu/runtime/config.h: likewise
26500 * efiemu/prepare32.c: likewise
26501 * efiemu/main.c: likewise
26502 * efiemu/modules/pnvram.c: likewise
26503 * efiemu/modules/i386: likewise
26504 * efiemu/modules/i386/pc: likewise
26505 * efiemu/modules/acpi.c: likewise
26506 * efiemu/i386/pc/cfgtables.c: likewise
26507 * efiemu/i386/loadcore64.c: likewise
26508 * efiemu/i386/loadcore32.c: likewise
26509 * efiemu/prepare64.c: likewise
26510 * efiemu/loadcore.c: likewise
26511 * efiemu/symbols.c: likewise
26512 * efiemu/mm.c: likewise
26513 * efiemu/loadcore32.c: likewise
26514
26515 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26516
26517 ACPI spoofing
26518
26519 * commands/acpi.c: new file
26520 * commands/i386/pc/acpi.c: likewise
26521 * commands/efi/acpi.c: likewise
26522 * include/grub/acpi.h: likewise
26523 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
26524 (acpi_mod_SOURCES): new variable
26525 (acpi_mod_CFLAGS): likewise
26526 (acpi_mod_LDFLAGS): likewise
26527 * conf/i386-efi.rmk: likewise
26528 * conf/x86_64-efi.rmk: likewise
26529
26530 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26531
26532 Missing part from mmap patch
26533
26534 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
26535 (grub_mmap_unregister)
26536 (grub_mmap_free_and_unregister): use grub_mmap_register
26537
26538 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26539
26540 Mmap services
26541
26542 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
26543 * loader/i386/linux.c (find_mmap_size): likewise
26544 (allocate_pages): likewise
26545 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
26546 (grub_fill_multiboot_mmap): likewise
26547 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
26548 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
26549 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
26550 (OPENBSD_MMAP_RESERVED): likewise
26551 * include/grub/i386/pc/memory.h: include grub/memory.h
26552 (grub_lower_mem): removed
26553 (grub_upper_mem): likewise
26554 (GRUB_MACHINE_MEMORY_ACPI): new definition
26555 (GRUB_MACHINE_MEMORY_NVS): likewise
26556 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
26557 (GRUB_MACHINE_MEMORY_HOLE): likewise
26558 (grub_machine_mmap_register): likewise
26559 (grub_machine_mmap_unregister): likewise
26560 (grub_machine_get_upper): likewise
26561 (grub_machine_get_lower): likewise
26562 (grub_machine_get_post64): likewise
26563 * include/grub/i386/efi/memory.h: new file
26564 * include/grub/x86_64/efi/memory.h: likewise
26565 * include/grub/efi/memory.h: likewise
26566 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
26567 (mmap_mod_SOURCES): new variable
26568 (mmap_mod_LDFLAGS): likewise
26569 (mmap_mod_ASFLAGS): likewise
26570 * conf/i386-coreboot.rmk: likewise
26571 * conf/i386-ieee1275.rmk: likewise
26572 * conf/i386-efi.rmk: likewise
26573 * conf/x86_64-efi.rmk: likewise
26574 * include/grub/types.h (UINT_TO_PTR): new macro
26575 (PTR_TO_UINT32): likewise
26576 (PTR_TO_UINT64): likewise
26577 * include/grub/memory.h: new file
26578 * mmap/i386/pc/mmap.c: likewise
26579 * mmap/i386/pc/mmap_helper.S: likewise
26580 * mmap/i386/uppermem.c: likewise
26581 * mmap/mmap.c: likewise
26582 * mmap/efi/mmap.c: likewise
26583 * kern/i386/coreboot/init.c (grub_machine_init): don't use
26584 grub_upper_mem
26585 * kern/i386/pc/init.c (grub_lower_mem): removed variable
26586 (grub_upper_mem): likewise
26587 (grub_machine_init): don't use grub_upper_mem,
26588 make grub_lower_mem local
26589 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
26590 grub_mmap_iterate and grub_mmap_get_upper
26591 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
26592
26593 2009-05-02 Bean <bean123ch@gmail.com>
26594
26595 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
26596 script/sh/parser.y.
26597 (pkglib_MODULES): Add normal.mod and sh.mod.
26598 (normal_SOURCES): New variable.
26599 (normal_mod_CFLAGS): Likewise.
26600 (normal_mod_LDFLAGS): Likewise.
26601 (sh_mod_SOURCES): Likewise.
26602 (sh_mod_CFLAGS): Likewise.
26603 (sh_mod_LDFLAGS): Likewise.
26604
26605 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
26606 script/sh/lexer.c_DEPENDENCIES.
26607 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
26608 kern/rescue_reader.c and kern/rescue_parser.c.
26609 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
26610 (grub_emu_SOURCES): Change source files.
26611 (pkglib_MODULES): Remove normal.mod.
26612 (normal_SOURCES): Removed.
26613 (normal_mod_CFLAGS): Likewise.
26614 (normal_mod_LDFLAGS): Likewise.
26615 * conf/i386-coreboot.rmk: Likewise.
26616 * conf/i386-efi.rmk: Likewise.
26617 * conf/i386-ieee1276.rmk: Likewise.
26618 * conf/powerpc-ieee1275.rmk: Likewise.
26619 * conf/sparc64-ieee1275.rmk: Likewise.
26620 * conf/x86_64-efi.rmk: Likewise.
26621
26622 * include/grub/command.h (grub_command_execute): New inline function.
26623
26624 * include/grub/menu.h (grub_menu_entry): Removed commands field.
26625
26626 * include/grub/normal.h: Remove <grub/setjmp.h>.
26627 (grub_fs_module_list): Moved to normal/autofs.c.
26628 (grub_exit_env): Removed.
26629 (grub_command_execute): Likewise.
26630 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
26631 parameter script.
26632 (read_command_list): New function declaration.
26633 (read_fs_list): Likewise.
26634
26635 * include/parser.h: Include <grub/reader.h>.
26636 (grub_parser_split_cmdline): Change type of getline parameter.
26637 (grub_parser): New structure.
26638 (grub_parser_class): New variable.
26639 (grub_parser_execute): New function declaration.
26640 (grub_register_rescue_parser): Likewise.
26641 (grub_parser_register): New inline function.
26642 (grub_parser_unregister): Likewise.
26643 (grub_parser_get_current): Likewise.
26644 (grub_parser_set_current): Likewise.
26645
26646 * include/grub/reader.h: New file.
26647 * kern/reader.c: Likewise.
26648 * kern/rescue_parser.c: Likewise.
26649 * kern/rescue_reader.c: Likewise.
26650 * normal/autofs.c: Likewise.
26651 * normal/dyncmd.c: Likewise.
26652
26653 * include/grub/rescue.h: Removed.
26654 * normal/command.h: Likewise.
26655
26656 * include/grub/script.h: Moved to ...
26657 * include/grub/script_sh.h: ... Moved here.
26658 * normal/execute.c: Moved to ...
26659 * script/sh/execute.c: ... Moved here.
26660 * normal/function.c: Moved to ...
26661 * script/sh/function.c: ... Moved here.
26662 * normal/lexer.c: Moved to ...
26663 * script/sh/lexer.c: ... Moved here.
26664 * normal/parser.y: Moved to ...
26665 * script/sh/parser.y: ... Moved here.
26666 * normal/script.c: Moved to ...
26667 * script/sh/script.c: ... Moved here.
26668
26669 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
26670 <grub/reader.h>.
26671 (grub_exit_env): Removed.
26672 (fs_module_list): Moved to normal/autofs.c.
26673 (grub_file_getline): Don't handle comment here.
26674 (free_menu): Skip removed field entry->commands.
26675 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
26676 script parameter.
26677 (read_config_file): Removed nested parameter, change getline function.
26678 (grub_enter_normal_mode): Removed.
26679 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
26680 (read_command_list): Likewise.
26681 (autoload_fs_module): Moved to normal/autofs.c.
26682 (read_fs_list): Likewise.
26683 (reader_nested): New variable.
26684 (grub_normal_execute): Run parser.sh to switch to sh parser.
26685 (grub_cmd_rescue): Removed.
26686 (cmd_normal): Removed.
26687 (grub_cmd_normal): Unregister itself at the beginning. Don't register
26688 rescue command.
26689 (grub_cmdline_run): New function.
26690 (grub_normal_reader_init): Likewise.
26691 (grub_normal_read_line): Likewise.
26692 (grub_env_write_pager): Likewise.
26693 (cmdline): New variable.
26694 (grub_normal_reader): Likewise.
26695 (GRUB_MOD_INIT): Register normal reader and set as current, register
26696 pager hook, register normal command with grub_register_command_prio,
26697 so that it won't show up in command.lst.
26698 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
26699 grub_fs_autoload_hook.
26700
26701 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
26702 (grub_menu_execute_entry): Replace grub_script_execute with
26703 grub_parser_execute, change parameter to grub_command_execute.
26704
26705 * normal/menu_text.c: Remove <grub/script.h>.
26706
26707 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
26708 and <grub/parser.h>.
26709 (run): Change editor_getline to use new parser interface. Change
26710 parameter to grub_command_execute.
26711
26712 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
26713 <grub/reader.h> and <grub/parser.h>.
26714 (grub_load_normal_mode): Execute normal command.
26715 (grub_main): Call grub_register_core_commands,
26716 grub_register_rescue_parser and grub_register_rescue_reader, use
26717 grub_reader_loop to enter input loop.
26718
26719 * kern/parser.c (grub_parser_split_cmdline): Change type of
26720 getline parameter.
26721 (grub_parser_class): New variable.
26722 (grub_parser_execute): New function.
26723
26724 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
26725 * loader/multiboot2.c: Likewise.
26726 * loader/sparc64/ieee1275/linux.c: Likewise.
26727
26728 * util/grub-emu.c (read_command_list): New dummy function.
26729
26730 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26731
26732 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
26733 count to 16 for CCISS and IDA.
26734
26735 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26736
26737 * normal/menu_text.c (grub_wait_after_message): Print a newline
26738 after waiting for user input.
26739
26740 * loader/i386/linux.c: Include `<grub/normal.h>'.
26741 (grub_cmd_linux): Improve the error message about `ask' mode, by
26742 waiting for user input so it's not missed (we can do this, since
26743 user requested interaction).
26744
26745 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26746
26747 Added missing lst to grub-mkrescue
26748
26749 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
26750 and ${input_dir}/parttool.lst
26751
26752 2009-04-30 David S. Miller <davem@davemloft.net>
26753
26754 * util/hostdisk.c (device_is_wholedisk): New function.
26755 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
26756 zero only if device_is_wholedisk() returns true.
26757
26758 * util/hostdisk.c (convert_system_partition_to_system_disk):
26759 Handle virtual disk devices named /dev/vdiskX as found on sparc
26760 and powerpc.
26761
26762 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
26763 lettered partition specifier is found, convert to numbered.
26764
26765 2009-04-29 David S. Miller <davem@davemloft.net>
26766
26767 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
26768 * include/grub/sparc64/ieee1275/memory.h: Likewise.
26769
26770 * normal/command.c: Add missing newline at end of file.
26771
26772 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
26773 warnings.
26774 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
26775 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
26776 grub_ofdisk_read): Likewise, and deal similarly with the fact that
26777 ihandles have a 32-bit type but need to be stored in a "void *".
26778
26779 2009-04-28 Pavel Roskin <proski@gnu.org>
26780
26781 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
26782 not disk. Adjust all dependencies.
26783 (grub_fs_uuid_close): Use grub_device_close(), not
26784 grub_disk_close().
26785
26786 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
26787 parent's partition, don't copy it by reference, as it gets freed
26788 on close.
26789
26790 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26791
26792 Preboot hooks support
26793
26794 * commands/boot.c (struct grub_preboot_t): new declaration
26795 (preboots_head): new variable
26796 (preboots_tail): likewise
26797 (grub_loader_register_preboot_hook): new function
26798 (grub_loader_unregister_preboot_hook): likewise
26799 (grub_loader_set): launch preboot hooks
26800 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
26801 (grub_loader_register_preboot_hook): new declaration
26802 (grub_loader_unregister_preboot_hook): likewise
26803
26804 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26805
26806 Warning fix
26807
26808 * disk/scsi.c (grub_scsi_open): added missing cast when
26809 calling grub_dprintf
26810
26811 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
26812
26813 Bug and warning fixes
26814
26815 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
26816 declaration
26817 * commands/test.c (test_parse): fixed bug with file tests and corrected
26818 declaration of find_file
26819
26820 2009-04-26 Pavel Roskin <proski@gnu.org>
26821
26822 * Makefile.in: Don't install empty manual pages if help2man is
26823 missing. Use help2man option for output, not shell redirection.
26824
26825 2009-04-26 David S. Miller <davem@davemloft.net>
26826
26827 * util/grub-mkdevicemap.c (make_device_map): Add missing
26828 NESTED_FUNC_ATTR to process_device().
26829
26830 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
26831
26832 Test command
26833
26834 * commands/test.c: rewritten to use bash-like test
26835
26836 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
26837
26838 Parttool autoloading and improvements
26839
26840 * Makefile.in (pkglib_DATA): add parttool.lst
26841 (parttool.lst): new target
26842 * genmk.rb: generate parttool-*
26843 (CLEANFILES): add #{parttool}
26844 (PARTTOOLFILES): new variable
26845 * genparttoollist.sh: new file
26846 * parttool/pcpart.c (grub_pcpart_boot): more feedback
26847 (grub_pcpart_type): likewise
26848 * commands/parttool.c (helpmsg): new variable
26849 (grub_cmd_parttool): output help if not enough arguments are supplied
26850 autoload modules
26851 (GRUB_MOD_INIT(parttool)): use helpmsg
26852
26853 2009-04-24 David S. Miller <davem@davemloft.net>
26854
26855 Avoiding opening same device multiple times in device iterator.
26856
26857 * kern/device.c: (grub_device_iterate): Define struct part_ent,
26858 and use it to build a list of partitions in iterate_disk() and
26859 iterate_partition().
26860
26861 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
26862 on disk->data.
26863
26864 * disk/ieee1275/nand.c (grub_nand_iterate): Return
26865 grub_devalias_iterate() result instead of unconditional 0.
26866 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
26867 Also, capture hook return value, either directly or via
26868 grub_children_iterate(), and propagate to caller.
26869 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
26870 grub_children_iterate): Return value is now 'int' instead of
26871 'grub_err_t'.
26872 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
26873 like a proper iterator, stopping when hooks return non-zero.
26874 (grub_devalias_iterate): Likewise.
26875
26876 2009-04-23 David S. Miller <davem@davemloft.net>
26877
26878 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
26879
26880 2009-04-22 David S. Miller <davem@davemloft.net>
26881
26882 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
26883 is larger than address_cells, use that value for address_cells too.
26884
26885 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
26886 IEEE1275_MAX_PATH_LEN): Define.
26887 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
26888 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
26889 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
26890 'devtype'. Explicitly NULL terminate devalias expansion.
26891
26892 * util/sparc64/ieee1275/misc.c: New file.
26893 * util/sparc64/ieee1275/grub-setup.c: New file.
26894 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
26895 * util/sparc64/ieee1275/grub-mkimage.c: New file.
26896 * util/sparc64/ieee1275/grub-install.in: New file.
26897 * util/ieee1275/ofpath.c: New file.
26898 * util/ieee1275/devicemap.c: New file.
26899 * util/devicemap.c: New file.
26900 * util/deviceiter.c: New file.
26901 * kern/sparc64/ieee1275/init.c: New file.
26902 * include/grub/util/ofpath.h: New file.
26903 * include/grub/util/deviceiter.h: New file.
26904 * util/grub-mkdevicemap.c: Include deviceiter.h.
26905 Implement using grub_util_emit_devicemap_entry and
26906 grub_util_iterate_devices.
26907 * conf/i386-corebook.rmk: Build util/deviceiter.c and
26908 util/devicemap.c into grub-mkdevicemap
26909 * conf/i386-efi.rmk: Likewise.
26910 * conf/i386-ieee1275.rmk: Likewise.
26911 * conf/i386-pc.rmk: Likewise.
26912 * conf/powerpc-ieee1275.rmk: Likewise.
26913 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
26914 images and installation utilities. Build kernel as image
26915 instead of as elf binary. Use common rules as much as possible.
26916
26917 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
26918
26919 Correct GPT definition
26920
26921 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
26922 of "attrib" member
26923
26924 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
26925
26926 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
26927
26928 2009-04-19 David S. Miller <davem@davemloft.net>
26929
26930 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
26931 (grub_rescue_cmd_linux): Rename to...
26932 (grub_cmd_linux): and fix prototype.
26933 (grub_rescue_cmd_initrd): Rename to...
26934 (grub_cmd_initrd): and fix prototype.
26935 (cmd_linux, cmd_initrd): New.
26936 (GRUB_MOD_INIT(linux)): Use grub_register_command().
26937 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
26938
26939 2009-04-17 Pavel Roskin <proski@gnu.org>
26940
26941 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
26942 format.
26943 (grub_ohci_transfer): Likewise.
26944
26945 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
26946
26947 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
26948 return without a value. Fix inconsistent indentation.
26949
26950 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
26951 match struct grub_fs.
26952
26953 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
26954 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
26955 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
26956 * commands/lspci.c (grub_lspci_iter): Likewise.
26957
26958 2009-04-16 Bean <bean123ch@gmail.com>
26959
26960 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
26961 value.
26962
26963 2009-04-15 Pavel Roskin <proski@gnu.org>
26964
26965 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
26966 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
26967 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
26968 definitions.
26969
26970 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
26971
26972 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
26973 that no multiple data or metadata areas are supported and `Unknown
26974 metadata header'.
26975
26976 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
26977
26978 Move loader out of the kernel
26979
26980 * kern/loader.c: moved to ...
26981 * commands/boot.c: ... moved here
26982 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
26983 * commands/boot.c (grub_cmd_boot): moved here. All users updated
26984 * include/grub/kernel.h (grub_machine_fini): export
26985 * include/grub/loader.h (grub_loader_is_loaded): update declaration
26986 (grub_loader_set): likewise
26987 (grub_loader_unset): likewise
26988 (grub_loader_boot): likewise
26989 * conf/common.rmk: new module boot.mod
26990 (pkglib_MODULES): add boot.mod
26991 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
26992 (grub_emu_SOURCES): likewise
26993 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
26994 (grub_emu_SOURCES): likewise
26995 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
26996 (grub_emu_SOURCES): likewise
26997 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
26998 (grub_emu_SOURCES): likewise
26999 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
27000 (grub_emu_SOURCES): likewise
27001 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
27002 (grub_emu_SOURCES): likewise
27003 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
27004 (grub_emu_SOURCES): likewise
27005
27006 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27007
27008 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
27009
27010 * kern/misc.c (grub_itoa): Removed function
27011 (grub_ltoa): likewise
27012 (grub_vsprintf): use grub_lltoa
27013
27014 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27015
27016 Restore grub-emu
27017
27018 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
27019 * conf/i386-coreboot.rmk: likewise
27020 * conf/i386-ieee1275.rmk: likewise
27021 * conf/powerpc-ieee1275.rmk: likewise
27022
27023 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27024
27025 * INSTALL: Add that `./autogen.sh' needs to be run before
27026 `./configure.'.
27027
27028 2009-04-14 Bean <bean123ch@gmail.com>
27029
27030 * Makefile.in (pkglib_DATA): Add handler.lst.
27031 (handler.lst): New rule.
27032
27033 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
27034 * conf/i386-coreboot.rmk: Likewise.
27035 * conf/i386-ieee1275.rmk: Likewise.
27036 * conf/i386-efi.rmk: Likewise.
27037 * conf/x86_64-efi.rmk: Likewise.
27038 * conf/powerpc-ieee1275.rmk: Likewise.
27039 * conf/sparc64-ieee1275.rmk: Likewise.
27040
27041 * genhandlerlist.sh: New file.
27042
27043 * genmk.rb: Add rules to generate handler.lst.
27044
27045 * include/grub/normal.h (grub_file_getline): New function definition.
27046 (read_handler_list): Likewise.
27047 (free_handler_list): Likewise.
27048
27049 * include/grub/term.h (grub_term_register_input): Add name parameter
27050 for auto generation of handler.lst.
27051 (grub_term_register_output): Likewise.
27052
27053 * normal/handler.c: New file.
27054
27055 * normal/main.c (get_line): Renamed to grub_file_getline.
27056 (read_config_file): Use the newly renamed grub_file_getline.
27057 (read_command_list): Likewise.
27058 (read_fs_list): Likewise.
27059 (grub_normal_execute): Call read_handler_list to parse handler.lst.
27060 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
27061
27062 * term/efi/console.c (grub_console_init): Add name parameter for auto
27063 generation of handler.lst.
27064 * term/gfxterm.c: Likewise.
27065 * term/i386/pc/at_keyboard.c: Likewise.
27066 * term/i386/pc/console.c: Likewise.
27067 * term/i386/pc/serial.c: Likewise.
27068 * term/i386/pc/vesafb.c: Likewise.
27069 * term/i386/pc/vga.c: Likewise.
27070 * term/i386/pc/vga_text.c: Likewise.
27071 * term/ieee1275/ofconsole.c: Likewise.
27072 * term/usb_keyboard.c: Likewise.
27073
27074 2009-04-14 Bean <bean123ch@gmail.com>
27075
27076 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
27077 properly with null character.
27078
27079 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27080
27081 * configure: Remove.
27082 * config.h.in: Likewise.
27083 * stamp-h.in: Likewise.
27084 * DISTLIST: Likewise.
27085 * conf/common.mk: Likewise.
27086 * conf/i386-coreboot.mk: Likewise.
27087 * conf/i386-efi.mk: Likewise.
27088 * conf/i386-ieee1275.mk: Likewise.
27089 * conf/i386.mk: Likewise.
27090 * conf/i386-pc.mk: Likewise.
27091 * conf/powerpc-ieee1275.mk: Likewise.
27092 * conf/sparc64-ieee1275.mk: Likewise.
27093 * conf/x86_64-efi.mk: Likewise.
27094
27095 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
27096 develop on GRUB.
27097
27098 2009-04-14 John Stanley <jpsinthemix@verizon.net>
27099 David S. Miller <davem@davemloft.net>
27100
27101 * util/hostdisk.c (make_device_name): Fix buffer length
27102 calculations.
27103
27104 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27105
27106 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
27107 <sys/param.h> and <sys/sysctl.h>.
27108 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
27109 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
27110 opening the device and reset them afterwards.
27111
27112 2009-04-13 Pavel Roskin <proski@gnu.org>
27113
27114 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
27115 Reported by John Stanley <jpsinthemix@verizon.net>
27116
27117 2009-04-13 Robert Millan <rmh@aybabtu.com>
27118
27119 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
27120 that name for menuentries when appropriate.
27121
27122 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27123
27124 * util/grub.d/10_freebsd.in: Add a missing `fi'.
27125
27126 2009-04-13 Robert Millan <rmh@aybabtu.com>
27127
27128 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
27129 to Linux, simply abort telling the user it's no longer supported.
27130
27131 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27132
27133 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
27134 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
27135 `freebsd_loadenv' only when devices.hints exist.
27136
27137 2009-04-13 Pavel Roskin <proski@gnu.org>
27138
27139 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
27140
27141 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27142
27143 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
27144 partition number.
27145 (grub_drive): Likewise.
27146
27147 2009-04-13 David S. Miller <davem@davemloft.net>
27148
27149 * kern/sparc64/ieee1275/ieee1275.c: New file.
27150 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
27151 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
27152 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
27153 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
27154 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
27155 grub_ieee1275_alloc_physmem): Declare new exported functions.
27156
27157 * include/grub/sparc64/ieee1275/loader.h: New file.
27158 * include/grub/sparc64/ieee1275/memory.h: Likewise.
27159 * include/grub/sparc64/kernel.h: Likewise.
27160 * loader/sparc64/ieee1275/linux.c: Likewise.
27161
27162 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
27163 (grub_fstest_SOURCES): Likewise.
27164
27165 * util/hostdisk.c (make_device_name): Do not make any assumptions
27166 about the length of drive names.
27167
27168 * kern/dl.c (grub_dl_load_file): Close file immediately when
27169 we are done using it.
27170
27171 2009-04-12 David S. Miller <davem@davemloft.net>
27172
27173 * kern/misc.c (grub_ltoa): Fix cast when handling negative
27174 values. Noticed by Pavel Roskin.
27175
27176 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
27177 target compiler.
27178
27179 * genmk.rb: Add more flexible image type specification, also
27180 pass --strip-unneeded to objcopy.
27181 * conf/i386-pc.rmk: Use *_FORMAT.
27182 * conf/i386-pc.mk: Rebuilt.
27183
27184 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
27185 (OFDISK_HASH_SZ): Define.
27186 (ofdisk_hash): New hash table.
27187 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
27188 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
27189 instead of device phandle which is not unique.
27190
27191 * kern/sparc64/ieee1275/init.c: Delete, replace with...
27192 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
27193 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
27194 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
27195 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
27196 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
27197 GRUB_KERNEL_MACHINE_DATA_END): Define.
27198 (grub_kernel_image_size, grub_total_module_size): Declare.
27199
27200 2009-04-12 Pavel Roskin <proski@gnu.org>
27201
27202 * configure.ac: Change the logic when we check for target tools.
27203 Do it when the target is specified and it's different from the
27204 specified value of the host.
27205
27206 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
27207
27208 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
27209 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
27210 GNU/kFreeBSD. Check if a device is a character device. Use
27211 DIOCGMEDIASIZE to get the size.
27212 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
27213 support for GNU/kFreeBSD.
27214 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
27215 is a character device instead of a block device. Add support for
27216 FreeBSD device names.
27217
27218 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
27219 is a character device instead of a block device.
27220
27221 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
27222 is a character device instead of a block device.
27223
27224 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
27225
27226 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
27227 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
27228 FreeBSD. Check if a device is a character device. Use
27229 DIOCGMEDIASIZE to get the size.
27230 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
27231 support for FreeBSD.
27232 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
27233 is a character device instead of a block device. Add support for
27234 FreeBSD device names.
27235
27236 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
27237 a character device instead of a block device.
27238 (grub_util_check_char_device): New function.
27239
27240 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
27241 a character device instead of a block device.
27242
27243 * include/grub/util/getroot.h (grub_util_check_char_device): New
27244 prototype.
27245
27246 2009-04-11 David S. Miller <davem@davemloft.net>
27247
27248 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
27249 static libgcc.
27250 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
27251 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
27252 function, if present.
27253 (__bswapdi2): Likewise.
27254
27255 * include/grub/sparc64/ieee1275/boot.h: New file.
27256 * boot/sparc64/ieee1275/boot.S: Likewise.
27257 * boot/sparc64/ieee1275/diskboot.S: Likewise.
27258
27259 * kern/misc.c (grub_ltoa): New function.
27260 (grub_vsprintf): Use it to format 'long' integers.
27261
27262 2009-04-10 David S. Miller <davem@davemloft.net>
27263
27264 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
27265 slots are of type grub_ieee1275_cell_t.
27266 (grub_nand_read): Likewise.
27267 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
27268 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
27269 macros are used to compare values in arg/ret block of the call.
27270 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
27271 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
27272 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
27273 grub_ieee1275_instance_to_path, grub_ieee1275_write,
27274 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
27275 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
27276 grub_ieee1275_close, grub_ieee1275_set_property,
27277 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
27278 grub_ieee1275_cell_t.
27279 * kern/ieee1275/openfw.c (grub_map): Likewise.
27280 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
27281 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
27282
27283 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
27284 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
27285 (grub_devalias_iterate): Likewise.
27286
27287 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27288
27289 UFS improvements
27290
27291 * fs/ufs.c (INODE_NBLOCKS): new definition
27292 (struct grub_ufs_dirent): added fields for non-BSD dirents
27293 (grub_ufs_get_file_block): fixed double indirect handling
27294 (grub_ufs_lookup_symlink): use more robust way to determine whether
27295 symlink is inline
27296 (grub_ufs_find_file): support for non-BSD dirents
27297 (grub_ufs_dir): support for non-BSD dirents
27298
27299 2009-04-10 Bean <bean123ch@gnail.com>
27300
27301 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
27302 attribute, otherwise the size would be wrong for i386 platform.
27303
27304 * include/grub/pci.h (grub_pci_read_word): New inline function.
27305 (grub_pci_read_byte): Likewise.
27306 (grub_pci_write): Likewise.
27307 (grub_pci_write_word): Likewise.
27308 (grub_pci_write_byte): Likewise.
27309
27310 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
27311
27312 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
27313 (find_framebuf): Scan pci to locate the frame buffer address.
27314
27315 * commands/efi/fixvideo.c: New file.
27316
27317 * commands/efi/loadbios.c: Likewise.
27318
27319 * commands/memrw.c: Likewise.
27320
27321 * util/grub-dumpbios.in: Likewise.
27322
27323 * conf/common.rmk (grub-dumpbios): New utility.
27324 (pkglib_MODULES): New module memrw.mod.
27325 (memrw_mod_SOURCE): New macro.
27326 (memrw_mod_CFLAGS): Likewise.
27327 (memrw_mod_LDFLAGS): Likewise.
27328
27329 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
27330 fixvideo.mod.
27331 (loadbios_mod_SOURCE): New macro.
27332 (loadbios_mod_CFLAGS): Likewise.
27333 (loadbios_mod_LDFLAGS): Likewise.
27334 (fixvideo_mod_SOURCE): Likewise.
27335 (fixvideo_mod_CFLAGS): Likewise.
27336 (fixvideo_mod_LDFLAGS): Likewise.
27337
27338 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
27339 fixvideo.mod.
27340 (loadbios_mod_SOURCE): New macro.
27341 (loadbios_mod_CFLAGS): Likewise.
27342 (loadbios_mod_LDFLAGS): Likewise.
27343 (fixvideo_mod_SOURCE): Likewise.
27344 (fixvideo_mod_CFLAGS): Likewise.
27345 (fixvideo_mod_LDFLAGS): Likewise.
27346
27347 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
27348
27349 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
27350
27351 2009-04-07 David S. Miller <davem@davemloft.net>
27352
27353 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
27354 support for R_SPARC_OLO10 relocations. Fix compile warning for
27355 R_SPARC_WDISP30 case.
27356 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
27357
27358 2009-04-06 Pavel Roskin <proski@gnu.org>
27359
27360 * include/grub/misc.h (ARRAY_SIZE): New macro.
27361 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
27362 New macro.
27363 * loader/i386/linux.c (allocate_pages): Use free_pages().
27364 (grub_linux_unload): Don't use free_pages().
27365 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
27366 wrong index. Treat all other modes as text modes.
27367 (grub_cmd_linux): Initialize vid_mode unconditionally to
27368 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
27369
27370 * commands/help.c (print_command_help): Use cmd->prio, not
27371 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
27372
27373 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
27374
27375 Parttool
27376
27377 * parttool/pcpart.c: new file
27378 * commands/parttool.c: likewise
27379 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
27380 (parttool_mod_SOURCES): new variable
27381 (parttool_mod_CFLAGS): likewise
27382 (parttool_mod_LDFLAGS): likewise
27383 (pcpart_mod_SOURCES): likewise
27384 (pcpart_mod_CFLAGS): likewise
27385 (pcpart_mod_LDFLAGS): likewise
27386 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
27387 and parttool/pcpart.c
27388 * conf/i386-efi.rmk: likewise
27389 * conf/i386-ieee1275.rmk: likewise
27390 * conf/i386-pc.rmk: likewise
27391 * conf/powerpc-ieee1275.rmk: likewise
27392 * conf/sparc64-ieee1275.rmk: likewise
27393 * conf/x86_64-ieee1275.rmk: likewise
27394
27395 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27396
27397 Support for mtime and further expandability of dir command
27398
27399 * include/grub/lib/datetime.h: moved to ...
27400 * include/grub/datetime.h: ... moved here and added
27401 declaration of grub_unixtime2datetime. All users updated
27402 * include/grub/fs.h: new syntax for dir and mtime functions in
27403 struct grub_fs
27404 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
27405 and GRUB_FSHELP_FLAGS_MASK
27406 * commands/ls.c (grub_ls_list_files): Write mtime in long format
27407 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
27408 (grub_ext2_mtime): new function
27409 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
27410 (grub_hfsplus_mtime): new function
27411 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
27412 (GRUB_UFS_ATTR_FILE): likewise
27413 (GRUB_UFS_ATTR_LNK): likewise
27414 (struct grub_ufs_sblock): new fields mtime
27415 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
27416 all users updated
27417 (grub_ufs_dir): mtime support
27418 (grub_ufs_mtime): new function
27419 * fs/affs.c (grub_affs_dir): use new dir syntax
27420 * fs/afs.c (grub_afs_dir): likewise
27421 * fs/cpio.c (grub_cpio_dir): likewise
27422 * fs/fat.c (grub_fat_find_dir): likewise
27423 * fs/hfs.c (grub_hfs_dir): likewise
27424 * fs/iso9660.c (grub_iso9660_dir): likewise
27425 * fs/jfs.c (grub_jfs_dir): likewise
27426 * fs/minix.c (grub_minix_dir): likewise
27427 * fs/ntfs.c (grub_ntfs_dir): likewise
27428 * fs/reiserfs.c (grub_reiserfs_dir): likewise
27429 * fs/sfs.c (grub_sfs_dir): likewise
27430 * fs/xfs.c (grub_xfs_dir): likewise
27431 * util/hostfs.c (grub_hostfs_dir): likewise
27432 * lib/datetime.c: moved to ...
27433 * normal/datetime.c: ... moved here
27434 (grub_unixtime2datetime): new function
27435 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
27436 * normal/completion.c (iterate_dir): use new dir syntax
27437 * normal/misc.c (grub_normal_print_device_info): tell the
27438 last modification time of a volume
27439 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
27440 * conf/common.rmk: added lib/datetime.c to ls.mod
27441 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
27442 (normal_mod_SOURCES): likewise
27443 (datetime_mod_SOURCES): Removed lib/datetime.c
27444 * conf/i386-efi.rmk: likewise
27445 * conf/i386-ieee1275.rmk: likewise
27446 * conf/i386-pc.rmk: likewise
27447 * conf/powerpc-ieee1275.rmk: likewise
27448 * conf/sparc64-ieee1275.rmk: likewise
27449 * conf/x86_64-efi.rmk: likewise
27450
27451 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27452
27453 Trim trailing spaces in FAT label and support mtools-like labels
27454
27455 * fs/fat.c (grub_fat_iterate_dir): New function based
27456 on grub_fat_find_dir
27457 (grub_fat_find_dir): use grub_fat_iterate_dir
27458 (grub_fat_label): likewise
27459
27460 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
27461
27462 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
27463 and command.h
27464 remove extraneous kernel_elf_HEADERS
27465
27466 2009-04-04 Bean <bean123ch@gnail.com>
27467
27468 * include/grub/util/misc.h: Add dummy function fsync for mingw.
27469
27470 * util/misc.c: Likewise.
27471
27472 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27473
27474 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
27475 instead of grub_printf.
27476
27477 2009-04-03 Robert Millan <rmh@aybabtu.com>
27478
27479 * loader/i386/linux.c (grub_linux_setup_video): Fill
27480 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
27481 values from `mode info' structure instead of hardcoded
27482 values.
27483
27484 2009-04-01 Pavel Roskin <proski@gnu.org>
27485
27486 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
27487 unused now.
27488 * genmk.rb: Likewise.
27489 * configure.ac: Likewise.
27490
27491 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
27492
27493 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
27494 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
27495
27496 2009-04-01 David S. Miller <davem@davemloft.net>
27497
27498 * normal/sparc64/setjmp.S: Fix setjmp implementation.
27499 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
27500 (grub_setjmp): Mark with 'returns_twice' attribute.
27501 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
27502 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
27503 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
27504
27505 2009-04-01 Robert Millan <rmh@aybabtu.com>
27506
27507 Reapply fix from 2008-07-28 which was accidentally reverted; also
27508 perform the same fix to a similar check in same function.
27509
27510 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
27511 with the same number are found, just use issue a warning with
27512 grub_dprintf(), as this error has been reported to be non-fatal.
27513
27514 2009-03-31 Pavel Roskin <proski@gnu.org>
27515
27516 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
27517 for cross-compilation.
27518
27519 2009-03-30 Robert Millan <rmh@aybabtu.com>
27520
27521 Fix i386-ieee1275 build.
27522
27523 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
27524 Remove declaration.
27525
27526 2009-03-30 Pavel Roskin <proski@gnu.org>
27527
27528 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
27529 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
27530 zero-terminated, rely only on the strlen value. Fix comparison
27531 of strings differing in length.
27532
27533 2009-03-30 Robert Millan <rmh@aybabtu.com>
27534
27535 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
27536 checking for abi version. Improve error messages on BIOS to notify
27537 user about `linux16' command.
27538
27539 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
27540
27541 Leak fixes
27542
27543 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
27544 in case of collision
27545 * disk/scsi.c (grub_scsi_open): free scsi in case of error
27546
27547 2009-03-29 Robert Millan <rmh@aybabtu.com>
27548
27549 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
27550 set `vid_mode' accordingly.
27551 (grub_linux_boot): Process `vid_mode' and set video mode.
27552
27553 2009-03-29 Robert Millan <rmh@aybabtu.com>
27554
27555 * util/grub.d/10_linux.in (linux_entry): New function.
27556 Factorize generation of Linux boot entries.
27557
27558 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
27559
27560 Make the format of Environment Block plain text. The boot loader
27561 part is not tested well yet.
27562
27563 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
27564 (buffer): Removed.
27565 (envblk): Likewise.
27566 (usage): Remove "info" and "clear". Add "unset". Update the
27567 description of "set", as this does not delete variables any
27568 longer.
27569 (create_envblk_file): Complete rewrite.
27570 (open_envblk_file): Likewise.
27571 (cmd_info): Removed.
27572 (cmd_list): Likewise.
27573 (cmd_set): Likewise.
27574 (cmd_clear): Likewise.
27575 (list_variables): New function.
27576 (write_envblk): Likewise.
27577 (set_variables): Likewise.
27578 (unset_variables): Likewise.
27579 (main): Complete rewrite.
27580
27581 * commands/loadenv.c (buffer): Removed.
27582 (envblk): Likewise.
27583 (open_envblk_file): New function.
27584 (read_envblk_file): Complete rewrite.
27585 (grub_cmd_load_env): Likewise.
27586 (grub_cmd_list_env): Likewise.
27587 (struct blocklist): New struct.
27588 (free_blocklists): New function.
27589 (check_blocklists): Likewise.
27590 (write_blocklists): Likewise.
27591 (grub_cmd_save_env): Complete rewrite.
27592
27593 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
27594 a plain text signature.
27595 (GRUB_ENVBLK_MAXLEN): Removed.
27596 (struct grub_envblk): Complete rewrite.
27597 (grub_envblk_find): Removed.
27598 (grub_envblk_insert): Likewise.
27599 (grub_envblk_open): New prototype.
27600 (grub_envblk_set): Likewise.
27601 (grub_envblk_delete): Put const to VALUE.
27602 (grub_envblk_iterate): Put const to NAME and VALUE.
27603 (grub_envblk_close): New prototype.
27604 (grub_envblk_buffer): New inline function.
27605 (grub_envblk_size): Likewise.
27606
27607 * lib/envblk.c: Include grub/mm.h.
27608 (grub_env_find): Removed.
27609 (grub_envblk_open): New function.
27610 (grub_envblk_close): Likewise.
27611 (escaped_value_len): Likewise.
27612 (find_next_line): Likewise.
27613 (grub_envblk_insert): Removed.
27614 (grub_envblk_set): New function.
27615 (grub_envblk_delete): Complete rewrite.
27616 (grub_envblk_iterate): Likewise.
27617
27618 2009-03-28 Robert Millan <rmh@aybabtu.com>
27619
27620 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
27621 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
27622 variables. Use 16-bit loader.
27623 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
27624 loader.
27625 * kern/i386/loader.S (grub_linux_boot): Rename to ...
27626 (grub_linux16_boot): ... this. Update all users.
27627 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
27628 (grub_linux_boot): ... this. Update all users.
27629
27630 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
27631 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
27632 commands to `linux16' and `initrd16'.
27633 (GRUB_MOD_FINI(linux)): Rename to ...
27634 (GRUB_MOD_FINI(linux16)): ... this.
27635
27636 2009-03-24 Pavel Roskin <proski@gnu.org>
27637
27638 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
27639 not just for compilation.
27640
27641 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
27642
27643 Move multiboot helper out of kernel
27644
27645 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
27646 `loader/i386/multiboot_helper.S'.
27647 * conf/i386-coreboot.rmk: Likewise
27648 * conf/i386-ieee1275.rmk: Likewise
27649
27650 * kern/i386/loader.S: Move multiboot helpers from here...
27651 * loader/i386/multiboot_helper.S: ...moved here
27652 * include/grub/i386/loader.h: Move declarations of multiboot
27653 helpers from here...
27654 * include/grub/i386/multiboot.h: ...moved here
27655 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
27656
27657 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27658
27659 * kern/env.c (grub_env_context_open): Added an argument to specify
27660 whether a new context inherits exported variables from current
27661 one. This is useful when making a sandbox to interpret a config
27662 file.
27663 All callers updated.
27664
27665 * include/grub/env.h (grub_env_context_open): Updated the prototype.
27666
27667 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27668
27669 * kern/env.c (grub_env_context_close): Fix memory leaks.
27670
27671 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27672
27673 * normal/main.c (grub_normal_execute): Added an argument
27674 BATCH to specify if an interactive interface should be provided
27675 after reading a config file.
27676 All callers updated.
27677 (read_command_list): Prevent being executed twice.
27678 (read_fs_list): Likewise.
27679
27680 * include/grub/normal.h (grub_normal_execute): Updated the
27681 prototype.
27682
27683 2009-03-22 Pavel Roskin <proski@gno.org>
27684
27685 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
27686 _start.
27687 * kern/i386/pc/startup.S: Likewise.
27688 * kern/i386/efi/startup.S: Likewise.
27689 * kern/i386/ieee1275/startup.S: Likewise.
27690 * kern/i386/coreboot/startup.S: Likewise.
27691 * kern/x86_64/efi/startup.S: Likewise.
27692
27693 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
27694 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
27695 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
27696
27697 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
27698
27699 Bugfixes in multiboot for bugs uncovered by solaris kernel.
27700
27701 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
27702 limit detection.
27703 Use vaddr of correct segment for entry_point.
27704
27705 2009-03-21 Bean <bean123ch@gmail.com>
27706
27707 * commands/blocklist.c: Add include file <grub/command.h>, remove
27708 <grub/normal.h> and <grub/arg.h>.
27709 (grub_cmd_blocklist): Use the new command interface.
27710 (GRUB_MOD_INIT): Likewise.
27711 (GRUB_MOD_FINI): Likewise.
27712 * commands/boot.c: Likewise.
27713 * commands/cat.c: Likewise.
27714 * commands/cmp.c: Likewise.
27715 * commands/configfile.c: Likewise.
27716 * commands/crc.c: Likewise.
27717 * commands/echo.c: Likewise.
27718 * commands/halt.c: Likewise.
27719 * commands/handler.c: Likewise.
27720 * commands/hdparm.c: Likewise.
27721 * commands/help.c: Likewise.
27722 * commands/hexdump.c: Likewise.
27723 * commands/loadenv.c: Likewise.
27724 * commands/ls.c: Likewise.
27725 * commands/lsmmap.c: Likewise.
27726 * commands/lspci.c: Likewise.
27727 * commands/loadenv.c: Likewise.
27728 * commands/read.c: Likewise.
27729 * commands/reboot.c: Likewise.
27730 * commands/search.c: Likewise.
27731 * commands/sleep.c: Likewise.
27732 * commands/test.c: Likewise.
27733 * commands/usbtest.c: Likewise.
27734 * commands/videotest.c: Likewise.
27735 * commands/i386/cpuid.c: Likewise.
27736 * commands/i386/pc/halt.c: Likewise.
27737 * commands/i386/pc/play.c: Likewise.
27738 * commands/i386/pc/pxecmd.c: Likewise.
27739 * commands/i386/pc/vbeinfo.c: Likewise.
27740 * commands/i386/pc/vbetest.c: Likewise.
27741 * commands/ieee1275/suspend.c: Likewise.
27742 * disk/loopback.c: Likewise.
27743 * font/font_cmd.c: Likewise.
27744 * hello/hello.c: Likewise.
27745 * loader/efi/appleloader.c: Likewise.
27746 * loader/efi/chainloader.c: Likewise.
27747 * loader/i386/bsd.c: Likewise.
27748 * loader/i386/efi/linux.c: Likewise.
27749 * loader/i386/ieee1275/linux.c: Likewise.
27750 * loader/i386/linux.c: Likewise.
27751 * loader/i386/pc/chainloader.c: Likewise.
27752 * loader/i386/pc/linux.c: Likewise.
27753 * loader/powerpc/ieee1275/linux.c: Likewise.
27754 * loader/multiboot_loader.c: Likewise.
27755 * term/gfxterm.c: Likewise.
27756 * term/i386/pc/serial.c: Likewise.
27757 * term/terminfo.c: Likewise.
27758
27759 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
27760 * term/i386/pc/vga.c: Likewise.
27761 * video/readers/jpeg.c: Likewise.
27762 * video/readers/png.c: Likewise.
27763 * video/readers/tga.c: Likewise.
27764
27765 * util/grub-fstest (cmd_loopback): Removed.
27766 (cmd_blocklist): Likewise.
27767 (cmd_ls): Likewise.
27768 (grub_register_command): Likewise.
27769 (grub_unregister_command): Likewise.
27770 (execute_command): Use grub_command_find to locate command and execute
27771 it.
27772
27773 * include/grub/efi/chainloader.h: Removed.
27774 * loader/efi/chainloader_normal.c: Likewise.
27775 * loader/i386/bsd_normal.c: Likewise.
27776 * loader/i386/pc/chainloader_normal.c: Likewise.
27777 * loader/i386/pc/multiboot_normal.c: Likewise.
27778 * loader/linux_normal.c: Likewise.
27779 * loader/multiboot_loader_normal.c: Likewise.
27780 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27781
27782 * gencmdlist.sh: Scan new registration command grub_register_extcmd
27783 and grub_register_command_p1.
27784
27785 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
27786 kern/command.c, lib/arg.c and commands/extcmd.c.
27787 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
27788 (minicmd_mod_SOURCES): New variable.
27789 (minicmd_mod_CFLAGS): Likewise.
27790 (minicmd_mod_LDFLAGS): Likewise.
27791 (extcmd_mod_SOURCES): Likewise.
27792 (extcmd_mod_CFLAGS): Likewise.
27793 (extcmd_mod_LDFLAGS): Likewise.
27794 (boot_mod_SOURCES): Removed.
27795 (boot_mod_CFLAGS): Likewise.
27796 (boot_mod_LDFLAGS): Likewise.
27797
27798 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
27799 kern/corecmd.c.
27800 (kernel_img_HEADERS): Add command.h.
27801 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
27802 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
27803 and lib/arg.c.
27804 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
27805 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
27806 remove the corresponding normal mode command.
27807 (normal_mod_SOURCES): Remove normal/arg.c.
27808 * conf/i386-coreboot.rmk: Likewise.
27809 * conf/i386-efi.rmk: Likewise.
27810 * conf/i386-ieee1275.rmk: Likewise.
27811 * conf/powerpc-ieee1275.rmk: Likewise.
27812 * conf/x86_64-efi.rmk: Likewise.
27813
27814 * include/grub/arg.h: Move from here ...
27815 * include/grub/lib/arg.h: ... to here.
27816
27817 * normal/arg.c: Move from here ...
27818 * lib/arg.c: ... to here.
27819
27820 * commands/extcmd.c: New file.
27821 * commands/minicmd.c: Likewise.
27822 * include/grub/command.h: Likewise.
27823 * include/grub/extcmd.h: Likewise.
27824 * kern/command.c: Likewise.
27825 * kern/corecmd.c: Likewise.
27826
27827 * kern/list.c (grub_list_iterate): Return int instead of void.
27828 (grub_list_insert): New function.
27829 (grub_prio_list_insert): Likewise.
27830
27831 * kern/rescue.c (grub_rescue_command): Removed.
27832 (grub_rescue_command_list): Likewise.
27833 (grub_rescue_register_command): Likewise.
27834 (grub_rescue_unregister_command): Likewise.
27835 (grub_rescue_cmd_boot): Move to minicmd.c
27836 (grub_rescue_cmd_help): Likewise.
27837 (grub_rescue_cmd_info): Likewise.
27838 (grub_rescue_cmd_boot): Likewise.
27839 (grub_rescue_cmd_testload): Likewise.
27840 (grub_rescue_cmd_dump): Likewise.
27841 (grub_rescue_cmd_rmmod): Likewise.
27842 (grub_rescue_cmd_lsmod): Likewise.
27843 (grub_rescue_cmd_exit): Likewise.
27844 (grub_rescue_print_devices): Moved to corecmd.c.
27845 (grub_rescue_print_files): Likewise.
27846 (grub_rescue_cmd_ls): Likewise.
27847 (grub_rescue_cmd_insmod): Likewise.
27848 (grub_rescue_cmd_set): Likewise.
27849 (grub_rescue_cmd_unset): Likewise.
27850 (attempt_normal_mode): Use grub_command_find to get normal module.
27851 (grub_enter_rescue_mode): Use grub_register_core_commands to register
27852 commands, remove grub_rescue_register_command calls.
27853
27854 * normal/command.c (grub_register_command): Removed.
27855 (grub_unregister_command): Likewise.
27856 (grub_command_find): Likewise.
27857 (grub_iterate_commands): Likewise.
27858 (rescue_command): Likewise.
27859 (export_command): Moved to corecmd.c.
27860 (set_command): Removed.
27861 (unset_command): Likewise.
27862 (insmod_command): Likewise.
27863 (rmmod_command): Likewise.
27864 (lsmod_command): Likewise.
27865 (grub_command_init): Likewise.
27866
27867 * normal/completion.c (iterate_command): Use cmd->prio to check for
27868 active command.
27869 (complete_arguments): Use grub_extcmd_t structure to find options.
27870 (grub_normal_do_completion): Change function grub_iterate_commands to
27871 grub_command_iterate.
27872
27873 * normal/execute.c (grub_script_execute_cmd): No need to parse
27874 argument here.
27875
27876 * normal/main.c (grub_dyncmd_dispatcher): New function.
27877 (read_command_list): Register unload commands as dyncmd.
27878 (grub_cmd_normal): Use new command interface, register rescue,
27879 unregister normal at entry, register normal, unregister rescue at exit.
27880
27881 * include/grub/list.h (grub_list_test_t): New type.
27882 (grub_list_iterate): Return int instead of void.
27883 (grub_list_insert): New function.
27884 (GRUB_AS_NAMED_LIST_P): New macro.
27885 (GRUB_AS_PRIO_LIST): Likewise.
27886 (GRUB_AS_PRIO_LIST_P): Likewise.
27887 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
27888 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
27889 (grub_prio_list): New structure.
27890 (grub_prio_list_insert): New function.
27891 (grub_prio_list_remove): New inline function.
27892
27893 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
27894 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
27895 (GRUB_COMMAND_FLAG_MENU): Likewise.
27896 (GRUB_COMMAND_FLAG_BOTH): Likewise.
27897 (GRUB_COMMAND_FLAG_TITLE): Likewise.
27898 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
27899 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
27900 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
27901 (grub_command): Likewise.
27902 (grub_register_command): Likewise.
27903 (grub_command_find): Likewise.
27904 (grub_iterate_commands): Likewise.
27905 (grub_command_init): Likewise.
27906 (grub_arg_parse): Likewise.
27907 (grub_arg_show_help): Likewise.
27908
27909 * include/grub/rescue.h (grub_rescue_register_command): Removed.
27910 (grub_rescue_unregister_command): Likewise.
27911
27912 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
27913 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
27914 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
27915
27916 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
27917 grub_rescue_cmd_initrd.
27918 * include/grub/i386/loader.h: Likewise.
27919 * include/grub/x86_64/loader.h: Likewise.
27920
27921 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
27922
27923 2009-03-21 Bean <bean123ch@gmail.com>
27924
27925 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
27926 instead of stat in mingw environment.
27927
27928 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
27929
27930 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
27931
27932 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
27933 AC_CONFIG_LINKS.
27934
27935 2009-03-21 Bean <bean123ch@gmail.com>
27936
27937 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
27938 out of range error.
27939
27940 2009-03-18 Michel Dänzer <michel@daenzer.net>
27941
27942 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
27943 checking inode flags for EXT4_EXTENTS_FLAG.
27944
27945 2009-03-18 Robert Millan <rmh@aybabtu.com>
27946
27947 * loader/i386/linux.c: Include `<grub/video.h>' and
27948 `<grub/i386/pc/vbe.h>'..
27949 (grub_linux_setup_video): New function. Loosely based on the EFI one.
27950 (grub_linux32_boot): Attempt to configure video settings with
27951 grub_linux_setup_video().
27952 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
27953 to avoid grub_console_fini() which would step out of graphical mode
27954 unconditionally.
27955
27956 2009-03-14 Robert Millan <rmh@aybabtu.com>
27957
27958 Fix build on powerpc.
27959 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
27960
27961 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
27962
27963 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
27964 background image command.
27965
27966 2009-03-12 Colin D Bennett <colin@gibibit.com>
27967
27968 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
27969 (grub_gfxterm_putchar): Extract pairs of identical calls to
27970 draw_cursor out of conditional blocks.
27971
27972 2009-03-11 Pavel Roskin <proski@gnu.org>
27973
27974 * fs/hfs.c (grub_hfs_strncasecmp): New function.
27975 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
27976
27977 2009-03-11 Robert Millan <rmh@aybabtu.com>
27978
27979 * loader/i386/multiboot_elfxx.c
27980 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
27981
27982 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
27983
27984 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
27985 `kern/handler.c'.
27986
27987 2009-03-11 Robert Millan <rmh@aybabtu.com>
27988
27989 * loader/i386/multiboot.c (code_size): New variable.
27990 (grub_multiboot): Define offsets by adding to `code_size' rather
27991 than subtracting from `grub_multiboot_payload_size'. Provide
27992 4-byte alignment to MBI and others by increasing
27993 `boot_loader_name_length' appropriately.
27994
27995 * loader/i386/multiboot_elfxx.c
27996 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
27997
27998 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
27999
28000 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
28001 `fs/ext2.c'.
28002
28003 2009-03-08 Robert Millan <rmh@aybabtu.com>
28004
28005 Make loader/i386/linux.c usable on i386-pc again.
28006
28007 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
28008 memory to heap.
28009 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
28010 `#error' stanza.
28011
28012 2009-03-07 Bean <bean123ch@gmail.com>
28013
28014 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
28015 allocation.
28016
28017 2009-03-06 Robert Millan <rmh@aybabtu.com>
28018
28019 Fix display issue on terminals with screen size other than 80x25
28020 (e.g. gfxterm with resolution higher than 640x480).
28021
28022 * normal/main.c (grub_normal_init_page): Display title text in a
28023 position relative to the center of the terminal instead of relying
28024 on a hardcoded offset.
28025
28026 2009-03-04 Robert Millan <rmh@aybabtu.com>
28027
28028 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
28029 installed.
28030
28031 * Makefile.in (host_kernel): New variable.
28032 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
28033 scripts instead of just the windows one.
28034 * configure.ac: Initialize and AC_SUBST `host_kernel'.
28035
28036 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28037
28038 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
28039 `kern/handler.c'.
28040 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28041 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28042 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28043 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28044 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28045 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28046
28047 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28048
28049 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
28050 or if there's no space for the disk label and print the partition number on a
28051 invalid magic.
28052
28053 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28054
28055 * util/misc.c: Include <time.h>.
28056 (grub_millisleep): New function.
28057
28058 2009-03-04 Bean <bean123ch@gmail.com>
28059
28060 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
28061 another option -mno-red-zone.
28062
28063 * commands/handler.c: Change module description.
28064
28065 * kern/handler.c: Add missing space at the end of description line.
28066
28067 * kern/list.c: Likewise.
28068
28069 2009-03-03 Robert Millan <rmh@aybabtu.com>
28070
28071 Move more components to the relocation area, and fix mbi pointer
28072 handling to use the destination rather than the origin (thanks to
28073 Vladimir Serbinenko for spotting).
28074
28075 * loader/i386/multiboot.c (mbi_dest): New variable.
28076 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
28077 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
28078 relocation area.
28079
28080 2009-03-01 Bean <bean123ch@gmail.com>
28081
28082 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
28083 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
28084 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
28085 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
28086
28087 * loader/i386/efi/linux.c (acpi_guid): New variable.
28088 (acpi_guid): Likewise.
28089 (EBDA_SEG_ADDR): New constant.
28090 (LOW_MEM_ADDR): Likewise.
28091 (FAKE_EBDA_SEG): Likewise.
28092 (fake_bios_data): New function.
28093 (grub_linux_boot): Call fake_bios_data.
28094
28095 2009-03-01 Bean <bean123ch@gmail.com>
28096
28097 * commands/terminal.c: Removed.
28098
28099 * commands/handler.c: New file.
28100
28101 * include/grub/list.h: Likewise.
28102
28103 * include/grub/handler.h: Likewise.
28104
28105 * kern/list.c: Likewise.
28106
28107 * kern/handler.c: Likewise.
28108
28109 * kern/term.h: Include header file <grub/handler.h>.
28110 (grub_term_input): Move next field to the beginning.
28111 (grub_term_output): Likewise.
28112 (grub_term_input_class): New variable.
28113 (grub_term_output_class): Likewise.
28114 (grub_term_register_input): Changed to inline function.
28115 (grub_term_register_output): Likewise.
28116 (grub_term_unregister_input): Likewise.
28117 (grub_term_unregister_output): Likewise.
28118 (grub_term_set_current_input): Likewise.
28119 (grub_term_set_current_output): Likewise.
28120 (grub_term_get_current_input): Likewise.
28121 (grub_term_get_current_output): Likewise.
28122 (grub_term_iterate_input): Removed.
28123 (grub_term_iterate_output): Likewise.
28124
28125 * kern/term.c (grub_term_list_input): Removed.
28126 (grub_term_list_output): Likewise.
28127 (grub_term_input_class): New variable.
28128 (grub_term_output_class): Likewise.
28129 (grub_cur_term_input): Change variable as macro.
28130 (grub_cur_term_output): Likewise.
28131 (grub_term_register_input): Removed.
28132 (grub_term_register_output): Likewise.
28133 (grub_term_unregister_input): Likewise.
28134 (grub_term_unregister_output): Likewise.
28135 (grub_term_set_current_input): Likewise.
28136 (grub_term_set_current_output): Likewise.
28137 (grub_term_iterate_input): Likewise.
28138 (grub_term_iterate_output): Likewise.
28139 (grub_term_get_current_input): Likewise.
28140 (grub_term_get_current_output): Likewise.
28141
28142 * util/grub-editenv.c: Include header file <grub/handler.h>.
28143 (grub_term_get_current_input): Removed.
28144 (grub_term_get_current_output): Likewise.
28145 (grub_term_input_class): New variable.
28146 (grub_term_output_class): Likewise.
28147
28148 * util/grub-fstest.c (grub_term_get_current_input): Removed.
28149 (grub_term_get_current_output): Likewise.
28150 (grub_term_input_class): New variable.
28151 (grub_term_output_class): Likewise.
28152
28153 * util/grub-probe.c (grub_term_get_current_input): Removed.
28154 (grub_term_get_current_output): Likewise.
28155 (grub_term_input_class): New variable.
28156 (grub_term_output_class): Likewise.
28157
28158 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
28159 (grub_term_get_current_output): Likewise.
28160 (grub_term_input_class): New variable.
28161 (grub_term_output_class): Likewise.
28162
28163 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
28164 (terminal_mod_SOURCES): Likewise.
28165 (terminal_mod_CFLAGS): Likewise.
28166 (terminal_mod_LDFLAGS): Likewise.
28167
28168 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
28169 handler.c.
28170 (kernel_img_SOURCES): Add list.c and handler.c.
28171 (kernel_img_HEADERS): Add list.h and handler.h.
28172
28173 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28174 handler.c.
28175 (kernel_mod_SOURCES): Add list.c and handler.c.
28176 (kernel_mod_HEADERS): Add list.h and handler.h.
28177
28178 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
28179 handler.c.
28180 (kernel_elf_SOURCES): Add list.c and handler.c.
28181 (kernel_elf_HEADERS): Add list.h and handler.h.
28182
28183 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28184 handler.c.
28185 (kernel_elf_SOURCES): Add list.c and handler.c.
28186 (kernel_elf_HEADERS): Add list.h and handler.h.
28187
28188 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28189 handler.c.
28190 (kernel_mod_SOURCES): Add list.c and handler.c.
28191 (kernel_mod_HEADERS): Add list.h and handler.h.
28192
28193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28194 handler.c.
28195 (kernel_elf_SOURCES): Add list.c and handler.c.
28196 (kernel_elf_HEADERS): Add list.h and handler.h.
28197
28198 2009-02-27 Robert Millan <rmh@aybabtu.com>
28199
28200 Factorize elf32 / elf64 code in Multiboot loader. This will
28201 prevent it from getting out of sync again.
28202
28203 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
28204 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
28205 grub_multiboot_load_elf64): Move from here ...
28206 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
28207 grub_multiboot_load_elf): ... to here (new file).
28208
28209 2009-02-27 Robert Millan <rmh@aybabtu.com>
28210
28211 * util/grub.d/10_linux.in: Rename "single-user mode" to
28212 "recovery mode".
28213
28214 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
28215
28216 Don't leak in SCSI code.
28217 * disk/scsi.c (grub_scsi_close): free `scsi'.
28218
28219 2009-02-27 Robert Millan <rmh@aybabtu.com>
28220
28221 * loader/i386/pc/multiboot.c: Move from here ...
28222 * loader/i386/multiboot.c: ... to here. Update all users.
28223
28224 2009-02-27 Robert Millan <rmh@aybabtu.com>
28225
28226 Patch from Alexandre Bique <bique.alexandre@gmail.com>
28227 * util/i386/pc/grub-setup.c (setup): Fix directory path.
28228
28229 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
28230
28231 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
28232 b-tree.
28233
28234 2009-02-27 Robert Millan <rmh@aybabtu.com>
28235
28236 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
28237 `0x' qualifier as 0 when base is specified as parameter).
28238
28239 2009-02-24 Bean <bean123ch@gmail.com>
28240
28241 * configure.ac: Check for -mcmodel=large in x86_64 target.
28242
28243 * include/grub/efi/api.h (efi_call_10): New macro.
28244 (efi_wrap_10): New function.
28245
28246 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
28247 (GRUB_PE32_REL_BASED_HIGH): Likewise.
28248 (GRUB_PE32_REL_BASED_LOW): Likewise.
28249 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
28250 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
28251 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
28252 (GRUB_PE32_REL_BASED_SECTION): Likewise.
28253 (GRUB_PE32_REL_BASED_REL): Likewise.
28254 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
28255 (GRUB_PE32_REL_BASED_DIR64): Likewise.
28256 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
28257
28258 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
28259 issue.
28260
28261 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
28262 (efi_wrap_10): New function.
28263
28264 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
28265
28266 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
28267 MB/MBP model (NV chipset).
28268 (devdata_devs): Add devpath_5 to the list.
28269
28270 * load/i386/efi/linux.c (video_base): Remove variable.
28271 (RGB_MASK): New macro.
28272 (RGB_MAGIC): Likewise.
28273 (LINE_MIN): Likewise.
28274 (LINE_MAX): Likewise.
28275 (FBTEST_STEP): Likewise.
28276 (FBTEST_COUNT): Likewise.
28277 (fb_list): New variable.
28278 (grub_find_video_card): Remove function.
28279 (find_framebuf): New function.
28280 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
28281 line length.
28282
28283 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
28284 problem for x86_64.
28285
28286 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
28287
28288 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
28289
28290 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
28291 coding tool name.
28292
28293 2009-02-22 Robert Millan <rmh@aybabtu.com>
28294
28295 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
28296 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
28297 in our relocation, instead of using it directly from heap. Also
28298 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
28299
28300 2009-02-21 Robert Millan <rmh@aybabtu.com>
28301
28302 Implement USB keyboard support (based on patch by Marco Gerards)
28303
28304 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
28305 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
28306 (usb_keyboard_mod_LDFLAGS): New variables.
28307
28308 * term/usb_keyboard.c: New file.
28309
28310 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28311
28312 Corrected wrong declaration
28313
28314 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
28315
28316 2009-02-14 Christian Franke <franke@computer.org>
28317
28318 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
28319 (grub_lspci_iter): Print class code and programming interface byte.
28320
28321 2009-02-14 Christian Franke <franke@computer.org>
28322
28323 * gendistlist.sh: Ignore `.svn' directories.
28324
28325 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
28326
28327 * fs/fat.c: Add 2009 to Copyright line.
28328
28329 2009-02-14 Christian Franke <franke@computer.org>
28330
28331 * commands/hdparm.c: New file. Provides `hdparm' command
28332 which sends ATA commands via grub_disk_ata_pass_through ().
28333
28334 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
28335
28336 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
28337 and <grub/cpu/io.h> to include/grub/ata.h.
28338 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
28339 (GRUB_CDROM_SECTOR_SIZE): Remove.
28340 (GRUB_ATA_*): Move to include/grub/ata.h.
28341 (GRUB_ATAPI_*): Likewise.
28342 (enum grub_ata_commands): Likewise.
28343 (enum grub_ata_timeout_milliseconds): Likewise.
28344 (struct grub_ata_device): Likewise.
28345 (grub_ata_regset): Likewise.
28346 (grub_ata_regget): Likewise.
28347 (grub_ata_regset2): Likewise.
28348 (grub_ata_regget2): Likewise.
28349 (grub_ata_check_ready): Likewise.
28350 (grub_ata_wait_not_busy): Remove static, exported in
28351 include/grub/ata.h.
28352 (grub_ata_wait_drq): Likewise.
28353 (grub_ata_pio_read): Likewise.
28354
28355 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
28356 function for hdparm.mod.
28357
28358 * include/grub/ata.h: New file, contains declarations from
28359 disk/ata.c.
28360 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
28361
28362 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
28363 (grub_disk_ata_pass_through): New exported variable.
28364
28365 * kern/disk.c (grub_disk_ata_pass_through): New variable.
28366
28367 2009-02-13 Colin D Bennett <colin@gibibit.com>
28368
28369 Support multiple fallback entries, and provide an API to support
28370 executing default+fallback menu entries. Renamed the `terminal' menu
28371 viewer to `text'.
28372
28373 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
28374 variable declaration.
28375 (grub_menu_execute_callback): New structure declaration.
28376 (grub_menu_execute_callback_t): New typedef.
28377 (grub_menu_execute_with_fallback): New function declaration.
28378 (grub_menu_get_entry): Likewise.
28379 (grub_menu_get_timeout): Likewise.
28380 (grub_menu_set_timeout): Likewise.
28381
28382 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
28383
28384 * normal/menu.c (grub_wait_after_message): Moved to
28385 `normal/menu_text.c'.
28386 (draw_border): Likewise.
28387 (print_message): Likewise.
28388 (print_entry): Likewise.
28389 (print_entries): Likewise.
28390 (grub_menu_init_page): Likewise.
28391 (get_entry_number): Likewise.
28392 (print_timeout): Likewise.
28393 (run_menu): Likewise.
28394 (grub_menu_execute_entry): Likewise.
28395 (show_text_menu): Likewise.
28396 (get_and_remove_first_entry_number): New function.
28397 (grub_menu_execute_with_fallback): Likewise.
28398 (get_entry): Renamed to ...
28399 (grub_menu_get_entry): .. this and made it global.
28400 (get_timeout): Renamed to ...
28401 (grub_menu_get_timeout): ... this and made it global.
28402 (set_timeout): Renamed to ...
28403 (grub_menu_set_timeout): ... this and made it global.
28404 (grub_normal_terminal_menu_viewer): Renamed to ...
28405 (grub_normal_text_menu_viewer): ... this.
28406
28407 * normal/menu_text.c: New file. Extracted text-menu-specific code
28408 from normal/menu.c.
28409
28410 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
28411 (normal_mod_SOURCES): Likewise.
28412
28413 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28414 (normal_mod_SOURCES): Likewise.
28415
28416 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28417 (normal_mod_SOURCES): Likewise.
28418
28419 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
28420 (normal_mod_SOURCES): Likewise.
28421
28422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28423 (normal_mod_SOURCES): Likewise.
28424
28425 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28426 (normal_mod_SOURCES): Likewise.
28427
28428 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28429 (normal_mod_SOURCES): Likewise.
28430
28431 2009-02-11 Robert Millan <rmh@aybabtu.com>
28432
28433 * util/grub.d/00_header.in: Update old reference to `font' command.
28434
28435 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
28436
28437 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
28438
28439 Based on patch from Javier Martín.
28440
28441 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28442
28443 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
28444 to avoid false positives with FAT.
28445 (grub_fstest_SOURCES): Likewise.
28446 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28447 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28449 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28450 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28451 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28452
28453 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28454
28455 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
28456 bpb.version_specific.fat12_or_fat16.fstype and
28457 bpb.version_specific.fat32.fstype.
28458
28459 2009-02-08 Robert Millan <rmh@aybabtu.com>
28460
28461 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
28462
28463 2009-02-08 Robert Millan <rmh@aybabtu.com>
28464
28465 * Makefile.in (host_os, host_cpu): New variables.
28466 (target_os): Remove. Update all users.
28467
28468 2009-02-08 Marco Gerards <marco@gnu.org>
28469
28470 * Makefile.in (enable_grub_emu_usb): New variable.
28471 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
28472 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
28473 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
28474 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
28475 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
28476 `usbtest.mod' and `usbms.mod'.
28477 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
28478 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
28479 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
28480 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
28481 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
28482 variables.
28483
28484 * disk/usbms.c: New file.
28485
28486 * include/grub/usb.h: Likewise.
28487
28488 * include/grub/usbtrans.h: Likewise.
28489
28490 * include/grub/usbdesc.h: Likewise.
28491
28492 * bus/usb/usbtrans.c: Likewise.
28493
28494 * bus/usb/ohci.c: Likewise.
28495
28496 * bus/usb/uhci.c: Likewise.
28497
28498 * bus/usb/usbhub.c: Likewise.
28499
28500 * bus/usb/usb.c: Likewise.
28501
28502 * commands/usbtest.c: Likewise.
28503
28504 * util/usb.c: Likewise.
28505
28506 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
28507
28508 * configure.ac: Test for libusb presence.
28509
28510 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
28511
28512 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
28513
28514 * kern/mm.c: Add more comments.
28515
28516 2009-02-08 Robert Millan <rmh@aybabtu.com>
28517
28518 Patch from Javier Martín.
28519 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
28520 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
28521
28522 2009-02-08 Robert Millan <rmh@aybabtu.com>
28523
28524 * fs/cpio.c: Split tar functionality to ...
28525 * fs/tar.c: ... here (new file). Update all users.
28526
28527 2009-02-07 Robert Millan <rmh@aybabtu.com>
28528
28529 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
28530 backward-incompatible features.
28531
28532 Based on patch from Javier Martín, with some adjustments.
28533
28534 2009-02-07 Michael Scherer <misc@mandriva.org>
28535
28536 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
28537
28538 2009-02-07 Robert Millan <rmh@aybabtu.com>
28539
28540 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
28541 position of `disk/lvm.c' to ensure grub_init_all() always picks it
28542 after the RAID stuff.
28543
28544 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
28545
28546 Fixes problem when running vbetest command as reported by
28547 Vladimir Serbinenko <phcoder@gmail.com>.
28548
28549 * (grub_vbe_set_video_mode): Fixed problem with text modes.
28550
28551 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
28552
28553 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
28554 /dev/md/NpN style mdraid devices.
28555
28556 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28557
28558 * util/unifont2pff.rb: Remove.
28559
28560 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28561
28562 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
28563 `#'.
28564
28565 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28566
28567 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
28568 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28569 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28570 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28572 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28573 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28574
28575 2009-02-02 Christian Franke <franke@computer.org>
28576
28577 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
28578
28579 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
28580
28581 * INSTALL: Note that we now require at least autoconf 2.59 and
28582 that LZO is optional.
28583
28584 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28585
28586 Base on patch on bug #24154 created by Tomas Tintera
28587 <trosos@seznam.cz>.
28588
28589 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
28590
28591 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28592
28593 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
28594 <bero@arklinux.org>.
28595
28596 * normal/parser.y (script_init): Add missing semicolon.
28597
28598 2009-01-31 Colin D Bennett <colin@gibibit.com>
28599
28600 * normal/main.c: Add include to grub/menu_viewer.h.
28601 (free_menu_entry_classes): Added.
28602 (grub_normal_menu_addentry): Added class property handling.
28603 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
28604 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
28605
28606 * normal/menu_viewer.c: New file.
28607
28608 * normal/menu.c (run_menu_entry): Renamed to ...
28609 (grub_menu_execute_entry): ... this and made it as global.
28610 (grub_menu_run): Renamed to ...
28611 (show_text_menu): ... this and made it local.
28612 (show_text_menu): Adapt to new function names.
28613 (grub_normal_terminal_menu_viewer): New global variable.
28614
28615 * include/grub/menu.h: New file.
28616
28617 * include/grub/menu_viewer.h: New file.
28618
28619 * include/grub/normal.h: Added include to grub/menu.h.
28620 (grub_menu_entry): Moved to include/grub/menu.h.
28621 (grub_menu_entry_t): Likewise.
28622 (grub_menu): Likewise.
28623 (grub_menu_t): Likewise.
28624 (grub_normal_terminal_menu_viewer): Added.
28625 (grub_menu_execute_entry): Likewise.
28626 (grub_menu_run): Removed.
28627
28628 * DISTLIST: Added include/grub/menu.h.
28629 Added include/grub/menu_viewer.h.
28630 Added normal/menu_viewer.c.
28631
28632 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
28633
28634 * normal/execute.c (grub_script_execute_menuentry): Changed to use
28635 arglist for menutitle arguments.
28636
28637 * normal/main.c (grub_normal_menu_addentry): Likewise.
28638
28639 * normal/parser.y (menuentry): Likewise.
28640
28641 * normal/script.c (grub_script_create_cmdmenu): Likewise.
28642
28643 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
28644 (grub_script_create_cmdmenu): Likewise.
28645
28646 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
28647
28648 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
28649 changes.
28650
28651 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
28652
28653 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
28654
28655 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
28656
28657 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28658
28659 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28660
28661 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28662
28663 2009-01-30 Christian Franke <franke@computer.org>
28664
28665 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
28666 in option help text.
28667
28668 2009-01-27 Pavel Roskin <proski@gnu.org>
28669
28670 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
28671
28672 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28673
28674 * commands/lsmmap.c: Add include to grub/machine/memory.h.
28675
28676 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
28677
28678 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
28679 unregister function.
28680
28681 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28682
28683 * disk/scsi.c (grub_scsi_read): Fix sign problem.
28684
28685 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
28686
28687 * util/grub-mkfont.c (usage): Fix typo.
28688
28689 * util/elf/grub-mkimage.c (load_modules): Fix warning.
28690
28691 2009-01-26 Daniel Mierswa <impulze@impulze.org>
28692
28693 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
28694
28695 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
28696
28697 * kern/misc.c (grub_strcasecmp): New function.
28698 (grub_strcasecmp): Use grub_size_t instead of int for length.
28699 Fix return value.
28700 * include/grub/misc.h: Update function prototypes.
28701
28702 2009-01-26 Robert Millan <rmh@aybabtu.com>
28703
28704 * configure.ac: Fix cross-compilation check.
28705
28706 2009-01-22 Christian Franke <franke@computer.org>
28707
28708 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
28709 (precision) digit string. Allow `.format2' without `format1' (width).
28710 Limit input chars for `%s' output to `format2' if specified. This is
28711 compatible with standard printf ().
28712
28713 2009-01-22 Christian Franke <franke@computer.org>
28714
28715 * disk/ata.c (grub_ata_wait_status): Replace by ...
28716 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
28717 other status bits may be invalid while BSY is asserted.
28718 (grub_ata_check_ready): New function.
28719 (grub_ata_cmd): Removed.
28720 (grub_ata_wait_drq): New function.
28721 (grub_ata_strncpy): Remove inline.
28722 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
28723 and error check now done by grub_ata_wait_drq ().
28724 (grub_ata_pio_write): Likewise.
28725 (grub_atapi_identify): Set DEV before check for !BSY. Use
28726 grub_ata_wait_drq () to wait for data.
28727 (grub_ata_device_initialize): Add status register check to
28728 detect missing SATA slave devices. Add debug messages.
28729 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
28730 (grub_atapi_packet): Set DEV before check for !BSY. Replace
28731 transfer loop by grub_ata_pio_write ().
28732 (grub_ata_identify): Set DEV before check for !BSY. Use
28733 grub_ata_wait_drq () to wait for data.
28734 (grub_ata_setaddress): Set DEV before check for !BSY.
28735 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
28736 read/write in one loop. Fix invalid command on write. Fix incomplete
28737 command on (size % batch) == 0. Add missing error check after write of
28738 last block. Add debug messages.
28739 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
28740
28741 2009-01-19 Christian Franke <franke@computer.org>
28742
28743 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
28744 (GRUB_ATAPI_IREASON_*): Likewise.
28745 (grub_ata_pio_write): Fix timeout error return.
28746 (grub_atapi_identify): Add grub_ata_wait () after cmd.
28747 (grub_atapi_wait_drq): New function.
28748 (grub_atapi_packet): New parameter `size'.
28749 Use grub_atapi_wait_drq () and direct write instead of
28750 grub_ata_pio_write ().
28751 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
28752 reads the number of bytes requested by the device for each DRQ
28753 assertion.
28754 (grub_atapi_write): Remove old implementation, return not
28755 implemented instead.
28756
28757 2009-01-19 Christian Franke <franke@computer.org>
28758
28759 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
28760 of 512 to calculate data size.
28761 (grub_scsi_read12): Likewise.
28762 (grub_scsi_write10): Likewise.
28763 (grub_scsi_write12): Likewise.
28764 (grub_scsi_read): Adjust size according to blocksize.
28765 Add checks for invalid blocksize and unaligned transfer.
28766
28767 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
28768
28769 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
28770
28771 * term/gfxterm.c (write_char): Fix background rendering for wide
28772 width glyphs.
28773
28774 2009-01-19 Robert Millan <rmh@aybabtu.com>
28775
28776 * config.guess: Update to latest version from config git.
28777 * config.sub: Likewise.
28778
28779 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
28780
28781 * Makefile.in: Change font compilation to use new grub-mkfont instead
28782 of java version.
28783
28784 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
28785 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
28786 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28787 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28788 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
28789 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
28790 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
28791 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
28792 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
28793
28794 2009-01-16 Christian Franke <franke@computer.org>
28795
28796 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
28797 (enum grub_ata_timeout_milliseconds): New enum.
28798 (grub_ata_wait_status): Add parameter milliseconds.
28799 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
28800 recovery from timed-out commands.
28801 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
28802 return grub_errno instead of REG_ERROR.
28803 (grub_ata_pio_write): Add parameter milliseconds.
28804 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
28805 Pass milliseconds to grub_ata_wait_status () and
28806 grub_ata_pio_read ().
28807 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
28808 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
28809 grub_ata_wait_status (). Fix IDENTIFY timeout check.
28810 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
28811 It is not suitable for device detection, because DEV bit is ignored,
28812 the command may run too long, and not all devices set the signature
28813 properly.
28814 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
28815 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
28816 Fix device selection, DEV bit must be set first to address the registers
28817 of the correct device.
28818 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
28819 grub_ata_pio_read/write ().
28820 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
28821 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
28822
28823 2009-01-13 Carles Pina i Estany <carles@pina.cat>
28824
28825 * util/grub-editenv.c (main): Use fseeko(), not fseek().
28826
28827 2009-01-13 Bean <bean123ch@gmail.com>
28828
28829 * util/grub-mkfont.c (write_font): forget to remove some debug code.
28830
28831 2009-01-13 Bean <bean123ch@gmail.com>
28832
28833 * Makefile.in: (enable_grub_mkfont): New variable.
28834 (freetype_cflags): Likewise.
28835 (freetype_libs): Likewise.
28836
28837 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
28838 (grub_mkfont_SOURCES): New variable.
28839 (grub_mkfont_CFLAGS): Likewise.
28840 (grub_mkfont_LDFLAGS): Likewise.
28841
28842 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
28843 library if `--enable-grub-mkfont' is requested.
28844 (enable_grub_mkfont): New variable.
28845 (freetype_cflags): Likewise.
28846 (freetype_libs): Likewise.
28847
28848 * util/grub-mkfont.c: New file.
28849
28850 2009-01-12 Christian Franke <franke@computer.org>
28851
28852 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
28853 mode check. Fix setting of compat_use[].
28854
28855 2009-01-10 Robert Millan <rmh@aybabtu.com>
28856
28857 Update a few copyright years which we forgot to do in 2008 (only for
28858 files whose changes made in 2008 were copyright-significant)
28859
28860 * Makefile.in: Add 2008 to Copyright line.
28861 * disk/ieee1275/ofdisk.c: Likewise.
28862 * disk/efi/efidisk.c: Likewise.
28863 * kern/dl.c: Likewise.
28864 * kern/sparc64/ieee1275/init.c: Likewise.
28865 * kern/mm.c: Likewise.
28866 * kern/efi/mm.c: Likewise.
28867 * boot/i386/pc/boot.S: Likewise.
28868 * genfslist.sh: Likewise.
28869 * fs/iso9660.c: Likewise.
28870 * fs/hfs.c: Likewise.
28871 * fs/jfs.c: Likewise.
28872 * fs/minix.c: Likewise.
28873 * fs/ufs.c: Likewise.
28874 * gensymlist.sh.in: Likewise.
28875 * genkernsyms.sh.in: Likewise.
28876 * include/grub/misc.h: Likewise.
28877 * include/grub/types.h: Likewise.
28878 * include/grub/symbol.h: Likewise.
28879 * include/grub/elf.h: Likewise.
28880 * include/grub/kernel.h: Likewise.
28881 * include/grub/disk.h: Likewise.
28882 * include/grub/dl.h: Likewise.
28883 * include/grub/i386/linux.h: Likewise.
28884 * include/grub/i386/pc/biosdisk.h: Likewise.
28885 * include/grub/efi/api.h: Likewise.
28886 * include/grub/efi/pe32.h: Likewise.
28887 * include/grub/util/misc.h: Likewise.
28888 * normal/execute.c: Likewise.
28889 * normal/arg.c: Likewise.
28890 * normal/completion.c: Likewise.
28891 * normal/lexer.c: Likewise.
28892 * normal/parser.y: Likewise.
28893 * normal/misc.c: Likewise.
28894 * commands/i386/pc/vbeinfo.c: Likewise.
28895 * commands/hexdump.c: Likewise.
28896 * commands/terminal.c: Likewise.
28897 * commands/ls.c: Likewise.
28898 * commands/help.c: Likewise.
28899 * partmap/pc.c: Likewise.
28900 * loader/efi/chainloader.c: Likewise.
28901 * loader/multiboot_loader.c: Likewise.
28902 * loader/i386/pc/multiboot2.c: Likewise.
28903 * term/efi/console.c: Likewise.
28904 * term/i386/pc/serial.c: Likewise.
28905 * util/lvm.c: Likewise.
28906 * util/console.c: Likewise.
28907 * util/i386/efi/grub-mkimage.c: Likewise.
28908 * util/raid.c: Likewise.
28909
28910 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
28911
28912 * commands/videotest.c: Removed include to grub/machine/memory.h.
28913
28914 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
28915 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
28916 (video_mod_SOURCES): Removed.
28917 (video_mod_CFLAGS): Likewise.
28918 (video_mod_LDFLAGS): Likewise.
28919 (gfxterm_mod_SOURCES): Likewise.
28920 (gfxterm_mod_CFLAGS): Likewise.
28921 (gfxterm_mod_LDFLAGS): Likewise.
28922 (videotest_mod_SOURCES): Likewise.
28923 (videotest_mod_CFLAGS): Likewise.
28924 (videotest_mod_LDFLAGS): Likewise.
28925 (bitmap_mod_SOURCES): Likewise.
28926 (bitmap_mod_CFLAGS): Likewise.
28927 (bitmap_mod_LDFLAGS): Likewise.
28928 (tga_mod_SOURCES): Likewise.
28929 (tga_mod_CFLAGS): Likewise.
28930 (tga_mod_LDFLAGS): Likewise.
28931 (jpeg_mod_SOURCES): Likewise.
28932 (jpeg_mod_CFLAGS): Likewise.
28933 (jpeg_mod_LDFLAGS): Likewise.
28934 (png_mod_SOURCES): Likewise.
28935 (png_mod_CFLAGS): Likewise.
28936 (png_mod_LDFLAGS): Likewise.
28937
28938 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
28939 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
28940 (video_mod_SOURCES): Added.
28941 (video_mod_CFLAGS): Likewise.
28942 (video_mod_LDFLAGS): Likewise.
28943 (videotest_mod_SOURCES): Likewise.
28944 (videotest_mod_CFLAGS): Likewise.
28945 (videotest_mod_LDFLAGS): Likewise.
28946 (bitmap_mod_SOURCES): Likewise.
28947 (bitmap_mod_CFLAGS): Likewise.
28948 (bitmap_mod_LDFLAGS): Likewise.
28949 (tga_mod_SOURCES): Likewise.
28950 (tga_mod_CFLAGS): Likewise.
28951 (tga_mod_LDFLAGS): Likewise.
28952 (jpeg_mod_SOURCES): Likewise.
28953 (jpeg_mod_CFLAGS): Likewise.
28954 (jpeg_mod_LDFLAGS): Likewise.
28955 (png_mod_SOURCES): Likewise.
28956 (png_mod_CFLAGS): Likewise.
28957 (png_mod_LDFLAGS): Likewise.
28958 (gfxterm_mod_SOURCES): Likewise.
28959 (gfxterm_mod_CFLAGS): Likewise.
28960 (gfxterm_mod_LDFLAGS): Likewise.
28961
28962 * term/gfxterm.c: Removed include to grub/machine/memory.h,
28963 grub/machine/console.h.
28964
28965 2009-01-04 Jerone Young <jerone@gmail.com>
28966
28967 Make on screen instructions clearer
28968
28969 Based on patch created by Jidanni <jidanni@jidanni.org>
28970
28971 * normal/menu.c: print clearer instructions on the screen
28972
28973 2009-01-02 Colin D Bennett <colin@gibibit.com>
28974
28975 New font engine.
28976
28977 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
28978 build system and fixed gfxterm.c to work with different sized fonts.
28979
28980 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
28981
28982 * configure: Re-generated.
28983
28984 * DISTLIST: Removed font/manager.c.
28985 Added font/font.c.
28986 Added font/font_cmd.c.
28987
28988 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
28989 compilation.
28990
28991 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
28992
28993 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
28994
28995 * kern/term.c: Changed users of grub_utf8_to_ucs4.
28996
28997 * normal/menu.c: Likewise.
28998
28999 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
29000 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
29001
29002 * include/grub/font.h: Replaced with new file.
29003
29004 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
29005 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
29006 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
29007 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
29008 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
29009 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
29010 fg_red, fg_green, fg_blue, fg_alpha.
29011 (grub_video_adapter): Removed blit_glyph.
29012 (grub_video_blit_glyph): Removed.
29013
29014 * font/manager.c: Removed file.
29015
29016 * font/font.c: New file.
29017
29018 * font/font_cmd.c: Likewise.
29019
29020 * video/video.c (grub_video_blit_glyph): Removed.
29021
29022 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
29023 (grub_video_vbe_map_rgba): Likewise.
29024 (grub_video_vbe_unmap_color_int): Likewise.
29025 (grub_video_vbe_blit_glyph): Removed.
29026 (grub_video_vbe_adapter): Removed blit_glyph.
29027
29028 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
29029 (get_pixel): Likewise.
29030 (set_pixel): Likewise.
29031
29032 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
29033
29034 * term/gfxterm.c: Adapted to new font engine.
29035
29036 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
29037
29038 * term/i386/pc/vga.c: Likewise.
29039
29040 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
29041
29042 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
29043
29044 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29045
29046 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29047
29048 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
29049
29050 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
29051
29052 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
29053
29054 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
29055
29056 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
29057
29058 * util/grub.d/00_header.in: Changed to use new loadfont command.
29059
29060 * util/grub-mkconfig_lib.in: Changed font extension.
29061
29062 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
29063
29064 * util/getroot.c (grub_util_get_grub_dev): Add support for
29065 /dev/md/dNNpNN style partitionable mdraid devices.
29066
29067 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
29068
29069 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
29070 at a time limit of the PXE TFTP API correctly.
29071 (grub_pxefs_close): Likewise.
29072
29073 2008-11-29 Robert Millan <rmh@aybabtu.com>
29074
29075 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
29076 grub_ata_device_initialize() calls.
29077
29078 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
29079
29080 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
29081 iteration failed.
29082 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
29083
29084 2008-11-28 Robert Millan <rmh@aybabtu.com>
29085
29086 Fix build on powerpc-ieee1275. Based on patch created by
29087 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
29088 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
29089 `kern/ieee1275/mmap.c'.
29090 * include/grub/powerpc/ieee1275/memory.h: New file.
29091
29092 Provide grub-install on coreboot.
29093 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
29094 (grub_install_SOURCES): New variable.
29095 * util/i386/pc/grub-install.in: Add a few condition checks to make it
29096 usable on coreboot.
29097
29098 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
29099
29100 * util/grub-fstest.c (grub_term_get_current_input): Change return type
29101 to `grub_term_input_t'.
29102 (grub_term_get_current_output): Change return type to
29103 `grub_term_output_t'.
29104
29105 2008-11-22 Robert Millan <rmh@aybabtu.com>
29106
29107 Fix breakage on coreboot due to declaration mismatch.
29108 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
29109 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
29110 grub_vga_text_cls().
29111
29112 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
29113 comments. Avoid copying one more byte than necessary (just in case).
29114
29115 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
29116 to 0x200000 (avoids trouble with some OFW implementations, and matches
29117 with the one in Yaboot).
29118 Reported by Manoel Abranches
29119
29120 2008-11-20 Robert Millan <rmh@aybabtu.com>
29121
29122 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
29123 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
29124
29125 * util/grub-mkconfig_lib.in (grub_warn): New function.
29126 (convert_system_path_to_grub_path): Use grub_warn() when issuing
29127 warnings, to obtain consistent formatting.
29128 * util/grub.d/00_header.in: Likewise.
29129 * util/update-grub_lib.in: Likewise.
29130
29131 * loader/i386/linux.c (allocate_pages): Fix a warning.
29132 Move comment text to `#error' stanza.
29133
29134 Harmonize ieee1275's grub_available_iterate() with the generic
29135 grub_machine_mmap_iterate() interface (fixes a recently-introduced
29136 build problem on i386-ieee1275):
29137 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
29138 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
29139 parameter `type'. Update all users of this function.
29140 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29141 `kern/ieee1275/mmap.c'.
29142 * kern/ieee1275/init.c
29143 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
29144 with ...
29145 (grub_machine_mmap_iterate): ... this.
29146 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
29147 return type to `grub_err_t'. Update all implementations of this
29148 function prototype.
29149 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
29150 Likewise.
29151
29152 Add `lsmmap' command (lists firmware-provided memory map):
29153 * commands/lsmmap.c: New file.
29154 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
29155 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
29156 variables.
29157 * conf/powerpc-ieee1275.rmk: Likewise.
29158 * conf/i386-coreboot.rmk: Likewise.
29159 * conf/i386-ieee1275.rmk: Likewise.
29160
29161 2008-11-19 Robert Millan <rmh@aybabtu.com>
29162
29163 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
29164 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
29165 constraints to initrd allocation (based on code from
29166 loader/i386/pc/linux.c). Without them, initrd was allocated too high
29167 for Linux to find it.
29168
29169 2008-11-14 Robert Millan <rmh@aybabtu.com>
29170
29171 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
29172 order to cope with duplicate slashes.
29173
29174 2008-11-14 Robert Millan <rmh@aybabtu.com>
29175
29176 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
29177 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
29178 don't want to mess with lower memory, because it is used in the Linux
29179 loader.
29180
29181 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
29182 an appropriate place in lower memory, between 0x10000 and 0x90000,
29183 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
29184 is in our heap (probably as a result of it being corrupted during
29185 decompression). Add #error instance with comment to explain why this
29186 loader isn't currently usable on PC/BIOS.
29187
29188 2008-11-14 Robert Millan <rmh@aybabtu.com>
29189
29190 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
29191 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
29192
29193 2008-11-12 Robert Millan <rmh@aybabtu.com>
29194
29195 Make loader/i386/linux.c buildable on i386-pc (although disabled).
29196
29197 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
29198 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
29199 from here ...
29200 * include/grub/i386/pc/memory.h: ... to here.
29201
29202 2008-11-12 Robert Millan <rmh@aybabtu.com>
29203
29204 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
29205 split).
29206
29207 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
29208 (grub_console_cur_color, grub_console_real_putchar)
29209 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29210 (grub_console_setcolorstate, grub_console_setcolor)
29211 (grub_console_getcolor): Move from here ...
29212 * include/grub/i386/vga_common.h: ... to here (new file).
29213
29214 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
29215 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
29216 `<grub/i386/io.h>'.
29217 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
29218 `<grub/i386/vga_common.h>'.
29219
29220 2008-11-12 Robert Millan <rmh@aybabtu.com>
29221
29222 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
29223 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
29224 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
29225 variables.
29226 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29227 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
29228
29229 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
29230 grub_console_init() with call to grub_vga_text_init().
29231 (grub_machine_fini): Replace call to
29232 grub_console_fini() with call to grub_vga_text_fini() and
29233 grub_at_keyboard_fini().
29234
29235 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
29236 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29237 (grub_console_setcolorstate, grub_console_setcolor)
29238 (grub_console_getcolor): New function prototypes.
29239
29240 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
29241 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
29242 (grub_vga_text_setcursor): Static-ize.
29243 (grub_vga_text_term): New structure.
29244 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
29245
29246 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
29247 (grub_console_cur_color, grub_console_standard_color)
29248 (grub_console_normal_color, grub_console_highlight_color)
29249 (map_char, grub_console_putchar, grub_console_getcharwidth)
29250 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
29251 (grub_console_getcolor): Move from here ...
29252 * term/i386/vga_common.c: ... to here (same function names).
29253
29254 2008-11-12 Robert Millan <rmh@aybabtu.com>
29255
29256 Use newly-added Multiboot support in coreboot.
29257
29258 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29259 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
29260
29261 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
29262 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
29263 (codestart): Store the MBI in `startup_multiboot_info' when we're
29264 being loaded using Multiboot.
29265
29266 * kern/i386/coreboot/init.c (grub_machine_init): Move
29267 grub_at_keyboard_init() call to beginning of function (useful for
29268 debugging). Call grub_machine_mmap_init() before attempting to use
29269 grub_machine_mmap_iterate().
29270 (grub_lower_mem, grub_upper_mem): Move from here ...
29271 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
29272 here (new file).
29273
29274 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
29275 function prototype.
29276
29277 2008-11-12 Robert Millan <rmh@aybabtu.com>
29278
29279 Fix a regression introduced by the at_keyboard.mod split. Because
29280 some terminals are default on some platforms and non-default on
29281 others, the first terminal being registered determines which is
29282 going to be default.
29283
29284 * kern/term.c (grub_term_register_input): If this is the first
29285 terminal being registered, set it as the current one.
29286 (grub_term_register_output): Likewise.
29287
29288 * term/efi/console.c (grub_console_init): Do not call
29289 grub_term_set_current_output() or grub_term_set_current_input().
29290 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
29291 * term/i386/pc/console.c (grub_console_init): Likewise.
29292 (grub_console_fini): Do not call grub_term_set_current_input()
29293 (but leave grub_term_set_current_output() to restore text mode).
29294
29295 2008-11-10 Robert Millan <rmh@aybabtu.com>
29296
29297 * util/grub.d/00_header.in: Add backward compatibility check for
29298 versions of terminal.mod that don't understand `terminal_input' or
29299 `terminal_output'.
29300
29301 2008-11-09 Robert Millan <rmh@aybabtu.com>
29302
29303 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
29304 `terminal_input' / `terminal_output', not `terminal'.
29305
29306 2008-11-08 Robert Millan <rmh@aybabtu.com>
29307
29308 * Makefile.in (include_DATA): Fix srcdir=. assumption.
29309 (DISTCLEANFILES): Add `build_env.mk'.
29310
29311 2008-11-08 Robert Millan <rmh@aybabtu.com>
29312
29313 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
29314 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29315 members. Update all users.
29316 * util/console.c (grub_ncurses_term): Split in ...
29317 (grub_ncurses_term_input): ... this, and ...
29318 (grub_ncurses_term_output): ... this. Update all users.
29319 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
29320
29321 2008-11-08 Robert Millan <rmh@aybabtu.com>
29322
29323 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
29324 (PKGDATA): Add $(pkgdata_SRCDIR).
29325 (pkglib_BUILDDIR): New variable.
29326 (pkgdata_SRCDIR): New variable.
29327 (build_env.mk): New target.
29328 (include_DATA): New variable.
29329 (install-local): Install $(include_DATA) files in $(includedir).
29330
29331 2008-11-07 Pavel Roskin <proski@gnu.org>
29332
29333 * gendistlist.sh: Use C locale for sorting to ensure consistent
29334 output on all systems.
29335
29336 * util/grub.d/00_header.in: Remove incorrect space before
29337 "serial".
29338
29339 2008-11-07 Robert Millan <rmh@aybabtu.com>
29340
29341 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
29342 per specification.
29343 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
29344 * loader/multiboot_loader.c (find_multi_boot2_header): New function
29345 (based on find_multi_boot1_header).
29346 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
29347 using find_multi_boot2_header(), and abort if neither Multiboot or
29348 Multiboot headers were found.
29349
29350 2008-11-07 Robert Millan <rmh@aybabtu.com>
29351
29352 Modularize at_keyboard.mod:
29353
29354 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
29355 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
29356 (at_keyboard_mod_LDFLAGS): New variables.
29357
29358 Actual terminal split:
29359
29360 * include/grub/term.h (struct grub_term): Split in ...
29361 (struct grub_term_input): ... this, and ...
29362 (struct grub_term_output): ... this. Update all users.
29363 (grub_term_set_current): Split in ...
29364 (grub_term_set_current_input): ... this, and ...
29365 (grub_term_set_current_output): ... this.
29366 (grub_term_get_current): Split in ...
29367 (grub_term_get_current_input): ... this, and ...
29368 (grub_term_get_current_output): ... this.
29369 (grub_term_register): Split in ...
29370 (grub_term_register_input): ... this, and ...
29371 (grub_term_register_output): ... this.
29372 (grub_term_unregister): Split in ...
29373 (grub_term_unregister_input): ... this, and ...
29374 (grub_term_unregister_output): ... this.
29375 (grub_term_iterate): Split in ...
29376 (grub_term_iterate_input): ... this, and ...
29377 (grub_term_iterate_output): ... this.
29378
29379 * kern/term.c (grub_term_list): Split in ...
29380 (grub_term_list_input): ... this, and ...
29381 (grub_term_list_output): ... this. Update all users.
29382 (grub_cur_term): Split in ...
29383 (grub_cur_term_input): ... this, and ...
29384 (grub_cur_term_output): ... this. Update all users.
29385 (grub_term_set_current): Split in ...
29386 (grub_term_set_current_input): ... this, and ...
29387 (grub_term_set_current_output): ... this.
29388 (grub_term_get_current): Split in ...
29389 (grub_term_get_current_input): ... this, and ...
29390 (grub_term_get_current_output): ... this.
29391 (grub_term_register): Split in ...
29392 (grub_term_register_input): ... this, and ...
29393 (grub_term_register_output): ... this.
29394 (grub_term_unregister): Split in ...
29395 (grub_term_unregister_input): ... this, and ...
29396 (grub_term_unregister_output): ... this.
29397 (grub_term_iterate): Split in ...
29398 (grub_term_iterate_input): ... this, and ...
29399 (grub_term_iterate_output): ... this.
29400
29401 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
29402 a check for input and one for output (and only attempt to get keys
29403 from user when input works).
29404
29405 * util/grub-probe.c (grub_term_get_current): Split in ...
29406 (grub_term_get_current_input): ... this, and ...
29407 (grub_term_get_current_output): ... this.
29408 * util/grub-fstest.c: Likewise.
29409 * util/i386/pc/grub-setup.c: Likewise.
29410 * util/grub-editenv.c: Likewise.
29411
29412 Portability adjustments:
29413
29414 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
29415 `term/i386/pc/at_keyboard.c'.
29416 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
29417 grub_keyboard_controller_init() (now handled by terminal .init).
29418 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
29419 grub_at_keyboard_init().
29420 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
29421 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
29422 at_keyboard.mod via input terminal interface).
29423 * include/grub/i386/coreboot/console.h: Convert into a stub for
29424 `<grub/i386/pc/console.h>'.
29425
29426 Migrate full terminals to new API:
29427
29428 * term/efi/console.c (grub_console_term): Split into ...
29429 (grub_console_term_input): ... this, and ...
29430 (grub_console_term_output): ... this. Update all users.
29431 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
29432 (grub_ofconsole_init): Split into ...
29433 (grub_ofconsole_init_input): ... this, and ...
29434 (grub_ofconsole_init_output): ... this.
29435 (grub_ofconsole_term): Split into ...
29436 (grub_ofconsole_term_input): ... this, and ...
29437 (grub_ofconsole_term_output): ... this. Update all users.
29438 * term/i386/pc/serial.c (grub_serial_term): Split into ...
29439 (grub_serial_term_input): ... this, and ...
29440 (grub_serial_term_output): ... this. Update all users.
29441 * term/i386/pc/console.c (grub_console_term): Split into ...
29442 (grub_console_term_input): ... this, and ...
29443 (grub_console_term_output): ... this. Update all users.
29444 (grub_console_term_input): Only enable it on PC/BIOS platform.
29445 (grub_console_init): Remove grub_keyboard_controller_init() call.
29446
29447 Migrate input terminals to new API:
29448
29449 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
29450 `i386' and `i386/pc' to enable build on x86_64 (this driver is
29451 i386-specific anyway).
29452 (grub_console_checkkey): Rename to ...
29453 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
29454 users.
29455 (grub_keyboard_controller_orig): New variable.
29456 (grub_console_getkey): Rename to ...
29457 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
29458 users.
29459 (grub_keyboard_controller_init): Static-ize. Save original
29460 controller value so that it can be restored ...
29461 (grub_keyboard_controller_fini): ... here (new function).
29462 (grub_at_keyboard_term): New structure.
29463 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
29464 functions.
29465
29466 Migrate output terminals to new API:
29467
29468 * term/i386/pc/vga.c (grub_vga_term): Change type to
29469 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29470 members. Update all users.
29471 * term/gfxterm.c (grub_video_term): Change type to
29472 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29473 members. Update all users.
29474 * include/grub/i386/pc/console.h (grub_console_checkkey)
29475 (grub_console_getkey): Do not export (no longer needed by gfxterm,
29476 etc).
29477
29478 Migrate `terminal' command and userland tools to new API:
29479
29480 * commands/terminal.c (grub_cmd_terminal): Split into ...
29481 (grub_cmd_terminal_input): ... this, and ...
29482 (grub_cmd_terminal_output): ... this.
29483 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
29484 `terminal_input' and `terminal_output'.
29485 * util/grub.d/00_header.in: Adjust `terminal' calls to new
29486 `terminal_input' / `terminal_output' API.
29487 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
29488 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
29489 provided ${GRUB_TERMINAL}, convert it).
29490
29491 2008-11-04 Robert Millan <rmh@aybabtu.com>
29492
29493 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
29494 for FreeBSD.
29495 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
29496
29497 2008-11-03 Bean <bean123ch@gmail.com>
29498
29499 * kern/elf.c (grub_elf32_load): Revert to previous code.
29500 (grub_elf64_load): Likewise.
29501
29502 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
29503
29504 2008-11-01 Robert Millan <rmh@aybabtu.com>
29505
29506 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
29507 (TARGET_CPPFLAGS): Likewise.
29508 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
29509
29510 2008-11-01 Carles Pina i Estany <carles@pina.cat>
29511
29512 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
29513
29514 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29515
29516 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
29517 addition of objects until the code is not going to be able to fail.
29518
29519 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29520
29521 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
29522 (add a missing NULL check, and correct them by moving the pointer
29523 operations after the actual check).
29524
29525 2008-10-29 Robert Millan <rmh@aybabtu.com>
29526
29527 * util/i386/pc/grub-install.in: Handle empty string as output from
29528 make_system_path_relative_to_its_root().
29529
29530 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
29531
29532 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
29533 circular metadata worst case scenario. If the metadata is circular
29534 then copy the wrap in place.
29535 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
29536 project lib/format_text/layout.h
29537 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
29538
29539 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29540
29541 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
29542
29543 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29544
29545 * util/update-grub_lib.in: Mention filename in warning message.
29546
29547 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29548
29549 * NEWS: Update for rename of update-grub to grub-mkconfig.
29550
29551 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29552
29553 * util/update-grub_lib.in: Copy to ...
29554 * util/grub-mkconfig_lib.in: ... this. Update all users.
29555 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
29556 * util/update-grub.in: Rename to ...
29557 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
29558 option. Add `--output' option to allow users to specify the generated
29559 configuration file. Default to stdout.
29560 (update_grub_dir): Rename to ...
29561 (grub_mkconfig_dir): ... this.
29562 (grub_cfg): Default to an empty string.
29563 * conf/common.rmk (update-grub): Rename to ...
29564 (grub-mkconfig): ... this.
29565 (update-grub_lib): Copy to ...
29566 (grub-mkconfig_lib): ... this.
29567 (update-grub_SCRIPTS): Copy to ...
29568 (grub-mkconfig_SCRIPTS): ... this. Update all users.
29569 (update-grub_DATA): Rename to ...
29570 (grub-mkconfig_DATA): ... this.
29571
29572 2008-09-28 Robert Millan <rmh@aybabtu.com>
29573
29574 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
29575 to `modified'. Add the real `created' field.
29576 (grub_iso9660_uuid): Use `modified' rather than `created' for
29577 constructing the UUID.
29578
29579 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
29580
29581 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
29582 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
29583
29584 2008-09-28 Bean <bean123ch@gmail.com>
29585
29586 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
29587 Thanks to Christian Franke for finding this bug.
29588
29589 2008-09-25 Robert Millan <rmh@aybabtu.com>
29590
29591 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
29592 instances of grub_util_get_disk_name() (see previous commit).
29593
29594 2008-09-25 Robert Millan <rmh@aybabtu.com>
29595
29596 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
29597 `util/i386/get_disk_name.c'.
29598 * conf/i386-efi.rmk: Likewise.
29599 * conf/x86_64-efi.rmk: Likewise.
29600 * conf/i386-coreboot.rmk: Likewise.
29601 * conf/i386-ieee1275.rmk: Likewise.
29602 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
29603 `util/ieee1275/get_disk_name.c'.
29604 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
29605 * util/ieee1275/get_disk_name.c: Remove file.
29606 * util/i386/get_disk_name.c: Remove file.
29607 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
29608 "hd%d" for device.map entries, rather than using
29609 grub_util_get_disk_name().
29610
29611 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29612
29613 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
29614 warning.
29615 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
29616
29617 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29618
29619 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
29620 Changed to 0x5100.
29621 (GRUB_TERM_PPAGE): Changed to 0x4900.
29622
29623 2008-09-24 Robert Millan <rmh@aybabtu.com>
29624
29625 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
29626 macros (they were i386-pc specific).
29627 * include/grub/sparc64/ieee1275/console.h: Likewise.
29628 * include/grub/efi/console.h: Likewise.
29629
29630 2008-09-22 Bean <bean123ch@gmail.com>
29631
29632 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
29633 resident and in attribute list.
29634
29635 * include/grub/ntfs.h (BMP_LEN): Removed.
29636
29637 2008-09-22 Bean <bean123ch@gmail.com>
29638
29639 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
29640 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
29641
29642 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
29643 error occurs, as grub_disk_open will call grub_disk_close, which will
29644 call p->close (scsi).
29645
29646 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29647
29648 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
29649 (AC_PREREQ): Bumped to 2.59.
29650 (AC_TRY_COMPILE): Replace obsolete macro with ...
29651 (AC_COMPILE_IFELSE): ... this.
29652 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
29653 (AC_LINK_IFELSE): ... this.
29654
29655 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29656
29657 * autogen.sh: Add a call to `gendistlist.sh'.
29658
29659 2008-09-19 Christian Franke <franke@computer.org>
29660
29661 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
29662 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
29663 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
29664 Export __enable_execute_stack() to modules.
29665 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
29666 New function.
29667
29668 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29669
29670 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
29671 Sort the list.
29672
29673 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29674
29675 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
29676 #include <grub/util/hostdisk.h>.
29677
29678 2008-09-08 Robert Millan <rmh@aybabtu.com>
29679
29680 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
29681 segments when their filesz is zero (grub_file_read() interprets
29682 zero-size as "read until EOF", which results in memory corruption).
29683 Use `lowest_segment' rather than 0 for calculating the current
29684 segment load address.
29685
29686 2008-09-08 Robert Millan <rmh@aybabtu.com>
29687
29688 * util/hostdisk.c (open_device): Replace a grub_util_info() call
29689 with grub_dprintf("hostdisk", ...), as it was so verbose that it
29690 clobbered useful information.
29691
29692 2008-09-08 Robert Millan <rmh@aybabtu.com>
29693
29694 * include/grub/util/biosdisk.h: Move to ...
29695 * include/grub/util/hostdisk.h: ... here. Update all users.
29696 * util/biosdisk.c: Move to ...
29697 * util/hostdisk.c: ... here. Update all users.
29698
29699 2008-09-07 Robert Millan <rmh@aybabtu.com>
29700
29701 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
29702 variables.
29703 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
29704 and length can be stored directly in the `mbi->mmap_addr' and
29705 `mbi->mmap_length' struct fields.
29706
29707 2008-09-07 Robert Millan <rmh@aybabtu.com>
29708
29709 * conf/i386.rmk: New file. Provides declaration for building
29710 `cpuid.mod'.
29711 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
29712 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
29713 variables.
29714 Include `conf/i386.mk'.
29715 * conf/i386-efi.rmk: Likewise.
29716 * conf/x86_64-efi.rmk: Likewise.
29717 * conf/i386-coreboot.rmk: Likewise.
29718 * conf/i386-ieee1275.rmk: Likewise.
29719
29720 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
29721
29722 Based on patch created by Colin D Bennett <colin@gibibit.com>.
29723 Adds optimization support for BGR based modes.
29724
29725 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
29726 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29727 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29728 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29729 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29730 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29731 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29732 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29733 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29734 (grub_video_i386_vbeblit_index_index): Likewise.
29735 (grub_video_i386_vbeblit_replace_directN): Added.
29736 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29737 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29738 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29739 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29740 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29741 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29742 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29743 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29744 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29745 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29746 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29747 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29748 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29749
29750 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
29751 (grub_video_i386_vbefill_R8G8B8): Likewise.
29752 (grub_video_i386_vbefill_index): Likewise.
29753 (grub_video_i386_vbefill_direct32): Added.
29754 (grub_video_i386_vbefill_direct24): Likewise.
29755 (grub_video_i386_vbefill_direct16): Likewise.
29756 (grub_video_i386_vbefill_direct8): Likewise.
29757
29758 * include/grub/video.h (grub_video_blit_format): Removed
29759 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
29760 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
29761 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
29762 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
29763 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
29764
29765 * video/video.c (grub_video_get_blit_format): Updated to use new
29766 blit formats. Added handling for 16 bit color modes.
29767
29768 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
29769 fillers.
29770 (common_blitter): Updated to use new blitters.
29771
29772 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
29773 Removed.
29774 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29775 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29776 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29777 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29778 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29779 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29780 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29781 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29782 (grub_video_i386_vbeblit_index_index): Likewise.
29783 (grub_video_i386_vbeblit_replace_directN): Added.
29784 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29785 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29786 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29787 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29788 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29789 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29790 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29791 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29792 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29793 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29794 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29795 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29796 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29797
29798 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
29799 (grub_video_i386_vbefill_R8G8B8): Likewise.
29800 (grub_video_i386_vbefill_index): Likewise.
29801 (grub_video_i386_vbefill_direct32): Added.
29802 (grub_video_i386_vbefill_direct24): Likewise.
29803 (grub_video_i386_vbefill_direct16): Likewise.
29804 (grub_video_i386_vbefill_direct8): Likewise.
29805
29806 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
29807 types.
29808
29809 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
29810 types.
29811
29812 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
29813 blitter types.
29814
29815 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
29816 types.
29817
29818 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
29819
29820 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
29821 RAID level 1.
29822
29823 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
29824
29825 * fs/iso9660.c (grub_iso9660_date): New structure.
29826 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
29827 (grub_iso9660_uuid): New function.
29828
29829 2008-09-05 Bean <bean123ch@gmail.com>
29830
29831 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
29832
29833 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
29834 insensitive bit for names in Win32 and Win32 & DOS namespace.
29835
29836 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
29837
29838 * include/grub/types.h (LONG_MAX): Likewise.
29839
29840 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
29841
29842 * util/getroot.c: Include <config.h>.
29843 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
29844 add support for /dev/md/N devices and handle LVM double dash escaping.
29845
29846 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
29847
29848 * config.guess: Update to latest version from config git.
29849 * config.sub: Likewise.
29850
29851 2008-09-03 Robert Millan <rmh@aybabtu.com>
29852
29853 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
29854 `disk->total_sectors'.
29855
29856 2008-09-01 Colin D Bennett <colin@gibibit.com>
29857
29858 * include/grub/normal.h: Fixed incorrect comment for
29859 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
29860
29861 2008-09-01 Colin D Bennett <colin@gibibit.com>
29862
29863 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
29864 values with defines.
29865
29866 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
29867 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
29868 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
29869 (GRUB_VBE_MODEATTR_COLOR): Likewise.
29870 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
29871 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
29872 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
29873 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
29874 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
29875 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
29876 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
29877 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
29878 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
29879 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
29880 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
29881 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
29882 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
29883 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
29884 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
29885
29886 2008-08-31 Robert Millan <rmh@aybabtu.com>
29887
29888 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
29889 declaration.
29890 (grub_multiboot): Fix a few warnings.
29891
29892 2008-08-31 Robert Millan <rmh@aybabtu.com>
29893
29894 * loader/i386/pc/multiboot.c: Update comment not to say that
29895 boot_device support is unimplemented.
29896
29897 2008-08-31 Robert Millan <rmh@aybabtu.com>
29898
29899 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
29900 or memory map support are unimplemented.
29901
29902 2008-08-31 Colin D Bennett <colin@gibibit.com>
29903
29904 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
29905
29906 2008-08-31 Colin D Bennett <colin@gibibit.com>
29907
29908 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
29909 total video memory in 'vbeinfo' output; show color format details for
29910 each video mode.
29911
29912 2008-08-30 Pavel Roskin <proski@gnu.org>
29913
29914 * util/genmoddep.c: Remove for real this time.
29915 * DISTLIST: Remove util/genmoddep.c.
29916
29917 2008-08-30 Robert Millan <rmh@aybabtu.com>
29918
29919 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
29920 as required by Multiboot spec (it was already 4-byte aligned, but
29921 only by chance).
29922
29923 2008-08-29 Pavel Roskin <proski@gnu.org>
29924
29925 * kern/powerpc/ieee1275/crt0.S: Rename to ...
29926 * kern/powerpc/ieee1275/startup.S: ... this.
29927 * conf/powerpc-ieee1275.rmk: Adjust for the above.
29928 * DISTLIST: Likewise.
29929
29930 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
29931 grub/cpu/kernel.h. Add start label for consistency with other
29932 platforms. Add grub_prefix immediately after start. Add jump
29933 to the code after grub_prefix.
29934 * include/grub/powerpc/kernel.h: Provide valid values for
29935 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
29936
29937 2008-08-29 Bean <bean123ch@gmail.com>
29938
29939 * configure.ac: Change host_os to cygwin for mingw.
29940 (asprintf): New check for function.
29941
29942 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
29943 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
29944
29945 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
29946 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
29947 sync, sleep and grub_util_get_disk_size for mingw.
29948
29949 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
29950 to get size in mingw.
29951 (open_device): Use flag O_BINARY if it's defined.
29952 (find_root_device): Add dummy code for mingw.
29953
29954 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
29955 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
29956 (get_scsi_disk_name): Return 0 for mingw.
29957
29958 * util/hostfs.c: #include <grub/util/misc.h>.
29959 (grub_hostfs_open): Use "rb" flag to open file, use
29960 grub_util_get_disk_size to get disk size for mingw.
29961
29962 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
29963 (asprintf): New function if HAVE_ASPRINTF is not set.
29964 (sync): New function for mingw.
29965 (sleep): Likewise.
29966 (grub_util_get_disk_size): Likewise.
29967
29968 2008-08-28 Pavel Roskin <proski@gnu.org>
29969
29970 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
29971 kern/time.c.
29972
29973 2008-08-28 Robert Millan <rmh@aybabtu.com>
29974
29975 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
29976
29977 2008-08-28 Robert Millan <rmh@aybabtu.com>
29978
29979 Change find_grub_drive() syntax so it doesn't prevent it from
29980 detecting NULL names as errors.
29981
29982 * util/biosdisk.c (find_grub_drive): Move free slot search code
29983 from here ...
29984 (find_free_slot): ... to here.
29985 (read_device_map): Use find_free_slot() to search for free slots.
29986
29987 2008-08-27 Marco Gerards <marco@gnu.org>
29988
29989 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
29990 (scsi_mod_SOURCES): New variable.
29991 (scsi_mod_CFLAGS): Likewise
29992 (scsi_mod_LDFLAGS): Likewise.
29993
29994 * disk/scsi.c: New file.
29995
29996 * include/grub/scsi.h: Likewise.
29997
29998 * include/grub/scsicmd.h: Likewise.
29999
30000 * disk/ata.c: Include <grub/scsi.h>.
30001 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
30002 instead.
30003 (grub_ata_iterate): Skip ATAPI devices.
30004 (grub_ata_open): Only handle ATAPI devices.
30005 (struct grub_atapi_read): Removed.
30006 (grub_atapi_readsector): Likewise.
30007 (grub_ata_read): No longer handle ATAPI devices.
30008 (grub_ata_write): Likewise.
30009 (grub_atapi_iterate): New function.
30010 (grub_atapi_read): Likewise.
30011 (grub_atapi_write): Likewise.
30012 (grub_atapi_open): Likewise.
30013 (grub_atapi_close): Likewise.
30014 (grub_atapi_dev): New variable.
30015 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
30016 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
30017
30018 * include/grub/disk.h (enum grub_disk_dev_id): Add
30019 `GRUB_DISK_DEVICE_SCSI_ID'.
30020
30021 2008-08-26 Robert Millan <rmh@aybabtu.com>
30022
30023 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
30024 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
30025 descriptive.
30026
30027 2008-08-23 Bean <bean123ch@gmail.com>
30028
30029 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
30030 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30031 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
30032 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
30033 dm_nv.mod.
30034 (raid5rec_mod_SOURCES): New macro.
30035 (raid5rec_mod_CFLAGS): Likewise.
30036 (raid5rec_mod_LDFLAGS): Likewise.
30037 (raid6rec_mod_SOURCES): Likewise.
30038 (raid6rec_mod_CFLAGS): Likewise.
30039 (raid6rec_mod_LDFLAGS): Likewise.
30040 (mdraid_mod_SOURCES): Likewise.
30041 (mdraid_mod_CFLAGS): Likewise.
30042 (mdraid_mod_LDFLAGS): Likewise.
30043 (dm_nv_mod_SOURCES): Likewise.
30044 (dm_nv_mod_CFLAGS): Likewise.
30045 (dm_nv_mod_LDFLAGS): Likewise.
30046
30047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
30048 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30049 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30050
30051 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
30052 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30053
30054 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30055
30056 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30057
30058 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30059
30060 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30061
30062 * disk/raid5_recover.c: New file.
30063
30064 * disk/raid6_recover.c: Likewise.
30065
30066 * disk/mdraid_linux.c: Likewise.
30067
30068 * disk/dmraid_nvidia.c: Likewise.
30069
30070 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
30071 ULONG_MAX.
30072
30073 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
30074 calculate the size of raid device.
30075 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
30076 different layout of raid5.
30077 (grub_raid_scan_device): Remove code specific to mdraid.
30078 (grub_raid_list): New variable.
30079 (free_array): New function.
30080 (grub_raid_register): Likewise.
30081 (grub_raid_unregister): Likewise.
30082 (grub_raid_rescan): Likewise.
30083 (GRUB_MOD_INIT): Don't iterate device here.
30084 (GRUB_MOD_FINI): Use free_array to release resource.
30085
30086 * include/grub/raid.h: Remove macro and structure specific to mdraid.
30087 (grub_raid5_recover_func_t): New function variable type.
30088 (grub_raid6_recover_func_t): Likewise.
30089 (grub_raid5_recover_func): New variable.
30090 (grub_raid6_recover_func): Likewise.
30091 (grub_raid_register): New function.
30092 (grub_raid_unregister): Likewise.
30093 (grub_raid_rescan): Likewise.
30094 (grub_raid_block_xor): Likewise.
30095
30096 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
30097 (CMD_CRC): New macro.
30098 (part): Removed.
30099 (read_file): Handle device as well as file.
30100 (cmd_crc): New function.
30101 (fstest): Handle multiple disks.
30102 (options): Remove part, raw and long, add root and diskcount.
30103 (usage): Add crc, remove -p, -r, -l, add -r and -c.
30104 (main): Find the first non option entry and ignore subsequent options,
30105 add handling for the new options, support multiple disks.
30106
30107 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
30108
30109 2008-08-23 Bean <bean123ch@gmail.com>
30110
30111 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
30112
30113 * genfslist.sh: Ignore kernel.mod.
30114
30115 * genpartmaplist.sh: Likewise.
30116
30117 2008-08-23 Robert Millan <rmh@aybabtu.com>
30118
30119 * util/getroot.c (find_root_device): Skip anything that starts with
30120 a dot, not just directories. This avoids things like /dev/.tmp.md0.
30121
30122 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
30123
30124 * util/update-grub.in (GRUB_GFXMODE): Export variable.
30125 * util/grub.d/00_header.in: Allow the administrator to change default
30126 gfxmode via ${GRUB_GFXMODE}.
30127
30128 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
30129
30130 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
30131
30132 2008-08-21 Robert Millan <rmh@aybabtu.com>
30133
30134 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
30135 loader.
30136 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
30137 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
30138
30139 2008-08-20 Carles Pina i Estany <carles@pina.cat>
30140
30141 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
30142 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
30143
30144 2008-08-19 Robert Millan <rmh@aybabtu.com>
30145
30146 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
30147 (struct grub_virtual_screen): Remove `cursor_color'.
30148 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
30149 initialization.
30150 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
30151
30152 2008-08-18 Robert Millan <rmh@aybabtu.com>
30153
30154 Unify (identical) linux_normal.c files.
30155 * loader/i386/efi/linux_normal.c: Move from here ...
30156 * loader/linux_normal.c: ... to here. Update all users.
30157 * loader/i386/pc/linux_normal.c: Delete. Update all users.
30158 * loader/i386/ieee1275/linux_normal.c: Likewise.
30159
30160 2008-08-18 Robert Millan <rmh@aybabtu.com>
30161
30162 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
30163 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
30164 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
30165 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
30166 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
30167 New macros.
30168 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
30169 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
30170 (GRUB_LINUX_CL_END_OFFSET): ... to here.
30171 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
30172 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
30173 (GRUB_EFI_CL_END_OFFSET): Rename to ...
30174 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
30175 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
30176 Initialize `params->video_cursor_x' and `params->video_cursor_y'
30177 portably using grub_getxy().
30178 Replace `-EFI' with `-bzImage' in boot message.
30179
30180 2008-08-17 Robert Millan <rmh@aybabtu.com>
30181
30182 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
30183
30184 2008-08-17 Robert Millan <rmh@aybabtu.com>
30185
30186 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
30187
30188 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
30189 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
30190 (grub_machine_mmap_iterate): New function declaration.
30191 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
30192 structure.
30193 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
30194 macros.
30195
30196 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
30197 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
30198 Move e820 parsing from here ...
30199 * kern/i386/pc/mmap.c: New file.
30200 (grub_machine_mmap_iterate): ... to here.
30201
30202 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
30203 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
30204 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
30205 (grub_available_iterate): Redeclare to return `void', and redeclare
30206 its hook to use grub_uint64_t as addr and size parameters, and rename
30207 to ...
30208 (grub_machine_mmap_iterate): ... this. Update all users.
30209
30210 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
30211 to make it more readable. Rename to ...
30212 (grub_machine_mmap_iterate): ... this.
30213
30214 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
30215 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
30216 (grub_multiboot): Allocate an extra region after the payload, and fill
30217 it with a Multiboot memory map. Adjust a.out loader to calculate size
30218 with the extra space.
30219 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
30220 with the extra space.
30221
30222 2008-08-17 Carles Pina i Estany <carles@pina.cat>
30223
30224 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
30225
30226 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
30227
30228 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
30229 mdate-sh to the list `find' searches for.
30230 * DISTLIST: Regenerated.
30231
30232 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
30233
30234 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
30235 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
30236 genmoddep.awk, gensymlist.sh.in.
30237 (DISTDIRS): Add bus, docs, hook, lib.
30238 * DISTLIST: Regenerated.
30239 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
30240
30241 2008-08-16 Robert Millan <rmh@aybabtu.com>
30242
30243 * disk/raid.c (grub_raid_init): Handle/report errors set by
30244 grub_device_iterate().
30245 * disk/lvm.c (grub_lvm_init): Likewise.
30246
30247 2008-08-15 Bean <bean123ch@gmail.com>
30248
30249 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30250 and datehook.mod.
30251 (datetime_mod_SOURCES): New macro.
30252 (datetime_mod_CFLAGS): Likewise.
30253 (datetime_mod_LDFLAGS): Likewise.
30254 (date_mod_SOURCES): Likewise.
30255 (date_mod_CFLAGS): Likewise.
30256 (date_mod_LDFLAGS): Likewise.
30257 (datehook_mod_SOURCES): Likewise.
30258 (datehook_mod_CFLAGS): Likewise.
30259 (datehook_mod_LDFLAGS): Likewise.
30260
30261 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30262 and datehook.mod.
30263 (datetime_mod_SOURCES): New macro.
30264 (datetime_mod_CFLAGS): Likewise.
30265 (datetime_mod_LDFLAGS): Likewise.
30266 (date_mod_SOURCES): Likewise.
30267 (date_mod_CFLAGS): Likewise.
30268 (date_mod_LDFLAGS): Likewise.
30269 (datehook_mod_SOURCES): Likewise.
30270 (datehook_mod_CFLAGS): Likewise.
30271 (datehook_mod_LDFLAGS): Likewise.
30272
30273 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30274 and datehook.mod.
30275 (datetime_mod_SOURCES): New macro.
30276 (datetime_mod_CFLAGS): Likewise.
30277 (datetime_mod_LDFLAGS): Likewise.
30278 (date_mod_SOURCES): Likewise.
30279 (date_mod_CFLAGS): Likewise.
30280 (date_mod_LDFLAGS): Likewise.
30281 (datehook_mod_SOURCES): Likewise.
30282 (datehook_mod_CFLAGS): Likewise.
30283 (datehook_mod_LDFLAGS): Likewise.
30284
30285 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30286 and datehook.mod.
30287 (datetime_mod_SOURCES): New macro.
30288 (datetime_mod_CFLAGS): Likewise.
30289 (datetime_mod_LDFLAGS): Likewise.
30290 (date_mod_SOURCES): Likewise.
30291 (date_mod_CFLAGS): Likewise.
30292 (date_mod_LDFLAGS): Likewise.
30293 (datehook_mod_SOURCES): Likewise.
30294 (datehook_mod_CFLAGS): Likewise.
30295 (datehook_mod_LDFLAGS): Likewise.
30296
30297 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30298 and datehook.mod.
30299 (datetime_mod_SOURCES): New macro.
30300 (datetime_mod_CFLAGS): Likewise.
30301 (datetime_mod_LDFLAGS): Likewise.
30302 (date_mod_SOURCES): Likewise.
30303 (date_mod_CFLAGS): Likewise.
30304 (date_mod_LDFLAGS): Likewise.
30305 (datehook_mod_SOURCES): Likewise.
30306 (datehook_mod_CFLAGS): Likewise.
30307 (datehook_mod_LDFLAGS): Likewise.
30308
30309 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
30310
30311 * commands/date.c: New file.
30312
30313 * hook/datehook.c: Likewise.
30314
30315 * include/grub/lib/datetime.h: Likewise.
30316
30317 * include/grub/i386/cmos.h: Likewise.
30318
30319 * lib/datetime.c: Likewise.
30320
30321 * lib/i386/datetime.c: Likewise.
30322
30323 * lib/efi/datetime.c: Likewise.
30324
30325 2008-08-14 Robert Millan <rmh@aybabtu.com>
30326
30327 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
30328 (grub_mkelfimage_SOURCES): New variable.
30329 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
30330
30331 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
30332 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
30333 * conf/powerpc-ieee1275.rmk: Likewise.
30334 * conf/i386-ieee1275.rmk: Likewise.
30335
30336 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
30337 * kern/i386/coreboot/init.c: Likewise.
30338
30339 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
30340 with `<grub/cpu/kernel.h>'.
30341 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
30342 to ...
30343 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
30344 * kern/i386/coreboot/startup.S: Likewise.
30345
30346 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
30347 (GRUB_MOD_GAP): Remove.
30348 * include/grub/powerpc/kernel.h: New file.
30349 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
30350 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30351 * include/grub/i386/kernel.h: New file.
30352 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
30353 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
30354 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30355
30356 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
30357 `grub-mkelfimage'.
30358 Use --directory when invoking grub_mkimage.
30359
30360 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
30361 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
30362 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
30363 and GRUB_KERNEL_CPU_PREFIX.
30364
30365 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
30366
30367 * include/grub/err.h (grub_err_printf): New function prototype.
30368 * util/misc.c (grub_err_printf): New function.
30369 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
30370 grub_printf.
30371 * kern/err.c (grub_print_error): Use grub_err_printf.
30372
30373 2008-08-13 Robert Millan <rmh@aybabtu.com>
30374
30375 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
30376
30377 2008-08-13 Robert Millan <rmh@aybabtu.com>
30378
30379 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
30380 boot entry.
30381
30382 2008-08-12 Robert Millan <rmh@aybabtu.com>
30383
30384 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
30385 of the relocation code from here ...
30386 (grub_multiboot): ... to here.
30387 (forward_relocator, backward_relocator): Move from here ...
30388 * kern/i386/loader.S (grub_multiboot_forward_relocator)
30389 (grub_multiboot_backward_relocator): ... to here.
30390 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
30391 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
30392 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
30393 (grub_multiboot_forward_relocator_end)
30394 (grub_multiboot_backward_relocator)
30395 (grub_multiboot_backward_relocator_end): New variables.
30396
30397 2008-08-12 Bean <bean123ch@gmail.com>
30398
30399 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
30400
30401 2008-08-11 Robert Millan <rmh@aybabtu.com>
30402
30403 * kern/i386/linuxbios/startup.S: Move from here ...
30404 * kern/i386/coreboot/startup.S: ... to here.
30405
30406 * kern/i386/linuxbios/init.c: Move from here ...
30407 * kern/i386/coreboot/init.c: ... to here.
30408
30409 * kern/i386/linuxbios/table.c: Move from here ...
30410 * kern/i386/coreboot/mmap.c: ... to here.
30411
30412 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
30413
30414 2008-08-11 Robert Millan <rmh@aybabtu.com>
30415
30416 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
30417 errors. Leave it to the upper layer to handle them.
30418
30419 2008-08-09 Christian Franke <franke@computer.org>
30420
30421 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
30422 * conf/common.rmk: Install `grub-pe2elf' only if requested.
30423 Install `grub.d/10_windows' only on Cygwin.
30424 * configure.ac: Add subst of `target_os'.
30425 Check `target_os' also before setting TARGET_OBJ2ELF.
30426 Add `--enable-grub-pe2elf'.
30427
30428 2008-08-08 Robert Millan <rmh@aybabtu.com>
30429
30430 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30431 (grub_last_time): Change type to grub_uint64_t.
30432 (grub_disk_open): Migrate code from to using grub_get_time_ms().
30433 (grub_disk_close): Likewise.
30434
30435 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30436 (run_menu): Migrate code from to using grub_get_time_ms().
30437
30438 * util/misc.c (grub_get_time_ms): New function.
30439
30440 2008-08-08 Marco Gerards <marco@gnu.org>
30441
30442 * disk/ata.c (grub_ata_regget): Change return type to
30443 `grub_uint8_t'.
30444 (grub_ata_regget2): Likewise.
30445 (grub_ata_wait_status): New function.
30446 (grub_ata_wait_busy): Removed function, updated all users to use
30447 `grub_ata_wait_status'.
30448 (grub_ata_wait_drq): Likewise.
30449 (grub_ata_cmd): New function.
30450 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
30451 error handling.
30452 (grub_ata_pio_write): Add error handling.
30453 (grub_atapi_identify): Likewise.
30454 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
30455 handling.
30456 (grub_ata_identify): Use `grub_ata_cmd' and improve error
30457 handling. Actually use the detected registers. Reorder the
30458 detection logic such that it is easier to read.
30459 (grub_ata_pciinit): Do not assign the same ID to each controller.
30460 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
30461 handling.
30462 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
30463
30464 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
30465
30466 2008-08-08 Marco Gerards <marco@gnu.org>
30467
30468 * NEWS: Update.
30469
30470 2008-08-07 Bean <bean123ch@gmail.com>
30471
30472 * include/grub/x86_64/pci.h: New file.
30473
30474 2008-08-07 Christian Franke <franke@computer.org>
30475
30476 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
30477 (TIMER2_GATE): Likewise.
30478 (grub_pit_wait): Add enable/disable of the timer2 gate
30479 bit of port 0x61. This fixes a possible infinite loop.
30480
30481 2008-08-07 Bean <bean123ch@gmail.com>
30482
30483 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
30484 kern/i386/tsc.c and kern/i386/pit.c.
30485
30486 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
30487 x86_64 platform.
30488
30489 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
30490 <grub/i386/tsc.h>.
30491
30492 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
30493
30494 2008-08-07 Bean <bean123ch@gmail.com>
30495
30496 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
30497
30498 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
30499
30500 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
30501 multiple inclusion. Add #include <grub/types.h>.
30502
30503 2008-08-06 Christian Franke <franke@computer.org>
30504
30505 * conf/common.rmk: Build and install `10_windows'.
30506 * util/grub.d/10_windows.in: New script.
30507
30508 2008-08-06 Pavel Roskin <proski@gnu.org>
30509
30510 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
30511
30512 2008-08-06 Robert Millan <rmh@aybabtu.com>
30513
30514 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
30515 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
30516
30517 2008-08-06 Bean <bean123ch@gmail.com>
30518
30519 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
30520 (grub_pxefs_fs_int): Remove dummy definition.
30521 (grub_pxefs_open): Use data->block_size to store the current block
30522 size setting.
30523 (grub_pxefs_read): Use block size stored in data->block_size. As the
30524 value of grub_pxe_blksize can be changed after the file is opened.
30525
30526 2008-08-06 Bean <bean123ch@gmail.com>
30527
30528 * fs/i386/pc/pxe.c (curr_file): new variable.
30529 (grub_pxefs_open): Simply the handling of pxe file system. Don't
30530 require the dummy internal file system anymore.
30531 (grub_pxefs_read): Removed.
30532 (grub_pxefs_close): Likewise.
30533 (grub_pxefs_fs_int): Likewise.
30534 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
30535 connection when we switch file.
30536 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
30537
30538 2008-08-06 Robert Millan <rmh@aybabtu.com>
30539
30540 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
30541 `halt.mod'.
30542 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
30543 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
30544
30545 * kern/i386/halt.c: New file.
30546 * kern/i386/reboot.c: Likewise.
30547 * include/grub/i386/reboot.h: Likewise.
30548 * include/grub/i386/halt.h: Likewise.
30549
30550 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
30551 Include `<grub/cpu/halt.h>'.
30552 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
30553 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
30554
30555 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
30556 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
30557 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
30558 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
30559 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
30560 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
30561 from here ...
30562 * include/grub/i386/at_keyboard.h: ... to here.
30563
30564 2008-08-05 Robert Millan <rmh@aybabtu.com>
30565
30566 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
30567 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
30568 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
30569 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30570 `kern/generic/millisleep.c'.
30571
30572 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
30573 instead of grub_get_rtc().
30574 (grub_tsc_init): Initialize `tsc_boot_time'.
30575
30576 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
30577 (grub_machine_init): Use grub_tsc_init() rather than
30578 installing an RTC-based handler via grub_install_get_time_ms().
30579
30580 * kern/i386/pit.c: New file.
30581 * include/grub/i386/pit.h: Likewise.
30582
30583 2008-08-05 Bean <bean123ch@gmail.com>
30584
30585 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
30586
30587 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
30588 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
30589 (pxe_mod_SOURCES): New macro.
30590 (pxe_mod_CFLAGS): Likewise.
30591 (pxe_mod_LDFLAGS): Likewise.
30592 (pxecmd_mod_SOURCES): Likewise.
30593 (pxecmd_mod_CFLAGS): Likewise.
30594 (pxecmd_mod_LDFLAGS): Likewise.
30595
30596 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
30597 (grub_pxe_call): Likewise.
30598
30599 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
30600
30601 * commands/i386/pc/pxecmd.c: New file.
30602
30603 * fs/i386/pc/pxe.c: Likewise.
30604
30605 * include/grub/i386/pc/pxe.h: Likewise.
30606
30607 2008-08-05 Bean <bean123ch@gmail.com>
30608
30609 * util/console.c (grub_console_cur_color): New variable.
30610 (grub_console_standard_color): Likewise.
30611 (grub_console_normal_color): Likewise.
30612 (grub_console_highlight_color): Likewise.
30613 (color_map): Likewise.
30614 (use_color): Likewise.
30615 (NUM_COLORS): New macro.
30616 (grub_ncurses_setcolorstate): Handle color properly.
30617 (grub_ncurses_setcolor): Don't change color here, just remember the
30618 settings, color will be set in grub_ncurses_setcolorstate.
30619 (grub_ncurses_getcolor): New function.
30620 (grub_ncurses_init): Initialize color pairs.
30621 (grub_ncurses_term): New member grub_ncurses_getcolor.
30622
30623 2008-08-05 Colin D Bennett <colin@gibibit.com>
30624
30625 High resolution timer support. Implemented for x86 CPUs using TSC.
30626 Extracted generic grub_millisleep() so it's linked in only as needed.
30627 This requires a Pentium compatible CPU; if the RDTSC instruction is
30628 not supported, then it falls back on the generic grub_get_time_ms()
30629 implementation that uses the machine's RTC.
30630
30631 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
30632 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30633 `kern/generic/millisleep.c'.
30634
30635 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
30636 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
30637
30638 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
30639 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
30640
30641 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30642
30643 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30644 `kern/generic/millisleep.c'.
30645
30646 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30647
30648 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
30649
30650 * kern/generic/rtc_get_time_ms.c: New file.
30651
30652 * kern/generic/millisleep.c: New file.
30653
30654 * kern/misc.c: Don't include
30655 <kern/time.h> anymore.
30656 (grub_millisleep_generic): Removed.
30657
30658 * commands/sleep.c (grub_interruptible_millisleep): Uses
30659 grub_get_time_ms() instead of grub_get_rtc().
30660
30661 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
30662 function.
30663 (grub_cpu_is_cpuid_supported): New inline function.
30664 (grub_cpu_is_tsc_supported): New inline function.
30665 (grub_tsc_init): New function prototype.
30666 (grub_tsc_get_time_ms): New function prototype.
30667
30668 * kern/i386/tsc.c (grub_get_time_ms): New file.
30669
30670 * include/grub/time.h: Include <grub/types.h.
30671 (grub_millisleep_generic): Removed.
30672 (grub_get_time_ms): New prototype.
30673 (grub_install_get_time_ms): New prototype.
30674 (grub_rtc_get_time_ms): New prototype.
30675
30676 * kern/time.c (grub_get_time_ms): New function.
30677 (grub_install_get_time_ms): New function.
30678
30679 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
30680 <grub/time.h> anymore.
30681 (grub_millisleep): Removed.
30682 (grub_machine_init): Call grub_tsc_init.
30683
30684 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
30685 get_time_ms() implementation.
30686
30687 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
30688 (ieee1275_get_time_ms): New function.
30689 (grub_machine_init): Install get_time_ms() implementation.
30690
30691 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
30692 (grub_machine_init): Call grub_tsc_init().
30693 (grub_millisleep): Removed.
30694
30695 * kern/ieee1275/init.c (grub_millisleep): Removed.
30696 (grub_machine_init): Install ieee1275_get_time_ms()
30697 implementation.
30698 (ieee1275_get_time_ms): New function.
30699 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
30700 real work.
30701
30702 2008-08-05 Marco Gerards <marco@gnu.org>
30703
30704 * disk/ata.c: Include <grub/pci.h>.
30705 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
30706 (grub_ata_initialize): Rewritten.
30707 (grub_ata_device_initialize): New function.
30708
30709 2008-08-04 Pavel Roskin <proski@gnu.org>
30710
30711 * kern/main.c: Include grub/mm.h.
30712
30713 2008-08-04 Robert Millan <rmh@aybabtu.com>
30714
30715 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
30716 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
30717 corruption problem).
30718
30719 2008-08-04 Robert Millan <rmh@aybabtu.com>
30720
30721 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
30722 warnings introduced in my last commit.
30723
30724 2008-08-03 Robert Millan <rmh@aybabtu.com>
30725
30726 Make PCI available on all i386 architectures.
30727
30728 * include/grub/i386/pc/pci.h: Move from here ...
30729 * include/grub/i386/pci.h: ... to here.
30730
30731 * include/grub/i386/pc/pci.h: Remove.
30732 * include/grub/i386/efi/pci.h: Remove.
30733 * include/grub/x86_64/efi/pci.h: Remove.
30734
30735 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
30736 `<grub/cpu/pci.h>'.
30737
30738 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
30739 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
30740 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
30741
30742 * conf/i386-ieee1275.rmk: Likewise.
30743
30744 2008-08-03 Robert Millan <rmh@aybabtu.com>
30745
30746 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
30747 (grub_console_setcursor): Make it possible to set cursor off.
30748
30749 2008-08-03 Robert Millan <rmh@aybabtu.com>
30750
30751 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
30752 of modules instead of assuming which platform provides what.
30753 * util/update-grub.in: Likewise.
30754
30755 2008-08-03 Robert Millan <rmh@aybabtu.com>
30756
30757 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
30758 instead of `grub_install_dos_part' to determine whether a drive needs
30759 to be prepended to prefix (`grub_install_dos_part' is not reliable,
30760 because it can be overridden when loading GRUB via Multiboot).
30761
30762 2008-08-02 Robert Millan <rmh@aybabtu.com>
30763
30764 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
30765
30766 2008-08-02 Robert Millan <rmh@aybabtu.com>
30767
30768 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
30769 of informational grub_dprintf() calls.
30770
30771 2008-08-02 Robert Millan <rmh@aybabtu.com>
30772
30773 * disk/memdisk.c (memdisk_size): Don't initialize.
30774 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
30775
30776 * include/grub/i386/pc/kernel.h
30777 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
30778 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
30779 (grub_memdisk_image_size, grub_arch_memdisk_addr)
30780 (grub_arch_memdisk_size): Remove.
30781
30782 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
30783 field (was only used to transfer a constant). Add `type' field to
30784 support multiple module types.
30785 (grub_module_iterate): New function.
30786
30787 * kern/device.c (grub_device_open): Do not hide error messages
30788 when grub_disk_open() fails. Use grub_print_error() instead.
30789
30790 * kern/i386/pc/init.c (grub_arch_modules_addr)
30791 (grub_arch_memdisk_size): Remove functions.
30792 (grub_arch_modules_addr): Return the module address in high memory
30793 (now that it isn't copied anymore).
30794
30795 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
30796 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
30797 decompression routine (grub_total_module_size already includes that
30798 now). Don't copy modules back to low memory.
30799
30800 * kern/main.c: Include `<grub/mm.h>'.
30801 (grub_load_modules): Split out (and use) ...
30802 (grub_module_iterate): ... this function, which iterates through
30803 module objects and runs a hook.
30804 Comment out grub_mm_init_region() call, as it would cause non-ELF
30805 modules to be overwritten.
30806
30807 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
30808 the memdisk image in its own region, make it part of the module list.
30809 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
30810 (main): Parse --memdisk|-m option, and pass user-provided path as
30811 parameter to generate_image().
30812 (add_segments): Pass `memdisk_path' down to load_modules().
30813 (load_modules): Embed memdisk image in module section when requested.
30814 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
30815 `header.type' instead of `header.offset'.
30816
30817 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
30818 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
30819 (memdisk_mod_LDFLAGS): New variables.
30820 * conf/i386-coreboot.rmk: Likewise.
30821 * conf/i386-ieee1275.rmk: Likewise.
30822
30823 2008-08-02 Robert Millan <rmh@aybabtu.com>
30824
30825 * loader/i386/pc/multiboot.c (playground, forward_relocator)
30826 (backward_relocator): New variables. Used to allocate and relocate
30827 the payload, respectively.
30828 (grub_multiboot_load_elf32): Load into heap instead of requested
30829 address, install the appropriate relocator code in each bound of
30830 the payload, and set the entry point such that
30831 grub_multiboot_real_boot() will jump to one of them.
30832
30833 * kern/i386/loader.S (grub_multiboot_payload_size)
30834 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
30835 (grub_multiboot_payload_entry_offset): New variables.
30836 (grub_multiboot_real_boot): Set cpu context to what the relocator
30837 expects, and jump to the relocator instead of the payload.
30838
30839 * include/grub/i386/loader.h (grub_multiboot_payload_size)
30840 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
30841 (grub_multiboot_payload_entry_offset): Export.
30842
30843 2008-08-01 Bean <bean123ch@gmail.com>
30844
30845 * normal/menu_entry.c (editor_getline): Don't return the original
30846 string as result, as it will be released by lexer once it has done
30847 using it.
30848
30849 2008-08-01 Robert Millan <rmh@aybabtu.com>
30850
30851 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
30852 within menuentries, not before them.
30853 util/grub.d/10_hurd.in: Likewise.
30854
30855 2008-08-01 Bean <bean123ch@gmail.com>
30856
30857 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
30858 (bufio_mod_SOURCES): New macro.
30859 (bufio_mod_CFLAGS): Likewise.
30860 (bufio_mod_LDFLAGS): Likewise.
30861
30862 * include/grub/bufio.h: New file.
30863
30864 * io/bufio.c: Likewise.
30865
30866 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
30867 (grub_video_reader_png): Use grub_buffile_open to open file.
30868
30869 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
30870 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
30871
30872 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
30873 (grub_video_reader_tga): Use grub_buffile_open to open file.
30874
30875 * font/manager.c: Include <grub/bufio.h>.
30876 (add_font): Use grub_buffile_open to open file.
30877
30878 2008-07-31 Robert Millan <rmh@aybabtu.com>
30879
30880 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
30881 ELF segments, use a macro for arbitrarily accessing any of them instead
30882 of preparing a pointer that allows access to one at a time.
30883 (grub_multiboot_load_elf64): Likewise.
30884
30885 2008-07-31 Bean <bean123ch@gmail.com>
30886
30887 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
30888 GRUB_KERNEL_MACHINE_DATA_END.
30889
30890 2008-07-30 Robert Millan <rmh@aybabtu.com>
30891
30892 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
30893 Increase from 0x50 to 0x60.
30894 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
30895 use UUIDs to identify the root drive for them. If that's not
30896 possible, abort.
30897 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
30898 check, for cross-disk installs.
30899
30900 2008-07-30 Robert Millan <rmh@aybabtu.com>
30901
30902 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
30903 is non-empty, use it to set the `prefix' environment variable instead
30904 of the usual approach.
30905 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
30906 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
30907 environment variable instead of dummy make_install_device().
30908
30909 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
30910 (start): Insert a data section, with `grub_prefix' variable.
30911 * kern/i386/linuxbios/startup.S: Likewise.
30912
30913 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
30914 New variable reference.
30915 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
30916 New macro. Defines offset of `grub_prefix' within startup.S (relative
30917 to `start').
30918 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
30919 section within startup.S (relative to `start').
30920 * include/grub/i386/coreboot/kernel.h: Likewise.
30921
30922 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
30923 Overwrite grub_prefix with its contents, at the beginning of the
30924 first segment.
30925 (main): Understand -p|--prefix.
30926
30927 2008-07-30 Robert Millan <rmh@aybabtu.com>
30928
30929 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
30930
30931 2008-07-30 Robert Millan <rmh@aybabtu.com>
30932
30933 * term/i386/pc/vga_text.c (grub_console_cls): Use
30934 grub_console_gotoxy() to go back to beginning of the screen.
30935 Found by Patrick Georgi <patrick.georgi@coresystems.de>
30936
30937 2008-07-29 Christian Franke <franke@computer.org>
30938
30939 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
30940 Add conversion of emulated mount points on Cygwin.
30941
30942 2008-07-29 Christian Franke <franke@computer.org>
30943
30944 * util/update-grub.in: Add a check for admin
30945 group on Cygwin.
30946 Remove old `grub.cfg.new' before creation.
30947 Add `-f' to `mv' to handle the different filesystem
30948 semantics of Windows.
30949
30950 2008-07-29 Bean <bean123ch@gmail.com>
30951
30952 * normal/main.c (get_line): Fix buffer overflow bug.
30953
30954 2008-07-28 Robert Millan <rmh@aybabtu.com>
30955
30956 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
30957 (struct grub_apple_header): New struct. Describes the layout of
30958 the partmap header.
30959 (apple_partition_map_iterate): Check the header magic as well as the
30960 partition magic (which was already being checked).
30961
30962 2008-07-28 Pavel Roskin <proski@gnu.org>
30963
30964 * genmk.rb: Add a warning to the beginning of the output that
30965 it's a generated file and should not be edited.
30966
30967 2008-07-28 Robert Millan <rmh@aybabtu.com>
30968
30969 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
30970 with the same number are found, just use issue a warning with
30971 grub_dprintf(), as this error has been reported to be non-fatal.
30972
30973 2008-07-27 Robert Millan <rmh@aybabtu.com>
30974
30975 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
30976 information.
30977
30978 2008-07-27 Bean <bean123ch@gmail.com>
30979
30980 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
30981 (grub_fat_find_dir): Ignore case when comparing filename.
30982
30983 2008-07-27 Bean <bean123ch@gmail.com>
30984
30985 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
30986 smallino, as it's more descriptive, and i8count can be confused with
30987 the other field count.
30988 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
30989 inode type.
30990
30991 2008-07-27 Bean <bean123ch@gmail.com>
30992
30993 * commands/crc.c: New file.
30994
30995 * lib/crc.c: Likewise.
30996
30997 * include/grub/lib/crc.h: Likewise.
30998
30999 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
31000
31001 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
31002 (hexdump): Move this function to ...
31003
31004 * lib/hexdump.c: ... here.
31005
31006 * include/grub/hexdump.h: Renamed to ...
31007
31008 * include/grub/lib/hexdump.h: ... this.
31009
31010 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
31011
31012 * util/grub-editenv.c: Likewise.
31013
31014 * include/envblk.h: Renamed to ...
31015
31016 * include/lib/envblk.h: ... this.
31017
31018 * util/envblk.c: Renamed to ...
31019
31020 * lib/envblk.c: ... this.
31021
31022 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
31023 lib/hexdump.c.
31024 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
31025 (pkglib_MODULES): Add crc.mod.
31026 (hexdump_mod_SOURCES): Add lib/hexdump.c.
31027 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
31028 (crc_mod_SOURCES): New macro.
31029 (crc_mod_CFLAGS): Likewise.
31030 (crc_mod_LDFLAGS): Likewise.
31031
31032 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
31033
31034 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31035
31036 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31037
31038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31039
31040 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31041
31042 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
31043
31044 * commands/help.c: Include <grub/term.h>.
31045 (TERM_WIDTH): Removed. Updated all users.
31046
31047 2008-07-27 Pavel Roskin <proski@gnu.org>
31048
31049 * util/getroot.c (find_root_device): Rephrase a comment to avoid
31050 spurious warnings about a comment within a comment.
31051
31052 2008-07-25 Robert Millan <rmh@aybabtu.com>
31053
31054 * util/getroot.c (find_root_device): Skip devices that match
31055 /dev/dm-[0-9]. This lets the real device be found for any type of
31056 abstraction (LVM, EVMS, RAID..).
31057 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
31058 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
31059 device is found first, find_root_device() will now skip it.
31060
31061 2008-07-24 Pavel Roskin <proski@gnu.org>
31062
31063 * include/grub/types.h: Use __builtin_bswap32() and
31064 __builtin_bswap64() with gcc 4.3 and newer.
31065
31066 2008-07-24 Christian Franke <franke@computer.org>
31067
31068 * util/i386/pc/grub-install.in: If `--debug' is specified,
31069 pass `--verbose' to grub-setup.
31070 Abort script if make_system_path_relative_to_its_root() fails.
31071
31072 2008-07-24 Bean <bean123ch@gmail.com>
31073
31074 * configure.ac: Fixed a bug caused by the previous cygwin patch,
31075 variable `target_platform' should be `platform'.
31076
31077 2008-07-24 Bean <bean123ch@gmail.com>
31078
31079 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
31080 (grub_png_init_fixed_block): New function.
31081 (grub_png_decode_image_data): Handle fixed huffman code compression.
31082
31083 2008-07-24 Bean <bean123ch@gmail.com>
31084
31085 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
31086 (grub_pe2elf_SOURCES): New macro.
31087 (CLEANFILES): Add grub-pe2elf.
31088
31089 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
31090 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
31091 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
31092 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
31093 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
31094 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
31095 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
31096 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
31097 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
31098 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
31099 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
31100 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
31101 (GRUB_PE32_DT_FUNCTION): Likewise.
31102 (GRUB_PE32_REL_I386_DIR32): Likewise.
31103 (GRUB_PE32_REL_I386_REL32): Likewise.
31104 (grub_pe32_symbol): New structure.
31105 (grub_pe32_reloc): Likewise.
31106
31107 * util/grub-pe2elf.c: New file.
31108
31109 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
31110 start symbol in non pc platform.
31111
31112 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
31113
31114 The following patches are from Christian Franke.
31115
31116 * include/grub/dl.h: Remove .previous, gas supports this only
31117 for ELF format.
31118
31119 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
31120 Remove .type, gas supports this only for ELF format.
31121
31122 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
31123 nullbytes in symbol table. This fixes an infinite loop if table is
31124 zero filled.
31125
31126 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
31127 TARGET_IMG_LDFLAGS and EXEEXT.
31128
31129 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
31130 TARGET_IMG_LDFLAGS_AC.
31131 (grub_CHECK_STACK_ARG_PROBE): New function.
31132
31133 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
31134
31135 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
31136
31137 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
31138 to set TARGET_IMG_LD* accordingly.
31139 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
31140 Add call to grub_CHECK_STACK_ARG_PROBE.
31141 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
31142
31143 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
31144
31145 * genmk.rb: Add EXEEXT to CLEANFILES.
31146
31147 2008-07-23 Robert Millan <rmh@aybabtu.com>
31148
31149 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
31150 define the codes for arrows and lines used for the menu).
31151 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
31152 as well.
31153
31154 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
31155 fonts, because the latter are too slow.
31156
31157 2008-07-21 Bean <bean123ch@gmail.com>
31158
31159 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
31160 a20. Run keyboard test last, as it will cause macbook to halt.
31161
31162 2008-07-18 Pavel Roskin <proski@gnu.org>
31163
31164 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
31165 load foreign architecture modules correctly anyway. Keep
31166 support for loading host architecture modules, whether we
31167 compile them or not.
31168
31169 2008-07-17 Pavel Roskin <proski@gnu.org>
31170
31171 * configure.ac: Use -m32 or -m64 regardless of whether we had to
31172 change target_cpu. The compiler default can mismatch target_cpu
31173 in any case.
31174
31175 * disk/efi/efidisk.c: Fix format warnings on x86_64.
31176 * kern/efi/efi.c: Likewise.
31177
31178 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
31179 target compiler is functional.
31180 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
31181 are set up.
31182
31183 * configure.ac: Default to efi platform for x86_64-apple. Allow
31184 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
31185 adjustments from the rest, only do them if target is not
31186 explicitly given. Merge other adjustments with the final sanity
31187 check. Remove an extraneous check for supported CPU. Be
31188 specific which CPU and which platform is not supported.
31189
31190 * configure.ac: Default to pc platform for x86_64.
31191
31192 2008-07-17 Robert Millan <rmh@aybabtu.com>
31193
31194 Partial LinuxBIOS -> Coreboot rename.
31195
31196 * conf/i386-linuxbios.rmk: Renamed to ...
31197 * conf/i386-coreboot.rmk: ... this.
31198 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
31199 * configure.ac: Accept "coreboot" as input platform (but maintain
31200 compatibility with "linuxbios").
31201 * include/grub/i386/linuxbios: Renamed to ...
31202 * include/grub/i386/coreboot: ... this.
31203
31204 2008-07-17 Bean <bean123ch@gmail.com>
31205
31206 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
31207 (appleldr_mod_SOURCE): New variable.
31208 (appleldr_mod_CFLAGS): Likewise.
31209 (appleldr_mod_LDFLAGS): Likewise.
31210 (pci_mod_SOURCES): Likewise.
31211 (pci_mod_CFLAGS): Likewise.
31212 (pci_mod_LDFLAGS): Likewise.
31213 (lspci_mod_SOURCES): Likewise.
31214 (lspci_mod_CFLAGS): Likewise.
31215 (lspci_mod_LDFLAGS): Likewise.
31216
31217 * conf/x86_64-efi.rmk: New file.
31218
31219 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
31220 macro.
31221 (grub_efidisk_write): Likewise.
31222
31223 * include/efi/api.h (efi_call_0): New macro.
31224 (efi_call_1): Likewise.
31225 (efi_call_2): Likewise.
31226 (efi_call_3): Likewise.
31227 (efi_call_4): Likewise.
31228 (efi_call_5): Likewise.
31229 (efi_call_6): Likewise.
31230
31231 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
31232 grub_rescue_cmd_chainloader.
31233
31234 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
31235 (grub_pe32_optional_header): Change some fields based on i386 or
31236 x86_64 platform.
31237 (GRUB_PE32_PE32_MAGIC): Likewise.
31238
31239 * include/grub/efi/uga_draw.h: New file.
31240
31241 * include/grub/elf.h (STN_ABS): New constant.
31242 (R_X86_64_NONE): Relocation constant for x86_64.
31243 (R_X86_64_64): Likewise.
31244 (R_X86_64_PC32): Likewise.
31245 (R_X86_64_GOT32): Likewise.
31246 (R_X86_64_PLT32): Likewise.
31247 (R_X86_64_COPY): Likewise.
31248 (R_X86_64_GLOB_DAT): Likewise.
31249 (R_X86_64_JUMP_SLOT): Likewise.
31250 (R_X86_64_RELATIVE): Likewise.
31251 (R_X86_64_GOTPCREL): Likewise.
31252 (R_X86_64_32): Likewise.
31253 (R_X86_64_32S): Likewise.
31254 (R_X86_64_16): Likewise.
31255 (R_X86_64_PC16): Likewise.
31256 (R_X86_64_8): Likewise.
31257 (R_X86_64_PC8): Likewise.
31258
31259 * include/grub/i386/efi/pci.h: New file.
31260
31261 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
31262 Change it value based on platform.
31263 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
31264 (GRUB_E820_RAM): Likewise.
31265 (GRUB_E820_RESERVED): Likewise.
31266 (GRUB_E820_ACPI): Likewise.
31267 (GRUB_E820_NVS): Likewise.
31268 (GRUB_E820_EXEC_CODE): Likewise.
31269 (GRUB_E820_MAX_ENTRY): Likewise.
31270 (grub_e820_mmap): New structure.
31271 (linux_kernel_header): Change the efi field according to different
31272 kernel version, also field from linux_kernel_header.
31273
31274 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
31275
31276 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
31277 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
31278 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
31279 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
31280 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
31281 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
31282 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
31283 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
31284 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
31285 (GRUB_PCI_ADDR_IO_MASK): Likewise.
31286
31287 * include/grub/x86_64/efi/kernel.h: New file.
31288
31289 * include/grub/x86_64/efi/loader.h: Likewise.
31290
31291 * include/grub/x86_64/efi/machine.h: Likewise.
31292
31293 * include/grub/x86_64/efi/pci.h: Likewise.
31294
31295 * include/grub/x86_64/efi/time.h: Likewise.
31296
31297 * include/grub/x86_64/linux.h: Likewise.
31298
31299 * include/grub/x86_64/setjmp.h: Likewise.
31300
31301 * include/grub/x86_64/time.h: Likewise.
31302
31303 * include/grub/x86_64/types.h: Likewise.
31304
31305 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
31306 GRUB_TARGET_SIZEOF_VOID_P.
31307
31308 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
31309 (grub_efi_locate_handle): Likewise.
31310 (grub_efi_open_protocol): Likewise.
31311 (grub_efi_set_text_mode): Likewise.
31312 (grub_efi_stall): Likewise.
31313 (grub_exit): Likewise.
31314 (grub_reboot): Likewise.
31315 (grub_halt): Likewise.
31316 (grub_efi_exit_boot_services): Likewise.
31317 (grub_get_rtc): Likewise.
31318
31319 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
31320 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
31321 (grub_efi_allocate_pages): Wrap efi calls.
31322 (grub_efi_free_pages): Wrap efi calls.
31323 (grub_efi_get_memory_map): Wrap efi calls.
31324
31325 * kern/x86_64/dl.c: New file.
31326
31327 * kern/x86_64/efi/callwrap.S: Likewise.
31328
31329 * kern/x86_64/efi/startup.S: Likewise.
31330
31331 * loader/efi/appleloader.c: Likewise.
31332
31333 * loader/efi/chainloader.c (cmdline): New variable.
31334 (grub_chainloader_unload): Wrap efi calls.
31335 (grub_chainloader_boot): Likewise.
31336 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
31337 command line.
31338
31339 * loader/efi/chainloader_normal.c (chainloader_command):
31340 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
31341 command line.
31342
31343 * loader/i386/efi/linux.c (allocate_pages): Change allocation
31344 method.
31345 (grub_e820_add_region): New function.
31346 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
31347 booting.
31348 (grub_find_video_card): New function.
31349 (grub_linux_setup_video): New function.
31350 (grub_rescue_cmd_linux): Probe for video information.
31351
31352 * normal/x86_64/setjmp.S: New file.
31353
31354 * term/efi/console.c (map_char): New function.
31355 (grub_console_putchar): Map unicode char.
31356 (grub_console_checkkey): Wrap efi calls.
31357 (grub_console_getkey): Likewise.
31358 (grub_console_getwh): Likewise.
31359 (grub_console_gotoxy): Likewise.
31360 (grub_console_cls): Likewise.
31361 (grub_console_setcolorstate): Likewise.
31362 (grub_console_setcursor): Likewise.
31363
31364 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
31365
31366 2008-07-16 Pavel Roskin <proski@gnu.org>
31367
31368 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
31369 format strings.
31370
31371 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
31372 pointer, not an integer. This fixes a warning and prevents
31373 precision loss on 64-bit systems.
31374 (relocate_addresses): Remove unneeded cast.
31375
31376 2008-07-15 Pavel Roskin <proski@gnu.org>
31377
31378 * kern/i386/ieee1275/init.c: Include grub/cache.h.
31379
31380 * term/ieee1275/ofconsole.c: Disable code unused on i386.
31381
31382 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
31383 Fix comparison between signed and unsigned.
31384
31385 * include/grub/i386/ieee1275/console.h: Declare
31386 grub_console_init() and grub_console_fini().
31387
31388 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
31389 It's empty and unused.
31390
31391 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
31392 beginning to avoid warnings with some compilers.
31393
31394 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
31395 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
31396
31397 2008-07-14 Pavel Roskin <proski@gnu.org>
31398
31399 * kern/env.c (grub_register_variable_hook): Don't copy empty
31400 string, it leaks memory. Pass "" to grub_env_set(), it should
31401 handle constant strings.
31402
31403 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
31404 * commands/cmp.c (grub_cmd_cmp): Likewise.
31405 * kern/dl.c (grub_dl_flush_cache): Likewise.
31406 (grub_dl_load_core): Likewise.
31407 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
31408 (grub_elf64_load_phdrs): Likewise.
31409
31410 2008-07-13 Pavel Roskin <proski@gnu.org>
31411
31412 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
31413 between signed and unsigned.
31414 (LzmaEnc_Finish): Fix warning about an unused parameter.
31415
31416 2008-07-13 Bean <bean123ch@gmail.com>
31417
31418 * Makefile.in (enable_lzo): New rule.
31419
31420 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
31421
31422 * configure.ac (ENABLE_LZO): New option --enable-lzo.
31423
31424 * boot/i386/pc/lnxboot.S: #include <config.h>.
31425
31426 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
31427 its value according to the compression algorithm used, lzo or lzma.
31428
31429 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
31430 compression algorithm according to configure macro.
31431
31432 * kern/i386/pc/startup.S (codestart): Likewise.
31433
31434 * kern/i386/pc/lzma_decode.S: New file.
31435
31436 * include/grub/lib/LzFind.h: Likewise.
31437
31438 * include/grub/lib/LzHash.h: Likewise.
31439
31440 * include/grub/lib/LzmaDec.h: Likewise.
31441
31442 * include/grub/lib/LzmaEnc.h: Likewise.
31443
31444 * include/grub/lib/LzmaTypes.h: Likewise.
31445
31446 * lib/LzFind.c: Likewise.
31447
31448 * lib/LzmaDec.c: Likewise.
31449
31450 * lib/LzmaEnc.c: Likewise.
31451
31452 2008-07-13 Bean <bean123ch@gmail.com>
31453
31454 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
31455 (grub_ext4_extent_header): New structure.
31456 (grub_ext4_extent): Likewise.
31457 (grub_ext4_extent_idx): Likewise.
31458 (grub_ext4_find_leaf): New function.
31459 (grub_ext2_read_block): Handle extents.
31460
31461 2008-07-12 Robert Millan <rmh@aybabtu.com>
31462
31463 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
31464
31465 2008-07-11 Robert Millan <rmh@aybabtu.com>
31466
31467 * util/grub.d/40_custom.in: New file. Example on how to add custom
31468 entries to /etc/grub.d.
31469 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
31470 40_custom (implicitly, by merging all the grub.d rules).
31471
31472 2008-07-11 Pavel Roskin <proski@gnu.org>
31473
31474 * commands/read.c (grub_getline): Fix invalid memory access.
31475 Don't add newline to the variable value.
31476
31477 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
31478 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
31479 (serial_hw_get_port): Check validity of the port number.
31480 (grub_cmd_serial): Check return value of serial_hw_get_port().
31481
31482 2008-07-07 Pavel Roskin <proski@gnu.org>
31483
31484 * boot/i386/pc/diskboot.S (notification_string): Replace
31485 "Loading kernel" with just "loading". This is shorter, less
31486 confusing and saves a few bytes for possible future changes.
31487
31488 2008-07-05 Pavel Roskin <proski@gnu.org>
31489
31490 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
31491 size for ATAPI devices, they are undefined. Output sector
31492 number in decimal form.
31493
31494 * disk/ata.c: Use named constants for status bits.
31495
31496 2008-07-04 Pavel Roskin <proski@gnu.org>
31497
31498 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
31499 grub_addr_t before casting it to the void pointer to fix a
31500 warning. Non-addressable regions are discarded earlier.
31501 (grub_arch_modules_addr): Cast _end to grub_addr_t.
31502 * kern/i386/linuxbios/table.c: Include grub/misc.h.
31503 (check_signature): Don't shadow table_header.
31504 (grub_linuxbios_table_iterate): Cast numeric constants to
31505 grub_linuxbios_table_header_t.
31506 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
31507 grub_stop().
31508
31509 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
31510 prevent warnings.
31511
31512 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
31513 pointer, which can cause warnings. Support 64-bit addresses.
31514
31515 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
31516 of sizeof(long). This fixes PowerPC image generation on x86_64.
31517
31518 2008-07-04 Robert Millan <rmh@aybabtu.com>
31519
31520 This fixes a performance issue when pc & gpt partmap iterators
31521 didn't abort iteration even after our hook found what it was
31522 looking for (often causing expensive probes of non-existent drives).
31523
31524 Some callers relied on previous buggy behaviour, since they would
31525 raise an error when their own hooks caused early abortion of its
31526 iteration.
31527
31528 * kern/device.c (grub_device_open): Improve error message.
31529 * disk/lvm.c (grub_lvm_open): Likewise.
31530 * disk/raid.c (grub_raid_open): Likewise.
31531
31532 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
31533 when hook requests it, independently of grub_errno.
31534 (pc_partition_map_probe): Do not fail when find_func() caused
31535 early abortion of pc_partition_map_iterate().
31536
31537 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
31538 when hook requests it, independently of grub_errno.
31539 (gpt_partition_map_probe): Do not fail when find_func() caused
31540 early abortion of gpt_partition_map_iterate().
31541
31542 * kern/partition.c (grub_partition_iterate): Abort parent iteration
31543 when hook requests it, independently of grub_errno. Do not fail when
31544 part_map_iterate_hook() caused early abortion of p->iterate().
31545
31546 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
31547 when grub_partition_iterate() returned with non-zero.
31548
31549 2008-07-03 Pavel Roskin <proski@gnu.org>
31550
31551 * disk/ata.c (grub_ata_pio_write): Check status before writing,
31552 like we do in grub_ata_pio_read().
31553 (grub_ata_readwrite): Always write individual sectors. Fix the
31554 sector count for the remainder.
31555 (grub_ata_write): Enable writing to ATA devices. Correctly
31556 report error for ATAPI devices.
31557
31558 2008-07-02 Pavel Roskin <proski@gnu.org>
31559
31560 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
31561 warning.
31562
31563 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
31564 for every read sector, we already increment it for the whole
31565 batch. This fixes reading more than 256 sectors at once.
31566
31567 * util/grub-editenv.c (cmd_info): Cast argument to long
31568 explicitly. ptrdiff_t reduces to int on i386.
31569
31570 * util/grub-editenv.c (main): Be specific which parameter is
31571 missing.
31572
31573 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
31574 (memdisk): Make memdisk_orig_addr a pointer.
31575
31576 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
31577 for file offsets, use grub_off_t instead. Fix printf format
31578 warnings.
31579
31580 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
31581 there. Real unexpected warnings should not drown in the noise
31582 about known problems.
31583
31584 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
31585 grub_disk_addr_t for memory addresses.
31586
31587 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
31588 explicitly to fix a warning.
31589
31590 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
31591
31592 * Makefile.in (MODULE_LDFLAGS): New variable.
31593 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
31594 the linker accepts --build-id=none.
31595 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
31596 MODULE_LDFLAGS.
31597 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
31598
31599 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
31600 those in Linux XFS code. Provide a way to access 64-bit parent
31601 inode.
31602 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
31603 the end of struct grub_xfs_dir_header.
31604
31605 2008-07-02 Bean <bean123ch@gmail.com>
31606
31607 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
31608 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31609 and GRUB_IEEE1275_FLAG_NO_ANSI.
31610
31611 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
31612 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31613 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
31614
31615 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
31616 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
31617
31618 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
31619 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
31620
31621 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
31622 esc sequence on non ANSI terminal.
31623 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
31624
31625 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
31626 beginning of file.
31627
31628 2008-07-02 Bean <bean123ch@gmail.com>
31629
31630 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
31631 (grub_editenv_SOURCES): New variable.
31632 (pkglib_MODULES): Add loadenv.mod.
31633 (loadenv_mod_SOURCES): New variable.
31634 (loadenv_mod_CFLAGS): Likewise.
31635 (loadenv_mod_LDFLAGS): Likewise.
31636
31637 * include/grub/envblk.h: New file.
31638
31639 * util/envblk.c: New file.
31640
31641 * util/grub-editenv.c: New file.
31642
31643 * commands/loadenv.c: New file.
31644
31645 2008-07-01 Pavel Roskin <proski@gnu.org>
31646
31647 * include/multiboot2.h (struct multiboot_tag_module): Use char,
31648 not unsigned char. This fixes warnings and is consistent with
31649 other tags.
31650
31651 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
31652
31653 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
31654
31655 * term/tparm.c (analyze): Always set *popcount.
31656
31657 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
31658 cast to fix a warning.
31659
31660 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
31661 cast to suppress a warning.
31662
31663 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
31664 grub_fshelp_read_file() expects.
31665
31666 * fs/fat.c: Fix UUID calculation on big-endian systems. We
31667 write uuid as a 32-bit value in CPU byte order, so declare and
31668 use it as such.
31669
31670 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
31671 long if the format specifier expects it.
31672 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
31673 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31674 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
31675 long to fix a warning.
31676 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
31677 grub_dprintf() arguments to fix warnings.
31678
31679 2008-06-30 Pavel Roskin <proski@gnu.org>
31680
31681 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
31682 install_bsd_part immediately before core.img is embedded or
31683 modified on disk. This fixes core.img verification if core.img
31684 cannot be embedded.
31685
31686 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
31687 core_path to calculate the blocklist.
31688 Patch from Javier Martín <lordhabbit@gmail.com>
31689
31690 2008-06-29 Robert Millan <rmh@aybabtu.com>
31691
31692 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
31693 block to disk block.
31694 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
31695 Patch from Niels Böhm <bitbucket@arcor.de>
31696
31697 2008-06-29 Robert Millan <rmh@aybabtu.com>
31698
31699 * util/update-grub_lib.in (font_path): Search for fonts in
31700 /boot/grub first, which is more likely to be readable (we aren't
31701 deciding where fonts live, just looking for them).
31702
31703 2008-06-26 Pavel Roskin <proski@gnu.org>
31704
31705 * util/biosdisk.c (read_device_map): Don't leave dead map
31706 entries for devices failing stat() check.
31707
31708 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
31709 core_path_dev for the core.img path on the target device.
31710
31711 2008-06-26 Robert Millan <rmh@aybabtu.com>
31712
31713 * disk/fs_uuid.c: New file.
31714 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
31715 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
31716 (fs_uuid_mod_LDFLAGS): New variables.
31717 * include/grub/disk.h (grub_disk_dev_id): Add
31718 `GRUB_DISK_DEVICE_UUID_ID'.
31719 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
31720 implement iterate().
31721
31722 2008-06-26 Robert Millan <rmh@aybabtu.com>
31723
31724 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
31725 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
31726 Linux image includes no initrd.
31727
31728 2008-06-21 Javier Martín <lordhabbit@gmail.com>
31729
31730 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
31731 call to resolve the core image location that effectively appended the
31732 name twice.
31733
31734 2008-06-21 Robert Millan <rmh@aybabtu.com>
31735
31736 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
31737 call from here ...
31738
31739 * util/grub.d/10_hurd.in: ... to here ...
31740 * util/grub.d/10_linux.in: ... and here.
31741
31742 2008-06-19 Robert Millan <rmh@aybabtu.com>
31743
31744 * kern/main.c (grub_main): Export `prefix' variable immediately
31745 after it has been set by grub_machine_set_prefix().
31746
31747 2008-06-19 Robert Millan <rmh@aybabtu.com>
31748
31749 * commands/search.c (search_label, search_fs_uuid, search_file): Print
31750 search result when not saving to variable, not the other way around.
31751 When saving to variable, abort iteration as soon as a match is found.
31752
31753 2008-06-19 Robert Millan <rmh@aybabtu.com>
31754
31755 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
31756 check for partition that provides /boot/grub. Its logic is flawed,
31757 as it prevents prepare_grub_to_access_device() from being called
31758 multiple times.
31759
31760 2008-06-19 Robert Millan <rmh@aybabtu.com>
31761
31762 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
31763 "insmod" command directly when abstraction modules are needed,
31764 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
31765 since it had already been processed).
31766
31767 2008-06-19 Pavel Roskin <proski@gnu.org>
31768
31769 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
31770 changed. This is needed in case GRUB_LIBDIR changes.
31771 * conf/i386-ieee1275.rmk: Likewise.
31772 * conf/i386-linuxbios.rmk: Likewise.
31773 * conf/i386-pc.rmk: Likewise.
31774 * conf/powerpc-ieee1275.rmk: Likewise.
31775
31776 2008-06-18 Pavel Roskin <proski@gnu.org>
31777
31778 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
31779 kernel_elf_symlist.c to symlist.c for consistency with other
31780 architectures. Update all users.
31781 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31782
31783 2008-06-18 Robert Millan <rmh@aybabtu.com>
31784
31785 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
31786 it in prefix.
31787
31788 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
31789 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
31790 a RAID device, run setup() for all members independently on whether
31791 LVM abstraction is being used.
31792 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
31793 If grub-mkimage has set `*install_dos_part == -2', don't override this
31794 value.
31795 Perform *install_dos_part adjustments independently on whether
31796 we're embedding or not.
31797 Clarify error message when image is too big for embedding.
31798 Remove duplicate *install_dos_part stanza.
31799
31800 2008-06-17 Robert Millan <rmh@aybabtu.com>
31801
31802 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
31803 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
31804 variables.
31805 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
31806 values in grub_ofconsole_normal_color and
31807 grub_ofconsole_highlight_color (they're not directly related to
31808 background and foreground).
31809 (grub_ofconsole_setcolorstate): Extract background and foreground
31810 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
31811
31812 2008-06-17 Robert Millan <rmh@aybabtu.com>
31813
31814 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
31815 /boot/grub for the check in last commit, not /boot (they could be
31816 different partitions).
31817
31818 2008-06-16 Robert Millan <rmh@aybabtu.com>
31819
31820 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
31821 asked to setup access for the same partition that provides /boot,
31822 don't bother using UUIDs since our root already has the value we
31823 want.
31824
31825 2008-06-16 Robert Millan <rmh@aybabtu.com>
31826
31827 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
31828 I2O devices.
31829 Patch from Sven Mueller <sven@debian.org>.
31830
31831 2008-06-16 Robert Millan <rmh@aybabtu.com>
31832
31833 * util/update-grub.in: Check for $EUID instead of $UID.
31834 Reported by Vincent Zweije.
31835
31836 2008-06-16 Bean <bean123ch@gmail.com>
31837
31838 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
31839 (grub_ext2_read_block): Likewise.
31840 (grub_ext2_read_inode): Likewise.
31841 (grub_ext2_mount): Likewise.
31842 (grub_ext2_close): Likewise.
31843 (grub_ext3_get_journal): Removed.
31844
31845 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
31846 (grub_reiserfs_read_symlink): Likewise.
31847 (grub_reiserfs_mount): Likewise.
31848 (grub_reiserfs_open): Likewise.
31849 (grub_reiserfs_read): Likewise.
31850 (grub_reiserfs_close): Likewise.
31851 (grub_reiserfs_get_journal): Removed.
31852
31853 * fs/fshelp.c (grub_fshelp_read): Removed.
31854 (grub_fshelp_map_block): Likewise.
31855
31856 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
31857 (grub_fshelp_journal): Likewise.
31858 (grub_fshelp_read): Likewise.
31859 (grub_fshelp_map_block): Likewise.
31860
31861 2008-06-16 Pavel Roskin <proski@gnu.org>
31862
31863 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
31864 floating point anymore.
31865 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
31866
31867 2008-06-15 Pavel Roskin <proski@gnu.org>
31868
31869 * commands/ls.c (grub_ls_list_files): Use integer calculations
31870 for human readable format, avoid floating point use.
31871 * kern/misc.c (grub_ftoa): Remove.
31872 (grub_vsprintf): Remove floating point support.
31873
31874 2008-06-15 Robert Millan <rmh@aybabtu.com>
31875
31876 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
31877 devices.
31878 Reported by Max Vozeler.
31879
31880 2008-06-15 Robert Millan <rmh@aybabtu.com>
31881
31882 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
31883 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
31884 skipped later.
31885 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
31886 the beginning of the prefix.
31887
31888 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
31889 It is assumed that if we have a memdisk, grub-mkimage has set
31890 grub_prefix to include the "(memdisk)" drive in it.
31891
31892 2008-06-15 Robert Millan <rmh@aybabtu.com>
31893
31894 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
31895 Initialize keyboard controller after registering the terminal, so that
31896 grub_printf() can be called from grub_keyboard_controller_init().
31897
31898 2008-06-15 Robert Millan <rmh@aybabtu.com>
31899
31900 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
31901 extent-btree which is written as big endian on disk.
31902 Reported by Alain Greppin <al@chilibi.org>.
31903
31904 2008-06-14 Robert Millan <rmh@aybabtu.com>
31905
31906 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
31907 * util/i386/pc/grub-install.in (modules): Likewise.
31908
31909 2008-06-13 Pavel Roskin <proski@gnu.org>
31910
31911 * commands/ls.c (grub_ls_list_files): Fix format warnings.
31912
31913 2008-06-13 Bean <bean123ch@gmail.com>
31914
31915 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
31916
31917 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
31918
31919 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
31920 to indicate sparse block.
31921
31922 2008-06-12 Pavel Roskin <proski@gnu.org>
31923
31924 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
31925 number, grub_fshelp_read() does it for us.
31926
31927 * fs/fshelp.c (grub_fshelp_read): New function. Implement
31928 linear disk read with journal translation.
31929 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
31930 * include/grub/fshelp.h: Declare grub_fshelp_read().
31931
31932 2008-06-09 Pavel Roskin <proski@gnu.org>
31933
31934 * fs/minix.c (grub_minix_mount): Handle error reading
31935 superblock.
31936
31937 2008-06-08 Robert Millan <rmh@aybabtu.com>
31938
31939 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
31940 don't append the RAID prefix afterwards.
31941 Reported by Clint Adams.
31942
31943 2008-06-08 Robert Millan <rmh@aybabtu.com>
31944
31945 Based on description from Pavel:
31946 * kern/disk.c (grub_disk_check_range): Rename to ...
31947 (grub_disk_adjust_range): ... this. Add a comment explaining the
31948 tasks performed by this function.
31949
31950 2008-06-08 Robert Millan <rmh@aybabtu.com>
31951
31952 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
31953 `num_serial' (for consistency with other variables).
31954 (struct grub_ntfs_data): Add `uuid' member.
31955 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
31956 (grub_ntfs_uuid): New function.
31957 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
31958
31959 2008-06-07 Pavel Roskin <proski@gnu.org>
31960
31961 * util/biosdisk.c (open_device): Revert last change to the
31962 function, it broke installation. The sector needs to be
31963 different dependent on which device is opened.
31964
31965 2008-06-06 Robert Millan <rmh@aybabtu.com>
31966
31967 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
31968 rest of GRUB, and breakage doesn't happen if its value were modified.
31969
31970 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
31971 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
31972 a constant (same value).
31973 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
31974 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
31975
31976 2008-06-06 Robert Millan <rmh@aybabtu.com>
31977
31978 * util/biosdisk.c (open_device): Do not modify sector offset when
31979 accessing a partition. kern/disk.c already handles this for us.
31980
31981 2008-06-06 Robert Millan <rmh@aybabtu.com>
31982
31983 * util/grub-emu.c (grub_machine_init): Move code in this function from
31984 here ...
31985 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
31986 segfault in case grub_printf() is called).
31987
31988 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
31989 grub_probe. Update all users not to explicitly add it again.
31990 (grub_device): New variable; contains corresponding device for grubdir.
31991 (fs_module, partmap_module, devabstraction_module): Pass
31992 `--device ${grub_device}' to grub_probe to avoid traversing /dev
31993 every time.
31994
31995 2008-06-05 Robert Millan <rmh@aybabtu.com>
31996
31997 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
31998 is found, print it (same layout as with labels).
31999
32000 2008-06-04 Robert Millan <rmh@aybabtu.com>
32001
32002 * util/biosdisk.c (get_drive): Rename to ...
32003 (find_grub_drive): ... this. Update all users.
32004
32005 (get_os_disk): Rename to ...
32006 (convert_system_partition_to_system_disk): ... this. Update all users.
32007
32008 (find_drive): Rename to ...
32009 (find_system_device): ... this. Update all users.
32010
32011 2008-06-04 Robert Millan <rmh@aybabtu.com>
32012
32013 * util/biosdisk.c (get_os_disk): Handle IDA devices.
32014 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32015 (make_device_map): Likewise.
32016
32017 2008-06-01 Robert Millan <rmh@aybabtu.com>
32018
32019 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
32020 before dereferencing it.
32021
32022 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
32023 union with fat12/fat16-specific ones. Add some new fields, including
32024 `num_serial' for both versions.
32025 (struct grub_fat_data): Add `uuid' member.
32026 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
32027 names. Initialize `data->uuid' using `num_serial'.
32028 (grub_fat_uuid): New function.
32029 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
32030
32031 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
32032 (grub_reiserfs_uuid): New function.
32033 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
32034 member.
32035
32036 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
32037 (grub_xfs_uuid): New function.
32038 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
32039
32040 2008-06-01 Robert Millan <rmh@aybabtu.com>
32041
32042 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
32043 code that is backward compatible with pre-uuid search command.
32044
32045 2008-05-31 Robert Millan <rmh@aybabtu.com>
32046
32047 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
32048 floppies after everything else, to ensure floppy drive isn't accessed
32049 unnecessarily (patch from Bean).
32050
32051 2008-05-31 Robert Millan <rmh@aybabtu.com>
32052
32053 * commands/search.c (search_label, search_fs_uuid, search_file): Do
32054 not print device names when we were asked to set a variable.
32055
32056 2008-05-31 Robert Millan <rmh@aybabtu.com>
32057
32058 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
32059 using "cursor-on" and "cursor-off" commands (understood at least by
32060 the Open Firmware flavour on OLPC).
32061
32062 2008-05-31 Michael Gorven <michael@gorven.za.net>
32063
32064 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
32065 on and off sequences.
32066
32067 2008-05-31 Robert Millan <rmh@aybabtu.com>
32068
32069 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
32070 * util/update-grub.in: Likewise.
32071
32072 2008-05-30 Pavel Roskin <proski@gnu.org>
32073
32074 * util/biosdisk.c (linux_find_partition): Simplify logic and
32075 make the code more universal. Keep special processing for
32076 devfs, but use a simple rule for all other devices. If the
32077 device ends with a number, append 'p' and the partition number.
32078 Otherwise, append only the partition number.
32079
32080 2008-05-30 Robert Millan <rmh@aybabtu.com>
32081
32082 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
32083 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
32084 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
32085 the `root' parameter to Linux.
32086
32087 2008-05-30 Robert Millan <rmh@aybabtu.com>
32088
32089 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
32090 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
32091 --fs_uuid with --fs-uuid.
32092 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
32093 all filesystems support them).
32094
32095 2008-05-30 Robert Millan <rmh@aybabtu.com>
32096
32097 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
32098 grub_printf() flags, since we're printing in units of 2 bytes.
32099
32100 2008-05-30 Robert Millan <rmh@aybabtu.com>
32101
32102 * util/grub.d/00_header.in: Remove obsolete comment referencing
32103 convert_system_path_to_grub_path().
32104 * util/update-grub.in: Likewise.
32105 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
32106 (convert_system_path_to_grub_path): Add a warning message explaining
32107 that this function is deprecated. Rely on is_path_readable_by_grub()
32108 for the readability checks.
32109 (font_path): Use is_path_readable_by_grub() for the readability
32110 check rather than convert_system_path_to_grub_path().
32111
32112 2008-05-30 Robert Millan <rmh@aybabtu.com>
32113
32114 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
32115 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
32116 converting it first.
32117 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
32118 grub.cfg for access to font file, and afterwards call it again to set
32119 the root device.
32120
32121 2008-05-30 Robert Millan <rmh@aybabtu.com>
32122
32123 * commands/search.c (options): Add --fs_uuid option.
32124 (search_fs_uuid): New function.
32125 (grub_cmd_search): Fix --set argument passing.
32126 Use search_fs_uuid() when requested via --fs_uuid.
32127 (grub_search_init): Update help message.
32128 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
32129 and redeclare it as an array of 16-bit words.
32130 (grub_ext2_uuid): New function.
32131 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
32132 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
32133 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
32134 (GRUB_DEVICE_BOOT_UUID): New variables.
32135 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
32136 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
32137 whenever possible.
32138 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
32139 just assume `root' variable has the right value.
32140 * util/grub.d/10_linux.in: Likewise.
32141 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
32142 via PRINT_FS_UUID.
32143 (main): Recognise `-t fs_uuid' argument.
32144
32145 2008-05-30 Robert Millan <rmh@aybabtu.com>
32146
32147 * util/biosdisk.c (map): Redefine structure to hold information
32148 about GRUB drive name.
32149 (get_drive): Reimplement without assuming (and verifying) BIOS-like
32150 drive names.
32151 (call_hook): Remove.
32152 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
32153 member. Assume drive has partitions.
32154 (grub_util_biosdisk_open): Access device names via `.device' struct
32155 member.
32156 (open_device): Likewise.
32157 (find_drive): Likewise.
32158 (read_device_map): Adjust map[] usage to match the new struct
32159 definition. Don't check for duplicates (still possible, but not cheap
32160 anymore).
32161 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
32162 (make_device_name): Remove assumption of BIOS-like drive names.
32163
32164 2008-05-30 Pavel Roskin <proski@gnu.org>
32165
32166 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
32167 compiling execute.c doesn't need grub_script.tab.h anymore.
32168 (normal/command.c_DEPENDENCIES): Likewise.
32169 (normal/function.c_DEPENDENCIES): Likewise.
32170 * conf/i386-ieee1275.rmk: Likewise.
32171 * conf/i386-linuxbios.rmk: Likewise.
32172 * conf/i386-pc.rmk: Likewise.
32173 * conf/powerpc-ieee1275.rmk: Likewise.
32174 * conf/sparc64-ieee1275.rmk: Likewise.
32175
32176 2008-05-29 Pavel Roskin <proski@gnu.org>
32177
32178 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
32179 when scanning metadata for volume group name.
32180
32181 * include/grub/script.h: Don't include grub_script.tab.h. It's
32182 a generated file, which may only be included from the files with
32183 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
32184 use union YYSTYPE, as the later allows forward declaration.
32185 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
32186
32187 2008-05-29 Robert Millan <rmh@aybabtu.com>
32188
32189 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
32190 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
32191 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
32192 (grub_console_checkkey): Add grub_dprintf() call to report unknown
32193 scan codes.
32194
32195 2008-05-29 Robert Millan <rmh@aybabtu.com>
32196
32197 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
32198 control key combinations.
32199
32200 2008-05-29 Robert Millan <rmh@aybabtu.com>
32201
32202 * util/powerpc/ieee1275/grub-install.in: Move from here ...
32203 * util/ieee1275/grub-install.in: ... to here.
32204 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
32205 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
32206 (grub_install_SOURCES): Likewise.
32207
32208 2008-05-29 Robert Millan <rmh@aybabtu.com>
32209
32210 * fs/affs.c: Update copyright year.
32211 * fs/ext2.c: Likewise.
32212 * fs/fshelp.c: Likewise.
32213 * fs/hfsplus.c: Likewise.
32214 * fs/ntfs.c: Likewise.
32215 * fs/xfs.c: Likewise.
32216 * include/grub/fshelp.h: Likewise.
32217 * util/grub-mkdevicemap.c: Likewise.
32218
32219 2008-05-28 Robert Millan <rmh@aybabtu.com>
32220
32221 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
32222 might need to be fatfs to support some firmware implementations
32223 (e.g. OFW or EFI).
32224
32225 2008-05-28 Robert Millan <rmh@aybabtu.com>
32226
32227 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
32228 devices.
32229 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32230 (make_device_map): Likewise.
32231
32232 2008-05-20 Bean <bean123ch@gmail.com>
32233
32234 * fs/fshelp.c (grub_fshelp_map_block): New function.
32235 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
32236 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
32237
32238 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
32239 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
32240 (grub_fshelp_journal): New structure.
32241 (grub_fshelp_map_block): New function prototype.
32242 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
32243 (grub_fshelp_map_block): Likewise.
32244
32245 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
32246 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
32247 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
32248 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
32249 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
32250 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
32251 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
32252 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
32253 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
32254 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
32255 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
32256 (grub_ext2_sblock): New members for journal support.
32257 (grub_ext3_journal_header): New structure.
32258 (grub_ext3_journal_revoke_header): Likewise.
32259 (grub_ext3_journal_block_tag): Likewise.
32260 (grub_ext3_journal_sblock): Likewise.
32261 (grub_fshelp_node): New members logfile and journal.
32262 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
32263 grub_fshelp_map_block to get real block number.
32264 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
32265 number.
32266 (grub_ext2_read_inode): Likewise.
32267 (grub_ext3_get_journal): New function.
32268 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
32269 (grub_ext2_close): Release memory used by journal.
32270
32271 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
32272 (REISERFS_MAGIC_DESC_BLOCK): New macro.
32273 (grub_reiserfs_transaction_header): Renamed to
32274 grub_reiserfs_description_block, replace field data with real_blocks.
32275 (grub_reiserfs_commit_block): New structure.
32276 (grub_reiserfs_data): New member journal.
32277 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
32278 number.
32279 (grub_reiserfs_read_symlink): Likewise.
32280 (grub_reiserfs_iterate_dir): Likewise.
32281 (grub_reiserfs_open): Likewise.
32282 (grub_reiserfs_read): Likewise.
32283 (grub_reiserfs_get_journal): New function.
32284 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
32285 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
32286 using grub_reiserfs_get_journal.
32287 (grub_reiserfs_close): Release memory used by journal.
32288
32289 * fs/affs.c (grub_affs_read_block): Change block type to
32290 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
32291
32292 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
32293
32294 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
32295
32296 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
32297
32298 * fs/udf.c (grub_udf_read_block): Change block type to
32299 grub_disk_addr_t. Use type cast to avoid warning.
32300
32301 * fs/xfs.c (grub_xfs_read_block): Likewise.
32302
32303 2008-05-16 Christian Franke <franke@computer.org>
32304
32305 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
32306 to ensure that break with ESC will always work.
32307 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
32308 Remove ESC from keyboard queue.
32309
32310 2008-05-16 Christian Franke <franke@computer.org>
32311
32312 * util/biosdisk.c: [__CYGWIN__] Add includes.
32313 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
32314 (get_os_disk): Move variable declarations to OS specific
32315 parts to avoid warning.
32316 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
32317 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
32318 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
32319 Cygwin.
32320 * util/getroot.c: [__CYGWIN__] Add includes.
32321 (strip_extra_slashes): Fix "/" case.
32322 [__CYGWIN__] (get_win32_path): New function.
32323 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
32324 [__CYGWIN__] (find_root_device): Disable.
32325 [__CYGWIN__] (get_bootsec_serial): New function.
32326 [__CYGWIN__] (find_cygwin_root_device): Likewise.
32327 [__linux__] (grub_guess_root_device): Add early returns to simplify
32328 structure.
32329 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
32330 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
32331 check for Linux only.
32332
32333 2008-05-15 Bean <bean123ch@gmail.com>
32334
32335 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
32336 keyboard hang problem in apple's intel mac.
32337
32338 2008-05-09 Robert Millan <rmh@aybabtu.com>
32339
32340 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
32341 devices.
32342 * util/grub-mkdevicemap.c (get_virtio_disk_name)
32343 (make_device_map): Likewise.
32344 Reported by Aurelien Jarno <aurel32@debian.org>
32345
32346 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
32347
32348 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
32349 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
32350 (make_device_map): Output entries for xvd type disks.
32351
32352 2008-05-07 Robert Millan <rmh@aybabtu.com>
32353
32354 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
32355 devices.
32356 * util/grub-mkdevicemap.c (get_cciss_disk_name)
32357 (make_device_map): Likewise.
32358 Reported by Roland Dreier <rdreier@cisco.com>
32359
32360 2008-05-07 Robert Millan <rmh@aybabtu.com>
32361
32362 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
32363 grub_strstr() call. Correct a few mistakes in failure path handling.
32364
32365 2008-05-06 Robert Millan <rmh@aybabtu.com>
32366
32367 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
32368 Do not print a trailing slash (therefore, the root directory is an
32369 empty string).
32370 (convert_system_path_to_grub_path): Do not remove trailing slash
32371 from make_system_path_relative_to_its_root() output.
32372
32373 * util/i386/pc/grub-install.in: Add trailing slash to output from
32374 make_system_path_relative_to_its_root().
32375
32376 2008-05-06 Robert Millan <rmh@aybabtu.com>
32377
32378 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
32379 ensures that output lines aren't intermangled with those sent to
32380 stderr (via grub_util_info()).
32381 * util/grub-probe.c (grub_refresh): Likewise.
32382 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
32383
32384 2008-05-05 Christian Franke <franke@computer.org>
32385
32386 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
32387 Add Cygwin device names.
32388 (get_ide_disk_name) [__CYGWIN__]: Likewise.
32389 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
32390 (check_device): Return error instead of success on empty name.
32391 (make_device_map): Move label inside linux specific code to
32392 prevent compiler warning.
32393
32394 2008-04-30 Robert Millan <rmh@aybabtu.com>
32395
32396 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
32397 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
32398 first boot option.
32399 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
32400
32401 2008-04-29 Robert Millan <rmh@aybabtu.com>
32402
32403 * docs/grub.cfg: New file (example GRUB configuration).
32404
32405 2008-04-26 Robert Millan <rmh@aybabtu.com>
32406
32407 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
32408 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
32409 and `disk/ieee1275/nand.c'.
32410
32411 2008-04-25 Bean <bean123ch@gmail.com>
32412
32413 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
32414 i386-linuxbios.
32415
32416 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
32417 change the buffer size to 4096 for cdrom device.
32418
32419 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
32420 and nand.mod.
32421 (_linux_mod_SOURCES): New variable.
32422 (_linux_mod_CFLAGS): Likewise.
32423 (_linux_mod_LDFLAGS): Likewise.
32424 (linux_mod_SOURCES): Likewise.
32425 (linux_mod_CFLAGS): Likewise.
32426 (linux_mod_LDFLAGS): Likewise.
32427 (nand_mod_SOURCES): Likewise.
32428 (nand_mod_CFLAGS): Likewise.
32429 (nand_mod_LDFLAGS): Likewise.
32430
32431 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
32432 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
32433 type property. (nand device in olpc don't have this property)
32434
32435 * include/grub/disk.h (grub_disk_dev_id): New macro
32436 GRUB_DISK_DEVICE_NAND_ID.
32437
32438 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
32439 function prototype.
32440 (grub_rescue_cmd_initrd): Likewise.
32441
32442 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
32443 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
32444 ofw_cif_handler and ofw_idt, adjust padding number.
32445
32446 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
32447 GRUB_MACHINE_IEEE1275 is defined.
32448
32449 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
32450 Use NESTED_FUNC_ATTR attribute on the hook parameter.
32451
32452 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
32453 on nested function heap_init.
32454 (grub_upper_mem): New variable for i386-ieee1275.
32455 (grub_get_extended_memory): New function for i386-ieee1275.
32456 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
32457
32458 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
32459 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
32460 property.
32461
32462 * loader/i386/ieee1275/linux.c: New file.
32463
32464 * loader/i386/ieee1275/linux_normal.c: New file.
32465
32466 * disk/ieee1275/nand.c: New file.
32467
32468 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
32469
32470 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
32471 value.
32472 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
32473
32474 2008-04-18 Robert Millan <rmh@aybabtu.com>
32475
32476 Restructures early code path on ieee1275 to unify grub_main() as
32477 the first C function that is executed in every platform.
32478
32479 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
32480 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
32481 cmain().
32482 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
32483 * kern/ieee1275/cmain.c (cmain): Rename to ...
32484 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
32485 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
32486 at the beginning.
32487
32488 2008-04-18 Robert Millan <rmh@aybabtu.com>
32489
32490 * util/update-grub.in: Fix syntax error when setting
32491 `GRUB_PRELOAD_MODULES'.
32492 Reported by Stephane Chazelas <stephane@artesyncp.com>
32493
32494 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
32495
32496 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
32497 section into account, newer toolchains generate unique build ids
32498 * configure.ac: remove the test for --build-id=none acceptance,
32499 we want build ids to be preserved
32500 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
32501 far from other sections don't cause the raw binary images grow
32502 size
32503
32504 2008-04-15 Robert Millan <rmh@aybabtu.com>
32505
32506 * disk/lvm.c: Update copyright year.
32507 * kern/misc.c: Likewise.
32508
32509 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32510
32511 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
32512 there is no memory left for physical volume name.
32513
32514 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32515
32516 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
32517 volume name mapping to support bigger than 9 character names properly.
32518
32519 2008-04-13 Robert Millan <rmh@aybabtu.com>
32520
32521 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
32522 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
32523
32524 2008-04-13 Christian Franke <franke@computer.org>
32525
32526 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
32527 to create a floppy emulation boot CD when non emulation mode
32528 does not work.
32529 Enable Joliet CD filesystem extension.
32530
32531 2008-04-13 Robert Millan <rmh@aybabtu.com>
32532
32533 * kern/misc.c (grub_strncat): Fix off-by-one error.
32534 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
32535
32536 * kern/env.c (grub_env_context_close): Clear current context, not
32537 previous one.
32538 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
32539
32540 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
32541
32542 2008-04-13 Robert Millan <rmh@aybabtu.com>
32543
32544 Improve robustness when handling LVM.
32545
32546 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
32547 (and leave `*p' unmodified).
32548 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
32549 through it.
32550 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
32551 iterating through it.
32552 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
32553 through it.
32554 (grub_lvm_scan_device): Check the return value (and fail gracefully
32555 when due) on each grub_lvm_getvalue() or grub_strstr() call.
32556 Don't assume `vg->pvs != NULL' when iterating through it.
32557
32558 2008-04-13 Robert Millan <rmh@aybabtu.com>
32559
32560 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
32561 * genmk.rb (partmap): New variable.
32562 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
32563 (#{partmap}): New target rule.
32564 * genpartmaplist.sh: New file.
32565 * Makefile.in (pkglib_DATA): Add partmap.lst.
32566 (partmap.lst): New target rule.
32567 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
32568 modules (including all partition maps), instead of preloading them.
32569
32570 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
32571
32572 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
32573 `linux-boot-prober' (if installed) to detect other operating
32574 systems which are installed on the computer and add them to
32575 the boot menu.
32576 * conf/common.rmk: Build and install 30_os-prober.
32577
32578 2008-04-12 Robert Millan <rmh@aybabtu.com>
32579
32580 * kern/powerpc/ieee1275/init.c: Move from here ...
32581 * kern/ieee1275/init.c: ... to here. Update all users.
32582
32583 * kern/powerpc/ieee1275/cmain.c: Move from here ...
32584 * kern/ieee1275/cmain.c: ... to here. Update all users.
32585
32586 * kern/powerpc/ieee1275/openfw.c: Move from here ...
32587 * kern/ieee1275/openfw.c: ... to here. Update all users.
32588
32589 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
32590 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
32591
32592 2008-04-10 Pavel Roskin <proski@gnu.org>
32593
32594 * configure.ac: Always use "_cv_" in cache variables for
32595 compatibility with Autoconf 2.62.
32596
32597 2008-04-07 Robert Millan <rmh@aybabtu.com>
32598
32599 Revert grub/machine/init.h addition by Pavel (since it breaks on
32600 i386-ieee1275 and others):
32601 * util/i386/pc/misc.c: Remove grub/machine/init.h.
32602 * util/powerpc/ieee1275/misc.c: Likewise.
32603
32604 2008-04-07 Robert Millan <rmh@aybabtu.com>
32605
32606 * util/grub-probe.c (probe): Improve error message.
32607
32608 2008-04-07 Robert Millan <rmh@aybabtu.com>
32609
32610 * util/biosdisk.c (read_device_map): Skip devices that don't exist
32611 (this prevents the presence of a bogus entry from ruining the whole
32612 thing).
32613
32614 2008-04-06 Pavel Roskin <proski@gnu.org>
32615
32616 * util/biosdisk.c: Include grub/util/biosdisk.h.
32617 * util/grub-fstest.c (execute_command): Make static.
32618 * util/grub-mkdevicemap.c (check_device): Likewise.
32619 * util/i386/pc/misc.c: Include grub/machine/init.h.
32620 * util/powerpc/ieee1275/misc.c: Likewise.
32621 * util/lvm.c: Include grub/util/lvm.h.
32622 * util/misc.c: Include grub/kernel.h, grub/misc.h and
32623 grub/cache.h.
32624 * util/raid.c: Include grub/util/raid.h.
32625 (grub_util_getdiskname): Make static.
32626
32627 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
32628 grub_hostfs_fini(), as they are called from grub_init_all() and
32629 grub_fini_all() respectively. This fixes an infinite loop in
32630 grub-fstest due to double registration of hostfs.
32631 Reported by Christian Franke <Christian.Franke@t-online.de>
32632
32633 2008-04-05 Pavel Roskin <proski@gnu.org>
32634
32635 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
32636 all 8 functions. Otherwise, probe function 0 only.
32637
32638 2008-04-04 Pavel Roskin <proski@gnu.org>
32639
32640 * commands/lspci.c (grub_lspci_iter): Print the bus number
32641 correctly.
32642
32643 * commands/lspci.c (grub_pci_classes): Fix typos.
32644 (grub_lspci_iter): Don't print func twice. Print vendor ID
32645 before device ID, as it's normally done.
32646
32647 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
32648 Fix signedness warnings.
32649 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
32650 Likewise.
32651 * util/ieee1275/get_disk_name.c: Include config.h so that
32652 _GNU_SOURCE is defined and getline() is declared. Mark an
32653 unused argument as such. Fix a signedness warning.
32654
32655 2008-04-02 Pavel Roskin <proski@gnu.org>
32656
32657 * genkernsyms.sh.in: Use more robust assignments for CC and
32658 srcdir. Quote srcdir.
32659 * gensymlist.sh.in: Likewise. Assert at the compile time that
32660 the symbol table is not empty.
32661
32662 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
32663 * fs/cpio.c (grub_cpio_read): Likewise.
32664
32665 2008-04-01 Pavel Roskin <proski@gnu.org>
32666
32667 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
32668 * disk/host.c (grub_host_open): Likewise.
32669 * disk/loopback.c (grub_loopback_open): Likewise.
32670 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
32671 disk->id as in disk/host.c, not a multi-character constant.
32672
32673 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
32674 later is obsolete, potentially dangerous and sets a bad example.
32675 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
32676 * util/misc.c (grub_util_get_image_size): Likewise.
32677
32678 * disk/loopback.c (options): Improve help for "--partitions".
32679
32680 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
32681 options to align them with the short options, e.g. "echo -e".
32682
32683 2008-03-31 Bean <bean123ch@gmail.com>
32684
32685 * video/reader/png.c (grub_png_data): New member is_16bit and
32686 image_data.
32687 (grub_png_decode_image_header): Detect 16 bit png image.
32688 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
32689 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
32690 (grub_video_reader_png): Release memory occupied by image_data.
32691
32692 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
32693 4096 bytes.
32694 (grub_nfs_mount): Skip the test for sector per cluster.
32695
32696 * include/grub/ntfs.h (MAX_SPC): Removed.
32697
32698 2008-03-31 Bean <bean123ch@gmail.com>
32699
32700 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
32701 (grub_probe_SOURCES): Add fs/afs.c.
32702 (grub_fstest_SOURCES): Likewise.
32703 (afs_mod_SOURCES): New variable.
32704 (afs_mod_CFLAGS): Likewise.
32705 (afs_mod_LDFLAGS): Likewise.
32706
32707 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
32708 (grub_emu_SOURCES): Likewise.
32709
32710 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32711
32712 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32713
32714 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32715
32716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32717
32718 * fs/afs.c: New file.
32719
32720 2008-03-30 Pavel Roskin <proski@gnu.org>
32721
32722 * disk/host.c: Include grub/misc.h to fix a warning.
32723 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
32724 warnings about implicit declarations.
32725
32726 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
32727 variable.
32728 * include/grub/i386/loader.h: Change declaration of
32729 grub_linux_boot() to match what grub_loader_set() expects.
32730 * util/getroot.c (grub_guess_root_device): Return const char* to
32731 fix a warning.
32732 * util/grub-probe.c (probe): Fix a warning about uninitialized
32733 abstraction_name variable.
32734 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
32735 second argument as unused to fix a warning.
32736
32737 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
32738 missing grub_error() call.
32739
32740 * util/update-grub_lib.in: Define datarootdir, since Autoconf
32741 2.60 and newer uses it to define datadir.
32742
32743 * commands/sleep.c: Fix warning about implicit declaration.
32744 * disk/memdisk.c: Likewise.
32745 * loader/aout.c: Likewise.
32746 * loader/i386/bsd_normal.c: Likewise.
32747 * util/grub-probe.c: Likewise.
32748
32749 * commands/i386/cpuid.c (has_longmode): Make static.
32750 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
32751 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
32752
32753 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
32754 GDT. This is more robust, as %ds can change.
32755 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
32756 calling real_to_prot().
32757 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
32758
32759 2008-03-28 Pavel Roskin <proski@gnu.org>
32760
32761 * kern/i386/pc/startup.S: Assert that uncompressed functions
32762 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
32763 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
32764 code, as they push parts of the code (error handlers) beyond
32765 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
32766 code as correctness and size.
32767
32768 2008-03-28 Pavel Roskin <proski@gnu.org>
32769
32770 * kern/i386/pc/startup.S
32771 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
32772 data block address to the real mode, keep offset minimal. This
32773 works around a bug in AWARD BIOS on old Athlon systems, which
32774 makes CD detection hang.
32775
32776 2008-03-26 Pavel Roskin <proski@gnu.org>
32777
32778 * normal/color.c (grub_parse_color_name_pair): Make `name' a
32779 const.
32780 * include/grub/normal.h: Add grub_parse_color_name_pair()
32781 declaration.
32782
32783 2008-03-24 Bean <bean123ch@gmail.com>
32784
32785 * disk/i386/pc/biosdisk.c (cd_start): Removed.
32786 (cd_count): Removed.
32787 (cd_drive): New variable.
32788 (grub_biosdisk_get_drive): Don't check for (cdN) device.
32789 (grub_biosdisk_call_hook): Likewise.
32790 (grub_biosdisk_iterate): Change cdrom detection method.
32791 (grub_biosdisk_open): Replace cd_start with cd_drive.
32792 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
32793 detect cdrom device.
32794
32795 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
32796 Removed.
32797 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
32798 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
32799 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
32800 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
32801 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
32802 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
32803 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
32804 (grub_biosdisk_cdrp): New structure.
32805 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
32806
32807 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
32808
32809 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
32810 device.
32811
32812 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
32813 New function.
32814
32815 2008-03-20 Robert Millan <rmh@aybabtu.com>
32816
32817 Remove 2 TiB limit in ata.mod.
32818 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
32819 (grub_ata_dumpinfo): Print sector count with 0x%llx.
32820 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
32821 grub_uint64_t instead of grub_uint32_t.
32822
32823 2008-03-05 Bean <bean123ch@gmail.com>
32824
32825 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
32826 (grub_multiboot): Set boot device.
32827
32828 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
32829
32830 2008-03-02 Bean <bean123ch@gmail.com>
32831
32832 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
32833 symlink_buffer.
32834
32835 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
32836
32837 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
32838 texinfo.tex.
32839
32840 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
32841 modified.
32842
32843 * docs/fdl.texi: New file.
32844
32845 * docs/mdate-sh: New file. Copied from gnulib.
32846 * docs/texinfo.tex: Likewise.
32847
32848 * config.guess: Updated from gnulib.
32849 * install-sh: Likewise.
32850
32851 2008-02-28 Robert Millan <rmh@aybabtu.com>
32852
32853 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
32854 (aout_mod_SOURCES): New variable.
32855 (aout_mod_CFLAGS): Likewise.
32856 (aout_mod_LDFLAGS): Likewise.
32857
32858 * conf/i386-ieee1275.rmk: Likewise.
32859
32860 2008-02-28 Robert Millan <rmh@aybabtu.com>
32861
32862 * util/update-grub.in: Reorganise terminal validity check. Accept
32863 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
32864 Based on suggestion by Franklin PIAT.
32865
32866 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
32867
32868 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
32869 function.
32870 * util/getroot.c (grub_util_check_block_device): New function that
32871 returns the given argument if it is a block device and returns NULL else.
32872 * util/grub-probe.c (argument_is_device): New variable.
32873 (probe): Promote device_name from a variable to an argument. Receive
32874 device_name from grub_util_check_block_device() if path is NULL and from
32875 grub_guess_root_device() else. Do not free() device_name anymore.
32876 (options): Introduce new parameter '-d, --device'.
32877 (main): Add description of the new parameter to the help screen.
32878 Rename path variable to argument. Set argument_is_device if the '-d'
32879 option is given. Pass argument to probe() depending on
32880 argument_is_device.
32881
32882 2008-02-24 Bean <bean123ch@gmail.com>
32883
32884 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
32885 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
32886 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
32887 (GRUB_ISO9660_VOLDESC_PART): Likewise.
32888 (GRUB_ISO9660_VOLDESC_END): Likewise.
32889 (grub_iso9660_primary_voldesc): New member escape.
32890 (grub_iso9660_data): New member joliet.
32891 (grub_iso9660_convert_string): New function.
32892 (grub_iso9660_mount): Detect joliet extension.
32893 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
32894 (grub_iso9660_iso9660_label): Likewise.
32895
32896 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
32897 (grub_setup_SOURCES): Add fs/udf.c.
32898 (grub_fstest_SOURCES): Likewise.
32899 (udf_mod_SOURCES): New variable.
32900 (udf_mod_CFLAGS): Likewise.
32901 (udf_mod_LDFLAGS): Likewise.
32902
32903 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
32904 (grub_emu_SOURCES): Likewise.
32905
32906 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32907
32908 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32909
32910 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32911
32912 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32913
32914 * fs/udf.c: New file.
32915
32916 2008-02-24 Robert Millan <rmh@aybabtu.com>
32917
32918 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
32919 (normal/lexer.c_DEPENDENCIES): New variables.
32920 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
32921 (normal/lexer.c_DEPENDENCIES): Likewise.
32922 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
32923 (normal/lexer.c_DEPENDENCIES): Likewise.
32924 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
32925 (normal/lexer.c_DEPENDENCIES): Likewise.
32926 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
32927 (normal/lexer.c_DEPENDENCIES): Likewise.
32928 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
32929 (normal/lexer.c_DEPENDENCIES): Likewise.
32930
32931 2008-02-23 Robert Millan <rmh@aybabtu.com>
32932
32933 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
32934 since they were intended to be in hex. This didn't break previously
32935 because of a bug in gpt_partition_map_iterate() (see below).
32936
32937 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
32938 when checking the validity of GPT header.
32939 Remove `partno', since it always provides the same information as `i'.
32940
32941 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
32942
32943 * include/grub/efi/time.h: Fix a wrong comment.
32944
32945 2008-02-19 Pavel Roskin <proski@gnu.org>
32946
32947 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
32948 message.
32949
32950 2008-02-19 Bean <bean123ch@gmail.com>
32951
32952 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
32953 (aout_mod_SOURCES): New variable.
32954 (aout_mod_CFLAGS): Likewise.
32955 (aout_mod_LDFLAGS): Likewise.
32956 (_bsd_mod_SOURCES): New variable.
32957 (_bsd_mod_CFLAGS): Likewise.
32958 (_bsd_mod_LDFLAGS): Likewise.
32959 (bsd_mod_SOURCES): New variable.
32960 (bsd_mod_CFLAGS): Likewise.
32961 (bsd_mod_LDFLAGS): Likewise.
32962
32963 * include/grub/aout.h: New file.
32964
32965 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
32966
32967 * include/grub/i386/bsd.h: New file.
32968
32969 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
32970 to make it public.
32971
32972 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
32973 function is called, so that it's possible to change it inside the hook.
32974 (grub_elf64_load): Likewise.
32975 (grub_elf_file): Don't close the file if elf header is not found.
32976 (grub_elf_close): Close the file if grub_elf_file fails (The new
32977 grub_elf_file won't close it).
32978 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
32979 (grub_elf64_size): Likewise.
32980
32981 * kern/i386/loader.S (grub_unix_real_boot): New function.
32982
32983 * loader/aout.c: New file.
32984
32985 * loader/i386/bsd.c: New file.
32986
32987 * loader/i386/bsd_normal.c: New file.
32988
32989 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
32990
32991 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
32992 can test other formats.
32993
32994 2008-02-19 Robert Millan <rmh@aybabtu.com>
32995
32996 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
32997 (grub_gpt_partition_type_empty): Redefine with macro from
32998 `<grub/gpt_partition.h>'.
32999 (gpt_partition_map_iterate): Adjust partition type comparison.
33000
33001 Export `entry' as partmap-specific `part.data' struct.
33002 (grub_gpt_header, grub_gpt_partentry): Move from here ...
33003
33004 * include/grub/gpt_partition.h (grub_gpt_header)
33005 (grub_gpt_partentry): ... to here (new file).
33006
33007 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
33008
33009 (grub_gpt_partition_type_bios_boot): New const variable, defined
33010 with macro from `<grub/gpt_partition.h>'.
33011
33012 (setup): Replace `first_start' with `embed_region', which keeps
33013 track of the embed region (and is partmap-agnostic).
33014
33015 Replace find_first_partition_start() with find_usable_region(),
33016 which finds a usable region for embedding using partmap-specific
33017 knowledge (supports PC/MSDOS and GPT).
33018
33019 Fix all assumptions that the embed region start at sector 1, using
33020 `embed_region.start' from now on. Similarly, use `embed_region.end'
33021 rather than `first_start' to calculate available size.
33022
33023 In grub_util_info() message, replace "into after the MBR" with an
33024 indication of the specific sector our embed region starts at.
33025
33026 2008-02-19 Robert Millan <rmh@aybabtu.com>
33027
33028 * DISTLIST: Replace `commands/ieee1275/halt.c' and
33029 `commands/ieee1275/reboot.c' with `commands/halt.c' and
33030 `commands/reboot.c'.
33031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33032 (halt_mod_SOURCES): Likewise.
33033 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33034 (halt_mod_SOURCES): Likewise.
33035
33036 2008-02-17 Christian Franke <franke@computer.org>
33037
33038 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
33039
33040 2008-02-17 Robert Millan <rmh@aybabtu.com>
33041
33042 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33043 set `first_start' to 0 for non-PC/MSDOS partition maps.
33044
33045 2008-02-16 Robert Millan <rmh@aybabtu.com>
33046
33047 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33048 do not assume partition map is PC/MSDOS before performing checks that
33049 are specific to that layout.
33050
33051 2008-02-13 Robert Millan <rmh@aybabtu.com>
33052
33053 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
33054 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
33055 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
33056
33057 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
33058
33059 * configure.ac: Only a cosmetic change on the handling of
33060 -fno-stack-protector.
33061
33062 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
33063
33064 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
33065 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
33066 reboot.c.
33067 (grub_install_SOURCES): Add halt.mod and reboot.mod.
33068 (halt_mod_SOURCES): New variable.
33069 (halt_mod_CFLAGS): Likewise.
33070 (halt_mod_LDFLAGS): Likewise.
33071 (reboot_mod_SOURCES): Likewise.
33072 (reboot_mod_CFLAGS): Likewise.
33073 (reboot_mod_LDFLAGS): Likewise.
33074
33075 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
33076 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
33077 reboot.c.
33078 (halt_mod_SOURCES): Likewise.
33079 (reboot_mod_SOURCES): Likewise.
33080
33081 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
33082 commands/i386/pc/reboot.c by commands/reboot.c.
33083 (reboot_mod_SOURCES): Likewise.
33084
33085 * commands/i386/pc/reboot.c: merge this file ...
33086
33087 * commands/ieee1275/reboot.c: ... and this file ...
33088
33089 * commands/reboot.c: ... to this file.
33090 Add some precompiler directive to include the correct header for
33091 each machine.
33092
33093 * commands/ieee1275/halt.c: move this file ...
33094
33095 * commands/halt.c: ... to here.
33096 Add some precompiler directive to include the correct header for
33097 each machine.
33098
33099 * include/grub/efi/efi.h (grub_reboot): New function declaration.
33100 (grub_halt): Likewise.
33101
33102 * kern/efi/efi.c (grub_reboot): New function.
33103 (grub_halt): Likewise.
33104
33105 2008-02-12 Robert Millan <rmh@aybabtu.com>
33106
33107 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
33108 /dev (like it is done for /dev/mapper). This doesn't provide support
33109 for EVMS, but at least it is now easy to identify the problem when it
33110 arises.
33111
33112 2008-02-11 Robert Millan <rmh@aybabtu.com>
33113
33114 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
33115 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
33116 comparing it with -1, not 0.
33117
33118 2008-02-10 Robert Millan <rmh@aybabtu.com>
33119
33120 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
33121 `disk/lvm.c'.
33122 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33123 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
33124
33125 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
33126 `disk/lvm.c' to the end of the list.
33127 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33128 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33129
33130 2008-02-10 Robert Millan <rmh@aybabtu.com>
33131
33132 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
33133 grub_print_error() instead. This will let user know why we're entering
33134 rescue mode.
33135 Based on suggestions from Sam Morris.
33136
33137 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
33138
33139 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
33140 on remaining N args, instead of "--" arg N times.
33141
33142 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
33143
33144 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
33145 (fill_with_default_glyph): Changed to use unknown_glyph for fill
33146 pattern for unknown glyphs.
33147
33148 2008-02-09 Robert Millan <rmh@aybabtu.com>
33149
33150 * configure.ac: Probe for `help2man'.
33151 * Makefile.in (builddir): New variable.
33152 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
33153 or otherwise add a few flags/options to it.
33154 (install-local): For every executable utility or script that is
33155 installed, invoke $(HELP2MAN) to install a manpage based on --help
33156 output.
33157
33158 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
33159 that it doesn't prevent --help from working in build tree.
33160
33161 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
33162 with `bug-grub@gnu.org'.
33163 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
33164 * util/update-grub.in (usage): New function.
33165 Implement proper argument check, with support for --help and --version
33166 (as well as existing -y).
33167
33168 2008-02-09 Christian Franke <franke@computer.org>
33169
33170 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
33171 avoid overwriting previous output.
33172 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
33173
33174 2008-02-09 Robert Millan <rmh@aybabtu.com>
33175
33176 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
33177 drawing the menu.
33178
33179 2008-02-09 Robert Millan <rmh@aybabtu.com>
33180
33181 * commands/sleep.c: New file.
33182 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
33183 (sleep_mod_SOURCES): New variable.
33184 (sleep_mod_CFLAGS): Likewise.
33185 (sleep_mod_LDFLAGS): Likewise.
33186
33187 2008-02-09 Robert Millan <rmh@aybabtu.com>
33188
33189 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
33190 situations in which we can deduce the RAID size and the superblock
33191 doesn't match it.
33192
33193 2008-02-09 Robert Millan <rmh@aybabtu.com>
33194
33195 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
33196 and return a grub_diskmemberlist_t composed of LVM physical volumes.
33197 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
33198
33199 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
33200 and return a grub_diskmemberlist_t composed of physical array members.
33201 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
33202
33203 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
33204 prototype.
33205 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
33206 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
33207 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
33208
33209 * util/grub-probe.c (probe): Move partmap probing code from here ...
33210 (probe_partmap): ... to here.
33211 (probe): Use probe_partmap() once for the disk we're probing, and
33212 additionally, when such disk contains a memberlist() struct member,
33213 once for each disk that is contained in the structure returned by
33214 memberlist().
33215
33216 2008-02-09 Robert Millan <rmh@aybabtu.com>
33217
33218 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
33219 environment variable to 'all' in order to obtain debug output from
33220 non-util/ code.
33221 * util/i386/pc/grub-setup.c (main): Likewise.
33222
33223 2008-02-08 Robert Millan <rmh@aybabtu.com>
33224
33225 * disk/raid.c (grub_raid_scan_device): Check for
33226 `array->device[sb.this_disk.number]' rather than for
33227 `array->device[sb.this_disk.number]->name', since the latter is not
33228 guaranteed to be accessible.
33229
33230 2008-02-08 Robert Millan <rmh@aybabtu.com>
33231
33232 * disk/raid.c: Update copyright.
33233 * fs/cpio.c: Likewise.
33234 * include/grub/raid.h: Likewise.
33235 * loader/i386/pc/multiboot.c: Likewise.
33236 * util/hostfs.c: Likewise.
33237
33238 2008-02-08 Robert Millan <rmh@aybabtu.com>
33239
33240 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
33241 to a grub_disk_t array.
33242 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
33243 `device[x]'.
33244 (grub_raid_scan_device): Replace `device[x].name' accesses with
33245 `device[x]->name'. Simplify initialization of `array->device[x]'.
33246
33247 2008-02-08 Robert Millan <rmh@aybabtu.com>
33248
33249 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
33250 grub_dprintf() calls.
33251 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
33252 error message.
33253
33254 2008-02-07 Christian Franke <franke@computer.org>
33255
33256 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
33257 instead of fseek and ftell to support large files.
33258 (grub_hostfs_read): Likewise.
33259
33260 2008-02-07 Robert Millan <rmh@aybabtu.com>
33261
33262 Patch from Jeroen Dekkers.
33263 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
33264 failure, since successfully reading all array members might not be
33265 required.
33266
33267 2008-02-06 Robert Millan <rmh@aybabtu.com>
33268
33269 * util/grub-probe.c (probe): Simplify partmap probing (with the
33270 assumption that the first word up to the underscore equals to
33271 the module name).
33272
33273 2008-02-06 Christian Franke <franke@computer.org>
33274
33275 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
33276 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
33277 last block of a cpio or tar stream.
33278 Check for "TRAILER!!!" instead of any empty data
33279 block to detect last block of a cpio stream.
33280 (grub_cpio_dir): Fix constness of variable np.
33281 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
33282 cpio or tar trailer is detected. This fixes a crash
33283 on open of a non existing file.
33284
33285 2008-02-05 Bean <bean123ch@gmail.com>
33286
33287 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
33288 address of entry.
33289 (grub_multiboot_load_elf64): Likewise.
33290 (grub_multiboot): Initialize mbi structure.
33291
33292 * util/grub-fstest.c: Don't include unused header file script.h.
33293
33294 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
33295 of file.
33296 (grub_fstest_SOURCES): Likewise.
33297
33298 2008-02-05 Robert Millan <rmh@aybabtu.com>
33299
33300 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
33301 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
33302 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
33303 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
33304
33305 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
33306 (translation_table): Replace hardcoded values with macros
33307 provided by `<grub/term.h>'.
33308
33309 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
33310 (keyboard_map): Correct/add a few values, with macros provided
33311 by `<grub/term.h>'.
33312 (keyboard_map_shift): Zero values that don't differ from their
33313 `keyboard_map' equivalents.
33314 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
33315 Discard the second scan code that is always sent by Caps lock.
33316 Only use `keyboard_map_shift' when it provides a non-zero value,
33317 otherwise fallback to `keyboard_map'.
33318
33319 2008-02-04 Bean <bean123ch@gmail.com>
33320
33321 * Makefile.in (enable_grub_fstest): New variable.
33322
33323 * conf/common.rmk (grub_fstest_init.lst): New rule.
33324 (grub_fstest_init.h): Likewise.
33325 (grub_fstest_init.c): Likewise.
33326 (util/grub-fstest.c_DEPENDENCIES): New variable.
33327 (grub_fstest_SOURCES): Likewise.
33328
33329 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
33330
33331 * util/grub-fstest.c: New file.
33332
33333 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33334
33335 Make grub-setup handle a separate root device.
33336
33337 * util/i386/pc/grub-setup.c (setup): Always open the root device,
33338 so that the root device can be compared with the destination
33339 device.
33340 When embedding the core image, if the root and destination devices
33341 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
33342 0xFF.
33343 When not embedding, set ROOT_DRIVE to 0xFF.
33344
33345 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33346
33347 Add support for having a grub directory in a different drive. This
33348 is still only the data handling part.
33349
33350 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
33351 (codestart): Save %dh in GRUB_ROOT_DRIVE.
33352 (grub_root_drive): New variable.
33353
33354 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
33355 instead of GRUB_BOOT_DRIVE to construct a device name. Set
33356 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
33357 as it was.
33358
33359 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
33360
33361 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
33362 macro.
33363 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
33364
33365 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
33366 is bogus, because PXE booting does not specify any drive
33367 correctly.
33368
33369 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
33370 am not sure if this is really correct.
33371
33372 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
33373 is always identical to the boot drive when booting from a CD.
33374
33375 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
33376 longer.
33377 (root_drive): New variable.
33378 (real_start): Unconditionally set %dh to ROOT_DRIVE.
33379 (setup_sectors): Push %dx right after popping it, because %dh will
33380 be modified later.
33381 (copy_buffer): Restore %dx.
33382
33383 2008-02-03 Robert Millan <rmh@aybabtu.com>
33384
33385 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
33386 use `cdboot.img' for cdrom images.
33387
33388 2008-02-03 Robert Millan <rmh@aybabtu.com>
33389
33390 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
33391 only setup gfxterm when `font' command has succeeded.
33392
33393 2008-02-03 Robert Millan <rmh@aybabtu.com>
33394
33395 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
33396 (grub_rescue_cmd_multiboot_loader)
33397 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
33398
33399 2008-02-03 Pavel Roskin <proski@gnu.org>
33400
33401 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
33402 %edx and %esi from stack only after grub_gate_a20() is called.
33403 grub_gate_a20() clobbers %edx.
33404
33405 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33406
33407 * configure.ac (AC_INIT): Bumped to 1.96.
33408
33409 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
33410 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
33411 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
33412 video/readers/png.c.
33413
33414 2008-02-03 Bean <bean123ch@gmail.com>
33415
33416 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
33417 (cdboot_img_SOURCES): New variable.
33418 (cdboot_img_ASFLAGS): New variable.
33419 (cdboot_img_LDFLAGS): New variable.
33420
33421 * boot/i386/pc/cdboot.S: New file.
33422
33423 * disk/i386/pc/biosdisk.c (cd_start): New variable.
33424 (cd_count): Likewise.
33425 (grub_biosdisk_get_drive): Add support for cd device.
33426 (grub_biosdisk_call_hook): Likewise.
33427 (grub_biosdisk_iterate): Likewise.
33428 (grub_biosdisk_open): Likewise.
33429 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
33430 (grub_biosdisk_rw): Support reading from cd device.
33431 (GRUB_MOD_INIT): Iterate cd devices.
33432
33433 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
33434 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
33435 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
33436
33437 * kern/i386/pc/init.c (make_install_device): Check for cd device.
33438
33439 2008-02-02 Robert Millan <rmh@aybabtu.com>
33440
33441 * commands/read.c: New file.
33442 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
33443 (read_mod_SOURCES): New variable.
33444 (read_mod_CFLAGS): Likewise.
33445 (read_mod_LDFLAGS): Likewise.
33446
33447 2008-02-02 Robert Millan <rmh@aybabtu.com>
33448
33449 * normal/main.c (grub_normal_execute): Check for `menu->size' when
33450 determining whether menu has to be displayed.
33451
33452 2008-02-02 Marco Gerards <marco@gnu.org>
33453
33454 * bus/pci.c: New file.
33455
33456 * include/grub/pci.h: Likewise.
33457
33458 * include/grub/i386/pc/pci.h: Likewise.
33459
33460 * commands/lspci.c: Likewise.
33461
33462 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
33463 `lspci.mod'.
33464 (pci_mod_SOURCES): New variable.
33465 (pci_mod_CFLAGS): Likewise.
33466 (pci_mod_LDFLAGS): Likewise.
33467 (lspci_mod_SOURCES): Likewise.
33468 (lspci_mod_CFLAGS): Likewise.
33469 (lspci_mod_LDFLAGS): Likewise.
33470
33471 2008-02-02 Bean <bean123ch@gmail.com>
33472
33473 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
33474 (grub_ufs_get_file_block): Fix indirect block calculation problem.
33475
33476 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
33477 (grub_xfs_btree_node): New structure.
33478 (grub_xfs_btree_root): New structure.
33479 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
33480 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
33481 (GRUB_XFS_EXTENT_BLOCK): Likewise.
33482 (GRUB_XFS_EXTENT_SIZE): Likewise.
33483 (grub_xfs_read_block): Support btree format type.
33484 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
33485 Use directory block as basic unit.
33486
33487 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
33488
33489 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
33490 __attribute__ ((__regparm__ (1))).
33491
33492 2008-02-01 Robert Millan <rmh@aybabtu.com>
33493
33494 Correct a mistake in previous commit.
33495
33496 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
33497 top.
33498 (normal/command.c_DEPENDENCIES): New variable.
33499
33500 2008-02-01 Robert Millan <rmh@aybabtu.com>
33501
33502 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
33503 top.
33504 (normal/command.c_DEPENDENCIES): New variable.
33505 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
33506 * conf/i386-ieee1275.rmk: Likewise.
33507 * conf/i386-linuxbios.rmk: Likewise.
33508 * conf/i386-pc.rmk: Likewise.
33509 * conf/sparc64-ieee1275.rmk: Likewise.
33510 * conf/powerpc-ieee1275.rmk: Likewise.
33511 (grub_emu_SOURCES): Add `fs/fshelp.c'.
33512
33513 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
33514
33515 2008-02-01 Robert Millan <rmh@aybabtu.com>
33516
33517 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
33518 call at beginning of function.
33519
33520 2008-01-31 Pavel Roskin <proski@gnu.org>
33521
33522 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
33523 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
33524 (grub_mkrescue_SOURCES): Likewise.
33525 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
33526
33527 2008-01-30 Robert Millan <rmh@aybabtu.com>
33528
33529 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
33530 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
33531 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
33532 (grub_probe_SOURCES): ... to here.
33533
33534 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
33535 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
33536 * conf/i386-ieee1275.rmk: Likewise.
33537 * conf/i386-linuxbios.rmk: Likewise.
33538 * conf/powerpc-ieee1275.rmk: Likewise.
33539
33540 2008-01-30 Tristan Gingold <gingold@free.fr>
33541
33542 * kern/rescue.c: Silently accept empty lines.
33543
33544 2008-01-29 Bean <bean123ch@gmail.com>
33545
33546 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
33547 (real_code_2): Code cleanup and change comment style.
33548 (move_memory): Avoid using 32-bit address mode.
33549
33550 2008-01-29 Bean <bean123ch@gmail.com>
33551
33552 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
33553 (png_mod_SOURCES): New variable.
33554 (png_mod_CFLAGS): Likewise.
33555 (png_mod_LDFLAGS): Likewise.
33556
33557 * video/readers/png.c: New file.
33558
33559 2008-01-28 Robert Millan <rmh@aybabtu.com>
33560
33561 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
33562 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
33563 `ifndef GRUB_MOD_GAP' hack.
33564 * util/elf/grub-mkimage.c (add_segments): Likewise.
33565
33566 2008-01-27 Robert Millan <rmh@aybabtu.com>
33567
33568 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
33569 `GRUB_MOD_GAP' for platforms in which it's not defined.
33570 * util/elf/grub-mkimage.c (add_segments): Likewise.
33571
33572 2008-01-27 Robert Millan <rmh@aybabtu.com>
33573
33574 Get grub-emu to build again (including parallel builds).
33575
33576 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
33577 Split into ...
33578 (util/grub-emu.c_DEPENDENCIES): ... this, ...
33579 (normal/execute.c_DEPENDENCIES): ... this, ...
33580 (grub-emu_DEPENDENCIES): ... and this.
33581
33582 * conf/i386-efi.rmk: Likewise.
33583 * conf/i386-linuxbios.rmk: Likewise.
33584 * conf/i386-ieee1275.rmk: Likewise.
33585 * conf/powerpc-ieee1275.rmk: Likewise.
33586 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
33587
33588 2008-01-27 Robert Millan <rmh@aybabtu.com>
33589
33590 * NEWS: Add a few items.
33591
33592 2008-01-27 Robert Millan <rmh@aybabtu.com>
33593
33594 Fix parallel builds with grub-emu. Based on earlier commit for
33595 grub-probe and grub-setup.
33596
33597 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33598 (util/grub-emu.c_DEPENDENCIES): ... this.
33599 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33600 (util/grub-emu.c_DEPENDENCIES): ... this.
33601 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33602 (util/grub-emu.c_DEPENDENCIES): ... this.
33603 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33604 (util/grub-emu.c_DEPENDENCIES): ... this.
33605 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33606 (util/grub-emu.c_DEPENDENCIES): ... this.
33607
33608 2008-01-27 Pavel Roskin <proski@gnu.org>
33609
33610 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
33611 to create a gap between _end and the modules added to the image
33612 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
33613 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
33614 * util/elf/grub-mkimage.c (add_segments): Likewise.
33615
33616 2008-01-26 Pavel Roskin <proski@gnu.org>
33617
33618 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
33619 just return an error.
33620
33621 2008-01-26 Bean <bean123ch@gmail.com>
33622
33623 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
33624 (grub_reiserfs_get_item): Save offset of the next item.
33625 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
33626
33627 2008-01-25 Robert Millan <rmh@aybabtu.com>
33628
33629 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
33630 make all filesystem sources appear together (possibly fixing omissions
33631 while at it).
33632 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33633 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33634 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33636
33637 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
33638 add `kern/file.c'.
33639 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
33640 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33641 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
33642 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33643
33644 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
33645 (probe): Add a sanity check to make sure of our ability to read
33646 requested files when probing for filesystem type.
33647
33648 * genmk.rb: Update copyright year (2007).
33649
33650 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
33651 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
33652 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
33653 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
33654 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
33655 : Remove function prototypes.
33656
33657 2008-01-25 Robert Millan <rmh@aybabtu.com>
33658
33659 Revert my previous commits (based on wrong assumption of how grub_errno
33660 works).
33661
33662 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
33663 * kern/file.c (grub_file_open): Likewise.
33664
33665 2008-01-24 Pavel Roskin <proski@gnu.org>
33666
33667 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
33668 that hang if GRUB tries to setup colors.
33669 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
33670 colors for firmwares that don't support it.
33671 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
33672 Recognize Open Hack'Ware, set flags to work around its
33673 limitations.
33674
33675 2008-01-24 Robert Millan <rmh@aybabtu.com>
33676
33677 * kern/file.c (grub_file_open): Do not account previous failures of
33678 unrelated functions when grub_errno is checked for.
33679 Reported by Oleg Strikov.
33680
33681 2008-01-24 Bean <bean123ch@gmail.com>
33682
33683 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
33684 (grub_ufs_sblock): New member volume name.
33685 (grub_ufs_find_file): Fix string copy bug.
33686 (grub_ufs_label): Implement this function properly.
33687
33688 * fs/hfs.c (grub_hfs_cnid_type): New enum.
33689 (grub_hfs_iterate_records): Use the correct file number for extents
33690 and catalog file. Fix problem in next index calculation.
33691 (grub_hfs_find_node): Replace recursive function call with loop.
33692 (grub_hfs_iterate_dir): Replace recursive function call with loop.
33693
33694 2008-01-23 Robert Millan <rmh@aybabtu.com>
33695
33696 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
33697 `<grub/symbol.h>' and `<grub/multiboot.h>'.
33698 (grub_multiboot2_real_boot): New function prototype.
33699
33700 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
33701 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
33702
33703 * kern/i386/ieee1275/init.c (grub_os_area_addr)
33704 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
33705
33706 2008-01-23 Robert Millan <rmh@aybabtu.com>
33707
33708 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
33709 #ifdef'ed out grub_printf().
33710
33711 2008-01-23 Robert Millan <rmh@aybabtu.com>
33712
33713 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
33714 grub_dprintf calls, since they make "debug=all" mode unusable.
33715 (grub_console_checkkey): Likewise.
33716
33717 2008-01-23 Robert Millan <rmh@aybabtu.com>
33718
33719 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33720 `term/i386/pc/at_keyboard.c'.
33721 (pkglib_MODULES): Add `serial.mod'.
33722 (serial_mod_SOURCES): New variable.
33723 (serial_mod_CFLAGS): Likewise.
33724 (serial_mod_LDFLAGS): Likewise.
33725
33726 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
33727 `<grub/powerpc/ieee1275/console.h>'.
33728 (grub_keyboard_controller_init): New function prototype.
33729 (grub_console_checkkey): Likewise.
33730 (grub_console_getkey): Likewise.
33731
33732 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
33733 keyboard on i386.
33734
33735 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
33736 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
33737
33738 2008-01-23 Robert Millan <rmh@aybabtu.com>
33739
33740 * kern/i386/pc/init.c (make_install_device): When memdisk image is
33741 present, "(memdisk)/boot/grub" becomes the default prefix.
33742
33743 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
33744 a memdisk tarball with all the modules. Add --overlay=DIR option that
33745 allows users to overlay additional files into the image.
33746
33747 2008-01-23 Robert Millan <rmh@aybabtu.com>
33748
33749 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
33750 and `machine/memory.h'.
33751 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
33752 (_multiboot_mod_SOURCES): New variable.
33753 (_multiboot_mod_CFLAGS): Likewise.
33754 (_multiboot_mod_LDFLAGS): Likewise.
33755 (multiboot_mod_SOURCES): Likewise.
33756 (multiboot_mod_CFLAGS): Likewise.
33757 (multiboot_mod_LDFLAGS): Likewise.
33758
33759 * include/grub/i386/ieee1275/loader.h: New file.
33760
33761 * include/grub/i386/ieee1275/machine.h: Likewise.
33762
33763 * include/grub/i386/ieee1275/memory.h: Likewise.
33764
33765 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
33766 variable declaration.
33767 (grub_os_area_size): Likewise.
33768
33769 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
33770 (grub_lower_mem, grub_upper_mem): New variables.
33771 (grub_stop_floppy): New function (just to make
33772 grub_multiboot2_real_boot() happy).
33773
33774 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
33775 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
33776 (grub_stop): New function.
33777 Include `"../realmode.S"' and `"../loader.S"'.
33778
33779 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
33780 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
33781
33782 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
33783 rely on grub_multiboot2_real_boot() for final boot.
33784
33785 2008-01-22 Robert Millan <rmh@aybabtu.com>
33786
33787 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
33788 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
33789 device that doesn't look like an SD card.
33790 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33791 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
33792 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
33793 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
33794 found.
33795
33796 2008-01-22 Robert Millan <rmh@aybabtu.com>
33797
33798 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
33799 avoid claiming over our own code.
33800
33801 2008-01-22 Bean <bean123ch@gmail.com>
33802
33803 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
33804 (jpeg_mod_SOURCES): New variable.
33805 (jpeg_mod_CFLAGS): Likewise.
33806 (jpeg_mod_LDFLAGS): Likewise.
33807
33808 * video/readers/jpeg.c : New file.
33809
33810 2008-01-22 Bean <bean123ch@gmail.com>
33811
33812 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
33813 there are no more items.
33814
33815 2008-01-21 Robert Millan <rmh@aybabtu.com>
33816
33817 * kern/mm.c (grub_mm_init_region): Improve debug message.
33818
33819 2008-01-21 Robert Millan <rmh@aybabtu.com>
33820
33821 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
33822 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
33823 address.
33824 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
33825 a C macro.
33826 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
33827 Indicates start of upper memory.
33828 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
33829 (generate_image): Abort when image size is big enough to corrupt
33830 upper memory.
33831
33832 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
33833 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
33834 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
33835 instead of hardcoding 0xA0000.
33836 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
33837 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
33838 instead of hardcoding 0xA0000.
33839
33840 2008-01-21 Robert Millan <rmh@aybabtu.com>
33841
33842 * disk/memdisk.c (memdisk_size): New variable.
33843 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
33844 `memdisk_size'.
33845 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
33846 image to dynamic memory.
33847 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
33848 `memdisk_size'. Free memdisk block.
33849
33850 2008-01-21 Robert Millan <rmh@aybabtu.com>
33851
33852 Fix detection of very small filesystems (like tar).
33853
33854 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
33855 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
33856 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
33857 a problem with this disk).
33858
33859 2008-01-21 Robert Millan <rmh@aybabtu.com>
33860
33861 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
33862 on grub_biosdisk_rw_standard() error.
33863
33864 2008-01-21 Robert Millan <rmh@aybabtu.com>
33865
33866 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
33867 recent changes.
33868 * kern/elf.c: Likewise.
33869 * kern/ieee1275/ieee1275.c: Likewise.
33870 * kern/powerpc/ieee1275/openfw.c: Likewise.
33871 * term/ieee1275/ofconsole.c: Likewise.
33872
33873 2008-01-21 Robert Millan <rmh@aybabtu.com>
33874
33875 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
33876
33877 * include/grub/kernel.h (grub_arch_memdisk_addr)
33878 (grub_arch_memdisk_size): Moved from here ...
33879
33880 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
33881 (grub_arch_memdisk_size): ... to here.
33882
33883 2008-01-21 Robert Millan <rmh@aybabtu.com>
33884
33885 Mostly based on bugfix from Bean.
33886
33887 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
33888 attribute with hook() parameter.
33889 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
33890 declaration.
33891 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
33892 attribute with hook() parameter.
33893 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
33894 declaration.
33895
33896 2008-01-21 Robert Millan <rmh@aybabtu.com>
33897
33898 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
33899 (pkglib_MODULES): Add `memdisk.mod'.
33900 (memdisk_mod_SOURCES): New variable.
33901 (memdisk_mod_CFLAGS): Likewise.
33902 (memdisk_mod_LDFLAGS): Likewise.
33903
33904 * disk/memdisk.c: New file.
33905
33906 * include/grub/disk.h (grub_disk_dev_id): Add
33907 `GRUB_DISK_DEVICE_MEMDISK_ID'.
33908
33909 * include/grub/i386/pc/kernel.h
33910 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
33911 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
33912 (grub_kernel_image_size): New variable declaration.
33913 (grub_total_module_size): Likewise.
33914 (grub_memdisk_image_size): Likewise.
33915
33916 * include/grub/i386/pc/memory.h
33917 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
33918
33919 * include/grub/kernel.h: Include `<grub/symbol.h>'.
33920 (grub_arch_memdisk_addr): New variable declaration.
33921 (grub_arch_memdisk_size): Likewise.
33922
33923 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
33924 (grub_arch_memdisk_size): Likewise.
33925
33926 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
33927 (codestart): Replace hardcoded `0x100000' with
33928 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
33929
33930 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
33931 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
33932 not NULL, append the contents of the file it refers to, at the end of
33933 the compressed kernel image. Initialize `grub_memdisk_image_size'
33934 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
33935 (options): Add "memdisk"|'m' option.
33936 (main): Parse --memdisk|-m option, and pass user-provided path as
33937 parameter to generate_image().
33938
33939 2008-01-20 Robert Millan <rmh@aybabtu.com>
33940
33941 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
33942 grub_dprintf() calls from here ...
33943 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
33944
33945 2008-01-20 Robert Millan <rmh@aybabtu.com>
33946
33947 Fix detection of "real mode" when /options/real-mode? doesn't exist.
33948
33949 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
33950 declaration.
33951 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
33952 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
33953 `GRUB_IEEE1275_FLAG_REAL_MODE'.
33954 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
33955 property).
33956 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
33957 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
33958
33959 2008-01-19 Robert Millan <rmh@aybabtu.com>
33960
33961 Get rid of confusing function (superseded by
33962 `grub_ieee1275_get_integer_property')
33963 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
33964 prototype.
33965 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
33966 function.
33967 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
33968 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
33969 in native endianness from grub_ieee1275_get_integer_property().
33970
33971 2008-01-19 Robert Millan <rmh@aybabtu.com>
33972
33973 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
33974 command after "shut-down", since implementations differ on which
33975 the command for halt is.
33976
33977 2008-01-19 Robert Millan <rmh@aybabtu.com>
33978
33979 * include/grub/i386/linuxbios/console.h: Add header protection.
33980 (grub_keyboard_controller_init): New function prototype.
33981 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
33982 (KEYBOARD_COMMAND_READ): Likewise.
33983 (KEYBOARD_COMMAND_WRITE): Likewise.
33984 (KEYBOARD_SCANCODE_SET1): Likewise.
33985 (grub_keyboard_controller_write): New function.
33986 (grub_keyboard_controller_read): Likewise.
33987 (grub_keyboard_controller_init): Likewise.
33988
33989 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
33990 (grub_console_init): On coreboot/LinuxBIOS, call
33991 grub_keyboard_controller_init().
33992
33993 2008-01-19 Robert Millan <rmh@aybabtu.com>
33994
33995 PowerPC changes provided by Pavel Roskin.
33996
33997 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
33998 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
33999 don't rely on cmain() doing it.
34000 * kern/i386/ieee1275/startup.S (_start): Store %eax in
34001 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
34002
34003 2008-01-16 Robert Millan <rmh@aybabtu.com>
34004
34005 * include/grub/i386/linuxbios/memory.h
34006 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
34007 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
34008 receive `table_header' as argument. Instead, probe for it in the
34009 known memory ranges where it can be present.
34010 (grub_available_iterate): Do not pass a fixed `table_header' address
34011 to grub_linuxbios_table_iterate().
34012
34013 2008-01-15 Robert Millan <rmh@aybabtu.com>
34014
34015 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
34016 * conf/i386-ieee1275.rmk: New file.
34017 * include/grub/i386/ieee1275/console.h: Likewise.
34018 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
34019 * include/grub/i386/ieee1275/kernel.h: Likewise.
34020 * include/grub/i386/ieee1275/time.h: Likewise.
34021 * kern/i386/ieee1275/init.c: Likewise.
34022 * kern/i386/ieee1275/startup.S: Likewise.
34023
34024 2008-01-15 Robert Millan <rmh@aybabtu.com>
34025
34026 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
34027 when pointers are 32-bit (but still do set it to one when they are
34028 64-bit).
34029
34030 2008-01-15 Robert Millan <rmh@aybabtu.com>
34031
34032 * include/grub/ieee1275/ieee1275.h
34033 (grub_ieee1275_get_integer_property): New function prototype.
34034
34035 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
34036 (grub_ieee1275_get_integer_property): New function. Wraps around
34037 grub_ieee1275_get_property() to handle endianness.
34038
34039 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
34040 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
34041 where appropriate.
34042 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
34043 (grub_map): Likewise.
34044 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
34045
34046 2008-01-15 Bean <bean123ch@gmail.com>
34047
34048 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
34049 (grub_script_execute_cmdline): Reset grub_errno.
34050
34051 * normal/main.c (read_config_file): Reset grub_errno.
34052
34053 * normal/parse.y (script_init): New.
34054 (script): Move function and menuentry here.
34055 (delimiter): New.
34056 (command): Add delimiter at the end of command.
34057 (commands): Adjust to match the new command.
34058 (commandblock): Remove grub_script_lexer_record_start.
34059 (menuentry): Add grub_script_lexer_record_start, use the new commands.
34060 (if): Use the new commands.
34061
34062 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
34063
34064 2008-01-15 Robert Millan <rmh@aybabtu.com>
34065
34066 * normal/menu.c (run_menu): Move timeout message from here ...
34067 (print_timeout): ... to here.
34068 (run_menu): Use print_timeout() once during initial draw to print
34069 the whole message, and again in every clock tick to update only
34070 the number of seconds.
34071
34072 2008-01-15 Robert Millan <rmh@aybabtu.com>
34073
34074 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
34075 actual size of `available' from grub_ieee1275_get_property(), and
34076 restrict parsing to that bound.
34077
34078 2008-01-15 Christian Franke <franke@computer.org>
34079
34080 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
34081 (argp_program_version): Remove variable.
34082 (argp_program_bug_address): Likewise.
34083 (options): Convert from struct argp_option to struct option.
34084 (struct arguments): Remove.
34085 (parse_opt): Remove.
34086 (usage): New function.
34087 (main): Replace struct args members by simple variables.
34088 Replace argp_parse() by getopt_long().
34089 Add switch to evaluate options.
34090 Add missing "(...)" around root_dev in prefix string.
34091
34092 2008-01-14 Robert Millan <rmh@aybabtu.com>
34093
34094 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
34095 for grub_ieee1275_exit(), in order to improve portability.
34096
34097 2008-01-14 Robert Millan <rmh@aybabtu.com>
34098
34099 * util/grub.d/10_linux.in (prefix): Define.
34100 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
34101
34102 2008-01-13 Pavel Roskin <proski@gnu.org>
34103
34104 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
34105 grub_errno if no errors have been detected.
34106
34107 2008-01-12 Robert Millan <rmh@aybabtu.com>
34108
34109 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
34110 (grub_util_get_dev_abstraction): New function prototype.
34111
34112 * util/getroot.c: Include `<grub/util/getroot.h>'
34113 (grub_util_get_grub_dev): Move detection of abstraction type to ...
34114 (grub_util_get_dev_abstraction): ... here (new function).
34115
34116 * util/grub-probe.c: Convert PRINT_* to an enum. Add
34117 `PRINT_ABSTRACTION'.
34118 (probe): Probe for abstraction type when requested.
34119 (main): Understand `--target=abstraction'.
34120
34121 * util/i386/efi/grub-install.in: Add abstraction module to core
34122 image when it is found to be necessary.
34123 * util/i386/pc/grub-install.in: Likewise.
34124 * util/powerpc/ieee1275/grub-install.in: Likewise.
34125
34126 * util/update-grub_lib.in (font_path): Return system path without
34127 converting to GRUB path.
34128 * util/update-grub.in: Convert system path returned by font_path()
34129 to a GRUB path. Use `grub-probe -t abstraction' to determine what
34130 abstraction module is needed for loading fonts (if any). Export
34131 that as `GRUB_PRELOAD_MODULES'.
34132 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
34133 insmod commands).
34134
34135 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
34136
34137 Remove some unused code from reiserfs.
34138
34139 * fs/reiserfs.c (struct grub_reiserfs_key)
34140 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
34141 (struct grub_reiserfs_node_body): Removed.
34142 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34143 Likewise.
34144 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34145 Likewise.
34146 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34147 Likewise.
34148 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34149 Likewise.
34150 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34151 Likewise.
34152 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
34153 Likewise.
34154 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34155 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34156 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34157
34158 2008-01-10 Robert Millan <rmh@aybabtu.com>
34159
34160 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
34161 Determines if a file is garbage left by packaging systems, etc.
34162 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
34163 for processing /etc/grub.d scripts.
34164 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
34165 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
34166 as a condition for processing Linux images.
34167
34168 2008-01-10 Pavel Roskin <proski@gnu.org>
34169
34170 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
34171 to compile reiserfs.c on PowerPC.
34172
34173 2008-01-10 Robert Millan <rmh@aybabtu.com>
34174
34175 * kern/device.c (grub_device_iterate): Do not abort device iteration
34176 when one of the devices cannot be opened.
34177 * kern/disk.c (grub_disk_open): Do not account previous failures of
34178 unrelated functions when grub_errno is checked for.
34179
34180 2008-01-08 Robert Millan <rmh@aybabtu.com>
34181
34182 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
34183 `! grub_linux_is_bzimage', change order of address comparison to make
34184 it more intuitive, and improve "too big zImage" error message.
34185
34186 2008-01-08 Robert Millan <rmh@aybabtu.com>
34187
34188 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
34189 `$(update-grub_DATA)'.
34190 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
34191 targets.
34192
34193 2008-01-07 Robert Millan <rmh@aybabtu.com>
34194
34195 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
34196 which instruction is modified by grub-setup during installation
34197 (since it wasn't obvious by only looking at this file).
34198
34199 2008-01-07 Robert Millan <rmh@aybabtu.com>
34200
34201 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
34202 listing actual TODO items.
34203
34204 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34205
34206 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
34207 correctly.
34208 (grub_reiserfs_get_key_offset): Likewise.
34209 (grub_reiserfs_set_key_offset): Likewise.
34210 (grub_reiserfs_set_key_type): Likewise.
34211 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
34212
34213 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
34214 better to remove the bitfield version completely.
34215
34216 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34217
34218 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
34219 allocated from the heap, due to the fshelp implementation.
34220 (grub_reiserfs_dir): Free NODE, due to the same reason.
34221
34222 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34223
34224 Mostly from Vincent Pelletier:
34225
34226 * fs/reiserfs.c: New file.
34227
34228 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
34229 (reiserfs_mod_SOURCES): New variable.
34230 (reiserfs_mod_CFLAGS): Likewise.
34231 (reiserfs_mod_LDFLAGS): Likewise.
34232
34233 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
34234 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
34235 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
34236 normal/color.c.
34237
34238 2008-01-06 Robert Millan <rmh@aybabtu.com>
34239
34240 * normal/color.c: Remove `<grub/env.h>'.
34241
34242 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
34243
34244 * include/grub/normal.h: Include <grub/env.h>.
34245
34246 2008-01-05 Robert Millan <rmh@aybabtu.com>
34247
34248 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
34249 usage example with `(hd0,1)'.
34250 Reported by Samuel Thibault.
34251
34252 2008-01-05 Robert Millan <rmh@aybabtu.com>
34253
34254 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
34255 (grub_linux_boot_zimage): Rename to ...
34256 (grub_linux_boot): ... this.
34257 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
34258 (grub_linux_boot_zimage): Conditionalize zImage copy.
34259
34260 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
34261 (grub_linux_boot_bzimage): Remove prototype.
34262 (grub_linux_boot_zimage): Rename to ...
34263 (grub_linux_boot): ... this.
34264
34265 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
34266 (grub_linux_boot): Remove function.
34267
34268 2008-01-05 Robert Millan <rmh@aybabtu.com>
34269
34270 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
34271 (grub_env_write_color_highlight): Likewise.
34272 (grub_wait_after_message): Likewise.
34273
34274 * normal/color.c: New file.
34275
34276 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34277 (normal_mod_DEPENDENCIES): Likewise.
34278
34279 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34280 (normal_mod_DEPENDENCIES): Likewise.
34281
34282 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34283 (normal_mod_DEPENDENCIES): Likewise.
34284
34285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34286 (normal_mod_DEPENDENCIES): Likewise.
34287
34288 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
34289 for waiting after a message is printed.
34290 * normal/main.c (read_config_file): Likewise.
34291 (grub_normal_init): Register grub_env_write_color_normal() and
34292 grub_env_write_color_highlight() hooks. Mark `color_normal' and
34293 `color_highlight' variables as global.
34294
34295 * normal/menu.c (grub_wait_after_message): New function.
34296 (grub_color_menu_normal): New variable. Replaces ...
34297 (GRUB_COLOR_MENU_NORMAL): ... this macro.
34298 (grub_color_menu_highlight): New variable. Replaces ...
34299 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
34300 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
34301 `GRUB_TERM_COLOR_STANDARD'.
34302 (print_message): Use `grub_setcolorstate' to reload colors. Rename
34303 `normal_code' and `highlight_code' to `old_color_normal' and
34304 `old_color_highlight', respectively.
34305 (grub_menu_init_page): Update colors when drawing the menu, based on
34306 `menu_color_normal' and `menu_color_highlight' variables.
34307 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
34308 a message is printed.
34309
34310 2008-01-05 Robert Millan <rmh@aybabtu.com>
34311
34312 * kern/env.c (grub_env_context_open): Propagate hooks for global
34313 variables to new context.
34314
34315 * kern/main.c (grub_set_root_dev): Export `root' variable.
34316
34317 2008-01-05 Robert Millan <rmh@aybabtu.com>
34318
34319 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
34320 discs unconditionally, since udev and others have options to provide
34321 them.
34322
34323 2008-01-05 Robert Millan <rmh@aybabtu.com>
34324
34325 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
34326
34327 2008-01-04 Christian Franke <franke@computer.org>
34328
34329 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
34330 of eisa_mmap.
34331
34332 2008-01-03 Pavel Roskin <proski@gnu.org>
34333
34334 * kern/i386/linuxbios/init.c: Put "void" to all function
34335 declarations with no arguments.
34336 * kern/powerpc/ieee1275/init.c: Likewise.
34337 * term/i386/pc/at_keyboard.c: Likewise.
34338 * term/i386/pc/vga_text.c: Likewise.
34339 * util/grub-mkdevicemap.c: Likewise.
34340
34341 2008-01-02 Robert Millan <rmh@aybabtu.com>
34342
34343 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
34344 message when loaded image is out of bounds.
34345 (grub_multiboot_load_elf64): Likewise.
34346
34347 2008-01-02 Pavel Roskin <proski@gnu.org>
34348
34349 * util/grub.d/10_linux.in: Try version without ".old" when
34350 looking for initrd. It's better to use initrd from the newer
34351 kernel of the same version than no initrd at all.
34352
34353 2008-01-01 Robert Millan <rmh@aybabtu.com>
34354
34355 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
34356
34357 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
34358
34359 * include/grub/video.h: Added grub_video_unmap_color and
34360 grub_video_get_active_render_target.
34361 (grub_video_adapter): Added unmap_color and get_active_render_target.
34362
34363 * video/video.c: Added grub_video_unmap_color and
34364 grub_video_get_active_render_target.
34365 (grub_video_get_info): Changed method to accept NULL pointer as an
34366 argument to allow detection of active video adapter.
34367
34368 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
34369 grub_video_vbe_unmap_color_int.
34370 Added grub_video_vbe_unmap_color and
34371 grub_video_vbe_get_active_render_target.
34372 (grub_video_vbe_adapter): Added unmap_color and
34373 get_active_render_target.
34374
34375 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
34376 with grub_video_vbe_unmap_color_int.
34377
34378 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
34379 (DEFAULT_NORMAL_COLOR): Likewise.
34380 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
34381 (DEFAULT_FG_COLOR): Removed.
34382 (DEFAULT_BG_COLOR): Likewise.
34383 (DEFAULT_CURSOR_COLOR): Changed value.
34384 (grub_virtual_screen): Added standard_color_setting,
34385 normal_color_setting, highlight_color_setting and term_color.
34386 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
34387 (bitmap_width): Added.
34388 (bitmap_height): Likewise.
34389 (bitmap): Likewise.
34390 (set_term_color): Likewise.
34391 (grub_virtual_screen_setup): Changed to use new terminal coloring
34392 settings.
34393 (grub_gfxterm_init): Added init for bitmap.
34394 (grub_gfxterm_fini): Added destroy for bitmap.
34395 (redraw_screen_rect): Updated to use background bitmap and new
34396 terminal coloring.
34397 (scroll_up): Added optimization for case when there is no bitmap.
34398 (grub_gfxterm_cls): Fixed to use correct background color.
34399 (grub_virtual_screen_setcolorstate): Changed to use new terminal
34400 coloring.
34401 (grub_virtual_screen_setcolor): Likewise.
34402 (grub_virtual_screen_getcolor): Added.
34403 (grub_gfxterm_background_image_cmd): Likewise.
34404 (grub_video_term): Added setcolor and getcolor.
34405 (MOD_INIT): Added registration of background_image command.
34406 (MOD_TERM): Added unregistration for background_image command.
34407
34408 2007-12-30 Pavel Roskin <proski@gnu.org>
34409
34410 * loader/multiboot_loader.c: Fix multiboot command
34411 unregistration. Fix all typos in the word "multiboot".
34412
34413 2007-12-29 Pavel Roskin <proski@gnu.org>
34414
34415 * util/grub.d/10_linux.in: Refactor search for initrd. Add
34416 support for initrd names used in Fedora.
34417
34418 2007-12-26 Bean <bean123ch@gmail.com>
34419
34420 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
34421 (cpio_mod_SOURCES): New variable.
34422 (cpio_mod_CFLAGS): Likewise.
34423 (cpio_mod_LDFLAGS): Likewise.
34424
34425 * fs/cpio.c: New file.
34426
34427 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
34428
34429 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34430
34431 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34432
34433 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34434
34435 2007-12-25 Robert Millan <rmh@aybabtu.com>
34436
34437 * include/grub/term.h (struct grub_term): Add `getcolor' function.
34438 (grub_getcolor): New function.
34439
34440 * kern/term.c (grub_getcolor): New function.
34441 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
34442 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
34443 (print_entry): Set normal and highlight colors to
34444 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
34445 respectively, before printing and restore them to old
34446 values afterwards.
34447 (grub_menu_init_page): Likewise. Fill an additional colored space
34448 that would otherwise be left blank.
34449
34450 * term/efi/console.c (grub_console_getcolor): New function.
34451 (struct grub_console_term.getcolor): New variable.
34452 * term/i386/pc/console.c (grub_console_getcolor): New function.
34453 (struct grub_console_term.getcolor): New variable.
34454 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
34455 (struct grub_console_term.getcolor): New variable.
34456
34457 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
34458 (struct grub_console_term.setcolor): Remove variable.
34459 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
34460 (struct grub_console_term.setcolor): Remove variable.
34461 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
34462 (struct grub_console_term.setcolor): Remove variable.
34463 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
34464 (struct grub_console_term.setcolor): Remove variable.
34465
34466 2007-12-25 Robert Millan <rmh@aybabtu.com>
34467
34468 * configure.ac: Search for possible unifont.hex locations, and
34469 define UNIFONT_HEX if found.
34470
34471 * Makefile.in (UNIFONT_HEX): Define variable.
34472 (DATA): Rename to ...
34473 (PKGLIB): ... this. Update all users.
34474 (PKGDATA): New variable.
34475 (pkgdata_IMAGES): Rename to ...
34476 (pkglib_IMAGES): ... this. Update all users.
34477 (pkgdata_MODULES): Rename to ...
34478 (pkglib_MODULES): ... this. Update all users.
34479 (pkgdata_PROGRAMS): Rename to ...
34480 (pkglib_PROGRAMS): ... this. Update all users.
34481 (pkgdata_DATA): Rename to ...
34482 (pkglib_DATA): ... this. Update all users.
34483 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
34484 (unicode.pff, ascii.pff): New rules.
34485 (all-local): Add `$(PKGDATA)' dependency.
34486 (install-local): Process `$(PKGDATA)'.
34487
34488 * util/update-grub_lib.in (font_path): Search for *.pff files in
34489 a few more locations, including `${pkgdata}'.
34490
34491 2007-12-23 Robert Millan <rmh@aybabtu.com>
34492
34493 Patch from Bean <bean123ch@gmail.com>:
34494 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
34495 `size'.
34496
34497 2007-12-21 Bean <bean123ch@gmail.com>
34498
34499 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
34500 (ntfscomp_mod_SOURCES): New variable.
34501 (ntfscomp_mod_CFLAGS): Likewise.
34502 (ntfscomp_mod_LDFLAGS): Likewise.
34503
34504 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
34505 (grub_probe_SOURCES): Likewise.
34506 (grub_emu_SOURCES): Likewise.
34507
34508 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34509 (grub_emu_SOURCES): Likewise.
34510
34511 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34512 (grub_emu_SOURCES): Likewise.
34513
34514 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34515 (grub_emu_SOURCES): Likewise.
34516
34517 * fs/ntfs.c (grub_ntfscomp_func): New variable.
34518 (read_run_list): Renamed to grub_ntfs_read_run_list.
34519 (decomp_nextvcn): Moved to ntfscomp.c.
34520 (decomp_getch): Likewise.
34521 (decomp_get16): Likewise.
34522 (decomp_block): Likewise.
34523 (read_block): Likewise.
34524 (read_data): Partially moved to ntfscomp.c.
34525 (fixup): Change unsigned to grub_uint16_t.
34526 (read_mft): Change unsigned long to grub_uint32_t.
34527 (read_attr): Likewise.
34528 (read_data): Likewise.
34529 (read_run_data): Likewise.
34530 (read_run_list): Likewise.
34531 (read_mft): Likewise.
34532
34533 * fs/ntfscomp.c: New file.
34534
34535 * include/grub/ntfs.h: New file.
34536
34537 2007-12-16 Robert Millan <rmh@aybabtu.com>
34538
34539 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
34540 IDE disk check, since Linux is known to support 20 IDE disks.
34541 Reported by Colin Watson.
34542
34543 2007-12-15 Bean <bean123ch@gmail.com>
34544
34545 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
34546 (lnxboot_img_SOURCES): New variable.
34547 (lnxboot_img_ASFLAGS): Likewise.
34548 (lnxboot_img_LDFLAGS): Likewise.
34549
34550 * boot/i386/pc/lnxboot.S: New file.
34551
34552 2007-11-24 Pavel Roskin <proski@gnu.org>
34553
34554 * configure.ac: Test if '--build-id=none' is supported by the
34555 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
34556 objcopy to generate incorrect binary files (binutils
34557 2.17.50.0.18-1 as shipped by Fedora 8).
34558 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
34559 linking, so that build ID doesn't break the test.
34560
34561 2007-11-24 Pavel Roskin <proski@gnu.org>
34562
34563 * include/grub/i386/time.h: use "void" in the argument list
34564 of grub_cpu_idle().
34565 * include/grub/powerpc/time.h: Likewise.
34566 * include/grub/sparc64/time.h: Likewise.
34567
34568 2007-11-18 Christian Franke <franke@computer.org>
34569
34570 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
34571 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
34572 This fixes the problem that function keys did not work in grub-emu.
34573
34574 2007-11-18 Christian Franke <franke@computer.org>
34575
34576 * disk/host.c (grub_host_open): Remove attribute unused from
34577 name parameter. Add check for "host". This fixes the problem
34578 that grub-emu does not find partitions.
34579
34580 2007-11-18 Christian Franke <franke@computer.org>
34581
34582 * util/hostfs.c (is_dir): New function.
34583 (grub_hostfs_dir): Handle missing dirent.d_type case.
34584 (grub_hostfs_read): Add missing fseek().
34585 (grub_hostfs_label): Clear label pointer. This fixes a crash
34586 of grub-emu on "ls (host)".
34587
34588 2007-11-18 Christian Franke <franke@computer.org>
34589
34590 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
34591 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
34592 to 64 bit boundary by default.
34593
34594 2007-11-18 Bean <bean123ch@gmail.com>
34595
34596 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
34597 (hexdump_mod_SOURCES): New variable.
34598 (hexdump_mod_CFLAGS): Likewise.
34599 (hexdump_mod_LDFLAGS): Likewise.
34600
34601 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34602
34603 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34604
34605 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34606
34607 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34608
34609 * include/grub/hexdump.h: New file.
34610
34611 * commands/hexdump.c: New file.
34612
34613 2007-11-10 Robert Millan <rmh@aybabtu.com>
34614
34615 * commands/i386/pc/play.c (beep_off): Switch order of arguments
34616 in grub_outb() calls.
34617 (beep_on): Likewise.
34618
34619 2007-11-10 Christian Franke <franke@computer.org>
34620
34621 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
34622 (grub_menu_run): Likewise.
34623
34624 2007-11-10 Robert Millan <rmh@aybabtu.com>
34625
34626 * include/grub/i386/efi/machine.h: New file.
34627 * include/grub/i386/linuxbios/machine.h: Likewise.
34628 * include/grub/i386/pc/machine.h: Likewise.
34629 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34630 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34631
34632 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
34633 (serial_hw_io_addr): New variable.
34634 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
34635 instead of `(unsigned short *) 0x400'.
34636
34637 2007-11-10 Bean <bean123ch@gmail.com>
34638
34639 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
34640
34641 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34642
34643 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
34644 (vga_mod_SOURCES): Added.
34645 (vga_mod_CFLAGS): Likewise.
34646 (vga_mod_LDFLAGS): Likewise.
34647
34648 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
34649 grub_outb() calls.
34650 (set_map_mask): Likewise.
34651 (set_read_map): Likewise.
34652 (set_read_address): Likewise.
34653 (vga_font): Removed variable.
34654 (get_vga_glyph): Removed function.
34655 (invalidate_char): Likewise.
34656 (write_char): Changed to use grub_font_get_glyph() for font
34657 information.
34658 (grub_vga_putchar): Likewise.
34659 (grub_vga_getcharwidth): Likewise.
34660
34661 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34662
34663 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
34664 flags.
34665 (pxeboot_img_LDFLAGS): Likewise.
34666 (diskboot_img_LDFLAGS): Likewise.
34667 (kernel_img_LDFLAGS): Likewise.
34668
34669 2007-11-06 Robert Millan <rmh@aybabtu.com>
34670
34671 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
34672 in grub_outb() calls.
34673 (serial_hw_init): Likewise.
34674
34675 2007-11-05 Robert Millan <rmh@aybabtu.com>
34676
34677 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
34678 spaces. Skip non-regular files.
34679
34680 2007-11-05 Robert Millan <rmh@aybabtu.com>
34681
34682 * kern/disk.c (grub_disk_firmware_fini)
34683 (grub_disk_firmware_is_tainted): New variables.
34684
34685 * include/grub/disk.h (grub_disk_firmware_fini)
34686 (grub_disk_firmware_is_tainted): Likewise.
34687
34688 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
34689 (grub_disk_biosdisk_fini): ... to here.
34690 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
34691 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
34692 is set. Register grub_disk_biosdisk_fini() in
34693 `grub_disk_firmware_fini'.
34694
34695 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
34696 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
34697 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
34698 to finish existing firmware disk interface.
34699
34700 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
34701 (ata_mod_SOURCES): New variable.
34702 (ata_mod_CFLAGS): Likewise.
34703 (ata_mod_LDFLAGS): Likewise.
34704
34705 2007-11-05 Robert Millan <rmh@aybabtu.com>
34706
34707 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
34708 (grub_ata_wait): Reimplement using grub_millisleep().
34709
34710 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
34711 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
34712
34713 2007-11-03 Marco Gerards <marco@gnu.org>
34714
34715 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
34716 (CRTC_ADDR_PORT): New macro.
34717 (CRTC_DATA_PORT): Likewise.
34718 (CRTC_CURSOR): Likewise.
34719 (CRTC_CURSOR_ADDR_HIGH): Likewise.
34720 (CRTC_CURSOR_ADDR_LOW): Likewise.
34721 (update_cursor): New function.
34722 (grub_console_real_putchar): Call `update_cursor'.
34723 (grub_console_gotoxy): Likewise.
34724 (grub_console_cls): Set the default color when clearing the
34725 screen.
34726 (grub_console_setcursor): Implemented.
34727
34728 2007-11-03 Marco Gerards <marco@gnu.org>
34729
34730 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
34731 become activate.
34732 (grub_ata_pio_write): Likewise.
34733
34734 (grub_atapi_identify): Wait after issuing an ATA command.
34735 (grub_atapi_packet): Likewise.
34736 (grub_ata_identify): Likewise.
34737 (grub_ata_readwrite): Likewise.
34738
34739 2007-11-03 Marco Gerards <marco@gnu.org>
34740
34741 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
34742 (grub_ata_pio_write): Likewise.
34743 (grub_ata_readwrite): Use `grub_error', instead of
34744 returning `grub_errno'.
34745
34746 2007-11-03 Marco Gerards <marco@gnu.org>
34747
34748 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
34749 grub_ata_pio_write once for every single sector, instead of for
34750 multiple sectors.
34751
34752 2007-10-31 Robert Millan <rmh@aybabtu.com>
34753
34754 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
34755
34756 * conf/i386-linuxbios.rmk: New file.
34757
34758 * kern/i386/pc/hardware.c: Likewise.
34759 * term/i386/pc/at_keyboard.c: Likewise.
34760 * term/i386/pc/vga_text.c: Likewise.
34761
34762 * include/grub/i386/linuxbios/boot.h: Likewise.
34763 * include/grub/i386/linuxbios/console.h: Likewise.
34764 * include/grub/i386/linuxbios/init.h: Likewise.
34765 * include/grub/i386/linuxbios/kernel.h: Likewise.
34766 * include/grub/i386/linuxbios/loader.h: Likewise.
34767 * include/grub/i386/linuxbios/memory.h: Likewise.
34768 * include/grub/i386/linuxbios/serial.h: Likewise.
34769 * include/grub/i386/linuxbios/time.h: Likewise.
34770
34771 * kern/i386/linuxbios/init.c: Likewise.
34772 * kern/i386/linuxbios/startup.S: Likewise.
34773 * kern/i386/linuxbios/table.c: Likewise.
34774
34775 2007-10-31 Marco Gerards <marco@gnu.org>
34776
34777 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
34778 (ata_mod_SOURCES): New variable.
34779 (ata_mod_CFLAGS): Likewise.
34780 (ata_mod_LDFLAGS): Likewise.
34781
34782 * disk/ata.c: New file.
34783
34784 * include/grub/disk.h (grub_disk_dev_id): Add
34785 `GRUB_DISK_DEV_ATA_ID'.
34786
34787 2007-10-31 Robert Millan <rmh@aybabtu.com>
34788
34789 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
34790 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
34791
34792 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
34793 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
34794
34795 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
34796 `<grub/types.h>'.
34797
34798 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
34799
34800 2007-10-27 Robert Millan <rmh@aybabtu.com>
34801
34802 * include/grub/types.h (ULONG_MAX): Define macro.
34803
34804 2007-10-22 Robert Millan <rmh@aybabtu.com>
34805
34806 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
34807 `"../realmode.S"'.
34808 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
34809
34810 2007-10-22 Robert Millan <rmh@aybabtu.com>
34811
34812 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
34813 (pkgdata_MODULES): Add `biosdisk.mod'.
34814 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
34815 variables.
34816
34817 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
34818 (grub_biosdisk_init): Replace with ...
34819 (GRUB_MOD_INIT(biosdisk)): ... this.
34820 (grub_biosdisk_fini): Replace with ...
34821 (GRUB_MOD_FINI(biosdisk)): ... this.
34822
34823 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
34824 (grub_machine_init): Remove call to grub_biosdisk_init().
34825 (grub_machine_fini): Remove call to grub_machine_fini().
34826
34827 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
34828
34829 2007-10-22 Robert Millan <rmh@aybabtu.com>
34830
34831 * include/grub/time.h: New file.
34832 * include/grub/i386/time.h: Likewise.
34833 * include/grub/powerpc/time.h: Likewise.
34834 * include/grub/sparc64/time.h: Likewise.
34835
34836 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
34837 instances to ...
34838 (KERNEL_MACHINE_TIME_HEADER): ... this.
34839 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
34840 instances to ...
34841 (KERNEL_MACHINE_TIME_HEADER): ... this.
34842 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
34843 instances to ...
34844 (KERNEL_MACHINE_TIME_HEADER): ... this.
34845
34846 * kern/i386/efi/init.c: Include `<grub/time.h>'.
34847 (grub_millisleep): New function.
34848 * kern/i386/pc/init.c: Include `<grub/time.h>'.
34849 (grub_millisleep): New function.
34850 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
34851 Remove `grub/machine/time.h' include.
34852 (grub_millisleep): New function.
34853 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
34854 Remove `grub/machine/time.h' include.
34855 (grub_millisleep): New function.
34856
34857 * include/grub/misc.h (grub_div_roundup): New function.
34858
34859 * kern/misc.c: Include `<grub/time.h>'.
34860 (grub_millisleep_generic): New function.
34861
34862 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
34863 Add `time.h'.
34864 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
34865 Add `time.h'.
34866 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
34867 `machine/time.h'. Add `time.h'.
34868 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34869
34870 2007-10-21 Robert Millan <rmh@aybabtu.com>
34871
34872 * include/grub/misc.h (grub_max): New function.
34873
34874 2007-10-21 Robert Millan <rmh@aybabtu.com>
34875
34876 * util/misc.c (grub_util_info): Call fflush() before returning.
34877
34878 2007-10-20 Robert Millan <rmh@aybabtu.com>
34879
34880 * genmk.rb (Image): Copy `extra_flags' from here ...
34881 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
34882
34883 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
34884 to `argc' and `args' arguments.
34885
34886 2007-10-17 Robert Millan <rmh@aybabtu.com>
34887
34888 * kern/i386/loader.S: New file.
34889
34890 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
34891 * kern/i386/loader.S (grub_linux_prot_size)... to here.
34892 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
34893 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
34894 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
34895 * kern/i386/loader.S (grub_linux_real_addr)... to here.
34896 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
34897 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
34898 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
34899 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
34900 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
34901 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
34902 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
34903 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
34904
34905 * kern/i386/realmode.S: New file.
34906
34907 * kern/i386/pc/startup.S (protstack): Moved from here ...
34908 * kern/i386/realmode.S (protstack)... to here.
34909 * kern/i386/pc/startup.S (gdt): Moved from here ...
34910 * kern/i386/realmode.S (gdt)... to here.
34911 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
34912 * kern/i386/realmode.S (prot_to_real)... to here.
34913
34914 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
34915 `kern/i386/realmode.S'.
34916
34917 2007-10-17 Robert Millan <rmh@aybabtu.com>
34918
34919 * include/grub/i386/loader.h: New file.
34920
34921 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
34922 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
34923 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
34924 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
34925 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
34926 * include/grub/i386/loader.h (grub_linux_prot_size)
34927 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
34928 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
34929 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
34930 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
34931
34932 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
34933
34934 2007-10-15 Robert Millan <rmh@aybabtu.com>
34935
34936 * normal/misc.c (grub_normal_print_device_info): Do not probe for
34937 filesystem when dev->disk is unset.
34938 Do probe for filesystem even when dev->disk->has_partitions is set.
34939 In case a filesystem is found, always report it.
34940 In case it isn't, if dev->disk->has_partitions is set, report that
34941 a partition table was found instead of reporting that no filesystem
34942 could be identified.
34943
34944 2007-10-12 Robert Millan <rmh@aybabtu.com>
34945
34946 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
34947 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
34948
34949 * include/grub/types.h (grub_host_to_target16): New macro.
34950 (grub_host_to_target32): Likewise.
34951 (grub_host_to_target64): Likewise.
34952 (grub_target_to_host16): Likewise.
34953 (grub_target_to_host32): Likewise.
34954 (grub_target_to_host64): Likewise.
34955
34956 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
34957 Renamed from to ...
34958 (GRUB_MOD_ALIGN): ...this. Update all users.
34959
34960 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
34961 grub_host_to_target32.
34962 Replace grub_be_to_cpu32 with grub_target_to_host32.
34963 (load_modules): Likewise.
34964 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
34965 Replace grub_be_to_cpu32 with grub_target_to_host32.
34966 Replace grub_cpu_to_be16 with grub_host_to_target16.
34967 Replace grub_cpu_to_be32 grub_host_to_target32.
34968
34969 2007-10-12 Robert Millan <rmh@aybabtu.com>
34970
34971 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
34972 * util/elf/grub-mkimage.c: ... here.
34973
34974 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
34975 `util/powerpc/ieee1275/grub-mkimage.c'.
34976
34977 2007-10-07 Robert Millan <rmh@aybabtu.com>
34978
34979 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
34980 and make it easier to figure out.
34981 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
34982 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
34983 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
34984 leave us with less than HEAP_MIN_SIZE total heap.
34985 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
34986
34987 2007-10-03 Robert Millan <rmh@aybabtu.com>
34988
34989 * include/grub/i386/io.h: New file.
34990 * commands/i386/pc/play.c (inb): Removed.
34991 (outb): Removed.
34992 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
34993 with grub_outb().
34994 * term/i386/pc/serial.c (inb): Removed.
34995 (outb): Removed.
34996 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
34997 with grub_outb().
34998 * term/i386/pc/vga.c (inb): Removed.
34999 (outb): Removed.
35000 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35001 with grub_outb().
35002
35003 2007-10-02 Robert Millan <rmh@aybabtu.com>
35004
35005 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
35006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35007 Reported by Marcin Kurek.
35008
35009 2007-09-07 Robert Millan <rmh@aybabtu.com>
35010
35011 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
35012 SmartFirmware version updates (as released by Sven Luther), and avoid
35013 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
35014 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
35015 known broken.
35016
35017 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35018
35019 From Hitoshi Ozeki:
35020 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
35021 when merging two regions.
35022
35023 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35024
35025 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
35026 * normal/completion.c (grub_normal_do_completion): Likewise.
35027 Reported by Hitoshi Ozeki.
35028
35029 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35030
35031 Do not use devices at boot in chainloading.
35032
35033 * loader/i386/pc/chainloader.c (boot_drive): New variable.
35034 (boot_part_addr): Likewise.
35035 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
35036 with BOOT_DRIVE and BOOT_PART_ADDR.
35037 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
35038 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
35039
35040 2007-08-29 Robert Millan <rmh@aybabtu.com>
35041
35042 Patch from Simon Peter <dn.tlp@gmx.net>:
35043 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
35044 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
35045 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
35046 util/i386/pc/grub-setup.c_DEPENDENCIES.
35047 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
35048 util/grub-probe.c_DEPENDENCIES.
35049 * conf/powerpc-ieee1275.rmk: Likewise.
35050
35051 2007-08-28 Robert Millan <rmh@aybabtu.com>
35052
35053 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
35054 to tell grub-mkdevicemap how to name devices.
35055 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
35056 feature).
35057
35058 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
35059 util/i386/get_disk_name.c.
35060 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
35061 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
35062 util/ieee1275/get_disk_name.c.
35063
35064 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
35065
35066 * DISTLIST: Add util/i386/get_disk_name.c and
35067 util/ieee1275/get_disk_name.c.
35068
35069 * util/grub-mkdevicemap.c: Replace device naming logic with
35070 grub_util_get_disk_name() calls.
35071
35072 2007-08-20 Robert Millan <rmh@aybabtu.com>
35073
35074 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
35075 (so that it works for both plural and singular quantities).
35076
35077 2007-08-05 Robert Millan <rmh@aybabtu.com>
35078
35079 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
35080 so that [xz] isn't taken into account when determining order.
35081
35082 2007-08-02 Marco Gerards <marco@gnu.org>
35083
35084 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
35085 `include/multiboot2.h', `include/grub/elfload.h',
35086 `include/multiboot.h', `include/grub/multiboot.h',
35087 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
35088 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
35089 `kern/elf.c', `loader/multiboot_loader.c',
35090 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
35091 `loader/i386/pc/multiboot2.c',
35092 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
35093 `util/i386/pc/grub-mkrescue.in'. Remove
35094 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
35095 `include/grub/i386/pc/util/biosdisk.h' and
35096 `include/grub/powerpc/ieee1275/multiboot.h'.
35097
35098 2007-08-02 Bean <bean123ch@gmail.com>
35099
35100 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
35101 (ntfs_mod_SOURCES): New variable.
35102 (ntfs_mod_CFLAGS): Likewise.
35103 (ntfs_mod_LDFLAGS): Likewise.
35104
35105 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
35106 (grub_probe_SOURCES): Likewise.
35107 (grub_emu_SOURCES): Likewise.
35108
35109 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35110 (grub_emu_SOURCES): Likewise.
35111
35112 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35113 (grub_emu_SOURCES): Likewise.
35114
35115 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
35116
35117 * fs/ntfs.c: New file.
35118
35119 2007-08-02 Bean <bean123ch@gmail.com>
35120
35121 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
35122
35123 * file.h (grub_file): Likewise.
35124
35125 * fshelp.h (grub_fshelp_read_file): Likewise.
35126
35127 * util/i386/pc/grub-setup.c (setup): Likewise.
35128 (save_first_sector): Likewise.
35129 (save_blocklists): Likewise.
35130
35131 * fs/affs.c (grub_affs_read_file): Likewise.
35132
35133 * fs/ext2.c (grub_ext2_read_file): Likewise.
35134
35135 * fs/fat.c (grub_fat_read_data): Likewise.
35136
35137 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
35138
35139 * fs/hfs.c (grub_hfs_read_file): Likewise.
35140
35141 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
35142
35143 * fs/jfs.c (grub_jfs_read_file): Likewise.
35144
35145 * fs/minix.c (grub_minix_read_file): Likewise.
35146
35147 * fs/sfs.c (grub_sfs_read_file): Likewise.
35148
35149 * fs/ufs.c (grub_ufs_read_file): Likewise.
35150
35151 * fs/xfs.c (grub_xfs_read_file): Likewise.
35152
35153 * command/blocklist.c (read_blocklist): Likewise.
35154 (print_blocklist): Likewise.
35155
35156 2007-08-02 Marco Gerards <marco@gnu.org>
35157
35158 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
35159 `util/hostfs.c'.
35160
35161 * disk/host.c: New file.
35162
35163 * util/hostfs.c: Likewise.
35164
35165 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
35166 return `GRUB_ERR_BAD_FS'.
35167 * fs/sfs.c (grub_sfs_mount): Likewise.
35168 * fs/xfs.c (grub_xfs_mount): Likewise.
35169
35170 * include/grub/disk.h (enum grub_disk_dev_id): Add
35171 `GRUB_DISK_DEVICE_HOST_ID'.
35172
35173 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
35174
35175 2007-07-24 Jerone Young <jerone@gmail.com>
35176
35177 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
35178 modules for compilation.
35179 * conf/powerpc-ieee1275.rmk: Likewise.
35180
35181 * include/multiboot.h: Move multiboot definitions to one file. Rename
35182 many definitions to not get grub specific.
35183 * include/multiboot2.h: Create header with multiboot 2 definitions.
35184 * include/grub/multiboot.h: Header for grub specific function
35185 prototypes and definitions.
35186 * include/grub/multiboot2.h: Likewise.
35187 * include/grub/multiboot_loader.h: Likewise.
35188 * include/grub/i386/pc/multiboot.h: Removed.
35189 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
35190
35191 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
35192 and 2 to allow for one multiboot and module commands.
35193 * loader/multiboot2.c: Add multiboot2 functionality.
35194 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
35195 and definition names.
35196 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
35197 2 functions.
35198 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
35199 ieee1275 specific multiboot2 code.
35200
35201 * kern/i386/pc/startup.S: Change headers and definition names for
35202 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
35203
35204 2007-07-22 Robert Millan <rmh@aybabtu.com>
35205
35206 * geninitheader.sh: Process file specified in first parameter rather
35207 than hardcoding grub_modules_init.lst.
35208 * geninit.sh: Likewise. Also, construct header name dynamically rather
35209 than hardcoding grub_modules_init.h.
35210
35211 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
35212 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
35213 grub_probe_init.[ch] and grub_setup_init.[ch].
35214
35215 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
35216 grub_modules_init.h with grub_emu_init.h.
35217 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
35218 grub_probe_init.[ch] files.
35219 * conf/i386-efi.rmk: Likewise.
35220 * conf/i386-pc.rmk: Likewise.
35221 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
35222 grub_setup_init.[ch] files.
35223
35224 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
35225 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
35226 to initialize modules rather than a list of hardcoded functions.
35227 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
35228 grub_init_all() to initialize modules rather than a list of hardcoded
35229 functions.
35230
35231 2007-07-22 Robert Millan <rmh@aybabtu.com>
35232
35233 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
35234 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
35235
35236 2007-07-22 Robert Millan <rmh@aybabtu.com>
35237
35238 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
35239 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
35240 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
35241 flag when running on SmartFirmware.
35242 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
35243 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
35244 was set.
35245
35246 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
35247 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
35248 rather than decreasing it.
35249
35250 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
35251 there's not enough space to do it, fail in the same way as when it
35252 can't be done because there are no partitions.
35253
35254 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
35255 when nvsetenv failed.
35256
35257 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35258
35259 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
35260 because this rule is automatically generated.
35261 (grub-mkrescue): Removed for the same reason as above.
35262
35263 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35264
35265 Migrate to GNU General Public License Version 3.
35266
35267 * COPYING: Replaced with the plain text version of GPLv3.
35268
35269 * config.guess: Updated from gnulib.
35270 * config.sub: Likewise.
35271
35272 * geninit.sh: Output a GPLv3 copyright notice.
35273 * geninitheader.sh: Likewise.
35274 * genmodsrc.sh: Likewise.
35275 * gensymlist.sh.in: Likewise.
35276
35277 * boot/i386/pc/boot.S: Upgraded to GPLv3.
35278 * boot/i386/pc/diskboot.S: Likewise.
35279 * boot/i386/pc/pxeboot.S: Likewise.
35280 * commands/blocklist.c: Likewise.
35281 * commands/boot.c: Likewise.
35282 * commands/cat.c: Likewise.
35283 * commands/cmp.c: Likewise.
35284 * commands/configfile.c: Likewise.
35285 * commands/echo.c: Likewise.
35286 * commands/help.c: Likewise.
35287 * commands/ls.c: Likewise.
35288 * commands/search.c: Likewise.
35289 * commands/terminal.c: Likewise.
35290 * commands/test.c: Likewise.
35291 * commands/videotest.c: Likewise.
35292 * commands/i386/cpuid.c: Likewise.
35293 * commands/i386/pc/halt.c: Likewise.
35294 * commands/i386/pc/play.c: Likewise.
35295 * commands/i386/pc/reboot.c: Likewise.
35296 * commands/i386/pc/vbeinfo.c: Likewise.
35297 * commands/i386/pc/vbetest.c: Likewise.
35298 * commands/ieee1275/halt.c: Likewise.
35299 * commands/ieee1275/reboot.c: Likewise.
35300 * commands/ieee1275/suspend.c: Likewise.
35301 * disk/loopback.c: Likewise.
35302 * disk/lvm.c: Likewise.
35303 * disk/raid.c: Likewise.
35304 * disk/efi/efidisk.c: Likewise.
35305 * disk/i386/pc/biosdisk.c: Likewise.
35306 * disk/ieee1275/ofdisk.c: Likewise.
35307 * font/manager.c: Likewise.
35308 * fs/affs.c: Likewise.
35309 * fs/ext2.c: Likewise.
35310 * fs/fat.c: Likewise.
35311 * fs/fshelp.c: Likewise.
35312 * fs/hfs.c: Likewise.
35313 * fs/hfsplus.c: Likewise.
35314 * fs/iso9660.c: Likewise.
35315 * fs/jfs.c: Likewise.
35316 * fs/minix.c: Likewise.
35317 * fs/sfs.c: Likewise.
35318 * fs/ufs.c: Likewise.
35319 * fs/xfs.c: Likewise.
35320 * hello/hello.c: Likewise.
35321 * include/grub/acorn_filecore.h: Likewise.
35322 * include/grub/arg.h: Likewise.
35323 * include/grub/bitmap.h: Likewise.
35324 * include/grub/boot.h: Likewise.
35325 * include/grub/cache.h: Likewise.
35326 * include/grub/device.h: Likewise.
35327 * include/grub/disk.h: Likewise.
35328 * include/grub/dl.h: Likewise.
35329 * include/grub/elfload.h: Likewise.
35330 * include/grub/env.h: Likewise.
35331 * include/grub/err.h: Likewise.
35332 * include/grub/file.h: Likewise.
35333 * include/grub/font.h: Likewise.
35334 * include/grub/fs.h: Likewise.
35335 * include/grub/fshelp.h: Likewise.
35336 * include/grub/gzio.h: Likewise.
35337 * include/grub/hfs.h: Likewise.
35338 * include/grub/kernel.h: Likewise.
35339 * include/grub/loader.h: Likewise.
35340 * include/grub/lvm.h: Likewise.
35341 * include/grub/misc.h: Likewise.
35342 * include/grub/mm.h: Likewise.
35343 * include/grub/net.h: Likewise.
35344 * include/grub/normal.h: Likewise.
35345 * include/grub/parser.h: Likewise.
35346 * include/grub/partition.h: Likewise.
35347 * include/grub/pc_partition.h: Likewise.
35348 * include/grub/raid.h: Likewise.
35349 * include/grub/rescue.h: Likewise.
35350 * include/grub/script.h: Likewise.
35351 * include/grub/setjmp.h: Likewise.
35352 * include/grub/symbol.h: Likewise.
35353 * include/grub/term.h: Likewise.
35354 * include/grub/terminfo.h: Likewise.
35355 * include/grub/tparm.h: Likewise.
35356 * include/grub/types.h: Likewise.
35357 * include/grub/video.h: Likewise.
35358 * include/grub/efi/api.h: Likewise.
35359 * include/grub/efi/chainloader.h: Likewise.
35360 * include/grub/efi/console.h: Likewise.
35361 * include/grub/efi/console_control.h: Likewise.
35362 * include/grub/efi/disk.h: Likewise.
35363 * include/grub/efi/efi.h: Likewise.
35364 * include/grub/efi/pe32.h: Likewise.
35365 * include/grub/efi/time.h: Likewise.
35366 * include/grub/i386/linux.h: Likewise.
35367 * include/grub/i386/setjmp.h: Likewise.
35368 * include/grub/i386/types.h: Likewise.
35369 * include/grub/i386/efi/kernel.h: Likewise.
35370 * include/grub/i386/efi/loader.h: Likewise.
35371 * include/grub/i386/efi/time.h: Likewise.
35372 * include/grub/i386/pc/biosdisk.h: Likewise.
35373 * include/grub/i386/pc/boot.h: Likewise.
35374 * include/grub/i386/pc/chainloader.h: Likewise.
35375 * include/grub/i386/pc/console.h: Likewise.
35376 * include/grub/i386/pc/init.h: Likewise.
35377 * include/grub/i386/pc/kernel.h: Likewise.
35378 * include/grub/i386/pc/loader.h: Likewise.
35379 * include/grub/i386/pc/memory.h: Likewise.
35380 * include/grub/i386/pc/multiboot.h: Likewise.
35381 * include/grub/i386/pc/serial.h: Likewise.
35382 * include/grub/i386/pc/time.h: Likewise.
35383 * include/grub/i386/pc/vbe.h: Likewise.
35384 * include/grub/i386/pc/vbeblit.h: Likewise.
35385 * include/grub/i386/pc/vbefill.h: Likewise.
35386 * include/grub/i386/pc/vbeutil.h: Likewise.
35387 * include/grub/i386/pc/vga.h: Likewise.
35388 * include/grub/ieee1275/ieee1275.h: Likewise.
35389 * include/grub/ieee1275/ofdisk.h: Likewise.
35390 * include/grub/powerpc/libgcc.h: Likewise.
35391 * include/grub/powerpc/setjmp.h: Likewise.
35392 * include/grub/powerpc/types.h: Likewise.
35393 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
35394 * include/grub/powerpc/ieee1275/console.h: Likewise.
35395 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
35396 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
35397 * include/grub/powerpc/ieee1275/loader.h: Likewise.
35398 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
35399 * include/grub/powerpc/ieee1275/time.h: Likewise.
35400 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
35401 * include/grub/sparc64/libgcc.h: Likewise.
35402 * include/grub/sparc64/setjmp.h: Likewise.
35403 * include/grub/sparc64/types.h: Likewise.
35404 * include/grub/sparc64/ieee1275/console.h: Likewise.
35405 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
35406 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
35407 * include/grub/sparc64/ieee1275/time.h: Likewise.
35408 * include/grub/util/biosdisk.h: Likewise.
35409 * include/grub/util/getroot.h: Likewise.
35410 * include/grub/util/lvm.h: Likewise.
35411 * include/grub/util/misc.h: Likewise.
35412 * include/grub/util/raid.h: Likewise.
35413 * include/grub/util/resolve.h: Likewise.
35414 * io/gzio.c: Likewise.
35415 * kern/device.c: Likewise.
35416 * kern/disk.c: Likewise.
35417 * kern/dl.c: Likewise.
35418 * kern/elf.c: Likewise.
35419 * kern/env.c: Likewise.
35420 * kern/err.c: Likewise.
35421 * kern/file.c: Likewise.
35422 * kern/fs.c: Likewise.
35423 * kern/loader.c: Likewise.
35424 * kern/main.c: Likewise.
35425 * kern/misc.c: Likewise.
35426 * kern/mm.c: Likewise.
35427 * kern/parser.c: Likewise.
35428 * kern/partition.c: Likewise.
35429 * kern/rescue.c: Likewise.
35430 * kern/term.c: Likewise.
35431 * kern/efi/efi.c: Likewise.
35432 * kern/efi/init.c: Likewise.
35433 * kern/efi/mm.c: Likewise.
35434 * kern/i386/dl.c: Likewise.
35435 * kern/i386/efi/init.c: Likewise.
35436 * kern/i386/efi/startup.S: Likewise.
35437 * kern/i386/pc/init.c: Likewise.
35438 * kern/i386/pc/lzo1x.S: Likewise.
35439 * kern/i386/pc/startup.S: Likewise.
35440 * kern/ieee1275/ieee1275.c: Likewise.
35441 * kern/powerpc/cache.S: Likewise.
35442 * kern/powerpc/dl.c: Likewise.
35443 * kern/powerpc/ieee1275/cmain.c: Likewise.
35444 * kern/powerpc/ieee1275/crt0.S: Likewise.
35445 * kern/powerpc/ieee1275/init.c: Likewise.
35446 * kern/powerpc/ieee1275/openfw.c: Likewise.
35447 * kern/sparc64/cache.S: Likewise.
35448 * kern/sparc64/dl.c: Likewise.
35449 * kern/sparc64/ieee1275/init.c: Likewise.
35450 * kern/sparc64/ieee1275/openfw.c: Likewise.
35451 * loader/efi/chainloader.c: Likewise.
35452 * loader/efi/chainloader_normal.c: Likewise.
35453 * loader/i386/efi/linux.c: Likewise.
35454 * loader/i386/efi/linux_normal.c: Likewise.
35455 * loader/i386/pc/chainloader.c: Likewise.
35456 * loader/i386/pc/chainloader_normal.c: Likewise.
35457 * loader/i386/pc/linux.c: Likewise.
35458 * loader/i386/pc/linux_normal.c: Likewise.
35459 * loader/i386/pc/multiboot.c: Likewise.
35460 * loader/i386/pc/multiboot_normal.c: Likewise.
35461 * loader/powerpc/ieee1275/linux.c: Likewise.
35462 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35463 * normal/arg.c: Likewise.
35464 * normal/cmdline.c: Likewise.
35465 * normal/command.c: Likewise.
35466 * normal/completion.c: Likewise.
35467 * normal/execute.c: Likewise.
35468 * normal/function.c: Likewise.
35469 * normal/lexer.c: Likewise.
35470 * normal/main.c: Likewise.
35471 * normal/menu.c: Likewise.
35472 * normal/menu_entry.c: Likewise.
35473 * normal/misc.c: Likewise.
35474 * normal/parser.y: Likewise.
35475 * normal/script.c: Likewise.
35476 * normal/i386/setjmp.S: Likewise.
35477 * normal/powerpc/setjmp.S: Likewise.
35478 * normal/sparc64/setjmp.S: Likewise.
35479 * partmap/acorn.c: Likewise.
35480 * partmap/amiga.c: Likewise.
35481 * partmap/apple.c: Likewise.
35482 * partmap/gpt.c: Likewise.
35483 * partmap/pc.c: Likewise.
35484 * partmap/sun.c: Likewise.
35485 * term/gfxterm.c: Likewise.
35486 * term/terminfo.c: Likewise.
35487 * term/efi/console.c: Likewise.
35488 * term/i386/pc/console.c: Likewise.
35489 * term/i386/pc/serial.c: Likewise.
35490 * term/i386/pc/vesafb.c: Likewise.
35491 * term/i386/pc/vga.c: Likewise.
35492 * term/ieee1275/ofconsole.c: Likewise.
35493 * util/biosdisk.c: Likewise.
35494 * util/console.c: Likewise.
35495 * util/genmoddep.c: Likewise.
35496 * util/getroot.c: Likewise.
35497 * util/grub-emu.c: Likewise.
35498 * util/grub-mkdevicemap.c: Likewise.
35499 * util/grub-probe.c: Likewise.
35500 * util/lvm.c: Likewise.
35501 * util/misc.c: Likewise.
35502 * util/raid.c: Likewise.
35503 * util/resolve.c: Likewise.
35504 * util/update-grub.in: Likewise.
35505 * util/update-grub_lib.in: Likewise.
35506 * util/grub.d/00_header.in: Likewise.
35507 * util/grub.d/10_hurd.in: Likewise.
35508 * util/grub.d/10_linux.in: Likewise.
35509 * util/i386/efi/grub-install.in: Likewise.
35510 * util/i386/efi/grub-mkimage.c: Likewise.
35511 * util/i386/pc/grub-install.in: Likewise.
35512 * util/i386/pc/grub-mkimage.c: Likewise.
35513 * util/i386/pc/grub-mkrescue.in: Likewise.
35514 * util/i386/pc/grub-setup.c: Likewise.
35515 * util/i386/pc/misc.c: Likewise.
35516 * util/powerpc/ieee1275/grub-install.in: Likewise.
35517 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
35518 * util/powerpc/ieee1275/misc.c: Likewise.
35519 * video/bitmap.c: Likewise.
35520 * video/video.c: Likewise.
35521 * video/i386/pc/vbe.c: Likewise.
35522 * video/i386/pc/vbeblit.c: Likewise.
35523 * video/i386/pc/vbefill.c: Likewise.
35524 * video/i386/pc/vbeutil.c: Likewise.
35525 * video/readers/tga.c: Likewise.
35526
35527 2007-07-02 Robert Millan <rmh@aybabtu.com>
35528
35529 * conf/i386-efi.rmk: Replace obsolete reference to
35530 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
35531 with util/getroot.c.
35532 * conf/powerpc-ieee1275.rmk: Likewise.
35533 * conf/sparc64-ieee1275.rmk: Likewise.
35534
35535 * util/grub-emu.c (main): Fix unchecked pointer handling.
35536
35537 2007-07-02 Robert Millan <rmh@aybabtu.com>
35538
35539 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
35540 invocation to fail, in order to support partition-less media.
35541
35542 * util/i386/pc/grub-install.in: Likewise.
35543
35544 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
35545 which fs or partmap modules are needed (akin to its sister scripts).
35546
35547 Also use grub-probe to get rid of unportable /proc/mounts check.
35548
35549 Print the same informational message that the other scripts do, before
35550 exiting.
35551
35552 2007-06-23 Robert Millan <rmh@aybabtu.com>
35553
35554 * util/update-grub_lib.in (font_path): New function. Determine whether
35555 a font file can be found and, if so, echo the GRUB path to it.
35556
35557 * util/update-grub.in: Handle multiple terminals depending on user
35558 input, platform availability and font file presence. Propagate
35559 variables of our findings to /etc/grub.d/ children.
35560
35561 * util/grub.d/00_header.in: Handle multiple terminals, based on
35562 environment setup by update-grub.
35563
35564 2007-06-23 Robert Millan <rmh@aybabtu.com>
35565
35566 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
35567
35568 2007-06-21 Robert Millan <rmh@aybabtu.com>
35569
35570 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
35571 indicate end of data section in kernel image.
35572 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
35573 GRUB_KERNEL_MACHINE_DATA_END.
35574
35575 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
35576 space for it.
35577 * kern/i386/efi/startup.S: Likewise.
35578
35579 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
35580 during image generation. Implement --prefix option to override this
35581 patch.
35582 * util/i386/efi/grub-mkimage.c: Likewise.
35583
35584 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
35585 code to make path relative to its root into a separate function.
35586
35587 * util/i386/pc/grub-install.in: Use newly provided
35588 make_system_path_relative_to_its_root() to convert ${grubdir}, then
35589 pass the result to grub-install --prefix.
35590
35591 2007-06-13 Robert Millan <rmh@aybabtu.com>
35592
35593 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
35594 DEFAULT_DEVICE_MAP.
35595 * util/grub-emu.c: Use above definitions from misc.h instead of
35596 defining them.
35597 * util/grub-mkdevicemap.c: Likewise.
35598 * util/i386/pc/grub-setup.c: Likewise.
35599 * util/grub-probe.c: Likewise.
35600 (probe): Abort with grub_util_error() when either
35601 grub_guess_root_device or grub_util_get_grub_dev fails.
35602
35603 2007-06-12 Robert Millan <rmh@aybabtu.com>
35604
35605 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
35606 "pager" assignment.
35607 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
35608 "pcdata".
35609 * util/grub-probe.c (probe): Likewise for "drive_name".
35610
35611 2007-06-11 Robert Millan <rmh@aybabtu.com>
35612
35613 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
35614 not just the cdrom one.
35615
35616 2007-06-11 Robert Millan <rmh@aybabtu.com>
35617
35618 * util/i386/pc/grub-mkrescue.in: Add "set -e".
35619 Add --pkglibdir=DIR option to override pkglibdir.
35620 Mention --image-type=TYPE in help output.
35621 Fix --grub-mkimage (it was a no-op).
35622 Abort gracefully when no parameter is given.
35623
35624 2007-06-11 Robert Millan <rmh@aybabtu.com>
35625
35626 * util/i386/pc/grub-mkrescue.in: New file.
35627 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
35628 * Makefile.in: Handle bin_SCRIPTS.
35629
35630 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
35631
35632 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
35633 list of video modes.
35634
35635 2007-06-06 Robert Millan <rmh@aybabtu.com>
35636
35637 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
35638 file doesn't exist, or if it is in a filesystem grub can't read.
35639
35640 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
35641 not abort if GRUB_DRIVE could not be defined. Rearrange generated
35642 header comment to fit in 80 columns when the variables are resolved.
35643
35644 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
35645 could be identified by update-grub. Remove redundant check for
35646 unifont.pff existence (since convert_system_path_to_grub_path now
35647 handles that).
35648
35649 2007-06-04 Robert Millan <rmh@aybabtu.com>
35650
35651 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
35652
35653 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
35654
35655 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
35656
35657 2007-06-04 Robert Millan <rmh@aybabtu.com>
35658
35659 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
35660
35661 * include/grub/partition.h: Declare grub_apple_partition_map_init and
35662 grub_apple_partition_map_fini.
35663
35664 * util/biosdisk.c
35665 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
35666 to access >2 TiB disks).
35667
35668 Print disk->total_sectors with %llu instead of %lu, since this
35669 variable is always 64-bit (prevents wrong disk size from being displayed
35670 on either >2 TiB disk or big-endian CPU).
35671
35672 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
35673 into a generic case that supports all (sane) partition maps.
35674
35675 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
35676 breaks big-endian.
35677
35678 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
35679 and grub_apple_partition_map_fini() after that.
35680
35681 2007-06-01 Robert Millan <rmh@aybabtu.com>
35682
35683 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
35684
35685 * util/grub.d/00_header.in: Only enable gfxterm when
35686 convert_system_path_to_grub_path() succeeds.
35687
35688 2007-05-20 Robert Millan <rmh@aybabtu.com>
35689
35690 * util/update-grub_lib.in: New file.
35691 * DISTLIST: Add update-grub_lib.in.
35692 * conf/common.rmk: Generate update-grub_lib and install it in
35693 $(lib_DATA).
35694 * Makefile.in: Add install routine for $(lib_DATA).
35695
35696 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
35697 function provided by update-grub_lib to support arbitrary paths of
35698 unifont.pff.
35699 * util/update-grub.in: Use convert_system_path_to_grub_path() to
35700 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
35701
35702 2007-05-19 Robert Millan <rmh@aybabtu.com>
35703
35704 * commands/i386/cpuid.c: New module.
35705 * DISTLIST: Add it.
35706 * conf/i386-efi.rmk: Enable cpuid.mod.
35707 * conf/i386-pc.rmk: Likewise.
35708
35709 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35710
35711 * kern/disk.c (grub_disk_read): Check return value of
35712 grub_realloc().
35713
35714 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35715
35716 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
35717 arrays.
35718 * disk/raid.c (grub_raid_open): Likewise.
35719
35720 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35721
35722 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
35723 stack instead of on the heap.
35724
35725 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
35726 before doing a read on it.
35727
35728 * configure.ac: Only use -fno-stack-protector for the target
35729 environment.
35730
35731 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35732
35733 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
35734 __attribute_ ((unused)) to mode_type argument.
35735
35736 * util/getroot.c (grub_guess_root_device): Fix #endif.
35737
35738 * kern/misc.c (memcmp): Fix prototype.
35739
35740 * include/grub/partition.h [GRUB_UTIL]
35741 (grub_gpt_partition_map_init): Add prototype.
35742 (grub_gpt_partition_map_fini): Likewise.
35743
35744 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
35745 at the right place.
35746
35747 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
35748 (grub_fat_read_data): Likewise.
35749 (grub_fat_find_dir): Likewise.
35750
35751 * font/manager.c (find_glyph): Make table a const.
35752 (grub_font_get_glyph): Remove bitmap from if statement.
35753
35754 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
35755
35756 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
35757 code, first search for device in /dev/mapper, then in /dev.
35758 (grub_util_get_grub_dev): New function.
35759 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
35760 prototype.
35761 * util/grub-probe.c (probe): Remove check for RAID, call
35762 grub_util_get_grub_dev() instead of
35763 grub_util_biosdisk_get_grub_dev().
35764 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
35765 grub_util_biosdisk_get_grub_dev().
35766 * util/i386/pc/grub-setup.c (main): Likewise.
35767
35768 2007-05-16 Robert Millan <rmh@aybabtu.com>
35769
35770 * DISTLIST: Update for the latest changes.
35771 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
35772 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
35773 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
35774 grub/util/biosdisk.h.
35775 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
35776 grub/util/biosdisk.h.
35777
35778 2007-05-16 Robert Millan <rmh@aybabtu.com>
35779
35780 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
35781
35782 2007-05-16 Robert Millan <rmh@aybabtu.com>
35783
35784 * util/i386/efi/grub-install.in: New.
35785 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
35786 newly added grub-install.
35787 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
35788 include.
35789 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
35790 grub/util/biosdisk.h.
35791 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
35792 grub/util/biosdisk.h.
35793
35794 2007-05-16 Robert Millan <rmh@aybabtu.com>
35795
35796 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
35797 * include/grub/util/biosdisk.h: ... here.
35798 * util/i386/pc/biosdisk.c: Moved to ...
35799 * util/biosdisk.c: ... here.
35800 * util/i386/pc/getroot.c: Moved to ...
35801 * util/getroot.c: ... here.
35802 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
35803 * util/grub-mkdevicemap.c: ... here.
35804 * util/i386/pc/grub-probe.c: Moved to ...
35805 * util/grub-probe.c: ... here.
35806
35807 2007-05-15 Robert Millan <rmh@aybabtu.com>
35808
35809 * util/update-grub.in: Remove duplicated line in grub.cfg header
35810 message.
35811
35812 2007-05-13 Robert Millan <rmh@aybabtu.com>
35813
35814 * util/update-grub.in: Fix a few assumptions about the devices holding
35815 /, /boot and /boot/grub being the same.
35816 * util/grub.d/00_header.in: Likewise.
35817 * util/grub.d/10_hurd.in: Likewise.
35818 * util/grub.d/10_linux.in: Likewise.
35819
35820 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
35821 patterns. Use that to define the `.old' suffix as older than `'.
35822
35823 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
35824
35825 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
35826 the grub.cfg header message.
35827
35828 2007-05-11 Robert Millan <rmh@aybabtu.com>
35829
35830 * util/update-grub.in: Create device.map if it doesn't already exist,
35831 before attempting to run grub-probe.
35832 Check for grub-probe and grub-mkdevicemap with the same code
35833 grub-install is using.
35834 Remove test mode.
35835
35836 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
35837
35838 * Makefile.in: Add the datarootdir autoconf variable.
35839
35840 2007-05-09 Robert Millan <rmh@aybabtu.com>
35841
35842 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
35843 fail gracefully if dev->disk->partition == NULL.
35844
35845 2007-05-07 Robert Millan <rmh@aybabtu.com>
35846
35847 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
35848 determine partition map module.
35849 * util/i386/pc/grub-install.in: Use this feature to decide which
35850 partition module to load, instead of hardcoding pc and gpt.
35851
35852 2007-05-07 Robert Millan <rmh@aybabtu.com>
35853
35854 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
35855 source directory differs from build directory.
35856
35857 2007-05-05 Robert Millan <rmh@aybabtu.com>
35858
35859 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
35860 initialisation.
35861
35862 2007-05-05 Robert Millan <rmh@aybabtu.com>
35863
35864 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
35865
35866 2007-05-05 Robert Millan <rmh@aybabtu.com>
35867
35868 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
35869 command-line arguments via ${GRUB_CMDLINE_LINUX}.
35870
35871 2007-05-05 Robert Millan <rmh@aybabtu.com>
35872
35873 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
35874 (grub_probe_SOURCES): Likewise.
35875 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
35876 GPT and initialize dos_part and bsd_part accordingly.
35877 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
35878 install_bsd_part.
35879 (main): Activate gpt module for use during partition identification,
35880 and deactivate it afterwards.
35881 * util/i386/pc/grub-install.in: Add gpt module to core.img.
35882 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
35883 partition identification, and deactivate it afterwards.
35884
35885 2007-05-05 Robert Millan <rmh@aybabtu.com>
35886
35887 * term/i386/pc/console.c (grub_console_fini): Call
35888 grub_term_set_current() before grub_term_unregister().
35889
35890 2007-05-04 Robert Millan <rmh@aybabtu.com>
35891
35892 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
35893 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
35894 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
35895 and update-grub_DATA.
35896 * conf/common.rmk: Build and install update-grub components.
35897 * conf/common.mk: Regenerate.
35898 * util/update-grub.in: New. Core of update-grub.
35899 * util/grub.d/00_header.in: New. Generates grub.cfg header.
35900 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
35901 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
35902 * util/grub.d/README: New. Document grub.d directory layout.
35903
35904 2007-05-01 Robert Millan <rmh@aybabtu.com>
35905
35906 * util/grub-emu.c: Move initialization functions
35907 grub_util_biosdisk_init() and grub_init_all() before
35908 grub_util_biosdisk_get_grub_dev(), which relies on them.
35909
35910 2007-04-19 Robert Millan <rmh@aybabtu.com>
35911
35912 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
35913 it is used later.
35914
35915 2007-04-18 Jerone Young <jerone@gmail.com>
35916
35917 * kernel/elf.c: Add missing parenthesis for conditional statement
35918 stanza.
35919
35920 2007-04-10 Jerone Young <jerone@gmail.com>
35921
35922 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
35923 continue on and look for device node with real device name.
35924
35925 2007-04-10 Jerone Young <jerone@gmail.com>
35926
35927 * configure.ac: Add argument for autoconf to use transformation
35928 ability.
35929 * Makefile.in: Add autoconf package transformation code.
35930 * util/i386/pc/grub-install.in: Likewise.
35931 * util/powerpc/ieee1275/grub-install.in: Likewise.
35932
35933 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
35934
35935 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
35936 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
35937 (EXT2_REVISION): Likewise.
35938 (EXT2_INODE_SIZE): Likewise.
35939 (struct grub_ext2_block_group): Added a missing member
35940 "used_dirs".
35941 (grub_ext2_read_inode): Divide by the inode size in a superblock
35942 instead of 128 to obtain INODES_PER_BLOCK.
35943 Use the macro EXT2_INODE_SIZE instead of directly using
35944 SBLOCK->INODE_SIZE.
35945
35946 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
35947
35948 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
35949 superblock instead of the structure size to compute an
35950 offset. This fixes the problem that GRUB could not read a
35951 filesystem when inode size is different from 128-byte.
35952
35953 2007-03-05 Marco Gerards <marco@gnu.org>
35954
35955 * normal/main.c (read_config_file): When "menu" is not set, create
35956 an initial context.
35957
35958 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
35959
35960 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
35961 (HEAP_LIMIT): New macro.
35962 (grub_claim_heap): Claim memory up to `heaplimit'.
35963
35964 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
35965
35966 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
35967 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
35968 (_start): Likewise.
35969 (grub_arch_modules_addr): Return address after `_end'.
35970 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
35971 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
35972 (add_segments): Calculate `_end' from phdr size and location.
35973 (ALIGN_UP): Moved to ...
35974 * include/grub/misc.h: here.
35975 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
35976 New macro.
35977 (GRUB_IEEE1275_MODULE_BASE): Removed.
35978
35979 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
35980
35981 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
35982 loop boundary.
35983
35984 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
35985
35986 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
35987 All users updated.
35988 (grub_elf64_load_hook_t): Likewise.
35989 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
35990 debug output.
35991
35992 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
35993
35994 * kern/mm.c: Update copyright.
35995 (grub_mm_debug): Correct syntax error.
35996 (grub_mm_dump_free): New function.
35997 (grub_debug_free): Call `grub_free'.
35998 * include/grub/mm.h: Update copyright.
35999 (grub_mm_dump_free): Add declaration.
36000
36001 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36002
36003 * include/grub/ieee1275/ieee1275.h: Update copyright.
36004 * kern/powerpc/ieee1275/init.c: Likewise.
36005 * kern/powerpc/ieee1275/openfw.c: Likewise.
36006
36007 * loader/powerpc/ieee1275/linux.c: Likewise.
36008 * include/grub/elfload.h: Likewise.
36009 * kern/elf.c: Likewise.
36010 (grub_elf32_load): Pass `base' and `size' parameters. Update all
36011 callers.
36012 (grub_elf64_load): Likewise.
36013 (grub_elf32_load_segment): Move to a nested function.
36014 (grub_elf64_load_segment): Likewise.
36015
36016 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36017
36018 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
36019 prototype.
36020 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
36021 (grub_heap_len): Likewise.
36022 (HEAP_SIZE): New macro.
36023 (grub_claim_heap): New function.
36024 (grub_machine_init): Don't claim heap directly. Call
36025 `grub_claim_heap'.
36026 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
36027 (grub_available_iterate): New function.
36028
36029 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
36030
36031 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
36032 * configure.ac: Use it for testing the HOST and TARGET compilers.
36033
36034 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
36035
36036 * Makefile.in (enable_grub_emu): New variable.
36037 * configure.ac (--enable-grub-emu): New option.
36038 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
36039 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
36040 * conf/i386-pc.rmk: Likewise.
36041 * conf/powerpc-ieee1275.rmk: Likewise.
36042 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
36043
36044 2006-12-12 Marco Gerards <marco@gnu.org>
36045
36046 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
36047
36048 * kern/env.c (grub_env_unset): Don't free the member `value' when
36049 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
36050 pointer.
36051
36052 * normal/main.c (current_menu): Removed.
36053 (free_menu): Unset the `menu' environment variable.
36054 (grub_normal_menu_addentry): Make use of the environment variable
36055 `menu', instead of using the global `current_menu'. Allocate
36056 memory for the sourcecode of this entry.
36057 (read_config_file): New argument `nested', changed all callers.
36058 Only in the case of a new context, initialize a new menu. Set the
36059 `menu' environment variable.
36060 (grub_normal_execute): Don't set and unset the environment
36061 variable `menu' here anymore. Only free the menu when leaving the
36062 context.
36063
36064 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
36065 leak.
36066
36067 2006-12-11 Marco Gerards <marco@gnu.org>
36068
36069 * normal/menu_entry.c (run): Fix off by one bug so the last line
36070 is executed. Move the loader check to outside the loop.
36071
36072 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
36073
36074 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
36075
36076 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
36077
36078 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
36079 the number of sectors. Reported by Andrey Shuvikov
36080 <mr_hyro@yahoo.com>.
36081
36082 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
36083
36084 * kern/disk.c (grub_disk_read): When there is a read error, always
36085 try to read only the necessary data.
36086
36087 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
36088 disk/raid.c.
36089 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
36090 prototype.
36091 [GRUB_UTIL] (grub_raid_fini): Likewise.
36092 [GRUB_UTIL] (grub_lvm_init): Likewise.
36093 [GRUB_UTIL] (grub_lvm_fini): Likewise.
36094 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
36095 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
36096 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
36097 and grub_raid_fini().
36098
36099 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
36100
36101 * include/grub/types.h (__unused): Rename to UNUSED.
36102 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
36103 (grub_elf64_size): Likewise.
36104
36105 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36106
36107 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
36108 grub_error_push and grub_error_pop in the error-handling path.
36109 (grub_elf32_load_segment): Only call grub_file_read with non-zero
36110 length.
36111
36112 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36113
36114 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
36115 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36117 (kernel_elf_SOURCES): Likewise.
36118 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
36119 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
36120 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36121 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36122 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
36123 (elf_mod_SOURCES): New variable.
36124 (elf_mod_CFLAGS): Likewise.
36125 (elf_mod_LDFLAGS): Likewise.
36126 * include/grub/types.h (__unused): New macro.
36127 * include/grub/elfload.h: New file.
36128 * kern/elf.c: Likewise.
36129 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
36130 (ELF32_LOADMASK): New macro.
36131 (ELF64_LOADMASK): Likewise.
36132 (vmlinux): Removed.
36133 (grub_linux_load32): New function.
36134 (grub_linux_load64): Likewise.
36135 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
36136 Use grub_elf_t instead of grub_file_t.
36137
36138 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
36139
36140 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
36141 `catch_result' to struct set_color_args.
36142
36143 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36144
36145 * normal/menu.c: Include grub/script.h.
36146 * normal/menu_entry.c: Likewise.
36147 * include/grub/normal.h: Do not include grub/script.h.
36148
36149 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36150
36151 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
36152
36153 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36154
36155 * kern/disk.c (grub_disk_open): Print debug messages when opening a
36156 disk.
36157 (grub_disk_close): Print debug messages when closing a disk.
36158 (grub_disk_read): Print debug messages when disk read fails.
36159 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
36160 filesystem type.
36161 * kern/partition.c: Include misc.h.
36162 (grub_partition_iterate): Print debug messages when detecting
36163 partition type.
36164
36165 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36166
36167 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
36168 is negative.
36169 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
36170
36171 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
36172
36173 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
36174 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
36175
36176 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
36177
36178 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
36179 instead of sizeof(lv). Patch by Michael Guntsche.
36180
36181 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
36182
36183 * disk/lvm.c: Rename VGS to VG_LIST.
36184 (grub_lvm_iterate): Change VGS->LV to VG-LV.
36185 (grub_lvm_open): Likewise.
36186 Thanks to Michael Guntsche for finding this bug.
36187
36188 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36189
36190 * configure.ac (AC_INIT): Bumped to 1.95.
36191
36192 2006-10-14 Robert Millan <rmh@aybabtu.com>
36193
36194 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
36195 with "/dev/.static/dev/md".
36196
36197 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36198
36199 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
36200 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
36201 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
36202 DRIVE_NAME are always freed.
36203
36204 * util/i386/pc/biosdisk.c (make_device_name): Add one into
36205 DOS_PART, as a DOS partition is counted from one instead of zero
36206 now. Reported by Robert Millan.
36207
36208 2006-10-14 Robert Millan <rmh@aybabtu.com>
36209
36210 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
36211 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
36212 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
36213 string returned by grub_guess_root_device.
36214 * util/i386/pc/grub-setup.c: Likewise.
36215 * util/i386/pc/grub-probefs.c: Likewise.
36216
36217 * util/i386/pc/grub-probefs.c: Rename to ...
36218 * util/i386/pc/grub-probe.c: ... this.
36219 * DISTLIST: Remove grub-probefs, add grub-probe.
36220 * conf/i386-efi.rmk: Likewise.
36221 * conf/i386-pc.rmk: Likewise.
36222 * util/i386/pc/grub-install.in: Likewise.
36223
36224 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
36225 choose which information we want to print.
36226
36227 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36228
36229 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
36230 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
36231 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
36232 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
36233 video/readers/tga.c and video/i386/pc/vbeutil.c.
36234
36235 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
36236
36237 Added support for RAID and LVM.
36238
36239 * disk/lvm.c: New file.
36240 * disk/raid.c: Likewise.
36241 * include/grub/lvm.h: Likewise.
36242 * include/grub/raid.h: Likewise.
36243 * include/grub/util/lvm.h: Likewise.
36244 * include/grub/util/raid.h: Likewise.
36245 * util/lvm.c: Likewise.
36246 * util/raid.c: Likewise.
36247
36248 * include/grub/disk.h (grub_disk_dev_id): Add
36249 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
36250 (grub_disk_get_size): New prototype.
36251 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
36252 returns a partition.
36253 (grub_disk_get_size): New function.
36254
36255 * kern/i386/pc/init.c (make_install_device): Copy the prefix
36256 verbatim if grub_install_dos_part is -2.
36257
36258 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
36259 and LVM devices.
36260
36261 * util/i386/pc/grub-setup.c (setup): New argument
36262 MUST_EMBED. Force embedding of GRUB when the argument is
36263 true. Close FILE before returning.
36264 (main): Add support for RAID and LVM.
36265
36266 * conf/common.rmk: Add RAID and LVM modules.
36267 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
36268 util/lvm.c.
36269 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
36270
36271 * kern/misc.c (grub_strstr): New function.
36272 * include/grub/misc.h (grub_strstr): New prototype.
36273
36274 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
36275
36276 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
36277
36278 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
36279
36280 * kern/misc.c (grub_strtoull): Guess the base only if not
36281 specified.
36282
36283 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36284
36285 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
36286 PowerMac support.
36287
36288 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36289
36290 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
36291
36292 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
36293 Remove `flags' argument. All callers changed.
36294 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
36295 (IEEE1275_IHANDLE_INVALID): New variable.
36296 (IEEE1275_CELL_INVALID): New variable.
36297 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36298 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
36299 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
36300 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
36301 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
36302 codes from Open Firmware. All callers updated.
36303 (grub_ieee1275_next_property): Directly return Open Firmware return
36304 code.
36305 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36306 Standardize error checking from `grub_ieee1275_get_property'.
36307 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
36308 `devalias' to `aliases'. Correct comments. Consolidate error paths.
36309
36310 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36311
36312 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
36313 `instance_to_package_args' to `instance_to_path_args'.
36314
36315 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
36316 `grub_ieee1275_chosen'.
36317
36318 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
36319 `grub_ieee1275_interpret'.
36320
36321 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36322
36323 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
36324
36325 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36326
36327 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
36328 (__cmpdi): Likewise.
36329
36330 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
36331 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
36332 `grub_ssize_t'.
36333
36334 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
36335
36336 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
36337 to type `grub_ssize_t'.
36338 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
36339
36340 2006-09-22 Marco Gerards <marco@gnu.org>
36341
36342 * normal/script.c (grub_script_create_cmdmenu): Skip leading
36343 newlines.
36344
36345 2006-09-22 Marco Gerards <marco@gnu.org>
36346
36347 * commands/echo.c: New file.
36348
36349 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
36350
36351 * conf/common.rmk (echo_mod_SOURCES): New variable.
36352 (echo_mod_CFLAGS): Likewise.
36353 (echo_mod_LDFLAGS): Likewise.
36354
36355 2006-09-22 Marco Gerards <marco@gnu.org>
36356
36357 * normal/main.c (get_line): Malloc memory instead of using
36358 preallocated memory. Removed the arguments `cmdline' and
36359 `max_len'. Updated all callers.
36360
36361 2006-09-22 Marco Gerards <marco@gnu.org>
36362
36363 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
36364 (normal_mod_DEPENDENCIES): Likewise.
36365
36366 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
36367 (normal_mod_DEPENDENCIES): Likewise.
36368
36369 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
36370
36371 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
36372
36373 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
36374 programs.
36375 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
36376 (normal_mod_DEPENDENCIES): Likewise.
36377 * conf/i386-pc.mk: Regenerate.
36378 * conf/i386-efi.mk: Likewise
36379 * conf/common.mk: Likewise.
36380 * conf/powerpc-ieee1275.mk: Likewise.
36381 * conf/sparc64-ieee1275.mk: Likewise.
36382
36383 2006-09-22 Robert Millan <rmh@aybabtu.com>
36384
36385 Sync with i386 version.
36386 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
36387 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
36388
36389 2006-09-21 Robert Millan <rmh@aybabtu.com>
36390
36391 Import from GRUB Legacy (lib/device.c):
36392 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
36393 (init_device_map) [__linux__]: Add support for I2O devices.
36394
36395 2006-09-14 Marco Gerards <marco@gnu.org>
36396
36397 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
36398 `-melf_i386'.
36399
36400 2006-09-14 Robert Millan <rmh@aybabtu.com>
36401
36402 * util/i386/pc/grub-install.in: Skip menu.lst when removing
36403 /boot/grub/*.lst.
36404
36405 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
36406
36407 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
36408 before adding it to device.map.
36409
36410 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
36411
36412 * genmk.rb: Let GCC generate dependencies the first time it
36413 compiles a file; using the -MD option.
36414 * conf/common.mk: Regenerate.
36415 * conf/i386-pc.mk: Likewise.
36416 * conf/i386-efi.mk: Likewise.
36417 * conf/powerpc-ieee1275.mk: Likewise.
36418 * conf/sparc64-ieee1275.mk: Likewise.
36419
36420 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
36421
36422 Move the prototypes of grub_setjmp and grub_longjmp to
36423 cpu/setjmp.h, so that each architecture may specify different
36424 attributes.
36425
36426 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
36427 (grub_longjmp): Likewise.
36428 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
36429 (grub_longjmp): Likewise.
36430 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
36431 (grub_longjmp): Likewise.
36432
36433 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
36434 [!GRUB_UTIL] (grub_longjmp): Removed.
36435
36436 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
36437
36438 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
36439 "color!" method does not return any value.
36440
36441 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36442
36443 * include/grub/bitmap.h: New file.
36444
36445 * include/grub/i386/pc/vbeutil.h: Likewise.
36446
36447 * video/bitmap.c: Likewise.
36448
36449 * video/readers/tga.c: Likewise.
36450
36451 * video/i386/pc/vbeutil.c: Likewise.
36452
36453 * commands/videotest.c: Code cleanup and updated to reflect to new
36454 video API.
36455
36456 * term/gfxterm.c: Likewise.
36457
36458 * video/video.c: Likewise.
36459
36460 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
36461 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
36462 (bitmap_mod_SOURCES): New entry.
36463 (bitmap_mod_CFLAGS): Likewise.
36464 (bitmap_mod_LDFLAGS): Likewise.
36465 (tga_mod_SOURCES): Likewise.
36466 (tga_mod_CFLAGS): Likewise.
36467 (tga_mod_LDFLAGS): Likewise.
36468
36469 * include/grub/video.h (grub_video_blit_operators): New enum type.
36470 (grub_video_render_target): Changed as forward declaration and moved
36471 actual definition to be video driver specific.
36472 (grub_video_adapter.blit_bitmap): Added blitting operator.
36473 (grub_video_adapter.blit_render_target): Likewise.
36474 (grub_video_blit_bitmap): Likewise.
36475 (grub_video_blit_render_target): Likewise.
36476
36477 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
36478 driver specific render target definition.
36479 (grub_video_vbe_map_rgba): Added driver internal helper.
36480 (grub_video_vbe_unmap_color): Updated to use
36481 grub_video_i386_vbeblit_info.
36482 (grub_video_vbe_get_video_ptr): Likewise.
36483
36484 * include/grub/i386/pc/vbeblit.h
36485 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
36486 grub_video_i386_vbeblit_info.
36487 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36488 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36489 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36490 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36491 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36492 (grub_video_i386_vbeblit_index_index): Likewise.
36493 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
36494 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36495 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36496 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
36497 operator.
36498 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
36499 operator.
36500
36501 * video/i386/pc/vbeblit.c: Updated to reflect changes on
36502 include/grub/i386/pc/vbeblit.h.
36503
36504 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
36505 Updated to use grub_video_i386_vbeblit_info.
36506 (grub_video_i386_vbefill_R8G8B8): Likewise.
36507 (grub_video_i386_vbefill_index): Likewise.
36508 (grub_video_i386_vbefill): Added generic filler.
36509
36510 * video/i386/pc/vbefill.c: Updated to reflect changes on
36511 include/grub/i386/pc/vbefill.h.
36512
36513 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
36514 grub_video_i386_vbeblit_info.
36515 (grub_video_vbe_unmap_color): Likewise.
36516 (grub_video_vbe_blit_glyph): Likewise.
36517 (grub_video_vbe_scroll): Likewise.
36518 (grub_video_vbe_draw_pixel): Removed function.
36519 (grub_video_vbe_get_pixel): Likewise.
36520 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
36521 updated code to use it.
36522 (common_blitter): Added common blitter for render target and bitmap.
36523 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
36524 (grub_video_vbe_blit_render_target): Likewise.
36525
36526 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
36527
36528 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
36529 is in text mode if there is no console control protocol instance
36530 available.
36531
36532 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36533
36534 * include/grub/video.h: Code cleanup.
36535
36536 * include/grub/i386/pc/vbe.h: Likewise.
36537
36538 * video/i386/pc/vbe.c: Likewise.
36539
36540 * video/i386/pc/vbeblit.c: Likewise.
36541
36542 * video/i386/pc/vbefill.c: Likewise.
36543
36544 * video/video.c: Likewise. Also added more comments.
36545
36546 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36547
36548 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
36549 (struct grub_biosdisk_dap): Likewise.
36550
36551 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
36552 linkage settings for all functions.
36553
36554 2006-07-12 Marco Gerards <marco@gnu.org>
36555
36556 * configure.ac (--enable-mm-debug): Fix typo.
36557
36558 * genkernsyms.sh.in: Use proper quoting for `CC'.
36559
36560 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
36561
36562 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
36563 (normal_mod_ASFLAGS): Remove "-m32".
36564
36565 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
36566
36567 * util/misc.c: Include config.h.
36568 [!HAVE_MEMALIGN]: Do not include malloc.h.
36569 (grub_memalign): Use posix_memalign, if present. Then, use
36570 memalign, if present. Otherwise, emit an error.
36571
36572 * util/grub-emu.c: Do not include malloc.h.
36573
36574 * include/grub/util/misc.h: Include unistd.h. This is required for
36575 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
36576 D. Eades III <hde@foobar-qux.org>.
36577
36578 * configure.ac (AC_GNU_SOURCE): Added.
36579 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
36580 type.
36581
36582 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
36583
36584 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
36585 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
36586
36587 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
36588
36589 * include/grub/types.h (grub_host_addr_t): Rename to
36590 grub_target_addr_t.
36591 (grub_host_off_t): Rename to grub_target_off_t.
36592 (grub_host_size_t): Rename to grub_target_size_t.
36593 (grub_host_ssize_t): Rename to grub_target_ssize_t.
36594 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
36595
36596 * include/grub/kernel.h (struct grub_module_header): Change type
36597 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
36598 (grub_module_info): Likewise.
36599
36600 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36601
36602 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
36603 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
36604 Velazquez <jesus.velazquez@gmail.com>.
36605
36606 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36607
36608 Count partitions from 1 instead of 0 in the string representation
36609 of partitions. Still use 0-based internally.
36610
36611 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
36612 (sun_partition_map_iterate): Use grub_partition_t instead of
36613 struct grub_partition *. Cast DESC->START_CYLINDER to
36614 grub_uint64_t after converting the endian.
36615 (sun_partition_map_probe): Subtract 1 for PARTNUM.
36616 (sun_partition_map_get_name): Add 1 to P->INDEX.
36617
36618 * partmap/pc.c (grub_partition_parse): Subtract 1 for
36619 PCDATA->DOS_PART.
36620 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
36621
36622 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
36623 zero instead of one.
36624 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
36625 (gpt_partition_map_get_name): Add 1 into P->INDEX.
36626
36627 * partmap/apple.c (apple_partition_map_iterate): Change the type
36628 of POS to unsigned.
36629 (apple_partition_map_probe): Subtract 1 for PARTNUM.
36630 (apple_partition_map_get_name): Add 1 into P->INDEX.
36631
36632 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
36633 of POS to unsigned.
36634 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
36635 calculate the offset of a partition.
36636 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
36637 (amiga_partition_map_get_name): Add 1 into P->INDEX.
36638
36639 * partmap/acorn.c (acorn_partition_map_find): Change the type of
36640 SECTOR to grub_disk_addr_t.
36641 (acorn_partition_map_iterate): Likewise.
36642 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
36643 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
36644 top.
36645 (acorn_partition_map_get_name): Add 1 into P->INDEX.
36646
36647 * kern/i386/pc/init.c (make_install_device): Add 1 into
36648 GRUB_INSTALL_DOS_PART.
36649
36650 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
36651 conditional.
36652
36653 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36654
36655 Clean up the code to support 64-bit addressing in disks and
36656 files. This change is not enough for filesystems yet.
36657
36658 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
36659 type of "start" to grub_uint64_t.
36660 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
36661 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
36662 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
36663 convert addresses.
36664
36665 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
36666 to grub_disk_addr_t.
36667
36668 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
36669 string.
36670
36671 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36672
36673 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
36674 to char *.
36675
36676 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
36677
36678 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
36679
36680 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
36681
36682 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
36683 to grub_off_t, to detect an error from grub_file_seek.
36684 (grub_multiboot_load_elf32): Likewise.
36685
36686 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
36687 maximum unsigned long value when an overflow is detected.
36688 (grub_strtoull): New function.
36689 (grub_divmod64): Likewise.
36690 (grub_lltoa): use grub_divmod64.
36691
36692 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
36693 grub_disk_addr_t.
36694 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
36695 the pointer to next character. Use grub_strtoull instead of
36696 grub_strtoul.
36697 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
36698 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
36699 respectively.
36700
36701 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
36702 return value is signed.
36703 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
36704 test if OFFSET is less than zero, as OFFSET is unsigned now.
36705
36706 * kern/disk.c (struct grub_disk_cache): Change the type of
36707 "sector" to grub_disk_addr_t.
36708 (grub_disk_cache_get_index): Change the type of SECTOR to
36709 grub_disk_addr_t. Calculate the hash with SECTOR casted to
36710 unsigned after shifting.
36711 (grub_disk_cache_invalidate): Change the type of SECTOR to
36712 grub_disk_addr_t.
36713 (grub_disk_cache_unlock): Likewise.
36714 (grub_disk_cache_store): Likewise.
36715 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
36716 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
36717 grub_disk_addr_t and grub_uint64_t, respectively.
36718 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
36719 body, as the value of OFFSET is tweaked by
36720 grub_disk_check_range. Change the types of START_SECTOR, LEN and
36721 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
36722 respectively.
36723 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
36724 body, as the value of OFFSET is tweaked by
36725 grub_disk_check_range. Change the types of LEN and N to
36726 grub_size_t.
36727
36728 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
36729 and "saved_offset" to grub_off_t.
36730 (test_header): Cast BUF to char *.
36731 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
36732 to char *.
36733 (grub_gzio_read): Change the types of OFFSET and SIZE to
36734 grub_off_t and grub_size_t, respectively.
36735
36736 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
36737 Removed.
36738 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
36739 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
36740 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
36741 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
36742 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
36743
36744 * include/grub/types.h (grub_off_t): Unconditionally set to
36745 grub_uint64_t.
36746 (grub_disk_addr_t): Changed to grub_uint64_t.
36747
36748 * include/grub/partition.h (struct grub_partition): Change the
36749 types of "start", "len" and "offset" to grub_disk_addr_t,
36750 grub_uint64_t and grub_disk_addr_t, respectively.
36751 (grub_partition_get_start): Return grub_disk_addr_t.
36752 (grub_partition_get_len): Return grub_uint64_t.
36753
36754 * include/grub/misc.h (grub_strtoull): New prototype.
36755 (grub_divmod64): Likewise.
36756
36757 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
36758 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
36759 grub_off_t, respectively.
36760 All callers and references changed.
36761
36762 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
36763 grub_size_t in "read".
36764 All callers and references changed.
36765
36766 * include/grub/file.h (struct grub_file): Change the types of
36767 "offset" and "size" to grub_off_t and grub_off_t,
36768 respectively. Change the type of SECTOR to grub_disk_addr_t in
36769 "read_hook".
36770 (grub_file_read): Change the type of LEN to grub_size_t.
36771 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
36772 grub_off_t.
36773 (grub_file_size): Return grub_off_t.
36774 (grub_file_tell): Likewise.
36775 All callers and references changed.
36776
36777 * include/grub/disk.h (struct grub_disk_dev): Change the types of
36778 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
36779 "write".
36780 (struct grub_disk): Change the type of "total_sectors" to
36781 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
36782 "read_hook".
36783 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
36784 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
36785 (grub_disk_write): Likewise.
36786 All callers and references changed.
36787
36788 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
36789 char * for grub_strncmp to silence gcc.
36790 (grub_iso9660_mount): Likewise.
36791 (grub_iso9660_mount): Likewise.
36792 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
36793 return statement.
36794 (grub_iso9660_iterate_dir): Likewise.
36795 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
36796
36797 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
36798 LEN to grub_disk_addr_t and grub_size_t, respectively.
36799
36800 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
36801
36802 * fs/jfs.c (grub_jfs_read_file): Likewise.
36803
36804 * fs/minix.c (grub_jfs_read_file): Likewise.
36805
36806 * fs/sfs.c (grub_jfs_read_file): Likewise.
36807
36808 * fs/ufs.c (grub_jfs_read_file): Likewise.
36809
36810 * fs/xfs.c (grub_jfs_read_file): Likewise.
36811
36812 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
36813 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
36814 respectively.
36815
36816 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
36817 BLKNR to -1 instead of returning GRUB_ERRNO.
36818 (grub_ext2_read_file): Change the types of SECTOR and
36819 LEN to grub_disk_addr_t and grub_size_t, respectively.
36820
36821 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
36822 LEN to grub_disk_addr_t and grub_size_t, respectively.
36823
36824 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
36825 grub_file_read.
36826
36827 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
36828 string. Do not cast SECTOR explicitly.
36829
36830 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
36831 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
36832 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
36833 grub_disk_addr_t and grub_size_t, respectively. If the sector is
36834 over 2TB and LBA mode is not supported, raise an error.
36835 (get_safe_sectors): New function.
36836 (grub_biosdisk_read): Use get_safe_sectors.
36837 (grub_biosdisk_write): Likewise.
36838
36839 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
36840 (grub_efidisk_write): Likewise.
36841
36842 * disk/loopback.c (delete_loopback): Cosmetic changes.
36843 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
36844 correctly.
36845 (grub_loopback_open): Likewise.
36846 (grub_loopback_read): Likewise. Also, change the type of POS to
36847 grub_off_t, and fix the usage of grub_memset.
36848
36849 * commands/i386/pc/play.c: Include grub/machine/time.h.
36850
36851 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
36852 print FILE->SIZE.
36853
36854 * commands/configfile.c: Include grub/env.h.
36855
36856 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
36857 GRUB_ERRNO directly instead. Change the type of POS to
36858 grub_off_t. Follow the coding standard.
36859
36860 * commands/blocklist.c: Include grub/partition.h.
36861 (grub_cmd_blocklist): Return an error if the underlying device is
36862 not a disk. Take the starting sector of a partition into account,
36863 if a partition is used.
36864
36865 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
36866 a length field.
36867 (lba_mode): Support 64-bit addresses.
36868 (chs_mode): Likewise.
36869 (copy_buffer): Adapted to the new offsets of a length field and a
36870 segment field.
36871 (blocklist_default_start): Allocate 64-bit space.
36872
36873 * boot/i386/pc/boot.S (force_lba): Removed.
36874 (boot_drive): Moved to under KERNEL_SECTOR.
36875 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
36876 space.
36877 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
36878 is useless.
36879 (lba_mode): Refactored to support a 64-bit address. More size
36880 optimization.
36881 (setup_sectors): Likewise.
36882
36883 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36884
36885 * DISTLIST: Added include/grub/i386/linux.h. Removed
36886 include/grub/i386/pc/linux.h
36887
36888 * configure.ac (AC_INIT): Bumped to 1.94.
36889
36890 * config.guess: Updated from gnulib.
36891 * config.sub: Likewise.
36892 * install-sh: Likewise.
36893 * mkinstalldirs: Likewise.
36894
36895 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
36896
36897 * conf/common.rmk (grub_modules_init.lst): Depended on
36898 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
36899 MODSRCFILES.
36900
36901 * genmk.rb (PModule::rule): Reverted the previous change.
36902
36903 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
36904
36905 * conf/common.rmk (grub_modules_init.lst): Depends on
36906 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
36907 that the target does not exist before producing.
36908 (grub_modules_init.h): Remove the target before generating.
36909 (grub_emu_init.c): Likewise.
36910
36911 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
36912
36913 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
36914
36915 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
36916 for the target-specific tests. Make sure that we also have the
36917 up-to-date target variables for those tests.
36918
36919 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
36920
36921 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
36922 (PModule::rule): Likewise.
36923
36924 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
36925
36926 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
36927 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
36928 target-specific flags should be prefixed.
36929 (PModule::rule): Likewise.
36930
36931 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
36932
36933 * configure.ac (CMP): Check if cmp is available explicitly.
36934
36935 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
36936
36937 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
36938 (target_cpu): New variable.
36939 (pkglibdir): Use target_cpu instead of host_cpu.
36940
36941 * util/i386/pc/grub-install.in (host_cpu): Removed.
36942 (target_cpu): New variable.
36943 (pkglibdir): Use target_cpu instead of host_cpu.
36944
36945 * util/genmoddep.c: Removed.
36946
36947 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
36948 instead of GRUB_HOST_SIZEOF_VOID_P.
36949 * kern/dl.c: Likewise.
36950
36951 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
36952 ...
36953 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
36954 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
36955 (GRUB_TARGET_SIZEOF_LONG): ... this.
36956 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
36957 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
36958 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
36959 to ...
36960 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
36961 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
36962 (GRUB_TARGET_SIZEOF_LONG): ... this.
36963 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
36964 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
36965 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
36966 to ...
36967 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
36968 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
36969 (GRUB_TARGET_SIZEOF_LONG): ... this.
36970 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
36971 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
36972
36973 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
36974 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
36975 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
36976 instead of GRUB_HOST_SIZEOF_LONG.
36977 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
36978 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
36979 GRUB_CPU_WORDS_BIGENDIAN.
36980 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
36981 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
36982 grub_host_ssize_t.
36983
36984 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
36985 (genmoddep_SOURCES): Likewise.
36986 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
36987 (genmoddep_SOURCES): Likewise.
36988 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
36989 (genmoddep_SOURCES): Likewise.
36990 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
36991 Likewise.
36992 (genmoddep_SOURCES): Likewise.
36993
36994 * genmoddep.awk: New file.
36995
36996 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
36997 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
36998 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
36999 (PModule::rule): Likewise.
37000 (Program::rule): Likewise.
37001 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
37002 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
37003 respectively.
37004
37005 * configure.ac: Rewritten intensively to use host and target
37006 instead of build and host, respectively.
37007
37008 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
37009 (host_cpu): Removed.
37010 (target_cpu): New variable.
37011 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
37012 (BUILD_CC): Removed.
37013 (BUILD_CFLAGS): Likewise.
37014 (BUILD_CPPFLAGS): Likewise.
37015 (TARGET_CC): New variable.
37016 (TARGET_CFLAGS): Likewise.
37017 (TARGET_CPPFLAGS): Likewise.
37018 (TARGET_LDFLAGS): Likewise.
37019 (AWK): Likewise.
37020 (include): Use target_cpu instead of host_cpu.
37021 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
37022
37023 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
37024
37025 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
37026
37027 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
37028 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
37029 field 'false' to 'exec_on_false'.
37030 (grub_script_create_cmdif): Renamed argument names to reflect above
37031 changes.
37032
37033 * normal/execute.c (grub_script_execute_cmdif): Likewise.
37034
37035 * normal/script.c (grub_script_create_cmdif): Likewise.
37036
37037 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
37038
37039 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
37040 top.
37041 (grub_hfsplus_btree_recptr): Likewise.
37042 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
37043 FILEBLOCK both to pass a block number and store next block
37044 number.
37045 (grub_hfsplus_read_block): Rewritten heavily to support an extent
37046 overflow file correctly. Specify errors appropriately, because
37047 fshelp expects that GRUB_ERRNO is set when fails. Reuse
37048 grub_hfsplus_btree_recptr to get the pointer to a found key.
37049 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
37050 is found.
37051
37052 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
37053 linux.mod.
37054 (_linux_mod_SOURCES): New variable.
37055 (_linux_mod_CFLAGS): Likewise.
37056 (_linux_mod_LDFLAGS): Likewise.
37057 (linux_mod_SOURCES): Likewise.
37058 (linux_mod_CFLAGS): Likewise.
37059 (linux_mod_LDFLAGS): Likewise.
37060
37061 * DISTLIST: Added loader/i386/efi/linux.c,
37062 loader/i386/efi/linux_normal.c and
37063 include/grub/i386/efi/loader.h.
37064
37065 * loader/i386/efi/linux.c: New file.
37066 * loader/i386/efi/linux_normal.c: Likewise.
37067 * include/grub/i386/efi/loader.h: Likewise.
37068
37069 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
37070
37071 * commands/blocklist.c: New file.
37072
37073 * DISTLIST: Added commands/blocklist.c.
37074
37075 * term/efi/console.c (grub_console_highlight_color): Use a lighter
37076 color for the background, and a darker color for the foreground.
37077 (grub_console_checkkey): Return READ_KEY.
37078 (grub_console_cls): Set the background to
37079 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
37080
37081 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
37082
37083 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
37084 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
37085
37086 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
37087 prototype.
37088
37089 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
37090 BG. The spec is wrong again.
37091
37092 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
37093 prototype.
37094 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
37095
37096 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
37097 commands/blocklist.c.
37098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37099
37100 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
37101 (blocklist_mod_SOURCES): New variable.
37102 (blocklist_mod_CFLAGS): Likewise.
37103 (blocklist_mod_LDFLAGS): Likewise.
37104
37105 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
37106
37107 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
37108 duplication.
37109 (lba_mode): Use %eax more intensively to reduce the code size.
37110
37111 2006-05-20 Marco Gerards <marco@gnu.org>
37112
37113 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
37114
37115 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
37116 for `menuentry'.
37117 (script): Accept leading newlines.
37118 (newlines): New rule to describe 0 or more newlines.
37119 (commands): Accept `command' with trailing newline. Fixed the
37120 order in which arguments were passed to `grub_script_add_cmd'.
37121 Accept commands separated by newlines.
37122 (function): Changed to accept newlines.
37123 (menuentry) Rewritten.
37124
37125 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
37126 front of the list, instead of to the end.
37127
37128 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
37129
37130 * util/i386/pc/grub-install.in (bindir): New variable.
37131 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
37132 Shaver <lbgwjl@gmail.com>.
37133
37134 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
37135
37136 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
37137 grub/machine/linux.h
37138 * loader/i386/pc/linux.c: Likewise.
37139
37140 * include/grub/i386/pc/linux.h: Moved to ...
37141 * include/grub/i386/linux.h: ... here.
37142
37143 * include/grub/i386/linux.h (struct linux_kernel_params): New
37144 struct.
37145
37146 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
37147
37148 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
37149 checking.
37150 (grub_video_vbe_blit_glyph): Likewise.
37151 (grub_video_vbe_blit_bitmap): Likewise.
37152 (grub_video_vbe_blit_render_target): Likewise.
37153
37154 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
37155
37156 * configure.ac (--with-platform): Properly quote the square
37157 brackets.
37158
37159 2006-05-08 Marco Gerards <marco@gnu.org>
37160
37161 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
37162 this...
37163 (kernel_elf_HEADERS): ...to this. Updated all users.
37164 (grubof_symlist.c): Renamed from this...
37165 (kernel_elf_symlist.c): ...to this. Updated all users.
37166 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37167 (grubof_SOURCES): Renamed from this...
37168 (kernel_elf_SOURCES): ...to this.
37169 (grubof_HEADERS): Renamed from this...
37170 (kernel_elf_HEADERS): ...to this.
37171 (grubof_CFLAGS): Renamed from this...
37172 (kernel_elf_CFLAGS): ...to this.
37173 (grubof_ASFLAGS): Renamed from this...
37174 (kernel_elf_ASFLAGS): ...to this.
37175 (grubof_LDFLAGS): Renamed from this...
37176 (kernel_elf_LDFLAGS): ...to this.
37177
37178 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
37179 this...
37180 (kernel_elf_HEADERS): ...to this. Updated all users.
37181 (grubof_symlist.c): Renamed from this...
37182 (kernel_elf_symlist.c): ...to this. Updated all users.
37183 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37184 (grubof_SOURCES): Renamed from this...
37185 (kernel_elf_SOURCES): ...to this.
37186 (grubof_HEADERS): Renamed from this...
37187 (kernel_elf_HEADERS): ...to this.
37188 (grubof_CFLAGS): Renamed from this...
37189 (kernel_elf_CFLAGS): ...to this.
37190 (grubof_ASFLAGS): Renamed from this...
37191 (kernel_elf_ASFLAGS): ...to this.
37192 (grubof_LDFLAGS): Renamed from this...
37193 (kernel_elf_LDFLAGS): ...to this.
37194
37195 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
37196 `kernel.elf' instead of `grubof'.
37197
37198 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
37199
37200 Add --with-platform to configure. Use pkglibdir instead of
37201 pkgdatadir. This is reported by Roger Leigh.
37202
37203 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
37204 (host_vendor): Likewise.
37205 (host_os): Likewise.
37206 (pkgdatadir): Likewise.
37207 (platform): New variable.
37208 (pkglibdir): Likewise.
37209 Use PKGLIBDIR instead of PKGDATADIR.
37210
37211 * util/i386/pc/grub-install.in (datadir): Removed.
37212 (host_vendor): Likewise.
37213 (host_os): Likewise.
37214 (pkgdatadir): Likewise.
37215 (platform): New variable.
37216 (pkglibdir): Likewise.
37217 Use PKGLIBDIR instead of PKGDATADIR.
37218
37219 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
37220 instead of GRUB_DATADIR.
37221 (main): Likewise.
37222 * util/i386/pc/grub-mkimage.c (usage): Likewise.
37223 (main): Likewise.
37224 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37225 (main): Likewise.
37226
37227 * configure.ac (--with-platform): New option.
37228 Use PLATFORM instead of HOST_VENDOR to specify a platform.
37229
37230 * Makefile.in: Include a makefile based on PLATFORM instead of
37231 HOST_VENDOR.
37232 (pkgdatadir): Not appended by the machine type.
37233 (pkglibdir): Appended by the machine type.
37234 (host_vendor): Removed.
37235 (platform): New variable.
37236 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
37237 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
37238 (uninstall): Likewise.
37239
37240 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
37241
37242 Use the environment context in the menu. Remove the commands
37243 "default" and "timeout", and use variables instead.
37244
37245 * normal/menu.c: Include grub/env.h.
37246 (print_entry): Cast TITLE to silence gcc.
37247 (get_timeout): New function.
37248 (set_timeout): Likewise.
37249 (get_entry_number): Likewise.
37250 (run_menu): Use a default entry, a fallback entry and a timeout
37251 in the environment variables "default", "fallback" and
37252 "timeout". Also, tweak the default entry if it is not within the
37253 current menu entries.
37254 (grub_menu_run): Use a fallback entry in the environment variable
37255 "fallback".
37256
37257 * normal/main.c (read_config_file): Do not initialize
37258 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
37259 NEWMENU->TIMEOUT.
37260 (grub_normal_execute): Use a data slot to store the menu.
37261
37262 * include/grub/normal.h (struct grub_menu): Removed default_entry,
37263 fallback_entry and timeout.
37264 (struct grub_menu_list): Removed.
37265 (grub_menu_list_t): Likewise.
37266 (struct grub_context): Likewise.
37267 (grub_context_t): Likewise.
37268 (grub_context_get): Likewise.
37269 (grub_context_get_current_menu): Likewise.
37270 (grub_context_push_menu): Likewise.
37271 (grub_context_pop_menu): Likewise.
37272 (grub_default_init): Likewise.
37273 (grub_default_fini): Likewise.
37274 (grub_timeout_init): Likewise.
37275 (grub_timeout_fini): Likewise.
37276
37277 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
37278 and timeout.mod.
37279 (normal_mod_SOURCES): Removed normal/context.c.
37280
37281 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
37282 commands/default.c, commands/timeout.c and normal/context.c.
37283 (normal_mod_SOURCES): Removed normal/context.c.
37284
37285 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
37286 commands/timeout.c and normal/context.c.
37287 (normal_mod_SOURCES): Removed normal/context.c.
37288
37289 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
37290 commands/default.c, commands/timeout.c and normal/context.c.
37291 (normal_mod_SOURCES): Removed normal/context.c.
37292
37293 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
37294 timeout.mod.
37295 (default_mod_SOURCES): Removed.
37296 (default_mod_CFLAGS): Likewise.
37297 (default_mod_LDFLAGS): Likewise.
37298 (timeout_mod_SOURCES): Removed.
37299 (timeout_mod_CFLAGS): Likewise.
37300 (timeout_mod_LDFLAGS): Likewise.
37301
37302 * DISTLIST: Removed commands/default.c, commands/timeout.c and
37303 normal/context.c.
37304
37305 * commands/default.c: Removed.
37306 * commands/timeout.c: Likewise.
37307 * normal/context.c: Likewise.
37308
37309 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
37310
37311 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
37312
37313 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
37314
37315 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
37316 "next" to "prev" for readability.
37317 (struct grub_env_sorted_var): New struct.
37318 (grub_env_context): Renamed to ...
37319 (initial_context): ... this.
37320 (grub_env_var_context): Renamed to ...
37321 (current_context): ... this.
37322 (grub_env_find): Look only at CURRENT_CONTEXT.
37323 (grub_env_context_open): Rewritten to copy exported variables from
37324 previous context.
37325 (grub_env_context_close): Rewritten according to the new
37326 scheme. Also, add an assertion to prevent the initial context from
37327 removed.
37328 (grub_env_insert): Removed the code for the sorted list.
37329 (grub_env_remove): Likewise.
37330 (grub_env_export): Simply mark the variable with
37331 GRUB_ENV_VAR_GLOBAL.
37332 (grub_env_set): A cosmetic change for naming consistency.
37333 (grub_env_get): Likewise.
37334 (grub_env_unset): Likewise.
37335 (grub_env_iterate): Rewritten to sort variables within this
37336 function.
37337 (grub_register_variable_hook): Fixed for naming consistency. Call
37338 grub_env_find again, only if NAME is not found at the first time.
37339 (mangle_data_slot_name): New function.
37340 (grub_env_set_data_slot): Likewise.
37341 (grub_env_get_data_slot): Likewise.
37342 (grub_env_unset_data_slot): Likewise.
37343
37344 * include/grub/env.h (grub_env_var_type): New enum.
37345 (GRUB_ENV_VAR_LOCAL): New constant.
37346 (GRUB_ENV_VAR_GLOBAL): Likewise.
37347 (GRUB_ENV_VAR_DATA): Likewise.
37348 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
37349 "type".
37350 (grub_env_set): Replace VAR with NAME for consistency.
37351 (grub_register_variable_hook): Likewise.
37352 (grub_env_export): Specify the name of the argument.
37353 (grub_env_set_data_slot): New prototype.
37354 (grub_env_get_data_slot): Likewise.
37355 (grub_env_unset_data_slot): Likewise.
37356
37357 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37358
37359 Extend the loader so that GRUB can accept a loader which comes
37360 back to GRUB when a loaded image exits. Also, this change adds
37361 support for a chainloader on EFI.
37362
37363 * term/efi/console.c: Include grub/misc.h.
37364 (grub_console_checkkey): Display a scan code on the top for
37365 debugging. This will be removed once the EFI port gets stable.
37366 Correct the scan code mapping.
37367
37368 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
37369 allocate memory from larger regions, in order to reduce the number
37370 of allocated regions. Otherwise, the MacOSX loader panics.
37371 (filter_memory_map): Avoid less than 1MB for compatibility with
37372 other loaders.
37373 (add_memory_regions): Allocate from the tail of a region, if
37374 possible, to avoid allocating a region near to 1MB, for the MacOSX
37375 loader.
37376
37377 * kern/efi/init.c (grub_efi_set_prefix): Specify
37378 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
37379
37380 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
37381 argument IMAGE_HANDLE and specify it to get a loaded image.
37382 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
37383 grub_efi_get_loaded_image.
37384 (grub_efi_get_filename): Divide the length by the size of
37385 grub_efi_char16_t.
37386 (grub_efi_get_device_path): New function.
37387 (grub_efi_print_device_path): Print End Device Path nodes. Divide
37388 the length by the size of grub_efi_char16_t for a file path device
37389 path node.
37390
37391 * kern/loader.c (grub_loader_noreturn): New variable.
37392 (grub_loader_set): Accept a new argument NORETURN. Set
37393 GRUB_LOADER_NORETURN to NORETURN.
37394 All callers changed.
37395 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
37396 grub_machine_fini.
37397
37398 * include/grub/efi/efi.h (grub_efi_get_device_path): New
37399 prototype.
37400 (grub_efi_get_loaded_image): Take an argument to specify an image
37401 handle.
37402
37403 * include/grub/loader.h (grub_loader_set): Added one more argument
37404 NORETURN.
37405
37406 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
37407 instead of grub_efi_open_protocol.
37408 (grub_efidisk_get_device_name): Likewise.
37409 (grub_efidisk_close): Print a newline.
37410 (grub_efidisk_get_device_handle): Fixed to use
37411 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
37412 GRUB_EFI_DEVICE_PATH_TYPE.
37413
37414 * disk/efi/efidisk.c (device_path_guid): Moved to ...
37415 * kern/efi/efi.c (device_path_guid): ... here.
37416
37417 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
37418 chain.mod.
37419 (kernel_mod_HEADERS): Added efi/disk.h.
37420 (_chain_mod_SOURCES): New variable.
37421 (_chain_mod_CFLAGS): Likewise.
37422 (_chain_mod_LDFLAGS): Likewise.
37423 (chain_mod_SOURCES): Likewise.
37424 (chain_mod_CFLAGS): Likewise.
37425 (chain_mod_LDFLAGS): Likewise.
37426
37427 * DISTLIST: Added include/grub/efi/chainloader.h,
37428 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
37429
37430 * include/grub/efi/chainloader.h: New file.
37431 * loader/efi/chainloader.c: Likewise.
37432 * loader/efi/chainloader_normal.c: Likewise.
37433
37434 2006-04-30 Marco Gerards <marco@gnu.org>
37435
37436 * commands/configfile.c (grub_cmd_source): New function.
37437 (GRUB_MOD_INIT): Register the commands `source' and `.'.
37438 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
37439
37440 2006-04-30 Marco Gerards <marco@gnu.org>
37441
37442 * normal/execute.c (grub_script_execute_cmd): Change the return
37443 type to `grub_err_t'. Correctly return the error.
37444 (grub_script_execute_cmdline): In case a command line is not a
37445 command or a function, try to interpret it as an assignment.
37446
37447 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37448
37449 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
37450 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
37451 skip a node whose name is obviously invalid as UTF-16,
37452 i.e. contains a NUL character. Stop the iteration when the last
37453 directory entry is found. Instead of using the return value of
37454 grub_hfsplus_btree_iterate_node, store the value in RET and use
37455 it, because the iterator can be stopped by the last directory
37456 entry.
37457
37458 2006-04-30 Marco Gerards <marco@gnu.org>
37459
37460 * include/grub/env.h (grub_env_export): New prototype. Reported
37461 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
37462
37463 2006-04-30 Marco Gerards <marco@gnu.org>
37464
37465 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
37466 size of the extents in a catalog file record.
37467
37468 2006-04-29 Marco Gerards <marco@gnu.org>
37469
37470 * commands/configfile.c (grub_cmd_configfile): Execute the
37471 configfile within its own context.
37472
37473 * include/grub/env.h (grub_env_context_open): New prototype.
37474 (grub_env_context_close): Likewise.
37475
37476 * kern/env.c (grub_env): Removed.
37477 (grub_env_sorted): Likewise.
37478 (grub_env_context): New variable.
37479 (grub_env_var_context): Likewise.
37480 (grub_env_find): Search both the active context and the global
37481 context.
37482 (grub_env_context_open): New function.
37483 (grub_env_context_close): Likewise.
37484 (grub_env_insert): Likewise.
37485 (grub_env_remove): Likewise.
37486 (grub_env_export): Likewise.
37487 (grub_env_set): Changed to use helper functions to avoid code
37488 duplication.
37489 (grub_env_iterate): Rewritten so both the current context and the
37490 global context are being used.
37491
37492 * normal/command.c (export_command): New function.
37493 (grub_command_init): Register the `export' function.
37494
37495 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
37496
37497 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
37498 explicitly to suppress gcc's warnings.
37499 * fs/fat.c (grub_fat_find_dir): Likewise.
37500 (grub_fat_label): Likewise.
37501 * fs/xfs.c (grub_xfs_read_inode): Likewise.
37502 (grub_xfs_mount): Likewise.
37503 (grub_xfs_label): Likewise.
37504 * fs/affs.c (grub_affs_mount): Likewise.
37505 (grub_affs_label): Likewise.
37506 (grub_affs_iterate_dir): Likewise.
37507 * fs/sfs.c (grub_sfs_mount): Likewise.
37508 (grub_sfs_iterate_dir): Likewise.
37509 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
37510 * fs/hfs.c (grub_hfs_mount): Likewise.
37511 (grub_hfs_cmp_catkeys): Likewise.
37512 (grub_hfs_find_dir): Likewise.
37513 (grub_hfs_dir): Likewise.
37514 (grub_hfs_label): Likewise.
37515 * fs/jfs.c (grub_jfs_mount): Likewise.
37516 (grub_jfs_opendir): Likewise.
37517 (grub_jfs_getent): Likewise.
37518 (grub_jfs_lookup_symlink): Likewise.
37519 (grub_jfs_label): Likewise.
37520 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
37521 (grub_hfsplus_iterate_dir): Likewise.
37522 (grub_hfsplus_btree_iterate_node): Made static.
37523
37524 * util/grub-emu.c (prefix): New variable.
37525 (grub_machine_set_prefix): New function.
37526 (main): Do not set the environment variable "prefix" here. Only
37527 set PREFIX, which is used later by grub_machine_set_prefix.
37528
37529 * include/grub/video.h: Do not include grub/symbol.h.
37530 (grub_video_register): Not exported. This symbol is not defined in
37531 the kernel.
37532 (grub_video_unregister): Likewise.
37533 (grub_video_iterate): Likewise.
37534 (grub_video_setup): Likewise.
37535 (grub_video_restore): Likewise.
37536 (grub_video_get_info): Likewise.
37537 (grub_video_get_blit_format): Likewise.
37538 (grub_video_set_palette): Likewise.
37539 (grub_video_get_palette): Likewise.
37540 (grub_video_set_viewport): Likewise.
37541 (grub_video_get_viewport): Likewise.
37542 (grub_video_map_color): Likewise.
37543 (grub_video_map_rgb): Likewise.
37544 (grub_video_map_rgba): Likewise.
37545 (grub_video_fill_rect): Likewise.
37546 (grub_video_blit_glyph): Likewise.
37547 (grub_video_blit_bitmap): Likewise.
37548 (grub_video_blit_render_target): Likewise.
37549 (grub_video_scroll): Likewise.
37550 (grub_video_swap_buffers): Likewise.
37551 (grub_video_create_render_target): Likewise.
37552 (grub_video_delete_render_target): Likewise.
37553 (grub_video_set_active_render_target): Likewise.
37554
37555 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
37556 Undefined.
37557 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
37558
37559 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
37560 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37561 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37562 instead of $(srcdir)/genkernsyms.sh.
37563
37564 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
37565 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37566 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37567 instead of $(srcdir)/genkernsyms.sh.
37568
37569 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
37570 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37571 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37572 instead of $(srcdir)/genkernsyms.sh.
37573
37574 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
37575 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37576 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37577 instead of $(srcdir)/genkernsyms.sh.
37578
37579 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
37580 genkernsyms.sh.
37581
37582 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
37583 genkernsyms.sh.
37584 (gensymlist.sh): New target.
37585 (genkernsyms.sh): Likewise.
37586
37587 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
37588 genkernsyms.sh.in and gensymlist.sh.in.
37589
37590 * genkernsyms.sh: Removed.
37591 * gensymlist.sh: Likewise.
37592
37593 * genkernsyms.sh.in: New file.
37594 * gensymlist.sh.in: Likewise.
37595
37596 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37597
37598 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
37599 clobber "prefix", since we may have already set it manually.
37600
37601 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37602
37603 * kern/misc.c (abort): New alias for grub_abort.
37604
37605 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
37606
37607 A new machine-specific function "grub_machine_set_prefix" is
37608 defined. This is called after loading modules, so that a prefix
37609 initialization can use modules. Also, this change adds an
37610 intensive debugging feature for the memory manager via the
37611 configure option "--enable-mm-debug".
37612
37613 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
37614 PART.LEN.
37615
37616 * kern/sparc64/ieee1275/init.c (abort): Removed.
37617 (grub_stop): Likewise.
37618 (grub_exit): New function.
37619 (grub_set_prefix): Renamed to ...
37620 (grub_machine_set_prefix): ... this.
37621 (grub_machine_init): Do not call grub_set_prefix.
37622
37623 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
37624 (grub_machine_set_prefix): ... this.
37625 (grub_machine_init): Do not call grub_set_prefix.
37626
37627 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
37628 (grub_machine_init): Do not set the prefix here.
37629
37630 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
37631
37632 * kern/efi/init.c: Include grub/mm.h.
37633 (grub_efi_set_prefix): New function.
37634
37635 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
37636 (grub_efi_get_filename): New function.
37637 (grub_print_device_path): Renamed to ...
37638 (grub_efi_print_device_path): ... this.
37639
37640 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
37641 [MM_DEBUG] (grub_realloc): Likewise.
37642 [MM_DEBUG] (grub_free): Likewise.
37643 [MM_DEBUG] (grub_memalign): Likewise.
37644 [MM_DEBUG] (grub_mm_debug): New variable.
37645 [MM_DEBUG] (grub_debug_malloc): New function.
37646 [MM_DEBUG] (grub_debug_free): New function.
37647 [MM_DEBUG] (grub_debug_realloc): New function.
37648 [MM_DEBUG] (grub_debug_memalign): New function.
37649
37650 * kern/misc.c (grub_abort): Print a newline to distinguish
37651 the message.
37652
37653 * kern/main.c (grub_main): Call grub_machine_set_prefix and
37654 grub_set_root_dev after loading modules. This is necessary when
37655 setting a prefix depends on modules.
37656
37657 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
37658 (grub_efi_print_device_path): ... this.
37659 (grub_efi_get_filename): New prototype.
37660 (grub_efi_set_prefix): Likewise.
37661
37662 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
37663 and grub/disk.h.
37664 (grub_efidisk_get_device_handle): New prototype.
37665 (grub_efidisk_get_device_name): Likewise.
37666
37667 * include/grub/mm.h: Include config.h.
37668 (MM_DEBUG): Removed.
37669 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
37670 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
37671 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
37672 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
37673 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
37674 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
37675 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
37676 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
37677 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
37678
37679 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
37680
37681 * disk/efi/efidisk.c: Include grub/partition.h.
37682 (iterate_child_devices): New function.
37683 (add_device): First, compare only last device path nodes, so that
37684 devices are sorted by the types.
37685 (grub_efidisk_get_device_handle): New function.
37686 (grub_efidisk_get_device_name): Likewise.
37687
37688 * configure.ac (--enable-mm-debug): New option to enable the
37689 memory manager debugging feature. This makes the binary much
37690 bigger, so is disabled by default.
37691
37692 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
37693
37694 Use grub_abort instead of grub_stop, and grub_exit must be
37695 define in each architecture now. Also, this change adds support
37696 for EFI disks.
37697
37698 * util/i386/pc/grub-probefs.c: Include grub/term.h.
37699 (grub_getkey): New function.
37700 (grub_term_get_current): Likewise.
37701
37702 * util/i386/pc/grub-setup.c: Include grub/term.h.
37703 (grub_getkey): New function.
37704 (grub_term_get_current): Likewise.
37705
37706 * util/misc.c (grub_stop): Renamed to ...
37707 (grub_exit): ... this.
37708
37709 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
37710 (grub_exit): ... this.
37711 (grub_machine_init): Use grub_abort instead of abort.
37712 (grub_stop): Removed.
37713
37714 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
37715 abort.
37716
37717 * kern/i386/pc/startup.S (grub_exit): New function.
37718 (cold_reboot): New label.
37719
37720 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
37721 (grub_efi_init): Call grub_efidisk_init.
37722 (grub_efi_fini): Call grub_efidisk_fini.
37723
37724 * kern/efi/efi.c: Include grub/mm.h.
37725 (grub_efi_console_control_guid): Renamed to ...
37726 (console_control_guid): ... this.
37727 (grub_efi_loaded_image_guid): Renamed to ...
37728 (loaded_image_guid): ... this.
37729 (grub_efi_locate_handle): New function.
37730 (grub_efi_open_protocol): Likewise.
37731 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
37732 GRUB_EFI_CONSOLE_CONTROL_GUID.
37733 (grub_efi_exit): Removed.
37734 (grub_stop): Likewise.
37735 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
37736 (grub_exit): New function.
37737 (grub_print_device_path): Likewise.
37738
37739 * kern/rescue.c (grub_rescue_cmd_exit): New function.
37740 (grub_enter_rescue_mode): Register "exit".
37741
37742 * kern/misc.c (grub_real_dprintf): A cosmetic change.
37743 (grub_abort): New function.
37744
37745 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
37746
37747 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
37748
37749 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
37750
37751 * include/grub/efi/efi.h (grub_efi_exit): Removed.
37752 (grub_print_device_path): New prototype.
37753 (grub_efi_locate_handle): Likewise.
37754 (grub_efi_open_protocol): Likewise.
37755
37756 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
37757 * disk/efi/efidisk.c: Likewise.
37758
37759 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
37760
37761 * include/grub/efi/console_control.h
37762 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
37763
37764 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
37765 last 8 bytes as an array.
37766 (GRUB_EFI_DISK_IO_GUID): New macro.
37767 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
37768 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
37769 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
37770 grub_uint8_t.
37771 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
37772 (struct grub_efi_device_path): Rename the member "sub_type" to
37773 "subtype".
37774 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
37775 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
37776 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
37777 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
37778 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
37779 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
37780 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
37781 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
37782 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
37783 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
37784 (struct grub_efi_pci_device_path): New structure.
37785 (grub_efi_pci_device_path_t): New type.
37786 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
37787 (struct grub_efi_pccard_device_path): New structure.
37788 (grub_efi_pccard_device_path_t): New type.
37789 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
37790 (struct grub_efi_memory_mapped_device_path): New structure.
37791 (grub_efi_memory_mapped_device_path_t): New type.
37792 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
37793 (struct grub_efi_vendor_device_path): New structure.
37794 (grub_efi_vendor_device_path_t): New type.
37795 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
37796 (struct grub_efi_controller_device_path): New structure.
37797 (grub_efi_controller_device_path_t): New type.
37798 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
37799 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
37800 (struct grub_efi_acpi_device_path): New structure.
37801 (grub_efi_acpi_device_path_t): New type.
37802 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
37803 (struct grub_efi_expanded_acpi_device_path): New structure.
37804 (grub_efi_expanded_acpi_device_path_t): New type.
37805 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
37806 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
37807 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
37808 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
37809 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
37810 (struct grub_efi_atapi_device_path): New structure.
37811 (grub_efi_atapi_device_path_t): New type.
37812 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
37813 (struct grub_efi_fibre_channel_device_path): New structure.
37814 (grub_efi_fibre_channel_device_path_t): New type.
37815 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
37816 (struct grub_efi_1394_device_path): New structure.
37817 (grub_efi_1394_device_path_t): New type.
37818 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
37819 (struct grub_efi_usb_device_path): New structure.
37820 (grub_efi_usb_device_path_t): New type.
37821 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
37822 (struct grub_efi_usb_class_device_path): New structure.
37823 (grub_efi_usb_class_device_path_t): New type.
37824 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
37825 (struct grub_efi_i2o_device_path): New structure.
37826 (grub_efi_i2o_device_path_t): New type.
37827 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
37828 (struct grub_efi_mac_address_device_path): New structure.
37829 (grub_efi_mac_address_device_path_t): New type.
37830 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
37831 (struct grub_efi_ipv4_device_path): New structure.
37832 (grub_efi_ipv4_device_path_t): New type.
37833 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
37834 (struct grub_efi_ipv6_device_path): New structure.
37835 (grub_efi_ipv6_device_path_t): New type.
37836 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
37837 (struct grub_efi_infiniband_device_path): New structure.
37838 (grub_efi_infiniband_device_path_t): New type.
37839 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
37840 (struct grub_efi_uart_device_path): New structure.
37841 (grub_efi_uart_device_path_t): New type.
37842 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
37843 (struct grub_efi_vendor_messaging_device_path): New structure.
37844 (grub_efi_vendor_messaging_device_path_t): New type.
37845 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
37846 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
37847 (struct grub_efi_hard_drive_device_path): New structure.
37848 (grub_efi_hard_drive_device_path_t): New type.
37849 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
37850 (struct grub_efi_cdrom_device_path): New structure.
37851 (grub_efi_cdrom_device_path_t): New type.
37852 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
37853 (struct grub_efi_vendor_media_device_path): New structure.
37854 (grub_efi_vendor_media_device_path_t): New type.
37855 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
37856 (struct grub_efi_file_path_device_path): New structure.
37857 (grub_efi_file_path_device_path_t): New type.
37858 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
37859 (struct grub_efi_protocol_device_path): New structure.
37860 (grub_efi_protocol_device_path_t): New type.
37861 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
37862 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
37863 (struct grub_efi_bios_device_path): New structure.
37864 (grub_efi_bios_device_path_t): New type.
37865 (struct grub_efi_disk_io): New structure.
37866 (grub_efi_disk_io_t): New type.
37867 (struct grub_efi_block_io_media): New structure.
37868 (grub_efi_block_io_media_t): New type.
37869 (struct grub_efi_block_io): New structure.
37870 (grub_efi_block_io_t): New type.
37871
37872 * include/grub/misc.h (grub_stop): Removed.
37873 (grub_exit): New prototype.
37874 (grub_abort): Likewise.
37875
37876 * include/grub/disk.h (enum grub_disk_dev_id): Added
37877 GRUB_DISK_DEVICE_EFIDISK_ID.
37878
37879 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
37880 disk/efi/efidisk.c.
37881 (kernel_syms.lst): Remove the target if an error occurs.
37882
37883 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
37884
37885 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
37886 as it was simply too buggy.
37887
37888 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
37889
37890 * kern/misc.c (grub_lltoa): New function.
37891 (grub_vsprintf): Added support for the long long suffix,
37892 i.e. "ll".
37893
37894 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
37895
37896 * Makefile.in (LDFLAGS): Add variable.
37897 (LD): Remove variable.
37898 * configure.ac: Add -m32 to LDFLAGS.
37899 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
37900 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
37901 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
37902 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
37903 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
37904 variables.
37905 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
37906 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
37907 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
37908
37909 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
37910
37911 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
37912 length for unknown glyph.
37913
37914 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
37915
37916 Add support for pre-loaded modules into the EFI port.
37917
37918 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
37919 completely. Accept one more argument DIR. The caller has changed.
37920
37921 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
37922
37923 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
37924 (grub_efi_loaded_image_guid): New variable.
37925 (grub_efi_get_loaded_image): New function.
37926 (grub_arch_modules_addr): Likewise.
37927
37928 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
37929 prototype.
37930
37931 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
37932 (struct grub_efi_loaded_image): New structure.
37933 (grub_efi_loaded_image_t): New type.
37934
37935 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
37936
37937 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
37938 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
37939 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
37940
37941 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
37942
37943 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
37944
37945 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
37946
37947 * DISTLIST: Added include/grub/efi/console.h,
37948 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
37949 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
37950
37951 * include/grub/efi/console.h: New file.
37952 * include/grub/efi/time.h: Likewise.
37953 * include/grub/i386/efi/kernel.h: Likewise.
37954 * kern/efi/init.c: Likewise.
37955 * kern/efi/mm.c: Likewise.
37956 * term/efi/console.c: Likewise.
37957
37958 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
37959 (grub_stop): Removed.
37960 (grub_get_rtc): Likewise.
37961 (grub_machine_init): Simply call grub_efi_init.
37962 (grub_machine_fini): Call grub_efi_fini.
37963
37964 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
37965 (grub_efi_output_string): Removed.
37966 (grub_efi_stall): New function.
37967 (grub_stop): Likewise.
37968 (grub_get_rtc): Likewise.
37969
37970 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
37971 (grub_efi_stall): New prototype.
37972 (grub_efi_allocate_pages): Likewise.
37973 (grub_efi_free_pages): Likewise.
37974 (grub_efi_get_memory_map): Likewise.
37975 (grub_efi_mm_init): Likewise.
37976 (grub_efi_mm_fini): Likewise.
37977 (grub_efi_init): Likewise.
37978 (grub_efi_fini): Likewise.
37979
37980 * include/grub/i386/efi/time.h: Do not include
37981 grub/symbol.h. Include grub/efi/time.h.
37982 (GRUB_TICKS_PER_SECOND): Removed.
37983 (grub_get_rtc): Likewise.
37984
37985 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
37986 Added padding. The EFI spec is buggy.
37987 (GRUB_EFI_BLACK): New macro.
37988 (GRUB_EFI_BLUE): Likewise.
37989 (GRUB_EFI_GREEN): Likewise.
37990 (GRUB_EFI_CYAN): Likewise.
37991 (GRUB_EFI_RED): Likewise.
37992 (GRUB_EFI_MAGENTA): Likewise.
37993 (GRUB_EFI_BROWN): Likewise.
37994 (GRUB_EFI_LIGHTGRAY): Likewise.
37995 (GRUB_EFI_BRIGHT): Likewise.
37996 (GRUB_EFI_DARKGRAY): Likewise.
37997 (GRUB_EFI_LIGHTBLUE): Likewise.
37998 (GRUB_EFI_LIGHTGREEN): Likewise.
37999 (GRUB_EFI_LIGHTCYAN): Likewise.
38000 (GRUB_EFI_LIGHTRED): Likewise.
38001 (GRUB_EFI_LIGHTMAGENTA): Likewise.
38002 (GRUB_EFI_YELLOW): Likewise.
38003 (GRUB_EFI_WHITE): Likewise.
38004 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
38005 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
38006 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
38007 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
38008 (GRUB_EFI_BACKGROUND_RED): Likewise.
38009 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
38010 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
38011 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
38012 (GRUB_EFI_TEXT_ATTR): Likewise.
38013
38014 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
38015 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38016 (kernel_mod_HEADERS): Added efi/time.h.
38017
38018 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
38019
38020 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
38021 include/grub/efi/api.h, include/grub/efi/console_control.h,
38022 include/grub/efi/efi.h, include/grub/efi/pe32.h,
38023 include/grub/i386/efi/time.h, kern/efi/efi.c,
38024 kern/i386/efi/init.c, kern/i386/efi/startup.S,
38025 and util/i386/efi/grub-mkimage.c.
38026
38027 * Makefile.in (RMKFILES): Added i386-efi.rmk.
38028
38029 * genmk.rb (PModule#rule): Do not export symbols if
38030 #{prefix}_EXPORTS is set to "no".
38031
38032 * conf/i386-efi.mk: New file.
38033 * conf/i386-efi.rmk: Likewise.
38034 * include/grub/efi/api.h: Likewise.
38035 * include/grub/efi/console_control.h: Likewise.
38036 * include/grub/efi/efi.h: Likewise.
38037 * include/grub/efi/pe32.h: Likewise.
38038 * include/grub/i386/efi/time.h: Likewise.
38039 * kern/efi/efi.c: Likewise.
38040 * kern/i386/efi/init.c: Likewise.
38041 * kern/i386/efi/startup.S: Likewise.
38042 * util/i386/efi/grub-mkimage.c: Likewise.
38043
38044 2006-04-17 Marco Gerards <marco@gnu.org>
38045
38046 * include/grub/script.h: Include <grub/parser.h> and
38047 "grub_script.tab.h".
38048 (struct grub_lexer_param): New struct.
38049 (struct grub_parser_param): Likewise.
38050 (grub_script_create_arglist): Pass the state in an argument.
38051 (grub_script_add_arglist): Likewise.
38052 (grub_script_create_cmdline): Likewise.
38053 (grub_script_create_cmdblock): Likewise.
38054 (grub_script_create_cmdif): Likewise.
38055 (grub_script_create_cmdmenu): Likewise.
38056 (grub_script_add_cmd): Likewise.
38057 (grub_script_arg_add): Likewise.
38058 (grub_script_lexer_ref): Likewise.
38059 (grub_script_lexer_deref): Likewise.
38060 (grub_script_lexer_record_start): Likewise.
38061 (grub_script_lexer_record_stop): Likewise.
38062 (grub_script_mem_record): Likewise.
38063 (grub_script_mem_record_stop): Likewise.
38064 (grub_script_malloc): Likewise.
38065 (grub_script_yylex): Likewise.
38066 (grub_script_yyparse): Likewise.
38067 (grub_script_yyerror): Likewise.
38068 (grub_script_yylex): Likewise.
38069 (grub_script_lexer_init): Return the state.
38070
38071 * normal/lexer.c (grub_script_lexer_state): Removed variable.
38072 (grub_script_lexer_done): Likewise.
38073 (grub_script_lexer_getline): Likewise.
38074 (grub_script_lexer_refs): Likewise.
38075 (script): Likewise.
38076 (newscript): Likewise.
38077 (record): Likewise.
38078 (recording): Likewise.
38079 (recordpos): Likewise.
38080 (recordlen): Likewise.
38081 (grub_script_lexer_init): Return the state instead of setting
38082 global variables.
38083 (grub_script_lexer_ref): Use the newly added argument for state
38084 instead of globals.
38085 (grub_script_lexer_deref): Likewise.
38086 (grub_script_lexer_record_start): Likewise.
38087 (grub_script_lexer_record_stop): Likewise.
38088 (recordchar): Likewise.
38089 (nextchar): Likewise.
38090 (grub_script_yylex2): Likewise.
38091 (grub_script_yylex): Likewise.
38092 (grub_script_yyerror): Likewise.
38093
38094 * normal/parser.y (func_mem): Removed variable.
38095 (menu_entry): Likewise.
38096 (err): Likewise.
38097 (%lex-param): New parser option.
38098 (%parse-param): Likewise.
38099 (script): Always return the AST.
38100 (argument): Pass the state around.
38101 (arguments): Likewise.
38102 (grubcmd): Likewise.
38103 (commands): Likewise.
38104 (function): Likewise.
38105 (menuentry): Likewise.
38106 (if_statement): Likewise.
38107 (if): Likewise.
38108
38109 * normal/script.c (grub_script_memused): Removed variable.
38110 (grub_script_parsed): Likewise.
38111 (grub_script_malloc): Added a state argument. Use that instead of
38112 global variables.
38113 (grub_script_mem_record): Likewise.
38114 (grub_script_mem_record_stop): Likewise.
38115 (grub_script_arg_add): Likewise.
38116 (grub_script_add_arglist): Likewise.
38117 (grub_script_create_cmdline): Likewise.
38118 (grub_script_create_cmdif): Likewise.
38119 (grub_script_create_cmdmenu): Likewise.
38120 (grub_script_add_cmd): Likewise.
38121 (grub_script_parse): Setup the state before calling the parser.
38122
38123 2006-04-16 Marco Gerards <marco@gnu.org>
38124
38125 * normal/command.c (grub_command_init): Remove the title command.
38126
38127 * normal/lexer.c (grub_script_yylex): Renamed from this...
38128 (grub_script_yylex2): ... to this.
38129 (grub_script_yylex): New function. Temporary
38130 introduced to filter some tokens.
38131 (grub_script_yyerror): Print a newline.
38132
38133 * normal/main.c (read_config_file): Output information about the
38134 lines that contain errors. Wait for a key after all lines have
38135 been processed. Don't return an empty menu.
38136
38137 * normal/parser.y (func_mem): Don't initialize.
38138 (menu_entry): Likewise.
38139 (err): New variable.
38140 (script): Don't return anything when an error was encountered.
38141 (ws, returns): Removed rules.
38142 (argument): Disabled concatenated variable support.
38143 (arguments): Remove explicit separators.
38144 (grubcmd): Likewise.
38145 (function): Likewise.
38146 (menuentry): Likewise.
38147 (if): Likewise.
38148 (commands): Likewise. Add error handling.
38149
38150 * normal/script.c (grub_script_create_cmdline): If
38151 `grub_script_parsed' is 0, assume the parser encountered an error.
38152
38153 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
38154
38155 * configure.ac: Add support for EFI. Fix the typo
38156 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
38157
38158 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38159
38160 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
38161 foreign multibyte characters should be shown correctly.
38162
38163 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38164
38165 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
38166 calculation.
38167 (read_config_file): Made it to close file before returning.
38168
38169 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
38170
38171 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
38172 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
38173 video/i386/pc/vbefill.c.
38174
38175 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
38176 video/i386/pc/vbefill.c.
38177
38178 * include/grub/video.h (grub_video_blit_format): New enum.
38179 (grub_video_mode_info): Added new member blit_format.
38180 (grub_video_get_blit_format): New function prototype.
38181
38182 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
38183 function prototype.
38184 (grub_video_vbe_map_rgb): Likewise.
38185 (grub_video_vbe_unmap_color): Likewise.
38186
38187 * include/grub/i386/pc/vbeblit.h: New file.
38188
38189 * include/grub/i386/pc/vbefill.h: New file.
38190
38191 * video/video.c (grub_video_get_blit_format): New function.
38192 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
38193 (grub_video_vbe_map_rgb): Likewise.
38194 (grub_video_vbe_unmap_color): Likewise.
38195
38196 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
38197 optimized fills.
38198 (grub_video_vbe_blit_render_target): Changed to use more optimized
38199 blits.
38200 (grub_video_vbe_setup): Added detection for optimized settings.
38201 (grub_video_vbe_create_render_target): Likewise.
38202
38203 * video/i386/pc/vbeblit.c: New file.
38204
38205 * video/i386/pc/vbefill.c: New file.
38206
38207 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
38208
38209 * font/manager.c (grub_font_get_glyph): Removed font fixup from
38210 here...
38211
38212 * util/unifont2pff.rb: ... and moved it to here. Improved argument
38213 parsing to support both hex and dec ranges. If filename was missing
38214 show usage information.
38215
38216 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
38217
38218 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
38219 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
38220
38221 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
38222 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
38223 (video_mod_SOURCES): Added.
38224 (video_mod_CFLAGS): Likewise.
38225 (video_mod_LDFLAGS): Likewise.
38226 (gfxterm_mod_SOURCES): Likewise.
38227 (gfxterm_mod_CFLAGS): Likewise.
38228 (gfxterm_mod_LDFLAGS): Likewise.
38229 (videotest_mod_SOURCES): Likewise.
38230 (videotest_mod_CFLAGS): Likewise.
38231 (videotest_mod_LDFLAGS): Likewise.
38232 (vesafb_mod_SOURCES): Removed.
38233 (vesafb_mod_CFLAGS): Likewise.
38234 (vesafb_mod_LDFLAGS): Likewise.
38235 (vga_mod_SOURCES): Likewise.
38236 (vga_mod_CFLAGS): Likewise.
38237 (vga_mod_LDFLAGS): Likewise.
38238
38239 * commands/videotest.c: New file.
38240
38241 * font/manager.c (fill_with_default_glyph): Modified to use
38242 grub_font_glyph.
38243 (grub_font_get_glyph): Likewise.
38244 (fontmanager): Renamed from this...
38245 (font_manager): ... to this.
38246
38247 * include/grub/font.h (grub_font_glyph): Added new structure.
38248 (grub_font_get_glyph): Modified to use grub_font_glyph.
38249
38250 * include/grub/misc.h (grub_abs): Added as inline function.
38251
38252 * include/grub/video.h: New file.
38253
38254 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
38255 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
38256 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
38257 (grub_vbe_get_controller_info): Renamed from this...
38258 (grub_vbe_bios_get_controller_info): ... to this.
38259 (grub_vbe_get_mode_info): Renamed from this...
38260 (grub_vbe_bios_get_mode_info): ... to this.
38261 (grub_vbe_set_mode): Renamed from this...
38262 (grub_vbe_bios_set_mode): ... to this.
38263 (grub_vbe_get_mode): Renamed from this...
38264 (grub_vbe_bios_get_mode): ... to this.
38265 (grub_vbe_set_memory_window): Renamed from this...
38266 (grub_vbe_bios_set_memory_window): ... to this.
38267 (grub_vbe_get_memory_window): Renamed from this...
38268 (grub_vbe_bios_get_memory_window): ... to this.
38269 (grub_vbe_set_scanline_length): Renamed from this...
38270 (grub_vbe_set_scanline_length): ... to this.
38271 (grub_vbe_get_scanline_length): Renamed from this...
38272 (grub_vbe_bios_get_scanline_length): ... to this.
38273 (grub_vbe_set_display_start): Renamed from this...
38274 (grub_vbe_bios_set_display_start): ... to this.
38275 (grub_vbe_get_display_start): Renamed from this...
38276 (grub_vbe_bios_get_display_start): ... to this.
38277 (grub_vbe_set_palette_data): Renamed from this...
38278 (grub_vbe_bios_set_palette_data): ... to this.
38279 (grub_vbe_set_pixel_rgb): Removed.
38280 (grub_vbe_set_pixel_index): Likewise.
38281
38282 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
38283 from this...
38284 (grub_vbe_bios_get_controller_info): ... to this.
38285 (grub_vbe_get_mode_info): Renamed from this...
38286 (grub_vbe_bios_get_mode_info): ... to this.
38287 (grub_vbe_set_mode): Renamed from this...
38288 (grub_vbe_bios_set_mode): ... to this.
38289 (grub_vbe_get_mode): Renamed from this...
38290 (grub_vbe_bios_get_mode): ... to this.
38291 (grub_vbe_set_memory_window): Renamed from this...
38292 (grub_vbe_bios_set_memory_window): ... to this.
38293 (grub_vbe_get_memory_window): Renamed from this...
38294 (grub_vbe_bios_get_memory_window): ... to this.
38295 (grub_vbe_set_scanline_length): Renamed from this...
38296 (grub_vbe_set_scanline_length): ... to this.
38297 (grub_vbe_get_scanline_length): Renamed from this...
38298 (grub_vbe_bios_get_scanline_length): ... to this.
38299 (grub_vbe_set_display_start): Renamed from this...
38300 (grub_vbe_bios_set_display_start): ... to this.
38301 (grub_vbe_get_display_start): Renamed from this...
38302 (grub_vbe_bios_get_display_start): ... to this.
38303 (grub_vbe_set_palette_data): Renamed from this...
38304 (grub_vbe_bios_set_palette_data): ... to this.
38305 (grub_vbe_bios_get_controller_info): Fixed problem with registers
38306 getting corrupted after calling it. Added more pushes and pops.
38307 (grub_vbe_bios_set_mode): Likewise.
38308 (grub_vbe_bios_get_mode): Likewise.
38309 (grub_vbe_bios_get_memory_window): Likewise.
38310 (grub_vbe_bios_set_scanline_length): Likewise.
38311 (grub_vbe_bios_get_scanline_length): Likewise.
38312 (grub_vbe_bios_get_display_start): Likewise.
38313 (grub_vbe_bios_set_palette_data): Likewise.
38314
38315 * normal/cmdline.c (cl_set_pos): Refresh the screen.
38316 (cl_insert): Likewise.
38317 (cl_delete): Likewise.
38318
38319 * term/gfxterm.c: New file.
38320
38321 * term/i386/pc/vesafb.c: Removed file.
38322
38323 * video/video.c: New file.
38324
38325 * video/i386/pc/vbe.c (real2pm): Added new function.
38326 (grub_video_vbe_draw_pixel): Likewise.
38327 (grub_video_vbe_get_video_ptr): Likewise.
38328 (grub_video_vbe_get_pixel): Likewise
38329 (grub_video_vbe_init): Likewise.
38330 (grub_video_vbe_fini): Likewise.
38331 (grub_video_vbe_setup): Likewise.
38332 (grub_video_vbe_get_info): Likewise.
38333 (grub_video_vbe_set_palette): Likewise.
38334 (grub_video_vbe_get_palette): Likewise.
38335 (grub_video_vbe_set_viewport): Likewise.
38336 (grub_video_vbe_get_viewport): Likewise.
38337 (grub_video_vbe_map_color): Likewise.
38338 (grub_video_vbe_map_rgb): Likewise.
38339 (grub_video_vbe_map_rgba): Likewise.
38340 (grub_video_vbe_unmap_color): Likewise.
38341 (grub_video_vbe_fill_rect): Likewise.
38342 (grub_video_vbe_blit_glyph): Likewise.
38343 (grub_video_vbe_blit_bitmap): Likewise.
38344 (grub_video_vbe_blit_render_target): Likewise.
38345 (grub_video_vbe_scroll): Likewise.
38346 (grub_video_vbe_swap_buffers): Likewise.
38347 (grub_video_vbe_create_render_target): Likewise.
38348 (grub_video_vbe_delete_render_target): Likewise.
38349 (grub_video_vbe_set_active_render_target): Likewise.
38350 (grub_vbe_set_pixel_rgb): Remove function.
38351 (grub_vbe_set_pixel_index): Likewise.
38352 (index_color_mode): Remove static variable.
38353 (active_mode): Likewise.
38354 (framebuffer): Likewise.
38355 (bytes_per_scan_line): Likewise.
38356 (grub_video_vbe_adapter): Added new static variable.
38357 (framebuffer): Likewise.
38358 (render_target): Likewise.
38359 (initial_mode): Likewise.
38360 (mode_in_use): Likewise.
38361 (mode_list): Likewise.
38362
38363 2006-03-10 Marco Gerards <marco@gnu.org>
38364
38365 * configure.ac (AC_INIT): Bumped to 1.93.
38366
38367 * DISTLIST: Added `include/grub/hfs.h'.
38368
38369 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
38370
38371 * boot/i386/pc/boot.S (general_error): Before looping, try INT
38372 18H, which might help the BIOS falling back to next boot media.
38373
38374 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
38375
38376 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
38377 Poe Chen <poe.poechen@gmail.com>.
38378
38379 2006-01-17 Marco Gerards <marco@gnu.org>
38380
38381 * include/grub/normal.h: Include <grub/script.h>.
38382 (grub_command_list): Removed struct.
38383 (grub_command_list_t): Removed type.
38384 (grub_menu_entry): Remove members `num' and `command_list'. Add
38385 members `commands' and `sourcecode'.
38386 * include/grub/script.h: Add inclusion guards.
38387 (grub_script_cmd_menuentry): New struct.
38388 (grub_script_execute_menuentry): New prototype.
38389 (grub_script_lexer_record_start): Likewise.
38390 (grub_script_lexer_record_stop): Likewise.
38391 * normal/execute.c (grub_script_execute_menuentry): New function.
38392 * normal/lexer.c (record, recording, recordpos, recordlen): New
38393 variables.
38394 (grub_script_lexer_record_start): New function.
38395 (grub_script_lexer_record_stop): Likewise.
38396 (recordchar): Likewise.
38397 (nextchar): Likewise.
38398 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
38399 2048 as the buffer size. Add the tokens `menuentry' and `@'.
38400 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
38401 (current_menu): New variable.
38402 (free_menu): Mainly rewritten.
38403 (grub_normal_menu_addentry): New function.
38404 (read_config_file): Rewritten.
38405 * normal/menu.c (run_menu_entry): Mainly rewritten.
38406 * normal/menu_entry.c (make_screen): Rewritten the code to insert
38407 the menu entry.
38408 (run): Mainly rewritten.
38409 * normal/parser.y (menu_entry): New variable.
38410 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
38411 (menuentry): New rule.
38412 (command): Add `menuentry'.
38413 (if_statement): Allow additional returns before `fi'.
38414 * normal/script.c (grub_script_create_cmdmenu): New function.
38415
38416 2006-01-03 Marco Gerards <marco@gnu.org>
38417
38418 * INSTALL: GNU Bison is required.
38419 * configure.ac: Rewritten the test to detect Bison.
38420 * Makefile.in (YACC): New variable. Reported by Xun Sun
38421 <xun.sun.cn@gmail.com>.
38422
38423 2006-01-03 Marco Gerards <marco@gnu.org>
38424
38425 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
38426 the HFS+ filesystem to filesystem blocks.
38427 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
38428 GCC warning is silenced.
38429
38430 2006-01-03 Marco Gerards <marco@gnu.org>
38431
38432 * partmap/apple.c (apple_partition_map_iterate): Convert the data
38433 read from disk from big endian to host byte order.
38434
38435 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
38436
38437 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
38438 documentation.
38439 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
38440 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
38441 embedded HFS+ filesystem.
38442 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
38443 (grub_hfs_sblock): Move from here...
38444 * include/grub/hfs.h: To here... New file.
38445 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
38446 documentation.
38447 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
38448 New macros.
38449 (grub_hfsplus_volheader): Change type of member `magic' to
38450 `grub_uint16_t'.
38451 (grub_hfsplus_data): Add new member `embedded_offset'.
38452 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
38453 returned block.
38454 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
38455 Calculate the offset.
38456
38457 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38458
38459 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
38460 Removed.
38461 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
38462
38463 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38464
38465 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
38466 ENV->NAME is NULL after allocating ENV->VALUE.
38467
38468 2005-12-25 Marco Gerards <marco@gnu.org>
38469
38470 * kern/env.c (grub_env_set): Rewritten the error handling code.
38471
38472 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38473
38474 * geninit.sh: Made more robust, and more portable.
38475
38476 2005-12-25 Marco Gerards <marco@gnu.org>
38477
38478 Add support for Apple HFS+ filesystems.
38479
38480 * fs/hfsplus.c: New file.
38481
38482 * DISTLIST: Added `fs/hfsplus.c'.
38483
38484 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
38485 (hfsplus_mod_SOURCES): New variable.
38486 (hfsplus_mod_CFLAGS): Likewise.
38487 (hfsplus_mod_LDFLAGS): Likewise.
38488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
38489 (grub_setup_SOURCES): Likewise.
38490 (grub_mkdevicemap_SOURCES): Likewise.
38491 (grub_emu_SOURCES): Likewise.
38492 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38493
38494 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
38495
38496 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
38497
38498 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38499
38500 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
38501 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
38502 include/grub/parser.h, include/grub/script.h, kern/parser.c,
38503 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
38504 normal/lexer.c, normal/parser.y, normal/script.c, and
38505 partmap/gpt.c.
38506 Removed kern/sparc64/cache.c.
38507
38508 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
38509 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
38510 grub_emu_init.c.
38511
38512 * configure.ac (AC_INIT): Bumped to 1.92.
38513
38514 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
38515
38516 * kern/err.c (grub_error_push): Added new function to support error
38517 stacks.
38518 (grub_error_pop): Likewise.
38519 (grub_error_stack_items): New local variable to support error stacks.
38520 (grub_error_stack_pos): Likewise.
38521 (grub_error_stack_assert): Likewise.
38522 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
38523 stack depth.
38524 (grub_print_error): Added support to print errors from error stack.
38525
38526 * include/grub/err.h (grub_error_push): Added function prototype.
38527 (grub_error_pop): Likewise.
38528
38529 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
38530
38531 * configure.ac: Accept `powerpc64' as host_cpu.
38532 (amd64): Rename to `biarch32'.
38533
38534 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
38535 non-cacheline-aligned addresses.
38536
38537 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
38538 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
38539 if `size' is non-zero.
38540
38541 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
38542
38543 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
38544 and `cd' to make sure the filename is not prefixed with a
38545 directory name.
38546 (pkgdata_MODULES): Add `gpt.mod'.
38547 (gpt_mod_SOURCES): New variable.
38548 (gpt_mod_CFLAGS): Likewise.
38549 (gpt_mod_LDFLAGS): Likewise.
38550
38551 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
38552
38553 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
38554 New macro.
38555
38556 * partmap/gpt.c: New file.
38557
38558 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
38559 GPT partition map is detected.
38560
38561 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
38562
38563 * commands/i386/pc/play.c: New file.
38564 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
38565 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
38566 macros.
38567
38568 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
38569
38570 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
38571 ((unused))' to silence gcc warning.
38572
38573 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
38574
38575 * configure.ac: Correct `AC_PROG_YACC' test.
38576
38577 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38578
38579 * util/powerpc/ieee1275/grub-install.in: Run the mount point
38580 check before installing files.
38581
38582 2005-11-22 Mike Small <smallm@panix.com>
38583
38584 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
38585 number regex so multidigit numbers are recognized correctly.
38586
38587 2005-11-22 Mike Small <smallm@panix.com>
38588
38589 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
38590 debugging message before attempting to claim memory.
38591 (grub_rescue_cmd_initrd): Add a claim debugging message and try
38592 multiple addresses in case of failure.
38593
38594 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38595
38596 * term/tparm.c (get_space): Remove empty `if' statement.
38597
38598 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
38599
38600 * kern/parser.c (check_varstate): Rename `state' to 's'.
38601
38602 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38603
38604 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
38605 variable definitions to the beginning of each function. Sort stack
38606 variables by size.
38607 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
38608 `buf' argument to `char *'.
38609
38610 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38611
38612 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
38613 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38614 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38615 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38616 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38617 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38618 configfile.mod, search.mod, gzio.mod and test.mod.
38619 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38620 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38621 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38622 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38623 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38624 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38625 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38626 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38627 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38628 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38629 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38630 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38631 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38632 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38633 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38634 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38635 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38636 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38637 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38638 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38639 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38640 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38641 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
38642
38643 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
38644 `grep --include'.
38645 (pkgdata_MODULES): Add test.mod.
38646
38647 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38648
38649 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
38650 appending to variables with "+=".
38651 (PModule): Use full pathname to generate *.lst filenames.
38652
38653 * Makefile.in: Fixed list rules moved from genmk.rb.
38654 (.DELETE_ON_ERROR): New special target.
38655 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
38656
38657 * conf/i386-pc.rmk: Include conf/common.mk.
38658 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38659 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38660 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38661 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38662 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38663 configfile.mod, search.mod, gzio.mod and test.mod.
38664 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38665 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38666 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38667 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38668 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38669 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38670 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38671 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38672 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38673 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38674 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38675 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38676 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38677 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38678 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38679 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38680 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38681 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38682 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38683 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38684 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38685 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38686 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
38687 here...
38688 * conf/common.rmk: ... to here. New file.
38689
38690 * conf/common.mk: New file.
38691
38692 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
38693
38694 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
38695 (grub_script.tab.c): ... here.
38696
38697 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
38698 (grub_script.tab.c): ... here.
38699
38700 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
38701 (grub_script.tab.c): ... here.
38702
38703 * normal/command.c (grub_command_find): Fixed a memory leak of
38704 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
38705
38706 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38707
38708 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
38709 "@" which marks the start of a comment on ARM.
38710 (VARIABLE): Likewise.
38711
38712 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38713
38714 Add support for Linux/ADFS partition tables.
38715
38716 * partmap/acorn.c: New file.
38717
38718 * include/grub/acorn_filecore.h: Likewise.
38719
38720 * DISTLIST: Added `partmap/acorn.c' and
38721 `include/grub/acorn_filecore.h'.
38722
38723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38724 `partmap/acorn.c'.
38725 (pkgdata_MODULES): Add `acorn.mod'.
38726 (acorn_mod_SOURCES): New variable.
38727 (acorn_mod_CFLAGS): Likewise.
38728
38729 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
38730 `partmap/acorn.c'.
38731 (pkgdata_MODULES): Add `acorn.mod'.
38732 (acorn_mod_SOURCES): New variable.
38733 (acorn_mod_CFLAGS): Likewise.
38734
38735 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
38736 (pkgdata_MODULES): Add `acorn.mod'.
38737 (acorn_mod_SOURCES): New variable.
38738 (acorn_mod_CFLAGS): Likewise.
38739 (acorn_mod_LDFLAGS): Likewise.
38740
38741 * include/types.h (grub_disk_addr_t): New typedef.
38742
38743 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
38744
38745 * geninit.sh: New file.
38746
38747 * geninitheader.sh: Likewise.
38748
38749 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
38750 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
38751 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
38752 * commands/configfile.c (grub_configfile_init)
38753 (grub_configfile_fini): Likewise.
38754 * commands/default.c (grub_default_init, grub_default_fini):
38755 Likewise.
38756 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
38757 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
38758 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
38759 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
38760 Likewise.
38761 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
38762 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
38763 Likewise.
38764 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
38765 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
38766 Likewise.
38767 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
38768 Likewise.
38769 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
38770 Likewise.
38771 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
38772 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
38773 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
38774 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
38775 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
38776 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
38777 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
38778 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
38779 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
38780 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
38781 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
38782 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
38783 * partmap/amiga.c (grub_amiga_partition_map_init)
38784 (grub_amiga_partition_map_fini): Likewise.
38785 * partmap/apple.c (grub_apple_partition_map_init)
38786 (grub_apple_partition_map_fini): Likewise.
38787 * partmap/pc.c (grub_pc_partition_map_init)
38788 (grub_pc_partition_map_fini): Likewise.
38789 * partmap/sun.c (grub_sun_partition_map_init,
38790 grub_sun_partition_map_fini): Likewise.
38791 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
38792 Likewise.
38793
38794 * util/grub-emu.c: Include <grub_modules_init.h>.
38795 (main): Don't initialize and de-initialize any modules directly,
38796 use `grub_init_all' and `grub_fini_all' instead.
38797
38798 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
38799 `grub_vesafb_mod_init'.
38800 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
38801 all users.
38802 * term/i386/pc/vga.c (grub_vga_init): Renamed to
38803 `grub_vga_mod_init'. Updated all users.
38804 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
38805
38806 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
38807 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
38808 rules.
38809
38810 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
38811 Generate a function to initialize the module in utilities.
38812 Updated all callers.
38813 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
38814 initialize the module in utilities. Updated all callers.
38815
38816 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
38817
38818 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
38819 escape sequence and a literal ^L to clear the screen.
38820
38821 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
38822 when returning from Open Firmware.
38823
38824 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
38825
38826 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
38827 (grub_ofconsole_height): Likewise.
38828 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
38829 manually insert a '\n'.
38830 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
38831 `grub_ofconsole_height'. Return early if these are already set.
38832
38833 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
38834
38835 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
38836 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
38837 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
38838 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
38839 and `normal/script.c'.
38840 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38841 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38842 (test_mod_SOURCES): New variable.
38843 (test_mod_CFLAGS): Likewise.
38844 (test_mod_LDFLAGS): Likewise.
38845 (pkgdata_MODULES): Add `test.mod'.
38846 (grub_script.tab.c): New rule.
38847 (grub_script.tab.h): Likewise.
38848
38849 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
38850
38851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38852 `commands/test.c', `normal/execute.c', `normal/lexer.c',
38853 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38854 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38855 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38856 (test_mod_SOURCES): New variable.
38857 (test_mod_CFLAGS): Likewise.
38858 (pkgdata_MODULES): Add `test.mod'.
38859 (grub_script.tab.c): New rule.
38860 (grub_script.tab.h): Likewise.
38861
38862 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
38863
38864 Add initial scripting support.
38865
38866 * commands/test.c: New file.
38867 * include/grub/script.h: Likewise.
38868 * normal/execute.c: Likewise.
38869 * normal/function.c: Likewise.
38870 * normal/lexer.c: Likewise.
38871 * normal/parser.y: Likewise.
38872 * normal/script.c: Likewise.
38873
38874 * configure.ac: Add `AC_PROG_YACC' test.
38875
38876 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
38877 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
38878 `normal/function.c' and `normal/script.c'.
38879 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38880 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38881 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
38882 variables.
38883 (pkgdata_MODULES): Add `test.mod'.
38884 (grub_script.tab.c): New rule.
38885 (grub_script.tab.h): Likewise.
38886
38887 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
38888
38889 * include/grub/normal.h (grub_test_init): New prototype.
38890 (grub_test_fini): Likewise.
38891
38892 * normal/command.c: Include <grub/script.h>.
38893 (grub_command_execute): Rewritten.
38894
38895 * util/grub-emu.c (main): Call `grub_test_init' and
38896 `grub_test_fini'.
38897
38898 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
38899
38900 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
38901 to 0.
38902 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
38903 there are no pending characters.
38904
38905 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
38906
38907 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
38908 `grub_strndup' to drop device arguments. Replace unnecessary
38909 `grub_strndup' with `grub_strdup'.
38910
38911 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
38912
38913 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
38914 `debug' environment variable has been set.
38915
38916 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
38917
38918 * Makefile.in (install-local): Use $(DATA).
38919 (uninstall): Likewise.
38920 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
38921 (sbin_UTILITIES): ... to here.
38922 (sbin_SCRIPTS): New variable.
38923 (grub_install_SOURCES): New variable.
38924 * util/powerpc/ieee1275/grub-install.in: New file.
38925 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
38926 variable.
38927 (add_segments): Call `grub_util_get_path'.
38928
38929 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
38930
38931 From Timothy Baldwin:
38932 * commands/ls.c (grub_ls_list_files): Close FILE with
38933 grub_file_close.
38934 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
38935
38936 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
38937
38938 * include/grub/parser.h: New file.
38939
38940 * kern/parser.c: Likewise.
38941
38942 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
38943 (grub_setup_SOURCES): Likewise.
38944 (grub_probefs_SOURCES): Likewise.
38945 (grub_emu_SOURCES): Likewise.
38946 (kernel_img_HEADERS): Add `parser.h'.
38947
38948 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
38949 (grub_emu_SOURCES): Add `kern/parser.c'.
38950 (grubof_SOURCES): Likewise.
38951
38952 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
38953 (grubof_SOURCES): Add `kern/parser.c'.
38954
38955 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
38956
38957 * kern/misc.c (grub_split_cmdline): Removed function.
38958
38959 * kern/rescue.c: Include <grub/parser.h>.
38960 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
38961 of `grub_split_cmdline'.
38962
38963 * normal/command.c: Include <grub/parser.h>.
38964 (grub_command_execute): Use `grub_parser_split_cmdline' instead
38965 of `grub_split_cmdline'.
38966
38967 * normal/completion.c: Include <grub/parser.h>.
38968 (cmdline_state): New variable.
38969 (iterate_dir): End the filename with a quote depending on the
38970 command line state.
38971 (get_state): new function.
38972 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
38973 split the arguments and determine the current argument. When the
38974 argument string is not quoted, escape all spaces.
38975
38976 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
38977
38978 * normal/sparc64/setjmp.S: New file.
38979
38980 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
38981
38982 * include/grub/sparc64/libgcc.h: New file.
38983 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
38984 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
38985 normal/sparc64/setjmp.c.
38986
38987 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
38988
38989 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
38990 * kern/sparc64/cache.S: New file.
38991 * kern/sparc64/cache.c: Removed.
38992 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
38993 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
38994 -mtune=ultrasparc.
38995 (COMMON_LDFLAGS): Add -melf64_sparc.
38996 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
38997 (grubof_SOURCES): Use cache.S instead of cache.c.
38998 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
38999 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
39000 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
39001 commented though.
39002 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
39003 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
39004 (linux_mod_CFLAGS): Commented out.
39005 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
39006 out because module isn't built.
39007 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
39008 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
39009 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
39010 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
39011 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
39012 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39013 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39014 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
39015 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
39016 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
39017 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39018 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39019 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
39020 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
39021
39022 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
39023
39024 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
39025 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
39026 longer, because HFS should not be used on PC.
39027
39028 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39029
39030 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
39031 consistently within the loop.
39032
39033 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
39034
39035 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
39036 directory can not be read.
39037
39038 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39039
39040 * configure.ac (AC_INIT): Increase the version number to 1.91.
39041
39042 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
39043 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
39044 term/i386/pc/serial.c.
39045
39046 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39047
39048 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
39049 file size must be permitted.
39050
39051 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
39052 between %ah and %al.
39053
39054 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39055
39056 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
39057 grub_uint64_t.
39058 Call the hook with a NUL-terminated filename.
39059 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
39060 grub_cpu_to_be32.
39061
39062 * kern/term.c (cursor_state): New variable.
39063 (grub_term_set_current): Reset the cursor state on a new
39064 terminal.
39065 (grub_setcursor): Rewritten to use CURSOR_STATE.
39066 (grub_getcursor): New function.
39067
39068 * include/grub/term.h (grub_getcursor): New prototype.
39069
39070 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
39071 integers on ARM. Reported by Timothy Baldwin
39072 <T.E.Baldwin99@members.leeds.ac.uk>.
39073
39074 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
39075
39076 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
39077 allocated.
39078 (grub_sfs_dir): Likewise.
39079
39080 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
39081
39082 Add support for the SFS filesystem.
39083
39084 * fs/sfs.c: New file.
39085
39086 * DISTLIST: Added `fs/sfs.c'.
39087
39088 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
39089 (grub_probefs_SOURCES): Likewise.
39090 (grub_emu_SOURCES): Likewise.
39091 (pkgdata_MODULES): Add `sfs.mod'.
39092 (sfs_mod_SOURCES): New variable.
39093 (sfs_mod_CFLAGS): Likewise.
39094 (sfs_mod_LDFLAGS): Likewise.
39095
39096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
39097 (pkgdata_MODULES): Add `sfs.mod'.
39098 (sfs_mod_SOURCES): New variable.
39099 (sfs_mod_CFLAGS): Likewise.
39100
39101 * util/grub-emu.c (main): Call `grub_sfs_init' and
39102 `grub_sfs_fini'.
39103
39104 * include/grub/fs.h (grub_sfs_init): New prototype.
39105 (grub_sfs_fini): Likewise.
39106
39107 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
39108
39109 Add support for the AFFS filesystem.
39110
39111 * fs/affs.c: New file.
39112
39113 * DISTLIST: Added `fs/affs.c'.
39114
39115 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
39116 (grub_probefs_SOURCES): Likewise.
39117 (grub_emu_SOURCES): Likewise.
39118 (pkgdata_MODULES): Add `affs.mod'.
39119 (affs_mod_SOURCES): New variable.
39120 (affs_mod_CFLAGS): Likewise.
39121 (affs_mod_LDFLAGS): Likewise.
39122
39123 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
39124 (pkgdata_MODULES): Add `affs.mod'.
39125 (affs_mod_SOURCES): New variable.
39126 (affs_mod_CFLAGS): Likewise.
39127
39128 * util/grub-emu.c (main): Call `grub_affs_init' and
39129 `grub_affs_fini'.
39130
39131 * include/grub/fs.h (grub_affs_init): New prototype.
39132 (grub_affs_fini): Likewise.
39133
39134 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39135
39136 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
39137
39138 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39139
39140 * configure.ac: Accept `x86_64' as host_cpu. In that case add
39141 `-m32' to CFLAGS.
39142
39143 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
39144 linking.
39145
39146 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
39147 (COMMON_LDFLAGS): New variable.
39148 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
39149 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
39150 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
39151 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
39152 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
39153 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
39154 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
39155 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
39156 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
39157 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
39158 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39159 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39160 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
39161 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
39162 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
39163 variables.
39164 (normal_mod_ASFLAGS): Add `-m32'.
39165
39166 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
39167 (grub_host_size_t, grub_host_ssize_t): New types.
39168 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
39169 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
39170 `GRUB_HOST_SIZEOF_VOID_P'.
39171
39172 * include/grub/kernel.h (struct grub_module_header): Type of
39173 member offset changed to `grub_host_off_t'. Type of member size
39174 changed to `grub_host_size_t'.
39175 (struct grub_module_info): Type of member offset changed to
39176 `grub_host_off_t'. Type of member size changed to
39177 `grub_host_size_t'.
39178
39179 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
39180
39181 Make GRUB's kernel compliant to Multiboot Specification.
39182
39183 * kern/i386/pc/startup.S (multiboot_header): New label.
39184 (multiboot_entry): Likewise.
39185 (multiboot_trampoline): Likewise.
39186
39187 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39188 Increased to 0x4A0.
39189
39190 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
39191 put parentheses after a question mark.
39192 [!GRUB_UTIL] (my_mod): New variable.
39193
39194 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
39195
39196 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
39197
39198 Adds support for the XFS filesystem. Btrees are not supported
39199 yet.
39200
39201 * fs/xfs.c: New file.
39202
39203 * DISTLIST: Added `fs/xfs.c'.
39204
39205 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
39206 (grub_probefs_SOURCES): Likewise.
39207 (grub_emu_SOURCES): Likewise.
39208 (pkgdata_MODULES): Add `xfs.mod'.
39209 (xfs_mod_SOURCES): New variable.
39210 (xfs_mod_CFLAGS): Likewise.
39211
39212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
39213 (pkgdata_MODULES): Add `xfs.mod'.
39214 (xfs_mod_SOURCES): New variable.
39215 (xfs_mod_CFLAGS): Likewise.
39216
39217 * util/grub-emu.c (main): Call `grub_xfs_init' and
39218 `grub_xfs_fini'.
39219
39220 * include/grub/fs.h (grub_xfs_init): New prototype.
39221 (grub_xfs_fini): Likewise.
39222
39223
39224 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
39225
39226 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
39227 color modes, allow greater than 16 colors to be configured as
39228 a default palette.
39229
39230 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39231
39232 * normal/completion.c (complete_arguments): Add the qualifier
39233 const into OPTIONS.
39234
39235 From Omniflux <omniflux+lists@omniflux.com>:
39236 * include/grub/terminfo.h: New file.
39237 * include/grub/tparm.h: Likewise.
39238 * include/grub/i386/pc/serial.h: Likewise.
39239 * term/terminfo.c: Likewise.
39240 * term/tparm.c: Likewise.
39241 * term/i386/pc/serial.c: Likewise.
39242 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
39243 serial.mod.
39244 (terminfo_mod_SOURCES): New variable.
39245 (terminfo_mod_CFLAGS): Likewise.
39246 (serial_mod_SOURCES): Likewise.
39247 (serial_mod_CFLAGS): Likewise.
39248
39249 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
39250
39251 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
39252 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
39253 and kern/powerpc/ieee1275/cmain.c, respectively.
39254
39255 * boot/powerpc/ieee1275/crt0.S: Moved to ...
39256 * kern/powerpc/ieee1275/crt0.S: ... here.
39257
39258 * boot/powerpc/ieee1275/cmain.c: Moved to ...
39259 * kern/powerpc/ieee1275/cmain.c: ... here.
39260
39261 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
39262 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
39263 instead of boot/powerpc/ieee1275/crt0.S and
39264 boot/powerpc/ieee1275/cmain.c, respectively.
39265
39266 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
39267 sectors. It was not used anyway.
39268
39269 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39270
39271 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
39272 `unused parameter' warning.
39273
39274 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39275
39276 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
39277 function.
39278 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
39279 getcharwidth.
39280
39281 2005-08-28 Marco Gerards <metgerards@student.han.nl>
39282
39283 * include/grub/normal.h (enum grub_completion_type): Added
39284 `GRUB_COMPLETION_TYPE_ARGUMENT'.
39285
39286 * normal/cmdline.c (print_completion): Handle
39287 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
39288 * normal/menu_entry.c (store_completion): Likewise.
39289
39290 * normal/completion.c (complete_arguments): New function.
39291 (grub_normal_do_completion): Call `complete_arguments' when the
39292 current words start with a dash.
39293
39294 2005-08-27 Marco Gerards <metgerards@student.han.nl>
39295
39296 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
39297 `gzio.mod' instead of `io.mod').
39298
39299 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
39300
39301 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
39302 (DISTDIRS): Added io and video.
39303 Rewrite the search routine to make an output consistently.
39304
39305 * DISTLIST: Added conf/sparc64-ieee1275.mk,
39306 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
39307 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
39308 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
39309 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
39310 util/powerpc/ieee1275/misc.c.
39311
39312 * include/grub/gzio.h: New file.
39313 * io/gzio.c: Likewise.
39314
39315 * kern/file.c (grub_file_close): Call grub_device_close only if
39316 FILE->DEVICE is not NULL.
39317
39318 * include/grub/mm.h [!NULL] (NULL): New macro.
39319
39320 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
39321
39322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
39323 (pkgdata_MODULES): Added gzio.mod.
39324 (gzio_mod_SOURCES): New variable.
39325 (gzio_mod_CFLAGS): Likewise.
39326
39327 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
39328 (pkgdata_MODULES): Added gzio.mod.
39329 (gzio_mod_SOURCES): New variable.
39330 (gzio_mod_CFLAGS): Likewise.
39331
39332 * commands/cat.c: Include grub/gzio.h.
39333 (grub_cmd_cat): Use grub_gzfile_open instead of
39334 grub_file_open.
39335
39336 * commands/cmp.c: Include grub/gzio.h.
39337 (grub_cmd_cmp): Use grub_gzfile_open instead of
39338 grub_file_open.
39339
39340 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
39341 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
39342 grub_file_open.
39343 (grub_rescue_cmd_module): Likewise.
39344
39345 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39346
39347 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
39348 kern/sparc64/ieee1275/init.c because it contains _start.
39349 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
39350
39351 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39352
39353 * configure.ac: Add support for sparc64 host with ieee1275
39354 firmware.
39355 * configure: Generated from configure.ac.
39356 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
39357 instead of int.
39358 (grub_ofdisk_read): Likewise.
39359 (grub_ofdisk_open): Use %p to print pointer values, and cast the
39360 pointers as (void *) to remove a warning.
39361 (grub_ofdisk_close): Likewise.
39362 (grub_ofdisk_read): Likewise.
39363 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
39364 returns, so make it return void to remove a warning.
39365 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
39366 Corresponding prototype change.
39367 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
39368 values, and cast the pointers as (void *) to remove a warning.
39369 (grub_mm_dump): Likewise.
39370 * conf/sparc64-ieee1275.mk: New file.
39371 * conf/sparc64-ieee1275.rmk: Likewise.
39372 * include/grub/sparc64/setjmp.h: Likewise.
39373 * include/grub/sparc64/types.h: Likewise.
39374 * include/grub/sparc64/ieee1275/console.h: Likewise.
39375 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39376 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39377 * include/grub/sparc64/ieee1275/time.h: Likewise.
39378 * kern/sparc64/cache.c: Likewise.
39379 * kern/sparc64/dl.c: Likewise.
39380 * kern/sparc64/ieee1275/init.c: Likewise.
39381 * kern/sparc64/ieee1275/openfw.c: Likewise.
39382
39383 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39384
39385 * util/console.c (grub_ncurses_putchar): If C is greater than
39386 0x7f, set C to a question mark.
39387 (grub_ncurses_getcharwidth): New function.
39388 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
39389 getcharwidth.
39390
39391 * normal/menu.c (print_entry): Made aware of Unicode. First,
39392 convert TITLE to UCS-4, and predict the cursor position by
39393 grub_getcharwidth.
39394
39395 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
39396 const to SRC.
39397 * kern/misc.c (grub_utf16_to_utf8): Likewise.
39398
39399 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39400
39401 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
39402 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39403 grub_strcat.
39404
39405 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
39406 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39407 grub_strcpy and grub_strlen. Take it into account that a space
39408 character is inserted as a delimiter.
39409
39410 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39411
39412 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
39413 invalid magic in the error.
39414
39415 * commands/search.c: New file.
39416
39417 * util/grub-emu.c (main): Call grub_search_init and
39418 grub_search_fini.
39419
39420 * kern/rescue.c (grub_rescue_print_disks): Removed.
39421 (grub_rescue_print_devices): New function.
39422 (grub_rescue_cmd_ls): Use grub_device_iterate with
39423 grub_rescue_print_devices instead of grub_disk_dev_iterate with
39424 grub_rescue_print_disks.
39425
39426 * kern/partition.c (grub_partition_iterate): Return the result of
39427 PARTMAP->ITERATE instead of GRUB_ERRNO.
39428
39429 * kern/device.c: Include grub/partition.h.
39430 (grub_device_iterate): New function.
39431
39432 * include/grub/partition.h (grub_partition_iterate): Return int
39433 instead of grub_err_t.
39434
39435 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
39436 prototype.
39437 [GRUB_UTIL] (grub_search_fini): Likewise.
39438
39439 * include/grub/device.h (grub_device_iterate): New prototype.
39440
39441 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39442 commands/search.c.
39443 (pkgdata_MODULES): Added search.mod.
39444 (search_mod_SOURCES): New variable.
39445 (search_mod_CFLAGS): Likewise.
39446
39447 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
39448 (pkgdata_MODULES): Added search.mod.
39449 (search_mod_SOURCES): New variable.
39450 (search_mod_CFLAGS): Likewise.
39451
39452 * commands/ls.c (grub_ls_list_disks): Renamed to ...
39453 (grub_ls_list_devices): ... this, and use grub_device_iterate.
39454 All callers changed.
39455
39456 * DISTLIST: Added commands/search.c.
39457
39458 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39459
39460 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
39461 conversion.
39462 (grub_getcharwidth): New function.
39463
39464 * kern/misc.c (grub_utf8_to_ucs4): New function.
39465
39466 * include/grub/term.h (struct grub_term): Added a new member
39467 "getcharwidth".
39468 (grub_getcharwidth): New prototype.
39469
39470 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
39471
39472 * term/i386/pc/console.c (map_char): New function. Segregated from
39473 grub_console_putchar.
39474 (grub_console_putchar): Use map_char.
39475 (grub_console_getcharwidth): New function.
39476 (grub_console_term): Specified grub_console_getcharwidth as
39477 getcharwidth.
39478
39479 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
39480 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
39481
39482 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
39483 GRUB_ERRNO.
39484 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
39485 on grub_strtoul completely.
39486 (write_char): Declare local variables in the beginning of the
39487 function.
39488 (grub_vesafb_getcharwidth): New function.
39489 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
39490 getcharwidth.
39491
39492 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
39493
39494 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
39495 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
39496 commands/i386/pc/vbetest.c.
39497
39498 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
39499 call grub_vbe_get_controller_info again, because the returned
39500 information is volatile.
39501 (grub_vbe_set_video_mode): Mostly rewritten.
39502 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
39503 grub_vbe_status_t correctly.
39504 (grub_vbe_get_video_mode_info): Likewise.
39505 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
39506 several if statements.
39507
39508 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
39509 * commands/i386/pc/vbeinfo.c: ... this.
39510
39511 * commands/i386/pc/vbe_test.c: Renamed to ...
39512 * commands/i386/pc/vbetest.c: ... this.
39513
39514 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
39515 ...
39516 (grub_cmd_vbeinfo): ... this. Save video modes before
39517 iterating. Skip a video mode, if it is not available, not enough
39518 information is given or it is monochrome. Show the memory
39519 model. Leave the interpretation of MODEVAR to grub_strtoul
39520 completely.
39521 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
39522 (GRUB_MOD_FINI): Likewise.
39523
39524 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
39525 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
39526 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
39527 duplicated grub_env_get. Leave the interpretation of MODEVAR to
39528 grub_strtoul completely.
39529 (real2pm): Removed.
39530 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
39531 (GRUB_MOD_FINI): Likewise.
39532
39533 * normal/misc.c: Include grub/mm.h.
39534
39535 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
39536 vbe_list_modes with vbetest.mod and vbeinfo.mod.
39537 (vbe_list_modes_mod_SOURCES): Removed.
39538 (vbe_list_modes_mod_CFLAGS): Likewise.
39539 (vbe_test_mod_SOURCES): Likewise.
39540 (vbe_test_mod_CFLAGS): Likewise.
39541 (vbeinfo_mod_SOURCES): New variable.
39542 (vbeinfo_mod_CFLAGS): Likewise.
39543 (vbetest_mod_SOURCES): Likewise.
39544 (vbetest_mod_CFLAGS): Likewise.
39545
39546 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
39547
39548 * normal/misc.c: New file.
39549
39550 * DISTLIST: Added normal/misc.c.
39551
39552 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
39553 DISK to HOOK. Call HOOK with DISK.
39554 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39555 * partmap/pc.c (pc_partition_map_iterate): Likewise.
39556 * partmap/sun.c (sun_partition_map_iterate): Likewise.
39557
39558 * normal/menu_entry.c (struct screen): Added a new member
39559 "completion_shown".
39560 (completion_buffer): New global variable.
39561 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
39562 (store_completion): New function.
39563 (complete): Likewise.
39564 (clear_completions): Likewise.
39565 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
39566 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
39567 a tab, call complete.
39568
39569 * normal/completion.c (disk_dev): Removed.
39570 (print_simple_completion): Likewise.
39571 (print_partition_completion): Likewise.
39572 (print_func): New global variable.
39573 (add_completion): Do not take the arguments WHAT or PRINT any
39574 longer. Added a new argument TYPE. Instead of printing directly,
39575 call PRINT_FUNC if not NULL.
39576 All callers changed.
39577 (complete_device): Use a local variable DEV instead of
39578 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
39579 (grub_normal_do_completion): Take a new argument HOOK. Do not
39580 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
39581 empty string, return NULL instead.
39582 All callers changed.
39583
39584 * normal/cmdline.c (print_completion): New function.
39585
39586 * kern/partition.c (grub_partition_iterate): Add an argument DISK
39587 to HOOK.
39588 All callers changed.
39589
39590 * kern/disk.c (grub_print_partinfo): Removed.
39591
39592 * include/grub/partition.h (struct grub_partition_map): Add a new
39593 argument DISK into HOOK of ITERATE.
39594 (grub_partition_iterate): Add a new argument DISK to HOOK.
39595
39596 * include/grub/normal.h (enum grub_completion_type): New enum.
39597 (grub_completion_type_t): New type.
39598 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
39599 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
39600 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
39601 (GRUB_COMPLETION_TYPE_FILE): Likewise.
39602 (grub_normal_do_completion): Added a new argument HOOK.
39603 (grub_normal_print_device_info): New prototype.
39604
39605 * include/grub/disk.h (grub_print_partinfo): Removed.
39606
39607 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
39608 (normal_mod_SOURCES): Likewise.
39609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39610 (normal_mod_SOURCES): Likewise.
39611
39612 * commands/ls.c (grub_ls_list_disks): Use
39613 grub_normal_print_device_info instead of grub_print_partinfo. Free
39614 PNAME.
39615 (grub_ls_list_files): Use grub_normal_print_device_info instead of
39616 duplicating the code.
39617
39618 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39619
39620 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
39621 follow GCS more precisely.
39622 * commands/i386/pc/vbe_test.c: Likewise.
39623 * include/grub/i386/pc/vbe.h: Likewise.
39624 * term/i386/pc/vesafb.c: Likewise.
39625 * video/i386/pc/vbe.c: Likewise.
39626
39627 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39628
39629 * DISTLIST: Added term/i386/pc/vesafb.c
39630 DISTLIST: Added video/i386/pc/vbe.c
39631 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
39632 DISTLIST: Added commands/i386/pc/vbe_test.c.
39633 * commands/i386/pc/vbe_list_modes.c: New file.
39634 * commands/i386/pc/vbe_test.c: Likewise.
39635 * term/i386/pc/vesafb.c: Likewise.
39636 * video/i386/pc/vbe.c: Likewise.
39637 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
39638 (grub_vbe_probe) Added prototype.
39639 (grub_vbe_set_video_mode) Likewise.
39640 (grub_vbe_get_video_mode) Likewise.
39641 (grub_vbe_get_video_mode_info) Likewise.
39642 (grub_vbe_set_pixel_rgb) Likewise.
39643 (grub_vbe_set_pixel_index) Likewise.
39644 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
39645 (pkgdata_MODULES): Added vesafb.mod.
39646 (pkgdata_MODULES): Added vbe_list_modes.mod.
39647 (pkgdata_MODULES): Added vbe_test.mod.
39648 (vbe_mod_SOURCES): Added.
39649 (vbe_mod_CFLAGS): Likewise.
39650 (vesafb_mod_SOURCES): Likewise.
39651 (vesafb_mod_CFLAGS): Likewise.
39652 (vbe_list_modes_mod_SOURCES): Likewise.
39653 (vbe_list_modes_mod_CFLAGS): Likewise.
39654 (vbe_test_mod_SOURCES): Likewise.
39655 (vbe_test_mod_CFLAGS): Likewise.
39656
39657 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
39658
39659 * normal/command.c (grub_command_execute): If INTERACTIVE is
39660 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
39661 CMDLINE. Disable the pager if INTERACTIVE is true.
39662 All callers are changed.
39663
39664 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
39665 before reading a config file.
39666 * normal/main.c (read_config_file): Even if a command is not
39667 found, register it if it is within an entry.
39668
39669 * util/grub-emu.c: Include sys/types.h and unistd.h.
39670 (options): Added --hold.
39671 (struct arguments): Added a new member "hold".
39672 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
39673 missing.
39674 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
39675 cleared by a debugger, if it is not zero.
39676
39677 * include/grub/normal.h (grub_command_execute): Add an argument
39678 INTERACTIVE.
39679
39680 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
39681
39682 * DISTLIST: Added include/grub/i386/pc/vbe.h.
39683
39684 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
39685
39686 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
39687 program with another one, because the old one didn't detect a bug
39688 in gcc-3.4. Always use regparm 2, because the new test is still
39689 not enough for gcc-4.0. Someone must investigate a simple test
39690 case which detects a bug in gcc-4.0.
39691
39692 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
39693
39694 * DISTLIST: Added normal/completion.c.
39695
39696 * normal/completion.c: New file.
39697
39698 * term/i386/pc/console.c (grub_console_getwh): New function.
39699 (grub_console_term): Assign grub_console_getwh to getwh.
39700
39701 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
39702 function is defined in normal/completion.c as
39703 grub_normal_do_completion.
39704 (grub_cmdline_get): Use grub_normal_do_completion instead of
39705 grub_tab_complete.
39706
39707 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
39708 returns non-zero, otherwise return 0.
39709 (grub_partition_iterate): First, probe the partition map. Then,
39710 call ITERATE only for this partition map.
39711
39712 * kern/misc.c (grub_strncmp): Rewritten.
39713
39714 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
39715 returns non-zero. Otherwise return 0.
39716
39717 * include/grub/partition.h (grub_partition_map_iterate): Return
39718 int instead of void.
39719
39720 * include/grub/normal.h (grub_normal_do_completion): New prototype.
39721
39722 * include/grub/misc.h (grub_strncmp): Change the type of N to
39723 grub_size_t.
39724
39725 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
39726 of void.
39727
39728 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
39729 unsigned explicitly before comparing it with I.
39730
39731 * kern/main.c (grub_env_write_root): Add the attribute unused into
39732 VAR.
39733
39734 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39735 normal/completion.c.
39736 (normal_mod_SOURCES): Likewise.
39737 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39738 (normal_mod_SOURCES): Likewise.
39739
39740 * normal/command.c (grub_iterate_commands): If ITERATE returns
39741 non-zero, return one immediately.
39742
39743 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
39744
39745 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
39746 * kern/i386/pc/startup.S: Updated Global Descriptor table's
39747 descriptions.
39748 (grub_vbe_get_controller_info): New function.
39749 (grub_vbe_get_mode_info): Likewise.
39750 (grub_vbe_set_mode): Likewise.
39751 (grub_vbe_get_mode): Likewise.
39752 (grub_vbe_set_memory_window): Likewise.
39753 (grub_vbe_get_memory_window): Likewise.
39754 (grub_vbe_set_scanline_length): Likewise.
39755 (grub_vbe_get_scanline_length): Likewise.
39756 (grub_vbe_set_display_start): Likewise.
39757 (grub_vbe_get_display_start): Likewise.
39758 (grub_vbe_set_palette_data): Likewise.
39759 * include/grub/i386/pc/vbe.h: New file.
39760
39761 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39762
39763 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
39764 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
39765 * DISTLIST: Likewise.
39766 * kern/ieee1275/of.c: Moved to ...
39767 * kern/ieee1275/ieee1275.c: ... here.
39768
39769 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39770
39771 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
39772 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
39773 Pass 0 as `end' parameter to grub_strtoul().
39774
39775 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39776
39777 * include/grub/powerpc/ieee1275/console.h: Do not include
39778 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
39779 ifdef.
39780 (grub_console_cur_color): Remove i386-specific prototype.
39781 (grub_console_real_putchar): Likewise.
39782 (grub_console_checkkey): Likewise.
39783 (grub_console_getkey): Likewise.
39784 (grub_console_getxy): Likewise.
39785 (grub_console_gotoxy): Likewise.
39786 (grub_console_cls): Likewise.
39787 (grub_console_setcursor): Likewise.
39788 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
39789 Include <grub/machine/console.h>.
39790 * term/ieee1275/ofconsole.c: Likewise.
39791
39792 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
39793
39794 * Makefile.in (LIBLZO): New variable.
39795
39796 * configure.ac: Check for LZO version 2.
39797
39798 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
39799 lzo/lzo1x.h instead of lzo1x.h.
39800
39801 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
39802 of -llzo.
39803
39804 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
39805 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
39806
39807 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
39808 copying the data from PARTITION to P.
39809
39810 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39811
39812 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
39813 negative, unload the module.
39814
39815 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
39816 map is "pc_partition_map" but not "pc".
39817 (usage): Fix the description. The options are --boot-image and
39818 --core-image but not --boot-file or --core-file.
39819 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
39820 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
39821 DEFAULT_DIRECTORY.
39822
39823 * util/i386/pc/grub-install.in: Do not specify --boot-file or
39824 --core-file. Specify INSTALL_DEVICE as an argument.
39825
39826 * util/console.c: Include config.h.
39827 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
39828 [HAVE_NCURSES_H]: Include ncurses.h.
39829 [HAVE_CURSES_H]: Include curses.h.
39830 [!A_NORMAL] (A_NORMAL): Defined as zero.
39831 [!A_STANDOUT] (A_STANDOUT): Likewise.
39832
39833 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
39834 -lncurses.
39835 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
39836
39837 * configure.ac: Check for curses libraries and headers.
39838
39839 * Makefile.in (LIBCURSES): New variable.
39840
39841 * genmk.rb (Script::rule): Set the executable bits.
39842
39843 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
39844 name of the PC partition map is "pc_partition_map" but not "pc".
39845
39846 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39847
39848 * util/i386/pc/grub-install.in (grub_probefs): New variable.
39849 (modules): Likewise.
39850 (usage): Added descriptions for --modules and --grub-probefs.
39851 Handle --modules and --grub-probefs. Save the arguments in MODULES
39852 and GRUB_PROBEFS, respectively.
39853 Auto-detect a filesystem module against GRUBDIR. If the result is
39854 empty and modules are not specified explicitly, abort the
39855 installation. Add the result to MODULES.
39856
39857 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
39858 disk/powerpc/ieee1275/ofdisk.c,
39859 include/grub/powerpc/ieee1275/init.h and
39860 term/powerpc/ieee1275/ofconsole.c.
39861 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
39862 term/ieee1275/ofconsole.c.
39863
39864 * include/grub/powerpc/ieee1275/console.h: Resurrected.
39865
39866 * COPYING: Upgraded to the latest version. Only the address of the
39867 FSF office has changed.
39868
39869 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39870
39871 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
39872 kern/ieee1275.c with kern/ieee1275/of.c.
39873
39874 * kern/ieee1275.c: Moved to ...
39875 * kern/ieee1275/of.c: ... here.
39876
39877 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
39878
39879 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
39880 readability.
39881
39882 * config.guess: Updated to the latest version from gnulib.
39883 * config.sub: Likewise.
39884 * install.sh: Likewise.
39885 * mkinstalldirs: Likewise.
39886
39887 * include/grub/console.h: Removed. This file is arch-specific. Do
39888 not put this in include/grub.
39889
39890 * include/grub/i386/pc/console.h: Resurrected.
39891
39892 * util/console.c: Include grub/machine/console.h instead of
39893 grub/console.h.
39894 * util/grub-emu.c: Likewise.
39895
39896 2005-08-04 Marco Gerards <metgerards@student.han.nl>
39897
39898 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
39899 hardcoded value.
39900
39901 From Vincent Pelletier <subdino2004@yahoo.fr>
39902 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
39903 Redefined to use grub_getwh.
39904 (grub_term): New member named getwh.
39905 (grub_getwh): New prototype.
39906 * kern/term.c (grub_getwh): New function.
39907 * term/i386/pc/console.c (grub_console_getwh): New function.
39908 (grub_console_term): New member `getwh'.
39909 * term/i386/pc/vga.c (grub_vga_getwh): New function.
39910 (grub_vga_term): New member `getwh'.
39911 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
39912 grub_ssize_t.
39913 (grub_ofconsole_getw): New function.
39914 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
39915 (grub_ofconsole_term): New field named getwh and new initial
39916 value.
39917
39918 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
39919
39920 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
39921 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
39922 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
39923 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
39924 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
39925 of <grub/machine/ieee1275.h>.
39926 * commands/ieee1275/reboot.c: Likewise.
39927 * boot/powerpc/ieee1275/ieee1275.c: Move ...
39928 * kern/ieee1275.c: ... to here. All users updated. Change all
39929 parameter structs to use new type `grub_ieee1275_cell_t'.
39930 * term/powerpc/ieee1275/ofconsole.c: Move ...
39931 * term/ieee1275/ofconsole.c: ... to here. All users updated.
39932 * disk/powerpc/ieee1275/ofdisk.c: Move ...
39933 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
39934 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
39935 to return int.
39936 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
39937 Remove unused prototypes. All users updated.
39938 * include/grub/powerpc/ieee1275/console.h: Removed.
39939 * include/grub/powerpc/ieee1275/ieee1275.h: Define
39940 `grub_ieee1275_cell_t'.
39941 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
39942 Cast comparisons with -1 to the correct type.
39943 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
39944 type to match `grub_ieee1275_entry_fn'.
39945
39946 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
39947
39948 * DISTLIST: Added util/i386/pc/grub-probefs.c.
39949
39950 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
39951 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
39952 partmap/sun.c.
39953 (grub_probefs_SOURCES): New variable.
39954
39955 * util/i386/pc/grub-probefs.c: New file.
39956
39957 * util/i386/pc/grub-setup.c (main): Call
39958 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
39959 grub_hfs_init and grub_jfs_init to initialize the system. Call
39960 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
39961 grub_pc_partition_map_fini to finish the system.
39962
39963 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
39964
39965 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
39966 function.
39967 (grub_multiboot_load_elf32): Likewise.
39968 (grub_multiboot_is_elf64): Likewise.
39969 (grub_multiboot_load_elf64): Likewise.
39970 (grub_multiboot_load_elf): Likewise.
39971 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
39972 an ELF32 or ELF64 file.
39973 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
39974
39975 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
39976 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
39977 NULL before calling FS->LABEL.
39978 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
39979 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
39980 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
39981 before calling FS->LABEL.
39982
39983 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
39984
39985 * util/i386/pc/grub-install.in (datadir): New variable.
39986 (libdir): Removed.
39987 (pkgdatadir): New variable.
39988 (pkglibdir): Removed.
39989
39990 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
39991
39992 * DISTLIST: Added util/i386/pc/grub-install.in.
39993
39994 * util/i386/pc/grub-install.in: New file.
39995
39996 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
39997 (grub_install_SOURCES): Likewise.
39998
39999 * genmk.rb: Added support for scripts.
40000 (Script): New class.
40001 (scripts): New variable.
40002
40003 * Makefile.in (install-local): Install sbin_SCRIPTS by
40004 INSTALL_SCRIPT.
40005 (uninstall): Remove sbin_SCRIPTS.
40006
40007 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
40008 device, try to get a GRUB device by
40009 grub_util_biosdisk_get_grub_dev.
40010 Free DEST_DEV.
40011
40012 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
40013 description for --device-map.
40014
40015 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40016
40017 Change the semantics of variable hooks. They now return strings
40018 instead of error values.
40019
40020 * util/i386/pc/grub-setup.c: Include grub/env.h.
40021 (setup): Use grub_device_set_root instead of grub_env_set.
40022
40023 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
40024 grub_env_get instead of grub_device_set_root and
40025 grub_device_get_root, respectively.
40026
40027 * kern/main.c (grub_env_write_root): New function.
40028 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
40029 grub_env_set instead of grub_device_set_root.
40030
40031 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
40032 many variables.
40033 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
40034 rather than calling ENV->WRITE_HOOK afterwards.
40035 (grub_env_get): Return the result of ENV->READ_HOOK rather than
40036 passing a pointer of a pointer.
40037 (grub_register_variable_hook): Change the types of "read_hook" and
40038 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
40039 respectively.
40040 Allocate the default empty string on the heap, because this string
40041 may be freed later.
40042
40043 * kern/device.c: Include grub/env.h.
40044 (grub_device_set_root): Removed.
40045 (grub_device_get_root): Likewise.
40046 (grub_device_open): Use grub_env_get instead of
40047 grub_device_get_root.
40048
40049 * include/grub/env.h (grub_env_read_hook_t): New type.
40050 (grub_env_write_hook_t): Likewise.
40051 (grub_env_var): Change the types of "read_hook" and "write_hook"
40052 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
40053 (grub_register_variable_hook): Likewise.
40054
40055 * include/grub/device.h (grub_device_set_root): Removed.
40056 (grub_device_set_root): Likewise.
40057
40058 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
40059 make sure that DIRNAME terminates with '/', so that
40060 grub_fat_find_dir will fail if PATH is not a directory.
40061
40062 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
40063 from DIRNAME.
40064 Use the qualifier auto for print_files and print_files_long.
40065 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
40066 as a regular file.
40067 Put a newline only if there is no error.
40068 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
40069 used.
40070
40071 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40072
40073 * kern/partition.c (grub_partition_probe): Initialize PART to
40074 NULL. Otherwise, when no partition map is registered, this returns
40075 a garbage.
40076
40077 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
40078
40079 * partmap/apple.c (apple_partition_map_iterate): Check if POS
40080 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
40081 valid.
40082
40083 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
40084
40085 * commands/ls.c (grub_ls_list_disks): Print the filesystem
40086 information on each device, if it does not have partitions. Print
40087 "Device" instead of "Disk", because this function is not specific
40088 to disk devices.
40089
40090 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
40091 static to ensure that it is put on the memory rather than a
40092 register.
40093
40094 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40095
40096 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
40097 (grub_cat_init): Likewise.
40098 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
40099 (options): Likewise.
40100 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
40101 (grub_configfile_init): Likewise.
40102 * font/manager.c (GRUB_MOD_INIT): Likewise.
40103 * commands/help.c (GRUB_MOD_INIT): Likewise.
40104 (grub_help_init): Likewise.
40105 * normal/command.c (grub_command_init): Likewise.
40106 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
40107 * disk/loopback.c (grub_loop_init): Likewise.
40108 (GRUB_MOD_INIT): Likewise.
40109 * commands/ls.c (grub_ls_init): Likewise.
40110 (GRUB_MOD_INIT): Likewise.
40111 (options): Likewise.
40112 * commands/boot.c (grub_boot_init): Likewise.
40113 (GRUB_MOD_INIT): Likewise.
40114 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
40115 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
40116 (GRUB_MOD_INIT): Likewise.
40117 * commands/cmp.c (grub_cmp_init): Likewise.
40118 (GRUB_MOD_INIT): Likewise.
40119
40120 * normal/arg.c: Use <> instead of "" to include header files.
40121 (SHORT_ARG_HELP): New macro.
40122 (SHORT_ARG_USAGE): Likewise.
40123 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
40124 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
40125 descriptions.
40126 (find_short): Check if C is 'h' or 'u' explicitly.
40127 (grub_arg_show_help): Use space characters instead of tabs. Treat
40128 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
40129 are shown with --help and --usage only if they are not used for
40130 the command itself.
40131 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
40132 'h' and 'u'.
40133
40134 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
40135 const into "longarg". Change the type of "shortarg" to int.
40136
40137 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40138
40139 * boot/i386/pc/boot.S (boot_drive_check): New label.
40140
40141 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
40142 macro.
40143
40144 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
40145 which do not pass a boot drive correctly. Copied from GRUB Legacy.
40146
40147 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40148
40149 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
40150 When turning off Gate A20, skip the check and return immediately,
40151 because this is not fatal usually.
40152
40153 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40154
40155 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
40156 be 0x7C00 instead of 0x8000.
40157
40158 * boot/i386/pc/pxeboot.S: Rewritten.
40159
40160 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
40161 EXT_C.
40162 (gate_a20_check_state): Read a byte from 0x108000. Invert the
40163 result.
40164
40165 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
40166
40167 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
40168 robustness. This routine now supports a BIOS call and System
40169 Control Port A to modify the gate A20.
40170
40171 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40172 Increased to 0x440.
40173
40174 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
40175
40176 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
40177 device path and resulting ihandle.
40178 (grub_ofdisk_close): dprintf the ihandle being closed.
40179 (grub_ofdisk_read): dprintf function parameters.
40180 * kern/mm.c (grub_mm_init_region): Likewise.
40181 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
40182 (grub_linux_boot): dprintf the Linux entry point, initrd address and
40183 size, and boot arguments.
40184 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
40185 before loading into memory.
40186 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
40187 before loading into memory.
40188
40189 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
40190
40191 * kern/mm.c: Added much documentation.
40192 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
40193 8, set to 5 instead of 8.
40194
40195 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40196
40197 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
40198
40199 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
40200 (grub_mkdevicemap_SOURCES): New variable.
40201
40202 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
40203 lib/device.c of GRUB Legacy.
40204
40205 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40206
40207 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
40208 instead of PATH is NULL.
40209
40210 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
40211
40212 * commands/cmp.c (BUFFER_SIZE): New macro.
40213 (grub_cmd_cmp): Close the right file at the right time. Compare
40214 only data just read. Don't report files of different size as
40215 identical. Dynamically allocate buffers. Move variable
40216 declarations at the beginning of function.
40217
40218 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
40219
40220 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
40221 reverse.
40222
40223 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
40224
40225 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
40226 when backspace is pressed at beginning of line.
40227
40228 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
40229
40230 * DISTLIST: Added genfslist.sh.
40231
40232 * normal/main.c (fs_module_list): New variable.
40233 (autoload_fs_module): New function.
40234 (read_fs_list): Likewise.
40235 (grub_normal_execute): Call read_fs_list.
40236
40237 * kern/fs.c (grub_fs_autoload_hook): New variable.
40238 (grub_fs_probe): Added support for auto-loading.
40239
40240 * include/grub/normal.h (struct grub_fs_module_list): New struct.
40241 (grub_fs_module_list_t): New type.
40242
40243 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
40244 (grub_fs_autoload_hook): New prototype.
40245
40246 * genfslist.sh: New file.
40247
40248 * genmk.rb: Added a rule to generate a filesystem list.
40249
40250 2005-06-30 Marco Gerards <metgerards@student.han.nl>
40251
40252 * configure.ac: Fix the test for cross-compiling.
40253
40254 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
40255 define GRUB_UTIL anymore.
40256
40257 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
40258 so this function works on other systems than just big endian.
40259 (load_modules): Likewise.
40260 (add_segments): Likewise.
40261
40262 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
40263
40264 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
40265 contains `l' modifier, get a long from va_arg().
40266
40267 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
40268
40269 * kern/mm.c (grub_free): If the next free block which is being
40270 merged is the first free block, set the first block to the block
40271 being freed.
40272 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
40273
40274 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40275
40276 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
40277 `grub_ieee1275_chosen'.
40278
40279 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40280
40281 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
40282 (grub_ieee1275_chosen): New variable.
40283 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
40284 `chosen'.
40285 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
40286 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
40287 Rename first argument to `phandle' for consistency.
40288 (grub_ieee1275_get_property_length): Likewise.
40289 (grub_ieee1275_next_property): Likewise. Change type of first argument
40290 to grub_ieee1275_phandle_t.
40291 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
40292 Move export next to declaration.
40293 (grub_ieee1275_chosen): New variable.
40294 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
40295 Correct cosmetic typo.
40296 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
40297 `grub_ieee1275_chosen'.
40298 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
40299 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
40300 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
40301 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
40302 `grub_ieee1275_chosen'.
40303
40304 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
40305
40306 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
40307 /chosen/bootargs.
40308 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
40309 /chosen/bootargs as "variable=value" pairs.
40310
40311 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
40312
40313 * include/grub/misc.h (grub_dprintf): New macro.
40314 (grub_real_dprintf): New prototype.
40315 (grub_strword): Likewise.
40316 (grub_iswordseparator): Likewise.
40317 * kern/misc.c (grub_real_dprintf): New function.
40318 (grub_strword): Likewise.
40319 (grub_iswordseparator): Likewise.
40320
40321 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
40322
40323 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
40324 (roundup): Remove macro.
40325 (grub_ieee1275_flags): Make static.
40326 (grub_ieee1275_realmode): Remove.
40327 (grub_ieee1275_test_flag): New function.
40328 (grub_ieee1275_set_flag): Likewise.
40329 (find_options): Rename to `grub_ieee1275_find_options'; update
40330 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
40331 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
40332 (cmain): New prototype.
40333 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
40334 `grub_ieee1275_flags' directly.
40335 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
40336 machine/biosdisk.h.
40337 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
40338 Don't include grub/machine/init.h.
40339 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
40340 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
40341 Remove prototype.
40342 (grub_ieee1275_realmode): Likewise.
40343 (grub_ieee1275_flag): New enum.
40344 (grub_ieee1275_test_flag): New prototype.
40345 (grub_ieee1275_set_flag): New prototype.
40346 * include/grub/powerpc/ieee1275/init.h: Remove file.
40347 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
40348 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
40349 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
40350 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
40351 comment.
40352 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
40353 `grub_ieee1275_test_flag'.
40354 (grub_ieee1275_encode_devname): Likewise.
40355
40356 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
40357
40358 * include/grub/powerpc/ieee1275/ieee1275.h
40359 (grub_ieee1275_encode_devname): New prototype.
40360 (grub_ieee1275_get_filename): Likewise.
40361 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
40362 function.
40363 (grub_set_prefix): Likewise.
40364 (grub_machine_init): Call grub_set_prefix.
40365 * kern/powerpc/ieee1275/openfw.c: Fix typos.
40366 (grub_parse_type): New enum.
40367 (grub_ieee1275_get_devargs): New function.
40368 (grub_ieee1275_get_devname): Likewise.
40369 (grub_ieee1275_parse_args): Likewise.
40370 (grub_ieee1275_get_filename): Likewise.
40371 (grub_ieee1275_encode_devname): Likewise.
40372
40373 2005-03-30 Marco Gerards <metgerards@student.han.nl>
40374
40375 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
40376 `grub_loader_unset'.
40377
40378 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
40379
40380 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
40381 instead of grub_ieee1275_interpret.
40382 (grub_halt_init): New function.
40383 (grub_halt_fini): Likewise.
40384 (GRUB_MOD_INIT): Correct message grammar.
40385 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
40386 instead of grub_ieee1275_interpret.
40387 (grub_reboot_init): New function.
40388 (grub_reboot_fini): Likewise.
40389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
40390 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
40391 util/i386/pc/misc.c with commands/ieee1275/halt.c,
40392 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
40393 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
40394 function.
40395 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
40396 Add prototype.
40397 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
40398 prototype.
40399 (grub_halt): Likewise.
40400 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
40401 (cmain): Remove __attribute__((unused)).
40402 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
40403 (grub_heap_len): Likewise.
40404 (grub_machine_fini): New function.
40405 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
40406 (grub_halt): Likewise.
40407 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
40408 function.
40409 * util/powerpc/ieee1275/misc.c: New file.
40410
40411 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40412
40413 * DISTLIST: New file.
40414 * gendistlist.sh: Likewise.
40415
40416 * Makefile.in (COMMON_DISTFILES): Removed.
40417 (BOOT_DISTFILES): Likewise.
40418 (CONF_DISTFILES): Likewise.
40419 (DISK_DISTFILES): Likewise.
40420 (FS_DISTFILES): Likewise.
40421 (INCLUDE_DISTFILES): Likewise.
40422 (KERN_DISTFILES): Likewise.
40423 (LOADER_DISTFILES): Likewise.
40424 (TERM_DISTFILES): Likewise.
40425 (UTIL_DISTFILES): Likewise.
40426 (DISTFILES): Likewise.
40427 (uninstall): Uninstall files in $(pkgdata_DATA).
40428 (DISTLIST): New target.
40429 (distdir): Use the contents of the file DISTLIST to get a list of
40430 distributed files.
40431
40432 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40433
40434 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
40435 descriptor. This is ported from GRUB Legacy.
40436
40437 * gencmdlist.sh: Added an extra semicolon to make it work with
40438 old sed versions. Reported by Robert Bihlmeyer
40439 <robbe@orcus.priv.at>.
40440
40441 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
40442
40443 Automatic loading of commands is supported.
40444
40445 * normal/main.c (read_command_list): New function.
40446 (grub_normal_execute): Call read_command_list.
40447
40448 * normal/command.c (grub_register_command): Return zero or CMD.
40449 Allocate CMD->NAME from the heap.
40450 Initialize CMD->MODULE_NAME to zero.
40451 Find the same name as well. If the same command is found and it is
40452 a dummy command, overwrite members. If it is not a dummy command,
40453 return zero.
40454 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
40455 (grub_command_find): If a dummy command is found, load a module
40456 and retry to find a command only once.
40457
40458 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
40459 make sure that each command is loaded.
40460
40461 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
40462 macro.
40463 (struct grub_command): Remove const from the member `name'.
40464 Add a new member `module_name'.
40465 (grub_register_command): Return grub_command_t.
40466
40467 * commands/help.c (grub_cmd_help): Call grub_command_find to make
40468 sure that each command is loaded.
40469
40470 * genmk.rb (PModule::rule): Specify a module name without the
40471 suffix ".mod" to gencmdlist.sh.
40472
40473 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40474
40475 * gencmdlist.sh: New file.
40476
40477 * genmk.rb (PModule::rule): Generate a rule for a command list.
40478 Clean command.lst.
40479 Generate command.lst from $(COMMANDFILES).
40480
40481 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
40482 (DATA): Added $(pkgdata_DATA).
40483 (install-local): Install files in $(pkgdata_DATA).
40484
40485 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40486
40487 * term/i386/pc/vga.c (debug_command): Removed.
40488 (GRUB_MOD_INIT): Do not register the command "debug".
40489
40490 From Hollis Blanchard:
40491 * commands/configfile.c: New file.
40492 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40493 commands/configfile.c.
40494 (pkgdata_MODULES): Added configfile.mod.
40495 (configfile_mod_SOURCES): New variable.
40496 (configfile_mod_CFLAGS): Likewise.
40497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40498 commands/configfile.c.
40499 (pkgdata_MODULES): Added configfile.mod.
40500 (configfile_mod_SOURCES): New variable.
40501 (configfile_mod_CFLAGS): Likewise.
40502 * util/grub-emu.c (main): Call grub_configfile_init and
40503 grub_configfile_fini.
40504 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
40505 prototype.
40506 [GRUB_UTIL] (grub_configfile_fini): Likewise.
40507
40508 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40509
40510 * normal/arg.c (grub_arg_show_help): Do not show the bug report
40511 address.
40512
40513 * commands/help.c (grub_cmd_help): Do not print newlines after
40514 the last command in print_command_help.
40515
40516 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40517
40518 * commands/default.h: New file.
40519 * commands/timeout.h: Likewise.
40520 * normal/context.c: Likewise.
40521
40522 * util/misc.c: Do not include sys/times.h.
40523 Include sys/time.h and grub/machine/time.h.
40524 (grub_get_rtc): Rewritten with gettimeofday.
40525
40526 * util/grub-emu.c (main): Call grub_default_init and
40527 grub_timeout_init before grub_normal_init, and call
40528 grub_timeout_fini and grub_default_fini after grub_main.
40529
40530 * util/console.c (grub_ncurses_checkkey): Return the read
40531 character or -1.
40532
40533 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
40534 timeouts.
40535
40536 * normal/main.c (read_config_file): Push MENU. If this fails,
40537 print an error and wait for a user input.
40538 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
40539 If a menu is empty or an error occurs, pop MENU.
40540 (grub_normal_execute): Pop and free MENU after grub_menu_run
40541 returns.
40542
40543 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
40544
40545 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
40546 include time.h.
40547 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40548 without GRUB_UTIL.
40549 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
40550 time.h.
40551 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40552 without GRUB_UTIL.
40553
40554 * include/grub/normal.h (struct grub_menu_list): New struct.
40555 (grub_menu_list_t): New type.
40556 (struct grub_context): New struct.
40557 (grub_context_t): New type.
40558 (grub_register_command): Got rid of EXPORT_FUNC.
40559 (grub_unregister_command): Likewise.
40560 (grub_context_get): New prototype.
40561 (grub_context_get_current_menu): Likewise.
40562 (grub_context_push_menu): Likewise.
40563 (grub_context_pop_menu): Likewise.
40564 [GRUB_UTIL] (grub_default_init): Likewise.
40565 [GRUB_UTIL] (grub_default_fini): Likewise.
40566 [GRUB_UTIL] (grub_timeout_init): Likewise.
40567 [GRUB_UTIL] (grub_timeout_fini): Likewise.
40568
40569 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
40570 commands/timeout.c and normal/context.c.
40571 (pkgdata_MODULES): Added default.mod and timeout.mod.
40572 (normal_mod_SOURCES): Added normal/context.c.
40573 (default_mod_SOURCES): New variable.
40574 (default_mod_CFLAGS): Likewise.
40575 (timeout_mod_SOURCES): Likewise.
40576 (timeout_mod_CFLAGS): Likewise.
40577 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
40578 conf/i386-pc.rmk.
40579 (pkgdata_MODULES): Added default.mod and timeout.mod.
40580 (normal_mod_SOURCES): Added normal/context.c.
40581 (default_mod_SOURCES): New variable.
40582 (default_mod_CFLAGS): Likewise.
40583 (timeout_mod_SOURCES): Likewise.
40584 (timeout_mod_CFLAGS): Likewise.
40585
40586 * Makefile.in (all-local): Added $(MKFILES).
40587
40588 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
40589
40590 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
40591 (grub_emu_SOURCES): Likewise.
40592 (pkgdata_MODULES): Add `sun.mod'.
40593 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40594 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40595 `partmap/sun.c'.
40596 (pkgdata_MODULES): Add `sun.mod'.
40597 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40598 * include/grub/partition.h (grub_sun_partition_map_init): New
40599 prototype.
40600 (grub_sun_partition_map_fini): Likewise.
40601 * partmap/sun.c: New file.
40602 * util/grub-emu.c (main): Initialize and de-initialize the sun
40603 partitionmap support.
40604
40605 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
40606
40607 This implements an Emacs-like menu entry editor.
40608
40609 * normal/menu_entry.c: New file.
40610
40611 * util/console.c (grub_ncurses_putchar): Translate some Unicode
40612 characters to ASCII.
40613 (saved_char): New variable.
40614 (grub_ncurses_checkkey): Rewritten completely.
40615 (grub_ncurses_getkey): Likewise.
40616 (grub_ncurses_init): Call raw instead of cbreak.
40617
40618 * normal/menu.c (print_entry): Do not put a space.
40619 (init_page): Renamed to ...
40620 (grub_menu_init_page): ... this. All callers changed.
40621 (edit_menu_entry): Removed.
40622 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
40623
40624 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
40625
40626 * kern/misc.c (grub_vprintf): Call grub_refresh.
40627
40628 * normal/menu.c (DISP_LEFT): Renamed to ...
40629 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
40630 * normal/menu.c (DISP_UP): Renamed to ...
40631 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
40632 * normal/menu.c (DISP_RIGHT): Renamed to ...
40633 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
40634 * normal/menu.c (DISP_DOWN): Renamed to ...
40635 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
40636 * normal/menu.c (DISP_HLINE): Renamed to ...
40637 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
40638 * normal/menu.c (DISP_VLINE): Renamed to ...
40639 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
40640 * normal/menu.c (DISP_UL): Renamed to ...
40641 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
40642 * normal/menu.c (DISP_UR): Renamed to ...
40643 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
40644 * normal/menu.c (DISP_LL): Renamed to ...
40645 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
40646 * normal/menu.c (DISP_LR): Renamed to ...
40647 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
40648 * normal/menu.c (TERM_WIDTH): Renamed to ...
40649 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
40650 * normal/menu.c (TERM_HEIGHT): Renamed to ...
40651 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
40652 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
40653 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
40654 * normal/menu.c (TERM_MARGIN): Renamed to ...
40655 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
40656 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
40657 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
40658 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
40659 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
40660 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
40661 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
40662 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
40663 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
40664 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
40665 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
40666 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
40667 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
40668 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
40669 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
40670 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
40671 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
40672 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
40673 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
40674 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
40675 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
40676 All callers changed.
40677
40678 * include/grub/normal.h: New prototype.
40679
40680 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40681 normal/menu_entry.c.
40682 (normal_mod_SOURCES): Likewise.
40683 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40684 (normal_mod_SOURCES): Likewise.
40685
40686 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
40687
40688 * include/grub/normal.h (grub_halt_init): New prototype.
40689 (grub_halt_fini): Likewise.
40690 (grub_reboot_init): Likewise.
40691 (grub_reboot_fini): Likewise.
40692
40693 * util/grub-emu.c: Include signal.h.
40694 (main_env): New global variable.
40695 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
40696 catch C-c.
40697 (grub_machine_fini): New function.
40698 (main): Call grub_halt_init and grub_reboot_init before
40699 grub_main, and grub_reboot_fini and grub_halt_fini after it.
40700 Call setjmp with MAIN_ENV to go back afterwards.
40701 Call grub_machine_fini right before return.
40702
40703 * include/grub/util/misc.h: Include setjmp.h.
40704 (main_env): New prototype.
40705
40706 * include/grub/kernel.h (grub_machine_fini): New prototype.
40707 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
40708 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
40709
40710 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
40711 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
40712 * term/i386/pc/console.c (grub_console_fini): Likewise.
40713
40714 * util/i386/pc/misc.c: New file.
40715
40716 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40717 util/i386/pc/misc.c, commands/i386/pc/halt.c and
40718 commands/i386/pc/reboot.c.
40719
40720 2005-02-14 Guillem Jover <guillem@hadrons.org>
40721
40722 * include/grub/dl.h (grub_dl_check_header): New prototype.
40723 (grub_arch_dl_check_header): Change return type to grub_err_t,
40724 remove size parameter and export function. Update all callers.
40725 * kern/dl.c (grub_dl_check_header): New function.
40726 (grub_dl_load_core): Use `grub_dl_check_header' instead of
40727 `grub_arch_dl_check_header'. Check ELF type. Check if sections
40728 are inside the core.
40729 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
40730 independent ELF header checks.
40731 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
40732 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
40733 `grub_dl_check_header' instead of explicit checks. Check for the
40734 ELF type.
40735 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
40736 `grub_dl_check_header' instead of explicit checks. Remove arch
40737 specific ELF header checks.
40738
40739 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
40740 argument SIZE.
40741
40742 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
40743
40744 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
40745 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
40746
40747 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
40748
40749 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
40750 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
40751 (part_map_iterate): Clear `grub_errno' and return 0 if
40752 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
40753 * partmap/amiga.c (amiga_partition_map_iterate): Return
40754 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
40755 * partmap/apple.c (apple_partition_map_iterate): Likewise.
40756
40757 2005-02-01 Guillem Jover <guillem@hadrons.org>
40758
40759 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
40760 help info.
40761
40762 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40763
40764 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
40765 Removed prototype.
40766 (grub_rescue_cmd_linux): New prototype.
40767 (grub_rescue_cmd_initrd): Likewise.
40768 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
40769 `bi_rec'.
40770 (grub_linux_release_mem): Release the memory for the initrd.
40771 (grub_load_linux): Renamed from this...
40772 (grub_rescue_cmd_linux): ...To this. Changed all callers.
40773 Changed `entry' not to be static. Loop over memory regions to
40774 find another one when the default fails.
40775 (grub_rescue_cmd_initrd): New function.
40776 (grub_linux_init): Remove function.
40777 (grub_linux_fini): Likewise.
40778 (GRUB_MOD_INIT): Register `initrd'.
40779 (GRUB_MOD_FINI): Unregister `initrd'.
40780 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
40781 Function removed.
40782 (grub_linux_normal_fini): Likewise.
40783 (GRUB_MOD_INIT): Register `initrd'.
40784 (GRUB_MOD_FINI): Unregister `initrd'.
40785
40786 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40787
40788 * commands/help.c: New file.
40789 * normal/arg.c (show_help): Renamed to...
40790 (grub_arg_show_help): ... this.
40791 * commands/i386/pc/halt.c: New file.
40792 * commands/i386/pc/reboot.c: Likewise.
40793 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
40794 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
40795 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
40796 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
40797 variables.
40798 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40799 `commands/help.c'.
40800 (pkgdata_MODULES): Add `help.mod'.
40801 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
40802 * grub/i386/pc/init.h (grub_reboot): New prototype.
40803 (grub_halt): Likewise.
40804 * include/grub/normal.h (grub_arg_show_help): New prototype.
40805 (grub_help_init): Likewise.
40806 (grub_help_fini): Likewise.
40807 * util/grub-emu.c (main): Initialize and deinitialize the help
40808 command.
40809
40810 * normal/cmdline.c (grub_cmdline_get): Doc fix.
40811
40812 * normal/command.c (grub_command_init): Fixed the description of
40813 the `set' and `unset' commands.
40814
40815 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40816
40817 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
40818 function.
40819 * commands/ieee1275/halt.c: New file.
40820 * commands/ieee1275/reboot.c: Likewise.
40821 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
40822 `__attribute__ ((unused))'. Some GCS related fixed.
40823 (grub_suspend_init) [GRUB_UTIL]: Function removed.
40824 (grub_suspend_fini): Likewise.
40825 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
40826 and `halt.mod'.
40827 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
40828 (halt_mod_CFLAGS): New variables.
40829 * include/grub/powerpc/ieee1275/ieee1275.h
40830 (grub_ieee1275_interpret): New prototype.
40831
40832 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
40833
40834 * include/grub/misc.h (memmove): New prototype.
40835 (memcpy): Likewise.
40836
40837 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
40838
40839 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
40840 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
40841
40842 2005-01-22 Marco Gerards <metgerards@student.han.nl>
40843
40844 * kern/misc.c (grub_strndup): Function rewritten.
40845
40846 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
40847
40848 * normal/menu.c (TERM_WIDTH): Macro redefined.
40849 (TERM_TOP_BORDER_Y): Likewise.
40850 (draw_border): Replaced while-loop by a for-loop. Make the number
40851 of lines consistent with the number of lines displayed in
40852 print_entries. Added a margin below the rectangle.
40853 (print_entry): Make the entry fit in the rectangle.
40854 (print_entries): Display the scroll arrows next to the right
40855 border.
40856
40857 2005-01-21 Marco Gerards <metgerards@student.han.nl>
40858
40859 * fs/minix.c (grub_minix_find_file): Reserve more space for
40860 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
40861 `grub_strncpy' to copy `path' into it.
40862
40863 2005-01-21 Marco Gerards <metgerards@student.han.nl>
40864
40865 Add the loopback device, a device via which files can be accessed
40866 as devices.
40867
40868 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
40869 (pkgdata_MODULES): Add loopback.mod.
40870 (loopback_mod_SOURCES): New variable.
40871 (loopback_mod_CFLAGS): Likewise.
40872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40873 `disk/loopback.c'.
40874 (pkgdata_MODULES): Add loopback.mod.
40875 (loopback_mod_SOURCES): New variable.
40876 (loopback_mod_CFLAGS): Likewise.
40877 * disk/loopback.c: new file.
40878 * include/grub/normal.h (grub_loop_init): New prototype.
40879 (grub_loop_fini): New prototype.
40880 * util/grub-emu.c (main): Initialize and de-initialize loopback
40881 support.
40882 * include/grub/disk.h (grub_disk_dev_id): Add
40883 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
40884
40885 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
40886
40887 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
40888 function.
40889 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
40890 (suspend_mod_SOURCES): New variable.
40891 (suspend_mod_CFLAGS): Likewise.
40892 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
40893 New prototype.
40894 * commands/ieee1275/suspend.c: New file.
40895
40896 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
40897
40898 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
40899 ((unused))' to `__attribute__ ((used))'.
40900 (GRUB_MOD_FINI): Likewise.
40901 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
40902 * genmk.rb (PModule): Assign space to common symbols when linking
40903 modules.
40904
40905 2005-01-20 Marco Gerards <metgerards@student.han.nl>
40906
40907 * include/grub/mm.h (grub_mm_init_region): Change the type of the
40908 `unsigned' arguments to `grub_size_t'.
40909 (grub_malloc): Likewise.
40910 (grub_realloc): Likewise.
40911 (grub_memalign): Likewise.
40912 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
40913 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
40914 * util/misc.c (grub_malloc): Likewise.
40915 (grub_realloc): Likewise.
40916 * kern/mm.c (get_header_from_pointer): Change the casts to
40917 `unsigned' into a cast to `grub_size_t'.
40918
40919 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
40920 point to `currnode' when `currnode' is changed.
40921
40922 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
40923 Schottelius <nico-linux@schottelius.org>.
40924
40925 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
40926
40927 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
40928 (note_path): Remove variable.
40929 (GRUB_IEEE1275_NOTE_NAME): New macro.
40930 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
40931 (grub_ieee1275_note_hdr): New structure.
40932 (grub_ieee1275_note_desc): Likewise.
40933 (grub_ieee1275_note): Likewise.
40934 (load_note): Remove `dir' argument. All callers updated. Remove
40935 `note_img' and `path'. Do not load a file from `note_path'.
40936 Initialize a struct grub_ieee1275_note and write that to `out'.
40937 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
40938
40939 2005-01-05 Marco Gerards <metgerards@student.han.nl>
40940
40941 * util/misc.c (grub_util_read_image): Revert last change. It
40942 called `grub_util_read_at', which seeks from the beginning of the
40943 file.
40944
40945 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
40946
40947 * TODO: Add note about endianness in grub-mkimage.
40948 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
40949 section.
40950 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
40951 (grub_mkimage_SOURCES): New target.
40952 * include/grub/kernel.h (grub_start_addr): Remove variable.
40953 (grub_end_addr): Likewise.
40954 (grub_total_module_size): Likewise.
40955 (grub_kernel_image_size): Likewise.
40956 (GRUB_MODULE_MAGIC): New constant.
40957 (grub_module_info): New structure.
40958 (grub_arch_modules_addr): New prototype.
40959 (grub_get_end_addr): Remove prototype.
40960 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
40961 * include/grub/powerpc/ieee1275/kernel.h: New file.
40962 * include/grub/util/misc.h (grub_util_get_fp_size): New
40963 prototype.
40964 (grub_util_read_at): Likewise.
40965 (grub_util_write_image_at): Likewise.
40966 * kern/main.c (grub_get_end_addr): Remove function.
40967 (grub_load_modules): Call grub_arch_modules_addr instead of using
40968 grub_end_addr. Look for a grub_module_info struct in memory. Use
40969 the grub_module_info fields instead of calling grub_get_end_addr
40970 as loop conditions. Move grub_add_unused_region code here.
40971 (grub_add_unused_region): Remove function.
40972 * kern/i386/pc/init.c: Include grub/cache.h.
40973 (grub_machine_init): Remove call to grub_get_end_addr. Remove
40974 one call to add_mem_region.
40975 (grub_arch_modules_addr): New function.
40976 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
40977 (grub_total_module_size): Likewise.
40978 Include grub/machine/kernel.h.
40979 (grub_arch_modules_addr): New function.
40980 * util/grub-emu.c (grub_end_addr): Remove variable.
40981 (grub_total_module_size): Likewise.
40982 (grub_arch_modules_addr): New function.
40983 * util/misc.c: Include unistd.h.
40984 (grub_util_get_fp_size): New function.
40985 (grub_util_read_at): Likewise.
40986 (grub_util_write_image_at): Likewise.
40987 (grub_util_read_image): Call grub_util_read_at.
40988 (grub_util_write_image): Call grub_util_write_image_at.
40989 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
40990 additional memory in kernel_img for a struct grub_module_info.
40991 Fill in that grub_module_info.
40992 * util/powerpc/ieee1275/grub-mkimage.c: New file.
40993
40994 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
40995
40996 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
40997 New function.
40998 * include/grub/powerpc/ieee1275/ieee1275.h
40999 (grub_ieee1275_milliseconds): New prototype.
41000 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
41001 Change to 1000.
41002 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
41003 grub_ieee1275_milliseconds.
41004
41005 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41006
41007 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
41008 variable.
41009 (find_options): New function.
41010 (cmain): Call find_options.
41011 * include/grub/powerpc/ieee1275/ieee1275.h
41012 (grub_ieee1275_realmode): New extern variable.
41013 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
41014 grub_map if grub_ieee1275_realmode is false.
41015
41016 2004-12-29 Marco Gerards <metgerards@student.han.nl>
41017
41018 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
41019 lines are inserted and make it work like readline. Reported by
41020 Vincent Pelletier <subdino2004@yahoo.fr>.
41021
41022 2004-12-28 Marco Gerards <metgerards@student.han.nl>
41023
41024 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
41025
41026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
41027 `kern/powerpc/cache.S'.
41028
41029 2004-12-27 Marco Gerards <metgerards@student.han.nl>
41030
41031 * genmk.rb: Handle the `Program' class in the main loop. Written
41032 by Johan Rydberg <jrydberg@gnu.org>.
41033 (Program): New class.
41034 (programs): New variable.
41035 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
41036 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
41037 instead of "grub/kernel.h". Include <grub/machine/init.h>.
41038 (help_arch): Function removed.
41039 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
41040 `powerpc/libgcc.h' and `loader.h'.
41041 (pkgdata_PROGRAMS): New variable.
41042 (sbin_UTILITIES): Variable removed.
41043 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
41044 (grubof_SOURCES): Variable re-defined so it only includes the
41045 core functionality.
41046 (grubof_CFLAGS): Remove `-DGRUBOF'.
41047 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
41048 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
41049 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
41050 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
41051 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
41052 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
41053 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
41054 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
41055 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
41056 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
41057 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
41058 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
41059 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
41060 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
41061 (pc_mod_CFLAGS): New variables.
41062 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
41063 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
41064 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
41065 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
41066 Moved from here...
41067 * include/grub/i386/pc/init.h (grub_os_area_addr)
41068 (rub_os_area_size): ... to here.
41069 * include/grub/powerpc/ieee1275/ieee1275.h
41070 (grub_ieee1275_entry_fn): Export symbol.
41071 * include/grub/powerpc/ieee1275/init.h: New file.
41072 * include/grub/powerpc/libgcc.h: Likewise.
41073 * include/grub/cache.h: Likewise.
41074 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
41075 <hollis@penguinppc.org>.
41076 * kern/dl.c: Include <grub/cache.h>.
41077 (grub_dl_flush_cache): New function.
41078 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
41079 for this module.
41080 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
41081 (grub_console_init): Removed prototypes.
41082 (grub_machine_init): Don't initialize the modules anymore.
41083 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
41084 static.
41085 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
41086 Macro undef removed.
41087 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
41088 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
41089 relocation `R_PPC_REL32'. Return an error when the relocation is
41090 unknown.
41091 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
41092 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
41093 * util/misc.c (grub_arch_sync_caches): Likewise.
41094
41095 2004-12-19 Marco Gerards <metgerards@student.han.nl>
41096
41097 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
41098 `symlist.c', add `grubof_symlist.c'.
41099 (symlist.c): Variable removed.
41100 (grubof_HEADERS): Variable added.
41101 (grubof_symlist.c): New target.
41102 (kernel_syms.lst): Use `grubof_HEADERS' instead of
41103 `kernel_img_HEADERS'.
41104 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
41105 * kern/powerpc/dl.c: New file.
41106 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
41107 Function removed.
41108 (grub_arch_dl_relocate_symbols): Likewise.
41109 (grub_register_exported_symbols): Likewise.
41110
41111 2004-12-13 Marco Gerards <metgerards@student.han.nl>
41112
41113 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
41114 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
41115 to fail instead. Reported by Vincent Pelletier
41116 <subdino2004@yahoo.fr>.
41117
41118 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
41119 it is not allocated. Reported by Vincent Pelletier
41120 <subdino2004@yahoo.fr>.
41121
41122 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
41123 output so the output looks better.
41124
41125 2004-12-04 Marco Gerards <metgerards@student.han.nl>
41126
41127 Modulize the partition map support and add support for the amiga
41128 partition map.
41129
41130 * commands/ls.c: Include <grub/partition.h> instead of
41131 <grub/machine/partition.h>.
41132 * kern/disk.c: Likewise.
41133 * kern/rescue.c: Likewise.
41134 * loader/i386/pc/chainloader.c: Likewise.
41135 * normal/cmdline.c: Likewise.
41136 * kern/powerpc/ieee1275/init.c: Likewise.
41137 (grub_machine_init): Call `grub_pc_partition_map_init',
41138 `grub_amiga_partition_map_init' and
41139 `grub_apple_partition_map_init'.
41140 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
41141 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
41142 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
41143 `partition.h' and `pc_partition.h'.
41144 (grub_setup_SOURCES): Remove
41145 `disk/i386/pc/partition.c'. Add `kern/partition.c',
41146 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41147 (grub_emu_SOURCES): Likewise.
41148 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
41149 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
41150 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
41151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41152 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
41153 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41154 (grubof_SOURCES): Likewise.
41155 * disk/i386/pc/partition.c: File removed.
41156 * disk/powerpc/ieee1275/partition.c: Likewise.
41157 * include/grub/powerpc/ieee1275/partition.h: Likewise.
41158 * include/grub/i386/pc/partition.h: Likewise.
41159 * kern/partition.c: New file.
41160 * partmap/amiga.c: Likewise.
41161 * partmap/apple.c: Likewise.
41162 * partmap/pc.c: Likewise.
41163 * include/grub/partition.h: Likewise..
41164 * include/grub/pc_partition.h: Likewise.
41165 * util/grub-emu.c: Include <grub/partition.h> instead of
41166 <grub/machine/partition.h>.
41167 (main): Call `grub_pc_partition_map_init',
41168 `grub_amiga_partition_map_init' and
41169 `grub_apple_partition_map_init' and deinitialize afterwards.
41170 * util/i386/pc/biosdisk.c: Include `#include
41171 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41172 `<grub/machine/partition.h>'.
41173 * util/i386/pc/grub-setup.c: Likewise.
41174 * util/i386/pc/biosdisk.c: Likewise.
41175 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
41176 partition information in case of a PC partition.
41177 * util/i386/pc/grub-setup.c: Include `#include
41178 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41179 `<grub/machine/partition.h>'.
41180 (setup): Only access the PC specific partition information in case
41181 of a PC partition.
41182
41183 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
41184
41185 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
41186 (grub_longjmp): Likewise.
41187 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
41188 20.
41189 * normal/powerpc/setjmp.S: New file.
41190 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41191 `normal/powerpc/setjmp.S'.
41192 (grubof_CFLAGS): Add `-DGRUBOF'.
41193 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
41194 [GRUB_UTIL && !GRUBOF].
41195
41196 2004-11-16 Marco Gerards <metgerards@student.han.nl>
41197
41198 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
41199 property named `name'. Correctly handle the error returned by
41200 `grub_ieee1275_finddevice' if a device can not be opened.
41201
41202 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
41203
41204 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
41205 `actual' for negativity.
41206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41207 kern/fshelp.c.
41208
41209 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41210
41211 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
41212 (PAGE_OFFSET): New macro.
41213 (CRTC_ADDR_PORT): Likewise.
41214 (CRTC_DATA_PORT): Likewise.
41215 (START_ADDR_HIGH_REGISTER): Likewise.
41216 (START_ADDR_LOW_REGISTER): Likewise.
41217 (GRAPHICS_ADDR_PORT): Likewise.
41218 (GRAPHICS_DATA_PORT): Likewise.
41219 (READ_MAP_REGISTER): Likewise.
41220 (INPUT_STATUS1_REGISTER): Likewise.
41221 (INPUT_STATUS1_VERTR_BIT): Likewise.
41222 (page): New variable.
41223 (wait_vretrace): New function.
41224 (set_read_map): Likewise.
41225 (set_start_address): Likewise.
41226 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
41227 the right page.
41228 (check_vga_mem): Take the page into account.
41229 (write_char): Likewise.
41230 (write_cursor): Likewise.
41231 (scroll_up): Likewise. Copy the page to the page that is not
41232 shown and switch between both pages.
41233 (grub_vga_putchar): Fix off by one error.
41234 (grub_vga_cls): Wait for the vertical retrace. Take the page into
41235 account.
41236
41237 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41238
41239 Add support for iso9660 (including rockridge).
41240
41241 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41242 (iso9660_mod_SOURCES): New variable.
41243 (iso9660_mod_CFLAGS): Likewise.
41244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41245 * include/grub/fs.h (grub_iso9660_init): New prototype.
41246 * util/grub-emu.c (main): Call `grub_iso9660_init'.
41247 * fs/iso9660.c: New file.
41248
41249 * include/grub/misc.h (grub_strncat): New prototype.
41250 * kern/misc.c (grub_strncat): New function.
41251
41252 * fs/hfs.c (grub_hfs_mount): Translate the error
41253 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
41254 * fs/jfs.c (grub_jfs_mount): Likewise.
41255 * fs/ufs.c (grub_ufs_mount): Likewise.
41256
41257 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
41258
41259 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
41260 which initialized BAT registers.
41261 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
41262 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41263 Move from here...
41264 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
41265 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41266 ... to here.
41267 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
41268 (grub_mapclaim): Likewise.
41269 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
41270 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
41271 hand.
41272
41273 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
41274
41275 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
41276 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
41277 -ffreestanding and -msoft-float.
41278
41279 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
41280
41281 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
41282 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
41283 set in grub_ieee1275_flags.
41284
41285 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
41286
41287 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
41288 prototype.
41289 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
41290 grub_console_init first.
41291 Change the memory range used for grub_ieee1275_claim and
41292 grub_mm_init_region.
41293 Print an error message if the claim fails.
41294 Include <grub/misc.h>.
41295
41296 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
41297
41298 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
41299 Call grub_children_iterate for device nodes of type `scsi',
41300 `ide', or `ata'.
41301 (grub_ofdisk_open): Remove manual device alias resolution.
41302 Fix memory leak when device cannot be opened.
41303 * include/grub/powerpc/ieee1275/ieee1275.h
41304 (grub_children_iterate): New prototype.
41305 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
41306 New function.
41307 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41308 Return -1 if args.size was -1.
41309
41310 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41311
41312 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
41313 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
41314 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
41315 Open Firmware's memory for it; claim memory from _start to _end.
41316 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
41317 (_end): New extern.
41318 (_start): Zero BSS from __bss_start to _end.
41319 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
41320 New extern.
41321 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
41322
41323 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41324
41325 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
41326 -1 if args.base was -1.
41327
41328 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
41329
41330 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
41331 escape sequence instead of a literal ^L. Also call
41332 grub_ofconsole_gotoxy.
41333
41334 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
41335
41336 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
41337 void * arguments to grub_addr_t. All callers updated. Also make
41338 the `result' argument optional.
41339 (grub_ieee1275_release): change void * arguments to grub_addr_t.
41340 All callers updated.
41341
41342 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
41343
41344 * commands/ls.c (grub_ls_list_files): Use the string following the
41345 initial ')', if present, as the filesystem path.
41346 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
41347
41348 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
41349
41350 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
41351
41352 Make the source code of the menu interface more readable.
41353
41354 * normal/menu.c: Include grub/mm.h.
41355 (TERM_WIDTH): New macro.
41356 (TERM_HEIGHT): Likewise.
41357 (TERM_INFO_HEIGHT): Likewise.
41358 (TERM_MARGIN): Likewise.
41359 (TERM_SCROLL_WIDTH): Likewise.
41360 (TERM_TOP_BORDER_Y): Likewise.
41361 (TERM_LEFT_BORDER_X): Likewise.
41362 (TERM_BORDER_WIDTH): Likewise.
41363 (TERM_MESSAGE_HEIGHT): Likewise.
41364 (TERM_BORDER_HEIGHT): Likewise.
41365 (TERM_NUM_ENTRIES): Likewise.
41366 (TERM_FIRST_ENTRY_Y): Likewise.
41367 (TERM_ENTRY_WIDTH): Likewise.
41368 (TERM_CURSOR_X): Likewise.
41369 (draw_border): Use macros instead of magic numbers.
41370 (print_entry): Likewise.
41371 (print_entries): Likewise.
41372 (run_menu): Likewise. Also, handle the key 'e'.
41373 (run_menu_entry): Ignore empty command lines.
41374 (print_message): Added a new argument EDIT. If EDIT is true,
41375 print a different message.
41376 (init_page): Likewise.
41377 (edit_menu_entry): New function. Not implemented yet.
41378
41379 2004-09-17 Marco Gerards <metgerards@student.han.nl>
41380
41381 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
41382 can be loaded from normal mode.
41383
41384 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
41385 `multiboot.mod'.
41386 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
41387 (multiboot_mod_CFLAGS): New variables.
41388 * loader/i386/pc/linux_normal.c: New file.
41389 * loader/i386/pc/multiboot_normal.c: Likewise.
41390
41391 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
41392 attribute `unused'.
41393
41394 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
41395 `fdiro' to read the mode information from instead of `diro'.
41396
41397 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
41398 looking up a symlink.
41399
41400 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
41401 macro.
41402 * normal/command.c (grub_command_execute): Don't parse the
41403 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
41404 flags of the command.
41405
41406 * normal/menu.c (grub_menu_run): Fix typo.
41407
41408 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
41409
41410 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
41411
41412 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
41413 `y + 1' instead of `y - 1'.
41414
41415 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
41416
41417 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
41418
41419 From Hollis Blanchard <hollis@penguinppc.org>:
41420 * kern/misc.c (memmove): New alias for grub_memmove.
41421 (memcmp): New alias for grub_memcmp.
41422 (memset): New alias for grub_memset.
41423 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41424 Change "int handle" to "grub_ieee1275_phandle_t handle".
41425 * include/grub/powerpc/ieee1275/ieee1275.h
41426 (grub_ieee1275_get_property): Likewise.
41427
41428 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
41429
41430 Added normal mode command `chainloader' as module chain.mod, which
41431 depends on normal.mod and _chain.mod.
41432
41433 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
41434 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
41435 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
41436 Deleted prototype.
41437 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
41438 but arguments parsing moved to ...
41439 (grub_chainloader_cmd): ... here. New function.
41440 * include/grub/i386/pc/chainloader.h: New file.
41441 * loader/i386/pc/chainloader_normal.c: Likewise.
41442
41443 2004-09-11 Marco Gerards <metgerards@student.han.nl>
41444
41445 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
41446 (grub_mkimage_LDFLAGS): Likewise.
41447 (grub_emu_SOURCES): Likewise.
41448 (kernel_img_HEADERS): Added fshelp.h.
41449 * fs/ext2.c: Include <grub/fshelp.h>.
41450 (FILETYPE_REG): New macro.
41451 (FILETYPE_INO_REG): Likewise.
41452 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
41453 Changed all users.
41454 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
41455 all users.
41456 (grub_fshelp_node): New struct.
41457 (grub_ext2_data): Added member `diropen'. Changed member `inode'
41458 to a pointer.
41459 (grub_ext2_get_file_block): Removed function.
41460 (grub_ext2_read_block): New function.
41461 (grub_ext2_read_file): Replaced parameter `data' by `node'.
41462 This function was written.
41463 (grub_ext2_mount): Read the root inode. Create a diropen struct.
41464 (grub_ext2_find_file): Removed function.
41465 (grub_ext2_read_symlink): New function.
41466 (grub_ext2_iterate_dir): Likewise.
41467 (grub_ext2_open): Rewritten.
41468 (grub_ext2_dir): Rewritten.
41469 * include/grub/fshelp.h: New file.
41470 * fs/fshelp.c: Likewise.
41471
41472 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
41473
41474 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
41475 (print_message): Add a missing newline.
41476 (run_menu): Added timeout support.
41477 (run_menu_entry): New local function.
41478 (grub_menu_run): Added support for booting.
41479
41480 * kern/loader.c (grub_loader_is_loaded): New function.
41481
41482 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
41483 (grub_get_rtc): Exported.
41484
41485 * include/grub/i386/pc/time.h: Include grub/symbol.h.
41486 (grub_get_rtc): Exported.
41487
41488 * include/grub/normal.h (struct grub_command_list): Remove
41489 constant from the member `command'.
41490
41491 * include/grub/loader.h (grub_loader_is_loaded): Declared.
41492
41493 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
41494
41495 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
41496
41497 2004-08-28 Marco Gerards <metgerards@student.han.nl>
41498
41499 Add support for the JFS filesystem.
41500
41501 * fs/jfs.c: New file.
41502 * include/grub/fs.h (grub_jfs_init): New prototype.
41503 (grub_jfs_fini): New prototype.
41504 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
41505 (grub_emu_SOURCES): Likewise.
41506 (pkgdata_MODULES): Add jfs.mod.
41507 (jfs_mod_SOURCES): New variable.
41508 (jfs_mod_CFLAGS): Likewise.
41509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
41510 (grubof_SOURCES): Likewise.
41511 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
41512
41513 * fs/fat.c (grub_fat_find_dir): Convert the filename little
41514 endian to the host endian.
41515 (grub_fat_utf16_to_utf8): Move function from there...
41516 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
41517 the endianness of the source string anymore.
41518 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
41519
41520 2004-08-24 Marco Gerards <metgerards@student.han.nl>
41521
41522 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
41523 (grub_boot_fini) [GRUB_UTIL]: Likewise.
41524 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
41525 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
41526
41527 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
41528 (grub_hfs_iterate_dir): Make the function static. Add prototypes
41529 for `node_found' and `it_dir'.
41530 (grub_hfs_dir): Add prototype for `dir_hook'.
41531
41532 * fs/minix.c (grub_minix_get_file_block): Add prototype for
41533 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
41534 and `indir32' to silence a gcc warning.
41535
41536 * include/grub/fs.h (grub_hfs_init): New prototype.
41537 (grub_hfs_fini): Likewise.
41538
41539
41540 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
41541
41542 Each disk device has its own id now. This is useful to make use
41543 of multiple disk devices.
41544
41545 * include/grub/disk.h (grub_disk_dev_id): New enum.
41546 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
41547 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
41548
41549 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
41550 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41551
41552 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
41553 GRUB_DISK_DEVICE_OFDISK_ID as an id.
41554
41555 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
41556 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41557
41558 * include/grub/disk.h (struct grub_disk_dev): Added a new member
41559 "id" which is used by the cache manager.
41560
41561 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
41562 of just "GRUB".
41563
41564 2004-08-18 Marco Gerards <metgerards@student.han.nl>
41565
41566 * fs/hfs.c: New file.
41567 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
41568 (grub_emu_SOURCES): Likewise.
41569 (pkgdata_MODULES): Add hfs.mod.
41570 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
41571 (grubof_SOURCES): Likewise.
41572 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
41573
41574 * include/grub/misc.h (grub_strncasecmp): Add prototype.
41575 * kern/misc.c (grub_strncasecmp): Add function.
41576
41577 2004-08-14 Marco Gerards <metgerards@student.han.nl>
41578
41579 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
41580 with parentheses.
41581
41582 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
41583 (grub_ext2_dir): In case the directory entry type is unknown, read
41584 it from the inode.
41585
41586 2004-08-02 Peter Bruin <pjbruin@dds.nl>
41587
41588 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
41589 grub_load_linux instead of grub_rescue_cmd_linux as second
41590 argument of grub_rescue_register_command.
41591
41592 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
41593
41594 2004-07-27 Marco Gerards <metgerards@student.han.nl>
41595
41596 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
41597 function.
41598 * commands/boot.c: Remove the check for `GRUB_UTIL'.
41599 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41600 `loader/powerpc/ieee1275/linux.c',
41601 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
41602 * include/grub/powerpc/ieee1275/ieee1275.h
41603 (grub_ieee1275_release): New prototype.
41604 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
41605 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
41606 normal, boot, linux and linux_normal.
41607 * loader/powerpc/ieee1275/linux.c: New file.
41608 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41609
41610 2004-07-12 Marco Gerards <metgerards@student.han.nl>
41611
41612 * normal/arg.c (grub_arg_parse): Correct error handling after
41613 reallocating the argumentlist (check if `argl' is not null instead
41614 of checking if `args' is not null).
41615 * kern/mm.c (grub_realloc): Return the same pointer when using the
41616 same region, instead of returning the header address.
41617
41618 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41619
41620 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
41621 one block instead of two when looking for the initial partition.
41622 (grub_partition_probe): Initialize the local variable `p' with 0.
41623 Use base 10 for the grub_strtoul call.
41624 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
41625 need for one local variable.
41626 (grub_strtoul): Don't add the new value to `num', instead of that
41627 just assign it.
41628
41629 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41630
41631 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
41632 (pxeboot_img_SOURCES): New variable.
41633 (pxeboot_img_ASFLAGS): Likewise.
41634 (pxeboot_img_LDFLAGS): Likewise.
41635 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
41636 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
41637 <lode_leroy@hotmail.com>.
41638
41639 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41640
41641 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
41642 there was no input.
41643
41644 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41645
41646 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
41647 the history buffer logic.
41648
41649 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41650
41651 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
41652 (FILETYPE_INO_SYMLINK): New macros.
41653 (grub_ext2_find_file): Check if the node is a directory using the
41654 inode stat information instead of using the filetype in the
41655 dirent. Exclude the first character of an absolute symlink.
41656 (grub_ext2_dir): Mask out the filetype part of the mode member of
41657 the inode.
41658
41659 2004-05-24 Marco Gerards <metgerards@student.han.nl>
41660
41661 Add support for UFS version 1 and 2. Add support for the minix
41662 filesystem version 1 and 2, both the variants with 14 and 30 long
41663 filenames.
41664
41665 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
41666 fs/minix.c.
41667 (grub_emu_SOURCES): Likewise.
41668 (pkgdata_MODULES): Add ufs.mod and minix.mod.
41669 (ufs_mod_SOURCES): New variable.
41670 (ufs_mod_CFLAGS): Likewise.
41671 (minix_mod_SOURCES): Likewise.
41672 (minix_mod_CFLAGS): Likewise.
41673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
41674 fs/minix.c.
41675 (grubof_SOURCES): Likewise.
41676 * fs/ufs.c: New file.
41677 * fs/minix.c: New file.
41678 * include/grub/fs.h (grub_ufs_init): New prototype.
41679 (grub_ufs_fini): Likewise.
41680 (grub_minix_init): Likewise.
41681 (grub_minix_fini): Likewise.
41682 * util/grub-emu.c (main): Initialize and deinitialize UFS and
41683 minix fs.
41684
41685 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
41686
41687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
41688 commands/ls.c, commands/terminal.c, commands/boot.c,
41689 commands/cmp.c and commands/cat.c.
41690 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
41691
41692 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
41693 "env.h"
41694
41695 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41696
41697 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
41698 and grub_, respectively. Because the conversion is trivial and
41699 mechanical, I omit the details here. Please refer to the CVS
41700 if you need more information.
41701
41702 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41703
41704 * include/pupa: Renamed to ...
41705 * include/grub: ... this.
41706 * util/i386/pc/pupa-mkimage.c: Renamed to ...
41707 * util/i386/pc/grub-mkimage.c: ... this.
41708 * util/i386/pc/pupa-setup.c: Renamed to ...
41709 * util/i386/pc/grub-setup.c: ... this.
41710 * util/pupa-emu.c: Renamed to ...
41711 * util/grub-emu.c: ... this.
41712
41713 2004-03-29 Marco Gerards <metgerards@student.han.nl>
41714
41715 Add support for the newworld apple macintosh (PPC). This has been
41716 tested on the powerbook 2000 only. It only adds support for
41717 generic ieee1275 functions, console and disk support. This should
41718 be easy to port to other architectures with support for Open
41719 Firmware.
41720
41721 * configure.ac: Accept the powerpc as host_cpu. In the case of
41722 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
41723 specific tests are only executed while building for the i386.
41724 Inverse test for crosscompile.
41725 * genmk.rb (Utility): Allow assembler files.
41726 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
41727 * conf/powerpc-ieee1275.rmk: New file.
41728 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
41729 * disk/powerpc/ieee1275/partition.c: Likewise.
41730 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
41731 * include/pupa/powerpc/ieee1275/console.h: Likewise.
41732 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
41733 * include/pupa/powerpc/ieee1275/time.h: Likewise.
41734 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
41735 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
41736 * include/pupa/powerpc/ieee1275/loader.h
41737 * include/pupa/powerpc/setjmp.h: Likewise.
41738 * include/pupa/powerpc/types.h: Likewise.
41739 * kern/powerpc/ieee1275/init.c: Likewise.
41740 * kern/powerpc/ieee1275/openfw.c: Likewise.
41741 * term/powerpc/ieee1275/ofconsole.c: Likewise.
41742
41743 These files were written by Johan Rydberg
41744 (jrydberg@night.trouble.net) and I only modified them slightly.
41745
41746 * boot/powerpc/ieee1275/cmain.c: New file.
41747 * boot/powerpc/ieee1275/crt0.S: Likewise.
41748 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
41749 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
41750
41751 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
41752
41753 * Makefile.in: Update copyright.
41754 * genmodsrc.sh: Likewise.
41755 * gensymlist.sh: Likewise.
41756 * term/i386/pc/vga.c: Indent correctly.
41757
41758 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
41759 bugreporting address.
41760 * util/i386/pc/pupa-setup.c (usage): Likewise,
41761 (main): Call pupa_ext2_init and pupa_ext2_fini.
41762
41763 * fs/fat.c (log2): Renamed to ...
41764 (fat_log2): ... this.
41765 All callers changed.
41766 * kern/misc.c (memcpy): Alias to pupa_memmove.
41767 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
41768 lvalue cast.
41769 * util/console.c (pupa_ncurses_fini): Return 0.
41770
41771 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
41772 Move fail label here.
41773 [__GNU__]: Don't warn when using stat.
41774 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
41775 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
41776 long int. Use strtol instead of strtoul.
41777
41778 2004-03-14 Marco Gerards <metgerards@student.han.nl>
41779
41780 * commands/boot.c: New file.
41781 * commands/cat.c: Likewise.
41782 * commands/cmp.c: Likewise.
41783 * commands/ls.c: Likewise.
41784 * commands/terminal.c: Likewise.
41785 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
41786 (pupa_register_command): Changed interface to match the new
41787 argument parser.
41788 (pupa_command_execute): Changed (almost rewritten) so it uses
41789 pupa_split_command. Added support for setting variables using the
41790 syntax `foo=bar'.
41791 (rescue_command): Changed to work with the new argument parser.
41792 (terminal_command): Moved from here to commands/terminal.c.
41793 (set_command): New function.
41794 (unset_command): New function.
41795 (insmod_command): New function.
41796 (rmmod_command): New function.
41797 (lsmod_command): New function.
41798 (pupa_command_init): Don't initialize the command terminal
41799 anymore. Initialize the commands set, unset, insmod, rmmod and
41800 lsmod.
41801 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
41802 (kernel_img_HEADERS): Add arg.h and env.h.
41803 (pupa_mkimage_LDFLAGS): Add kern/env.c.
41804 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
41805 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
41806 normal/arg.c.
41807 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
41808 terminal.mod.
41809 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
41810 (boot_mod_SOURCES): New variable.
41811 (terminal_mod_SOURCES): Likewise.
41812 (ls_mod_SOURCES): Likewise.
41813 (cmp_mod_SOURCES): Likewise.
41814 (cat_mod_SOURCES): Likewise.
41815
41816 * normal/arg.c: New file.
41817 * kern/env.c: Likewise.
41818 * include/pupa/arg.h: Likewise.
41819 * include/pupa/env.h: Likewise.
41820 * font/manager.c (font_command): Changed to match argument parsing
41821 interface changes.
41822 (PUPA_MOD_INIT): Likewise.
41823 * hello/hello.c (pupa_cmd_hello): Likewise.
41824 (PUPA_MOD_INIT): Likewise.
41825 * include/pupa/disk.h: Include <pupa/device.h>.
41826 (pupa_print_partinfo): New prototype.
41827 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
41828 (pupa_dl_get_prefix): Likewise.
41829 * include/pupa/misc.h: Include <pupa/err.h>.
41830 (pupa_isgraph): New prototype.
41831 (pupa_isdigit): Likewise.
41832 (pupa_split_cmdline): Likewise.
41833 * include/pupa/normal.h: Include <pupa/arg.h>.
41834 (pupa_command): Changed the prototype of the member `func' to
41835 match the argument parsing interface. Added member `options'.
41836 (pupa_register_command): Updated to match function.
41837 (pupa_arg_parse): New prototype.
41838 (pupa_hello_init) [PUPA_UTIL]: New prototype.
41839 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
41840 (pupa_ls_init) [PUPA_UTIL]: Likewise.
41841 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
41842 (pupa_cat_init) [PUPA_UTIL]: Likewise.
41843 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
41844 (pupa_boot_init) [PUPA_UTIL]: Likewise.
41845 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
41846 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
41847 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
41848 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
41849 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
41850 * kern/disk.c: Include <pupa/file.h>.
41851 (pupa_print_partinfo): New function.
41852 * kern/dl.c: Include <pupa/env.h>.
41853 (pupa_dl_dir): Variable removed.
41854 (pupa_dl_load): Use the environment variable `prefix' instead of
41855 the variable pupa_dl_dir.
41856 (pupa_dl_set_prefix): Function removed.
41857 (pupa_dl_get_prefix): Likewise.
41858 * kern/i386/pc/init.c: Include <pupa/env.h>.
41859 (pupa_machine_init): Use the environment variable `prefix' instead of
41860 using pupa_dl_set_prefix to set the prefix.
41861 * kern/main.c: Include <pupa/env.h>.
41862 (pupa_set_root_dev): Use the environment variable `prefix' instead of
41863 using pupa_dl_get_prefix to get the prefix.
41864 * kern/misc.c: Include <pupa/env.h>.
41865 (pupa_isdigit): New function.
41866 (pupa_isgraph): Likewise.
41867 (pupa_ftoa): Likewise.
41868 (pupa_vsprintf): Added support for printing values of the type
41869 `double'. Make it possible to format variable output when using
41870 formatting like `%1.2%f'.
41871 (pupa_split_cmdline): New function.
41872 * kern/rescue.c: Include <pupa/env.h>.
41873 (next_word): Removed function.
41874 (pupa_rescue_cmd_prefix): Likewise.
41875 (pupa_rescue_cmd_set): New function.
41876 (pupa_rescue_cmd_unset): New function.
41877 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
41878 split the command line instead of splitting it here. Added
41879 support for setting variables using the syntax `foo=bar'. Don't
41880 initialize the prefix command anymore. Initialized the set and
41881 unset commands.
41882 * normal/cmdline.c: Include <pupa/env.h>.
41883 (pupa_tab_complete): Added prototypes for print_simple_completion,
41884 print_partition_completion, add_completion, iterate_commands,
41885 iterate_dev, iterate_part and iterate_dir. Moved code to print
41886 partition information from here to kern/disk.c.
41887 (pupa_cmdline_run): Don't check if the function exists anymore.
41888 * normal/main.c: Include <pupa/env.h>.
41889 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
41890 instead of using pupa_dl_get_prefix to get the prefix.
41891 * term/i386/pc/vga.c: Include <pupa/arg.h>.
41892 (check_vga_mem): Cast pointers to `void *' to silence a gcc
41893 warning.
41894 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
41895 (pupa_vga_setcolor): Declare unused variables with `__attribute__
41896 ((unused))' to silence a gcc warning.
41897 (pupa_vga_setcolor): Likewise.
41898 (debug_command): Changed to match argument parsing
41899 interface changes.
41900 * util/pupa-emu.c: Include <pupa/env.h>.
41901 (options): Added 0's for unused fields to silence a gcc warning.
41902 (argp): Likewise.
41903 (main): Use the environment variable `prefix' instead of using
41904 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
41905 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
41906 and terminal.
41907
41908 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
41909 * util/misc.c: Include <malloc.h>.
41910 (pupa_malloc): Rewritten so errors are correctly reported.
41911 (pupa_realloc): Likewise.
41912 (pupa_memalign): Likewise.
41913 (pupa_mm_init_region): Declare unused variables with
41914 `__attribute__ ((unused))' to silence a gcc warning.
41915 * normal/i386/setjmp.S: Remove tab at the end of the file to
41916 silence a gcc warning.
41917 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
41918 variables with `__attribute__ ((unused))' to silence a gcc
41919 warning.
41920 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
41921 local variable i unsigned to silence a gcc warning.
41922
41923 * kern/term.c: Include <pupa/misc.h>.
41924 (pupa_more_lines): New variable.
41925 (pupa_more): Likewise.
41926 (pupa_putcode): When the pager is active pause at the end of every
41927 screen.
41928 (pupa_set_more): New function.
41929 * include/pupa/term.h (pupa_set_more): New prototype.
41930
41931
41932 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
41933
41934 Now this project is GRUB 2 rather than PUPA. The location of
41935 the CVS repository was moved to GRUB's.
41936
41937 * configure.ac: Use bug-grub as the reporting address.
41938 Use GRUB instead of PUPA.
41939 Change the version number to 1.90.
41940
41941 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
41942
41943 * genkernsyms.sh: Updated copyright information.
41944 * genmk.rb: Likewise.
41945 * genmodsrc.sh: Likewise.
41946 * gensymlist.sh: Likewise.
41947 * boot/i386/pc/boot.S: Likewise.
41948 * boot/i386/pc/diskboot.S: Likewise.
41949 * disk/i386/pc/biosdisk.c: Likewise.
41950 * disk/i386/pc/partition.c: Likewise.
41951 * font/manager.c: Likewise.
41952 * fs/ext2.c: Likewise.
41953 * fs/fat.c: Likewise.
41954 * include/pupa/boot.h: Likewise.
41955 * include/pupa/device.h: Likewise.
41956 * include/pupa/disk.h: Likewise.
41957 * include/pupa/dl.h: Likewise.
41958 * include/pupa/elf.h: Likewise.
41959 * include/pupa/err.h: Likewise.
41960 * include/pupa/file.h: Likewise.
41961 * include/pupa/font.h: Likewise.
41962 * include/pupa/fs.h: Likewise.
41963 * include/pupa/kernel.h: Likewise.
41964 * include/pupa/loader.h: Likewise.
41965 * include/pupa/misc.h: Likewise.
41966 * include/pupa/mm.h: Likewise.
41967 * include/pupa/net.h: Likewise.
41968 * include/pupa/normal.h: Likewise.
41969 * include/pupa/rescue.h: Likewise.
41970 * include/pupa/setjmp.h: Likewise.
41971 * include/pupa/symbol.h: Likewise.
41972 * include/pupa/term.h: Likewise.
41973 * include/pupa/types.h: Likewise.
41974 * include/pupa/i386/setjmp.h: Likewise.
41975 * include/pupa/i386/types.h: Likewise.
41976 * include/pupa/i386/pc/biosdisk.h: Likewise.
41977 * include/pupa/i386/pc/boot.h: Likewise.
41978 * include/pupa/i386/pc/console.h: Likewise.
41979 * include/pupa/i386/pc/init.h: Likewise.
41980 * include/pupa/i386/pc/kernel.h: Likewise.
41981 * include/pupa/i386/pc/linux.h: Likewise.
41982 * include/pupa/i386/pc/loader.h: Likewise.
41983 * include/pupa/i386/pc/memory.h: Likewise.
41984 * include/pupa/i386/pc/multiboot.h: Likewise.
41985 * include/pupa/i386/pc/partition.h: Likewise.
41986 * include/pupa/i386/pc/time.h: Likewise.
41987 * include/pupa/i386/pc/vga.h: Likewise.
41988 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
41989 * include/pupa/util/getroot.h: Likewise.
41990 * include/pupa/util/misc.h: Likewise.
41991 * include/pupa/util/resolve.h: Likewise.
41992 * kern/device.c: Likewise.
41993 * kern/disk.c: Likewise.
41994 * kern/dl.c: Likewise.
41995 * kern/err.c: Likewise.
41996 * kern/file.c: Likewise.
41997 * kern/fs.c: Likewise.
41998 * kern/loader.c: Likewise.
41999 * kern/main.c: Likewise.
42000 * kern/misc.c: Likewise.
42001 * kern/mm.c: Likewise.
42002 * kern/rescue.c: Likewise.
42003 * kern/term.c: Likewise.
42004 * kern/i386/dl.c: Likewise.
42005 * kern/i386/pc/init.c: Likewise.
42006 * kern/i386/pc/lzo1x.S: Likewise.
42007 * kern/i386/pc/startup.S: Likewise.
42008 * loader/i386/pc/chainloader.c: Likewise.
42009 * loader/i386/pc/linux.c: Likewise.
42010 * loader/i386/pc/multiboot.c: Likewise.
42011 * normal/cmdline.c: Likewise.
42012 * normal/command.c: Likewise.
42013 * normal/main.c: Likewise.
42014 * normal/menu.c: Likewise.
42015 * normal/i386/setjmp.S: Likewise.
42016 * term/i386/pc/console.c: Likewise.
42017 * term/i386/pc/vga.c: Likewise.
42018 * util/console.c: Likewise.
42019 * util/genmoddep.c: Likewise.
42020 * util/misc.c: Likewise.
42021 * util/pupa-emu.c: Likewise.
42022 * util/resolve.c: Likewise.
42023 * util/unifont2pff.rb: Likewise.
42024 * util/i386/pc/biosdisk.c: Likewise.
42025 * util/i386/pc/getroot.c: Likewise.
42026 * util/i386/pc/pupa-mkimage.c: Likewise.
42027 * util/i386/pc/pupa-setup.c: Likewise.
42028
42029 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
42030
42031 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
42032 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
42033 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
42034 reading and reset it after reading.
42035 (pupa_ext2_close): Return PUPA_ERR_NONE.
42036
42037 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
42038 Correct value.
42039 (struct linux_kernel_header): Add kernel_version and
42040 initrd_addr_max.
42041 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
42042 pupa_file_read succeeds.
42043 (pupa_rescue_cmd_initrd): Implement.
42044
42045 2003-12-03 Marco Gerards <metgerards@student.han.nl>
42046
42047 * fs/ext2.c (pupa_ext2_label): New function.
42048 (pupa_ext2_fs): Added label.
42049 * fs/fat.c (pupa_fat_label): New function.
42050 (pupa_fat_fs): Added label.
42051 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
42052
42053 * kern/misc.c (pupa_strndup): New function.
42054 * include/pupa/misc.h (pupa_strndup): New prototype.
42055
42056 * include/pupa/normal.h: Include <pupa/err.h>.
42057 (pupa_set_history): New prototype.
42058 (pupa_iterate_commands): New prototype.
42059 * normal/cmdline.c: Include <pupa/machine/partition.h>,
42060 <pupa/disk.h>, <pupa/file.h>.
42061 (hist_size): New variable.
42062 (hist_lines): Likewise.
42063 (hist_end): Likewise.
42064 (hist_used): Likewise.
42065 (pupa_set_history): New function.
42066 (pupa_history_get): Likewise.
42067 (pupa_history_add): Likewise.
42068 (pupa_history_replace): Likewise.
42069 (pupa_tab_complete): Likewise.
42070 (pupa_cmdline_run): Added tab completion and history buffer. Tab
42071 completion shows partitionnames while completing partitions, this
42072 feature was suggested by Jeff Bailey.
42073 * normal/command.c (pupa_iterate_commands): New function.
42074 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
42075 (pupa_normal_init): Initialize history buffer.
42076 (PUPA_MOD_INIT): Likewise.
42077 (pupa_normal_fini): Free the history buffer.
42078 (PUPA_MOD_FINI): Likewise.
42079
42080 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
42081 key.
42082
42083 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
42084 * configure.ac [i386]: Check for regparam bug.
42085 (NESTED_FUNC_ATTR) [! i386]: Defined.
42086
42087 2003-11-17 Marco Gerards <metgerards@student.han.nl>
42088
42089 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
42090 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
42091 (pupa_emu_SOURCES): New variable.
42092 (pupa_emu_LDFLAGS): Likewise.
42093 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
42094 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
42095 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
42096 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42097 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
42098 (pupa_jmp_buf): New typedef.
42099 (pupa_setjmp) [PUPA_UTIL]: New macro.
42100 (pupa_longjmp) [PUPA_UTIL]: Likewise.
42101 * include/pupa/term.h (struct pupa_term): New member `refresh'.
42102 (pupa_refresh): New prototype.
42103 * include/pupa/util/getroot.h: New file.
42104 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
42105 it.
42106 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
42107 (pupa_rescue_cmd_cat): Likewise.
42108 (pupa_rescue_cmd_ls): Likewise.
42109 (pupa_rescue_cmd_testload): Likewise.
42110 (pupa_rescue_cmd_lsmod): Likewise.
42111 * normal/cmdline.c (pupa_cmdline_get): Likewise.
42112 * normal/menu.c (run_menu): Likewise.
42113 * kern/term.c (pupa_cls): Likewise.
42114 (pupa_refresh): New function.
42115 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
42116 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42117 * util/console.c: New file.
42118
42119 * util/i386/pc/getroot.c: New file.
42120 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
42121 (pupa_putchar): New function.
42122 (pupa_refresh): Likewise.
42123 (xgetcwd): Function moved to ...
42124 (strip_extra_slashes): Likewise.
42125 (get_prefix): Likewise.
42126 * util/i386/pc/getroot.c: ... here.
42127 (find_root_device): Function moved and renamed to...
42128 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
42129 Changed all callers.
42130 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
42131 and renamed to...
42132 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
42133 Changed all callers.
42134 * util/misc.c (pupa_memalign): New function.
42135 (pupa_mm_init_region): Likewise.
42136 (pupa_register_exported_symbols): Likewise.
42137 (pupa_putchar): Function removed.
42138 * util/pupa-emu.c: New file.
42139
42140 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
42141
42142 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
42143 (_multiboot_mod_SOURCES): New variable.
42144 (_multiboot_mod_CFLAGS): Likewise.
42145 * loader/i386/pc/multiboot.c: New file.
42146 * include/pupa/i386/pc/multiboot.h: Likewise.
42147 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
42148 (pupa_multiboot_real_boot): New function.
42149 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
42150 (pupa_multiboot_real_boot): New prototype.
42151 (pupa_rescue_cmd_multiboot): Likewise
42152 (pupa_rescue_cmd_module): Likewise.
42153
42154 * kern/loader.c (pupa_loader_set): Continue when
42155 pupa_loader_unload_func() fails.
42156 (pupa_loader_unset): New function.
42157 * include/pupa/loader.h (pupa_loader_unset): New prototype.
42158
42159 * kern/misc.c (pupa_stpcpy): New function.
42160 * include/pupa/misc.h (pupa_stpcpy): New prototype.
42161
42162 2003-11-12 Marco Gerards <metgerards@student.han.nl>
42163
42164 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
42165 for available extensions.
42166
42167 * include/pupa/i386/pc/time.h: New file.
42168 * kern/disk.c: Include <pupa/machine/time.h>.
42169 (PUPA_CACHE_TIMEOUT): New macro.
42170 (pupa_last_time): New variable.
42171 (pupa_disk_open): Flush the cache when there was a timeout.
42172 (pupa_disk_close): Reset the timer.
42173 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
42174 pupa_currticks.
42175 * util/misc.c: Include <sys/times.h>
42176 (pupa_get_rtc): New function.
42177
42178 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42179
42180 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
42181 as blocks.
42182 (pupa_ext2_get_file_block): Use blocks member.
42183
42184 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
42185 first block. Return -1 instead of pupa_errno on error.
42186
42187 2003-10-27 Marco Gerards <metgerards@student.han.nl>
42188
42189 * README: In the pupa-mkimage example use _chain instead of chain
42190 and ext2 instead of fat.
42191 * TODO: Replace ext2fs with jfs as an example. Add an item for
42192 adding journal playback for ext2fs.
42193 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
42194 (pkgdata_MODULES): Added ext2.mod.
42195 (ext2_mod_SOURCES): New variable.
42196 (ext2_mod_CFLAGS): Likewise.
42197 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
42198 * include/pupa/misc.h (pupa_strncpy): New prototype.
42199 (pupa_strcat): Likewise.
42200 (pupa_strncmp): Likewise.
42201 * kern/misc.c (pupa_strcat): Enable function.
42202 (pupa_strncpy): New function.
42203 (pupa_strncmp): Likewise.
42204 * fs/ext2.c: New file.
42205
42206 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
42207 when the read failed before retrying.
42208 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
42209 (_FILE_OFFSET_BITS): Likewise.
42210 * configure.ac: Added AC_SYS_LARGEFILE.
42211
42212 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42213
42214 * genmk.rb (PModule#rule): Make sure to get only symbol names
42215 from the output of nm.
42216 Reported by Robert Millan <rmh.grub@aybabtu.com>.
42217
42218 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42219
42220 I forgot to check in these changes for a long time. This adds
42221 incomplete support for VGA console, and this is still very
42222 buggy. Also, a lot of consideration is required for I18N,
42223 UNICODE, and VGA font issues. Therefore, assume that this is
42224 such that "better than nothing".
42225
42226 * font/manager.c: New file.
42227 * include/pupa/font.h: Likewise.
42228 * include/pupa/i386/pc/vga.h: Likewise.
42229 * term/i386/pc/vga.c: Likewise.
42230 * util/unifont2pff.rb: Likewise.
42231
42232 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
42233 (pkgdata_MODULES): Added vga.mod and font.mod.
42234 (vga_mod_SOURCES): New variables.
42235 (vga_mod_CFLAGS): Likewise.
42236 (font_mod_SOURCES): Likewise.
42237 (font_mod_CFLAGS): Likewise.
42238
42239 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
42240
42241 * include/pupa/term.h: Include pupa/err.h.
42242 (struct pupa_term): Added init and fini.
42243 Changed the argument of putchar to pupa_uint32_t.
42244
42245 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
42246 (pupa_console_real_putchar): New prototype.
42247 (pupa_console_putchar): Removed.
42248 (pupa_console_checkkey): Exported.
42249 (pupa_console_getkey): Likewise.
42250
42251 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
42252 characters.
42253
42254 * kern/term.c (pupa_term_set_current): Rewritten.
42255 (pupa_putchar): Likewise.
42256 (pupa_putcode): New function.
42257
42258 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
42259 (pupa_console_real_putchar): ... this.
42260 (pupa_vga_set_mode): New function.
42261 (pupa_vga_get_font): Likewise.
42262
42263 * normal/command.c: Include pupa/term.h.
42264 (terminal_command): New function.
42265 (pupa_command_init): Register the command "terminal".
42266
42267 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
42268 (DISP_UP): Likewise.
42269 (DISP_RIGHT): Likewise.
42270 (DISP_DOWN): Likewise.
42271 (DISP_HLINE): Likewise.
42272 (DISP_VLINE): Likewise.
42273 (DISP_UL): Likewise.
42274 (DISP_UR): Likewise.
42275 (DISP_LL): Likewise.
42276 (DISP_LR): Likewise.
42277
42278 * term/i386/pc/console.c (pupa_console_putchar): New function.
42279
42280 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
42281
42282 * util/resolve.c (pupa_util_resolve_dependencies): BUG
42283 FIX. Reverse the path_list.
42284
42285 * include/pupa/normal.h: Export pupa_register_command and
42286 pupa_unregister_command.
42287
42288 * hello/hello.c (pupa_cmd_hello): New module.
42289 * conf/i386-pc.rmk: Added hello.mod.
42290
42291 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
42292
42293 * kern/i386/pc/lzo1x.S: New file.
42294
42295 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
42296 (compress_kernel): New variable.
42297 (generate_image): Heavily modified to support compressing a
42298 large part of the core image.
42299
42300 * util/misc.c (pupa_util_read_image): Fix a file descriptor
42301 leak.
42302 (pupa_util_load_image): New function.
42303
42304 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
42305 (pupa_compressed_size): New variable.
42306 (codestart): Enable Gate A20 here.
42307 Decompress the compressed part of the core image.
42308 Rearrange the code to put functions and variables which are
42309 required for initialization in the non-compressed part.
42310 Include lzo1x.S.
42311
42312 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
42313 here.
42314
42315 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
42316
42317 * include/pupa/i386/pc/kernel.h
42318 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
42319 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
42320 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42321 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42322 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
42323
42324 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
42325
42326 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
42327 (Utility#rule): Likewise.
42328
42329 * configure.ac: Check if LZO is available.
42330
42331 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
42332
42333 * include/pupa/normal.h: New file.
42334 * include/pupa/setjmp.h: Likewise.
42335 * include/pupa/i386/setjmp.h: Likewise.
42336 * normal/cmdline.c: Likewise.
42337 * normal/command.c: Likewise.
42338 * normal/main.c: Likewise.
42339 * normal/menu.c: Likewise.
42340 * normal/i386/setjmp.S: Likewise.
42341
42342 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
42343 (pupa_rescue_cmd_initrd): Likewise.
42344
42345 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
42346 Likewise.
42347
42348 * kern/i386/pc/startup.S (translation_table): New variable.
42349 (translate_keycode): New function.
42350 (pupa_console_getkey): Call translate_keycode.
42351
42352 * kern/rescue.c (attempt_normal_mode): New function.
42353 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
42354 it failed, print a message.
42355
42356 * kern/mm.c (pupa_real_malloc): Print more information when a
42357 free magic is broken.
42358 (pupa_free): If the first free header is not free actually, set
42359 it to P.
42360
42361 * kern/main.c (pupa_load_normal_mode): Just load the module
42362 "normal".
42363 (pupa_main): Don't print the message
42364 "Entering into rescue mode..." here.
42365
42366 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
42367 Declared.
42368 (pupa_rescue_cmd_initrd): Likewise.
42369 (pupa_rescue_cmd_initrd): Likewise.
42370
42371 * include/pupa/symbol.h (FUNCTION): Specify the type.
42372 (VARIABLE): Likewise.
42373
42374 * include/pupa/err.h (pupa_err_t): Added
42375 PUPA_ERR_UNKNOWN_COMMAND.
42376
42377 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
42378 (pupa_dl_get_prefix): Likewise.
42379
42380 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
42381 Added _chain.mod and _linux.mod instead of chain.mod and
42382 linux.mod.
42383 (chain_mod_SOURCES): Renamed to ...
42384 (_chain_mod_SOURCES): ... this.
42385 (chain_mod_CFLAGS): Renamed to ...
42386 (_chain_mod_CFLAGS): ... this.
42387 (linux_mod_SOURCES): Renamed to ...
42388 (_linux_mod_SOURCES): ... this.
42389 (linux_mod_CFLAGS): Renamed to ...
42390 (_linux_mod_CFLAGS): ... this.
42391 (normal_mod_SOURCES): New variable.
42392 (normal_mod_CFLAGS): Likewise.
42393 (normal_mod_ASFLAGS): Likewise.
42394
42395 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
42396
42397 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
42398 possible.
42399
42400 * kern/dl.c (pupa_dl_ref): Refer depending modules
42401 recursively.
42402 (pupa_dl_unref): Unrefer depending modules recursively.
42403 Don't call pupa_dl_unload implicitly, because PUPA can crash if
42404 a module is unloaded before one depending on that module is
42405 unloaded.
42406 (pupa_dl_unload): Unload depending modules explicitly,
42407 if possible.
42408
42409 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
42410
42411 * include/pupa/i386/pc/linux.h: New file.
42412 * loader/i386/pc/linux.c: Likewise.
42413
42414 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
42415 Removed.
42416 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
42417 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
42418 of PUPA_CHAINLOADER_BOOT_SECTOR.
42419
42420 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
42421 (pupa_linux_prot_size): New variable.
42422 (pupa_linux_tmp_addr): Likewise.
42423 (pupa_linux_real_addr): Likewise.
42424 (pupa_linux_boot_zimage): New function.
42425 (pupa_linux_boot_bzimage): Likewise.
42426
42427 * kern/i386/pc/init.c (struct mem_region): New structure.
42428 (MAX_REGIONS): New macro.
42429 (mem_regions): New variable.
42430 (num_regions): Likewise.
42431 (pupa_os_area_addr): Likewise.
42432 (pupa_os_area_size): Likewise.
42433 (pupa_lower_mem): Likewise.
42434 (pupa_upper_mem): Likewise.
42435 (add_mem_region): New function.
42436 (compact_mem_regions): Likewise.
42437 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
42438 the size of the conventional memory and that of so-called upper
42439 memory (before the first memory hole).
42440 Instead of adding each found region to free memory, use
42441 add_mem_region and add them after removing overlaps.
42442 Also, add only 1/4 of the upper memory to free memory. The rest
42443 is used for loading OS images. Maybe this is ad hoc, but this
42444 makes it much easier to relocate OS images when booting.
42445
42446 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
42447 (pupa_enter_rescue_mode): Don't register initrd and module.
42448
42449 * kern/mm.c: Include pupa/dl.h.
42450
42451 * kern/main.c: Include pupa/file.h and pupa/device.h.
42452
42453 * kern/loader.c (pupa_loader_load_module_func): Removed.
42454 (pupa_loader_load_module): Likewise.
42455
42456 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
42457 ``.o''.
42458
42459 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
42460 (pupa_linux_tmp_addr): Likewise.
42461 (pupa_linux_real_addr): Likewise.
42462 (pupa_linux_boot_zimage): Likewise.
42463 (pupa_linux_boot_bzimage): Likewise.
42464
42465 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
42466 (pupa_upper_mem): Likewise.
42467 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
42468 module is too dangerous.
42469
42470 * include/pupa/loader.h (pupa_os_area_addr): Declared.
42471 (pupa_os_area_size): Likewise.
42472 (pupa_loader_set): Remove the first argument. Loader doesn't
42473 manage modules or initrd any longer.
42474 (pupa_loader_load_module): Removed.
42475
42476 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
42477 (linux_mod_SOURCES): New variable.
42478 (linux_mod_CFLAGS): Likewise.
42479
42480 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
42481
42482 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
42483 the length of a blocklist correctly.
42484
42485 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
42486 Use ioctl only if the OS file is a block device.
42487 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
42488 not very useful for normal files.
42489
42490 * kern/main.c (pupa_set_root_dev): New function.
42491 (pupa_load_normal_mode): Likewise.
42492 (pupa_main): Call those above.
42493
42494 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
42495 pupa_uint16_t.
42496
42497 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
42498
42499 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42500
42501 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
42502 (setup): Configure the installed partition information and the
42503 dl prefix.
42504
42505 * loader/i386/pc/chainloader.c (my_mod): New variable.
42506 (pupa_chainloader_unload): New function.
42507 (pupa_rescue_cmd_chainloader): Refer itself.
42508 (PUPA_MOD_INIT): Save its own module in MY_MOD.
42509
42510 * kern/i386/pc/startup.S (install_partition): Removed.
42511 (version_string): Likewise.
42512 (config_file): Likewise.
42513 (pupa_install_dos_part): New variable.
42514 (pupa_install_bsd_part): Likewise.
42515 (pupa_prefix): Likewise.
42516 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
42517
42518 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
42519 and pupa/misc.h.
42520 (make_install_device): New function.
42521 (pupa_machine_init): Set the dl prefix.
42522
42523 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
42524 (buf): Renamed to ...
42525 (linebuf): ... this.
42526 (pupa_rescue_cmd_prefix): New function.
42527 (pupa_rescue_cmd_insmod): Likewise.
42528 (pupa_rescue_cmd_rmmod): Likewise.
42529 (pupa_rescue_cmd_lsmod): Likewise.
42530 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
42531 rmmod and lsmod.
42532
42533 * kern/mm.c (pupa_memalign): If failed even after invalidating
42534 disk caches, unload unneeded modules and retry.
42535
42536 * kern/misc.c (pupa_memmove): New function.
42537 (pupa_memcpy): Removed.
42538 (pupa_strcpy): New function.
42539 (pupa_itoa): Made static.
42540
42541 * kern/dl.c (pupa_dl_iterate): New function.
42542 (pupa_dl_ref): Likewise.
42543 (pupa_dl_unref): Likewise.
42544 (pupa_dl_unload): Return if succeeded or not.
42545 (pupa_dl_unload_unneeded): New function.
42546 (pupa_dl_unload_all): Likewise.
42547 (pupa_dl_init): Renamed to ...
42548 (pupa_dl_set_prefix): ... this.
42549 (pupa_dl_get_prefix): New function.
42550
42551 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
42552 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
42553 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42554 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42555 (pupa_install_dos_part): Declared.
42556 (pupa_install_bsd_part): Likewise.
42557 (pupa_prefix): Likewise.
42558 (pupa_boot_drive): Likewise.
42559
42560 * include/pupa/types.h: Fix a typo.
42561
42562 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
42563 pupa_memmove.
42564 (pupa_memmove): Declared.
42565 (pupa_strcpy): Likewise.
42566
42567 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
42568 pupa_mod_init takes one argument, its own module.
42569 (pupa_dl_unload_unneeded): Declared.
42570 (pupa_dl_unload_all): Likewise.
42571 (pupa_dl_ref): Likewise.
42572 (pupa_dl_unref): Likewise.
42573 (pupa_dl_iterate): Likewise.
42574 (pupa_dl_init): Renamed to ...
42575 (pupa_dl_set_prefix): ... this.
42576 (pupa_dl_get_prefix): Declared.
42577
42578 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
42579 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
42580 unloaded.
42581 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
42582 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
42583
42584 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
42585 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
42586
42587 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42588
42589 * util/i386/pc/pupa-setup.c (setup): Define the internal
42590 function find_first_partition_start at the top level, because GCC
42591 3.0.x cannot compile internal functions in deeper scopes
42592 correctly.
42593 (find_root_device): Use lstat instead of stat.
42594 Don't follow symbolic links.
42595 Fix the path-constructing code.
42596
42597 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
42598 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
42599 by a BLKGETSIZE ioctl first, because block devices don't fill
42600 the member st_mode of the structure stat on Linux.
42601 [__linux__] (linux_find_partition): Use a temporary buffer
42602 REAL_DEV for the working space. Copy it to DEV before returning.
42603 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
42604 buffer cache consistent.
42605 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
42606 strncmp. The previous value was merely wrong.
42607 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
42608
42609 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
42610 FAT size is 12. The previous value was merely wrong.
42611
42612 * kern/main.c (pupa_main): Don't split the starting message from
42613 newlines.
42614
42615 * kern/term.c (pupa_putchar): Put CR after LF instead of before
42616 LF, because BIOS goes crazy about character attributes in this
42617 case.
42618
42619 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42620
42621 * include/i386/pc/util/biosdisk.h: New file.
42622 * util/i386/pc/biosdisk.c: Likewise.
42623 * util/i386/pc/pupa-setup.c: Likewise.
42624
42625 * Makefile.in (INCLUDE_DISTFILES): Added
42626 include/pupa/i386/pc/util/biosdisk.h.
42627 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
42628 directory util/i386/pc.
42629 (install-local): Added a rule for sbin_UTILITIES.
42630 (uninstall): Likewise.
42631
42632 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
42633
42634 * util/misc.c (xrealloc): New function.
42635 (pupa_malloc): Likewise.
42636 (pupa_free): Likewise.
42637 (pupa_realloc): Likewise.
42638 (pupa_stop): Likewise.
42639 (pupa_putchar): Likewise.
42640
42641 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
42642
42643 * include/pupa/util/misc.h (xrealloc): Declared.
42644
42645 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
42646 macro.
42647 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
42648 (PUPA_BOOT_MACHINE_BPB_END): ... this.
42649
42650 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
42651 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42652
42653 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
42654 way should be implemented.
42655 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42656
42657 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
42658 the size of NAME for safety.
42659 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
42660 0x88.
42661
42662 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
42663 (pupa_setup_SOURCES): Likewise.
42664
42665 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
42666
42667 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42668
42669 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
42670 bunch of pushl's from pusha, because this destroys the return
42671 value.
42672
42673 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42674
42675 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
42676 This means that any missing prototypes could be fatal. Also, you
42677 must take care when writing assembly code. See the comments at
42678 the beginning of startup.S, for more details.
42679
42680 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
42681 compilation mechanism.
42682 (pupa_chainloader_real_boot): Likewise.
42683 (pupa_biosdisk_rw_int13_extensions): Likewise.
42684 (pupa_biosdisk_rw_standard): Likewise.
42685 (pupa_biosdisk_check_int13_extensions): Likewise.
42686 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
42687 (pupa_biosdisk_get_diskinfo_standard): Likewise.
42688 (pupa_get_memsize): Likewise.
42689 (pupa_get_mmap_entry): Likewise.
42690 (pupa_console_putchar): Likewise.
42691 (pupa_console_setcursor): Likewise.
42692 (pupa_getrtsecs): Use pushl instead of push.
42693
42694 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
42695 memory instead of the stack for a mmap entry, because some
42696 BIOSes may ignore the maximum size and overflow.
42697
42698 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
42699
42700 * genmk.rb (PModule#rule): Compile automatically generated
42701 sources with module-specific CFLAGS as well as other sources.
42702
42703 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42704
42705 * configure.ac: Check ld.
42706 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
42707 respectively, before checking endianness and sizes.
42708
42709 * Makefile.in (LD): New variable.
42710
42711 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42712
42713 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
42714
42715 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42716
42717 * Changelog: New file.
42718