]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
[grub2.git] / ChangeLog
1 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4 const qualifier.
5 (efiemu_memequal): Likewise.
6 (find_variable): Likewise.
7
8 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9
10 Fix missing console prototype on qemu-mips.
11
12 * include/grub/mips/qemu_mips/console.h: New file.
13
14 2012-02-27 Matthew Garrett <mjg@redhat.com>
15 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
16
17 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
18 * include/grub/efi/efi.h: Likewise.
19 * include/grub/efi/api.h: Add guid for EFI-specified variables.
20 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
21 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
22 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
23 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
24 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
25
26 2012-02-27 Matthew Garrett <mjg@redhat.com>
27
28 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
29
30 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
31
32 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
33 error.
34
35 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
36
37 * configure.ac: Remove inappropriate use of program_transform_name
38 on grubdir and bootdir but allow explicit specification of those
39 variables.
40
41 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
42
43 * util/grub-mknetdir.in (grub_prefix): Removed.
44 (subdir): Use @bootdirname@ and @grubdirname@.
45
46 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
47
48 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
49
50 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
51
52 * po/POTFILES.in: Regenerated.
53
54 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
55
56 Remove improper use of program_transform_name on pkglibrootdir.
57
58 * configure.ac (pkglibrootdir): Removed.
59 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
60 * util/grub-mkimage.c: Likewise.
61
62 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
63
64 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
65 warning.
66
67 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
68
69 * util/grub-install.in: Use file identifier if no UUID is available
70 or user explicitly prompted for it.
71
72 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
73
74 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
75 (freebsd_get_zfs): New function.
76 (grub_freebsd_boot): Pass zfs UUID.
77 (grub_cmd_freebsd): Set zfs UUID.
78
79 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * conf/Makefile.common (platformdir): Base on pkglibdir and not
82 pkglibrootdir.
83
84 2012-02-27 Mike Gilbert <floppym@gentoo.org>
85
86 Add configure flag to control libzfs integration.
87
88 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
89
90 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
91
92 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
93 device.
94 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
95 small devices.
96
97 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
98
99 Remove grub_{modname}_init and grub_{modname}_fini. They should never
100 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
101 be used on non-modules.
102
103 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
104 Rename to grub_boot_init.
105 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
106 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
107 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
108 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
109 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
110 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
111 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
112 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
113 includes.
114 (grub_machine_init): Remove empty inits.
115 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
116 includes.
117 (grub_machine_init): Remove empty inits.
118 * grub-core/term/arc/console.c: Remove explicit proto.
119 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
120 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
121 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
122 grub_at_keyboard_fini.
123 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
124 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
125 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
126 grub_gfxterm_fini.
127 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
128 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
129 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
130 grub_vgatext_fini.
131 * grub-core/term/ieee1275/console.c: Remove explicit proto.
132 * grub-core/term/serial.c (GRUB_MOD_INIT)
133 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
134 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
135 grub_serial_fini.
136 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
137 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
138 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
139 grub_terminfo_fini.
140 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
141 (GRUB_MOD_FINI): Likewise.
142 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
143 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
144 (GRUB_MOD_FINI) [LOONGSON]: Rename to
145 grub_video_radeon_fuloong2e_fini.
146 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
147 [LOONGSON]: Rename to grub_video_sis315pro_init.
148 (GRUB_MOD_FINI) [LOONGSON]: Rename to
149 grub_video_sis315pro_fini.
150 * grub-core/video/sm712.c (GRUB_MOD_INIT)
151 [LOONGSON]: Rename to grub_video_sm712_init.
152 (GRUB_MOD_FINI) [LOONGSON]: Rename to
153 grub_video_sm712_fini.
154 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
155 (grub_at_keyboard_fini): Likewise.
156 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
157 Don't declare grub_{modname}_init.
158 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
159 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
160 New proto.
161 (grub_keylayouts_fini) [!EMU]: Likewise.
162 * include/grub/serial.h (grub_serial_init) [!EMU]:
163 New proto.
164 (grub_serial_fini) [!EMU]: Likewise.
165 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
166 New proto.
167 (grub_terminfo_fini) [!EMU]: Likewise.
168 * include/grub/video.h (grub_font_init) [!EMU]:
169 New proto.
170 (grub_font_fini) [!EMU]: Likewise.
171 (grub_gfxterm_init) [!EMU]: Likewise.
172 (grub_gfxterm_fini) [!EMU]: Likewise.
173 (grub_video_sm712_init) [!EMU]: Likewise.
174 (grub_video_sm712_fini) [!EMU]: Likewise.
175 (grub_video_sis315pro_init) [!EMU]: Likewise.
176 (grub_video_sis315pro_fini) [!EMU]: Likewise.
177 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
178 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
179
180 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
181
182 Make nand a prefix for nand devices.
183
184 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
185
186 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
189 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
190
191 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * include/grub/env.h (grub_env_find): Remove prototype.
194 * grub-core/kern/env.c (grub_env_find): Make static.
195 (grub_env_set): Remove useless set.
196
197 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/kern/i386/realmode.S: Remove useless align.
200
201 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
202
203 * include/grub/dl.h (grub_dl_load_file): Don't export.
204
205 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
208 grub_dprintf.
209
210 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
213 grub_errors.
214 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
215 not reloading whole superblock but only the part which is really needed.
216 Remove useless grub_errors.
217 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
218 grub_errors.
219
220 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
221
222 Don't export grub_get_rtc.
223
224 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
225 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
226
227 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
230
231 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
232
233 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
234 argument since it can be deduced from diskfilter. All users updated.
235
236 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
237
238 Remove prio_list.
239
240 * include/grub/list.h (grub_prio_list): Removed.
241 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
242 GRUB_COMMAND_PRIO_MASK.
243 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
244 GRUB_COMMAND_FLAG_ACTIVE.
245 (grub_prio_list_insert): Removed.
246 (grub_prio_list_remove): Likewise.
247 (GRUB_AS_PRIO_LIST): Likewise.
248 (GRUB_AS_PRIO_LIST_P): Likewise.
249 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
250 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
251 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
252 * grub-core/kern/command.c (grub_register_command_prio): Inline
253 the prio_list code.
254 (grub_unregister_command): Likewise.
255
256 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
257
258 Fix interrupt mixup from previous commit.
259
260 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
261 (grub_realidt): New var.
262 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
263 Load idt.
264 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
265 New declaration.
266 (grub_relocator16_boot): Set grub_relocator16_idt.
267 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
268 (LOCAL(realidt)): ... this.
269 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
270 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
271 (grub_realidt): New variable.
272
273 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
274
275 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
276 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
277 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
278 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
279 Gettextize.
280 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
281 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
282 * po/POTFILES.in: Regenerate.
283
284 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
285
286 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
287 errors.
288
289 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
290
291 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
292 \0.
293 (add_length): Likewise.
294
295 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
296 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
297
298 GDB serial and backtrace support.
299
300 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
301 (prot_to_real): Likewise.
302 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
303 * grub-core/Makefile.core.def (backtrace): New module.
304 (gdb): Likewise.
305 * grub-core/gdb/cstub.c: New file.
306 * grub-core/gdb/gdb.c: Likewise.
307 * grub-core/gdb/i386/idt.c: Likewise.
308 * grub-core/gdb/i386/machdep.S: Likewise.
309 * grub-core/gdb/i386/signal.c: Likewise.
310 * grub-core/lib/i386/backtrace.c: Likewise.
311 * grub-core/lib/backtrace.c: Likewise.
312 * include/grub/backtrace.h: Likewise.
313 * include/grub/gdb.h: Likewise.
314 * include/grub/i386/gdb.h: Likewise.
315
316 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
317
318 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
319 New function.
320 (add_length): Likewise.
321 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
322 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
323 proto.
324 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
325 __argp_get_display_len.
326
327 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
328
329 $"..." support in scripts.
330
331 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
332 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
333 * grub-core/script/yylex.l: Likewise.
334 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
335 value.
336
337 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
338
339 * gentpl.py: Remove obsolete pkglib_DATA handling.
340
341 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
342
343 Don't transform PACKAGE_TARNAME following a discussion on autoconf
344 mailing list.
345
346 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
347 * util/grub-kbdcomp.in: Likewise.
348 * util/grub-mkconfig.in: Likewise.
349 * util/grub-mkconfig_lib.in: Likewise.
350 * util/grub-mknetdir.in: Likewise.
351 * util/grub-mkrescue.in: Likewise.
352 * util/grub-mkstandalone.in: Likewise.
353 * util/grub-reboot.in: Likewise.
354 * util/grub-set-default.in: Likewise.
355 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
356
357 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
358
359 Remove GRUB_PREFIX.
360
361 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
362 * util/grub.d/00_header.in: Compute prefix in the only place it's still
363 used for backward compatibility.
364
365 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
366
367 Add new all_video module.
368
369 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
370 * grub-core/Makefile.core.def (all_video): New module.
371 * grub-core/genmoddep.awk: Generate dependency of all_video from
372 video.lst.
373 * grub-core/lib/fake_module.c: New file.
374 * grub-core/normal/main.c (features): Add feature_all_video_module.
375 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
376 don't do explicit search again.
377 insmod all_video in load_video if available.
378
379 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
380
381 Another round of string clarification and adding TRANSLATORS comments.
382
383 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
386
387 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
388
389 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
390 to grub_ssize_t.
391 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
392 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
393
394 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
395
396 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
397 trailing newline implicitly. All users updated.
398
399 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
400
401 Implement serial on IEEE1275 and EFI.
402
403 * docs/grub.texi (Platform-specific limitations): Fix the columen video
404 on emu. Mention arc and emu as the only platforms without serial
405 support.
406 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
407 ieee1275 platforms.
408 * grub-core/term/efi/serial.c: New file.
409 * grub-core/term/ieee1275/serial.c: Likewise.
410 * grub-core/term/serial.c (grub_serial_find): Disable direct port
411 specification if no ns8250 driver is available.
412 (grub_cmd_serial): Likewise.
413 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
414 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
415 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
416 (grub_efi_parity_type_t): New type.
417 (grub_efi_stop_bits_t): Likewise.
418 (grub_efi_serial_io_interface): New struct.
419 * include/grub/serial.h (grub_serial_port): Make 'broken' field
420 available for all interfaces.
421 Add EFI and IEEE1275 fields.
422 (grub_ofserial_init): New proto.
423 (grub_efiserial_init): Likeiwse.
424 * util/grub.d/00_header.in: Don't check for the presence of serial
425 module.
426
427 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
430 name as if it was an alias.
431
432 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * grub-core/commands/lsacpi.c (options): Fix typo.
435
436 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
437
438 Convert grub-emu to argp.
439
440 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
441 emu.
442 * util/argp_common.c: Rename to ...
443 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
444 Add missing includes.
445 * grub-core/kern/emu/main.c: Convert to argp.
446 * po/POTFILES.in: Regenerate.
447 * util/grub-install.in (usage): Make first letter lowcase in messages
448 for uniformity.
449 * util/grub-setup.c (options): Likewise.
450
451 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
452
453 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
454 Put back accidently commented-out code.
455
456 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
459 loop check using Brent algorithm.
460 (grub_hfsplus_btree_search): Likewise.
461
462 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
463
464 * util/grub-install.in: Fix usage of wrong device for PreP install.
465
466 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
467
468 * conf/Makefile.common (CFLAGS_GNULIB): Add
469 -Wno-unsafe-loop-optimizations.
470 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
471 on tools.
472 * grub-core/commands/legacycfg.c: Add pragma to skip
473 -Wunsafe-loop-optimizations.
474 (check_password_md5_real): Fix loop counter type.
475 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
476 reading.
477 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
478 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
479 loop condition.
480 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
481 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
482 * grub-core/net/net.c (grub_net_route_address): Add safety loop
483 condition.
484 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
485 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
486 avoid possible infinite loops.
487 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
488 and -Wunsafe-loop-optimizations.
489 * grub-core/script/yylex.l: Likewise.
490 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
491 (print_glyphs): Avoid infinite loops.
492 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
493
494 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
495
496 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
497 to avoid infinite loop.
498 (disp_acpi_rsdt_table): Likewise.
499
500 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
501
502 * grub-core/font/font.c (grub_font_load): Add support for default
503 path for fonts ($prefix/fonts).
504 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
505 for checking if string is a path.
506 * grub-core/normal/main.c (features): Add feature_default_font_path.
507 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
508 * util/grub.d/00_header.in: Use default directory if possible.
509 * util/grub-install.in: Install unicode.pf2.
510
511 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
512
513 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
514 * po/Rules-swiss: New file.
515 * po/swiss.sed: Likewise.
516
517 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * grub-core/fs/btrfs.c (find_device): Fix typos.
520 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
521 * util/grub-mkrelpath.c (argp_parser): Likewise.
522 Reported by: Yuri Chornoivan.
523
524 2012-02-23 Dalet Omega <daletomega@gmail.com>
525
526 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
527 for usual informative messages.
528
529 2012-02-23 Dalet Omega <daletomega@gmail.com>
530
531 Starfield theme.
532
533 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
534 * conf/Makefile.common: Define starfielddir.
535 * configure.ac: Configure starfield.
536 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
537 * themes/starfield/README: Likewise.
538 * themes/starfield/blob_w.png: Likewise.
539 * themes/starfield/boot_menu_c.png: Likewise.
540 * themes/starfield/boot_menu_e.png: Likewise.
541 * themes/starfield/boot_menu_n.png: Likewise.
542 * themes/starfield/boot_menu_ne.png: Likewise.
543 * themes/starfield/boot_menu_nw.png: Likewise.
544 * themes/starfield/boot_menu_s.png: Likewise.
545 * themes/starfield/boot_menu_se.png: Likewise.
546 * themes/starfield/boot_menu_sw.png: Likewise.
547 * themes/starfield/boot_menu_w.png: Likewise.
548 * themes/starfield/slider_c.png: Likewise.
549 * themes/starfield/slider_n.png: Likewise.
550 * themes/starfield/slider_s.png: Likewise.
551 * themes/starfield/src/blob_nw.xcf: Likewise.
552 * themes/starfield/src/bootmenu/: Likewise.
553 * themes/starfield/src/bootmenu/center.xcf: Likewise.
554 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
555 * themes/starfield/src/bootmenu/side.xcf: Likewise.
556 * themes/starfield/src/slider_c.xcf: Likewise.
557 * themes/starfield/src/slider_n.xcf: Likewise.
558 * themes/starfield/src/slider_s.xcf: Likewise.
559 * themes/starfield/src/terminalbox/: Likewise.
560 * themes/starfield/src/terminalbox/center.xcf: Likewise.
561 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
562 * themes/starfield/src/terminalbox/side.xcf: Likewise.
563 * themes/starfield/starfield.png: Likewise.
564 * themes/starfield/terminal_box_c.png: Likewise.
565 * themes/starfield/terminal_box_e.png: Likewise.
566 * themes/starfield/terminal_box_n.png: Likewise.
567 * themes/starfield/terminal_box_ne.png: Likewise.
568 * themes/starfield/terminal_box_nw.png: Likewise.
569 * themes/starfield/terminal_box_s.png: Likewise.
570 * themes/starfield/terminal_box_se.png: Likewise.
571 * themes/starfield/terminal_box_sw.png: Likewise.
572 * themes/starfield/terminal_box_w.png: Likewise.
573 * themes/starfield/theme.txt: Likewise.
574
575 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
576
577 * util/grub.d/00_header.in: Add missing export theme.
578
579 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
580
581 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
582 already included.
583 Reported by: Eren D.
584
585 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
586
587 * conf/Makefile.common (grubdatadir): Removed.
588 (Makefile.am): Move eveything grubdata to pkgdata.
589
590 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
591
592 * grub-core/commands/acpihalt.c (get_sleep_type):
593 Remove unused variable.
594
595 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
598 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
599 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
600 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
601 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
602 i18n with gettext no-op.
603 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
604 GRUB_ACPI_OPCODE_STRING_CONST.
605 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
606 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
607
608 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
609
610 * po/POTFILES.in: Regenerate.
611
612 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
613
614 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
615 -Wno-error=missing-noreturn.
616
617 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
618
619 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
620 condition to avoid possibly infinite loops.
621 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
622 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
623
624 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
625
626 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
627 condition to avoid possibly infinite loops.
628
629 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
630
631 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
632 on show_error.
633
634 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
635
636 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
637
638 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
639
640 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
641
642 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * util/bin2h.c (usage): Add missing attribute noreturn.
645
646 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
647
648 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
649 if the size isn't divisible by 512.
650
651 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
652
653 Make list_push and list_remove functions rather than inline functions
654 to decrease size and avoid aliasing violations.
655
656 * include/grub/list.h (grub_list_push): Move to ...
657 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
658 * include/grub/list.h (grub_list_remove): Move to ...
659 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
660
661 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
662
663 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
664 and -Wunused-result.
665
666 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
669 Reported by: Seth Goldberg
670
671 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
674
675 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
676
677 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
678 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
679 command line.
680 * docs/grub.texi (Simple configuration): Document
681 GRUB_CMDLINE_GNUMACH.
682
683 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
684
685 * conf/Makefile.common (platform_SCRIPTS): New variable.
686 (platform_PROGRAMS): Likewise.
687 * gentpl.py: Mark *,module and *.image for install.
688 * grub-core/gdb_grub.in: Add a notice of expected environment.
689 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
690 (gmodule.pl): Likewise.
691
692 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
693
694 Replace grub_checkkey with grub_getkey_noblock.
695
696 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
697 (grub_getkey_noblock): ... this. All users updated.
698
699 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
700
701 * grub-core/kern/emu/console.c: Move to ...
702 * grub-core/term/emu/console.c: ...here.
703 (grub_ncurses_getkey): Fix return value if no key is detected.
704
705 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
706
707 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
708 (grub_unit_test_fini): Likewise.
709 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
710
711 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
712
713 * include/grub/test.h (GRUB_UNIT_TEST)
714
715 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
716
717 * grub-core/script/execute.c (grub_script_break): Clarify logic.
718 Better error handling.
719 (grub_script_return): Likewise.
720 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
721
722 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
723
724 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
725 rimplicit redifinition.
726
727 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
728
729 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
730 GRUB.
731
732 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
733
734 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
735 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
736 prompt here.
737
738 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
739
740 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
741 as GRUB_ERR_BUG. Don't malloc if no device is available.
742
743 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
744
745 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
746 Mark calling with invalid term as GRUB_ERR_BUG.
747
748 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
751 packets rather than raising an error.
752
753 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
754
755 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
756 in if.
757
758 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
759
760 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
761 diagnostic to dprintf.
762 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
763
764 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
765
766 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
767 device name.
768
769 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
772 (grub_ntfs_iterate_dir): Likewise.
773
774 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
775
776 Efiemu stylistic fixes and gettext.
777
778 * grub-core/efiemu/i386/loadcore32.c
779 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
780 * grub-core/efiemu/i386/loadcore64.c
781 (grub_arch_efiemu_relocate_symbols64): Likewise.
782 * grub-core/efiemu/i386/pc/cfgtables.c
783 (grub_machine_efiemu_init_tables): Likewise.
784 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
785 (grub_efiemu_loadcore_initXX): Add a filename argument.
786 All users updated.
787 Improved error message.
788 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
789 Add a filename argument.
790 All users updated.
791 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
792 Reclassify double relocation as GRUB_ERR_BUG.
793
794 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
795
796 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
797 handling.
798
799 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
800
801 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
802 on partition.
803
804 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
805
806 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
807
808 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
809
810 Improve string. Gettextize.
811
812 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
815 utils.
816 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
817
818 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
821 [GRUB_UTIL]: New function.
822 (insert_array) [GRUB_UTIL]: Store partmaps.
823 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
824 partmaps.
825 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
826 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
827 (probe_abstraction): Print diskfilter and not raid.
828 Reported by: Lennart Sorensen
829
830 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
831
832 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
833 * util/grub-mkimagexx.c (MASK3): New define.
834 (add_value_to_slot_20b): Use MASK3.
835 (add_value_to_slot_21): Likewise.
836 (relocate_addresses): Fix format specification.
837 (load_image): Explicitly init symtab_section.
838
839 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
840
841 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
842 (grub_util_biosdisk_get_grub_dev): Fix format specification.
843
844 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
847 on powerpc.
848 Reported by: Lennart Sorensen
849
850 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
851
852 * gentpl.py: Add missing license header.
853 * docs/grub.texi: Update copyright year.
854
855 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
856
857 Source grub-mkconfig_lib from the build directory at build time.
858 Suggested by: Vladimir Serbinenko.
859
860 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
861 * util/grub-install.in: Define pkgdatadir if not already set, and source
862 grub-mkconfig_lib from there.
863 * util/grub-kbdcomp.in: Likewise.
864 * util/grub-mkconfig.in: Likewise.
865 * util/grub-mknetdir.in: Likewise.
866 * util/grub-mkrescue.in: Likewise.
867 * util/grub-mkstandalone.in: Likewise.
868 * util/grub-reboot.in: Likewise.
869 * util/grub-set-default.in: Likewise.
870 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
871
872 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
873
874 Increase warning level.
875
876 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
877 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
878 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
879 (TARGET_CFLAGS): Likewise.
880 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
881 * grub-core/Makefile.core.def (decompressor_xz): Add
882 -Wno-unreachable-code.
883 (normal): Add -Wno-redundant-decls.
884 (xzio): Add -Wno-unreachable-code.
885 (lzopio): Add -Wno-redundant-decls -Wno-error.
886 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
887 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
888 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
889 * grub-core/kern/dl.c: Add exception to -Wcast-align.
890 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
891 * grub-core/kern/i386/coreboot/init.c: Add exception to
892 -Wsuggest-attribute=noreturn.
893 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
894 * grub-core/kern/ia64/dl_helper.c: Likewise.
895 * grub-core/kern/mips/dl.c: Likewise.
896 * grub-core/kern/sparc64/dl.c: Likewise.
897 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
898 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
899 (memcmp): Likewise.
900 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
901 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
902 * grub-core/loader/mips/linux.c: Likewise.
903 * grub-core/loader/multiboot_elfxx.c: Likewise.
904 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
905 * grub-core/video/sm712.c: Add exception to -Wcast-align.
906 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
907 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
908 fixme.
909 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
910 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
911 Fix prototype.
912
913 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
916 address.
917
918 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
921 Avoid improper use of strings.
922 (grub_cmd_legacy_initrdnounzip): Likewise.
923
924 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * include/grub/emu/misc.h (grub_util_warn): Add missing format
927 attribute.
928 (grub_util_info): Likewise.
929 (grub_util_error): Likewise.
930
931 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
932
933 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
934 * util/grub-fstest.c (fstest): Likewise.
935
936 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
939 (grub_md_sha512_real): Likewise.
940 (grub_util_get_geli_uuid): Likewise.
941 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
942 (grub_util_biosdisk_open): Fix format specification.
943 Respect format security.
944 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
945 (xrealloc): Likewise.
946 (xasprintf): Likewise.
947
948 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * util/import_gcry.py: Include grub/crypto.h in init.c.
951
952 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
953
954 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
955 (generate_image): Make prefix a const char *.
956 Fix format specifications. Respect format security.
957 Avoid void * arithmetics.
958 Avoid shadowing.
959 (argp_parser): Remove unused variable. Respect format security.
960 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
961 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
962 (count_funcs): Remove unused variable.
963 (relocate_addresses): Fix format specification.
964 Disable x86-64 with elf32. Remove unused variables.
965 (add_fixup_entry): Avoid shadowing.
966 (make_reloc_section): Fix format specification.
967 Use assert.
968 (locate_sections): Fix format specifications.
969 (load_image): Avoid shadowing.
970
971 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
972
973 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
974 Fix format specifications. Respect format security.
975 Don't translate already translated grub_errmsg.
976 (argp_parser): Remove unused variable
977
978 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
979
980 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
981
982 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
983
984 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
985 (main): Likewise. Use xmalloc. Respect format security.
986
987 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
988
989 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
990 a const char *.
991 (argp_parser): Remove unused variable.
992
993 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
994
995 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
996 (add_pixel): Make static.
997 (add_font): Likewise.
998 (write_string_section): Make name and str a const char *.
999 (write_be16_section): Make name a const char *.
1000 (print_glyphs): Make static.
1001 (write_font_ascii_bitmap): Likewise.
1002 (write_font_width_spec): Likewise.
1003 (write_font_pf2): Likewise.
1004 (argp_parser): Remove unused variable.
1005 Respect format security.
1006 (main): Avoid shadowing. Respect format security.
1007
1008 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * util/grub-editenv.c (argp_parser): Make static.
1011 (create_envblk_file): Use xmalloc.
1012 (open_envblk_file): Likewise.
1013 Resepect format security.
1014 (set_variables): Respect format security.
1015
1016 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * util/getroot.c (grub_find_device): Respect format security.
1019 (get_mdadm_uuid): Remove unused variable.
1020 (grub_util_pull_device): Dont call gettext on already translated
1021 grub_errmsg.
1022 (find_system_device): Remove unused variable.
1023 (grub_util_get_grub_dev): Likewise.
1024 (grub_make_system_path_relative_to_its_root): Respect format security.
1025
1026 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * util/grub-fstest.c (execute_command): Make first argument
1029 a const char *.
1030 (read_file): Avoid shadowing.
1031 Reuse underlying error message if device open fails.
1032 (cmd_cmp): Respect format security.
1033 (root): Make const char *.
1034 (fstest): Remove args argument and use global copy.
1035 Respect format security.
1036 (argp_parser): Make static.
1037 (main): Make default_root const char *.
1038
1039 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 * util/grub-mount.c (root): Make const char *.
1042 (execute_command): Make first argument a const char *.
1043 (fuse_init): Respect format security.
1044 (argp_parser): Make static. Remove unused variable.
1045 (main): Make default_root a const char *.
1046 Respect format security.
1047
1048 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * util/grub-probe.c (probe): Don't call gettext on already translated
1051 grub_errmsg.
1052 Remove unused variables.
1053 (argp_parser): Remove unused variable.
1054
1055 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * util/grub-script-check.c (argp_parser): Remove unused variable.
1058 (main): Rename read to curread to avoid shadowing.
1059
1060 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1061
1062 * util/misc.c (grub_util_write_image_at): Fix format specification.
1063 (grub_util_write_image): Likewise.
1064 (grub_script_execute_argument_to_string): Removed (unused).
1065 (grub_script_execute_menuentry): Likewise.
1066 (grub_putchar): Likewise.
1067
1068 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1069
1070 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
1071 (FUNCTION) [GRUB_UTIL]: Likewise.
1072 (VARIABLE) [GRUB_UTIL]: Likewise.
1073
1074 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1075
1076 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
1077 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
1078
1079 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1080
1081 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
1082 buffer.
1083
1084 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
1087 (LzmaEnc_SaveState): Removed (unused).
1088 (LzmaEnc_RestoreState): Likewise.
1089 (LzmaEnc_InitPriceTables): Made static.
1090 (LzmaEnc_Construct): Likewise.
1091 (LzmaEnc_FreeLits): Likewise.
1092 (LzmaEnc_Destruct): Likewise.
1093 (LzmaEnc_Init): Likewise.
1094 (LzmaEnc_InitPrices): Likewise.
1095 (LzmaEnc_Finish): Likewise.
1096 (LzmaEnc_PrepareForLzma2): Removed (unused).
1097 (LzmaEnc_MemPrepare): Likewise.
1098 (LzmaEnc_GetNumAvailableBytes): Likewise.
1099 (LzmaEnc_GetCurBuf): Likewise.
1100 (LzmaEnc_CodeOneMemBlock): Likewise.
1101
1102 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
1105 (grub_util_ldm_embed): Likewise.
1106
1107 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * util/grub-editenv.c (print_var): Rename name to varname to
1110 avoid shadowing.
1111 (main): Rename index to curindex to avoid shadowing.
1112 Make filename a const char *.
1113
1114 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1117 to arg_getline to avoid shadowing.
1118
1119 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
1122 disk_ to avoid shadowing.
1123
1124 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
1127 curindex to avoid shadowing.
1128 Make static.
1129 (MatchFinder_GetNumAvailableBytes): Make static.
1130
1131 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
1134 avoid shadowing.
1135
1136 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
1139 argument from encrypt to do_encrypt to avoid shadowing.
1140
1141 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1142
1143 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
1144 incorrect nesting of #if's.
1145
1146 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
1149 checks which are always false on some platforms.
1150 (grub_cmd_lsacpi): Likewise.
1151 * grub-core/kern/misc.c (grub_strtoul): Likewise.
1152 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
1153 Likewise.
1154
1155 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
1158 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
1159
1160 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
1163 re_dfa_t to avoid breaking alignment invariants.
1164 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
1165 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
1166
1167 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
1170 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
1171
1172 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
1175 Fix declaration.
1176
1177 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
1180 conserve alignment invariants.
1181 (grub_ehci_ehcc_read16): Likewise.
1182 (grub_ehci_oper_read32): Likewise.
1183 (grub_ehci_oper_write32): Likewise.
1184 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1185 Conserve alignment invariants.
1186
1187 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
1190 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
1191 declarations.
1192
1193 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
1196 Remove unused variable.
1197
1198 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
1201 Remove set in if.
1202
1203 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 * include/grub/net.h: Remove double declarations.
1206
1207 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 Remove "payload" command in ia64 Linux loader since I couldn't
1210 find any evidence of it being used for anything.
1211 Replace "relocate" command with an environment variable
1212
1213 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
1214 fields.
1215 (ia64_boot_payload): Removed.
1216 (last_payload): Likewise.
1217 (RELOCATE_OFF): Likewise.
1218 (RELOCATE_ON): Likewise.
1219 (RELOCATE_FORCE): Likewise.
1220 (relocate): Likewise.
1221 (free_pages): Don't free payloads.
1222 (grub_load_elf64): Use common error messages.
1223 Use "linux_relocate" variable.
1224 Increase the space after boot_params.
1225 (grub_cmd_payload): Removed.
1226 (grub_cmd_relocate): Likewise.
1227 (grub_cmd_fpswa): Improve messages.
1228 (cmd_payload): Removed.
1229 (cmd_relocate): Likewise.
1230 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
1231 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
1232
1233 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1234
1235 Convert UHCI to DMA framework.
1236
1237 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
1238 (grub_uhci_pci_iter): Fill new members
1239 (grub_alloc_td): Use P2V and V2P functions.
1240 (grub_free_queue): Likewise.
1241 (grub_alloc_qh): Likewise.
1242 (grub_uhci_setup_transfer): Likewise.
1243 (grub_uhci_check_transfer): Likewise.
1244
1245 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1246
1247 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
1248 Remove assignment in if while on it.
1249
1250 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 * util/grub-mkstandalone.in: Fix modules directory.
1253
1254 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
1257 on i386-pc target.
1258 (argp_parser): Accept "auto" as compression specification.
1259
1260 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 Fix `help' with unloaded modules.
1263
1264 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
1265 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
1266 (grub_dyncmd_dispatcher): Small stylistic fix.
1267 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
1268 explicit help is requested.
1269
1270 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1271
1272 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
1273 Explicitly init restart while on it.
1274
1275 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
1278 uninited variable.
1279
1280 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 * util/grub-mknetdir.in: Use . rather than source for POSIX
1283 compatibility.
1284
1285 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1286
1287 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
1288
1289 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
1292 variable.
1293
1294 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
1297 without quotes.
1298
1299 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
1302
1303 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
1306 iteration of partitions.
1307
1308 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 Improve gettext support. Stylistic fixes and error handling fixes while
1311 on it.
1312
1313 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
1316 part. Instead setup the correct stack in RM.
1317 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
1318 for stack.
1319 * include/grub/i386/relocator_private.h: New file.
1320
1321 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
1324 argument.
1325 * util/grub-fstest.c (options): Add missing DEVICE part.
1326
1327 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 Clarify and unify messages.
1330
1331 * grub-core/commands/hashsum.c (options): Unify messages.
1332 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
1333 literal-only message as translatable.
1334 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
1335 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
1336 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
1337 commands.
1338 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
1339 key, not the key used to unlock. Clarify what it's used for.
1340 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
1341 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
1342 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
1343 * util/grub-editenv.c (options): Unify "verbose" message.
1344 * util/grub-fstest.c (read_file): Unify error message.
1345 (fstest): Add quotes around commands.
1346 (options): Unify "verbose" message.
1347 * util/grub-install.in: Add quotes around variable name.
1348 * util/grub-kbdcomp.in: Unify error message.
1349 * util/grub-mkfont.c (main): Likewise.
1350 * util/grub-mkrescue.in: Likewise.
1351 * util/grub-mklayout.c (options): Unify "verbose" message.
1352 * util/grub-mkstandalone.in: Unify help and verbose messages.
1353 * util/grub-mount.c (options): Unify "verbose" message.
1354 * util/grub-probe.c (options): Likewise.
1355 * util/grub-script-check.c (options): Likewise.
1356 * util/grub-setup.c (setup): Unify no-terminator message.
1357 (options): Use DEVICE and not DEV.
1358 Unify "verbose" message.
1359 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
1360
1361 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 Improve and unify messages.
1364
1365 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
1366 name. All users updated.
1367 Print filename in error.
1368 (read_device_map): Print filename in error.
1369 * util/getroot.c (grub_guess_root_devices): Print filename in error.
1370 (grub_util_get_os_disk): Likewise.
1371 (grub_util_biosdisk_get_grub_dev): Likewise.
1372 (grub_util_check_block_device): Likewise.
1373 (grub_util_check_char_device): Likewise.
1374 (grub_make_system_path_relative_to_its_root): Likewise.
1375 * util/grub-editenv.c (create_envblk_file): Likewise.
1376 (open_envblk_file): Likewise.
1377 (write_envblk): Likewise.
1378 * util/grub-fstest.c (cmd_cp): Likewise.
1379 (cmd_cat): Likewise.
1380 (cmd_cmp): Likewise.
1381 * util/grub-menulst2cfg.c (main): Likewise.
1382 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
1383 (write_font_width_spec): Likewise.
1384 (write_font_pf2): Likewise.
1385 * util/grub-mkimage.c (generate_image): New argument outname.
1386 All users updated.
1387 Remove unreacheable message.
1388 (options): Unify messages.
1389 (help_filter): Likewise.
1390 * util/grub-mklayout.c (usage): Removed (unused).
1391 (main): Print filename in error.
1392 * util/grub-mkrescue.in: Fix wrong quoting.
1393 * util/grub-setup.c (setup): Print filename in error.
1394 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
1395 (check_sas): Likewise.
1396 * util/misc.c (grub_util_get_fp_size): Removed.
1397 (grub_util_get_image_size): Print filename in error.
1398 (grub_util_read_at): Removed.
1399 (grub_util_read_image): Print filename in error.
1400 (grub_util_load_image): Likewise.
1401 (grub_util_write_image_at): New argument filename. All users updated.
1402 Print filename in error.
1403 (grub_util_write_image): New argument filename. All users updated.
1404 Print filename in error.
1405 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
1406 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
1407
1408 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1409
1410 * grub-core/Makefile.core.def (pxechain): New module.
1411 * grub-core/loader/i386/pc/pxechainloader.c: New file.
1412 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
1413 function.
1414 (grub_pc_net_config_real): Use grub_pxe_get_cached.
1415 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
1416
1417 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
1420 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
1421 * include/grub/err.h (grub_error_saved): New struct.
1422 (grub_errmsg): Make array size explicit.
1423 * include/grub/misc.h (grub_error_save): New function.
1424 (grub_error_load): Likewise.
1425 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
1426 (grub_error_push): Update `errno' member name.
1427 (grub_error_pop): Likewise
1428 * grub-core/net/tftp.c (tftp_data): New member save_err.
1429 (tftp_receive): Save error.
1430 (tftp_open): Restore error.
1431
1432 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
1435 to real mode down to execute A20-related code in protected mode as
1436 intended.
1437
1438 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1439
1440 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
1441 NULL when the argument `level' has an unexpected value.
1442
1443 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 Move platform-dependent files from $prefix to $prefix/$platform.
1446
1447 * config.h.in (GRUB_TARGET_CPU): New definition.
1448 (GRUB_PLATFORM): Likewise.
1449 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
1450 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
1451 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1452 * grub-core/kern/dl.c (grub_dl_load): Likewise.
1453 * grub-core/normal/autofs.c (read_fs_list): Likewise.
1454 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
1455 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
1456 * grub-core/normal/term.c (read_terminal_list): Likewise.
1457 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
1458 $prefix/locale.
1459 (grub_gettext_init_ext): Likewise.
1460 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
1461 grub_platform.
1462 * util/grub-install.in: Update directories.
1463 * util/grub-mknetdir.in: Likewise.
1464 * util/grub-mkrescue.in: Likewise.
1465
1466 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
1469 grub_error framework. All users updated.
1470
1471 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
1474 lists (by always binsearching), improve caching (cache strings
1475 used for binsearch, not only results), improve
1476 maintainability (by using more structured binary search) and correct
1477 error handling.
1478
1479 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1480
1481 * grub-core/script/execute.c (grub_script_return): Fix warning.
1482
1483 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/script/execute.c (grub_script_return): Fix potential
1486 NULL-dereference.
1487 Reported by: Jim Meyering.
1488
1489 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * po/POTFILES.in: Regenerate.
1492 * util/grub-install.in: Gettextize the strings missed in first pass.
1493
1494 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * Makefile.util.def (grub-mkdevicemap): Removed.
1497 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
1498 * include/grub/util/deviceiter.h: Removed.
1499 * util/deviceiter.c: Likewise.
1500 * util/getroot.c (grub_util_get_os_disk): New function.
1501 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
1502 replacement for EFI.
1503 * util/grub-mkdevicemap.c: Removed.
1504 * util/grub-probe.c (probe): Handle PRINT_DISK.
1505 (argp_parser): Handle -t disk.
1506
1507 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 * util/grub-mkfont.c: Migrate to argp.
1510 * util/grub-mklayout.c: Likewise.
1511 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1512 * util/grub-mkrelpath.c: Likewise.
1513 * util/grub-probe.c: Likewise.
1514 * util/grub-script-check.c: Likewise.
1515
1516 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * util/grub-reboot.in: Add missing datarootdir.
1519 Add missing newline.
1520 * util/grub-set-default.in: Add missing datarootdir.
1521 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
1522 * util/grub-mkrescue.in: Likewise.
1523
1524 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
1527
1528 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1529
1530 * util/grub-kbdcomp.in: Add decent help and gettextize.
1531 * docs/man/grub-kbdcomp.h2m: New file.
1532
1533 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 Migrate grub-mkimage.c to argp.
1536
1537 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
1538 (grub-setup): Likewise.
1539 * util/grub-setup.c (print_version): Move to ...
1540 * util/argp_common.c (print_version): ... here.
1541 * util/grub-setup.c (argp_program_version_hook): Move to ...
1542 * util/argp_common.c (argp_program_version_hook): ... here.
1543 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
1544 safety.
1545 * util/grub-mkimage.c (main): Migrate to argp.
1546
1547 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 * util/grub-mkrescue.in: Use same message as
1550 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
1551 for better translations.
1552
1553 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
1556 options with generic grub-mkrescue.in with the goal of future
1557 merge.
1558
1559 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 * grub-core/kern/mm.c: Add missing include of i18n.h
1562 * grub-core/lib/relocator.c: Likewise.
1563
1564 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
1567 error.
1568 (allocate_pages): Check return value.
1569 Replace fatal with error.
1570 (grub_linux_boot): Replace printf with dprintf.
1571 Check find_mmap_size return value.
1572 Replace fatal with error.
1573 Don't call grub_machine_fini.
1574 (grub_load_elf64): Replace printf with dprintf.
1575 (grub_cmd_linux): Likewise.
1576 (grub_cmd_initrd): Likewise.
1577 (grub_cmd_payload): Likewise.
1578
1579 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
1582 message.
1583 * grub-core/video/radeon_fuloong2e.c
1584 (grub_video_radeon_fuloong2e_setup): Likewise.
1585 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
1586 * grub-core/video/video.c (grub_video_set_mode): Don't override
1587 standard out of memory message.
1588
1589 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1590
1591 NetBSD disk wedge support.
1592
1593 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
1594 [__NetBSD__]: Handle NetBSD disk wedges.
1595 * util/getroot.c (convert_system_partition_to_system_disk)
1596 [__NetBSD__]: Likewise.
1597
1598 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
1599
1600 * util/grub-mkconfig.in: Use umask rather than chmod to create
1601 grub.cfg.new to avoid insecure grub.cfg.
1602
1603 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1604
1605 * grub-core/commands/ls.c: Gettextize.
1606 * grub-core/commands/setpci.c: Likewise.
1607 * grub-core/commands/videotest.c: Likewise.
1608 * grub-core/disk/geli.c: Likewise.
1609 * grub-core/kern/mm.c: Likewise.
1610 * grub-core/lib/relocator.c: Likewise.
1611 * grub-core/loader/efi/appleloader.c: Likewise.
1612 * grub-core/loader/i386/xnu.c: Likewise.
1613 * grub-core/loader/ia64/efi/linux.c: Likewise.
1614 * grub-core/loader/xnu.c: Likewise.
1615 * grub-core/net/dns.c: Likewise.
1616 * grub-core/net/net.c: Likewise.
1617 * grub-core/script/lexer.c: Likewise.
1618 * grub-core/script/parser.y: Likewise.
1619 * grub-core/script/yylex.l: Likewise.
1620 * util/getroot.c: Likewise.
1621 * util/grub-setup.c: Likewise.
1622
1623 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
1626 number.
1627
1628 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
1631
1632 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
1635 macro.
1636 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
1637 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
1638
1639 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
1642 * util/grub-install.in: Gettextize.
1643 * util/grub-mkconfig.in: Likewise.
1644 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
1645 if not available.
1646 (grub_warn): Gettextize.
1647 * util/grub-mknetdir.in: Gettextize.
1648 * util/grub-mkrescue.in: Likewise.
1649 * util/grub-mkstandalone.in: Likewise.
1650 * util/grub-reboot.in: Likewise.
1651 * util/grub-set-default.in: Likewise.
1652 * util/grub.d/00_header.in: Likewise.
1653 * util/grub.d/10_hurd.in: Likewise.
1654 * util/grub.d/10_kfreebsd.in: Likewise.
1655 * util/grub.d/10_linux.in: Likewise.
1656 * util/grub.d/10_netbsd.in: Likewise.
1657 * util/grub.d/10_windows.in: Likewise.
1658 * util/grub.d/20_linux_xen.in: Likewise.
1659 * util/grub.d/30_os-prober.in: Likewise.
1660 * po/POTFILES-shell.in: Regenerate.
1661
1662 2012-02-03 Richard Laager <rlaager@wiktel.com>
1663
1664 * util/grub-mkimage.c (main): Fix format-security warning.
1665 * util/grub-mkrelpath.c (main): Likewise.
1666 * util/grub-probe.c (main): Likewise.
1667
1668 2012-02-03 Richard Laager <rlaager@wiktel.com>
1669
1670 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
1671 failure.
1672 Put back lost PRINT_DRIVE.
1673
1674 2012-02-03 Richard Laager <rlaager@wiktel.com>
1675
1676 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
1677 (grub_guess_root_devices): Replace strlen with sizeof.
1678 Avoid crash.
1679 (find_root_devices_from_poolname): Remove unused variable.
1680 Handle raidzN.
1681
1682 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 Support install on multi-device filesystems.
1685
1686 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
1687 (grub_guess_root_devices): ...this. Return char **. All users updated.
1688 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
1689 Removed.
1690 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
1691 (find_root_devices_from_poolname): ... here.
1692 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
1693 Support zfs-fuse.
1694 (grub_guess_root_device): Rename to ...
1695 (grub_guess_root_devices): ... this. Return char **. All users updated.
1696 * util/grub-install.in: Handle multi-device filesystems.
1697 * util/grub-probe.c (probe). Make device_names a char **. Add delim
1698 argument. All users updated.
1699 Handle multi-device filesystems.
1700 Use 'delim' as separator.
1701 Remove device check to allow filesystems on file.
1702 (main): Support -0 argument. Handle multi-device.
1703 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
1704 Fix a cross-device check while on it.
1705 (arguments): Remove root_dev.
1706 (argp_parser): Remove -r.
1707 (main): Remove root_dev.
1708
1709 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
1712
1713 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
1716 symbol.
1717 Reported by: NODA, Kai <nodakai>.
1718
1719 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 Fix ehci on amd64.
1722
1723 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
1724 pointers.
1725 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
1726 (grub_ehci_setup_qh): Likewise.
1727 (grub_ehci_find_qh): Likewise.
1728 (grub_ehci_transaction): Likewise.
1729 (grub_ehci_setup_transfer): Likewise.
1730 (grub_ehci_check_transfer): Likewise.
1731 (grub_ehci_portstatus): Likewise.
1732 (grub_ehci_detect_dev): Likewise.
1733 (grub_ehci_transfer_controller_data): New field td_last_phys.
1734 (grub_ehci_setup_transfer): Fill td_last_phys.
1735 (grub_ehci_check_transfer): Use td_last_phys.
1736
1737 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
1738
1739 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
1740 if no submenu is present.
1741
1742 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1743
1744 CBI support.
1745
1746 * include/grub/usb.h (grub_usbms_protocol_t): New values
1747 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
1748 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
1749 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
1750 (grub_usbms_dev): Add subclass, protocol and intrpt.
1751 Remove in_maxsz and out_maxsz.
1752 (grub_usbms_reset): Rename to ...
1753 (grub_usbms_bo_reset): .. this.
1754 (grub_usbms_cbi_cmd): New function.
1755 (grub_usbms_cbi_reset): Likewise.
1756 (grub_usbms_reset): Likewise.
1757 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
1758 (grub_usbms_transfer): Rename to ...
1759 (grub_usbms_transfer_bo): ... this.
1760 (grub_usbms_transfer_cbi): Likewise.
1761 (grub_usbms_transfer): Likewise.
1762
1763 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1764 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
1767 the support for the CS5536 modification thereos and few bugfixes.
1768
1769 * grub-core/Makefile.core.def (ehci): New module.
1770 * grub-core/bus/usb/ehci.c: New file.
1771 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
1772 port and hubaddr. All users updated.
1773 Save port and hubaddr into dev structure.
1774 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
1775 define.
1776 * include/grub/pci.h (grub_dma_phys2virt): New function.
1777 (grub_dma_virt2phys): Likewise.
1778 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
1779
1780 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
1783 check as some mkfs implementations omit it.
1784
1785 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * docs/grub.texi (Unicode): Mention identifier and space limitations.
1788
1789 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
1792 Add new member volname2.
1793 (grub_jfs_label): Use volname2 if available.
1794
1795 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
1798 over last_mounted as seen in image generated by mkfs.nilfs2.
1799 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
1800
1801 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
1804 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
1805 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
1806
1807 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
1810 over the sector.
1811
1812 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
1815 subvolume name (by removing a bogus and useless check).
1816
1817 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
1820 sizeof while on it.
1821
1822 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
1825 (grub_scsi_read_capacity10): ... this.
1826 (grub_scsi_read_capacity16): New function.
1827 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
1828 0xffffffff.
1829 Fix off-by-one error.
1830 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
1831 64-bit unsigned.
1832 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
1833 (grub_scsi_read_capacity10): ... this.
1834 (grub_scsi_read_capacity_data): Rename to ...
1835 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
1836 (grub_scsi_read_capacity16): New struct.
1837 (grub_scsi_read_capacity16_data): Likewise.
1838 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
1839 grub_scsi_cmd_read_capacity10.
1840 New command grub_scsi_cmd_read_capacity16.
1841
1842 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 SCSI >2TiB support.
1845
1846 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
1847 (grub_scsi_write16): Likewise.
1848 (grub_scsi_read): Use read16 when necessary.
1849 (grub_scsi_write): Likewise.
1850 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
1851 (grub_scsi_write16): Likewise.
1852 (grub_scsi_cmd_t): Add READ16 and WRITE16.
1853
1854 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 SCSI write support (for usbms mainly).
1857
1858 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
1859 a const pointer.
1860 (grub_scsi_write): Implement.
1861 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
1862
1863 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1864
1865 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
1866 variable.
1867
1868 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1869
1870 * grub-core/lib/posix_wrap/string.h (memchr): New function.
1871
1872 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1873
1874 * po/POTFILES.in: Regenerate.
1875
1876 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1877
1878 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
1879 with grub_printf to avoid unnecessary fatal failure.
1880
1881 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
1884 (INT_MAX): Likewise.
1885 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
1886 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
1887 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
1888 (strcpy): Likewise.
1889 (strstr): Likewise.
1890 (strchr): Likewise.
1891 (strncpy): Likewise.
1892 (strcat): Likewise.
1893 (strncat): Likewise.
1894 (strcoll): Likewise.
1895 * include/grub/types.h (GRUB_SHRT_MAX): New define.
1896 (GRUB_INT_MAX): Likewise.
1897
1898 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
1901 unexpected error.
1902 (optimize_utf8): Likewise.
1903 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
1904
1905 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1906
1907 * grub-core/boot/i386/pc/lnxboot.S: Use
1908 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
1909 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
1910 location.
1911 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
1912 definition.
1913 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
1914
1915 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
1918 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
1919 now to avoid double free.
1920 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
1921 hostdisk.
1922 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
1923 * util/grub-probe.c (escape_of_path): Always return a new copy.
1924 (print_full_name): Escape path.
1925 (probe): Don't call grub_util_devname_to_ofpath on NULL.
1926 Fix hints on abstractions.
1927
1928 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1929
1930 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
1931 Don't add "root" line if no compatibility hont is available.
1932 Suggested by: Seth Goldberg.
1933
1934 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
1937 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
1938 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
1939 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
1940
1941 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1942
1943 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
1944
1945 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * util/grub-pe2elf.c (ehdr): Make static.
1948 (shdr): Likewise.
1949 (num_sections): Likewise.
1950 (offset): Likewise.
1951
1952 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 Eliminate ofpath limits and possible overflows.
1955
1956 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
1957 (OF_PATH_MAX): Removed.
1958 (MAX_DISK_CAT): New const.
1959 (find_obppath): Use allocated rather than preallocated buffer.
1960 Return result. Argument of_path removed. All users updated.
1961 Add missing fdstat.
1962 (xrealpath): New function.
1963 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
1964 Allocate rather than use preallocated buffer. All users updated.
1965 (__of_path_common): Use allocated rather than preallocatecd buffer.
1966 Return result. Argument of_path removed. All users updated.
1967 (vendor_is_ATA): Read only needed part form the file.
1968 (check_sas): Allocate depending on contents rather than fixed.
1969 (main) [STANDALONE]: Handle NULL result.
1970
1971 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * grub-core/normal/completion.c (iterate_dev): Close the disk.
1974
1975 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 Cryptodisk write support.
1978
1979 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
1980 (grub_cryptodisk_decrypt): Moved logic to ...
1981 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
1982 (grub_cryptodisk_write): Implement.
1983 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
1984 (grub_util_fd_write): ... this. Make global.
1985 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
1986
1987 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1988
1989 * include/grub/list.h (grub_list_remove): Don't crash if element is
1990 removed twice.
1991
1992 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1993
1994 Rename ofconsole to console.
1995
1996 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
1997 as sysnonym to console.
1998 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
1999 * grub-core/term/ieee1275/console.c: ... this. All users updated.
2000 Rename grub_ofconsole_ to grub_console_. All users updated
2001 (grub_console_term_output): Rename "ofconsole" to "console".
2002 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
2003 as "console".
2004
2005 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
2008 handling.
2009 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
2010 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
2011 GRUB_DISK_DEVICE_FILE_ID.
2012
2013 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
2016 and improve performance.
2017
2018 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
2021 missing ieee1275/ prefix on whole disk.
2022
2023 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
2026 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
2027
2028 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
2031
2032 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 Merge common RAID and LVM logic to an abstract diskfilter.
2035 Add LDM support using the same framework.
2036
2037 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
2038 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
2039 (libgrubmods): Remove grub-core/disk/raid.c and
2040 grub-core/partmap/gpt.c.
2041 * grub-core/Makefile.core.def (ldm): New module.
2042 (raid): Renamed to diskfilter. All users updated.
2043 * grub-core/disk/raid.c: Moved to ...
2044 * grub-core/disk/diskfilter.c: ... here.
2045 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
2046 (lv_num): New var.
2047 (find_array): Renamed to ...
2048 (find_lv): ... this. Support multi-LV. Skip nameless LVs
2049 (grub_is_array_readable): Renamed to ...
2050 (grub_is_lv_readable): ... this. Support multinode hierarchy.
2051 (insert_array): New argument id.
2052 (is_node_readable): New function.
2053 (scan_device): Rename to ...
2054 (scan_disk): .. this. Restrict to one disk.
2055 (scan_devices): New function.
2056 (grub_diskfilter_iterate): Support multi-LV.
2057 Skip invisible and nameless LVs.
2058 (grub_diskfilter_memberlist): Support multi-LV.
2059 (grub_diskfilter_read_node): New function.
2060 (grub_raid_read): Most of logic moved to ...
2061 (read_segment): ... here
2062 (read_lv): New function.
2063 (grub_diskfilter_get_vg_by_uuid): New function.
2064 (grub_diskfilter_make_raid): Likewise.
2065 * grub-core/disk/ldm.c: New file.
2066 * grub-core/disk/lvm.c (vg_list): Removed.
2067 (lv_count): Likewise.
2068 (scan_depth): Likewise.
2069 (is_lv_readable): Likewise.
2070 (grub_lvm_getvalue): Advance pointer past the number.
2071 (find_lv): Removed.
2072 (do_lvm_scan): Refactored into ...
2073 (grub_lvm_detect): ... this. Support raid.
2074 (grub_lvm_iterate): Removed.
2075 (grub_lvm_memberlist): Likewise.
2076 (grub_lvm_open): Likewise.
2077 (grub_lvm_close): Likewise.
2078 (read_lv): Likewise.
2079 (read_node): Likewise.
2080 (is_node_readable): Likewise.
2081 (is_lv_readable): Likewise.
2082 (grub_lvm_read): Likewise.
2083 (grub_lvm_write): Likewise.
2084 (grub_lvm_dev): Use diskfilter
2085 (GRUB_MOD_INIT): Likewise.
2086 (GRUB_MOD_FINI): Likewise.
2087 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
2088 new interface.
2089 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
2090 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2091 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
2092 grub_diskfilter_read_node.
2093 Fix a bug with xor.
2094 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
2095 grub_diskfilter_read_node.
2096 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
2097 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
2098 (grub_disk_dev_iterate): Move from here...
2099 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
2100 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2101 Make global.
2102 (grub_hostdisk_find_partition_start): Likewise.
2103 (grub_hostdisk_os_dev_to_grub_drive): New function.
2104 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
2105 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
2106 * util/getroot.c (make_device_name): ... here.
2107 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2108 Move to ...
2109 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
2110 * grub-core/kern/emu/hostdisk.c
2111 (convert_system_partition_to_system_disk): Move to ...
2112 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
2113 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
2114 * util/getroot.c (device_is_wholedisk): ... here.
2115 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
2116 * util/getroot.c (find_system_device): ... here.
2117 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
2118 Move to ...
2119 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
2120 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
2121 Move to ...
2122 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
2123 Handle LDM.
2124 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
2125 Move to ...
2126 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
2127 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
2128 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
2129 DISKFILTER.
2130 * include/grub/raid.h: Renamed to ...
2131 * include/grub/diskfilter.h: ... this.
2132 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
2133 (GRUB_RAID_LAYOUT_*): Make into array.
2134 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
2135 (grub_diskfilter_vg): New struct.
2136 (grub_diskfilter_pv_id): Likewise.
2137 (grub_raid_member): Removed.
2138 (grub_raid_array): Likewise.
2139 (grub_diskfilter_pv): New struct.
2140 (grub_diskfilter_lv): Likewise.
2141 (grub_diskfilter_segment): Likewise.
2142 (grub_diskfilter_node): Likewise.
2143 (grub_diskfilter_get_vg_by_uuid): New proto.
2144 (grub_raid_register): Inline.
2145 (grub_diskfilter_unregister): Likewise.
2146 (grub_diskfilter_make_raid): New proto.
2147 (grub_diskfilter_vg_register): Likewise.
2148 (grub_diskfilter_read_node): Likewise.
2149 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
2150 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
2151 (grub_util_is_ldm): Likewise.
2152 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
2153 (grub_hostdisk_find_partition_start): Likewise.
2154 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
2155 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
2156 New definition.
2157 (grub_gpt_partition_map_iterate): New proto.
2158 * include/grub/lvm.h (grub_lvm_vg): Removed.
2159 (grub_lvm_pv): Likewise.
2160 (grub_lvm_lv): Likewise.
2161 (grub_lvm_segment): Likewise.
2162 (grub_lvm_node): Likewise.
2163 * util/getroot.c [...]
2164 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
2165 (probe_abstraction): Likewise.
2166 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
2167 (main): Remove dead logic.
2168
2169 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 Simplify root device discover and don't fail when trying to open
2172 incorrect devices.
2173
2174 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
2175 function.
2176 (get_diskname_from_path): Likewise.
2177 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
2178 of iterating.
2179
2180 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
2183
2184 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2185
2186 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
2187 pastthe end.
2188
2189 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * util/grub-install.in: Add missing \.
2192 Reported by: gentoofan
2193
2194 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
2197 (direct_read): Use correct compressed size.
2198 (grub_squash_read_data): Likewise.
2199
2200 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * docs/grub.texi (Platform limitations): New section.
2203 (Platform-specific operations): Likewise.
2204 * docs/grub-dev.texi (Porting): Likewise.
2205
2206 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 IEEE1275 disk write support.
2209
2210 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
2211 const void *.
2212 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
2213 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
2214 and seek loginc to ...
2215 (grub_ofdisk_prepare): ... here.
2216 (grub_ofdisk_write): Implement.
2217
2218 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 ARC disk write support.
2221
2222 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
2223 (reopen): New argument writable. All users updated.
2224 Handle required access mode.
2225 (grub_arcdisk_write): Implement.
2226 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
2227 (grub_arc_firmware_vector): Make buffer to write a const buffer.
2228
2229 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
2232 (read_sblock): Don't attempt to read superblocks outside the disk size.
2233
2234 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
2237 first superblock to find the second one when possible.
2238
2239 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 * util/grub-install.in: Fix an ARC bug.
2242 Print a warning if no platform-specific setup is available.
2243
2244 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2245
2246 Use static allocation rather than scratch pointer in reed_solomon.
2247 It decreases its size significantly and avoids a variable in .text.
2248
2249 * grub-core/lib/reed_solomon.c (scratch): Removed.
2250 (chosenstat): New const or static array.
2251 (sigma): Likewise.
2252 (errpot): Likewise.
2253 (errpos): Likewise.
2254 (sy): Likewise.
2255 (mstat): Likewise.
2256 (errvals): Likewise.
2257 (eqstat): Likewise.
2258 (pol_evaluate): Replace x with log_x argument. All users updated.
2259 (syndroms): Removed.
2260 (gauss_solve): Use statically allocated arrays.
2261 (rs_recover): Likewise.
2262 Calculate syndroms directly.
2263 (decode_block): Use statically allocated arrays.
2264 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
2265 (main) [TEST]: Allow -DTEST -DSTANDALONE.
2266
2267 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 Eliminate fixed limit on reed solomon decoder length.
2270
2271 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
2272 rather than hardcoding the address.
2273 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
2274 no_reed_solomon_length.
2275 Move gate_a20 to no-reed-solomon part.
2276 Don't force a particular size of no reed-solomon part.
2277 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
2278 Removed.
2279 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
2280 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
2281
2282 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/commands/wildcard.c (match_files): Handle filenames
2285 without explicit device.
2286 (wildcard_expand): Don't add explicit device if not already present.
2287 * tests/grub_script_echo1.in: Add a new expansion test.
2288
2289 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2290
2291 Replace single-linked with double-linked lists. It results in more
2292 compact and more efficient code.
2293
2294 * grub-core/kern/list.c (grub_list_push): Moved from here ...
2295 * include/grub/list.h (grub_list_push): ... to here. Set prev.
2296 (grub_list_remove): Moved from here ...
2297 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
2298 (grub_prio_list_insert): Set prev.
2299 * include/grub/list.h (grub_list): Add prev. All users updated.
2300
2301 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 Handle newer autotools. Add some missing quotes while on it.
2304
2305 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
2306 (pkglib_DATA): Move grub-mkconfig_lib from here ...
2307 (pkgdata_DATA): ... here.
2308 * Makefile.util.def (update-grub_lib): Removed.
2309 * conf/Makefile.common (pkglib_DATA): Removed.
2310 (pkglib_SCRIPTS): Likewise.
2311 (pkgdata_DATA): New variable.
2312 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
2313 needed.
2314 Add missing quotes.
2315 Remove unused variable while on it.
2316 * tests/util/grub-shell.in: Likewise.
2317 * util/grub-install.in: Likewise.
2318 * util/grub-mkconfig.in: Likewise.
2319 * util/grub-mknetdir.in: Likewise.
2320 * util/grub-mkrescue.in: Likewise.
2321 * util/grub-mkstandalone.in: Likewise.
2322 * util/grub.d/00_header.in: Likewise.
2323 * util/grub.d/10_hurd.in: Likewise.
2324 * util/grub.d/10_illumos.in: Likewise.
2325 * util/grub.d/10_kfreebsd.in: Likewise.
2326 * util/grub.d/10_linux.in: Likewise.
2327 * util/grub.d/10_netbsd.in: Likewise.
2328 * util/grub.d/10_windows.in: Likewise.
2329 * util/grub.d/20_linux_xen.in: Likewise.
2330 * util/grub.d/30_os-prober.in: Likewise.
2331 * util/update-grub_lib.in: Removed.
2332
2333 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
2334
2335 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
2336 a workaround for intel problem.
2337
2338 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
2339 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2340 2012-01-23 pfsmorigo
2341
2342 * util/grub-install.in: Support dd'in into PreP partition.
2343 * util/grub-probe.c (probe): Support discovering partition type.
2344 (main): Support -t msdos_parttype.
2345
2346 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
2349 infinite recursion using counter.
2350 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
2351 init to skip it if the magic check fails.
2352 (dec_stream_header): Init s->crc32.
2353
2354 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2355 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
2356 2012-01-22 Richard Laager <rlaager@wiktel.com>
2357
2358 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
2359 All users updated.
2360 (find_bestub): Determine correct size.
2361 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
2362 (scan_disk): Align the size down.
2363 Call check pool before find_bestub to have ashift.
2364
2365 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
2368 dprintf in no-malloc zone.
2369
2370 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
2371
2372 * configure.ac: Add back in test for limits.h.
2373
2374 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 Support 4K-sector NTFS.
2377
2378 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
2379 (grub_ntfs_data): Remove blocksize.
2380 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
2381 Remove data argument. All users updated.
2382
2383 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
2386 being in .text to avoid dprel references.
2387 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
2388 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
2389 (grub_arch_highmemsize): Likewise.
2390 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
2391 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
2392 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
2393
2394 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2395
2396 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
2397
2398 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
2399 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
2400
2401 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
2404 GRUB_UTIL.
2405 (grub_set_datetime_cmos): Likewise.
2406
2407 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 Make XZ compression parameters dependent on target and not host CPU.
2410
2411 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
2412 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
2413
2414 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
2417 set but not used variable.
2418
2419 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
2422 created when no uuid support is compiled into mkfs.reiser.
2423
2424 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
2427 (utf8_to_macroman): Do the opposite.
2428 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
2429
2430 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2431
2432 * configure.ac: Refise build qemu_mips w/o unifont.
2433
2434 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 Eliminate grub_min/grub_max prone to overflow usage.
2437
2438 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
2439 (poll_nonroot_hub): Likewise.
2440 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
2441 (grub_affs_label): Likewise.
2442 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
2443 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
2444 (grub_hfs_label): Likewise.
2445 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
2446 * grub-core/fs/zfs/zfs.c (MIN): Remove.
2447 (zap_leaf_array_equal): Use grub_size. Remove MIN.
2448 (zap_leaf_array_get): Likewise.
2449 (dnode_get_path): Likewise.
2450 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
2451 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
2452 * grub-core/script/execute.c (grub_script_break): Likewise.
2453 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
2454 grub_max.
2455 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
2456 * include/grub/misc.h (grub_min): Removed.
2457 (grub_max): Likewise.
2458
2459 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2460
2461 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
2462 direct.inode = 0.
2463
2464 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
2467
2468 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
2471
2472 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
2475 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
2476
2477 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
2480 rather than a hack for grub_strncasemap.
2481
2482 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 Support multiple initrds
2485 Note: part of this was accidently committed in r3739.
2486
2487 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
2488 initrd.
2489 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
2490 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
2491 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2492 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2493 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2494
2495 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
2498 disks with unknown size.
2499 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
2500
2501 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 Remove defines pertaining to arbitrary limits not affecting GRUB
2504 anymore.
2505
2506 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
2507 (EXT2_MAX_SYMLINKCNT): Likewise.
2508 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
2509 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
2510 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
2511 (GRUB_PXE_MAX_BLKSIZE): Likewise.
2512 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
2513 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
2514 (DN_MAX_OBJECT_SHIFT): Likewise.
2515 (DN_MAX_OFFSET_SHIFT): Likewise.
2516 (DN_MAX_OBJECT): Likewise.
2517 (DNODES_PER_LEVEL_SHIFT): Likewise.
2518 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
2519 (SPA_MAXBLOCKSIZE): Likewise.
2520 (SPA_BLOCKSIZES): Likewise.
2521 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
2522 (MZAP_MAX_BLKSZ): Likewise.
2523
2524 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
2527 handle NULL appropriately.
2528 Remove MIN.
2529
2530 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 Fix efiemu.
2533
2534 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
2535 cpu/types.h.
2536 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
2537 * configure.ac: Fix efiemu check.
2538
2539 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
2542 grub_probe.
2543 Reported by: adamwill
2544
2545 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
2546
2547 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
2548
2549 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 Fix handling of wide characters in gfxterm.
2552
2553 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
2554 (clear_char): Likewise.
2555 (paint_char): Skip code == NULL chars.
2556 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
2557
2558 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 * grub-core/normal/charset.c: Move comment to right place.
2561
2562 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
2565 (GRUB_AFFS_FLAG_FFS): Put back where it was.
2566 (grub_affs_mount): Revert the correct version checking.
2567
2568 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 * docs/grub.texi (Unicode): Mention several other unsupported features.
2571
2572 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
2575 case statements as compile-time one.
2576 (direct_read): Prevent spurious warnings.
2577 (grub_squash_read_data): Likewise.
2578
2579 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 Various squash4 fixes and LZO and XZ support.
2582
2583 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
2584 Add xzembed source files.
2585 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
2586 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
2587 (grub_squash_inode): New subtype long_dir.
2588 (SQUASH_TYPE_LONG_DIR): New inode type.
2589 (COMPRESSION): New enum.
2590 (XZBUFSIZ): New const.
2591 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
2592 (read_chunk): Use data->decompress.
2593 (zlib_decompress): New function.
2594 (lzo_decompress): Likewise.
2595 (xz_decompress): Likewise.
2596 (squash_mount): Set new data fields.
2597 (grub_squash_iterate_dir): Handle long dir.
2598 (squash_unmount): Free xzdec and xzbuf.
2599 (grub_squash_open): Check ino type.
2600 (direct_read): Stylistic fixes. Use data->decompress.
2601 (grub_squash_read_data): Likewise.
2602 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
2603 (get_byte): Likewise.
2604 (grub_zlib_disk_read): Removed.
2605 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
2606 (GRUB_POSIX_BOOL_DEFINED): New define.
2607 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
2608 * grub-core/lib/xzembed/xz.h: Addmissing includes.
2609 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
2610 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
2611
2612 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 Don't override more informative errors.
2615
2616 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
2617 * grub-core/font/font.c (open_section): Likewise.
2618 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
2619 filename. Don't override errors.
2620 (grub_cmd_openbsd_ramdisk): Don't override errors.
2621 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
2622 (grub_cmd_initrd): Likewise.
2623 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2624 (grub_cmd_initrd): Likewise.
2625 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
2626 (grub_cmd_linux): Likewise.
2627 (grub_cmd_initrd): Likewise.
2628 (grub_cmd_payload): Likewise.
2629 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2630 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
2631 (grub_cmd_module): Likewise.
2632 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2633 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2634 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
2635 (grub_cmd_xnu_mkext): Likewise.
2636 (grub_cmd_xnu_ramdisk): Likewise.
2637 (grub_xnu_check_os_bundle_required): Likewise.
2638 (grub_xnu_load_kext_from_dir): Likewise.
2639 (grub_cmd_xnu_kextdir): Likewise.
2640 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
2641
2642 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2643
2644 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
2645 as 1024 in block size field. Found on one of my test images.
2646 Small optimisation while on it.
2647
2648 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
2651 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
2652 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
2653 performance fixes while on it.
2654 (grub_sfs_close): Fix memory leak while on it.
2655 (grub_sfs_label): Convert Latin1 to UTF-8.
2656
2657 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
2660 space to avoid overflows.
2661 (grub_hfs_label): Convert from macroman to UTF-8.
2662
2663 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
2666
2667 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
2670
2671 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 * unicode: Import Unicode 6.0 data.
2674
2675 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
2678 outside of range.
2679
2680 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 Avoid cutting in the middle of UTF-8 character.
2683
2684 * include/grub/charset.h (grub_getend): New function.
2685 * grub-core/script/function.c (grub_script_function_find): Use
2686 grub_getend.
2687 * grub-core/normal/completion.c (add_completion): Likewise.
2688
2689 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
2692 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
2693 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
2694 (GRUB_UNICODE_TAG_END): Likewise.
2695 (GRUB_UNICODE_LAST_VALID): Likewise.
2696
2697 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
2700 len and make it smaller. All users updated.
2701 * util/import_unicode.py: Put length and not end character.
2702 Check length.
2703
2704 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 Make better Unicode-compliant and unify some UTF-8 code pathes.
2707
2708 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
2709 valid character.
2710 (grub_is_valid_utf8): Use grub_utf8_process.
2711 Check resulting code range.
2712 (grub_utf8_to_ucs4): Use grub_utf8_process.
2713 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
2714 valid character.
2715
2716 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
2719
2720 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * docs/grub.texi (Filesystems): Mention AFS.
2723
2724 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2725
2726 * docs/grub.texi (Filesystems): Clarify restrictions.
2727 (Regexp): Mention non-Unicode regexp behaviour.
2728 (Other): Mention non-Unicode matching behaviour.
2729
2730 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 Make HFS implementation use MacRoman.
2733
2734 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
2735 (macroman): New const array.
2736 (macroman_to_utf8): New function.
2737 (utf8_to_macroman): Likewise.
2738 (grub_hfs_find_dir): Use utf8_to_macroman.
2739 (grub_hfs_dir): Use macroman_to_utf8.
2740 Set case_insensitive.
2741
2742 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
2745
2746 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 Integrate hints into autogeneration scripts.
2749
2750 * docs/grub.texi (Filesystems): Add a hostdisk example.
2751 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
2752 (grub-probe): Add ofpath.
2753 * gentpl.py: Remove group nosparc64.
2754 * grub-core/commands/search.c (cache_entry): New struct.
2755 (cache): New var.
2756 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
2757 * grub-core/commands/search_wrap.c (options): Add platform-specific
2758 hint options.
2759 (grub_cmd_search): Handle platform-specific hints.
2760 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
2761 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
2762 (grub_util_biosdisk_data): Likewise.
2763 (grub_util_biosdisk_open): Set device_map.
2764 (read_device_map): Handle "" as indication of no map.
2765 Set device_map.
2766 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
2767 (grub_util_biosdisk_get_compatibility_hint): New function.
2768 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
2769 * include/grub/emu/hostdisk.h
2770 (grub_util_biosdisk_get_compatibility_hint): New proto.
2771 * util/grub-install.in: Don't call grub-mkdevicemap.
2772 Add platform-specific hint to load.cfg.
2773 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
2774 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2775 hints. Set root preliminary to compatibility hint, not to OS name.
2776 * util/grub-probe.c (PRINT_*): Add hints.
2777 (print): Make static.
2778 (escape_of_path): New function.
2779 (guess_bios_drive): Likewise.
2780 (guess_efi_drive): Likewise.
2781 (guess_baremetal_drive): Likewise.
2782 (print_full_name): Likewise.
2783 (probe): Handle hints.
2784 (main): Likewise.
2785 * util/ieee1275/devicemap.c: Removed.
2786 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
2787 updated.
2788 (grub_util_devname_to_ofpath): Return NULL on failure.
2789
2790 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
2791 resource leak.
2792 * util/getroot.c (grub_util_pull_device): Fix memory leak.
2793
2794 * po/POTFILES.in: Regenerated.
2795
2796 Allow purely long options
2797
2798 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
2799 (SHORT_ARG_USAGE): Likewise.
2800 (grub_arg_show_help): Compare opt with help_options.
2801 (parse_option): Receive opt as argument. If makes big simplificatons.
2802 All users updated
2803
2804 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
2807 Restructure to avoid warning.
2808
2809 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * util/grub-install.in: Account for possible escaped comma in device
2812 name.
2813
2814 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
2817 channel.
2818
2819 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
2822 allocation and zero-setting.
2823 (grub_ieee1275_get_devname): Check that alias is complete.
2824
2825 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2826
2827 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
2828 unaligned segments.
2829
2830 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
2833 prefix.
2834 (grub_ofdisk_open): Check and discard ieee1275 prefix.
2835 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2836 Add ieee1275 prefix.
2837
2838 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * docs/grub.texi (Filesystems): Update.
2841
2842 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 Support odc, newc and bigendian cpio formats.
2845
2846 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
2847 * grub-core/Makefile.core.def (newc): New module.
2848 (odc): Likewise.
2849 (cpio_be): Likewise.
2850 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
2851 (MAGIC): Likewise.
2852 (MAGIC2): Likewise.
2853 (head) [MODE_ODC]: Adapt for the format.
2854 (head) [MODE_NEWC]: Likewise.
2855 (head) [!MODE_*]: Write fields of interest as arrays.
2856 (MAGIC_USTAR): Removed.
2857 (read_number) [MODE_NEWC]: Change to hex.
2858 (read_number) [!MODE_*]: Parse binary arrays.
2859 (grub_cpio_find_file): Factor out the code for better structure and
2860 always use read_number.
2861 (grub_cpio_mount): Use MAGIC and MAGIC2.
2862 (grub_cpio_dir): Exit on first hook non-0 return.
2863 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
2864 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
2865 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
2866 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
2867 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
2868 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
2869 * grub-core/fs/newc.c: New file.
2870 * grub-core/fs/odc.c: Likewise.
2871 * grub-core/fs/cpio_be.c: Likewise.
2872
2873 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 Fix handling of tar numbers occupying the whole field.
2876
2877 * grub-core/fs/cpio.c (read_number): New function.
2878 (grub_cpio_find_file): Use read_number instead of strtoull.
2879
2880 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
2883 occupying the whole field size.
2884
2885 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
2886
2887 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
2888
2889 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
2892
2893 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
2894
2895 * grub-core/Makefile.core.def (lzma_decompress): Add missing
2896 TARGET_IMG_LDFLAGS.
2897
2898 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * util/getroot.c (ESCAPED_PATH_MAX): New define.
2901 (mountinfo_entry): Increase the field size to take escaping into
2902 account.
2903 (find_root_device_from_libzfs): Add one byte to size of strings for
2904 security.
2905
2906 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
2909 an assert.
2910 * util/grub-setup.c (setup): Likewise.
2911
2912 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
2915 _LzmaDecodeA.
2916
2917 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * docs/grub.texi (Internationalisation): New section.
2920
2921 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * docs/grub.texi (Loopback booting): New section.
2924
2925 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
2926
2927 * util/grub-mkstandalone.in: Fix minor typo errors.
2928
2929 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
2932
2933 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
2934 net/icmp.c and net/icmp6.c.
2935 (http): New module.
2936 (priority_queue): Likewise.
2937 * grub-core/io/bufio.c: Rewritten.
2938 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
2939 TYPE_WITH_CONFIGFILE_OPTION.
2940 (legacy_commands): Add bootp and dhcp.
2941 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
2942 (grub_legacy_parse): Likewise.
2943 * grub-core/lib/priority_queue.c: New file.
2944 * grub-core/net/arp.c: Add missing license header.
2945 (arp_find_entry): Removed.
2946 (arp_find_entry): Likewise.
2947 (grub_net_arp_resolve): Rename to ...
2948 (grub_net_arp_send_request): ...this.
2949 (grub_net_arp_receive): New card argument.
2950 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
2951 Set router and DNS server.
2952 (grub_net_configure_by_dhcp_ack): Handle routing information.
2953 (grub_cmd_bootp): Set checksum.
2954 (grub_bootp_init): Remove net_dhcp.
2955 * grub-core/net/dns.c: New file.
2956 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
2957 completion.
2958 (get_card_packet): Handle allocation.
2959 (grub_efinet_findcards): Set mtu.
2960 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
2961 (get_card_packet): Handle allocation.
2962 (emucard): Set mtu.
2963 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
2964 (GRUB_MOD_INIT): Set mtu.
2965 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
2966 mtu.
2967 (get_card_packet): Handle allocation.
2968 (grub_ofnet_findcards): Set mtu.
2969 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
2970 assert.
2971 (grub_net_recv_ethernet_packet): Handle IPv6.
2972 * grub-core/net/http.c: New file.
2973 * grub-core/net/icmp.c: Likewise.
2974 * grub-core/net/icmp6.c: Likewise.
2975 * grub-core/net/ip.c (ip6addr): New type.
2976 (ip6hdr): Likewise.
2977 (reassemble): Likewise.
2978 (cmp): New function.
2979 (reassembles): New variable.
2980 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
2981 (id): New variable.
2982 (send_fragmented): New function.
2983 (grub_net_send_ip_packet): Rename to ...
2984 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
2985 Handle non-UDP.
2986 (grub_net_recv_ip_packets): Rename to ...
2987 (handle_dgram): ... this. Check checksum. Handle non-UDP.
2988 (free_rsm): New function.
2989 (free_old_fragments): Likewise.
2990 (grub_net_recv_ip4_packets): New function.
2991 (grub_net_send_ip6_packet): Likewise.
2992 (grub_net_send_ip_packet): Likewise.
2993 (grub_net_recv_ip6_packets): Likewise.
2994 (grub_net_recv_ip_packets): Likewise.
2995 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
2996 (LINK_LAYER_CACHE_SIZE): New const.
2997 (link_layer_find_entry): New function.
2998 (grub_net_link_layer_add_address): Likewise.
2999 (grub_net_link_layer_resolve_check): Likewise.
3000 (grub_net_link_layer_resolve): Likewise.
3001 (grub_net_ipv6_get_slaac): Likewise.
3002 (grub_net_ipv6_get_link_local): Likewise.
3003 (grub_cmd_ipv6_autoconf): Likewise.
3004 (parse_ip): Handle one number representation.
3005 (parse_ip6): New functoion.
3006 (match_net): Handle IPv6.
3007 (grub_net_resolve_address): Handle IPv6 and DNS.
3008 (grub_net_resolve_net_address): Handle IPv6.
3009 (route_cmp): New function.
3010 (grub_net_route_address): Find best route.
3011 (grub_net_addr_to_str): Handle IPv6.
3012 (grub_net_addr_cmp): New function.
3013 (grub_net_add_addr): Register local route.
3014 (print_net_address): Handle net address.
3015 (grub_net_poll_cards): Retransmit TCP.
3016 (grub_net_poll_cards_idle_real): Likewise.
3017 (have_ahead): New function.
3018 (grub_net_seek_real): Use underlying seek.
3019 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
3020 * grub-core/net/tcp.c: New file.
3021 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
3022 (cmp): New function.
3023 (ack): Likewise.
3024 (tftp_receive): Handle unordered input.
3025 (destroy_pq): New function.
3026 (tftp_close): Close pq.
3027 * grub-core/net/udp.c: Put missing license header.
3028 (grub_net_udp_socket): New function.
3029 (udp_socket_register): Likewise.
3030 (grub_net_udp_close): Likewise.
3031 (grub_net_recv_udp_packet): Check checksum.
3032 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
3033 * include/grub/misc.h (grub_memchr): New function.
3034 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
3035 (grub_net_card_driver): Return buf in recv.
3036 (grub_net_slaac_mac_list): New struct.
3037 (grub_network_level_protocol_id): Add ipv6.
3038 (grub_net_network_level_addr): Likewise.
3039 (grub_net_network_level_net_addr): Likewise.
3040 (grub_net_app_protocol): Add seek.
3041 (grub_net_socket): Removed.
3042 (grub_net_sockets): Likewise.
3043 (grub_net_socket_register): Likewise.
3044 (grub_net_socket_unregister): Likewise.
3045 (FOR_NET_SOCKETS): Likewise.
3046 (grub_net_add_addr): Add const.
3047 (GRUB_NET_BOOTP_*): New enum.
3048 (grub_net_addr_cmp): New proto.
3049 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
3050 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
3051 (grub_net_hwaddr_to_str): NEw proto.
3052 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
3053 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
3054 (grub_dns_init): New proto.
3055 (grub_dns_fini): Likewise.
3056 (grub_net_tcp_retransmit): Likewise.
3057 (grub_net_link_layer_add_address): Likewise.
3058 (grub_net_link_layer_resolve_check): Likewise.
3059 (grub_net_link_layer_resolve): Likewise.
3060 (grub_net_dns_lookup): Likewise.
3061 (grub_net_add_dns_server): Likewise.
3062 (grub_net_remove_dns_server): Likewise.
3063 (GRUB_NET_TRIES): New const.
3064 (GRUB_NET_INTERVAL): Likewise.
3065 * include/grub/net/arp.h: Mostly rewritten.
3066 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
3067 * include/grub/net/ip.h: Mostly rewritten.
3068 * include/grub/net/netbuff.h: Indent.
3069 * include/grub/net/tcp.h: New file.
3070 * include/grub/net/udp.h: Mostly rewritten.
3071 * include/grub/priority_queue.h: New file.
3072 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
3073 (grub_swap_bytes64_compile_time): Likewise.
3074 (grub_cpu_to_be16_compile_time): Likewise.
3075 (grub_cpu_to_be32_compile_time): Likewise.
3076 (grub_cpu_to_be64_compile_time): Likewise.
3077 (grub_be_to_cpu64_compile_time): Likewise.
3078
3079 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
3082 UINT_TO_PTR with cast.
3083
3084 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
3087 don't use them.
3088
3089 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
3092 already there.
3093
3094 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
3097 confusing ipxe.
3098
3099 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
3102 Add missing const attribute.
3103 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
3104 Likewise.
3105 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
3106 Likewise.
3107
3108 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
3111 misaligned access.
3112 (serpent_setkey): Likewise.
3113 (serpent_encrypt_internal): Likewise.
3114 (serpent_decrypt_internal): Likewise.
3115 (serpent_encrypt): Don't put an alignment-increasing cast.
3116 (serpent_decrypt): Likewise.
3117 (serpent_test): Likewise.
3118
3119 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
3122
3123 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
3126
3127 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
3128 grub_addr_t casts.
3129 (PTR_TO_UINT64): Likewise.
3130 (PTR_TO_UINT32): Likewise.
3131
3132 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3133
3134 * util/grub-mkimage.c (generate_image): Decrease the higher limit
3135 because of stack.
3136 * util/grub-setup.c (setup): Don't add redundancy past the higher load
3137 limit.
3138
3139 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
3142 text_width > available width a bit more gracefully.
3143
3144 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
3147 current address calculation.
3148
3149 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
3152 stack.
3153 (encode_block): Likewise.
3154
3155 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
3158 certainety.
3159
3160 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
3163 non-RS part to avoid RS messing with GDT.
3164 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
3165 Increase to suit in realmode routines.
3166
3167 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * grub-core/kern/i386/realmode.S: Increase alignment.
3170 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
3171
3172 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3173
3174 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
3175 be deterministic.
3176 (syndroms): Compute 0 syndrom.
3177 (rs_recover): Use 0 syndrom.
3178
3179 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
3182
3183 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
3186 brackets.
3187
3188 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
3191 account.
3192 (get_top_pad): Likewise.
3193 (get_right_pad): Likewise.
3194 (get_bottom_pad): Likewise.
3195
3196 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
3199
3200 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
3203 attribute as the structure isn't guaranteed to be properly aligned.
3204 (grub_efi_pci_device_path): Likewise.
3205 (grub_efi_pccard_device_path): Likewise.
3206 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
3207 specify the size of `memory_type'.
3208 (grub_efi_vendor_device_path): Likewise.
3209 (grub_efi_controller_device_path): Likewise.
3210 (grub_efi_acpi_device_path): Likewise.
3211 (grub_efi_expanded_acpi_device_path): Likewise.
3212 (grub_efi_atapi_device_path): Likewise.
3213 (grub_efi_scsi_device_path): Likewise.
3214 (grub_efi_fibre_channel_device_path): Likewise.
3215 (grub_efi_1394_device_path): Likewise.
3216 (grub_efi_usb_device_path): Likewise.
3217 (grub_efi_usb_class_device_path): Likewise.
3218 (grub_efi_i2o_device_path): Likewise.
3219 (grub_efi_mac_address_device_path): Likewise.
3220 (grub_efi_ipv4_device_path): Likewise.
3221 (grub_efi_ipv6_device_path): Likewise.
3222 (grub_efi_infiniband_device_path): Likewise.
3223 (grub_efi_uart_device_path): Likewise.
3224 (grub_efi_vendor_messaging_device_path): Likewise.
3225 (grub_efi_hard_drive_device_path): Likewise.
3226 (grub_efi_cdrom_device_path): Likewise.
3227 (grub_efi_vendor_media_device_path): Likewise.
3228 (grub_efi_file_path_device_path): Likewise.
3229 (grub_efi_protocol_device_path): Likewise.
3230 (grub_efi_piwg_device_path): Likewise.
3231 (grub_efi_bios_device_path): Likewise.
3232
3233 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
3236 (grub_ucs4_to_utf8_alloc): Likewise.
3237 (grub_ucs4_to_utf8): Likewise.
3238 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
3239 (grub_ucs4_to_utf8_alloc): Likewise.
3240
3241 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 AFFS never uses unicode.
3244
3245 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
3246 (grub_latin1_to_utf8): New inline function.
3247 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
3248
3249 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
3252 overflow.
3253
3254 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
3257 (grub_squash_dirent_header): Likewise.
3258 (read_chunk): Don't double swap.
3259 (grub_squash_iterate_dir): Fix swap sizes.
3260
3261 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
3264
3265 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
3268 (grub_hfs_iterate_dir): Likewise.
3269
3270 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3271
3272 Fix video on platforms where unaligned access is forbidden.
3273 Make several optimisations while on it.
3274
3275 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
3276 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3277 (grub_video_fbblit_replace_32bit_1bit): Likewise.
3278 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3279 Disable.
3280 (grub_video_fbblit_replace_16bit_1bit):
3281 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3282 (grub_video_fbblit_replace_8bit_1bit): Likewise.
3283 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
3284 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
3285 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3286 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3287 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
3288 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
3289 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
3290 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
3291 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
3292 (grub_video_fbblit_replace_index_RGB888): Likewise.
3293 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
3294 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
3295 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
3296 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3297 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
3298 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
3299 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3300 Disable.
3301 (grub_video_fbblit_blend_XXX565_1bit):
3302 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3303 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
3304 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
3305 void *.
3306 * grub-core/video/fb/video_fb.c (common_blitter)
3307 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
3308 (grub_video_fb_create_render_target_from_pointer)
3309 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
3310 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
3311 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
3312 definition.
3313 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
3314
3315 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3316
3317 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
3318 HH22 and HM10 relocations.
3319
3320 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3321
3322 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
3323
3324 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
3327 allocation succeeded.
3328
3329 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
3332 argument a u8 pointer. All users updated.
3333 Handle unaligned buffers.
3334
3335 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
3338 add_part to workaround compiler bug.
3339
3340 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
3343
3344 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
3347 Reserve alignment invariants.
3348 (grub_multiboot_load): Likewise.
3349 (retrieve_video_parameters): Likewise.
3350 (grub_multiboot_make_mbi): Likewise.
3351
3352 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3353
3354 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
3355 incorrect pointer.
3356
3357 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
3360 (grub_pata_pio_write): Likewise.
3361
3362 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 Add noreturn attributes and remove unreachable code.
3365
3366 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
3367 code.
3368 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
3369 code. Mark as noreturn.
3370 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
3371 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
3372 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
3373 unreachable code.
3374 * grub-core/kern/main.c (grub_main): Mark as noreturn.
3375 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
3376 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
3377 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
3378 * include/grub/kernel.h (grub_main): Mark as noreturn.
3379 * include/grub/reader.h (grub_rescue_run): Likewise.
3380
3381 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
3384 redundant declaration.
3385
3386 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * include/grub/net.h (grub_net_network_level_interfaces): Remove
3389 redundant declaration.
3390 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
3391
3392 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
3395 to ensure alignment.
3396 (grub_hdparm_print_identify): Make argument uint16 * to ensure
3397 alignment. Ensure tmp alignment.
3398 (grub_cmd_hdparm): Ensure buf alignment.
3399 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
3400 to ensure alignment.
3401 (grub_ata_dumpinfo): Ensure text alignment.
3402 (grub_atapi_identify): Preserve alignment invariant.
3403 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
3404
3405 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
3408 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
3409 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
3410 * include/grub/misc.h (grub_reboot)
3411 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
3412 (grub_halt) [__mips__]: Likewise.
3413
3414 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
3417 Remove redundant declaration.
3418 (grub_mmap_get_post64): Likewise.
3419 (grub_mmap_get_upper): Likewise.
3420 (grub_mmap_get_lower): Likewise.
3421
3422 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
3425 uint32_t * to ensure alignment.
3426 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
3427
3428 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
3431 uint16_t * to ensure alignment.
3432 (sun_pc_partition_map_iterate): Make `block' a union to ensure
3433 alignment.
3434
3435 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
3438 to ensure alignment.
3439 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
3440
3441 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * grub-core/fs/ntfs.c (u16at): Make into inline function.
3444 Handle unaligned pointers.
3445 (u32at): Likewise.
3446 (u64at): Likewise.
3447 (fixup): Use byte access instead of v16at.
3448 (find_attr): Fix imporper usage of v32at.
3449 (read_data): Likewise.
3450 (list_file): Handle byte-swapping and unaligned strings.
3451 (grub_ntfs_label): Likewise.
3452
3453 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
3456 as it's not necessarily aligned.
3457
3458 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
3461 redundant declaration.
3462 (grub_serial_init): Likewise.
3463 (grub_terminfo_init): Likewise.
3464
3465 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
3468 function.
3469 (ZAP_HASH_IDX): Likewise.
3470 (ZAP_LEAF_HASH_SHIFT): Likewise.
3471 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
3472 (LEAF_HASH): Likewise.
3473 (ZAP_LEAF_NUMCHUNKS): Likewise.
3474 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
3475 alignment invariants. Return pointer. All users updated.
3476 (ZAP_LEAF_ENTRY): Make into inline function.
3477 (NBBY): Removed.
3478 (xor): LIkewise.
3479 (xor_out): Use grub_crypto_xor.
3480 (dnode_get_path): Use grub_get_unaligned.
3481 (nvlist_find_value): Likewise.
3482 (grub_zfs_nvlist_lookup_uint64): Likewise.
3483 (grub_zfs_nvlist_lookup_string): Likewise.
3484 (get_nvlist_size): Likewise.
3485 (grub_zfs_open): Likewise.
3486 (fill_fs_info): Likewise.
3487 (grub_zfs_dir): Likewise.
3488 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
3489 alignment invariants.
3490 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
3491 necessarily aligned.
3492
3493 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3494
3495 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
3496
3497 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
3500 arithmetic to conserve alignment invariants.
3501
3502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3503
3504 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
3505 redundant declaration.
3506 (grub_efiemu_mm_obtain_request): Likewise.
3507 (grub_efiemu_prepare): Likewise.
3508
3509 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
3512 to match types.
3513
3514 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
3517 case of aunaligned recptr.
3518 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
3519 alignment.
3520 (grub_hfsplus_btree_search): Handle unaligned index.
3521
3522 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
3525 to get freetag and skip.
3526
3527 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
3530 array.
3531 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
3532 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
3533
3534 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
3537 name for checksum and fix allocation algorithm.
3538
3539 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * include/grub/types.h (grub_properly_aligned_t): New type.
3542 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
3543 (grub_get_unaligned16): Add explicit casts.
3544 (grub_get_unaligned32): Likewise.
3545 (grub_get_unaligned64): Likewise.
3546 (grub_set_unaligned16): New function.
3547 (grub_set_unaligned32): Likewise.
3548
3549 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
3552
3553 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3554
3555 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
3556 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
3557 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
3558
3559 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3560
3561 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
3562 conditionals.
3563
3564 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3565
3566 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
3567 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
3568
3569 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3570
3571 Unify and improve RAID and crypto xor.
3572
3573 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
3574 changed to grub_crypto_xor
3575 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
3576 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
3577 Use bigger types when possible.
3578
3579 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * grub-core/disk/raid.c (scan_devices): Fix condition.
3582
3583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
3586 Make name a const ptr.
3587
3588 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
3591 first argument a const pointer.
3592 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3593 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
3594 proto.
3595 (grub_children_iterate): Likewise.
3596 (grub_machine_mmap_iterate): Remove redundant declaration.
3597
3598 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
3601 (grub_cmd_acpi) [!x86]: Disable EBDA.
3602
3603 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 Enable UTF8 in gnulib regexp.
3606
3607 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
3608 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
3609 (isupper): Use grub_isupper.
3610 (isascii): New inline function.
3611 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
3612 * grub-core/lib/posix_wrap/wctype.h: Likewise.
3613 * grub-core/normal/charset.c (grub_utf8_process): New function.
3614 (grub_utf8_to_utf16): Use grub_utf8_process.
3615 (grub_encode_utf8_character): New function.
3616 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
3617 * include/grub/charset.h (grub_utf8_process): New declaration.
3618 (grub_encode_utf8_character): Likewise.
3619 * include/grub/misc.h (grub_islower): New inline function.
3620 (grub_isupper): Likewise.
3621 (grub_strchrsub): Moved down to fix the definitions.
3622
3623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
3626 specification.
3627
3628 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * include/grub/loader.h (grub_loader_register_preboot_hook):
3631 Use struct preboot * and not void * for handle. All users updated.
3632 (grub_loader_unregister_preboot_hook): Likewise.
3633
3634 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
3637 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
3638 UTF-16-BE. All users updated.
3639 (grub_hfsplus_cmp_catkey): Fix unicode handling.
3640 (grub_hfsplus_iterate_dir): Likewise.
3641 (grub_hfsplus_label): Likewise.
3642
3643 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
3646
3647 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 Add missing const qualifiers.
3650
3651 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
3652 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
3653 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
3654 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
3655 (grub_lvm_check_flag): Likewise.
3656 * grub-core/efiemu/i386/coredetect.c
3657 (grub_efiemu_get_default_core_name): Likewise
3658 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
3659 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
3660 * grub-core/fs/ntfs.c (fixup): Likewise.
3661 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
3662 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
3663 (fzap_lookup): Likewise.
3664 (zap_lookup): Likewise.
3665 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
3666 * grub-core/lib/legacy_parse.c (check_option): Likewise.
3667 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
3668 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
3669 (grub_freebsd_add_meta_module): Likewise.
3670 (grub_cmd_freebsd_module): Likewise.
3671 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
3672 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
3673 (grub_xnu_writetree_get_size): Likewise.
3674 (grub_xnu_writetree_toheap_real): Likewise.
3675 (grub_xnu_find_key): Likewise.
3676 (grub_xnu_create_key): Likewise.
3677 (grub_xnu_create_value): Likewise.
3678 (grub_xnu_register_memory): Likewise.
3679 (grub_xnu_check_os_bundle_required): Likewise.
3680 (grub_xnu_scan_dir_for_kexts): Likewise.
3681 (grub_xnu_load_kext_from_dir): Likewise.
3682 * grub-core/normal/color.c (color_list): Likewise.
3683 * grub-core/normal/completion.c (current_word): Likewise.
3684 * grub-core/normal/menu_entry.c (insert_string): Likewise.
3685 * grub-core/term/serial.c (grub_serial_find): Likewise.
3686 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
3687 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
3688 Likewise.
3689 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
3690 (grub_freebsd_add_meta_module): Likewise.
3691 * include/grub/lib/arg.h (grub_arg_option): Likewise.
3692 * include/grub/net.h (grub_net_card_driver): Likewise.
3693 (grub_net_card): Likewise.
3694 (grub_net_app_protocol): Likewise.
3695 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
3696 * include/grub/serial.h (grub_serial_find): Likewise.
3697 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
3698 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
3699 (grub_xnu_create_value): Likewise.
3700 (grub_xnu_find_key): Likewise.
3701 (grub_xnu_scan_dir_for_kexts): Likewise.
3702 (grub_xnu_load_kext_from_dir): Likewise.
3703
3704 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
3705 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
3706 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
3707 Moved from here ...
3708 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
3709
3710 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
3711
3712 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
3713
3714 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
3717 (read_device): Fix size calculation.
3718
3719 2011-11-25 Robert Millan <rmh@gnu.org>
3720
3721 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
3722 (find_root_device_from_libzfs): Add zpool output parser to be used
3723 as fallback when libzfs isn't available.
3724
3725 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
3726
3727 * po/Makefile.in.in: Add missing escape-continuation.
3728
3729 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
3732
3733 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
3736
3737 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
3740
3741 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
3744
3745 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 * grub-core/lib/adler32.c: Add missing license specification.
3748 * grub-core/lib/crc64.c: Likewise.
3749 * grub-core/loader/i386/pc/plan9.c: Likewise.
3750 * grub-core/partmap/plan.c: Likewise.
3751
3752 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
3753
3754 Add facility to debug GRUB with gdb under qemu.
3755
3756 * grub-core/gdb_grub.in: New file.
3757 * grub-core/gmodule.pl.in: Likewise.
3758 * grub-core/Makefile.core.def (gmodule.pl): New script.
3759 (gdb_grub): Likewise.
3760
3761 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 * util/grub-mount.c (argp_parser): Accept relative pathes.
3764 * util/grub-fstest.c (argp_parser): Likewise.
3765
3766 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3767
3768 Plan9 support.
3769
3770 * Makefile.util.def (libgrubmods): Add
3771 grub-core/partmap/plan.c.
3772 * docs/grub.texi: Notice Plan9 support.
3773 * grub-core/Makefile.core.def (plan9): New module.
3774 (part_plan): Likewise.
3775 * grub-core/loader/i386/pc/plan9.c: New file.
3776 * grub-core/partmap/plan.c: Likewise.
3777 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
3778 define.
3779 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
3780 * include/grub/mm.h (grub_extend_alloc): New inline function.
3781
3782 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 Make Reed-Solomon faster by using power of generator representation of
3785 GF(256)*.
3786
3787 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
3788 (gf_double_t): Likewise.
3789 (gf_invert): Removed.
3790 (gf_powx): New array.
3791 (gf_powx_inv): Likewise.
3792 (scratch): Move higher.
3793 (gf_reduce): Removed.
3794 (gf_mul): Use powx.
3795 (gf_invert): Likewise.
3796 (init_inverts): Replaced with ...
3797 (init_powx): ...this. All users updated.
3798 (pol_evaluate): Replace multiplications with additions.
3799 (rs_encode): Likewise.
3800 (gauss_eliminate): Call gf_invert.
3801 (grub_reed_solomon_add_redundancy): Call init_powx.
3802 (grub_reed_solomon_recover): Call init_powx unconditionally.
3803
3804 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
3807
3808 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
3811 disk->partiton for safety.
3812
3813 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
3816 Fix a memory leak.
3817 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
3818
3819 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
3822
3823 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
3826
3827 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 Fix spaces handling in proc/self/mountinfo.
3830
3831 * util/getroot.c (unescape): New function.
3832 (grub_find_root_device_from_mountinfo): Use unescape.
3833
3834 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 Support ZFS embedding.
3837
3838 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
3839 (grub_zfs_fs): Register grub_zfs_embed.
3840
3841 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 Fix MIPS compilation.
3844
3845 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
3846 * include/grub/offsets.h: Rename decompressor fields from
3847 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
3848 * util/grub-mkimage.c (image_targets): Use new names.
3849
3850 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 Defer multiboot device parsing until we're in compressed part.
3853
3854 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
3855 bsd_part. setdevice has fallen into disuse.
3856 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
3857 (bsd_part): Likewise.
3858 (boot_dev): New variable.
3859 (multiboot_trampoline): Don't parse multiboot device.
3860 Pass multiboot device in %edx.
3861 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
3862 grub_boot_device.
3863 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
3864 Likewise.
3865 * grub-core/kern/i386/pc/startup.S: Save edx.
3866 (grub_boot_drive): Removed.
3867 (grub_install_dos_part): Likewise.
3868 (grub_install_bsd_part): Likewise.
3869 (grub_boot_device): New variable.
3870 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
3871 (grub_install_bsd_part): Likewise.
3872 (grub_boot_drive): Likewise.
3873 (grub_boot_device): New variable.
3874 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
3875 Removed.
3876 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3877 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
3878 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
3879 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
3880 * util/grub-install.in: Remove redundant condition.
3881
3882 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 Fix bug introduced by previous commit.
3885
3886 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
3887
3888 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 Use decompressors framework on i386-pc. It increases core size
3891 by 46 bytes but improves compatibility and maintainability.
3892
3893 * grub-core/Makefile.core.def (lzma_decompress): New image.
3894 (kernel): Add i386_pc_ldflags.
3895 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
3896 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
3897 to real_to_prot, prot_to_real and device info.
3898 * include/grub/offsets.h: Renamed decompressor offsets.
3899 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
3900 (image_target_desc): Remove raw_size and rename decompressor fields.
3901 (compress_kernel): Handle lzma.
3902 (generate_image): Handle decompressors on i386-pc.
3903
3904 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * configure.ac: Add -fno-asynchronous-unwind-tables.
3907
3908 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 Move assembly code to C by using intwrap. It increases core size
3911 by 88 bytes but improves compatibility and maintainability.
3912
3913 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
3914 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
3915 ... here. Translated to C.
3916 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
3917 * grub-core/term/i386/pc/console.c (grub_console_getkey):
3918 ... here. Translated to C.
3919 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
3920 * grub-core/term/i386/pc/console.c (grub_console_getxy):
3921 ... here. Translated to C.
3922 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
3923 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
3924 ... here. Translated to C.
3925 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
3926 * grub-core/term/i386/pc/console.c (grub_console_cls):
3927 ... here. Translated to C.
3928 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
3929 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
3930 ... here. Translated to C.
3931 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
3932 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
3933 Translated to C.
3934 * grub-core/term/i386/pc/console.c (int10_9): New function.
3935 (grub_console_putchar): Likewise.
3936 * include/grub/i386/pc/console.h: Removed the not anymore shared
3937 functions.
3938
3939 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 Move grub_chainloader_real_boot out of the kernel.
3942
3943 * grub-core/Makefile.am: Remove machine/loader.h.
3944 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3945 Removed.
3946 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
3947 variable.
3948 (grub_relocator16_keep_a20_enabled): Likewise.
3949 (grub_relocator16_boot): Fill new variables.
3950 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
3951 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
3952 relocator.
3953 (grub_chainloader_unload): Likewise.
3954 (grub_chainloader_cmd): Likewise.
3955 * include/grub/i386/pc/loader.h: Removed.
3956 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
3957 and esi. All initialisers updated.
3958
3959 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3960 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
3961
3962 * Makefile.util.def (grub-mount): New util.
3963 * .bzrignore: Add grub-mount.
3964 * configure.ac: Check for fuse and enable grub-mount if available.
3965 * docs/man/grub-mount.h2m: New file.
3966 * util/grub-mount.c: Likewise.
3967
3968 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3969
3970 * grub-core/commands/efi/fixvideo.c: Gettextize.
3971 * grub-core/commands/hashsum.c: Likewise.
3972 * grub-core/commands/i386/cmostest.c: Likewise.
3973 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3974 * grub-core/commands/i386/pc/lsapm.c: Likewise.
3975 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3976 * grub-core/commands/lsmmap.c: Likewise.
3977 * grub-core/commands/menuentry.c: Likewise.
3978 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3979 * grub-core/commands/setpci.c: Likewise.
3980 * grub-core/loader/i386/bsd.c: Likewise.
3981 * grub-core/loader/i386/linux.c: Likewise.
3982 * util/getroot.c: Likewise.
3983 * util/grub-editenv.c: Likewise.
3984 * util/grub-fstest.c: Likewise.
3985 * util/grub-mkfont.c: Likewise.
3986 * util/grub-mkimage.c: Likewise.
3987 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3988 * util/grub-pe2elf.c: Likewise.
3989 * util/grub-probe.c: Likewise.
3990 * util/grub-setup.c: Likewise.
3991 * util/ieee1275/ofpath.c: Likewise.
3992 * util/misc.c: Likewise.
3993 * util/raid.c: Likewise.
3994
3995 2011-11-11 Robert Millan <rmh@gnu.org>
3996
3997 * util/getroot.c (grub_util_get_geom_abstraction): Remove
3998 __attribute__((unused)) from `os_dev', which *is* being used.
3999
4000 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
4003 forgotten define.
4004 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
4005 GRUB_IA64_DL_GOT_ALIGN.
4006 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
4007 GRUB_IA64_DL_TRAMP_ALIGN.
4008
4009 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 Replace grub_fatal with normal errors in i386 linux loader.
4012
4013 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
4014 (allocate_pages): Check find_efi_mmap_size return value.
4015 (grub_e820_add_region): Return error.
4016 (grub_linux_boot): Check mmap return value.
4017
4018 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4019
4020 * grub-core/commands/acpihalt.c: Gettextized.
4021 * grub-core/commands/cacheinfo.c: Likewise.
4022 * grub-core/commands/cmp.c: Likewise.
4023 * grub-core/commands/efi/loadbios.c: Likewise.
4024 * grub-core/commands/gptsync.c: Likewise.
4025 * grub-core/commands/ieee1275/suspend.c: Likewise.
4026 * grub-core/commands/legacycfg.c: Likewise.
4027 * grub-core/commands/memrw.c: Likewise.
4028 * grub-core/commands/minicmd.c: Likewise.
4029 * grub-core/commands/parttool.c: Likewise.
4030 * grub-core/commands/time.c: Likewise.
4031 * grub-core/commands/videoinfo.c: Likewise.
4032 * grub-core/disk/geli.c: Likewise.
4033 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
4034 * grub-core/disk/luks.c: Likewise.
4035 * grub-core/disk/lvm.c: Likewise.
4036 * grub-core/font/font_cmd.c: Likewise.
4037 * grub-core/fs/zfs/zfscrypt.c: Likewise.
4038 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4039 * grub-core/gfxmenu/view.c: Likewise.
4040 * grub-core/kern/emu/hostdisk.c: Likewise.
4041 * grub-core/kern/emu/main.c: Likewise.
4042 * grub-core/kern/emu/misc.c: Likewise.
4043 * grub-core/kern/emu/mm.c: Likewise.
4044 * grub-core/kern/mips/arc/init.c: Likewise.
4045 * grub-core/kern/mips/loongson/init.c: Likewise.
4046 * grub-core/kern/partition.c: Likewise.
4047 * grub-core/lib/i386/halt.c: Likewise.
4048 * grub-core/lib/mips/arc/reboot.c: Likewise.
4049 * grub-core/lib/mips/loongson/reboot.c: Likewise.
4050 * grub-core/loader/i386/pc/chainloader.c: Likewise.
4051 * grub-core/loader/i386/xnu.c: Likewise.
4052 * grub-core/loader/multiboot.c: Likewise.
4053 * grub-core/net/bootp.c: Likewise.
4054 * grub-core/net/net.c: Likewise.
4055 * grub-core/normal/term.c: Likewise.
4056 * grub-core/partmap/bsdlabel.c: Likewise.
4057 * grub-core/parttool/msdospart.c: Likewise.
4058 * grub-core/term/gfxterm.c: Likewise.
4059 * grub-core/term/terminfo.c: Likewise.
4060 * grub-core/video/i386/pc/vbe.c: Likewise.
4061 * util/grub-menulst2cfg.c: Likewise.
4062 * util/grub-mkdevicemap.c: Likewise.
4063 * util/grub-mklayout.c: Likewise.
4064 * util/grub-mkrelpath.c: Likewise.
4065 * util/grub-script-check.c: Likewise.
4066 * util/ieee1275/grub-ofpathname.c: Likewise.
4067 * util/resolve.c: Likewise.
4068
4069 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 Support %1$d syntax.
4072
4073 * tests/printf_unit_test.c: New file.
4074 * Makefile.util.def (printf_test): New test.
4075 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
4076
4077 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4078
4079 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
4080 fix.
4081
4082 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
4085 dprintf.
4086 * grub-core/font/font.c (grub_font_load): Likewise.
4087
4088 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 * util/grub-macho2img.c: Add comment concerning gettext.
4091 * grub-core/lib/legacy_parse.c: Likewise.
4092
4093 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4094
4095 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
4096 (grub_xvasprintf): Likewise.
4097
4098 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 Add const keyword to grub_env_get and gettextize week days.
4101
4102 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
4103 (grub_read_hook_datetime): Return const char *.
4104 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
4105 updated.
4106 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
4107 Mark for gettext.
4108 (grub_get_weekday_name): Return const char *. Call gettext.
4109 * grub-core/script/argv.c (grub_script_argv_append): Receive const
4110 char * and len as the argument. All users updated.
4111 (grub_script_argv_split_append): Receive const char *.
4112 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
4113 * include/grub/env.h (grub_env_get): Likewise.
4114 (grub_env_read_hook_t): Return const char *.
4115 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
4116 (grub_script_argv_split_append): Likewise.
4117
4118 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
4121
4122 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
4125 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
4126
4127 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
4130 Fix prototype.
4131
4132 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4133
4134 Fix mips compilation.
4135
4136 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
4137 normal decoder.
4138 (hashes): Use in embed decoder as well (for sizes).
4139 (dec_stream_header): Fix embed decompressor logic.
4140 (dec_stream_footer): Likewise.
4141
4142 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
4145 an error and not a fatal on unrecognised relocation types.
4146
4147 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4148
4149 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
4150 Issue error rather than printf on unknown arguments.
4151
4152 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
4155 Make buf a const.
4156
4157 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
4160 Fix module name.
4161
4162 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
4165 leftover debug printf.
4166
4167 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
4170
4171 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4172
4173 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
4174 A stylistic fix.
4175
4176 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
4179
4180 2011-11-10 Shea Levy <slevy@tieronedesign.com>
4181
4182 Allow all modules to perform serial IO
4183
4184 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
4185 * include/grub/serial.h (grub_serial_port_configure): New inline
4186 function.
4187 (grub_serial_port_fetch): Likewise.
4188 (grub_serial_port_put): Likewise.
4189 (grub_serial_port_fini): Likewise.
4190 (grub_serial_find): New proto.
4191
4192 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 Put symlink at the end of the node and fix a potential
4195 memory corruption.
4196
4197 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
4198 Make symlink into an array.
4199 (set_rockridge): Set have_symlink and alloc_dirents.
4200 (grub_iso9660_read_symlink): Use new layout.
4201 (grub_iso9660_iterate_dir): Fix memory corruption.
4202 Use new layout.
4203 (grub_iso9660_dir): Set have_symlink.
4204 (grub_iso9660_open): Likewise.
4205
4206 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 Remove local keyword.
4209
4210 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
4211 (version_test_gt): Likewise.
4212 (version_find_latest): Likewise.
4213 (gettext_printf): Likewise.
4214 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
4215
4216 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4217
4218 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
4219
4220 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 Fix ZFS memory and resource leaks.
4223
4224 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
4225 All users updated.
4226 Free type on exit.
4227 (fill_vdev_info): New parameter inserted. All users updated.
4228 (check_pool_label): Likewise.
4229 (scan_disk): Likewise.
4230 (scan_devices): Close non-inserted disks.
4231 (fzap_iterate): Free l.
4232 (unmount_device): Free children descripto memory.
4233
4234 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
4237 argument (access out of bounds).
4238
4239 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4240
4241 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
4242 >= 6 drives.
4243
4244 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
4247 Fix declaration.
4248
4249 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 Fix several memory leaks.
4252
4253 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
4254 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
4255 (grub_cpio_dir): Likewise.
4256 * grub-core/fs/fat.c (grub_fat_label): Likewise.
4257 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
4258 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
4259 (grub_romfs_label): Likewise.
4260 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
4261 (squash_unmount): New function.
4262 (grub_squash_dir): Fix memory leak.
4263 (grub_squash_open): Likewise.
4264 (grub_squash_read): Likewise.
4265 (grub_squash_mtime): Likewise.
4266 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
4267 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
4268 * util/grub-fstest.c (fstest): Likewise.
4269
4270 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
4273 avoid accessing beyond the array.
4274
4275 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
4278
4279 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 Several AFFS fixes.
4282
4283 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
4284 (GRUB_AFFS_FLAG_FFS): Removed.
4285 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
4286 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
4287 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
4288 (grub_fshelp_node): Make block 32-bit.
4289 Add block_cache and last_block_cache.
4290 (grub_affs_read_block): Fill and use block cache.
4291 (grub_affs_read_file): Removed.
4292 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
4293 boot block.
4294 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
4295 safety.
4296 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
4297 space.
4298 (grub_affs_close): Free block cache.
4299 (grub_affs_read): Use grub_fshelp_read_file directly.
4300
4301 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
4304 with no error set.
4305
4306 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
4309 used variable.
4310 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4311 Likewise.
4312
4313 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4314
4315 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
4316
4317 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
4318 byteswap when needed.
4319
4320 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4321
4322 Fix FreeBSD compilation.
4323
4324 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
4325 to avoid circular dependency.
4326 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
4327 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
4328 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
4329
4330 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 Fix ZFS crypto error types.
4333
4334 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
4335 (grub_gcm_decrypt): Likewise.
4336 (grub_zfs_load_key_real): Fix error code type. Handle possible error
4337 from PBKDF2.
4338
4339 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 Illumos support.
4342
4343 * Makefile.util.def (10_illumos): New script.
4344 * configure.ac: Set COND_HOST_ILLUMOS.
4345 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
4346 Support Illumos calls.
4347 (find_partition_start) [__sun__]: Likewise.
4348 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
4349 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
4350 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
4351 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
4352 device.
4353 * util/grub-probe.c (probe) [__sun__]: Do character check.
4354 * util/grub.d/10_illumos.in: New file.
4355
4356 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4357
4358 Support escaped commas in hostdisk.
4359
4360 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
4361 (find_grub_drive): Use unescape_cmp.
4362 (make_device_name): Escape commas.
4363
4364 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
4367
4368 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
4371 variable.
4372
4373 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 Support trampoline jumps on powerpc.
4376
4377 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
4378 __ia64__ path.
4379 (grub_dl_load_segments): Set mod->sz.
4380 (grub_dl_flush_cache): Flush whole space occupied by module, not just
4381 segments.
4382 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
4383 (jump): Likewise.
4384 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
4385 function.
4386 (trampoline): New struct.
4387 (trampoline_template): New const.
4388 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
4389 * include/grub/dl.h (grub_dl): Add sz element.
4390 [__powerpc__]: Follow __ia64__.
4391 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
4392 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
4393 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
4394 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
4395
4396 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 ZFS crypto support.
4399
4400 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
4401 * grub-core/Makefile.core.def (zfscrypt): New module.
4402 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
4403 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
4404 it. All users updated.
4405 (grub_zfs_decrypt): New var.
4406 (grub_zfs_load_key): Likewise.
4407 (zio_checksum_functions): Add SHA256+MAC.
4408 (zio_checksum_verify): Handle incomplete comparison due to MAC.
4409 (zio_read): Handle encrypted blocks.
4410 (zap_verify): Remove incorrect check.
4411 (fzap_iterate): Handle non-standard fzap.
4412 (zap_iterate): Likewise.
4413 (zap_iterate_u64): New function.
4414 (dnode_get_fullpath): Load keys.
4415 * grub-core/fs/zfs/zfscrypt.c: New file.
4416 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
4417 (grub_crypto_ecb_encrypt): Make input const.
4418 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
4419 (grub_crypto_ecb_encrypt): Make input const.
4420 (GRUB_CIPHER_AES): New macro.
4421 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
4422 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
4423 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
4424 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
4425 prefix. All users updated.
4426 (grub_zfs_add_key): New proto.
4427 (grub_zfs_decrypt): Likewise.
4428 (grub_zfs_load_key): Likewise.
4429 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
4430 * util/grub-fstest.c (options): Add -K option.
4431 (argp_parser): Likewise.
4432
4433 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 Support zle compression on ZFS.
4436
4437 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
4438 (decomp_table): Add zle.
4439 * include/grub/zfs/zio.h (zio_compress): Add zle.
4440
4441 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 Support BtrFS embedding.
4444
4445 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
4446 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
4447 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
4448 * util/grub-setup.c (setup): Use fs embedding if available.
4449 Add additional sanity check.
4450
4451 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * util/grub-install.in: Fix condition for config_opt.
4454
4455 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 Support third redundancy strip on raidz3.
4458
4459 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
4460 Return error on singularity. All users updated.
4461 (read_device): Don't stop on 3rd failure on raidz3.
4462
4463 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4464
4465 Support case-insensitive ZFS subvolumes.
4466
4467 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
4468 All users updated.
4469 (zap_hash): Likewise.
4470 (name_cmp): New function.
4471 (zap_leaf_array_equal): New parameter case_insensitive.
4472 All users updated.
4473 (zap_leaf_lookup): Likewise.
4474 (fzap_lookup): Likewise.
4475 (zap_lookup): Likewise.
4476 (dnode_get_path): New parameter case_insensitive. Retrieve case
4477 sensitiviness of a volume. All users updated.
4478 (dnode_get_fullpath): New parameter case_insensitive.
4479 All users updated.
4480 (grub_zfs_dir): Set info.case_insensitiveness.
4481
4482 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 Support second redundancy strip on raidz(2,3).
4485
4486 * grub-core/fs/zfs/zfs.c (powx): New array.
4487 (powx_inv): Likewise.
4488 (poly): New const.
4489 (xor_out): New function.
4490 (gf_mul): Likewise.
4491 (recovery): Likewise.
4492 (read_device): Use second redundancy strip.
4493
4494 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 Use a power of generator representation of GF(256) multiplication group
4497 to save space time and complexity.
4498
4499 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
4500 (raid6_table2): Likewise.
4501 (powx): New array.
4502 (powx_inv): Likewise.
4503 (poly): New const.
4504 (grub_raid_block_mul): Replace with ...
4505 (grub_raid_block_mulx): ...this.
4506 (grub_raid6_init_table): Rewritten.
4507 (grub_raid6_recover): Use power of generator representation.
4508
4509 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
4512 for the right device.
4513
4514 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
4517 expected by grub-mkimage and it's more clear since there is no implicit
4518 padding.
4519
4520 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
4523 disk.
4524 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4525
4526 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
4527
4528 * util/grub-mkrescue.in: Fix handling xorriso option.
4529
4530 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
4533 NULL.
4534
4535 2011-11-03 crocket <crockabiscuit@gmail.com>
4536
4537 * util/grub.d/10_linux.in: Add Slackware initrd naming.
4538
4539 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 XZ CRC64 and SHA256 support.
4542
4543 * Makefile.util.def (libgrubmods): Add crc64.c.
4544 * grub-core/Makefile.core.def (crc64): New module.
4545 * grub-core/lib/crc64.c: New file.
4546 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
4547 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
4548 Fix the type.
4549 (MAX_HASH_SIZE): New define.
4550 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
4551 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
4552 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4553 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4554 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
4555 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
4556 Handle non-crc32 hashes.
4557 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
4558 (dec_stream_header): Handle non-crc32 hashes.
4559 (dec_stream_footer): Likewise.
4560 (dec_block_header): Likewise.
4561 (dec_main): Likewise.
4562 (xz_dec_init): Likewise.
4563 (xz_dec_reset): Likewise.
4564 (xz_dec_end): Likewise.
4565 * util/import_gcry.py: Add CRC64 line.
4566
4567 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
4570 as well.
4571
4572 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 Make reiserfs label retrieval similar to other *_label functions.
4575
4576 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
4577 (REISERFS_MAX_LABEL_LENGTH): Removed.
4578 (REISERFS_LABEL_OFFSET): Likewise.
4579 (grub_reiserfs_label): Rewritten.
4580
4581 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
4584 field.
4585
4586 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4587
4588 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
4589
4590 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
4593 drive failure on both raidz and raidz2.
4594
4595 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4596
4597 Fix RAIDZ(2) for >= 5 devices.
4598
4599 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
4600 asize argument. All users updated.
4601
4602 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 Fix RAIDZ(2).
4605
4606 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
4607 (fill_vdev_info_real): Set ashift.
4608 (read_device): Rewrite RAIDZ part based on reverse engineering.
4609
4610 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
4613 don't report potentially unavialiable fields in debug output.
4614 (find_path): Fix double-free and memory leak.
4615
4616 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4617
4618 Read label on UFS1.
4619
4620 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
4621 (grub_ufs_fs): Always set .label.
4622
4623 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 Use shifts in UFS.
4626
4627 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
4628 (grub_ufs_data): New field log2_blksz.
4629 (grub_ufs_read_file): Use shifts.
4630 (grub_ufs_mount): Check block size and logarithm it.
4631
4632 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4633
4634 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
4635 long symlinks.
4636
4637 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 Handle symlinks and long names on tar and cpio.
4640
4641 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
4642 (ATTR_FILE): Likewise.
4643 (ATTR_DIR): Likewise.
4644 (ATTR_LNK): Likewise.
4645 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
4646 (grub_cpio_find_file): Fill mode, handle linkname field as well as
4647 L and K entries.
4648 (grub_cpio_mount): Zero-fill data.
4649 (handle_symlink): New function.
4650 (grub_cpio_dir): Handle symlinks.
4651 (grub_cpio_open): Likewise.
4652 (grub_cpio_close) [MODE_USTAR]: Free linkname.
4653
4654 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 Fix iso9660 filename limitations and fix memory leaks.
4657
4658 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
4659 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
4660
4661 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4662
4663 Fix JFS file name length limitations.
4664
4665 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
4666 (grub_jfs_diropen): Fix maximum filename length.
4667 (grub_jfs_getent): Fix filename length.
4668 (grub_jfs_lookup_symlink): Fix size checks.
4669
4670 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
4673 string.
4674
4675 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4676
4677 Leverage BFS implementation to read AFS.
4678
4679 * Makefile.util.def (libgrubmods): Add afs.c.
4680 * grub-core/Makefile.core.def (afs): New module
4681 * grub-core/fs/afs.c: New file.
4682 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
4683
4684 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4685
4686 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
4687
4688 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * grub-core/fs/bfs.c: Run indent.
4691
4692 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4693
4694 BFS implementation based on the specification.
4695
4696 * grub-core/fs/bfs.c: New file.
4697 * Makefile.util.def (libgrubmods): Add bfs.c.
4698 * grub-core/Makefile.core.def (bfs): New module.
4699
4700 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 * util/grub-fstest.c (cmd_cp): Clarify error message.
4703 (cmd_cmp): Likewise.
4704
4705 2011-10-30 Yves Blusseau <blusseau@zetam.org>
4706
4707 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
4708 and befs_be.
4709
4710 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 Remove afs and befs because of copyright problem.
4713
4714 * grub-core/fs/afs.c: Removed.
4715 * grub-core/fs/afs_be.c: Removed.
4716 * grub-core/fs/befs.c: Removed.
4717 * grub-core/fs/befs_be.c: Removed.
4718 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
4719 * grub-core/Makefile.core.def (afs): Removed.
4720 (afs_be): Likewise.
4721 (befs): Likewise.
4722 (befs_be): Likewise.
4723
4724 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4725
4726 Prefer rockridge over Joliet.
4727
4728 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
4729 to ...
4730 (set_rockridge): ... here.
4731 (grub_iso9660_mount): Check rockridge on the primary label when
4732 discovering. Ignore Joliet if Rockridge is present.
4733
4734 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 Use shifts in nilfs2.
4737
4738 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
4739 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
4740 (grub_nilfs2_palloc_entries_per_group): Replace with ...
4741 (grub_nilfs2_log_palloc_entries_per_group): ... this.
4742 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
4743 (grub_nilfs2_entries_per_block): Replaced with ...
4744 (grub_nilfs2_log_entries_per_block_log): ... this.
4745 (grub_nilfs2_blocks_per_group): Replaced with ...
4746 (grub_nilfs2_blocks_per_group_log): ... this.
4747 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
4748 (grub_nilfs2_blocks_per_desc_block_log): ... this.
4749 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
4750 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
4751 (grub_nilfs2_palloc_entry_offset): Replaced ...
4752 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
4753 (grub_nilfs2_dat_translate): Use shifts.
4754 (grub_nilfs2_read_inode): Likewise.
4755 (GRUB_MOD_INIT): Ensure that logs are correct.
4756
4757 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4758
4759 Use shifts in minix filesystem.
4760
4761 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
4762 (GRUB_MINIX_ZONE2SECT): Likewise.
4763 (grub_minix_data): Replace block_size with log_block_size.
4764 (grub_minix_read_file): Use shifts.
4765 (grub_minix_mount): Check block size and take a logarithm.
4766
4767 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 Use shifts in squash4.
4770
4771 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
4772 (squash_mount): Check block size and take logarithm.
4773 (direct_read): Use shifts.
4774
4775 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 Correct befs block counting logic.
4778
4779 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
4780 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
4781 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
4782 (grub_afs_read_inode): Use block_shift.
4783 (RANGE_SHIFT): New definition.
4784 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
4785 unexpected conditions, use shifts and appropriate types.
4786 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
4787
4788 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4789
4790 * grub-core/disk/raid.c (scan_devices): Check partition.
4791 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4792
4793 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 Support BFS (befs) UUID.
4796
4797 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
4798 (grub_afs_small_data_element_header): New struct.
4799 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
4800 (grub_afs_read_attribute) [MODE_BFS]: New function.
4801 (grub_afs_iterate_dir): Allocate for complete inode.
4802 (grub_afs_mount): Likewise.
4803 (grub_afs_uuid) [MODE_BFS]: New function.
4804 (grub_afs_fs) [MODE_BFS]: Add .uuid.
4805
4806 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4807
4808 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
4809 (zfs_unmount): Fix memory leak.
4810
4811 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4812
4813 Support NTFS reparse points.
4814
4815 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
4816 (symlink_descriptor): New struct.
4817 (grub_ntfs_read_symlink): New function.
4818 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
4819 (grub_ntfs_open): Likewise.
4820
4821 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
4824
4825 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 fstest xnu_uuid subcommand.
4828
4829 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
4830 grub-core/commands/xnu_uuid.c.
4831 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
4832 (fstest): Handle xnu_uuid.
4833 (options): Document xnu_uuid.
4834 (argp_parser): Parse xnu_uuid.
4835
4836 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4837
4838 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
4839 -l argument. Add newline at the end if printing.
4840 (GRUB_MOD_INIT): Document -l.
4841
4842 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
4845
4846 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 ZFS multi-device and version 33 support.
4849
4850 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
4851 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
4852 (grub_zfs_data): Add multidev-ice-related fields.
4853 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
4854 (dva_get_offset): Make dva const.
4855 (zfs_fetch_nvlist): New function.
4856 (fill_vdev_info_real): Likewise.
4857 (fill_vdev_info): Likewise.
4858 (check_pool_label): Likewise.
4859 (scan_disk): Likewise.
4860 (scan_devices): Likewise.
4861 (read_device): Likewise.
4862 (read_dva): Likewise.
4863 (zio_read_gang): Use read_dva.
4864 (zio_read_data): Likewise.
4865 (zap_leaf_lookup): Add missing endian conversion.
4866 (zap_verify): Add missing endian conversion. All users updated.
4867 (fzap_lookup): Likewise.
4868 (fzap_iterate): Likewise.
4869 (dnode_get_path): Handle SA bonus.
4870 (nvlist_find_value): Make input const. All users updated.
4871 (unmount_device): New function.
4872 (zfs_unmount): Use unmount_device.
4873 (zfs_mount): Use scan_disk.
4874 (zfs_mtime): New function.
4875 (grub_zfs_open): Handle system attributes.
4876 (fill_fs_info): Likewise.
4877 (grub_zfs_dir): Likewise.
4878 (grub_zfs_fs): Add mtime.
4879 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
4880 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
4881 (SA_MTIME_OFFSET): Likewise.
4882 (SA_SYMLINK_OFFSET): Likewise.
4883 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
4884 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
4885 (fstest): Support zfsinfo.
4886 (argp_parser): Likewise.
4887
4888 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4889
4890 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
4891 error.
4892
4893 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 ZFS fixes.
4896
4897 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
4898 sharing the same block. Iterate over correct number of indices.
4899 (dnode_get_path): Handle symlinks correctly.
4900
4901 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
4904
4905 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4906
4907 Read label on HFS+.
4908
4909 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
4910 (grub_hfsplus_btree_search): Fix types.
4911 (grub_hfsplus_label): Implement.
4912
4913 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
4916
4917 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4918
4919 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
4920
4921 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4922
4923 Fix symlink handling on iso9660.
4924
4925 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
4926 All users updated.
4927 (grub_iso9660_susp_iterate): Accept zero-size iterate.
4928 (grub_iso9660_read_symlink): Moved most of code ...
4929 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
4930
4931 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4934 Use union to avoid breaking strict-aliasing rules.
4935
4936 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 Support multi-extent iso files.
4939
4940 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
4941 Add node.
4942 (grub_fshelp_node): Revamp. All users updated.
4943 (FLAG_*): New enum.
4944 (read_node): New function.
4945 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
4946 All users updated.
4947 (grub_iso9660_mount): Don't attempt to read sua when there is none.
4948 (get_node_size): New function.
4949 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
4950 entries.
4951 Fix memory leak on . and ..
4952 (grub_iso9660_read): Use read_node.
4953 (grub_iso9660_close): Free node.
4954
4955 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4956
4957 Fix tar 4G limit and handle paths containing dot.
4958
4959 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
4960 (canonicalize): New function.
4961 (grub_cpio_find_file): Use canonicalize. Store offs in
4962 grub_disk_addr_t.
4963 (grub_cpio_dir): Use grub_disk_addr_t.
4964 (grub_cpio_open): Likewise.
4965
4966 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 Fix handling of uncompressed blocks on squashfs and break 4G limit.
4969
4970 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
4971 unused flags.
4972 (grub_squash_inode): Add long_file and block_size.
4973 (grub_squash_cache_inode): New struct.
4974 (grub_squash_dirent): Make types into enum.
4975 (SQUASH_TYPE_LONG_REGULAR): New type.
4976 (grub_squash_frag_desc): Add field size.
4977 (SQUASH_BLOCK_FLAGS): New enum.
4978 (grub_squash_data): Use grub_squash_cache_inode.
4979 (grub_fshelp_node): Make ino_chunk 64-bit.
4980 (read_chunk): Minor argument change. All users updated.
4981 (squash_mount): Use correct le_to_cpu.
4982 (grub_squash_open): Handle LONG_REGULAR.
4983 (direct_read): New function.
4984 (grub_squash_read_data): Handle blocks correctly.
4985
4986 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
4989
4990 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4991
4992 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
4993
4994 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 Fix 2G limit on ZFS.
4997
4998 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
4999 types.
5000 (uberblock_verify): Likewise.
5001 (dmu_read): Likewise.
5002 (grub_zfs_read): Likewise. Remove invalid cast.
5003
5004 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5005
5006 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
5007 (grub_jfs_blkno): Fix incorrect shift.
5008 (grub_jfs_read_file): Use more appropriate types.
5009
5010 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5011
5012 Support triple indirect on minix2 and minix3.
5013
5014 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
5015 Declare triple_indir_zone.
5016 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
5017 indirect.
5018
5019 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 Minix FS fixes.
5022
5023 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
5024 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
5025 Rename ctime to mtime. All users updated.
5026 (grub_minix_get_file_block): Fix types and double indirect computations.
5027
5028 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5029
5030 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
5031 if no label is found.
5032 (grub_fat_iterate_dir): Fix file size type.
5033 (grub_fat_iterate_dir): Likewise.
5034
5035 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5036
5037 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
5038 save some space.
5039 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5040 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5041
5042 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
5045
5046 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 * util/import_gcry.py: Accept space between # and include.
5049
5050 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
5053
5054 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 Fine grainely disable warnings on lexer. Remove Wno-error on it.
5057
5058 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
5059 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
5060 yylex_strncpy.
5061 * grub-core/script/yylex.l: Add fine-grained #pragma.
5062
5063 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
5066 New inline function.
5067 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
5068 Likewise.
5069 (memset) [GRUB_UTIL]: Likewise.
5070 (memcmp) [GRUB_UTIL]: Likewise.
5071
5072 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
5075 inline function rather than a define.
5076
5077 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 * util/grub-setup.c: Add missing include.
5080
5081 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * util/ieee1275/grub-ofpathname.c: Add missing include.
5084
5085 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
5088 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
5089 Likewise.
5090
5091 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5092
5093 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
5094 grub_memcmp usage.
5095
5096 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * util/grub-install.in: Add datarootdir as per automake manual
5099 suggestion.
5100 * util/grub-mknetdir.in: Likewise.
5101
5102 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
5105 suggestion.
5106 * util/grub.d/10_kfreebsd.in: Likewise.
5107 * util/grub.d/10_linux.in: Likewise.
5108 * util/grub.d/10_netbsd.in: Likewise.
5109 * util/grub.d/10_windows.in: Likewise.
5110 * util/grub.d/20_linux_xen.in: Likewise.
5111
5112 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
5113
5114 Remove redundant grub_kernel_image_size.
5115
5116 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
5117 _edata and _start.
5118 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
5119 the small code. It moves it only by few bytes but simplifies the code.
5120 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
5121 _start.
5122 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
5123 (grub_kernel_image_size): Removed.
5124 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
5125 (grub_kernel_image_size): Removed.
5126 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
5127 compiled with Apple toolchain.
5128 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
5129 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
5130 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
5131 (grub_total_module_size): Likewise.
5132 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
5133 Removed.
5134 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
5135 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
5136 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
5137 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
5138 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
5139 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
5140 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
5141 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
5142 Removed.
5143 (grub_total_module_size): Removed.
5144 * util/grub-mkimage.c (image_target_desc): Remove image_size.
5145 (image_targets): Likewise.
5146 Set .compressed_size to no field on sparc.
5147 (generate_image): Remove kernel_image_size handling.
5148
5149 2011-10-19 Szymon Janc <szymon@janc.net.pl>
5150
5151 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
5152 NULL pointer dereference.
5153
5154 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
5157 done with a dedicated section.
5158
5159 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
5160 Ensure the correct position of boot_path.
5161 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
5162 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
5163 other fields.
5164 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
5165 * include/grub/boot.h: Removed. All references removed.
5166 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
5167 Removed.
5168 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
5169
5170 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5171
5172 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
5173 name.
5174
5175 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5176
5177 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
5178
5179 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5180
5181 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5182 Don't add the bogus brackets.
5183
5184 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 ExFAT support.
5187
5188 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
5189 * grub-core/Makefile.core.def (exfat): New module.
5190 * grub-core/fs/exfat.c: New file.
5191 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
5192 (GRUB_FAT_ATTR_*): Make into an enum.
5193 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
5194 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
5195 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
5196 (GRUB_FAT_MAXFILE): Removed.
5197 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
5198 (grub_current_fat_bpb_t): New type.
5199 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
5200 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
5201 (grub_fat_dir_node_t): New type.
5202 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
5203 (fat_log2) [MODE_EXFAT]: Removed.
5204 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
5205 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
5206 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
5207 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
5208 (grub_fat_label) [MODE_EXFAT]: New function.
5209 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
5210 reserved_first_sector to 0.
5211
5212 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5213
5214 Move grub_reboot out of the kernel.
5215
5216 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
5217 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
5218 * grub-core/lib/efi/reboot.c: ... here.
5219 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
5220 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
5221 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
5222 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
5223 * grub-core/lib/i386/reboot_trampoline.S: ... here.
5224 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
5225 * grub-core/lib/ieee1275/reboot.c: ... here.
5226 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
5227 * grub-core/lib/mips/arc/reboot.c: ... here.
5228 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
5229 * grub-core/lib/mips/loongson/reboot.c: ...here.
5230 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
5231 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
5232 * include/grub/emu/misc.h (grub_reboot): New function declaration.
5233 * include/grub/i386/reboot.h: New file.
5234 * include/grub/mips/loongson/ec.h: Fix includes.
5235 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
5236 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
5237 * grub-core/lib/i386/reboot.c: New file.
5238
5239 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
5240
5241 Make grub_prefix into module to fix the arbitrary limit and save
5242 some space.
5243
5244 * grub-core/kern/emu/main.c (grub_prefix): Removed.
5245 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
5246 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
5247 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
5248 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
5249 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
5250 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
5251 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
5252 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
5253 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
5254 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
5255 * include/grub/ia64/efi/kernel.h: Removed.
5256 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
5257 (grub_prefix): Removed.
5258 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
5259 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
5260 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
5261 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
5262 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
5263 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
5264 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
5265 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
5266 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
5267 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
5268 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
5269 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
5270 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5271 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5272 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
5273 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
5274 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
5275 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5276 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
5277 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
5278 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
5279 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
5280 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
5281 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
5282 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
5283 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
5284 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
5285 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
5286 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
5287 from module.
5288 * util/grub-mkimage.c (image_target_desc): Removed prefix and
5289 prefix_end.
5290 (image_targets): Likewise.
5291 (generate_image): Put prefix as a module.
5292
5293 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 Replace grub_module_iterate with FOR_MODULES.
5296
5297 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
5298 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
5299 (grub_efi_modules_addr): ...this.
5300 * grub-core/kern/efi/init.c (grub_modbase): New variable.
5301 (grub_efi_init): Set grub_modbase.
5302 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
5303 (grub_modbase): New variable.
5304 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
5305 (grub_modbase): New variable.
5306 (grub_machine_init): Set grub_modbase.
5307 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
5308 (grub_modbase): New variable.
5309 (grub_machine_init): Set grub_modbase.
5310 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
5311 (grub_modbase): New variable.
5312 (grub_machine_init): Set grub_modbase.
5313 * grub-core/kern/main.c (grub_module_iterate): Remove.
5314 (grub_modules_get_end): Use grub_modbase.
5315 (grub_load_modules): Use FOR_MODULES.
5316 (grub_load_config): Likewise.
5317 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
5318 (grub_modbase): New variable.
5319 (grub_machine_init): Set grub_modbase.
5320 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
5321 (grub_modbase): New variable.
5322 (grub_machine_init): Set grub_modbase.
5323 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
5324 Removed.
5325 (grub_modbase): New variable.
5326 (grub_machine_init): Set grub_modbase.
5327 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
5328 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
5329 (grub_module_iterate): Likewise.
5330 (grub_modbase): New variable declaration.
5331 (FOR_MODULES): New macro.
5332
5333 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5334
5335 * configure.ac: Check for __ctzdi2 and __ctzsi2.
5336 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
5337
5338 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 Fix few obvious type discrepancies.
5341
5342 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
5343 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
5344 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
5345 variable.
5346 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
5347 and connected types.
5348 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
5349 offset.
5350 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
5351 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
5352 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
5353 and connected types.
5354
5355 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 Fix python 3.x incompatibilities.
5358
5359 * gentpl.py: Put brackets around print strings.
5360 * util/import_gcry.py: Open explicitly as utf-8.
5361 Use in instead of has_key.
5362
5363 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
5366 (GRUB_XFS_INO_AGBITS): Make into inline function.
5367 (GRUB_XFS_INO_INOINAG): Likewise.
5368 (GRUB_XFS_INO_AG): Likewise.
5369 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
5370 (GRUB_XFS_EXTENT_OFFSET): Likewise.
5371 (GRUB_XFS_EXTENT_BLOCK): Likewise.
5372 (GRUB_XFS_EXTENT_SIZE): Likewise.
5373 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
5374 (GRUB_XFS_NEXT_DIRENT): Likewise.
5375 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
5376 (grub_xfs_read_file): Fix offset type.
5377
5378 2011-10-15 Robert Millan <rmh@gnu.org>
5379
5380 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
5381
5382 2011-10-15 Robert Millan <rmh@gnu.org>
5383
5384 Fix build problem on FreeBSD and GNU/kFreeBSD.
5385
5386 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
5387
5388 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
5391
5392 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
5393 types.
5394 (grub_hfsplus_btree_recoffset): Likewise.
5395 (grub_hfsplus_btree_recptr): Likewise.
5396 (grub_hfsplus_find_block): Likewise.
5397 (grub_hfsplus_btree_search): Likewise.
5398 (grub_hfsplus_read_block): Likewise.
5399 (grub_hfsplus_read_file): Likewise.
5400 (grub_hfsplus_mount): Likewise.
5401 (grub_hfsplus_btree_iterate_node): Likewise.
5402 (grub_hfsplus_btree_search): Likewise.
5403 (grub_hfsplus_iterate_dir): Likewise.
5404 (grub_hfsplus_read): A small code simplification.
5405
5406 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * grub-core/kern/emu/hostdisk.c
5409 (convert_system_partition_to_system_disk): Don't assume that children
5410 of mapper nodes are mapper nodes.
5411
5412 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5413
5414 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
5415 * include/grub/misc.h (grub_isxdigit): New function.
5416 * grub-core/video/colors.c (my_isxdigit): Removed. All users
5417 switched to grub_isxdigit.
5418 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
5419 number starting with a letter.
5420
5421 2011-10-09 Robert Millan <rmh@gnu.org>
5422
5423 LVM support for FreeBSD and GNU/kFreeBSD.
5424
5425 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
5426 GNU/kFreeBSD.
5427 (LVM_DEV_MAPPER_STRING): Move from here ...
5428 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
5429 * util/getroot.c: Include `<grub/util/lvm.h>'.
5430 (grub_util_get_dev_abstraction): Enable
5431 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
5432 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
5433 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
5434 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
5435 support it.
5436 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
5437 GNU/kFreeBSD.
5438 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
5439 when LVM abstraction is required for ${GRUB_DEVICE}.
5440
5441 2011-10-06 Szymon Janc <szymon@janc.net.pl>
5442
5443 Add support for LZO compression in GRUB:
5444 - import of minilzo library,
5445 - LZO decompression for btrfs,
5446 - lzop files decompression.
5447
5448 * grub-core/io/lzopio.c: New file.
5449 * grub-core/lib/adler32.c: Likewise.
5450 * grub-core/lib/minilzo/lzoconf.h: Likewise.
5451 * grub-core/lib/minilzo/lzodefs.h: Likewise.
5452 * grub-core/lib/minilzo/minilzo.c: Likewise.
5453 * grub-core/lib/minilzo/minilzo.h: Likewise.
5454 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
5455 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
5456 grub-core/lib/minilzo/minilzo.c to common.
5457 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
5458 cflags in cppflags.
5459 * grub-core/Makefile.core.def (btrfs): Likewise.
5460 * grub-core/Makefile.core.def (lzopio): New module.
5461 (adler32): Likewise.
5462 * grub-core/fs/btrfs.c: Include minilzo.h.
5463 (GRUB_BTRFS_COMPRESSION_LZO): New define.
5464 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
5465 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
5466 (grub_btrfs_lzo_decompress): New function.
5467 (grub_btrfs_extent_read): Add support for LZO compression type.
5468 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
5469 (GRUB_USHRT_MAX): Likewise.
5470 (GRUB_UINT_MAX): Likewise.
5471 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
5472 (UINT_MAX): Likewise.
5473 (CHAR_BIT): Likewise.
5474 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
5475 grub-core/lib/posix_wrap/limits.h
5476 (UCHAR_MAX): Likewise.
5477 * include/grub/file.h (grub_file_filter_id): New compression filter
5478 GRUB_FILE_FILTER_LZOPIO.
5479 * include/grub/file.h (grub_file_filter_id): Set
5480 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
5481 * include/grub/types.h (grub_get_unaligned16): New function.
5482 (grub_get_unaligned32): Likewise.
5483 (grub_get_unaligned64): Likewise.
5484 * util/import_gcry.py (cryptolist): Add adler32.
5485
5486 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
5489 in perspective decreases the complexity of build system and fixes
5490 compilation right now.
5491
5492 2011-10-01 Ales Nesrsta <starous@volny.cz>
5493
5494 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
5495 (fixed problem related to using UHCI with coreboot).
5496
5497 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
5498
5499 * gentpl.py: Use Autogen macros so that the output template file
5500 (Makefile.tpl) size is reduced.
5501
5502 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
5503
5504 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
5505 extra_dist.
5506
5507 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5508
5509 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
5510 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
5511
5512 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5513
5514 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
5515 _fullpath.
5516
5517 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5518
5519 Remove extra declaration of sleep for mingw32.
5520
5521 * util/misc.c (sleep) [__MINGW32__]: Removed.
5522 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
5523
5524 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5525
5526 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
5527 type and packname.
5528 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
5529 Resurrected.
5530 (NETBSD_BTINFO_BOOTWEDGE): New definition.
5531 (grub_netbsd_btinfo_bootwedge): New struct.
5532 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5533 New function.
5534 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
5535
5536 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
5537
5538 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
5539 loader.
5540
5541 2011-09-28 Andreas Born <futur.andy@googlemail.com>
5542
5543 Fix incorrect identifiers in bash-completion.
5544
5545 * util/bash-completion.d/grub-completion.bash.in
5546 (_grub_mkpasswd-pbkdf2): Rename to ...
5547 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
5548 (_grub_script-check): Rename to ...
5549 (_grub_script_check): ... this. All users updated.
5550
5551 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
5554 Return 0 if disk isn't biosdisk.
5555
5556 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5557
5558 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
5559 on NetBSD.
5560 * Makefile.util.def (grub-fstest): Likewise.
5561
5562 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5563
5564 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
5565 Get sector size from disk label.
5566
5567 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
5568
5569 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
5570 */README* as well as README*.
5571 Reported by: Axel Beckert.
5572
5573 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
5576 case of less than 256 MiB of RAM.
5577
5578 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 * grub-core/commands/wildcard.c (make_regex): Handle @.
5581
5582 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * util/grub-install.in: Move cryptodisk logic to appropriate place.
5585
5586 2011-08-21 Szymon Janc <szymon@janc.net.pl>
5587
5588 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
5589 AC_LANG_CONFTEST macros.
5590
5591 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5592
5593 Add grub-fstest option to uncompress data for commands.
5594
5595 * util/grub-fstest.c (uncompress): New var.
5596 (options): New option -u.
5597
5598 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5599
5600 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5601 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
5602
5603 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5604
5605 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
5606 file type was not recognized correctly (not gzip or corrupted).
5607
5608 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5609
5610 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
5611 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
5612
5613 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
5616 loongson.
5617 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5618 video_radeon_fuloong2e.
5619 * grub-core/video/radeon_fuloong2e.c: New file.
5620 * include/grub/video.h (grub_video_id_t): Add new ID
5621 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
5622
5623 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
5626 define.
5627 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
5628 that PRID matches the detected subplatform and reset the subplatform
5629 if it doesn't.
5630
5631 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
5634
5635 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5636
5637 Fix PCI iterating on functions >= 4.
5638
5639 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
5640 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
5641 Removed.
5642 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
5643 (grub_pci_read): Fix bitmask.
5644 (grub_pci_read_word): Likewise.
5645 (grub_pci_read_byte): Likewise.
5646 (grub_pci_write): Likewise.
5647 (grub_pci_write_word): Likewise.
5648 (grub_pci_write_byte): Likewise.
5649
5650 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5651
5652 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
5653 can still be specified in TARGET_CFLAGS)
5654
5655 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
5658
5659 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
5660 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
5661 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
5662 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
5663 (FULOONG): Rename to ...
5664 (FULOONG2F): ... this. All users updated.
5665 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
5666 (machtype_fuloong2f_str): ... this.
5667 (machtype_fuloong2e_str): New string.
5668 Check for machtype_fuloong2e_str.
5669 * grub-core/loader/mips/linux.c (loongson_machtypes)
5670 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
5671 * grub-core/term/serial.c (loongson_defserial)
5672 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
5673 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
5674 loongson_defserial.
5675 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
5676 Rename to ...
5677 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
5678 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
5679 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
5680 to IMAGE_FULOONG2F_FLASH. All users updated.
5681 (image_targets): Rename images.
5682 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
5683
5684 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5685
5686 Make enable of disk cache statistics code configurable.
5687
5688 * configure.ac: --enable-cache-stats added.
5689 * config.h.in (DISK_CACHE_STATS): New define.
5690 * grub-core/Makefile.core.def (cacheinfo): New command.
5691 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
5692 * grub-core/commands/cacheinfo.c: New file.
5693 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
5694 moved to cacheinfo.c.
5695 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
5696 debug code.
5697 * include/grub/disk.h: Likewise.
5698
5699 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5700
5701 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
5702 * grub-core/Makefile.am: Likewise.
5703
5704 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
5707 non-zero pull.
5708
5709 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
5712 All users updated.
5713 (grub_jfs_lookup_symlink): Use correct starting inode.
5714
5715 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 * util/grub-setup.c (main): Add missing gcry initialisation.
5718
5719 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 Don't accept text modes on EFI when booting Linux.
5722
5723 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
5724 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
5725
5726 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
5727 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5728
5729 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
5730 use of "/path/.." as in grub-install for EFI as well as handling
5731 symlinks correctly.
5732 Fixes Debian bug #637768.
5733
5734 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5735
5736 * util/grub-probe.c: Remove duplicate #include.
5737
5738 2011-08-10 Robert Millan <rmh@gnu.org>
5739
5740 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
5741
5742 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
5743 function.
5744 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
5745 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
5746
5747 2011-08-03 Robert Millan <rmh@gnu.org>
5748
5749 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
5750 la_array as packed.
5751 Reported by: Zachary Bedell
5752
5753 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5754
5755 * configure.ac: The Loongson port requires grub-mkfont due to its
5756 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
5757 be built.
5758
5759 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5760
5761 * util/grub-install.in: Don't source grub-mkconfig_lib until after
5762 processing arguments (otherwise help2man fails when GRUB has not yet
5763 been installed).
5764
5765 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 New script grub-mkstandalone.
5768
5769 * Makefile.util.def (grub-mkstandalone): New script.
5770 * docs/man/grub-mkstandalone.h2m: New file.
5771 * util/grub-mkstandalone.in: Likewise.
5772
5773 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 Support ATA disks with 4K sectors.
5776
5777 * include/grub/ata.h (grub_ata): New member log_sector_size.
5778 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
5779 (grub_ata_identify): Read sector size.
5780 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
5781
5782 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 * util/grub-install.in: Don't use uhci outside of x86.
5785
5786 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 * util/grub-mkrescue.in: Add missing quotes.
5789
5790 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5791
5792 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
5793 dereference.
5794
5795 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
5798
5799 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5800
5801 * include/grub/video.h: add missing EXPORT_FUND on
5802 grub_video_edid_checksum and grub_video_edid_preferred_mode.
5803
5804 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5805
5806 * include/grub/mips/kernel.h: Fix define conflict.
5807
5808 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5809
5810 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
5811 all four ways.
5812
5813 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
5814
5815 Preferred resolution detection for VBE.
5816
5817 * grub-core/video/video.c (grub_video_edid_checksum): New function.
5818 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
5819 the Flat Panel extension, in line with the X.org VESA driver.
5820 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
5821 New function.
5822 (grub_vbe_bios_get_ddc_capabilities): Likewise.
5823 (grub_vbe_bios_read_edid): Likewise.
5824 (grub_vbe_get_preferred_mode): Likewise.
5825 (grub_video_vbe_setup): When the mode is "auto", try to get the
5826 preferred mode from VBE, and use the largest mode that is no larger
5827 than the preferred mode (some BIOSes expose a preferred mode that is
5828 not in their mode list!). If this fails, fall back to 640x480 as a
5829 safe conservative choice.
5830 (grub_video_vbe_get_edid): New function.
5831 (grub_video_vbe_adapter): Add get_edid.
5832 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
5833 (struct grub_video_adapter): Add get_edid.
5834 (grub_video_edid_checksum): Add prototype.
5835 (grub_video_edid_preferred_mode): Likewise.
5836 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
5837 structure.
5838
5839 * grub-core/commands/videoinfo.c (print_edid): New function.
5840 (grub_cmd_videoinfo): Print EDID if available.
5841
5842 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
5843 is more appropriate on a wider range of platforms than 640x480.
5844 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
5845 documentation.
5846
5847 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
5850
5851 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * po/POTFILES.in: Regenerate.
5854
5855 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
5858 incorrect memory usage.
5859
5860 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5861
5862 * util/grub-install.in: Source grub-mkconfig_lib.
5863
5864 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 Remove getroot.c from core on emu platform.
5867
5868 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
5869 kern/emu/raid.c.
5870 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
5871 useless.
5872 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
5873 * util/getroot.c (get_win32_path): ... here.
5874 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
5875 * util/getroot.c (fini_libzfs): ... here.
5876 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
5877 * util/getroot.c (grub_get_libzfs_handle): ... here.
5878 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
5879 Moved from here...
5880 * util/getroot.c (grub_find_zpool_from_dir): ... here.
5881 * grub-core/kern/emu/misc.c
5882 (grub_make_system_path_relative_to_its_root): Moved from here...
5883 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
5884 * grub-core/kern/emu/getroot.c: Moved from here ...
5885 * util/getroot.c: ... here. All users updated.
5886 * grub-core/kern/emu/raid.c: Moved from here ...
5887 * util/raid.c: ... here. All users updated.
5888
5889 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5890
5891 * po/POTFILES.in: Regenerate.
5892
5893 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5894
5895 Fix compilation on GNU/Linux.
5896
5897 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
5898 Disable geli.
5899 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
5900 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
5901 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
5902
5903 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5904 2011-07-07 Michael Gorven <michael@gorven.za.net>
5905 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
5906
5907 LUKS and GELI support.
5908
5909 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
5910 grub-core/disk/luks.c, grub-core/disk/geli.c,
5911 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
5912 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
5913 grub-core/lib/arg.c.
5914 (libgrubmods.a): Remove gcrypts cflags and cppflags.
5915 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
5916 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
5917 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
5918 (grub-bin2h): Add libgcry.a.
5919 (grub-mkimage): Likewise.
5920 (grub-mkrelpath): Likewise.
5921 (grub-script-check): Likewise.
5922 (grub-editenv): Likewise.
5923 (grub-mkpasswd-pbkdf2): Likewise.
5924 (grub-pe2elf): Likewise.
5925 (grub-fstest): Likewise.
5926 (grub-mkfont): Likewise.
5927 (grub-mkdevicemap): Likewise.
5928 (grub-probe): Likewise.
5929 (grub-ofpath): Likewise.
5930 (grub-mklayout): Likewise.
5931 (example_unit_test): Likewise.
5932 (grub-menulst2cfg): Likewise.
5933 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
5934 * grub-core/Makefile.core.def (cryptodisk): New module.
5935 (luks): Likewise.
5936 (geli): Likewise.
5937 * grub-core/disk/AFSplitter.c: New file.
5938 * grub-core/disk/cryptodisk.c: Likewise.
5939 * grub-core/disk/geli.c: Likewise.
5940 * grub-core/disk/luks.c: Likewise.
5941 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
5942 grub_util_is_lvm.
5943 (grub_util_get_dm_abstraction): New function.
5944 (grub_util_follow_gpart_up): Likewise.
5945 (grub_util_get_geom_abstraction): Likewise.
5946 (grub_util_get_dev_abstraction): Use new functions.
5947 (grub_util_pull_device): Pull GELI and LUKS.
5948 (grub_util_get_grub_dev): Handle LUKS and GELI.
5949 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
5950 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
5951 (follow_geom_up): Removed.
5952 (grub_util_fd_seek): New function.
5953 (open_device): Use grub_util_fd_seek.
5954 (nread): Rename to ..
5955 (grub_util_fd_read): ... this. All users updated.
5956 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
5957 (grub_crypto_cbc_decrypt): Likewise.
5958 (grub_crypto_hmac_write): Likewise.
5959 (grub_crypto_hmac_buffer): Likewise.
5960 (grub_password_get): Extend to util.
5961 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
5962 New member modname.
5963 (gcry_md_spec) [GRUB_UTIL]: Likewise.
5964 * include/grub/cryptodisk.h: New file.
5965 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
5966 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
5967 LUKS and GELI.
5968 (grub_util_follow_gpart_up): New proto.
5969 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
5970 (grub_util_fd_read): Likewise.
5971 (grub_cryptodisk_cheat_mount): Likewise.
5972 (grub_util_cryptodisk_print_uuid): Likewise.
5973 (grub_util_get_fd_sectors): Likewise.
5974 * util/grub-fstest.c (mount_crypt): New var.
5975 (fstest): Mount crypto if requested.
5976 (options): New option -C.
5977 (argp_parser): Parse -C.
5978 (main): Init and fini gcry.
5979 * util/grub-install.in: Support cryptodisk install.
5980 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
5981 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
5982 cryptodisk.
5983 (prepare_grub_to_access_device): Likewise.
5984 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
5985 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
5986 (probe_cryptodisk_uuid): New function.
5987 (probe_abstraction): Likewise.
5988 (probe): Use new functions.
5989 * util/import_gcry.py: Create Makefile.utilgcry.def.
5990 Add modname member.
5991
5992 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5993
5994 Lazy device scanning.
5995
5996 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
5997 (grub-setup): Remove util/raid.c.
5998 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
5999 * grub-core/disk/lvm.c (scan_depth): New variable.
6000 (grub_lvm_iterate): Rescan if necessary.
6001 (find_lv): New function based on grub_lvm_open.
6002 (grub_lvm_open): Use find_lv. Rescan on error.
6003 (is_node_readable): New function.
6004 (is_lv_readable): Likewise.
6005 (grub_lvm_scan_device): Skip already found disks.
6006 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
6007 Stop if searched device is found and readable.
6008 * grub-core/disk/raid.c (inscnt): New variable.
6009 (scan_depth): Likewise.
6010 (scan_devices): New function based on grub_raid_register. Abort if
6011 looked for device is found.
6012 (grub_raid_iterate): Rescan if needed.
6013 (find_array): NEw function based on -grub_raid_open.
6014 (grub_raid_open): Use find_array and rescan.
6015 (insert_array): Set became_readable_at.
6016 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
6017 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
6018 New function.
6019 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
6020 (grub_util_pull_device): New function.
6021 (grub_util_get_grub_dev): Call grub_util_pull_device.
6022 * util/raid.c: Moved to ..
6023 * grub-core/kern/emu/raid.c: ... here.
6024 (grub_util_raid_getmembers): New parameter "bootable".
6025 All users updated. Support 1.x.
6026 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
6027 All users updated.
6028 * include/grub/disk.h (grub_disk_pull_t): New enum.
6029 (grub_disk_dev): Change iterate prototype.
6030 All users updated.
6031 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
6032 New proto.
6033 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
6034 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
6035 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
6036 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
6037 All users updated.
6038 * include/grub/util/raid.h: Removed.
6039
6040 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
6041
6042 * po/POTFILES.in: Regenerate.
6043
6044 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 Unify sparc init with other ieee1275.
6047
6048 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
6049 instead of kern/sparc64/ieee1275/init.c.
6050 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
6051 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
6052 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
6053 grub/machine/kernel.h.
6054 (grub_ieee1275_original_stack) [__sparc__]: New variable.
6055 (grub_claim_heap) [__sparc__]: Use sparc version.
6056 (grub_machine_init): Moved args parsing to
6057 (grub_parse_cmdline): ...this.
6058 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
6059 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
6060 New definition.
6061 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
6062
6063 Move BOOTP to separate file.
6064
6065 * grub-core/Makefile.core.def (net): Add net/bootp.c.
6066 * grub-core/net/net.c: Move all BOOTP functions to
6067 * grub-core/net/bootp.c: ... here.
6068
6069 Use frame interface on PXE.
6070
6071 * grub-core/Makefile.core.def (pxecmd): Removed.
6072 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
6073 * grub-core/commands/i386/pc/pxecmd.c: Removed.
6074 * grub-core/i386/pc/pxe.c: Moved from here ...
6075 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
6076 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
6077 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
6078
6079 EFI network support.
6080
6081 * grub-core/Makefile.core.def (efinet): New module.
6082 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
6083 here...
6084 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
6085 All users updated.
6086 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
6087 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
6088 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
6089 * grub-core/net/drivers/efi/efinet.c: New file.
6090 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
6091 (grub_efi_net_config): New extern var.
6092
6093 Various cleanups and bugfixes.
6094
6095 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
6096 error.
6097 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
6098 disk declared as partition.
6099 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
6100 leak on failure.
6101 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
6102 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
6103 (grub_debug_zalloc): Likewise.
6104 (grub_debug_realloc): Likewise.
6105 (grub_debug_memalign): Likewise.
6106 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
6107 Check that target is IPv4.
6108 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
6109 local-mac-address as fallback.
6110 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
6111 memory leak.
6112 * grub-core/net/ip.c (ipchksum): Rename to ...
6113 (grub_net_ip_chksum): ... this. All users updated.
6114 (grub_net_recv_ip_packets): Special handling for DHCP.
6115 * util/grub-mkimage.c (generate_image): Zero-out aout header.
6116
6117 Unify prefix handling
6118
6119 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
6120 (grub_machine_get_bootlocation): ... this.
6121 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
6122 (grub_machine_get_bootlocation): ... this.
6123 (grub_prefix): New variable.
6124 (prefix): Removed.
6125 (root_dev): New variable.
6126 (dir): Likewise.
6127 (main): Use new variables.
6128 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
6129 Revamped into ...
6130 (grub_machine_get_bootlocation): ... this.
6131 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
6132 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
6133 (grub_machine_get_bootlocation): ... this.
6134 (grub_machine_set_prefix): Removed.
6135 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
6136 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
6137 Revamped into ...
6138 (grub_machine_get_bootlocation): ... this.
6139 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
6140 (grub_set_prefix_and_root): ... this. All users updated.
6141 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
6142 Revamped into ...
6143 (grub_machine_get_bootlocation): ... this.
6144 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
6145 (grub_machine_get_bootlocation): New proto.
6146 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
6147
6148 Less intrusive and more reliable seek on network implementation.
6149
6150 * grub-core/kern/file.c (grub_file_net_seek): Removed.
6151 (grub_file_seek): Don't call grub_file_net_seek.
6152 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
6153 (grub_net_fs_read_real): .. this.
6154 (grub_net_seek_real): Use net->offset.
6155 (grub_net_fs_read): Seek if necessary.
6156
6157 Unify IEEE1275 netwotk config with the other platforms.
6158
6159 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
6160 New variable.
6161 (grub_machine_get_bootlocation): Support network.
6162 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
6163 Support type and device parsing.
6164 (grub_ieee1275_get_device_type): New function.
6165 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
6166 into ...
6167 (grub_ieee1275_net_config_real): ... this.
6168 (grub_ofnet_probecards): Removed.
6169 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
6170 * include/grub/ieee1275/ofnet.h: Removed.
6171 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
6172 extern var.
6173 (grub_ieee1275_get_device_type): New function.
6174
6175 Unify network device closing across platforms and make more robust.
6176
6177 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
6178 grub_grubnet_fini.
6179 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
6180 already.
6181 * grub-core/net/net.c (grub_net_network_level_interface_register):
6182 Update num_ifaces.
6183 (grub_net_card_unregister): Close all interfaces.
6184 (receive_packets): Don't poll if no iterfaces are registered.
6185 Open if necessary.
6186 (grub_net_fini_hw): New function.
6187 (grub_net_restore_hw): Likewise.
6188 (fini_hnd): New variable.
6189 (GRUB_MOD_INIT): Register preboot hook.
6190 (GRUB_MOD_FINI): Run and unregister preboot hook.
6191
6192 Poll network cards when idle.
6193
6194 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
6195 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
6196 * grub-core/net/net.c (receive_packets): Save last poll time.
6197 (grub_net_poll_cards_idle_real): New function.
6198 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
6199 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
6200 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
6201
6202 Rename ofnet interfaces.
6203
6204 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
6205 (grub_ofnet_findcards): Use ofnet_%s names.
6206
6207 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
6208
6209 Cleanup socket opening.
6210
6211 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
6212 (grub_net_fs_close): Likewise.
6213 (grub_net_fs_read_real): Use eof member.
6214 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
6215 (+grub_net_udp_close): New inline function.
6216
6217 * include/grub/net/tftp.h: Moved to the top of ...
6218 * grub-core/net/tftp.c: ... here.
6219 * include/grub/net/ip.h: Moved mostly to the top of ...
6220 * grub-core/net/ip.c: ... here.
6221 * include/grub/net/ethernet.h: Moved mostly to the top of ...
6222 * grub-core/net/ethernet.c: ... here.
6223
6224 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
6225
6226 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
6227 FS name.
6228
6229 * include/grub/net/ip.h (ipv4_ini): Removed.
6230 (ipv4_fini): Likewise.
6231
6232 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
6233 (grub_net_send_ip_packets): Likewise.
6234
6235 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
6238 grub_read_cmos prototype.
6239
6240 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6241
6242 VGA text support in qemu-mips
6243
6244 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
6245 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
6246 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
6247 text.
6248 * grub-core/kern/i386/qemu/init.c: Renamed to ...
6249 * grub-core/kern/vga_init.c: ... this.
6250 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
6251 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
6252 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
6253 Adjust.
6254 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
6255 GRUB_MACHINE_PCI_IO_BASE.
6256
6257 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 MIPS qemu flash support.
6260
6261 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
6262 magic.
6263 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
6264 (grub_machine_init): Probe memory if its size isn't known.
6265 * util/grub-mkimage.c (image_targets): Add flash targets.
6266 (generate_image): Handle flash targets.
6267
6268 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6269
6270 MIPS qemu at_keyboard support.
6271
6272 * gentpl.py (videoinkernel): Add qemu-mips.
6273 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
6274 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
6275 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
6276 modules.
6277 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
6278 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
6279 * grub-core/term/serial.c (grub_serial_register)
6280 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
6281
6282 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 CMOS support on sparc.
6285
6286 * gentpl.py (cmos): Add powerpc and sparc.
6287 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
6288 powerpc and sparc.
6289 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
6290 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
6291 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
6292 grub_set_datetime_cmos.
6293 * grub-core/lib/ieee1275/cmos.c: New file.
6294 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
6295 (find_rtc): Set no_ieee1275_rtc on error.
6296 (grub_get_datetime): Call grub_get_datetime_cmos on error.
6297 (grub_set_datetime): Call grub_set_datetime_cmos on error.
6298 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
6299 fail. Move value to argument. All users updated
6300 (grub_cmos_write): Likewise.
6301 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
6302 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
6303 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
6304 grub_get_datetime_cmos and grub_set_datetime_cmos.
6305
6306 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6307
6308 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
6309 sourcing grub-mkconfig_lib.
6310 * util/update-grub_lib.in: Likewise.
6311 * util/grub.d/00_header.in: Likewise.
6312 * util/grub.d/10_hurd.in: Likewise.
6313 * util/grub.d/10_kfreebsd.in: Likewise.
6314 * util/grub.d/10_linux.in: Likewise.
6315 * util/grub.d/10_netbsd.in: Likewise.
6316 * util/grub.d/10_windows.in: Likewise.
6317 * util/grub.d/20_linux_xen.in: Likewise.
6318 * util/grub.d/30_os-prober.in: Likewise.
6319
6320 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
6321
6322 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6323 default_bg_color rather than black.
6324 (grub_gfxterm_fullscreen): Likewise.
6325 (grub_gfxterm_background_color_cmd): Save new background color in
6326 default_bg_color.
6327
6328 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6329
6330 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
6331
6332 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6333
6334 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
6335 mismerge.
6336
6337 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 Chainloading on coreboot support.
6340
6341 * grub-core/Makefile.core.def (chain): Add coreboot.
6342 * grub-core/loader/i386/coreboot/chainloader.c: New file.
6343
6344 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
6347 if it happens.
6348
6349 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 Implement time command.
6352
6353 * grub-core/Makefile.core.def (time): New module.
6354 * grub-core/commands/time.c: New file.
6355 * grub-core/script/parser.y: Remove "time" keyword.
6356 * grub-core/script/yylex.l: Likewise.
6357
6358 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
6361
6362 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
6365 when handling leftovers.
6366
6367 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
6370 so that help2man doesn't fail.
6371
6372 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6373
6374 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
6375 type in pointers on sparc64.
6376 (get_card_packet): Likewise.
6377
6378 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
6379
6380 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
6381 with `*'.
6382 (grub_cmd_videoinfo): Fetch current video mode.
6383
6384 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
6387 because of underlying system restrictions.
6388
6389 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
6392 necessary.
6393
6394 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 Coreboot video support.
6397
6398 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
6399 (vbe): Likewise.
6400 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
6401 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
6402 here ...
6403 * grub-core/kern/i386/int.S: ... here.
6404 * grub-core/video/i386/pc/vbe.c: Updated includes.
6405 * grub-core/video/i386/pc/vga.c: Likewise.
6406 * include/grub/i386/coreboot/memory.h
6407 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
6408 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
6409 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
6410 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
6411 Disable interrupts.
6412 * include/grub/i386/pc/vga.h: Removed. All users updated.
6413
6414 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
6417 definitions for dprintf.
6418 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
6419
6420 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
6423 prototype.
6424 (get_card_packet): Likewise.
6425
6426 2011-06-26 Yves Blusseau <blusseau@zetam.org>
6427
6428 Display the path of the file when file is not found
6429
6430 * grub-core/fs/fat.c: Display the filename when file is not found.
6431 * grub-core/fs/fshelp.c: Likewise.
6432 * grub-core/fs/hfs.c: Likewise.
6433 * grub-core/fs/jfs.c: Likewise.
6434 * grub-core/fs/minix.c: Likewise.
6435 * grub-core/fs/ufs.c: Likewise.
6436 * grub-core/fs/btrfs.c: Likewise.
6437 * grub-core/commands/i386/pc/play.c: Likewise.
6438
6439 2011-06-26 Szymon Janc <szymon@janc.net.pl>
6440
6441 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
6442 pointer checks before calling grub_free().
6443 * grub-core/commands/wildcard.c (match_devices): Likewise.
6444 * grub-core/commands/wildcard.c (match_files): Likewise.
6445 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
6446 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
6447 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
6448 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
6449 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
6450 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
6451 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
6452 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
6453 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
6454
6455 2011-06-25 Patrick <p55@mailinator.com>
6456
6457 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
6458
6459 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
6462 (grub_pxe_send): Likewise.
6463 (GRUB_MOD_INIT): Fix types.
6464
6465 2011-06-24 Szymon Janc <szymon@janc.net.pl>
6466
6467 * grub-core/io/xzio.c: Fix code style issues
6468
6469 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6470 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
6471
6472 Network infrastructure.
6473 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
6474
6475 * include/grub/net/arp.h: New file.
6476 * include/grub/net/device.h: Likewise.
6477 * include/grub/net/ethernet.h: Likewise.
6478 * include/grub/net/ip.h: Likewise.
6479 * include/grub/net/netbuff.h: Likewise.
6480 * include/grub/net/tftp.h: Likewise.
6481 * include/grub/net/udp.h: Likewise.
6482 * include/grub/ieee1275/ofnet.h: Likewise.
6483 * include/grub/emu/export.h: Likewise.
6484 * include/grub/net.h: Likewise.
6485 * grub-core/net/arp.c: Likewise.
6486 * grub-core/net/ethernet.c: Likewise.
6487 * grub-core/net/ip.c: Likewise.
6488 * grub-core/net/udp.c: Likewise.
6489 * grub-core/net/tftp.c: Likewise.
6490 * grub-core/net/netbuff.c: Likewise.
6491 * grub-core/net/net.c: Likewise.
6492 * grub-core/net/drivers/emu/emunet.c: Likewise.
6493 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
6494 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
6495 export.h.
6496 * grub-core/Makefile.core.def (net): New module.
6497 (tftp): Likewise.
6498 (ofnet): Likewise.
6499 (emunet): Likewise.
6500 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
6501 network protocols.
6502 * grub-core/kern/device.c (grub_net_open) : New variable.
6503 (grub_device_open): Handle network device.
6504 (grub_device_close): Likewise.
6505 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
6506 (grub_grubnet_fini): Likewise.
6507 (grub_file_seek): Seek in network device.
6508 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
6509 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
6510 network root.
6511 (grub_machine_fini): Call grub_grubnet_fini.
6512 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
6513 network.
6514 (grub_ieee1275_get_aliasdevname): New function.
6515 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6516 Add unofficial Solaris network info.
6517 (grub_multiboot_make_mbi): Likewise.
6518 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
6519 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
6520 * include/grub/device.h (grub_fs): Removed.
6521 * include/grub/err.h (grub_err_t): Add network-related values.
6522 * include/grub/i386/pc/pxe.h: Removed bootp parts.
6523 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
6524 (grub_ieee1275_get_aliasdevname): New proto.
6525 * include/grub/net.h: Rewritten.
6526
6527 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
6530 names.
6531
6532 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
6535 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
6536 it truncates the output.
6537 Reported by: Ximin Luo.
6538
6539 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
6542
6543 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
6546 partmap before abstraction.
6547
6548 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
6549
6550 * util/grub-mkconfig_lib.in: Add missing quotes.
6551
6552 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
6555 old method if mountinfo would return /dev/root and /dev/root doesn't
6556 exist.
6557
6558 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6559
6560 ZFS zlib support
6561
6562 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
6563 (decomp_table): Add zlib entries.
6564 (zio_read): USe 8 bits for compression function rather than 3.
6565 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
6566
6567 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6568
6569 * grub-core/disk/ahci.c: Add missing license statements.
6570 * grub-core/fs/romfs.c: Likewise.
6571 * grub-core/lib/ia64/setjmp.S: Likewise.
6572 * grub-core/loader/i386/pc/freedos.c: Likewise.
6573 * grub-core/loader/ia64/efi/linux.c: Likewise.
6574 * grub-core/video/colors.c: Likewise.
6575 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
6576
6577 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 AHCI support.
6580
6581 * grub-core/Makefile.core.def (ata_pthru): Removed.
6582 (ahci): New module.
6583 (pata): Likewise.
6584 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
6585 on unload.
6586 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
6587 readwrite.
6588 (grub_hdparm_do_check_powermode_cmd): Likewise.
6589 (grub_hdparm_do_smart_cmd): Likewise.
6590 (grub_hdparm_set_val_cmd): Likewise.
6591 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
6592 * grub-core/disk/ahci.c: New file.
6593 * grub-core/disk/ata.c: Factor out the low-level part into ...
6594 * grub-core/disk/pata.c: ... here.
6595 * grub-core/disk/ata_pthru.c: Contents moved to ...
6596 * grub-core/disk/pata.c: ... here.
6597 * grub-core/disk/scsi.c (grub_scsi_names): New array.
6598 (grub_scsi_iterate): Use grub_scsi_names.
6599 (grub_scsi_open): Likewise.
6600 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
6601 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
6602 (grub_ata_regs_t): New struct.
6603 (grub_disk_ata_pass_through_parms): Likewise.
6604 (grub_ata_device): Renamed to ...
6605 (grub_ata): ... this.
6606 (grub_ata_dev): New struct.
6607 Removed all low-level inline functions.
6608 * include/grub/scsi.h: Add PATA and AHCI subsystems.
6609 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
6610 iterate hooks and open. All users updated.
6611 * util/grub-install.in: Handle AHCI disk module.
6612
6613 2011-06-23 Szymon Janc <szymon@janc.net.pl>
6614
6615 Add support for DRI and RSTn markers in JPEG files.
6616
6617 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
6618 (JPEG_MARKER_RST0): Likewise.
6619 (JPEG_MARKER_RST1): Likewise.
6620 (JPEG_MARKER_RST2): Likewise.
6621 (JPEG_MARKER_RST3): Likewise.
6622 (JPEG_MARKER_RST4): Likewise.
6623 (JPEG_MARKER_RST5): Likewise.
6624 (JPEG_MARKER_RST6): Likewise.
6625 (JPEG_MARKER_RST7): Likewise.
6626 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
6627 (grub_jpeg_decode_dri): New function.
6628 (grub_jpeg_decode_sos): Move image data related part into
6629 grub_jpeg_decode_data function.
6630 (grub_jpeg_decode_data): New function.
6631 (grub_jpeg_reset): New function.
6632 (grub_jpeg_decode_jpeg): Handle new markers.
6633
6634 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 * util/ieee1275/ofpath.c (check_sas): Close fd.
6637 (main): Free of_path.
6638 Reported by: David Volgyes <dvolgyes>.
6639
6640 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6641
6642 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
6643 Reported by: David Volgyes <dvolgyes>.
6644
6645 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
6648 file after stat.
6649 Reported by: David Volgyes <dvolgyes>.
6650
6651 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
6654
6655 Reported by: David Volgyes <dvolgyes>.
6656
6657 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6658
6659 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
6660 Prevent memory leak.
6661
6662 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
6665 (main): Close file.
6666 Reported by: David Volgyes <dvolgyes>.
6667
6668 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
6671 to continue if allocation is failed.
6672
6673 Reported by: David Volgyes <dvolgyes>.
6674
6675 2011-06-23 David Volgyes <dvolgyes>
6676
6677 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
6678 dereference.
6679
6680 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 Fix spurious warning.
6683
6684 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
6685 (acorn_partition_map_find): Use .bin member.
6686
6687 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6688
6689 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
6690 /dev/root as a valid device.
6691
6692 2011-06-23 Jim Meyering <meyering@redhat.com>
6693
6694 Avoid NULL deref in grub_device_open.
6695
6696 * grub-core/kern/device.c (grub_device_open): Don't dereference
6697 a NULL pointer upon failed grub_env_get.
6698
6699 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6700
6701 Support non-512B sectors and agglomerate reads.
6702
6703 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
6704 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
6705 (disk_io_guid): Removed.
6706 (make_devices): Locate solely by BlockIO.
6707 (grub_efidisk_open): Fill log_sector_size and total_sectors.
6708 (grub_efidisk_read): Use read_blocks.
6709 (grub_efidisk_write): Use write_blocks.
6710 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
6711 log_sector_size.
6712 (get_safe_sectors): Handle non-512B sectors.
6713 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
6714 sectors.
6715 (grub_biosdisk_write): Handle non-512B sectors.
6716 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
6717 (grub_scsi_read): Remove special non-512B block handling (now handled
6718 one level up).
6719 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
6720 and do sanity checks.
6721 (grub_disk_adjust_range): Handle non-512B sectors.
6722 (transform_sector): New function.
6723 (grub_disk_read_small): Likewise.
6724 (grub_disk_read): Rewritten.
6725 (grub_disk_write): Handle non-512B sectors.
6726 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
6727 log_sector_size.
6728 (open_device): Use log_sector_size.
6729 (grub_util_biosdisk_read): Likewise.
6730 (grub_util_biosdisk_write): Likewise.
6731 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
6732 non-512B sectors.
6733 (pc_partition_map_embed): Likewise.
6734 * include/grub/disk.h (grub_disk): New field log_sector_size.
6735 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
6736 (GRUB_DISK_CACHE_BITS): Increased to 6.
6737 * util/grub-fstest.c (fstest): New command testload.
6738 (argp_parser): Likewise.
6739
6740 2011-06-16 Robert Millan <rmh@gnu.org>
6741
6742 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
6743 `ata' driver on kernel of FreeBSD 9.
6744
6745 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
6746 (get_ataraid_disk_name): New functions.
6747 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
6748 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
6749 get_ataraid_disk_name() and get_ada_disk_name().
6750
6751 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
6752
6753 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
6754 input format.
6755
6756 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
6757
6758 * docs/grub.texi (Obtaining and Building GRUB): Substitute
6759 `ftp.gnu.org' for `alpha.gnu.org'.
6760
6761 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6762
6763 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
6764 partitions under /dev/disk/by-id/.
6765
6766 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6767
6768 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
6769 after ten consecutive open failures. Scanning all the way up to
6770 10000 is excessive and can cause serious performance problems in
6771 some configurations.
6772 Fixes Ubuntu bug #787461.
6773
6774 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
6777 opening new one.
6778
6779 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
6780 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 Don't stat devices unless we have to.
6783
6784 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
6785 dir == /dev/mapper.
6786 (grub_guess_root_device): Use already known os_dev if possible.
6787 * grub-core/kern/emu/hostdisk.c
6788 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
6789 if device is known to be a dm one.
6790
6791 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
6792
6793 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
6794 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
6795 Reported by: Pawel Tecza.
6796
6797 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
6800 (lsefisystab): Likewise.
6801 (lssal): Likewise.
6802 (lsefimmap): Likewise.
6803 (hdparm): Enable on qemu-mips.
6804 (setjmp): Add ia64 nodist.
6805 (serial): Simplify tags.
6806
6807 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6808
6809 * Makefile.util.def (grub-ofpathname): Install manual page.
6810
6811 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6812
6813 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
6814
6815 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6816
6817 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
6818
6819 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6820
6821 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
6822 into dprintf.
6823
6824 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 Use full 64-bit division.
6827
6828 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
6829 (grub_divmod64): ... this.
6830 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
6831 version.
6832
6833 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6834
6835 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
6836 `source'.
6837
6838 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6839
6840 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
6841 to avoid accidents when debugging with 'sh -x'.
6842 * grub-core/gensyminfo.sh.in: Likewise.
6843 * tests/example_scripted_test.in: Likewise.
6844 * tests/grub_cmd_regexp.in: Likewise.
6845 * tests/grub_script_blanklines.in: Likewise.
6846 * tests/grub_script_dollar.in: Likewise.
6847 * tests/grub_script_expansion.in: Likewise.
6848 * tests/grub_script_final_semicolon.in: Likewise.
6849 * tests/partmap_test.in: Likewise.
6850 * tests/util/grub-shell-tester.in: Likewise.
6851 * tests/util/grub-shell.in: Likewise.
6852
6853 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6854
6855 Move gfxmenu color handling to video, so that gfxterm can use it
6856 too.
6857
6858 * grub-core/gfxmenu/named_colors.c: Move to ...
6859 * grub-core/video/colors.c: ... here. Rename
6860 grub_gui_get_named_color to grub_video_get_named_color.
6861 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
6862 * grub-core/video/colors.c (my_isxdigit): ... here.
6863 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
6864 Move to ...
6865 * grub-core/video/colors.c (parse_hex_color_component): ... here.
6866 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
6867 to ...
6868 * grub-core/video/colors.c (grub_video_parse_color): ... here.
6869
6870 * include/grub/gui.h (grub_gui_color_t): Move to ...
6871 * include/grub/video.h (grub_video_rgba_color_t): ... here.
6872 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
6873 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
6874 * include/grub/gui.h (grub_gui_map_color): Move to ...
6875 * include/grub/video.h (grub_video_map_rgba_color): ... here.
6876 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
6877 to ...
6878 * include/grub/video.h (grub_video_get_named_color): ... here.
6879 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
6880 * include/grub/video.h (grub_video_parse_color): ... here.
6881
6882 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
6883 video/colors.c.
6884 (gfxmenu): Remove gfxmenu/named_colors.c.
6885 (video) [videomodules]: Add video/colors.c.
6886
6887 Add a background_color command.
6888
6889 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
6890 function.
6891 (GRUB_MOD_INIT): Register background_color command.
6892 (GRUB_MOD_FINI): Unregister background_color command.
6893 (redraw_screen_rect): Allow blend/replace of text layer to be
6894 controlled independently from whether there is a background bitmap.
6895 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
6896 changing bitmap.
6897
6898 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 Patch BPB in ntldr and chainloader --bpb.
6901
6902 * grub-core/fs/fat.c: Include grub/fat.h.
6903 (grub_fat_bpb): Moved to ...
6904 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
6905 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
6906 grub/ntfs.h.
6907 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
6908 Moved from here...
6909 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
6910 here.
6911 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
6912 New function.
6913 (grub_chainloader_cmd): Patch BPB if --bpb is given.
6914 (GRUB_MOD_INIT): Show --bpb.
6915 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
6916 * grub-core/normal/main.c (features): New variable.
6917 (GRUB_MOD_INIT): Set feature_* variables.
6918 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
6919 proto.
6920 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
6921
6922 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
6925 for cleanness.
6926
6927 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6928
6929 FreeDOS direct loading support.
6930
6931 * docs/grub.texi (Supported OS): Add FreeDOS.
6932 * grub-core/Makefile.core.def (freedos): New module.
6933 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
6934 variable.
6935 (grub_relocator16_boot): Handle %ebx.
6936 * grub-core/lib/i386/relocator16.S: Likewise.
6937 * grub-core/loader/i386/pc/freedos.c: New file.
6938
6939 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 Long Linux command line support.
6942
6943 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6944 (maximal_cmdline_size): New variable.
6945 (allocate_pages): Use maximal_cmdline_size.
6946 (grub_cmd_linux): Set and use maximal_cmdline_size.
6947 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6948 (allocate_pages): Use maximal_cmdline_size.
6949 (grub_cmd_linux): Set and use maximal_cmdline_size.
6950 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
6951 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
6952 and cmdline_size.
6953
6954 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6955 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6956
6957 Improve devmapper support
6958
6959 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
6960 (grub_util_is_lvm): New function.
6961 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
6962 than lvm if not dmraid.
6963 Handle mapped md nodes.
6964 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
6965 (grub_util_device_is_mapped): ... this. Make always available. All users
6966 updated.
6967 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
6968 (convert_system_partition_to_system_disk): Handle lvm, mpath and
6969 dmraid nodes.
6970 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
6971
6972 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6973
6974 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
6975
6976 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
6977 * grub-core/modinfo.sh.in: New file.
6978 * grub-core/Makefile.core.def (modinfo.sh): New script.
6979 * util/grub-mknetdir.in: Use modinfo.sh.
6980 * util/grub-mkrescue.in: Likewise.
6981
6982 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
6985 Fix potential usage of Elf32 instead of Elf64 when compiling on
6986 32-bit architecture. Add endianness macros while on it.
6987
6988 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 Use mipsel- rather than mips- in directories involving mipsel ports to
6991 allow both endiannesses coexist.
6992
6993 * configure.ac: proparate target_cpu=mipsel rather than resetting to
6994 mips. All conditions adjusted.
6995 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
6996 variable.
6997 * util/grub-install.in: Adjust conditions to take renaming into account.
6998 * util/grub-mkimage.c (image_targets): Likewise. New target
6999 mips-qemu_mips-elf for bigendian mips.
7000
7001 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 Avoid unnecessary copying on MIPS.
7004
7005 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
7006 early if src == dest.
7007 * util/grub-mkimage.c (generate_image): Arange for src == dest if
7008 compression is none.
7009
7010 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 Reduce memory footprint on SGI by putting modules before the kernel
7013 as opposed to after.
7014
7015 * grub-core/Makefile.core.def (kernel): Increase linking address.
7016 (none_decompress): Likewise.
7017 (xz_decompress): Likewise.
7018 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
7019 address.
7020 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
7021 layout change.
7022 (grub_arch_modules_addr): New function.
7023 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
7024 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
7025 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
7026 here.
7027 * grub-core/kern/mips/startup.S (total_size): Rename to ...
7028 (grub_total_modules_size): ... this. Make global.
7029 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
7030 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
7031 New definition.
7032 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
7033 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
7034 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
7035 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
7036 * util/grub-mkimage.c (image_target_desc): New flag
7037 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
7038 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
7039 (generate_image): Handle images with modules before kernel.
7040
7041 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7042
7043 Prevent potential loss of memory map by overwrite on qemu-mips.
7044
7045 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
7046 Save ram size in $s4.
7047 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
7048 All users changed to grub_arch_memsize.
7049 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
7050 Loongson.
7051 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
7052 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
7053 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
7054 external variable.
7055
7056 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7057
7058 * .bzrignore: Remove grub-dumpbios.
7059
7060 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7061
7062 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
7063 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
7064 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
7065 existing options which append).
7066 * docs/grub.texi (Simple configuration): Document new options.
7067 Reported by: Ian Jackson. Fixes Debian bug #617538.
7068
7069 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7070
7071 * util/grub-fstest.c (cmd_cat): New function.
7072 (fstest): Handle CMD_CAT.
7073 (options): Add cat.
7074 (argp_parser): Handle cat.
7075
7076 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7077
7078 * Makefile.util.def (grub-bin2h): Don't install.
7079 * docs/man/grub-bin2h.h2m: Remove.
7080
7081 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7082
7083 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
7084 place.
7085
7086 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7087
7088 Reenable qemu-mips port.
7089
7090 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
7091 Fix small arc bug while on it.
7092 * gentpl.py: Handle qemu_mips.
7093 * grub-core/Makefile.am: Likewise.
7094 * grub-core/Makefile.core.def: Likewise.
7095 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
7096 inappropriate includes.
7097 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
7098 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
7099 * grub-core/kern/main.c (grub_modules_get_end)
7100 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
7101 * grub-core/kern/mips/qemu-mips: Moved to ..
7102 * grub-core/kern/mips/qemu_mips: ... this.
7103 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
7104 (grub_machine_init): Call terminfo_init and serial_init.
7105 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
7106 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
7107 New variable.
7108 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
7109 parameter passing.
7110 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
7111 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
7112 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
7113 * include/grub/mips/qemu_mips/cmos.h: New file.
7114 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
7115 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
7116 Removed.
7117 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
7118 Use correct mips-style address.
7119 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
7120 (GRUB_TICKS_PER_SECOND): Removed.
7121 (grub_get_rtc): Likewise.
7122 (grub_cpu_idle): Likewise.
7123 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
7124 New definition.
7125 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
7126 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
7127 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
7128 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
7129 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
7130 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
7131 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
7132 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
7133
7134 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 SGI ARCS port.
7137
7138 * Makefile.util.def (libgrubmods.a): Add dvh.c.
7139 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
7140 platforms.
7141 * configure.ac: New target mips-arc.
7142 * gentpl.py: Likewise.
7143 * grub-core/Makefile.am: Likewise.
7144 * grub-core/Makefile.core.def: Likewise.
7145 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
7146 (none_decompress): Likewise.
7147 (lsdev): New module.
7148 (datetime): Use lib/arc/datetime.c on ARC.
7149 (part_dvh): New module.
7150 * grub-core/commands/arc/lsdev.c: New file.
7151 * grub-core/disk/arc/arcdisk.c: Likewise.
7152 * grub-core/kern/mips/arc/init.c: Likewise.
7153 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
7154 aligned addresses.
7155 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
7156 support.
7157 (grub_arch_dl_relocate_symbols): Likewise.
7158 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
7159 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
7160 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
7161 platforms.
7162 * grub-core/lib/arc/datetime.c: New file.
7163 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
7164 pci.h on non-loongson.
7165 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
7166 (grub_linux_boot): Set unused registers to 0.
7167 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
7168 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
7169 * grub-core/mmap/mips/uppermem.c: ...here.
7170 * grub-core/partmap/dvh.c: New file.
7171 * grub-core/term/arc/console.c: Likewise.
7172 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
7173 (grub_terminfo_set_current): Add terminal "arc".
7174 (grub_terminfo_readkey): Support ARC sequences.
7175 * include/grub/arc/arc.h: New file.
7176 * include/grub/arc/console.h: Likewise.
7177 * include/grub/disk.h (grub_disk_dev_id): Add
7178 GRUB_DISK_DEVICE_ARCDISK_ID.
7179 * include/grub/mips/arc/kernel.h: New file.
7180 * include/grub/mips/arc/memory.h: Likewise.
7181 * include/grub/mips/arc/time.h: Likewise.
7182 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
7183 * include/grub/mips/kernel.h (grub_halt): ... here.
7184 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
7185 here...
7186 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
7187 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
7188 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
7189 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
7190 proto.
7191 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
7192 from here ...
7193 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
7194 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
7195 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
7196 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
7197 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
7198 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
7199 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
7200 (grub_phys_addr_t): Moved from here ...
7201 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
7202 (grub_vtop): Moved from here ...
7203 * include/grub/mips/memory.h (grub_vtop): ... here.
7204 (grub_map_memory): Moved from here ...
7205 * include/grub/mips/memory.h (grub_map_memory): ... here.
7206 (grub_unmap_memory): Moved from here ...
7207 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
7208 (grub_machine_mmap_iterate): Moved from here ...
7209 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
7210 (grub_mmap_get_lower): Moved from here ...
7211 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
7212 (grub_mmap_get_upper): Moved from here ...
7213 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
7214 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7215 here ...
7216 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7217 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
7218 here ...
7219 * include/grub/mips/time.h (grub_get_rtc): ... here.
7220 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7221 here ...
7222 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7223 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
7224 here ...
7225 * include/grub/mips/time.h (grub_cpu_idle): ... here.
7226 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
7227 definition.
7228 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
7229 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
7230 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
7231 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
7232 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
7233 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
7234 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
7235 (GRUB_MACHINE_LINK_ADDR): Likewise.
7236 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
7237 to 6.
7238 * util/grub-install.in: Run dvhtool on ARC.
7239 * util/grub-mkimage.c (image_targets): Add mips-arc.
7240 (generate_image): Handle ECOFF output for mips-arc.
7241
7242 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7243
7244 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
7245 blocks.
7246
7247 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7248
7249 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
7250 after enabling port.
7251
7252 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 Skip incorrect USB devices.
7255
7256 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
7257 configcnt == 0.
7258 * include/grub/usb.h (grub_usb_err_t): New enum value
7259 GRUB_USB_ERR_BADDEVICE.
7260
7261 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7262
7263 Fuloong video init support.
7264
7265 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
7266 well.
7267 (grub_vga_read_arx): New function.
7268 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
7269 definition.
7270 (framebuffer): New members io, mmioptr and mmiobase.
7271 (read_sis_cmd): New function.
7272 (write_sis_cmd): Likewise.
7273 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
7274 rather than 640x400.
7275 * grub-core/video/sis315_init.c: New file.
7276
7277 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7278
7279 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
7280 non-loongson.
7281 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
7282 to grub_dl_register_symbol.
7283
7284 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7285
7286 Fix compilation errors.
7287
7288 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
7289 potentially unused.
7290 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
7291 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
7292 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
7293 to loongson machines.
7294
7295 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7296
7297 Several FS mtime support.
7298
7299 * grub-core/fs/affs.c (grub_affs_time): New struct.
7300 (grub_affs_file): New field mtime.
7301 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
7302 type. Removed 'size'. New field 'di'. All users updated.
7303 (grub_affs_mount): Simplify checsum checking.
7304 (grub_affs_iterate_dir): New helper grub_affs_create_node.
7305 (grub_affs_dir): Handle mtime.
7306 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
7307 (grub_cpio_dir): Likewise.
7308 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
7309 (grub_hfs_filerec): New field mtime.
7310 (grub_hfs_dir): Handle mtime.
7311 (grub_hfs_mtime): New function.
7312 (grub_hfs_fs): Register grub_hfs_mtime.
7313 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
7314 (grub_iso9660_dir): New field mtime.
7315 (grub_fshelp_node): New field dirent.
7316 (iso9660_to_unixtime): New function.
7317 (iso9660_to_unixtime2): Likewise.
7318 (grub_iso9660_read_symlink): Use node->dirent.
7319 (grub_iso9660_iterate_dir): Likewise.
7320 (grub_iso9660_dir): Set mtime.
7321 (grub_iso9660_mtime): New function.
7322 (grub_iso9660_fs): Register grub_iso9660_mtime.
7323 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
7324 (grub_jfs_inode): New fields atime, ctime and mtime.
7325 (grub_jfs_dir): Set mtime.
7326 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7327 * grub-core/fs/ntfs.c (list_file): Set mtime.
7328 (grub_ntfs_dir): Likewise.
7329 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
7330 (grub_reiserfs_iterate_dir): Set mtime.
7331 (grub_reiserfs_dir): Likewise.
7332 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
7333 (grub_fshelp_node): Likewise.
7334 (grub_sfs_iterate_dir): Set mtime.
7335 (grub_sfs_dir): Likewise.
7336 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
7337 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
7338 (grub_xfs_inode): New fields atime, mtime, ctime.
7339 (grub_xfs_dir): Set mtime.
7340 * include/grub/datetime.h (grub_datetime2unixtime): New function.
7341 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
7342 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
7343
7344 Support UDF symlinks.
7345
7346 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
7347 (grub_ufs_read_symlink): New function. All users updated.
7348
7349 Check amiga partmap checksum.
7350
7351 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
7352 (grub_amiga_partition): Likewise.
7353 (amiga_partition_map_checksum): New function.
7354 (amiga_partition_map_iterate): Check checksum.
7355
7356 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 ROMFS support.
7359
7360 * Makefile.util.def (libgrubmods.a): Add romfs.
7361 * grub-core/Makefile.core.def (romfs): New module.
7362 * grub-core/fs/romfs.c: New file.
7363
7364 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7365
7366 Squashfs v4 support.
7367
7368 * Makefile.util.def (libgrubmods.a): Add squash4.
7369 * grub-core/Makefile.core.def (squash4): New module.
7370 * grub-core/fs/squash4.c: New file.
7371 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
7372 disk_input_start, disk_input.
7373 (get_byte): Handle disk_input.
7374 (grub_zlib_disk_read): New function.
7375 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
7376
7377 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7378 2011-05-15 Feiran Zheng <famcool@gmail.com>
7379
7380 * Makefile.util.def (libgrubmods.a): Add minix3.
7381 * grub-core/Makefile.core.def (minix3): New module.
7382 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
7383 (GRUB_MINIX_BSIZE): Removed.
7384 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
7385 (grub_minix_ino_t): New type.
7386 (grub_minix_le_to_cpu_ino): New macro.
7387 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
7388 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
7389 (grub_minix_data): New field block_size.
7390 (grub_minix_read_file): Handle 64-bit correctly.
7391 * grub-core/fs/minix3.c: New file.
7392
7393 2011-05-15 Tristan Gingold <gingold@free.fr>
7394 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
7395 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 IA64 support.
7398
7399 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
7400 * configure.ac: Add ia64-efi target.
7401 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
7402 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
7403 * gentpl.py: Add ia64_efi platform.
7404 Rename x86_efi to efi and Add ia64-efi. All users updated.
7405 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
7406 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
7407 Remove kern/generic/rtc_get_time_ms.c on EFI.
7408 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
7409 kern/ia64/dl_helper.c on ia64-efi.
7410 Add kern/emu/cache.c on emu.
7411 (linux): Use on loader/ia64/efi/linux.c on ia64.
7412 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
7413 whether symbol is a function.
7414 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
7415 (grub_symbol): New field 'isfunc'.
7416 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
7417 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
7418 (grub_dl_load_segments): Place all sections into the same region.
7419 [__ia64__]: Create trampolines and got.
7420 [GRUB_MACHINE_EMU]: Call mprotect.
7421 (grub_dl_resolve_symbols): Resolve symbol type as well.
7422 [__ia64__]: Create function descriptors.
7423 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
7424 (grub_rtc_get_time_ms): ... this. Expressions simplified.
7425 (grub_get_rtc): New function.
7426 * grub-core/kern/emu/cache.c [__ia64__]: New file.
7427 * grub-core/kern/emu/cache.S: Renamed to ...
7428 * grub-core/kern/emu/cache_s.S: ... this.
7429 [__ia64__]: Add a nop.
7430 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
7431 [__ia64__]: New function.
7432 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
7433 * grub-core/kern/ia64/dl.c: New file.
7434 * grub-core/kern/ia64/dl_helper.c: Likewise.
7435 * grub-core/kern/ia64/efi/init.c: New file.
7436 * grub-core/kern/ia64/efi/startup.S: Likewise.
7437 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
7438 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
7439 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
7440 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
7441 * grub-core/loader/ia64/efi/linux.c: New file.
7442 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
7443 (GRUB_MOD_DEP): Likewise.
7444 (grub_dl) [__ia64__]: New fields got and tramp.
7445 (grub_dl): New field 'base'.
7446 (grub_dl_register_symbol): New argument isfunc. All users updated.
7447 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
7448 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
7449 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
7450 (grub_ia64_dl_get_tramp_got_size): New proto.
7451 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
7452 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
7453 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
7454 * include/grub/efi/api.h: Skip call wrappers on ia64.
7455 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
7456 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
7457 * include/grub/elf.h (ELF_ST_INFO): New definition.
7458 * include/grub/ia64/efi/kernel.h: New file.
7459 * include/grub/ia64/efi/memory.h: Likewise.
7460 * include/grub/ia64/efi/time.h: Likewise.
7461 * include/grub/ia64/kernel.h: Likewise.
7462 * include/grub/ia64/setjmp.h: Likewise (from glibc).
7463 * include/grub/ia64/time.h: New file.
7464 * include/grub/ia64/types.h: Likewise.
7465 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
7466 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
7467 New protos.
7468 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
7469 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
7470 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
7471 * util/grub-mkimage.c (image_target_desc): New field pe_target.
7472 All users updated.
7473 (EFI64_HEADER_SIZE): New definition. All users updated.
7474 (image_targets): Add ia64-efi.
7475 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
7476 jumpers_addr. All users updated.
7477 Create function descriptors.
7478 (count_funcs): New function.
7479 (unaligned_uint32): New struct.
7480 (MASK20): New definition.
7481 (MASK19): Likewise.
7482 (MASKF21): Likewise.
7483 (add_value_to_slot_20b): New function.
7484 (add_value_to_slot_21_real): Likewise.
7485 (add_value_to_slot_21): Likewise.
7486 (ia64_kernel_trampoline): New struct.
7487 (nopm): New variable.
7488 (jump): Likewise.
7489 (make_trampoline): New function.
7490 (relocate_addresses): Handle ia64.
7491 (make_reloc_section): Likewise.
7492 (load_image): Likewise.
7493
7494 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7495
7496 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
7497 warning. Move variables before code while on it.
7498
7499 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7500
7501 Fuloong support.
7502
7503 * configure.ac: Rename yeeloong platform to loongson. All users updated.
7504 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
7505 * grub-core/boot/mips/loongson/fuloong.S: New file.
7506 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
7507 Explicitly init CS5536.
7508 [FULOONG]: Don't use serial until CS5536 is available.
7509 Set GPIO based on dumps.
7510 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
7511 [FULOONG]: Handle GPIO and memory controller differences.
7512 Parse machine type in $a2.
7513 * grub-core/boot/mips/startup_raw.S: Determine and save the
7514 architecture.
7515 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
7516 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
7517 init on architecture type.
7518 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
7519 SIS315E. Don't init at_keyboard on fuloong.
7520 (grub_halt): Support Fuloong.
7521 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
7522 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
7523 (loongson_machtypes): New array.
7524 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
7525 type.
7526 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
7527 config. All users updated. Handle CS5536 serial.
7528 * grub-core/term/serial.c (grub_serial_register): Conditionalise
7529 default port on machine type. Register serial as inactive.
7530 * grub-core/video/sis315pro.c: New file.
7531 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
7532 definition.
7533 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
7534 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
7535 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
7536 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
7537 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
7538 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
7539 to ...
7540 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
7541 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
7542 definition.
7543 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
7544 (grub_arch_machine): New extern var.
7545 * include/grub/mips/loongson/serial.h
7546 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
7547 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
7548 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
7549 (GRUB_MACHINE_SERIAL_PORT0): ... this.
7550 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
7551 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
7552 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
7553 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
7554 * include/grub/term.h (grub_term_register_input_inactive): New inline
7555 function.
7556 (grub_term_register_output_inactive): Likewise.
7557 * include/grub/video.h (grub_video_driver_id): New value
7558 GRUB_VIDEO_DRIVER_SIS315PRO.
7559 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
7560 New field "names". All users updated.
7561 New field value IMAGE_FULOONG_FLASH.
7562 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
7563
7564 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
7565
7566 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
7567 and add some clarification.
7568
7569 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7570
7571 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
7572 platforms if kernel is compressed.
7573
7574 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
7577 unused modules since currently referrence counter isn't reliable and
7578 there isn't much memory to recover there anyway.
7579
7580 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
7583 rather than resetting it to allow modules to reference themselves
7584 in init.
7585
7586 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7587
7588 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
7589 counter on dependencies since grub_dl_unref already handles this.
7590
7591 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7592
7593 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
7594 on error if not already done.
7595
7596 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 Fix few potential memory misusage.
7599
7600 * grub-core/font/font.c (load_font_index): Don't free char_index to
7601 avoid double free.
7602 (grub_font_load): Zero-fill font at alloc for safety.
7603 Close file on error.
7604 (free_font): Free bmp_idx.
7605
7606 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 * docs/grub.texi (Installation): Fix several outdated claims.
7609
7610 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 Handle module_license on windows.
7613
7614 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
7615 sections shifted.
7616 (insert_string): Make argument const char * instead of char *.
7617 (write_section_data): Handle long section names.
7618 Handle module_license.
7619
7620 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
7623 handle class-free menuentries.
7624 (grub_normal_add_menu_entry): Add a check to be sure.
7625
7626 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
7629 PgUp and PgDown.
7630
7631 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7632
7633 * configure.ac: Bump version to 1.99.
7634
7635 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 Give ATA device a bit more time on first try in order to allow disks
7638 to spin up.
7639
7640 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
7641 if dev->present is 1. Reset dev->present on failure.
7642 (grub_ata_device_initialize): Set dev->present to 1.
7643 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
7644 (grub_ata_device): New member 'present'.
7645
7646 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7647
7648 * util/grub-mkimage.c (generate_image): Update hash.
7649
7650 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 Flush caches on DMA memory.
7653
7654 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
7655 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
7656 (grub_dma_free): Likewise.
7657 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
7658
7659 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
7662 to avoid asm treating ld and sd as macros.
7663
7664 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
7667 decompressor.
7668
7669 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
7672 grub_decompress_core since later would fail if grub_decompress_core
7673 is too far.
7674
7675 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7676
7677 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
7678 R_MIPS_JALR since it's used by newer compiler.
7679
7680 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
7683
7684 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7685
7686 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
7687 file_path to 0 for surety.
7688 (grub_chainloader_boot): Set exit_data to NULL.
7689 Unset the loader once done.
7690 (grub_cmd_chainloader): Fix confusing error message if file is empty.
7691
7692 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7693
7694 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
7695 unknown key into a dprintf.
7696
7697 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7698
7699 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
7700 on first non-existant partition.
7701
7702 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
7705 openning fails.
7706 Reported by: Mark Korenberg.
7707
7708 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
7711 overflow.
7712
7713 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * util/grub-mkimage.c (main): Explicitely flush and sync the output
7716 before closing to ensure that it will be readable by grub-setup.
7717
7718 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
7721 (devpath_1): Use MAKE_PIWG_PATH.
7722 (devpath_2): Likewise.
7723 (devpath_3): Likewise.
7724 (devpath_4): Likewise.
7725 (devpath_5): Likewise.
7726 (devpath_6): Likewise.
7727
7728 The appleldr.mod was checked that to be binary identical to previous
7729 version.
7730
7731 2011-05-05 Zach <mikezackles>
7732
7733 Support 2010 Macbooks.
7734
7735 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
7736 (devs): Add devpath_6.
7737
7738 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
7741 /dev/random. /dev/urandom is good enough for our purposes (salting).
7742
7743 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
7746
7747 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
7750 hexadecimal.
7751
7752 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
7755 and not 0 on failure.
7756
7757 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7758
7759 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
7760 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
7761 disk; otherwise grub_fs_probe will not fall back to the next
7762 filesystem.
7763 (grub_pxefs_open): Likewise, for consistency.
7764 Reported and tested by: Ezekiel Grave.
7765
7766 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7767
7768 * tests/partmap_test.in: Don't hardcode path to parted.
7769 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
7770
7771 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
7772
7773 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
7774 of `ls' to find out which devices are available.
7775
7776 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7777
7778 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
7779 than source address for efi mmap buffer.
7780
7781 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7782
7783 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
7784 wrong action on non-detecting the magic.
7785
7786 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7787
7788 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
7789 already supplied by another part of the module (fixes compilation on
7790 FreeBSD).
7791
7792 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7793
7794 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
7795 match the one used by mdadm.
7796
7797 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7798
7799 * po/README: Add instructions for creating po/LINGUAS.
7800
7801 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7802
7803 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
7804 #551428.
7805
7806 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
7807 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
7808 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
7809 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7810 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
7811 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
7812 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
7813 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
7814 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
7815 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7816 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
7817 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
7818 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
7819 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
7820 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
7821 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
7822 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
7823 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
7824 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
7825 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
7826 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
7827 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
7828
7829 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7830
7831 * grub-core/kern/emu/getroot.c
7832 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
7833 test that was incorrectly reintroduced in r3214.
7834 Reported by: Ian Dall. Fixes Savannah bug #33133.
7835
7836 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7837
7838 Fix stack pointer handling in 16-bit relocator.
7839
7840 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
7841 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
7842 Fixes Ubuntu bug #683904.
7843
7844 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7845
7846 * configure.ac: Bump version to 1.99~rc2.
7847
7848 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7849
7850 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
7851 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
7852 * grub-core/lib/x86_64/setjmp.S: Likewise.
7853 * grub-core/lib/mips/setjmp.S: Likewise.
7854 * grub-core/lib/powerpc/setjmp.S: Likewise.
7855 * grub-core/lib/sparc64/setjmp.S: Likewise.
7856
7857 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
7860 * grub-core/lib/efi/datetime.c: Likewise.
7861
7862 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7863
7864 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
7865 New function.
7866 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
7867 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
7868 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
7869
7870 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7871
7872 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
7873 bitmap.
7874 (grub_gfxterm_term_init): Likewise.
7875
7876 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7877
7878 Take into account the decorations the computing menu entry width.
7879
7880 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
7881 (grub_gfxmenu_create_box): Register get_border_width.
7882 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
7883 if available.
7884 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
7885 get_border_width.
7886
7887 2011-04-18 Endres Puschner <code@e7p.de>
7888
7889 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
7890 Don't skip first class.
7891
7892 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7893
7894 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
7895 chunks.
7896 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
7897
7898 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7899
7900 Complete 64-bit division support.
7901
7902 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
7903 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
7904 * include/grub/misc.h (grub_divmod64): Rename to ...
7905 (grub_divmod64_full): ... this.
7906 (grub_divmod64): New inline function.
7907
7908 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 * util/grub-mkimage.c (generate_image): Add forgotten comma.
7911
7912 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7913
7914 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
7915 performing the necessary test.
7916
7917 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7918
7919 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
7920 (kfreebsd.elf): Likewise.
7921 (pc-chainloader.elf): Likewise.
7922 (ntldr.elf): Likewise.
7923
7924 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 Identify RAID by its UUID rather than (guessed) name.
7927
7928 * grub-core/disk/raid.c (ascii2hex): New function.
7929 (grub_raid_open): Accept mduuid/%s specification.
7930 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
7931 (get_mdadm_uuid): ... this.
7932 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
7933
7934 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
7935
7936 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
7937 to negative size.
7938
7939 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7940
7941 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
7942 btrfs subvolume.
7943 * util/grub.d/20_linux_xen.in: Likewise.
7944
7945 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7946
7947 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
7948 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
7949
7950 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7951 Build a list of relevant visible mounts using the mnt_id and
7952 parent_mnt_id fields, and then scan that list at the end.
7953
7954 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7955
7956 * docs/grub.texi (normal): New section.
7957 (normal_exit): New section.
7958 (Embedded configuration): Add reference to normal.
7959 (GRUB only offers a rescue shell): Likewise.
7960 * docs/grub-dev.texi (Error Handling): Fix typo.
7961
7962 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7963
7964 * NEWS: Drop obsolete entry about probe-only btrfs support.
7965
7966 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7967
7968 * util/import_gcry.py: Fix typo.
7969
7970 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7971
7972 * NEWS: Add btrfs support.
7973
7974 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7975 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
7976
7977 BtrFS support. Written by me (Vladimir) with important bugfixes and
7978 even more important testing by Colin.
7979
7980 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
7981 * grub-core/Makefile.core.def (btrfs): Add crc.c.
7982 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
7983 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
7984 mem_input_off and mem_input. All users updated to accept in-RAM input.
7985 (gzio_seek): New function.
7986 (test_zlib_header): Likewise.
7987 (grub_gzio_read): Likewise.
7988 (grub_zlib_decompress): Likewise.
7989 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
7990 Accept partial and non-virtual mounts.
7991 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
7992 avoid receiving /dev/dm-X as device.
7993 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
7994 Handle bind and partial mounts.
7995 * grub-core/lib/crc.c: New file.
7996 * include/grub/deflate.h: Likewise.
7997 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
7998 proto.
7999 * include/grub/lib/crc.h: New file.
8000
8001 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8002
8003 Implement automatic module license checking according to new GNU
8004 guidelines.
8005
8006 * grub-core/kern/dl.c (grub_dl_check_license): New function.
8007 (grub_dl_load_core): Use grub_dl_check_license.
8008 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
8009 (GRUB_MOD_LICENSE): Likewise.
8010 (GRUB_MOD_DUAL_LICENSE): Likewise.
8011 All modules updated.
8012
8013 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
8014
8015 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
8016 reserved_first_sector to 1. btrfs reserves plenty of space for boot
8017 loaders.
8018 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
8019
8020 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
8023
8024 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8025
8026 * util/grub-fstest.c (read_file): Report GRUB error if file opening
8027 failed.
8028
8029 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * grub-core/kern/file.c (grub_file_open): Don't take into account the
8032 parenthesis in the middle of the filename.
8033
8034 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8035
8036 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
8037 rather than trying to put initrd way too high.
8038 Reported by: Ryan Lortie <desrt@desrt.ca>
8039
8040 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8041
8042 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
8043 improperly removed string.
8044
8045 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
8048 is_disk.
8049 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
8050 (open_device) Likewise.
8051 (grub_util_biosdisk_close): Likewise.
8052 Reported by: Mark Korenberg.
8053
8054 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
8055
8056 * util/grub-mkconfig_lib.in: Add missing quotes.
8057
8058 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
8059
8060 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
8061 is NULL.
8062
8063 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8064
8065 Dynamically count the number of lines for the lower banner.
8066
8067 * grub-core/normal/menu_entry.c (per_term_screen): New member
8068 num_entries.
8069 (print_down): Use num_entries.
8070 (update_screen): Likewise.
8071 (grub_menu_entry_run): Set num_entries.
8072 * grub-core/normal/menu_text.c (menu_viewer_data): New member
8073 num_entries.
8074 (grub_print_message_indented): Move real part to ...
8075 (grub_print_message_indented_real): ... here. Additional argument
8076 dry_run.
8077 (draw_border): Additional argument num_entries.
8078 (print_message): Additional argument dry_run.
8079 (print_entries): Receive menu viewer data.
8080 (grub_menu_init_page): New argment num_entries.
8081 (menu_text_set_chosen_entry): Use num_entries.
8082 (grub_menu_try_text): Likewise.
8083 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
8084 All users updated.
8085 (grub_ucs4_count_lines): New function.
8086 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
8087 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
8088 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
8089 (grub_term_border_height): Likewise.
8090 (grub_term_num_entries): Likewise.
8091
8092 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
8095 Remove now unused string.
8096
8097 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
8098
8099 * docs/grub-dev.texi (Finding your way around): Update for 1.99
8100 build system.
8101 (Getting started): GRUB is developed in Bazaar now, not Subversion.
8102
8103 (Comment): Fix typo.
8104 (Getting started): General copy-editing.
8105 (Typical Development Experience): Likewise.
8106 (Error Handling): Likewise.
8107 (Video API): Likewise.
8108
8109 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
8110
8111 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
8112 throughout.
8113
8114 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8115
8116 * util/grub-mkimage.c (main): Handle special naming of yeeloong
8117 directory.
8118
8119 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
8120
8121 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
8122 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
8123 "development".
8124
8125 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8126
8127 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
8128 grub_strcpy since the lines aren't necessarily 0-terminated.
8129
8130 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8131
8132 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
8133 root on legacy.
8134
8135 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8136
8137 * grub-core/commands/probe.c (options): Argument to set isn't optional.
8138 (GRUB_MOD_INIT): DEVICE isn't optional.
8139
8140 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
8143 word on new line if it's too long anyway. Fixes a hang.
8144
8145 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8146
8147 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
8148 const.
8149 * util/grub-setup.c (main): Reuse md device name if available.
8150 * util/raid.c (grub_util_raid_getmembers): Receive device name and
8151 not GRUB name as argument.
8152 Based on patch by: Florian Wagner <fwagner>.
8153
8154 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8157 Place mbi on low memory for better compatibility.
8158
8159 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
8162
8163 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8164 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
8165
8166 * autogen.sh: Ensure that collate and ctype locale is C.
8167 * conf/Makefile.common: Likewise.
8168
8169 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 * grub-core/normal/menu.c: Add missing include.
8172
8173 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8174
8175 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
8176
8177 2011-04-08 Martin Zuther <mzuther@mzuther.de>
8178
8179 * util/grub-mkconfig.in: Ignore emacsen backup.
8180
8181 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8182
8183 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
8184 on open.
8185 (grub_util_biosdisk_close): Likewise.
8186
8187 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
8190 const attribute and use grub_isdigit.
8191
8192 2011-04-06 Andrey <dev_null@ukr.net>
8193
8194 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
8195 gcc warning.
8196
8197 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8198
8199 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
8200 useful grub_dprintf's.
8201
8202 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
8205
8206 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
8209
8210 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8211
8212 Output errors if theme loading failed.
8213
8214 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
8215 grub_gfxterm_fullscreen on error paths to ...
8216 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
8217 theme loading error.
8218
8219 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
8222 space for older compilers.
8223 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
8224
8225 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
8228 and report them as not RAID members since they are useless for GRUB.
8229 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8230
8231 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8232
8233 Increase LVM implementation robustness in order not to crash on
8234 configurations like pvmove. Previously code assumed that in some places
8235 only lvs or only pvs are used whereas it seems that they are used
8236 interchangeably.
8237
8238 * grub-core/disk/lvm.c (read_node): New function.
8239 (read_lv): Use read_node.
8240 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
8241 Match volumes only at the end when all lvs are found. Take both
8242 pvs (first) and lvs (second) into account.
8243 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
8244 mirror_* into node_*. All users updated.
8245 (grub_lvm_stripe): Merge this ...
8246 (grub_lvm_mirror): ... and this ...
8247 (grub_lvm_node): ... into this. All users updated.
8248
8249 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8250
8251 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
8252 of function to allow further scanning for LVMs.
8253
8254 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
8257 on failed seek as it breaks open fd reusage.
8258
8259 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8260
8261 * util/grub-install.in: Add a recommendation to use --recheck before
8262 reporting bugs.
8263
8264 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
8267 are obtained.
8268
8269 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8270
8271 GRUB developper manual based on existing Internals section and
8272 contributions by the various authors with active copyright assignment.
8273
8274 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
8275 * docs/font_char_metrics.png: New file.
8276 * docs/font_char_metrics.txt: Likewise.
8277 * docs/grub-dev.texi: Likewise.
8278 * docs/grub.texi (Internals): Move from here ...
8279 * docs/grub-dev.texi: ... here.
8280
8281 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8282
8283 Store the loopback device as data on loopback grub_disk structures,
8284 rather than the file it points to. This fixes use of freed memory
8285 if an existing loopback device is replaced.
8286
8287 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
8288 disk->data, not dev->file.
8289 (grub_loopback_read): Adjust file assignment to match.
8290 Fixes Ubuntu bug #742967.
8291
8292 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8293
8294 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
8295 when replacing an existing device.
8296
8297 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8298
8299 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
8300 memory corruptions.
8301
8302 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
8303 unsigned.
8304 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
8305 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
8306 (grub_jfs_read_inode): Likewise.
8307 (grub_jfs_opendir): Likewise. Remove now useless casts.
8308 (grub_jfs_getent): Likewise.
8309 Make ino a grub_uint32_t rather than int.
8310 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
8311 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
8312 division and module with bit operations.
8313 (grub_jfs_find_file): Make ino a grub_uint32_t.
8314 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
8315
8316 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8317
8318 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
8319 warning. (This was in fact always initialised before use, but GCC
8320 wasn't smart enough to prove that.)
8321 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
8322
8323 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
8326 stack alignment.
8327 (efi_wrap_1): Likewise.
8328 (efi_wrap_2): Likewise.
8329 (efi_wrap_3): Likewise.
8330 (efi_wrap_4): Likewise.
8331 (efi_wrap_5): Likewise.
8332 (efi_wrap_6): Likewise.
8333 (efi_wrap_10): Likewise.
8334 Based on information by: Red Hat/Peter Jones.
8335
8336 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8337
8338 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
8339 set-but-not-used variable.
8340
8341 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8342
8343 * docs/grub.texi (Simple configuration): Be more explicit about
8344 GRUB_DEFAULT, and add an example.
8345 Reported by: Leslie Rhorer.
8346
8347 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8348
8349 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
8350 shell".
8351
8352 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8353
8354 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
8355 * util/grub.d/20_linux_xen.in: Likewise.
8356
8357 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8358
8359 * util/grub.d/10_linux.in: Try alternative config filenames where
8360 we parse config file.
8361 * util/grub.d/20_linux_xen.in: Likewise.
8362
8363 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8364
8365 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
8366 * util/grub.d/20_linux_xen.in: Likewise.
8367
8368 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * grub-core/disk/raid.c (insert_array): Add few potentially
8371 useful grub_util_info.
8372 (grub_raid_register): Likewise.
8373
8374 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
8377 Preserve partition number in mdadm code path.
8378
8379 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8380
8381 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
8382 few potentially useful grub_util_info.
8383
8384 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8385
8386 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
8387
8388 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8389
8390 * docs/grub.texi (default): Use @example rather than nested
8391 itemized lists to avoid breaking gendocs.
8392
8393 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8394
8395 * docs/grub.texi (Future): Update.
8396
8397 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8398
8399 * docs/grub.texi (Environment): New chapter.
8400 (Changes from GRUB Legacy): Link to "Environment block" section for
8401 details of limitations.
8402 (Simple configuration): Likewise. Link to documentation of gfxmode
8403 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
8404 respectively.
8405 (Shell-like scripting): Note that normal variables are stored in the
8406 environment.
8407 (gettext): Link to documentation of lang and locale_dir.
8408 (list_env): New section.
8409 (load_env): New section.
8410 (save_env): New section.
8411
8412 (Reporting bugs): Fix typo.
8413
8414 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8415
8416 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
8417 the example.
8418
8419 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8420
8421 * grub-core/term/at_keyboard.c (set_scancodes)
8422 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
8423
8424 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8425
8426 * docs/grub.texi (Menu-specific commands): Remove some semantics
8427 that were true in GRUB Legacy but not in GRUB 2.
8428 (submenu): New section.
8429 (false): New section.
8430 (read): New section.
8431 (true): New section.
8432
8433 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8434
8435 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
8436
8437 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8438
8439 * docs/grub.texi (Simple configuration): Explain some of the
8440 current limitations of grub-mkconfig.
8441 Reported by: Leslie Rhorer.
8442
8443 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 Old macs search for boot.efi rather than for bootia32.efi.
8446
8447 * util/grub-install.in: Copy bootia32.efi to boot.efi.
8448 * util/grub-mkrescue.in: Likewise.
8449 Suggested by: Peter Jones.
8450
8451 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
8454
8455 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8456
8457 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
8458 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
8459 (grub_lvm_mirror): New struct.
8460 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
8461 (grub_lvm_iterate): Iterate only visible volumes.
8462 (grub_lvm_read): Factor out to ..
8463 (read_lv): ... this. Support mirrors.
8464 (grub_lvm_read): New wrapper function.
8465 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
8466 stripped or mirrored.
8467
8468 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
8471
8472 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8473
8474 * docs/grub.texi (loopback): New section.
8475
8476 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8477
8478 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
8479 removed -p option.
8480
8481 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8482
8483 * docs/grub.texi (BIOS installation): New section, partly based on
8484 previous text in other sections.
8485 (Installing GRUB using grub-install): Replace BIOS discussion with a
8486 cross-reference.
8487 (Images): Likewise.
8488
8489 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * grub-core/kern/emu/hostdisk.c (find_partition_start)
8492 [HAVE_DIOCGDINFO]: Add safety checks.
8493
8494 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
8497 per default compiled in kernel and prior to 8.0 isn't shipped at all.
8498
8499 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8500
8501 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
8502 real_sb->size is zero (e.g. RAID-0), get the disk size from
8503 real_sb->data_size instead.
8504 Fixes Ubuntu bug #743136.
8505
8506 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
8509 printf clauses for printing size and start.
8510
8511 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8512
8513 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
8514 Reported and tested by: Timothy Nikkel.
8515
8516 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8517
8518 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
8519 (dirty_region_add_real): ... this.
8520 (dirty_region_add): Don't discard margin refresh when performing
8521 scheduled repaint.
8522
8523 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8524
8525 * grub-core/lib/relocator.c (allocate_regstart)
8526 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
8527 terminals are capabple of malloc-free operation.
8528 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8529 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8530
8531 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
8532
8533 * util/grub-setup.c: Copy the partition table zone if floppy support
8534 is disabled, even if no partition table is found.
8535
8536 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
8537 during POST if an invalid partition table is contained in the PBR
8538 of the active partition when GRUB is installed to a partition.
8539
8540 2011-03-28 Colin Watson <cjwatson@debian.org>
8541
8542 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
8543 comment.
8544
8545 2011-03-28 Colin Watson <cjwatson@debian.org>
8546
8547 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
8548 to be specific about what kind of RAID device we're scanning for.
8549
8550 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
8551
8552 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
8553 return freed string.
8554
8555 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8556
8557 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
8558
8559 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 Use libgeom on FreeBSD to detect partitions.
8562
8563 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
8564 (grub-mkrelpath): Likewise.
8565 (grub-script-check): Likewise.
8566 (grub-editenv): Likewise.
8567 (grub-mkpasswd-pbkdf2): Likewise.
8568 (grub-fstest): Likewise.
8569 (grub-mkfont): Likewise.
8570 (grub-mkdevicemap): Likewise.
8571 (grub-probe): Likewise.
8572 (grub-setup): Likewise.
8573 (grub-ofpathname): Likewise.
8574 (grub-mklayout): Likewise.
8575 (example_unit_test): Likewise.
8576 (grub-menulst2cfg): Likewise.
8577 * grub-core/Makefile.core.def (grub-emu): Likewise.
8578 (grub-emu-lite): Likewise.
8579 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
8580 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
8581 define HAVE_DIOCGDINFO.
8582 (follow_geom_up) [FreeBSD]: New function.
8583 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
8584 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
8585 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
8586 unconditionally of HAVE_DIOCGDINFO.
8587
8588 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 Fix FreeBSD compilation problem.
8591
8592 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
8593 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
8594
8595 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
8596
8597 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
8598 Switch back to page zero before loading a kernel, since some kernel
8599 drivers expect that.
8600 Thanks to: Felix Kuehling.
8601
8602 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8603
8604 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
8605 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
8606 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
8607
8608 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8609
8610 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
8611 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
8612
8613 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8614
8615 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
8616 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
8617 malloc is disabled.
8618
8619 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8620
8621 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
8622 for modules headers when counting the needed allocation size.
8623
8624 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8625
8626 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
8627 if no ASCII character is found to prevent crash.
8628
8629 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
8630
8631 * grub-core/video/bitmap.c (match_extension): Ignore case.
8632
8633 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8634
8635 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
8636
8637 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8638
8639 * grub-core/script/parser.y: Declare "time" as valid argument.
8640
8641 2011-03-23 Peter Jones <pjones@redhat.com>
8642
8643 Fix incorrect assert failure reporting.
8644
8645 * grub-core/tests/example_functional_test.c (example_test): Add
8646 a failure comment.
8647 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
8648 (failure_start): ...this. Check that malloc succeeded.
8649 Don't call xvasprintf. Return failure struct.
8650 (failure_append_vtext): New function.
8651 (failure_append_text): Likewise.
8652 (add_failure): Likewise.
8653 (grub_test_assert_helper): Likewise.
8654 * include/grub/test.h (grub_test_assert_helper): New declaration.
8655 (grub_test_assert): Macro rewritten.
8656
8657 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8658
8659 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
8660
8661 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
8664
8665 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8666
8667 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
8668 into GRUB-style one.
8669
8670 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
8673 error and not grub_errno.
8674 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
8675
8676 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8677
8678 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
8679 GRUB_USB_SPEED_NONE in case of failure and not the error code.
8680
8681 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * grub-core/efiemu/i386/pc/cfgtables.c
8684 (grub_machine_efiemu_init_tables): Make declaration a prototype.
8685 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
8686 (grub_xnu_unlock): Likewise.
8687 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
8688
8689 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
8692 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
8693 * grub-core/commands/hashsum.c (aliases): Likewise.
8694 * grub-core/commands/setpci.c (pci_registers): Likewise.
8695 * grub-core/disk/usbms.c (attach_hook): Likewise.
8696 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
8697 (zio_checksum_table): Likewise.
8698 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
8699 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
8700 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
8701 * grub-core/lib/relocator.c (leftovers): Likewise.
8702 (extra_blocks): Likewise.
8703 * grub-core/loader/i386/bsd.c (relocator): Likewise.
8704 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
8705 (modules_last): Likewise.
8706 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
8707 (devices): Likewise.
8708 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
8709 (modules_last): Likewise.
8710 * grub-core/normal/auth.c (users): Likewise.
8711 * grub-core/normal/context.c (initial_menu): Likewise.
8712 (current_menu): Likewise.
8713 * grub-core/normal/crypto.c (crypto_specs): Likewise.
8714 * grub-core/term/serial.c (grub_serial_ports): Likewise.
8715 (grub_serial_terminfo_input_template): Likewise.
8716 (grub_serial_terminfo_output_template): Likewise.
8717 (grub_serial_terminfo_input): Likewise.
8718 (grub_serial_terminfo_output): Likewise.
8719 (registered): Likewise.
8720 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
8721
8722 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8723
8724 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
8725 grub_video_mode_type_t.
8726 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
8727 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
8728 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
8729
8730 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8731
8732 * util/grub-install.in: Correct the x86-64 name as x86_64.
8733
8734 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
8735
8736 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
8737 initial chunk read from the kernel always includes GRUB's multiboot
8738 header, which is now outside the first sector.
8739
8740 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8741
8742 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
8743 cached mmap_size, so that this works correctly when called multiple
8744 times.
8745 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
8746
8747 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8748
8749 * docs/grub.texi (Simple configuration): Tidy up formatting.
8750
8751 2011-03-07 Szymon Janc <szymon@janc.net.pl>
8752
8753 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
8754 Set-but-not-used variable removed.
8755
8756 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 Workaround yet another IEEE1275 bug.
8759
8760 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8761 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
8762 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
8763 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
8764 is set.
8765 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8766 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
8767
8768 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8769
8770 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
8771 error.
8772
8773 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
8774
8775 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
8776 empty, since in that case we can only generate either nothing or a
8777 syntactically invalid configuration file.
8778 Reported by: Michal Suchanek. Fixes Debian bug #612898.
8779
8780 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8781
8782 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
8783 (Making a GRUB bootable CD-ROM): Likewise.
8784 (Invoking grub-mkrescue): New section.
8785 Reported by: Yann Dirson. Fixes Debian bug #612585.
8786
8787 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8788
8789 * util/grub-install.in: Remove unnecessary brackets from tr
8790 arguments.
8791 * util/grub.d/10_hurd.in: Likewise.
8792 * util/grub.d/10_kfreebsd.in: Likewise.
8793 * util/grub.d/10_linux.in: Likewise.
8794 * util/grub.d/20_linux_xen.in: Likewise.
8795 Reported by: Jamie Heilman. Fixes Debian bug #612564.
8796
8797 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
8798
8799 * include/grub/file.h (not_easly_seekable): Rename to ...
8800 (not_easily_seekable): ... this. Update all users.
8801
8802 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
8803
8804 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
8805 grub-mkrescue.
8806
8807 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8808
8809 * util/grub-mkimage.c (generate_image): Refuse to create the images
8810 bigger than the actual flash (512K) in Loongson machines. 512K is also
8811 the biggest chip supported by them.
8812
8813 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
8816
8817 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
8818
8819 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
8820 super_offset field.
8821
8822 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 * util/grub-install.in: Ignore install device on platforms
8825 where it doesn't make sense. Always use UUIDs except on pc, efi and
8826 sparc64.
8827 Reported by: Daniel Kahn Gillmor.
8828
8829 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
8832
8833 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8834
8835 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
8836 (iterate_real): Don't rely on partition being non-NULL.
8837
8838 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
8841 supported platforms. Put a compile time assert for this rather than
8842 generate a warning with 32-bit shift.
8843
8844 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8845
8846 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
8847 logical expression more readable.
8848
8849 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8850
8851 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
8852 even if some elements have a name.
8853 Reported by: Alexander GQ Gerasiov.
8854
8855 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8856
8857 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
8858 path unreadable if `grub-probe -t abstraction' fails, for example if
8859 memberlist fails on an LVM volume group.
8860 Reported by: Darius Jahandarie.
8861
8862 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8863
8864 * docs/grub.texi (Simple configuration): Document
8865 GRUB_PRELOAD_MODULES.
8866
8867 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
8868
8869 * .bzrignore: Remove nonexistent grub-pbkdf2.
8870
8871 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 * configure.ac: Bump version to 1.99~rc1.
8874
8875 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
8878 for safety.
8879
8880 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8881
8882 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
8883 module.
8884
8885 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
8888
8889 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
8892 diskdevid.
8893
8894 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 Fix compilation on cygwin.
8897
8898 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
8899 -R .drectve on cygwin.
8900 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
8901 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
8902 (COND_CYGWIN): New condition.
8903 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
8904 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
8905 not @TARGET_OBJ2ELF@.
8906 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
8907 type to determine whether aux is to be used.
8908
8909 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
8912 realpath'ed device string.
8913 Handle floppy (somewhat).
8914 Issue error in unknown case rather than garbage.
8915 Reported by: Axel Beckert.
8916
8917 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 * util/grub.d/00_header.in (load_video): Handle the case when no video
8920 drivers available.
8921 Thanks to: Axel Beckert.
8922
8923 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8924
8925 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
8926 variable. Fixes problem on big endian platforms.
8927
8928 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
8931 It doesn't work well there.
8932
8933 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8934
8935 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
8936 warning.
8937 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
8938 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
8939 counter.
8940
8941 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 Use alias->path rather than buggy "canon".
8944
8945 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
8946 (ofdisk_hash_add): New argument curcan. All users updated.
8947
8948 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8949
8950 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
8951
8952 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8953
8954 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
8955 loadmask before doing any calculations. Use correct type for offset.
8956 (grub_linux_load64): Likewise.
8957
8958 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8959
8960 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
8961 with NULL.
8962 (console_grub_equivalences_unshift): Likewise.
8963 Reported by: Daniel Dehennin.
8964
8965 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
8968 (set_env_limn_ro): Likewise.
8969 (GRUB_MOD_INIT): Likewise.
8970 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
8971 ARRAY_SIZE while on it.
8972 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
8973 * grub-core/normal/context.c (grub_env_export): Move from here ...
8974 * grub-core/kern/env.c (grub_env_export): ... here.
8975 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
8976 prefix.
8977 * grub-core/kern/main.c (grub_main): Export root and prefix.
8978 * include/grub/env.h (grub_env_export): Export.
8979 Reported by: Seth Goldberg.
8980
8981 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8984 Take into account space used by ELF sections and multiboot palette.
8985 Reported by: Grégoire Sutre.
8986
8987 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 * BUGS: New file.
8990
8991 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 Pass more appropriate video id to Linux.
8994
8995 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
8996 grub_video_get_driver_id and variable gfxpayloadforcelfb to
8997 fill have_vga.
8998 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
8999 shift params->lfb_size.
9000 * include/grub/i386/linux.h: Make an enume out of have_vga values.
9001
9002 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9003
9004 * util/grub-menulst2cfg.c: Add missing include of misc.h.
9005
9006 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9007
9008 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
9009 separator and pass bootpath/devid even if only one of them is available.
9010 Reported by: Seth Goldberg.
9011
9012 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
9015 implementations bug on them.
9016
9017 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
9018 memory.
9019 (filter_memory_map): Likewise.
9020
9021 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9022
9023 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
9024 Reported by: nebuchadnezzar.
9025
9026 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
9029 Reported by: nebuchadnezzar.
9030
9031 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 Submenu default support.
9034
9035 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
9036 auto_boot. All users updated.
9037 Declared static.
9038 Handle chosen and default with submenus.
9039 (grub_menu_execute_with_fallback): Declared static.
9040 Don't notify failure if autobooted. Upper level does it.
9041 (menuentry_eq): New function.
9042 (get_entry_number): Use menuentry_eq.
9043 (show_menu): New parameter "autobooted". All users updated.
9044 (grub_show_menu): Likewise.
9045 * include/grub/normal.h (grub_show_menu): Likewise.
9046 * include/grub/menu.h (grub_menu_execute_entry): Removed.
9047 (grub_menu_execute_with_fallback): Likewise.
9048
9049 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9050
9051 * util/grub-mklayout.c (usage): Update help text.
9052
9053 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
9056
9057 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 * util/grub-menulst2cfg.c (main): Trim the line.
9060
9061 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9062
9063 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
9064 (grub_machine_init): Don't check amount of low memory as reportedly
9065 INT 12h can be broken and if low memory is too low we wouldn't have
9066 gotten into grub_machine_init anyway.
9067
9068 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
9071 (grub_machine_mmap_iterate): Take low memory into account
9072
9073 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9074
9075 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
9076 badfs.
9077 Reported by: TiCPU.
9078
9079 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9080
9081 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
9082 members errors.
9083
9084 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
9085
9086 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
9087 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
9088
9089 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
9090
9091 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
9092 openbsd and netbsd types being in part_bsd module.
9093
9094 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9095
9096 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
9097 (_FILE_OFFSET_BITS): Likewise.
9098 Reported by: Seth Goldberg.
9099
9100 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
9101
9102 * configure.ac: Check for libdevmapper header.
9103
9104 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9105
9106 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
9107 avoid aliasing.
9108 (fzap_lookup): Likewise.
9109 (dnode_get): Likewise.
9110 (make_mdn): Likewise.
9111 (zfs_mount): Likewise.
9112 (fzap_iterate): Use temporary pointer to avoid aliasing.
9113 (grub_zfs_read): Likewise.
9114 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
9115 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
9116 pointers to avoid aliasing.
9117 (grub_cmd_xnu_kernel64): Likewise.
9118 (grub_xnu_load_driver): Likewise.
9119
9120 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9121
9122 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
9123 aliasing warning.
9124 (grub_cmd_terminal_output): Likewise.
9125 Reported and tested by: Grégoire Sutre.
9126
9127 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
9130 warning.
9131 Reported and tested by: Grégoire Sutre.
9132
9133 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 * configure.ac: Do CPU substitution even if it's specified explicitly.
9136 Reported and tested by: Alain Greppin.
9137
9138 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9139
9140 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
9141 Reported and tested by: Alain Greppin.
9142
9143 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9144
9145 Satisfy some bison versions need for inttypes.h.
9146
9147 * grub-core/lib/posix_wrap/inttypes.h: New file.
9148 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
9149 (int16_t): Likewise.
9150 (int32_t): Likewise.
9151 (int64_t): Likewise.
9152 Reported and tested by: Alain Greppin.
9153
9154 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
9157 Silence spurious warning.
9158 Reported and tested by: Alain Greppin.
9159
9160 2011-01-07 Szymon Janc <szymon@janc.net.pl>
9161
9162 * docs/grub.texi (Support automatic decompression): Update with xz
9163 decompression support.
9164
9165 2011-01-07 Szymon Janc <szymon@janc.net.pl>
9166
9167 Improve loaders' kernel command line handling.
9168
9169 * grub-core/lib/cmdline.c: New file.
9170 * include/grub/lib/cmdline.h: Likewise.
9171 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
9172 grub_create_loader_cmdline to create kernel command line.
9173 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9174 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
9175 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
9176 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
9177 (linux): Add lib/cmdline.c on common.
9178
9179 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
9182 inopos might be unaligned.
9183
9184 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9185
9186 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
9187 endian transformations.
9188 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9189 Based on report by: Doug Nazar.
9190
9191 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
9192
9193 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
9194 array->members[i].start_sector.
9195 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9196
9197 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
9200 Reported and tested by: Grégoire Sutre.
9201
9202 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9203
9204 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
9205 avoid causing test failures by clearing the screen.
9206
9207 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9208
9209 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
9210 Fix prefix check to handle the case where dir ends with a slash
9211 (most significantly, "/" itself).
9212 Reported by: Michael Vogt.
9213
9214 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 Run terminfo_cls on initing terminfo output to clear the screen and
9217 move the cursor to (0,0).
9218
9219 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
9220 Call grub_terminfo_output_init.
9221 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
9222 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
9223 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
9224
9225 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
9228 only when needed.
9229
9230 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9231
9232 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
9233 CTRL.
9234
9235 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9236
9237 The E820 type 5 is BADRAM, not EXEC_CODE.
9238
9239 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9240 (GRUB_E820_BADRAM): New define.
9241 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
9242 into reserved. Propagate BADRAM.
9243 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9244 (GRUB_E820_BADRAM): New define.
9245
9246 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9247
9248 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
9249 Ignore the memory post-4G.
9250 (grub_relocator_firmware_alloc_region): Additional debug statement.
9251
9252 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
9255 names.
9256 Reported by: David Pravec.
9257
9258 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
9261 BIOSes.
9262
9263 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
9266 Prevent overflow.
9267 (grub_reed_solomon_recover): Likewise.
9268
9269 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
9272
9273 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9274
9275 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
9276 variable.
9277
9278 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
9279
9280 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
9281 descriptions of extract_legacy_entries_source and
9282 extract_legacy_entries_configfile.
9283 Reported by: Seung Soo, Ha.
9284
9285 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
9286
9287 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
9288 on devices that do not implement function 0.
9289
9290 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
9291
9292 * grub-core/fs/hfsplus.c: Make parent unsigned.
9293 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
9294 overflows.
9295 (grub_hfsplus_cmp_extkey): Likewise
9296
9297 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9298
9299 * util/grub-install.in: Correctly use bootloader_id and not
9300 GRUB_DISTRIBUTOR on efibootmgr line.
9301
9302 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
9305
9306 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
9307
9308 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
9309 Xen and reorder menu item wording to make it clearer that this entry
9310 will launch Xen. Print separate messages when loading Xen and
9311 Linux.
9312
9313 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
9316 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
9317 loop in case of incorrect amiga partmap.
9318
9319 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9320
9321 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
9322 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
9323 Reported by:EHeM.
9324
9325 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9326
9327 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
9328 spurious warning.
9329 Reported by: crocket
9330
9331 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9332
9333 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
9334 Preload EFIemu.
9335 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
9336
9337 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9338
9339 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
9340 is loaded
9341 (grub_cmd_xnu_kextdir): Likewise.
9342 (grub_cmd_xnu_splash): Likewise.
9343
9344 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9345
9346 Avoid using Reed-Solomon with 0 redundancy.
9347
9348 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
9349 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
9350 or 0 redundancy.
9351 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
9352 (grub_reed_solomon_recover): Likewise.
9353
9354 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 Don't use disk subsystem in freebsd_boot.
9357
9358 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
9359 (freebsd_biosdev): Likewise.
9360 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
9361 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
9362
9363 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 Handling of files of unknown size is currently limited. They can't be
9366 used e.g. for initrd or modules. Moreover gzip handling of not
9367 easily seekable files is buggy. Disable unknown file size for now. May
9368 be inefficient but works.
9369
9370 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
9371 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
9372
9373 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
9374
9375 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
9376 floppy probe.
9377
9378 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
9379
9380 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
9381
9382 2010-12-25 Shea Levy <shlevy>
9383
9384 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
9385
9386 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9387
9388 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
9389 Windows Server 2008.
9390 Reported by: Devin Giddings.
9391
9392 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
9395 writing an error message because of async power management.
9396 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
9397 (grub_reboot): Likewise.
9398
9399 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
9400
9401 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
9402 keep unit tests from failing when they shouldn't.
9403
9404 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9405
9406 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
9407 previous patch increased the size of the RS code by 20 bytes (at
9408 least with gcc-4.4), so increase this by 20 bytes to match.
9409 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9410
9411 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9412
9413 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
9414 scratch area. Make sure to initialise chosen in standalone mode as
9415 well as non-standalone.
9416 Reported by: Robert Hooker and Andy Whitcroft.
9417 Tested by: Andy Whitcroft.
9418
9419 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9420
9421 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
9422 constructing a new unescaped string and passing it to grub_xputs in
9423 one go, rather than passing characters to grub_printf one at a time.
9424
9425 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9426
9427 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
9428 initialising utf16.
9429
9430 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9431
9432 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
9433 comment. Add an extra layer of quotation, requiring the output of
9434 this function to be used in a printf format string.
9435 (gettext_printf): New function.
9436 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
9437 Extract translatable strings from here-documents and use a temporary
9438 variable instead, so that xgettext can find them.
9439 * util/grub.d/10_kfreebsd.in: Likewise.
9440 * util/grub.d/10_linux.in: Likewise.
9441 * util/grub.d/20_linux_xen.in: Likewise.
9442
9443 * po/grub.d.sed: New file.
9444 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
9445 arguments. Set c-format flags on all strings extracted from
9446 util/grub.d/ (xgettext refuses to include these itself for strings
9447 it extracted from a shell file, but these really are c-format).
9448
9449 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
9452 Avoid next pointing to nowhere.
9453
9454 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9455
9456 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
9457 rather than assuming than rootblock is exactly in the middle.
9458 (grub_affs_label): Likewise.
9459
9460 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
9463 reserved_first_sector to 0.
9464 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
9465 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
9466 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
9467
9468 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9469
9470 Fix handling of UTF-16 UDF labels.
9471
9472 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
9473 (read_string): .. here.
9474 (grub_udf_label): Use read_string.
9475
9476 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
9477
9478 * grub-core/normal/menu_entry.c (run): Execute commands from menu
9479 editor under argument scope.
9480 Reported by: Jordan Uggla
9481
9482 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9483
9484 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
9485
9486 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
9487
9488 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
9489 line, and other keys scroll an entire page (previous handling was
9490 for \r and \n to scroll a page and other keys to scroll two lines).
9491
9492 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9495 Set ptrdest to correct get_physical_target_address rather than
9496 incorrect get_virtual_current_address.
9497
9498 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
9499
9500 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
9501 correct cat to grub_uint8_t * rather than grub_uint32_t *.
9502
9503 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9504
9505 * .bzrignore: Ignore grub-core/rs_decoder.S.
9506
9507 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9508
9509 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
9510 .mo/.mo.gz opening sequence to ...
9511 (grub_mofile_open_lang): ... here.
9512 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
9513 * util/grub.d/00_header.in (grub_lang): Include country part of
9514 locale.
9515 Reported by: Mario Limonciello.
9516
9517 2010-12-09 Robert Millan <rmh@gnu.org>
9518
9519 * NEWS: Document addition of ZFS support.
9520
9521 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
9522
9523 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
9524 rather than `/ 2', as the latter requires -Wa,--divide which would
9525 require bumping our minimum binutils version.
9526
9527 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
9528
9529 * util/grub-script-check.c (main): Print script line number on
9530 error.
9531
9532 2010-12-01 Robert Millan <rmh@gnu.org>
9533
9534 * grub-core/fs/zfs/zfs.c: New file.
9535 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
9536 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
9537 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
9538 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9539
9540 * include/grub/zfs/dmu.h: Likewise.
9541 * include/grub/zfs/dmu_objset.h: Likewise.
9542 * include/grub/zfs/dnode.h: Likewise.
9543 * include/grub/zfs/dsl_dataset.h: Likewise.
9544 * include/grub/zfs/dsl_dir.h: Likewise.
9545 * include/grub/zfs/sa_impl.h: Likewise.
9546 * include/grub/zfs/spa.h: Likewise.
9547 * include/grub/zfs/uberblock_impl.h: Likewise.
9548 * include/grub/zfs/vdev_impl.h: Likewise.
9549 * include/grub/zfs/zap_impl.h: Likewise.
9550 * include/grub/zfs/zap_leaf.h: Likewise.
9551 * include/grub/zfs/zfs.h: Likewise.
9552 * include/grub/zfs/zfs_acl.h: Likewise.
9553 * include/grub/zfs/zfs_znode.h: Likewise.
9554 * include/grub/zfs/zil.h: Likewise.
9555 * include/grub/zfs/zio.h: Likewise.
9556 * include/grub/zfs/zio_checksum.h: Likewise.
9557
9558 * Makefile.util.def: Build ZFS into libgrubmods.
9559 * grub-core/Makefile.core.def: Build zfs.mod.
9560
9561 2010-11-30 Szymon Janc <szymon@janc.net.pl>
9562
9563 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
9564 variable.
9565 * grub-core/commands/wildcard.c (match_files): Likewise.
9566
9567 2010-11-30 Robert Millan <rmh@gnu.org>
9568
9569 * grub-core/loader/i386/bsd.c
9570 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
9571 whether kernel is loaded using grub_loader_is_loaded(), rather
9572 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
9573 certain error conditions.
9574
9575 2010-11-30 Robert Millan <rmh@gnu.org>
9576
9577 * grub-core/commands/echo.c: Include `<grub/term.h>'.
9578 (grub_cmd_echo): Call grub_refresh() after printing a message.
9579
9580 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 Avoid using tricks for initialising endian variables.
9583
9584 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
9585 Make const.
9586 (GRUB_MOD_INIT): Don't byte-swap.
9587 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9588 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
9589 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
9590 (grub_swap_bytes32_compile_time): Likewise.
9591 (grub_cpu_to_le32_compile_time): Likewise.
9592 (grub_cpu_to_le16_compile_time): Likewise.
9593
9594 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * util/grub-setup.c (setup): Stop recommending --force. People who
9597 understand the dangers of blocklists are able to find this option
9598 anyway and the ones who don't shouldn't use it anyway.
9599
9600 2010-11-26 Robert Millan <rmh@gnu.org>
9601
9602 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
9603 Update all users.
9604
9605 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
9606
9607 Fix LVM-on-RAID probing.
9608
9609 * util/grub-probe.c (probe): Remember which disk was detected as
9610 RAID (perhaps an LVM physical volume). Use that disk's raidname
9611 rather than that of the top-level disk.
9612
9613 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
9614
9615 Fix cmdline argument quotes for setparams command of menuentry
9616 definitions.
9617
9618 * grub-core/commands/menuentry.c (setparams_prefix): Use single
9619 quotes for arguments.
9620 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
9621 grub_strchrsub function instead.
9622
9623 * include/grub/misc.h (grub_strchrsub): New function.
9624
9625 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9626
9627 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
9628 effort by skipping "." and ".." entries up-front.
9629 Suggested by: Michael Lazarev.
9630
9631 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9632
9633 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
9634 ldflags to ldadd, to fix link line ordering.
9635 (none_decompress): Likewise.
9636
9637 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9638
9639 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
9640 platforms.
9641 (grub-emu-lite): Remove kern/emu/cache.S.
9642
9643 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9644
9645 * util/deviceiter.c (compare_devices): If the by-id link for a
9646 device couldn't be resolved, fall back to sorting by the by-id link
9647 rather than segfaulting.
9648 Reported and tested by: Daniel Mierswa.
9649
9650 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9651
9652 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
9653 ldflags, to fix link line ordering.
9654
9655 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9656
9657 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
9658 linkers are picky about this.
9659
9660 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9661
9662 * grub-core/Makefile.am (command.lst): Adjust sed expression
9663 ordering so that extended and priority commands aren't treated as
9664 ordinary commands.
9665
9666 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9667
9668 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9669 Remove byte-swapping function calls, which are not valid in
9670 structure initialisers.
9671 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
9672 non-const.
9673 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
9674 grub_gpt_partition_type_bios_boot.
9675
9676 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9677
9678 Fix test program build on GNU/kFreeBSD.
9679
9680 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
9681 $(LIBNVPAIR)' library dependencies.
9682
9683 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9684
9685 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
9686
9687 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9688
9689 * util/grub-install.in: Remove excessive quoting that broke
9690 installations to RAID devices.
9691
9692 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9693
9694 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
9695 bootloader version instead of 0.
9696
9697 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9698
9699 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
9700 warning.
9701
9702 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9703
9704 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
9705 retrieve the metadat sector if size isn't known.
9706 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9707
9708 2010-11-18 Robert Millan <rmh@gnu.org>
9709
9710 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
9711 with grub_memcmp().
9712
9713 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
9716 arrow.
9717 Reported by: Jordan Uggla.
9718
9719 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 Make better UTF compliant.
9722
9723 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
9724 sequences as incorrect.
9725 (grub_is_valid_utf8): Likewise.
9726 (grub_utf8_to_ucs4): Likewise.
9727 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
9728 (grub_ucs4_to_utf8_alloc): Likewise.
9729 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
9730
9731 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 Make legacy_source behave like source.
9734
9735 * grub-core/commands/legacycfg.c (legacy_file): Don't call
9736 grub_show_menu.
9737 (grub_cmd_legacy_source): Call grub_show_menu if needed.
9738
9739 2010-11-16 Colin Watson <cjwatson@debian.org>
9740
9741 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
9742 (-Wunused implies -Wunused-parameter, but not vice versa).
9743
9744 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
9745
9746 * configure.ac: Make error messages less confusing by testing for
9747 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
9748 accepted, but produces a diagnostic if something else is wrong).
9749
9750 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9751
9752 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
9753 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
9754 (now unused).
9755 (grub_keyboard_controller_init)
9756 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
9757 read the initial state since controller isn't inited yet.
9758
9759 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
9762 allocate_regbeg may need to create new chunk header.
9763
9764 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9765
9766 Fix quoting in legacy parser.
9767
9768 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
9769 single quotes.
9770 (grub_legacy_parse): Likewise.
9771 Reported by: Jordan Uggla.
9772 Tested by: Jordan Uggla.
9773
9774 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9775
9776 Don't add -lgcc on i386 and x86_64.
9777
9778 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
9779 * conf/Makefile.common (LDADD_KERNEL): Likewise.
9780 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
9781
9782 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9783
9784 * configure.ac: Add -Wno-trampolines when supported.
9785
9786 2010-11-14 Modestas Vainius <modax@debian.org>
9787
9788 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
9789 fakeraid.
9790
9791 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9792
9793 Add generic logical block size support for UDF.
9794
9795 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
9796 (GRUB_UDF_BLKSZ): Removed.
9797 (struct grub_udf_data): New field "lbshift" to hold the logical block
9798 size of the file system in log2 format. All users updated.
9799 (sblocklist): Change type to unsigned.
9800 (grub_udf_mount): Change type of "sblklist" to unsigned.
9801 Move AVDP search before VRS recognition, because the latter requires
9802 knowledge of the logical block size, which is detected during the
9803 former.
9804 Detect and validate logical block size during AVDP search, adding
9805 support for block sizes 512, 1024 and 4096.
9806 Make VRS recognition independent of block size.
9807
9808 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9809
9810 Properly handle deleted files on UDF.
9811
9812 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
9813 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
9814 set.
9815
9816 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9817
9818 Support reading files larger than 2 GiB.
9819
9820 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
9821 "offset" to grub_off_t.
9822 (grub_udf_read_file): Likewise for parameter "pos".
9823
9824 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
9827 unavailable.
9828 (Simple configuration): Refer to Changes from GRUB Legacy about
9829 save_env availability.
9830
9831 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9832
9833 * util/grub-install.in: Ignore empty partition table detection
9834 instead of trying to include part_ module.
9835
9836 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9837
9838 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
9839 LVM on RAID support.
9840
9841 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 Properly define WORDS_BIGENDIAN in wrapped environments.
9844
9845 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
9846 definition.
9847 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
9848
9849 Reported by: Manoel Rebelo Abranches.
9850 Tested by: Manoel Rebelo Abranches.
9851
9852 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 * util/grub-mkconfig.in: Fix quoting.
9855
9856 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 Support big ext2 files.
9859
9860 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
9861 (grub_ext2_read_block): Support triple indirect blocks.
9862 (grub_ext2_read_file): Use 64-bit types and read size_high.
9863 (grub_ext2_open): Read size_high.
9864 Reported by: Ximin Luo.
9865 Tested by: Manoel Rebelo Abranches.
9866
9867 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 * util/grub-install.in: Handle filenames containing spaces.
9870 Reported by: Jordan Uggla.
9871 Tested by: Jordan Uggla.
9872
9873 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 * util/grub-mkconfig.in (grub_script_check): New variable.
9876 Use grub_script_check instead of grub-script-check.
9877 Reported by: Barry Jackson.
9878
9879 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * docs/grub.texi (menu): Correct the order.
9882 Reported by: D. Hugh Redelmeier.
9883
9884 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
9887 jump.
9888
9889 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
9890
9891 * include/grub/elfload.h (grub_elf32_size): New parameter.
9892 All users updated.
9893 Return maximum segments alignment.
9894 (grub_elf64_size): Likewise.
9895 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
9896 Return maximum segments alignment.
9897 (grub_elf64_size): Likewise.
9898 * grub-core/loader/powerpc/ieee1275/linux.c:
9899 (grub_linux_claimmap_iterate): New function. Uses the
9900 "available" property in the "memory" node for memory allocation
9901 for kernel in the PowerPC loader.
9902 (grub_linux_load32): Correctly find linux entry point offset.
9903 (grub_linux_load64): Likewise.
9904
9905 2010-11-07 Robert Millan <rmh@gnu.org>
9906
9907 On mips-yeeloong, build with -march=loongson2f when this flag is
9908 available (GCC >= 4.4).
9909 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
9910 `-march=mips3'.
9911 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
9912 or otherwise add -march=mips3.
9913
9914 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
9915
9916 Suppress shell expansion on echo '*' and echo "*" like cases.
9917 Reported by: Jordan Uggla.
9918
9919 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9920 string arguments before shell expansion.
9921 * tests/grub_cmd_echo.in: New testcases.
9922
9923 2010-11-07 Robert Millan <rmh@gnu.org>
9924
9925 * conf/mips-qemu-mips.rmk: Remove stale file from previous
9926 transition.
9927
9928 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 * grub-core/kern/emu/hostdisk.c
9931 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
9932
9933 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9934
9935 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
9936 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
9937 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
9938
9939 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
9942
9943 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9944
9945 * util/grub-install.in: Replace useless recomendation to pass
9946 --modules with a recomendation to report a bug.
9947
9948 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 Properly register serial terminfo.
9951 Reported by: Jordan Uggla
9952
9953 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
9954 const.
9955 (grub_serial_terminfo_output_template): Likewise.
9956 (grub_cmd_serial): Register "serial" with terminfo.
9957 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
9958 grub_serial_terminfo_output.
9959
9960 2010-11-05 Robert Millan <rmh@gnu.org>
9961
9962 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
9963 needed).
9964
9965 2010-11-05 Robert Millan <rmh@gnu.org>
9966
9967 On Yeeloong, pass machine type information to Linux.
9968
9969 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
9970 (LOONGSON_MACHTYPE): New macro, set to
9971 "machtype=lemote-yeeloong-2f-8.9inches".
9972 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
9973 additional argument to Linux.
9974
9975 2010-11-04 Robert Millan <rmh@gnu.org>
9976
9977 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
9978 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
9979 (its SATA disks are detected as slaveless IDE master drives on
9980 kFreeBSD).
9981 Reported by Carsten Aulbert.
9982
9983 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
9984
9985 * util/bin2h.c (main): Fix spelling error in generated output.
9986
9987 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
9988
9989 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
9990
9991 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9992
9993 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
9994 vga= option is supplied.
9995
9996 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9997
9998 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
9999 * util/grub.d/10_kfreebsd.in: Likewise.
10000 * util/grub.d/10_linux.in: Likewise.
10001 * util/grub.d/20_linux_xen.in: Likewise.
10002
10003 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
10006 argument as an argument to no-argument option.
10007
10008 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * util/grub.d/10_linux.in: Add missing load_video with explicit
10011 GRUB_GFXPAYLOAD_LINUX.
10012
10013 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
10016
10017 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
10020 elements with invlid index.
10021 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10022 * grub-core/disk/raid.c (insert_array): Automatically reallocate
10023 members.
10024 * include/grub/raid.h (grub_raid_member): New struct.
10025 (grub_raid_array): Transform devices and start_sector into usage of
10026 grub_raid_member. All users updated
10027 (allocated_devs): New member.
10028
10029 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
10032 is modified
10033
10034 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
10035
10036 NetBSD build fix for getline function conflict from gnulib.
10037
10038 * Makefile.util.def (libgrubkern.a): New library for grub kernel
10039 components that depend on gnulib headers.
10040 (libgrubmods.a): Renamed from earlier libgrub.a.
10041 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
10042
10043 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
10046 install rather than creating a broken install.
10047
10048 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10049
10050 * util/grub-setup.c (argp): Remove misleading example of installing to
10051 a partition.
10052
10053 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * util/grub-setup.c (setup): Clarify the error message.
10056
10057 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
10060
10061 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10062
10063 * grub-core/kern/emu/misc.c
10064 (grub_make_system_path_relative_to_its_root)
10065 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
10066
10067 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10068
10069 * grub-core/kern/emu/misc.c
10070 (grub_make_system_path_relative_to_its_root): Revert r2882.
10071
10072 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
10073
10074 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
10075 useless field head. All users updated.
10076 (free_subchunk): Correct handling of IN_REGION subchunk.
10077
10078 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
10079
10080 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
10081 (Supported kernels): Likewise.
10082
10083 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
10084
10085 Make mktemp invocations portable.
10086
10087 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
10088 exit if mktemp fails.
10089 * tests/grub_script_blockarg.in: Likewise.
10090 * tests/partmap_test.in: Likewise.
10091 * tests/util/grub-shell-tester.in: Likewise.
10092 * tests/util/grub-shell.in: Likewise.
10093 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10094 * Makefile.am: Likewise, and chain shell commands with `&&'
10095 instead of ';'.
10096 * util/grub-mkrescue.in: Use the same explicit template as above, and
10097 exit if mktemp fails.
10098
10099 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
10100
10101 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
10102 Linux kernel, reported by Dennis Schridde.
10103
10104 2010-10-17 Szymon Janc <szymon@janc.net.pl>
10105
10106 * grub-core/normal/auth.c (grub_auth_check_authentication):
10107 Set-but-not-used variable removed.
10108
10109 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10110
10111 * docs/grub.texi (GNU/Linux): Document APM unavailability with
10112 32-bit linux protocol.
10113
10114 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
10117 cursor shape for sanity.
10118
10119 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 * docs/grub.texi (Installation): Document buggy BIOS install.
10122
10123 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 * docs/grub.texi (Installation): Indent.
10126
10127 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10128
10129 * util/grub-setup.c (setup): New parameter allow_floppy.
10130 (arguments): New member allow_floppy.
10131 (argp_parser): Handle --allow-floppy.
10132 (main): Pass allow_floppy.
10133 * util/grub-install.in: New option --allow-floppy passed though to
10134 grub-setup.
10135
10136 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10137
10138 * util/grub-install.in: Handle partitionless disks.
10139
10140 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * util/grub-setup.c (setup): Don't clean blocklists before readability
10143 verfification.
10144
10145 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * docs/grub.texi (Installation): Document embedding zone. Remove
10148 obsolete grub-install example.
10149
10150 2010-10-16 Szymon Janc <szymon@janc.net.pl>
10151
10152 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
10153 Set-but-not-used variable ifdef'ed.
10154 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
10155 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
10156 variable removed.
10157 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
10158 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
10159 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
10160 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
10161 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
10162 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
10163 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
10164 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
10165 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
10166 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
10167 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
10168 Likewise.
10169
10170 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
10173 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
10174 enum value.
10175
10176 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
10179 synonym to _S5_. Needed for some DSDTs.
10180
10181 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 Userspace ACPI parser debugging.
10184
10185 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
10186 headers and add relevant defines. Don't include standard headers.
10187 (main) [GRUB_DSDT_TEST]: New function.
10188 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
10189 Don't declare functions.
10190
10191 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 Remove dead grub_efi_mm_fini.
10194
10195 * grub-core/kern/efi/mm.c (allocated_page): Removed.
10196 (ALLOCATED_PAGES_SIZE): Likewise.
10197 (MAX_ALLOCATED_PAGES): Likewise.
10198 (allocated_pages): Likewise.
10199 (grub_efi_allocate_pages): Don't record allocated pages.
10200 (grub_efi_free_pages): Likewise.
10201 (grub_efi_mm_init): Likewise.
10202 (grub_efi_mm_fini): Removed.
10203
10204 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
10207 (grub_efi_mm_init): Take into account the memory map size increase.
10208
10209 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
10212 (serial_hw_put): Wait based on real time rather than port reads. Don't
10213 roken ports.
10214 * include/grub/serial.h (grub_serial_port): New field broken.
10215
10216 2010-10-16 Robert Millan <rmh@gnu.org>
10217
10218 * grub-core/kern/emu/misc.c
10219 (grub_make_system_path_relative_to_its_root): Fix premature return
10220 when processing non-root ZFS filesystems.
10221 Reported by Sergio Talens-Oliag.
10222
10223 2010-10-15 Robert Millan <rmh@gnu.org>
10224
10225 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
10226 guarantee compressed ones are processed first.
10227
10228 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10229
10230 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
10231 grub_efiemu_autocore.
10232
10233 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10234
10235 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
10236 rather than 0x1b.
10237 (grub_console_getkey): Use correct jae opcode rather than ja.
10238
10239 2010-10-12 Robert Millan <rmh@gnu.org>
10240
10241 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
10242 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
10243 variable. All references updated.
10244
10245 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
10246
10247 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 Correctly distinguish mdraid flavours.
10250
10251 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
10252 (insert_array): New argument raid.
10253 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
10254 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
10255 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
10256
10257 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
10258
10259 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
10260 handling of special keys.
10261
10262 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10263
10264 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
10265 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
10266
10267 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10268
10269 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
10270 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
10271 users updated.
10272 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
10273 Use right endpoint when querying descriptor.
10274
10275 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 Clear out 0x80 color bit on EFI.
10278 Tested by: decoder
10279 Reported by: decoder and meta tech.
10280
10281 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
10282 (grub_console_setcolorstate): Clear out 0x80 bit.
10283 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
10284 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
10285 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
10286
10287 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
10290 Set to "auto".
10291
10292 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10293
10294 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
10295 mo_file after freeing.
10296
10297 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10298
10299 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
10300
10301 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
10304 flags.
10305
10306 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
10309 usage.
10310
10311 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 Put terminfo into core on ieee1275 and yeeloong (needed for console).
10314
10315 * gentpl.py: New groups terminfoinkernel and terminfomodule.
10316 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
10317 and terminfo.h when needed.
10318 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
10319 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
10320 (terminfo): Enable only on terminfokernel.
10321 (extcmd): Likewise.
10322 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
10323 * include/grub/lib/arg.h: Likewise.
10324 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
10325 incorrect usage of ->.
10326
10327 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10328
10329 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
10330 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
10331
10332 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10333
10334 Fix coreboot compilation.
10335
10336 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10337 Take VBE info into account even if only text is supported.
10338 (fill_vbe_info): Take into account the case when only VGA text
10339 is supported.
10340 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
10341 on coreboot, multiboot and qemu.
10342
10343 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10344
10345 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
10346 debug messages.
10347 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
10348
10349 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10350
10351 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
10352 parameters.
10353
10354 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
10357 if they were BSD-style.
10358
10359 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * grub-core/boot/i386/pc/lnxboot.S: Replace
10362 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
10363 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
10364
10365 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10366
10367 Write embedding zone using Reed-Solomon.
10368
10369 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
10370 * grub-core/Makefile.am (rs_decoder.S): New target.
10371 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
10372 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
10373 (multiboot): Move to RS part.
10374 (post_reed_solomon): New label.
10375 (grub_boot_drive): Move to non-RS part since it's modified in memory
10376 on boot.
10377 Include rs_decoder.S.
10378 * grub-core/lib/reed_solomon.c: New file.
10379 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
10380 New definition.
10381 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
10382 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
10383 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
10384 * include/grub/partition.h (grub_partition_map): Change prototype of
10385 embed to allow returning additional sectors.
10386 * include/grub/reed_solomon.h: New file.
10387 * util/grub-setup.c (setup): Handle Reed-Solomon.
10388
10389 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
10390
10391 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10392 i386 and x86-64 definedness tests.
10393
10394 2010-09-27 Yves Blusseau <blusseau@zetam.org>
10395
10396 Fix generation of kernel_syms.lst
10397
10398 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
10399 ASM_PREFIX
10400
10401 2010-09-26 Robert Millan <rmh@gnu.org>
10402
10403 Support degraded ZFS arrays in "grub-probe -t device" resolution.
10404
10405 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
10406 the pool is an array of devices, iterate through it and return the
10407 first device that passes a stat() test (instead of blindly returning
10408 the first one).
10409
10410 2010-09-26 Robert Millan <rmh@gnu.org>
10411
10412 Build fixes for GNU/kFreeBSD.
10413
10414 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
10415 to programs that require ZFS conversion.
10416 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
10417 kernels that don't have FLOPPY_MAJOR.
10418
10419 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10420
10421 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
10422
10423 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10424
10425 Fix grub-emu build.
10426
10427 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
10428 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
10429 mdraid09 and mdraid1x.
10430
10431 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
10432
10433 Re-enable grub-extras.
10434
10435 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
10436 avoid confusing Automake. Run autogen only twice, once for the top
10437 level and once for grub-core. Add Makefile.util.def and
10438 Makefile.core.def from extra modules to the appropriate autogen
10439 invocations. If Makefile.common exists in an extra module, include
10440 it in both Makefile.util.am and grub-core/Makefile.core.am;
10441 similarly, include any Makefile.util.common file in Makefile.util.am
10442 and any Makefile.core.common file in grub-core/Makefile.core.am.
10443 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
10444 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
10445 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
10446 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
10447
10448 * gentpl.py (gvar_add): Turn GVARS into a set.
10449 (global_variable_initializers): Sort global variables on output.
10450 (vars_init): New function.
10451 (first_time): Likewise.
10452 (library): Ensure that non-global variable initialisations are
10453 emitted before the first time we emit code for a library block.
10454 Append to variables rather than setting them. Only emit
10455 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
10456 each conditional path.
10457 (program): installdir() emits an Autogen macro, so must be passed to
10458 var_add rather than gvar_add.
10459 (data): Likewise.
10460 (script): Likewise.
10461 (rules): New function, centralising handling for different target
10462 types. Set up Guile association lists for first_time and vars_init,
10463 and send most output to a diversion so that variable initialisations
10464 can be emitted first.
10465 (module_rules): Use new rules function.
10466 (kernel_rules): Likewise.
10467 (image_rules): Likewise.
10468 (library_rules): Likewise.
10469 (program_rules): Likewise.
10470 (script_rules): Likewise.
10471 (data_rules): Likewise.
10472
10473 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
10474
10475 * .bzrignore: Add contrib and grub-core/contrib. Remove
10476 grub-core/Makefile.gcry.am.
10477
10478 2010-09-24 Yves Blusseau <blusseau@zetam.org>
10479
10480 * grub-core/lib/LzFind.c: Add missing include.
10481 * grub-core/lib/LzmaEnc.c: Likewise.
10482 * grub-core/script/lexer.c: Likewise.
10483 * grub-core/script/yylex.l: Likewise.
10484 * util/grub-macho2img.c: Likewise.
10485 * util/grub-menulst2cfg.c: Likewise.
10486 * util/grub-mklayout.c: Likewise.
10487 * util/grub-mkpasswd-pbkdf2.c
10488 * util/grub-mkrelpath.c: Likewise.
10489 * util/resolve.c: Likewise.
10490
10491 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
10492
10493 * Makefile.util.def (example_unit_test): Add
10494 grub-core/gnulib/libgnu.a.
10495
10496 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
10497
10498 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
10499
10500 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
10501
10502 Support xz compression on yeeloong.
10503
10504 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
10505 * configure.ac: Check for LZMA.
10506 * grub-core/Makefile.core.def (xz_decompress): New target.
10507 (none_decompress): Likewise.
10508 * grub-core/boot/decompressor/minilib.c: New file.
10509 * grub-core/boot/decompressor/none.c: Likewise.
10510 * grub-core/boot/decompressor/xz.c: Likewise.
10511 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
10512 * grub-core/kern/mips/cache_flush.S: Likewise.
10513 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
10514 * grub-core/kern/mips/startup.S: Move first stage to ...
10515 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
10516 nomacro.
10517 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
10518 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
10519 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
10520 Allocate statically.
10521 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
10522 Allocate statically or use scratch. Don't check CRC32.
10523 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
10524 Allocate statically. Don't check CRC32.
10525 * include/grub/decompressor.h: New file.
10526 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
10527 Removed.
10528 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
10529 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
10530 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
10531 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
10532 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
10533 * util/grub-mkimage.c (grub_compression_t): New type.
10534 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
10535 (image_target_desc): New field default_compression.
10536 (image_targets): Adjust yeeloong targets.
10537 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
10538 (compress_kernel): New parameter comp.
10539 (generate_image): Likewise. Handle new compression case.
10540 (options): New option --compression
10541 (help): Likewise.
10542 (main): Handle new option.
10543
10544 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
10545
10546 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
10547
10548 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
10549
10550 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10551 typo in __i386__ conditional.
10552
10553 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
10556 include.
10557
10558 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10559
10560 Implement EFI and ACPI multiboot2 extensions.
10561
10562 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
10563 new tags as supported.
10564 (acpiv2_size): New function.
10565 (grub_multiboot_get_mbi_size): Take new tags into account.
10566 (grub_multiboot_make_mbi): Add new tags.
10567 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
10568
10569 2010-09-21 Aleš Nesrsta <starous@volny.cz>
10570
10571 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
10572 Added missing configuration of USB device.
10573
10574 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10575
10576 * grub-core/normal/menu_entry.c (run): Make sure we always return
10577 a value.
10578
10579 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10580
10581 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
10582 NumberOfPages is UINT64 according to the UEFI specification, not
10583 UINTN. Fix printf format.
10584
10585 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10586
10587 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
10588 `err' to grub_usb_err_t.
10589 Reported and tested by: KESHAV P.R.
10590
10591 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10592
10593 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
10594 tpart non-const, so that we can assign to it. (Since this is a
10595 typedef, the constness refers to the pointer rather than what it
10596 points to.)
10597
10598 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10599
10600 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
10601 $(top_srcdir)/grub-core/gnulib as well as
10602 $(top_builddir)/grub-core/gnulib.
10603 Reported by: KESHAV P.R.
10604
10605 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10606
10607 * util/grub-install.in: Fix the bootloader ID option to be
10608 consistently --bootloader-id, not --bootloader_id.
10609 Reported by: KESHAV P.R.
10610
10611 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10612
10613 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
10614 check hash checksum." consistently translatable.
10615
10616 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10617
10618 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
10619 $(top_builddir).
10620
10621 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10622
10623 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
10624 (GRUB_MOD_INIT): Register sha1sum command.
10625 (GRUB_MOD_FINI): Unregister sha1sum command.
10626
10627 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10628
10629 Keep boot and grub directory names in sync with utils scripts
10630
10631 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
10632 * config.h.in: Add previous macros.
10633 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
10634 * util/grub-install.in: Use $bootdir and $grubdir variables.
10635
10636 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10637
10638 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
10639 convert partition names to disk names if the new `convert' parameter
10640 is set.
10641 (grub_util_biosdisk_get_grub_dev): If opening the disk device
10642 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
10643 disk in its own right. This can happen with Xen disk images.
10644
10645 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10646
10647 * util/grub-editenv.c: Update strings to avoid warnings when generating
10648 grub.pot file.
10649 * util/grub-setup.c: Likewise.
10650
10651 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 * configure.ac: Change version to 1.99~beta0.
10654
10655 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10658 Add BADRAM.
10659 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
10660 Likewise.
10661 * include/multiboot.h: Resynced with specification.
10662 * include/multiboot2.h: Likewise.
10663
10664 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10665
10666 Fix po directory handling.
10667
10668 * configure.ac: Create po/Makefile.in rather than po/Makefile.
10669 * grub-core/gnulib/Makefile.am: Import gettext module.
10670 * m4/gnulib-cache.m4: Likewise.
10671 * m4/gnulib-comp.m4: Likewise.
10672 * m4/gettext.m4: New file, from gnulib.
10673 * m4/glibc2.m4: Likewise.
10674 * m4/iconv.m4: Likewise.
10675 * m4/intdiv0.m4: Likewise.
10676 * m4/intl.m4: Likewise.
10677 * m4/intldir.m4: Likewise.
10678 * m4/intlmacosx.m4: Likewise.
10679 * m4/intmax.m4: Likewise.
10680 * m4/inttypes-pri.m4: Likewise.
10681 * m4/lcmessage.m4: Likewise.
10682 * m4/lib-ld.m4: Likewise.
10683 * m4/lib-link.m4: Likewise.
10684 * m4/lib-prefix.m4: Likewise.
10685 * m4/lock.m4: Likewise.
10686 * m4/nls.m4: Likewise.
10687 * m4/po.m4: Likewise.
10688 * m4/printf-posix.m4: Likewise.
10689 * m4/progtest.m4: Likewise.
10690 * m4/threadlib.m4: Likewise.
10691 * m4/uintmax_t.m4: Likewise.
10692 * m4/visibility.m4: Likewise.
10693 * po/Makefile.am: Remove.
10694 * po/Makefile.in.in: New file, from gettext.
10695 ($(DOMAIN).pot-update): Support POTFILES-shell.
10696 * po/Makevars: New file.
10697 * po/POTFILES-shell: Rename to ...
10698 * po/POTFILES-shell.in: ... this. Update.
10699 * po/POTFILES: Rename to ...
10700 * po/POTFILES.in: ... this. Update.
10701 * po/Rules-quot: New file, from gettext.
10702 * po/boldquot.sed: Likewise.
10703 * po/en@boldquot.header: Likewise.
10704 * po/en@quot.header: Likewise.
10705 * po/insert-header.sin: Likewise.
10706 * po/quot.sed: Likewise.
10707 * po/remove-potcdate.sin: Likewise.
10708
10709 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
10712
10713 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 * util/grub.d/20_linux_xen.in: Use submenus.
10716
10717 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10718
10719 Support submenus.
10720
10721 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
10722 parameter submenu. All users updated.
10723 * grub-core/normal/main.c (free_menu): Rename to ...
10724 (grub_normal_free_menu): ... this. Made global.
10725 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
10726 if requested.
10727 * grub-core/normal/menu_entry.c (screen): New field submenu.
10728 (make_screen): Set submenu.
10729 (run): Open new context if requested.
10730 * include/grub/menu.h (grub_menu_entry): New field submenu.
10731 * include/grub/normal.h (grub_normal_free_menu): New proto.
10732
10733 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10734
10735 Menu entries extractor.
10736
10737 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
10738 variants.
10739 (GRUB_MOD_INIT): Register new variants.
10740 (GRUB_MOD_FINI): Unregister new variants.
10741 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
10742 into grub_cmd_legacy_source.
10743 (grub_cmd_legacy_source): Implement extractor variants.
10744 (GRUB_MOD_INIT): Register new variants.
10745 (GRUB_MOD_FINI): Unregister new variants.
10746 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
10747 as an extractor.
10748 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
10749 search as an extractor.
10750 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
10751 test as an extractor.
10752 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
10753 as an extractor.
10754 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
10755 (grub_env_new_context): New function.
10756 (grub_env_context_open): Likewise.
10757 (grub_env_extractor_open): Likewise.
10758 (grub_env_extractor_close): Likewise.
10759 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
10760 grub_extractor_level.
10761 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
10762 * include/grub/env.h (grub_env_extractor_open): New proto.
10763 (grub_env_extractor_close): Likewise.
10764 * include/grub/normal.h (grub_extractor_level): New external variable.
10765
10766 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 Make cutmem accept a region specification.
10769 Suggested by: Samuel Thibault
10770
10771 * grub-core/mmap/mmap.c (parsemem): New function.
10772 (grub_cmd_cutmem): Handle new arguments.
10773
10774 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10775
10776 New command cutmem.
10777
10778 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
10779 (GRUB_MOD_INIT): Register new command.
10780 (GRUB_MOD_FINI): Unregister new command.
10781
10782 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10783
10784 Support some annoying BSD and Minix subpartitions.
10785
10786 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
10787 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
10788 Properly handle concatenation.
10789 * grub-core/kern/device.c (grub_device_iterate): Likewise.
10790 * grub-core/normal/completion.c (iterate_partition): Likewise.
10791 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
10792 contain partition. All users updated.
10793 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
10794 struct.
10795 (grub_openbsdlabel_partition_map): Likewise.
10796 (bsdlabel_partition_map_iterate): Rename to ..
10797 (iterate_real): ... this. New arguments sector, freebsd and pmap.
10798 (bsdlabel_partition_map_iterate): New function.
10799 (netopenbsdlabel_partition_map_iterate): Likewise.
10800 (netbsdlabel_partition_map_iterate): Likewise.
10801 (openbsdlabel_partition_map_iterate): Likewise.
10802 (GRUB_MOD_INIT): Register new partmaps.
10803 (GRUB_MOD_FINI): Unregister new partmaps.
10804 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
10805 (grub_partition_msdos_iterate): ... this. All users updated.
10806 Don't support embedding other than in a minix partition.
10807 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
10808 proto.
10809 * include/grub/partition.h (grub_partition): New field msdostype.
10810 * util/grub-install.in: Handle openbsd and netbsd types being in
10811 part_bsd module.
10812
10813 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
10816
10817 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
10818 * grub-core/Makefile.core.def (mdraid): Renamed to ...
10819 (mdraid09): ... this.
10820 (mdraid1x): New module.
10821 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
10822 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
10823
10824 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
10827 vsprintf.
10828
10829 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10830
10831 * grub-core/commands/efi/lsefimmap.c: Correct header.
10832 * NEWS: Update.
10833
10834 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10835
10836 * util/grub-editenv.c (argp_parser): Don't pass translated strings
10837 as printf format strings; the translations might contain '%' which
10838 could cause a crash.
10839 (main): Likewise.
10840 * util/grub-fstest.c (argp_parser): Likewise.
10841 * util/grub-setup.c (argp_parser): Likewise.
10842 (main): Likewise.
10843
10844 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10845
10846 Use argp in grub-fstest.
10847
10848 * util/grub-fstest.c: Don't include getopt.h.
10849 Include argp.h.
10850 (root): New variable.
10851 (args_count): Likewise.
10852 (nparm): Likewise.
10853 (num_disks): Likewise.
10854 (images): Likewise.
10855 (cmd): Likewise.
10856 (debug_str): Likewise.
10857 (args): Likewise.
10858 (options): Transformed to argp.
10859 (usage): Removed.
10860 (main): Split argument parsing into ...
10861 (argp_parser): ... this. Changed to argp format.
10862 (argp): New variable.
10863 (main): Use argp_parse.
10864
10865 2010-09-20 Tristan Gingold <gingold@free.fr>
10866 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
10867 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 * grub-core/commands/efi/lsefimmap.c: New file.
10870 * grub-core/Makefile.core.def (lsefimmap): New module.
10871 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
10872
10873 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10874
10875 Pause the execution (10s max) if any errors are displayed so the user
10876 has a chance to see them.
10877
10878 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
10879 (grub_print_error): Increment grub_err_printed_errors.
10880 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
10881 execution if any errors were displayed.
10882 (show_menu): Remove old code for pause.
10883 * grub-core/normal/menu_entry.c (run): Likewise.
10884 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
10885 users updated.
10886 (grub_normal_get_char_counter): Likewise.
10887 * include/grub/err.h (grub_err_printed_errors): New external variable.
10888 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
10889
10890 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10891
10892 Support multiboot VBE info.
10893
10894 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10895 Take VBE info into account.
10896 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
10897 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10898 Call fill_vbe_info when appropriate.
10899 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
10900 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
10901 as supported.
10902 (grub_multiboot_get_mbi_size): Take new tags into account.
10903 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
10904 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10905 Call fill_vbe_tag when appropriate.
10906 (grub_multiboot_make_mbi): Properly align tags.
10907 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
10908 function.
10909 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
10910 proto.
10911 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
10912
10913 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10914
10915 Suport manual terminal geometry specification.
10916
10917 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
10918 Save state in grub_ofconsole_terminfo_output.
10919 (grub_ofconsole_term): Use grub_terminfo_getwh.
10920 (grub_ofconsole_getwh): Removed.
10921 * grub-core/term/serial.c (grub_serial_getwh): Removed.
10922 (grub_serial_term): Use grub_terminfo_getwh.
10923 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
10924 (options): New struct.
10925 (OPTION_*): New enum.
10926 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
10927 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
10928 width and height.
10929 (grub_terminfo_getwh): New proto.
10930 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
10931
10932 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 Handle legacy "terminal" command.
10935
10936 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
10937 and FLAG_TERMINAL.
10938 (legacy_commands): Add terminal and title.
10939 (grub_legacy_parse): Handle terminal. Simplify title handling.
10940
10941 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10942
10943 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
10944 parameters overflow.
10945
10946 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10947
10948 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
10949 widthspec.h.
10950
10951 * docs/grub.texi (Shell-like scripting): Document `!'.
10952 (Network): Simplify using new i386-pc-pxe format. Mention
10953 grub-mknetdir.
10954
10955 * NEWS: Update.
10956
10957 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10958
10959 * Makefile.am (SUBDIRS): Restore "."; it's important to force
10960 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
10961 when needed.
10962
10963 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10964
10965 * grub-core/commands/efi/lsefisystab.c: Correct header.
10966 * grub-core/commands/efi/lssal.c: Likewise.
10967 * grub-core/commands/testload.c: Likewise.
10968
10969 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10970
10971 * util/grub-mkrescue.in: Add explicit root argument to --set to
10972 prevent the UUID being interpreted as an argument to --set (matches
10973 previous change to prepare_grub_to_access_device).
10974
10975 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10976
10977 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
10978 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
10979 the verbosity of later #ifs.
10980 (find_partition_start): Define this function on FreeBSD too.
10981 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
10982 function.
10983 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
10984 on FreeBSD.
10985
10986 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10987
10988 * util/grub-editenv.c: Use argp instead of getopt.
10989
10990 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10991
10992 * util/grub-setup.c: Use argp instead of getopt.
10993
10994 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10995
10996 Use gnulib-tool to create gnulib source files.
10997
10998 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
10999 grub-core/gnulib directories
11000 * .bzignore: Add **/.deps and autogenerated gnulib files
11001 * configure.ac: Assign auxiliary directory to build-aux, add invocation
11002 of gnulib macros, add grub-core/gnulib/Makefile
11003 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
11004 include m4 directory to aclocal.
11005 * Makefile.util.def: Remove direct compilation of gnulib source files
11006 and use the new grub-core/gnulib/libgnu.a.
11007 * build-aux/config.rpath: move config.rpath from top directory to
11008 build-aux
11009 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
11010 in gnulib headers
11011 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
11012 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
11013 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
11014 header.
11015 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
11016 string.
11017
11018 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11019
11020 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
11021 grub-core/genmod.sh and grub-core/gensyminfo.sh
11022
11023 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
11024
11025 Add a test for echo command options.
11026
11027 * tests/grub_cmd_echo.in: New test.
11028 * Makefile.util.def: Rules for new test.
11029
11030 2010-09-20 Szymon Janc <szymon@janc.net.pl>
11031
11032 Remove crc.mod and move crc command to hashsum.mod.
11033 Remove lib/crc.c - users updated to use gcrypt implementation.
11034
11035 * grub-core/commands/crc.c: Removed.
11036 * grub-core/Makefile.core.def (crc): Module removed.
11037 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
11038 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
11039 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
11040 * grub-core/lib/crc.c: Removed.
11041 * include/grub/lib/crc.h: Removed.
11042 * Makefile.util.def (crc): Remove lib/crc.c
11043 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
11044 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
11045 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
11046 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
11047 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
11048 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
11049
11050 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11051
11052 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
11053
11054 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 Split config.h for util and core.
11057
11058 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
11059 (ADDR32): Likewise.
11060 (DATA32): Likewise.
11061 (BSS_START_SYMBOL): Likewise.
11062 (END_SYMBOL): Likewise.
11063 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
11064 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
11065 * config.h.in: New file.
11066 * configure.ac: Use config-util.h as config define file.
11067 Rename MACHINE into GRUB_MACHINE. All users updated.
11068 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
11069 updated.
11070 (NESTED_FUNC_ATTR): Likewise.
11071 Substitue new variables.
11072 (COND_HAVE_ASM_USCORE): New conditional.
11073 * grub-core/Makefile.am (ASM_PREFIX): New variable.
11074 (kernel_syms.lst): Use ASM_PREFIX.
11075 * grub-core/kern/emu/console.c: Include config-util.h.
11076 * grub-core/kern/emu/misc.c: Likewise.
11077 * grub-core/kern/emu/mm.c: Likewise.
11078 * include/grub/emu/misc.h: Likewise.
11079 * include/grub/libgcc.h: Likewise.
11080
11081 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11082
11083 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
11084 constants usage.
11085 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
11086 Fix GRUB_TERM_KEY_* constants usage.
11087 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
11088
11089 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11090
11091 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
11092 print pointer.
11093 * grub-core/bus/usb/uhci.c: Remove empty define.
11094 (grub_uhci_check_transfer): Add missing cast.
11095 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
11096 print pointer.
11097 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
11098 PRIuGRUB_SIZE.
11099 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
11100
11101 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11102
11103 * grub-core/Makefile.core.def (legacycfg): Add
11104 lib/i386/pc/vesa_modes_table.c on emu.
11105
11106 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
11107
11108 Reduce number of temporary files generated by build system.
11109
11110 * grub-core/gencmdlist.sh: Removed.
11111 * grub-core/genfslist.sh: Removed.
11112 * grub-core/genhandlerlist.sh: Removed.
11113 * grub-core/genmodsrc.sh: Removed.
11114 * grub-core/genpartmaplist.sh: Removed.
11115 * grub-core/genparttoollist.sh: Removed.
11116 * grub-core/gentermiinallist.sh: Removed.
11117 * grub-core/genvideolist.sh: Removed.
11118
11119 * grub-core/genmod.sh.in: New file.
11120 * grub-core/gensyminfo.sh.in: New file.
11121
11122 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
11123 * conf/Makefile.extra-dist: Update with new files.
11124 * gentpl.py: Remove rules related to unnecessary temporary files.
11125 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
11126 and und-* files.
11127 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
11128 genmod.sh scripts.
11129 * grub-core/bus/usb/uhci.c: Remove empty #define.
11130 * grub-core/genmoddep.awk: Updated with new syminfo format.
11131 * util/bash-completion.d/Makefile.am: Add config.log to
11132 CLEANFILES.
11133
11134 2010-09-19 Yves Blusseau <blusseau@zetam.org>
11135
11136 * Makefile.util.def: Add forgotten $(LIBINTL) library.
11137
11138 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
11139
11140 * util/grub-mkconfig.in: Check the config script for syntax errors
11141 before saving.
11142
11143 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
11144 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11145
11146 * Makefile.util.def (grub-install): Use util/grub-install.in on all
11147 platforms.
11148 * util/grub-install.in: Add EFI and IEEE1275 support.
11149 * util/i386/efi/grub-install.in: Removed.
11150 * util/ieee1275/grub-install.in: Likewise.
11151
11152 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11153
11154 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
11155 (grub_cmd_cmosclean): Likewise.
11156 (GRUB_MOD_INIT): Register command cmosclean.
11157 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
11158 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
11159
11160 2010-09-18 Carles Pina i Estany <carles@pina.cat>
11161 2010-09-18 Aleš Nesrsta <starous@volny.cz>
11162 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11163
11164 Add keyboard layouts support.
11165
11166 * Makefile.util.def (grub-mklayout): New file.
11167 (grub-kbdcomp): New script.
11168 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
11169 Add keyboard_layouts.h.
11170 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
11171 commands/boot.c on yeeloong.
11172 (keylayouts): New module.
11173 * grub-core/bus/usb/ohci.c
11174 * grub-core/bus/usb/uhci.c
11175 * grub-core/bus/usb/usbhub.c (rescan): New variable.
11176 (grub_usb_add_hub): Poll interrupt pipe for device handling.
11177 (attach_root_port): Likewise.
11178 (poll_nonroot_hub): Likewise.
11179 (grub_usb_poll_devices): Likewise.
11180 (detach_device): Close transfer.
11181 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
11182 function.
11183 (grub_usb_bulk_setup_readwrite): Likewise.
11184 (grub_usb_bulk_finish_readwrite): Likewise.
11185 * grub-core/commands/keylayouts.c: New file.
11186 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
11187 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
11188 aliases.
11189 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
11190 support scancode 2.
11191 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
11192 * include/grub/keyboard_layouts.h: New file.
11193 * util/grub-mklayout.c: New file.
11194 * util/grub-kbdcomp.in: Likewise.
11195
11196 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 Unify memory types.
11199
11200 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
11201 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
11202 types.
11203 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
11204 (grub_upper_mem): Likewise.
11205 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
11206 * include/grub/memory.h (grub_memory_type_t): New enum.
11207 All users updated.
11208
11209 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11210
11211 * grub-core/Makefile.core.def (lsapm): New module.
11212 * grub-core/commands/i386/pc/lsapm.c: New file.
11213 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
11214 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
11215 Likewise.
11216 * include/grub/i386/pc/apm.h: New file.
11217 * include/multiboot.h (multiboot_apm_info): New struct.
11218
11219 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11220
11221 GRUB-legacy configuration file support.
11222
11223 * Makefile.util.def (grub-menulst2cfg): New util.
11224 * docs/man/grub-menulst2cfg.h2m: New file.
11225 * grub-core/Makefile.core.def (legacycfg): New module.
11226 * grub-core/commands/legacycfg.c: New file.
11227 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
11228 (grub_normal_add_menu_entry): ... this.
11229 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
11230 (grub_normal_set_password): ...this.
11231 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
11232 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
11233 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
11234 * grub-core/lib/legacy_parse.c: New file.
11235 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
11236 * include/grub/i386/pc/vesa_modes_table.h: New file.
11237 * include/grub/legacy_parse.h: Likewise.
11238 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
11239 * util/grub-menulst2cfg.c: New file.
11240
11241 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11242
11243 * grub-core/kern/emu/hostdisk.c
11244 (convert_system_partition_to_system_disk): Initialise node.
11245
11246 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11247
11248 * grub-core/kern/emu/hostdisk.c
11249 (convert_system_partition_to_system_disk): Fix devmapper memory pool
11250 leak.
11251 Reported and based on patch by: Modestas Vainius.
11252
11253 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11254
11255 Fix DM-RAID probing with recent versions of device-mapper udev
11256 rules.
11257
11258 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
11259 canonicalise device paths under /dev/mapper/.
11260 (convert_system_partition_to_system_disk): Compare the
11261 uncanonicalised path to /dev/mapper/ rather than the canonicalised
11262 path, since device nodes under /dev/mapper/ are often symlinks.
11263
11264 2010-09-17 Yves Blusseau <blusseau@zetam.org>
11265
11266 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
11267
11268 2010-09-16 Yves Blusseau <blusseau@zetam.org>
11269
11270 * configure.ac: Avoid some annoying error messages if freetype-config
11271 program is not found.
11272
11273 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11274
11275 Support RAID on virtio devices, and others.
11276
11277 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
11278 Rename to ...
11279 [__MINGW32__] (grub_find_device): ... this.
11280 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
11281 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
11282 reasonable default if dir is NULL.
11283 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
11284 ...
11285 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
11286 (grub_guess_root_device): Update callers.
11287 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
11288
11289 * util/raid.c (grub_util_getdiskname): Remove.
11290 (grub_util_raid_getmembers): Use grub_find_device rather than
11291 grub_util_getdiskname.
11292
11293 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11294
11295 * docs/grub.texi (serial): Remove obsolete comment about GRUB
11296 needing to be compiled with serial support.
11297 (ls): Indicate that multiple files are accepted.
11298 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
11299 indicate that multiple files are accepted.
11300
11301 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11302
11303 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
11304 libgrub_a_init.c, and util/bash-completion.d/grub.
11305
11306 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11307
11308 * util/grub-setup.c (setup): Fix incorrect container semantics.
11309
11310 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
11313 misusage.
11314 Reported by: J. Nick Terry
11315
11316 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 Move embedding routines to partmap sources files.
11319
11320 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
11321 [GRUB_UTIL]: New variable.
11322 (gpt_partition_map_iterate): Set part.parent.
11323 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
11324 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
11325 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
11326 New function.
11327 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
11328 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
11329 (grub_partition_map) [GRUB_UTIL]: New field embed.
11330 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
11331 (setup): Use ->embed.
11332
11333 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
11336 function.
11337 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
11338 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
11339
11340 2010-09-15 Yves Blusseau <blusseau@zetam.org>
11341
11342 Add function to get completions from usage.
11343
11344 * util/bash-completion.d/grub-completion.bash.in: Add function to get
11345 completions from usage. Use LC_ALL=C to get options properly.
11346
11347 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11348
11349 * grub-core/gnulib/basename-lgpl.c: Imported.
11350 * grub-core/gnulib/basename.c: Likewise.
11351 * grub-core/gnulib/dirname-lgpl.c: Likewise.
11352 * grub-core/gnulib/dirname.c: Likewise.
11353 * grub-core/gnulib/dirname.h: Likewise.
11354 * grub-core/gnulib/stripslash.c: Likewise.
11355
11356 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11357
11358 * grub-core/gnulib/error.c: Resynced.
11359 * grub-core/gnulib/getopt.c: Likewise.
11360 * grub-core/gnulib/getopt_int.h: Likewise.
11361 * grub-core/gnulib/regex.h: Likewise.
11362 * grub-core/gnulib/regex_internal.c: Likewise.
11363 * grub-core/gnulib/regex_internal.h: Likewise.
11364
11365 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11366
11367 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
11368 CRC calculations and validity checks.
11369 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
11370 calculations.
11371
11372 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11373
11374 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
11375
11376 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11377
11378 Fix incorrect echo options handling.
11379 Reported by: Yves Blusseau.
11380
11381 * include/grub/command.h (grub_command_flags_t): New flags
11382 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
11383 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
11384 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
11385
11386 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
11389 users updated.
11390 (GRUB_COMMAND_FLAG_MENU): Likewise.
11391 (GRUB_COMMAND_FLAG_BOTH): Likewise.
11392 (GRUB_COMMAND_FLAG_TITLE): Removed.
11393 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
11394 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
11395 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
11396 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
11397 (grub_command_flags_t): New enum. All users updated.
11398
11399 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
11400
11401 Fix solaris compilation.
11402
11403 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
11404 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
11405 (grub-emu-list): Likewise.
11406
11407 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11408
11409 Remove deprecated root command.
11410
11411 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
11412 updated.
11413
11414 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * util/i386/pc/grub-setup.c: Merge this ...
11417 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
11418 * util/grub-setup.c: ... into this.
11419 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
11420 New struct.
11421
11422 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11423
11424 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
11425 possible.
11426
11427 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11428
11429 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
11430 allocate p.
11431
11432 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11433
11434 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11435 explicit root argument to set to prevent UUID to be interpreted as
11436 argument to set.
11437
11438 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11439
11440 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
11441
11442 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 Don't export grub_gate_a20.
11445
11446 * grub-core/kern/i386/pc/init.c: Remove leftovers.
11447 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
11448 to ...
11449 (grub_gate_a20): ... this. All users updated.
11450 * include/grub/i386/pc/init.h: Removed. All users updated.
11451
11452 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11453
11454 Create euro.pf2 which supports most European languages.
11455
11456 * Makefile.am (grubdata_DATA): Add euro.pf2.
11457 (euro.pf2): New target.
11458 (CLEANFILES): Add euro.pf2.
11459
11460 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11461
11462 * configure.ac: Disable emu-usb by default to prevent inadvertent
11463 device takeover.
11464
11465 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 Disable usbserial on grub-emu since our libusb code isn't good enough
11468 yet.
11469
11470 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
11471 (usbserial_pl2303): Likewise.
11472 (usbserial_ftdi): Likewise.
11473
11474 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11475
11476 * include/grub/disk.h (grub_disk): Remove has_partitions.
11477 All users updated.
11478 * disk/loopback.c (grub_loopback): Remove has_partitions.
11479 All users updated.
11480 (options): Remove partitions. All users updated.
11481 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
11482 * util/i386/pc/grub-setup.c (setup): copy partition table only when
11483 actual partition table is found.
11484
11485 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 Remove readability checks (too many false negatives).
11488
11489 * util/grub-install.in: Remove readability checks.
11490 * util/grub-mkconfig.in: Likewise.
11491 * util/grub.d/10_hurd.in: Likewise.
11492 * util/grub.d/10_kfreebsd.in: Likewise.
11493 * util/grub.d/10_linux.in: Likewise.
11494 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
11495 way.
11496
11497 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11498
11499 Enable acpi shutdown on all ACPI platforms.
11500
11501 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
11502 on coreboo, multiboot and EFI.
11503 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
11504 (grub_acpi_halt): Likewise.
11505 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
11506 (grub_cmd_halt): Don't call grub_acpi_halt directly.
11507 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
11508 * grub-core/lib/i386/halt.c (grub_halt)
11509 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
11510
11511 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11512
11513 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
11514 context.
11515
11516 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 * grub-core/video/efi_gop.c: Fix over-80-chars line.
11519 * grub-core/video/efi_uga.c: Likewise.
11520
11521 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11522
11523 Filter devaliases and never open same device twice.
11524
11525 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
11526 (last_ihandle): Likewise.
11527 (ofdisk_hash_ent): New member shortest.
11528 (ofdisk_hash_add): Add canonical path too.
11529 (scan): New function.
11530 (grub_ofdisk_iterate): Iterate over hashed entries.
11531 (compute_dev_path): Don't add :0.
11532 (grub_ofdisk_open): Don't really open the disk.
11533 (grub_ofdisk_close): Avoid closing unrelated disk.
11534 (grub_ofdisk_read): Implement reopen logic.
11535 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
11536 New function.
11537 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
11538 New proto.
11539
11540 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 Fix sparc64.
11543
11544 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
11545 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
11546 right address. Add sparc64_ieee1275_ldflags.
11547 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
11548 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
11549 to grub_host_to_target_addr
11550 (load_image): Likewise.
11551
11552 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11553
11554 * grub-core/normal/completion.c (complete_file): Handle device
11555 containing slash.
11556 Fix based on patch by Doug Nazar.
11557
11558 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 grub-mknetdir script.
11561
11562 * Makefile.util.def (grub-mknetdir): New module.
11563 * tests/util/grub-shell.in: Support boot=net
11564 * util/grub-mknetdir.in: New file.
11565
11566 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11567
11568 videoinfo on non-vbe.
11569
11570 * grub-core/Makefile.core.def (vbeinfo): Removed.
11571 (vbetest): Removed.
11572 (videoinfo): New module.
11573 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
11574 * grub-core/commands/i386/pc/vbetest.c: Removed.
11575 * grub-core/commands/videoinfo.c: New file.
11576 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
11577 specification.
11578 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
11579 as vbetest.
11580 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
11581 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
11582 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
11583 mode_number. New parameter mode. All users updated.
11584 (grub_video_gop_iterate): New function.
11585 (grub_video_efi_gop): New member iterate.
11586 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
11587 (grub_vbe_set_video_mode): Remove setting useless fields.
11588 (vbe2videoinfo): New function.
11589 (grub_video_vbe_iterate): Likewise.
11590 (grub_video_vbe_setup): Use vbe2videoinfo.
11591 (grub_video_vbe_print_adapter_specific_info): New function.
11592 (grub_video_vbe_adapter): New fields iterate and
11593 print_adapter_specific_info.
11594 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
11595 All users updated.
11596 (grub_video_mode_info): New field mode_number.
11597 (grub_video_adapter): New fields iterate and
11598 print_adapter_specific_info.
11599
11600 2010-09-13 Tristan Gingold <gingold@free.fr>
11601 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
11602 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 * grub-core/commands/efi/lsefisystab.c: New file.
11605 * grub-core/commands/efi/lssal.c: Likewise.
11606 * grub-core/Makefile.core.def (lsacpi): New module.
11607 (lsefisystab): Likewise.
11608 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
11609 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
11610 (grub_efi_sal_system_table): New struct.
11611 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
11612 (grub_efi_sal_system_table_memory_descriptor): Likewise.
11613 (grub_efi_sal_system_table_platform_features): Likewise.
11614 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
11615 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
11616 (grub_efi_sal_system_table_ap_wakeup): Likewise.
11617 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
11618
11619 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 Support explicit user claim that a device is BIOS-visible.
11622
11623 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
11624 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
11625 * grub-core/kern/emu/hostdisk.c
11626 (convert_system_partition_to_system_disk): Support mdX.
11627 (find_system_device): New parameter add. All users updated.
11628 (grub_util_biosdisk_is_present): New function.
11629 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
11630 proto.
11631
11632 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11633
11634 Search hints support.
11635
11636 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
11637 All users updated.
11638
11639 2010-09-13 Yves Blusseau <blusseau@zetam.org>
11640
11641 Bash completion script for util commands
11642
11643 * Makefile.am: Add util/bash-completion.d directory
11644 * configure.ac: Likewise.
11645 * util/bash-completion.d/Makefile.am: New file.
11646 * util/bash-completion.d/grub-completion.bash.in: Likewise.
11647
11648 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11649
11650 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
11651 (print_backlog): set backlog_ucs4 and backlog_glyphs.
11652 Reported by: Yves Blusseau.
11653
11654 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11655
11656 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
11657 partition size and offset.
11658
11659 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11660
11661 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
11662
11663 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11664
11665 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
11666
11667 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11668
11669 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
11670 (grub_xvasprintf): Likewise.
11671
11672 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11673
11674 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
11675
11676 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11677
11678 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
11679 args ending with NULL.
11680
11681 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11682
11683 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
11684 pointer.
11685
11686 2010-09-11 Szymon Janc <szymon@janc.net.pl>
11687
11688 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
11689
11690 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 Shutdown using ACPI.
11693
11694 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
11695 * grub-core/commands/acpihalt.c: New file.
11696 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
11697 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
11698 (grub_acpi_halt): New proto.
11699 (GRUB_ACPI_SLP_EN): New const.
11700 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
11701 (GRUB_ACPI_OPCODE_*): New enum.
11702 (GRUB_ACPI_EXTOPCODE_*): Likewise.
11703
11704 2010-09-11 Tristan Gingold <gingold@free.fr>
11705 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
11706 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * commands/lsacpi.c: New file.
11709 * grub-core/Makefile.core.def (lsacpi): New module.
11710 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
11711 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
11712 (grub_acpi_madt_entry_header): New struct.
11713 (grub_acpi_madt): Likewise.
11714 (grub_acpi_madt_entry_interrupt_override): Likewise.
11715 (grub_acpi_madt_entry_sapic): Likewise.
11716 (grub_acpi_madt_entry_lsapic): Likewise.
11717 (grub_acpi_madt_entry_platform_int_source): Likewise.
11718 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
11719 (PRIuGRUB_UINT32_T): Likewise.
11720 (PRIxGRUB_UINT64_T): Likewise.
11721
11722 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11723
11724 Implement loading palette on ieee1275_fb.
11725
11726 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
11727 (have_setcolors): Likewise.
11728 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
11729 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
11730 (grub_video_ieee1275_set_palette): Implement.
11731
11732 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11733 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
11734
11735 * util/grub-install.in (grub_partition): New variable.
11736 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
11737 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
11738 Fixes a bug reported by Yves Blusseau.
11739
11740 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11741
11742 Fix emu on mipsel.
11743
11744 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
11745 =grub_cpu_flush_cache on all mips and not only yeeloong.
11746 * configure.ac (COND_mips): New conditional.
11747 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
11748 platforms.
11749 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
11750 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
11751 [GRUB_LINKER_HAVE_INIT]: New function.
11752 (grub_emu_post_init): Likewise.
11753 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
11754 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
11755 * include/grub/cache.h (_mips): Include mips/cache.h.
11756 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
11757 LVM and RAID prototypes.
11758 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
11759 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
11760 function.
11761
11762 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11763
11764 * util/grub-install.in: Don't try to verify core.img until after
11765 running grub-mkimage to create it.
11766
11767 2010-09-10 Robert Millan <rmh@gnu.org>
11768
11769 * util/grub.d/10_hurd.in: Add misc readability checks.
11770 * util/grub.d/10_kfreebsd.in: Likewise.
11771 * util/grub.d/10_linux.in: Likewise.
11772
11773 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11774
11775 * util/grub-install.in: ${imgext} won't be defined here until the
11776 install branch is merged. For the meantime, only verify core.img on
11777 i386-pc and sparc64-ieee1275 platforms.
11778
11779 2010-09-10 Robert Millan <rmh@gnu.org>
11780
11781 Solaris support in grub_find_zpool_from_dir(). Thanks
11782 Seth Goldberg for referring to getextmntent() facility.
11783
11784 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
11785 `sys/mkdev.h'.
11786 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
11787 `<sys/mnttab.h>'.
11788 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
11789 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
11790 method for finding zpool name.
11791
11792 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11793
11794 grub-fstest needs the host and hostfs modules while other utilities
11795 actively require those modules to be absent, so grub-fstest needs
11796 its own initialisation and finalisation code.
11797
11798 * Makefile.am (grub_fstest.pp): New target.
11799 (grub_fstest_init.lst): Likewise.
11800 (grub_fstest_init.c): Likewise.
11801 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
11802
11803 2010-09-10 Robert Millan <rmh@gnu.org>
11804
11805 * configure.ac: Check for `struct statfs.f_fstypename' and
11806 `struct statfs.f_mntfromname'.
11807
11808 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
11809 kFreeBSD-specific code.
11810
11811 2010-09-10 Robert Millan <rmh@gnu.org>
11812
11813 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
11814 on ZFS. Now non-main filesystems are supported as / too.
11815
11816 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
11817
11818 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
11819 and grub-core/disk/host.c to ...
11820 (grub-fstest): ... here. Having the host disk implementation
11821 present confuses grub-probe and other utility programs.
11822
11823 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
11824 when writing to a file, not when writing to stdout.
11825
11826 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
11827
11828 * tests/partmap_test.in: New test for partitions.
11829 * Makefile.util.def: Rules for new test.
11830
11831 2010-09-09 Robert Millan <rmh@gnu.org>
11832
11833 * util/grub-probe.c (probe): Fix a pair of unhandled error
11834 conditions.
11835
11836 2010-09-09 Robert Millan <rmh@gnu.org>
11837
11838 Basic Btrfs support (detection and UUID).
11839
11840 * grub-core/fs/btrfs.c: New file.
11841 * Makefile.util.def (library): Register btrfs.c.
11842 * grub-core/Makefile.core.def: Likewise.
11843
11844 2010-09-08 Robert Millan <rmh@gnu.org>
11845
11846 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
11847 with (optional) parameters to specify device and relative path.
11848 * util/grub-install.in: Use is_path_readable_by_grub() to
11849 verify readability of a few critical files.
11850 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
11851 verify readability of grub.cfg.new.
11852
11853 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 Split minix.mod into minix.mod and minix2.mod.
11856
11857 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
11858 * grub-core/Makefile.core.def (minix2): New module.
11859 * grub-core/fs/minix.c: Use definitions instead of runtime version
11860 checking.
11861 * grub-core/fs/minix2.c: New file.
11862
11863 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11864
11865 Add new --boot-directory option to replace --root-directory
11866
11867 * util/grub-install.in: Add new --boot-directory option
11868 * util/grub-reboot.in: Likewise.
11869 * util/grub-set-default.in: Likewise.
11870
11871 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11872
11873 * util/grub-mkconfig.in: Use new variable.
11874
11875 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11876
11877 * configure.ac: Define some useful variables.
11878
11879 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11880
11881 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11882 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
11883 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
11884 Use terminfo and don't use cursor-on/cursor-off unless it's known
11885 to work.
11886 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
11887 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
11888
11889 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
11890
11891 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
11892 starts with "(,", fill the drive containing the loaded image in
11893 between those two characters, but expect that a full partition
11894 specification including partition map names will follow.
11895
11896 2010-09-08 Robert Millan <rmh@gnu.org>
11897
11898 * configure.ac: Remove `--enable-grub-fstest' option.
11899 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
11900
11901 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
11902 `grub-fstest' instead of `grub-probe' for readability verification.
11903 * util/grub-probe.c (probe): Remove readability verification kludge.
11904
11905 2010-09-08 Robert Millan <rmh@gnu.org>
11906
11907 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
11908 initializing `GRUB_FS'.
11909
11910 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
11911
11912 Not command (!) support to GRUB script.
11913
11914 * tests/grub_script_not.in: New test.
11915 * Makefile.util.def: Rules for new test.
11916
11917 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
11918 ! command as a special case.
11919 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
11920
11921 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11922
11923 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
11924 grub_free.
11925
11926 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11927
11928 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
11929
11930 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11931
11932 * docs/grub.texi (Shell-like scripting): Documentation for break,
11933 continue, shift and return commands.
11934
11935 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 Rename CD-ROM to cd on BIOS.
11938
11939 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
11940 "cd".
11941 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
11942
11943 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11944
11945 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
11946 * util/grub-probe.c (main): Likewise.
11947 * util/i386/pc/grub-setup.c (main): Likewise.
11948 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
11949 Reported and debugged by: alexxy
11950
11951 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
11954 diagnostic info.
11955
11956 2010-09-05 Jo Shields <directhex@apebox.org>
11957
11958 * util/grub.d/30_os-prober.in: Add missing classes.
11959
11960 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 * docs/grub.texi (Theme file format): Document new position format.
11963
11964 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11965
11966 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
11967 a table. Use @code instead of @verbatim.
11968
11969 2010-09-05 Colin D Bennett <colin@gibibit.com>
11970
11971 Gfxmenu documentation.
11972
11973 * docs/grub.texi (Theme file format): New chapter.
11974
11975 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11976
11977 * grub-core/Makefile.core.def (xzio): New module.
11978 * grub-core/io/xzio.c: New file.
11979 * grub-core/lib/xzembed/xz.h: New file (from xembed).
11980 * grub-core/lib/xzembed/xz_config.h: Likewise.
11981 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
11982 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
11983 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
11984 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
11985 * grub-core/lib/xzembed/xz_private.h: Likewise.
11986 * grub-core/lib/xzembed/xz_stream.h: Likewise.
11987 * include/grub/file.h (grub_file_filter_id): New compression filter
11988 GRUB_FILE_FILTER_XZIO.
11989
11990 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11991
11992 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
11993 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
11994 size.
11995
11996 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11997
11998 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
11999 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
12000
12001 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12002
12003 Uncompressed checksum support.
12004
12005 * grub-core/commands/hashsum.c (options): Add option --uncompress.
12006 (check_list): New parameter uncompress.
12007 (grub_cmd_hashsum): Handle --uncompress.
12008
12009 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12010
12011 Reintroduce testload.
12012
12013 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
12014 from here ...
12015 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
12016 (GRUB_MOD_INIT): New function.
12017 (GRUB_MOD_FINI): Likewise.
12018 * grub-core/Makefile.core.def (testload): New module.
12019
12020 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12021
12022 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
12023 (uint8_t): New type.
12024 (uint16_t): Likewise.
12025 (uint32_t): Likewise.
12026 (uint64_t): Likewise.
12027
12028 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12029
12030 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
12031
12032 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
12035 Made static.
12036 (grub_gzfile_open): Removed. All users updated.
12037 (GRUB_MOD_INIT): New function.
12038 (GRUB_MOD_FINI): Likewise.
12039 * grub-core/kern/file.c (grub_file_filters_all): New variable.
12040 (grub_file_filters_enabled): Likewise.
12041 (grub_file_open): Handle filters.
12042 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
12043 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
12044 * include/grub/file.h (grub_file_filter_id_t): New type.
12045 (grub_file_filter_t): Likewise.
12046 (grub_file_filters_all): New extern variable.
12047 (grub_file_filters_enabled): Likewise.
12048 (grub_file_filter_register): New inline function.
12049 (grub_file_filter_unregister): Likewise.
12050 (grub_file_filter_disable): Likewise.
12051 (grub_file_filter_disable_compression): Likewise.
12052 * include/grub/gzio.h: Removed.
12053
12054 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12055
12056 Filename expansion support for wildcards in GRUB script.
12057
12058 * tests/grub_script_expansion.in: New test.
12059 * Makefile.util.def: Rule for new test.
12060
12061 * grub-core/commands/wildcard.c: New file, implements filename
12062 expansion support for GRUB script.
12063 * grub-core/Makefile.core.def: Rule update for regexp.mod.
12064 * grub-core/script/argv.c: Cosmetic changes.
12065 * grub-core/script/execute.c (grub_script_arglist_to_argv):
12066 Refactored to perform wildcard expansion on arguments.
12067 * include/grub/script_sh.h (grub_script_wildcard_translator): New
12068 struct.
12069
12070 * tests/util/grub-shell.in: Fix quoting for read input.
12071
12072 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12073
12074 Support for updating environment variables with matched substrings
12075 of regexp.
12076
12077 * tests/grub_cmd_regexp.in: New test.
12078 * Makefile.util.def: Rule for new test.
12079
12080 * grub-core/commands/regexp.c: New option -s to update environment
12081 variables with regexp matches.
12082
12083 2010-09-04 Szymon Janc <szymon@janc.net.pl>
12084
12085 * include/grub/file.h (grub_file): New member not_easly_seekable.
12086 (grub_file_seekable): New inline function.
12087 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
12088 easily seekable.
12089 (grub_gzio_open): Set not_easly_seekable.
12090 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
12091 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
12092
12093 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12094
12095 Support for options to appear multiple times on cmdline.
12096
12097 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
12098 * grub-core/commands/extcmd.c: Support for repeatable option.
12099 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
12100 repeatable option support.
12101
12102 Refactor menuentry into a regular command.
12103
12104 * grub-core/commands/menuentry.c: New file, menuentry command
12105 implementation.
12106 * grub-core/Makefile.core.def: Rule update for normal.mod.
12107 * grub-core/normal/main.c: Moved menuentry creation to
12108 grub-core/commands/menuentry.c.
12109 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
12110 (grub_menu_execute_entry_real): Removed.
12111 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
12112 function.
12113 (grub_script_execute_menuentry): Removed.
12114 * grub-core/script/parser.y (menuentry): Removed.
12115 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
12116 * grub-core/script/yylex.l (menuentry): Removed.
12117 * include/grub/menu.h (grub_menu_init): New prototype.
12118 (grub_menu_fini): New prototype.
12119 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
12120 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
12121 (grub_script_execute_sourcecode): New prototype.
12122
12123 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12124
12125 "return" command for GRUB script functions.
12126
12127 * tests/grub_script_return.in: New test.
12128 * Makefile.util.def: Rules for new test.
12129
12130 * grub-core/script/execute.c (grub_script_return): New function.
12131 * grub-core/script/main.c: Register/unregister return commaond.
12132 * include/grub/script_sh.h (grub_script_return): New prototype.
12133
12134 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12135
12136 "setparams" command to update positional parameters.
12137
12138 * tests/grub_script_setparams.in: New test.
12139 * Makefile.util.def: Rules for new test.
12140
12141 * grub-core/script/argv.c (grub_script_argv_make): New function.
12142 * grub-core/script/execute.c (replace_scope): New function.
12143 (grub_script_setparams): New function.
12144 * grub-core/script/lexer.c: Remove unused variables.
12145 * grub-core/script/main.c: Register/unregister setparams command.
12146 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
12147 (grub_script_setparams): New prototype.
12148
12149 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12150
12151 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
12152 grub_free order.
12153
12154 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12155
12156 Support for passing block of commands as an argument to extcmds.
12157
12158 * Makefile.util.def: Rules for new test.
12159 * tests/grub_script_blockarg.in: New test.
12160 * grub-core/tests/test_blockarg.c: New file, block argument
12161 command used in the test.
12162
12163 * include/grub/extcmd.h (grub_extcmd_context): New struct.
12164 (grub_register_extcmd_prio): New function prototype.
12165 (grub_extcmd_dispatcher): New function prototype.
12166 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
12167 type.
12168 * include/grub/script_sh.h (struct grub_script): New members
12169 `children', `next_siblings' and `refcnt' for block arguments and
12170 reference counting.
12171 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
12172 (grub_script_arg): New member `script' for block argument.
12173 (grub_script_argv): New member `script' for block argument.
12174 (grub_parser_param): New member `scripts' for block argument.
12175 (grub_script_mem_free): New extern function prototype.
12176 (grub_script_ref): New function prototype.
12177 (grub_script_unref): New function prototype.
12178
12179 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
12180 extcmd form to support block arguments.
12181 * grub-core/script/argv.c: Block arguments support.
12182 * grub-core/script/execute.c: Likewise.
12183 * grub-core/script/lexer.c: Likewise.
12184 * grub-core/script/main.c: Likewise.
12185 * grub-core/script/script.c: Likewise.
12186 * grub-core/script/parser.y: Likewise. New `block' and `block0'
12187 non-terminals.
12188
12189 * grub-core/commands/acpi.c: Update extcmd implementations with
12190 grub_extcmd_context_t.
12191 * grub-core/commands/cat.c: Likewise.
12192 * grub-core/commands/echo.c: Likewise.
12193 * grub-core/commands/extcmd.c: Likewise.
12194 * grub-core/commands/hashsum.c: Likewise.
12195 * grub-core/commands/hdparm.c: Likewise.
12196 * grub-core/commands/help.c: Likewise.
12197 * grub-core/commands/hexdump.c: Likewise.
12198 * grub-core/commands/i386/cpuid.c: Likewise.
12199 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12200 * grub-core/commands/i386/pc/halt.c: Likewise.
12201 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12202 * grub-core/commands/iorw.c: Likewise.
12203 * grub-core/commands/keystatus.c: Likewise.
12204 * grub-core/commands/loadenv.c: Likewise.
12205 * grub-core/commands/ls.c: Likewise.
12206 * grub-core/commands/lspci.c: Likewise.
12207 * grub-core/commands/memrw.c: Likewise.
12208 * grub-core/commands/probe.c: Likewise.
12209 * grub-core/commands/search_wrap.c: Likewise.
12210 * grub-core/commands/setpci.c: Likewise.
12211 * grub-core/commands/sleep.c: Likewise.
12212 * grub-core/disk/loopback.c: Likewise.
12213 * grub-core/hello/hello.c: Likewise.
12214 * grub-core/loader/i386/bsd.c: Likewise.
12215 * grub-core/loader/xnu.c: Likewise.
12216 * grub-core/term/gfxterm.c: Likewise.
12217 * grub-core/term/serial.c: Likewise.
12218 * grub-core/tests/lib/functional_test.c: Likewise.
12219
12220 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12221
12222 Multi-line quoted strings support.
12223
12224 * grub-core/script/lexer.c (append_newline): Removed.
12225 (grub_script_lexer_yywrap): Refactored.
12226 (grub_script_lexer_init): Refactored.
12227 * grub-core/script/yylex.l (yywrap): New function.
12228 (grub_lexer_resplit): New function.
12229 (grub_lexer_unput): New function.
12230 * include/grub/script_sh.h (grub_lexer_param): New members, unput
12231 and resplit.
12232 * tests/grub_script_echo1.in: Added few more testcases.
12233
12234 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
12235
12236 * grub-core/kern/misc.c: Don't add abort alias in utils.
12237 Reported by: echoline.
12238
12239 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
12240
12241 Add missing files into "make dist" tarball for other platforms.
12242
12243 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
12244 * conf/Makefile.common (dist_noinst_DATA): New variable.
12245 * conf/Makefile.extra-dist: Added missing make dist files.
12246 * grub-core/Makefile.core.def: Likewise.
12247
12248 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12249
12250 Compress grub_prefix.
12251
12252 * grub-core/boot/i386/pc/lnxboot.S: Use
12253 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
12254 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
12255 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
12256 GRUB_MACHINE_PREFIX_END. All users updated.
12257 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
12258 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
12259 + 0x40.
12260 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12261 * util/grub-mkimage.c (image_target_desc): Change data_end to
12262 prefix_end. All users updated.
12263
12264 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12265
12266 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
12267 value.
12268 (grub_openbsd_boot): Likewise.
12269 (grub_netbsd_boot): Likewise.
12270 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
12271 (grub_xnu_boot): Likewise.
12272
12273 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12274
12275 * configure.ac: Clean LIBS variable after tests.
12276
12277 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12278
12279 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
12280
12281 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12282
12283 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
12284 echo if libdevmapper will be used.
12285
12286 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
12287
12288 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
12289 constant for the same file.
12290
12291 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12292
12293 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
12294
12295 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12296
12297 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
12298 grub-core/*.pp.
12299
12300 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12301
12302 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
12303 required by the boot protocol.
12304
12305 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
12306 ebp and edi members.
12307 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
12308 state.ebp and state.edi.
12309 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
12310 %ebp and %edi according to grub_relocator32_ebp and
12311 grub_relocator32_edi respectively.
12312 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
12313 and state.edi.
12314
12315 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12316
12317 Add i386-pc-pxe image target.
12318
12319 * util/grub-mkimage.c (image_target_desc): New enum value
12320 IMAGE_I386_PC_PXE.
12321 (image_targets): New target i386-pc-pxe.
12322 (generate_image): Handle i386-pc-pxe image.
12323
12324 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12325
12326 Fix grub_pxe_scan.
12327
12328 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
12329 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
12330 All users updated.
12331 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
12332 (grub_pxe_pxenv): Correct type.
12333
12334 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12335
12336 * NEWS: Document most of the important changes since 1.98.
12337
12338 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12339
12340 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
12341 generated manual page) a little.
12342
12343 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12344
12345 * docs/grub.texi: Add myself as an author.
12346
12347 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
12348
12349 * Makefile.util.def (libgrub.a): Add missing sunpc.
12350 Reported by: Seth Goldberg.
12351
12352 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12353
12354 Interrupt wrapping and code simplifications.
12355
12356 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
12357 x86_noieee1275 which are functionaly equivalent in this case.
12358 (grub-install): Make source on each platform explicit. Enable on
12359 all noemu.
12360 * gentpl.py (x86_efi_pc): Removed group.
12361 (x86_noefi): Likewise.
12362 (i386_noefi): Likewise.
12363 (x86_noieee1275): Likewise.
12364 (i386_noieee1275): Likewise.
12365 (i386_noefi_noieee1275): Likewise.
12366 (i386_pc_qemu_coreboot): Likewise.
12367 (i386_coreboot_multiboot): Likewise.
12368 (i386_pc_coreboot_multiboot_qemu): Likewise.
12369 (x86_noefi_mips): Likewise.
12370 (noieee1275): Likewise.
12371 (ieee1275_mips): Likewise.
12372 (noemu_noieee1275): Likewise.
12373 (cmos): New group.
12374 (usb): Likewise.
12375 (videoinkernel): Likewise.
12376 (videomodules): Likewise.
12377 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
12378 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
12379 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
12380 include/grub/loader.h, include/grub/msdos_partition.h,
12381 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
12382 include/grub/machine/console.h, include/grub/machine/vga.h,
12383 include/grub/machine/vbe.h, include/grub/machine/init.h,
12384 include/grub/machine/kernel.h, include/grub/cpu/time.h,
12385 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
12386 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
12387 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
12388 * grub-core/Makefile.core.def (kernel): Explicit the source for
12389 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
12390 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
12391 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
12392 Use videoinkernel tag.
12393 (usb): Enable on all usb.
12394 (usbserial_common): Likewise.
12395 (usbserial_pl2303): Likewise.
12396 (usbserial_ftdi): Likewise.
12397 (uhci): Enable on all x86.
12398 (ohci): Enable on all pci.
12399 (cmostest): Enable on all CMOS.
12400 (acpi): Include commands/acpi.c on all platforms.
12401 (halt): Add relevant lib/*/halt.c.
12402 (hdparm): Enable on all pci.
12403 (lspci): Likewise.
12404 (usbtest): Enable on all usb.
12405 (ata): Enable on all pci.
12406 (ata_pthru): Likewise.
12407 (usbms): Enable on all usb.
12408 (usb_keyboard): Likewise.
12409 (font): Use tag videomodules.
12410 (bufio): Likewise.
12411 (datetime): Use tag cmos. Enable on all noemu.
12412 (mmap): Use tags common and x86.
12413 (gfxterm): Use tag videomodules.
12414 (bitmap): Likewise.
12415 (bitmap_scale): Likewise.
12416 (video_fb): Likewise.
12417 (video): Likewise.
12418 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
12419 adjust padding accordingly. All users updated.
12420 (grub_ohci_transaction): Fix bad format specification.
12421 (GRUB_MOD_INIT): Add asserts for struct size.
12422 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
12423 (grub_alloc_td): Likewise.
12424 (grub_free_queue): Likewise.
12425 (grub_uhci_transfer): Likewise.
12426 (grub_uhci_transaction): Fix bad format specification.
12427 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
12428 (grub_usb_bulk_readwrite): Likewise.
12429 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
12430 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
12431 Made static.
12432 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
12433 Made static.
12434 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
12435 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
12436 Transformed into C.
12437 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
12438 Moved from here ...
12439 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
12440 ... here. Transformed into C. Made static.
12441 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
12442 Moved from here ...
12443 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
12444 ... here. Transformed into C. Made static.
12445 * grub-core/kern/i386/pc/startup.S
12446 (grub_biosdisk_check_int13_extensions): Moved from here ...
12447 * grub-core/disk/i386/pc/biosdisk.c
12448 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
12449 Made static.
12450 * grub-core/kern/i386/pc/startup.S
12451 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
12452 * grub-core/disk/i386/pc/biosdisk.c
12453 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
12454 Transformed into C. Made static.
12455 * grub-core/kern/i386/pc/startup.S
12456 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
12457 * grub-core/disk/i386/pc/biosdisk.c
12458 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
12459 Transformed into C. Made static.
12460 * grub-core/kern/i386/pc/startup.S
12461 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
12462 * grub-core/disk/i386/pc/biosdisk.c
12463 (grub_biosdisk_get_diskinfo_standard): ... here.
12464 Transformed into C. Made static.
12465 * grub-core/kern/i386/pc/startup.S
12466 (grub_biosdisk_get_num_floppies): Moved from here ...
12467 * grub-core/disk/i386/pc/biosdisk.c
12468 (grub_biosdisk_get_num_floppies): ... here.
12469 Transformed into C. Made static.
12470 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
12471 New function.
12472 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
12473 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
12474 Transformed into C. Made static.
12475 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
12476 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
12477 Transformed into C. Made static.
12478 * grub-core/kern/i386/ieee1275/init.c: Removed.
12479 * grub-core/kern/i386/misc.S: Likewise.
12480 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
12481 Splitted from here ...
12482 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
12483 Transformed into C. Made static. All users updated.
12484 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
12485 Transformed into C. Made static. All users updated.
12486 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
12487 Moved from here...
12488 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
12489 Transformed into C. Made static. All users updated.
12490 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
12491 Moved from here...
12492 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
12493 Transformed into C. Made static. All users updated.
12494 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
12495 Removed (replaced by C version).
12496 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
12497 Moved from here...
12498 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
12499 Transformed into C. Made static.
12500 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
12501 Moved from here...
12502 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
12503 ... here. Transformed into C.
12504 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
12505 Moved from here...
12506 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
12507 ... here. Transformed into C.
12508 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
12509 Moved from here...
12510 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
12511 ... here. Transformed into C. Made static.
12512 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
12513 Moved from here...
12514 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
12515 ... here. Transformed into C.
12516 * grub-core/kern/i386/pc/startup.S
12517 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
12518 * grub-core/video/i386/pc/vbe.c
12519 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
12520 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
12521 Moved from here...
12522 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
12523 ... here. Transformed into C.
12524 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
12525 Moved from here...
12526 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
12527 ... here. Transformed into C.
12528 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
12529 Moved from here...
12530 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
12531 ... here. Transformed into C.
12532 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
12533 Moved from here...
12534 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
12535 ... here. Transformed into C.
12536 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
12537 Moved from here...
12538 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
12539 ... here. Transformed into C. Made static.
12540 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
12541 Moved from here...
12542 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
12543 ... here. Transformed into C. Made static.
12544 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
12545 Moved from here...
12546 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
12547 ... here. Transformed into C. Made static.
12548 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
12549 pxe_rm_entry as third argument.
12550 (grub_bios_interrupt): New function.
12551 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
12552 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
12553 of calling grub_stop.
12554 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
12555 * grub-core/lib/efi/halt.c (grub_halt): ...here.
12556 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
12557 * grub-core/lib/emu/halt.c (grub_halt): ... here.
12558 * grub-core/lib/i386/halt.c: Moved from here ...
12559 * grub-core/lib/i386/halt.c: ... here.
12560 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
12561 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
12562 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
12563 grub_stop_floppy.
12564 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
12565 * include/grub/i386/coreboot/init.h: Removed.
12566 * include/grub/i386/multiboot/init.h: Likewise.
12567 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
12568 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
12569 * include/grub/i386/pc/int.h: New file.
12570 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
12571 (grub_pxe_scan): Removed.
12572 (grub_pxe_call): Update prototype.
12573 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
12574 prototypes.
12575 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
12576 * include/grub/i386/qemu/init.h: Removed.
12577 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
12578 noreturn.
12579 (grub_halt): Likewise.
12580 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
12581 (grub_reboot): Likewise.
12582 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
12583 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
12584 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
12585
12586 2010-08-30 Robert Millan <rmh@gnu.org>
12587
12588 * NEWS: Document addition of ZFS support in `grub-install' and
12589 `grub-mkconfig'.
12590
12591 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
12592
12593 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
12594 dprintf output.
12595
12596 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12597
12598 Remove leftover embedding of font objects.
12599
12600 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12601 * util/grub-install.in (font): Removed.
12602 * util/grub-mkimage.c (generate_image): Remove font support. All users
12603 updated.
12604
12605 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12606
12607 Remove leftover embedding of font objects.
12608
12609 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12610 * util/grub-install.in (font): Removed.
12611 * util/grub-mkimage.c (generate_image): Remove font support. All users
12612 updated.
12613
12614 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12615
12616 * docs/grub.texi (Network): Fix reference to pxe_blksize.
12617 Reported by: Ian Turner
12618
12619 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12620
12621 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
12622 timeout to avoid indefinite boot stalling.
12623
12624 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12625
12626 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
12627 (grub_env_write_color_highlight): Likewise.
12628
12629 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12630
12631 * grub-core/normal/term.c (print_more): Return to normal and not
12632 to standard state after printing "---MORE---".
12633
12634 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12635
12636 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
12637 Mask out the bit 0x80 since it has other meaning that specifiing color.
12638
12639 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12640
12641 New relocator. Allows for more kernel support and more straightforward
12642 loader writing.
12643
12644 * Makefile.am (BOOTTARGET): New variable.
12645 (QEMU32): Likewise.
12646 (linux.init.x86_64): New target.
12647 (linux.init.i386): Likewise.
12648 (multiboot.elf): Likewise.
12649 (kfreebsd.elf): Likewise.
12650 (kfreebsd.aout): Likewise.
12651 (pc-chainloader.elf): Likewise.
12652 (pc-chainloader.bin): Likewise.
12653 (ntldr.elf): Likewise.
12654 (ntldr.bin): Likewise.
12655 (multiboot2.elf): Likewise.
12656 (kfreebsd.init.x86_64): Likewise.
12657 (kfreebsd.init.i386): Likewise.
12658 (knetbsd.init.i386): Likewise.
12659 (kopenbsd.init.i386): Likewise.
12660 (knetbsd.init.x86_64): Likewise.
12661 (kopenbsd.init.x86_64): Likewise.
12662 (linux-initramfs.i386): Likewise.
12663 (linux-initramfs.x86_64): Likewise.
12664 (kfreebsd-mfsroot.i386.img): Likewise.
12665 (knetbsd.image.i386): Likewise.
12666 (kopenbsd.image.i386): Likewise.
12667 (kopenbsd.image.x86_64): Likewise.
12668 (knetbsd.miniroot-image.i386.img): Likewise.
12669 (kfreebsd-mfsroot.x86_64.img): Likewise.
12670 (knetbsd.image.x86_64): Likewise.
12671 (knetbsd.miniroot-image.x86_64.img): Likewise.
12672 (kfreebsd-mfsroot.i386.gz): Likewise.
12673 (bootcheck-kfreebsd-i386): Likewise.
12674 (kfreebsd-mfsroot.x86_64.gz): Likewise.
12675 (bootcheck-kfreebsd-x86_64): Likewise.
12676 (knetbsd.miniroot-image.i386.gz): Likewise.
12677 (bootcheck-knetbsd-i386): Likewise.
12678 (bootcheck-kopenbsd-i386): Likewise.
12679 (bootcheck-kopenbsd-x86_64): Likewise.
12680 (knetbsd.miniroot-image.x86_64.gz): Likewise.
12681 (bootcheck-knetbsd-x86_64): Likewise.
12682 (bootcheck-linux-i386): Likewise.
12683 (bootcheck-linux-x86_64): Likewise.
12684 (bootcheck-linux16-i386): Likewise.
12685 (bootcheck-linux16-x86_64): Likewise.
12686 (bootcheck-multiboot): Likewise.
12687 (bootcheck-multiboot2): Likewise.
12688 (bootcheck-kfreebsd-aout): Likewise.
12689 (bootcheck-pc-chainloader): Likewise.
12690 (bootcheck-ntldr): Likewise.
12691 (CLEANFILES): Add new targets.
12692 (BOOTCHECKS): New variable.
12693 (.PHONY): Add bootchecks.
12694 (SUCCESSFUL_BOOT_STRING): New variable.
12695 (BOOTCHECK_TIMEOUT): Likewise.
12696 (bootcheck): New target
12697 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
12698 * configure.ac: Correct efiemu excuse.
12699 * docs/grub.texi (Supported kernels): New chapter.
12700 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
12701 include/grub/mm_private.h. Simplify inclusion of
12702 include/grub/boot.h, include/grub/loader.h
12703 and include/grub/msdos_partition.h
12704 (KERNEL_HEADER_FILES) [i386_coreboot]:
12705 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
12706 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
12707 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
12708 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
12709 include/grub/machine/loader.h.
12710 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
12711 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
12712 extra_dist.
12713 (pci.mod): Enable on i386-multiboot.
12714 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
12715 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
12716 i386-qemu.
12717 (relocator.mod): Rewritten.
12718 (aout.mod): Enable on all x86.
12719 (bsd.mod): Likewise.
12720 (ntldr.mod): New module.
12721 (linux.mod): Use loader/i386/linux.c on all x86.
12722 (xnu.mod): Enable on all x86.
12723 (vga_text.mod): disable on EFI and QEMU.
12724 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
12725 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
12726 * grub-core/efiemu/loadcore.c: Likewise.
12727 * grub-core/efiemu/main.c: Likewise.
12728 (grub_efiemu_exit_boot_services): Removed.
12729 (grub_efiemu_finish_boot_services): Likewise.
12730 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
12731 function.
12732 * grub-core/efiemu/i386/nocfgtables.c: New file.
12733 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
12734 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
12735 (grub_efi_finish_boot_services): Moved from here ...
12736 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
12737 Fille finish memory map and related data.
12738 (finish_mmap_buf): New variable.
12739 (grub_efi_uintn_t finish_mmap_size): Likewise.
12740 (grub_efi_uintn_t finish_key): Likewise.
12741 (grub_efi_uintn_t finish_desc_size): Likewise.
12742 (grub_efi_uint32_t finish_desc_version): Likewise.
12743 (grub_efi_is_finished): Likewise.
12744 (grub_efi_get_memory_map): Use saved memory map if EFI is already
12745 finished.
12746 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
12747 (grub_elf64_phdr_iterate): Likewise.
12748 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
12749 (grub_os_area_size): Likewise.
12750 (grub_machine_init): Don't reserve os area.
12751 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
12752 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12753 * grub-core/kern/i386/loader.S: Removed.
12754 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
12755 (grub_os_area_size): Likewise.
12756 (grub_machine_init): Don't reserve os area.
12757 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12758 Don't call grub_dl_unload_all.
12759 Don't include loader.S.
12760 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
12761 Declare the memory after _end as available.
12762 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
12763 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
12764 (GRUB_MM_ALLOC_MAGIC): Moved from here...
12765 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
12766 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
12767 * include/grub/mm_private.h (grub_mm_header): ... here.
12768 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
12769 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
12770 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
12771 (grub_mm_region): ..here. Removed addr. Added pre_size.
12772 All users updated.
12773 * grub-core/kern/mm.c (base): Renamed to ...
12774 (grub_mm_base): ... this. Made global.
12775 (grub_real_malloc): Alloc from end of region.
12776 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
12777 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
12778 * grub-core/kern/powerpc/cache_flush.S: ... here.
12779 * grub-core/lib/efi/relocator.c: New file.
12780 * grub-core/lib/i386/relocator.c: Rewritten.
12781 * grub-core/lib/i386/relocator16.S: New file.
12782 * grub-core/lib/i386/relocator32.S: Likewise.
12783 * grub-core/lib/i386/relocator64.S: Likewise.
12784 * grub-core/lib/i386/relocator_asm.S: Rewritten.
12785 * grub-core/lib/i386/relocator_common.S: New file.
12786 * grub-core/lib/ieee1275/relocator.c: Likewise.
12787 * grub-core/lib/mips/relocator.c: Rewritten.
12788 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
12789 stylistic adjustments.
12790 * grub-core/lib/powerpc/relocator.c: New file.
12791 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
12792 * grub-core/lib/relocator.c: Rewritten.
12793 * grub-core/lib/x86_64/relocator_asm.S: New file.
12794 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
12795 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
12796 (bsd_tag): New struct.
12797 (tags): New variable.
12798 (tags_last): Likewise.
12799 (netbsd_module): New struct.
12800 (netbsd_mods): New variable.
12801 (netbsd_mods_last): Likewise.
12802 (openbsd_opts): New parameter "serial".
12803 (OPENBSD_SERIAL_ARG): New definition.
12804 (netbsd_opts): New parameter "serial".
12805 (NETBSD_SERIAL_ARG): New definition.
12806 (grub_freebsd_add_meta): Reorganised into ...
12807 (grub_bsd_add_meta): ...this. All users updated.
12808 (grub_freebsd_add_mmap): Reorganised into ...
12809 (generate_e820_mmap): ...this...
12810 (grub_bsd_add_mmap): ...and this. All users updated.
12811 (grub_freebsd_list_modules): Use tags.
12812 (grub_netbsd_add_meta_module): New function.
12813 (grub_netbsd_list_modules): Likewise.
12814 (grub_freebsd_boot): Use relocator and finish EFI.
12815 (grub_openbsd_boot): Likewise.
12816 (grub_netbsd_setup_video): New function.
12817 (grub_netbsd_add_modules): Likewise.
12818 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
12819 and finish EFI.
12820 (grub_bsd_unload): Unload tags.
12821 (grub_bsd_load_aout): Use relocator.
12822 (grub_bsd_elf32_size_hook): New function.
12823 (grub_bsd_elf32_hook): Use relocator.
12824 (grub_bsd_elf64_size_hook): New function.
12825 (grub_bsd_elf64_hook): Use relocator.
12826 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
12827 (grub_bsd_load): Zero-out openbsd_ramdisk.
12828 (grub_bsd_load): Use relocator.
12829 (grub_cmd_openbsd): Support serial.
12830 (grub_cmd_netbsd): Support modules.
12831 (grub_cmd_freebsd_module): Use relocator.
12832 (grub_netbsd_module_load): New function.
12833 (grub_cmd_netbsd_module): Likewise.
12834 (grub_cmd_openbsd_ramdisk): Likewise.
12835 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
12836 kopenbsd_ramdisk.
12837 (GRUB_MOD_FINI): Unregister new commands.
12838 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
12839 (grub_freebsd_load_elfmodule_obj): Use relocator.
12840 (grub_freebsd_load_elfmodule): Likewise.
12841 (grub_freebsd_load_elf_meta): Likewise.
12842 (grub_netbsd_load_elf_meta): New function.
12843 (grub_openbsd_find_ramdisk): Likewise.
12844 * grub-core/loader/i386/bsd_helper.S: Removed.
12845 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
12846 * grub-core/loader/i386/bsd_trampoline.S: Removed.
12847 * grub-core/loader/i386/efi/linux.c: Likewise.
12848 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
12849 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
12850 (DEFAULT_VIDEO_MODE): Likewise.
12851 (real_mode_target): New variable.
12852 (prot_mode_target): Likewise.
12853 (initrd_mem_target): Likewise.
12854 (relocator): Likewise.
12855 (efi_mmap_buf): Likewise.
12856 (efi_mmap_size): Likewise.
12857 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
12858 (free_pages): Use relocator.
12859 (allocate_pages): Account for efi_mmap and use relocator. Return error.
12860 (grub_linux_setup_video): Return error.
12861 (grub_linux_trampoline_start): Removed.
12862 (grub_linux_trampoline_end): Likewise.
12863 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
12864 andd video parameters depending on firmware.
12865 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
12866 [GRUB_MACHINE_EFI]: Pass EFI parameters.
12867 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
12868 (grub_cmd_initrd): Use relocator.
12869 * grub-core/loader/i386/linux_trampoline.S: Removed.
12870 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
12871 (elf_sec_entsize): Likewise.
12872 (elf_sec_shstrndx): Likewise.
12873 (elf_sections): Likewise.
12874 (grub_multiboot_load): Use relocator.
12875 (grub_multiboot_get_mbi_size): Account for sections.
12876 (grub_multiboot_make_mbi): Use relocator and support sections.
12877 (grub_multiboot_add_elfsyms): New function.
12878 (grub_multiboot_free_mbi): Free sections.
12879 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
12880 (grub_linux_real_target): Likewise.
12881 (grub_linux_real_chunk): Likewise.
12882 (grub_linux16_prot_size): Likewise.
12883 (grub_linux16_boot): Use relocator.
12884 (grub_linux_unload): Unload relocator.
12885 (grub_cmd_linux): Use relocator.
12886 (grub_cmd_initrd): Likewise.
12887 * grub-core/loader/i386/pc/ntldr.c: New file.
12888 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
12889 Don't try to guess CPU frequency.
12890 (grub_xnu_set_video): Stretch bitmap.
12891 (grub_xnu_boot): Use relocator.
12892 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
12893 (grub_linux_unload): Free relocator.
12894 (grub_linux_load32): Use relocator.
12895 (grub_linux_load64): Likewise.
12896 (grub_cmd_initrd): Likewise.
12897 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
12898 (grub_multiboot_unload): Unload relocator.
12899 (grub_cmd_multiboot): Use relocator.
12900 (grub_cmd_module): Likewise.
12901 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
12902 Use relocator and support sections.
12903 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
12904 (elf_sec_entsize): Likewise.
12905 (elf_sec_shstrndx): Likewise.
12906 (elf_sections): Likewise.
12907 (grub_multiboot_load): Use relocator.
12908 (grub_multiboot_get_mbi_size): Account for sections.
12909 (grub_multiboot_make_mbi): Use relocator and support sections.
12910 (grub_multiboot_add_elfsyms): New function.
12911 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
12912 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
12913 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
12914 Prototype changed. All users updated.
12915 (grub_xnu_align_heap): Simplified.
12916 (grub_xnu_writetree_toheap): Likewise.
12917 (grub_xnu_unload): Unload relocator.
12918 (grub_cmd_xnu_kernel): Use relocator.
12919 (grub_cmd_xnu_kernel64): Likewise.
12920 (grub_xnu_register_memory): Simplified.
12921 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
12922 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
12923 EFI is finished.
12924 (grub_console_checkkey): Likewise.
12925 (grub_console_getkey): Likewise.
12926 (grub_console_getwh): Likewise.
12927 (grub_console_getxy): Likewise.
12928 (grub_console_gotoxy): Likewise.
12929 (grub_console_cls): Likewise.
12930 (grub_console_setcolorstate): Likewise.
12931 (grub_console_setcursor): Likewise.
12932 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
12933 * grub-core/tests/boot/kbsd.init-i386.S: New file.
12934 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
12935 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
12936 * grub-core/tests/boot/kernel-8086.S: Likewise.
12937 * grub-core/tests/boot/kernel-i386.S: Likewise.
12938 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
12939 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
12940 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
12941 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
12942 * grub-core/tests/boot/knetbsd.cfg: Likewise.
12943 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
12944 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
12945 * grub-core/tests/boot/linux.cfg: Likewise.
12946 * grub-core/tests/boot/linux.init-i386.S: Likewise.
12947 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
12948 * grub-core/tests/boot/linux16.cfg: Likewise.
12949 * grub-core/tests/boot/multiboot.cfg: Likewise.
12950 * grub-core/tests/boot/multiboot2.cfg: Likewise.
12951 * grub-core/tests/boot/ntldr.cfg: Likewise.
12952 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
12953 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
12954 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
12955 New definition.
12956 * include/grub/dl.h (grub_dl_unload_all): Removed.
12957 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
12958 (grub_efi_finish_boot_services): Change prototype.
12959 (grub_efi_is_finished): New variable.
12960 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
12961 Changed prototype.
12962 (grub_efiemu_finish_boot_services): Removed.
12963 (grub_machine_efiemu_init_tables): New prototype.
12964 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
12965 (grub_elf64_phdr_iterate): Likewise.
12966 * include/grub/i386/bsd.h: Include relocator.h.
12967 (freebsd_tag_header): New struct.
12968 (grub_openbsd_bios_mmap): Removed.
12969 (grub_unix_real_boot): Removed.
12970 (grub_freebsd_load_elfmodule32): Changed prototype.
12971 (grub_freebsd_load_elfmodule_obj64): Likewise.
12972 (grub_freebsd_load_elf_meta32): Likewise.
12973 (grub_freebsd_load_elf_meta64): Likewise.
12974 (grub_freebsd_add_meta): Removed.
12975 (grub_netbsd_load_elf_meta32): New prototype.
12976 (grub_netbsd_load_elf_meta64): Likewise.
12977 (grub_bsd_add_meta): Likewise.
12978 (grub_openbsd_ramdisk_descriptor): New struct.
12979 (grub_openbsd_find_ramdisk32): New prototype.
12980 (grub_openbsd_find_ramdisk64): Likewise.
12981 * include/grub/i386/coreboot/loader.h: Removed.
12982 * include/grub/i386/efi/loader.h: Likewise.
12983 * include/grub/i386/ieee1275/loader.h: Likewise.
12984 * include/grub/i386/linux.h (linux_kernel_header): Change void *
12985 to grub_uint32_t.
12986 * include/grub/i386/loader.h: Removed.
12987 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
12988 value.
12989 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
12990 (grub_phys_addr_t): New type.
12991 (grub_vtop): New inline function.
12992 (grub_map_memory): Likewise.
12993 (grub_unmap_memory): Likewise.
12994 * include/grub/i386/multiboot/loader.h: Removed.
12995 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
12996 (NETBSD_BTINFO_CONSOLE): New definition.
12997 (NETBSD_BTINFO_SYMTAB): Likewise.
12998 (NETBSD_BTINFO_MODULES): Likewise.
12999 (NETBSD_BTINFO_FRAMEBUF): Likewise.
13000 (grub_netbsd_bootinfo): New struct.
13001 (grub_netbsd_btinfo_common): Use explicit bitsize.
13002 (grub_netbsd_btinfo_mmap_entry): Removed.
13003 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
13004 (grub_netbsd_btinfo_bootdisk): New struct.
13005 (grub_netbsd_btinfo_symtab): Likewise.
13006 (grub_netbsd_btinfo_serial): Likewise.
13007 (grub_netbsd_btinfo_modules): Likewise.
13008 (grub_netbsd_btinfo_framebuf): Likewise.
13009 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
13010 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
13011 Likewise.
13012 (grub_openbsd_bootargs): Use explicit bitsize.
13013 (grub_openbsd_bootarg_console): New struct.
13014 (GRUB_OPENBSD_COM_MAJOR): New definition.
13015 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
13016 * include/grub/i386/pc/efiemu.h: Removed.
13017 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
13018 * include/grub/i386/qemu/loader.h: Removed.
13019 * include/grub/i386/relocator.h: Rewritten.
13020 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
13021 * include/grub/mips/memory.h: New file.
13022 * include/grub/mips/multiboot.h: Rewritten.
13023 * include/grub/mips/relocator.h: Rewritten.
13024 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
13025 (grub_vtop): New function.
13026 (grub_map_memory): Likewise.
13027 (grub_unmap_memory): Likewise.
13028 * include/grub/misc.h (ALIGN_DOWN): New definition.
13029 * include/grub/mm.h (grub_mm_check_real): New proto.
13030 (GRUB_MM_CHECK): New definition.
13031 * include/grub/mm_private.h: New file.
13032 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
13033 (grub_multiboot_get_mbi_size): Removed.
13034 (grub_multiboot_make_mbi): Change prottype.
13035 (grub_multiboot_set_accepts_video): New proto.
13036 (grub_multiboot_add_elfsyms): Likewise.
13037 (grub_multiboot_payload_eip): New variable.
13038 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
13039 New prototype.
13040 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
13041 New definition.
13042 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
13043 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
13044 * include/grub/powerpc/ieee1275/loader.h: Removed.
13045 * include/grub/powerpc/memory.h: New file.
13046 * include/grub/powerpc/relocator.h: Likewise.
13047 * include/grub/relocator.h: Likewise.
13048 * include/grub/relocator_private.h: Likewise.
13049 * include/grub/sparc64/ieee1275/loader.h: Removed.
13050 * include/grub/x86_64/memory.h: New file.
13051 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
13052 (grub_xnu_heap_malloc): Likewise.
13053 (grub_xnu_heap_real_start): Removed.
13054 (grub_xnu_heap_start): Likewise.
13055 (grub_xnu_relocator): New variable.
13056 (grub_xnu_heap_target_start): Likewise.
13057 * tests/util/grub-shell.in: Support non-pc.
13058 * util/grub-mkimage.c (image_targets): Fix multiboot target.
13059
13060 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13061
13062 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
13063 on malloc error.
13064 (grub_bidi_logical_to_visual): Check that malloc succeded.
13065 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
13066 puts.
13067 (grub_xputs_normal): Likewise.
13068
13069 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13070
13071 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
13072 extra_dist.
13073
13074 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13075
13076 * grub-core/efiemu/runtime/efiemu.sh: Removed.
13077
13078 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13079
13080 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
13081
13082 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13083
13084 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
13085 dprintf.
13086
13087 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
13088
13089 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
13090
13091 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13092
13093 * grub-core/normal/term.c (print_more): Fix a memory leak.
13094 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
13095 (grub_xputs_normal): Likewise.
13096
13097 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
13100 the begining of the string
13101
13102 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13103
13104 * grub-core/script/script.c (grub_script_parse): Free parsed on
13105 failure.
13106
13107 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
13110 on failure.
13111
13112 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
13115 return.
13116
13117 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13118
13119 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
13120 (scroll_up): Fix a memory leak.
13121
13122 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13123
13124 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
13125 errors.
13126
13127 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
13128
13129 Handle USB pendrives exposed as floppies.
13130
13131 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
13132 floppy.
13133 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
13134 Check for partitions on all devices.
13135
13136 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13137
13138 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
13139 (readkey): Likewise.
13140
13141 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
13142
13143 Multiple variable names support to "export" command.
13144
13145 * normal/context.c (grub_cmd_export): "export" command supports
13146 multiple variable names.
13147
13148 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
13149
13150 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
13151 --target=drive output to Mach device name.
13152
13153 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13154
13155 New Automake based build system for GRUB.
13156
13157 * ABOUT-NLS: New file.
13158 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
13159 in Makefile.util.def file.
13160 * Makefile.util.def: New file. Autogen build definitions file for
13161 GRUB host utils.
13162 * conf/Makefile.common: New file. Common variables for GRUB host
13163 utils and target modules.
13164 * conf/Makefile.extra-dist: New file. Extra files for make dist.
13165 * docs/Makefile.am: New file. Automake file for docs.
13166 * gentpl.py: New file. Python script to generate Autogen
13167 template.
13168 * grub-core/Makefile.am: New file. GRUB target modules' rules
13169 that doesn't fit in Makefile.core.def file.
13170 * grub-core/Makefile.core.def: New file. Autogen build
13171 definitions file for GRUB target modules.
13172 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
13173 specific setjmp.S file.
13174 * po/Makefile.am: New file.
13175
13176 * .bzrignore: New ignores.
13177 * INSTALL: New requirements, without Ruby.
13178 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
13179 * autogen.sh: Updated to invoke autogen as necessary.
13180 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
13181 and defines for Automake conditionals.
13182 * geninit.sh: Refactoring.
13183
13184 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
13185 necessary.
13186 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
13187 New prototype.
13188
13189 * include/grub/test.h: Fix functional test modules' naming.
13190 * grub-core/tests/example_functional_test.c: Fix test module name.
13191
13192 * util/misc.c: Hosted versions' of grub functions for libgrub.a
13193 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
13194 * util/grub-editenv.c: Likewise.
13195 * util/grub-fstest.c: Likewise.
13196 * util/grub-mkdevicemap.c: Likewise.
13197 * util/grub-mkfont.c: Likewise.
13198 * util/grub-mkimage.c: Likewise.
13199 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13200 * util/grub-probe.c: Likewise.
13201 * util/grub-script-check.c: Likewise.
13202 * util/i386/pc/grub-setup.c: Likewise.
13203 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13204
13205 * tests/util/grub-shell.in: Fix override directory path.
13206 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
13207 * util/import_gcry.py: Create Makefile.gcry.def file instead.
13208
13209 * util/lvm.c: Update #includes.
13210 * util/raid.c: Likewise.
13211 * util/resolve.c: Likewise.
13212 * grub-core/bus/emu/pci.c: Likewise.
13213 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
13214 * grub-core/lib/posix_wrap/string.h: Likewise.
13215 * grub-core/kern/emu/main.c: Likewise.
13216
13217 * grub-core/gensymlist.sh: New file. Script for generating kernel
13218 symbols file.
13219 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
13220
13221 * grub-core/gentrigtables.c: Fix unused variable warnings.
13222
13223 * Makefile.in: Removed.
13224 * conf/any-emu.rmk: Removed.
13225 * conf/common.rmk: Removed.
13226 * conf/i386-coreboot.rmk: Removed.
13227 * conf/i386-efi.rmk: Removed.
13228 * conf/i386-ieee1275.rmk: Removed.
13229 * conf/i386-multiboot.rmk: Removed.
13230 * conf/i386-pc.rmk: Removed.
13231 * conf/i386-qemu.rmk: Removed.
13232 * conf/i386.rmk: Removed.
13233 * conf/mips-yeeloong.rmk: Removed.
13234 * conf/mips.rmk: Removed.
13235 * conf/powerpc-ieee1275.rmk: Removed.
13236 * conf/sparc64-ieee1275.rmk: Removed.
13237 * conf/tests.rmk: Removed.
13238 * conf/x86-efi.rmk: Removed.
13239 * conf/x86_64-efi.rmk: Removed.
13240 * gendistlist.sh: Removed.
13241 * geninitheader.sh: Removed.
13242 * genkernsyms.sh.in: Removed.
13243 * genmk.rb: Removed.
13244 * gensymlist.sh.in: Removed.
13245 * mkinstalldirs: Removed.
13246 * boot: Moved ...
13247 * grub-core/boot: ... to here.
13248 * bus: Moved ...
13249 * grub-core/bus: ... to here.
13250 * commands: Moved ...
13251 * grub-core/commands: ... to here.
13252 * disk: Moved ...
13253 * grub-core/disk: ... to here.
13254 * efiemu: Moved ...
13255 * grub-core/efiemu: ... to here.
13256 * font: Moved ...
13257 * grub-core/font: ... to here.
13258 * fs: Moved ...
13259 * grub-core/fs: ... to here.
13260 * gencmdlist.sh: Moved ...
13261 * grub-core/gencmdlist.sh: ... to here.
13262 * genemuinit.sh: Moved ...
13263 * grub-core/genemuinit.sh: ... to here.
13264 * genemuinitheader.sh: Moved ...
13265 * grub-core/genemuinitheader.sh: ... to here.
13266 * genfslist.sh: Moved ...
13267 * grub-core/genfslist.sh: ... to here.
13268 * genhandlerlist.sh: Moved ...
13269 * grub-core/genhandlerlist.sh: ... to here.
13270 * genmoddep.awk: Moved ...
13271 * grub-core/genmoddep.awk: ... to here.
13272 * genmodsrc.sh: Moved ...
13273 * grub-core/genmodsrc.sh: ... to here.
13274 * genpartmaplist.sh: Moved ...
13275 * grub-core/genpartmaplist.sh: ... to here.
13276 * genparttoollist.sh: Moved ...
13277 * grub-core/genparttoollist.sh: ... to here.
13278 * genterminallist.sh: Moved ...
13279 * grub-core/genterminallist.sh: ... to here.
13280 * gentrigtables.c: Moved ...
13281 * grub-core/gentrigtables.c: ... to here.
13282 * genvideolist.sh: Moved ...
13283 * grub-core/genvideolist.sh: ... to here.
13284 * gettext: Moved ...
13285 * grub-core/gettext: ... to here.
13286 * gfxmenu: Moved ...
13287 * grub-core/gfxmenu: ... to here.
13288 * gnulib: Moved ...
13289 * grub-core/gnulib: ... to here.
13290 * hello: Moved ...
13291 * grub-core/hello: ... to here.
13292 * hook: Moved ...
13293 * grub-core/hook: ... to here.
13294 * io: Moved ...
13295 * grub-core/io: ... to here.
13296 * kern: Moved ...
13297 * grub-core/kern: ... to here.
13298 * lib: Moved ...
13299 * grub-core/lib: ... to here.
13300 * loader: Moved ...
13301 * grub-core/loader: ... to here.
13302 * mmap: Moved ...
13303 * grub-core/mmap: ... to here.
13304 * normal: Moved ...
13305 * grub-core/normal: ... to here.
13306 * partmap: Moved ...
13307 * grub-core/partmap: ... to here.
13308 * parttool: Moved ...
13309 * grub-core/parttool: ... to here.
13310 * script: Moved ...
13311 * grub-core/script: ... to here.
13312 * term: Moved ...
13313 * grub-core/term: ... to here
13314 * tests/example_functional_test.c: Moved ...
13315 * grub-core/tests/example_functional_test.c: ... to here.
13316 * tests/lib/functional_test.c: Moved ...
13317 * grub-core/tests/lib/functional_test.c: ... to here.
13318 * tests/lib/test.c: Moved ...
13319 * grub-core/tests/lib/test.c: ... to here.
13320 * video: Moved ...
13321 * grub-core/video: ... to here.
13322
13323 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13324
13325 Replace --enable-grub-emu-modules with grub-emu-lite.
13326
13327 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
13328 cache.S.
13329
13330 * include/grub/emu/misc.h (grub_emu_init): New prototype.
13331 * kern/emu/full.c: New file. For grub-emu specific initialization.
13332 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
13333 * kern/emu/main.c: Call initialization function grub_emu_init.
13334
13335 * Makefile.in: Include grub-emu-lite in install.
13336 * commands/parttool.c: Use grub_no_autoload to differentiate
13337 between grub-emu and grub-emu-lite.
13338 * include/grub/misc.h: New variable grub_no_autoload.
13339
13340 * conf/any-emu.rmk: New rules for grub-emu-lite.
13341 * configure.ac: Remove --enable-grub-emu-modules.
13342 * genmk.rb: Cleanup unnecessary rules.
13343 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
13344
13345 * normal/main.c: Don't load list files on grub-emu-lite.
13346 * util/misc.c (grub_arch_sync_caches): Removed.
13347
13348 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
13349
13350 * kern/mips/startup.S (grub_prefix): Update comment to refer to
13351 grub-mkimage rather than grub-mkelfimage.
13352 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
13353
13354 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
13355
13356 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
13357 a key after CapsLock or NumLock. It's just a qemu bug.
13358
13359 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13360
13361 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
13362 needed by libusb wrapper.
13363
13364 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
13365
13366 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
13367
13368 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13369
13370 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
13371 --nounzip is passed.
13372
13373 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 USB hotunplugging and USB serial support.
13376
13377 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
13378 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
13379 (grub_uhci_transfer): Respect timeout and set *actual.
13380 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
13381 non-standard length.
13382 (grub_usb_device_attach): Autoload modules.
13383 (GRUB_MOD_INIT): Set grub_term_poll_usb.
13384 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
13385 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
13386 users updated.
13387 (grub_usb_add_hub): Fill nports and children.
13388 (attach_root_port): Receive hub instead of controller.
13389 All users updated. Fill hub->devices.
13390 (grub_usb_root_hub): Allocate hub->devices.
13391 (detach_device): New function.
13392 (poll_nonroot_hub): Fill children and detach devices.
13393 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
13394 actual arguments. All users updated.
13395 (grub_usb_bulk_read_extended): New function.
13396 * bus/usb/serial/common.c: New file.
13397 * bus/usb/serial/ftdi.c: Likewise.
13398 * bus/usb/serial/pl2303.c: Likewise.
13399 * commands/terminal.c (handle_command): Support wildcard.
13400 * commands/usbtest.c: Output "Unknown" instead of empty string.
13401 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
13402 (usbserial_common_mod_SOURCES): New variable.
13403 (usbserial_common_mod_CFLAGS): Likewise.
13404 (usbserial_common_mod_LDFLAGS): Likewise.
13405 (pkglib_MODULES): Add usbserial_pl2303.mod.
13406 (usbserial_pl2303_mod_SOURCES): New variable.
13407 (usbserial_pl2303_mod_CFLAGS): Likewise.
13408 (usbserial_pl2303_mod_LDFLAGS): Likewise.
13409 (pkglib_MODULES): Add usbserial_ftdi.mod.
13410 (usbserial_ftdi_mod_SOURCES): New variable.
13411 (usbserial_ftdi_mod_CFLAGS): Likewise.
13412 (usbserial_ftdi_mod_LDFLAGS): Likewise.
13413 (pkglib_MODULES): Add serial.mod.
13414 (serial_mod_SOURCES): New variable.
13415 (serial_mod_CFLAGS): Likewise.
13416 (serial_mod_LDFLAGS): Likewise.
13417 * conf/i386-pc.rmk: Likewise.
13418 * conf/mips-yeeloong.rmk: Likewise.
13419 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
13420 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13421 * disk/usbms.c (first_available_slot): New variable.
13422 (grub_usbms_attach): Don't reuse free slots due to potential cache
13423 problems.
13424 * include/grub/serial.h: Moved to ..
13425 * include/grub/ns8250.h: ...this.
13426 * include/grub/serial.h: New file.
13427 * include/grub/term.h (grub_term_poll_usb): New variable.
13428 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
13429 readkey. All users updated.
13430 (grub_terminfo_output_state): Pass term to put.
13431 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
13432 (grub_usb_controller_dev): Add timeout and actual arguments to
13433 transfer. All users updated.
13434 (grub_usb_interface): New field detach_data.
13435 (grub_usb_device): New fields children and nports.
13436 (grub_usb_ep_type_t): New type.
13437 (grub_usb_get_ep_type): New function.
13438 (grub_usb_bulk_read_extended): Likewise.
13439 * include/grub/usbdesc.h (grub_usb_desc): New type.
13440 * include/grub/usbserial.h: New file.
13441 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
13442 * kern/term.c (grub_term_poll_usb): New variable.
13443 (grub_getkey): Call grub_term_poll_usb if set.
13444 (grub_checkkey): Likewise.
13445 (grub_getkeystatus): Likewise.
13446 * term/serial.c: Moved controller-specific parts to ...
13447 * term/ns8250.c: ... here.
13448 * term/serial.c: Mostly rewritten.
13449 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
13450 according to spec.
13451
13452 2010-08-20 Robert Millan <rmh@gnu.org>
13453
13454 Make kFreeBSD code more generic to support ext2fs as root, ufs as
13455 a separate module and maybe other interesting combinations.
13456
13457 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
13458 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
13459 (kfreebsd_entry): Add generic filesystem module load routine.
13460 Map GRUB `ext2' to kFreeBSD `ext2fs'.
13461
13462 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13463
13464 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
13465 "numcenter" (I misunderstood the purpose of this entry).
13466 * docs/grub.texi (sendkey): Likewise.
13467
13468 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13469
13470 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
13471 status flag options; simply omitting the option is equivalent and
13472 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
13473 (keysym_table): Rename "num5numlock" to "numlock".
13474 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
13475 can uniformly say that only the last of multiple `sendkey'
13476 invocations has any effect.
13477 * docs/grub.texi (sendkey): New section.
13478
13479 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
13480
13481 * commands/i386/pc/sendkey.c (options): Fix three typos.
13482
13483 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13484
13485 Implement sendkey support.
13486
13487 * commands/i386/pc/sendkey.c: New file.
13488 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
13489 (sendkey_mod_SOURCES): New variable.
13490 (sendkey_mod_CFLAGS): Likewise.
13491 (sendkey_mod_LDFLAGS): Likewise.
13492
13493 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13494
13495 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
13496 fix warnings from Autoconf.
13497
13498 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13499
13500 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
13501 to avoid false positives with some assemblers that output things
13502 like "someprefix_func" as part of their output.
13503
13504 2010-08-15 Robert Millan <rmh@gnu.org>
13505
13506 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
13507 errors.
13508 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
13509 grub_get_libzfs_handle() errors.
13510
13511 2010-08-14 Robert Millan <rmh@gnu.org>
13512
13513 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
13514 filesystem is not ZFS.
13515
13516 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13517
13518 Fix for misspelled color names defaulting to black/black (bug
13519 reported by Doug Nazar)
13520
13521 * include/grub/normal.h (grub_parse_color_name_pair): Add return
13522 status to prototype.
13523 * normal/color.c (grub_parse_color_name_pair): Return failure
13524 status.
13525 (grub_env_write_color_normal): Ignore bad color names.
13526 (grub_env_write_color_highlight): Likewise.
13527 * normal/main.c (GRUB_MOD_INIT): Set default color names.
13528
13529 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13530
13531 "shift" command support to GRUB script.
13532
13533 * include/grub/script_sh.h (grub_script_shift): New prototype.
13534 * script/execute.c (grub_script_shift): New function.
13535 * script/main.c (grub_script_init): Register shift command.
13536 (grub_script_fini): Unregister shift command.
13537 * util/grub-script-check.c (grub_script_cmd_shift): New function.
13538
13539 * tests/grub_script_shift.in: New testcase.
13540 * conf/tests.rmk: Rules for new testcase.
13541
13542 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13543
13544 "continue" command support to GRUB script.
13545
13546 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
13547 (grub_script_break): Continue support.
13548 * script/main.c (grub_script_init): Register continue command.
13549 (grub_script_fini): Unregister continue command.
13550
13551 * tests/grub_script_continue.in: New testcase.
13552 * conf/tests.rmk: Rules for new testcase.
13553
13554 2010-08-12 BVK Chaitanya <bvk@dbook>
13555
13556 "break" command support to GRUB script.
13557
13558 * conf/common.rmk: Rule updates to grub-script-check.
13559 * include/grub/misc.h (grub_min): New function.
13560 * include/grub/script_sh.h (grub_script_init): New prototype.
13561 (grub_script_fini): New prototype.
13562 (grub_script_break): New prototype.
13563 * script/main.c (grub_script_init): New function.
13564 (grub_script_fini): New function.
13565 * script/execute.c (grub_script_break): New function.
13566 * normal/main.c: Calls to grub_script_{init,fini}.
13567 * util/grub-script-check.c (grub_script_break): New function.
13568
13569 * tests/grub_script_break.in: New testcase.
13570 * conf/tests.rmk: Rules for new test case.
13571
13572 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13573
13574 Function parameters support to GRUB script.
13575
13576 * script/yylex.l (VARIABLE): Regular expression update.
13577 * script/function.c (grub_script_function_call): Moved ...
13578 * script/execute.c (grub_script_function_call): ... to here.
13579 (grub_script_execute_arglist_to_argv): Removed.
13580 (grub_script_arglist_to_argv): New function.
13581 * script/argv.c: New file.
13582 (grub_script_argv_free): New function.
13583 (grub_script_argv_next): Likewise.
13584 (grub_script_argv_append): Likewise.
13585 (grub_script_argv_split_append): Likewise.
13586 * include/grub/script_sh.h (grub_script_argv): New struct.
13587 (grub_script_argv_free): New function.
13588 (grub_script_argv_next): Likewise.
13589 (grub_script_argv_append): Likewise.
13590 (grub_script_argv_split_append): Likewise.
13591
13592 * conf/common.rmk (normal.mod): New source script/argv.c.
13593
13594 * tests/grub_script_echo1.in: More tests.
13595 * tests/grub_script_vars1.in: Likewise.
13596 * tests/grub_script_functions.in: New test case.
13597 * conf/tests.rmk: Rules for new testcase.
13598
13599 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13600
13601 Remove grub_script_cmdblock struct.
13602
13603 * include/grub/script_sh.h: Remove grub_script_cmdblock.
13604 * script/parser.y: Likewise.
13605 * script/execute.c: Rename cmdblock suffix to cmdlist.
13606 * script/script.c: Likewise.
13607 * util/grub-script-check.c: Likewise.
13608
13609 2010-08-11 Yves Blusseau <blusseau@zetam.org>
13610
13611 * .bzrignore: add grub-macho2img
13612
13613 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13614
13615 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
13616
13617 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 Remove the dump of sm712 initialisation sequence.
13620
13621 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
13622 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
13623 (GRUB_VGA_IO_MISC_WRITE): Likewise.
13624 (GRUB_VGA_CR_*): Added many registers.
13625 (GRUB_VGA_SR_*): Likewise.
13626 (GRUB_VGA_GR_*): Likewise.
13627 (grub_vga_write_arx): New function.
13628 (grub_video_hw_config): New struct.
13629 (grub_vga_set_geometry): New function.
13630 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
13631 GRUB_PCI_CLASS_SUBCLASS_VGA.
13632 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
13633 * video/sm712.c (grub_sm712_write_reg): New function
13634 (grub_sm712_read_reg): Likewise.
13635 (grub_sm712_sr_write): Likewise.
13636 (grub_sm712_gr_write): Likewise.
13637 (grub_sm712_cr_write): Likewise.
13638 (grub_sm712_write_arx): Likewise.
13639 (grub_sm712_cr_shadow_write): Likewise.
13640 (grub_sm712_write_dda_lookup): Likewise.
13641 (grub_video_sm712_setup): Initialise the video rather then
13642 blindly replay the dump.
13643 (main) [TEST]: Add a routine to be able to compile as standalone for
13644 tests.
13645 * video/sm712_init.c (sm712_init): Removed.
13646 (sm712_sr_seq1): New array.
13647 (sm712_sr_seq2): Likewise.
13648
13649 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13650
13651 * include/grub/vga.h: Add missing grub/pci.h include.
13652
13653 2010-08-10 Yves Blusseau <blusseau@zetam.org>
13654
13655 * util/grub-macho2img.c (main): fix typo
13656
13657 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
13660 (grub_vga_gr_read): Likewise.
13661 (grub_vga_cr_write): Likewise.
13662 (grub_vga_cr_read): Likewise.
13663 (grub_vga_sr_write): Likewise.
13664 (grub_vga_sr_read): Likewise.
13665 (grub_vga_palette_read): Likewise.
13666 (grub_vga_palette_write): Likewise.
13667 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
13668 (grub_sm712_sr_read): New function.
13669 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
13670 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
13671
13672 2010-08-09 Robert Millan <rmh@gnu.org>
13673
13674 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
13675 out unused variables on non-ZFS build.
13676
13677 2010-08-08 Robert Millan <rmh@gnu.org>
13678
13679 Fix path generation for sub-filesystems in ZFS.
13680
13681 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
13682 missing slash.
13683
13684 2010-08-08 Robert Millan <rmh@gnu.org>
13685
13686 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
13687
13688 2010-08-08 Robert Millan <rmh@gnu.org>
13689
13690 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
13691 exist, issue a proper error message (rely on `ls' for translated
13692 strings).
13693
13694 2010-08-08 Robert Millan <rmh@gnu.org>
13695
13696 Fix grub-probe invocation.
13697
13698 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
13699
13700 2010-08-04 Robert Millan <rmh@gnu.org>
13701
13702 * configure.ac: Remove checks for getfsstat() and getmntany().
13703 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
13704 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
13705 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
13706 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
13707 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
13708 function.
13709 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
13710 via find_mount_point_from_dir() and getfsstat() / getmntany().
13711
13712 2010-08-04 Robert Millan <rmh@gnu.org>
13713
13714 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13715 (grub_find_zpool_from_mount_point): Merge into ...
13716 (grub_find_zpool_from_dir): ... this.
13717 * kern/emu/misc.c: Likewise.
13718
13719 * kern/emu/misc.c
13720 (grub_make_system_path_relative_to_its_root): Replace
13721 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
13722 with grub_find_zpool_from_dir().
13723 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
13724
13725 2010-08-04 Robert Millan <rmh@gnu.org>
13726
13727 Support OpenSolaris in ZFS device resolution.
13728
13729 * configure.ac: Check for getmntany().
13730 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
13731 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
13732 support.
13733
13734 2010-08-03 Robert Millan <rmh@gnu.org>
13735
13736 Fix grub-emu build.
13737
13738 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
13739 * include/grub/emu/misc.h: ... here.
13740
13741 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
13742 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
13743
13744 * util/misc.c: Remove `<grub/util/libzfs.h>'.
13745 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
13746 (grub_get_libzfs_handle): Move to ...
13747 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
13748 (grub_get_libzfs_handle): ... here.
13749
13750 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
13751
13752 * script/execute.c (grub_script_execute_cmdline): Check for NULL
13753 as command name case.
13754
13755 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
13756
13757 * disk/raid.c (insert_array): Select unique numbers for named arrays
13758 as well, for use as keys in the disk cache.
13759
13760 2010-08-01 Robert Millan <rmh@gnu.org>
13761
13762 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
13763 kFreeBSD device name, except on ZFS where the filesystem label is
13764 used.
13765 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
13766 `/boot/zfs/zpool.cache'.
13767 Set mountfrom kernel variable using ${kfreebsd_device}.
13768
13769 2010-08-01 Robert Millan <rmh@gnu.org>
13770
13771 Make it even harder to use uninitialized `libzfs_handle' (and
13772 make the interface a bit simpler).
13773
13774 * include/grub/util/misc.h (grub_util_init_libzfs)
13775 (libzfs_handle): Remove.
13776 (grub_get_libzfs_handle): New prototype.
13777
13778 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
13779 attribute.
13780 (grub_util_init_libzfs): Remove.
13781 (grub_get_libzfs_handle): New function.
13782
13783 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
13784 grub_get_libzfs_handle() to obtain a libzfs handle instead of
13785 accessing `libzfs_handle' directly.
13786
13787 2010-08-01 Robert Millan <rmh@gnu.org>
13788
13789 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13790 (grub_find_zpool_from_mount_point): New function prototypes.
13791
13792 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13793 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13794
13795 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13796 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13797 `static' attribute.
13798
13799 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13800 finding zpool from mount point into ...
13801 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13802
13803 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13804 requested path is part of a ZFS pool, use
13805 grub_find_zpool_from_mount_point() to detect its filesystem name,
13806 and generate a path with `/fsname@path' syntax.
13807
13808 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13809
13810 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
13811 (void) rather than () so that this is a proper prototype.
13812
13813 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13814
13815 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
13816
13817 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13818
13819 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
13820 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
13821
13822 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13823
13824 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
13825
13826 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13827
13828 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
13829
13830 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13831
13832 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
13833 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
13834 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
13835 disable gfxpayload.
13836 (Shell-like scripting): Add real content.
13837 (Serial terminal): Suggest `terminal_input serial; terminal_output
13838 serial' rather than putting the two commands on separate lines,
13839 since console input will be inoperative after the first command.
13840 (menuentry): Document --class, --users, and --hotkey options.
13841 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
13842 Vladimir Serbinenko).
13843
13844 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13845 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13846
13847 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
13848
13849 2010-08-01 Robert Millan <rmh@gnu.org>
13850
13851 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13852 (grub_find_zpool_from_mount_point): New function prototypes.
13853
13854 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13855 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13856
13857 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13858 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13859 `static' attribute.
13860
13861 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13862 finding zpool from mount point into ...
13863 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13864
13865 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13866 requested path is part of a ZFS pool, use
13867 grub_find_zpool_from_mount_point() to detect its filesystem name,
13868 and generate a path with `/fsname@path' syntax.
13869
13870 2010-08-01 Robert Millan <rmh@gnu.org>
13871
13872 Prevent accidental use of uninitialized libzfs_handle.
13873
13874 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
13875 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
13876 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
13877
13878 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13879
13880 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
13881 util/grub.d/10_linux.in). Fixes Debian bug #591093.
13882
13883 2010-08-01 Robert Millan <rmh@gnu.org>
13884
13885 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
13886
13887 2010-07-31 Robert Millan <rmh@gnu.org>
13888
13889 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
13890
13891 2010-07-31 Robert Millan <rmh@gnu.org>
13892
13893 * kern/emu/misc.c: Add missing license header.
13894
13895 2010-07-31 Robert Millan <rmh@gnu.org>
13896
13897 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
13898
13899 * include/grub/util/libnvpair.h: Include `<config.h>'.
13900 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
13901 declaring libnvpair prototypes ourselves.
13902 * include/grub/util/libzfs.h: Include `<config.h>'.
13903 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
13904 declaring libzfs prototypes ourselves.
13905
13906 (libzfs_handle): Moved to ...
13907 * include/grub/util/misc.h (libzfs_handle): ... here.
13908 Include `<grub/util/libzfs.h>'.
13909
13910 2010-07-30 Robert Millan <rmh@gnu.org>
13911
13912 * include/grub/emu/misc.h: Add missing license header.
13913
13914 2010-07-30 Robert Millan <rmh@gnu.org>
13915
13916 Enable `grub-probe -t device' resolution on ZFS.
13917
13918 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
13919 * include/grub/util/libnvpair.h: New file.
13920 * include/grub/util/libzfs.h: New file.
13921
13922 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
13923 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
13924 `<grub/util/libnvpair.h>'.
13925 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
13926
13927 (find_mount_point_from_dir): New static function.
13928 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
13929 function.
13930 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
13931 find_root_device_from_libzfs() before ressorting to find_root_device().
13932
13933 * include/grub/util/misc.h (grub_util_init_libzfs): New function
13934 prototype.
13935 * util/misc.c: Include `<grub/util/libzfs.h>'.
13936 (grub_util_init_libzfs): New function.
13937 [HAVE_LIBZFS] (libzfs_handle): New global variable.
13938 [HAVE_LIBZFS] (fini_libzfs): New static function.
13939 (grub_util_init_libzfs): New function.
13940 * util/grub-probe.c (main): Call grub_util_init_libzfs().
13941
13942 2010-07-30 Robert Millan <rmh@gnu.org>
13943
13944 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
13945 (xmalloc, xrealloc, xstrdup, xasprintf): Add
13946 `warn_unused_result' attribute.
13947 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
13948 (grub_xasprintf, grub_xvasprintf): Likewise.
13949 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
13950
13951 2010-07-29 Robert Millan <rmh@gnu.org>
13952
13953 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
13954 (probe): Handle `PRINT_FS_LABEL'.
13955 (main): Handle `-t fs_label'.
13956
13957 2010-07-29 Robert Millan <rmh@gnu.org>
13958
13959 * configure.ac: Remove grub-mkisofs checks.
13960
13961 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
13962
13963 * util/ieee1275/grub-install.in: Don't use empty grub_device.
13964 Reported by: Lennart Sorensen.
13965
13966 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13967
13968 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
13969 prior to terminal_input/terminal_output separation. It's been over 1.5
13970 years and those versions weren't widely deployed.
13971
13972 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
13973
13974 * disk/raid.c (insert_array): Don't count named arrays when looking
13975 for unused array numbers.
13976 Reported and tested by: Michael Guntsche.
13977
13978 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13979
13980 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
13981 implementation of this so that grub-emu links again, with a note
13982 that this should support hotplugging in the future.
13983
13984 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13985
13986 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
13987
13988 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13989
13990 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
13991 handle on failure.
13992 (grub_loopback_close): Remove empty function.
13993 (grub_loopback_dev): Remove close method.
13994
13995 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13996
13997 Disable EFI cursor when the EFI console becomes inactive.
13998
13999 * term/efi/console.c (grub_efi_console_init): New function.
14000 (grub_efi_console_fini): New function.
14001 (grub_console_term_output): Register init and fini methods.
14002
14003 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14004
14005 * tests/util/grub-shell-tester.in: Remove bashism and declare as
14006 sh script.
14007
14008 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14009
14010 * disk/loopback.c (grub_loopback): Replace filename with file.
14011 (delete_loopback): Handle new semantics.
14012 (grub_cmd_loopback): Likewise.
14013 (grub_loopback_iterate): Likewise.
14014 (grub_loopback_close): Likewise.
14015
14016 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
14019 with -p "".
14020 Reported by: Tito Keitel.
14021
14022 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14023
14024 * docs/grub.texi (Naming convention): Document new naming convention.
14025
14026 2010-07-20 Vadim Solomin <vadic052@gmail.com>
14027 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14028
14029 Generate device.map in something closer to the old ordering.
14030
14031 * util/deviceiter.c (struct device): New declaration.
14032 (compare_file_names): Rename to ...
14033 (compare_devices): ... this. Sort by kernel name in preference to
14034 the stable by-id name, but keep the latter as a fallback comparison.
14035 Update header comment.
14036 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
14037 of `struct device' rather than of plain file names.
14038
14039 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
14040
14041 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
14042 on i386.
14043
14044 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14045
14046 * commands/acpi.c (setup_common_tables): Use sizeof instead of
14047 hardcoding size.
14048 (setv1table): Likewise.
14049
14050 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14051
14052 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
14053 removing the homehost if present.
14054 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
14055 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
14056 removing the homehost if present.
14057 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
14058 if possible.
14059 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
14060
14061 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
14062 parameter. Set its pointer target to 0.
14063 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
14064 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
14065 `data_offset' value from the superblock for 1.x metadata.
14066 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
14067 data on the device.
14068 (insert_array): Record the start sector of data on the device.
14069 (grub_raid_register): Pass start_sector parameters to
14070 grub_raid_list->detect and insert_array.
14071 * include/grub/raid.h (struct grub_raid_array): Add start_sector
14072 member.
14073 (struct grub_raid): Add start_sector parameter to `detect'.
14074
14075 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
14076 __attribute__ ((packed)), leaving a comment.
14077 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
14078 (grub_mdraid_detect_09): ... here and ...
14079 (grub_mdraid_detect_1x): ... here.
14080
14081 2010-07-20 Peter Henn <peter.henn@web.de>
14082
14083 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
14084 chunk size and disk size, which are already given as sector counts
14085 as distinct from the 0.90 units. Fetch the correct device number
14086 from the role table instead of using the table index.
14087
14088 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
14089
14090 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
14091 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
14092 (WriteMostly1): New macro.
14093 Set array->name to NULL for metadata format 0.90. Add support for
14094 metadata 1.x. Fix some comments.
14095 * disk/raid.c (): Add support for name based RAID arrays. Fix a
14096 few comments.
14097 * util/getroot.c (grub_util_get_grub_dev): Add support for
14098 /dev/md/name style devices.
14099
14100 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14101
14102 * .bzrignore: Ignore 20_linux_xen.
14103
14104 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
14105
14106 * util/import_unicode.py: Remove unnecessary imports.
14107
14108 2010-07-17 Aleš Nesrsta <starous@volny.cz>
14109
14110 Hotplugging and USB hub support.
14111
14112 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
14113 (grub_ohci): Likewise.
14114 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
14115 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
14116 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
14117 (GRUB_OHCI_CTRL_EDS): Likewise.
14118 (GRUB_OHCI_BULK_EDS): Likewise.
14119 (GRUB_OHCI_TDS): Likewise.
14120 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
14121 (grub_ohci_ed_phys2virt): New function.
14122 (grub_ohci_virt_to_phys): Likewise.
14123 (grub_ohci_td_phys2virt): Likewise.
14124 (grub_ohci_td_virt2phys): Likewise.
14125 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
14126 attachment.
14127 (grub_ohci_find_ed): New function.
14128 (grub_ohci_alloc_td): Likewise.
14129 (grub_ohci_free_td): Likewise.
14130 (grub_ohci_free_tds): Likewise.
14131 (grub_ohci_transfer): Use previously allocated memory.
14132 (grub_ohci_portstatus): Reset status changed bit.
14133 (grub_ohci_detect_dev): Supply status changed.
14134 (grub_ohci_fini_hw): Free memory.
14135 (grub_ohci_restore_hw): Reallocate memory.
14136 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
14137 Reset status change.
14138 (grub_uhci_detect_dev): Supply status_change.
14139 * bus/usb/usb.c (attach_hooks): New var.
14140 (grub_usb_device_attach): New function.
14141 (grub_usb_register_attach_hook_class): Likewise.
14142 (grub_usb_unregister_attach_hook_class): Likewise.
14143 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
14144 (grub_usb_add_hub): Reset connection changed bit.
14145 (attach_root_port): New function.
14146 (grub_usb_root_hub): Likewise.
14147 (poll_nonroot_hub): Likewise.
14148 (grub_usb_poll_devices): Likewise.
14149 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
14150 * disk/usbms.c (grub_usbms_open): Use device hooks.
14151 (grub_usbms_iterate) :Poll devices.
14152 (grub_usbms_finddevs): Split into ...
14153 (grub_usbms_attach): ... this ...
14154 (grub_usbms_attach): ... and this.
14155 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
14156 in detect_dev.
14157 (grub_usb_interface): New fields attached and detach_hook.
14158 (grub_usb_attach_hook_class): New type.
14159 (grub_usb_attach_desc): New struct.
14160 (grub_usb_register_attach_hook_class): New function.
14161 (grub_usb_unregister_attach_hook_class): Likewise.
14162 (grub_usb_poll_devices): Likewise.
14163 (grub_usb_device_attach): Likewise.
14164 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
14165 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
14166
14167 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14168
14169 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
14170 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
14171 delta determination style. Works with most NetBSD partitions too.
14172
14173 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
14176 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
14177
14178 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14179
14180 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
14181
14182 2010-07-14 Anton Blanchard <anton@samba.org>
14183
14184 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
14185 ET_DYN files.
14186
14187 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14188
14189 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
14190
14191 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14192
14193 * kern/partition.c (grub_partition_check_containment): New function to
14194 check that a partition is physically contained in a parent. Since
14195 offsets are relative (and non-negative), this reduces to checking that
14196 the partition ends before its parent.
14197 (grub_partition_map_probe): Discard out-of-range sub-partitions.
14198 (grub_partition_iterate): Likewise.
14199 * include/grub/partition.h (grub_partition_map): Slightly more detailed
14200 comments.
14201 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
14202 partitions that start before their parent, and add debug printfs.
14203
14204 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14205
14206 * Makefile.in (.SUFFIX): Spell correctly, as ...
14207 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
14208 bare module name without `.mod', e.g. `test') tried to invoke a
14209 Modula-2 compiler.
14210
14211 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14212
14213 * README: Point to the Info manual.
14214
14215 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
14216
14217 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
14218 2nd superblock position from partition size.
14219
14220 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
14221
14222 * Makefile.in (MAINTAINER_CLEANFILES): Remove
14223 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
14224 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
14225 outputs.
14226
14227 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14228
14229 Restructure SCSI .id handling.
14230 Reported and tested by: Aleš Nesrsta.
14231
14232 * disk/ata.c (grub_atapi_close): Removed. All users updated.
14233 (grub_atapi_dev): Changed .name to "ata". New field .id.
14234 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
14235 (grub_usbms_dev): New field .id.
14236 * disk/scsi.c (grub_scsi_iterate): Generate name.
14237 (grub_scsi_open): Parse name.
14238 * include/grub/scsi.h (grub_make_scsi_id): New function.
14239 (grub_scsi_dev): Change iterate and open to number instead of naming
14240 busses. All users updated.
14241 (grub_scsi): Remove name. Add .bus.
14242
14243 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14244
14245 * commands/help.c (grub_cmd_help): Fix a typo.
14246
14247 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
14250 Reported and tested by: Colin Watson.
14251
14252 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14253
14254 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
14255 in this context.
14256
14257 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14258
14259 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
14260
14261 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
14262
14263 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
14264 indentation.
14265
14266 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14267
14268 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
14269 and disk/raid6_recover.c.
14270 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14271 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
14272
14273 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14274
14275 * term/gfxterm.c (repaint_schedulded): Rename to ...
14276 (repaint_scheduled): ... this. Update all callers.
14277 (repaint_was_schedulded): Rename to ...
14278 (repaint_was_scheduled): ... this. Update all callers.
14279
14280 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14281
14282 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
14283 which we expect to be handled by upper layers.
14284
14285 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
14286
14287 * bus/usb/usbhub.c: #include time.h header.
14288
14289 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14290
14291 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
14292 entry_name also for entries without stat blocks (e.g. ".."); fixes
14293 corruption of the first entry in a directory.
14294
14295 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14296
14297 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
14298 after setting gfxterm as the active terminal. GRUB_BACKGROUND
14299 doesn't work otherwise.
14300
14301 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14302
14303 * docs/grub.texi (Features): Update list of supported file systems.
14304 (GNU/Linux): Update for GRUB 2.
14305 (Serial terminal): Remove mention of --disable-serial, which was a
14306 GRUB Legacy configure option. Update instructions to use
14307 `terminal_input' and `terminal_output' rather than `terminal'.
14308 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
14309 configuration' and `Installing GRUB using grub-install'.
14310 (Menu entry editor): Update for GRUB 2.
14311 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
14312 Document new -a, -u, and -v options.
14313 (initrd): New section.
14314 (initrd16): New section.
14315 (linux): New section.
14316 (linux16): New section.
14317 (search): The `var' argument to `--set' is optional.
14318 (GRUB only offers a rescue shell): Go into a little more detail on
14319 drive ordering.
14320
14321 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14322
14323 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
14324
14325 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14326
14327 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
14328 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
14329
14330 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14331
14332 * util/i386/pc/grub-setup.c (setup): Rename prefix to
14333 install_prefix, in line with install_dos_part and install_bsd_part.
14334 Add new prefix variable, which is copied to install_prefix after
14335 comparing core.img in memory with the one read from disk in the
14336 no-embedding case, and use that rather than overwriting
14337 install_prefix immediately when installing to a partition.
14338 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
14339 Bicakci.
14340
14341 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14342
14343 * configure.ac: Avoid == in test command, it's not portable.
14344 * util/grub.d/30_os-prober.in: Likewise.
14345
14346 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
14347
14348 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
14349
14350 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14351
14352 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
14353 multiple (top-level) partmaps.
14354
14355 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14356
14357 * util/i386/efi/grub-install.in: Don't use empty grub_device.
14358 Reported by: Tino Keitel.
14359
14360 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14361
14362 Bidi and diacritics support.
14363
14364 * Makefile.in (widthspec.bin): New target.
14365 (widthspec.h): Likewise.
14366 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
14367 * autogen.sh: Generate unidata.c.
14368 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
14369 * commands/ls.c (grub_ls_list_devices): Likewise.
14370 (grub_ls_list_files): Likewise.
14371 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
14372 (grub_mini_cmd_lsmod): Likewise.
14373 * commands/read.c: Likewise.
14374 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
14375 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
14376 * lib/arg.c (grub_arg_show_help): Likewise.
14377 * lib/crypto.c (grub_password_get): Likewise.
14378 * normal/auth.c (grub_username_get): Likewise.
14379 * normal/misc.c (grub_normal_print_device_info): Likewise.
14380 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
14381 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
14382 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
14383 (normal/charset.c_DEPENDENCIES): New variable.
14384 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
14385 (pkglib_MODULES): Remove charset.mod.
14386 (charset_mod_SOURCES): Removed.
14387 (charset_mod_CFLAGS): Likewise.
14388 (charset_mod_LDFLAGS): Likewise.
14389 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
14390 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
14391 and term/tparm.c.
14392 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14393 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14394 (kernel_img_HEADERS): Add terminfo.h.
14395 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
14396 Fill ->font. Reverse ascii bitmaps.
14397 (grub_font_get_xheight): New function.
14398 * font/font.c (grub_font_get_string_width): Moved from here ...
14399 * gfxmenu/font.c (grub_font_get_string_width): ... here.
14400 * font/font.c (grub_font_draw_string): Moved from here ...
14401 * gfxmenu/font.c (grub_font_draw_string): ... here.
14402 * font/font.c (grub_font_dup_glyph): New function.
14403 (grub_font_blit_glyph): Likewise.
14404 (grub_font_blit_glyph_mirror): Likewise.
14405 (blit_comb): Likewise.
14406 (grub_font_construct_dry_run): Likewise.
14407 (grub_font_get_constructed_device_width): Likewise.
14408 (grub_font_construct_glyph): Likewise.
14409 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
14410 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
14411 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
14412 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
14413 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
14414 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
14415 (grub_font_get_xheight): New proto.
14416 (grub_font_get_constructed_device_width): Likewise.
14417 (grub_font_construct_glyph): Likewise.
14418 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
14419 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
14420 * include/grub/font.h (grub_font_draw_string): Moved from here ...
14421 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
14422 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
14423 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
14424 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
14425 (grub_console_getcharwidth): Likewise.
14426 * include/grub/misc.h (grub_xputs): New proto.
14427 (grub_puts): Inlined.
14428 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
14429 (grub_normal_get_line_counter): Removed.
14430 (grub_install_newline_hook): Likewise.
14431 (grub_normal_get_char_counter): New proto.
14432 (grub_normal_reset_more): Likewise.
14433 (grub_xputs_normal): Likewise.
14434 * include/grub/powerpc/ieee1275/console.h: Removed.
14435 * include/grub/sparc64/ieee1275/console.h: Likewise.
14436 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
14437 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
14438 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
14439 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
14440 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
14441 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
14442 (grub_term_input): Pass reference to self. All users updated.
14443 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
14444 Pass reference to self. New fields normal_color, highlight_color and
14445 data. All users updated.
14446 (grub_putchar): Removed.
14447 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
14448 (grub_unicode_estimate_width): New function.
14449 (grub_term_getcharwidth): Add defaults.
14450 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
14451 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
14452 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
14453 (grub_cls): Remove EXPORT_FUNC.
14454 (grub_setcolorstate): Inline.
14455 (grub_newline_hook): Removed.
14456 * include/grub/terminfo.h: Rewritten. All users updated.
14457 * include/grub/unicode.h: New file.
14458 * include/grub/video.h (grub_video_signed_rect): New type.
14459 * kern/emu/console.c (grub_console_highlight_color): Removed.
14460 (grub_console_normal_color): Likewise.
14461 (grub_console_standard_color): Made static.
14462 (grub_ncurses_putchar): Remove mapping.
14463 (grub_ncurses_getcharwidth): Removed.
14464 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14465 (grub_ncurses_setcolor): Removed.
14466 (grub_ncurses_getcolor): Likewise.
14467 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
14468 (grub_console_putchar): ... this.
14469 (grub_console_putchar): Handle argument difference.
14470 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
14471 console_init_early and console_init_lately.
14472 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
14473 * kern/misc.c (grub_puts): Removed.
14474 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
14475 (grub_vsnprintf_real): Remove str = NULL support.
14476 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
14477 * normal/charset.c (grub_utf8_to_ucs4): ... here.
14478 * kern/term.c (grub_putcode): Renamed to ...
14479 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
14480 (grub_putchar): Removed.
14481 (grub_xputs_dumb): New function.
14482 (grub_xputs): New variable.
14483 * lib/charset.c: Move from here ...
14484 * normal/charset.c: ... to here.
14485 (grub_ucs4_to_utf8): New function.
14486 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
14487 (join_types): New variable.
14488 (unpack_join): New function.
14489 (bidi_types): New variable.
14490 (unpack_bidi): New function.
14491 (get_bidi_type): Likewise.
14492 (get_join_type): Likewise.
14493 (is_mirrored): Likewise.
14494 (grub_unicode_get_comb_type): Likewise.
14495 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
14496 (is_type_after): Likewise.
14497 (grub_unicode_aglomerate_comb): Likewise.
14498 (bidi_line_wrap): Likewise.
14499 (grub_bidi_line_logical_to_visual): Likewise.
14500 (grub_bidi_logical_to_visual): Likewise.
14501 (grub_unicode_mirror_code): Likewise.
14502 (grub_unicode_shape_code): Likewise.
14503 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
14504 Don't use grub_putchar.
14505 * normal/main.c (grub_normal_init_page): Use grub_putcode.
14506 (grub_normal_reader_init): Likewise.
14507 (grub_xputs_saved): New variable.
14508 (GRUB_MOD_INIT): Set grub_xputs.
14509 (GRUB_MOD_FINI): Restore grub_xputs.
14510 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
14511 (menu_init): Avoid printing gfxmenu error.
14512 (show_menu): Use grub_normal_get_char_counter.
14513 * normal/menu_entry.c (update_screen): Fix out-of-array.
14514 (complete): Avoid NULL dereferencing.
14515 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
14516 * normal/menu_text.c (print_spaces): Removed.
14517 (grub_print_ucs4): Likewise.
14518 (grub_print_message_indented): Use grub_print_ucs4.
14519 (print_message): Use grub_putcode.
14520 (print_entry): Hanlde diacritics.
14521 * normal/term.c (term_state): New type.
14522 (grub_more_lines): Removed.
14523 (term_states): New variable.
14524 (grub_normal_line_counter): Renamed to ..
14525 (grub_normal_char_counter): ...this. All users updated.
14526 (grub_normal_get_line_counter): Renamed to ...
14527 (grub_normal_get_char_counter): ... this.
14528 (grub_normal_reset_more): New function.
14529 (process_newline): Removed.
14530 (print_more): New function.
14531 (grub_install_newline_hook): Removed.
14532 (map_code): New function.
14533 (grub_puts_terminal): Use grub_print_ucs4.
14534 (putglyph): New function.
14535 (putcode_real): Likewise.
14536 (grub_putcode): Use putcode_real.
14537 (get_maxwidth): New function.
14538 (get_startwidth): Likewise.
14539 (print_ucs4_terminal): Likewise.
14540 (find_term_state): Likewise.
14541 (put_glyphs_terminal): Likewise.
14542 (print_backlog): Likewise.
14543 (print_ucs4_real): Likewise.
14544 (grub_print_ucs4): Likewise.
14545 (grub_xputs_normal): Likewise.
14546 * term/efi/console.c (grub_console_putchar): Output diacritics.
14547 (grub_console_getcharwidth): Removed.
14548 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14549 * term/gfxterm.c (clear_char): Free chars.
14550 (scroll_up): Avoid leaking memory.
14551 (grub_gfxterm_putchar): Support diacritics.
14552 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14553 * term/i386/pc/console.c (grub_console_term_output): Declare as
14554 GRUB_TERM_CODE_TYPE_VGA.
14555 * term/i386/pc/vga.c (grub_vga_term): Declare as
14556 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
14557 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
14558 GRUB_TERM_CODE_TYPE_VGA.
14559 * term/i386/vga_common.c (map_char): Removed.
14560 (grub_console_putchar): Likewise.
14561 (grub_console_getcharwidth): Likewise.
14562 * term/ieee1275/ofconsole.c: Simplify using terminfo.
14563 (colors): Reordered to match terminfo.
14564 (grub_ofconsole_normal_color): Removed.
14565 (grub_ofconsole_writeesc): Likewise.
14566 (grub_ofconsole_highlight_color): Likewise.
14567 (grub_ofconsole_getcharwidth): Likewise.
14568 (grub_ofconsole_setcolorstate): Likewise.
14569 (grub_ofconsole_setcolor): Likewise.
14570 (grub_ofconsole_getcolor): Likewise.
14571 (grub_ofconsole_readkey): Renamed to ...
14572 (readkey): ... this. Remove escape sequence handling. Return -1 on no
14573 key.
14574 (grub_ofconsole_checkkey): Removed.
14575 (grub_ofconsole_getkey): Likewise.
14576 (grub_ofconsole_getxy): Likewise.
14577 (grub_ofconsole_gotoxy): Likewise.
14578 (grub_ofconsole_cls): Likewise.
14579 (grub_ofconsole_refresh): Likewise.
14580 (grub_ofconsole_terminfo_input): New struct.
14581 (grub_ofconsole_terminfo_output): Likewise.
14582 (grub_ofconsole_term_input): Use terminfo.
14583 (grub_ofconsole_term_output): Likewise.
14584 (grub_console_init): Split into ...
14585 (grub_console_init_early): ...this and ...
14586 (grub_console_init_lately): ...this. Use terminfo.
14587 (grub_ofconsole_putchar): Renamed to ...
14588 (put): ... this. Remove mapping.
14589 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14590 * term/serial.c: Simplify using terminfo.
14591 (xpos): Removed.
14592 (ypos): Likewise.
14593 (keep_track): Likewise.
14594 (registered): Likewise.
14595 (input_buf): Likewise.
14596 (npending): Likewise.
14597 (serial_translate_key_sequence): Likewise.
14598 (fill_input_buf): Likewise.
14599 (grub_serial_checkkey): Likewise.
14600 (grub_serial_getkey): Likewise.
14601 (grub_serial_getxy): Likewise.
14602 (grub_serial_gotoxy): Likewise.
14603 (grub_serial_putchar): Likewise.
14604 (grub_serial_cls): Likewise.
14605 (grub_serial_setcolorstate): Likewise.
14606 (grub_serial_setcursor): Likewise.
14607 (serial_hw_init): Use serial_hw_fetch.
14608 (grub_serial_terminfo_input): New variable.
14609 (grub_serial_terminfo_output): Likewise.
14610 (grub_serial_term_input): Use terminfo.
14611 (grub_serial_term_output): Likewise.
14612 * term/terminfo.c (putstr): Use put.
14613 (grub_terminfo_all_free): New function
14614 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
14615 (grub_terminfo_output_register): New function.
14616 (grub_terminfo_output_unregister): Likewise.
14617 (grub_terminfo_getxy): Likewise.
14618 (grub_terminfo_readkey): Likewise.
14619 (grub_terminfo_checkkey): Likewise.
14620 (grub_terminfo_getkey): Likewise.
14621 (grub_terminfo_input_init): Likewise.
14622 (print_terminfo): Likewise.
14623 (grub_cmd_terminfo): Handle encoding.
14624 (grub_terminfo_gotoxy): Track position.
14625 (grub_terminfo_cls): Likewise.
14626 (grub_terminfo_putchar): Likewise.
14627 (grub_terminfo_setcolorstate): Handle colors
14628 (grub_terminfo_cursor_on): This ...
14629 (grub_terminfo_cursor_off): ... and this merged into ...
14630 (grub_terminfo_setcursor): ... this.
14631 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
14632 * unicode/ArabicShaping.txt: New file (imported from Unicode).
14633 * unicode/BidiMirroring.txt: Likewise.
14634 * unicode/UnicodeData.txt: Likewise.
14635 * unicode/COPYING: Likewise.
14636 * util/grub-editenv.c (grub_putchar): Removed.
14637 (grub_xputs_real): New function.
14638 (grub_xputs): New variable.
14639 * util/grub-fstest.c (grub_putchar): Removed.
14640 (grub_xputs_real): New function.
14641 (grub_xputs): New variable.
14642 * util/grub-mkdevicemap.c (grub_putchar): Removed.
14643 (grub_xputs_real): New function.
14644 (grub_xputs): New variable.
14645 * util/grub-probe.c (grub_putchar): Removed.
14646 (grub_xputs_real): New function.
14647 (grub_xputs): New variable.
14648 * util/grub-script-check.c (grub_putchar): Removed.
14649 (grub_xputs_real): New function.
14650 (grub_xputs): New variable.
14651 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
14652 (grub_xputs_real): New function.
14653 (grub_xputs): New variable.
14654 * util/import_unicode.py: New file.
14655 * util/grub-mkfont.c (ft_errmsgs): New array.
14656 (grub_glyph_info): Make bitmap a pointer.
14657 (file_formats): New type WIDTH_SPEC.
14658 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
14659 (options): Add width-spec.
14660 (help): Likewise.
14661 (add_char): Renamed to ...
14662 (add_glyph): ... this.
14663 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
14664 (glyph_replace): New type.
14665 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
14666 (add_char): New function.
14667 (add_subst): Likewise.
14668 (process_cursive): Likewise.
14669 (add_font): Handle GSUB.
14670 (write_font_width_spec): New function.
14671 (main): Sort glyphs.
14672 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
14673 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
14674 * kern/term.c (grub_cls): Moved from here...
14675 * normal/term.c (grub_cls): ... here.
14676
14677 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14678
14679 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
14680 suitable for using within the format argument of printf when
14681 converting grub_size_t.
14682 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
14683 "x" to convert grub_size_t arguments.
14684
14685 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14686
14687 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
14688 too long captions.
14689 (list_get_minimal_size): Take selection box into account.
14690
14691 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14692
14693 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
14694 NULL font.
14695
14696 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14697
14698 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
14699 devices when iterating over /dev/disk/by-id; they will be handled
14700 later if appropriate, which they aren't always (e.g. LVM).
14701
14702 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14703
14704 * include/grub/misc.h (grub_reboot): Declare as noreturn.
14705 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
14706 fails.
14707 (grub_halt): Likewise.
14708 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
14709 reset-all fails.
14710 (grub_halt): Don't return, even if all of shut-down, power-off, and
14711 poweroff fail.
14712
14713 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14714
14715 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
14716 arguments, not three.
14717
14718 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14719
14720 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
14721 * util/grub.d/10_linux.in: Use it to check for LVM, so that
14722 LVM-on-RAID is handled correctly.
14723
14724 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14725
14726 * docs/grub.texi (Changes from GRUB Legacy): New section.
14727 (Future): Fix typo.
14728
14729 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14730
14731 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
14732 grub.d/README accidentally ends up executable for one reason or
14733 another. Ignore it.
14734
14735 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14736
14737 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
14738 (gpt_partition_map_iterate): Support non-512B sectors.
14739
14740 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14741
14742 * kern/efi/init.c (grub_efi_init): Disable watchdog.
14743 Tested by: Seth Goldberg.
14744
14745 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14746
14747 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
14748 Properly align mbi.
14749 Reported by: Seth Goldberg.
14750
14751 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14752
14753 * util/grub-mkrescue.in: Avoid module duplication.
14754
14755 2010-07-01 Sean Finney <seanius@seanius.net>
14756
14757 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
14758
14759 2010-07-01 Sean Finney <seanius@seanius.net>
14760
14761 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
14762
14763 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14764
14765 * disk/lvm.c (grub_lvm_checkvalue): New function.
14766 (grub_lvm_check_flag): Likewise.
14767
14768 2010-07-01 Robert Millan <rmh@gnu.org>
14769
14770 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
14771 Support 'p' as partition separator on kernel of FreeBSD (used
14772 with GPT labels).
14773 (grub_util_biosdisk_get_grub_dev): Likewise.
14774
14775 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14776
14777 Yeeloong firmware port.
14778
14779 * boot/mips/yeeloong/fwstart.S: New file.
14780 * bus/cs5536.c (gpiodump): New const.
14781 (set_io_space): New function.
14782 (set_iod): Likewise.
14783 (set_p2d): Likewise.
14784 (grub_cs5536_init_geode): Likewise.
14785 * commands/mips/yeeloong/lsspd.c: New file.
14786 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
14787 (serial_mod_SOURCES): New variable.
14788 (serial_mod_CFLAGS): Likewise.
14789 (serial_mod_LDFLAGS): Likewise.
14790 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
14791 term/terminfo.c and term/tparm.c.
14792 (pkglib_IMAGES): Add fwstart.img.
14793 (fwstart_img_SOURCES): New variable.
14794 (fwstart_img_CFLAGS): Likewise.
14795 (fwstart_img_ASFLAGS): Likewise.
14796 (fwstart_img_LDFLAGS): Likewise.
14797 (fwstart_img_FORMAT): Likewise.
14798 (pkglib_MODULES): Add lsspd.mod.
14799 (lsspd_mod_SOURCES): New variable.
14800 (lsspd_mod_CFLAGS): Likewise.
14801 (lsspd_mod_LDFLAGS): Likewise.
14802 (pkglib_MODULES): Add halt.mod.
14803 (halt_mod_SOURCES): New variable.
14804 (halt_mod_CFLAGS): Likewise.
14805 (halt_mod_LDFLAGS): Likewise.
14806 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
14807 (serial_mod_SOURCES): Removed.
14808 (serial_mod_CFLAGS): Likewise.
14809 (serial_mod_LDFLAGS): Likewise.
14810 * disk/ata.c (check_device): New function.
14811 (grub_ata_device_initialize): Use check_device.
14812 (grub_ata_iterate): Recheck devices.
14813 (grub_ata_open): Likewise.
14814 (grub_atapi_iterate): Likewise.
14815 (grub_atapi_open): Likewise.
14816 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
14817 (GRUB_ATA_CH1_PORT1): Likewise.
14818 (GRUB_ATA_CH0_PORT2): Likewise.
14819 (GRUB_ATA_CH1_PORT2): Likewise.
14820 * include/grub/mips/loongson.h: New file.
14821 * include/grub/mips/yeeloong/ec.h: Likewise.
14822 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
14823 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
14824 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
14825 * include/grub/misc.h (grub_halt): Declare as noreturn.
14826 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
14827 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
14828 (UART_ENABLE_FIFO_TRIGGER1): New definition.
14829 (UART_ENABLE_DTRRTS): Likewise.
14830 (UART_ENABLE_MODEM): Removed.
14831 (UART_ENABLE_OUT2): New const.
14832 * include/grub/term.h (grub_term_register_input_active): New function.
14833 (grub_term_register_output_active): Likewise.
14834 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
14835 argument.
14836 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
14837 (init_pci): New function.
14838 (grub_machine_init): Execute platform init when firmware. Init serial.
14839 (grub_halt): Implement.
14840 (grub_exit): Likewise.
14841 (grub_reboot): Likewise.
14842 * term/serial.c (serial_hw_init): Update macros.
14843 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
14844 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
14845 (image_targets): New target mipsel-yeeloong-flash.
14846 (generate_image): Support IMAGE_YEELOONG_FLASH.
14847 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
14848 (grub_video_sm712_setup): Init card.
14849 (grub_video_sm712_set_palette): Removed.
14850 * video/sm712_init.c: New file.
14851
14852 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
14853
14854 * Makefile.in (install-local): Temporarily prepend $(builddir) to
14855 PATH when running help2man and then run it on the unadorned
14856 executable names, rather than passing $(builddir)/* paths to
14857 help2man. This avoids the build directory ending up in generated
14858 manual pages.
14859
14860 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14861
14862 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
14863 to avoid accidents when debugging with 'sh -x'.
14864 * util/grub-mkrescue.in: Likewise.
14865 * util/grub.d/00_header.in: Likewise.
14866 * util/grub.d/10_hurd.in: Likewise.
14867 * util/grub.d/10_kfreebsd.in: Likewise.
14868 * util/grub.d/10_linux.in: Likewise.
14869 * util/grub.d/10_netbsd.in: Likewise.
14870 * util/grub.d/10_windows.in: Likewise.
14871 * util/grub.d/20_linux_xen.in: Likewise.
14872 * util/grub.d/30_os-prober.in: Likewise.
14873 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14874
14875 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14876
14877 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
14878 last character in the buffer.
14879 Reported by: Vladimir Serbinenko.
14880
14881 2010-06-29 Robert Millan <rmh@gnu.org>
14882
14883 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
14884 (Command-line and menu entry commands): Document `badram' command.
14885
14886 2010-06-28 Robert Millan <rmh@gnu.org>
14887
14888 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
14889 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
14890 command using ${GRUB_BADRAM} as parameter.
14891
14892 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14893
14894 * docs/grub.texi (Device map): New section.
14895 (Themes): New section (stub).
14896 * Makefile.in (docs/grub.info): The info documentation now builds
14897 without errors. Make sure it stays that way.
14898
14899 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14900
14901 Use normal parser for menu entries.
14902 Reported by: Thomas Frauendorfer
14903
14904 * include/grub/parser.h (grub_parser_execute): Don't export.
14905 * normal/menu.c (grub_menu_execute_entry_real): New function.
14906 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
14907
14908 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14909
14910 * docs/grub.texi (Embedded configuration): New section (replacing
14911 old "Preset Menu" stub).
14912 (Images): New section.
14913 (configfile): Note that any menu entries defined in `file' are shown
14914 immediately.
14915
14916 2010-06-28 Josh Triplett <josh@joshtriplett.org>
14917
14918 * mmap/i386/pc/mmap_helper.S: Set CF on return.
14919
14920 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14921
14922 * util/grub-install.in: Add --debug-image= option.
14923
14924 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14925
14926 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
14927 possible on Linux.
14928
14929 * util/deviceiter.c (check_device): Rename to ...
14930 (check_device_readable_unique): ... this. Update all callers.
14931 Maintain and check a list of which devices (by canonicalized name)
14932 have already been seen.
14933 (clear_seen_devices): New function.
14934 (compare_file_names) [__linux__]: New function.
14935 (grub_util_iterate_devices): Clear the list of seen devices on exit
14936 and (just in case) on entry.
14937 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
14938 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
14939 seen-devices list, superseded by general code in check_device.
14940
14941 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14942
14943 * commands/cat.c (options): New variable.
14944 (grub_cmd_cat): Parse options. If the --dos option is given, print
14945 DOS-style "\r\n" line endings as simple newlines (Debian bug
14946 #586358).
14947 (GRUB_MOD_INIT): Use extcmd.
14948 (GRUB_MOD_FINI): Likewise.
14949 * docs/grub.texi (cat): Document --dos.
14950
14951 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14952
14953 XEN with Linux grub-mkconfig support.
14954
14955 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
14956 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
14957 GRUB_CMDLINE_XEN_DEFAULT.
14958 * util/grub.d/20_linux_xen.in: New file.
14959
14960 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14961
14962 Initialise VGA video on qemu ourselves.
14963
14964 * boot/i386/qemu/boot.S: Don't call 0xc000.
14965 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
14966 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
14967 (kernel_img_HEADERS): Add pci.h.
14968 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
14969 * configure.ac: Force unifont on qemu and yeeloong.
14970 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
14971 (grub_vga_palette_write): Use correct register.
14972 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
14973 Call grub_qemu_init_cirrus.
14974 * kern/i386/qemu/init.c: New file.
14975 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
14976
14977 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
14978
14979 2010-06-26 Pavel Roskin <proski@gnu.org>
14980
14981 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
14982 13.
14983
14984 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14985
14986 * docs/grub.texi (Simple configuration): Explain that
14987 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
14988 set to `true' to disable their respective recovery entries, not
14989 merely set.
14990
14991 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14992
14993 Make the `source' command slightly faster.
14994
14995 * normal/main.c (grub_normal_execute): Don't re-read list files when
14996 nested.
14997
14998 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
14999
15000 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
15001 field position and mask size to red fields from mode_info, not
15002 green.
15003 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
15004 Remove redundant tag->common.framebuffer_type assignment.
15005 Reported by: Seth Goldberg.
15006
15007 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
15008
15009 Sync up other versions of the Linux loader with Robert Millan's
15010 change of 2010-01-09, "Make loader output a bit more user-friendly".
15011
15012 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
15013 grub_dprintf().
15014 (grub_cmd_linux): Likewise.
15015 (grub_cmd_initrd): Likewise.
15016 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
15017 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15018
15019 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
15020
15021 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
15022 larger than MEMORY_MAP_SIZE.
15023
15024 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
15025
15026 Fix parallel build.
15027
15028 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
15029 dependency.
15030 * script/parser.y: #include grub_script.tab.h header.
15031
15032 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15033
15034 Support >3GiB and <16MiB RAM in i386-qemu.
15035
15036 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
15037 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
15038 (grub_lower_mem): Removed.
15039 (grub_upper_mem): Likewise.
15040 (mem_size): Made static.
15041 (above_4g): New variable.
15042 (grub_machine_mmap_init): Detect small mem_size and above_4g.
15043 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
15044 support.
15045
15046 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15047
15048 Cirrus 5446 and Bochs video cards support.
15049
15050 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
15051 video_bochs.mod
15052 (video_cirrus_mod_SOURCES): New variable.
15053 (video_cirrus_mod_CFLAGS): Likewise.
15054 (video_cirrus_mod_LDFLAGS): Likewise.
15055 (video_bochs_mod_SOURCES): Likewise.
15056 (video_bochs_mod_CFLAGS): Likewise.
15057 (video_bochs_mod_LDFLAGS): Likewise.
15058 * include/grub/vga.h: New file.
15059 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
15060 (grub_video_fb_set_page_t): New type.
15061 (grub_video_fb_setup): New prototype.
15062 (grub_video_fb_swap_buffers): Likewise.
15063 (grub_video_fb_get_info_and_fini): Likewise.
15064 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
15065 (CRTC_DATA_PORT): Likewise.
15066 (CRTC_CURSOR): Likewise.
15067 (CRTC_CURSOR_ADDR_HIGH): Likewise.
15068 (CRTC_CURSOR_ADDR_LOW): Likewise.
15069 (CRTC_CURSOR_DISABLE): Likewise.
15070 (update_cursor): Use grub_vga_cr_write.
15071 (grub_vga_text_setcursor): Likewise.
15072 * video/bochs.c: New file.
15073 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
15074 (palette): Likewise.
15075 (palette_size): Likewise.
15076 (framebuffer): New variable.
15077 (grub_video_fb_init): Use 'framebuffer'.
15078 (grub_video_fb_fini): Likewise.
15079 (grub_video_fb_get_info): Likewise.
15080 (grub_video_fb_get_palette): Likewise.
15081 (grub_video_fb_set_palette): Likewise.
15082 (grub_video_fb_set_viewport): Likewise.
15083 (grub_video_fb_get_viewport): Likewise.
15084 (grub_video_fb_map_color): Likewise.
15085 (grub_video_fb_map_rgb): Likewise.
15086 (grub_video_fb_map_rgba): Likewise.
15087 (grub_video_fb_unmap_color): Likewise.
15088 (grub_video_fb_unmap_color_int): Likewise.
15089 (grub_video_fb_fill_rect): Likewise.
15090 (grub_video_fb_blit_bitmap): Likewise.
15091 (grub_video_fb_blit_render_target): Likewise.
15092 (grub_video_fb_scroll): Likewise.
15093 (grub_video_fb_create_render_target): Likewise.
15094 (grub_video_fb_doublebuf_blit_init): Likewise.
15095 (grub_video_fb_set_active_render_target): Handle doublebuffering.
15096 (doublebuf_pageflipping_update_screen): New function.
15097 (doublebuf_pageflipping_init): Likewise.
15098 (grub_video_fb_setup): Likewise.
15099 (grub_video_fb_swap_buffers): Likewise.
15100 (grub_video_fb_get_info_and_fini): Likewise.
15101 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
15102 All users updated.
15103 (doublebuf_pageflipping_commit): Restructured into ...
15104 (doublebuf_pageflipping_set_page): ... this.
15105 (doublebuf_pageflipping_update_screen): Removed.
15106 (doublebuf_pageflipping_init): Likewise.
15107 (double_buffering_init): Likewise.
15108 (grub_video_vbe_setup): Use grub_video_fb_setup.
15109 (grub_video_vbe_swap_buffers): Removed.
15110 (grub_video_vbe_set_active_render_target): Likewise.
15111 (grub_video_vbe_get_active_render_target): Likewise.
15112 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
15113 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
15114 grub_video_fb_set_active_render_target and
15115 grub_video_fb_get_active_render_target.
15116 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
15117 (SEQUENCER_DATA_PORT): Likewise.
15118 (MAP_MASK_REGISTER): Likewise.
15119 (CRTC_ADDR_PORT): Likewise.
15120 (CRTC_DATA_PORT): Likewise.
15121 (START_ADDR_HIGH_REGISTER): Likewise.
15122 (START_ADDR_LOW_REGISTER): Likewise.
15123 (GRAPHICS_ADDR_PORT): Likewise.
15124 (GRAPHICS_DATA_PORT): Likewise.
15125 (READ_MAP_REGISTER): Likewise.
15126 (INPUT_STATUS1_REGISTER): Likewise.
15127 (INPUT_STATUS1_VERTR_BIT): Likewise.
15128 (get_map_mask): Use grub_vga_sr_read.
15129 (set_map_mask): Use grub_vga_sr_write.
15130 (set_read_map): Use grub_vga_gr_write.
15131 (set_start_address): Use grub_vga_cr_write.
15132 * video/sm712.c (framebuffer): Remove leftover fields.
15133
15134 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
15135
15136 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
15137 setting GRUB_VIDEO_BACKEND. Make it available as a user override
15138 instead. Replace the gfxterm backend check with a check that
15139 ${GRUB_PREFIX}/video.lst is non-empty.
15140 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
15141 again.
15142 (load_video): New generated function. Call it before loading
15143 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
15144 * util/grub.d/10_linux.in (linux_entry): Call load_video.
15145 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
15146 * docs/grub.texi (Simple configuration): Document
15147 GRUB_VIDEO_BACKEND.
15148
15149 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15150
15151 Use video functions in linux and xnu loaders.
15152
15153 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
15154 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
15155 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
15156 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
15157 loader/i386/pc/linux.c.
15158 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
15159 (find_line_len): Removed.
15160 (find_framebuf): Likewise.
15161 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
15162 * loader/i386/efi/xnu.c: Removed.
15163 * loader/i386/pc/xnu.c: Moved from here...
15164 * loader/i386/xnu.c: ...here.
15165
15166 Enable priorities in video drivers.
15167
15168 * include/grub/video.h (grub_video_adapter_prio_t): New type.
15169 (grub_video_adapter): New field prio.
15170 (grub_video_register): Respect prio when inserting.
15171 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
15172 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
15173 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
15174 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
15175 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
15176 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
15177 * video/sm712.c (grub_video_sm712_adapter): Likewise.
15178
15179 Fix SDL driver ID.
15180
15181 * include/grub/video.h (grub_video_driver_id_t): New value
15182 GRUB_VIDEO_DRIVER_SDL.
15183 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
15184
15185 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15186
15187 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
15188 argument to printf.
15189 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15190
15191 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15192
15193 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
15194 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15195
15196 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15197
15198 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
15199 directly, and recommend grub-install instead.
15200 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15201
15202 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15203
15204 Fix i386-pc prefix handling with nested partitions (Debian bug
15205 #585068). Note that the case where the core image is booted using
15206 multiboot and relocated from its original location still requires
15207 more work.
15208
15209 * kern/i386/pc/init.c (make_install_device): If the prefix starts
15210 with "(,", fill the boot drive in between those two characters, but
15211 expect that a full partition specification including partition map
15212 names will follow.
15213 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
15214 specified, write a prefix without the drive name but including a
15215 full partition specification.
15216
15217 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
15218
15219 * util/grub-mkconfig.in: Ignore non-option arguments, for
15220 compatibility with older versions (before 2010-06-12) which did the
15221 same. In particular, this makes it easier to ship an update-grub
15222 wrapper which is compatible with that used with GRUB Legacy (Debian
15223 bug #586056).
15224
15225 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15226
15227 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
15228 for manual page generation.
15229
15230 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15231
15232 * po/POTFILES: Remove leftover commands/handler.c.
15233
15234 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15235
15236 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
15237 left this script non-functional.
15238
15239 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15240
15241 * docs/man/grub-emu.h2m: New file.
15242
15243 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
15244
15245 * docs/grub.texi (Commands): Document reduced command set in rescue
15246 mode.
15247 (cpuid): New section.
15248
15249 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
15250
15251 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
15252 new partition naming style.
15253 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
15254
15255 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
15256
15257 Add "-o grub.iso" like cmdline options support.
15258
15259 * util/grub-install.in: Improve cmdline option parsing.
15260 * util/grub-mkconfig.in: Likewise.
15261 * util/grub-mkrescue.in: Likewise.
15262 * util/grub-reboot.in: Likewise.
15263 * util/grub-set-default.in: Likewise.
15264 * util/i386/efi/grub-install.in: Likewise.
15265 * util/ieee1275/grub-install.in: Likewise.
15266 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15267
15268 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15269
15270 * .bzrignore: Ignore 41_custom.
15271
15272 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15273
15274 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
15275
15276 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15277
15278 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
15279 prototype declarations.
15280
15281 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
15282 generating fs, partmap, and video lists.
15283 * include/grub/fs.h (grub_fs_register): Omit prototype if
15284 GRUB_LST_GENERATOR is defined.
15285 * include/grub/partition.h (grub_partition_map_register): Likewise.
15286 * include/grub/video.h (grub_video_register): Likewise.
15287
15288 2010-06-12 Javier Martín <lordhabbit@gmail.com>
15289
15290 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
15291
15292 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15293
15294 * util/grub-mkrescue.in: Support --xorriso argument.
15295
15296 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15297
15298 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
15299 Suggested by: Thomas Schmitt.
15300
15301 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15302
15303 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
15304 Suggested by: Thomas Schmitt.
15305
15306 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15307
15308 custom.cfg support.
15309
15310 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
15311 * util/grub.d/41_custom.in: New file.
15312
15313 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15314
15315 * util/grub-mkrescue.in (make_image): Remove sh module, which has
15316 been merged back into normal.
15317
15318 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15319
15320 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
15321 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
15322
15323 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15324
15325 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
15326 when generating manual pages.
15327 * docs/man/grub-bin2h.h2m: New file.
15328 * docs/man/grub-editenv.h2m: New file.
15329 * docs/man/grub-fstest.h2m: New file.
15330 * docs/man/grub-install.h2m: New file.
15331 * docs/man/grub-macho2img.h2m: New file.
15332 * docs/man/grub-mkconfig.h2m: New file.
15333 * docs/man/grub-mkdevicemap.h2m: New file.
15334 * docs/man/grub-mkfont.h2m: New file.
15335 * docs/man/grub-mkimage.h2m: New file.
15336 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
15337 * docs/man/grub-mkrelpath.h2m: New file.
15338 * docs/man/grub-mkrescue.h2m: New file.
15339 * docs/man/grub-ofpathname.h2m: New file.
15340 * docs/man/grub-pe2elf.h2m: New file.
15341 * docs/man/grub-probe.h2m: New file.
15342 * docs/man/grub-reboot.h2m: New file.
15343 * docs/man/grub-script-check.h2m: New file.
15344 * docs/man/grub-set-default.h2m: New file.
15345 * docs/man/grub-setup.h2m: New file.
15346
15347 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
15348
15349 Use FOR_* macros instead of *_iterate whenever possible.
15350
15351 * commands/handler.c: Removed.
15352 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
15353 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
15354 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15355 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
15356 (grub_probe_SOURCES): Remove kern/parser.c.
15357 (util/grub-script-check.c_DEPENDENCIES): Removed.
15358 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
15359 and grub_script_check_init.c.
15360 (grub_script_check_init.lst): Removed.
15361 (grub_script_check_init.h): Likewise.
15362 (grub_script_check_init.c): Likewise.
15363 (pkglib_MODULES): Remove handler.mod and sh.mod.
15364 (handler_mod_SOURCES): Removed.
15365 (handler_mod_CFLAGS): Likewise.
15366 (handler_mod_LDFLAGS): Likewise.
15367 (normal_mod_SOURCES): Remove normal/handler.c.
15368 Add script/main.c, script/script.c, script/execute.c,
15369 script/function.c, script/lexer.c, grub_script.tab.c
15370 and grub_script.yy.c.
15371 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15372 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15373 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
15374 (grub_setup_SOURCES): Remove kern/parser.c.
15375 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15376 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
15377 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
15378 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15379 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15380 (grub_setup_SOURCES): Remove kern/parser.c.
15381 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15382 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
15383 * include/grub/command.h (grub_command_iterate): Removed.
15384 (FOR_COMMANDS): New macro.
15385 * include/grub/dl.h (grub_dl): New member next.
15386 (grub_dl_iterate): Removed.
15387 (grub_dl_head): New variable declaration.
15388 (FOR_DL_MODULES): New macro.
15389 * include/grub/fs.h: Include list.h.
15390 (grub_fs): Make next first element.
15391 (grub_fs_list): New variable declaration.
15392 (grub_fs_register): Make inline.
15393 (grub_fs_unregister): Likewise.
15394 (grub_fs_iterate): Removed.
15395 (FOR_FILESYSTEMS): New macro.
15396 * include/grub/handler.h: Removed.
15397 * include/grub/list.h (grub_list_hook_t): Removed.
15398 (grub_list_test_t): Likewise.
15399 (grub_list_pop): Likewise.
15400 (grub_list_iterate): Likewise.
15401 (grub_list_insert): Likewise.
15402 (FOR_LIST_ELEMENTS): New macro.
15403 * include/grub/parser.h (grub_parser_class): Removed.
15404 (grub_parser_register): Likewise.
15405 (grub_parser_unregister): Likewise.
15406 (grub_parser_get_current): Likewise.
15407 (grub_parser_set_current): Likewise.
15408 (grub_register_rescue_parser): Likewise.
15409 (grub_rescue_parse_line): New function.
15410 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
15411 * include/grub/script_sh.h (grub_script_function_list): New variable
15412 declaration.
15413 (FOR_SCRIPT_FUNCTIONS): New macro.
15414 (grub_script_function_iterate): Removed.
15415 (grub_normal_parse_line): New prototype.
15416 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
15417 (FOR_DISABLED_TERM_INPUTS): Likewise.
15418 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15419 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15420 * include/grub/video.h (grub_video_adapter): Move 'next' to first
15421 element.
15422 (grub_video_register): Inline.
15423 (grub_video_unregister): Likewise.
15424 (grub_video_adapter_list): New variable declaration.
15425 (grub_video_iterate): Removed.
15426 (FOR_VIDEO_ADAPTERS): New macro.
15427 * kern/dl.c (grub_dl_list): Removed. All users updated.
15428 (grub_dl_iterate): Removed.
15429 * kern/fs.c (grub_fs_list): Make global.
15430 (grub_fs_register): Removed.
15431 (grub_fs_unregister): Likewise.
15432 (grub_fs_iterate): Likewise.
15433 * kern/handler.c: Removed.
15434 * kern/list.c (grub_list_pop): Removed.
15435 (grub_list_iterate): Likewise.
15436 (grub_list_insert): Likewise.
15437 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
15438 (grub_prio_list_insert): Don't use grub_list_insert.
15439 * kern/main.c (grub_register_rescue_parser): Don't call
15440 grub_register_rescue_parser.
15441 * kern/parser.c (grub_parser_class): Removed.
15442 (grub_parser_execute): Use grub_rescue_parse_line.
15443 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
15444 (grub_rescue_parser): Removed.
15445 (grub_register_rescue_parser): Likewise.
15446 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
15447 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
15448 (grub_auth_check_authentication): Likewise.
15449 * normal/completion.c (iterate_command): Removed.
15450 (grub_normal_do_completion): Use FOR_COMMANDS.
15451 * normal/handler.c: Removed.
15452 * normal/main.c (read_config_file): Remove parser changing.
15453 (grub_normal_execute): Don't call read_handler_list.
15454 (grub_normal_read_line_real): Statically allocate prompt.
15455 (grub_cmdline_run): Use grub_normal_parse_line.
15456 (GRUB_MOD_FINI): Don't call free_handler_list.
15457 * normal/menu_entry.c (run): Likewise.
15458 * script/function.c (grub_script_function_list): Make global.
15459 (grub_script_function_iterate): Removed.
15460 * script/main.c (grub_normal_parse_line): Make global.
15461 (grub_sh_parser): Removed.
15462 (GRUB_MOD_INIT): Likewise.
15463 (GRUB_MOD_FINI): Likewise.
15464 * tests/lib/functional_test.c (grub_functional_test): Use
15465 FOR_LIST_ELEMENTS.
15466 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
15467 (grub_test_run): Use FOR_LIST_ELEMENTS.
15468 * tests/lib/unit_test.c (main): Likewise.
15469 * util/deviceiter.c (grub_util_iterate_devices): Don't use
15470 grub_list_pop.
15471 * util/grub-fstest.c (grub_term_input_class): Removed.
15472 (grub_term_output_class): Likewise.
15473 * util/grub-probe.c: Likewise.
15474 * util/i386/pc/grub-setup.c: Likewise.
15475 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15476 * util/grub-script-check.c (main): Don't call grub_init_all and
15477 grub_fini_all.
15478 * video/video.c (grub_video_adapter_list): Make global.
15479 (grub_video_register): Removed.
15480 (grub_video_unregister): Likewise.
15481 (grub_video_iterate): Likewise.
15482
15483 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
15484
15485 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
15486 reported by Henrique Ferreiro.
15487
15488 2010-06-09 Robert Millan <rmh@gnu.org>
15489
15490 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
15491 ones, when both are available.
15492
15493 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15494
15495 Make --version uniform and avoid hard-coded program name.
15496
15497 * util/grub-mkimage.c (main): Use `program_name' instead of
15498 hard-coded string.
15499 * util/i386/pc/grub-setup.c (main): Likewise.
15500 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
15501 * util/grub-install.in: Save the basename of $0 in $self, and use the
15502 latter in informational messages. Use the same format for --version
15503 as the binary programs.
15504 * util/grub-mkconfig.in: Likewise.
15505 * util/grub-mkrescue.in: Likewise.
15506 * util/grub-reboot.in: Likewise.
15507 * util/grub-set-default.in: Likewise.
15508 * util/i386/efi/grub-install.in: Likewise.
15509 * util/ieee1275/grub-install.in: Likewise.
15510 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15511
15512 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15513
15514 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
15515 embedding area. Use <= instead of == when checking for non-emptiness.
15516
15517 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15518
15519 * configure.ac: Add `.' to the directories searched for unifont.
15520
15521 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15522
15523 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
15524 grub_script.yy.h.
15525
15526 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15527
15528 * docs/grub.texi (History): Expand to cover GRUB 2.
15529 (Serial terminal): Refer to `terminal_input' and `terminal_output'
15530 commands, not `terminal'.
15531 (serial): Likewise.
15532 (terminal_input): New section.
15533 (terminal_output): New section.
15534 (uppermem): New section (stub).
15535 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
15536
15537 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15538
15539 * docs/grub.texi (Security): Menu entries are unrestricted by
15540 default, not restricted to superusers as I had previously thought.
15541 Reword to account for this.
15542
15543 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15544
15545 * kern/emu/misc.c (device_mapper_null_log): New function.
15546 (grub_device_mapper_supported): New function.
15547 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
15548 prototype.
15549 * kern/emu/hostdisk.c (find_partition_start): Check whether
15550 device-mapper is supported before trying to use it.
15551 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
15552
15553 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15554
15555 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
15556 (File name syntax): Likewise.
15557 (help): --all is no longer supported in GRUB 2. Be more precise
15558 about pattern matching.
15559
15560 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15561
15562 * normal/completion.c (grub_normal_do_completion): When completing
15563 arguments to "set" and the current word contains an equals sign,
15564 skip to after the equals sign before starting completion.
15565
15566 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15567
15568 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
15569
15570 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15571
15572 * docs/grub.texi (Network): New section.
15573 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
15574 `(nd)' as in GRUB Legacy.
15575 (pxe_unload): New section.
15576
15577 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15578
15579 * docs/grub.texi (Troubleshooting): `echo' is not usually available
15580 in the rescue shell, so recommend using `set' instead. Thanks,
15581 Jordan Uggla.
15582
15583 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15584
15585 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
15586 (password): New section.
15587 (password_pbkdf2): New section.
15588 (search): New section.
15589 (Security): New section.
15590 (Troubleshooting): New section, currently very incomplete.
15591 (Invoking grub-mkpasswd-pbkdf2): New section.
15592 (Internals): New section, currently very incomplete.
15593
15594 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15595
15596 * util/grub.d/00_header.in: Add some more quoting (of
15597 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
15598 work again.
15599 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
15600
15601 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15602
15603 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
15604 to `count', fixing variable shadowing that broke the -c option.
15605
15606 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
15607
15608 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
15609 in case they contain spaces.
15610
15611 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15612
15613 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
15614 "part_" to partmap module names, in line with grub-install.
15615 Reported by: Jindřich Makovička (Debian bug #584426).
15616
15617 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15618
15619 * util/grub-mkimage.c: Make target-related error messages slightly
15620 more helpful; -O talks about "format". Explicitly point to the use
15621 of -O if no target is specified.
15622 Reported by: Didier Raboud (Debian bug #584415).
15623
15624 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
15625
15626 * INSTALL: Document several build requirements for optional features
15627 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
15628
15629 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15630
15631 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
15632 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
15633 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
15634
15635 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15636
15637 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
15638 Thanks to Jordan Uggla for spotting this.
15639
15640 2010-06-02 Aleš Nesrsta <starous@volny.cz>
15641
15642 Finally make USB usable.
15643
15644 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
15645 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
15646 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
15647 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
15648 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
15649 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
15650 (GRUB_OHCI_FSMPS): Likewise.
15651 (GRUB_OHCI_PERIODIC_START): Likewise.
15652 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
15653 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
15654 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
15655 (GRUB_OHCI_SET_PORT_RESET): Likewise.
15656 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
15657 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
15658 (grub_ohci_transaction): Likewise.
15659 (grub_ohci_transfer): Improve condition detection algorithms.
15660 Handle toggle property. Program the transactions correctly.
15661 Improve error handling. Various important fixups.
15662 (grub_ohci_portstatus): Put register writes in right order.
15663 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
15664 (grub_uhci_transfer): Don't show "failed" message on success.
15665 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
15666 array.
15667 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
15668 determine its size.
15669 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
15670 before initialization is completed. Use IN direction for empty
15671 transfers. Use last_trans and compute toggle.
15672 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
15673 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
15674 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
15675 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
15676 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
15677 (grub_usb_device): Increase toggle to 256.
15678 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
15679 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
15680 GRUB_USBMS_SUBCLASS_SFF8070.
15681 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
15682 (grub_scsi_inquiry): New member page and alloc_length.
15683 (grub_scsi_request_sense): New structure.
15684 (grub_scsi_request_sense_data): Likewise.
15685 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
15686 control.
15687 * disk/scsi.c (grub_scsi_request_sense): New function.
15688 (grub_scsi_test_unit_ready): Likewise.
15689 (grub_scsi_inquiry): Fill new fields.
15690 (grub_scsi_read_capacity): Likewise.
15691 (grub_scsi_read10): Add request sense at the end.
15692 (grub_scsi_read12): Likewise.
15693 (grub_scsi_write10): Likewise.
15694 (grub_scsi_write12): Likewise.
15695 (grub_scsi_open): Add Test Unit Ready.
15696 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
15697 Support additional subclasses. Con't clear halt yet. Activate the
15698 proper config. Calculate LUNs correctly.
15699 (grub_usbms_transfer): Various important fixups.
15700
15701 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15702
15703 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
15704 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
15705 (grub_ohci_fini_hw): New function.
15706 (grub_ohci_restore_hw): Likewise.
15707 (GRUB_MOD_INIT(ohci)): Register preboot hook.
15708 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
15709 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
15710
15711 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15712
15713 Dedicated DMA allocations.
15714
15715 * bus/pci.c (grub_memalign_dma32): New function
15716 (grub_dma_free): Likewise.
15717 (grub_dma_get_virt): Likewise.
15718 (grub_dma_get_phys): Likewise.
15719 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
15720 (grub_ohci_pci_iter): Use dma32_alloc.
15721 (grub_ohci_transfer): Likewise.
15722 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
15723 (grub_usb_bulk_readwrite): Likewise.
15724 * include/grub/pci.h: Add declarations.
15725
15726 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15727
15728 CS5536 support.
15729
15730 * bus/cs5536.c: New file.
15731 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
15732 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
15733 (cs5536_mod_SOURCES): New variable.
15734 (cs5536_mod_CFLAGS): Likewise.
15735 (cs5536_mod_LDFLAGS): Likewise.
15736 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
15737 machine/pci.h.
15738 (kernel_img_SOURCES): Add bus/cs5536.c.
15739 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
15740 usb_keyboard.mod.
15741 (usb_mod_SOURCES): New variable.
15742 (usb_mod_CFLAGS): New variable.
15743 (usb_mod_LDFLAGS): New variable.
15744 (usbtest_mod_SOURCES): New variable.
15745 (usbtest_mod_CFLAGS): New variable.
15746 (usbtest_mod_LDFLAGS): New variable.
15747 (ohci_mod_SOURCES): New variable.
15748 (ohci_mod_CFLAGS): New variable.
15749 (ohci_mod_LDFLAGS): New variable.
15750 (usbms_mod_SOURCES): New variable.
15751 (usbms_mod_CFLAGS): New variable.
15752 (usbms_mod_LDFLAGS): New variable.
15753 (usb_keyboard_mod_SOURCES): New variable.
15754 (usb_keyboard_mod_CFLAGS): New variable.
15755 (usb_keyboard_mod_LDFLAGS): New variable.
15756 * include/grub/smbus.h: New file.
15757 * include/grub/cs5536.h: New file.
15758
15759 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15760
15761 * util/grub.d/00_header.in: Add safety check to make sure that
15762 ${locale_dir} exists before trying to probe it.
15763
15764 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15765
15766 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
15767 per the GNU Coding Standards; this is now too obscure to be worth
15768 documenting.
15769 (QNX): Likewise.
15770 (chainloader): Remove cross-reference to `SCO UnixWare'.
15771
15772 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15773
15774 * docs/grub.texi (Chain-loading): New section.
15775 (DOS/Windows): New section, borrowed from GRUB Legacy with details
15776 adjusted for GRUB 2.
15777 (SCO UnixWare): Likewise.
15778 (QNX): Likewise.
15779 (chainloader): Add reference to `Block list syntax'.
15780 (drivemap): New section.
15781 (parttool): New section.
15782
15783 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15784
15785 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
15786 the grub shell'.
15787 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
15788 (Installing GRUB using grub-install): Remove reference to the grub
15789 shell; mention `grub-mkimage' and `grub-setup' instead.
15790 (Invoking grub-install): Likewise.
15791 (Interface): Add reference to `Menu entry editor'.
15792 (serial): Remove `--device' option.
15793
15794 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15795
15796 * docs/grub.texi (Configuration): New section, documenting
15797 configuration file generation using grub-mkconfig. I've left a slot
15798 for documenting the full shell scripting format but have not yet
15799 started on writing that up.
15800 (Invoking grub-mkconfig): New section.
15801
15802 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15803
15804 * docs/grub.texi (direntry): Remove grub-terminfo reference.
15805 (GNU GRUB manual): Likewise.
15806 (General commands): Update description of `terminfo' for GRUB 2.
15807
15808 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15809
15810 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
15811 (GRUB_MOD_INIT): Fix capitalisation.
15812 * docs/grub.texi (Command-line and menu entry commands): Document
15813 gettext and gptsync commands.
15814
15815 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15816
15817 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
15818 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
15819
15820 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
15821
15822 Add btrfs probing support, currently only in the single-device case.
15823
15824 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
15825 function.
15826 (grub_guess_root_device): Call find_root_device_from_mountinfo
15827 before looking in /dev.
15828
15829 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15830
15831 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
15832 GRUB_DISK_SIZE_UNKNOWN.
15833 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
15834
15835 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
15836
15837 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
15838 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
15839 corrupted or not synced properly.
15840
15841 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15842
15843 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
15844 Reported by: Seth Goldberg.
15845
15846 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15847
15848 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
15849 addition of dest.
15850 Reported by: Seth Goldberg.
15851
15852 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
15855 Reported by: Seth Goldberg.
15856
15857 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15858
15859 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
15860 64-bit address as signed on MIPS.
15861
15862 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15863
15864 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
15865 to the empty string.
15866
15867 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
15868
15869 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
15870
15871 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
15872 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
15873 * kern/misc.c (__enable_execute_stack): Disable on
15874 GRUB_MACHINE_EMU.
15875
15876 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15877
15878 Make grub-probe work with symbolic links under /dev/mapper as well
15879 as with real block devices. The Linux world seems to be (at best)
15880 in transition here, and GRUB shouldn't get caught in the middle.
15881
15882 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
15883 /dev/mapper.
15884
15885 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15886
15887 * util/grub-script-check.c (main): Ensure defined behaviour on empty
15888 input files (in which case exit zero).
15889
15890 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15891
15892 * kern/emu/misc.c (canonicalize_file_name): realpath can still
15893 return NULL for various reasons even if it has a maximum-length
15894 buffer: for example, there might be a symlink loop, or the path
15895 might exceed PATH_MAX. If this happens, return NULL.
15896
15897 2010-05-27 Robert Millan <rmh@gnu.org>
15898
15899 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
15900 partmap module to handle cross-partmap setups.
15901 Reported by Orestes Mas. Gràcies!
15902
15903 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15904
15905 * util/grub-mkrescue.in: Initialise override_dir rather than
15906 assuming that it's unset or empty in the environment.
15907
15908 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
15909
15910 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
15911 variable index into p_index to suppress a warning with -Wshadow.
15912
15913 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
15914
15915 * INSTALL: Added flex >= 2.5.35 requirement.
15916
15917 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15918
15919 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
15920
15921 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 cmostest support.
15924
15925 * commands/i386/cmostest.c: New file.
15926 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
15927 (cmostest_mod_SOURCES): New variable.
15928 (cmostest_mod_CFLAGS): Likewise.
15929 (cmostest_mod_LDFLAGS): Likewise.
15930 * conf/i386-pc.rmk: Likewise.
15931 * docs/grub.texi (Vendor power-on keys): New section.
15932 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
15933 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
15934 and GRUB_BUTTON_CMOS_ADDRESS.
15935 * util/grub.d/00_header.in: Handle powering-on by separate button.
15936
15937 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15938
15939 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
15940 Removed drawing_scrollbar argument. All users updated
15941 Fixes #29792.
15942 Reported by Jo Shields
15943
15944 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15945
15946 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
15947 buffer since gfxterm handles double repaint.
15948
15949 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15950
15951 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
15952 * term/gfxterm.c (real_scroll): Likewise.
15953
15954 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15955
15956 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
15957 before calling BIOS.
15958
15959 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 * include/grub/i18n.h: Always enable grub_gettext.
15962
15963 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15964
15965 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
15966 partition naming style.
15967
15968 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
15969
15970 * util/grub-mkconfig.in: Fix handling of -o so that it works when
15971 not the first option.
15972
15973 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15974
15975 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
15976
15977 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15978
15979 * util/misc.c: Move inclusion of <limits.h> to ...
15980 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
15981
15982 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
15983
15984 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
15985 Fix merge error in NetBSD code.
15986 (find_partition_start) [__NetBSD__]: Likewise.
15987
15988 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
15989
15990 Fix grub-mkrescue usage unit testing.
15991
15992 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
15993
15994 2010-05-18 Christian Franke <franke@computer.org>
15995
15996 * util/grub.d/10_windows.in: Use path names instead of
15997 drive letters to prevent warning from Cygwin 1.7.
15998 Add drivemap command to menuentry if needed.
15999
16000 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
16001
16002 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
16003 gnumach and gnumach.gz.
16004
16005 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16006
16007 * include/grub/i18n.h (gettext): Inline instead of using #define.
16008 (grub_gettext): Likewise.
16009 (_): Likewise.
16010
16011 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16012
16013 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
16014 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
16015 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
16016 (main): Add a slash after pkglibdirroot.
16017
16018 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16019
16020 * util/grub-install.in: Add missing "in" keyword.
16021
16022 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
16025 Reported by: Seth Goldberg.
16026
16027 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16028
16029 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
16030
16031 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16032
16033 * configure.ac: Check for Linux device-mapper support.
16034
16035 * util/hostdisk.c (device_is_mapped): New function.
16036 (find_partition_start): New function, partly broken out from
16037 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
16038 device-mapper support added.
16039 (linux_find_partition): Use find_partition_start.
16040 (convert_system_partition_to_system_disk): Add `st' argument.
16041 Support Linux /dev/mapper/* devices if device-mapper support is
16042 available; only DM-RAID devices are understood at present.
16043 (find_system_device): Add `st' argument. Pass it to
16044 convert_system_partition_to_system_disk.
16045 (grub_util_biosdisk_get_grub_dev): Pass stat result to
16046 find_system_device and convert_system_partition_to_system_disk. Use
16047 find_partition_start.
16048
16049 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
16050 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
16051 * util/deviceiter.c [__linux__]: Define MINOR.
16052 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
16053 * util/mkdevicemap.c (grub_putchar): New function.
16054 (grub_getkey): New function.
16055 (grub_refresh): New function.
16056 (main): Set debug=all if -v -v is used.
16057
16058 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16059
16060 Fix build with non-GNU libcs.
16061
16062 * util/misc.c (canonicalize_file_name): Move to ...
16063 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
16064 grub_make_system_path_relative_to_its_root.
16065
16066 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16067
16068 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
16069 we handle finding grub-mkimage. Default to finding grub-mkimage in
16070 ${bindir} with program_transform_name applied, and provide a
16071 --grub-mkimage option to override this.
16072
16073 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16074
16075 Remove grub-mkisofs.
16076
16077 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
16078 (grub_mkisofs_SOURCES): Removed.
16079 (grub_mkisofs_CFLAGS): Removed.
16080 * util/mkisofs/defaults.h: Removed.
16081 * util/mkisofs/eltorito.c: Likewise.
16082 * util/mkisofs/exclude.h: Likewise.
16083 * util/mkisofs/hash.c: Likewise.
16084 * util/mkisofs/include/: Likewise.
16085 * util/mkisofs/include/fctldefs.h: Likewise.
16086 * util/mkisofs/include/mconfig.h: Likewise.
16087 * util/mkisofs/include/prototyp.h: Likewise.
16088 * util/mkisofs/include/statdefs.h: Likewise.
16089 * util/mkisofs/iso9660.h: Likewise.
16090 * util/mkisofs/joliet.c: Likewise.
16091 * util/mkisofs/match.c: Likewise.
16092 * util/mkisofs/match.h: Likewise.
16093 * util/mkisofs/mkisofs.c: Likewise.
16094 * util/mkisofs/mkisofs.h: Likewise.
16095 * util/mkisofs/msdos_partition.h: Likewise.
16096 * util/mkisofs/multi.c: Likewise.
16097 * util/mkisofs/name.c: Likewise.
16098 * util/mkisofs/rock.c: Likewise.
16099 * util/mkisofs/tree.c: Likewise.
16100 * util/mkisofs/write.c: Likewise.
16101
16102 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 Unify grub-mkimage accross platforms.
16105
16106 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
16107 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
16108 (grub_mkelfimage_SOURCES): Removed.
16109 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
16110 (util/grub-mkimage.c_DEPENDENCIES): .. this.
16111 (bin_UTILITIES): Add grub-mkimage.
16112 (grub_mkimage_SOURCES): New variable.
16113 (kernel_img_HEADERS): Remove machine/kernel.h.
16114 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
16115 (pkglib_PROGRAMS): Add kernel.img.
16116 (kernel_img_HEADERS): Add machine/kernel.h.
16117 (kernel_img_FORMAT): Removed.
16118 (bin_UTILITIES): Remove grub-mkimage.
16119 (grub_mkimage_SOURCES): Removed.
16120 (grub_mkimage_CFLAGS): Likewise.
16121 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16122 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
16123 (pkglib_PROGRAMS): Add kernel.img.
16124 (bin_UTILITIES): Remove grub-mkimage.
16125 (grub_mkimage_SOURCES): Removed.
16126 (grub_mkimage_CFLAGS): Likewise.
16127 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16128 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
16129 (pkglib_PROGRAMS): Add kernel.img.
16130 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
16131 (pkglib_PROGRAMS): Add kernel.img.
16132 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
16133 (grub_mkimage_SOURCES): Removed.
16134 (grub_mkimage_CFLAGS): Likewise.
16135 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16136 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
16137 (pkglib_PROGRAMS): Add kernel.img.
16138 (bin_UTILITIES): Remove grub-mkimage.
16139 (grub_mkimage_SOURCES): Removed.
16140 (grub_mkimage_CFLAGS): Likewise.
16141 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16142 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
16143 (grub_mkimage_SOURCES): Removed.
16144 (grub_mkimage_CFLAGS): Likewise.
16145 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16146 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
16147 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
16148 (grub_pe32_optional_header): ... this.
16149 (grub_pe64_optional_header): ... and this. All users updated.
16150 (GRUB_PE32_PE32_MAGIC): Split into ..
16151 (GRUB_PE32_PE32_MAGIC): .. this.
16152 (GRUB_PE32_PE64_MAGIC): .. and this.
16153 (GRUB_PE32_SIGNATURE_SIZE): New definition.
16154 * include/grub/elf.h (PT_GNU_STACK): New definition.
16155 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
16156 * include/grub/i386/efi/kernel.h: Likewise.
16157 * include/grub/i386/kernel.h: Likewise.
16158 * include/grub/i386/pc/kernel.h: Likewise.
16159 * include/grub/i386/qemu/boot.h: Likewise.
16160 * include/grub/mips/kernel.h: Likewise.
16161 * include/grub/mips/qemu-mips/kernel.h: Likewise.
16162 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
16163 * include/grub/powerpc/kernel.h: Likewise.
16164 * include/grub/sparc64/ieee1275/boot.h: Likewise.
16165 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16166 * include/grub/sparc64/kernel.h: Likewise.
16167 * include/grub/x86_64/efi/kernel.h: Likewise.
16168 * include/grub/x86_64/kernel.h: Likewise.
16169 * include/grub/offsets.h: New file.
16170 * include/grub/kernel.h (grub_module_info): Split into ...
16171 (grub_module_info32): ... this.
16172 (grub_module_info64): ... and this.
16173 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
16174 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
16175 (grub_boot_blocklist): Moved from here ...
16176 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
16177 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
16178 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
16179 * include/grub/types.h (grub_target_to_host16): Removed.
16180 (grub_target_to_host32): Likewise.
16181 (grub_target_to_host64): Likewise.
16182 (grub_host_to_target16): Likewise.
16183 (grub_host_to_target32): Likewise.
16184 (grub_host_to_target64): Likewise.
16185 (grub_host_to_target_addr): Likewise.
16186
16187 Support grub-mkrescue for efi, coreboot and qemu.
16188
16189 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
16190 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
16191 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
16192 * util/grub-mkrawimage.c: Moved from here ...
16193 * util/grub-mkimage.c: ... here. All users updated.
16194 (ALIGN_ADDR): Use image_target.
16195 (TARGET_NO_FIELD): New const.
16196 (image_target_desc): New type.
16197 (image_targets): New array.
16198 (grub_target_to_host64): Use image_target.
16199 (grub_target_to_host32): Likewise.
16200 (grub_target_to_host16): Likewise.
16201 (grub_host_to_target64): Likewise.
16202 (grub_host_to_target32): Likewise.
16203 (grub_host_to_target16): Likewise.
16204 (grub_host_to_target_addr): Likewise.
16205 (generate_image): Handle multiimage.
16206 (main): Require -O parameter. All users updated.
16207 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
16208 util/efi/grub-mkimage.c
16209 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
16210 New option --rom-directory.
16211 Use xorriso.
16212 * util/i386/efi/grub-mkimage.c: Removed.
16213 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
16214 (grub_target_to_host32): Likewise.
16215 (grub_target_to_host64): Likewise.
16216 (grub_host_to_target16): Likewise.
16217 (grub_host_to_target32): Likewise.
16218 (grub_host_to_target64): Likewise.
16219 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
16220 (grub_target_to_host32): Likewise.
16221 (grub_target_to_host64): Likewise.
16222 (grub_host_to_target16): Likewise.
16223 (grub_host_to_target32): Likewise.
16224 (grub_host_to_target64): Likewise.
16225
16226 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
16227
16228 Source tree is reorganized for emu build.
16229
16230 * include/grub/util/console.h: Move from here...
16231 * include/grub/emu/console.h: ...to here.
16232 * include/grub/util/getroot.h: Move from here...
16233 * include/grub/emu/getroot.h: ...to here.
16234 * include/grub/util/hostdisk.h: Move from here...
16235 * include/grub/emu/hostdisk.h: ...to here.
16236 * util/console.c: Move from here...
16237 * kern/emu/console.c: ...to here.
16238 * util/getroot.c: Move from here...
16239 * kern/emu/getroot.c: ...to here.
16240 * util/grub-emu.c: Move from here...
16241 * kern/emu/main.c: ...to here.
16242 * util/hostdisk.c: Move from here...
16243 * kern/emu/hostdisk.c: ...to here.
16244 * util/hostfs.c: Move from here...
16245 * kern/emu/hostfs.c: ...to here.
16246 * util/mm.c: Move from here...
16247 * kern/emu/mm.c: ...to here.
16248 * util/pci.c: Move from here...
16249 * bus/emu/pci.c: ...to here.
16250 * util/sdl.c: Move from here...
16251 * video/emu/sdl.c: ...to here.
16252 * util/time.c: Move from here...
16253 * kern/emu/time.c: ...to here.
16254 * util/usb.c: Move from here...
16255 * bus/usb/emu/usb.c: ...to here.
16256
16257 * include/grub/emu/misc.h: New header for grub-emu functions.
16258 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
16259
16260 * conf/any-emu.rmk: Rule updates for above renames.
16261 * conf/common.rmk: Likewise.
16262 * conf/i386-pc.rmk: Likewise.
16263 * conf/i386-qemu.rmk: Likewise.
16264 * conf/mips.rmk: Likewise.
16265 * conf/sparc64-ieee1275.rmk: Likewise.
16266 * conf/x86-efi.rmk: Likewise.
16267
16268 * disk/lvm.h: #include updates for above renames.
16269 * util/grub-mkrelpath.c: Likewise.
16270 * util/grub-probe.c: Likewise.
16271 * util/i386/pc/grub-setup.c: Likewise.
16272 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16273 * kern/emu/console.c: Likewise.
16274 * kern/emu/getroot.c: Likewise.
16275 * kern/emu/hostdisk.c: Likewise.
16276 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
16277
16278 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
16279 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
16280 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
16281 * util/misc.c: Remove grub-emu functions.
16282
16283 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16284
16285 Fix gfxmenu crash.
16286 Reported by: Thorsten Grützmacher.
16287
16288 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
16289 timeout hook.
16290 (circprog_set_property): Register and unregister timeout hook.
16291 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
16292 (label_destroy): Free template. and unregister hook.
16293 (label_set_state): New function.
16294 (label_set_property): Handle templates and hooks.
16295 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
16296 timeout hook.
16297 (progress_bar_set_property): Register and unregister timeout hook.
16298 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
16299 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
16300 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
16301 (update_timeout_visit): Removed.
16302 (update_timeouts): New function.
16303 (redraw_timeouts): Likewise.
16304 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
16305 (grub_gfxmenu_clear_timeout): Likewise.
16306 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
16307 (grub_gfxmenu_timeout_notify): Likewise.
16308 (grub_gfxmenu_timeout_notifications): New external variable.
16309 (grub_gfxmenu_timeout_register): New function.
16310 (grub_gfxmenu_timeout_unregister): Likewise.
16311
16312 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16313
16314 Transform (broken) vga terminal into (working) vga video driver.
16315
16316 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
16317 video/i386/pc/vga.c.
16318 * include/grub/video.h (grub_video_driver_id):
16319 Add GRUB_VIDEO_DRIVER_VGA.
16320 * term/i386/pc/vga.c: Renamed to ...
16321 * video/i386/pc/vga.c: ...this
16322 (DEBUG_VGA): Removed.
16323 (CHAR_WIDTH): Likewise.
16324 (CHAR_HEIGHT): Likewise.
16325 (TEXT_WIDTH): Likewise.
16326 (TEXT_HEIGHT): Likewise.
16327 (DEFAULT_FG_COLOR): Likewise.
16328 (DEFAULT_BG_COLOR): Likewise.
16329 (colored_char): Likewise.
16330 (xpos): Likewise.
16331 (ypos): Likewise.
16332 (cursor_state): Likewise.
16333 (fg_color): Likewise.
16334 (bg_color): Likewise.
16335 (text_buf): Likewise.
16336 (page): Likewise.
16337 (font): Likewise.
16338 (framebuffer): New variable.
16339 (set_read_map): Disabled.
16340 (setup): New variable.
16341 (is_target): Likewise.
16342 (grub_vga_mod_init): Likewise.
16343 (grub_vga_mod_fini): Likewise.
16344 (check_vga_mem): Likewise.
16345 (write_char): Likewise.
16346 (write_cursor): Likewise.
16347 (scroll_up): Likewise.
16348 (grub_vga_putchar): Likewise.
16349 (grub_vga_getcharwidth): Likewise.
16350 (grub_vga_getwh): Likewise.
16351 (grub_vga_getxy): Likewise.
16352 (grub_vga_gotoxy): Likewise.
16353 (grub_vga_cls): Likewise.
16354 (grub_vga_setcolorstate): Likewise.
16355 (grub_vga_setcursor): Likewise.
16356 (grub_video_vga_init): New function.
16357 (grub_video_vga_setup): Likewise.
16358 (grub_video_vga_fini): Likewise.
16359 (update_target): Likewise.
16360 (grub_video_vga_blit_bitmap): Likewise.
16361 (grub_video_vga_blit_render_target): Likewise.
16362 (grub_video_vga_set_active_render_target): Likewise.
16363 (grub_video_vga_get_active_render_target): Likewise.
16364 (grub_video_vga_swap_buffers): Likewise.
16365 (grub_video_vga_set_palette): Likewise.
16366 (grub_video_vga_get_info_and_fini): Likewise.
16367 (grub_vga_term): Removed.
16368 (grub_video_vga_adapter): New variable.
16369 (GRUB_MOD_INIT): Register a video driver instead of terminal.
16370 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
16371
16372 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16373
16374 * video/readers/jpeg.c: Indented.
16375
16376 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16377
16378 Various jpeg cleanups.
16379
16380 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
16381 (grub_jpeg_decode_quan_table): Use sizeof.
16382 (grub_jpeg_decode_du): Use ARRAY_SIZE.
16383
16384 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
16385
16386 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
16387 tables. Ignore non-last ac bit.
16388 (grub_jpeg_decode_quan_table): Likewise.
16389
16390 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
16393 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
16394 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16395 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
16396 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
16397 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
16398
16399 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16400
16401 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
16402 error.
16403
16404 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16405
16406 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
16407
16408 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16409
16410 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
16411 condition.
16412
16413 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16414
16415 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
16416 part.
16417
16418 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16419
16420 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
16421 pointers.
16422
16423 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16424
16425 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
16426
16427 2010-05-01 Christian Franke <franke@computer.org>
16428
16429 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
16430 Remove broken Cygwin path conversion.
16431 * util/misc.c: [__CYGWIN__] Add include and define.
16432 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
16433 for Cygwin 1.7.
16434 (make_system_path_relative_to_its_root): Simplify loop, replace early
16435 return by break.
16436 [__CYGWIN__] Add conversion to win32 path.
16437 Include "/" case in trailing slash removal.
16438
16439 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16440
16441 * kern/main.c (grub_load_config): Fix copy-pasted comment.
16442 Reported by: Seth Goldberg
16443
16444 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16445
16446 * commands/help.c (grub_cmd_help): Fix a typo.
16447 Reported by: Seth Goldberg
16448
16449 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16450
16451 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
16452 name and add N_.
16453 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
16454 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
16455 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
16456 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
16457 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
16458 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
16459 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
16460 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
16461 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
16462 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16463 * normal/context.c (GRUB_MOD_INIT): Likewise.
16464 * normal/main.c (GRUB_MOD_INIT): Likewise.
16465 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
16466 * term/serial.c (GRUB_MOD_INIT): Likewise.
16467 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
16468
16469 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16470
16471 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
16472 extra == 0.
16473
16474 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16475
16476 * commands/iorw.c: New file.
16477 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
16478 (iorw_mod_SOURCES): New variable.
16479 (iorw_mod_CFLAGS): Likewise.
16480 (iorw_mod_LDFLAGS): Likewise.
16481
16482 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16483
16484 Hotkey support
16485
16486 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
16487 * normal/main.c (hotkey_aliases): New variable.
16488 (grub_normal_add_menu_entry): Parse "--hotkey".
16489 * normal/menu_text.c (run_menu): Handle hotkeys.
16490
16491 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16492
16493 * kern/i386/coreboot/init.c (grub_machine_init): Call
16494 grub_machine_mmap_init on qemu.
16495
16496 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16497
16498 * boot/i386/qemu/boot.S: Add a missing .code16.
16499
16500 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 Use LBIO on coreboot.
16503
16504 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
16505 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
16506 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
16507 New declaration.
16508 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
16509 grub_machine_mmap_init on coreboot.
16510 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
16511 GRUB_LINUXBIOS_MEMBER_LINK.
16512 (grub_machine_mmap_iterate): Fix declaration.
16513 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
16514
16515 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16516
16517 Split coreboot and multiboot ports.
16518
16519 * conf/i386-multiboot.rmk: New file.
16520 * configure.ac: Add multiboot port.
16521 * include/grub/i386/multiboot/boot.h: New file.
16522 * include/grub/i386/multiboot/console.h: Likewise.
16523 * include/grub/i386/multiboot/init.h: Likewise.
16524 * include/grub/i386/multiboot/kernel.h: Likewise.
16525 * include/grub/i386/multiboot/loader.h: Likewise.
16526 * include/grub/i386/multiboot/memory.h: Likewise.
16527 * include/grub/i386/multiboot/serial.h: Likewise.
16528 * include/grub/i386/multiboot/time.h: Likewise.
16529 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
16530 * loader/multiboot.c: Likewise.
16531 * loader/multiboot_mbi2.c: Likewise.
16532 * util/grub-mkrescue.in: Generate multiboot rescue.
16533
16534 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 * kern/parser.c (grub_parser_execute): Cope with read-only config.
16537
16538 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16539
16540 Merge handling of input and output terminals. Fix a hang.
16541
16542 * commands/terminal.c (abstract_terminal): New struct.
16543 (handle_command): New function. Based on grub_cmd_terminal_input.
16544 (grub_cmd_terminal_input): Use handle_command.
16545 (grub_cmd_terminal_output): Use handle_command.
16546
16547 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
16548
16549 Fix comment handling.
16550
16551 * tests/grub_script_comments.in: New testcase.
16552 * conf/tests.rmk: Rules for new testcase.
16553 * script/yylex.l: Updated flex rules.
16554
16555 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
16556
16557 * docs/grub.texi (play): Document that zero pitches produce rests.
16558 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
16559 if argc is 1.
16560
16561 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
16562
16563 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
16564 autogen issues.
16565
16566 2010-04-26 Christian Franke <franke@computer.org>
16567
16568 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
16569 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
16570 (grub_get_prefix): Remove function.
16571 * util/grub-emu.c (main): Replace grub_get_prefix () call by
16572 make_system_path_relative_to_its_root ().
16573 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16574
16575 2010-04-24 Christian Franke <franke@computer.org>
16576
16577 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
16578 (kernel_img_LDFLAGS): Remove -static-libgcc.
16579
16580 2010-04-24 Christian Franke <franke@computer.org>
16581
16582 * configure.ac: Do not CHECK_BSS_START_SYMBOL
16583 and CHECK_END_SYMBOL if grub-emu is built.
16584 Unset TARGET_OBJ2ELF if grub-emu is built
16585 without module support.
16586
16587 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
16588
16589 Nilfs2 support.
16590
16591 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
16592 (grub_fstest_SOURCES): Likewise.
16593 (pkglib_MODULES): Add nilfs2.mod.
16594 (nilfs2_mod_SOURCES): New variable.
16595 (nilfs2_mod_CFLAGS): Likewise.
16596 (nilfs2_mod_LDFLAGS): Likewise.
16597 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16598 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16599 * fs/nilfs2.c: New file.
16600
16601 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
16602
16603 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
16604 is not supported.
16605
16606 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
16607
16608 Add grub-mkconfig support for NetBSD.
16609
16610 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
16611 * util/grub-mkconfig.in: export new NetBSD specific variables.
16612 * po/POTFILES-shell: added 10_netbsd.in.
16613 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
16614
16615 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
16616
16617 Fix emu build with grub-emu-pci and grub-emu-modules.
16618
16619 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
16620 functions.
16621 * include/grub/libpciaccess.h: New file.
16622 * conf/any-emu.rmk: Update kernel headers for emu build.
16623
16624 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16625
16626 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
16627
16628 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16629
16630 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
16631
16632 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16633
16634 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
16635 Retrieve chosen/bootpath if bootpath isn't hardcoded.
16636 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
16637 util/ieee1275/ofpath.c.
16638 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
16639 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
16640 * include/grub/sparc64/ieee1275/boot.h
16641 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
16642 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
16643 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
16644 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
16645 const char *.
16646 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
16647 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
16648 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
16649 install.
16650
16651 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16652
16653 * util/grub-mkconfig.in: Corrected two == equality tests.
16654 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
16655 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
16656 expect a number appended to it.
16657 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
16658 expects a number appended to it.
16659
16660 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16661
16662 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
16663
16664 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16665
16666 * util/hostdisk.c (make_device_name): Change to new partition naming.
16667
16668 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16669
16670 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
16671
16672 2010-04-17 Christian Franke <franke@computer.org>
16673
16674 * Makefile.in: Add missing localedir setting.
16675
16676 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
16677
16678 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
16679 mistake in r2156. Noticed by Anthony Fok.
16680
16681 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
16682 @localedir@.
16683 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
16684
16685 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
16686
16687 Fix a spurious, uninitialized variable warning.
16688
16689 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
16690 Initialize variable, shdr.
16691 (grub_freebsd_load_elfmodule): Likewise.
16692 (grub_freebsd_load_elf_meta): Likewise.
16693
16694 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
16695
16696 Fix for escaped dollar in double quoted strings.
16697
16698 * script/yylex.l: Updated flex rules.
16699 * conf/tests.rmk: Rule for new testcase.
16700 * tests/grub_script_dollar.in: New testcase.
16701
16702 2010-04-13 Carles Pina i Estany <carles@pina.cat>
16703 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
16704
16705 Enclose all translated strings in grub.cfg in single quotes, and
16706 escape them appropriately (Ubuntu bug #552921).
16707
16708 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
16709 * util/grub.d/10_hurd.in: Use it.
16710 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16711 * util/grub.d/10_linux.in (linux_entry): Likewise.
16712
16713 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16714
16715 Fix cygwin compilation.
16716
16717 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
16718 * include/grub/misc.h (__register_frame_info)
16719 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
16720 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16721 * kern/misc.c (__register_frame_info)
16722 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
16723 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16724
16725 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16726
16727 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
16728
16729 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16730
16731 Unify libgcc processing.
16732
16733 * Makefile.in (kernel_img_LDFLAGS): New variable.
16734 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
16735 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
16736 overwriting.
16737 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
16738 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
16739 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
16740 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
16741 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
16742 overwriting. Remove -lgcc and -static-libgcc
16743 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
16744 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16745 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16746 (kernel_img_LDFLAGS): Append instead of overwriting.
16747 Remove -lgcc and -static-libgcc
16748 * conf/sparc64-ieee1275.rmk: Likewise.
16749 * include/grub/powerpc/libgcc.h: Move to ...
16750 * include/grub/libgcc.h: .. this.
16751 * include/grub/libgcc.h: Don't export most of the function on x86.
16752 (__bswapsi2): New export.
16753 (__bswapdi2): Likewise.
16754 * include/grub/mips/libgcc.h: Removed.
16755 * include/grub/sparc64/libgcc.h: Likewise.
16756
16757 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16758
16759 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
16760 disk_info_msg (conflicts with gettexting into languages with cases).
16761
16762 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
16763
16764 Add grub-probe support for NetBSD.
16765
16766 * util/getroot.c (find_root_device): Convert block device to
16767 character device on NetBSD.
16768 * util/probe.c (probe): Require character device on NetBSD.
16769 * util/hostdisk.c: NetBSD specific headers.
16770 (configure_device_driver): new function to tune device driver
16771 parameters (currently only for NetBSD floppy driver).
16772 (grub_util_biosdisk_open): NetBSD specific code (get disk size
16773 via disklabel ioctl).
16774 (open_device): call configure_device_driver on NetBSD.
16775 (convert_system_partition_to_system_disk): NetBSD specific code.
16776 (device_is_wholedisk): Likewise.
16777 (grub_util_biosdisk_get_grub_dev): Likewise.
16778 (make_device_name): Fixed a typo in bsd_part_str.
16779 * configure.ac: check for opendisk() and getrawpartition() on
16780 NetBSD and set LIBUTIL.
16781 * Makefile.in: add LIBUTIL to LIBS.
16782
16783 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16784
16785 Documentation fix.
16786
16787 * util/grub-script-check.c: Better help message.
16788
16789 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16790
16791 Fix FreeBSD build.
16792
16793 * configure.ac: Flex version check.
16794 * conf/common.rmk: Add -Wno-error to sh.mod.
16795 * script/yylex.l: Remove all #pragma.
16796
16797 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16798
16799 * include/grub/util/misc.h (canonicalise_file_name): Add missing
16800 prototype.
16801 Reported by: Seth Goldberg.
16802
16803 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16804
16805 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
16806 Rename "module" to "module2".
16807 Reported by: Seth Goldberg.
16808
16809 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16810
16811 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
16812 EXPORT_FUNC.
16813 Reported by: Seth Goldberg.
16814
16815 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16816
16817 * lib/posix_wrap/locale.h: Add missing file.
16818 Reported by: Seth Goldberg.
16819
16820 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16821
16822 grub-emu module load support.
16823
16824 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
16825 NO_DYNAMIC_MODULES switched to this.
16826 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
16827 (CFLAGS): Likewise.
16828 * conf/any-emu.rmk: Generate symlist.
16829 (kernel_img_HEADERS): Add util/datetime.h.
16830 (kernel_img_HEADERS) [sdl]: Add sdl.h.
16831 (kernel_img_HEADERS) [libusb]: Add libusb.h.
16832 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
16833 kern/$(target_cpu)/cache.S.
16834 * configure.ac (grub-emu-modules): New option.
16835 * genmk.rb: Handle multiple source lists.
16836 * include/grub/sdl.h: New file.
16837 * include/grub/libusb.h: Likewise.
16838 * util/grub-emu.c (main): Hanle (host) root.
16839 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
16840 GRUB_ERR_UNKNOWN_DEVICE.
16841 * util/misc.c: Move mm functions to ...
16842 * util/mm.c: ... here. All users updated.
16843
16844 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16845
16846 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
16847 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
16848 missing files.
16849 (maintainer-clean): Remove libgcrypt-grub.
16850
16851 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16852
16853 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
16854
16855 2010-04-09 EFI Coder <eficoder@hotmail.com>
16856
16857 * normal/menu_text.c (print_message): Clean up the message and show
16858 the Fn information when on EFI
16859 * term/efi/console.c (grub_console_checkkey): Add F4 support.
16860
16861 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16862
16863 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
16864 All users updated.
16865 * normal/crypto.c (read_crypto_list): Likewise.
16866 * normal/dyncmd.c (read_command_list): Likewise.
16867 * normal/term.c (read_terminal_list): Likewise.
16868 * normal/main.c (read_lists): Use explicit prefix.
16869 (read_lists_hook): Use read_lists.
16870 (grub_normal_execute): Likewise.
16871
16872 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16873
16874 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
16875 Reported by: Thomas Schmitt.
16876 Add -no-emul-boot to grub-mkisofs parameters.
16877
16878 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16879
16880 * font/font.c: Indented.
16881
16882 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16883
16884 Elif support to GRUB script (by Deepak Vankadaru).
16885
16886 * tests/grub_script_if.in: New testcase.
16887 * conf/tests.rmk: Rule for new testcase.
16888 * script/parser.y: Grammar rules for elif.
16889
16890 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16891
16892 While and until loops support to GRUB script.
16893
16894 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
16895 (grub_script_create_cmdwhile): New function prototype.
16896 (grub_script_execute_cmdwhile): New function prototype.
16897 * script/execute.c (grub_script_execute_cmdwhile): New function.
16898 * script/parser.y (command): New commands.
16899 (whilecmd): New grammar rule.
16900 (untilcmd): New grammar rule.
16901 * script/script.c (grub_script_create_cmdwhile): New function.
16902 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
16903 function.
16904
16905 * tests/grub_script_while1.in: New testcase.
16906 * conf/tests.rmk: Rule for new testcase.
16907
16908 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
16911 as *.jpg.
16912
16913 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
16914
16915 GRUB_BACKGROUND support.
16916
16917 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
16918 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
16919
16920 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 Load fonts and modules for gfxmenu in grub-mkconfig.
16923 Idea by: Mario Vazquez
16924
16925 * util/grub.d/00_header.in: Load pf2 and image modules.
16926
16927 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16928
16929 grub-mkconfig multiple terminal support.
16930
16931 * util/grub-mkconfig.in: Handle multiple terminals correctly.
16932 * util/grub.d/00_header.in: Likewise.
16933
16934 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16935
16936 * Makefile.in: Specify files explicitly instead of using $< and $@ since
16937 we use cd $(srcdir).
16938
16939 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
16940
16941 * util/grub.d/10_linux.in: Only use the first word of
16942 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
16943 spaces in GRUB_DISTRIBUTOR.
16944 * util/grub.d/10_kfreebsd.in: Likewise.
16945 * util/grub.d/10_hurd.in: Likewise.
16946
16947 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
16948
16949 Fix unit testing framework for Qemu 0.12.
16950
16951 * tests/util/grub-shell.in: Remove -serial stdio option.
16952
16953 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16954
16955 POSIX header file wrappers.
16956
16957 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
16958 equivalents.
16959 * lib/posix_wrap/ctype.h: Likewise.
16960 * lib/posix_wrap/errno.h: Likewise.
16961 * lib/posix_wrap/langinfo.h: Likewise.
16962 * lib/posix_wrap/limits.h: Likewise.
16963 * lib/posix_wrap/localcharset.h: Likewise.
16964 * lib/posix_wrap/stdint.h: Likewise.
16965 * lib/posix_wrap/stdio.h: Likewise.
16966 * lib/posix_wrap/stdlib.h: Likewise.
16967 * lib/posix_wrap/string.h: Likewise.
16968 * lib/posix_wrap/sys/types.h: Likewise.
16969 * lib/posix_wrap/unistd.h: Likewise.
16970 * lib/posix_wrap/wchar.h: Likewise.
16971 * lib/posix_wrap/wctype.h: Likewise.
16972 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
16973 (grub_script.yy.h): Likewise.
16974 * script/yylex.l: Remove POSIX emulation #defines.
16975 * Makefile.in (POSIX_CFLAGS): New variable.
16976 (GNULIB_UTIL_CFLAGS): Likewise.
16977
16978 Regexp support.
16979
16980 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
16981 (regexp_mod_SOURCES): New variable.
16982 (regexp_mod_CFLAGS): Likewise.
16983 (regexp_mod_LDFLAGS): Likewise.
16984 * commands/regexp.c: New file.
16985 * gnulib/regcomp.c: New file. Imported from gnulib.
16986 * gnulib/regex.c: Likewise.
16987 * gnulib/regex_internal.c: Likewise.
16988 * gnulib/regex_internal.h: Likewise.
16989 * gnulib/regexec.c: Likewise.
16990 * gnulib/regex.h: Likewise.
16991
16992 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16993
16994 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
16995 unsupported video mode types.
16996
16997 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16998
16999 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
17000
17001 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17002
17003 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
17004 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
17005
17006 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
17007
17008 Remove unused grub_vga_get_font.
17009
17010 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
17011 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
17012
17013 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17014
17015 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
17016 * include/grub/misc.h: Likewise.
17017
17018 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17019
17020 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
17021 for which failure is fatal.
17022
17023 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17024
17025 * util/grub-install.in: Use mkdir -p to create grub directory.
17026 * util/i386/efi/grub-install.in: Likewise.
17027 * util/ieee1275/grub-install.in: Likewise.
17028
17029 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17030
17031 * Makefile.in (LEX): new variable.
17032
17033 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17034
17035 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
17036 `=' and added double quotes on operands of this equality test.
17037
17038 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
17039
17040 * Makefile.in (uninstall): Remove a leftover debug echo.
17041 Reported by: Grégoire Sutre
17042
17043 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
17044
17045 MIPS multiboot2 support.
17046
17047 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
17048 (multiboot2_mod_SOURCES): New variable.
17049 (multiboot2_mod_CFLAGS): Likewise.
17050 (multiboot2_mod_LDFLAGS): Likewise.
17051 (multiboot2_mod_ASFLAGS): Likewise.
17052 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
17053 definition.
17054 (MULTIBOOT_ENTRY_REGISTER): Likewise.
17055 (MULTIBOOT_MBI_REGISTER): Likewise.
17056 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
17057 (MULTIBOOT_ELF32_MACHINE): Likewise.
17058 (MULTIBOOT_ELF64_MACHINE): Likewise.
17059 * include/grub/mips/multiboot.h: New file.
17060 * include/grub/video.h (grub_video_driver_id): New type
17061 GRUB_VIDEO_DRIVER_SM712.
17062 (grub_video_get_info_and_fini): Export.
17063 (grub_video_get_palette): Likewise.
17064 (grub_video_get_driver_id): Likewise.
17065 * include/multiboot2.h: Resynced with spec.
17066 * loader/i386/multiboot.c: Moved from here ...
17067 * loader/multiboot.c: ... here. All users updated.
17068 (grub_multiboot_boot): Use platform-specific macros.
17069 * loader/i386/multiboot_elfxx.c: Moved from here ...
17070 * loader/multiboot_elfxx.c: ... here. All users updated.
17071 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
17072 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
17073 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
17074
17075 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17076
17077 Import gnulib argp module.
17078
17079 * gnulib/argp-ba.c: New file.
17080 * gnulib/argp-eexst.c: Likewise.
17081 * gnulib/argp-fmtstream.c: Likewise.
17082 * gnulib/argp-fmtstream.h: Likewise.
17083 * gnulib/argp-fs-xinl.c: Likewise.
17084 * gnulib/argp-help.c: Likewise.
17085 * gnulib/argp-namefrob.h: Likewise.
17086 * gnulib/argp-parse.c: Likewise.
17087 * gnulib/argp-pin.c: Likewise.
17088 * gnulib/argp-pv.c: Likewise.
17089 * gnulib/argp-pvh.c: Likewise.
17090 * gnulib/argp-version-etc.c: Likewise.
17091 * gnulib/argp-version-etc.h: Likewise.
17092 * gnulib/argp-xinl.c: Likewise.
17093 * gnulib/argp.h: Likewise.
17094
17095 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17096
17097 * kern/device.c (grub_device_iterate): Clear errors after failed
17098 opening device.
17099
17100 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17101
17102 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
17103 returned by firmware.
17104
17105 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17106
17107 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
17108 compilation on coreboot and qemu
17109
17110 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
17111
17112 * include/multiboot2.h: Resync with spec.
17113
17114 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
17115
17116 Multiboot2 tag support
17117
17118 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
17119 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
17120 Remove loader/multiboot_loader.c.
17121 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
17122 (grub_multiboot2_real_boot): Likewise.
17123 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
17124 (grub_get_multiboot_mmap_count): New proto.
17125 (grub_fill_multiboot_mmap): Likewise.
17126 (grub_multiboot_set_video_mode): Likewise.
17127 (grub_multiboot_set_console): Likewise.
17128 (grub_multiboot_load): Likewise.
17129 (grub_multiboot_load_elf): Likewise.
17130 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
17131 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
17132 * include/multiboot.h: Resynced with specification.
17133 * include/multiboot2.h: Resynced with specification.
17134 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
17135 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
17136 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
17137 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
17138 users updated.
17139 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
17140 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
17141 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
17142 Removed.
17143 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
17144 Moved from here...
17145 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
17146 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17147 Moved from here...
17148 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
17149 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
17150 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
17151 All users updated.
17152 * loader/i386/multiboot_mbi2.c: New file.
17153
17154 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
17155
17156 Resync with gnulib.
17157
17158 * Makefile.in (GNULIB_CFLAGS): New variable.
17159 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
17160 (grub_script_check_CFLAGS): New variable.
17161 * gnulib/alloca.h: Resync with gnulib.
17162 * gnulib/error.c: Likewise.
17163 * gnulib/error.h: Likewise.
17164 * gnulib/fnmatch.c: Likewise.
17165 * gnulib/fnmatch_loop.c: Likewise.
17166 * gnulib/getdelim.c: Likewise.
17167 * gnulib/getline.c: Likewise.
17168 * gnulib/getopt.c: Likewise.
17169 * gnulib/getopt1.c: Likewise.
17170 * gnulib/getopt_int.h: Likewise.
17171 * gnulib/gettext.h: Likewise.
17172 * gnulib/progname.c: Likewise.
17173 * gnulib/progname.h: Likewise.
17174
17175 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
17176
17177 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
17178 which is the case with --disabled-nls.
17179
17180 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
17181 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
17182 * util/misc.c: Likewise.
17183 * util/mkisofs/mkisofs.c: Likewise.
17184 * util/mkisofs/mkisofs.h: Likewise.
17185
17186 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
17187
17188 Simplify Apple CC support.
17189
17190 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
17191 Add 0 byte at the end not to have a symbol with empty target.
17192 * mmap/i386/pc/mmap_helper.S: Likewise.
17193 * genmk.rb: Ignore errors 2030 and 2050.
17194 * kern/i386/pc/startup.S: Use LOCAL when possible.
17195
17196 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
17197
17198 Testcase and the fix for final semicolon on cmdline.
17199
17200 * tests/grub_script_final_semicolon.in: New testcase.
17201 * conf/tests.rmk: Rules for the new testcase.
17202 * script/parser.y: Grammar fix.
17203
17204 2010-03-26 BVK Chaitanya <bvk@localhost>
17205
17206 Blank lines testcase for GRUB script.
17207
17208 * tests/grub_script_blanklines.in: New testcase.
17209 * conf/tests.rmk: Rules for the new testcase.
17210
17211 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17212
17213 Don't use __FILE__.
17214
17215 * genmk.rb: Add -DGRUB_FILE to all C targets.
17216 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
17217 * include/grub/list.h: Likewise.
17218 * include/grub/misc.h: Likewise.
17219 * include/grub/mm.h: Likewise.
17220 * include/grub/test.h: Likewise.
17221 * kern/mm.c: Likewise.
17222 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17223
17224 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17225
17226 Sunpc partitions support.
17227
17228 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
17229 (grub_fstest_SOURCES): Likewise.
17230 (pkglib_MODULES): Add part_sunpc.mod.
17231 (part_sunpc_mod_SOURCES): New variable.
17232 (part_sunpc_mod_CFLAGS): Likewise.
17233 (part_sunpc_mod_LDFLAGS): Likewise.
17234 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
17235 * partmap/sunpc.c: New file.
17236
17237 2010-03-26 BVK Chaitanya <bvk@localhost>
17238
17239 For loop support to GRUB script.
17240
17241 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
17242 (grub_script_create_cmdfor): New function prototype.
17243 (grub_script_execute_cmdfor): New function prototype.
17244 * script/execute.c (grub_script_execute_cmdfor): New function.
17245 * script/parser.y (command): New for command.
17246 (forcmd): New grammar rule.
17247 * script/script.c (grub_script_create_cmdfor): New function.
17248 * util/grub-script-check.c (grub_script_execute_cmdfor): New
17249 function.
17250 * tests/grub_script_for1.in: New testcase.
17251 * conf/tests.rmk: Rules for new testcase.
17252
17253 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17254
17255 Nested partitions
17256
17257 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
17258 'partition' is NULL, grub_partition_get_start already does that.
17259 * commands/loadenv.c (check_blocklists): Likewise.
17260 (write_blocklists): Likewise.
17261 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
17262 (grub_fstest_SOURCES): Likewise.
17263 (pkglib_MODULES): Add part_bsd.mod.
17264 (part_bsd_mod_SOURCES): New variable.
17265 (part_bsd_mod_CFLAGS): Likewise.
17266 (part_bsd_mod_LDFLAGS): Likewise.
17267 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
17268 (grub_emu_SOURCES): Likewise.
17269 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17270 * include/grub/bsdlabel.h: New file.
17271 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
17272 'get_name'.
17273 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
17274 (grub_partition_map_list): New variable.
17275 (grub_partition_map_register): Inline.
17276 (grub_partition_map_unregister): Likewise.
17277 (FOR_PARTITION_MAPS): New macro.
17278 (grub_partition_map_iterate): Removed.
17279 (grub_partition_get_start): Handle nested partitions.
17280 * include/grub/msdos_partition.h: Remove bsd-related entries.
17281 (grub_pc_partition): Remove.
17282 * kern/disk.c (grub_disk_close): Free partition data.
17283 (grub_disk_adjust_range): Handle nested partitions.
17284 * kern/partition.c (grub_partition_map_probe): New function.
17285 (grub_partition_probe): Parse name to number, handle subpartitions.
17286 (get_partmap): New function.
17287 (grub_partition_iterate): Handle subpartitions.
17288 (grub_partition_get_name): Likewise.
17289 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
17290 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
17291 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
17292 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
17293 Set 'number'.
17294 (acorn_partition_map_probe): Remove.
17295 (acorn_partition_map_get_name): Likewise.
17296 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
17297 Set 'number'.
17298 Set 'index' to 0 since there can be only one partition entry per sector.
17299 (amiga_partition_map_probe): Remove.
17300 (amiga_partition_map_get_name): Likewise.
17301 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
17302 Set 'number'.
17303 Set 'offset' and 'index' to real positions of partitions.
17304 (apple_partition_map_probe): Remove.
17305 (apple_partition_map_get_name): Likewise.
17306 * partmap/bsdlabel.c: New file.
17307 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
17308 Set 'number'.
17309 Allocate 'data' so it can be correctly freed.
17310 Set 'index' to offset inside sector.
17311 (gpt_partition_map_probe): Remove.
17312 (gpt_partition_map_get_name): Likewise.
17313 * partmap/msdos.c (grub_partition_parse): Remove.
17314 (pc_partition_map_iterate): Don't force raw access.
17315 Set 'number'.
17316 Make 'ext_offset' a local variable.
17317 (pc_partition_map_probe): Remove.
17318 (pc_partition_map_get_name): Remove.
17319 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
17320 Set 'number'.
17321 (sun_partition_map_probe): Remove.
17322 (sun_partition_map_get_name): Likewise.
17323 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
17324 (grub_pcpart_type): Likewise.
17325 * util/hostdisk.c (open_device): Handle new numbering scheme.
17326 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
17327 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
17328 * util/grub-probe.c (probe_partmap): Handle nested paritions.
17329 * util/grub-install.in: Insert all subpartition modules.
17330 * util/ieee1275/grub-install.in: Likewise.
17331
17332 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
17333
17334 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
17335 grammar.
17336
17337 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
17338
17339 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
17340
17341 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
17342
17343 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
17344 match where 'make install' puts them.
17345 * util/i386/efi/grub-install.in: Likewise.
17346
17347 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
17348
17349 * .bzrignore: Add gentrigtables, grub-script-check,
17350 grub_script_check_init.c, grub_script_check_init.h, and
17351 trigtables.c.
17352
17353 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
17354
17355 * kern/parser.c: Indented.
17356
17357 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17358
17359 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
17360
17361 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17362
17363 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
17364 alpha_mask_size == 0 case.
17365
17366 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
17367
17368 GRUB shell lexer and parser improvements.
17369
17370 * conf/any-emu.rmk: Build rule updates.
17371 * conf/common.rmk: Likewise.
17372 * conf/i386-coreboot.rmk: Likewise.
17373 * conf/i386-efi.rmk: Likewise.
17374 * conf/i386-ieee1275.rmk: Likewise.
17375 * conf/i386-pc.rmk: Likewise.
17376 * conf/powerpc-ieee1275.rmk: Likewise.
17377 * conf/x86_64-efi.rmk: Likewise.
17378
17379 * configure.ac: Configure check for flex.
17380
17381 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
17382 types.
17383 (grub_lexer_param): Struct member updates.
17384 (grub_parser_param): Likewise.
17385 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
17386 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
17387 (grub_script_lexer_init): Prototype update.
17388 (grub_script_lexer_record_start): Likewise.
17389 (grub_script_lexer_record_stop): Likewise.
17390 (grub_script_lexer_yywrap): New function prototype.
17391 (grub_script_lexer_fini): Likewise.
17392 (grub_script_execute_argument_to_string): Removed by...
17393 (grub_script_execute_argument_to_argv): ...better version.
17394
17395 * script/execute.c (ROUND_UPTO): New macro.
17396 (grub_script_execute_cmdline): Out of memory fixes.
17397 (grub_script_execute_menuentry): Likewise.
17398 (grub_script_execute_argument_to_string): Removed. Update all
17399 users by...
17400 (grub_script_execute_argument_to_argv): ...better version.
17401 * script/function.c (grub_script_function_create): Use
17402 grub_script_execute_argument_to_argv instead of
17403 grub_script_execute_argument_to_string.
17404
17405 * script/lexer.c (check_varstate): Removed.
17406 (check_textstate): Removed.
17407 (grub_script_lexer_record_start): Likewise.
17408 (grub_script_lexer_record_stop): Likewise.
17409 (recordchar): Replaced with...
17410 (grub_script_lexer_record): ...new function.
17411 (nextchar): Removed.
17412 (grub_script_lexer_init): Rewritten.
17413 (grub_script_yylex): Rewritten.
17414 (append_newline): New function.
17415 (grub_script_lexer_yywrap): New function.
17416 (grub_script_lexer_fini): New function.
17417 (grub_script_yyerror): Sets error flag.
17418
17419 * script/yylex.l: New file.
17420 (grub_lexer_yyfree): Wrapper for flex yyffre.
17421 (grub_lexer_yyalloc): Likewise.
17422 (grub_lexer_yyrealloc): Likewise.
17423 * script/parser.y: Refactored.
17424
17425 * script/script.c (grub_script_arg_add): Out of memory fixes.
17426 (grub_script_add_arglist): Likewise.
17427 (grub_script_create_cmdline): Likewise.
17428 (grub_script_create_cmdmenu): Likewise.
17429 (grub_script_add_cmd): Likewise.
17430 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
17431 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
17432 unnecessary code.
17433
17434 * tests/grub_script_echo1.in: New testcase.
17435 * tests/grub_script_vars1.in: New testcase.
17436 * tests/grub_script_echo_keywords.in: New testcase.
17437
17438 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17439
17440 Remove some redundancy in build system.
17441
17442 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
17443 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
17444 (TARGET_LDFLAGS): Add -nostdlib.
17445 (TARGET_IMG_LDFLAGS): Likewise.
17446 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
17447 anything since mmap isn't available.
17448 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
17449 Add util/time.c.
17450 (pkglib_MODULES): Remove reboot.mod.
17451 (reboot_mod_SOURCES): Removed.
17452 (reboot_mod_CFLAGS): Likewise.
17453 (reboot_mod_LDFLAGS): Likewise.
17454 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
17455 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
17456 (DEFSYMFILES): Add kernel_syms.lst.
17457 (kernel_img_HEADERS): Add common headers.
17458 (symlist.c): New target.
17459 (kernel_syms.lst): Likewise.
17460 (pkglib_MODULES): Add memdisk.mod.
17461 (memdisk_mod_SOURCES): New variable.
17462 (memdisk_mod_CFLAGS): Likewise.
17463 (memdisk_mod_LDFLAGS): Likewise.
17464 (pkglib_MODULES): Add reboot.mod.
17465 (reboot_mod_SOURCES): New variable.
17466 (reboot_mod_CFLAGS): Likewise.
17467 (reboot_mod_LDFLAGS): Likewise.
17468 (pkglib_MODULES): Add date.mod.
17469 (date_mod_SOURCES): New variable.
17470 (date_mod_CFLAGS): Likewise.
17471 (date_mod_LDFLAGS): Likewise.
17472 (pkglib_MODULES): Add datehook.mod.
17473 (datehook_mod_SOURCES): New variable.
17474 (datehook_mod_CFLAGS): Likewise.
17475 (datehook_mod_LDFLAGS): Likewise.
17476 (pkglib_MODULES): Add lsmmap.mod.
17477 (lsmmap_mod_SOURCES): New variable.
17478 (lsmmap_mod_CFLAGS): Likewise.
17479 (lsmmap_mod_LDFLAGS): Likewise.
17480 (pkglib_MODULES): Add boot.mod.
17481 (boot_mod_SOURCES): New variable.
17482 (boot_mod_CFLAGS): Likewise.
17483 (boot_mod_LDFLAGS): Likewise.
17484 * conf/i386-coreboot.rmk: Removed redundant parts.
17485 * conf/i386-ieee1275.rmk: Likewise.
17486 * conf/i386-pc.rmk: Likewise.
17487 * conf/mips-yeeloong.rmk: Likewise.
17488 * conf/mips.rmk: Likewise.
17489 * conf/powerpc-ieee1275.rmk: Likewise.
17490 * conf/sparc64-ieee1275.rmk: Likewise.
17491 * conf/x86_64-efi.rmk: Likewise.
17492 * conf/i386-coreboot.rmk: Moved qemu parts ..
17493 * conf/i386-qemu.rmk: ... here
17494 * conf/i386-efi.rmk: Moved common parts to...
17495 * conf/x86-efi.rmk: ... here.
17496 * conf/i386.rmk: Added modules common to all x86 variants.
17497 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
17498 * disk/memdisk.c: Remove grub/machine/kernel.h.
17499 * gensymlist.sh.in: Include symbol.h.
17500 * hook/datehook.c: Correct module name.
17501 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
17502 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
17503 * include/grub/i386/efi/serial.h: New file.
17504 * include/grub/x86_64/efi/serial.h: Likewise.
17505 * util/time.c: Likewise.
17506 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
17507
17508 2010-03-14 Colin King <colin.king@ubuntu.com>
17509 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17510
17511 Shrink the pre-partition-table part of boot.img by eight bytes.
17512
17513 * boot/i386/pc/boot.S (ERR): New macro.
17514 (chs_mode): Use ERR.
17515 (geometry_error): Likewise.
17516 (hd_probe_error): Remove. This is only used once, so we wrwite
17517 it inline instead.
17518 (read_error): Instead of printing read_error_string, just set up
17519 %si and fall through to ...
17520 (error_message): ... this new function, also used by ERR.
17521
17522 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17523
17524 Speed up consecutive hostdisk operations on the same device.
17525
17526 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
17527 (grub_util_biosdisk_open): Initialise disk->data.
17528 (struct linux_partition_cache): New structure.
17529 (linux_find_partition): Cache partition start positions; these are
17530 expensive to compute on every read and write.
17531 (open_device): Cache open file descriptor in disk->data, so that we
17532 don't have to reopen it and flush the buffer cache for consecutive
17533 operations on the same device.
17534 (grub_util_biosdisk_close): New function.
17535 (grub_util_biosdisk_dev): Set `close' member.
17536
17537 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
17538 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
17539 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17540 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
17541 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
17542
17543 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17544
17545 Compile parts of grub-emu as modules.
17546
17547 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
17548 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
17549 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
17550 (all-local): Add $(GRUB_EMU).
17551 (install-local): Install $(GRUB_EMU).
17552 (uninstall): Uninstall $(GRUB_EMU).
17553 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
17554 * kern/dl.c: Likewise.
17555 * commands/sleep.c: Not include machine/time.h.
17556 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
17557 (COMMON_CFLAGS): Likewise.
17558 (sbin_UTILITIES): Remove grub-emu.
17559 (grub_emu_SOURCES): Removed.
17560 (kernel_img_RELOCATABLE): New variable.
17561 (pkglib_PROGRAMS): Add kernel.img.
17562 (kernel_img_SOURCES): New variable
17563 (kernel_img_CFLAGS): Likewise.
17564 (kernel_img_LDFLAGS): Likewise.
17565 (TARGET_NO_STRIP): Likewise.
17566 (TARGET_NO_DYNAMIC_MODULES): Likewise.
17567 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
17568 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
17569 (grub-emu): New target.
17570 (GRUB_EMU): New variable.
17571 * configure.ac: Whitelist -emu as possible x86_64 architecture.
17572 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
17573 * loader/xnu.c: Likewise.
17574 * include/grub/pci.h: Likewise.
17575 * genemuinit.sh: New file.
17576 * genemuinitheader.sh: Likewise.
17577 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
17578 Support TARGET_NO_DYNAMIC_MODULES.
17579 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
17580 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
17581 * disk/loopback.c: Likewise.
17582 * font/font_cmd.c: Likewise.
17583 * partmap/acorn.c: Likewise.
17584 * partmap/amiga.c: Likewise.
17585 * partmap/apple.c: Likewise.
17586 * partmap/gpt.c: Likewise.
17587 * partmap/msdos.c: Likewise.
17588 * partmap/sun.c: Likewise.
17589 * parttool/msdospart.c: Likewise.
17590 * term/gfxterm.c: Likewise.
17591 * video/bitmap.c: Likewise.
17592 * video/readers/jpeg.c: Likewise.
17593 * video/readers/png.c: Likewise.
17594 * video/readers/tga.c: Likewise.
17595 * video/video.c: Likewise.
17596 * util/grub-emu.c (read_command_list): Removed.
17597 (main): Don't call util_init_nls.
17598 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
17599 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
17600
17601 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17602
17603 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
17604 date.mod, datehook.mod.
17605 (datetime_mod_SOURCES): New variable.
17606 (datetime_mod_CFLAGS): Likewise.
17607 (datetime_mod_LDFLAGS): Likewise.
17608 (date_mod_SOURCES): Likewise.
17609 (date_mod_CFLAGS): Likewise.
17610 (date_mod_LDFLAGS): Likewise.
17611 (datehook_mod_SOURCES): Likewise.
17612 (datehook_mod_CFLAGS): Likewise.
17613 (datehook_mod_LDFLAGS): Likewise.
17614 * conf/sparc64-ieee1275.rmk: Likewise.
17615 * lib/ieee1275/datetime.c: New file.
17616
17617 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17618
17619 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
17620 (ieee1275_fb_mod_SOURCES): New variable.
17621 (ieee1275_fb_mod_CFLAGS): Likewise.
17622 (ieee1275_fb_mod_LDFLAGS): Likewise.
17623 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
17624 New proto.
17625 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
17626 (HEAP_MAX_ADDR): Likewise.
17627 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
17628 type.
17629 Correct stop condition.
17630 (grub_ieee1275_devices_iterate): New function.
17631 * video/ieee1275.c: New file.
17632
17633 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17634
17635 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
17636
17637 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
17638 as scratch.
17639 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
17640 SCRATCH_PAD_DISKBOOT as scratch.
17641 (bootit): Pass Openfirmware pointer in %o4.
17642 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
17643 of 0x200000.
17644 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
17645 with util/grub-mkrawimage.c.
17646 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
17647 * include/grub/aout.h (AOUT_MID_SUN): New definition.
17648 (grub_aout_get_type) [GRUB_UTIL]: Removed.
17649 (grub_aout_load) [GRUB_UTIL]: Likewise.
17650 * include/grub/kernel.h (grub_modules_get_end): New proto.
17651 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
17652 (SCRATCH_PAD_BOOT): New definition.
17653 (SCRATCH_PAD_DISKBOOT): Likewise.
17654 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
17655 * include/grub/sparc64/ieee1275/ieee1275.h
17656 (grub_ieee1275_original_stack): New variable
17657 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17658 New definition
17659 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
17660 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
17661 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
17662 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
17663 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
17664 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
17665 (grub_platform_image_format_t): New type.
17666 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
17667 * kern/main.c (grub_modules_get_end)
17668 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
17669 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
17670 (codestart): Switch stacks.
17671 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
17672 variable.
17673 (grub_heap_init): Use grub_modules_get_end.
17674 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
17675 stack.
17676 * util/grub-mkrawimage.c (generate_image): Support sparc64.
17677 (main): Likewise.
17678 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
17679
17680 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
17681
17682 * util/grub-mkrescue.in: Base ISO UUID on UTC.
17683
17684 2010-03-08 Matt Kraai <kraai@ftbfs.org>
17685
17686 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
17687 bug #559005).
17688
17689 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
17690
17691 * genmoddep.awk: Output all missing symbols and not only first.
17692
17693 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17694
17695 * NEWS: Put the date of 1.98 release.
17696
17697 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17698
17699 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
17700 ft2build.h.
17701
17702 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17703
17704 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
17705 completition in the middle of string.
17706
17707 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17708
17709 * util/grub-mkrescue.in: Use mktemp with explicit template.
17710
17711 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17712
17713 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
17714
17715 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17716
17717 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
17718 right pointer.
17719
17720 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17721
17722 Fix FreeBSD compilation.
17723
17724 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
17725 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
17726
17727 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17728
17729 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
17730
17731 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17732
17733 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
17734
17735 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17736
17737 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
17738
17739 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
17740
17741 Support relative image path in theme file.
17742
17743 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
17744 (image_set_property): Handle theme_dir and relative path.
17745
17746 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17747
17748 * configure.ac: Alias amd64 to x86_64.
17749
17750 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17751
17752 * NEWS: mention multiboot on EFI.
17753
17754 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17755
17756 * kern/main.c (grub_load_modules): Handle errors from init functions of
17757 embeded modules.
17758
17759 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17760
17761 * normal/autofs.c (autoload_fs_module): Handle errors.
17762
17763 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17764
17765 Disable linux.mod on qemu-mips since it's not functional and leads
17766 to compilation failure.
17767
17768 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
17769 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
17770 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
17771 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
17772 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
17773 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
17774 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
17775 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
17776 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
17777 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
17778 Reported by: BVK Chaitanya
17779
17780 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
17781
17782 * INSTALL: Add gettext as a dependency and add qemu to a new section
17783 "Prerequisites for make-check".
17784
17785 2010-03-04 Christian Franke <franke@computer.org>
17786
17787 * util/grub-pe2elf.c: Add missing include "progname.h".
17788
17789 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17790
17791 * normal/crypto.c (read_crypto_list): Fix a typo.
17792 Reported by: Seth Goldberg.
17793
17794 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17795
17796 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
17797 Reported by: Seth Goldberg.
17798
17799 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17800
17801 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
17802 ascii.bitmaps.
17803
17804 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17805
17806 * genmk.rb: Remove terminal*.lst in make clean.
17807 Reported by: Seth Goldberg.
17808
17809 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17810
17811 * util/i386/efi/grub-install.in: Copy gettext files.
17812
17813 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
17816
17817 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17818
17819 Wait for user entry basing on presence of output rather than on errors.
17820
17821 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
17822 (grub_install_newline_hook): Likewise.
17823 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
17824 * normal/menu.c (show_menu): Check line_counter to determine presence
17825 of output.
17826 * normal/term.c (grub_normal_line_counter): New variable.
17827 (grub_normal_get_line_counter): New function.
17828 (grub_install_newline_hook): Likewise.
17829
17830 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17831
17832 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
17833
17834 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17835
17836 * configure.ac: Update version to 1.98.
17837
17838 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
17839
17840 * util/grub.d/10_linux.in (linux_entry): Don't default to
17841 gfxpayload=keep if Linux doesn't support video handover.
17842
17843 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
17844
17845 Don't compile video modules on yeeloong since video subsystem is part
17846 of kernel.
17847
17848 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
17849 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
17850 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
17851 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
17852 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
17853 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
17854 * include/grub/bitmap_scale.h: Likewise.
17855 * include/grub/bufio.h: Likewise.
17856 * include/grub/font.h: Likewise.
17857 * include/grub/gfxterm.h: Likewise.
17858 * include/grub/video.h: Likewise.
17859 * include/grub/vbe.h: Don't include video_fb.h.
17860 * video/i386/pc/vbe.c: Include video_fb.h.
17861 * commands/i386/pc/vbetest.c: Include video.h.
17862
17863 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
17864
17865 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
17866 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
17867 default entry if GRUB_SAVEDEFAULT=true. This allows using
17868 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
17869 saving a new default on every boot.
17870
17871 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17872
17873 * normal/crypto.c (read_crypto_list): Fix a memory leak.
17874 * normal/term.c (read_terminal_list): Likewise.
17875 * normal/main.c (grub_normal_init_page): Likewise.
17876 (grub_normal_read_line_real): Likewise.
17877
17878 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17879
17880 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
17881 memory leak.
17882 Reported by: Seth Goldberg.
17883
17884 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
17885
17886 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
17887 duplicate declaration of `start'.
17888
17889 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17890
17891 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
17892 filename.
17893 Reported by: Georgy Buranov
17894
17895 2010-02-20 Carles Pina i Estany <carles@pina.cat>
17896
17897 * util/grub-mkrawimage.c (usage): Change string formatting to
17898 improve gettext.
17899
17900 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17901
17902 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
17903 backspace keys.
17904
17905 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17906
17907 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
17908 Reported by: Michael Suchanek.
17909
17910 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
17911
17912 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
17913 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
17914
17915 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
17916
17917 Remove any reference to non-free fonts.
17918
17919 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
17920 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
17921 uses non-free components.
17922 * font/font.c (grub_font_get_name): Remove example name.
17923 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
17924 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17925 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
17926 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
17927
17928 2010-02-16 Georgy Buranov <gburanov@gmail.com>
17929
17930 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
17931
17932 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17933
17934 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
17935 Double divisor.
17936 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
17937 features.
17938 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
17939
17940 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 * gensymlist.sh.in: Use TARGET_CC instead of CC.
17943
17944 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17945
17946 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
17947 * docs/grub.texi (Command-line and menu entry commands): Document play
17948 command.
17949
17950 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17951
17952 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
17953 parse arguments as inline tempo and notes. Move code for playing notes
17954 to...
17955 (play): ... new function.
17956
17957 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17958
17959 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
17960 grub_uint16_t instead of short.
17961 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
17962 disk from little endian to cpu endianness.
17963
17964 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
17965
17966 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
17967 GRUB_TICKS_PER_SECOND instead of 120.
17968
17969 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17970
17971 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
17972 escape sequence after \e.
17973
17974 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17975
17976 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
17977 non-ASCII characters.
17978
17979 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17980
17981 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
17982 set root in single quotes to prevent \, from being unescaped.
17983
17984 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17985
17986 Prevent unknown commands from stopping menuentry execution.
17987
17988 * script/execute.c (grub_script_execute_cmdline): Print error after
17989 unknown command.
17990
17991 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17992
17993 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
17994 Reported by: Pavel Pisa.
17995
17996 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17997
17998 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
17999
18000 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18001
18002 Merge grub_ieee1275_map_physical into grub_map and rename to
18003 grub_ieee1275_map
18004
18005 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
18006 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
18007 Remove.
18008 * kern/ieee1275/openfw.c (grub_map): Rename to ...
18009 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
18010 necessary.
18011 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
18012
18013 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18014
18015 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
18016 opening and not after.
18017
18018 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18019
18020 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
18021 constants.
18022
18023 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18024
18025 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
18026 (alloc_phys): Use ALIGN_UP instead of align_addr.
18027
18028 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18029
18030 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
18031
18032 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18033
18034 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
18035
18036 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18037
18038 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
18039 verbose dprintf.
18040
18041 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18042
18043 Fix over-4GiB seek on sparc64.
18044
18045 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
18046 Replace pos_i and pos_lo with pos. All users updated.
18047 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
18048 New constant.
18049 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
18050 Likewise.
18051 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
18052 and pos_lo.
18053
18054 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18055
18056 * util/grub-mkrawimage.c (main): Call set_program_name.
18057
18058 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18059
18060 Properly align 64-bit targets.
18061
18062 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
18063 (generate_image): Use ALIGN_ADDR.
18064
18065 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18066
18067 Properly create cross-endian images.
18068
18069 * include/grub/types.h (grub_host_to_target_addr): New macro
18070 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
18071
18072 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
18075
18076 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
18079
18080 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
18081 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
18082 (grub_linux_boot): Divide by 64K when on VESA.
18083
18084 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18085
18086 Support GRUB_GFXPAYLOAD_LINUX.
18087
18088 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
18089 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
18090
18091 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18092
18093 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
18094 to show messages instead of discarding them.
18095 Process errors after executing command and not before. Keep old method
18096 too as precaution.
18097
18098 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
18099
18100 * configure.ac: Check for ft2build.h.
18101
18102 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18103
18104 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
18105
18106 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18107
18108 * genkernsyms.sh.in: Use TARGET_CC.
18109
18110 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
18111
18112 * NEWS: Update.
18113
18114 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18115
18116 * include/grub/multiboot2.h: Remove leftover file.
18117 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
18118 * include/grub/partition.h [GRUB_UTIL]: Likewise.
18119
18120 2010-02-07 Yves Blusseau <blusseau@zetam.org>
18121
18122 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
18123
18124 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18125
18126 Fix warnings in grub-emu when compiling with maximum warning options.
18127
18128 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
18129 (grub_arch_modules_addr): Return 0 and not NULL.
18130 * util/misc.c (ENABLE_RELOCATABLE): New definition.
18131 (xstrdup): Use newstr instead of dup.
18132 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
18133 of disk to dsk to avoid shadowing.
18134 (find_free_slot): Fix prototype.
18135 * util/getroot.c (grub_util_is_dmraid): Make static.
18136 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
18137 Add missing prototype.
18138 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
18139
18140 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18141
18142 * loader/i386/linux.c (grub_linux_setup_video): Handle error
18143 appropriately.
18144
18145 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18146
18147 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
18148 code out.
18149
18150 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18151
18152 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
18153 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
18154 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
18155 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
18156 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
18157 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
18158
18159 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18160
18161 * include/grub/err.h (grub_err_printf): Don't export.
18162
18163 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18164
18165 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
18166
18167 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18168
18169 * include/grub/i18n.h (grub_gettext_dummy): Removed.
18170 * kern/misc.c (grub_gettext_dummy): Make static.
18171
18172 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18173
18174 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
18175 by non-valid ones.
18176 * kern/term.c (grub_putchar): Likewise.
18177
18178 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18179
18180 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
18181 buggy hook call and memory leak.
18182
18183 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18184
18185 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
18186
18187 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18188
18189 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
18190
18191 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18192
18193 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
18194 modevar.
18195 Return grub_errno on allocation error.
18196
18197 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18198
18199 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
18200
18201 2010-02-06 Yves Blusseau <blusseau@zetam.org>
18202
18203 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
18204 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
18205
18206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18207
18208 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
18209 non-pxe disk.
18210 (grub_pxefs_open): Likewise.
18211
18212 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18213
18214 * util/grub.d/10_hurd.in: Add --class information to menuentries.
18215 * util/grub.d/10_kfreebsd.in: Likewise.
18216 * util/grub.d/10_linux.in: Likewise.
18217
18218 2010-02-06 Colin D Bennett <colin@gibibit.com>
18219
18220 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
18221 (gfxmenu_mod_SOURCES): New variable.
18222 (gfxmenu_mod_CFLAGS): Likewise.
18223 (gfxmenu_mod_LDFLAGS): Likewise.
18224 * include/grub/term.h (grub_term_set_current_output): Declare
18225 argument as const.
18226 * docs/gfxmenu-theme-example.txt: New file.
18227 * gfxmenu/gfxmenu.c: Likewise.
18228 * gfxmenu/gui_box.c: Likewise.
18229 * gfxmenu/gui_canvas.c: Likewise.
18230 * gfxmenu/gui_circular_progress.c: Likewise.
18231 * gfxmenu/gui_image.c: Likewise.
18232 * gfxmenu/gui_label.c: Likewise.
18233 * gfxmenu/gui_list.c: Likewise.
18234 * gfxmenu/gui_progress_bar.c: Likewise.
18235 * gfxmenu/gui_string_util.c: Likewise.
18236 * gfxmenu/gui_util.c: Likewise.
18237 * gfxmenu/icon_manager.c: Likewise.
18238 * gfxmenu/model.c: Likewise.
18239 * gfxmenu/named_colors.c: Likewise.
18240 * gfxmenu/theme_loader.c: Likewise.
18241 * gfxmenu/view.c: Likewise.
18242 * gfxmenu/widget-box.c: Likewise.
18243 * include/grub/gfxmenu_model.h: Likewise.
18244 * include/grub/gfxmenu_view.h: Likewise.
18245 * include/grub/gfxwidgets.h: Likewise.
18246 * include/grub/gui.h: Likewise.
18247 * include/grub/gui_string_util.h: Likewise.
18248 * include/grub/icon_manager.h: Likewise.
18249
18250 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18251
18252 Agglomerate scrolling in gfxterm.
18253
18254 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
18255 (grub_virtual_screen_setup): Initialise 'total_screen'.
18256 (write_char): Split to ...
18257 (paint_char): ... this ...
18258 (write_char): ... and this.
18259 (paint_char): Handle delayed scrolling.
18260 (draw_cursor): Likewise.
18261 (scroll_up): Split to ...
18262 (real_scroll): ... this ...
18263 (scroll_up): ... and this.
18264 (real_scroll): Handle multi-line scroll and draw below-the-bottom
18265 characters.
18266 (grub_gfxterm_refresh): Call real_scroll.
18267
18268 2010-02-06 Colin D Bennett <colin@gibibit.com>
18269
18270 * include/grub/misc.h (grub_iscntrl): New inline function.
18271 (grub_isalnum): Likewise.
18272 (grub_strtol): Likewise.
18273
18274 2010-02-06 Colin D Bennett <colin@gibibit.com>
18275
18276 * normal/menu_text.c (get_entry_number): Move from here ...
18277 * normal/menu.c (get_entry_number): ... moved here.
18278 * include/grub/menu.h (grub_menu_get_default_entry_index):
18279 New prototype.
18280 * normal/menu.c (grub_menu_get_default_entry_index): New function.
18281 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
18282 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
18283 (grub_menu_viewer_should_return): Likewise.
18284 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
18285 * normal/menu_text.c (run_menu): Enable menu switching.
18286 * normal/menu_viewer.c (should_return): New variable.
18287 (menu_viewer_changed): Likewise.
18288 (grub_menu_viewer_show_menu): Handle menu viewer changes.
18289 (grub_menu_viewer_should_return): New function.
18290 (menuviewer_write_hook): Likewise.
18291 (grub_menu_viewer_init): Likewise.
18292
18293 2010-02-06 Colin D Bennet <colin@gibibit.com>
18294 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18295
18296 Support for gfxterm in a window.
18297
18298 * include/grub/gfxterm.h: New file.
18299 * include/grub/video.h (struct grub_video_rect): New declaration.
18300 (grub_video_rect_t): Likewise.
18301 * term/gfxterm.c (struct grub_gfxterm_window): New type.
18302 (refcount): New variable.
18303 (render_target): Likewise.
18304 (window): Likewise.
18305 (repaint_callback): Likewise.
18306 (grub_virtual_screen_setup): Use 'render_target'.
18307 (init_window): New function.
18308 (grub_gfxterm_init_window): Likewise.
18309 (grub_gfxterm_init): Check reference counter.
18310 Use init_window.
18311 (destroy_window): New function.
18312 (grub_gfxterm_destroy_window): Likewise.
18313 (grub_gfxterm_fini): Check reference counter.
18314 Use destroy_window.
18315 (redraw_screen_rect): Restore viewport.
18316 Use 'render_target' and 'window'.
18317 Call 'repaint_callback'.
18318 (write_char): Use 'render_target'.
18319 (draw_cursor): Likewise.
18320 (scroll_up): Restore viewport.
18321 Use 'render_target' and 'window'.
18322 Call 'repaint_callback'.
18323 (grub_gfxterm_cls): Likewise.
18324 (grub_gfxterm_refresh): Use 'window'.
18325 (grub_gfxterm_set_repaint_callback): New function.
18326 (grub_gfxterm_background_image_cmd): Use 'window'.
18327 (grub_gfxterm_get_term): New function.
18328 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
18329
18330 2010-02-06 Colin D Bennett <colin@gibibit.com>
18331
18332 Bitmap scaling support.
18333
18334 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
18335 (bitmap_scale_mod_SOURCES): New variable.
18336 (bitmap_scale_mod_CFLAGS): Likewise.
18337 (bitmap_scale_mod_LDFLAGS): Likewise.
18338 * include/grub/bitmap_scale.h: New file.
18339 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
18340 (background_image_cmd_options): New variable.
18341 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
18342 (cmd): Rename and change type to ...
18343 (background_image_cmd_handle): ... this. All users updated.
18344 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
18345 * video/bitmap_scale.c: New file.
18346
18347 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18348
18349 SDL support.
18350
18351 * Makefile.in (LIBSDL): New variable.
18352 (enable_grub_emu_sdl): Likewise.
18353 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
18354 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
18355 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
18356 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
18357 * util/sdl.c: New file.
18358
18359 2010-02-06 Colin D Bennett <colin@gibibit.com>
18360 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18361
18362 Double buffering support.
18363
18364 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
18365 * include/grub/video.h: Update comment.
18366 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
18367 New type.
18368 (grub_video_fb_doublebuf_blit_init): New prototype.
18369 * term/gfxterm.c (scroll_up): Support double buffering.
18370 (grub_gfxterm_refresh): Likewise.
18371 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
18372 (grub_video_fb_doublebuf_blit_init): Likewise.
18373 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
18374 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
18375 'displayed_page', 'render_page' and 'update_screen'.
18376 (grub_video_vbe_fini): Free offscreen buffer.
18377 (doublebuf_pageflipping_commit): New function.
18378 (doublebuf_pageflipping_update_screen): Likewise.
18379 (doublebuf_pageflipping_init): Likewise.
18380 (double_buffering_init): Likewise.
18381 (grub_video_vbe_setup): Enable doublebuffering.
18382 (grub_video_vbe_swap_buffers): Implement.
18383 (grub_video_vbe_set_active_render_target): Handle double buffering.
18384 (grub_video_vbe_get_active_render_target): Likewise.
18385 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
18386 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
18387 (grub_video_vbe_enable_double_buffering): Likewise.
18388 (grub_video_vbe_swap_buffers): Use update_screen.
18389 (grub_video_set_mode): Use double buffering.
18390
18391 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18392
18393 * maintainance/gentrigtables.py: Remove.
18394 * lib/trig.c: Likewise.
18395
18396 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
18397
18398 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
18399 `trigtables.c'.
18400 (trigtables.c): New rule.
18401 (gentrigtables): Likewise.
18402 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
18403
18404 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18405
18406 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
18407 integer constants.
18408
18409 2010-02-06 Colin D Bennet <colin@gibibit.com>
18410
18411 Trigonometry support.
18412
18413 * include/grub/trig.h: New file.
18414 * lib/trig.c: Likewise.
18415 * maintainance/gentrigtables.py: Likewise.
18416 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
18417 (trig_mod_SOURCES): New variable.
18418 (trig_mod_CFLAGS): Likewise.
18419 (trig_mod_LDFLAGS): Likewise.
18420
18421 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18422
18423 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
18424 disk devices.
18425
18426 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18427
18428 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
18429 error.
18430
18431 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18432
18433 * util/hostdisk.c (open_device): Don't use partition device when reading
18434 before the partition.
18435 (grub_util_biosdisk_read): Don't read from partition and before the
18436 partition in single operation.
18437 (grub_util_biosdisk_write): Don't write to partition and before the
18438 partition in single operation.
18439
18440 2010-02-03 Torsten Landschoff <torsten@debian.org>
18441
18442 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18443 last sectors.
18444
18445 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18446
18447 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
18448 CDROM reads.
18449 (grub_biosdisk_write): Refuse to write to CDROM.
18450
18451 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18452
18453 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
18454
18455 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18456
18457 * font/font.c (find_glyph): Check that bmp_idx is available before
18458 using it.
18459 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
18460 with (font == NULL).
18461
18462 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
18463
18464 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
18465
18466 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
18467
18468 * include/grub/script_sh.h (sourcecode): Add const qualifier.
18469 * util/grub-script-check.c (getline): Fix empty lines case.
18470
18471 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
18472
18473 * Makefile.in (check): Exit with fail status when one of the tests
18474 fails.
18475 * tests/example_functional_test.c (example_test): Fix reversed assert.
18476 * tests/example_unit_test.c (example_test): Likewise.
18477
18478 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
18479
18480 * util/grub.d/10_linux.in: This script does not use any of the
18481 contents of gettext.sh, only the external command `gettext', so stop
18482 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
18483 the same prefix as GRUB.)
18484 * util/grub.d/10_kfreebsd.in: Likewise.
18485
18486 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18487
18488 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
18489 of the line.
18490
18491 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18492
18493 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18494 last sectors.
18495
18496 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18497
18498 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
18499 having a 4KiB and not 32KiB buffer size.
18500
18501 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18502
18503 * util/hostfs.c: Include `<errno.h>'.
18504 (grub_hostfs_read): Handle errors from fseeko() and fread().
18505
18506 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18507
18508 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
18509 loop when using read hooks on files whose size isn't sector-aligned.
18510
18511 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18512
18513 Remove unused parameter.
18514
18515 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
18516 (grub_iso9660_open): Remove initialization of `data->length'.
18517
18518 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18519
18520 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
18521 memleak conditions.
18522
18523 2010-01-27 Carles Pina i Estany <carles@pina.cat>
18524
18525 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
18526 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
18527
18528 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18529
18530 * util/bin2h.c (usage): Fix warning (space after backslash).
18531
18532 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18533
18534 * font/font.c: Include `grub/fontformat.h.
18535 Remove font file format constants.
18536 (grub_font_load): Use the new macros.
18537 * include/grub/fontformat.h: New file.
18538 * util/grub-mkfont.c: Include `grub/fontformat.c'.
18539 (write_font_pf2): Use the new macros.
18540
18541 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18542
18543 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
18544 does.
18545
18546 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18547
18548 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
18549
18550 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
18551 (_start): Macroify `0x7F'.
18552
18553 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
18554 (make_install_device): Use "(pxe)" as fallback prefix when booting
18555 via PXE.
18556
18557 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
18558
18559 * configure.ac: Reset LIBS after check for libgcc symbols.
18560
18561 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
18562
18563 * util/hostdisk.c (open_device): Add trailing newline to debug
18564 message.
18565
18566 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
18567
18568 * configure.ac: Check for `limits.h'.
18569 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
18570
18571 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
18572
18573 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
18574 capitalize error strings.
18575
18576 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
18577
18578 * util/grub.d/10_hurd.in: Add a recovery mode.
18579
18580 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
18581
18582 * configure.ac: Check for libgcc symbols with -nostdlib.
18583
18584 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
18585
18586 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
18587
18588 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18589
18590 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
18591 stack since heap may be unavailable at that point.
18592 (grub_ofconsole_gotoxy): Likewise.
18593
18594 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18595
18596 * configure.ac: Check for _restgpr_14_x.
18597 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
18598 and _savegpr_* prototypes.
18599
18600 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
18601
18602 Use generic grub_reboot() for i386-efi.
18603
18604 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
18605 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
18606 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
18607
18608 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18609
18610 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
18611 presence of "prefix" variable as it breaks when normal.mod is
18612 embedded.
18613
18614 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18615
18616 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
18617 stack since heap is unavailable at that point.
18618
18619 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18620
18621 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
18622 (grub_freebsd_bootinfo): Rewritten.
18623 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
18624
18625 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18626
18627 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
18628
18629 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
18630
18631 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
18632 domain now.
18633
18634 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
18635
18636 * util/misc.c (make_system_path_relative_to_its_root): Change the work
18637 around for handling "/" to the correct fix. Fix a memory leak. Use
18638 xstrdup instead of strdup.
18639
18640 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18641
18642 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
18643
18644 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18645
18646 Optimise glyph lookup by Basic Multilingual Plane lookup array.
18647
18648 * font/font.c (struct grub_font): New member 'bmp_idx'.
18649 (font_init): Initialise 'bmp_idx'.
18650 (load_font_index): Fill 'bmp_idx'.
18651 (find_glyph): Make inline. Use bmp_idx for BMP characters.
18652
18653 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18654
18655 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
18656 unnecessary calls.
18657
18658 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18659
18660 Move context handling out of the kernel.
18661
18662 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
18663 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
18664 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
18665 * conf/i386-efi.rmk: Likewise.
18666 * conf/i386-ieee1275.rmk: Likewise.
18667 * conf/i386-pc.rmk: Likewise.
18668 * conf/powerpc-ieee1275.rmk: Likewise.
18669 * conf/sparc64-ieee1275.rmk: Likewise.
18670 * conf/x86_64-efi.rmk: Likewise.
18671 * include/grub/env.h: Include grub/menu.h.
18672 (grub_env_var_type): Removed.
18673 (grub_env_var): Replaced field 'type' with 'global'.
18674 (grub_env_find): New prototype.
18675 (grub_env_context_open): Remove EXPORT_FUNC.
18676 (grub_env_context_close): Likewise.
18677 (grub_env_export): Likewise.
18678 (grub_env_set_data_slot): Removed.
18679 (grub_env_get_data_slot): Likewise.
18680 (grub_env_unset_data_slot): Likewise.
18681 (grub_env_unset_menu): New prototype.
18682 (grub_env_set_menu): Likewise.
18683 (grub_env_get_menu): Likewise.
18684 * include/grub/env_private.h: New file.
18685 * include/grub/normal.h (grub_context_init): New prototype.
18686 (grub_context_fini): Likewise.
18687 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
18688 * normal/context.c (grub_cmd_export): ... to here.
18689 * kern/env.c: Include env_private.h.
18690 (HASHSZ): Moved to include/grub/env_private.h.
18691 (grub_env_context): Likewise.
18692 (grub_env_sorted_var): Likewise.
18693 (current_context): Renamed from this ...
18694 (grub_current_context): ...to this. 'static' removed. All users updated.
18695 (grub_env_find): Removed 'static'.
18696 (grub_env_context_open): Moved to normal/context.c.
18697 (grub_env_context_close): Likewise.
18698 (grub_env_export): Likewise.
18699 (mangle_data_slot_name): Removed.
18700 (grub_env_set_data_slot): Likewise.
18701 (grub_env_get_data_slot): Likewise.
18702 (grub_env_unset_data_slot): Likewise.
18703 * kern/main.c (grub_set_root_dev): Don't export root.
18704 It will be done later.
18705 (grub_main): Don't export prefix.
18706 It will be done later.
18707 * normal/context.c: New file.
18708 * normal/main.c (free_menu): Use grub_env_unset_menu.
18709 (grub_normal_add_menu_entry): Use grub_env_get_menu.
18710 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
18711 (GRUB_MOD_INIT(normal)): Call grub_context_init.
18712 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
18713
18714 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18715
18716 setpci support.
18717
18718 * commands/setpci.c: New file.
18719 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
18720 (setpci_mod_SOURCES): New variable.
18721 (setpci_mod_CFLAGS): Likewise.
18722 (setpci_mod_LDFLAGS): Likewise.
18723
18724 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18725
18726 Byte-addressable PCI configuration space.
18727
18728 * bus/pci.c (grub_pci_make_address): Use byte address instead of
18729 dword address.
18730 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
18731 GRUB_PCI_REG_CACHELINE.
18732 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
18733 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
18734 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
18735 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
18736 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
18737 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
18738 grub_pci_make_address.
18739 (lock_rom_area): Likewise.
18740 * commands/lspci.c (grub_lspci_iter): Use macroses
18741 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
18742 of grub_pci_make_address.
18743 * disk/ata.c (grub_ata_pciinit): Likewise.
18744 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
18745 (GRUB_PCI_REG_VENDOR): Likewise.
18746 (GRUB_PCI_REG_DEVICE): Likewise.
18747 (GRUB_PCI_REG_COMMAND): Likewise.
18748 (GRUB_PCI_REG_STATUS): Likewise.
18749 (GRUB_PCI_REG_REVISION): Likewise.
18750 (GRUB_PCI_REG_CLASS): Likewise.
18751 (GRUB_PCI_REG_CACHELINE): Likewise.
18752 (GRUB_PCI_REG_LAT_TIMER): Likewise.
18753 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
18754 (GRUB_PCI_REG_BIST): Likewise.
18755 (GRUB_PCI_REG_ADDRESSES): Likewise.
18756 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18757 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18758 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18759 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18760 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18761 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18762 (GRUB_PCI_REG_CIS_POINTER): Likewise.
18763 (GRUB_PCI_REG_SUBVENDOR): Likewise.
18764 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
18765 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
18766 (GRUB_PCI_REG_CAP_POINTER): Likewise.
18767 (GRUB_PCI_REG_IRQ_LINE): Likewise.
18768 (GRUB_PCI_REG_IRQ_PIN): Likewise.
18769 (GRUB_PCI_REG_MIN_GNT): Likewise.
18770 (GRUB_PCI_REG_MAX_LAT): Likewise.
18771 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
18772 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
18773 * video/efi_uga.c (find_framebuf): Likewise.
18774 * video/sm712.c (grub_video_sm712_setup): Likewise.
18775 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
18776 space.
18777
18778 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18779
18780 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
18781 can be reliably determined to be supported.
18782
18783 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18784
18785 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
18786 that VESA is supported.
18787 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
18788 supported.
18789
18790 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18791
18792 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
18793
18794 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18795
18796 * util/misc.c (make_system_path_relative_to_its_root): Work around
18797 special-casing of "/", as previous incarnation of this routine did.
18798
18799 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18800
18801 Fix any-emu compilation.
18802
18803 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
18804 * grub_bin2h_SOURCES: New variable.
18805
18806 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18807
18808 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
18809
18810 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18811
18812 * util/grub.d/00_header.in: Fix handling of locale_dir.
18813
18814 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18815
18816 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
18817 as possible unifont location (Gentoo).
18818 Reported by: Alexander Brüning
18819
18820 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18821
18822 Don't try to generate lists for kernel.img.
18823
18824 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
18825 (pkglib_MODULES): Remove kernel.img.
18826 (kernel_img_EXPORTS): Removed.
18827 (kernel_img_RELOCATABLE): New variable.
18828 * conf/x86_64-efi.rmk: Likewise.
18829 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
18830
18831 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18832
18833 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
18834 grub_xasprintf or grub_snprintf.
18835 (grub_vsprintf): Likewise.
18836 (grub_snprintf): New proto.
18837 (grub_vsnprintf): Likewise.
18838 (grub_xasprintf): Likewise.
18839 (grub_xvasprintf): Likewise.
18840 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
18841 (grub_sprintf): Removed.
18842 (grub_vsnprintf): New function.
18843 (grub_snprintf): Likewise.
18844 (grub_xvasprintf): Likewise.
18845 (grub_xasprintf): Likewise.
18846 (grub_vsprintf): Renamed to ...
18847 (grub_vsnprintf_real): ...this. New argument max_len.
18848
18849 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
18850
18851 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
18852 fix grub-script-check warning.
18853
18854 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18855
18856 * include/grub/font.h (grub_font_load): Fix prototype.
18857
18858 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18859
18860 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
18861
18862 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18863
18864 * include/grub/x86_64/at_keyboard.h: New file.
18865
18866 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * loader/mips/linux.c: Include missing grub/i18n.h.
18869
18870 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18871
18872 * normal/menu.c (notify_execution_failure): Clarify error message.
18873
18874 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18875
18876 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
18877 return value (and revert all return statements). Update users.
18878
18879 2010-01-20 Dan Merillat <debian@dan.merillat.org>
18880
18881 * kern/device.c (grub_device_iterate): Allocate new part_ent
18882 structure based on sizeof (*p) rather than sizeof (p->next), to
18883 account for structure padding.
18884
18885 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
18886 disk is NULL, which might happen for LVM physical volumes with no
18887 LVM signature.
18888
18889 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18890
18891 * loader/mips/linux.c (grub_cmd_initrd)
18892 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
18893
18894 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18895
18896 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
18897 (grub_video_video_init, grub_video_bitmap_init)
18898 (grub_font_manager_init, grub_term_gfxterm_init)
18899 (grub_at_keyboard_init): New extern declarations.
18900 (grub_machine_init): Initialize gfxterm and at_keyboard.
18901
18902 * kern/main.c (grub_main): Revert grub_printf delay kludge.
18903
18904 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
18905 `gfxterm.mod' into core image.
18906
18907 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18908 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18909 (kernel_img_FORMAT): Copy to ...
18910
18911 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18912 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18913 (kernel_img_FORMAT): ... here, and ...
18914
18915 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18916 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18917 (kernel_img_FORMAT): ... here.
18918
18919 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
18920 and input (at_keyboard) terminals in kernel.
18921 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
18922
18923 (pkglib_MODULES): Remove `pci.mod'.
18924 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
18925 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
18926 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
18927 (at_keyboard_mod_LDFLAGS): Remove variables.
18928
18929 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
18930
18931 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
18932
18933 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
18934
18935 * include/grub/mips/libgcc.h: Only export symbols for functions
18936 that libgcc provides.
18937
18938 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
18939
18940 MIPS support.
18941
18942 * bus/bonito.c: New file.
18943 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
18944 GRUB_PCI_NUM_DEVICES.
18945 * term/i386/pc/serial.c: Move to ...
18946 * term/serial.c: ... here. All users updated.
18947 * util/i386/pc/grub-mkimage.c: Move to ...
18948 * util/grub-mkrawimage.c: ... here. All users updated.
18949 * term/i386/pc/at_keyboard.c: Move to ...
18950 * term/at_keyboard.c: ... here. All users updated.
18951 * conf/mips-qemu-mips.rmk: New file.
18952 * conf/mips-yeeloong.rmk: Likewise.
18953 * conf/mips.rmk: Likewise.
18954 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
18955 mipsel-qemu-mips.
18956 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
18957 to port addresses.
18958 (grub_ata_pciinit): Support CS5536.
18959 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
18960 * font/font_cmd.c (loadfont_command): Open file before passing it to
18961 grub_font_load.
18962 (pseudo_file_read): New function.
18963 (pseudo_file_close): Likewise.
18964 (pseudo_fs): New structure.
18965 (load_font_module): New function.
18966 (GRUB_MOD_INIT(font_manager)): Load embedded font.
18967 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
18968 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
18969 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
18970 * include/grub/i386/at_keyboard.h: Split into ...
18971 * include/grub/at_keyboard.h: ... this ...
18972 * include/grub/i386/at_keyboard.h: ... and this.
18973 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
18974 New prototype.
18975 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
18976 updated.
18977 (grub_elf64_size): Likewise.
18978 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
18979 filename.
18980 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
18981 * include/grub/i386/coreboot/serial.h: Rewritten.
18982 * include/grub/i386/ieee1275/serial.h: Include
18983 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
18984 * include/grub/i386/pc/serial.h: Moved from here ...
18985 * include/grub/serial.h: ... to here. All users updated.
18986 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
18987 (GRUB_PCI_NUM_BUS): Likewise.
18988 (GRUB_PCI_NUM_DEVICES): Likewise.
18989 (grub_pci_device_map_range): Add missing volatile keyword.
18990 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
18991 * include/grub/mips/at_keyboard.h: New file.
18992 * include/grub/mips/cache.h: Likewise.
18993 * include/grub/mips/io.h: Likewise.
18994 * include/grub/mips/kernel.h: Likewise.
18995 * include/grub/mips/libgcc.h: Likewise.
18996 * include/grub/mips/pci.h: Likewise.
18997 * include/grub/mips/qemu-mips/boot.h: Likewise.
18998 * include/grub/mips/qemu-mips/kernel.h: Likewise.
18999 * include/grub/mips/qemu-mips/loader.h: Likewise.
19000 * include/grub/mips/qemu-mips/memory.h: Likewise.
19001 * include/grub/mips/qemu-mips/serial.h: Likewise.
19002 * include/grub/mips/qemu-mips/time.h: Likewise.
19003 * include/grub/mips/relocator.h: Likewise.
19004 * include/grub/mips/time.h: Likewise.
19005 * include/grub/mips/types.h: Likewise.
19006 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
19007 * include/grub/mips/yeeloong/boot.h: Likewise.
19008 * include/grub/mips/yeeloong/kernel.h: Likewise.
19009 * include/grub/mips/yeeloong/loader.h: Likewise.
19010 * include/grub/mips/yeeloong/memory.h: Likewise.
19011 * include/grub/mips/yeeloong/pci.h: Likewise.
19012 * include/grub/mips/yeeloong/serial.h: Likewise.
19013 * include/grub/mips/yeeloong/time.h: Likewise.
19014 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
19015 * kern/elf.c (grub_elf32_size): New parameter. All users
19016 updated.
19017 (grub_elf64_size): Likewise.
19018 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
19019 Load modules before saying "Welcome to GRUB!".
19020 Call grub_refresh after saying "Welcome to GRUB!".
19021 * kern/mips/cache.S: New file.
19022 * kern/mips/cache_flush.S: Likewise.
19023 * kern/mips/dl.c: Likewise.
19024 * kern/mips/init.c: Likewise.
19025 * kern/mips/qemu-mips/init.c: Likewise.
19026 * kern/mips/startup.S: Likewise.
19027 * kern/mips/yeeloong/init.c: Likewise.
19028 * kern/term.c (grub_putcode): Handle NULL terminal.
19029 (grub_getcharwidth): Likewise.
19030 (grub_getkey): Likewise.
19031 (grub_checkkey): Likewise.
19032 (grub_getkeystatus): Likewise.
19033 (grub_getxy): Likewise.
19034 (grub_getwh): Likewise.
19035 (grub_gotoxy): Likewise.
19036 (grub_cls): Likewise.
19037 (grub_setcolorstate): Likewise.
19038 (grub_setcolor): Likewise.
19039 (grub_getcolor): Likewise.
19040 (grub_refresh): Likewise.
19041 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
19042 (write_jump): Add hatch nop.
19043 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
19044 * lib/mips/setjmp.S: New file.
19045 * loader/mips/linux.c: Likewise.
19046 * term/i386/pc/at_keyboard.c: Move from here ...
19047 * term/at_keyboard.c: ... to here.
19048 * term/i386/pc/serial.c: Moved from here ...
19049 * term/serial.c: ... to here. All users updated.
19050 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
19051 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
19052 (serial_translate_key_sequence): Avoid deadlock.
19053 (grub_serial_getkey): Handle backspace.
19054 (grub_serial_putchar): Fix newline handling.
19055 * util/i386/pc/grub-mkimage.c: Move from here ...
19056 * util/grub-mkrawimage.c: ... to here. All users updated.
19057 (generate_image): New parameters 'font_path' and 'format'.
19058 Support embedding font.
19059 Use grub_host_to_target* instead of grub_cpu_to_le*.
19060 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
19061 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
19062 (options): New option "--font".
19063 (usage): Likewise.
19064 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
19065 (main): Handle "--font".
19066 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
19067 (grub_virtual_screen_setup): Set bg_color_display.
19068 (redraw_screen_rect): Use bg_color_display instead of incorrect
19069 bg_color.
19070 (grub_gfxterm_cls): Likewise.
19071 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
19072 Support embedding config file.
19073 (add_segments): Likewise.
19074 (options): New option "--config".
19075 (main): Handle "--config".
19076 * video/sm712.c: New file.
19077
19078 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19079
19080 Fix parallel builds.
19081
19082 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
19083 font.c depend on ascii.h).
19084
19085 2010-01-12 Carles Pina i Estany <carles@pina.cat>
19086
19087 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
19088
19089 2010-01-11 Carles Pina i Estany <carles@pina.cat>
19090
19091 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
19092 By default: disabled.
19093 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
19094 parameter.
19095
19096 2010-01-10 Carles Pina i Estany <carles@pina.cat>
19097
19098 * font/font.c: Update copyright years.
19099 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
19100
19101 2010-01-10 Carles Pina i Estany <carles@pina.cat>
19102
19103 * font/font.c: Include `ascii.h'.
19104 (ASCII_BITMAP_SIZE): New macro.
19105 (ascii_font_glyph): Define.
19106 (ascii_glyph_lookup): New function.
19107 (grub_font_get_string_width): Change comment. If glyph not found, use
19108 ascii_glyph_lookup.
19109 (grub_font_get_glyph_with_fallback): If glyph not available returns
19110 ascii_glyph_lookup.
19111 * util/grub-mkfont.c (file_formats): New enum.
19112 (options): Add `ascii-bitmaps' new option.
19113 (usage): Add `asii-bitmaps' new option.
19114 (write_font_ascii_bitmap): New function.
19115 (write_font): Rename to ...
19116 (write_font_p2): ... this. Remove print_glyphs call.
19117 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
19118 used. Call print_glyphs.
19119 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
19120
19121 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19122
19123 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
19124 (grub_bin2h_SOURCES): New variable.
19125 * util/bin2h.c: New file.
19126
19127 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19128
19129 * include/multiboot.h: Resynced with spec.
19130 * include/multiboot2.h: Likewise.
19131 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
19132 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
19133
19134 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19135
19136 * include/grub/term.h (grub_term_register_input,
19137 grub_term_register_output): Check return of terminal init()
19138 routines, and abort if errors are raised.
19139
19140 * commands/terminal.c: Update copyright year.
19141
19142 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19143
19144 * commands/terminal.c (grub_cmd_terminal_input)
19145 (grub_cmd_terminal_output): Check return of terminal init()
19146 routines, and abort if errors are raised.
19147
19148 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
19149
19150 * include/grub/i386/bsd.h: Fix include pathes.
19151
19152 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
19153
19154 Add missing *BSD copyright headers.
19155
19156 * include/grub/aout.h: Add BSD licence.
19157 * include/grub/i386/bsd.h: Parts under different licences moved to ...
19158 * include/grub/i386/freebsd_linker.h: ... here,
19159 * include/grub/i386/freebsd_reboot.h: ... here,
19160 * include/grub/i386/netbsd_bootinfo.h: ... here,
19161 * include/grub/i386/netbsd_reboot.h: ... here,
19162 * include/grub/i386/openbsd_bootarg.h: ... here,
19163 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
19164 licence to each file.
19165
19166 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19167
19168 * acinclude.m4: Remove `nop' assembly instruction; it's not
19169 implemented by all architectures.
19170
19171 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19172
19173 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
19174 ELILO. This is no longer necessary.
19175
19176 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
19177
19178 Added new tool, grub-scrit-check to verify grub.cfg syntax.
19179
19180 * util/grub-script-check.c: grub-script-check tool.
19181 * conf/common.rmk: Make rules for grub-script-check.
19182
19183 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19184
19185 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
19186 spotting it back in 2008. Shame on me for forgetting he did.
19187
19188 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
19189
19190 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19191
19192 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
19193 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
19194 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
19195 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
19196 (GRUB_VIDEO_TYPE_EFI): Rename to ...
19197 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
19198
19199 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
19200
19201 * include/grub/test.h: Add license header.
19202 * tests/example_functional_test.c: Likewise.
19203 * tests/example_unit_test.c: Likewise.
19204 * tests/lib/functional_test.c: Likewise.
19205 * tests/lib/test.c: Likewise.
19206 * tests/lib/unit_test.c: Likewise.
19207
19208 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
19209
19210 Use flag-based instead of hook-based video mode selection and "auto"
19211 keyword.
19212
19213 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
19214 (grub_video_set_mode): Changed prototype. All users updated.
19215 (grub_video_check_mode_flag): New inline function.
19216 * video/video.c (parse_modespec): New function.
19217 (grub_video_set_mode): Parse flags and keywords.
19218
19219 2010-01-17 Carles Pina i Estany <carles@pina.cat>
19220
19221 * util/misc.c (grub_util_info): Fix the order of the parameters in a
19222 fprintf call.
19223
19224 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
19225
19226 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
19227
19228 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19229
19230 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
19231 string.
19232 * util/grub-emu.c (usage): Likewise.
19233 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
19234 * util/i386/efi/grub-mkimage.c (usage): Likewise.
19235 * util/i386/pc/grub-mkimage.c (usage): Likewise.
19236 * util/i386/pc/grub-setup.c (usage): Likewise.
19237
19238 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19239
19240 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
19241 the message.
19242 (grub_util_info): Likewise.
19243 (grub_util_error): Likewise.
19244 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
19245 and/or new lines in `grub_util_warna', `grub_util_info',
19246 `grub_util_error' calls.
19247 * util/getroot.c: Likewise.
19248 * util/grub-editenv.c: Likewise.
19249 * util/grub-emu.c: Likewise.
19250 * util/grub-fstest.c: Likewise.
19251 * util/grub-mkdevicemap.c: Likewise.
19252 * util/grub-mkfont.c: Likewise.
19253 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19254 * util/grub-mkrelpath.c: Likewise.
19255 * util/grub-pe2elf.c: Likewise.
19256 * util/grub-probe.c: Likewise.
19257 * util/hostdisk.c: Likewise.
19258 * util/i386/efi/grub-mkimage.c: Likewise.
19259 * util/i386/pc/grub-mkimage.c: Likewise.
19260 * util/i386/pc/grub-setup.c: Likewise.
19261 * util/ieee1275/ofpath.c: Likewise.
19262 * util/mkisofs/eltorito.c: Likewise.
19263 * util/mkisofs/rock.c: Likewise.
19264 * util/mkisofs/write.c: Likewise.
19265 * util/raid.c: Likewise.
19266 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19267 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19268
19269 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19270
19271 Enable multiboot on non-pc.
19272
19273 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
19274 multiboot.mod and multiboot2.mod to ...
19275 * conf/i386.rmk (pkglib_MODULES): ... here.
19276 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
19277 Moved to ...
19278 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
19279 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
19280 Moved to ...
19281 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
19282 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
19283 Moved to ...
19284 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
19285 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
19286 Moved to ...
19287 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
19288 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
19289 relocator.mod.
19290 (ata_mod_SOURCES): Removed.
19291 (ata_mod_CFLAGS): Likewise.
19292 (ata_mod_LDFLAGS): Likewise.
19293 (relocator_mod_SOURCES): Removed.
19294 (relocator_mod_CFLAGS): Likewise.
19295 (relocator_mod_ASFLAGS): Likewise.
19296 (relocator_mod_LDFLAGS): Likewise.
19297 Include i386.mk.
19298 * include/grub/x86_64/multiboot.h: New file.
19299 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
19300 Terminate EFI.
19301
19302 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19303
19304 Video multiboot support.
19305
19306 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
19307 New prototype.
19308 * include/multiboot.h: Resynced with multiboot specification.
19309 * include/multiboot2.h: Likewise.
19310 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
19311 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
19312 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
19313 (HAS_VGA_TEXT): Likewise.
19314 (accepts_video): New variable.
19315 (grub_multiboot_set_accepts_video): New function.
19316 (grub_multiboot_get_mbi_size): Account for video structures.
19317 (set_video_mode): New function.
19318 (retrieve_video_parameters): Likewise.
19319 (grub_multiboot_make_mbi): Fill video fields.
19320
19321 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19322
19323 Video driver ids.
19324
19325 * include/grub/video.h (grub_video_driver_id): New type.
19326 (grub_video_adapter): New member 'id'. All users updated.
19327 (grub_video_get_driver_id): New proto.
19328 * video/video.c (grub_video_get_driver_id): New function.
19329
19330 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19331
19332 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
19333 `var=val'.
19334
19335 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19336
19337 * normal/cmdline.c (print_completion): Gettextizze.
19338
19339 2001-01-14 Carles Pina i Estany <carles@pina.cat>
19340
19341 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
19342
19343 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19344
19345 * gettext/gettext.c (grub_gettext_translate): Push and pop
19346 grub_errno.
19347 (grub_gettext_delete_list): Change comment style.
19348 * kern/err.c (grub_error): Gettextizze.
19349 (grub_fatal): Gettextizze.
19350
19351 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19352
19353 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
19354 (grub_linux16_real_boot): ... this.
19355 * kern/i386/loader.S: Likewise.
19356 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
19357 (grub_linux16_boot): New function. Switches to text mode and calls
19358 grub_linux16_real_boot().
19359
19360 * loader/i386/bsd.c: Include `<grub/video.h>'.
19361 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
19362 text mode before calling grub_unix_real_boot().
19363
19364 * loader/i386/multiboot.c: Include `<grub/video.h>'.
19365 (grub_multiboot_boot): Switch to text mode before calling
19366 grub_relocator32_boot().
19367
19368 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
19369 (grub_chainloader_boot): Switch to text mode before calling
19370 grub_chainloader_real_boot().
19371
19372 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19373 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19374
19375 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
19376 non-empty value.
19377
19378 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19379 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19380
19381 * util/grub.d/00_header.in: Define a "savedefault" function for use
19382 in menu entries.
19383 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
19384
19385 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19386 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19387
19388 * util/grub-mkconfig_lib.in (save_default_entry): Only set
19389 saved_entry if boot_once is unset.
19390 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
19391 previous saved entry (i.e. grub-reboot).
19392
19393 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19394
19395 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
19396
19397 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19398
19399 * util/grub.d/00_header.in: Use `set var=val' rather than plain
19400 `var=val'.
19401 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
19402
19403 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19404
19405 * util/grub-reboot.in: Fix --version output.
19406 * util/grub-set-default.in: Likewise.
19407
19408 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19409
19410 * util/grub.d/00_header.in: Silently ignore zero-sized environment
19411 blocks.
19412
19413 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19414
19415 * util/grub.d/00_header.in: Quote the value assigned to `default',
19416 in case it contains spaces.
19417
19418 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19419
19420 * util/grub.d/30_os-prober.in: Fix merge error that moved a
19421 `save_default_entry' call from the macosx case to the linux case.
19422
19423 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
19424 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
19425
19426 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
19427 in `chosen' environment variable.
19428 * normal/menu_text.c (get_entry_number): Check if the variable
19429 matches the title of a menu entry.
19430 (run_menu): Pass menu to get_entry_number.
19431
19432 * util/grub-reboot.in: New file.
19433 * util/grub-set-default.in: New file.
19434 * conf/common.rmk (grub-reboot): New utility.
19435 (grub-set-default): New utility.
19436
19437 * util/grub-mkconfig_lib.in (save_default_entry): New function.
19438 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
19439 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
19440 move it to `saved_entry' for the next boot. Load environment on
19441 initialisation.
19442 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
19443 * util/grub.d/10_hurd.in: Likewise.
19444 * util/grub.d/10_linux.in (linux_entry): Likewise.
19445 * util/grub.d/10_windows.in: Likewise.
19446 * util/grub.d/30_os-prober.in: Likewise.
19447
19448 * util/grub-install.in: Create environment block.
19449 * util/i386/efi/grub-install.in: Likewise.
19450 * util/ieee1275/grub-install.in: Likewise.
19451 * util/sparc64/ieee1275/grub-install.in: Likewise.
19452
19453 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
19454
19455 Unit testing framework for GRUB.
19456
19457 * Makefile.in: Test framework build rules for 'make check'.
19458 * conf/tests.rmk: Build rules for individual tests and framework.
19459
19460 * include/grub/test.h: Header file for whitebox tests.
19461 * tests/lib/functional_test.c: Framework support for whitebox
19462 functional tests.
19463 * tests/lib/test.c: Common whitebox testing code for unit and
19464 functional tests.
19465 * tests/lib/unit_test.c: Framework support for whitebox unit
19466 tests.
19467
19468 * tests/util/grub-shell-tester.in: Support utility for grub-script
19469 tests.
19470 * tests/util/grub-shell.in: Utility to execute grub-script
19471 commands in a Qemu instance.
19472
19473 * tests/example_functional_test.c: Example whitebox functional
19474 test.
19475 * tests/example_grub_script_test.in: Example grub-script test.
19476 * tests/example_scripted_test.in: Example scripted test.
19477 * tests/example_unit_test.c: Example whitebox unit test.
19478
19479 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
19480
19481 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
19482 Add loader/i386/multiboot_mbi.c.
19483 (multiboot2_mod_SOURCES): Likewise.
19484 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
19485 (multiboot2_mod_SOURCES): Likewise.
19486 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
19487 (grub_multiboot_make_mbi): Likewise.
19488 (grub_multiboot_free_mbi): Likewise.
19489 (grub_multiboot_init_mbi): Likewise.
19490 (grub_multiboot_add_module): Likewise.
19491 (grub_multiboot_set_bootdev): Likewise.
19492 * loader/i386/multiboot.c (mbi): Removed.
19493 (mbi_dest): Likewise.
19494 (alloc_mbi): New variable.
19495 (grub_multiboot_payload_size): Removed. All users updated.
19496 (grub_multiboot_pure_size): New variable.
19497 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
19498 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
19499 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
19500 (grub_fill_multiboot_mmap): Likewise.
19501 (grub_multiboot_get_bootdev): Likewise.
19502 (grub_multiboot): Use multiboot_mbi functions.
19503 * loader/i386/multiboot_mbi.c: New file.
19504
19505 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19506
19507 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
19508 it would result in module crash.
19509
19510 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19511
19512 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
19513 (grub_ofconsole_getwh): Split to ...
19514 (grub_ofconsole_getwh): ... this.
19515 (grub_ofconsole_dimensions): ...and this.
19516 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
19517
19518 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
19519
19520 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
19521
19522 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19523
19524 * loader/i386/pc/multiboot2.c: Removed stalled file.
19525
19526 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19527
19528 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
19529 Reported by: Grégoire Sutre
19530
19531 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
19532
19533 * util/misc.c (canonicalize_file_name): New function.
19534 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
19535 instead of realpath().
19536
19537 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
19538
19539 * util/grub-install.in (usage): Clarify meaning of --root-directory,
19540 and make it clearer that it's optional. Based on confusion
19541 witnessed on IRC.
19542
19543 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19544
19545 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
19546 in premature implicit newline.
19547
19548 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19549
19550 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
19551 which resulted in garbled command line at the end of screen.
19552
19553 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19554
19555 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
19556 initialization with similar approach as with other Linux loaders.
19557
19558 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19559
19560 Fix i386-ieee1275 build.
19561
19562 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
19563 and grub_term_height() for video_{width,height} initialization.
19564
19565 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19566
19567 Fix grub-emu build.
19568
19569 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
19570
19571 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19572 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19573
19574 Support for multiple terminals.
19575
19576 * Makefile.in (pkglib_DATA): terminal.lst.
19577 (terminal.lst): New target.
19578 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
19579 (GRUB_MOD_INIT(handler)): Likewise.
19580 (GRUB_MOD_FINI(handler)): Likewise.
19581 * commands/help.c (grub_cmd_help): Handle multiple terminals.
19582 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
19583 * commands/sleep.c (do_print): Use grub_term_restore_pos.
19584 (grub_cmd_sleep): Use grub_term_save_pos.
19585 * commands/terminal.c: New file.
19586 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
19587 commands/terminal.c and lib/charset.c.
19588 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
19589 (pkglib_MODULES): Add terminal.mod.
19590 (terminal_mod_SOURCES): New variable.
19591 (terminal_mod_CFLAGS): Likewise.
19592 (terminal_mod_LDFLAGS): Likewise.
19593 * genhandlerlist.sh: Don't handle terminals.
19594 * genmk.rb: Generate terminal-*.lst.
19595 * genterminallist.sh: New file.
19596 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
19597 (grub_is_valid_utf8): Likewise.
19598 (grub_utf8_to_ucs4_alloc): Likewise.
19599 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
19600 (grub_menu_register_viewer): Changed argument.
19601 (grub_menu_try_text): New proto.
19602 (grub_gfxmenu_try_hook): New declaration.
19603 * include/grub/normal.h (grub_normal_exit_level): New declaration.
19604 (grub_menu_init_page): Additional argument term.
19605 (grub_normal_init_page): Likewise.
19606 (grub_cmdline_get): Arguments simplified.
19607 (grub_utf8_to_ucs4_alloc): Removed.
19608 (grub_print_ucs4): Additional argument term.
19609 (grub_getstringwidth): Likewise.
19610 (grub_print_message_indented): Likewise.
19611 (grub_menu_text_register_instances): New proto.
19612 (grub_show_menu): Likewise.
19613 (read_terminal_list): Likewise.
19614 (grub_set_more): Likewise.
19615 * include/grub/parser.h: Include handler.h.
19616 * include/grub/reader.h: Rewritten.
19617 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
19618 (GRUB_TERM_WIDTH): Changed to function.
19619 (GRUB_TERM_HEIGHT): Likewise.
19620 (GRUB_TERM_BORDER_WIDTH): Likewise.
19621 (GRUB_TERM_BORDER_HEIGHT): Likewise.
19622 (GRUB_TERM_NUM_ENTRIES): Likewise.
19623 (GRUB_TERM_ENTRY_WIDTH): Likewise.
19624 (GRUB_TERM_CURSOR_X): Likewise.
19625 (grub_term_input_class): Likewise.
19626 (grub_term_output_class): Likewise.
19627 (grub_term_outputs_disabled): New declaration.
19628 (grub_term_inputs_disabled): Likewise.
19629 (grub_term_outputs): Likewise.
19630 (grub_term_inputs): Likewise.
19631 (grub_term_register_input): Rewritten.
19632 (grub_term_register_output): Likewise.
19633 (grub_term_unregister_input): Likewise.
19634 (grub_term_unregister_output): Likewise.
19635 (FOR_ACTIVE_TERM_INPUTS): New macro.
19636 (FOR_DISABLED_TERM_INPUTS): Likewise.
19637 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19638 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19639 * include/grub/terminfo.h: Add oterm argument to all protypes.
19640 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
19641 Use grub_rescue_run.
19642 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
19643 All users updated.
19644 * kern/reader.c: Removed. All users updated.
19645 * kern/rescue_reader.c (grub_rescue_init): Removed.
19646 (grub_rescue_reader): Likewise.
19647 (grub_register_rescue_reader): Likewise.
19648 (grub_rescue_run): New function based on kern/reader.c.
19649 * kern/term.c: Adapted for multiterm.
19650 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
19651 (grub_is_valid_utf8): Likewise.
19652 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
19653 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
19654 right terminal.
19655 * loader/i386/linux.c (grub_linux_boot): Likewise.
19656 * normal/auth.c (grub_username_get): New function.
19657 (grub_auth_check_authentication): Use grub_username_get.
19658 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
19659 * normal/color.c: Adapt for multiterm.
19660 * normal/main.c (read_config_file): Don't use grub_reader_loop.
19661 (grub_normal_init_page): Additional argument term.
19662 (read_lists): Call read_terminal_lists.
19663 (grub_enter_normal_mode): Call grub_cmdline_run.
19664 Handle grub_normal_exit_level.
19665 (grub_cmd_normal): Make reentrant.
19666 (grub_cmd_normal_exit): New function.
19667 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
19668 * normal/menu.c: Adapt for multiterm.
19669 * normal/menu_entry.c: Likewise.
19670 * normal/menu_text.c: Likewise.
19671 * normal/menu_viewer.c: Removed. All users updated.
19672 * normal/term.c: New file.
19673 * util/console.c: Change order of includes to workaround a bug in
19674 ncurses headers.
19675 * term/terminfo.c: New argument oterm on all exported functions.
19676 All users updated.
19677 * util/grub-editenv.c (grub_term_input_class): Removed.
19678 (grub_term_output_class): Likewise.
19679
19680 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19681
19682 Make loader output a bit more user-friendly.
19683
19684 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
19685 is being loaded. Likewise for the Hurd.
19686
19687 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
19688 that kernel of FreeBSD ${version} is being loaded.
19689
19690 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
19691 grub_dprintf().
19692 (grub_cmd_initrd): Likewise.
19693 * util/grub.d/10_linux.in (linux_entry): Print message indicating
19694 that Linux ${version} is being loaded. Likewise for initrd.
19695
19696 2010-01-09 Carles Pina i Estany <carles@pina.cat>
19697
19698 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
19699
19700 2010-01-08 Carles Pina i Estany <carles@pina.cat>
19701
19702 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
19703 (GRUB_MOD_INIT): Gettextizze.
19704 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
19705 (GRUB_MOD_INIT): Gettextizze.
19706 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
19707 (grub_cmd_linux): Capitalise Linux.
19708 (GRUB_MOD_INIT): Gettextizze.
19709 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
19710 (grub_cmd_linux): Capitalise Linux.
19711 (GRUB_MOD_INIT): Gettextizze.
19712 * loader/i386/linux.c: Include `<grub/i18n.h>'.
19713 (grub_cmd_linux): Capitalise Linux.
19714 (GRUB_MOD_INIT): Gettextizze.
19715 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
19716 (GRUB_MOD_INIT): Gettextizze.
19717 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
19718 (grub_cmd_linux): Capitalise Linux.
19719 (GRUB_MOD_INIT): Gettextizze.
19720 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
19721 (grub_cpu_xnu_init): Gettextizze.
19722 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
19723 (GRUB_MOD_INIT): Gettextizze.
19724 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
19725 (GRUB_MOD_INIT): Gettextizze.
19726 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
19727 (grub_linux_load64): Capitalise Linux.
19728 (GRUB_MOD_INIT): Gettextizze.
19729 * loader/xnu.c: Include `<grub/i18n.h>'.
19730 (GRUB_MOD_INIT): Gettextizze.
19731 * po/POTFILES: Add `loader/efi/appleloader.c',
19732 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
19733 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
19734 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
19735 `loader/i386/xnu.c', `loader/multiboot_loader.c',
19736 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
19737 and `loader/xnu.c'.
19738
19739 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19740
19741 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
19742
19743 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19744
19745 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
19746 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
19747 * util/mkisofs/mkisofs.c (main): Readjust --version output.
19748
19749 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19750
19751 Reset Multiboot 2 support. New loader implements the draft in
19752 /branches/multiboot2 and shares as much code as possible with the
19753 production Multiboot 1 implementation.
19754
19755 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
19756 * loader/multiboot2.c: Likewise.
19757 * loader/i386/multiboot_helper.S: Likewise.
19758 * include/multiboot2.h: Replace with latest version from the draft
19759 in /branches/multiboot2.
19760
19761 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
19762 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
19763 and `loader/multiboot2.c'.
19764 (pkglib_MODULES): Add `multiboot2.mod'.
19765 (multiboot2_mod_SOURCES): New variable.
19766 (multiboot2_mod_LDFLAGS): Likewise.
19767 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
19768
19769 * conf/i386-pc.rmk: Likewise.
19770
19771 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19772 (multiboot_mod_SOURCES): Remove variable.
19773 (multiboot_mod_LDFLAGS): Likewise.
19774 (multiboot_mod_CFLAGS): Likewise.
19775
19776 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
19777 `<multiboot2.h>' instead of `<multiboot.h>'.
19778 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
19779 (MULTIBOOT_HEADER_MAGIC): New macros.
19780
19781 * loader/multiboot_loader.c (module_version_status): Remove variable.
19782 (find_multi_boot2_header): Remove function.
19783 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
19784 logic. Always check for the Multiboot version we're compiling for.
19785 (grub_cmd_module_loader): Likewise.
19786 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
19787 command instead of `multiboot'.
19788
19789 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19790
19791 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
19792 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
19793 all users.
19794
19795 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19796 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19797
19798 Fix breakage introduced with previous commit.
19799
19800 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
19801 commands.
19802 * normal/handler.c (read_handler_list): Revert part of previous commit
19803 affecting this file.
19804 * normal/main.c (read_lists): Move read_handler_list() call back to ...
19805 (grub_normal_execute): ... here.
19806
19807 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19808
19809 Merge prefix-redefinition-fix branch.
19810
19811 * normal/autofs.c (read_fs_list): Make function capable of being
19812 run multiple times, gracefuly replacing the previous data
19813 structures.
19814 * normal/dyncmd.c (read_command_list): Likewise.
19815 * normal/handler.c (read_handler_list): Likewise.
19816 * normal/main.c (read_lists): New function. Calls all the
19817 list reading functions.
19818 (grub_normal_execute): Use read_lists() instead of calling all
19819 list reading functions explicitly. Register read_lists() as a
19820 variable hook attached to ${prefix}.
19821
19822 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19823
19824 Merge crypto branch.
19825
19826 * Makefile.in (pkglib_DATA): Add crypto.lst.
19827 (crypto.lst): New target.
19828 * commands/hashsum.c: New file.
19829 * commands/password.c (check_password): Use grub_crypto_memcmp.
19830 * commands/password_pbkdf2.c: New file.
19831 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
19832 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
19833 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
19834 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
19835 -I$(srcdir)/lib/libgcrypt_wrap.
19836 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
19837 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
19838 password_pbkdf2.mod.
19839 (crypto_mod_SOURCES): New variable.
19840 (crypto_mod_CFLAGS): Likewise.
19841 (crypto_mod_LDFLAGS): Likewise.
19842 (hashsum_mod_SOURCES): New variable.
19843 (hashsum_mod_CFLAGS): Likewise.
19844 (hashsum_mod_LDFLAGS): Likewise.
19845 (pbkdf2_mod_SOURCES): New variable.
19846 (pbkdf2_mod_CFLAGS): Likewise.
19847 (pbkdf2_mod_LDFLAGS): Likewise.
19848 (password_pbkdf2_mod_SOURCES): New variable.
19849 (password_pbkdf2_mod_CFLAGS): Likewise.
19850 (password_pbkdf2_mod_LDFLAGS): Likewise.
19851 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
19852 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
19853 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
19854 Include conf/gcry.rmk.
19855 * include/grub/auth.h: Rewritten.
19856 * include/grub/crypto.h: New file.
19857 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
19858 * include/grub/normal.h (read_crypto_list): New prototype.
19859 * lib/crypto.c: New file.
19860 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
19861 * lib/pbkdf2.c: Likewise.
19862 * normal/auth.c (grub_auth_strcmp): Removed.
19863 (grub_iswordseparator): Likewise.
19864 (grub_auth_strword): Likewise.
19865 (is_authenticated): Use grub_strword.
19866 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
19867 and grub_strword. Pass entered password to authentication callback.
19868 * normal/crypto.c: New file.
19869 * normal/main.c: Call read_crypto_list.
19870 * util/grub-mkpasswd-pbkdf2.c: New file.
19871 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
19872
19873 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
19874
19875 Fix descent and ascent calculation.
19876
19877 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
19878 (options): New option "asce".
19879 (usage): Likewise.
19880 (add_char): Ignore invalid glyphs for descent calculation.
19881 Calculate ascent from actual content.
19882 (print_glyphs): Use 'asce'.
19883 (write_font): Likewise. Allow ascent override.
19884 (main): Handle "asce" option.
19885
19886 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19887
19888 * kern/err.c: Include `<grub/i18n.h>'.
19889 (grub_print_error): Add full stop. Gettextizze.
19890 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
19891 (grub_bsd_load_elf): Capitalise ELF.
19892 (grub_cmd_freebsd_loadenv): Add `s' in error string.
19893 (grub_cmd_freebsd_module): Likewise.
19894 (grub_cmd_freebsd_module_elf): Likewise.
19895 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
19896
19897 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19898
19899 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
19900 * commands/search_file.c (HELP_MESSAGE): New macro.
19901 * commands/search_label.c (HELP_MESSAGE): Likewise.
19902 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
19903 * po/POTFILES: Add `commands/search_file.c',
19904 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
19905 `commands/search.c'.
19906
19907 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19908
19909 * config.rpath: Update from Gnulib.
19910
19911 2010-01-05 Yves Blusseau <blusseau@zetam.org>
19912
19913 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
19914
19915 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
19916
19917 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
19918
19919 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19920
19921 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
19922 arguments to fread so that we get a return value in bytes, rather
19923 than something that will normally be rounded down to 0.
19924 Adjust error handling to avoid producing garbage when size_t is not
19925 the same size as long long.
19926
19927 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19928
19929 * util/mkisofs/write.c (padblock_write): Check return value of
19930 fread.
19931
19932 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19933
19934 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
19935 floppy images now.
19936
19937 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
19938
19939 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19940
19941 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
19942 instead of manual alignment.
19943 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
19944 verbose). Avoid attempts to read past end of the device
19945 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
19946 but GRUB_DISK_CACHE_SIZE may exceed that).
19947
19948 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19949
19950 * commands/crc.c (grub_cmd_crc): Abort on read errors.
19951 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
19952 it to upper layer.
19953
19954 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19955
19956 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
19957 New constant.
19958 (grub_efi_piwg_device_path): New structure
19959 (grub_efi_piwg_device_path_t): New type.
19960 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
19961 (devpath_1): Transform to a structure. All users updated.
19962 (devpath_2): Likewise.
19963 (devpath_3): Likewise.
19964 (devpath_4): Likewise.
19965 (devpath_5): Likewise.
19966
19967 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19968
19969 * loader/efi/appleloader.c: Restored. Update all users.
19970
19971 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19972
19973 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
19974
19975 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
19976 (struct boot_blocklist): Move from here ...
19977 * include/grub/i386/pc/boot.h [ASM_FILE]
19978 (struct grub_boot_blocklist): ... to here. Update all users.
19979 (setup): Only initialize `start' member of `first_block'
19980 structure. Add assert() calls to verify the other members.
19981
19982 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
19983 (generate_image): Fix broken blocklist length initialization.
19984 Add assert() call to verify blocklist `segment' field.
19985
19986 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19987
19988 * loader/efi/appleloader.c: Remove. Update all users.
19989
19990 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19991
19992 * boot/i386/pc/boot.S: Update copyright year.
19993 * boot/i386/pc/cdboot.S: Likewise.
19994 * boot/i386/pc/diskboot.S: Likewise.
19995 * boot/i386/pc/lnxboot.S: Likewise.
19996 * boot/i386/pc/pxeboot.S: Likewise.
19997 * bus/pci.c: Likewise.
19998 * commands/cmp.c: Likewise.
19999 * commands/help.c: Likewise.
20000 * commands/hexdump.c: Likewise.
20001 * commands/i386/pc/halt.c: Likewise.
20002 * commands/i386/pc/play.c: Likewise.
20003 * commands/i386/pc/vbeinfo.c: Likewise.
20004 * commands/ls.c: Likewise.
20005 * commands/test.c: Likewise.
20006 * disk/dmraid_nvidia.c: Likewise.
20007 * disk/i386/pc/biosdisk.c: Likewise.
20008 * disk/ieee1275/nand.c: Likewise.
20009 * disk/ieee1275/ofdisk.c: Likewise.
20010 * disk/lvm.c: Likewise.
20011 * disk/raid.c: Likewise.
20012 * disk/raid6_recover.c: Likewise.
20013 * disk/scsi.c: Likewise.
20014 * fs/affs.c: Likewise.
20015 * fs/cpio.c: Likewise.
20016 * fs/ext2.c: Likewise.
20017 * fs/hfs.c: Likewise.
20018 * fs/iso9660.c: Likewise.
20019 * fs/ntfs.c: Likewise.
20020 * fs/sfs.c: Likewise.
20021 * fs/udf.c: Likewise.
20022 * fs/ufs.c: Likewise.
20023 * fs/xfs.c: Likewise.
20024 * gencmdlist.sh: Likewise.
20025 * genmk.rb: Likewise.
20026 * include/grub/disk.h: Likewise.
20027 * include/grub/efi/api.h: Likewise.
20028 * include/grub/efi/efi.h: Likewise.
20029 * include/grub/efi/pe32.h: Likewise.
20030 * include/grub/elf.h: Likewise.
20031 * include/grub/fs.h: Likewise.
20032 * include/grub/i386/at_keyboard.h: Likewise.
20033 * include/grub/i386/pc/memory.h: Likewise.
20034 * include/grub/i386/pc/vbe.h: Likewise.
20035 * include/grub/i386/pci.h: Likewise.
20036 * include/grub/i386/tsc.h: Likewise.
20037 * include/grub/ieee1275/ieee1275.h: Likewise.
20038 * include/grub/ntfs.h: Likewise.
20039 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20040 * include/grub/sparc64/libgcc.h: Likewise.
20041 * include/grub/symbol.h: Likewise.
20042 * include/grub/types.h: Likewise.
20043 * include/multiboot2.h: Likewise.
20044 * io/gzio.c: Likewise.
20045 * kern/device.c: Likewise.
20046 * kern/disk.c: Likewise.
20047 * kern/efi/efi.c: Likewise.
20048 * kern/efi/mm.c: Likewise.
20049 * kern/elf.c: Likewise.
20050 * kern/file.c: Likewise.
20051 * kern/i386/dl.c: Likewise.
20052 * kern/i386/pc/init.c: Likewise.
20053 * kern/i386/pc/startup.S: Likewise.
20054 * kern/ieee1275/ieee1275.c: Likewise.
20055 * kern/ieee1275/init.c: Likewise.
20056 * kern/main.c: Likewise.
20057 * kern/mm.c: Likewise.
20058 * kern/powerpc/dl.c: Likewise.
20059 * kern/sparc64/dl.c: Likewise.
20060 * kern/x86_64/dl.c: Likewise.
20061 * lib/hexdump.c: Likewise.
20062 * loader/efi/appleloader.c: Likewise.
20063 * loader/i386/ieee1275/linux.c: Likewise.
20064 * loader/i386/pc/chainloader.c: Likewise.
20065 * loader/i386/pc/linux.c: Likewise.
20066 * loader/i386/pc/multiboot2.c: Likewise.
20067 * loader/ieee1275/multiboot2.c: Likewise.
20068 * loader/multiboot2.c: Likewise.
20069 * loader/multiboot_loader.c: Likewise.
20070 * loader/powerpc/ieee1275/linux.c: Likewise.
20071 * normal/completion.c: Likewise.
20072 * normal/menu_entry.c: Likewise.
20073 * partmap/apple.c: Likewise.
20074 * util/grub.d/10_hurd.in: Likewise.
20075 * util/hostfs.c: Likewise.
20076 * video/readers/png.c: Likewise.
20077
20078 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
20079
20080 * include/grub/misc.h (GNUC_PREREQ): New macro.
20081 (ATTRIBUTE_ERROR): New macro.
20082 * include/grub/list.h (grub_bad_type_cast_real): Use
20083 ATTRIBUTE_ERROR.
20084
20085 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20086
20087 * normal/menu_text.c (print_message): Change messages.
20088
20089 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20090
20091 * normal/menu_entry.c (store_completion): Gettextizze.
20092
20093 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20094
20095 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
20096
20097 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20098
20099 * po/POTFILES: Sort correctly.
20100
20101 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20102
20103 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
20104 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
20105 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
20106 full stop.
20107 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
20108 summary. Gettextizze the strings.
20109 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
20110 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
20111 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
20112 full stop.
20113 (GRUB_MOD_INIT): Remove command name from summary.
20114 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
20115 summary.
20116 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
20117 * term/i386/pc/serial.c (options): Add full stops.
20118 (GRUB_MOD_INIT): Remove command name from the summary.
20119
20120 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20121
20122 * commands/acpi.c: Gettextizze help strings and/or options. Include
20123 `grub/i18n.h' if needed.
20124 * commands/blocklist.c: Likewise.
20125 * commands/boot.c: Likewise.
20126 * commands/cat.c: Likewise.
20127 * commands/cmp.c: Likewise.
20128 * commands/configfile.c: Likewise.
20129 * commands/crc.c: Likewise.
20130 * commands/date.c: Likewise.
20131 * commands/echo.c: Likewise.
20132 * commands/efi/fixvideo.c: Likewise.
20133 * commands/efi/loadbios.c: Likewise.
20134 * commands/gptsync.c: Likewise.
20135 * commands/halt.c: Likewise.
20136 * commands/handler.c: Likewise.
20137 * commands/hdparm.c: Likewise.
20138 * commands/hexdump.c: Likewise.
20139 * commands/i386/cpuid.c: Likewise.
20140 * commands/i386/pc/drivemap.c: Likewise.
20141 * commands/i386/pc/halt.c: Likewise.
20142 * commands/i386/pc/pxecmd.c: Likewise.
20143 * commands/i386/pc/vbeinfo.c: Likewise.
20144 * commands/i386/pc/vbetest.c: Likewise.
20145 * commands/ieee1275/suspend.c: Likewise.
20146 * commands/keystatus.c: Likewise.
20147 * commands/loadenv.c: Likewise.
20148 * commands/ls.c: Likewise.
20149 * commands/lsmmap.c: Likewise.
20150 * commands/lspci.c: Likewise.
20151 * commands/memrw.c: Likewise.
20152 * commands/minicmd.c: Likewise.
20153 * commands/parttool.c: Likewise.
20154 * commands/password.c: Likewise.
20155 * commands/probe.c: Likewise.
20156 * commands/read.c: Likewise.
20157 * commands/reboot.c: Likewise.
20158 * commands/search.c: Likewise.
20159 * commands/sleep.c: Likewise.
20160 * commands/test.c: Likewise.
20161 * commands/true.c: Likewise.
20162 * commands/usbtest.c: Likewise.
20163 * commands/videotest.c: Likewise.
20164 * commands/xnu_uuid.c: Likewise.
20165 * disk/loopback.c: Likewise.
20166 * hello/hello.c: Likewise.
20167 * loader/i386/bsd.c: Likewise.
20168 * term/i386/pc/serial.c: Likewise.
20169 * po/POTFILES: Add new files.
20170
20171 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
20172
20173 * term/i386/pc/at_keyboard.c
20174 (keyboard_controller_wait_untill_ready): Rename to ...
20175 (keyboard_controller_wait_until_ready): ... this. Update all users.
20176
20177 2010-01-01 Carles Pina i Estany <carles@pina.cat>
20178
20179 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
20180 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
20181 string using string width.
20182 * normal/menu_text.c (grub_print_message_indented): Use
20183 grub_print_spaces and not print_spaces.
20184 (print_timeout): Likewise.
20185 (print_spaces): Move to...
20186 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
20187
20188 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
20189
20190 Import from Gnulib.
20191
20192 * gnulib/getdelim.c: New file.
20193 * gnulib/getline.c: Likewise.
20194
20195 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
20196
20197 * include/grub/list.h (grub_assert_fail): Removed.
20198 (grub_bad_type_cast_real): New function.
20199 (grub_bad_type_cast): New macro.
20200 (GRUB_AS_LIST): Use grub_bad_type_cast.
20201 (GRUB_AS_LIST_P): Likewise.
20202 (GRUB_AS_NAMED_LIST): Likewise.
20203 (GRUB_AS_NAMED_LIST_P): Likewise.
20204 (GRUB_AS_PRIO_LIST): Likewise.
20205 (GRUB_AS_PRIO_LIST_P): Likewise.
20206 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
20207
20208 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
20209
20210 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
20211 Fix syntax error.
20212
20213 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
20214
20215 * configure.ac: Check for TARGET_CFLAGS initialization before we
20216 initialize it ourselves (sigh).
20217 Move a few modifications to TARGET_CFLAGS to be unconditional
20218 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
20219 eh_frame)
20220
20221 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
20222 * term/i386/pc/at_keyboard.c
20223 (keyboard_controller_wait_untill_ready): Likewise.
20224 (keyboard_controller_led): Rename `led_status' paramter to avoid
20225 name conflict.
20226
20227 2009-12-28 Carles Pina i Estany <carles@pina.cat>
20228
20229 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
20230 quotes.
20231
20232 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
20235
20236 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20237
20238 * normal/menu_text.c (grub_print_message_indented): Prevent
20239 past-the-end-of-array dereference.
20240
20241 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20242
20243 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
20244 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
20245
20246 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20247
20248 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
20249 * normal/main.c (grub_normal_read_line): Remove a space from the
20250 default prompt.
20251
20252 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20253
20254 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
20255 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20256 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20257 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20258 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20259 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20260 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20261
20262 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20263
20264 * video/readers/jpeg.c (cmd): Declare.
20265 (grub_cmd_jpegtest): Use `grub_command_t' type.
20266 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20267 Assign to `cmd'.
20268 (GRUB_MOD_FINI): Use `cmd' to unregister.
20269 * video/readers/png.c (cmd): Declare.
20270 (grub_cmd_pngtest): Use `grub_command_t' type.
20271 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20272 Assign to `cmd'.
20273 (GRUB_MOD_FINI): Use `cmd' to unregister.
20274 * video/readers/tga.c (cmd): Declare.
20275 (grub_cmd_tgatest): Use `grub_command_t' type.
20276 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20277 Assign to `cmd'.
20278 (GRUB_MOD_FINI): Use `cmd' to unregister.
20279
20280 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20281
20282 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
20283 stops.
20284 * kern/corecmd.c (grub_register_core_commands): Likewise.
20285 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
20286 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20287 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
20288 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20289 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20290 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
20291 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20292 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
20293 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20294 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20295 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20296 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20297 * normal/handler.c (insert_handler): Likewise.
20298 * normal/main.c (GRUB_MOD_INIT): Likewise.
20299 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20300
20301 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20302
20303 * commands/help.c (grub_cmd_help): Print the command name before the
20304 summary.
20305 (GRUB_MOD_INIT): Remove command name from the summary.
20306 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
20307 string as summary.
20308 * lib/arg.c (find_long): Print the command name before the summary.
20309 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
20310 summary.
20311 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
20312 * commands/cat.c (GRUB_MOD_INIT): Likewise.
20313 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
20314 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
20315 * commands/crc.c (GRUB_MOD_INIT): Likewise.
20316 * commands/date.c (GRUB_MOD_INIT): Likewise.
20317 * commands/echo.c (GRUB_MOD_INIT): Likewise.
20318 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
20319 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20320 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20321 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
20322 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
20323 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
20324 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
20325 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20326 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
20327 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
20328 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
20329 * commands/ls.c (GRUB_MOD_INIT): Likewise.
20330 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20331 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20332 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20333 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
20334 * commands/password.c (GRUB_MOD_INIT): Likewise.
20335 * commands/probe.c (GRUB_MOD_INIT): Likewise.
20336 * commands/read.c (GRUB_MOD_INIT): Likewise.
20337 * commands/search.c (GRUB_MOD_INIT): Likewise.
20338 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
20339 * commands/test.c (GRUB_MOD_INIT): Likewise.
20340 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
20341 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20342 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20343 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
20344 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20345 * lib/arg.c (GRUB_MOD_INIT): Likewise.
20346 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
20347 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20348 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20349 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20350 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20351 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
20352 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
20353 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
20354
20355 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20356
20357 Use search command for preliminar UUID search.
20358
20359 * commands/search.c: Split into ...
20360 * commands/search_wrap.c: ...this
20361 * commands/search.c: ...and this.
20362 * commands/search_file.c: New file.
20363 * commands/search_label.c: New file.
20364 * commands/search_uuid.c: New file.
20365 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
20366 Add commands/search_wrap.c, commands/search_file.c,
20367 commands/search_label.c and commands/search_uuid.c.
20368 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
20369 (search_mod_SOURCES): Set to commands/search_wrap.c.
20370 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
20371 search_label.mod.
20372 (search_fs_file_mod_SOURCES): New variable.
20373 (search_fs_file_mod_CFLAGS): Likewise.
20374 (search_fs_file_mod_LDFLAGS): Likewise.
20375 (search_label_mod_SOURCES): Likewise.
20376 (search_label_mod_CFLAGS): Likewise.
20377 (search_label_mod_LDFLAGS): Likewise.
20378 (search_fs_uuid_mod_SOURCES): New variable.
20379 (search_fs_uuid_mod_CFLAGS): Likewise.
20380 (search_fs_uuid_mod_LDFLAGS): Likewise.
20381 (fs_file_mod_SOURCES): Removed.
20382 (fs_file_mod_CFLAGS): Likewise.
20383 (fs_file_mod_LDFLAGS): Likewise.
20384 (fs_uuid_mod_SOURCES): Removed.
20385 (fs_uuid_mod_CFLAGS): Likewise.
20386 (fs_uuid_mod_LDFLAGS): Likewise.
20387 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
20388 Set to util/grub-install.in.
20389 * disk/fs_file.c: Removed.
20390 * disk/fs_uuid.c: Likewise.
20391 * include/grub/search.h: New file.
20392 * util/grub-install.in: Handle sparc64.
20393 Create and use load.cfg.
20394 * util/sparc64/ieee1275/grub-install.in: Removed.
20395
20396 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20397
20398 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
20399 Ignore return status if CF is cleared.
20400 (grub_biosdisk_get_diskinfo_standard): Likewise.
20401
20402 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20403
20404 * term/i386/pc/at_keyboard.c
20405 (keyboard_controller_wait_untill_ready): New function.
20406 (grub_keyboard_controller_write, grub_keyboard_controller_read)
20407 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
20408 for keyboard polling, rather than duplicate the same loop. This
20409 saves a few bytes in code size.
20410
20411 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20412
20413 Support for (pxe[:server[:gateway]]) syntax and
20414 use environment variable for PXE.
20415
20416 * commands/i386/pc/pxecmd.c (options): Removed.
20417 (print_ip): Removed.
20418 (grub_cmd_pxe): Removed
20419 (grub_cmd_pxe_unload): New function.
20420 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
20421 (grub_pxe_your_ip): Made static.
20422 (grub_pxe_default_server_ip): Likewise.
20423 (grub_pxe_default_gateway_ip): Likewise.
20424 (grub_pxe_blksize): Likewise.
20425 (parse_ip): New function.
20426 (grub_pxe_open): Support server and gateway specification.
20427 (grub_pxe_close): Free disk->data.
20428 (grub_pxefs_open): Use disk->data.
20429 (grub_pxefs_read): Likewise.
20430 (grub_env_write_readonly): New function.
20431 (set_mac_env): Likewise.
20432 (set_env_limn_ro): Likewise.
20433 (parse_dhcp_vendor): Likewise.
20434 (grub_pxe_detect): Set the environment variables.
20435 (set_ip_env): New function.
20436 (write_ip_env): Likewise.
20437 (grub_env_write_pxe_default_server): Likewise.
20438 (grub_env_write_pxe_default_gateway): Likewise.
20439 (grub_env_write_pxe_blocksize): Likewise.
20440 (GRUB_MOD_INIT(pxe)): Set environment variables.
20441 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
20442 (grub_pxe_mac_addr_t): ... this. All users updated.
20443 (grub_pxe_your_ip): Removed.
20444 (grub_pxe_server_ip): Likewise.
20445 (grub_pxe_gateway_ip): Likewise.
20446 (grub_pxe_blksize): Likewise.
20447
20448 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20449
20450 * commands/help.c: Include `<grub/i18n.h>'.
20451 (grub_cmd_help): Gettextizze.
20452 (GRUB_MOD_INIT): Likewise.
20453 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
20454 (GRUB_MOD_INIT): Gettextizze.
20455 * commands/search.c: Include `<grub/i18n.h>'.
20456 (options): Gettextizze.
20457 (GRUB_MOD_INIT): Gettextizze.
20458 * lib/arg.c: Include `<grub/i18n.h>'.
20459 (help_options): Gettextizze.
20460 (find_long): Likewise.
20461 (grub_arg_show_help): Likewise.
20462 * normal/dyncmd.c: Include `<grub/i18n.h>'.
20463 (read_command_list): Gettextizze.
20464 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
20465 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
20466
20467 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20468
20469 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
20470 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
20471 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
20472 (led_status): New variable.
20473 (keyboard_controller_led): New function.
20474 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
20475 update led status for caps lock, num lock and scroll lock.
20476
20477 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
20478
20479 * util/hostdisk.c (open_device): Fix a comment.
20480
20481 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20482
20483 * util/grub-install.in (host_os): New variable.
20484 * util/i386/efi/grub-install.in (host_os): Likewise.
20485
20486 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20487
20488 * util/mkisofs/write.c (padblock_write): Abort when given an
20489 excedingly large embed image, instead of silently truncating it.
20490
20491 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20492
20493 * include/multiboot.h: Indentation fixes.
20494
20495 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20496
20497 * include/multiboot.h (struct multiboot_aout_symbol_table)
20498 (struct multiboot_elf_section_header_table): New structure
20499 declarations (stolen from GRUB Legacy).
20500 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
20501 table information.
20502
20503 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
20504 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
20505 type aliases.
20506
20507 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20508
20509 * include/multiboot.h: Make comments src2texi-friendly.
20510
20511 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20512
20513 For consistency with [multiboot]/docs/boot.S.
20514
20515 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
20516 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
20517 (MULTIBOOT_MAGIC2): Rename from this ...
20518 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
20519
20520 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20521
20522 * include/multiboot.h: Remove `<grub/types.h>'.
20523 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
20524 types. Update all users.
20525
20526 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20527
20528 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
20529 `couldn't' and `can not' by `cannot'.
20530 * commands/i386/pc/drivemap.c: Likewise.
20531 * disk/ata.c: Likewise.
20532 * disk/ieee1275/nand.c: Likewise.
20533 * fs/affs.c: Likewise.
20534 * fs/fat.c: Likewise.
20535 * fs/hfs.c: Likewise.
20536 * fs/hfsplus.c: Likewise.
20537 * fs/iso9660.c: Likewise.
20538 * fs/jfs.c: Likewise.
20539 * fs/minix.c: Likewise.
20540 * fs/reiserfs.c: Likewise.
20541 * fs/sfs.c: Likewise.
20542 * fs/udf.c: Likewise.
20543 * fs/ufs.c: Likewise.
20544 * fs/xfs.c: Likewise.
20545 * loader/powerpc/ieee1275/linux.c: Likewise.
20546 * loader/sparc64/ieee1275/linux.c: Likewise.
20547 * util/grub-probe.c: Likewise.
20548 * util/misc.c: Likewise.
20549
20550 2009-12-24 Carles Pina i Estany <carles@pina.cat>
20551
20552 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
20553 grub_errno calls.
20554 * commands/acpi.c: Likewise.
20555 * commands/blocklist.c: Likewise.
20556 * commands/efi/loadbios.c: Likewise.
20557 * commands/i386/pc/drivemap.c: Likewise.
20558 * commands/loadenv.c: Likewise.
20559 * commands/memrw.c: Likewise.
20560 * commands/password.c: Likewise.
20561 * commands/videotest.c: Likewise.
20562 * disk/ata.c: Likewise.
20563 * disk/ata_pthru.c: Likewise.
20564 * disk/dmraid_nvidia.c: Likewise.
20565 * disk/ieee1275/nand.c: Likewise.
20566 * disk/ieee1275/ofdisk.c: Likewise.
20567 * disk/loopback.c: Likewise.
20568 * disk/lvm.c: Likewise.
20569 * disk/mdraid_linux.c: Likewise.
20570 * disk/raid.c: Likewise.
20571 * disk/raid6_recover.c: Likewise.
20572 * disk/scsi.c: Likewise.
20573 * efiemu/main.c: Likewise.
20574 * efiemu/mm.c: Likewise.
20575 * efiemu/pnvram.c: Likewise.
20576 * efiemu/symbols.c: Likewise.
20577 * font/font.c: Likewise.
20578 * fs/cpio.c: Likewise.
20579 * fs/hfsplus.c: Likewise.
20580 * fs/iso9660.c: Likewise.
20581 * fs/jfs.c: Likewise.
20582 * fs/minix.c: Likewise.
20583 * fs/ntfs.c: Likewise.
20584 * fs/ntfscomp.c: Likewise.
20585 * fs/reiserfs.c: Likewise.
20586 * fs/ufs.c: Likewise.
20587 * fs/xfs.c: Likewise.
20588 * gettext/gettext.c: Likewise.
20589 * include/grub/auth.h: Likewise.
20590 * kern/elf.c: Likewise.
20591 * kern/file.c: Likewise.
20592 * kern/ieee1275/init.c: Likewise.
20593 * kern/ieee1275/mmap.c: Likewise.
20594 * kern/ieee1275/openfw.c: Likewise.
20595 * kern/powerpc/dl.c: Likewise.
20596 * kern/sparc64/dl.c: Likewise.
20597 * lib/arg.c: Likewise.
20598 * loader/i386/bsd.c: Likewise.
20599 * loader/i386/bsdXX.c: Likewise.
20600 * loader/i386/efi/linux.c: Likewise.
20601 * loader/i386/efi/xnu.c: Likewise.
20602 * loader/i386/ieee1275/linux.c: Likewise.
20603 * loader/i386/linux.c: Likewise.
20604 * loader/i386/multiboot.c: Likewise.
20605 * loader/i386/pc/linux.c: Likewise.
20606 * loader/i386/pc/multiboot2.c: Likewise.
20607 * loader/i386/xnu.c: Likewise.
20608 * loader/ieee1275/multiboot2.c: Likewise.
20609 * loader/macho.c: Likewise.
20610 * loader/machoXX.c: Likewise.
20611 * loader/multiboot2.c: Likewise.
20612 * loader/multiboot_loader.c: Likewise.
20613 * loader/powerpc/ieee1275/linux.c: Likewise.
20614 * loader/sparc64/ieee1275/linux.c: Likewise.
20615 * loader/xnu.c: Likewise.
20616 * loader/xnu_resume.c: Likewise.
20617 * mmap/i386/pc/mmap.c: Likewise.
20618 * normal/menu_viewer.c: Likewise.
20619 * partmap/acorn.c: Likewise.
20620 * partmap/amiga.c: Likewise.
20621 * partmap/apple.c: Likewise.
20622 * script/lexer.c: Likewise.
20623 * term/gfxterm.c: Likewise.
20624 * term/i386/pc/serial.c: Likewise.
20625 * term/i386/pc/vga.c: Likewise.
20626 * term/ieee1275/ofconsole.c: Likewise.
20627 * term/terminfo.c: Likewise.
20628 * video/bitmap.c: Likewise.
20629 * video/efi_gop.c: Likewise.
20630 * video/efi_uga.c: Likewise.
20631 * video/fb/video_fb.c: Likewise.
20632 * video/i386/pc/vbe.c: Likewise.
20633 * video/readers/tga.c: Likewise.
20634 * video/video.c: Likewise.
20635
20636 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
20637
20638 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
20639 * commands/lspci.c: Likewise.
20640 * commands/probe.c: Likewise.
20641 * commands/xnu_uuid.c: Likewise.
20642 * conf/i386-coreboot.rmk: Likewise.
20643 * conf/i386-efi.rmk: Likewise.
20644 * conf/i386-ieee1275.rmk: Likewise.
20645 * conf/i386-pc.rmk: Likewise.
20646 * conf/powerpc-ieee1275.rmk: Likewise.
20647 * conf/sparc64-ieee1275.rmk: Likewise.
20648 * conf/x86_64-efi.rmk: Likewise.
20649 * fs/i386/pc/pxe.c: Likewise.
20650 * gettext/gettext.c: Likewise.
20651 * include/grub/efi/graphics_output.h: Likewise.
20652 * include/grub/i386/pc/memory.h: Likewise.
20653 * kern/env.c: Likewise.
20654 * kern/i386/qemu/startup.S: Likewise.
20655 * lib/i386/pc/biosnum.c: Likewise.
20656 * lib/i386/relocator.c: Likewise.
20657 * lib/i386/relocator_asm.S: Likewise.
20658 * lib/relocator.c: Likewise.
20659 * loader/i386/bsd.c: Likewise.
20660 * loader/i386/multiboot.c: Likewise.
20661 * loader/i386/pc/chainloader.c: Likewise.
20662 * loader/i386/xnu.c: Likewise.
20663 * loader/xnu.c: Likewise.
20664 * normal/main.c: Likewise.
20665 * normal/menu_text.c: Likewise.
20666 * util/getroot.c: Likewise.
20667 * util/grub-mkconfig_lib.in: Likewise.
20668 * util/grub.d/00_header.in: Likewise.
20669 * util/i386/pc/grub-mkimage.c: Likewise.
20670 * util/mkisofs/eltorito.c: Likewise.
20671 * util/mkisofs/exclude.h: Likewise.
20672 * util/mkisofs/hash.c: Likewise.
20673 * util/mkisofs/iso9660.h: Likewise.
20674 * util/mkisofs/joliet.c: Likewise.
20675 * util/mkisofs/mkisofs.c: Likewise.
20676 * util/mkisofs/mkisofs.h: Likewise.
20677 * util/mkisofs/multi.c: Likewise.
20678 * util/mkisofs/name.c: Likewise.
20679 * util/mkisofs/rock.c: Likewise.
20680 * util/mkisofs/tree.c: Likewise.
20681 * util/mkisofs/write.c: Likewise.
20682 * video/efi_gop.c: Likewise.
20683
20684 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
20685
20686 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
20687 size counting.
20688
20689 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20690
20691 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
20692 * genmk.rb (class SCRIPT): Modify the target file instead of source.
20693
20694 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20695
20696 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
20697 (GRUB_MOD_INIT(memrw)): Update help line.
20698
20699 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20700
20701 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
20702 Use grub_extcmd_t. All users updated.
20703 (options): New variable.
20704 (grub_cmd_read): Restructure for readability. Support "-v" option.
20705 (grub_cmd_write): Restructure for readability.
20706
20707 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20708
20709 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
20710
20711 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20712
20713 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
20714 with the actual contents of the correspondending make variable.
20715 * util/grub-mkrescue.in (pkglib_DATA): New variable.
20716 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
20717 specifying `*.lst' and `efiemu??.o'
20718
20719 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20720
20721 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
20722 after function name.
20723 Noticed by Rene Engelhard <rene@debian.org>.
20724
20725 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20726
20727 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
20728 (options): New variable.
20729 (iospace): Likewise.
20730 (grub_lspci_iter): List IO spaces if "-i" was given.
20731 (grub_cmd_lspci): Parse options.
20732 (GRUB_MOD_INIT(lspci)): Use extcmd.
20733 (GRUB_MOD_FINI(lspci)): Likewise.
20734
20735 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20736
20737 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
20738 `function' keyword.
20739 Patch by Tony Mancill <tmancill@debian.org>.
20740
20741 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20742
20743 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
20744 (grub_uhci_portstatus): Likewise.
20745 (grub_uhci_portstatus): Add necessary delay.
20746 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
20747
20748 2009-12-21 Carles Pina i Estany <carles@pina.cat>
20749
20750 * commands/acpi.c (options): Fix capitalizations and/or full stops.
20751 (GRUB_MOD_INIT): Likewise.
20752 * commands/boot.c (GRUB_MOD_INIT): Likewise.
20753 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
20754 * commands/echo.c (options): Fix capitalizations and/or full stops.
20755 * commands/efi/loadbios.c (enable_rom_area): Likewise.
20756 (enable_rom_area): Likewise.
20757 (GRUB_MOD_INIT): Likewise.
20758 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20759 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
20760 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20761 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
20762 * commands/hexdump.c (options): Likewise.
20763 * commands/i386/cpuid.c (options): Likewise.
20764 (GRUB_MOD_INIT): Likewise.
20765 * commands/i386/pc/drivemap.c (options): Likewise.
20766 (GRUB_MOD_INIT): Likewise.
20767 * commands/i386/pc/halt (options): Likewise.
20768 (GRUB_MOD_INIT): Likewise.
20769 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20770 * commands/i386/pc/pxecmd.c (options): Likewise.
20771 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
20772 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
20773 * commands/keystatus.c (options): Likewise.
20774 (GRUB_MOD_INIT): Likewise.
20775 * commands/loadenv.c (options): Likewise.
20776 * commands/ls.c (options): Likewise.
20777 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20778 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20779 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20780 * commands/parttool.c (helpmsg): Likewise.
20781 * commands/probe.c (options): Likewise.
20782 * commands/read.c (GRUB_MOD_INIT): Likewise.
20783 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
20784 * commands/search.c (options): Likewise.
20785 * commands/sleep.c (options): Likewise.
20786 * commands/test.c (GRUB_MOD_INIT): Likewise.
20787 * commands/true.c (GRUB_MOD_INIT): Likewise.
20788 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
20789 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
20790 * lib/arg.c (help_options): Likewise.
20791 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
20792 `$(XGETTEXT)'.
20793 * po/POTFILES: Add `commands/loadenv.c'.
20794
20795 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
20796
20797 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
20798 instead of specifying them explicit.
20799
20800 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20801
20802 * NEWS: Add grub-probe support for GNU/Hurd.
20803
20804 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20805
20806 * NEWS: gettext was added after 1.97.
20807
20808 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20809
20810 * util/mkisofs/msdos_partition.h: New file (based on
20811 include/grub/msdos_partition.h).
20812 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
20813 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
20814 (ld_options, main): Recognize --protective-msdos-label.
20815 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
20816 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
20817 (padblock_write): If `use_protective_msdos_label' is set, patch a
20818 protective DOS-style label in the output image.
20819
20820 * util/grub-mkrescue.in: Use --protective-msdos-label.
20821
20822 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20823
20824 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
20825 boot.
20826
20827 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20828
20829 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
20830 variables.
20831 (ld_options, main): Recognize `--embedded-boot'.
20832 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
20833 declarations.
20834 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
20835 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
20836 (padblock_write): Likewise. Rewrite to support embedded boot image.
20837
20838 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
20839 for BIOS-based disk boot instead of only ElTorito.
20840
20841 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20842
20843 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
20844 build (not needed for bootstrap).
20845
20846 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20847
20848 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
20849 from i386-pc build (not needed for bootstrap).
20850 Rewrite a pair of strings.
20851
20852 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20853
20854 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
20855
20856 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
20857
20858 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
20859
20860 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20861
20862 * kern/env.c (grub_env_context_open): Mark exported variable for
20863 reexport.
20864
20865 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20866
20867 * kern/env.c (grub_env_export): Create nonexistent variables before
20868 exporting.
20869
20870 2009-12-20 Carles Pina i Estany <carles@pina.cat>
20871
20872 * include/grub/auth.h: Include `<grub/i18n.h>'.
20873 (GRUB_GET_PASSWORD): Gettextizze string.
20874 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
20875 menu_text.c.
20876 (grub_utf8_to_ucs4_alloc): Fix indentation.
20877 (grub_print_ucs4): Likewise.
20878 (grub_getstringwidth): Likewise.
20879 (print_message_indented): New declaration.
20880 * normal/auth.c: Include `<grub/i18n.h>'.
20881 (grub_auth_check_authentication): Gettexttize string.
20882 * normal/cmdline.c: Include `<grub/i18n.h>'.
20883 (grub_cmdline_get): Gettextizze.
20884 * normal/color.c: Include `<grub/i18n.h>'.
20885 (grub_parse_color_name_pair): Gettexttize strings.
20886 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
20887 string (use `print_message_indented').
20888 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
20889 `include/grub/normal.h'.
20890 (print_message_indented): Renamed to ...
20891 (grub_print_message_indented): ... this. Remove `static' qualifer (now
20892 used in normal/main.c).
20893 (print_message): Use `grub_print_message_indented' instead of
20894 `print_message_indented'.
20895 (print_timeout): Likewise.
20896 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
20897 (grub_normal_print_device_info): Gettexttize strings.
20898 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
20899
20900 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20901
20902 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
20903 of arguments. Return number of tokens and not arguments. All users
20904 updated.
20905
20906 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20907
20908 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
20909 non-MSDOS paritions.
20910
20911 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20912
20913 * include/grub/types.h (UNUSED): Removed since it conflicts with
20914 NetBSD headers. All users changed to direct __attribute__ ((unused)).
20915 Reported by Grégoire Sutre.
20916
20917 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20918
20919 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
20920 (grub_print_ucs4_alloc): Likewise.
20921 (grub_getstringwidth): Likewise.
20922 * normal/main.c (grub_normal_init_page): Gettextize version string.
20923 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
20924 (getstringwidth): Renamed to ...
20925 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
20926 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
20927 (grub_print_ucs4): Remove `static' qualifer (now used in
20928 normal/main.c).
20929 * po/POTFILES: Add normal/main.c.
20930
20931 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20932
20933 * normal/menu_text.c (STANDARD_MARGIN): New macro.
20934 (print_message_indented): Add `margin_left' and `margin_right'
20935 parameters.
20936 (print_message): Update `print_message_indented' calls. Adds '\n' to the
20937 strings.
20938 (print_timeout): Use `print_message_indented' to print the message.
20939 Deletes `second_stage' parameter.
20940 (run_menu): Update `print_timeout' calls.
20941
20942 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 Fix console palette on OpenFirmware.
20945
20946 * term/ieee1275/ofconsole.c (MAX): Removed.
20947 (colors): Redone based on VGA palette.
20948 (grub_ofconsole_setcolor): Discard brightness bit since only 8
20949 colors are supported.
20950 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
20951
20952 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20953
20954 Fix potential EfiEmu double prepare.
20955
20956 * efiemu/main.c (prepared): New variable
20957 (grub_efiemu_unload): Set prepare to '0'.
20958 (grub_efiemu_prepare): Return if already prepared. Set prepared.
20959
20960 set_virtual_address_map support.
20961
20962 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
20963 prototype.
20964 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
20965 prototype.
20966 (grub_efiemu_crc32): Likewise.
20967 (grub_efiemu_crc64): Likewise.
20968 (grub_efiemu_set_virtual_address_map): Likewise.
20969 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
20970 New definition.
20971 (grub_autoefi_set_virtual_address_map): Likewise.
20972 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
20973 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
20974 Restructure flow to accomodate it.
20975 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
20976 (grub_efiemu_crc): Recompute CRC32.
20977 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
20978 (efiemu_ptv_relocated): ... this. Made global. All users updated.
20979 * efiemu/symbols.c (relocated_handle): New variable.
20980 (grub_efiemu_free_syms): Free relocated_handle.
20981 (grub_efiemu_alloc_syms): Allocate relocated_handle.
20982 (grub_efiemu_write_sym_markers): New function.
20983 (grub_efiemu_set_virtual_address_map): Likewise.
20984
20985 Newer XNU parameters.
20986
20987 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
20988 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
20989 (grub_xnu_fill_devicetree): New prototype.
20990 (grub_xnu_heap_real_start): New variable.
20991 * loader/xnu.c (get_name_ptr): New function.
20992 (grub_xnu_load_driver): Fill namelen and name.
20993
20994 64-bit xnu support.
20995
20996 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
20997 and 'loader/macho64.c'.
20998 * conf/i386-pc.rmk: Likewise.
20999 * conf/x86_64-efi.rmk: Likewise.
21000 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
21001 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
21002 * include/grub/macho.h (grub_macho_segment64): New structure.
21003 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
21004 (grub_macho_size32): ... to this.
21005 (grub_macho32_get_entry_point): Renamed from ...
21006 (grub_macho_get_entry_point32): ... to this.
21007 (grub_macho_contains_macho64): New prototype.
21008 (grub_macho_size64): Likewise.
21009 (grub_macho_get_entry_point64): Likewise.
21010 (grub_macho32_load): Renamed from ...
21011 (grub_macho_load32): ... to this.
21012 (grub_macho32_filesize): Renamed from ...
21013 (grub_macho_filesize32): ... to this.
21014 (grub_macho32_readfile): Renamed from ...
21015 (grub_macho_readfile32): ... to this.
21016 (grub_macho_filesize64): New prototype.
21017 (grub_macho_readfile64): Likewise.
21018 (grub_macho_parse32): Likewise.
21019 (grub_macho_parse64): Likewise.
21020 * loader/macho.c: Split into ...
21021 * loader/machoXX.c: ... and this. Replace 32 with XX.
21022 * loader/macho32.c: New file.
21023 * loader/macho64.c: Likewise.
21024 * loader/xnu.c (grub_xnu_is_64bit): New variable.
21025 (grub_cmd_xnu_kernel): Make 32-bit only.
21026 (grub_cmd_xnu_kernel64): New function.
21027 (grub_xnu_load_driver): Support Mach-O 64.
21028 (grub_cmd_xnu_mkext): Likewise.
21029 * util/grub.d/30_os-prober.in (osx_entry): New function.
21030 Generate entries for 64-bit boot too.
21031
21032 Eliminate ad-hoc tree format in XNU and EfiEmu.
21033
21034 * efiemu/main.c (grub_efiemu_prepare): Update comment.
21035 * efiemu/pnvram.c: Rewritten to use environment variables.
21036 All users updated.
21037
21038 Inline utf16_to_utf8.
21039
21040 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
21041 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
21042 All users updated.
21043 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
21044
21045 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
21046 * commands/usbtest.c (grub_usb_get_string): ... move here.
21047 (usb_print_str): Fix error handling.
21048 * include/grub/usb.h (grub_usb_get_string): Remove.
21049
21050 UTF-8 to UTF-16 transformation.
21051
21052 * conf/common.rmk (pkglib_MODULES): Add charset.mod
21053 (charset_mod_SOURCES): New variable.
21054 (charset_mod_CFLAGS): Likewise.
21055 (charset_mod_LDFLAGS): Likewise.
21056 * include/grub/utf.h: New file.
21057 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
21058
21059 Support for device properties.
21060
21061 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
21062 (grub_xnu_devprop_device_header): Likewise.
21063 (grub_xnu_devprop_device_descriptor): Likewise.
21064 (grub_xnu_devprop_add_device): New prototype.
21065 (grub_xnu_devprop_remove_device): Likewise.
21066 (grub_xnu_devprop_remove_property): Likewise.
21067 (grub_xnu_devprop_add_property_utf8): Likewise.
21068 (grub_xnu_devprop_add_property_utf16): Likewise.
21069 (grub_cpu_xnu_init): Likewise.
21070 (grub_cpu_xnu_fini): Likewise.
21071 (grub_cpu_xnu_unload): Likewise.
21072 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
21073 (property_descriptor): Likewise.
21074 (devices): New variable.
21075 (grub_xnu_devprop_remove_property): New function.
21076 (grub_xnu_devprop_add_device): Likewise.
21077 (grub_xnu_devprop_remove_device): Likewise.
21078 (grub_xnu_devprop_add_property): Likewise.
21079 (grub_xnu_devprop_add_property_utf8): Likewise.
21080 (grub_xnu_devprop_add_property_utf16): Likewise.
21081 (hextoval): Likewise.
21082 (grub_cpu_xnu_fill_devprop): Likewise.
21083 (grub_cmd_devprop_load): Likewise.
21084 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
21085 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
21086 (cmd_devprop_load): New variable.
21087 (grub_cpu_xnu_init): New function.
21088 (grub_cpu_xnu_fini): Likewise.
21089 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
21090 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
21091 (grub_cmd_xnu_devtree): Likewise.
21092 (hextoval): New function.
21093 (unescape): Likewise.
21094 (grub_xnu_fill_devicetree): Likewise.
21095
21096 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
21097 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
21098
21099 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21100
21101 Workaround for broken ATI VBE.
21102
21103 * video/i386/pc/vbe.c (last_set_mode): New variable.
21104 (grub_vbe_set_video_mode): Set 'last_set_mode'.
21105 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
21106 (grub_video_vbe_setup): Don't check for reserved flag.
21107
21108 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
21109
21110 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
21111 the `find' command.
21112
21113 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
21114
21115 UUID support for HFS.
21116
21117 * fs/hfs.c (grub_hfs_uuid): New function.
21118 (grub_hfs_fs): New value .uuid.
21119 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
21120
21121 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
21122
21123 Fix a segfault with parsing unknown long options.
21124
21125 * util/grub-mkrelpath.c (options): Zero terminate it.
21126
21127 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21128
21129 * include/grub/misc.h (grub_puts): New declaration.
21130 (grub_puts_): Likewise.
21131 * kern/misc.c (grub_puts): New definition.
21132 (grub_puts_): Likewise.
21133
21134 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
21135
21136 * util/grub-probe.c (probe): Improve error message.
21137
21138 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
21139
21140 * loader/i386/multiboot_elfxx.c
21141 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
21142 initialization.
21143
21144 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21145
21146 Relocator framework
21147
21148 * loader/i386/xnu_helper.S: Removed. All users updated.
21149 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
21150 (relocator_mod_SOURCES): New variable.
21151 (relocator_mod_CFLAGS): Likewise.
21152 (relocator_mod_LDFLAGS): Likewise.
21153 (relocator_mod_ASFLAGS): Likewise.
21154 * conf/x86_64.rmk: Likewise.
21155 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
21156 (grub_multiboot_payload_entry_offset): Likewise.
21157 (grub_multiboot_forward_relocator): Likewise.
21158 (grub_multiboot_forward_relocator_end): Likewise.
21159 (grub_multiboot_backward_relocator): Likewise.
21160 (grub_multiboot_backward_relocator_end): Likewise.
21161 (grub_multiboot_payload_eip): New variable.
21162 (grub_multiboot_payload_orig): Likewise.
21163 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
21164 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
21165 * include/grub/i386/memory.h
21166 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
21167 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
21168 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
21169 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
21170 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
21171 * include/grub/i386/relocator.h: New file.
21172 * include/grub/x86_64/relocator.h: Likewise.
21173 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
21174 (XNU_RELOCATOR): New macro.
21175 (grub_xnu_launcher_start): Remove.
21176 (grub_xnu_launcher_end): Likewise.
21177 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
21178 (grub_xnu_heap_real_start): Remove.
21179 (grub_xnu_heap_start): Change to void *. All users updated.
21180 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
21181 * lib/i386/relocator.c: New file.
21182 * lib/i386/relocator_asm.S: Likewise.
21183 * lib/i386/relocator_backward.S: Likewise.
21184 * lib/mips/relocator.c: Likewise.
21185 * lib/mips/relocator_asm.S: Likewise.
21186 * lib/relocator.c: Likewise.
21187 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
21188 (entry): Removed.
21189 (playground): Likewise.
21190 (grub_multiboot_payload_orig): New variable.
21191 (grub_multiboot_payload_dest): Likewise.
21192 (grub_multiboot_payload_size): Likewise.
21193 (grub_multiboot_payload_eip): Likewise.
21194 (grub_multiboot_payload_esp): Likewise.
21195 (grub_multiboot_boot): Use grub_relocator32_boot.
21196 (grub_multiboot_unload): Free relocators.
21197 (grub_multiboot): Setup stack. Use relocators.
21198 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
21199 (grub_multiboot_load_elfXX): Use relocators.
21200 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
21201 (grub_multiboot_payload_size): Likewise.
21202 (grub_multiboot_payload_dest): Likewise.
21203 (grub_multiboot_payload_entry_offset): Likewise.
21204 (grub_multiboot_forward_relocator): Likewise.
21205 (grub_multiboot_backward_relocator): Likewise.
21206 (grub_multiboot_real_boot): Likewise.
21207 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
21208 (grub_xnu_entry_point): Likewise.
21209 (grub_xnu_arg1): Likewise.
21210 (grub_xnu_stack): Likewise.
21211 (grub_xnu_launch): Removed.
21212 (grub_xnu_boot_resume): New function.
21213 (grub_xnu_boot): Use relocators.
21214 * loader/i386/xnu_helper.S: Removed.
21215 * loader/xnu.c (grub_xnu_heap_start): New variable.
21216 (grub_xnu_heap_size): Likewise.
21217 (grub_xnu_heap_malloc): Use relocators.
21218 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
21219
21220 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21221
21222 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
21223 anything.
21224
21225 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21226
21227 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
21228 GRUB_ERR_NONE before calling grub_env_set.
21229
21230 2009-12-12 Robert Millan <rmh@aybabtu.com>
21231
21232 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
21233 * genmk.rb (video): New variable.
21234 (CLEANFILES, VIDEOFILES): Add #{video}.
21235 (#{video}): New target rule.
21236 * genvideolist.sh: New file.
21237 * Makefile.in (pkglib_DATA): Add video.lst.
21238 (video.lst): New target rule.
21239 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
21240 `video.lst'.
21241 * util/grub.d/30_os-prober.in: Replace `vbe' with
21242 ${GRUB_VIDEO_BACKEND}.
21243
21244 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
21245
21246 * THANKS: Add David Miller.
21247
21248 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
21249
21250 libpciaccess support.
21251
21252 * Makefile.in (LIBPCIACCESS): New variable.
21253 (enable_grub_emu_pci): Likewise.
21254 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
21255 util/pci.c and commands/lspci.c.
21256 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
21257 * configure.ac (grub-emu-pci): New option.
21258 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
21259 (grub_pci_device_unmap_range): Likewise.
21260 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
21261 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
21262 (grub_pci_address_t) [!GRUB_UTIL]: New type.
21263 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
21264 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
21265 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
21266 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
21267 * include/grub/pciutils.h: New file.
21268 * util/pci.c: Likewise.
21269
21270 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
21271
21272 * util/misc.c: Don't include <errno.h> twice.
21273
21274 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
21275
21276 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
21277 name in an error message.
21278 (grub_biosdisk_rw): Likewise.
21279
21280 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21281
21282 Eliminate NTFS 4Gib barrier.
21283
21284 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
21285 (read_run_data): Likewise.
21286 (grub_ntfs_read_run_list): Likewise.
21287 (grub_ntfs_read_block): Likewise.
21288 (grub_ntfs_iterate_dir): Likewise.
21289 (read_mft): Likewise.
21290 (read_data): Likewise.
21291 Use COM_LOG_LEN.
21292 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
21293 to avoid 64-bit division
21294 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
21295 (grub_ntfs_rlst): Use grub_disk_addr_t.
21296
21297 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21298
21299 Eliminate grub-fstest 4Gib barrier.
21300
21301 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
21302 (read_file): Fix error reporting.
21303
21304 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21305
21306 Eliminate hexdump 4Gib barrier.
21307
21308 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
21309 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
21310
21311 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21312
21313 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
21314 Fixes amarsh bug.
21315
21316 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
21317
21318 Remove miscellaneous files in distclean target.
21319
21320 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
21321
21322 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
21323
21324 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
21325 if they're already set. This resolves the conflict between my
21326 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
21327 fixing the --grub-probe option again.
21328 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
21329 change on 2009-10-06, so that we now once again source
21330 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
21331
21332 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
21333
21334 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
21335 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
21336 `util/devicemap.c'.
21337
21338 2009-12-08 Carles Pina i Estany <carles@pina.cat>
21339
21340 * include/grub/misc.h (grub_printf_): New declaration.
21341 * kern/misc.c (grub_printf_): New definition.
21342 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
21343 instead of `grub_printf' and `_'.
21344 * normal/menu_entry.c (store_completion): Likewise.
21345 (run): Likewise.
21346 (grub_menu_entry_run): Likewise.
21347 * normal/menu_text.c (grub_wait_after_message): Likewise.
21348 (notify_booting): Likewise.
21349 (notify_fallback): Likewise.
21350 (notify_execution_failure): Likewise.
21351
21352 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
21353
21354 * configure.ac: Check for vasprintf.
21355 * util/misc.c (asprintf): Move allocation from here ...
21356 (vasprintf): ... to here. New function.
21357 (xasprintf): New function.
21358 * include/grub/util/misc.h (vasprintf, xasprintf): Add
21359 prototypes.
21360 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21361 * util/grub-mkfont.c (write_font): Likewise.
21362 * util/grub-probe.c (probe): Likewise.
21363 * util/hostdisk.c (make_device_name): Likewise.
21364
21365 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
21366
21367 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
21368 anything even prefixed with 'cdrom' as a cdrom.
21369
21370 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
21371
21372 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
21373 mount points.
21374
21375 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21376
21377 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
21378 grub_gettext_msg_list.
21379 (grub_gettext_gettranslation_from_position): Return const char *
21380 and not char *.
21381 (grub_gettext_translate): Add the translated strings into a list,
21382 returns from the list if existing there.
21383 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
21384 (grub_gettext_delete_list): Delete the list.
21385 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
21386 lang environment variable is changed.
21387 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
21388
21389 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21390
21391 Rename kernel.mod to kernel.img.
21392
21393 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
21394 (kernel_mod_EXPORTS): Rename to ...
21395 (kernel_img_EXPORTS): ... this.
21396 (kernel_mod_SOURCES): Rename to ...
21397 (kernel_img_SOURCES): ... this.
21398 (kernel_mod_HEADERS): Rename to ...
21399 (kernel_img_HEADERS): ... this. All users updated.
21400 (kernel_mod_CFLAGS): Rename to ...
21401 (kernel_img_CFLAGS): ... this.
21402 (kernel_mod_ASFLAGS): Rename to ...
21403 (kernel_img_ASFLAGS): ... this.
21404 (kernel_mod_LDFLAGS): Rename to ...
21405 (kernel_img_LDFLAGS): ... this.
21406 * conf/x86_64-efi.rmk: Likewise.
21407 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
21408 (read_kernel_image): ... this. All users updated.
21409 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
21410
21411 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21412
21413 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
21414 (print_spaces): New function.
21415 (grub_print_ucs4): New function.
21416 (getstringwidth): New function.
21417 (print_message_indented): New function.
21418 (print_message): Gettexttize strings using print_message_indented.
21419 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
21420 width.
21421 (get_entry_number): Gettextize and uses dynamic terminal width.
21422 (notify_booting, notify_fallback, notify_execution_failure):
21423 Gettextize.
21424 * normal/menu_entry.c (store_completion): Cleanup the gettextized
21425 string.
21426 (run): Likewise.
21427 (grub_menu_entry_run): Likewise.
21428 * PO/POTFILES: Add normal/menu_entry.c.
21429
21430 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21431
21432 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
21433
21434 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21435
21436 * util/grub-install.in: Install gettext .mo files.
21437 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
21438
21439 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21440
21441 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
21442 grub_dprintf.
21443
21444 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
21445
21446 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
21447 non-firmware-dependant one in realmode.S takes precedence.
21448
21449 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
21450
21451 * commands/halt.c: Replace misc arch-specific headers with
21452 `<grub/misc.h>'.
21453 * commands/reboot.c: Likewise.
21454 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
21455 `<grub/misc.h>'.
21456 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
21457 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
21458 (kernel_img_SOURCES): ... to here.
21459
21460 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
21461 * include/grub/i386/pc/init.h: Likewise.
21462 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21463 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21464
21465 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
21466
21467 * include/grub/i386/halt.h: Remove.
21468 * include/grub/i386/reboot.h: Likewise.
21469
21470 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
21471
21472 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
21473
21474 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
21475 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
21476 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
21477 "progname.h"
21478 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21479 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21480 (usage): Add missing comma in printf.
21481
21482 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
21483
21484 Use the same reboot approach on i386 coreboot and qemu as we do on
21485 BIOS.
21486
21487 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
21488 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
21489 * kern/i386/reboot.c: Remove.
21490 * include/grub/i386/reboot.h (grub_reboot): Export function.
21491 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
21492 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
21493 0xf000:0xfff0 instead of 0xffff:0x0000.
21494 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
21495 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
21496
21497 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
21498
21499 Fix $srcdir != $objdir build.
21500
21501 * Makefile.in (po/%.po): Rewrite as ...
21502 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
21503
21504 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21505
21506 Fix GNU/Hurd grub-install crash.
21507 * util/grub-probe.c (probe): Try to access `path' only when it is not
21508 NULL.
21509
21510 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21511
21512 Correct module naming.
21513
21514 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21515 (GRUB_MOD_INIT(efi_uga)): ... to this
21516 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21517 (GRUB_MOD_FINI(efi_uga)): ... to this
21518 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21519 (GRUB_MOD_INIT(efi_gop)): ... to this
21520 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21521 (GRUB_MOD_FINI(efi_gop)): ... to this
21522
21523 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
21524
21525 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
21526 translatable.
21527 (usage): Translate `arg' strings using gettext().
21528 Thanks to Jordi Mallach for the suggestion.
21529
21530 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21531
21532 GOP support. Based on patch from Bean
21533 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21534
21535 * video/efi_gop.c: New file.
21536 * include/grub/efi/graphics_output.h: Likewise.
21537 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
21538 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21539 variables.
21540 * conf/x86_64-efi.rmk: Likewise.
21541
21542 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21543
21544 Rename efi_fb to efi_uga.
21545
21546 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21547 'efi_uga.mod'.
21548 (efi_fb_mod_SOURCES): Rename this ...
21549 (efi_uga_mod_SOURCES): ... to this.
21550 (efi_fb_mod_CFLAGS): Rename this ...
21551 (efi_uga_mod_CFLAGS): ... to this.
21552 (efi_fb_mod_LDFLAGS): Rename this ...
21553 (efi_uga_mod_LDFLAGS): ... to this.
21554 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21555 'efi_uga.mod'.
21556 (efi_fb_mod_SOURCES): Rename this ...
21557 (efi_uga_mod_SOURCES): ... to this.
21558 (efi_fb_mod_CFLAGS): Rename this ...
21559 (efi_uga_mod_CFLAGS): ... to this.
21560 (efi_fb_mod_LDFLAGS): Rename this ...
21561 (efi_uga_mod_LDFLAGS): ... to this.
21562 * video/efi_fb.c: Move this ...
21563 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
21564
21565 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21566
21567 * po/README: New file. Explain our PO file workflow.
21568
21569 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21570
21571 * po/ChangeLog: Remove. Move relevant entries back to ...
21572 * ChangeLog: ... here.
21573 * po/ca.po: Remove (now handled by TLP).
21574 * po/id.po: Likewise.
21575 * po/zh_CN.po: Likewise.
21576 * Makefile.in (LINGUAS): Initialize in a way that supports
21577 empty set.
21578
21579 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21580
21581 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
21582 reliing on po/LINGUAS.
21583 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
21584 (po/%.po): ... this.
21585
21586 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21587
21588 * util/i386/efi/grub-mkimage.c: Include "progname.h".
21589 (main): Use `program_name' instead of nonexistent `progname'.
21590
21591 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21592
21593 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21594 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
21595
21596 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21597
21598 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
21599 commit.
21600 * conf/i386-efi.rmk: Likewise.
21601 * conf/i386-ieee1275.rmk: Likewise.
21602 * conf/powerpc-ieee1275.rmk: Likewise.
21603 * conf/sparc64-ieee1275.rmk: Likewise.
21604 * conf/x86_64-efi.rmk: Likewise.
21605
21606 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21607
21608 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
21609
21610 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21611
21612 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
21613
21614 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21615
21616 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
21617 (grub_mkdevicemap_SOURCES): New variable.
21618 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
21619 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
21620 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
21621 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
21622 (grub_mkdevicemap_SOURCES): Remove.
21623 * conf/i386-efi.rmk: Likewise.
21624 * conf/i386-ieee1275.rmk: Likewise.
21625 * conf/i386-pc.rmk: Likewise.
21626 * conf/powerpc-ieee1275.rmk: Likewise.
21627 * conf/sparc64-ieee1275.rmk: Likewise.
21628 * conf/x86_64-efi.rmk: Likewise.
21629 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
21630 (usage): Fix strings to use `program_name'.
21631 (main): Initialize gettext.
21632 * util/grub-editenv.c: Likewise.
21633 * util/grub-emu.c: Likewise.
21634 * util/grub-fstest.c: Likewise.
21635 * util/grub-mkdevicemap.c: Likewise.
21636 * util/grub-mkfont.c: Likewise.
21637 * util/grub-mkrelpath.c: Likewise.
21638 * util/grub-pe2elf.c: Likewise.
21639 * util/grub-probe.c: Likewise.
21640 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
21641 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21642 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21643
21644 * util/misc.c: Include `"progname.h"'.
21645 (progname): Remove variable.
21646 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
21647
21648 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21649
21650 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
21651 printf and print a newline after the menuentry header line.
21652 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21653
21654 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21655
21656 autoconf >= 2.60 support $(localedir).
21657
21658 * INSTALL: Note that autoconf 2.60 is required.
21659 * configure.ac (AC_PREREQ): Bump to 2.60.
21660 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
21661 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21662
21663 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
21664
21665 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
21666 aclocal is run.
21667
21668 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21669
21670 * normal/main.c (grub_normal_read_line): Fix off-by-one
21671 buffer overflow.
21672
21673 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21674
21675 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
21676 "parser.grub" in grub_command_execute() call.
21677
21678 2009-11-24 Carles Pina i Estany <carles@pina.cat>
21679
21680 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
21681 * conf/i386-efi.rmk: Likewise.
21682 * conf/i386-ieee1275.rmk: Likewise.
21683 * conf/i386-pc.rmk: Likewise.
21684 * conf/powerpc-ieee1275.rmk: Likewise.
21685 * conf/sparc64-ieee1275.rmk: Likewise.
21686 * conf/x86_64-efi.rmk: Likewise.
21687 * gettext/gettex.c: Include <grub/i18n.h>.
21688 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
21689 here ...
21690 * include/grub/i18n.h: ... to here
21691 * include/grub/i18n.h: ... to here.
21692 * kern/misc.c: Include <grub/i18n.h>
21693 (grub_gettext_dummy): Move above user.
21694
21695 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21696
21697 * util/Makefile.in (install-local): Convert a `for' into a normal
21698 shell expansion.
21699
21700 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
21701
21702 * autogen.sh: Add automake call.
21703 * config.guess: Remove.
21704 * config.sub: Likewise.
21705 * install-sh: Likewise.
21706
21707 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21708
21709 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
21710
21711 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21712
21713 * util/Makefile.in (install-local): Convert a make `$(foreach)'
21714 function to a normal shell `for'.
21715
21716 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21717
21718 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21719
21720 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21721
21722 * util/grub-mkrelpath.c: New file.
21723 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
21724 (grub_mkrelpath_SOURCES): New variable.
21725 * include/grub/util/misc.h: New function prototype.
21726 * util/misc.c (make_system_path_relative_to_its_root): New function.
21727
21728 * util/grub-mkconfig_lib.in (bindir): New variable.
21729 (grub_mkrelpath): Likewise.
21730 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
21731
21732 * util/probe.c (probe): Make the file path relative to its root.
21733 Change a info message to use the GRUB path. Enable again the
21734 check if we can read the file with GRUB facilities.
21735
21736 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
21737 to its root.
21738
21739 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21740
21741 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
21742 platform.
21743
21744 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21745
21746 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
21747 strncmp().
21748
21749 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21750
21751 * util/getroot.c (grub_util_is_dmraid): New function.
21752 (grub_util_get_dev_abstraction): Treat dmraid and multipath
21753 devices as normal ones, not as LVM.
21754
21755 2009-11-23 Carles Pina i Estany <carles@pina.cat>
21756
21757 * conf/common.rmk: Add grub-gettext_lib target and updates
21758 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
21759 LDFLAGS.
21760 * gettext/gettext.c: New file. (Reads mo files).
21761 * include/grub/file.h (grub_file_pread): New prototype.
21762 * include/grub/i18n.h (_): New prototype.
21763 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
21764 prototypes.
21765 * kern/misc.c (grub_gettext_dummy): New function.
21766 * normal/menu_text.c: Include <grub/i18n.h>.
21767 * normal/menu_text.c (print_timeout): Gettexttize string.
21768 * normal/menu_text.c (print_message): Gettexttize string.
21769 * po/POTFILES: Add `normal/menu_text.c'.
21770 * po/ca.po: Add new translations.
21771 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
21772 gettext module and defines locale_dir and lang in grub.cfg.
21773 * NEWS: Add gettext support.
21774
21775 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21776
21777 * util/hostdisk.c: Include `<grub/i18n.h>'.
21778 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
21779 (make_device_name): Rewrite using asprintf.
21780 (convert_system_partition_to_system_disk): Replace 0 with NULL.
21781 (find_system_device): If a device is not found, generate one just
21782 by reusing the OS path name.
21783 (read_device_map): Make it permissible for device.map not to exist.
21784
21785 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21786
21787 * script/sh/execute.c: Move from here ...
21788 * script/execute.c: ... to here. Update all users.
21789 * script/sh/function.c: Move from here ...
21790 * script/function.c: ... to here. Update all users.
21791 * script/sh/lexer.c: Move from here ...
21792 * script/lexer.c: ... to here. Update all users.
21793 * script/sh/main.c: Move from here ...
21794 * script/main.c: ... to here. Update all users.
21795 * script/sh/parser.y: Move from here ...
21796 * script/parser.y: ... to here. Update all users.
21797 * script/sh/script.c: Move from here ...
21798 * script/script.c: ... to here. Update all users.
21799
21800 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21801
21802 * configure.ac: Detect all `emu' platforms. Define
21803 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
21804 --enable-grub-emu logic. Disable include/grub/machine
21805 symlink on `emu' platforms.
21806
21807 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
21808 * gensymlist.sh.in: Likewise.
21809
21810 * include/grub/i386/coreboot/machine.h: Remove file.
21811 * include/grub/i386/efi/machine.h: Likewise.
21812 * include/grub/i386/ieee1275/machine.h: Likewise.
21813 * include/grub/i386/pc/machine.h: Likewise.
21814 * include/grub/i386/qemu/machine.h: Likewise.
21815 * include/grub/powerpc/ieee1275/machine.h: Likewise.
21816 * include/grub/sparc64/ieee1275/machine.h: Likewise.
21817 * include/grub/x86_64/efi/machine.h: Likewise.
21818
21819 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
21820 * commands/halt.c: Likewise.
21821 * commands/reboot.c: Likewise.
21822 * include/grub/autoefi.h: Likewise.
21823 * include/grub/i386/at_keyboard.h: Likewise.
21824 * include/grub/i386/kernel.h: Likewise.
21825 * include/grub/i386/loader.h: Likewise.
21826 * include/grub/i386/pc/memory.h: Likewise.
21827 * kern/dl.c: Likewise.
21828 * kern/i386/coreboot/init.c: Likewise.
21829 * loader/i386/bsd.c: Likewise.
21830 * loader/i386/linux.c: Likewise.
21831 * loader/multiboot_loader.c: Likewise.
21832 * term/i386/pc/serial.c: Likewise.
21833 * term/usb_keyboard.c: Likewise.
21834
21835 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
21836 `<grub/machine/machine.h>'
21837 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
21838 * util/misc.c: Remove `<grub/machine/machine.h>' and
21839 `<grub/machine/time.h>'.
21840
21841 * Makefile.in (enable_grub_emu): Remove variable.
21842 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
21843
21844 * conf/any-emu.rmk: New file.
21845 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
21846 (grub_emu_init.c): Move from here ...
21847 * conf/any-emu.rmk: ... to here.
21848
21849 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
21850 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
21851 * conf/any-emu.rmk: ... to here.
21852
21853 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21854
21855 * include/grub/parser.h (grub_parser_register): Document need
21856 of `name' parameter.
21857 * normal/main.c (grub_normal_read_line): Simplify prompt string.
21858 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
21859 "sh" to "grub".
21860
21861 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21862
21863 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
21864 `$(XGETTEXT)'.
21865 * include/grub/i18n.h (N_): New macro.
21866 * util/mkisofs/mkisofs.h: Likewise.
21867 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
21868 around N_().
21869 (usage): Use gettext() to translate help strings when printing them.
21870
21871 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21872
21873 Based on patch from Bean
21874 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21875
21876 * video/efi_fb.c: New file.
21877 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
21878 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21879 variables.
21880 * conf/x86_64-efi.rmk: Likewise.
21881
21882 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
21883
21884 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
21885 * util/i386/pc/grub-setup.c: Likewise.
21886
21887 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21888
21889 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
21890 <hurd/fs.h>
21891 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
21892 file_get_storage_info to implement grub_guess_root_device.
21893
21894 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21895
21896 * Makefile.in (target): Use make's builtin $(shell) function
21897 instead of calling directly $(SHELL) to create the locale directories,
21898 inside the $(foreach) function.
21899
21900 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21901
21902 * util/grub-mkrescue.in: Print an error and usage if output option
21903 has not been given.
21904
21905 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21906
21907 Patch from Loïc Minier <loic.minier@ubuntu.com>.
21908 * util/grub.d/30_os-prober.in: Cope with Linux entries where
21909 root and /boot are on different devices.
21910
21911 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21912
21913 Fix build for srcdir != objdir.
21914
21915 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
21916 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
21917 $(srcdir).
21918 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
21919 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
21920 reference for input.
21921
21922 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21923
21924 * util/grub-mkrescue.in: Use source directory direcly (without copiing
21925 or hardlinking it). Remove -J option, Joliet is not compatible with
21926 multiple source directories.
21927
21928 2009-11-21 Carles Pina i Estany <carles@pina.cat>
21929 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21930
21931 * util/grub-mkrescue.in: Recognize `--override-directory' option.
21932 (process_input_dir): New function. Process an arbitrary input
21933 directory.
21934 Misc adjustments to support both "override mode" and system-wide mode.
21935
21936 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21937
21938 * configure.ac (UNIFONT_BDF): Rename to ...
21939 (FONT_SOURCE): ... this. Update all users.
21940
21941 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21942
21943 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
21944 to the list of unifont files to look for.
21945
21946 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21947
21948 Patch from Joe Auricchio <jauricchio@gmail.com>
21949 * commands/minicmd.c (grub_mini_cmd_clear): New function.
21950 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
21951 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
21952
21953 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21954
21955 * Makefile.in (install-local): Add a missing backslash.
21956
21957 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21958
21959 * include/grub/x86_64/io.h: New file.
21960
21961 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21962
21963 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
21964 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
21965 Include `"progname.h"'.
21966 (main): Initialize gettext.
21967 * util/i386/pc/grub-setup.c: Gettexttize.
21968 * util/i386/pc/grub-mkimage.c: Likewise.
21969
21970 * Makefile.in (po/*.po): Redefine as ...
21971 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
21972
21973 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
21974
21975 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21976
21977 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
21978 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
21979 (program_name): Remove.
21980 (main): Initialize gettext support.
21981 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
21982 Include `<libintl.h>'.
21983 (_): New macro.
21984
21985 * util/mkisofs/eltorito.c: Gettexttize.
21986 * util/mkisofs/joliet.c: Likewise.
21987 * util/mkisofs/mkisofs.c: Likewise.
21988 * util/mkisofs/multi.c: Likewise.
21989 * util/mkisofs/rock.c: Likewise.
21990 * util/mkisofs/tree.c: Likewise.
21991 * util/mkisofs/write.c: Likewise.
21992
21993 * po/POTFILES: Update with new files.
21994
21995 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21996
21997 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
21998 * util/mkisofs/iso9660.h: Likewise.
21999 * util/mkisofs/joliet.c: Likewise.
22000 * util/mkisofs/mkisofs.c: Likewise.
22001 * util/mkisofs/mkisofs.h: Likewise.
22002 * util/mkisofs/rock.c: Likewise.
22003 * util/mkisofs/tree.c: Likewise.
22004 * util/mkisofs/write.c: Likewise.
22005
22006 * util/mkisofs/eltorito.c (rcsid): Remove.
22007 * util/mkisofs/hash.c: Likewise.
22008 * util/mkisofs/joliet.c: Likewise.
22009 * util/mkisofs/name.c: Likewise.
22010 * util/mkisofs/rock.c: Likewise.
22011 * util/mkisofs/tree.c: Likewise.
22012 * util/mkisofs/write.c: Likewise.
22013
22014 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22015
22016 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
22017 instead of static allocation.
22018 * util/mkisofs/match.h: Likewise.
22019
22020 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22021
22022 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
22023 and `util/grub.d/10_linux.in'.
22024 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
22025 translatable Shell files.
22026
22027 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22028
22029 * Makefile.in ($(srcdir)/aclocal.m4): New target.
22030
22031 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22032
22033 * INSTALL: Document Automake is needed for bootstrap.
22034 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
22035 * util/grub.d/10_kfreebsd.in (bindir): New variable.
22036 Add gettext initialization.
22037 (kfreebsd_entry): Make menuentry output translatable.
22038
22039 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22040
22041 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
22042 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
22043 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
22044 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
22045 (LINGUAS): Auto-generate using `po/LINGUAS'.
22046 * po/LINGUAS: New file.
22047
22048 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22049
22050 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
22051 other things).
22052 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
22053 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
22054 bindtextdomain() calls for gettext initialization.
22055
22056 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22057
22058 * gnulib/progname.c: New file (imported from Gnulib).
22059 * gnulib/progname.h: Likewise.
22060 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
22061 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
22062 (usage): Replace `progname' with `program_name'.
22063 (main): Use set_program_name() for program name initialization.
22064
22065 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22066
22067 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
22068 from here ...
22069 * Makefile.in (CPPFLAGS): ... to here.
22070
22071 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22072
22073 * aclocal.m4: Move from here ...
22074 * acinclude.m4: ... to here.
22075 * autogen.sh: Add call to `aclocal'.
22076 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
22077
22078 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22079
22080 * Makefile.in (CLEANFILES): Add `po/*.mo'.
22081 (LINGUAS): New variable.
22082 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
22083 (install-local): Install MO files.
22084 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
22085 * include/grub/i18n.h: New file.
22086 * po/POTFILES: New file.
22087 * po/ca.po: New file.
22088 * util/grub.d/10_linux.in (bindir): New variable.
22089 Add gettext initialization.
22090 (linux_entry): Make menuentry output translatable.
22091 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
22092 (usage): Make --help output translatable.
22093 (main): Initialize gettext.
22094
22095 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22096
22097 * import_gcry.py: New file (written by Vladimir with minor
22098 adjustments).
22099 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
22100 ciphers.
22101 * INSTALL: Document that Python is required for bootstrap.
22102
22103 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22104
22105 Import ciphers from libgcrypt 1.4.4.
22106
22107 * lib/libgcrypt/cipher/ChangeLog
22108 * lib/libgcrypt/cipher/ac.c
22109 * lib/libgcrypt/cipher/arcfour.c
22110 * lib/libgcrypt/cipher/bithelp.h
22111 * lib/libgcrypt/cipher/blowfish.c
22112 * lib/libgcrypt/cipher/camellia-glue.c
22113 * lib/libgcrypt/cipher/camellia.c
22114 * lib/libgcrypt/cipher/camellia.h
22115 * lib/libgcrypt/cipher/cast5.c
22116 * lib/libgcrypt/cipher/cipher.c
22117 * lib/libgcrypt/cipher/crc.c
22118 * lib/libgcrypt/cipher/des.c
22119 * lib/libgcrypt/cipher/dsa.c
22120 * lib/libgcrypt/cipher/ecc.c
22121 * lib/libgcrypt/cipher/elgamal.c
22122 * lib/libgcrypt/cipher/hash-common.c
22123 * lib/libgcrypt/cipher/hash-common.h
22124 * lib/libgcrypt/cipher/hmac-tests.c
22125 * lib/libgcrypt/cipher/md.c
22126 * lib/libgcrypt/cipher/md4.c
22127 * lib/libgcrypt/cipher/md5.c
22128 * lib/libgcrypt/cipher/primegen.c
22129 * lib/libgcrypt/cipher/pubkey.c
22130 * lib/libgcrypt/cipher/rfc2268.c
22131 * lib/libgcrypt/cipher/rijndael-tables.h
22132 * lib/libgcrypt/cipher/rijndael.c
22133 * lib/libgcrypt/cipher/rmd.h
22134 * lib/libgcrypt/cipher/rmd160.c
22135 * lib/libgcrypt/cipher/rsa.c
22136 * lib/libgcrypt/cipher/seed.c
22137 * lib/libgcrypt/cipher/serpent.c
22138 * lib/libgcrypt/cipher/sha1.c
22139 * lib/libgcrypt/cipher/sha256.c
22140 * lib/libgcrypt/cipher/sha512.c
22141 * lib/libgcrypt/cipher/tiger.c
22142 * lib/libgcrypt/cipher/twofish.c
22143 * lib/libgcrypt/cipher/whirlpool.c
22144
22145 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22146
22147 Fix build for systems without error().
22148
22149 * gnulib/error.c: New file (imported from Gnulib).
22150 * gnulib/error.h: Likewise.
22151 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
22152 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
22153 (this variable is now used by error()).
22154
22155 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
22156
22157 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
22158 instead of relying that char is signed.
22159
22160 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22161
22162 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
22163 blocksize different from specified.
22164 (grub_pxefs_read): Likewise.
22165
22166 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
22167
22168 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
22169
22170 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
22171 (grub_ata_readwrite): Likewise. Update 2 format strings.
22172 (grub_atapi_read): Likewise.
22173
22174 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
22175 * conf/i386.rmk (pkglib_MODULES): ... to here ...
22176 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
22177 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
22178 (ata_mod_LDFLAGS): Move from here ...
22179 * conf/i386.rmk: ... to here ...
22180 * conf/x86_64-efi.rmk: ... and here.
22181 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
22182 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
22183
22184 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22185
22186 Relicense multiboot.h, with RMS' blessing.
22187
22188 * include/multiboot.h: Change to X11 license.
22189
22190 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
22191
22192 Support --version in grub-mkisofs.
22193
22194 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
22195 (OPTION_VERSION): New macro.
22196 (ld_options): Recognize --version.
22197 (usage): Move `program_name' from here ...
22198 (program_name): ... to here. Add `static' qualifier.
22199 (main): Recognize `OPTION_VERSION'.
22200
22201 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
22202
22203 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
22204 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
22205
22206 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22207
22208 Fix help2man generation for mkisofs.
22209
22210 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
22211 (usage): Send output to stdout (rather than stderr).
22212
22213 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22214
22215 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
22216 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22217 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
22218 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22219 (bin_SCRIPTS): Add `grub-mkfloppy'.
22220 (grub_mkfloppy_SOURCES): New variable.
22221
22222 * util/grub-mkrescue.in: New file.
22223 * util/i386/pc/grub-mkfloppy.in: New file.
22224
22225 * util/i386/coreboot/grub-mkrescue.in: Remove.
22226 * util/i386/pc/grub-mkrescue.in: Remove.
22227
22228 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22229
22230 * include/grub/multiboot.h (struct grub_multiboot_header): Move
22231 from here ...
22232 * include/multiboot.h (struct multiboot_header): ... to here. Update
22233 all users.
22234 * include/grub/multiboot.h (struct grub_multiboot_info): Move
22235 from here ...
22236 * include/multiboot.h (struct multiboot_info): ... to here. Update
22237 all users.
22238 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
22239 from here ...
22240 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
22241 Update all users.
22242 * include/grub/multiboot.h (struct grub_mod_list): Move
22243 from here ...
22244 * include/multiboot.h (struct multiboot_mod_list): ... to here.
22245 Update all users.
22246
22247 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22248
22249 * include/multiboot2.h (multiboot_word): Rename from this ...
22250 (multiboot2_word): ... to this. Update all users.
22251 (multiboot_header): Rename from this ...
22252 (multiboot2_header): ... to this. Update all users.
22253 (multiboot_tag_header): Rename from this ...
22254 (multiboot2_tag_header): ... to this. Update all users.
22255 (multiboot_tag_start): Rename from this ...
22256 (multiboot2_tag_start): ... to this. Update all users.
22257 (multiboot_tag_name): Rename from this ...
22258 (multiboot2_tag_name): ... to this. Update all users.
22259 (multiboot_tag_module): Rename from this ...
22260 (multiboot2_tag_module): ... to this. Update all users.
22261 (multiboot_tag_memory): Rename from this ...
22262 (multiboot2_tag_memory): ... to this. Update all users.
22263 (multiboot_tag_unused): Rename from this ...
22264 (multiboot2_tag_unused): ... to this. Update all users.
22265 (multiboot_tag_end): Rename from this ...
22266 (multiboot2_tag_end): ... to this. Update all users.
22267
22268 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22269
22270 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
22271 this platform we should support Multiboot1 first.
22272
22273 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
22274 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
22275 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
22276
22277 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22278
22279 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
22280 of write calls (converting them to fwrite() if they aren't already).
22281 (get_torito_desc): Likewise.
22282 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
22283
22284 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22285
22286 * util/i386/pc/grub-install.in: Move from here ...
22287 * util/grub-install.in: ... to here. Update all users.
22288
22289 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
22290
22291 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
22292
22293 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22294
22295 Support for El Torito without floppy emulation.
22296
22297 * util/mkisofs/eltorito.c: Include `<errno.h>'.
22298 (init_boot_catalog): Improve error handling.
22299 (get_torito_desc): Don't use floppy emulation unless requested by
22300 user. Patch boot information table when requested via
22301 `-boot-info-table'.
22302 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
22303 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
22304 (use_boot_info_table): New variables.
22305 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
22306 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
22307 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
22308 `--eltorito-emul-floppy'.
22309 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
22310 and `OPTION_ELTORITO_EMUL_FLOPPY'.
22311 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
22312 (use_boot_info_table, get_731): New prototypes.
22313 * util/mkisofs/write.c (get_731): New function.
22314
22315 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
22316
22317 Fix the generation of the man page.
22318
22319 * util/pc/i386/grub-install.in: Source
22320 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
22321
22322 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22323
22324 Large file support for grub-mkisofs.
22325
22326 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
22327 * util/mkisofs/mkisofs.c (next_extent, last_extent)
22328 (session_start): Upgrade type to `uint64_t'. Update all users.
22329 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
22330 (struct directory_entry): Upgrade type of `starting_block' and
22331 `size' to `uint64_t'. Update all users.
22332 (struct deferred): Remove unused structure.
22333 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
22334 Update all users.
22335 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
22336 file is larger than `UINT32_MAX'.
22337 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
22338 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
22339 return value.
22340 (struct deferred_write): Upgrade type of `extent' and `size' to
22341 `uint64_t'. Update all users.
22342 (last_extent_written): Upgrade type to `uint64_t'. Update all
22343 users.
22344 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
22345 Update all users. Upgrade type of `remain' to `int64_t' and
22346 `use' to `size_t'. Use error() to handle fread() errors.
22347 (write_files): Rely on write_one_file() rather than calling
22348 xfwrite() directly.
22349
22350 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
22351
22352 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
22353
22354 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22355
22356 * util/mkisofs/fnmatch.c: Remove.
22357 * util/mkisofs/getopt1.c: Likewise.
22358 * util/mkisofs/getopt.c: Likewise.
22359 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
22360 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
22361 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
22362 `gnulib/getopt1.c' and `gnulib/getopt.c'.
22363 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
22364
22365 * configure.ac: Detect `mingw32msvc' host_os.
22366 Check for lstat(), getuid() and getgid().
22367
22368 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
22369 instances of `u_char' with `uint8_t'.
22370
22371 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
22372 [!HAVE_GETUID] (getuid): New function (stub).
22373 [!HAVE_GETGID] (getgid): Likewise.
22374 [!HAVE_LSTAT] (lstat): Likewise.
22375 [!S_IROTH] (S_IROTH): New macro (dummy).
22376 [!S_IRGRP] (S_IRGRP): Likewise.
22377
22378 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22379
22380 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
22381 conditional expression).
22382
22383 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22384
22385 Import from Gnulib.
22386
22387 * gnulib/fnmatch.c: New file.
22388 * gnulib/fnmatch.h: Likewise.
22389 * gnulib/fnmatch_loop.c: Likewise.
22390 * gnulib/getopt.c: Likewise.
22391 * gnulib/getopt.h: Likewise.
22392 * gnulib/getopt1.c: Likewise.
22393 * gnulib/getopt_int.h: Likewise.
22394 * gnulib/gettext.h: Likewise.
22395
22396 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22397
22398 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
22399 * normal/handler.c (read_handler_list): Likewise.
22400
22401 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22402
22403 Misc cleanup.
22404
22405 * kern/command.c (grub_register_command_prio): Use
22406 grub_zalloc() instead of explicitly zeroing data.
22407 * kern/list.c: Include `<grub/mm.h>'.
22408 (grub_named_list_find): Replace `0' with `NULL'.
22409 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
22410 (fs_module_list): Change type to `grub_named_list_t'. Update all
22411 users.
22412 * normal/dyncmd.c (read_command_list): Add space between function
22413 call and parenthesis.
22414 * normal/handler.c (read_handler_list): Likewise.
22415
22416 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22417
22418 * normal/auth.c (punishment_delay): Moved from here ...
22419 (grub_auth_strcmp): ... to here (inside function).
22420
22421 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22422
22423 * include/grub/list.h (struct grub_named_list): Remove `const'
22424 qualifier from `name'.
22425 (struct grub_prio_list): Likewise.
22426
22427 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22428
22429 * normal/auth.c: Include `<grub/time.h>'.
22430 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
22431
22432 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22433
22434 * normal/auth.c (punishment_delay): New variable.
22435 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
22436 (grub_auth_check_authentication): Punish failed login attempts with
22437 an incremental (2^N) delay.
22438
22439 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22440
22441 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
22442 path with $(srcdir).
22443
22444 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22445
22446 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
22447
22448 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22449
22450 * util/i386/coreboot/grub-mkrescue.in: New file.
22451 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
22452 variables.
22453
22454 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
22455 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
22456 * configure.ac: Add header and function checks to satisfy grub-mkisofs
22457 requirements.
22458 * util/mkisofs/defaults.h: New file.
22459 * util/mkisofs/eltorito.c: Likewise.
22460 * util/mkisofs/exclude.h: Likewise.
22461 * util/mkisofs/fnmatch.c: Likewise.
22462 * util/mkisofs/getopt.c: Likewise.
22463 * util/mkisofs/getopt1.c: Likewise.
22464 * util/mkisofs/hash.c: Likewise.
22465 * util/mkisofs/include/fctldefs.h: Likewise.
22466 * util/mkisofs/include/mconfig.h: Likewise.
22467 * util/mkisofs/include/prototyp.h: Likewise.
22468 * util/mkisofs/include/statdefs.h: Likewise.
22469 * util/mkisofs/iso9660.h: Likewise.
22470 * util/mkisofs/joliet.c: Likewise.
22471 * util/mkisofs/match.c: Likewise.
22472 * util/mkisofs/match.h: Likewise.
22473 * util/mkisofs/mkisofs.c: Likewise.
22474 * util/mkisofs/mkisofs.h: Likewise.
22475 * util/mkisofs/multi.c: Likewise.
22476 * util/mkisofs/name.c: Likewise.
22477 * util/mkisofs/rock.c: Likewise.
22478 * util/mkisofs/tree.c: Likewise.
22479 * util/mkisofs/write.c: Likewise.
22480
22481 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22482
22483 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
22484 being insecure.
22485
22486 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22487
22488 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
22489 `grub-mkimage' (and use $0 when possible).
22490
22491 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22492
22493 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
22494 error message for excessively large memory map.
22495
22496 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22497
22498 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
22499 executable bit.
22500
22501 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22502
22503 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
22504 message for coreboot users.
22505
22506 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
22507
22508 Fix build with GNU gold.
22509
22510 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
22511 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
22512 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
22513 link addresses.
22514 * aclocal.m4: Likewise.
22515
22516 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
22517
22518 * configure.ac (AC_PREREQ): Bump to 2.59d.
22519 * INSTALL: Make it more clear when Autoconf and Ruby are
22520 needed and when to run `./autogen.sh'.
22521
22522 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22523
22524 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
22525 OSes.
22526
22527 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22528
22529 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
22530
22531 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22532
22533 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
22534 giving it to GNU Mach.
22535
22536 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22537
22538 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
22539 GNU partition number to get internal GRUB partition number.
22540
22541 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22542
22543 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
22544 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
22545
22546 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
22547
22548 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
22549 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
22550 case.
22551
22552 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
22553
22554 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
22555
22556 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22557
22558 Fix build problem.
22559
22560 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
22561 `-isystem=$(srcdir)/include'.
22562
22563 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22564
22565 * util/i386/pc/grub-install.in: Remove hint that device.map should be
22566 checked (grub-install doesn't currently rely on it).
22567
22568 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
22569
22570 Revert SVN r2660.
22571
22572 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
22573 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22574 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
22575 * conf/i386-ieee1275.rmk: Likewise.
22576 * conf/i386-pc.rmk: Likewise.
22577 * conf/powerpc-ieee1275.rmk: Likewise.
22578 * conf/sparc64-ieee1275.rmk: Likewise.
22579 * conf/x86_64-efi.rmk: Likewise.
22580
22581 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22582
22583 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
22584
22585 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22586
22587 * include/grub/misc.h: Stop checking for APPLE_CC.
22588
22589 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22590
22591 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
22592 doesn't cause an infinite call loop.
22593
22594 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
22595
22596 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
22597 strings.
22598
22599 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22600
22601 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
22602 variable.
22603 * Makefile.in: Likewise.
22604
22605 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22606
22607 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
22608
22609 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22610
22611 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
22612
22613 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22614
22615 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
22616
22617 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22618
22619 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
22620 from here ...
22621 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
22622
22623 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22624
22625 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
22626 in $(MAKEINFO) invocation. This makes it clear in output that
22627 errors are being ignored.
22628
22629 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22630
22631 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
22632 from here ...
22633 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22634 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
22635 * conf/i386-ieee1275.rmk: Likewise.
22636 * conf/i386-pc.rmk: Likewise.
22637 * conf/powerpc-ieee1275.rmk: Likewise.
22638 * conf/sparc64-ieee1275.rmk: Likewise.
22639 * conf/x86_64-efi.rmk: Likewise.
22640
22641 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22642
22643 * util/grub-editenv.c (main): If only a command is given, use
22644 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
22645 (usage): FILENAME is now optional and has a default.
22646
22647 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22648
22649 Improve grub-mkconfig performance when there are several menu
22650 entries on a single filesystem.
22651
22652 * util/grub.d/10_linux.in (linux_entry): Cache the output of
22653 prepare_grub_to_access_device.
22654 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22655 * util/grub.d/30_os-prober.in: Likewise.
22656
22657 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22658
22659 * util/grub.d/10_freebsd.in: Remove.
22660 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
22661 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
22662
22663 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22664
22665 * docs/grub.cfg: Fix example usage of *BSD loaders.
22666
22667 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22668
22669 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
22670 grub_util_error() call.
22671
22672 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22673
22674 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
22675 `reserved_first_sector' member.
22676 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
22677 `reserved_first_sector' to 1.
22678 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
22679 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
22680 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
22681 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
22682 filesystems which begin at first sector.
22683 (options): New option --skip-fs-probe.
22684 (main): Handle --skip-fs-probe and pass it to setup().
22685
22686 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22687
22688 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
22689 (memset): Fix function prototype.
22690
22691 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22692 2009-10-25 Vasily Averin <vvs@parallels.com>
22693
22694 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
22695 `dirent.direntlen == 0'.
22696
22697 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22698
22699 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
22700 `cpio'.
22701 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
22702
22703 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22704
22705 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
22706 `__trampoline_setup' and `__ucmpdi2'.
22707 * include/grub/powerpc/libgcc.h: Only export symbols for functions
22708 that libgcc provides.
22709
22710 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22711
22712 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
22713 * include/grub/sparc64/libgcc.h (memset): Likewise.
22714 * include/grub/misc.h (memset, memcmp): New function prototypes.
22715
22716 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22717
22718 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
22719 `cpio'.
22720 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
22721
22722 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22723
22724 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
22725 * docs/grub.cfg: Compensate for recent change in multiboot
22726 loader (since 2009-08-14 it won't pass filename to payload).
22727 * util/grub.d/10_hurd.in: Likewise.
22728
22729 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
22730
22731 * config.guess: Update to latest version from config git
22732 repository.
22733 * config.sub: Likewise.
22734
22735 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
22736
22737 Fix build on sparc64.
22738
22739 * configure.ac: Perform checks for libgcc symbols before
22740 adding `-nostdlib' to LDFLAGS.
22741
22742 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22743
22744 Let user specify OpenBSD root device.
22745
22746 * loader/i386/bsd.c (openbsd_root): New variable.
22747 (openbsd_opts): New option 'root'.
22748 (OPENBSD_ROOT_ARG): New macro.
22749 (grub_openbsd_boot): Use 'openbsd_root'.
22750 (grub_cmd_openbsd): Fill 'openbsd_root'.
22751
22752 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22753
22754 * NEWS: Misc adjustments.
22755
22756 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22757
22758 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
22759
22760 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22761
22762 * configure.ac: Bump version to 1.97.
22763
22764 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
22765
22766 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
22767 -mno-3dnow on x86 architectures. Some toolchains enable these
22768 features by default, but they rely on registers that aren't enabled
22769 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
22770
22771 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
22772
22773 Make entry text a bit more readable.
22774
22775 * util/grub.d/10_linux.in: Add `with' before `Linux'.
22776
22777 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22778
22779 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
22780
22781 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22782
22783 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
22784 operations.
22785
22786 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22787
22788 * configure.ac: Add missing dollar.
22789
22790 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22791
22792 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
22793
22794 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
22795 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
22796 exports.
22797 * include/grub/sparc64/libgcc.h: Likewise. Use
22798 preprocessor conditionals.
22799
22800 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22801
22802 * conf/common.rmk (grub-dumpbios): Remove rule.
22803 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
22804 * util/grub-dumpbios.in: Remove file.
22805
22806 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22807
22808 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
22809 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
22810
22811 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
22812 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
22813 users.
22814
22815 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
22816 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
22817 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
22818 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
22819 users.
22820
22821 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
22822
22823 * term/tparm.c: Switch to GPLv3.
22824
22825 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22826
22827 * include/grub/i386/cpuid.h: Add header protection.
22828
22829 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22830
22831 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
22832
22833 * include/grub/i386/cpuid.h: New file.
22834 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
22835 (has_longmode): Rename to ...
22836 (grub_cpuid_has_longmode): ... this. Update all users. Remove
22837 `static' attribute.
22838 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
22839 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
22840 on a CPU that doesn't implement AMD64 instruction set.
22841
22842 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22843
22844 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
22845 that version.texi is rebuilt on version number changes.
22846
22847 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22848
22849 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
22850 Fixes bug #27602.
22851
22852 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22853
22854 * util/i386/pc/grub-install.in: Source
22855 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
22856 that the --grub-probe option will work.
22857 * util/sparc64/ieee1275/grub-install.in: Likewise.
22858
22859 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
22860
22861 * configure.ac: Bump version to 1.97~beta4.
22862
22863 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
22864
22865 Resync grub-mkdevicemap in x86_64-efi.
22866
22867 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
22868 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
22869 `util/devicemap.c'.
22870
22871 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
22872
22873 * util/grub-editenv.c (create_envblk_file): Write new block with a
22874 .new suffix and then rename it into place, to ensure atomic
22875 creation.
22876
22877 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
22878
22879 Do not automatically install headers.
22880
22881 * Makefile.in (include_DATA): Remove. Update all users.
22882
22883 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
22884
22885 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
22886 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
22887
22888 * util/osdetect.lua: Remove.
22889 * script/lua/lauxlib.c: Likewise.
22890 * script/lua/ldebug.c: Likewise.
22891 * script/lua/grub_main.c: Likewise.
22892 * script/lua/lauxlib.h: Likewise.
22893 * script/lua/ldebug.h: Likewise.
22894 * script/lua/ltablib.c: Likewise.
22895 * script/lua/liolib.c: Likewise.
22896 * script/lua/lstrlib.c: Likewise.
22897 * script/lua/lualib.h: Likewise.
22898 * script/lua/ldo.c: Likewise.
22899 * script/lua/ldump.c: Likewise.
22900 * script/lua/ldo.h: Likewise.
22901 * script/lua/loslib.c: Likewise.
22902 * script/lua/lundump.c: Likewise.
22903 * script/lua/grub_lib.c: Likewise.
22904 * script/lua/ldblib.c: Likewise.
22905 * script/lua/lundump.h: Likewise.
22906 * script/lua/lmem.c: Likewise.
22907 * script/lua/grub_lib.h: Likewise.
22908 * script/lua/lmathlib.c: Likewise.
22909 * script/lua/lstate.c: Likewise.
22910 * script/lua/ltm.c: Likewise.
22911 * script/lua/lvm.c: Likewise.
22912 * script/lua/lmem.h: Likewise.
22913 * script/lua/lstate.h: Likewise.
22914 * script/lua/ltm.h: Likewise.
22915 * script/lua/ltable.c: Likewise.
22916 * script/lua/lvm.h: Likewise.
22917 * script/lua/llex.c: Likewise.
22918 * script/lua/lgc.c: Likewise.
22919 * script/lua/grub_lua.h: Likewise.
22920 * script/lua/loadlib.c: Likewise.
22921 * script/lua/lfunc.c: Likewise.
22922 * script/lua/lopcodes.c: Likewise.
22923 * script/lua/lparser.c: Likewise.
22924 * script/lua/ltable.h: Likewise.
22925 * script/lua/llex.h: Likewise.
22926 * script/lua/lgc.h: Likewise.
22927 * script/lua/lfunc.h: Likewise.
22928 * script/lua/lbaselib.c: Likewise.
22929 * script/lua/lopcodes.h: Likewise.
22930 * script/lua/lparser.h: Likewise.
22931 * script/lua/lzio.c: Likewise.
22932 * script/lua/linit.c: Likewise.
22933 * script/lua/lobject.c: Likewise.
22934 * script/lua/llimits.h: Likewise.
22935 * script/lua/lstring.c: Likewise.
22936 * script/lua/lzio.h: Likewise.
22937 * script/lua/lapi.c: Likewise.
22938 * script/lua/lcode.c: Likewise.
22939 * script/lua/lua.h: Likewise.
22940 * script/lua/lobject.h: Likewise.
22941 * script/lua/lstring.h: Likewise.
22942 * script/lua/lapi.h: Likewise.
22943 * script/lua/lcode.h: Likewise.
22944 * script/lua/luaconf.h: Likewise.
22945
22946 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
22947
22948 * docs/grub.texi (Command-line and menu entry commands): Document
22949 date and echo commands.
22950
22951 2009-09-24 Pavel Roskin <proski@gnu.org>
22952
22953 * include/grub/kernel.h (struct grub_module_header): Remove
22954 `grub_module_header_types'. Make `type' unsigned. Make `size'
22955 32-bit on all platforms.
22956 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
22957 8-bit field. Use grub_host_to_target32() for `size'.
22958 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
22959 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
22960 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
22961
22962 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22963
22964 Fix "lost keypress" bug in at_keyboard.
22965
22966 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
22967 Checks for readyness of input buffer (without flushing it).
22968 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
22969 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
22970
22971 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22972
22973 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
22974 size check within GRUB_MACHINE_PCBIOS section.
22975
22976 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22977
22978 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
22979 return value.
22980 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
22981 KEYBOARD_ISREADY check.
22982 (grub_at_keyboard_checkkey): Rename to ...
22983 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
22984 Remove gratuitous cast.
22985
22986 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
22987
22988 * configure.ac: Call AC_PROG_MKDIR_P.
22989 * Makefile.in (docs/stamp-vti): Create docs directory. Create
22990 version.texi in $(builddir) rather than $(srcdir).
22991 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
22992 to makeinfo's @include search path.
22993
22994 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22995
22996 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
22997
22998 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22999
23000 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
23001 for `*.dpkg-new'.
23002
23003 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
23004
23005 Build info documentation. Some code borrowed from Automake.
23006
23007 * configure.ac: Check for makeinfo.
23008 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
23009 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
23010 docs/version.texi.
23011 (MOSTLYCLEANFILES): Add vti.tmp.
23012 (docs/version.texi, docs/stamp-vti): Update automatically.
23013 (docs/grub.info): Build info documentation. Use --force and ignore
23014 errors for now.
23015 (all-local): Add $(INFOS).
23016 (install-local): Install info files.
23017 (uninstall): Uninstall info files.
23018 * docs/version.texi: Remove from revision control. This file is
23019 automatically generated on build now.
23020 * gendistlist.sh: Add `*.info'.
23021
23022 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
23023
23024 * kern/term.c: Fix indentation.
23025
23026 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
23027
23028 * util/hostdisk.c: Fix a comment.
23029
23030 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
23031
23032 Fix regression introduced in r2539.
23033
23034 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
23035 to 0xA1.
23036
23037 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
23038
23039 * util/grub.d/30_os-prober.in: Don't throw away stderr from
23040 os-prober. Under normal operation, it does not print anything to
23041 stderr; if it does, we need to debug it, and throwing away stderr
23042 makes that excessively difficult.
23043
23044 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
23045
23046 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
23047
23048 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
23049
23050 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
23051 AC_LANG_PROGRAM from autoconf.
23052 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
23053 prototypes (fixes warning).
23054
23055 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
23056 `--disable-werror' was used.
23057
23058 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
23059
23060 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
23061 uninitialized `lastaddr'.
23062
23063 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23064
23065 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
23066
23067 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
23068
23069 * commands/test.c (get_fileinfo): Return immediately if
23070 grub_fs_probe fails.
23071
23072 2009-09-14 José Martínez <xosemp@gmail.com>
23073
23074 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
23075
23076 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
23077
23078 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
23079 output.
23080
23081 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
23082
23083 * configure.ac: Remove --enable-grub-pe2elf. Only build
23084 grub-pe2elf when needed by the build system itself.
23085 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
23086
23087 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23088
23089 * configure.ac: Bump version to 1.97~beta3.
23090 * docs/version.texi: Likewise.
23091
23092 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23093
23094 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
23095 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
23096 from here ...
23097 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
23098 (grub_linux_setup_video): ... to here (with some adjustments).
23099
23100 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23101
23102 Fix memory corruption issue (spotted by Colin Watson).
23103
23104 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
23105 causing returned size to be stored in an incorrect memory location.
23106 Fix use of uninitialized value when storing the returned size.
23107
23108 2009-09-12 Yves Blusseau <blusseau@zetam.org>
23109
23110 Change clean rules to properly remove files
23111
23112 * genmk.rb: add new clean rules
23113 * Makefile.in (clean): add the new targets
23114 (mostlyclean): likewise
23115
23116 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
23117
23118 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
23119 to grub_uint64_t.
23120 * fs/ntfs.c (init_file): Understand 64-bit sizes for
23121 non-resident files.
23122
23123 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
23124
23125 * configure.ac: Don't look for help2man when cross-compiling. Fixes
23126 part of bug #27349.
23127
23128 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
23129
23130 * util/grub-mkconfig.in: Make the created config mode 400 and
23131 print a warning if it fails.
23132
23133 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
23134
23135 * util/grub.d/40_custom.in: Ask user to type custom entries below
23136 comment, rather than below 'exec tail' line.
23137
23138 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
23139
23140 * util/grub.d/40_custom.in: Make sure that the explanatory text is
23141 visible in grub.cfg.
23142
23143 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
23144
23145 * util/grub.d/40_custom.in: Make it a little clearer how to use this
23146 file.
23147
23148 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
23149
23150 * docs/grub.cfg: Add an example menu entry for memtest86+.
23151
23152 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
23153
23154 * config.guess: Update to latest version from config git.
23155 * config.sub: Likewise.
23156
23157 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
23158
23159 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
23160 unknown-command case. Fixes bug #27320.
23161
23162 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
23163
23164 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
23165 `help' if the command exists.
23166
23167 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
23168
23169 * INSTALL: Require GCC 4.1.3 or later.
23170
23171 2009-09-06 Yves Blusseau <blusseau@zetam.org>
23172
23173 * Makefile.in (RMKFILES): add i386-qemu.rmk
23174 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
23175 $(srcdir)/stamp-h.in
23176
23177 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
23178
23179 * util/grub-probe.c (probe): Comment out buggy codepath, which
23180 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
23181 should be re-enabled after 1.97.
23182
23183 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
23184
23185 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
23186 find searches for.
23187
23188 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23189
23190 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
23191 unnecessary calls to grub_error.
23192
23193 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
23194
23195 * NEWS: Mention `keystatus' and Unicode fonts.
23196
23197 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
23198
23199 * configure.ac: Bump version to 1.97~beta2.
23200 * docs/version.texi: Likewise.
23201
23202 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23203
23204 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
23205 containing unwind information in some cases where it previously did
23206 not. Use -fno-dwarf2-cfi-asm if available to restore the old
23207 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
23208 discussion.
23209
23210 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
23211
23212 Embedding loadenv module into grub-emu
23213
23214 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
23215 commands/loadenv.c
23216 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
23217 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
23218 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
23219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
23220 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
23221 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
23222
23223 2009-09-03 Magnus Granberg <zorry@ume.nu>
23224
23225 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
23226 include -fPIE in the default specs.
23227 * configure.ac: Check if pie_possible is yes and add -fno-PIE
23228 to TARGET_CFLAGS.
23229
23230 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
23231
23232 * INSTALL: Note that GNU Bison 2.3 or later is required.
23233
23234 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23235
23236 * kern/i386/pc/startup.S: Fix typo.
23237
23238 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23239
23240 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
23241 according to GCS.
23242
23243 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23244
23245 * docs/grub.texi (Naming convention): Describe one-based partition
23246 numbering.
23247 (Device syntax): Likewise.
23248 (File name syntax): Likewise.
23249 (Block list syntax): Likewise.
23250 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
23251 menu.lst.
23252 (File name syntax): Likewise.
23253 (Command-line and menu entry commands): Document acpi, blocklist,
23254 crc, export, insmod, keystatus, ls, set, and unset commands.
23255
23256 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23257
23258 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
23259 to avoid implying that only one of --shift, --ctrl, or --alt may be
23260 used.
23261
23262 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23263
23264 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
23265 rather than comparing against S_IFREG, which will almost never work.
23266
23267 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23268
23269 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
23270 (write_blocklists): Likewise.
23271
23272 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
23273
23274 * script/lua/grub_lua.h (fputs): Supply a format string as the first
23275 argument to grub_printf.
23276
23277 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
23278
23279 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
23280 non GNU test.
23281
23282 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23283
23284 * kern/file.c (grub_file_read): Spelling fix
23285
23286 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23287
23288 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
23289 loading of headers in some cases.
23290
23291 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
23292
23293 * configure.ac: Bump version to 1.97~beta1.
23294 * docs/version.texi: Likewise.
23295
23296 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23297
23298 * include/grub/i386/xnu.h: Add license header.
23299 include grub/err.h explicitly.
23300
23301 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23302
23303 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
23304 to `ufs' in the vfs.root.mountfrom kernel parameter.
23305
23306 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23307
23308 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
23309
23310 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
23311 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
23312
23313 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
23314 `ARRAY_SIZE' macro.
23315
23316 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23317
23318 * kern/file.c (grub_file_read): Check offset.
23319 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
23320 * fs/jfs.c (grub_jfs_read_file): Likewise.
23321 * fs/ntfs.c (grub_ntfs_read): Likewise.
23322 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
23323 * fs/minix.c (grub_minix_read_file): Correct offset check.
23324 * fs/ufs.c (grub_ufs_read_file): Likewise.
23325
23326 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23327
23328 * term/i386/pc/console.c (bios_data_area): Cast
23329 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
23330
23331 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23332
23333 1-bit optimised blitters.
23334
23335 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
23336 prototype.
23337 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23338 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23339 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23340 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23341 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23342 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23343 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
23344 function.
23345 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23346 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23347 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23348 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23349 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23350 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23351 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
23352 when possible.
23353 * video/video.c (grub_video_get_blit_format): Return
23354 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
23355
23356 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23357
23358 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
23359 the first argument to grub_printf.
23360
23361 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23362 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
23363
23364 Add `getkeystatus' terminal method. Add a new `keystatus' command
23365 to query it.
23366
23367 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
23368 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
23369 modifier key bitmasks.
23370 (struct grub_term_input): Add `getkeystatus' member.
23371 (grub_getkeystatus): Add prototype.
23372 * kern/term.c (grub_getkeystatus): New function.
23373
23374 * include/grub/i386/pc/memory.h
23375 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
23376 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
23377 Data Area layout.
23378 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
23379 (grub_console_term_input): Set `getkeystatus' member.
23380 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
23381 constants.
23382 (grub_usb_keyboard_getreport): Likewise.
23383 (grub_usb_keyboard_checkkey): Likewise.
23384 (grub_usb_keyboard_getkeystatus): New function.
23385 (grub_usb_keyboard_term): Set `getkeystatus' member.
23386
23387 * commands/keystatus.c: New file.
23388 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
23389 (keystatus_mod_SOURCES): New variable.
23390 (keystatus_mod_CFLAGS): Likewise.
23391 (keystatus_mod_LDFLAGS): Likewise.
23392 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
23393 commands/keystatus.c.
23394 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23395 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23396 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23397 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23398 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23399 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23400
23401 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23402
23403 Split befs.mod and afs.mod into *_be.mod and *.mod
23404
23405 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
23406 (grub_fstest_SOURCES): Likewise.
23407 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
23408 (afs_be_mod_SOURCES): New variable.
23409 (afs_be_mod_CFLAGS): Likewise.
23410 (afs_be_mod_LDFLAGS): Likewise.
23411 (befs_be_mod_SOURCES): Likewise.
23412 (befs_be_mod_CFLAGS): Likewise.
23413 (befs_be_mod_LDFLAGS): Likewise.
23414 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
23415 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23416 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23417 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23418 (grub_emu_SOURCES): Likewise.
23419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23420 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23421 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23422 * fs/afs_be.c: New file.
23423 * fs/befs_be.c: New file.
23424 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
23425 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
23426 (U16): Replaced with ...
23427 (grub_afs_to_cpu16): ...this. All users updated.
23428 (U32): Replaced with ...
23429 (grub_afs_to_cpu32): ...this. All users updated.
23430 (U64): Replaced with ...
23431 (grub_afs_to_cpu64): ...this. All users updated.
23432 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
23433 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
23434 (grub_afs_validate_sblock): Check only one endianness.
23435 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23436 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23437 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23438 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23439 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23440 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23441 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23442 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23443
23444 2009-08-26 Bean <bean123ch@gmail.com>
23445
23446 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
23447 64-bit number.
23448 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
23449 (grub_xfs_inode_block): Change return type to grub_uint64_t.
23450 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
23451
23452 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23453
23454 NetBSD memory map support.
23455
23456 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
23457 (grub_netbsd_btinfo_mmap_header): New structure.
23458 (grub_netbsd_btinfo_mmap_entry): Likewise.
23459 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
23460
23461 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23462
23463 Enable bsd.mod on coreboot.
23464
23465 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
23466 (bsd_mod_SOURCES): New variable.
23467 (bsd_mod_CFLAGS): Likewise.
23468 (bsd_mod_LDFLAGS): Likewise.
23469 (bsd_mod_ASFLAGS): Likewise.
23470 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
23471 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
23472
23473 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23474
23475 Cleanup NetBSD root support.
23476
23477 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
23478 grub_bsd_get_device.
23479 Fix typo.
23480
23481 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
23482
23483 * util/grub.d/00_header.in: Move check for the video backend of
23484 gfxterm from here ...
23485 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
23486 a suitable video backend.
23487
23488 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23489
23490 Fix breakage in grub-setup.
23491
23492 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
23493 "msdos_partition_map".
23494
23495 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23496
23497 Fix breakage in normal/auth.c.
23498
23499 * normal/auth.c (grub_iswordseparator): New function.
23500
23501 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23502
23503 Authentication support.
23504
23505 * commands/password.c: New file.
23506 * conf/common.rmk (pkglib_MODULES): Add password.mod.
23507 (password_mod_SOURCES): New variable.
23508 (password_mod_CFLAGS): Likewise.
23509 (password_mod_LDFLAGS): Likewise.
23510 (normal_mod_SOURCES): Add normal/auth.c.
23511 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
23512 normal/auth.c.
23513 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23514 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23515 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23517 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23518 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23519 * include/grub/auth.h: New file.
23520 * include/grub/err.h (grub_err_t): New enum value
23521 GRUB_ERR_ACCESS_DENIED.
23522 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
23523 'users'.
23524 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
23525 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
23526 users updated.
23527 * normal/auth.c: New file.
23528 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
23529 (grub_cmdline_run): Don't allow to go to command line without
23530 authentication.
23531 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
23532 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
23533 menuentry without superuser rights.
23534 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
23535 user isn't a superuser.
23536
23537 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23538
23539 Save space by inlining misc.c functions.
23540
23541 * kern/misc.c (grub_iswordseparator): Made static.
23542 * kern/misc.c (grub_strcat): Moved from here ...
23543 * include/grub/misc.h (grub_strcat): ... here. Inlined.
23544 * kern/misc.c (grub_strncat): Moved from here ...
23545 * include/grub/misc.h (grub_strncat): ... here. Inlined.
23546 * kern/misc.c (grub_strcasecmp): Moved from here ...
23547 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
23548 * kern/misc.c (grub_strncasecmp): Moved from here ...
23549 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
23550 * kern/misc.c (grub_isalpha): Moved from here ...
23551 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
23552 * kern/misc.c (grub_isdigit): Moved from here ...
23553 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
23554 * kern/misc.c (grub_isgraph): Moved from here ...
23555 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
23556 * kern/misc.c (grub_tolower): Moved from here ...
23557 * include/grub/misc.h (grub_tolower): ... here. Inlined.
23558
23559 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23560
23561 * script/sh/function.c (grub_script_function_find): Cut error message
23562 not to flood terminal.
23563 * script/sh/lexer.c (grub_script_yylex): Remove command line length
23564 limit.
23565 * script/sh/script.c (grub_script_arg_add): Duplicate string.
23566
23567 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
23568
23569 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
23570 `report' grub_uint8_t *.
23571 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
23572 Use a 50-millisecond timeout rather than just repeating
23573 grub_usb_keyboard_getreport 50 times.
23574 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
23575
23576 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23577
23578 Rename *_partition_map to part_*
23579
23580 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
23581 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
23582 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
23583 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
23584 All users updated.
23585 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
23586 All users updated.
23587 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
23588 * util/grub-probe.c (probe_partmap): Don't transform partition name
23589 to get module name.
23590
23591 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23592
23593 Fix OpenBSD and NetBSD support.
23594
23595 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
23596 memory address conflict.
23597 (OPENBSD_MMAP_ACPI): New definition.
23598 (OPENBSD_MMAP_NVS): Likewise.
23599 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
23600 and OPENBSD_MMAP_NVS.
23601 Add memory map terminator
23602 Explicit cast when calling grub_unix_real_boot.
23603 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
23604
23605 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23606
23607 Let user specify NetBSD root device.
23608
23609 * loader/i386/bsd.c (netbsd_root): New variable.
23610 (netbsd_opts): New option 'root'.
23611 (NETBSD_ROOT_ARG): New macro.
23612 (grub_netbsd_boot): Use 'netbsd_root'.
23613 (grub_bsd_unload): Free 'netbsd_root'.
23614 (grub_cmd_netbsd): Fill 'netbsd_root'.
23615
23616 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23617
23618 Support for 64-bit NetBSD.
23619
23620 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
23621 point when booting non-FreeBSD.
23622
23623 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23624
23625 Support --no-smp and --no-acpi for NetBSD.
23626
23627 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
23628 (NETBSD_AB_NOACPI): Likewise.
23629 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
23630 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
23631
23632 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23633
23634 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
23635 errors.
23636 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
23637 errors. Call grub_error when needed.
23638
23639 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23640
23641 * commands/search.c (search_fs): Try searching without autoload first.
23642 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
23643 filesystem module explicitly for faster booting.
23644
23645 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23646
23647 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
23648
23649 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23650
23651 * util/grub.d/30_os-prober.in: Disable os-prober if
23652 `GRUB_DISABLE_OS_PROBER' was set to true.
23653
23654 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
23655
23656 * partmap/pc.c: Rename to ...
23657 * partmap/msdos.c: ... this. Update all users.
23658 (grub_pc_partition_map): Rename to ...
23659 (grub_msdos_partition_map): ... this. Update all users.
23660
23661 * parttool/pcpart.c: Rename to ...
23662 * parttool/msdospart.c: ... this. Update all users.
23663
23664 * include/grub/pc_partition.h: Rename to ...
23665 * include/grub/msdos_partition.h: ... this. Update all users.
23666 (grub_pc_partition_bsd_entry): Rename to ...
23667 (grub_msdos_partition_bsd_entry): ... this. Update all users.
23668 (grub_pc_partition_disk_label): Rename to ...
23669 (grub_msdos_partition_disk_label): ... this. Update all users.
23670 (grub_pc_partition_entry): Rename to ...
23671 (grub_msdos_partition_entry): ... this. Update all users.
23672 (grub_pc_partition_mbr): Rename to ...
23673 (grub_msdos_partition_mbr): ... this. Update all users.
23674 (grub_pc_partition): Rename to ...
23675 (grub_msdos_partition): ... this. Update all users.
23676 (grub_pc_partition_is_empty): Rename to ...
23677 (grub_msdos_partition_is_empty): ... this. Update all users.
23678 (grub_pc_partition_is_extended): Rename to ...
23679 (grub_msdos_partition_is_extended): ... this. Update all users.
23680 (grub_pc_partition_is_bsd): Rename to ...
23681 (grub_msdos_partition_is_bsd): ... this. Update all users.
23682
23683 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
23684 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
23685 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
23686 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
23687 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
23688 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
23689 (gpt_mod_LDFLAGS): Rename to ...
23690 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
23691 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
23692 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
23693 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
23694 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
23695 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
23696 (part_gpt_mod_LDFLAGS): ... this.
23697 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
23698 `pcpart.mod' to `msdospart.mod'.
23699 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
23700 to ...
23701 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
23702 (msdospart_mod_LDFLAGS): ... this.
23703
23704 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23705
23706 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
23707 (openbsd_opts): Likewise.
23708 (netbsd_opts): Likewise.
23709 (freebsd_flags): Added 0 terminator.
23710 (openbsd_flags): Likewise.
23711 (netbsd_flags): Likewise.
23712 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
23713 (grub_cmd_freebsd): Transformed into extended command.
23714 (grub_cmd_openbsd): Likewise.
23715 (grub_cmd_netbsd): Likewise.
23716 (cmd_freebsd): Changed type to grub_extcmd_t.
23717 (cmd_openbsd): Likewise.
23718 (cmd_netbsd): Likewise.
23719 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
23720 grub_cmd_openbsd as extended commands.
23721 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
23722 cmd_netbsd and cmd_openbsd
23723
23724 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
23725
23726 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
23727
23728 2009-08-21 Pavel Roskin <proski@gnu.org>
23729
23730 * Makefile.in (install-local): When checking if a file is in the
23731 build directory, use "test -e" to detect symlinks.
23732
23733 * Makefile.in (install-local): Remove all files in
23734 $(DESTDIR)$(pkglibdir) before installing new files there.
23735
23736 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23737
23738 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
23739 grub-mkelfimage.
23740
23741 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23742
23743 * util/grub-mkconfig.in: Don't use gfxterm by default if not
23744 explicitly specified by the user.
23745
23746 2009-08-18 Pavel Roskin <proski@gnu.org>
23747
23748 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
23749 grub_uint8_t pointer for data.
23750 * include/grub/fbutil.h (struct grub_video_fbblit_info):
23751 Likewise.
23752 * video/fb/fbutil.c: Remove unnecessary casts.
23753
23754 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23755
23756 VBE cleanup.
23757
23758 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
23759 (grub_vbe_set_video_mode): Save active mode info
23760 only after setting the mode.
23761 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
23762 second argument.
23763
23764 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23765
23766 Rename variables for clarity.
23767
23768 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
23769 (active_vbe_mode_info): ... this. All users updated.
23770 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
23771 All users updated.
23772 (initial_mode): Rename to ...
23773 (initial_vbe_mode): ... this. All users updated.
23774 (mode_in_use): Rename to ..
23775 (vbe_mode_in_use): ... this. All users updated.
23776 (mode_list): Rename to ..
23777 (vbe_mode_list): ... this. All users updated.
23778 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
23779 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
23780 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
23781 'mode_list_size' to 'vbe_mode_list_size'.
23782 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
23783 'best_mode_info' to 'best_vbe_mode_info' and
23784 'best_mode' to 'best_vbe_mode'
23785
23786 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23787
23788 Remove duplicate grub_video_fb_get_video_ptr.
23789
23790 * include/grub/fbutil.h (get_data_ptr): Rename to ...
23791 (grub_video_fb_get_video_ptr): ... this.
23792 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
23793 * video/fb/fbutil.c: Add comment about addressing.
23794 (get_data_ptr): Rename to ...
23795 (grub_video_fb_get_video_ptr): ... this. All users updated.
23796 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
23797
23798 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23799
23800 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
23801 grub_dprintf() that was just added.
23802
23803 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23804
23805 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
23806 (DEFAULT_VIDEO_MODE): Remove macros.
23807 (grub_linux_boot): Remove assumption that Linux has FB support,
23808 and use "text" as default video mode.
23809
23810 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
23811
23812 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
23813 grub_dprintf.
23814 * fs/fat.c (grub_fat_read_data): Likewise.
23815
23816 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23817
23818 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
23819 payload.
23820 (grub_module): Likewise.
23821
23822 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23823
23824 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
23825 mbi->cmdline but free playground.
23826
23827 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23828
23829 Handle group offset on UFS1.
23830
23831 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
23832 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
23833
23834 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23835
23836 Split ufs.mod into ufs1.mod and ufs2.mod.
23837
23838 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
23839 (grub_fstest_SOURCES): Likewise.
23840 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
23841 (ufs_mod_SOURCES): Remove.
23842 (ufs_mod_CFLAGS): Likewise.
23843 (ufs_mod_LDFLAGS): Likewise.
23844 (ufs1_mod_SOURCES): New variable.
23845 (ufs1_mod_CFLAGS): Likewise.
23846 (ufs1_mod_LDFLAGS): Likewise.
23847 (ufs2_mod_SOURCES): New variable.
23848 (ufs2_mod_CFLAGS): Likewise.
23849 (ufs2_mod_LDFLAGS): Likewise.
23850 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
23851 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23852 Likewise.
23853 (grub_emu_SOURCES): Likewise.
23854 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23855 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23856 (grub_setup_SOURCES): Likewise.
23857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23858 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
23859 (grub_setup_SOURCES): Likewise.
23860 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23861 Likewise.
23862 * fs/ufs2.c: New file.
23863 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
23864
23865 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23866
23867 Framebuffer split.
23868
23869 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
23870 subsystem at the end.
23871 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
23872 (video_fb_mod_SOURCES): New variable.
23873 (video_fb_mod_CFLAGS): Likewise.
23874 (video_fb_mod_LDFLAGS): Likewise.
23875 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
23876 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
23877 * video/i386/pc/vbeblit.c: Moved from here ...
23878 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
23879 * video/i386/pc/vbefill.c: Moved from here ...
23880 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
23881 * video/i386/pc/vbeutil.c: Moved from here ...
23882 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
23883 * include/grub/i386/pc/vbeblit.h: Moved from here ...
23884 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
23885 * include/grub/i386/pc/vbefill.h: Moved from here ...
23886 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
23887 * include/grub/i386/pc/vbeutil.h: Moved from here ...
23888 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
23889 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
23890 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
23891 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
23892 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
23893 (grub_video_adapter): Added 'get_info_and_fini'.
23894 (grub_video_get_info_and_fini): New prototype.
23895 (grub_video_set_mode): make modestring const char *.
23896 * loader/i386/linux.c (grub_linux_setup_video): Use
23897 grub_video_get_info_and_fini.
23898 (grub_linux_boot): Move modesetting just before booting.
23899 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
23900 grub_video_get_info_and_fini.
23901 * video/i386/pc/vbe.c: Moved framebuffer part ...
23902 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
23903 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
23904 grub_video_fbstd_colors and grub_video_fb_set_palette.
23905 (grub_video_vbe_init): Clear 'framebuffer' variable and use
23906 grub_video_fb_init.
23907 (grub_video_vbe_fini): Use grub_video_fb_fini.
23908 (grub_video_vbe_setup): Use framebuffer.render_target instead of
23909 render_target and use grub_video_fb_set_active_render_target and
23910 grub_video_fb_set_palette.
23911 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
23912 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
23913 (grub_video_vbe_adapter): Use framebuffer.
23914 * video/video.c (grub_video_get_info_and_fini): New function.
23915 (grub_video_set_mode): Make modestring const char *.
23916 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
23917 values are already initialised.
23918
23919 2009-08-14 Pavel Roskin <proski@gnu.org>
23920
23921 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
23922 ABS and APPLE_CC.
23923 * boot/i386/pc/diskboot.S: Likewise.
23924 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
23925 sectors allow compilation on MacOSX.
23926 * conf/i386-pc.rmk: Enable unconditional compilation of
23927 lnxboot.img.
23928
23929 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
23930
23931 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
23932 * util/grub.d/00_header.in: Enter interruptible sleep if
23933 GRUB_HIDDEN_TIMEOUT is set.
23934
23935 2009-08-13 Yves Blusseau <blusseau@zetam.org>
23936
23937 * include/grub/symbol.h: Add the LOCAL macro.
23938 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
23939 starting with "L_".
23940
23941 2009-08-13 Pavel Roskin <proski@gnu.org>
23942
23943 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
23944 any modern compilers we support.
23945
23946 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
23947 Use local labels starting with "L_" so that Apple assembler
23948 knows they are local.
23949
23950 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
23951
23952 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
23953 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
23954 (bsd_kernel_types): ... this enum.
23955
23956 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
23957 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
23958 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
23959
23960 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
23961 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
23962 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
23963 messages.
23964
23965 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23966
23967 * util/grub-dumpdevtree: Moved from here ...
23968 * util/i386/efi/grub-dumpdevtree: ... to here.
23969 (hexify): New function. Converts a string to its hex version.
23970 Generate hex versions of "efi" and "device-properties" by calling
23971 hexify() on the ASCII strings rather than by hardcoding numbers.
23972
23973 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23974
23975 * fs/jfs.c: Update copyright year.
23976
23977 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23978
23979 * util/grub.d/00_header.in: Fix a comment.
23980 * util/grub.d/10_linux.in: Likewise.
23981 * util/grub.d/10_windows.in: Likewise.
23982 * util/grub.d/10_hurd.in: Likewise.
23983
23984 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23985
23986 * util/grub-mkconfig.in: Allow the user to specify the used font
23987 with GRUB_FONT.
23988
23989 2009-08-08 Pavel Roskin <proski@gnu.org>
23990
23991 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
23992 available, xfs.mod needs it now.
23993
23994 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
23995 the "g" modifier in sed when the intention is to strip something
23996 once. This fixes comparison of kernels with multiple dashes.
23997
23998 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
23999 on it. Add missing space before closing bracket. Fix
24000 misleading formatting.
24001
24002 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24003
24004 * docs/grub.texi: Major overhaul. Remove all sections that are
24005 specific to GRUB Legacy, or mostly composed of Legacy-specific
24006 information.
24007
24008 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24009
24010 * docs/version.texi: New file. Provides version information for
24011 grub.texi.
24012
24013 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24014
24015 * docs/grub.texi: Update CVS information to SVN.
24016 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
24017
24018 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24019
24020 * util/grub-mkconfig.in: Remove a wrong `fi'.
24021
24022 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24023
24024 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
24025 (grub_jfs_uuid): New function.
24026 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
24027
24028 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24029
24030 * util/grub-mkconfig_lib.in (font_path): Move the functionality
24031 of it to ...
24032 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
24033 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
24034
24035 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24036
24037 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
24038 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
24039 Update all users.
24040
24041 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
24042 not just "vmlinu[zx]".
24043 Moved from here ...
24044 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
24045 all users.
24046
24047 * util/grub.d/10_linux.in (find_latest): Moved from here ...
24048 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
24049 all users.
24050
24051 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24052
24053 * util/grub.d/10_freebsd.in: Use an absolute device path for
24054 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
24055
24056 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
24057
24058 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
24059 handling of multiple abstraction modules.
24060
24061 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
24062
24063 Fix a bug resulting in black screen when loading Linux using a
24064 packed video mode.
24065
24066 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
24067 function.
24068
24069 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
24070 (grub_vbe_bios_getset_dac_palette_width): New function.
24071 (grub_vbe_bios_get_dac_palette_width)
24072 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
24073 grub_vbe_bios_getset_dac_palette_width()).
24074
24075 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
24076 check for return status.
24077 (grub_vbe_get_video_mode_info): When getting information for a packed
24078 mode (<= 8 bpp), obtain DAC palette width using
24079 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
24080 {red,green,blue}_mark_size.
24081
24082 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
24083
24084 * commands/search.c (options): Fix help output to match actual code.
24085
24086 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
24087
24088 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
24089 of homegrown code.
24090
24091 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24092
24093 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
24094 on XFS or ReiserFS.
24095
24096 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24097
24098 Support Apple partition map with sector size different from 512 bytes.
24099
24100 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
24101 (apple_partition_map_iterate): Respect 'aheader.blocksize'
24102 and 'apart.partmap_size'.
24103
24104 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24105 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
24106
24107 Fix cpuid command.
24108
24109 * commands/i386/cpuid.c (options): New variable.
24110 (grub_cmd_cpuid): Return real error.
24111 (GRUB_MOD_INIT(cpuid)): Declare options.
24112
24113 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
24114
24115 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
24116 valid.
24117
24118 2009-07-31 Bean <bean123ch@gmail.com>
24119
24120 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
24121 log2_inode.
24122 (grub_fshelp_node): Move inode field to the end.
24123 (grub_xfs_data): Remove inode field.
24124 (grub_xfs_inode_block): Calculate inode size using sblock.
24125 (grub_xfs_inode_offset): Likewise.
24126 (grub_xfs_read_inode): Calculate inode size using sblock.
24127 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
24128 (grub_xfs_iterate_dir): Calculate inode size using sblock.
24129 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
24130 to match inode size.
24131 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
24132 not accessible when data is null.
24133 (grub_xfs_open): Likewise.
24134
24135 2009-07-31 Bean <bean123ch@gmail.com>
24136
24137 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
24138 Don't change pv->disk if it's already set.
24139
24140 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
24141 (grub_raid_register): ... here.
24142 (grub_raid_rescan): Removed.
24143
24144 * include/grub/raid.h (grub_raid_rescan): Removed.
24145
24146 * util/grub-fstest.c: Remove include file <grub/raid.h>.
24147 (fstest): Replace grub_raid_rescan with module fini function followed
24148 by init function.
24149
24150 * util/grub-probe.c: Add include file <grub/raid.h>.
24151 (probe_raid_level): New function.
24152 (probe): Detect abstraction by walking the disk device, support two
24153 level of abstraction (LVM on RAID) when detecting partition map.
24154
24155 2009-07-31 Pavel Roskin <proski@gnu.org>
24156
24157 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
24158 to grub_zalloc(), it was erroneous.
24159 Reported by Bean <bean123ch@gmail.com>
24160
24161 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
24162
24163 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
24164 embedding zone, not only the first one.
24165
24166 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
24167
24168 * term/gfxterm.c (clear_char): New function.
24169 (grub_virtual_screen_setup): Use clear_char.
24170 (scroll_up): Likewise.
24171 (grub_virtual_screen_cls): Likewise.
24172
24173 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
24174
24175 * util/deviceiter.c (get_acceleraid_disk_name): New static
24176 function.
24177 (grub_util_iterate_devices): Handle Accelraid devices.
24178 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
24179
24180 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
24181
24182 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
24183 separator for the suggested gfxpayload string (';' collides with the
24184 parser and needs escaping).
24185
24186 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
24187
24188 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
24189 Clear direction flag before jumping to OS.
24190 (grub_multiboot2_real_boot): Likewise.
24191
24192 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24193
24194 * util/i386/pc/grub-install: Fix parsing of --disk-module
24195 option.
24196
24197 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24198
24199 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
24200 when embedding.
24201
24202 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
24203
24204 * util/grub-mkconfig.in (package_version): New variable.
24205 Use it do display the version.
24206
24207 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24208
24209 * kern/file.c (grub_file_open): Revert to previous check with
24210 grub_errno.
24211
24212 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24213
24214 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
24215 from help line. It's out of sync with code.
24216
24217 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24218
24219 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
24220 entries on failed boot.
24221
24222 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24223
24224 * kern/file.c (grub_file_open): Fix an error check.
24225
24226 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
24227
24228 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
24229 partition map couldn't be identified.
24230
24231 2009-07-23 Pavel Roskin <proski@gnu.org>
24232
24233 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
24234 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
24235 case of little endian words becomes just an optimization.
24236 Respect const modifier.
24237 (md5_final): Use code that doesn't depend on endianness.
24238
24239 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
24240 to avoid loss of upper bits if align is unsigned and shorter
24241 than addr.
24242
24243 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24244
24245 UUID support for UFS
24246
24247 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
24248 (grub_ufs_uuid): New function.
24249 (grub_ufs_fs): add .uuid
24250
24251 2009-07-21 Pavel Roskin <proski@gnu.org>
24252
24253 * kern/dl.c (grub_dl_check_header): Make static.
24254
24255 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
24256
24257 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
24258 add drivemap for Vista. It breaks Windows 7.
24259
24260 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24261
24262 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
24263 128 bytes
24264
24265 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24266
24267 Add BFS support
24268
24269 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
24270 (grub_fstest_SOURCES): Likewise.
24271 (pkglib_MODULES): Add befs.mod.
24272 (befs_mod_SOURCES): New variable.
24273 (befs_mod_CFLAGS): Likewise.
24274 (befs_mod_LDFLAGS): Likewise.
24275 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24276 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24277 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24278 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24279 (grub_setup_SOURCES): Likewise.
24280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24281 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24282 (grub_setup_SOURCES): Likewise.
24283 * fs/befs.c: New file.
24284 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
24285 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
24286 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
24287 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
24288 (B_KEY_INDEX_ALIGN): New declaration.
24289 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
24290 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
24291 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
24292 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
24293 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
24294 (grub_afs_mount) [MODE_BFS]: Likewise.
24295 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
24296 (grub_afs_fs): Use GRUB_AFS_FSNAME
24297 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
24298 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
24299 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
24300 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
24301
24302 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
24303
24304 * util/getroot.c (find_root_device): Add support for MacOSX.
24305 * util/hostdisk.c: Likewise.
24306
24307 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24308
24309 * font/font.c (find_glyph): Check whether a font is present to avoid
24310 segmentation fault.
24311
24312 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
24313
24314 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
24315
24316 2009-07-20 Pavel Roskin <proski@gnu.org>
24317
24318 * configure.ac: Trim excessively wordy excuses.
24319
24320 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24321
24322 Add symlink, mtime and label support to AtheFS.
24323
24324 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
24325 (grub_afs_iterate_dir): Handle symlinks.
24326 (grub_afs_open): Use grub_afs_read_symlink.
24327 (grub_afs_dir): Likewise.
24328 Pass mtime.
24329 (grub_afs_label): New function.
24330 (grub_afs_fs): Add grub_afs_label.
24331 (grub_afs_read_symlink): New function.
24332
24333 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24334
24335 Fix AtheFS support.
24336
24337 * fs/afs.c: Fix comments style.
24338 (grub_afs_blockrun): Declare as packed.
24339 (grub_afs_datastream): Likewise.
24340 (grub_afs_bnode): Likewise.
24341 (grub_afs_btree): Likewise.
24342 (grub_afs_sblock): Likewise.
24343 Declare `name' as char.
24344 (grub_afs_inode): Declare as packed.
24345 Change void *vnode to grub_uint32_t unused.
24346 (grub_afs_iterate_dir): Check that key_size is positive.
24347 (grub_afs_mount): Don't read superblock twice.
24348 (grub_afs_dir): Don't free node in case of error,
24349 grub_fshelp_find_file already handles this.
24350 (grub_afs_open): Likewise.
24351
24352 2009-07-19 Pavel Roskin <proski@gnu.org>
24353
24354 * Makefile.in: Remove LIBLZO and enable_lzo.
24355 * conf/i386-pc.rmk: Remove lzo support.
24356 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
24357 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
24358 support.
24359 * kern/i386/pc/lzo1x.S: Remove.
24360 * kern/i386/pc/startup.S: Remove lzo support.
24361 * util/i386/pc/grub-mkimage.c: Likewise.
24362
24363 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
24364
24365 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
24366 * fs/xfs.c (grub_xfs_dir): Likewise.
24367 * fs/afs.c (grub_afs_dir): Likewise.
24368 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
24369 (grub_iso9660_open): Likewise.
24370 * fs/jfs.c (grub_jfs_open): Likewise.
24371 * fs/ext2.c (grub_ext2_dir): Likewise.
24372 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
24373 * script/sh/lexer.c (grub_script_yylex): Likewise.
24374
24375 2009-07-16 Pavel Roskin <proski@gnu.org>
24376
24377 * configure.ac: Never add "-c" to CFLAGS.
24378
24379 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
24380
24381 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
24382 grub_cv_cc_efiemu should be used.
24383
24384 * configure.ac: Typo fixes.
24385
24386 * kern/mm.c (grub_zalloc): New function.
24387 (grub_debug_zalloc): Likewise.
24388 * include/grub/mm.h: Declare grub_zalloc() and
24389 grub_debug_zalloc().
24390 * util/misc.c (grub_zalloc): New function.
24391 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
24392 instead of grub_malloc(), remove unneeded initializations.
24393 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
24394 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
24395 * commands/parttool.c (grub_cmd_parttool): Likewise.
24396 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24397 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
24398 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
24399 * disk/usbms.c (grub_usbms_finddevs): Likewise.
24400 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
24401 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
24402 (grub_cmd_efiemu_pnvram): Likewise.
24403 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
24404 * fs/iso9660.c (grub_iso9660_mount): Likewise.
24405 (grub_iso9660_iterate_dir): Likewise.
24406 * fs/jfs.c (grub_jfs_opendir): Likewise.
24407 * fs/ntfs.c (list_file): Likewise.
24408 (grub_ntfs_mount): Likewise.
24409 * kern/disk.c (grub_disk_open): Likewise.
24410 * kern/dl.c (grub_dl_load_core): Likewise.
24411 * kern/elf.c (grub_elf_file): Likewise.
24412 * kern/env.c (grub_env_context_open): Likewise.
24413 (grub_env_set): Likewise.
24414 (grub_env_set_data_slot): Likewise.
24415 * kern/file.c (grub_file_open): Likewise.
24416 * kern/fs.c (grub_fs_blocklist_open): Likewise.
24417 * loader/i386/multiboot.c (grub_module): Likewise.
24418 * loader/xnu.c (grub_xnu_create_key): Likewise.
24419 (grub_xnu_create_value): Likewise.
24420 * normal/main.c (grub_normal_add_menu_entry): Likewise.
24421 (read_config_file): Likewise.
24422 * normal/menu_entry.c (make_screen): Likewise.
24423 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24424 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
24425 * script/sh/script.c (grub_script_parse): Likewise.
24426 * video/bitmap.c (grub_video_bitmap_create): Likewise.
24427 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
24428 * video/readers/png.c (grub_png_output_byte): Likewise.
24429 (grub_video_reader_png): Likewise.
24430
24431 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24432
24433 Enable all targets that can be built by default
24434
24435 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
24436 grub-mkfont and grub-fstest if they can be built
24437
24438 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24439
24440 Fix hang and segmentation fault in grub-emu-usb
24441
24442 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
24443 * util/usb.c (grub_libusb_devices): likewise
24444 (grub_libusb_init): rename to ...
24445 (GRUB_MOD_INIT (libusb)):...this
24446 (grub_libusb_fini): rename to ..
24447 (GRUB_MOD_FINI (libusb)):...this
24448 * disk/usbms.c (grub_usbms_transfer): fix retry logic
24449 * include/grub/disk.h (grub_raid_init): removed, it's useless
24450 (grub_raid_fini): likewise
24451 (grub_lvm_init): likewise
24452 (grub_lvm_fini): likewise
24453 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
24454 by grub_init_all
24455
24456 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24457
24458 Fix libusb
24459
24460 * Makefile.in (LIBUSB): new macro
24461 * genmk.rb (Utility/print_tail): new method
24462 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
24463 (top level): call util.print_tail at the end.
24464
24465 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24466
24467 Make FreeBSD accept zpool.cache
24468
24469 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
24470 type is /boot/zfs/zpool.cache
24471
24472 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24473
24474 Fix 64-bit efiemu
24475
24476 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
24477 correct wrong typedef
24478 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
24479
24480 2009-07-15 Pavel Roskin <proski@gnu.org>
24481
24482 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
24483 * kern/disk.c (struct grub_disk_cache): Likewise.
24484
24485 * commands/probe.c (options): Typo fix.
24486
24487 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
24488 Increase to 0x5a to accommodate FAT32. Adjust other offsets
24489 accordingly.
24490 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
24491
24492 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
24493 the end of "Error" to make the message more readable.
24494
24495 * boot/i386/pc/boot.S (kernel_segment): Remove.
24496 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
24497 for destination.
24498
24499 * boot/i386/pc/boot.S (boot_version): Remove.
24500 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
24501 Remove.
24502
24503 * include/grub/i386/pc/boot.h: Sort all offsets.
24504 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
24505 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
24506 * boot/i386/pc/boot.S: Assert location of every offset listed in
24507 include/grub/i386/pc/boot.h.
24508
24509 2009-07-13 Pavel Roskin <proski@gnu.org>
24510
24511 * include/grub/i386/coreboot/machine.h: Rename
24512 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
24513 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
24514 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
24515
24516 * kern/dl.c: Force native word size to suppress warnings when
24517 compiling grub-emu.
24518
24519 * kern/device.c (grub_device_iterate): Change struct part_ent to
24520 hold the name, not a pointer to it. Use one grub_malloc() per
24521 partition, not two. Free partition_name if grub_malloc() fails.
24522 Set ents to NULL only before grub_partition_iterate() is called.
24523
24524 2009-07-11 Bean <bean123ch@gmail.com>
24525
24526 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
24527 childname.
24528
24529 2009-07-10 Bean <bean123ch@gmail.com>
24530 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
24531
24532 * kern/ieee1275/openfw.c (grub_children_iterate)
24533 (grub_devalias_iterate): Fix size evaluation for property or path
24534 strings, which was broken since r2132.
24535
24536 2009-07-07 Pavel Roskin <proski@gnu.org>
24537
24538 * commands/search.c (search_file): Merge into ...
24539 (search_fs): ... this. Accept search type as argument.
24540 (grub_cmd_search): Pass search type to search_fs().
24541
24542 * include/grub/util/console.h: New file.
24543 * util/console.c: Use it instead of grub/machine/console.h.
24544 * util/grub-emu.c: Likewise.
24545
24546 * lib/arg.c (find_long_option): Remove.
24547 (find_long): Add `len' argument, make `s' const char *.
24548 (grub_arg_parse): Parse long options in place, not in a
24549 temporary buffer.
24550
24551 2009-07-06 Pavel Roskin <proski@gnu.org>
24552
24553 * commands/search.c (search_fs): Fix potential NULL pointer
24554 dereference.
24555
24556 * commands/search.c (search_fs): Replace QUID macro with quid_fn
24557 function pointer.
24558
24559 2009-07-06 Daniel Mierswa <impulze@impulze.org>
24560
24561 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
24562 comparison.
24563
24564 2009-07-05 Pavel Roskin <proski@gnu.org>
24565
24566 * include/grub/i386/linux.h (struct linux_kernel_params):
24567 Restore padding3, it's still needed.
24568
24569 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
24570 FreeBSD.
24571 * util/osdetect.lua: Likewise.
24572
24573 2009-07-05 Bean <bean123ch@gmail.com>
24574
24575 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
24576
24577 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
24578 (grub_lua_getenv): Likewise.
24579 (grub_lua_setenv): Likewise.
24580 (save_errno): New function.
24581 (push_result): Likewise.
24582 (grub_lua_enum_device): Likewise.
24583 (grub_lua_enum_file): Likewise.
24584 (grub_lua_file_open): Likewise.
24585 (grub_lua_file_close): Likewise.
24586 (grub_lua_file_seek): Likewise.
24587 (grub_lua_file_read): Likewise.
24588 (grub_lua_file_getline): Likewise.
24589 (grub_lua_file_getsize): Likewise.
24590 (grub_lua_file_getpos): Likewise.
24591 (grub_lua_file_eof): Likewise.
24592 (grub_lua_file_exist): Likewise.
24593 (grub_lua_add_menu): Likewise.
24594
24595 * script/lua/grub_lua.h (isupper): New inline function.
24596 (islower): Likewise.
24597 (ispunct): Likewise.
24598 (isxdigit): Likewise.
24599 (strcspn): Change to normal function.
24600 (strpbkr): New function declaration.
24601 (memchr): Likewise.
24602
24603 * script/lua/grub_main.c (scan_str): New function.
24604 (strcspn): Likewise.
24605 (strpbrk): Likewise.
24606 (memchr): Likewise.
24607
24608 * script/lua/linit.c (lualibs): Enable the string library.
24609
24610 * util/osdetect.lua: New file.
24611
24612 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
24613
24614 * include/grub/i386/linux.h (struct linux_kernel_params): Add
24615 `capabilities' member.
24616
24617 2009-07-02 Pavel Roskin <proski@gnu.org>
24618
24619 * genparttoollist.sh: Add missing newline at the end.
24620
24621 2009-07-01 Pavel Roskin <proski@gnu.org>
24622
24623 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
24624
24625 * util/hostdisk.c (open_device): Remove `const' from
24626 `sysctl_size', as sysctlbyname() can change it (in this case it
24627 doesn't actually happen).
24628
24629 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
24630 using signed long int constants.
24631
24632 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
24633 constant to avoid a warning on FreeBSD.
24634
24635 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
24636 where it's needed.
24637
24638 * Makefile.in: Install include/grub/machine symlink.
24639
24640 * Makefile.in: When installing symlinks, use "cp -fR", which
24641 works on FreeBSD and MacOSX.
24642 From Yves Blusseau <cl7m42e02@sneakemail.com>
24643
24644 * kern/dl.c (grub_dl_resolve_symbol): Make static.
24645 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
24646
24647 * util/misc.c: Move grub_reboot() and grub_halt() ...
24648 * util/grub-emu.c: ... here. Make main_env static.
24649 * include/grub/util/misc.h: Remove main_env.
24650
24651 * kern/mm.c: Use correct format to print size_t.
24652
24653 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
24654 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
24655 * kern/powerpc/dl.c: Likewise.
24656 * kern/sparc64/dl.c: Likewise.
24657 * kern/x86_64/dl.c: Likewise.
24658
24659 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24660
24661 Fix grub-emu build on sparc64-ieee1275.
24662
24663 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
24664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
24665
24666 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24667
24668 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
24669 (grub_reboot, grub_halt): New functions.
24670
24671 * util/i386/pc/misc.c: Delete. Update all users.
24672 * util/sparc64/ieee1275/misc.c: Likewise.
24673 * util/powerpc/ieee1275/misc.c: Likewise.
24674
24675 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24676
24677 * conf/i386.rmk (setjmp_mod_SOURCES)
24678 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
24679 * conf/common.rmk (setjmp_mod_SOURCES)
24680 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
24681 to use $(target_cpu).
24682 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
24683 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
24684 * conf/powerpc-ieee1275.rmk: Likewise.
24685 * conf/sparc64-ieee1275.rmk: Likewise.
24686
24687 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
24688 $(target_cpu) for kern/$(target_cpu)/dl.c.
24689 * conf/i386-efi.rmk: Likewise.
24690 * conf/i386-ieee1275.rmk: Likewise.
24691 * conf/x86_64-efi.rmk: Likewise.
24692 * conf/i386-coreboot.rmk: Likewise.
24693 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
24694 $(target_cpu) for kern/$(target_cpu)/dl.c and for
24695 kern/$(target_cpu)/cache.S.
24696 * conf/sparc64-ieee1275.rmk: Likewise.
24697
24698 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24699
24700 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
24701 type to `grub_uint8_t', and adjust `padding9' accordingly.
24702
24703 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24704
24705 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
24706
24707 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
24708 assembly in final jump, using register constraints.
24709
24710 (grub_linux_boot): For text mode, initialize `have_vga' using
24711 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
24712
24713 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
24714 right before the final jump.
24715
24716 Set `video_mode' to 0x3.
24717
24718 Document initialization of `video_page', `video_mode' and
24719 `video_ega_bx'.
24720
24721 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24722
24723 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
24724 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
24725 and set GRUB_LINUX_FLAG_QUIET appropriately.
24726
24727 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24728
24729 Fix build on Debian / sparc.
24730
24731 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
24732
24733 2009-06-28 Pavel Roskin <proski@gnu.org>
24734
24735 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
24736 fix a warning.
24737
24738 * util/grub.d/10_linux.in: Match SUSE style initrd names.
24739
24740 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24741
24742 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
24743 `err'.
24744
24745 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24746
24747 Revert r2338.
24748
24749 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
24750 file can't be opened. grub_file_open() is already supposed to set
24751 grub_errno / grub_errmsg appropriately.
24752 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24753
24754 2009-06-27 Pavel Roskin <proski@gnu.org>
24755 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24756
24757 * include/grub/dl.h: Include grub/elf.h.
24758 (struct grub_dl): Add symtab field.
24759 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
24760 GRUB_MODULES_MACHINE_READONLY.
24761 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
24762 of the header for read-only modules.
24763 (grub_dl_unload): Free mod->symtab for read-only modules.
24764 * kern/i386/dl.c: Use mod->symtab.
24765 * kern/powerpc/dl.c: Likewise.
24766 * kern/sparc64/dl.c: Likewise.
24767 * kern/x86_64/dl.c: Likewise.
24768
24769 * conf/i386-qemu.rmk: New file.
24770 * kern/i386/qemu/startup.S: Likewise.
24771 * kern/i386/qemu/mmap.c: Likewise.
24772 * boot/i386/qemu/boot.S: Likewise.
24773 * include/grub/i386/qemu/time.h: Likewise.
24774 * include/grub/i386/qemu/serial.h: Likewise.
24775 * include/grub/i386/qemu/kernel.h: Likewise.
24776 * include/grub/i386/qemu/console.h: Likewise.
24777 * include/grub/i386/qemu/boot.h: Likewise.
24778 * include/grub/i386/qemu/init.h: Likewise.
24779 * include/grub/i386/qemu/machine.h: Likewise.
24780 * include/grub/i386/qemu/loader.h: Likewise.
24781 * include/grub/i386/qemu/memory.h: Likewise.
24782
24783 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
24784 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
24785 [qemu] (pkglib_IMAGES): Add `boot.img'.
24786 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
24787 [qemu] (boot_img_FORMAT): New variables.
24788 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
24789 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
24790 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
24791 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24792 [qemu] (kernel_img_FORMAT): New variables.
24793
24794 * configure.ac: Recognise `i386-qemu'.
24795
24796 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
24797 (for no compression).
24798 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
24799 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
24800 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
24801 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
24802 ifdefs).
24803
24804 2009-06-27 Pavel Roskin <proski@gnu.org>
24805
24806 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
24807 read.
24808 * efiemu/prepare32.c: Likewise.
24809 * efiemu/prepare64.c: Likewise.
24810
24811 2009-06-26 Pavel Roskin <proski@gnu.org>
24812
24813 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
24814 * include/grub/elf.h: Define symbols without "32" or "64" based
24815 on GRUB_TARGET_WORDSIZE.
24816 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
24817 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
24818 ELF definitions.
24819 * efiemu/loadcore64.c: Likewise.
24820 * loader/i386/bsd32.c: Likewise.
24821 * loader/i386/bsd64.c: Likewise.
24822 * kern/dl.c: Remove own ELF definitions.
24823 * util/i386/efi/grub-mkimage.c: Likewise.
24824
24825 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
24826
24827 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
24828 segment 0x0 unconditionally, because the reference generated by
24829 GAS is an absolute address.
24830
24831 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24832
24833 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
24834 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
24835
24836 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24837
24838 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
24839 indexes. Check for -f explicitly.
24840 (search_file): Improve error message.
24841 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
24842
24843 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24844
24845 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
24846 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
24847
24848 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24849
24850 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
24851 * conf/i386-ieee1275.rmk: Likewise.
24852 * conf/i386-coreboot.rmk: Likewise.
24853
24854 * kern/i386/pc/startup.S (grub_stop): Remove function.
24855 * kern/i386/ieee1275/startup.S: Likewise.
24856 * kern/i386/coreboot/startup.S: Likewise.
24857 * kern/i386/misc.S (grub_stop): New function.
24858
24859 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24860
24861 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
24862 * kern/i386/realmode.S (real_to_prot): ... to here.
24863
24864 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24865
24866 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
24867 with `kernel.img'.
24868 (kernel_elf_SOURCES): Rename to ...
24869 (kernel_img_SOURCES): ... this.
24870 (kernel_elf_HEADERS): Rename to ...
24871 (kernel_img_HEADERS): ... this. Update all users.
24872 (kernel_elf_ASFLAGS): Rename to ...
24873 (kernel_img_ASFLAGS): ... this.
24874 (kernel_elf_CFLAGS): Rename to ...
24875 (kernel_img_CFLAGS): ... this.
24876 (kernel_elf_LDFLAGS): Rename to ...
24877 (kernel_img_LDFLAGS): ... this.
24878 * conf/i386-coreboot.rmk: Likewise.
24879 * conf/powerpc-ieee1275.rmk: Likewise.
24880
24881 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
24882 with "kernel.img".
24883
24884 2009-06-21 Pavel Roskin <proski@gnu.org>
24885
24886 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
24887 to match nested functions.
24888 * loader/sparc64/ieee1275/linux.c: Likewise.
24889
24890 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
24891
24892 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24893
24894 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
24895 all i386 platforms.
24896
24897 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24898
24899 Fix asm file handling on ELF, and remove workarounds.
24900
24901 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
24902 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
24903 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
24904 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
24905
24906 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
24907
24908 Load BSD ELF modules
24909
24910 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
24911 and loader/i386/bsd64.c
24912 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
24913 (FREEBSD_MODTYPE_ELF_MODULE): New definition
24914 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
24915 (grub_freebsd_load_elfmodule32): New declaration
24916 (grub_freebsd_load_elfmoduleobj64): Likewise
24917 (grub_freebsd_load_elf_meta32): Likewise
24918 (grub_freebsd_load_elf_meta64): Likewise
24919 (grub_freebsd_add_meta): Likewise
24920 (grub_freebsd_add_meta_module): Likewise
24921 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
24922 (grub_freebsd_add_meta_module): Likewise and move module-specific
24923 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
24924 (grub_cmd_freebsd): Add elf-kernel specific parts
24925 based on grub_freebsd_add_meta_module
24926 (grub_cmd_freebsd_module): Add type parsing moved from
24927 grub_freebsd_add_meta_module
24928 (grub_cmd_freebsd_module_elf): New function
24929 (cmd_freebsd_module_elf): New variable
24930 (GRUB_MOD_INIT): Register freebsd_module_elf
24931 * loader/i386/bsd32.c: New file
24932 * loader/i386/bsd64.c: Likewise
24933 * loader/i386/bsdXX.c: Likewise
24934 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
24935 (grub_elf64_load): Likewise
24936 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
24937 All users updated
24938 (grub_elf64_load_hook_t): Likewise
24939
24940 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
24941
24942 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
24943 variable.
24944 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
24945 don't write a menu entry for recovery mode.
24946
24947 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24948
24949 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
24950 after it's no longer needed.
24951
24952 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24953
24954 * include/grub/i386/loader.h (grub_linux_prot_size)
24955 (grub_linux_tmp_addr, grub_linux_real_addr)
24956 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
24957 GRUB_MACHINE_PCBIOS.
24958 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
24959 common grub_util_info() call to ...
24960 (generate_image): ... here.
24961 Fix use of uninitialized memory, comparison of signed with
24962 unsigned integers and memory leak.
24963 Remove bogus module address message.
24964
24965 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24966
24967 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
24968 grub_raid_register
24969 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
24970
24971 2009-06-19 Pavel Roskin <proski@gnu.org>
24972
24973 * configure.ac: Remove stray AC_MSG_CHECKING.
24974
24975 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
24976
24977 * disk/scsi.c (grub_scsi_open): use continue instead of big if
24978
24979 2009-06-18 Pavel Roskin <proski@gnu.org>
24980
24981 * conf/common.rmk: Add fs_file.mod.
24982 * disk/fs_file.c: New file.
24983 * include/grub/disk.h (enum grub_disk_dev_id): Add
24984 GRUB_DISK_DEVICE_FILE_ID.
24985
24986 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24987
24988 Fix build with Apple's toolchain. Part 2
24989
24990 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
24991 a fake start
24992
24993 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24994
24995 Fix build with Apple's toolchain. Part 1
24996
24997 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
24998 for long calls
24999 * configure.ac: remove a leftover AC_MSG_RESULT
25000 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
25001 Apple's toolchain
25002
25003 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25004
25005 Fix warnings
25006
25007 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
25008 (decomp_block): initialize ch
25009 use grub_memcpy instead of memcpy
25010
25011 2009-06-17 Pavel Roskin <proski@gnu.org>
25012
25013 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
25014 version, use declarations needed to use vga_text as the startup
25015 console.
25016
25017 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
25018 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
25019 the kernel.
25020 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
25021 and grub_at_keyboard_fini(), it's done on module load and
25022 unload.
25023
25024 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
25025
25026 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
25027 file can't be found.
25028 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
25029
25030 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
25031
25032 Fix newline handling
25033
25034 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
25035 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
25036 (grub_script_yylex): don't segfault on unterminated script
25037 newline terminates command and variable
25038
25039 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
25040
25041 avoid double grub_adjust_range call. Bug reported by David Simner
25042
25043 * kern/disk.c (grub_disk_write): change to raw disk access before
25044 calling disk_read
25045
25046 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
25047
25048 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
25049 spaces, for the benefit of help2man.
25050 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25051
25052 2009-06-16 Pavel Roskin <proski@gnu.org>
25053
25054 * kern/i386/halt.c: Include grub/machine/init.h.
25055 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
25056
25057 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
25058
25059 * util/grub.d/30_os-prober.in: Use ${root} in the generated
25060 drivemap menuentry.
25061
25062 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
25063
25064 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
25065 `echo' command.
25066
25067 2009-06-16 Pavel Roskin <proski@gnu.org>
25068
25069 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
25070 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
25071 save %dx, we only need %dl and we never change it.
25072 * boot/i386/pc/cdboot.S: Don't set the root drive.
25073 * boot/i386/pc/pxeboot.S: Likewise.
25074 * include/grub/i386/pc/boot.h: Remove
25075 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
25076 GRUB_BOOT_MACHINE_DRIVE_CHECK.
25077 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
25078 * kern/i386/pc/init.c (make_install_device): Remove references
25079 to grub_root_drive.
25080 * kern/i386/pc/startup.S: Likewise.
25081 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
25082
25083 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
25084
25085 xnu_uuid command
25086
25087 * commands/xnu_uuid.c: new file
25088 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
25089 (xnu_uuid_mod_SOURCES): new variable
25090 (xnu_uuid_mod_CFLAGS): likewise
25091 (xnu_uuid_mod_LDFLAGS): likewise
25092 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
25093 * conf/i386-ieee1275.rmk: likewise
25094 * conf/i386-pc.rmk: likewise
25095 * conf/powerpc-ieee1275.rmk: likewise
25096 * conf/sparc64-ieee1275.rmk: likewise
25097 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
25098
25099 2009-06-16 Pavel Roskin <proski@gnu.org>
25100
25101 * configure.ac: Avoid '==' in test command, it's not portable.
25102
25103 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
25104
25105 Probe command
25106
25107 * commands/probe.c: new file
25108 * conf/common.rmk (pkglib_MODULES): add probe.mod
25109 (probe_mod_SOURCES): new variable
25110 (probe_mod_CFLAGS): likewise
25111 (probe_mod_LDFLAGS): likewise
25112 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
25113 * conf/i386-ieee1275.rmk: likewise
25114 * conf/i386-pc.rmk: likewise
25115 * conf/powerpc-ieee1275.rmk: likewise
25116 * conf/sparc64-ieee1275.rmk: likewise
25117
25118 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
25119
25120 Fix handling of string like \"hello\" and "a
25121 b"
25122
25123 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
25124 (grub_script_yylex): fix parsing of quoting, escaping and newline
25125
25126 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
25127
25128 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
25129 handling
25130
25131 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
25132
25133 * util/grub-mkconfig.in: Fix parsing of --output option.
25134
25135 2009-06-12 Pavel Roskin <proski@gnu.org>
25136
25137 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
25138 genmk.rb don't need to be generated or installed.
25139
25140 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
25141
25142 * commands/i386/pc/drivemap_int13h.S: add more comments
25143
25144 2009-06-11 Pavel Roskin <proski@gnu.org>
25145
25146 * Makefile.in (uninstall): Uninstall manuals.
25147
25148 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
25149 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
25150 and update-grub_lib in two places.
25151 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
25152
25153 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
25154 a compiler warning.
25155
25156 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
25157 `entry_lo' to fix variable shadowing.
25158
25159 2009-06-11 Christian Franke <franke@computer.org>
25160
25161 * kern/misc.c (__enable_execute_stack): Add missing return type
25162 to prevent gcc warning.
25163
25164 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
25165
25166 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
25167
25168 2009-06-11 Pavel Roskin <proski@gnu.org>
25169
25170 * Makefile.in: Don't rely on any scripts being executable.
25171 Always use $(SHELL) to run shell scripts.
25172
25173 * configure.ac: Always define ___main if using -nostdlib. This
25174 fixes tests on Cygwin.
25175
25176 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
25177
25178 UDF fix
25179
25180 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
25181 is in bytes and not in blocks
25182
25183 2009-06-11 Pavel Roskin <proski@gnu.org>
25184
25185 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
25186 warning.
25187
25188 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
25189
25190 * util/grub.d/30_os-prober.in: Fix a comment. Source
25191 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
25192 to set the root device. Place drivemap command in the generated
25193 chain entry.
25194
25195 2009-06-11 Pavel Roskin <proski@gnu.org>
25196
25197 * configure.ac: Remove host_m32. Issues with 64-bit utilities
25198 have long been resolved.
25199
25200 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
25201
25202 * util/grub.d/10_linux.in: Capitalise "Linux".
25203
25204 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
25205
25206 2009-06-11 Pavel Roskin <proski@gnu.org>
25207
25208 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
25209 fix a gcc warning and ensure that the function won't ever exit.
25210
25211 * kern/i386/ieee1275/init.c: Add missing prototype for
25212 grub_stop_floppy().
25213
25214 * loader/ieee1275/multiboot2.c [__i386__]: Include
25215 grub/cpu/multiboot.h.
25216
25217 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
25218 casts to short - they are not portable and cause warnings. Fix
25219 use of uninitialized values in input_buf. Use ARRAY_SIZE.
25220
25221 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
25222
25223 Drivemap fixes
25224
25225 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
25226 new function
25227 (grub_get_root_biosnumber_saved): new variable
25228 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
25229 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
25230 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
25231 %dx after the call if necessary
25232 * conf/common.rmk (pkglib_MODULES): remove boot.mod
25233 (boot_mod_SOURCES): remove
25234 (boot_mod_CFLAGS): remove
25235 (boot_mod_LDFLAGS): remove
25236 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
25237 (boot_mod_SOURCES): new variable
25238 (boot_mod_CFLAGS): likewise
25239 (boot_mod_LDFLAGS): likewise
25240 * conf/i386-efi.rmk: likewise
25241 * conf/i386-ieee1275.rmk: likewise
25242 * conf/i386-pc.rmk: likewise
25243 * conf/powerpc-ieee1275.rmk: likewise
25244 * conf/sparc64-ieee1275.rmk: likewise
25245 * conf/x86_64-efi.rmk: likewise
25246 * include/grub/i386/pc/biosnum.h: new file
25247 * lib/i386/pc/biosnum.c: likewise
25248 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
25249 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
25250 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
25251
25252 2009-06-10 Pavel Roskin <proski@gnu.org>
25253
25254 * io/gzio.c (test_header): Don't reuse one buffer for all data.
25255 Use separate variables. Read only the file size at the end, but
25256 not the checksum that we don't use.
25257
25258 * kern/file.c (grub_file_read): Use void pointer for the buffer.
25259 Adjust all callers.
25260
25261 * kern/ieee1275/openfw.c: Remove libc includes.
25262 * kern/ieee1275/cmain.c: Likewise.
25263 * include/grub/ieee1275/ieee1275.h: Likewise.
25264
25265 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
25266 compiler warnings.
25267
25268 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25269
25270 * Makefile.in: Remove all trailing whitespace.
25271 * conf/i386-pc.rmk: Likewise.
25272 * conf/powerpc-ieee1275.rmk: Likewise.
25273 * conf/sparc64-ieee1275.rmk: Likewise.
25274 * docs/grub.texi: Likewise.
25275 * docs/texinfo.tex: Likewise.
25276 * disk/fs_uuid.c: Likewise.
25277 * disk/lvm.c: Likewise.
25278 * disk/scsi.c: Likewise.
25279 * disk/ata.c: Likewise.
25280 * disk/ieee1275/ofdisk.c: Likewise.
25281 * disk/i386/pc/biosdisk.c: Likewise.
25282 * disk/host.c: Likewise.
25283 * disk/raid.c: Likewise.
25284 * disk/efi/efidisk.c: Likewise.
25285 * disk/usbms.c: Likewise.
25286 * disk/memdisk.c: Likewise.
25287 * disk/loopback.c: Likewise.
25288 * kern/powerpc/dl.c: Likewise.
25289 * kern/device.c: Likewise.
25290 * kern/dl.c: Likewise.
25291 * kern/sparc64/dl.c: Likewise.
25292 * kern/ieee1275/ieee1275.c: Likewise.
25293 * kern/term.c: Likewise.
25294 * kern/fs.c: Likewise.
25295 * kern/i386/dl.c: Likewise.
25296 * kern/i386/pc/startup.S: Likewise.
25297 * kern/i386/pc/init.c: Likewise.
25298 * kern/i386/pc/mmap.c: Likewise.
25299 * kern/i386/pc/lzo1x.S: Likewise.
25300 * kern/i386/ieee1275/init.c: Likewise.
25301 * kern/i386/realmode.S: Likewise.
25302 * kern/i386/tsc.c: Likewise.
25303 * kern/partition.c: Likewise.
25304 * kern/corecmd.c: Likewise.
25305 * kern/file.c: Likewise.
25306 * kern/efi/efi.c: Likewise.
25307 * kern/efi/init.c: Likewise.
25308 * kern/efi/mm.c: Likewise.
25309 * kern/main.c: Likewise.
25310 * kern/err.c: Likewise.
25311 * kern/env.c: Likewise.
25312 * kern/disk.c: Likewise.
25313 * kern/generic/millisleep.c: Likewise.
25314 * kern/generic/rtc_get_time_ms.c: Likewise.
25315 * kern/misc.c: Likewise.
25316 * kern/parser.c: Likewise.
25317 * genmk.rb: Likewise.
25318 * configure.ac: Likewise.
25319 * boot/i386/pc/diskboot.S: Likewise.
25320 * boot/i386/pc/pxeboot.S: Likewise.
25321 * boot/i386/pc/boot.S: Likewise.
25322 * boot/i386/pc/lnxboot.S: Likewise.
25323 * boot/i386/pc/cdboot.S: Likewise.
25324 * parttool/pcpart.c: Likewise.
25325 * video/readers/tga.c: Likewise.
25326 * video/video.c: Likewise.
25327 * video/bitmap.c: Likewise.
25328 * lib/envblk.c: Likewise.
25329 * lib/i386/setjmp.S: Likewise.
25330 * fs/xfs.c: Likewise.
25331 * fs/afs.c: Likewise.
25332 * fs/fat.c: Likewise.
25333 * fs/ntfs.c: Likewise.
25334 * fs/udf.c: Likewise.
25335 * fs/affs.c: Likewise.
25336 * fs/iso9660.c: Likewise.
25337 * fs/hfs.c: Likewise.
25338 * fs/fshelp.c: Likewise.
25339 * fs/ext2.c: Likewise.
25340 * fs/jfs.c: Likewise.
25341 * fs/reiserfs.c: Likewise.
25342 * fs/hfsplus.c: Likewise.
25343 * fs/minix.c: Likewise.
25344 * fs/cpio.c: Likewise.
25345 * fs/sfs.c: Likewise.
25346 * fs/ufs.c: Likewise.
25347 * efiemu/prepare.c: Likewise.
25348 * efiemu/loadcore_common.c: Likewise.
25349 * efiemu/runtime/efiemu.sh: Likewise.
25350 * efiemu/runtime/efiemu.S: Likewise.
25351 * efiemu/runtime/efiemu.c: Likewise.
25352 * efiemu/pnvram.c: Likewise.
25353 * efiemu/main.c: Likewise.
25354 * efiemu/i386/pc/cfgtables.c: Likewise.
25355 * efiemu/i386/loadcore64.c: Likewise.
25356 * efiemu/i386/loadcore32.c: Likewise.
25357 * efiemu/loadcore.c: Likewise.
25358 * efiemu/symbols.c: Likewise.
25359 * efiemu/mm.c: Likewise.
25360 * include/grub/autoefi.h: Likewise.
25361 * include/grub/datetime.h: Likewise.
25362 * include/grub/term.h: Likewise.
25363 * include/grub/hfs.h: Likewise.
25364 * include/grub/lvm.h: Likewise.
25365 * include/grub/i386/tsc.h: Likewise.
25366 * include/grub/i386/linux.h: Likewise.
25367 * include/grub/i386/xnu.h: Likewise.
25368 * include/grub/i386/efiemu.h: Likewise.
25369 * include/grub/i386/pc/biosdisk.h: Likewise.
25370 * include/grub/i386/pc/memory.h: Likewise.
25371 * include/grub/i386/pc/vbe.h: Likewise.
25372 * include/grub/parttool.h: Likewise.
25373 * include/grub/video.h: Likewise.
25374 * include/grub/memory.h: Likewise.
25375 * include/grub/fs.h: Likewise.
25376 * include/grub/partition.h: Likewise.
25377 * include/grub/xnu.h: Likewise.
25378 * include/grub/efi/api.h: Likewise.
25379 * include/grub/efi/pe32.h: Likewise.
25380 * include/grub/efi/memory.h: Likewise.
25381 * include/grub/multiboot.h: Likewise.
25382 * include/grub/usbdesc.h: Likewise.
25383 * include/grub/multiboot2.h: Likewise.
25384 * include/grub/acpi.h: Likewise.
25385 * include/grub/efiemu/efiemu.h: Likewise.
25386 * include/grub/disk.h: Likewise.
25387 * include/grub/ieee1275/ieee1275.h: Likewise.
25388 * include/grub/net.h: Likewise.
25389 * include/grub/machoload.h: Likewise.
25390 * include/grub/macho.h: Likewise.
25391 * include/multiboot.h: Likewise.
25392 * genmoddep.awk: Likewise.
25393 * normal/main.c: Likewise.
25394 * normal/menu_entry.c: Likewise.
25395 * normal/menu_viewer.c: Likewise.
25396 * normal/completion.c: Likewise.
25397 * normal/cmdline.c: Likewise.
25398 * normal/misc.c: Likewise.
25399 * normal/datetime.c: Likewise.
25400 * bus/usb/usbtrans.c: Likewise.
25401 * bus/usb/ohci.c: Likewise.
25402 * bus/usb/uhci.c: Likewise.
25403 * bus/usb/usb.c: Likewise.
25404 * mmap/efi/mmap.c: Likewise.
25405 * mmap/i386/pc/mmap_helper.S: Likewise.
25406 * mmap/i386/pc/mmap.c: Likewise.
25407 * mmap/i386/mmap.c: Likewise.
25408 * mmap/i386/uppermem.c: Likewise.
25409 * mmap/mmap.c: Likewise.
25410 * commands/acpi.c: Likewise.
25411 * commands/echo.c: Likewise.
25412 * commands/blocklist.c: Likewise.
25413 * commands/loadenv.c: Likewise.
25414 * commands/usbtest.c: Likewise.
25415 * commands/boot.c: Likewise.
25416 * commands/parttool.c: Likewise.
25417 * commands/search.c: Likewise.
25418 * commands/cat.c: Likewise.
25419 * commands/i386/pc/play.c: Likewise.
25420 * commands/i386/pc/drivemap.c: Likewise.
25421 * commands/i386/pc/vbeinfo.c: Likewise.
25422 * commands/i386/pc/acpi.c: Likewise.
25423 * commands/i386/pc/vbetest.c: Likewise.
25424 * commands/ls.c: Likewise.
25425 * commands/cmp.c: Likewise.
25426 * commands/test.c: Likewise.
25427 * commands/efi/acpi.c: Likewise.
25428 * commands/gptsync.c: Likewise.
25429 * commands/help.c: Likewise.
25430 * partmap/amiga.c: Likewise.
25431 * partmap/apple.c: Likewise.
25432 * partmap/acorn.c: Likewise.
25433 * partmap/pc.c: Likewise.
25434 * partmap/sun.c: Likewise.
25435 * partmap/gpt.c: Likewise.
25436 * script/sh/lexer.c: Likewise.
25437 * script/sh/function.c: Likewise.
25438 * font/font.c: Likewise.
25439 * font/font_cmd.c: Likewise.
25440 * loader/powerpc/ieee1275/linux.c: Likewise.
25441 * loader/efi/chainloader.c: Likewise.
25442 * loader/multiboot_loader.c: Likewise.
25443 * loader/macho.c: Likewise.
25444 * loader/i386/multiboot.c: Likewise.
25445 * loader/i386/linux.c: Likewise.
25446 * loader/i386/pc/linux.c: Likewise.
25447 * loader/i386/pc/multiboot2.c: Likewise.
25448 * loader/i386/pc/chainloader.c: Likewise.
25449 * loader/i386/pc/xnu.c: Likewise.
25450 * loader/i386/bsd_trampoline.S: Likewise.
25451 * loader/i386/efi/linux.c: Likewise.
25452 * loader/i386/multiboot_elfxx.c: Likewise.
25453 * loader/i386/bsd_helper.S: Likewise.
25454 * loader/i386/bsd.c: Likewise.
25455 * loader/i386/linux_trampoline.S: Likewise.
25456 * loader/i386/xnu_helper.S: Likewise.
25457 * loader/i386/xnu.c: Likewise.
25458 * loader/i386/bsd_pagetable.c: Likewise.
25459 * loader/i386/multiboot_helper.S: Likewise.
25460 * loader/xnu.c: Likewise.
25461 * loader/xnu_resume.c: Likewise.
25462 * io/gzio.c: Likewise.
25463 * term/efi/console.c: Likewise.
25464 * term/terminfo.c: Likewise.
25465 * term/ieee1275/ofconsole.c: Likewise.
25466 * term/i386/pc/serial.c: Likewise.
25467 * term/i386/pc/vesafb.c: Likewise.
25468 * term/i386/pc/vga.c: Likewise.
25469 * term/usb_keyboard.c: Likewise.
25470 * term/gfxterm.c: Likewise.
25471 * aclocal.m4: Likewise.
25472 * util/lvm.c: Likewise.
25473 * util/grub.d/30_os-prober.in: Likewise.
25474 * util/grub.d/10_hurd.in: Likewise.
25475 * util/console.c: Likewise.
25476 * util/grub-macho2img.c: Likewise.
25477 * util/grub-probe.c: Likewise.
25478 * util/hostfs.c: Likewise.
25479 * util/i386/pc/grub-mkimage.c: Likewise.
25480 * util/i386/pc/grub-setup.c: Likewise.
25481 * util/i386/efi/grub-mkimage.c: Likewise.
25482 * util/grub-mkconfig.in: Likewise.
25483 * util/raid.c: Likewise.
25484 * util/resolve.c: Likewise.
25485 * util/grub-mkdevicemap.c: Likewise.
25486 * util/grub-emu.c: Likewise.
25487 * util/getroot.c: Likewise.
25488 * util/hostdisk.c: Likewise.
25489 * util/usb.c: Likewise.
25490 * util/grub-editenv.c: Likewise.
25491 * util/misc.c: Likewise.
25492
25493 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25494
25495 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
25496 `genparttoollist.sh'.
25497 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
25498 Add `*.sh' to the list find searches for and change `mdate.sh'
25499 to `mdate-sh'.
25500
25501 2009-06-10 Pavel Roskin <proski@gnu.org>
25502
25503 * include/grub/multiboot2.h: Provide compatibility defines for
25504 multiboot2.h.
25505 * include/multiboot2.h: Include stdint.h only if needed, using
25506 angle brackets.
25507 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
25508 grub/multiboot2.h.
25509 * loader/ieee1275/multiboot2.c: Likewise.
25510 * loader/multiboot2.c: Likewise.
25511 * loader/multiboot_loader.c: Likewise.
25512
25513 * configure.ac: Use -nostdlib when probing for the target. It
25514 should not be required to have libc for the target.
25515
25516 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
25517 they fail without libc headers for the target.
25518 * include/grub/powerpc/libgcc.h: Use weak attribute for all
25519 exports.
25520 * include/grub/sparc64/libgcc.h: Likewise. Don't use
25521 preprocessor conditionals.
25522
25523 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
25524 build system doesn't need to be aware of the tar.c internals.
25525
25526 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
25527
25528 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
25529
25530 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
25531
25532 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
25533 disk limit to 26 for IDE, Virtio, Xen and SCSI.
25534
25535 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
25536
25537 * util/i386/pc/grub-install.in: Change the error message if UUIDs
25538 aren't available if ata.mod gets used.
25539
25540 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
25541
25542 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
25543 initialising controller.
25544 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25545
25546 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25547
25548 * util/i386/pc/grub-install.in: Add a parameter --disk-module
25549 to choose between ata and biosdisk module on i386-pc.
25550
25551 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
25552
25553 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
25554 Subclass and Programming Interface fields in terms of the 3 byte
25555 Class Code register.
25556 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25557
25558 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
25559 interface is OHCI. Add grub_dprintf for symmetry with
25560 bus/usb/uhci.c.
25561 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
25562 interface is UHCI. Add interf variable for programming
25563 interface. Print interface with class/subclass.
25564
25565 * bus/usb/ohci.c: Set interf with correct field.
25566
25567 * bus/usb/uhci.c: Remove unneeded doubled lines.
25568 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
25569 Remove whitespace inside comment.
25570
25571 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
25572
25573 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
25574 as fallback an equivalent option without depth.
25575
25576 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25577
25578 Not fail if unable to retrieve C/H/S on LBA disks
25579
25580 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
25581 if unable to retrieve C/H/S on LBA disks
25582
25583 2009-06-08 Pavel Roskin <proski@gnu.org>
25584
25585 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
25586 about aliasing.
25587
25588 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25589
25590 * Makefile.in (uninstall): Remove all $lib_DATA files.
25591
25592 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25593
25594 Bugfix: install on partitionless device
25595
25596 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
25597 is a whole disk
25598
25599 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25600
25601 * Makefile.in (uninstall): Remove all $include_DATA files.
25602
25603 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25604
25605 * commands/true.c: New file. Implement the true and false commands.
25606 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
25607 (true_mod_SOURCES): New variable.
25608 (true_mod_CFLAGS): Likewise.
25609 (true_mod_LDFLAGS): Likewise.
25610
25611 2009-06-05 Colin D Bennett <colin@gibibit.com>
25612
25613 Optimized font character lookup using binary search instead of linear
25614 search. Fonts now are required to have the character index ordered by
25615 code point.
25616
25617 * font/font.c (load_font_index): Verify that fonts have ordered
25618 character indices.
25619 (find_glyph): Use binary search instead of linear search to find a
25620 character in a font.
25621
25622 2009-06-05 Michael Scherer <misc@mandriva.org>
25623
25624 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
25625 uses case sensitive btree.
25626 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
25627 only for case insensitive filesystems.
25628
25629 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
25630
25631 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
25632 * conf/common.rmk (search_mod_CFLAGS): likewise
25633
25634 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25635
25636 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
25637 compensate a compiler bug
25638
25639 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25640
25641 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
25642 instead of '\b'
25643
25644 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25645
25646 Definitions for creating asm symbols with Apple's CC
25647
25648 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
25649 [APPLE_CC] (VARIABLE): likewise
25650
25651 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25652
25653 Disable lnxboot.img when compiled
25654 with Apple's CC
25655
25656 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
25657 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
25658 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
25659 [! APPLE_CC] (CODE_LENG): skip
25660 [! APPLE_CC] (setup_sects): likewise
25661 [! APPLE_CC]: skip filling
25662
25663 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25664
25665 Address in trampolines based on 32-bit registers when compiled
25666 with Apple's CC
25667
25668 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
25669 for addresses
25670 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
25671
25672 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25673
25674 Avoid aliases when compiling with Apple's CC for PCBIOS machine
25675
25676 * kern/misc.c [APPLE_CC] (memcpy): new function
25677 [APPLE_CC] (memmove): likewise
25678 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
25679 (memcpy): define alias conditionally on !APPLE_CC
25680 (memset): likewise
25681 (abort): likewise
25682 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
25683 APPLE_CC are defined
25684 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
25685 (grub_assert_fail): make prototype conditional
25686
25687 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25688
25689 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
25690
25691 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
25692 grub-macho2img
25693 (CLEANFILES): add grub-macho2img
25694 (grub_macho2img_SOURCES): new variable
25695 * kern/i386/pc/startup.S (bss_start): new variable
25696 (bss_end): likewise
25697 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
25698 * util/grub-macho2img.c: new file
25699
25700 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25701
25702 Use objconv when compiling with Apple's CC
25703
25704 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
25705 (efiemu64.o): likewise
25706 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
25707 when compiling with Apple's CC
25708 (efiemu64_s.o): likewise
25709 * configure.ac: check for objconv when compiling with Apple's CC
25710 * genmk.rb: use objconv for modules when compiled with Apple's CC
25711
25712 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25713
25714 Define segment as well as section when compiling with
25715 Apple's CC
25716
25717 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
25718 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
25719 (efiemu_convert_pointer): likewise
25720 (efiemu_set_virtual_address_map): likewise
25721 (efiemu_convert_pointer): likewise
25722 (efiemu_getcrc32): likewise
25723 (init_crc32_table): likewise
25724 (reflect): likewise
25725 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
25726 (GRUB_MOD_DEP): likewise
25727
25728 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25729
25730 Allow a compilation without -mcmodel=large
25731
25732 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
25733 when compiled without -mcmodel=large
25734 (filter_memory_map): remove memory post 4 GiB when compiled
25735 without -mcmodel=large
25736 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
25737 TARGET_CFLAGS when -mcmodel=large isn't supported
25738
25739 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25740
25741 Remove nested functions in efiemu core
25742
25743 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
25744
25745 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25746
25747 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
25748
25749 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
25750 temporary storage
25751 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
25752 using Apple's CC
25753 (grub_cpu_is_tsc_supported): likewise
25754 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
25755
25756 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25757
25758 Absolute addressing through constant with Apple's cc
25759
25760 * kern/i386/pc/startup.S: Define necessary constants
25761 and address through it when using ABS with Apple's CC
25762 * boot/i386/pc/diskboot.S: likewise
25763 * boot/i386/pc/boot.S: likewise
25764 * boot/i386/pc/lnxboot.S: likewise
25765 * boot/i386/pc/cdboot.S: likewise
25766 * mmap/i386/pc/mmap_helper.S: likewise
25767 * commands/i386/pc/drivemap_int13h.S: likewise
25768
25769 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25770
25771 Check if compiler is apple cc
25772
25773 * Makefile.in (ASFLAGS): new variable
25774 (TARGET_ASFLAGS): likewise
25775 (TARGET_MODULE_FORMAT): likewise
25776 (TARGET_APPLE_CC): likewise
25777 (OBJCONV): likewise
25778 (TARGET_IMG_CFLAGS): likewise
25779 (TARGET_CPPFLAGS): add includedir
25780 * configure.ac: call grub_apple_cc and grub_apple_target_cc
25781 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
25782 Check for linker script only if compiler isn't Apple's CC
25783 (TARGET_MODULE_FORMAT): set
25784 (TARGET_APPLE_CC): likewise
25785 (TARGET_ASFLAGS): likewise
25786 (ASFLAGS): likewise
25787 Check for objcopy only if compiler isn't Apple's CC
25788 Check for BSS symbol only if compiler isn't Apple's CC
25789 * genmk.rb: adapt nm options if we use Apple's utils
25790 * aclocal.m4 (grub_apple_cc): new test
25791 (grub_apple_target_cc): likewise
25792
25793 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25794
25795 Simplify sed expressions and improve awk
25796
25797 * Makefile.in (install-local): simplify sed expression
25798 * gencmdlist.sh: likewise
25799 * genmoddep.awk: avoid adding module as a dependency of itself
25800
25801 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25802
25803 Add missing start symbols
25804
25805 * boot/i386/pc/boot.S: add start
25806 * boot/i386/pc/pxeboot.S: likewise
25807
25808 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25809
25810 Fix wrong assumptions with grub-mkimage on EFI
25811
25812 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
25813 (relocate_addresses): consider both r_addend and value at offset
25814 (make_mods_section): zerofill modinfo and header
25815 (convert_elf): write prefix here
25816
25817 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25818
25819 Use .asciz instead of .string
25820
25821 * i386/pc/diskboot.S: use .asciz instead of .string
25822 * i386/pc/boot.S: likewise
25823 * include/grub/dl.h (GRUB_MOD_DEP): likewise
25824 (GRUB_MOD_NAME): likewise
25825
25826 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25827
25828 gfxpayload support
25829
25830 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
25831 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
25832 (grub_video_setup): remove
25833 (grub_video_set_mode): new prototype
25834 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
25835 (vid_mode): remove
25836 (linux_vesafb_res): compile only on PCBIOS
25837 (grub_linux_boot): support gfxpayload
25838 * loader/i386/pc/xnu.c (video_hook): new function
25839 (grub_xnu_set_video): support gfxpayload
25840 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
25841 (DEFAULT_VIDEO_HEIGHT): likewise
25842 (DEFAULT_VIDEO_FLAGS): likewise
25843 (DEFAULT_VIDEO_MODE): new definition
25844 (video_hook): new function
25845 (grub_gfxterm_init): use grub_video_set_mode
25846 * util/grub.d/30_os-prober.in: remove explicit modesetting before
25847 loading xnu
25848 * video/video.c (grub_video_setup): removed
25849 (grub_video_set_mode): new function based on grub_gfxterm_init and
25850 grub_video_setup
25851
25852 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25853
25854 Avoid calling biosdisk in drivemap
25855
25856 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
25857 (revparse_biosdisk): likewise
25858 (list_mappings): derive name from id directly
25859 (grub_cmd_drivemap): use tryparse_diskstring
25860
25861 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25862
25863 Script fixes
25864
25865 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
25866 (grub_lexer_param): add tokenonhold
25867 (grub_script_create_cmdline): remove cmdline. All callers updated
25868 (grub_script_function_create): make functionname
25869 grub_script_arg. All callers updated
25870 (grub_script_execute_argument_to_string): new prototype
25871 * kern/parser.c (state_transitions): reorder
25872 (grub_parser_cmdline_state): fix a bug and make more compact
25873 * script/sh/execute.c (grub_script_execute_argument_to_string):
25874 make global
25875 (grub_script_execute_cmdline): use new format
25876 * script/sh/function.c (grub_script_function_create): make functionname
25877 grub_script_arg. All callers updated
25878 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
25879 (grub_script_yylex): remove
25880 (grub_script_yylex2): renamed to ...
25881 (grub_script_yylex): ...renamed
25882 parse the expressions like a${b}c
25883 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
25884 (GRUB_PARSER_TOKEN_VAR): remove
25885 (GRUB_PARSER_TOKEN_NAME): likewise
25886 ("if"): declare as typeless
25887 ("while"): likewise
25888 ("function"): likewise
25889 ("else"): likewise
25890 ("then"): likewise
25891 ("fi"): likewise
25892 (text): remove
25893 (argument): likewise
25894 (script): accept empty scripts and make exit on error
25895 (arguments): use GRUB_PARSER_TOKEN_ARG
25896 (function): likewise
25897 (command): move error handling to script
25898 (menuentry): move grub_script_lexer_ref before
25899 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
25900 argument. All callers updated
25901
25902 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25903
25904 Prevent GRUB from probing floppies during boot.
25905
25906 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
25907 * commands/search.c (options): Add --no-floppy.
25908 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
25909 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
25910 --no-floppy when searching for UUIDs.
25911
25912 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25913
25914 Simplify the code duplication in commands/search.c.
25915
25916 * commands/search.c (search_label, search_fs_uuid): Merge into ...
25917 (search_fs): ... this. Update all users.
25918
25919 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
25920
25921 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
25922
25923 2009-05-28 Pavel Roskin <proski@gnu.org>
25924
25925 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
25926 Remove the original symlink explicitly.
25927
25928 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
25929 just one slash. That's how grub_fshelp_find_file() does it.
25930
25931 2009-05-26 Pavel Roskin <proski@gnu.org>
25932
25933 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
25934 to `str'.
25935
25936 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
25937 possibly unused.
25938
25939 2009-05-25 Christian Franke <franke@computer.org>
25940
25941 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
25942 register.
25943 (grub_atapi_identify): Add wait after drive select.
25944 (grub_ata_identify): Do more strict status register check before
25945 calling grub_atapi_identify (). Suppress error message if status
25946 register is 0x00 after command failure. Add status register
25947 check after PIO read to avoid bogus identify due to stuck DRQ.
25948 Thanks to Pavel Roskin for testing.
25949 (grub_device_initialize): Remove unsafe status register check.
25950 Thanks to 'phcoder' for problem report and patch.
25951 Prevent sign extension in debug message.
25952
25953 2009-05-23 Colin D Bennett <colin@gibibit.com>
25954
25955 Cleaned up `include/grub/normal.h'. Grouped prototypes by
25956 definition file, and functions defined in `normal/menu.c' have had
25957 their prototypes moved to `include/grub/menu.h' for consistency.
25958
25959 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
25960 from normal.h.
25961 (grub_menu_get_entry): Likewise.
25962 (grub_menu_get_timeout): Likewise.
25963 (grub_menu_set_timeout): Likewise.
25964 (grub_menu_execute_entry): Likewise.
25965 (grub_menu_execute_with_fallback): Likewise.
25966 (grub_menu_entry_run): Likewise.
25967
25968 * include/grub/normal.h: Re-ordered and grouped function
25969 prototypes by file that the function is defined in.
25970 (grub_menu_execute_callback): Removed; moved to menu.h.
25971 (grub_menu_get_entry): Likewise.
25972 (grub_menu_get_timeout): Likewise.
25973 (grub_menu_set_timeout): Likewise.
25974 (grub_menu_execute_entry): Likewise.
25975 (grub_menu_execute_with_fallback): Likewise.
25976 (grub_menu_entry_run): Likewise.
25977 (grub_menu_addentry): Renamed from this ...
25978 (grub_normal_add_menu_entry): ... to this.
25979
25980 * normal/main.c (grub_menu_addentry): Renamed from this ...
25981 (grub_normal_add_menu_entry): ... to this.
25982
25983 * script/sh/execute.c (grub_script_execute_menuentry): Update
25984 reference to renamed grub_menu_addentry function.
25985
25986 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
25987
25988 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
25989
25990 2009-05-22 Pavel Roskin <proski@gnu.org>
25991
25992 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
25993 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
25994 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
25995 compiling for the i386 targets, but not for the utilities.
25996
25997 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
25998 to grub_uint8_t.
25999 (grub_root_drive): Likewise.
26000 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
26001 remove alignment.
26002 (grub_root_drive): Change size to byte.
26003 (grub_start_addr): Remove.
26004 (grub_end_addr): Likewise.
26005 (grub_apm_bios_info): Likewise.
26006
26007 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
26008
26009 * normal/i386: Remove.
26010 * normal/powerpc: Likewise.
26011 * normal/sparc64: Likewise.
26012 * normal/x86_64: Likewise.
26013
26014 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
26015
26016 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
26017 * loader/i386/linux_trampoline.S: Fix indentation
26018 * loader/i386/xnu_helper.S: Likewise
26019
26020 2009-05-18 Colin D Bennett <colin@gibibit.com>
26021
26022 Display error messages when parsing a Lua statement fails.
26023 Previously, executing a syntactically invalid statement like
26024 ")foo" or "bar;" would silently fail.
26025
26026 * script/lua/grub_main.c (handle_lua_error): New function.
26027 (grub_lua_parse_line): Improved reporting of Lua parser and
26028 execution errors.
26029
26030 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26031
26032 Remove -Werror which causes build to fail on some systems
26033
26034 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
26035 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
26036 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
26037
26038 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26039
26040 trampoline for linux on 64-bit platform
26041
26042 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
26043 loader/i386/efi/linux_trampoline.S
26044 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
26045 declaration
26046 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
26047 here
26048 * loader/i386/linux_trampoline.S: moved here
26049 * loader/i386/efi/linux.c (allocate_pages): reserve space for
26050 trampoline
26051 (jumpvector): removed
26052 (grub_linux_trampoline_start): new declaration
26053 (grub_linux_trampoline_end): likewise
26054 (grub_linux_boot): use trampoline when on 64-bit platform
26055 * loader/i386/linux.c: likewise
26056
26057 2009-05-16 Pavel Roskin <proski@gnu.org>
26058
26059 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
26060 const to avoid a warning.
26061 (grub_lua_setenv): Likewise.
26062 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
26063 lmsg to fix a warning.
26064
26065 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
26066
26067 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
26068 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26069 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
26070 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26071 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
26072 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26073 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
26074 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26075
26076 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
26077
26078 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
26079
26080 2009-05-16 Bean <bean123ch@gmail.com>
26081
26082 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
26083 (lua_mod_SOURCES): New variable.
26084 (lua_mod_CFLAGS): Likewise.
26085 (lua_mod_LDFLAGS): Likewise.
26086
26087 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
26088 (setjmp_mod_SOURCES): New variable.
26089 (setjmp_mod_CFLAGS): Likewise.
26090 (setjmp_LDFLAGS): Likewise.
26091
26092 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
26093 (setjmp_mod_SOURCES): New variable.
26094 (setjmp_mod_CFLAGS): Likewise.
26095 (setjmp_LDFLAGS): Likewise.
26096
26097 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
26098 (setjmp_mod_SOURCES): New variable.
26099 (setjmp_mod_CFLAGS): Likewise.
26100 (setjmp_LDFLAGS): Likewise.
26101
26102 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
26103 (setjmp_mod_SOURCES): New variable.
26104 (setjmp_mod_CFLAGS): Likewise.
26105 (setjmp_LDFLAGS): Likewise.
26106
26107 * normal/i386/setjmp.S: Moved from here ...
26108 * lib/i386/setjmp.S: ... Moved here
26109 * normal/x86_64/setjmp.S: Moved from here ...
26110 * lib/x86_64/setjmp.S: ... Moved here
26111 * normal/powerpc/setjmp.S: Moved from here ...
26112 * lib/powerpc/setjmp.S: ... Moved here
26113 * normal/sparc64/setjmp.S: Moved from here ...
26114 * lib/sparc64/setjmp.S: ... Moved here
26115
26116 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
26117 returns_twice in mingw.
26118
26119 * script/lua/grub_lib.c: New file.
26120 * script/lua/grub_lib.h: Likewise.
26121 * script/lua/grub_lua.h: Likewise.
26122 * script/lua/grub_main.c: Likewise.
26123 * script/lua/lapi.c: Likewise.
26124 * script/lua/lapi.h: Likewise.
26125 * script/lua/lauxlib.c: Likewise.
26126 * script/lua/lauxlib.h: Likewise.
26127 * script/lua/lbaselib.c: Likewise.
26128 * script/lua/lcode.c: Likewise.
26129 * script/lua/lcode.h: Likewise.
26130 * script/lua/ldblib.c: Likewise.
26131 * script/lua/ldebug.c: Likewise.
26132 * script/lua/ldebug.h: Likewise.
26133 * script/lua/ldo.c: Likewise.
26134 * script/lua/ldo.h: Likewise.
26135 * script/lua/ldump.c: Likewise.
26136 * script/lua/lfunc.c: Likewise.
26137 * script/lua/lfunc.h: Likewise.
26138 * script/lua/lgc.c: Likewise.
26139 * script/lua/lgc.h: Likewise.
26140 * script/lua/linit.c: Likewise.
26141 * script/lua/liolib.c: Likewise.
26142 * script/lua/llex.c: Likewise.
26143 * script/lua/llex.h: Likewise.
26144 * script/lua/llimits.h: Likewise.
26145 * script/lua/lmathlib.c: Likewise.
26146 * script/lua/lmem.c: Likewise.
26147 * script/lua/lmem.h: Likewise.
26148 * script/lua/loadlib.c: Likewise.
26149 * script/lua/lobject.c: Likewise.
26150 * script/lua/lobject.h: Likewise.
26151 * script/lua/lopcodes.c: Likewise.
26152 * script/lua/lopcodes.h: Likewise.
26153 * script/lua/loslib.c: Likewise.
26154 * script/lua/lparser.c: Likewise.
26155 * script/lua/lparser.h: Likewise.
26156 * script/lua/lstate.c: Likewise.
26157 * script/lua/lstate.h: Likewise.
26158 * script/lua/lstring.c: Likewise.
26159 * script/lua/lstring.h: Likewise.
26160 * script/lua/lstrlib.c: Likewise.
26161 * script/lua/ltable.c: Likewise.
26162 * script/lua/ltable.h: Likewise.
26163 * script/lua/ltablib.c: Likewise.
26164 * script/lua/ltm.c: Likewise.
26165 * script/lua/ltm.h: Likewise.
26166 * script/lua/lua.h: Likewise.
26167 * script/lua/luaconf.h: Likewise.
26168 * script/lua/lualib.h: Likewise.
26169 * script/lua/lundump.c: Likewise.
26170 * script/lua/lundump.h: Likewise.
26171 * script/lua/lvm.c: Likewise.
26172 * script/lua/lvm.h: Likewise.
26173 * script/lua/lzio.c: Likewise.
26174 * script/lua/lzio.h: Likewise.
26175
26176 2009-05-16 Bean <bean123ch@gmail.com>
26177
26178 * include/grub/kernel.h (grub_module_header_types): Add type
26179 OBJ_TYPE_CONFIG.
26180
26181 * kern/main.c (grub_load_config): New function.
26182 (grub_main): Call grub_load_config to read boot config.
26183
26184 * grub-mkimage (generate_image): New parameter config_path.
26185 (options): New option --config.
26186 (main): Parse --config option, and pass it to generate_image.
26187
26188 2009-05-14 Christian Franke <franke@computer.org>
26189
26190 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
26191 This fixes build on Cygwin.
26192
26193 2009-05-14 Pavel Roskin <proski@gnu.org>
26194
26195 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
26196 jump. This saves two bytes, so the typical case of 2 swapped
26197 drives would fit 32 bytes.
26198
26199 2009-05-13 Pavel Roskin <proski@gnu.org>
26200
26201 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
26202 grub_uint32_t to avoid a warning.
26203
26204 * loader/i386/linux.c (allocate_pages): When assigning
26205 real_mode_mem, cast through grub_size_t to fix a warning. The
26206 code already makes sure that the value would fit a pointer.
26207 (grub_linux_setup_video): Cast render_target->data to
26208 grub_size_t to fix a warning.
26209
26210 2009-05-13 Javier Martín <lordhabbit@gmail.com>
26211
26212 * commands/i386/pc/drivemap.c: New file - implement drivemap
26213 command.
26214 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
26215 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
26216
26217 2009-05-13 Pavel Roskin <proski@gnu.org>
26218
26219 * util/i386/pc/grub-setup.c (setup): Remove unused variable
26220 embedding_area_exists.
26221
26222 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
26223
26224 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
26225 it easier to understand / work with.
26226 Improve warning messages for cases where there's no embedding area,
26227 or when it is too small (or core.img too large).
26228
26229 2009-05-13 Pavel Roskin <proski@gnu.org>
26230
26231 * loader/i386/pc/multiboot2.c: Add necessary includes for
26232 grub_multiboot2_real_boot().
26233
26234 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
26235 PX record is always little-endian. We only need the lower 2
26236 bytes of the mode.
26237
26238 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
26239 facilitate code reuse.
26240 (grub_cpio_mount): Use "struct head", not a char buffer. This
26241 fixes a warning reported by gcc 4.4.
26242
26243 * kernel/disk.c (grub_disk_read): Use void pointer for the
26244 buffer.
26245 (grub_disk_write): Use const void pointer for the buffer.
26246 Adjust all callers. Remove unnecessary casts.
26247
26248 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
26249
26250 * util/i386/pc/grub-install.in: Update copyright year.
26251
26252 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26253
26254 gptsync
26255
26256 * commands/gptsync.c: new file
26257 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
26258 (gptsync_mod_SOURCES): new variable
26259 (gptsync_mod_CFLAGS): likewise
26260 (gptsync_mod_LDFLAGS): likewise
26261 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
26262 new definition
26263 (GRUB_PC_PARTITION_TYPE_HFS): likewise
26264 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
26265 * conf/i386-ieee1275.rmk: likewise
26266 * conf/i386-pc.rmk: likewise
26267 * conf/powerpc-ieee1275.rmk: likewise
26268
26269 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26270
26271 Fixed grub-emu
26272
26273 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
26274 (grub_dl_ref): likewise
26275
26276 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
26277
26278 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
26279 split in two functions (one for msdos and one for gpt).
26280
26281 2009-05-08 Pavel Roskin <proski@gnu.org>
26282
26283 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
26284 not modified.
26285
26286 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
26287 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
26288 Initialize them with -1. Add sanity check for bad1. Eliminate
26289 nerr variable.
26290
26291 2009-05-08 David S. Miller <davem@davemloft.net>
26292
26293 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
26294
26295 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
26296
26297 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
26298 existence.
26299
26300 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
26301
26302 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26303 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
26304
26305 2009-05-05 David S. Miller <davem@davemloft.net>
26306
26307 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
26308
26309 2009-05-05 Pavel Roskin <proski@gnu.org>
26310
26311 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
26312 of grub_dl_ref() and grub_dl_unref().
26313 * commands/parttool.c: Remove preprocessor conditionals around
26314 grub_dl_ref() and grub_dl_unref().
26315 * fs/affs.c: Likewise.
26316 * fs/afs.c: Likewise.
26317 * fs/cpio.c: Likewise.
26318 * fs/ext2.c: Likewise.
26319 * fs/fat.c: Likewise.
26320 * fs/hfs.c: Likewise.
26321 * fs/hfsplus.c: Likewise.
26322 * fs/iso9660.c: Likewise.
26323 * fs/jfs.c: Likewise.
26324 * fs/minix.c: Likewise.
26325 * fs/ntfs.c: Likewise.
26326 * fs/reiserfs.c: Likewise.
26327 * fs/sfs.c: Likewise.
26328 * fs/udf.c: Likewise.
26329 * fs/ufs.c: Likewise.
26330 * fs/xfs.c: Likewise.
26331 * include/grub/dl.h: Likewise.
26332 * loader/xnu.c: Likewise.
26333
26334 2009-05-04 Pavel Roskin <proski@gnu.org>
26335
26336 * commands/acpi.c: Remove unused variable my_mod.
26337 * partmap/amiga.c: Likewise.
26338 * partmap/apple.c: Likewise.
26339 * partmap/gpt.c: Likewise.
26340 * partmap/pc.c: Likewise.
26341 * partmap/sun.c: Likewise.
26342 * term/gfxterm.c: Likewise.
26343 * term/i386/pc/vesafb.c: Likewise.
26344 * term/i386/pc/vga.c: Likewise.
26345
26346 2009-05-04 David S. Miller <davem@davemloft.net>
26347
26348 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
26349 pointer args to grub_ieee1275_get_property().
26350
26351 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
26352
26353 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
26354 devices, and do not traverse down under controller nodes.
26355
26356 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
26357 (grub_ofdisk_open): Use it to un-escape "," characters.
26358 * kern/disk.c (find_part_sep): New.
26359 (grub_disk_open): Use it to find the first non-escaped ','
26360 character in the disk name.
26361 * util/ieee1275/devicemap.c (escape_of_path): New.
26362 (grub_util_emit_devicemap_entry): Use it.
26363 * util/sparc64/ieee1275/grub-install.in: Update script to
26364 strip partition specifiers properly by not triggering on
26365 '\' escaped ',' characters.
26366
26367 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26368
26369 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
26370 to 0x300.
26371 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
26372 resolutions.
26373 (linux_vesafb_modes): Add a lot of additional modes to the list (based
26374 on documentation from Wikipedia).
26375
26376 2009-05-04 Pavel Roskin <proski@gnu.org>
26377
26378 * disk/ata.c: Spelling fixes.
26379 * disk/raid.c: Likewise.
26380 * disk/usbms.c: Likewise.
26381 * disk/dmraid_nvidia.c: Likewise.
26382 * kern/ieee1275/openfw.c: Likewise.
26383 * kern/ieee1275/init.c: Likewise.
26384 * kern/ieee1275/cmain.c: Likewise.
26385 * boot/i386/pc/cdboot.S: Likewise.
26386 * video/readers/png.c: Likewise.
26387 * video/i386/pc/vbe.c: Likewise.
26388 * fs/udf.c: Likewise.
26389 * fs/hfs.c: Likewise.
26390 * fs/reiserfs.c: Likewise.
26391 * efiemu/runtime/efiemu.c: Likewise.
26392 * efiemu/main.c: Likewise.
26393 * efiemu/mm.c: Likewise.
26394 * include/grub/elf.h: Likewise.
26395 * include/grub/xnu.h: Likewise.
26396 * include/grub/usbdesc.h: Likewise.
26397 * include/grub/usb.h: Likewise.
26398 * include/grub/script_sh.h: Likewise.
26399 * include/grub/lib/LzmaEnc.h: Likewise.
26400 * include/grub/efiemu/efiemu.h: Likewise.
26401 * include/grub/command.h: Likewise.
26402 * normal/menu.c: Likewise.
26403 * normal/main.c: Likewise.
26404 * normal/datetime.c: Likewise.
26405 * bus/usb/uhci.c: Likewise.
26406 * mmap/i386/uppermem.c: Likewise.
26407 * mmap/mmap.c: Likewise.
26408 * commands/acpi.c: Likewise.
26409 * commands/test.c: Likewise.
26410 * partmap/apple.c: Likewise.
26411 * font/font.c: Likewise.
26412 * loader/sparc64/ieee1275/linux.c: Likewise.
26413 * loader/macho.c: Likewise.
26414 * loader/i386/bsd_trampoline.S: Likewise.
26415 * loader/i386/bsd.c: Likewise.
26416 * loader/xnu.c: Likewise.
26417 * term/i386/pc/vesafb.c: Likewise.
26418 * term/usb_keyboard.c: Likewise.
26419 * util/resolve.c: Likewise.
26420 * util/getroot.c: Likewise.
26421
26422 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26423
26424 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
26425
26426 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26427
26428 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
26429 build error.
26430
26431 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26432
26433 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
26434 parameter only available on BIOS.
26435
26436 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26437
26438 Removed wrong semicolon in declaration
26439
26440 * grub/misc.h (grub_dprintf): remove semicolon
26441
26442 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26443
26444 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
26445 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
26446 is done by grub_cmd_linux() now).
26447 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
26448 restore video to text mode.
26449 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
26450 indicates lack of "vga=" parameter. "vga=0" is mapped to
26451 `GRUB_LINUX_VID_MODE_NORMAL'.
26452
26453 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26454
26455 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
26456 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
26457 and `normal/script.c'. Add `kern/rescue_reader.c',
26458 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
26459 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
26460 `grub_script.tab.c'.
26461
26462 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26463 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26465 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26466 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26467
26468 * Makefile.in: Remove duplicated 2008 in Copyright line.
26469
26470 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26471
26472 * util/misc.c (grub_util_warn): New function. Emits a warning
26473 unconditionally.
26474 * include/grub/util/misc.h (grub_util_warn): New declaration.
26475
26476 * util/i386/pc/grub-install.in: Understand --force and pass it down
26477 to grub-setup.
26478
26479 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
26480 down to setup().
26481 (setup): Improve error messages and add warnings when requested to
26482 install in odd layouts. Refuse to install using blocklists unless
26483 --force was set.
26484
26485 2009-05-04 martin f. krafft <madduck@madduck.net>
26486
26487 * disk/raid.c (grub_raid_scan_device): Improve debug message.
26488
26489 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26490
26491 Updated copyright year
26492
26493 * fs/hfsplus.c: updated copyright year
26494
26495 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26496
26497 HFS+ UUID
26498
26499 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
26500 in the space previously used by unused3
26501 (grub_hfsplus_uuid): new function
26502 (grub_hfsplus_fs): added uuid field
26503
26504 2009-05-03 Pavel Roskin <proski@gnu.org>
26505
26506 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
26507 suppress warnings. It's no longer needed.
26508 * disk/host.c: Likewise.
26509 * disk/ata_pthru.c: Likewise.
26510 * disk/loopback.c: Likewise.
26511 * hook/datehook.c: Likewise.
26512 * parttool/pcpart.c: Likewise.
26513 * fs/i386/pc/pxe.c: Likewise.
26514 * fs/ntfscomp.c: Likewise.
26515 * efiemu/main.c: Likewise.
26516 * mmap/mmap.c: Likewise.
26517 * commands/crc.c: Likewise.
26518 * commands/hexdump.c: Likewise.
26519 * commands/hdparm.c: Likewise.
26520 * commands/acpi.c: Likewise.
26521 * commands/echo.c: Likewise.
26522 * commands/minicmd.c: Likewise.
26523 * commands/blocklist.c: Likewise.
26524 * commands/memrw.c: Likewise.
26525 * commands/loadenv.c: Likewise.
26526 * commands/usbtest.c: Likewise.
26527 * commands/lsmmap.c: Likewise.
26528 * commands/boot.c: Likewise.
26529 * commands/parttool.c: Likewise.
26530 * commands/configfile.c: Likewise.
26531 * commands/search.c: Likewise.
26532 * commands/ieee1275/suspend.c: Likewise.
26533 * commands/cat.c: Likewise.
26534 * commands/i386/pc/pxecmd.c: Likewise.
26535 * commands/i386/pc/play.c: Likewise.
26536 * commands/i386/pc/halt.c: Likewise.
26537 * commands/i386/pc/vbeinfo.c: Likewise.
26538 * commands/i386/pc/vbetest.c: Likewise.
26539 * commands/lspci.c: Likewise.
26540 * commands/date.c: Likewise.
26541 * commands/handler.c: Likewise.
26542 * commands/ls.c: Likewise.
26543 * commands/test.c: Likewise.
26544 * commands/cmp.c: Likewise.
26545 * commands/efi/loadbios.c: Likewise.
26546 * commands/efi/fixvideo.c: Likewise.
26547 * commands/halt.c: Likewise.
26548 * commands/help.c: Likewise.
26549 * commands/reboot.c: Likewise.
26550 * hello/hello.c: Likewise.
26551 * script/sh/main.c: Likewise.
26552 * loader/xnu.c: Likewise.
26553 * term/terminfo.c: Likewise.
26554 * term/i386/pc/serial.c: Likewise.
26555 * term/usb_keyboard.c: Likewise.
26556
26557 2009-05-03 David S. Miller <davem@davemloft.net>
26558
26559 * normal/menu.c: Include grub/parser.h
26560
26561 2009-05-03 Pavel Roskin <proski@gnu.org>
26562
26563 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
26564 not char*.
26565 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
26566 Suggested by Javier Martín <lordhabbit@gmail.com>
26567
26568 * util/i386/pc/grub-mkrescue.in: Allow for the case when
26569 efiemu??.o doesn't exist.
26570 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
26571 copying.
26572
26573 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
26574
26575 FreeBSD 64-bit support
26576
26577 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
26578 and loader/i386/bsd_trampoline.S
26579 (bsd_mod_ASFLAGS): new variable
26580 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
26581 (FREEBSD_MODTYPE_KERNEL64): likewise
26582 (grub_bsd64_trampoline_start): likewise
26583 (grub_bsd64_trampoline_end): likewise
26584 (grub_bsd64_trampoline_selfjump): likewise
26585 (grub_bsd64_trampoline_gdt): likewise
26586 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
26587 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
26588 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
26589 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
26590 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
26591 of "attrib" member
26592 * loader/i386/bsd_pagetable.c: new file
26593 * loader/i386/bsd_trampoline.S: likewise
26594 * loader/i386/bsd.c (ALIGN_QWORD): new macro
26595 (ALIGN_VAR): likewise
26596 (entry_hi): new variable
26597 (kern_end_mdofs): likewise
26598 (is_64bit): likewise
26599 (grub_freebsd_add_meta): use ALIGN_VAR
26600 (grub_e820_mmap): new declaration
26601 (grub_freebsd_add_mmap): new function
26602 (grub_freebsd_add_meta_module): support 64 bit kernels
26603 (grub_freebsd_list_modules): use ALIGN_VAR
26604 (gdt_descriptor): new declaration
26605 (grub_freebsd_boot): support 64 bit kernels
26606 (grub_bsd_elf64_hook): new function
26607 (grub_bsd_load_elf): support elf64
26608
26609 2009-05-03 Bean <bean123ch@gmail.com>
26610
26611 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
26612 after we get the result of if statement.
26613
26614 2009-05-03 Bean <bean123ch@gmail.com>
26615
26616 * Makefile.in (enable_efiemu): New variable.
26617
26618 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
26619 set.
26620 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
26621 path.
26622 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
26623 path, add -mno-red-zone option.
26624 (efiemu64_s.o): Likewise.
26625 (efiemu64.o): Use macro $^ for source file.
26626
26627 * configure.ac (--enable-efiemu): New option.
26628
26629 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
26630
26631 xnu support
26632
26633 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
26634 (pkglib_MODULES): add xnu.mod
26635 (xnu_mod_SOURCES): new variable
26636 (xnu_mod_CFLAGS): likewise
26637 (xnu_mod_LDFLAGS): likewise
26638 (xnu_mod_ASFLAGS): likewise
26639 * conf/i386-pc.rmk: likewise
26640 * conf/x86_64-efi.rmk: likewise
26641 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
26642 new declaration
26643 * include/grub/i386/macho.h: new file
26644 * include/grub/i386/xnu.h: likewise
26645 * include/grub/macho.h: likewise
26646 * include/grub/machoload.h: likewise
26647 * include/grub/x86_64/macho.h: likewise
26648 * include/grub/x86_64/xnu.h: likewise
26649 * include/grub/xnu.h: likewise
26650 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
26651 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
26652 * loader/i386/efi/xnu.c: new file
26653 * loader/i386/pc/xnu.c: likewise
26654 * loader/i386/xnu.c: likewise
26655 * loader/i386/xnu_helper.S: likewise
26656 * loader/macho.c: likewise
26657 * loader/xnu.c: likewise
26658 * loader/xnu_resume.c: likewise
26659 * util/grub-dumpdevtree: likewise
26660 * include/grub/i386/pit.h: include grub/err.h
26661 (grub_pit_wait): export
26662 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
26663
26664 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26665
26666 Efiemu
26667
26668 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
26669 _linux_efi, linux_efi.
26670 new files in grub-emu
26671 new targets efiemu32.o and efiemu64.o
26672 * loader/linux_normal_efiemu.c: likewise
26673 * loader/i386/efi/linux.c: added preliminary efiemu support
26674 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
26675 files to copy
26676 * include/grub/autoefi.h: new file
26677 * include/grub/i386/efiemu.h: likewise
26678 * include/grub/i386/pc/efiemu.h: likewise
26679 * include/grub/efi/api.h: add LL suffix when necessary
26680 new definitions relating to tables
26681 * include/grub/efiemu/efiemu.h: new file
26682 * include/grub/efiemu/runtime.h: likewise
26683 * efiemu/prepare.c: likewise
26684 * efiemu/loadcore_common.c: likewise
26685 * efiemu/loadcore64.c: likewise
26686 * efiemu/runtime/efiemu.sh: likewise
26687 * efiemu/runtime/efiemu.S: likewise
26688 * efiemu/runtime/efiemu.c: likewise
26689 * efiemu/runtime/config.h: likewise
26690 * efiemu/prepare32.c: likewise
26691 * efiemu/main.c: likewise
26692 * efiemu/modules/pnvram.c: likewise
26693 * efiemu/modules/i386: likewise
26694 * efiemu/modules/i386/pc: likewise
26695 * efiemu/modules/acpi.c: likewise
26696 * efiemu/i386/pc/cfgtables.c: likewise
26697 * efiemu/i386/loadcore64.c: likewise
26698 * efiemu/i386/loadcore32.c: likewise
26699 * efiemu/prepare64.c: likewise
26700 * efiemu/loadcore.c: likewise
26701 * efiemu/symbols.c: likewise
26702 * efiemu/mm.c: likewise
26703 * efiemu/loadcore32.c: likewise
26704
26705 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26706
26707 ACPI spoofing
26708
26709 * commands/acpi.c: new file
26710 * commands/i386/pc/acpi.c: likewise
26711 * commands/efi/acpi.c: likewise
26712 * include/grub/acpi.h: likewise
26713 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
26714 (acpi_mod_SOURCES): new variable
26715 (acpi_mod_CFLAGS): likewise
26716 (acpi_mod_LDFLAGS): likewise
26717 * conf/i386-efi.rmk: likewise
26718 * conf/x86_64-efi.rmk: likewise
26719
26720 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26721
26722 Missing part from mmap patch
26723
26724 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
26725 (grub_mmap_unregister)
26726 (grub_mmap_free_and_unregister): use grub_mmap_register
26727
26728 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26729
26730 Mmap services
26731
26732 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
26733 * loader/i386/linux.c (find_mmap_size): likewise
26734 (allocate_pages): likewise
26735 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
26736 (grub_fill_multiboot_mmap): likewise
26737 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
26738 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
26739 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
26740 (OPENBSD_MMAP_RESERVED): likewise
26741 * include/grub/i386/pc/memory.h: include grub/memory.h
26742 (grub_lower_mem): removed
26743 (grub_upper_mem): likewise
26744 (GRUB_MACHINE_MEMORY_ACPI): new definition
26745 (GRUB_MACHINE_MEMORY_NVS): likewise
26746 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
26747 (GRUB_MACHINE_MEMORY_HOLE): likewise
26748 (grub_machine_mmap_register): likewise
26749 (grub_machine_mmap_unregister): likewise
26750 (grub_machine_get_upper): likewise
26751 (grub_machine_get_lower): likewise
26752 (grub_machine_get_post64): likewise
26753 * include/grub/i386/efi/memory.h: new file
26754 * include/grub/x86_64/efi/memory.h: likewise
26755 * include/grub/efi/memory.h: likewise
26756 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
26757 (mmap_mod_SOURCES): new variable
26758 (mmap_mod_LDFLAGS): likewise
26759 (mmap_mod_ASFLAGS): likewise
26760 * conf/i386-coreboot.rmk: likewise
26761 * conf/i386-ieee1275.rmk: likewise
26762 * conf/i386-efi.rmk: likewise
26763 * conf/x86_64-efi.rmk: likewise
26764 * include/grub/types.h (UINT_TO_PTR): new macro
26765 (PTR_TO_UINT32): likewise
26766 (PTR_TO_UINT64): likewise
26767 * include/grub/memory.h: new file
26768 * mmap/i386/pc/mmap.c: likewise
26769 * mmap/i386/pc/mmap_helper.S: likewise
26770 * mmap/i386/uppermem.c: likewise
26771 * mmap/mmap.c: likewise
26772 * mmap/efi/mmap.c: likewise
26773 * kern/i386/coreboot/init.c (grub_machine_init): don't use
26774 grub_upper_mem
26775 * kern/i386/pc/init.c (grub_lower_mem): removed variable
26776 (grub_upper_mem): likewise
26777 (grub_machine_init): don't use grub_upper_mem,
26778 make grub_lower_mem local
26779 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
26780 grub_mmap_iterate and grub_mmap_get_upper
26781 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
26782
26783 2009-05-02 Bean <bean123ch@gmail.com>
26784
26785 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
26786 script/sh/parser.y.
26787 (pkglib_MODULES): Add normal.mod and sh.mod.
26788 (normal_SOURCES): New variable.
26789 (normal_mod_CFLAGS): Likewise.
26790 (normal_mod_LDFLAGS): Likewise.
26791 (sh_mod_SOURCES): Likewise.
26792 (sh_mod_CFLAGS): Likewise.
26793 (sh_mod_LDFLAGS): Likewise.
26794
26795 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
26796 script/sh/lexer.c_DEPENDENCIES.
26797 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
26798 kern/rescue_reader.c and kern/rescue_parser.c.
26799 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
26800 (grub_emu_SOURCES): Change source files.
26801 (pkglib_MODULES): Remove normal.mod.
26802 (normal_SOURCES): Removed.
26803 (normal_mod_CFLAGS): Likewise.
26804 (normal_mod_LDFLAGS): Likewise.
26805 * conf/i386-coreboot.rmk: Likewise.
26806 * conf/i386-efi.rmk: Likewise.
26807 * conf/i386-ieee1276.rmk: Likewise.
26808 * conf/powerpc-ieee1275.rmk: Likewise.
26809 * conf/sparc64-ieee1275.rmk: Likewise.
26810 * conf/x86_64-efi.rmk: Likewise.
26811
26812 * include/grub/command.h (grub_command_execute): New inline function.
26813
26814 * include/grub/menu.h (grub_menu_entry): Removed commands field.
26815
26816 * include/grub/normal.h: Remove <grub/setjmp.h>.
26817 (grub_fs_module_list): Moved to normal/autofs.c.
26818 (grub_exit_env): Removed.
26819 (grub_command_execute): Likewise.
26820 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
26821 parameter script.
26822 (read_command_list): New function declaration.
26823 (read_fs_list): Likewise.
26824
26825 * include/parser.h: Include <grub/reader.h>.
26826 (grub_parser_split_cmdline): Change type of getline parameter.
26827 (grub_parser): New structure.
26828 (grub_parser_class): New variable.
26829 (grub_parser_execute): New function declaration.
26830 (grub_register_rescue_parser): Likewise.
26831 (grub_parser_register): New inline function.
26832 (grub_parser_unregister): Likewise.
26833 (grub_parser_get_current): Likewise.
26834 (grub_parser_set_current): Likewise.
26835
26836 * include/grub/reader.h: New file.
26837 * kern/reader.c: Likewise.
26838 * kern/rescue_parser.c: Likewise.
26839 * kern/rescue_reader.c: Likewise.
26840 * normal/autofs.c: Likewise.
26841 * normal/dyncmd.c: Likewise.
26842
26843 * include/grub/rescue.h: Removed.
26844 * normal/command.h: Likewise.
26845
26846 * include/grub/script.h: Moved to ...
26847 * include/grub/script_sh.h: ... Moved here.
26848 * normal/execute.c: Moved to ...
26849 * script/sh/execute.c: ... Moved here.
26850 * normal/function.c: Moved to ...
26851 * script/sh/function.c: ... Moved here.
26852 * normal/lexer.c: Moved to ...
26853 * script/sh/lexer.c: ... Moved here.
26854 * normal/parser.y: Moved to ...
26855 * script/sh/parser.y: ... Moved here.
26856 * normal/script.c: Moved to ...
26857 * script/sh/script.c: ... Moved here.
26858
26859 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
26860 <grub/reader.h>.
26861 (grub_exit_env): Removed.
26862 (fs_module_list): Moved to normal/autofs.c.
26863 (grub_file_getline): Don't handle comment here.
26864 (free_menu): Skip removed field entry->commands.
26865 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
26866 script parameter.
26867 (read_config_file): Removed nested parameter, change getline function.
26868 (grub_enter_normal_mode): Removed.
26869 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
26870 (read_command_list): Likewise.
26871 (autoload_fs_module): Moved to normal/autofs.c.
26872 (read_fs_list): Likewise.
26873 (reader_nested): New variable.
26874 (grub_normal_execute): Run parser.sh to switch to sh parser.
26875 (grub_cmd_rescue): Removed.
26876 (cmd_normal): Removed.
26877 (grub_cmd_normal): Unregister itself at the beginning. Don't register
26878 rescue command.
26879 (grub_cmdline_run): New function.
26880 (grub_normal_reader_init): Likewise.
26881 (grub_normal_read_line): Likewise.
26882 (grub_env_write_pager): Likewise.
26883 (cmdline): New variable.
26884 (grub_normal_reader): Likewise.
26885 (GRUB_MOD_INIT): Register normal reader and set as current, register
26886 pager hook, register normal command with grub_register_command_prio,
26887 so that it won't show up in command.lst.
26888 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
26889 grub_fs_autoload_hook.
26890
26891 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
26892 (grub_menu_execute_entry): Replace grub_script_execute with
26893 grub_parser_execute, change parameter to grub_command_execute.
26894
26895 * normal/menu_text.c: Remove <grub/script.h>.
26896
26897 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
26898 and <grub/parser.h>.
26899 (run): Change editor_getline to use new parser interface. Change
26900 parameter to grub_command_execute.
26901
26902 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
26903 <grub/reader.h> and <grub/parser.h>.
26904 (grub_load_normal_mode): Execute normal command.
26905 (grub_main): Call grub_register_core_commands,
26906 grub_register_rescue_parser and grub_register_rescue_reader, use
26907 grub_reader_loop to enter input loop.
26908
26909 * kern/parser.c (grub_parser_split_cmdline): Change type of
26910 getline parameter.
26911 (grub_parser_class): New variable.
26912 (grub_parser_execute): New function.
26913
26914 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
26915 * loader/multiboot2.c: Likewise.
26916 * loader/sparc64/ieee1275/linux.c: Likewise.
26917
26918 * util/grub-emu.c (read_command_list): New dummy function.
26919
26920 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26921
26922 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
26923 count to 16 for CCISS and IDA.
26924
26925 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26926
26927 * normal/menu_text.c (grub_wait_after_message): Print a newline
26928 after waiting for user input.
26929
26930 * loader/i386/linux.c: Include `<grub/normal.h>'.
26931 (grub_cmd_linux): Improve the error message about `ask' mode, by
26932 waiting for user input so it's not missed (we can do this, since
26933 user requested interaction).
26934
26935 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26936
26937 Added missing lst to grub-mkrescue
26938
26939 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
26940 and ${input_dir}/parttool.lst
26941
26942 2009-04-30 David S. Miller <davem@davemloft.net>
26943
26944 * util/hostdisk.c (device_is_wholedisk): New function.
26945 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
26946 zero only if device_is_wholedisk() returns true.
26947
26948 * util/hostdisk.c (convert_system_partition_to_system_disk):
26949 Handle virtual disk devices named /dev/vdiskX as found on sparc
26950 and powerpc.
26951
26952 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
26953 lettered partition specifier is found, convert to numbered.
26954
26955 2009-04-29 David S. Miller <davem@davemloft.net>
26956
26957 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
26958 * include/grub/sparc64/ieee1275/memory.h: Likewise.
26959
26960 * normal/command.c: Add missing newline at end of file.
26961
26962 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
26963 warnings.
26964 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
26965 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
26966 grub_ofdisk_read): Likewise, and deal similarly with the fact that
26967 ihandles have a 32-bit type but need to be stored in a "void *".
26968
26969 2009-04-28 Pavel Roskin <proski@gnu.org>
26970
26971 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
26972 not disk. Adjust all dependencies.
26973 (grub_fs_uuid_close): Use grub_device_close(), not
26974 grub_disk_close().
26975
26976 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
26977 parent's partition, don't copy it by reference, as it gets freed
26978 on close.
26979
26980 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26981
26982 Preboot hooks support
26983
26984 * commands/boot.c (struct grub_preboot_t): new declaration
26985 (preboots_head): new variable
26986 (preboots_tail): likewise
26987 (grub_loader_register_preboot_hook): new function
26988 (grub_loader_unregister_preboot_hook): likewise
26989 (grub_loader_set): launch preboot hooks
26990 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
26991 (grub_loader_register_preboot_hook): new declaration
26992 (grub_loader_unregister_preboot_hook): likewise
26993
26994 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26995
26996 Warning fix
26997
26998 * disk/scsi.c (grub_scsi_open): added missing cast when
26999 calling grub_dprintf
27000
27001 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
27002
27003 Bug and warning fixes
27004
27005 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
27006 declaration
27007 * commands/test.c (test_parse): fixed bug with file tests and corrected
27008 declaration of find_file
27009
27010 2009-04-26 Pavel Roskin <proski@gnu.org>
27011
27012 * Makefile.in: Don't install empty manual pages if help2man is
27013 missing. Use help2man option for output, not shell redirection.
27014
27015 2009-04-26 David S. Miller <davem@davemloft.net>
27016
27017 * util/grub-mkdevicemap.c (make_device_map): Add missing
27018 NESTED_FUNC_ATTR to process_device().
27019
27020 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
27021
27022 Test command
27023
27024 * commands/test.c: rewritten to use bash-like test
27025
27026 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
27027
27028 Parttool autoloading and improvements
27029
27030 * Makefile.in (pkglib_DATA): add parttool.lst
27031 (parttool.lst): new target
27032 * genmk.rb: generate parttool-*
27033 (CLEANFILES): add #{parttool}
27034 (PARTTOOLFILES): new variable
27035 * genparttoollist.sh: new file
27036 * parttool/pcpart.c (grub_pcpart_boot): more feedback
27037 (grub_pcpart_type): likewise
27038 * commands/parttool.c (helpmsg): new variable
27039 (grub_cmd_parttool): output help if not enough arguments are supplied
27040 autoload modules
27041 (GRUB_MOD_INIT(parttool)): use helpmsg
27042
27043 2009-04-24 David S. Miller <davem@davemloft.net>
27044
27045 Avoiding opening same device multiple times in device iterator.
27046
27047 * kern/device.c: (grub_device_iterate): Define struct part_ent,
27048 and use it to build a list of partitions in iterate_disk() and
27049 iterate_partition().
27050
27051 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
27052 on disk->data.
27053
27054 * disk/ieee1275/nand.c (grub_nand_iterate): Return
27055 grub_devalias_iterate() result instead of unconditional 0.
27056 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
27057 Also, capture hook return value, either directly or via
27058 grub_children_iterate(), and propagate to caller.
27059 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
27060 grub_children_iterate): Return value is now 'int' instead of
27061 'grub_err_t'.
27062 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
27063 like a proper iterator, stopping when hooks return non-zero.
27064 (grub_devalias_iterate): Likewise.
27065
27066 2009-04-23 David S. Miller <davem@davemloft.net>
27067
27068 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
27069
27070 2009-04-22 David S. Miller <davem@davemloft.net>
27071
27072 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
27073 is larger than address_cells, use that value for address_cells too.
27074
27075 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
27076 IEEE1275_MAX_PATH_LEN): Define.
27077 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
27078 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
27079 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
27080 'devtype'. Explicitly NULL terminate devalias expansion.
27081
27082 * util/sparc64/ieee1275/misc.c: New file.
27083 * util/sparc64/ieee1275/grub-setup.c: New file.
27084 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
27085 * util/sparc64/ieee1275/grub-mkimage.c: New file.
27086 * util/sparc64/ieee1275/grub-install.in: New file.
27087 * util/ieee1275/ofpath.c: New file.
27088 * util/ieee1275/devicemap.c: New file.
27089 * util/devicemap.c: New file.
27090 * util/deviceiter.c: New file.
27091 * kern/sparc64/ieee1275/init.c: New file.
27092 * include/grub/util/ofpath.h: New file.
27093 * include/grub/util/deviceiter.h: New file.
27094 * util/grub-mkdevicemap.c: Include deviceiter.h.
27095 Implement using grub_util_emit_devicemap_entry and
27096 grub_util_iterate_devices.
27097 * conf/i386-corebook.rmk: Build util/deviceiter.c and
27098 util/devicemap.c into grub-mkdevicemap
27099 * conf/i386-efi.rmk: Likewise.
27100 * conf/i386-ieee1275.rmk: Likewise.
27101 * conf/i386-pc.rmk: Likewise.
27102 * conf/powerpc-ieee1275.rmk: Likewise.
27103 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
27104 images and installation utilities. Build kernel as image
27105 instead of as elf binary. Use common rules as much as possible.
27106
27107 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27108
27109 Correct GPT definition
27110
27111 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
27112 of "attrib" member
27113
27114 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
27115
27116 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
27117
27118 2009-04-19 David S. Miller <davem@davemloft.net>
27119
27120 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
27121 (grub_rescue_cmd_linux): Rename to...
27122 (grub_cmd_linux): and fix prototype.
27123 (grub_rescue_cmd_initrd): Rename to...
27124 (grub_cmd_initrd): and fix prototype.
27125 (cmd_linux, cmd_initrd): New.
27126 (GRUB_MOD_INIT(linux)): Use grub_register_command().
27127 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
27128
27129 2009-04-17 Pavel Roskin <proski@gnu.org>
27130
27131 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
27132 format.
27133 (grub_ohci_transfer): Likewise.
27134
27135 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
27136
27137 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
27138 return without a value. Fix inconsistent indentation.
27139
27140 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
27141 match struct grub_fs.
27142
27143 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
27144 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
27145 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
27146 * commands/lspci.c (grub_lspci_iter): Likewise.
27147
27148 2009-04-16 Bean <bean123ch@gmail.com>
27149
27150 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
27151 value.
27152
27153 2009-04-15 Pavel Roskin <proski@gnu.org>
27154
27155 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
27156 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
27157 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
27158 definitions.
27159
27160 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27161
27162 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
27163 that no multiple data or metadata areas are supported and `Unknown
27164 metadata header'.
27165
27166 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27167
27168 Move loader out of the kernel
27169
27170 * kern/loader.c: moved to ...
27171 * commands/boot.c: ... moved here
27172 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
27173 * commands/boot.c (grub_cmd_boot): moved here. All users updated
27174 * include/grub/kernel.h (grub_machine_fini): export
27175 * include/grub/loader.h (grub_loader_is_loaded): update declaration
27176 (grub_loader_set): likewise
27177 (grub_loader_unset): likewise
27178 (grub_loader_boot): likewise
27179 * conf/common.rmk: new module boot.mod
27180 (pkglib_MODULES): add boot.mod
27181 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
27182 (grub_emu_SOURCES): likewise
27183 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
27184 (grub_emu_SOURCES): likewise
27185 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
27186 (grub_emu_SOURCES): likewise
27187 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
27188 (grub_emu_SOURCES): likewise
27189 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
27190 (grub_emu_SOURCES): likewise
27191 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
27192 (grub_emu_SOURCES): likewise
27193 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
27194 (grub_emu_SOURCES): likewise
27195
27196 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27197
27198 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
27199
27200 * kern/misc.c (grub_itoa): Removed function
27201 (grub_ltoa): likewise
27202 (grub_vsprintf): use grub_lltoa
27203
27204 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27205
27206 Restore grub-emu
27207
27208 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
27209 * conf/i386-coreboot.rmk: likewise
27210 * conf/i386-ieee1275.rmk: likewise
27211 * conf/powerpc-ieee1275.rmk: likewise
27212
27213 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27214
27215 * INSTALL: Add that `./autogen.sh' needs to be run before
27216 `./configure.'.
27217
27218 2009-04-14 Bean <bean123ch@gmail.com>
27219
27220 * Makefile.in (pkglib_DATA): Add handler.lst.
27221 (handler.lst): New rule.
27222
27223 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
27224 * conf/i386-coreboot.rmk: Likewise.
27225 * conf/i386-ieee1275.rmk: Likewise.
27226 * conf/i386-efi.rmk: Likewise.
27227 * conf/x86_64-efi.rmk: Likewise.
27228 * conf/powerpc-ieee1275.rmk: Likewise.
27229 * conf/sparc64-ieee1275.rmk: Likewise.
27230
27231 * genhandlerlist.sh: New file.
27232
27233 * genmk.rb: Add rules to generate handler.lst.
27234
27235 * include/grub/normal.h (grub_file_getline): New function definition.
27236 (read_handler_list): Likewise.
27237 (free_handler_list): Likewise.
27238
27239 * include/grub/term.h (grub_term_register_input): Add name parameter
27240 for auto generation of handler.lst.
27241 (grub_term_register_output): Likewise.
27242
27243 * normal/handler.c: New file.
27244
27245 * normal/main.c (get_line): Renamed to grub_file_getline.
27246 (read_config_file): Use the newly renamed grub_file_getline.
27247 (read_command_list): Likewise.
27248 (read_fs_list): Likewise.
27249 (grub_normal_execute): Call read_handler_list to parse handler.lst.
27250 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
27251
27252 * term/efi/console.c (grub_console_init): Add name parameter for auto
27253 generation of handler.lst.
27254 * term/gfxterm.c: Likewise.
27255 * term/i386/pc/at_keyboard.c: Likewise.
27256 * term/i386/pc/console.c: Likewise.
27257 * term/i386/pc/serial.c: Likewise.
27258 * term/i386/pc/vesafb.c: Likewise.
27259 * term/i386/pc/vga.c: Likewise.
27260 * term/i386/pc/vga_text.c: Likewise.
27261 * term/ieee1275/ofconsole.c: Likewise.
27262 * term/usb_keyboard.c: Likewise.
27263
27264 2009-04-14 Bean <bean123ch@gmail.com>
27265
27266 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
27267 properly with null character.
27268
27269 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27270
27271 * configure: Remove.
27272 * config.h.in: Likewise.
27273 * stamp-h.in: Likewise.
27274 * DISTLIST: Likewise.
27275 * conf/common.mk: Likewise.
27276 * conf/i386-coreboot.mk: Likewise.
27277 * conf/i386-efi.mk: Likewise.
27278 * conf/i386-ieee1275.mk: Likewise.
27279 * conf/i386.mk: Likewise.
27280 * conf/i386-pc.mk: Likewise.
27281 * conf/powerpc-ieee1275.mk: Likewise.
27282 * conf/sparc64-ieee1275.mk: Likewise.
27283 * conf/x86_64-efi.mk: Likewise.
27284
27285 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
27286 develop on GRUB.
27287
27288 2009-04-14 John Stanley <jpsinthemix@verizon.net>
27289 David S. Miller <davem@davemloft.net>
27290
27291 * util/hostdisk.c (make_device_name): Fix buffer length
27292 calculations.
27293
27294 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27295
27296 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
27297 <sys/param.h> and <sys/sysctl.h>.
27298 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
27299 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
27300 opening the device and reset them afterwards.
27301
27302 2009-04-13 Pavel Roskin <proski@gnu.org>
27303
27304 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
27305 Reported by John Stanley <jpsinthemix@verizon.net>
27306
27307 2009-04-13 Robert Millan <rmh@aybabtu.com>
27308
27309 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
27310 that name for menuentries when appropriate.
27311
27312 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27313
27314 * util/grub.d/10_freebsd.in: Add a missing `fi'.
27315
27316 2009-04-13 Robert Millan <rmh@aybabtu.com>
27317
27318 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
27319 to Linux, simply abort telling the user it's no longer supported.
27320
27321 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27322
27323 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
27324 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
27325 `freebsd_loadenv' only when devices.hints exist.
27326
27327 2009-04-13 Pavel Roskin <proski@gnu.org>
27328
27329 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
27330
27331 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27332
27333 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
27334 partition number.
27335 (grub_drive): Likewise.
27336
27337 2009-04-13 David S. Miller <davem@davemloft.net>
27338
27339 * kern/sparc64/ieee1275/ieee1275.c: New file.
27340 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
27341 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
27342 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
27343 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
27344 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
27345 grub_ieee1275_alloc_physmem): Declare new exported functions.
27346
27347 * include/grub/sparc64/ieee1275/loader.h: New file.
27348 * include/grub/sparc64/ieee1275/memory.h: Likewise.
27349 * include/grub/sparc64/kernel.h: Likewise.
27350 * loader/sparc64/ieee1275/linux.c: Likewise.
27351
27352 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
27353 (grub_fstest_SOURCES): Likewise.
27354
27355 * util/hostdisk.c (make_device_name): Do not make any assumptions
27356 about the length of drive names.
27357
27358 * kern/dl.c (grub_dl_load_file): Close file immediately when
27359 we are done using it.
27360
27361 2009-04-12 David S. Miller <davem@davemloft.net>
27362
27363 * kern/misc.c (grub_ltoa): Fix cast when handling negative
27364 values. Noticed by Pavel Roskin.
27365
27366 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
27367 target compiler.
27368
27369 * genmk.rb: Add more flexible image type specification, also
27370 pass --strip-unneeded to objcopy.
27371 * conf/i386-pc.rmk: Use *_FORMAT.
27372 * conf/i386-pc.mk: Rebuilt.
27373
27374 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
27375 (OFDISK_HASH_SZ): Define.
27376 (ofdisk_hash): New hash table.
27377 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
27378 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
27379 instead of device phandle which is not unique.
27380
27381 * kern/sparc64/ieee1275/init.c: Delete, replace with...
27382 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
27383 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
27384 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
27385 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
27386 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
27387 GRUB_KERNEL_MACHINE_DATA_END): Define.
27388 (grub_kernel_image_size, grub_total_module_size): Declare.
27389
27390 2009-04-12 Pavel Roskin <proski@gnu.org>
27391
27392 * configure.ac: Change the logic when we check for target tools.
27393 Do it when the target is specified and it's different from the
27394 specified value of the host.
27395
27396 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
27397
27398 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
27399 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
27400 GNU/kFreeBSD. Check if a device is a character device. Use
27401 DIOCGMEDIASIZE to get the size.
27402 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
27403 support for GNU/kFreeBSD.
27404 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
27405 is a character device instead of a block device. Add support for
27406 FreeBSD device names.
27407
27408 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
27409 is a character device instead of a block device.
27410
27411 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
27412 is a character device instead of a block device.
27413
27414 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
27415
27416 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
27417 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
27418 FreeBSD. Check if a device is a character device. Use
27419 DIOCGMEDIASIZE to get the size.
27420 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
27421 support for FreeBSD.
27422 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
27423 is a character device instead of a block device. Add support for
27424 FreeBSD device names.
27425
27426 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
27427 a character device instead of a block device.
27428 (grub_util_check_char_device): New function.
27429
27430 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
27431 a character device instead of a block device.
27432
27433 * include/grub/util/getroot.h (grub_util_check_char_device): New
27434 prototype.
27435
27436 2009-04-11 David S. Miller <davem@davemloft.net>
27437
27438 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
27439 static libgcc.
27440 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
27441 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
27442 function, if present.
27443 (__bswapdi2): Likewise.
27444
27445 * include/grub/sparc64/ieee1275/boot.h: New file.
27446 * boot/sparc64/ieee1275/boot.S: Likewise.
27447 * boot/sparc64/ieee1275/diskboot.S: Likewise.
27448
27449 * kern/misc.c (grub_ltoa): New function.
27450 (grub_vsprintf): Use it to format 'long' integers.
27451
27452 2009-04-10 David S. Miller <davem@davemloft.net>
27453
27454 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
27455 slots are of type grub_ieee1275_cell_t.
27456 (grub_nand_read): Likewise.
27457 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
27458 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
27459 macros are used to compare values in arg/ret block of the call.
27460 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
27461 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
27462 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
27463 grub_ieee1275_instance_to_path, grub_ieee1275_write,
27464 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
27465 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
27466 grub_ieee1275_close, grub_ieee1275_set_property,
27467 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
27468 grub_ieee1275_cell_t.
27469 * kern/ieee1275/openfw.c (grub_map): Likewise.
27470 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
27471 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
27472
27473 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
27474 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
27475 (grub_devalias_iterate): Likewise.
27476
27477 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27478
27479 UFS improvements
27480
27481 * fs/ufs.c (INODE_NBLOCKS): new definition
27482 (struct grub_ufs_dirent): added fields for non-BSD dirents
27483 (grub_ufs_get_file_block): fixed double indirect handling
27484 (grub_ufs_lookup_symlink): use more robust way to determine whether
27485 symlink is inline
27486 (grub_ufs_find_file): support for non-BSD dirents
27487 (grub_ufs_dir): support for non-BSD dirents
27488
27489 2009-04-10 Bean <bean123ch@gnail.com>
27490
27491 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
27492 attribute, otherwise the size would be wrong for i386 platform.
27493
27494 * include/grub/pci.h (grub_pci_read_word): New inline function.
27495 (grub_pci_read_byte): Likewise.
27496 (grub_pci_write): Likewise.
27497 (grub_pci_write_word): Likewise.
27498 (grub_pci_write_byte): Likewise.
27499
27500 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
27501
27502 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
27503 (find_framebuf): Scan pci to locate the frame buffer address.
27504
27505 * commands/efi/fixvideo.c: New file.
27506
27507 * commands/efi/loadbios.c: Likewise.
27508
27509 * commands/memrw.c: Likewise.
27510
27511 * util/grub-dumpbios.in: Likewise.
27512
27513 * conf/common.rmk (grub-dumpbios): New utility.
27514 (pkglib_MODULES): New module memrw.mod.
27515 (memrw_mod_SOURCE): New macro.
27516 (memrw_mod_CFLAGS): Likewise.
27517 (memrw_mod_LDFLAGS): Likewise.
27518
27519 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
27520 fixvideo.mod.
27521 (loadbios_mod_SOURCE): New macro.
27522 (loadbios_mod_CFLAGS): Likewise.
27523 (loadbios_mod_LDFLAGS): Likewise.
27524 (fixvideo_mod_SOURCE): Likewise.
27525 (fixvideo_mod_CFLAGS): Likewise.
27526 (fixvideo_mod_LDFLAGS): Likewise.
27527
27528 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
27529 fixvideo.mod.
27530 (loadbios_mod_SOURCE): New macro.
27531 (loadbios_mod_CFLAGS): Likewise.
27532 (loadbios_mod_LDFLAGS): Likewise.
27533 (fixvideo_mod_SOURCE): Likewise.
27534 (fixvideo_mod_CFLAGS): Likewise.
27535 (fixvideo_mod_LDFLAGS): Likewise.
27536
27537 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
27538
27539 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
27540
27541 2009-04-07 David S. Miller <davem@davemloft.net>
27542
27543 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
27544 support for R_SPARC_OLO10 relocations. Fix compile warning for
27545 R_SPARC_WDISP30 case.
27546 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
27547
27548 2009-04-06 Pavel Roskin <proski@gnu.org>
27549
27550 * include/grub/misc.h (ARRAY_SIZE): New macro.
27551 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
27552 New macro.
27553 * loader/i386/linux.c (allocate_pages): Use free_pages().
27554 (grub_linux_unload): Don't use free_pages().
27555 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
27556 wrong index. Treat all other modes as text modes.
27557 (grub_cmd_linux): Initialize vid_mode unconditionally to
27558 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
27559
27560 * commands/help.c (print_command_help): Use cmd->prio, not
27561 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
27562
27563 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
27564
27565 Parttool
27566
27567 * parttool/pcpart.c: new file
27568 * commands/parttool.c: likewise
27569 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
27570 (parttool_mod_SOURCES): new variable
27571 (parttool_mod_CFLAGS): likewise
27572 (parttool_mod_LDFLAGS): likewise
27573 (pcpart_mod_SOURCES): likewise
27574 (pcpart_mod_CFLAGS): likewise
27575 (pcpart_mod_LDFLAGS): likewise
27576 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
27577 and parttool/pcpart.c
27578 * conf/i386-efi.rmk: likewise
27579 * conf/i386-ieee1275.rmk: likewise
27580 * conf/i386-pc.rmk: likewise
27581 * conf/powerpc-ieee1275.rmk: likewise
27582 * conf/sparc64-ieee1275.rmk: likewise
27583 * conf/x86_64-ieee1275.rmk: likewise
27584
27585 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27586
27587 Support for mtime and further expandability of dir command
27588
27589 * include/grub/lib/datetime.h: moved to ...
27590 * include/grub/datetime.h: ... moved here and added
27591 declaration of grub_unixtime2datetime. All users updated
27592 * include/grub/fs.h: new syntax for dir and mtime functions in
27593 struct grub_fs
27594 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
27595 and GRUB_FSHELP_FLAGS_MASK
27596 * commands/ls.c (grub_ls_list_files): Write mtime in long format
27597 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
27598 (grub_ext2_mtime): new function
27599 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
27600 (grub_hfsplus_mtime): new function
27601 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
27602 (GRUB_UFS_ATTR_FILE): likewise
27603 (GRUB_UFS_ATTR_LNK): likewise
27604 (struct grub_ufs_sblock): new fields mtime
27605 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
27606 all users updated
27607 (grub_ufs_dir): mtime support
27608 (grub_ufs_mtime): new function
27609 * fs/affs.c (grub_affs_dir): use new dir syntax
27610 * fs/afs.c (grub_afs_dir): likewise
27611 * fs/cpio.c (grub_cpio_dir): likewise
27612 * fs/fat.c (grub_fat_find_dir): likewise
27613 * fs/hfs.c (grub_hfs_dir): likewise
27614 * fs/iso9660.c (grub_iso9660_dir): likewise
27615 * fs/jfs.c (grub_jfs_dir): likewise
27616 * fs/minix.c (grub_minix_dir): likewise
27617 * fs/ntfs.c (grub_ntfs_dir): likewise
27618 * fs/reiserfs.c (grub_reiserfs_dir): likewise
27619 * fs/sfs.c (grub_sfs_dir): likewise
27620 * fs/xfs.c (grub_xfs_dir): likewise
27621 * util/hostfs.c (grub_hostfs_dir): likewise
27622 * lib/datetime.c: moved to ...
27623 * normal/datetime.c: ... moved here
27624 (grub_unixtime2datetime): new function
27625 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
27626 * normal/completion.c (iterate_dir): use new dir syntax
27627 * normal/misc.c (grub_normal_print_device_info): tell the
27628 last modification time of a volume
27629 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
27630 * conf/common.rmk: added lib/datetime.c to ls.mod
27631 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
27632 (normal_mod_SOURCES): likewise
27633 (datetime_mod_SOURCES): Removed lib/datetime.c
27634 * conf/i386-efi.rmk: likewise
27635 * conf/i386-ieee1275.rmk: likewise
27636 * conf/i386-pc.rmk: likewise
27637 * conf/powerpc-ieee1275.rmk: likewise
27638 * conf/sparc64-ieee1275.rmk: likewise
27639 * conf/x86_64-efi.rmk: likewise
27640
27641 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27642
27643 Trim trailing spaces in FAT label and support mtools-like labels
27644
27645 * fs/fat.c (grub_fat_iterate_dir): New function based
27646 on grub_fat_find_dir
27647 (grub_fat_find_dir): use grub_fat_iterate_dir
27648 (grub_fat_label): likewise
27649
27650 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
27651
27652 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
27653 and command.h
27654 remove extraneous kernel_elf_HEADERS
27655
27656 2009-04-04 Bean <bean123ch@gnail.com>
27657
27658 * include/grub/util/misc.h: Add dummy function fsync for mingw.
27659
27660 * util/misc.c: Likewise.
27661
27662 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27663
27664 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
27665 instead of grub_printf.
27666
27667 2009-04-03 Robert Millan <rmh@aybabtu.com>
27668
27669 * loader/i386/linux.c (grub_linux_setup_video): Fill
27670 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
27671 values from `mode info' structure instead of hardcoded
27672 values.
27673
27674 2009-04-01 Pavel Roskin <proski@gnu.org>
27675
27676 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
27677 unused now.
27678 * genmk.rb: Likewise.
27679 * configure.ac: Likewise.
27680
27681 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
27682
27683 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
27684 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
27685
27686 2009-04-01 David S. Miller <davem@davemloft.net>
27687
27688 * normal/sparc64/setjmp.S: Fix setjmp implementation.
27689 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
27690 (grub_setjmp): Mark with 'returns_twice' attribute.
27691 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
27692 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
27693 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
27694
27695 2009-04-01 Robert Millan <rmh@aybabtu.com>
27696
27697 Reapply fix from 2008-07-28 which was accidentally reverted; also
27698 perform the same fix to a similar check in same function.
27699
27700 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
27701 with the same number are found, just use issue a warning with
27702 grub_dprintf(), as this error has been reported to be non-fatal.
27703
27704 2009-03-31 Pavel Roskin <proski@gnu.org>
27705
27706 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
27707 for cross-compilation.
27708
27709 2009-03-30 Robert Millan <rmh@aybabtu.com>
27710
27711 Fix i386-ieee1275 build.
27712
27713 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
27714 Remove declaration.
27715
27716 2009-03-30 Pavel Roskin <proski@gnu.org>
27717
27718 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
27719 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
27720 zero-terminated, rely only on the strlen value. Fix comparison
27721 of strings differing in length.
27722
27723 2009-03-30 Robert Millan <rmh@aybabtu.com>
27724
27725 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
27726 checking for abi version. Improve error messages on BIOS to notify
27727 user about `linux16' command.
27728
27729 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
27730
27731 Leak fixes
27732
27733 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
27734 in case of collision
27735 * disk/scsi.c (grub_scsi_open): free scsi in case of error
27736
27737 2009-03-29 Robert Millan <rmh@aybabtu.com>
27738
27739 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
27740 set `vid_mode' accordingly.
27741 (grub_linux_boot): Process `vid_mode' and set video mode.
27742
27743 2009-03-29 Robert Millan <rmh@aybabtu.com>
27744
27745 * util/grub.d/10_linux.in (linux_entry): New function.
27746 Factorize generation of Linux boot entries.
27747
27748 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
27749
27750 Make the format of Environment Block plain text. The boot loader
27751 part is not tested well yet.
27752
27753 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
27754 (buffer): Removed.
27755 (envblk): Likewise.
27756 (usage): Remove "info" and "clear". Add "unset". Update the
27757 description of "set", as this does not delete variables any
27758 longer.
27759 (create_envblk_file): Complete rewrite.
27760 (open_envblk_file): Likewise.
27761 (cmd_info): Removed.
27762 (cmd_list): Likewise.
27763 (cmd_set): Likewise.
27764 (cmd_clear): Likewise.
27765 (list_variables): New function.
27766 (write_envblk): Likewise.
27767 (set_variables): Likewise.
27768 (unset_variables): Likewise.
27769 (main): Complete rewrite.
27770
27771 * commands/loadenv.c (buffer): Removed.
27772 (envblk): Likewise.
27773 (open_envblk_file): New function.
27774 (read_envblk_file): Complete rewrite.
27775 (grub_cmd_load_env): Likewise.
27776 (grub_cmd_list_env): Likewise.
27777 (struct blocklist): New struct.
27778 (free_blocklists): New function.
27779 (check_blocklists): Likewise.
27780 (write_blocklists): Likewise.
27781 (grub_cmd_save_env): Complete rewrite.
27782
27783 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
27784 a plain text signature.
27785 (GRUB_ENVBLK_MAXLEN): Removed.
27786 (struct grub_envblk): Complete rewrite.
27787 (grub_envblk_find): Removed.
27788 (grub_envblk_insert): Likewise.
27789 (grub_envblk_open): New prototype.
27790 (grub_envblk_set): Likewise.
27791 (grub_envblk_delete): Put const to VALUE.
27792 (grub_envblk_iterate): Put const to NAME and VALUE.
27793 (grub_envblk_close): New prototype.
27794 (grub_envblk_buffer): New inline function.
27795 (grub_envblk_size): Likewise.
27796
27797 * lib/envblk.c: Include grub/mm.h.
27798 (grub_env_find): Removed.
27799 (grub_envblk_open): New function.
27800 (grub_envblk_close): Likewise.
27801 (escaped_value_len): Likewise.
27802 (find_next_line): Likewise.
27803 (grub_envblk_insert): Removed.
27804 (grub_envblk_set): New function.
27805 (grub_envblk_delete): Complete rewrite.
27806 (grub_envblk_iterate): Likewise.
27807
27808 2009-03-28 Robert Millan <rmh@aybabtu.com>
27809
27810 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
27811 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
27812 variables. Use 16-bit loader.
27813 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
27814 loader.
27815 * kern/i386/loader.S (grub_linux_boot): Rename to ...
27816 (grub_linux16_boot): ... this. Update all users.
27817 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
27818 (grub_linux_boot): ... this. Update all users.
27819
27820 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
27821 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
27822 commands to `linux16' and `initrd16'.
27823 (GRUB_MOD_FINI(linux)): Rename to ...
27824 (GRUB_MOD_FINI(linux16)): ... this.
27825
27826 2009-03-24 Pavel Roskin <proski@gnu.org>
27827
27828 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
27829 not just for compilation.
27830
27831 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
27832
27833 Move multiboot helper out of kernel
27834
27835 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
27836 `loader/i386/multiboot_helper.S'.
27837 * conf/i386-coreboot.rmk: Likewise
27838 * conf/i386-ieee1275.rmk: Likewise
27839
27840 * kern/i386/loader.S: Move multiboot helpers from here...
27841 * loader/i386/multiboot_helper.S: ...moved here
27842 * include/grub/i386/loader.h: Move declarations of multiboot
27843 helpers from here...
27844 * include/grub/i386/multiboot.h: ...moved here
27845 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
27846
27847 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27848
27849 * kern/env.c (grub_env_context_open): Added an argument to specify
27850 whether a new context inherits exported variables from current
27851 one. This is useful when making a sandbox to interpret a config
27852 file.
27853 All callers updated.
27854
27855 * include/grub/env.h (grub_env_context_open): Updated the prototype.
27856
27857 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27858
27859 * kern/env.c (grub_env_context_close): Fix memory leaks.
27860
27861 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27862
27863 * normal/main.c (grub_normal_execute): Added an argument
27864 BATCH to specify if an interactive interface should be provided
27865 after reading a config file.
27866 All callers updated.
27867 (read_command_list): Prevent being executed twice.
27868 (read_fs_list): Likewise.
27869
27870 * include/grub/normal.h (grub_normal_execute): Updated the
27871 prototype.
27872
27873 2009-03-22 Pavel Roskin <proski@gno.org>
27874
27875 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
27876 _start.
27877 * kern/i386/pc/startup.S: Likewise.
27878 * kern/i386/efi/startup.S: Likewise.
27879 * kern/i386/ieee1275/startup.S: Likewise.
27880 * kern/i386/coreboot/startup.S: Likewise.
27881 * kern/x86_64/efi/startup.S: Likewise.
27882
27883 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
27884 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
27885 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
27886
27887 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
27888
27889 Bugfixes in multiboot for bugs uncovered by solaris kernel.
27890
27891 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
27892 limit detection.
27893 Use vaddr of correct segment for entry_point.
27894
27895 2009-03-21 Bean <bean123ch@gmail.com>
27896
27897 * commands/blocklist.c: Add include file <grub/command.h>, remove
27898 <grub/normal.h> and <grub/arg.h>.
27899 (grub_cmd_blocklist): Use the new command interface.
27900 (GRUB_MOD_INIT): Likewise.
27901 (GRUB_MOD_FINI): Likewise.
27902 * commands/boot.c: Likewise.
27903 * commands/cat.c: Likewise.
27904 * commands/cmp.c: Likewise.
27905 * commands/configfile.c: Likewise.
27906 * commands/crc.c: Likewise.
27907 * commands/echo.c: Likewise.
27908 * commands/halt.c: Likewise.
27909 * commands/handler.c: Likewise.
27910 * commands/hdparm.c: Likewise.
27911 * commands/help.c: Likewise.
27912 * commands/hexdump.c: Likewise.
27913 * commands/loadenv.c: Likewise.
27914 * commands/ls.c: Likewise.
27915 * commands/lsmmap.c: Likewise.
27916 * commands/lspci.c: Likewise.
27917 * commands/loadenv.c: Likewise.
27918 * commands/read.c: Likewise.
27919 * commands/reboot.c: Likewise.
27920 * commands/search.c: Likewise.
27921 * commands/sleep.c: Likewise.
27922 * commands/test.c: Likewise.
27923 * commands/usbtest.c: Likewise.
27924 * commands/videotest.c: Likewise.
27925 * commands/i386/cpuid.c: Likewise.
27926 * commands/i386/pc/halt.c: Likewise.
27927 * commands/i386/pc/play.c: Likewise.
27928 * commands/i386/pc/pxecmd.c: Likewise.
27929 * commands/i386/pc/vbeinfo.c: Likewise.
27930 * commands/i386/pc/vbetest.c: Likewise.
27931 * commands/ieee1275/suspend.c: Likewise.
27932 * disk/loopback.c: Likewise.
27933 * font/font_cmd.c: Likewise.
27934 * hello/hello.c: Likewise.
27935 * loader/efi/appleloader.c: Likewise.
27936 * loader/efi/chainloader.c: Likewise.
27937 * loader/i386/bsd.c: Likewise.
27938 * loader/i386/efi/linux.c: Likewise.
27939 * loader/i386/ieee1275/linux.c: Likewise.
27940 * loader/i386/linux.c: Likewise.
27941 * loader/i386/pc/chainloader.c: Likewise.
27942 * loader/i386/pc/linux.c: Likewise.
27943 * loader/powerpc/ieee1275/linux.c: Likewise.
27944 * loader/multiboot_loader.c: Likewise.
27945 * term/gfxterm.c: Likewise.
27946 * term/i386/pc/serial.c: Likewise.
27947 * term/terminfo.c: Likewise.
27948
27949 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
27950 * term/i386/pc/vga.c: Likewise.
27951 * video/readers/jpeg.c: Likewise.
27952 * video/readers/png.c: Likewise.
27953 * video/readers/tga.c: Likewise.
27954
27955 * util/grub-fstest (cmd_loopback): Removed.
27956 (cmd_blocklist): Likewise.
27957 (cmd_ls): Likewise.
27958 (grub_register_command): Likewise.
27959 (grub_unregister_command): Likewise.
27960 (execute_command): Use grub_command_find to locate command and execute
27961 it.
27962
27963 * include/grub/efi/chainloader.h: Removed.
27964 * loader/efi/chainloader_normal.c: Likewise.
27965 * loader/i386/bsd_normal.c: Likewise.
27966 * loader/i386/pc/chainloader_normal.c: Likewise.
27967 * loader/i386/pc/multiboot_normal.c: Likewise.
27968 * loader/linux_normal.c: Likewise.
27969 * loader/multiboot_loader_normal.c: Likewise.
27970 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27971
27972 * gencmdlist.sh: Scan new registration command grub_register_extcmd
27973 and grub_register_command_p1.
27974
27975 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
27976 kern/command.c, lib/arg.c and commands/extcmd.c.
27977 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
27978 (minicmd_mod_SOURCES): New variable.
27979 (minicmd_mod_CFLAGS): Likewise.
27980 (minicmd_mod_LDFLAGS): Likewise.
27981 (extcmd_mod_SOURCES): Likewise.
27982 (extcmd_mod_CFLAGS): Likewise.
27983 (extcmd_mod_LDFLAGS): Likewise.
27984 (boot_mod_SOURCES): Removed.
27985 (boot_mod_CFLAGS): Likewise.
27986 (boot_mod_LDFLAGS): Likewise.
27987
27988 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
27989 kern/corecmd.c.
27990 (kernel_img_HEADERS): Add command.h.
27991 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
27992 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
27993 and lib/arg.c.
27994 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
27995 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
27996 remove the corresponding normal mode command.
27997 (normal_mod_SOURCES): Remove normal/arg.c.
27998 * conf/i386-coreboot.rmk: Likewise.
27999 * conf/i386-efi.rmk: Likewise.
28000 * conf/i386-ieee1275.rmk: Likewise.
28001 * conf/powerpc-ieee1275.rmk: Likewise.
28002 * conf/x86_64-efi.rmk: Likewise.
28003
28004 * include/grub/arg.h: Move from here ...
28005 * include/grub/lib/arg.h: ... to here.
28006
28007 * normal/arg.c: Move from here ...
28008 * lib/arg.c: ... to here.
28009
28010 * commands/extcmd.c: New file.
28011 * commands/minicmd.c: Likewise.
28012 * include/grub/command.h: Likewise.
28013 * include/grub/extcmd.h: Likewise.
28014 * kern/command.c: Likewise.
28015 * kern/corecmd.c: Likewise.
28016
28017 * kern/list.c (grub_list_iterate): Return int instead of void.
28018 (grub_list_insert): New function.
28019 (grub_prio_list_insert): Likewise.
28020
28021 * kern/rescue.c (grub_rescue_command): Removed.
28022 (grub_rescue_command_list): Likewise.
28023 (grub_rescue_register_command): Likewise.
28024 (grub_rescue_unregister_command): Likewise.
28025 (grub_rescue_cmd_boot): Move to minicmd.c
28026 (grub_rescue_cmd_help): Likewise.
28027 (grub_rescue_cmd_info): Likewise.
28028 (grub_rescue_cmd_boot): Likewise.
28029 (grub_rescue_cmd_testload): Likewise.
28030 (grub_rescue_cmd_dump): Likewise.
28031 (grub_rescue_cmd_rmmod): Likewise.
28032 (grub_rescue_cmd_lsmod): Likewise.
28033 (grub_rescue_cmd_exit): Likewise.
28034 (grub_rescue_print_devices): Moved to corecmd.c.
28035 (grub_rescue_print_files): Likewise.
28036 (grub_rescue_cmd_ls): Likewise.
28037 (grub_rescue_cmd_insmod): Likewise.
28038 (grub_rescue_cmd_set): Likewise.
28039 (grub_rescue_cmd_unset): Likewise.
28040 (attempt_normal_mode): Use grub_command_find to get normal module.
28041 (grub_enter_rescue_mode): Use grub_register_core_commands to register
28042 commands, remove grub_rescue_register_command calls.
28043
28044 * normal/command.c (grub_register_command): Removed.
28045 (grub_unregister_command): Likewise.
28046 (grub_command_find): Likewise.
28047 (grub_iterate_commands): Likewise.
28048 (rescue_command): Likewise.
28049 (export_command): Moved to corecmd.c.
28050 (set_command): Removed.
28051 (unset_command): Likewise.
28052 (insmod_command): Likewise.
28053 (rmmod_command): Likewise.
28054 (lsmod_command): Likewise.
28055 (grub_command_init): Likewise.
28056
28057 * normal/completion.c (iterate_command): Use cmd->prio to check for
28058 active command.
28059 (complete_arguments): Use grub_extcmd_t structure to find options.
28060 (grub_normal_do_completion): Change function grub_iterate_commands to
28061 grub_command_iterate.
28062
28063 * normal/execute.c (grub_script_execute_cmd): No need to parse
28064 argument here.
28065
28066 * normal/main.c (grub_dyncmd_dispatcher): New function.
28067 (read_command_list): Register unload commands as dyncmd.
28068 (grub_cmd_normal): Use new command interface, register rescue,
28069 unregister normal at entry, register normal, unregister rescue at exit.
28070
28071 * include/grub/list.h (grub_list_test_t): New type.
28072 (grub_list_iterate): Return int instead of void.
28073 (grub_list_insert): New function.
28074 (GRUB_AS_NAMED_LIST_P): New macro.
28075 (GRUB_AS_PRIO_LIST): Likewise.
28076 (GRUB_AS_PRIO_LIST_P): Likewise.
28077 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
28078 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
28079 (grub_prio_list): New structure.
28080 (grub_prio_list_insert): New function.
28081 (grub_prio_list_remove): New inline function.
28082
28083 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
28084 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
28085 (GRUB_COMMAND_FLAG_MENU): Likewise.
28086 (GRUB_COMMAND_FLAG_BOTH): Likewise.
28087 (GRUB_COMMAND_FLAG_TITLE): Likewise.
28088 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
28089 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
28090 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
28091 (grub_command): Likewise.
28092 (grub_register_command): Likewise.
28093 (grub_command_find): Likewise.
28094 (grub_iterate_commands): Likewise.
28095 (grub_command_init): Likewise.
28096 (grub_arg_parse): Likewise.
28097 (grub_arg_show_help): Likewise.
28098
28099 * include/grub/rescue.h (grub_rescue_register_command): Removed.
28100 (grub_rescue_unregister_command): Likewise.
28101
28102 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
28103 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
28104 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
28105
28106 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
28107 grub_rescue_cmd_initrd.
28108 * include/grub/i386/loader.h: Likewise.
28109 * include/grub/x86_64/loader.h: Likewise.
28110
28111 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
28112
28113 2009-03-21 Bean <bean123ch@gmail.com>
28114
28115 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
28116 instead of stat in mingw environment.
28117
28118 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
28119
28120 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
28121
28122 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
28123 AC_CONFIG_LINKS.
28124
28125 2009-03-21 Bean <bean123ch@gmail.com>
28126
28127 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
28128 out of range error.
28129
28130 2009-03-18 Michel Dänzer <michel@daenzer.net>
28131
28132 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
28133 checking inode flags for EXT4_EXTENTS_FLAG.
28134
28135 2009-03-18 Robert Millan <rmh@aybabtu.com>
28136
28137 * loader/i386/linux.c: Include `<grub/video.h>' and
28138 `<grub/i386/pc/vbe.h>'..
28139 (grub_linux_setup_video): New function. Loosely based on the EFI one.
28140 (grub_linux32_boot): Attempt to configure video settings with
28141 grub_linux_setup_video().
28142 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
28143 to avoid grub_console_fini() which would step out of graphical mode
28144 unconditionally.
28145
28146 2009-03-14 Robert Millan <rmh@aybabtu.com>
28147
28148 Fix build on powerpc.
28149 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
28150
28151 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
28152
28153 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
28154 background image command.
28155
28156 2009-03-12 Colin D Bennett <colin@gibibit.com>
28157
28158 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
28159 (grub_gfxterm_putchar): Extract pairs of identical calls to
28160 draw_cursor out of conditional blocks.
28161
28162 2009-03-11 Pavel Roskin <proski@gnu.org>
28163
28164 * fs/hfs.c (grub_hfs_strncasecmp): New function.
28165 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
28166
28167 2009-03-11 Robert Millan <rmh@aybabtu.com>
28168
28169 * loader/i386/multiboot_elfxx.c
28170 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
28171
28172 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
28173
28174 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
28175 `kern/handler.c'.
28176
28177 2009-03-11 Robert Millan <rmh@aybabtu.com>
28178
28179 * loader/i386/multiboot.c (code_size): New variable.
28180 (grub_multiboot): Define offsets by adding to `code_size' rather
28181 than subtracting from `grub_multiboot_payload_size'. Provide
28182 4-byte alignment to MBI and others by increasing
28183 `boot_loader_name_length' appropriately.
28184
28185 * loader/i386/multiboot_elfxx.c
28186 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
28187
28188 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
28189
28190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
28191 `fs/ext2.c'.
28192
28193 2009-03-08 Robert Millan <rmh@aybabtu.com>
28194
28195 Make loader/i386/linux.c usable on i386-pc again.
28196
28197 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
28198 memory to heap.
28199 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
28200 `#error' stanza.
28201
28202 2009-03-07 Bean <bean123ch@gmail.com>
28203
28204 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
28205 allocation.
28206
28207 2009-03-06 Robert Millan <rmh@aybabtu.com>
28208
28209 Fix display issue on terminals with screen size other than 80x25
28210 (e.g. gfxterm with resolution higher than 640x480).
28211
28212 * normal/main.c (grub_normal_init_page): Display title text in a
28213 position relative to the center of the terminal instead of relying
28214 on a hardcoded offset.
28215
28216 2009-03-04 Robert Millan <rmh@aybabtu.com>
28217
28218 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
28219 installed.
28220
28221 * Makefile.in (host_kernel): New variable.
28222 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
28223 scripts instead of just the windows one.
28224 * configure.ac: Initialize and AC_SUBST `host_kernel'.
28225
28226 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28227
28228 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
28229 `kern/handler.c'.
28230 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28231 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28232 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28234 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28235 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28236
28237 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28238
28239 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
28240 or if there's no space for the disk label and print the partition number on a
28241 invalid magic.
28242
28243 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28244
28245 * util/misc.c: Include <time.h>.
28246 (grub_millisleep): New function.
28247
28248 2009-03-04 Bean <bean123ch@gmail.com>
28249
28250 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
28251 another option -mno-red-zone.
28252
28253 * commands/handler.c: Change module description.
28254
28255 * kern/handler.c: Add missing space at the end of description line.
28256
28257 * kern/list.c: Likewise.
28258
28259 2009-03-03 Robert Millan <rmh@aybabtu.com>
28260
28261 Move more components to the relocation area, and fix mbi pointer
28262 handling to use the destination rather than the origin (thanks to
28263 Vladimir Serbinenko for spotting).
28264
28265 * loader/i386/multiboot.c (mbi_dest): New variable.
28266 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
28267 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
28268 relocation area.
28269
28270 2009-03-01 Bean <bean123ch@gmail.com>
28271
28272 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
28273 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
28274 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
28275 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
28276
28277 * loader/i386/efi/linux.c (acpi_guid): New variable.
28278 (acpi_guid): Likewise.
28279 (EBDA_SEG_ADDR): New constant.
28280 (LOW_MEM_ADDR): Likewise.
28281 (FAKE_EBDA_SEG): Likewise.
28282 (fake_bios_data): New function.
28283 (grub_linux_boot): Call fake_bios_data.
28284
28285 2009-03-01 Bean <bean123ch@gmail.com>
28286
28287 * commands/terminal.c: Removed.
28288
28289 * commands/handler.c: New file.
28290
28291 * include/grub/list.h: Likewise.
28292
28293 * include/grub/handler.h: Likewise.
28294
28295 * kern/list.c: Likewise.
28296
28297 * kern/handler.c: Likewise.
28298
28299 * kern/term.h: Include header file <grub/handler.h>.
28300 (grub_term_input): Move next field to the beginning.
28301 (grub_term_output): Likewise.
28302 (grub_term_input_class): New variable.
28303 (grub_term_output_class): Likewise.
28304 (grub_term_register_input): Changed to inline function.
28305 (grub_term_register_output): Likewise.
28306 (grub_term_unregister_input): Likewise.
28307 (grub_term_unregister_output): Likewise.
28308 (grub_term_set_current_input): Likewise.
28309 (grub_term_set_current_output): Likewise.
28310 (grub_term_get_current_input): Likewise.
28311 (grub_term_get_current_output): Likewise.
28312 (grub_term_iterate_input): Removed.
28313 (grub_term_iterate_output): Likewise.
28314
28315 * kern/term.c (grub_term_list_input): Removed.
28316 (grub_term_list_output): Likewise.
28317 (grub_term_input_class): New variable.
28318 (grub_term_output_class): Likewise.
28319 (grub_cur_term_input): Change variable as macro.
28320 (grub_cur_term_output): Likewise.
28321 (grub_term_register_input): Removed.
28322 (grub_term_register_output): Likewise.
28323 (grub_term_unregister_input): Likewise.
28324 (grub_term_unregister_output): Likewise.
28325 (grub_term_set_current_input): Likewise.
28326 (grub_term_set_current_output): Likewise.
28327 (grub_term_iterate_input): Likewise.
28328 (grub_term_iterate_output): Likewise.
28329 (grub_term_get_current_input): Likewise.
28330 (grub_term_get_current_output): Likewise.
28331
28332 * util/grub-editenv.c: Include header file <grub/handler.h>.
28333 (grub_term_get_current_input): Removed.
28334 (grub_term_get_current_output): Likewise.
28335 (grub_term_input_class): New variable.
28336 (grub_term_output_class): Likewise.
28337
28338 * util/grub-fstest.c (grub_term_get_current_input): Removed.
28339 (grub_term_get_current_output): Likewise.
28340 (grub_term_input_class): New variable.
28341 (grub_term_output_class): Likewise.
28342
28343 * util/grub-probe.c (grub_term_get_current_input): Removed.
28344 (grub_term_get_current_output): Likewise.
28345 (grub_term_input_class): New variable.
28346 (grub_term_output_class): Likewise.
28347
28348 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
28349 (grub_term_get_current_output): Likewise.
28350 (grub_term_input_class): New variable.
28351 (grub_term_output_class): Likewise.
28352
28353 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
28354 (terminal_mod_SOURCES): Likewise.
28355 (terminal_mod_CFLAGS): Likewise.
28356 (terminal_mod_LDFLAGS): Likewise.
28357
28358 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
28359 handler.c.
28360 (kernel_img_SOURCES): Add list.c and handler.c.
28361 (kernel_img_HEADERS): Add list.h and handler.h.
28362
28363 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28364 handler.c.
28365 (kernel_mod_SOURCES): Add list.c and handler.c.
28366 (kernel_mod_HEADERS): Add list.h and handler.h.
28367
28368 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
28369 handler.c.
28370 (kernel_elf_SOURCES): Add list.c and handler.c.
28371 (kernel_elf_HEADERS): Add list.h and handler.h.
28372
28373 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28374 handler.c.
28375 (kernel_elf_SOURCES): Add list.c and handler.c.
28376 (kernel_elf_HEADERS): Add list.h and handler.h.
28377
28378 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28379 handler.c.
28380 (kernel_mod_SOURCES): Add list.c and handler.c.
28381 (kernel_mod_HEADERS): Add list.h and handler.h.
28382
28383 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28384 handler.c.
28385 (kernel_elf_SOURCES): Add list.c and handler.c.
28386 (kernel_elf_HEADERS): Add list.h and handler.h.
28387
28388 2009-02-27 Robert Millan <rmh@aybabtu.com>
28389
28390 Factorize elf32 / elf64 code in Multiboot loader. This will
28391 prevent it from getting out of sync again.
28392
28393 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
28394 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
28395 grub_multiboot_load_elf64): Move from here ...
28396 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
28397 grub_multiboot_load_elf): ... to here (new file).
28398
28399 2009-02-27 Robert Millan <rmh@aybabtu.com>
28400
28401 * util/grub.d/10_linux.in: Rename "single-user mode" to
28402 "recovery mode".
28403
28404 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
28405
28406 Don't leak in SCSI code.
28407 * disk/scsi.c (grub_scsi_close): free `scsi'.
28408
28409 2009-02-27 Robert Millan <rmh@aybabtu.com>
28410
28411 * loader/i386/pc/multiboot.c: Move from here ...
28412 * loader/i386/multiboot.c: ... to here. Update all users.
28413
28414 2009-02-27 Robert Millan <rmh@aybabtu.com>
28415
28416 Patch from Alexandre Bique <bique.alexandre@gmail.com>
28417 * util/i386/pc/grub-setup.c (setup): Fix directory path.
28418
28419 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
28420
28421 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
28422 b-tree.
28423
28424 2009-02-27 Robert Millan <rmh@aybabtu.com>
28425
28426 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
28427 `0x' qualifier as 0 when base is specified as parameter).
28428
28429 2009-02-24 Bean <bean123ch@gmail.com>
28430
28431 * configure.ac: Check for -mcmodel=large in x86_64 target.
28432
28433 * include/grub/efi/api.h (efi_call_10): New macro.
28434 (efi_wrap_10): New function.
28435
28436 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
28437 (GRUB_PE32_REL_BASED_HIGH): Likewise.
28438 (GRUB_PE32_REL_BASED_LOW): Likewise.
28439 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
28440 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
28441 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
28442 (GRUB_PE32_REL_BASED_SECTION): Likewise.
28443 (GRUB_PE32_REL_BASED_REL): Likewise.
28444 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
28445 (GRUB_PE32_REL_BASED_DIR64): Likewise.
28446 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
28447
28448 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
28449 issue.
28450
28451 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
28452 (efi_wrap_10): New function.
28453
28454 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
28455
28456 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
28457 MB/MBP model (NV chipset).
28458 (devdata_devs): Add devpath_5 to the list.
28459
28460 * load/i386/efi/linux.c (video_base): Remove variable.
28461 (RGB_MASK): New macro.
28462 (RGB_MAGIC): Likewise.
28463 (LINE_MIN): Likewise.
28464 (LINE_MAX): Likewise.
28465 (FBTEST_STEP): Likewise.
28466 (FBTEST_COUNT): Likewise.
28467 (fb_list): New variable.
28468 (grub_find_video_card): Remove function.
28469 (find_framebuf): New function.
28470 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
28471 line length.
28472
28473 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
28474 problem for x86_64.
28475
28476 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
28477
28478 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
28479
28480 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
28481 coding tool name.
28482
28483 2009-02-22 Robert Millan <rmh@aybabtu.com>
28484
28485 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
28486 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
28487 in our relocation, instead of using it directly from heap. Also
28488 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
28489
28490 2009-02-21 Robert Millan <rmh@aybabtu.com>
28491
28492 Implement USB keyboard support (based on patch by Marco Gerards)
28493
28494 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
28495 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
28496 (usb_keyboard_mod_LDFLAGS): New variables.
28497
28498 * term/usb_keyboard.c: New file.
28499
28500 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28501
28502 Corrected wrong declaration
28503
28504 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
28505
28506 2009-02-14 Christian Franke <franke@computer.org>
28507
28508 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
28509 (grub_lspci_iter): Print class code and programming interface byte.
28510
28511 2009-02-14 Christian Franke <franke@computer.org>
28512
28513 * gendistlist.sh: Ignore `.svn' directories.
28514
28515 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
28516
28517 * fs/fat.c: Add 2009 to Copyright line.
28518
28519 2009-02-14 Christian Franke <franke@computer.org>
28520
28521 * commands/hdparm.c: New file. Provides `hdparm' command
28522 which sends ATA commands via grub_disk_ata_pass_through ().
28523
28524 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
28525
28526 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
28527 and <grub/cpu/io.h> to include/grub/ata.h.
28528 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
28529 (GRUB_CDROM_SECTOR_SIZE): Remove.
28530 (GRUB_ATA_*): Move to include/grub/ata.h.
28531 (GRUB_ATAPI_*): Likewise.
28532 (enum grub_ata_commands): Likewise.
28533 (enum grub_ata_timeout_milliseconds): Likewise.
28534 (struct grub_ata_device): Likewise.
28535 (grub_ata_regset): Likewise.
28536 (grub_ata_regget): Likewise.
28537 (grub_ata_regset2): Likewise.
28538 (grub_ata_regget2): Likewise.
28539 (grub_ata_check_ready): Likewise.
28540 (grub_ata_wait_not_busy): Remove static, exported in
28541 include/grub/ata.h.
28542 (grub_ata_wait_drq): Likewise.
28543 (grub_ata_pio_read): Likewise.
28544
28545 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
28546 function for hdparm.mod.
28547
28548 * include/grub/ata.h: New file, contains declarations from
28549 disk/ata.c.
28550 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
28551
28552 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
28553 (grub_disk_ata_pass_through): New exported variable.
28554
28555 * kern/disk.c (grub_disk_ata_pass_through): New variable.
28556
28557 2009-02-13 Colin D Bennett <colin@gibibit.com>
28558
28559 Support multiple fallback entries, and provide an API to support
28560 executing default+fallback menu entries. Renamed the `terminal' menu
28561 viewer to `text'.
28562
28563 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
28564 variable declaration.
28565 (grub_menu_execute_callback): New structure declaration.
28566 (grub_menu_execute_callback_t): New typedef.
28567 (grub_menu_execute_with_fallback): New function declaration.
28568 (grub_menu_get_entry): Likewise.
28569 (grub_menu_get_timeout): Likewise.
28570 (grub_menu_set_timeout): Likewise.
28571
28572 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
28573
28574 * normal/menu.c (grub_wait_after_message): Moved to
28575 `normal/menu_text.c'.
28576 (draw_border): Likewise.
28577 (print_message): Likewise.
28578 (print_entry): Likewise.
28579 (print_entries): Likewise.
28580 (grub_menu_init_page): Likewise.
28581 (get_entry_number): Likewise.
28582 (print_timeout): Likewise.
28583 (run_menu): Likewise.
28584 (grub_menu_execute_entry): Likewise.
28585 (show_text_menu): Likewise.
28586 (get_and_remove_first_entry_number): New function.
28587 (grub_menu_execute_with_fallback): Likewise.
28588 (get_entry): Renamed to ...
28589 (grub_menu_get_entry): .. this and made it global.
28590 (get_timeout): Renamed to ...
28591 (grub_menu_get_timeout): ... this and made it global.
28592 (set_timeout): Renamed to ...
28593 (grub_menu_set_timeout): ... this and made it global.
28594 (grub_normal_terminal_menu_viewer): Renamed to ...
28595 (grub_normal_text_menu_viewer): ... this.
28596
28597 * normal/menu_text.c: New file. Extracted text-menu-specific code
28598 from normal/menu.c.
28599
28600 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
28601 (normal_mod_SOURCES): Likewise.
28602
28603 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28604 (normal_mod_SOURCES): Likewise.
28605
28606 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28607 (normal_mod_SOURCES): Likewise.
28608
28609 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
28610 (normal_mod_SOURCES): Likewise.
28611
28612 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28613 (normal_mod_SOURCES): Likewise.
28614
28615 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28616 (normal_mod_SOURCES): Likewise.
28617
28618 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28619 (normal_mod_SOURCES): Likewise.
28620
28621 2009-02-11 Robert Millan <rmh@aybabtu.com>
28622
28623 * util/grub.d/00_header.in: Update old reference to `font' command.
28624
28625 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
28626
28627 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
28628
28629 Based on patch from Javier Martín.
28630
28631 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28632
28633 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
28634 to avoid false positives with FAT.
28635 (grub_fstest_SOURCES): Likewise.
28636 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28637 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28638 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28639 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28640 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28641 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28642
28643 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28644
28645 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
28646 bpb.version_specific.fat12_or_fat16.fstype and
28647 bpb.version_specific.fat32.fstype.
28648
28649 2009-02-08 Robert Millan <rmh@aybabtu.com>
28650
28651 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
28652
28653 2009-02-08 Robert Millan <rmh@aybabtu.com>
28654
28655 * Makefile.in (host_os, host_cpu): New variables.
28656 (target_os): Remove. Update all users.
28657
28658 2009-02-08 Marco Gerards <marco@gnu.org>
28659
28660 * Makefile.in (enable_grub_emu_usb): New variable.
28661 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
28662 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
28663 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
28664 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
28665 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
28666 `usbtest.mod' and `usbms.mod'.
28667 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
28668 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
28669 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
28670 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
28671 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
28672 variables.
28673
28674 * disk/usbms.c: New file.
28675
28676 * include/grub/usb.h: Likewise.
28677
28678 * include/grub/usbtrans.h: Likewise.
28679
28680 * include/grub/usbdesc.h: Likewise.
28681
28682 * bus/usb/usbtrans.c: Likewise.
28683
28684 * bus/usb/ohci.c: Likewise.
28685
28686 * bus/usb/uhci.c: Likewise.
28687
28688 * bus/usb/usbhub.c: Likewise.
28689
28690 * bus/usb/usb.c: Likewise.
28691
28692 * commands/usbtest.c: Likewise.
28693
28694 * util/usb.c: Likewise.
28695
28696 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
28697
28698 * configure.ac: Test for libusb presence.
28699
28700 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
28701
28702 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
28703
28704 * kern/mm.c: Add more comments.
28705
28706 2009-02-08 Robert Millan <rmh@aybabtu.com>
28707
28708 Patch from Javier Martín.
28709 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
28710 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
28711
28712 2009-02-08 Robert Millan <rmh@aybabtu.com>
28713
28714 * fs/cpio.c: Split tar functionality to ...
28715 * fs/tar.c: ... here (new file). Update all users.
28716
28717 2009-02-07 Robert Millan <rmh@aybabtu.com>
28718
28719 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
28720 backward-incompatible features.
28721
28722 Based on patch from Javier Martín, with some adjustments.
28723
28724 2009-02-07 Michael Scherer <misc@mandriva.org>
28725
28726 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
28727
28728 2009-02-07 Robert Millan <rmh@aybabtu.com>
28729
28730 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
28731 position of `disk/lvm.c' to ensure grub_init_all() always picks it
28732 after the RAID stuff.
28733
28734 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
28735
28736 Fixes problem when running vbetest command as reported by
28737 Vladimir Serbinenko <phcoder@gmail.com>.
28738
28739 * (grub_vbe_set_video_mode): Fixed problem with text modes.
28740
28741 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
28742
28743 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
28744 /dev/md/NpN style mdraid devices.
28745
28746 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28747
28748 * util/unifont2pff.rb: Remove.
28749
28750 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28751
28752 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
28753 `#'.
28754
28755 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28756
28757 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
28758 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28759 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28760 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28762 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28763 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28764
28765 2009-02-02 Christian Franke <franke@computer.org>
28766
28767 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
28768
28769 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
28770
28771 * INSTALL: Note that we now require at least autoconf 2.59 and
28772 that LZO is optional.
28773
28774 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28775
28776 Base on patch on bug #24154 created by Tomas Tintera
28777 <trosos@seznam.cz>.
28778
28779 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
28780
28781 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28782
28783 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
28784 <bero@arklinux.org>.
28785
28786 * normal/parser.y (script_init): Add missing semicolon.
28787
28788 2009-01-31 Colin D Bennett <colin@gibibit.com>
28789
28790 * normal/main.c: Add include to grub/menu_viewer.h.
28791 (free_menu_entry_classes): Added.
28792 (grub_normal_menu_addentry): Added class property handling.
28793 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
28794 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
28795
28796 * normal/menu_viewer.c: New file.
28797
28798 * normal/menu.c (run_menu_entry): Renamed to ...
28799 (grub_menu_execute_entry): ... this and made it as global.
28800 (grub_menu_run): Renamed to ...
28801 (show_text_menu): ... this and made it local.
28802 (show_text_menu): Adapt to new function names.
28803 (grub_normal_terminal_menu_viewer): New global variable.
28804
28805 * include/grub/menu.h: New file.
28806
28807 * include/grub/menu_viewer.h: New file.
28808
28809 * include/grub/normal.h: Added include to grub/menu.h.
28810 (grub_menu_entry): Moved to include/grub/menu.h.
28811 (grub_menu_entry_t): Likewise.
28812 (grub_menu): Likewise.
28813 (grub_menu_t): Likewise.
28814 (grub_normal_terminal_menu_viewer): Added.
28815 (grub_menu_execute_entry): Likewise.
28816 (grub_menu_run): Removed.
28817
28818 * DISTLIST: Added include/grub/menu.h.
28819 Added include/grub/menu_viewer.h.
28820 Added normal/menu_viewer.c.
28821
28822 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
28823
28824 * normal/execute.c (grub_script_execute_menuentry): Changed to use
28825 arglist for menutitle arguments.
28826
28827 * normal/main.c (grub_normal_menu_addentry): Likewise.
28828
28829 * normal/parser.y (menuentry): Likewise.
28830
28831 * normal/script.c (grub_script_create_cmdmenu): Likewise.
28832
28833 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
28834 (grub_script_create_cmdmenu): Likewise.
28835
28836 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
28837
28838 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
28839 changes.
28840
28841 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
28842
28843 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
28844
28845 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
28846
28847 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28848
28849 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28850
28851 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28852
28853 2009-01-30 Christian Franke <franke@computer.org>
28854
28855 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
28856 in option help text.
28857
28858 2009-01-27 Pavel Roskin <proski@gnu.org>
28859
28860 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
28861
28862 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28863
28864 * commands/lsmmap.c: Add include to grub/machine/memory.h.
28865
28866 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
28867
28868 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
28869 unregister function.
28870
28871 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28872
28873 * disk/scsi.c (grub_scsi_read): Fix sign problem.
28874
28875 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
28876
28877 * util/grub-mkfont.c (usage): Fix typo.
28878
28879 * util/elf/grub-mkimage.c (load_modules): Fix warning.
28880
28881 2009-01-26 Daniel Mierswa <impulze@impulze.org>
28882
28883 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
28884
28885 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
28886
28887 * kern/misc.c (grub_strcasecmp): New function.
28888 (grub_strcasecmp): Use grub_size_t instead of int for length.
28889 Fix return value.
28890 * include/grub/misc.h: Update function prototypes.
28891
28892 2009-01-26 Robert Millan <rmh@aybabtu.com>
28893
28894 * configure.ac: Fix cross-compilation check.
28895
28896 2009-01-22 Christian Franke <franke@computer.org>
28897
28898 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
28899 (precision) digit string. Allow `.format2' without `format1' (width).
28900 Limit input chars for `%s' output to `format2' if specified. This is
28901 compatible with standard printf ().
28902
28903 2009-01-22 Christian Franke <franke@computer.org>
28904
28905 * disk/ata.c (grub_ata_wait_status): Replace by ...
28906 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
28907 other status bits may be invalid while BSY is asserted.
28908 (grub_ata_check_ready): New function.
28909 (grub_ata_cmd): Removed.
28910 (grub_ata_wait_drq): New function.
28911 (grub_ata_strncpy): Remove inline.
28912 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
28913 and error check now done by grub_ata_wait_drq ().
28914 (grub_ata_pio_write): Likewise.
28915 (grub_atapi_identify): Set DEV before check for !BSY. Use
28916 grub_ata_wait_drq () to wait for data.
28917 (grub_ata_device_initialize): Add status register check to
28918 detect missing SATA slave devices. Add debug messages.
28919 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
28920 (grub_atapi_packet): Set DEV before check for !BSY. Replace
28921 transfer loop by grub_ata_pio_write ().
28922 (grub_ata_identify): Set DEV before check for !BSY. Use
28923 grub_ata_wait_drq () to wait for data.
28924 (grub_ata_setaddress): Set DEV before check for !BSY.
28925 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
28926 read/write in one loop. Fix invalid command on write. Fix incomplete
28927 command on (size % batch) == 0. Add missing error check after write of
28928 last block. Add debug messages.
28929 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
28930
28931 2009-01-19 Christian Franke <franke@computer.org>
28932
28933 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
28934 (GRUB_ATAPI_IREASON_*): Likewise.
28935 (grub_ata_pio_write): Fix timeout error return.
28936 (grub_atapi_identify): Add grub_ata_wait () after cmd.
28937 (grub_atapi_wait_drq): New function.
28938 (grub_atapi_packet): New parameter `size'.
28939 Use grub_atapi_wait_drq () and direct write instead of
28940 grub_ata_pio_write ().
28941 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
28942 reads the number of bytes requested by the device for each DRQ
28943 assertion.
28944 (grub_atapi_write): Remove old implementation, return not
28945 implemented instead.
28946
28947 2009-01-19 Christian Franke <franke@computer.org>
28948
28949 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
28950 of 512 to calculate data size.
28951 (grub_scsi_read12): Likewise.
28952 (grub_scsi_write10): Likewise.
28953 (grub_scsi_write12): Likewise.
28954 (grub_scsi_read): Adjust size according to blocksize.
28955 Add checks for invalid blocksize and unaligned transfer.
28956
28957 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
28958
28959 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
28960
28961 * term/gfxterm.c (write_char): Fix background rendering for wide
28962 width glyphs.
28963
28964 2009-01-19 Robert Millan <rmh@aybabtu.com>
28965
28966 * config.guess: Update to latest version from config git.
28967 * config.sub: Likewise.
28968
28969 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
28970
28971 * Makefile.in: Change font compilation to use new grub-mkfont instead
28972 of java version.
28973
28974 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
28975 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
28976 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28977 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28978 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
28979 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
28980 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
28981 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
28982 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
28983
28984 2009-01-16 Christian Franke <franke@computer.org>
28985
28986 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
28987 (enum grub_ata_timeout_milliseconds): New enum.
28988 (grub_ata_wait_status): Add parameter milliseconds.
28989 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
28990 recovery from timed-out commands.
28991 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
28992 return grub_errno instead of REG_ERROR.
28993 (grub_ata_pio_write): Add parameter milliseconds.
28994 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
28995 Pass milliseconds to grub_ata_wait_status () and
28996 grub_ata_pio_read ().
28997 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
28998 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
28999 grub_ata_wait_status (). Fix IDENTIFY timeout check.
29000 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
29001 It is not suitable for device detection, because DEV bit is ignored,
29002 the command may run too long, and not all devices set the signature
29003 properly.
29004 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
29005 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
29006 Fix device selection, DEV bit must be set first to address the registers
29007 of the correct device.
29008 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
29009 grub_ata_pio_read/write ().
29010 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
29011 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
29012
29013 2009-01-13 Carles Pina i Estany <carles@pina.cat>
29014
29015 * util/grub-editenv.c (main): Use fseeko(), not fseek().
29016
29017 2009-01-13 Bean <bean123ch@gmail.com>
29018
29019 * util/grub-mkfont.c (write_font): forget to remove some debug code.
29020
29021 2009-01-13 Bean <bean123ch@gmail.com>
29022
29023 * Makefile.in: (enable_grub_mkfont): New variable.
29024 (freetype_cflags): Likewise.
29025 (freetype_libs): Likewise.
29026
29027 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
29028 (grub_mkfont_SOURCES): New variable.
29029 (grub_mkfont_CFLAGS): Likewise.
29030 (grub_mkfont_LDFLAGS): Likewise.
29031
29032 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
29033 library if `--enable-grub-mkfont' is requested.
29034 (enable_grub_mkfont): New variable.
29035 (freetype_cflags): Likewise.
29036 (freetype_libs): Likewise.
29037
29038 * util/grub-mkfont.c: New file.
29039
29040 2009-01-12 Christian Franke <franke@computer.org>
29041
29042 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
29043 mode check. Fix setting of compat_use[].
29044
29045 2009-01-10 Robert Millan <rmh@aybabtu.com>
29046
29047 Update a few copyright years which we forgot to do in 2008 (only for
29048 files whose changes made in 2008 were copyright-significant)
29049
29050 * Makefile.in: Add 2008 to Copyright line.
29051 * disk/ieee1275/ofdisk.c: Likewise.
29052 * disk/efi/efidisk.c: Likewise.
29053 * kern/dl.c: Likewise.
29054 * kern/sparc64/ieee1275/init.c: Likewise.
29055 * kern/mm.c: Likewise.
29056 * kern/efi/mm.c: Likewise.
29057 * boot/i386/pc/boot.S: Likewise.
29058 * genfslist.sh: Likewise.
29059 * fs/iso9660.c: Likewise.
29060 * fs/hfs.c: Likewise.
29061 * fs/jfs.c: Likewise.
29062 * fs/minix.c: Likewise.
29063 * fs/ufs.c: Likewise.
29064 * gensymlist.sh.in: Likewise.
29065 * genkernsyms.sh.in: Likewise.
29066 * include/grub/misc.h: Likewise.
29067 * include/grub/types.h: Likewise.
29068 * include/grub/symbol.h: Likewise.
29069 * include/grub/elf.h: Likewise.
29070 * include/grub/kernel.h: Likewise.
29071 * include/grub/disk.h: Likewise.
29072 * include/grub/dl.h: Likewise.
29073 * include/grub/i386/linux.h: Likewise.
29074 * include/grub/i386/pc/biosdisk.h: Likewise.
29075 * include/grub/efi/api.h: Likewise.
29076 * include/grub/efi/pe32.h: Likewise.
29077 * include/grub/util/misc.h: Likewise.
29078 * normal/execute.c: Likewise.
29079 * normal/arg.c: Likewise.
29080 * normal/completion.c: Likewise.
29081 * normal/lexer.c: Likewise.
29082 * normal/parser.y: Likewise.
29083 * normal/misc.c: Likewise.
29084 * commands/i386/pc/vbeinfo.c: Likewise.
29085 * commands/hexdump.c: Likewise.
29086 * commands/terminal.c: Likewise.
29087 * commands/ls.c: Likewise.
29088 * commands/help.c: Likewise.
29089 * partmap/pc.c: Likewise.
29090 * loader/efi/chainloader.c: Likewise.
29091 * loader/multiboot_loader.c: Likewise.
29092 * loader/i386/pc/multiboot2.c: Likewise.
29093 * term/efi/console.c: Likewise.
29094 * term/i386/pc/serial.c: Likewise.
29095 * util/lvm.c: Likewise.
29096 * util/console.c: Likewise.
29097 * util/i386/efi/grub-mkimage.c: Likewise.
29098 * util/raid.c: Likewise.
29099
29100 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
29101
29102 * commands/videotest.c: Removed include to grub/machine/memory.h.
29103
29104 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
29105 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
29106 (video_mod_SOURCES): Removed.
29107 (video_mod_CFLAGS): Likewise.
29108 (video_mod_LDFLAGS): Likewise.
29109 (gfxterm_mod_SOURCES): Likewise.
29110 (gfxterm_mod_CFLAGS): Likewise.
29111 (gfxterm_mod_LDFLAGS): Likewise.
29112 (videotest_mod_SOURCES): Likewise.
29113 (videotest_mod_CFLAGS): Likewise.
29114 (videotest_mod_LDFLAGS): Likewise.
29115 (bitmap_mod_SOURCES): Likewise.
29116 (bitmap_mod_CFLAGS): Likewise.
29117 (bitmap_mod_LDFLAGS): Likewise.
29118 (tga_mod_SOURCES): Likewise.
29119 (tga_mod_CFLAGS): Likewise.
29120 (tga_mod_LDFLAGS): Likewise.
29121 (jpeg_mod_SOURCES): Likewise.
29122 (jpeg_mod_CFLAGS): Likewise.
29123 (jpeg_mod_LDFLAGS): Likewise.
29124 (png_mod_SOURCES): Likewise.
29125 (png_mod_CFLAGS): Likewise.
29126 (png_mod_LDFLAGS): Likewise.
29127
29128 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
29129 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
29130 (video_mod_SOURCES): Added.
29131 (video_mod_CFLAGS): Likewise.
29132 (video_mod_LDFLAGS): Likewise.
29133 (videotest_mod_SOURCES): Likewise.
29134 (videotest_mod_CFLAGS): Likewise.
29135 (videotest_mod_LDFLAGS): Likewise.
29136 (bitmap_mod_SOURCES): Likewise.
29137 (bitmap_mod_CFLAGS): Likewise.
29138 (bitmap_mod_LDFLAGS): Likewise.
29139 (tga_mod_SOURCES): Likewise.
29140 (tga_mod_CFLAGS): Likewise.
29141 (tga_mod_LDFLAGS): Likewise.
29142 (jpeg_mod_SOURCES): Likewise.
29143 (jpeg_mod_CFLAGS): Likewise.
29144 (jpeg_mod_LDFLAGS): Likewise.
29145 (png_mod_SOURCES): Likewise.
29146 (png_mod_CFLAGS): Likewise.
29147 (png_mod_LDFLAGS): Likewise.
29148 (gfxterm_mod_SOURCES): Likewise.
29149 (gfxterm_mod_CFLAGS): Likewise.
29150 (gfxterm_mod_LDFLAGS): Likewise.
29151
29152 * term/gfxterm.c: Removed include to grub/machine/memory.h,
29153 grub/machine/console.h.
29154
29155 2009-01-04 Jerone Young <jerone@gmail.com>
29156
29157 Make on screen instructions clearer
29158
29159 Based on patch created by Jidanni <jidanni@jidanni.org>
29160
29161 * normal/menu.c: print clearer instructions on the screen
29162
29163 2009-01-02 Colin D Bennett <colin@gibibit.com>
29164
29165 New font engine.
29166
29167 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
29168 build system and fixed gfxterm.c to work with different sized fonts.
29169
29170 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
29171
29172 * configure: Re-generated.
29173
29174 * DISTLIST: Removed font/manager.c.
29175 Added font/font.c.
29176 Added font/font_cmd.c.
29177
29178 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
29179 compilation.
29180
29181 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
29182
29183 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
29184
29185 * kern/term.c: Changed users of grub_utf8_to_ucs4.
29186
29187 * normal/menu.c: Likewise.
29188
29189 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
29190 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
29191
29192 * include/grub/font.h: Replaced with new file.
29193
29194 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
29195 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
29196 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
29197 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
29198 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
29199 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
29200 fg_red, fg_green, fg_blue, fg_alpha.
29201 (grub_video_adapter): Removed blit_glyph.
29202 (grub_video_blit_glyph): Removed.
29203
29204 * font/manager.c: Removed file.
29205
29206 * font/font.c: New file.
29207
29208 * font/font_cmd.c: Likewise.
29209
29210 * video/video.c (grub_video_blit_glyph): Removed.
29211
29212 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
29213 (grub_video_vbe_map_rgba): Likewise.
29214 (grub_video_vbe_unmap_color_int): Likewise.
29215 (grub_video_vbe_blit_glyph): Removed.
29216 (grub_video_vbe_adapter): Removed blit_glyph.
29217
29218 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
29219 (get_pixel): Likewise.
29220 (set_pixel): Likewise.
29221
29222 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
29223
29224 * term/gfxterm.c: Adapted to new font engine.
29225
29226 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
29227
29228 * term/i386/pc/vga.c: Likewise.
29229
29230 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
29231
29232 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
29233
29234 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29235
29236 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29237
29238 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
29239
29240 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
29241
29242 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
29243
29244 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
29245
29246 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
29247
29248 * util/grub.d/00_header.in: Changed to use new loadfont command.
29249
29250 * util/grub-mkconfig_lib.in: Changed font extension.
29251
29252 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
29253
29254 * util/getroot.c (grub_util_get_grub_dev): Add support for
29255 /dev/md/dNNpNN style partitionable mdraid devices.
29256
29257 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
29258
29259 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
29260 at a time limit of the PXE TFTP API correctly.
29261 (grub_pxefs_close): Likewise.
29262
29263 2008-11-29 Robert Millan <rmh@aybabtu.com>
29264
29265 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
29266 grub_ata_device_initialize() calls.
29267
29268 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
29269
29270 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
29271 iteration failed.
29272 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
29273
29274 2008-11-28 Robert Millan <rmh@aybabtu.com>
29275
29276 Fix build on powerpc-ieee1275. Based on patch created by
29277 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
29278 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
29279 `kern/ieee1275/mmap.c'.
29280 * include/grub/powerpc/ieee1275/memory.h: New file.
29281
29282 Provide grub-install on coreboot.
29283 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
29284 (grub_install_SOURCES): New variable.
29285 * util/i386/pc/grub-install.in: Add a few condition checks to make it
29286 usable on coreboot.
29287
29288 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
29289
29290 * util/grub-fstest.c (grub_term_get_current_input): Change return type
29291 to `grub_term_input_t'.
29292 (grub_term_get_current_output): Change return type to
29293 `grub_term_output_t'.
29294
29295 2008-11-22 Robert Millan <rmh@aybabtu.com>
29296
29297 Fix breakage on coreboot due to declaration mismatch.
29298 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
29299 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
29300 grub_vga_text_cls().
29301
29302 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
29303 comments. Avoid copying one more byte than necessary (just in case).
29304
29305 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
29306 to 0x200000 (avoids trouble with some OFW implementations, and matches
29307 with the one in Yaboot).
29308 Reported by Manoel Abranches
29309
29310 2008-11-20 Robert Millan <rmh@aybabtu.com>
29311
29312 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
29313 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
29314
29315 * util/grub-mkconfig_lib.in (grub_warn): New function.
29316 (convert_system_path_to_grub_path): Use grub_warn() when issuing
29317 warnings, to obtain consistent formatting.
29318 * util/grub.d/00_header.in: Likewise.
29319 * util/update-grub_lib.in: Likewise.
29320
29321 * loader/i386/linux.c (allocate_pages): Fix a warning.
29322 Move comment text to `#error' stanza.
29323
29324 Harmonize ieee1275's grub_available_iterate() with the generic
29325 grub_machine_mmap_iterate() interface (fixes a recently-introduced
29326 build problem on i386-ieee1275):
29327 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
29328 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
29329 parameter `type'. Update all users of this function.
29330 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29331 `kern/ieee1275/mmap.c'.
29332 * kern/ieee1275/init.c
29333 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
29334 with ...
29335 (grub_machine_mmap_iterate): ... this.
29336 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
29337 return type to `grub_err_t'. Update all implementations of this
29338 function prototype.
29339 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
29340 Likewise.
29341
29342 Add `lsmmap' command (lists firmware-provided memory map):
29343 * commands/lsmmap.c: New file.
29344 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
29345 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
29346 variables.
29347 * conf/powerpc-ieee1275.rmk: Likewise.
29348 * conf/i386-coreboot.rmk: Likewise.
29349 * conf/i386-ieee1275.rmk: Likewise.
29350
29351 2008-11-19 Robert Millan <rmh@aybabtu.com>
29352
29353 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
29354 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
29355 constraints to initrd allocation (based on code from
29356 loader/i386/pc/linux.c). Without them, initrd was allocated too high
29357 for Linux to find it.
29358
29359 2008-11-14 Robert Millan <rmh@aybabtu.com>
29360
29361 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
29362 order to cope with duplicate slashes.
29363
29364 2008-11-14 Robert Millan <rmh@aybabtu.com>
29365
29366 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
29367 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
29368 don't want to mess with lower memory, because it is used in the Linux
29369 loader.
29370
29371 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
29372 an appropriate place in lower memory, between 0x10000 and 0x90000,
29373 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
29374 is in our heap (probably as a result of it being corrupted during
29375 decompression). Add #error instance with comment to explain why this
29376 loader isn't currently usable on PC/BIOS.
29377
29378 2008-11-14 Robert Millan <rmh@aybabtu.com>
29379
29380 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
29381 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
29382
29383 2008-11-12 Robert Millan <rmh@aybabtu.com>
29384
29385 Make loader/i386/linux.c buildable on i386-pc (although disabled).
29386
29387 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
29388 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
29389 from here ...
29390 * include/grub/i386/pc/memory.h: ... to here.
29391
29392 2008-11-12 Robert Millan <rmh@aybabtu.com>
29393
29394 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
29395 split).
29396
29397 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
29398 (grub_console_cur_color, grub_console_real_putchar)
29399 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29400 (grub_console_setcolorstate, grub_console_setcolor)
29401 (grub_console_getcolor): Move from here ...
29402 * include/grub/i386/vga_common.h: ... to here (new file).
29403
29404 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
29405 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
29406 `<grub/i386/io.h>'.
29407 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
29408 `<grub/i386/vga_common.h>'.
29409
29410 2008-11-12 Robert Millan <rmh@aybabtu.com>
29411
29412 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
29413 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
29414 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
29415 variables.
29416 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29417 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
29418
29419 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
29420 grub_console_init() with call to grub_vga_text_init().
29421 (grub_machine_fini): Replace call to
29422 grub_console_fini() with call to grub_vga_text_fini() and
29423 grub_at_keyboard_fini().
29424
29425 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
29426 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29427 (grub_console_setcolorstate, grub_console_setcolor)
29428 (grub_console_getcolor): New function prototypes.
29429
29430 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
29431 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
29432 (grub_vga_text_setcursor): Static-ize.
29433 (grub_vga_text_term): New structure.
29434 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
29435
29436 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
29437 (grub_console_cur_color, grub_console_standard_color)
29438 (grub_console_normal_color, grub_console_highlight_color)
29439 (map_char, grub_console_putchar, grub_console_getcharwidth)
29440 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
29441 (grub_console_getcolor): Move from here ...
29442 * term/i386/vga_common.c: ... to here (same function names).
29443
29444 2008-11-12 Robert Millan <rmh@aybabtu.com>
29445
29446 Use newly-added Multiboot support in coreboot.
29447
29448 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29449 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
29450
29451 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
29452 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
29453 (codestart): Store the MBI in `startup_multiboot_info' when we're
29454 being loaded using Multiboot.
29455
29456 * kern/i386/coreboot/init.c (grub_machine_init): Move
29457 grub_at_keyboard_init() call to beginning of function (useful for
29458 debugging). Call grub_machine_mmap_init() before attempting to use
29459 grub_machine_mmap_iterate().
29460 (grub_lower_mem, grub_upper_mem): Move from here ...
29461 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
29462 here (new file).
29463
29464 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
29465 function prototype.
29466
29467 2008-11-12 Robert Millan <rmh@aybabtu.com>
29468
29469 Fix a regression introduced by the at_keyboard.mod split. Because
29470 some terminals are default on some platforms and non-default on
29471 others, the first terminal being registered determines which is
29472 going to be default.
29473
29474 * kern/term.c (grub_term_register_input): If this is the first
29475 terminal being registered, set it as the current one.
29476 (grub_term_register_output): Likewise.
29477
29478 * term/efi/console.c (grub_console_init): Do not call
29479 grub_term_set_current_output() or grub_term_set_current_input().
29480 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
29481 * term/i386/pc/console.c (grub_console_init): Likewise.
29482 (grub_console_fini): Do not call grub_term_set_current_input()
29483 (but leave grub_term_set_current_output() to restore text mode).
29484
29485 2008-11-10 Robert Millan <rmh@aybabtu.com>
29486
29487 * util/grub.d/00_header.in: Add backward compatibility check for
29488 versions of terminal.mod that don't understand `terminal_input' or
29489 `terminal_output'.
29490
29491 2008-11-09 Robert Millan <rmh@aybabtu.com>
29492
29493 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
29494 `terminal_input' / `terminal_output', not `terminal'.
29495
29496 2008-11-08 Robert Millan <rmh@aybabtu.com>
29497
29498 * Makefile.in (include_DATA): Fix srcdir=. assumption.
29499 (DISTCLEANFILES): Add `build_env.mk'.
29500
29501 2008-11-08 Robert Millan <rmh@aybabtu.com>
29502
29503 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
29504 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29505 members. Update all users.
29506 * util/console.c (grub_ncurses_term): Split in ...
29507 (grub_ncurses_term_input): ... this, and ...
29508 (grub_ncurses_term_output): ... this. Update all users.
29509 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
29510
29511 2008-11-08 Robert Millan <rmh@aybabtu.com>
29512
29513 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
29514 (PKGDATA): Add $(pkgdata_SRCDIR).
29515 (pkglib_BUILDDIR): New variable.
29516 (pkgdata_SRCDIR): New variable.
29517 (build_env.mk): New target.
29518 (include_DATA): New variable.
29519 (install-local): Install $(include_DATA) files in $(includedir).
29520
29521 2008-11-07 Pavel Roskin <proski@gnu.org>
29522
29523 * gendistlist.sh: Use C locale for sorting to ensure consistent
29524 output on all systems.
29525
29526 * util/grub.d/00_header.in: Remove incorrect space before
29527 "serial".
29528
29529 2008-11-07 Robert Millan <rmh@aybabtu.com>
29530
29531 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
29532 per specification.
29533 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
29534 * loader/multiboot_loader.c (find_multi_boot2_header): New function
29535 (based on find_multi_boot1_header).
29536 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
29537 using find_multi_boot2_header(), and abort if neither Multiboot or
29538 Multiboot headers were found.
29539
29540 2008-11-07 Robert Millan <rmh@aybabtu.com>
29541
29542 Modularize at_keyboard.mod:
29543
29544 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
29545 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
29546 (at_keyboard_mod_LDFLAGS): New variables.
29547
29548 Actual terminal split:
29549
29550 * include/grub/term.h (struct grub_term): Split in ...
29551 (struct grub_term_input): ... this, and ...
29552 (struct grub_term_output): ... this. Update all users.
29553 (grub_term_set_current): Split in ...
29554 (grub_term_set_current_input): ... this, and ...
29555 (grub_term_set_current_output): ... this.
29556 (grub_term_get_current): Split in ...
29557 (grub_term_get_current_input): ... this, and ...
29558 (grub_term_get_current_output): ... this.
29559 (grub_term_register): Split in ...
29560 (grub_term_register_input): ... this, and ...
29561 (grub_term_register_output): ... this.
29562 (grub_term_unregister): Split in ...
29563 (grub_term_unregister_input): ... this, and ...
29564 (grub_term_unregister_output): ... this.
29565 (grub_term_iterate): Split in ...
29566 (grub_term_iterate_input): ... this, and ...
29567 (grub_term_iterate_output): ... this.
29568
29569 * kern/term.c (grub_term_list): Split in ...
29570 (grub_term_list_input): ... this, and ...
29571 (grub_term_list_output): ... this. Update all users.
29572 (grub_cur_term): Split in ...
29573 (grub_cur_term_input): ... this, and ...
29574 (grub_cur_term_output): ... this. Update all users.
29575 (grub_term_set_current): Split in ...
29576 (grub_term_set_current_input): ... this, and ...
29577 (grub_term_set_current_output): ... this.
29578 (grub_term_get_current): Split in ...
29579 (grub_term_get_current_input): ... this, and ...
29580 (grub_term_get_current_output): ... this.
29581 (grub_term_register): Split in ...
29582 (grub_term_register_input): ... this, and ...
29583 (grub_term_register_output): ... this.
29584 (grub_term_unregister): Split in ...
29585 (grub_term_unregister_input): ... this, and ...
29586 (grub_term_unregister_output): ... this.
29587 (grub_term_iterate): Split in ...
29588 (grub_term_iterate_input): ... this, and ...
29589 (grub_term_iterate_output): ... this.
29590
29591 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
29592 a check for input and one for output (and only attempt to get keys
29593 from user when input works).
29594
29595 * util/grub-probe.c (grub_term_get_current): Split in ...
29596 (grub_term_get_current_input): ... this, and ...
29597 (grub_term_get_current_output): ... this.
29598 * util/grub-fstest.c: Likewise.
29599 * util/i386/pc/grub-setup.c: Likewise.
29600 * util/grub-editenv.c: Likewise.
29601
29602 Portability adjustments:
29603
29604 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
29605 `term/i386/pc/at_keyboard.c'.
29606 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
29607 grub_keyboard_controller_init() (now handled by terminal .init).
29608 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
29609 grub_at_keyboard_init().
29610 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
29611 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
29612 at_keyboard.mod via input terminal interface).
29613 * include/grub/i386/coreboot/console.h: Convert into a stub for
29614 `<grub/i386/pc/console.h>'.
29615
29616 Migrate full terminals to new API:
29617
29618 * term/efi/console.c (grub_console_term): Split into ...
29619 (grub_console_term_input): ... this, and ...
29620 (grub_console_term_output): ... this. Update all users.
29621 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
29622 (grub_ofconsole_init): Split into ...
29623 (grub_ofconsole_init_input): ... this, and ...
29624 (grub_ofconsole_init_output): ... this.
29625 (grub_ofconsole_term): Split into ...
29626 (grub_ofconsole_term_input): ... this, and ...
29627 (grub_ofconsole_term_output): ... this. Update all users.
29628 * term/i386/pc/serial.c (grub_serial_term): Split into ...
29629 (grub_serial_term_input): ... this, and ...
29630 (grub_serial_term_output): ... this. Update all users.
29631 * term/i386/pc/console.c (grub_console_term): Split into ...
29632 (grub_console_term_input): ... this, and ...
29633 (grub_console_term_output): ... this. Update all users.
29634 (grub_console_term_input): Only enable it on PC/BIOS platform.
29635 (grub_console_init): Remove grub_keyboard_controller_init() call.
29636
29637 Migrate input terminals to new API:
29638
29639 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
29640 `i386' and `i386/pc' to enable build on x86_64 (this driver is
29641 i386-specific anyway).
29642 (grub_console_checkkey): Rename to ...
29643 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
29644 users.
29645 (grub_keyboard_controller_orig): New variable.
29646 (grub_console_getkey): Rename to ...
29647 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
29648 users.
29649 (grub_keyboard_controller_init): Static-ize. Save original
29650 controller value so that it can be restored ...
29651 (grub_keyboard_controller_fini): ... here (new function).
29652 (grub_at_keyboard_term): New structure.
29653 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
29654 functions.
29655
29656 Migrate output terminals to new API:
29657
29658 * term/i386/pc/vga.c (grub_vga_term): Change type to
29659 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29660 members. Update all users.
29661 * term/gfxterm.c (grub_video_term): Change type to
29662 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29663 members. Update all users.
29664 * include/grub/i386/pc/console.h (grub_console_checkkey)
29665 (grub_console_getkey): Do not export (no longer needed by gfxterm,
29666 etc).
29667
29668 Migrate `terminal' command and userland tools to new API:
29669
29670 * commands/terminal.c (grub_cmd_terminal): Split into ...
29671 (grub_cmd_terminal_input): ... this, and ...
29672 (grub_cmd_terminal_output): ... this.
29673 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
29674 `terminal_input' and `terminal_output'.
29675 * util/grub.d/00_header.in: Adjust `terminal' calls to new
29676 `terminal_input' / `terminal_output' API.
29677 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
29678 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
29679 provided ${GRUB_TERMINAL}, convert it).
29680
29681 2008-11-04 Robert Millan <rmh@aybabtu.com>
29682
29683 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
29684 for FreeBSD.
29685 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
29686
29687 2008-11-03 Bean <bean123ch@gmail.com>
29688
29689 * kern/elf.c (grub_elf32_load): Revert to previous code.
29690 (grub_elf64_load): Likewise.
29691
29692 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
29693
29694 2008-11-01 Robert Millan <rmh@aybabtu.com>
29695
29696 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
29697 (TARGET_CPPFLAGS): Likewise.
29698 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
29699
29700 2008-11-01 Carles Pina i Estany <carles@pina.cat>
29701
29702 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
29703
29704 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29705
29706 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
29707 addition of objects until the code is not going to be able to fail.
29708
29709 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29710
29711 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
29712 (add a missing NULL check, and correct them by moving the pointer
29713 operations after the actual check).
29714
29715 2008-10-29 Robert Millan <rmh@aybabtu.com>
29716
29717 * util/i386/pc/grub-install.in: Handle empty string as output from
29718 make_system_path_relative_to_its_root().
29719
29720 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
29721
29722 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
29723 circular metadata worst case scenario. If the metadata is circular
29724 then copy the wrap in place.
29725 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
29726 project lib/format_text/layout.h
29727 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
29728
29729 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29730
29731 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
29732
29733 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29734
29735 * util/update-grub_lib.in: Mention filename in warning message.
29736
29737 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29738
29739 * NEWS: Update for rename of update-grub to grub-mkconfig.
29740
29741 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29742
29743 * util/update-grub_lib.in: Copy to ...
29744 * util/grub-mkconfig_lib.in: ... this. Update all users.
29745 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
29746 * util/update-grub.in: Rename to ...
29747 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
29748 option. Add `--output' option to allow users to specify the generated
29749 configuration file. Default to stdout.
29750 (update_grub_dir): Rename to ...
29751 (grub_mkconfig_dir): ... this.
29752 (grub_cfg): Default to an empty string.
29753 * conf/common.rmk (update-grub): Rename to ...
29754 (grub-mkconfig): ... this.
29755 (update-grub_lib): Copy to ...
29756 (grub-mkconfig_lib): ... this.
29757 (update-grub_SCRIPTS): Copy to ...
29758 (grub-mkconfig_SCRIPTS): ... this. Update all users.
29759 (update-grub_DATA): Rename to ...
29760 (grub-mkconfig_DATA): ... this.
29761
29762 2008-09-28 Robert Millan <rmh@aybabtu.com>
29763
29764 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
29765 to `modified'. Add the real `created' field.
29766 (grub_iso9660_uuid): Use `modified' rather than `created' for
29767 constructing the UUID.
29768
29769 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
29770
29771 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
29772 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
29773
29774 2008-09-28 Bean <bean123ch@gmail.com>
29775
29776 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
29777 Thanks to Christian Franke for finding this bug.
29778
29779 2008-09-25 Robert Millan <rmh@aybabtu.com>
29780
29781 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
29782 instances of grub_util_get_disk_name() (see previous commit).
29783
29784 2008-09-25 Robert Millan <rmh@aybabtu.com>
29785
29786 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
29787 `util/i386/get_disk_name.c'.
29788 * conf/i386-efi.rmk: Likewise.
29789 * conf/x86_64-efi.rmk: Likewise.
29790 * conf/i386-coreboot.rmk: Likewise.
29791 * conf/i386-ieee1275.rmk: Likewise.
29792 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
29793 `util/ieee1275/get_disk_name.c'.
29794 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
29795 * util/ieee1275/get_disk_name.c: Remove file.
29796 * util/i386/get_disk_name.c: Remove file.
29797 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
29798 "hd%d" for device.map entries, rather than using
29799 grub_util_get_disk_name().
29800
29801 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29802
29803 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
29804 warning.
29805 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
29806
29807 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29808
29809 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
29810 Changed to 0x5100.
29811 (GRUB_TERM_PPAGE): Changed to 0x4900.
29812
29813 2008-09-24 Robert Millan <rmh@aybabtu.com>
29814
29815 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
29816 macros (they were i386-pc specific).
29817 * include/grub/sparc64/ieee1275/console.h: Likewise.
29818 * include/grub/efi/console.h: Likewise.
29819
29820 2008-09-22 Bean <bean123ch@gmail.com>
29821
29822 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
29823 resident and in attribute list.
29824
29825 * include/grub/ntfs.h (BMP_LEN): Removed.
29826
29827 2008-09-22 Bean <bean123ch@gmail.com>
29828
29829 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
29830 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
29831
29832 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
29833 error occurs, as grub_disk_open will call grub_disk_close, which will
29834 call p->close (scsi).
29835
29836 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29837
29838 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
29839 (AC_PREREQ): Bumped to 2.59.
29840 (AC_TRY_COMPILE): Replace obsolete macro with ...
29841 (AC_COMPILE_IFELSE): ... this.
29842 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
29843 (AC_LINK_IFELSE): ... this.
29844
29845 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29846
29847 * autogen.sh: Add a call to `gendistlist.sh'.
29848
29849 2008-09-19 Christian Franke <franke@computer.org>
29850
29851 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
29852 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
29853 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
29854 Export __enable_execute_stack() to modules.
29855 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
29856 New function.
29857
29858 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29859
29860 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
29861 Sort the list.
29862
29863 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29864
29865 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
29866 #include <grub/util/hostdisk.h>.
29867
29868 2008-09-08 Robert Millan <rmh@aybabtu.com>
29869
29870 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
29871 segments when their filesz is zero (grub_file_read() interprets
29872 zero-size as "read until EOF", which results in memory corruption).
29873 Use `lowest_segment' rather than 0 for calculating the current
29874 segment load address.
29875
29876 2008-09-08 Robert Millan <rmh@aybabtu.com>
29877
29878 * util/hostdisk.c (open_device): Replace a grub_util_info() call
29879 with grub_dprintf("hostdisk", ...), as it was so verbose that it
29880 clobbered useful information.
29881
29882 2008-09-08 Robert Millan <rmh@aybabtu.com>
29883
29884 * include/grub/util/biosdisk.h: Move to ...
29885 * include/grub/util/hostdisk.h: ... here. Update all users.
29886 * util/biosdisk.c: Move to ...
29887 * util/hostdisk.c: ... here. Update all users.
29888
29889 2008-09-07 Robert Millan <rmh@aybabtu.com>
29890
29891 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
29892 variables.
29893 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
29894 and length can be stored directly in the `mbi->mmap_addr' and
29895 `mbi->mmap_length' struct fields.
29896
29897 2008-09-07 Robert Millan <rmh@aybabtu.com>
29898
29899 * conf/i386.rmk: New file. Provides declaration for building
29900 `cpuid.mod'.
29901 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
29902 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
29903 variables.
29904 Include `conf/i386.mk'.
29905 * conf/i386-efi.rmk: Likewise.
29906 * conf/x86_64-efi.rmk: Likewise.
29907 * conf/i386-coreboot.rmk: Likewise.
29908 * conf/i386-ieee1275.rmk: Likewise.
29909
29910 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
29911
29912 Based on patch created by Colin D Bennett <colin@gibibit.com>.
29913 Adds optimization support for BGR based modes.
29914
29915 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
29916 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29917 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29918 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29919 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29920 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29921 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29922 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29923 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29924 (grub_video_i386_vbeblit_index_index): Likewise.
29925 (grub_video_i386_vbeblit_replace_directN): Added.
29926 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29927 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29928 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29929 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29930 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29931 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29932 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29933 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29934 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29935 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29936 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29937 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29938 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29939
29940 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
29941 (grub_video_i386_vbefill_R8G8B8): Likewise.
29942 (grub_video_i386_vbefill_index): Likewise.
29943 (grub_video_i386_vbefill_direct32): Added.
29944 (grub_video_i386_vbefill_direct24): Likewise.
29945 (grub_video_i386_vbefill_direct16): Likewise.
29946 (grub_video_i386_vbefill_direct8): Likewise.
29947
29948 * include/grub/video.h (grub_video_blit_format): Removed
29949 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
29950 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
29951 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
29952 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
29953 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
29954
29955 * video/video.c (grub_video_get_blit_format): Updated to use new
29956 blit formats. Added handling for 16 bit color modes.
29957
29958 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
29959 fillers.
29960 (common_blitter): Updated to use new blitters.
29961
29962 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
29963 Removed.
29964 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29965 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29966 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29967 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29968 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29969 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29970 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29971 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29972 (grub_video_i386_vbeblit_index_index): Likewise.
29973 (grub_video_i386_vbeblit_replace_directN): Added.
29974 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29975 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29976 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29977 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29978 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29979 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29980 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29981 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29982 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29983 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29984 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29985 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29986 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29987
29988 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
29989 (grub_video_i386_vbefill_R8G8B8): Likewise.
29990 (grub_video_i386_vbefill_index): Likewise.
29991 (grub_video_i386_vbefill_direct32): Added.
29992 (grub_video_i386_vbefill_direct24): Likewise.
29993 (grub_video_i386_vbefill_direct16): Likewise.
29994 (grub_video_i386_vbefill_direct8): Likewise.
29995
29996 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
29997 types.
29998
29999 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
30000 types.
30001
30002 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
30003 blitter types.
30004
30005 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
30006 types.
30007
30008 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
30009
30010 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
30011 RAID level 1.
30012
30013 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
30014
30015 * fs/iso9660.c (grub_iso9660_date): New structure.
30016 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
30017 (grub_iso9660_uuid): New function.
30018
30019 2008-09-05 Bean <bean123ch@gmail.com>
30020
30021 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
30022
30023 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
30024 insensitive bit for names in Win32 and Win32 & DOS namespace.
30025
30026 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
30027
30028 * include/grub/types.h (LONG_MAX): Likewise.
30029
30030 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
30031
30032 * util/getroot.c: Include <config.h>.
30033 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
30034 add support for /dev/md/N devices and handle LVM double dash escaping.
30035
30036 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
30037
30038 * config.guess: Update to latest version from config git.
30039 * config.sub: Likewise.
30040
30041 2008-09-03 Robert Millan <rmh@aybabtu.com>
30042
30043 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
30044 `disk->total_sectors'.
30045
30046 2008-09-01 Colin D Bennett <colin@gibibit.com>
30047
30048 * include/grub/normal.h: Fixed incorrect comment for
30049 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
30050
30051 2008-09-01 Colin D Bennett <colin@gibibit.com>
30052
30053 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
30054 values with defines.
30055
30056 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
30057 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
30058 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
30059 (GRUB_VBE_MODEATTR_COLOR): Likewise.
30060 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
30061 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
30062 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
30063 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
30064 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
30065 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
30066 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
30067 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
30068 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
30069 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
30070 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
30071 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
30072 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
30073 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
30074 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
30075
30076 2008-08-31 Robert Millan <rmh@aybabtu.com>
30077
30078 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
30079 declaration.
30080 (grub_multiboot): Fix a few warnings.
30081
30082 2008-08-31 Robert Millan <rmh@aybabtu.com>
30083
30084 * loader/i386/pc/multiboot.c: Update comment not to say that
30085 boot_device support is unimplemented.
30086
30087 2008-08-31 Robert Millan <rmh@aybabtu.com>
30088
30089 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
30090 or memory map support are unimplemented.
30091
30092 2008-08-31 Colin D Bennett <colin@gibibit.com>
30093
30094 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
30095
30096 2008-08-31 Colin D Bennett <colin@gibibit.com>
30097
30098 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
30099 total video memory in 'vbeinfo' output; show color format details for
30100 each video mode.
30101
30102 2008-08-30 Pavel Roskin <proski@gnu.org>
30103
30104 * util/genmoddep.c: Remove for real this time.
30105 * DISTLIST: Remove util/genmoddep.c.
30106
30107 2008-08-30 Robert Millan <rmh@aybabtu.com>
30108
30109 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
30110 as required by Multiboot spec (it was already 4-byte aligned, but
30111 only by chance).
30112
30113 2008-08-29 Pavel Roskin <proski@gnu.org>
30114
30115 * kern/powerpc/ieee1275/crt0.S: Rename to ...
30116 * kern/powerpc/ieee1275/startup.S: ... this.
30117 * conf/powerpc-ieee1275.rmk: Adjust for the above.
30118 * DISTLIST: Likewise.
30119
30120 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
30121 grub/cpu/kernel.h. Add start label for consistency with other
30122 platforms. Add grub_prefix immediately after start. Add jump
30123 to the code after grub_prefix.
30124 * include/grub/powerpc/kernel.h: Provide valid values for
30125 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
30126
30127 2008-08-29 Bean <bean123ch@gmail.com>
30128
30129 * configure.ac: Change host_os to cygwin for mingw.
30130 (asprintf): New check for function.
30131
30132 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
30133 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
30134
30135 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
30136 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
30137 sync, sleep and grub_util_get_disk_size for mingw.
30138
30139 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
30140 to get size in mingw.
30141 (open_device): Use flag O_BINARY if it's defined.
30142 (find_root_device): Add dummy code for mingw.
30143
30144 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
30145 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
30146 (get_scsi_disk_name): Return 0 for mingw.
30147
30148 * util/hostfs.c: #include <grub/util/misc.h>.
30149 (grub_hostfs_open): Use "rb" flag to open file, use
30150 grub_util_get_disk_size to get disk size for mingw.
30151
30152 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
30153 (asprintf): New function if HAVE_ASPRINTF is not set.
30154 (sync): New function for mingw.
30155 (sleep): Likewise.
30156 (grub_util_get_disk_size): Likewise.
30157
30158 2008-08-28 Pavel Roskin <proski@gnu.org>
30159
30160 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30161 kern/time.c.
30162
30163 2008-08-28 Robert Millan <rmh@aybabtu.com>
30164
30165 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
30166
30167 2008-08-28 Robert Millan <rmh@aybabtu.com>
30168
30169 Change find_grub_drive() syntax so it doesn't prevent it from
30170 detecting NULL names as errors.
30171
30172 * util/biosdisk.c (find_grub_drive): Move free slot search code
30173 from here ...
30174 (find_free_slot): ... to here.
30175 (read_device_map): Use find_free_slot() to search for free slots.
30176
30177 2008-08-27 Marco Gerards <marco@gnu.org>
30178
30179 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
30180 (scsi_mod_SOURCES): New variable.
30181 (scsi_mod_CFLAGS): Likewise
30182 (scsi_mod_LDFLAGS): Likewise.
30183
30184 * disk/scsi.c: New file.
30185
30186 * include/grub/scsi.h: Likewise.
30187
30188 * include/grub/scsicmd.h: Likewise.
30189
30190 * disk/ata.c: Include <grub/scsi.h>.
30191 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
30192 instead.
30193 (grub_ata_iterate): Skip ATAPI devices.
30194 (grub_ata_open): Only handle ATAPI devices.
30195 (struct grub_atapi_read): Removed.
30196 (grub_atapi_readsector): Likewise.
30197 (grub_ata_read): No longer handle ATAPI devices.
30198 (grub_ata_write): Likewise.
30199 (grub_atapi_iterate): New function.
30200 (grub_atapi_read): Likewise.
30201 (grub_atapi_write): Likewise.
30202 (grub_atapi_open): Likewise.
30203 (grub_atapi_close): Likewise.
30204 (grub_atapi_dev): New variable.
30205 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
30206 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
30207
30208 * include/grub/disk.h (enum grub_disk_dev_id): Add
30209 `GRUB_DISK_DEVICE_SCSI_ID'.
30210
30211 2008-08-26 Robert Millan <rmh@aybabtu.com>
30212
30213 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
30214 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
30215 descriptive.
30216
30217 2008-08-23 Bean <bean123ch@gmail.com>
30218
30219 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
30220 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30221 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
30222 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
30223 dm_nv.mod.
30224 (raid5rec_mod_SOURCES): New macro.
30225 (raid5rec_mod_CFLAGS): Likewise.
30226 (raid5rec_mod_LDFLAGS): Likewise.
30227 (raid6rec_mod_SOURCES): Likewise.
30228 (raid6rec_mod_CFLAGS): Likewise.
30229 (raid6rec_mod_LDFLAGS): Likewise.
30230 (mdraid_mod_SOURCES): Likewise.
30231 (mdraid_mod_CFLAGS): Likewise.
30232 (mdraid_mod_LDFLAGS): Likewise.
30233 (dm_nv_mod_SOURCES): Likewise.
30234 (dm_nv_mod_CFLAGS): Likewise.
30235 (dm_nv_mod_LDFLAGS): Likewise.
30236
30237 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
30238 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30239 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30240
30241 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
30242 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30243
30244 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30245
30246 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30247
30248 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30249
30250 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30251
30252 * disk/raid5_recover.c: New file.
30253
30254 * disk/raid6_recover.c: Likewise.
30255
30256 * disk/mdraid_linux.c: Likewise.
30257
30258 * disk/dmraid_nvidia.c: Likewise.
30259
30260 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
30261 ULONG_MAX.
30262
30263 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
30264 calculate the size of raid device.
30265 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
30266 different layout of raid5.
30267 (grub_raid_scan_device): Remove code specific to mdraid.
30268 (grub_raid_list): New variable.
30269 (free_array): New function.
30270 (grub_raid_register): Likewise.
30271 (grub_raid_unregister): Likewise.
30272 (grub_raid_rescan): Likewise.
30273 (GRUB_MOD_INIT): Don't iterate device here.
30274 (GRUB_MOD_FINI): Use free_array to release resource.
30275
30276 * include/grub/raid.h: Remove macro and structure specific to mdraid.
30277 (grub_raid5_recover_func_t): New function variable type.
30278 (grub_raid6_recover_func_t): Likewise.
30279 (grub_raid5_recover_func): New variable.
30280 (grub_raid6_recover_func): Likewise.
30281 (grub_raid_register): New function.
30282 (grub_raid_unregister): Likewise.
30283 (grub_raid_rescan): Likewise.
30284 (grub_raid_block_xor): Likewise.
30285
30286 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
30287 (CMD_CRC): New macro.
30288 (part): Removed.
30289 (read_file): Handle device as well as file.
30290 (cmd_crc): New function.
30291 (fstest): Handle multiple disks.
30292 (options): Remove part, raw and long, add root and diskcount.
30293 (usage): Add crc, remove -p, -r, -l, add -r and -c.
30294 (main): Find the first non option entry and ignore subsequent options,
30295 add handling for the new options, support multiple disks.
30296
30297 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
30298
30299 2008-08-23 Bean <bean123ch@gmail.com>
30300
30301 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
30302
30303 * genfslist.sh: Ignore kernel.mod.
30304
30305 * genpartmaplist.sh: Likewise.
30306
30307 2008-08-23 Robert Millan <rmh@aybabtu.com>
30308
30309 * util/getroot.c (find_root_device): Skip anything that starts with
30310 a dot, not just directories. This avoids things like /dev/.tmp.md0.
30311
30312 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
30313
30314 * util/update-grub.in (GRUB_GFXMODE): Export variable.
30315 * util/grub.d/00_header.in: Allow the administrator to change default
30316 gfxmode via ${GRUB_GFXMODE}.
30317
30318 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
30319
30320 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
30321
30322 2008-08-21 Robert Millan <rmh@aybabtu.com>
30323
30324 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
30325 loader.
30326 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
30327 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
30328
30329 2008-08-20 Carles Pina i Estany <carles@pina.cat>
30330
30331 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
30332 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
30333
30334 2008-08-19 Robert Millan <rmh@aybabtu.com>
30335
30336 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
30337 (struct grub_virtual_screen): Remove `cursor_color'.
30338 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
30339 initialization.
30340 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
30341
30342 2008-08-18 Robert Millan <rmh@aybabtu.com>
30343
30344 Unify (identical) linux_normal.c files.
30345 * loader/i386/efi/linux_normal.c: Move from here ...
30346 * loader/linux_normal.c: ... to here. Update all users.
30347 * loader/i386/pc/linux_normal.c: Delete. Update all users.
30348 * loader/i386/ieee1275/linux_normal.c: Likewise.
30349
30350 2008-08-18 Robert Millan <rmh@aybabtu.com>
30351
30352 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
30353 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
30354 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
30355 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
30356 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
30357 New macros.
30358 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
30359 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
30360 (GRUB_LINUX_CL_END_OFFSET): ... to here.
30361 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
30362 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
30363 (GRUB_EFI_CL_END_OFFSET): Rename to ...
30364 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
30365 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
30366 Initialize `params->video_cursor_x' and `params->video_cursor_y'
30367 portably using grub_getxy().
30368 Replace `-EFI' with `-bzImage' in boot message.
30369
30370 2008-08-17 Robert Millan <rmh@aybabtu.com>
30371
30372 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
30373
30374 2008-08-17 Robert Millan <rmh@aybabtu.com>
30375
30376 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
30377
30378 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
30379 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
30380 (grub_machine_mmap_iterate): New function declaration.
30381 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
30382 structure.
30383 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
30384 macros.
30385
30386 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
30387 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
30388 Move e820 parsing from here ...
30389 * kern/i386/pc/mmap.c: New file.
30390 (grub_machine_mmap_iterate): ... to here.
30391
30392 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
30393 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
30394 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
30395 (grub_available_iterate): Redeclare to return `void', and redeclare
30396 its hook to use grub_uint64_t as addr and size parameters, and rename
30397 to ...
30398 (grub_machine_mmap_iterate): ... this. Update all users.
30399
30400 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
30401 to make it more readable. Rename to ...
30402 (grub_machine_mmap_iterate): ... this.
30403
30404 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
30405 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
30406 (grub_multiboot): Allocate an extra region after the payload, and fill
30407 it with a Multiboot memory map. Adjust a.out loader to calculate size
30408 with the extra space.
30409 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
30410 with the extra space.
30411
30412 2008-08-17 Carles Pina i Estany <carles@pina.cat>
30413
30414 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
30415
30416 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
30417
30418 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
30419 mdate-sh to the list `find' searches for.
30420 * DISTLIST: Regenerated.
30421
30422 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
30423
30424 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
30425 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
30426 genmoddep.awk, gensymlist.sh.in.
30427 (DISTDIRS): Add bus, docs, hook, lib.
30428 * DISTLIST: Regenerated.
30429 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
30430
30431 2008-08-16 Robert Millan <rmh@aybabtu.com>
30432
30433 * disk/raid.c (grub_raid_init): Handle/report errors set by
30434 grub_device_iterate().
30435 * disk/lvm.c (grub_lvm_init): Likewise.
30436
30437 2008-08-15 Bean <bean123ch@gmail.com>
30438
30439 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30440 and datehook.mod.
30441 (datetime_mod_SOURCES): New macro.
30442 (datetime_mod_CFLAGS): Likewise.
30443 (datetime_mod_LDFLAGS): Likewise.
30444 (date_mod_SOURCES): Likewise.
30445 (date_mod_CFLAGS): Likewise.
30446 (date_mod_LDFLAGS): Likewise.
30447 (datehook_mod_SOURCES): Likewise.
30448 (datehook_mod_CFLAGS): Likewise.
30449 (datehook_mod_LDFLAGS): Likewise.
30450
30451 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30452 and datehook.mod.
30453 (datetime_mod_SOURCES): New macro.
30454 (datetime_mod_CFLAGS): Likewise.
30455 (datetime_mod_LDFLAGS): Likewise.
30456 (date_mod_SOURCES): Likewise.
30457 (date_mod_CFLAGS): Likewise.
30458 (date_mod_LDFLAGS): Likewise.
30459 (datehook_mod_SOURCES): Likewise.
30460 (datehook_mod_CFLAGS): Likewise.
30461 (datehook_mod_LDFLAGS): Likewise.
30462
30463 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30464 and datehook.mod.
30465 (datetime_mod_SOURCES): New macro.
30466 (datetime_mod_CFLAGS): Likewise.
30467 (datetime_mod_LDFLAGS): Likewise.
30468 (date_mod_SOURCES): Likewise.
30469 (date_mod_CFLAGS): Likewise.
30470 (date_mod_LDFLAGS): Likewise.
30471 (datehook_mod_SOURCES): Likewise.
30472 (datehook_mod_CFLAGS): Likewise.
30473 (datehook_mod_LDFLAGS): Likewise.
30474
30475 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30476 and datehook.mod.
30477 (datetime_mod_SOURCES): New macro.
30478 (datetime_mod_CFLAGS): Likewise.
30479 (datetime_mod_LDFLAGS): Likewise.
30480 (date_mod_SOURCES): Likewise.
30481 (date_mod_CFLAGS): Likewise.
30482 (date_mod_LDFLAGS): Likewise.
30483 (datehook_mod_SOURCES): Likewise.
30484 (datehook_mod_CFLAGS): Likewise.
30485 (datehook_mod_LDFLAGS): Likewise.
30486
30487 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30488 and datehook.mod.
30489 (datetime_mod_SOURCES): New macro.
30490 (datetime_mod_CFLAGS): Likewise.
30491 (datetime_mod_LDFLAGS): Likewise.
30492 (date_mod_SOURCES): Likewise.
30493 (date_mod_CFLAGS): Likewise.
30494 (date_mod_LDFLAGS): Likewise.
30495 (datehook_mod_SOURCES): Likewise.
30496 (datehook_mod_CFLAGS): Likewise.
30497 (datehook_mod_LDFLAGS): Likewise.
30498
30499 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
30500
30501 * commands/date.c: New file.
30502
30503 * hook/datehook.c: Likewise.
30504
30505 * include/grub/lib/datetime.h: Likewise.
30506
30507 * include/grub/i386/cmos.h: Likewise.
30508
30509 * lib/datetime.c: Likewise.
30510
30511 * lib/i386/datetime.c: Likewise.
30512
30513 * lib/efi/datetime.c: Likewise.
30514
30515 2008-08-14 Robert Millan <rmh@aybabtu.com>
30516
30517 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
30518 (grub_mkelfimage_SOURCES): New variable.
30519 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
30520
30521 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
30522 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
30523 * conf/powerpc-ieee1275.rmk: Likewise.
30524 * conf/i386-ieee1275.rmk: Likewise.
30525
30526 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
30527 * kern/i386/coreboot/init.c: Likewise.
30528
30529 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
30530 with `<grub/cpu/kernel.h>'.
30531 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
30532 to ...
30533 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
30534 * kern/i386/coreboot/startup.S: Likewise.
30535
30536 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
30537 (GRUB_MOD_GAP): Remove.
30538 * include/grub/powerpc/kernel.h: New file.
30539 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
30540 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30541 * include/grub/i386/kernel.h: New file.
30542 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
30543 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
30544 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30545
30546 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
30547 `grub-mkelfimage'.
30548 Use --directory when invoking grub_mkimage.
30549
30550 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
30551 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
30552 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
30553 and GRUB_KERNEL_CPU_PREFIX.
30554
30555 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
30556
30557 * include/grub/err.h (grub_err_printf): New function prototype.
30558 * util/misc.c (grub_err_printf): New function.
30559 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
30560 grub_printf.
30561 * kern/err.c (grub_print_error): Use grub_err_printf.
30562
30563 2008-08-13 Robert Millan <rmh@aybabtu.com>
30564
30565 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
30566
30567 2008-08-13 Robert Millan <rmh@aybabtu.com>
30568
30569 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
30570 boot entry.
30571
30572 2008-08-12 Robert Millan <rmh@aybabtu.com>
30573
30574 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
30575 of the relocation code from here ...
30576 (grub_multiboot): ... to here.
30577 (forward_relocator, backward_relocator): Move from here ...
30578 * kern/i386/loader.S (grub_multiboot_forward_relocator)
30579 (grub_multiboot_backward_relocator): ... to here.
30580 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
30581 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
30582 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
30583 (grub_multiboot_forward_relocator_end)
30584 (grub_multiboot_backward_relocator)
30585 (grub_multiboot_backward_relocator_end): New variables.
30586
30587 2008-08-12 Bean <bean123ch@gmail.com>
30588
30589 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
30590
30591 2008-08-11 Robert Millan <rmh@aybabtu.com>
30592
30593 * kern/i386/linuxbios/startup.S: Move from here ...
30594 * kern/i386/coreboot/startup.S: ... to here.
30595
30596 * kern/i386/linuxbios/init.c: Move from here ...
30597 * kern/i386/coreboot/init.c: ... to here.
30598
30599 * kern/i386/linuxbios/table.c: Move from here ...
30600 * kern/i386/coreboot/mmap.c: ... to here.
30601
30602 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
30603
30604 2008-08-11 Robert Millan <rmh@aybabtu.com>
30605
30606 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
30607 errors. Leave it to the upper layer to handle them.
30608
30609 2008-08-09 Christian Franke <franke@computer.org>
30610
30611 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
30612 * conf/common.rmk: Install `grub-pe2elf' only if requested.
30613 Install `grub.d/10_windows' only on Cygwin.
30614 * configure.ac: Add subst of `target_os'.
30615 Check `target_os' also before setting TARGET_OBJ2ELF.
30616 Add `--enable-grub-pe2elf'.
30617
30618 2008-08-08 Robert Millan <rmh@aybabtu.com>
30619
30620 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30621 (grub_last_time): Change type to grub_uint64_t.
30622 (grub_disk_open): Migrate code from to using grub_get_time_ms().
30623 (grub_disk_close): Likewise.
30624
30625 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30626 (run_menu): Migrate code from to using grub_get_time_ms().
30627
30628 * util/misc.c (grub_get_time_ms): New function.
30629
30630 2008-08-08 Marco Gerards <marco@gnu.org>
30631
30632 * disk/ata.c (grub_ata_regget): Change return type to
30633 `grub_uint8_t'.
30634 (grub_ata_regget2): Likewise.
30635 (grub_ata_wait_status): New function.
30636 (grub_ata_wait_busy): Removed function, updated all users to use
30637 `grub_ata_wait_status'.
30638 (grub_ata_wait_drq): Likewise.
30639 (grub_ata_cmd): New function.
30640 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
30641 error handling.
30642 (grub_ata_pio_write): Add error handling.
30643 (grub_atapi_identify): Likewise.
30644 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
30645 handling.
30646 (grub_ata_identify): Use `grub_ata_cmd' and improve error
30647 handling. Actually use the detected registers. Reorder the
30648 detection logic such that it is easier to read.
30649 (grub_ata_pciinit): Do not assign the same ID to each controller.
30650 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
30651 handling.
30652 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
30653
30654 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
30655
30656 2008-08-08 Marco Gerards <marco@gnu.org>
30657
30658 * NEWS: Update.
30659
30660 2008-08-07 Bean <bean123ch@gmail.com>
30661
30662 * include/grub/x86_64/pci.h: New file.
30663
30664 2008-08-07 Christian Franke <franke@computer.org>
30665
30666 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
30667 (TIMER2_GATE): Likewise.
30668 (grub_pit_wait): Add enable/disable of the timer2 gate
30669 bit of port 0x61. This fixes a possible infinite loop.
30670
30671 2008-08-07 Bean <bean123ch@gmail.com>
30672
30673 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
30674 kern/i386/tsc.c and kern/i386/pit.c.
30675
30676 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
30677 x86_64 platform.
30678
30679 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
30680 <grub/i386/tsc.h>.
30681
30682 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
30683
30684 2008-08-07 Bean <bean123ch@gmail.com>
30685
30686 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
30687
30688 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
30689
30690 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
30691 multiple inclusion. Add #include <grub/types.h>.
30692
30693 2008-08-06 Christian Franke <franke@computer.org>
30694
30695 * conf/common.rmk: Build and install `10_windows'.
30696 * util/grub.d/10_windows.in: New script.
30697
30698 2008-08-06 Pavel Roskin <proski@gnu.org>
30699
30700 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
30701
30702 2008-08-06 Robert Millan <rmh@aybabtu.com>
30703
30704 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
30705 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
30706
30707 2008-08-06 Bean <bean123ch@gmail.com>
30708
30709 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
30710 (grub_pxefs_fs_int): Remove dummy definition.
30711 (grub_pxefs_open): Use data->block_size to store the current block
30712 size setting.
30713 (grub_pxefs_read): Use block size stored in data->block_size. As the
30714 value of grub_pxe_blksize can be changed after the file is opened.
30715
30716 2008-08-06 Bean <bean123ch@gmail.com>
30717
30718 * fs/i386/pc/pxe.c (curr_file): new variable.
30719 (grub_pxefs_open): Simply the handling of pxe file system. Don't
30720 require the dummy internal file system anymore.
30721 (grub_pxefs_read): Removed.
30722 (grub_pxefs_close): Likewise.
30723 (grub_pxefs_fs_int): Likewise.
30724 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
30725 connection when we switch file.
30726 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
30727
30728 2008-08-06 Robert Millan <rmh@aybabtu.com>
30729
30730 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
30731 `halt.mod'.
30732 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
30733 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
30734
30735 * kern/i386/halt.c: New file.
30736 * kern/i386/reboot.c: Likewise.
30737 * include/grub/i386/reboot.h: Likewise.
30738 * include/grub/i386/halt.h: Likewise.
30739
30740 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
30741 Include `<grub/cpu/halt.h>'.
30742 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
30743 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
30744
30745 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
30746 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
30747 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
30748 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
30749 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
30750 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
30751 from here ...
30752 * include/grub/i386/at_keyboard.h: ... to here.
30753
30754 2008-08-05 Robert Millan <rmh@aybabtu.com>
30755
30756 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
30757 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
30758 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
30759 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30760 `kern/generic/millisleep.c'.
30761
30762 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
30763 instead of grub_get_rtc().
30764 (grub_tsc_init): Initialize `tsc_boot_time'.
30765
30766 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
30767 (grub_machine_init): Use grub_tsc_init() rather than
30768 installing an RTC-based handler via grub_install_get_time_ms().
30769
30770 * kern/i386/pit.c: New file.
30771 * include/grub/i386/pit.h: Likewise.
30772
30773 2008-08-05 Bean <bean123ch@gmail.com>
30774
30775 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
30776
30777 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
30778 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
30779 (pxe_mod_SOURCES): New macro.
30780 (pxe_mod_CFLAGS): Likewise.
30781 (pxe_mod_LDFLAGS): Likewise.
30782 (pxecmd_mod_SOURCES): Likewise.
30783 (pxecmd_mod_CFLAGS): Likewise.
30784 (pxecmd_mod_LDFLAGS): Likewise.
30785
30786 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
30787 (grub_pxe_call): Likewise.
30788
30789 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
30790
30791 * commands/i386/pc/pxecmd.c: New file.
30792
30793 * fs/i386/pc/pxe.c: Likewise.
30794
30795 * include/grub/i386/pc/pxe.h: Likewise.
30796
30797 2008-08-05 Bean <bean123ch@gmail.com>
30798
30799 * util/console.c (grub_console_cur_color): New variable.
30800 (grub_console_standard_color): Likewise.
30801 (grub_console_normal_color): Likewise.
30802 (grub_console_highlight_color): Likewise.
30803 (color_map): Likewise.
30804 (use_color): Likewise.
30805 (NUM_COLORS): New macro.
30806 (grub_ncurses_setcolorstate): Handle color properly.
30807 (grub_ncurses_setcolor): Don't change color here, just remember the
30808 settings, color will be set in grub_ncurses_setcolorstate.
30809 (grub_ncurses_getcolor): New function.
30810 (grub_ncurses_init): Initialize color pairs.
30811 (grub_ncurses_term): New member grub_ncurses_getcolor.
30812
30813 2008-08-05 Colin D Bennett <colin@gibibit.com>
30814
30815 High resolution timer support. Implemented for x86 CPUs using TSC.
30816 Extracted generic grub_millisleep() so it's linked in only as needed.
30817 This requires a Pentium compatible CPU; if the RDTSC instruction is
30818 not supported, then it falls back on the generic grub_get_time_ms()
30819 implementation that uses the machine's RTC.
30820
30821 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
30822 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30823 `kern/generic/millisleep.c'.
30824
30825 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
30826 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
30827
30828 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
30829 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
30830
30831 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30832
30833 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30834 `kern/generic/millisleep.c'.
30835
30836 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30837
30838 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
30839
30840 * kern/generic/rtc_get_time_ms.c: New file.
30841
30842 * kern/generic/millisleep.c: New file.
30843
30844 * kern/misc.c: Don't include
30845 <kern/time.h> anymore.
30846 (grub_millisleep_generic): Removed.
30847
30848 * commands/sleep.c (grub_interruptible_millisleep): Uses
30849 grub_get_time_ms() instead of grub_get_rtc().
30850
30851 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
30852 function.
30853 (grub_cpu_is_cpuid_supported): New inline function.
30854 (grub_cpu_is_tsc_supported): New inline function.
30855 (grub_tsc_init): New function prototype.
30856 (grub_tsc_get_time_ms): New function prototype.
30857
30858 * kern/i386/tsc.c (grub_get_time_ms): New file.
30859
30860 * include/grub/time.h: Include <grub/types.h.
30861 (grub_millisleep_generic): Removed.
30862 (grub_get_time_ms): New prototype.
30863 (grub_install_get_time_ms): New prototype.
30864 (grub_rtc_get_time_ms): New prototype.
30865
30866 * kern/time.c (grub_get_time_ms): New function.
30867 (grub_install_get_time_ms): New function.
30868
30869 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
30870 <grub/time.h> anymore.
30871 (grub_millisleep): Removed.
30872 (grub_machine_init): Call grub_tsc_init.
30873
30874 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
30875 get_time_ms() implementation.
30876
30877 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
30878 (ieee1275_get_time_ms): New function.
30879 (grub_machine_init): Install get_time_ms() implementation.
30880
30881 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
30882 (grub_machine_init): Call grub_tsc_init().
30883 (grub_millisleep): Removed.
30884
30885 * kern/ieee1275/init.c (grub_millisleep): Removed.
30886 (grub_machine_init): Install ieee1275_get_time_ms()
30887 implementation.
30888 (ieee1275_get_time_ms): New function.
30889 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
30890 real work.
30891
30892 2008-08-05 Marco Gerards <marco@gnu.org>
30893
30894 * disk/ata.c: Include <grub/pci.h>.
30895 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
30896 (grub_ata_initialize): Rewritten.
30897 (grub_ata_device_initialize): New function.
30898
30899 2008-08-04 Pavel Roskin <proski@gnu.org>
30900
30901 * kern/main.c: Include grub/mm.h.
30902
30903 2008-08-04 Robert Millan <rmh@aybabtu.com>
30904
30905 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
30906 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
30907 corruption problem).
30908
30909 2008-08-04 Robert Millan <rmh@aybabtu.com>
30910
30911 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
30912 warnings introduced in my last commit.
30913
30914 2008-08-03 Robert Millan <rmh@aybabtu.com>
30915
30916 Make PCI available on all i386 architectures.
30917
30918 * include/grub/i386/pc/pci.h: Move from here ...
30919 * include/grub/i386/pci.h: ... to here.
30920
30921 * include/grub/i386/pc/pci.h: Remove.
30922 * include/grub/i386/efi/pci.h: Remove.
30923 * include/grub/x86_64/efi/pci.h: Remove.
30924
30925 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
30926 `<grub/cpu/pci.h>'.
30927
30928 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
30929 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
30930 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
30931
30932 * conf/i386-ieee1275.rmk: Likewise.
30933
30934 2008-08-03 Robert Millan <rmh@aybabtu.com>
30935
30936 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
30937 (grub_console_setcursor): Make it possible to set cursor off.
30938
30939 2008-08-03 Robert Millan <rmh@aybabtu.com>
30940
30941 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
30942 of modules instead of assuming which platform provides what.
30943 * util/update-grub.in: Likewise.
30944
30945 2008-08-03 Robert Millan <rmh@aybabtu.com>
30946
30947 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
30948 instead of `grub_install_dos_part' to determine whether a drive needs
30949 to be prepended to prefix (`grub_install_dos_part' is not reliable,
30950 because it can be overridden when loading GRUB via Multiboot).
30951
30952 2008-08-02 Robert Millan <rmh@aybabtu.com>
30953
30954 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
30955
30956 2008-08-02 Robert Millan <rmh@aybabtu.com>
30957
30958 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
30959 of informational grub_dprintf() calls.
30960
30961 2008-08-02 Robert Millan <rmh@aybabtu.com>
30962
30963 * disk/memdisk.c (memdisk_size): Don't initialize.
30964 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
30965
30966 * include/grub/i386/pc/kernel.h
30967 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
30968 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
30969 (grub_memdisk_image_size, grub_arch_memdisk_addr)
30970 (grub_arch_memdisk_size): Remove.
30971
30972 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
30973 field (was only used to transfer a constant). Add `type' field to
30974 support multiple module types.
30975 (grub_module_iterate): New function.
30976
30977 * kern/device.c (grub_device_open): Do not hide error messages
30978 when grub_disk_open() fails. Use grub_print_error() instead.
30979
30980 * kern/i386/pc/init.c (grub_arch_modules_addr)
30981 (grub_arch_memdisk_size): Remove functions.
30982 (grub_arch_modules_addr): Return the module address in high memory
30983 (now that it isn't copied anymore).
30984
30985 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
30986 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
30987 decompression routine (grub_total_module_size already includes that
30988 now). Don't copy modules back to low memory.
30989
30990 * kern/main.c: Include `<grub/mm.h>'.
30991 (grub_load_modules): Split out (and use) ...
30992 (grub_module_iterate): ... this function, which iterates through
30993 module objects and runs a hook.
30994 Comment out grub_mm_init_region() call, as it would cause non-ELF
30995 modules to be overwritten.
30996
30997 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
30998 the memdisk image in its own region, make it part of the module list.
30999 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
31000 (main): Parse --memdisk|-m option, and pass user-provided path as
31001 parameter to generate_image().
31002 (add_segments): Pass `memdisk_path' down to load_modules().
31003 (load_modules): Embed memdisk image in module section when requested.
31004 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
31005 `header.type' instead of `header.offset'.
31006
31007 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
31008 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
31009 (memdisk_mod_LDFLAGS): New variables.
31010 * conf/i386-coreboot.rmk: Likewise.
31011 * conf/i386-ieee1275.rmk: Likewise.
31012
31013 2008-08-02 Robert Millan <rmh@aybabtu.com>
31014
31015 * loader/i386/pc/multiboot.c (playground, forward_relocator)
31016 (backward_relocator): New variables. Used to allocate and relocate
31017 the payload, respectively.
31018 (grub_multiboot_load_elf32): Load into heap instead of requested
31019 address, install the appropriate relocator code in each bound of
31020 the payload, and set the entry point such that
31021 grub_multiboot_real_boot() will jump to one of them.
31022
31023 * kern/i386/loader.S (grub_multiboot_payload_size)
31024 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
31025 (grub_multiboot_payload_entry_offset): New variables.
31026 (grub_multiboot_real_boot): Set cpu context to what the relocator
31027 expects, and jump to the relocator instead of the payload.
31028
31029 * include/grub/i386/loader.h (grub_multiboot_payload_size)
31030 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
31031 (grub_multiboot_payload_entry_offset): Export.
31032
31033 2008-08-01 Bean <bean123ch@gmail.com>
31034
31035 * normal/menu_entry.c (editor_getline): Don't return the original
31036 string as result, as it will be released by lexer once it has done
31037 using it.
31038
31039 2008-08-01 Robert Millan <rmh@aybabtu.com>
31040
31041 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
31042 within menuentries, not before them.
31043 util/grub.d/10_hurd.in: Likewise.
31044
31045 2008-08-01 Bean <bean123ch@gmail.com>
31046
31047 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
31048 (bufio_mod_SOURCES): New macro.
31049 (bufio_mod_CFLAGS): Likewise.
31050 (bufio_mod_LDFLAGS): Likewise.
31051
31052 * include/grub/bufio.h: New file.
31053
31054 * io/bufio.c: Likewise.
31055
31056 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
31057 (grub_video_reader_png): Use grub_buffile_open to open file.
31058
31059 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
31060 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
31061
31062 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
31063 (grub_video_reader_tga): Use grub_buffile_open to open file.
31064
31065 * font/manager.c: Include <grub/bufio.h>.
31066 (add_font): Use grub_buffile_open to open file.
31067
31068 2008-07-31 Robert Millan <rmh@aybabtu.com>
31069
31070 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
31071 ELF segments, use a macro for arbitrarily accessing any of them instead
31072 of preparing a pointer that allows access to one at a time.
31073 (grub_multiboot_load_elf64): Likewise.
31074
31075 2008-07-31 Bean <bean123ch@gmail.com>
31076
31077 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
31078 GRUB_KERNEL_MACHINE_DATA_END.
31079
31080 2008-07-30 Robert Millan <rmh@aybabtu.com>
31081
31082 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
31083 Increase from 0x50 to 0x60.
31084 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
31085 use UUIDs to identify the root drive for them. If that's not
31086 possible, abort.
31087 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
31088 check, for cross-disk installs.
31089
31090 2008-07-30 Robert Millan <rmh@aybabtu.com>
31091
31092 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
31093 is non-empty, use it to set the `prefix' environment variable instead
31094 of the usual approach.
31095 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
31096 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
31097 environment variable instead of dummy make_install_device().
31098
31099 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
31100 (start): Insert a data section, with `grub_prefix' variable.
31101 * kern/i386/linuxbios/startup.S: Likewise.
31102
31103 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
31104 New variable reference.
31105 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
31106 New macro. Defines offset of `grub_prefix' within startup.S (relative
31107 to `start').
31108 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
31109 section within startup.S (relative to `start').
31110 * include/grub/i386/coreboot/kernel.h: Likewise.
31111
31112 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
31113 Overwrite grub_prefix with its contents, at the beginning of the
31114 first segment.
31115 (main): Understand -p|--prefix.
31116
31117 2008-07-30 Robert Millan <rmh@aybabtu.com>
31118
31119 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
31120
31121 2008-07-30 Robert Millan <rmh@aybabtu.com>
31122
31123 * term/i386/pc/vga_text.c (grub_console_cls): Use
31124 grub_console_gotoxy() to go back to beginning of the screen.
31125 Found by Patrick Georgi <patrick.georgi@coresystems.de>
31126
31127 2008-07-29 Christian Franke <franke@computer.org>
31128
31129 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
31130 Add conversion of emulated mount points on Cygwin.
31131
31132 2008-07-29 Christian Franke <franke@computer.org>
31133
31134 * util/update-grub.in: Add a check for admin
31135 group on Cygwin.
31136 Remove old `grub.cfg.new' before creation.
31137 Add `-f' to `mv' to handle the different filesystem
31138 semantics of Windows.
31139
31140 2008-07-29 Bean <bean123ch@gmail.com>
31141
31142 * normal/main.c (get_line): Fix buffer overflow bug.
31143
31144 2008-07-28 Robert Millan <rmh@aybabtu.com>
31145
31146 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
31147 (struct grub_apple_header): New struct. Describes the layout of
31148 the partmap header.
31149 (apple_partition_map_iterate): Check the header magic as well as the
31150 partition magic (which was already being checked).
31151
31152 2008-07-28 Pavel Roskin <proski@gnu.org>
31153
31154 * genmk.rb: Add a warning to the beginning of the output that
31155 it's a generated file and should not be edited.
31156
31157 2008-07-28 Robert Millan <rmh@aybabtu.com>
31158
31159 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
31160 with the same number are found, just use issue a warning with
31161 grub_dprintf(), as this error has been reported to be non-fatal.
31162
31163 2008-07-27 Robert Millan <rmh@aybabtu.com>
31164
31165 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
31166 information.
31167
31168 2008-07-27 Bean <bean123ch@gmail.com>
31169
31170 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
31171 (grub_fat_find_dir): Ignore case when comparing filename.
31172
31173 2008-07-27 Bean <bean123ch@gmail.com>
31174
31175 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
31176 smallino, as it's more descriptive, and i8count can be confused with
31177 the other field count.
31178 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
31179 inode type.
31180
31181 2008-07-27 Bean <bean123ch@gmail.com>
31182
31183 * commands/crc.c: New file.
31184
31185 * lib/crc.c: Likewise.
31186
31187 * include/grub/lib/crc.h: Likewise.
31188
31189 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
31190
31191 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
31192 (hexdump): Move this function to ...
31193
31194 * lib/hexdump.c: ... here.
31195
31196 * include/grub/hexdump.h: Renamed to ...
31197
31198 * include/grub/lib/hexdump.h: ... this.
31199
31200 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
31201
31202 * util/grub-editenv.c: Likewise.
31203
31204 * include/envblk.h: Renamed to ...
31205
31206 * include/lib/envblk.h: ... this.
31207
31208 * util/envblk.c: Renamed to ...
31209
31210 * lib/envblk.c: ... this.
31211
31212 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
31213 lib/hexdump.c.
31214 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
31215 (pkglib_MODULES): Add crc.mod.
31216 (hexdump_mod_SOURCES): Add lib/hexdump.c.
31217 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
31218 (crc_mod_SOURCES): New macro.
31219 (crc_mod_CFLAGS): Likewise.
31220 (crc_mod_LDFLAGS): Likewise.
31221
31222 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
31223
31224 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31225
31226 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31227
31228 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31229
31230 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31231
31232 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
31233
31234 * commands/help.c: Include <grub/term.h>.
31235 (TERM_WIDTH): Removed. Updated all users.
31236
31237 2008-07-27 Pavel Roskin <proski@gnu.org>
31238
31239 * util/getroot.c (find_root_device): Rephrase a comment to avoid
31240 spurious warnings about a comment within a comment.
31241
31242 2008-07-25 Robert Millan <rmh@aybabtu.com>
31243
31244 * util/getroot.c (find_root_device): Skip devices that match
31245 /dev/dm-[0-9]. This lets the real device be found for any type of
31246 abstraction (LVM, EVMS, RAID..).
31247 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
31248 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
31249 device is found first, find_root_device() will now skip it.
31250
31251 2008-07-24 Pavel Roskin <proski@gnu.org>
31252
31253 * include/grub/types.h: Use __builtin_bswap32() and
31254 __builtin_bswap64() with gcc 4.3 and newer.
31255
31256 2008-07-24 Christian Franke <franke@computer.org>
31257
31258 * util/i386/pc/grub-install.in: If `--debug' is specified,
31259 pass `--verbose' to grub-setup.
31260 Abort script if make_system_path_relative_to_its_root() fails.
31261
31262 2008-07-24 Bean <bean123ch@gmail.com>
31263
31264 * configure.ac: Fixed a bug caused by the previous cygwin patch,
31265 variable `target_platform' should be `platform'.
31266
31267 2008-07-24 Bean <bean123ch@gmail.com>
31268
31269 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
31270 (grub_png_init_fixed_block): New function.
31271 (grub_png_decode_image_data): Handle fixed huffman code compression.
31272
31273 2008-07-24 Bean <bean123ch@gmail.com>
31274
31275 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
31276 (grub_pe2elf_SOURCES): New macro.
31277 (CLEANFILES): Add grub-pe2elf.
31278
31279 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
31280 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
31281 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
31282 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
31283 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
31284 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
31285 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
31286 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
31287 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
31288 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
31289 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
31290 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
31291 (GRUB_PE32_DT_FUNCTION): Likewise.
31292 (GRUB_PE32_REL_I386_DIR32): Likewise.
31293 (GRUB_PE32_REL_I386_REL32): Likewise.
31294 (grub_pe32_symbol): New structure.
31295 (grub_pe32_reloc): Likewise.
31296
31297 * util/grub-pe2elf.c: New file.
31298
31299 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
31300 start symbol in non pc platform.
31301
31302 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
31303
31304 The following patches are from Christian Franke.
31305
31306 * include/grub/dl.h: Remove .previous, gas supports this only
31307 for ELF format.
31308
31309 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
31310 Remove .type, gas supports this only for ELF format.
31311
31312 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
31313 nullbytes in symbol table. This fixes an infinite loop if table is
31314 zero filled.
31315
31316 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
31317 TARGET_IMG_LDFLAGS and EXEEXT.
31318
31319 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
31320 TARGET_IMG_LDFLAGS_AC.
31321 (grub_CHECK_STACK_ARG_PROBE): New function.
31322
31323 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
31324
31325 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
31326
31327 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
31328 to set TARGET_IMG_LD* accordingly.
31329 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
31330 Add call to grub_CHECK_STACK_ARG_PROBE.
31331 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
31332
31333 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
31334
31335 * genmk.rb: Add EXEEXT to CLEANFILES.
31336
31337 2008-07-23 Robert Millan <rmh@aybabtu.com>
31338
31339 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
31340 define the codes for arrows and lines used for the menu).
31341 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
31342 as well.
31343
31344 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
31345 fonts, because the latter are too slow.
31346
31347 2008-07-21 Bean <bean123ch@gmail.com>
31348
31349 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
31350 a20. Run keyboard test last, as it will cause macbook to halt.
31351
31352 2008-07-18 Pavel Roskin <proski@gnu.org>
31353
31354 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
31355 load foreign architecture modules correctly anyway. Keep
31356 support for loading host architecture modules, whether we
31357 compile them or not.
31358
31359 2008-07-17 Pavel Roskin <proski@gnu.org>
31360
31361 * configure.ac: Use -m32 or -m64 regardless of whether we had to
31362 change target_cpu. The compiler default can mismatch target_cpu
31363 in any case.
31364
31365 * disk/efi/efidisk.c: Fix format warnings on x86_64.
31366 * kern/efi/efi.c: Likewise.
31367
31368 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
31369 target compiler is functional.
31370 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
31371 are set up.
31372
31373 * configure.ac: Default to efi platform for x86_64-apple. Allow
31374 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
31375 adjustments from the rest, only do them if target is not
31376 explicitly given. Merge other adjustments with the final sanity
31377 check. Remove an extraneous check for supported CPU. Be
31378 specific which CPU and which platform is not supported.
31379
31380 * configure.ac: Default to pc platform for x86_64.
31381
31382 2008-07-17 Robert Millan <rmh@aybabtu.com>
31383
31384 Partial LinuxBIOS -> Coreboot rename.
31385
31386 * conf/i386-linuxbios.rmk: Renamed to ...
31387 * conf/i386-coreboot.rmk: ... this.
31388 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
31389 * configure.ac: Accept "coreboot" as input platform (but maintain
31390 compatibility with "linuxbios").
31391 * include/grub/i386/linuxbios: Renamed to ...
31392 * include/grub/i386/coreboot: ... this.
31393
31394 2008-07-17 Bean <bean123ch@gmail.com>
31395
31396 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
31397 (appleldr_mod_SOURCE): New variable.
31398 (appleldr_mod_CFLAGS): Likewise.
31399 (appleldr_mod_LDFLAGS): Likewise.
31400 (pci_mod_SOURCES): Likewise.
31401 (pci_mod_CFLAGS): Likewise.
31402 (pci_mod_LDFLAGS): Likewise.
31403 (lspci_mod_SOURCES): Likewise.
31404 (lspci_mod_CFLAGS): Likewise.
31405 (lspci_mod_LDFLAGS): Likewise.
31406
31407 * conf/x86_64-efi.rmk: New file.
31408
31409 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
31410 macro.
31411 (grub_efidisk_write): Likewise.
31412
31413 * include/efi/api.h (efi_call_0): New macro.
31414 (efi_call_1): Likewise.
31415 (efi_call_2): Likewise.
31416 (efi_call_3): Likewise.
31417 (efi_call_4): Likewise.
31418 (efi_call_5): Likewise.
31419 (efi_call_6): Likewise.
31420
31421 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
31422 grub_rescue_cmd_chainloader.
31423
31424 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
31425 (grub_pe32_optional_header): Change some fields based on i386 or
31426 x86_64 platform.
31427 (GRUB_PE32_PE32_MAGIC): Likewise.
31428
31429 * include/grub/efi/uga_draw.h: New file.
31430
31431 * include/grub/elf.h (STN_ABS): New constant.
31432 (R_X86_64_NONE): Relocation constant for x86_64.
31433 (R_X86_64_64): Likewise.
31434 (R_X86_64_PC32): Likewise.
31435 (R_X86_64_GOT32): Likewise.
31436 (R_X86_64_PLT32): Likewise.
31437 (R_X86_64_COPY): Likewise.
31438 (R_X86_64_GLOB_DAT): Likewise.
31439 (R_X86_64_JUMP_SLOT): Likewise.
31440 (R_X86_64_RELATIVE): Likewise.
31441 (R_X86_64_GOTPCREL): Likewise.
31442 (R_X86_64_32): Likewise.
31443 (R_X86_64_32S): Likewise.
31444 (R_X86_64_16): Likewise.
31445 (R_X86_64_PC16): Likewise.
31446 (R_X86_64_8): Likewise.
31447 (R_X86_64_PC8): Likewise.
31448
31449 * include/grub/i386/efi/pci.h: New file.
31450
31451 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
31452 Change it value based on platform.
31453 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
31454 (GRUB_E820_RAM): Likewise.
31455 (GRUB_E820_RESERVED): Likewise.
31456 (GRUB_E820_ACPI): Likewise.
31457 (GRUB_E820_NVS): Likewise.
31458 (GRUB_E820_EXEC_CODE): Likewise.
31459 (GRUB_E820_MAX_ENTRY): Likewise.
31460 (grub_e820_mmap): New structure.
31461 (linux_kernel_header): Change the efi field according to different
31462 kernel version, also field from linux_kernel_header.
31463
31464 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
31465
31466 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
31467 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
31468 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
31469 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
31470 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
31471 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
31472 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
31473 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
31474 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
31475 (GRUB_PCI_ADDR_IO_MASK): Likewise.
31476
31477 * include/grub/x86_64/efi/kernel.h: New file.
31478
31479 * include/grub/x86_64/efi/loader.h: Likewise.
31480
31481 * include/grub/x86_64/efi/machine.h: Likewise.
31482
31483 * include/grub/x86_64/efi/pci.h: Likewise.
31484
31485 * include/grub/x86_64/efi/time.h: Likewise.
31486
31487 * include/grub/x86_64/linux.h: Likewise.
31488
31489 * include/grub/x86_64/setjmp.h: Likewise.
31490
31491 * include/grub/x86_64/time.h: Likewise.
31492
31493 * include/grub/x86_64/types.h: Likewise.
31494
31495 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
31496 GRUB_TARGET_SIZEOF_VOID_P.
31497
31498 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
31499 (grub_efi_locate_handle): Likewise.
31500 (grub_efi_open_protocol): Likewise.
31501 (grub_efi_set_text_mode): Likewise.
31502 (grub_efi_stall): Likewise.
31503 (grub_exit): Likewise.
31504 (grub_reboot): Likewise.
31505 (grub_halt): Likewise.
31506 (grub_efi_exit_boot_services): Likewise.
31507 (grub_get_rtc): Likewise.
31508
31509 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
31510 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
31511 (grub_efi_allocate_pages): Wrap efi calls.
31512 (grub_efi_free_pages): Wrap efi calls.
31513 (grub_efi_get_memory_map): Wrap efi calls.
31514
31515 * kern/x86_64/dl.c: New file.
31516
31517 * kern/x86_64/efi/callwrap.S: Likewise.
31518
31519 * kern/x86_64/efi/startup.S: Likewise.
31520
31521 * loader/efi/appleloader.c: Likewise.
31522
31523 * loader/efi/chainloader.c (cmdline): New variable.
31524 (grub_chainloader_unload): Wrap efi calls.
31525 (grub_chainloader_boot): Likewise.
31526 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
31527 command line.
31528
31529 * loader/efi/chainloader_normal.c (chainloader_command):
31530 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
31531 command line.
31532
31533 * loader/i386/efi/linux.c (allocate_pages): Change allocation
31534 method.
31535 (grub_e820_add_region): New function.
31536 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
31537 booting.
31538 (grub_find_video_card): New function.
31539 (grub_linux_setup_video): New function.
31540 (grub_rescue_cmd_linux): Probe for video information.
31541
31542 * normal/x86_64/setjmp.S: New file.
31543
31544 * term/efi/console.c (map_char): New function.
31545 (grub_console_putchar): Map unicode char.
31546 (grub_console_checkkey): Wrap efi calls.
31547 (grub_console_getkey): Likewise.
31548 (grub_console_getwh): Likewise.
31549 (grub_console_gotoxy): Likewise.
31550 (grub_console_cls): Likewise.
31551 (grub_console_setcolorstate): Likewise.
31552 (grub_console_setcursor): Likewise.
31553
31554 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
31555
31556 2008-07-16 Pavel Roskin <proski@gnu.org>
31557
31558 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
31559 format strings.
31560
31561 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
31562 pointer, not an integer. This fixes a warning and prevents
31563 precision loss on 64-bit systems.
31564 (relocate_addresses): Remove unneeded cast.
31565
31566 2008-07-15 Pavel Roskin <proski@gnu.org>
31567
31568 * kern/i386/ieee1275/init.c: Include grub/cache.h.
31569
31570 * term/ieee1275/ofconsole.c: Disable code unused on i386.
31571
31572 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
31573 Fix comparison between signed and unsigned.
31574
31575 * include/grub/i386/ieee1275/console.h: Declare
31576 grub_console_init() and grub_console_fini().
31577
31578 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
31579 It's empty and unused.
31580
31581 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
31582 beginning to avoid warnings with some compilers.
31583
31584 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
31585 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
31586
31587 2008-07-14 Pavel Roskin <proski@gnu.org>
31588
31589 * kern/env.c (grub_register_variable_hook): Don't copy empty
31590 string, it leaks memory. Pass "" to grub_env_set(), it should
31591 handle constant strings.
31592
31593 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
31594 * commands/cmp.c (grub_cmd_cmp): Likewise.
31595 * kern/dl.c (grub_dl_flush_cache): Likewise.
31596 (grub_dl_load_core): Likewise.
31597 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
31598 (grub_elf64_load_phdrs): Likewise.
31599
31600 2008-07-13 Pavel Roskin <proski@gnu.org>
31601
31602 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
31603 between signed and unsigned.
31604 (LzmaEnc_Finish): Fix warning about an unused parameter.
31605
31606 2008-07-13 Bean <bean123ch@gmail.com>
31607
31608 * Makefile.in (enable_lzo): New rule.
31609
31610 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
31611
31612 * configure.ac (ENABLE_LZO): New option --enable-lzo.
31613
31614 * boot/i386/pc/lnxboot.S: #include <config.h>.
31615
31616 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
31617 its value according to the compression algorithm used, lzo or lzma.
31618
31619 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
31620 compression algorithm according to configure macro.
31621
31622 * kern/i386/pc/startup.S (codestart): Likewise.
31623
31624 * kern/i386/pc/lzma_decode.S: New file.
31625
31626 * include/grub/lib/LzFind.h: Likewise.
31627
31628 * include/grub/lib/LzHash.h: Likewise.
31629
31630 * include/grub/lib/LzmaDec.h: Likewise.
31631
31632 * include/grub/lib/LzmaEnc.h: Likewise.
31633
31634 * include/grub/lib/LzmaTypes.h: Likewise.
31635
31636 * lib/LzFind.c: Likewise.
31637
31638 * lib/LzmaDec.c: Likewise.
31639
31640 * lib/LzmaEnc.c: Likewise.
31641
31642 2008-07-13 Bean <bean123ch@gmail.com>
31643
31644 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
31645 (grub_ext4_extent_header): New structure.
31646 (grub_ext4_extent): Likewise.
31647 (grub_ext4_extent_idx): Likewise.
31648 (grub_ext4_find_leaf): New function.
31649 (grub_ext2_read_block): Handle extents.
31650
31651 2008-07-12 Robert Millan <rmh@aybabtu.com>
31652
31653 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
31654
31655 2008-07-11 Robert Millan <rmh@aybabtu.com>
31656
31657 * util/grub.d/40_custom.in: New file. Example on how to add custom
31658 entries to /etc/grub.d.
31659 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
31660 40_custom (implicitly, by merging all the grub.d rules).
31661
31662 2008-07-11 Pavel Roskin <proski@gnu.org>
31663
31664 * commands/read.c (grub_getline): Fix invalid memory access.
31665 Don't add newline to the variable value.
31666
31667 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
31668 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
31669 (serial_hw_get_port): Check validity of the port number.
31670 (grub_cmd_serial): Check return value of serial_hw_get_port().
31671
31672 2008-07-07 Pavel Roskin <proski@gnu.org>
31673
31674 * boot/i386/pc/diskboot.S (notification_string): Replace
31675 "Loading kernel" with just "loading". This is shorter, less
31676 confusing and saves a few bytes for possible future changes.
31677
31678 2008-07-05 Pavel Roskin <proski@gnu.org>
31679
31680 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
31681 size for ATAPI devices, they are undefined. Output sector
31682 number in decimal form.
31683
31684 * disk/ata.c: Use named constants for status bits.
31685
31686 2008-07-04 Pavel Roskin <proski@gnu.org>
31687
31688 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
31689 grub_addr_t before casting it to the void pointer to fix a
31690 warning. Non-addressable regions are discarded earlier.
31691 (grub_arch_modules_addr): Cast _end to grub_addr_t.
31692 * kern/i386/linuxbios/table.c: Include grub/misc.h.
31693 (check_signature): Don't shadow table_header.
31694 (grub_linuxbios_table_iterate): Cast numeric constants to
31695 grub_linuxbios_table_header_t.
31696 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
31697 grub_stop().
31698
31699 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
31700 prevent warnings.
31701
31702 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
31703 pointer, which can cause warnings. Support 64-bit addresses.
31704
31705 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
31706 of sizeof(long). This fixes PowerPC image generation on x86_64.
31707
31708 2008-07-04 Robert Millan <rmh@aybabtu.com>
31709
31710 This fixes a performance issue when pc & gpt partmap iterators
31711 didn't abort iteration even after our hook found what it was
31712 looking for (often causing expensive probes of non-existent drives).
31713
31714 Some callers relied on previous buggy behaviour, since they would
31715 raise an error when their own hooks caused early abortion of its
31716 iteration.
31717
31718 * kern/device.c (grub_device_open): Improve error message.
31719 * disk/lvm.c (grub_lvm_open): Likewise.
31720 * disk/raid.c (grub_raid_open): Likewise.
31721
31722 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
31723 when hook requests it, independently of grub_errno.
31724 (pc_partition_map_probe): Do not fail when find_func() caused
31725 early abortion of pc_partition_map_iterate().
31726
31727 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
31728 when hook requests it, independently of grub_errno.
31729 (gpt_partition_map_probe): Do not fail when find_func() caused
31730 early abortion of gpt_partition_map_iterate().
31731
31732 * kern/partition.c (grub_partition_iterate): Abort parent iteration
31733 when hook requests it, independently of grub_errno. Do not fail when
31734 part_map_iterate_hook() caused early abortion of p->iterate().
31735
31736 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
31737 when grub_partition_iterate() returned with non-zero.
31738
31739 2008-07-03 Pavel Roskin <proski@gnu.org>
31740
31741 * disk/ata.c (grub_ata_pio_write): Check status before writing,
31742 like we do in grub_ata_pio_read().
31743 (grub_ata_readwrite): Always write individual sectors. Fix the
31744 sector count for the remainder.
31745 (grub_ata_write): Enable writing to ATA devices. Correctly
31746 report error for ATAPI devices.
31747
31748 2008-07-02 Pavel Roskin <proski@gnu.org>
31749
31750 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
31751 warning.
31752
31753 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
31754 for every read sector, we already increment it for the whole
31755 batch. This fixes reading more than 256 sectors at once.
31756
31757 * util/grub-editenv.c (cmd_info): Cast argument to long
31758 explicitly. ptrdiff_t reduces to int on i386.
31759
31760 * util/grub-editenv.c (main): Be specific which parameter is
31761 missing.
31762
31763 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
31764 (memdisk): Make memdisk_orig_addr a pointer.
31765
31766 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
31767 for file offsets, use grub_off_t instead. Fix printf format
31768 warnings.
31769
31770 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
31771 there. Real unexpected warnings should not drown in the noise
31772 about known problems.
31773
31774 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
31775 grub_disk_addr_t for memory addresses.
31776
31777 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
31778 explicitly to fix a warning.
31779
31780 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
31781
31782 * Makefile.in (MODULE_LDFLAGS): New variable.
31783 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
31784 the linker accepts --build-id=none.
31785 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
31786 MODULE_LDFLAGS.
31787 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
31788
31789 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
31790 those in Linux XFS code. Provide a way to access 64-bit parent
31791 inode.
31792 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
31793 the end of struct grub_xfs_dir_header.
31794
31795 2008-07-02 Bean <bean123ch@gmail.com>
31796
31797 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
31798 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31799 and GRUB_IEEE1275_FLAG_NO_ANSI.
31800
31801 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
31802 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31803 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
31804
31805 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
31806 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
31807
31808 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
31809 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
31810
31811 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
31812 esc sequence on non ANSI terminal.
31813 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
31814
31815 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
31816 beginning of file.
31817
31818 2008-07-02 Bean <bean123ch@gmail.com>
31819
31820 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
31821 (grub_editenv_SOURCES): New variable.
31822 (pkglib_MODULES): Add loadenv.mod.
31823 (loadenv_mod_SOURCES): New variable.
31824 (loadenv_mod_CFLAGS): Likewise.
31825 (loadenv_mod_LDFLAGS): Likewise.
31826
31827 * include/grub/envblk.h: New file.
31828
31829 * util/envblk.c: New file.
31830
31831 * util/grub-editenv.c: New file.
31832
31833 * commands/loadenv.c: New file.
31834
31835 2008-07-01 Pavel Roskin <proski@gnu.org>
31836
31837 * include/multiboot2.h (struct multiboot_tag_module): Use char,
31838 not unsigned char. This fixes warnings and is consistent with
31839 other tags.
31840
31841 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
31842
31843 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
31844
31845 * term/tparm.c (analyze): Always set *popcount.
31846
31847 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
31848 cast to fix a warning.
31849
31850 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
31851 cast to suppress a warning.
31852
31853 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
31854 grub_fshelp_read_file() expects.
31855
31856 * fs/fat.c: Fix UUID calculation on big-endian systems. We
31857 write uuid as a 32-bit value in CPU byte order, so declare and
31858 use it as such.
31859
31860 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
31861 long if the format specifier expects it.
31862 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
31863 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31864 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
31865 long to fix a warning.
31866 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
31867 grub_dprintf() arguments to fix warnings.
31868
31869 2008-06-30 Pavel Roskin <proski@gnu.org>
31870
31871 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
31872 install_bsd_part immediately before core.img is embedded or
31873 modified on disk. This fixes core.img verification if core.img
31874 cannot be embedded.
31875
31876 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
31877 core_path to calculate the blocklist.
31878 Patch from Javier Martín <lordhabbit@gmail.com>
31879
31880 2008-06-29 Robert Millan <rmh@aybabtu.com>
31881
31882 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
31883 block to disk block.
31884 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
31885 Patch from Niels Böhm <bitbucket@arcor.de>
31886
31887 2008-06-29 Robert Millan <rmh@aybabtu.com>
31888
31889 * util/update-grub_lib.in (font_path): Search for fonts in
31890 /boot/grub first, which is more likely to be readable (we aren't
31891 deciding where fonts live, just looking for them).
31892
31893 2008-06-26 Pavel Roskin <proski@gnu.org>
31894
31895 * util/biosdisk.c (read_device_map): Don't leave dead map
31896 entries for devices failing stat() check.
31897
31898 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
31899 core_path_dev for the core.img path on the target device.
31900
31901 2008-06-26 Robert Millan <rmh@aybabtu.com>
31902
31903 * disk/fs_uuid.c: New file.
31904 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
31905 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
31906 (fs_uuid_mod_LDFLAGS): New variables.
31907 * include/grub/disk.h (grub_disk_dev_id): Add
31908 `GRUB_DISK_DEVICE_UUID_ID'.
31909 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
31910 implement iterate().
31911
31912 2008-06-26 Robert Millan <rmh@aybabtu.com>
31913
31914 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
31915 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
31916 Linux image includes no initrd.
31917
31918 2008-06-21 Javier Martín <lordhabbit@gmail.com>
31919
31920 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
31921 call to resolve the core image location that effectively appended the
31922 name twice.
31923
31924 2008-06-21 Robert Millan <rmh@aybabtu.com>
31925
31926 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
31927 call from here ...
31928
31929 * util/grub.d/10_hurd.in: ... to here ...
31930 * util/grub.d/10_linux.in: ... and here.
31931
31932 2008-06-19 Robert Millan <rmh@aybabtu.com>
31933
31934 * kern/main.c (grub_main): Export `prefix' variable immediately
31935 after it has been set by grub_machine_set_prefix().
31936
31937 2008-06-19 Robert Millan <rmh@aybabtu.com>
31938
31939 * commands/search.c (search_label, search_fs_uuid, search_file): Print
31940 search result when not saving to variable, not the other way around.
31941 When saving to variable, abort iteration as soon as a match is found.
31942
31943 2008-06-19 Robert Millan <rmh@aybabtu.com>
31944
31945 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
31946 check for partition that provides /boot/grub. Its logic is flawed,
31947 as it prevents prepare_grub_to_access_device() from being called
31948 multiple times.
31949
31950 2008-06-19 Robert Millan <rmh@aybabtu.com>
31951
31952 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
31953 "insmod" command directly when abstraction modules are needed,
31954 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
31955 since it had already been processed).
31956
31957 2008-06-19 Pavel Roskin <proski@gnu.org>
31958
31959 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
31960 changed. This is needed in case GRUB_LIBDIR changes.
31961 * conf/i386-ieee1275.rmk: Likewise.
31962 * conf/i386-linuxbios.rmk: Likewise.
31963 * conf/i386-pc.rmk: Likewise.
31964 * conf/powerpc-ieee1275.rmk: Likewise.
31965
31966 2008-06-18 Pavel Roskin <proski@gnu.org>
31967
31968 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
31969 kernel_elf_symlist.c to symlist.c for consistency with other
31970 architectures. Update all users.
31971 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31972
31973 2008-06-18 Robert Millan <rmh@aybabtu.com>
31974
31975 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
31976 it in prefix.
31977
31978 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
31979 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
31980 a RAID device, run setup() for all members independently on whether
31981 LVM abstraction is being used.
31982 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
31983 If grub-mkimage has set `*install_dos_part == -2', don't override this
31984 value.
31985 Perform *install_dos_part adjustments independently on whether
31986 we're embedding or not.
31987 Clarify error message when image is too big for embedding.
31988 Remove duplicate *install_dos_part stanza.
31989
31990 2008-06-17 Robert Millan <rmh@aybabtu.com>
31991
31992 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
31993 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
31994 variables.
31995 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
31996 values in grub_ofconsole_normal_color and
31997 grub_ofconsole_highlight_color (they're not directly related to
31998 background and foreground).
31999 (grub_ofconsole_setcolorstate): Extract background and foreground
32000 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
32001
32002 2008-06-17 Robert Millan <rmh@aybabtu.com>
32003
32004 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
32005 /boot/grub for the check in last commit, not /boot (they could be
32006 different partitions).
32007
32008 2008-06-16 Robert Millan <rmh@aybabtu.com>
32009
32010 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
32011 asked to setup access for the same partition that provides /boot,
32012 don't bother using UUIDs since our root already has the value we
32013 want.
32014
32015 2008-06-16 Robert Millan <rmh@aybabtu.com>
32016
32017 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
32018 I2O devices.
32019 Patch from Sven Mueller <sven@debian.org>.
32020
32021 2008-06-16 Robert Millan <rmh@aybabtu.com>
32022
32023 * util/update-grub.in: Check for $EUID instead of $UID.
32024 Reported by Vincent Zweije.
32025
32026 2008-06-16 Bean <bean123ch@gmail.com>
32027
32028 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
32029 (grub_ext2_read_block): Likewise.
32030 (grub_ext2_read_inode): Likewise.
32031 (grub_ext2_mount): Likewise.
32032 (grub_ext2_close): Likewise.
32033 (grub_ext3_get_journal): Removed.
32034
32035 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
32036 (grub_reiserfs_read_symlink): Likewise.
32037 (grub_reiserfs_mount): Likewise.
32038 (grub_reiserfs_open): Likewise.
32039 (grub_reiserfs_read): Likewise.
32040 (grub_reiserfs_close): Likewise.
32041 (grub_reiserfs_get_journal): Removed.
32042
32043 * fs/fshelp.c (grub_fshelp_read): Removed.
32044 (grub_fshelp_map_block): Likewise.
32045
32046 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
32047 (grub_fshelp_journal): Likewise.
32048 (grub_fshelp_read): Likewise.
32049 (grub_fshelp_map_block): Likewise.
32050
32051 2008-06-16 Pavel Roskin <proski@gnu.org>
32052
32053 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
32054 floating point anymore.
32055 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
32056
32057 2008-06-15 Pavel Roskin <proski@gnu.org>
32058
32059 * commands/ls.c (grub_ls_list_files): Use integer calculations
32060 for human readable format, avoid floating point use.
32061 * kern/misc.c (grub_ftoa): Remove.
32062 (grub_vsprintf): Remove floating point support.
32063
32064 2008-06-15 Robert Millan <rmh@aybabtu.com>
32065
32066 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
32067 devices.
32068 Reported by Max Vozeler.
32069
32070 2008-06-15 Robert Millan <rmh@aybabtu.com>
32071
32072 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
32073 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
32074 skipped later.
32075 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
32076 the beginning of the prefix.
32077
32078 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
32079 It is assumed that if we have a memdisk, grub-mkimage has set
32080 grub_prefix to include the "(memdisk)" drive in it.
32081
32082 2008-06-15 Robert Millan <rmh@aybabtu.com>
32083
32084 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
32085 Initialize keyboard controller after registering the terminal, so that
32086 grub_printf() can be called from grub_keyboard_controller_init().
32087
32088 2008-06-15 Robert Millan <rmh@aybabtu.com>
32089
32090 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
32091 extent-btree which is written as big endian on disk.
32092 Reported by Alain Greppin <al@chilibi.org>.
32093
32094 2008-06-14 Robert Millan <rmh@aybabtu.com>
32095
32096 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
32097 * util/i386/pc/grub-install.in (modules): Likewise.
32098
32099 2008-06-13 Pavel Roskin <proski@gnu.org>
32100
32101 * commands/ls.c (grub_ls_list_files): Fix format warnings.
32102
32103 2008-06-13 Bean <bean123ch@gmail.com>
32104
32105 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
32106
32107 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
32108
32109 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
32110 to indicate sparse block.
32111
32112 2008-06-12 Pavel Roskin <proski@gnu.org>
32113
32114 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
32115 number, grub_fshelp_read() does it for us.
32116
32117 * fs/fshelp.c (grub_fshelp_read): New function. Implement
32118 linear disk read with journal translation.
32119 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
32120 * include/grub/fshelp.h: Declare grub_fshelp_read().
32121
32122 2008-06-09 Pavel Roskin <proski@gnu.org>
32123
32124 * fs/minix.c (grub_minix_mount): Handle error reading
32125 superblock.
32126
32127 2008-06-08 Robert Millan <rmh@aybabtu.com>
32128
32129 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
32130 don't append the RAID prefix afterwards.
32131 Reported by Clint Adams.
32132
32133 2008-06-08 Robert Millan <rmh@aybabtu.com>
32134
32135 Based on description from Pavel:
32136 * kern/disk.c (grub_disk_check_range): Rename to ...
32137 (grub_disk_adjust_range): ... this. Add a comment explaining the
32138 tasks performed by this function.
32139
32140 2008-06-08 Robert Millan <rmh@aybabtu.com>
32141
32142 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
32143 `num_serial' (for consistency with other variables).
32144 (struct grub_ntfs_data): Add `uuid' member.
32145 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
32146 (grub_ntfs_uuid): New function.
32147 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
32148
32149 2008-06-07 Pavel Roskin <proski@gnu.org>
32150
32151 * util/biosdisk.c (open_device): Revert last change to the
32152 function, it broke installation. The sector needs to be
32153 different dependent on which device is opened.
32154
32155 2008-06-06 Robert Millan <rmh@aybabtu.com>
32156
32157 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
32158 rest of GRUB, and breakage doesn't happen if its value were modified.
32159
32160 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32161 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
32162 a constant (same value).
32163 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
32164 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
32165
32166 2008-06-06 Robert Millan <rmh@aybabtu.com>
32167
32168 * util/biosdisk.c (open_device): Do not modify sector offset when
32169 accessing a partition. kern/disk.c already handles this for us.
32170
32171 2008-06-06 Robert Millan <rmh@aybabtu.com>
32172
32173 * util/grub-emu.c (grub_machine_init): Move code in this function from
32174 here ...
32175 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
32176 segfault in case grub_printf() is called).
32177
32178 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
32179 grub_probe. Update all users not to explicitly add it again.
32180 (grub_device): New variable; contains corresponding device for grubdir.
32181 (fs_module, partmap_module, devabstraction_module): Pass
32182 `--device ${grub_device}' to grub_probe to avoid traversing /dev
32183 every time.
32184
32185 2008-06-05 Robert Millan <rmh@aybabtu.com>
32186
32187 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
32188 is found, print it (same layout as with labels).
32189
32190 2008-06-04 Robert Millan <rmh@aybabtu.com>
32191
32192 * util/biosdisk.c (get_drive): Rename to ...
32193 (find_grub_drive): ... this. Update all users.
32194
32195 (get_os_disk): Rename to ...
32196 (convert_system_partition_to_system_disk): ... this. Update all users.
32197
32198 (find_drive): Rename to ...
32199 (find_system_device): ... this. Update all users.
32200
32201 2008-06-04 Robert Millan <rmh@aybabtu.com>
32202
32203 * util/biosdisk.c (get_os_disk): Handle IDA devices.
32204 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32205 (make_device_map): Likewise.
32206
32207 2008-06-01 Robert Millan <rmh@aybabtu.com>
32208
32209 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
32210 before dereferencing it.
32211
32212 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
32213 union with fat12/fat16-specific ones. Add some new fields, including
32214 `num_serial' for both versions.
32215 (struct grub_fat_data): Add `uuid' member.
32216 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
32217 names. Initialize `data->uuid' using `num_serial'.
32218 (grub_fat_uuid): New function.
32219 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
32220
32221 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
32222 (grub_reiserfs_uuid): New function.
32223 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
32224 member.
32225
32226 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
32227 (grub_xfs_uuid): New function.
32228 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
32229
32230 2008-06-01 Robert Millan <rmh@aybabtu.com>
32231
32232 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
32233 code that is backward compatible with pre-uuid search command.
32234
32235 2008-05-31 Robert Millan <rmh@aybabtu.com>
32236
32237 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
32238 floppies after everything else, to ensure floppy drive isn't accessed
32239 unnecessarily (patch from Bean).
32240
32241 2008-05-31 Robert Millan <rmh@aybabtu.com>
32242
32243 * commands/search.c (search_label, search_fs_uuid, search_file): Do
32244 not print device names when we were asked to set a variable.
32245
32246 2008-05-31 Robert Millan <rmh@aybabtu.com>
32247
32248 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
32249 using "cursor-on" and "cursor-off" commands (understood at least by
32250 the Open Firmware flavour on OLPC).
32251
32252 2008-05-31 Michael Gorven <michael@gorven.za.net>
32253
32254 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
32255 on and off sequences.
32256
32257 2008-05-31 Robert Millan <rmh@aybabtu.com>
32258
32259 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
32260 * util/update-grub.in: Likewise.
32261
32262 2008-05-30 Pavel Roskin <proski@gnu.org>
32263
32264 * util/biosdisk.c (linux_find_partition): Simplify logic and
32265 make the code more universal. Keep special processing for
32266 devfs, but use a simple rule for all other devices. If the
32267 device ends with a number, append 'p' and the partition number.
32268 Otherwise, append only the partition number.
32269
32270 2008-05-30 Robert Millan <rmh@aybabtu.com>
32271
32272 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
32273 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
32274 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
32275 the `root' parameter to Linux.
32276
32277 2008-05-30 Robert Millan <rmh@aybabtu.com>
32278
32279 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
32280 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
32281 --fs_uuid with --fs-uuid.
32282 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
32283 all filesystems support them).
32284
32285 2008-05-30 Robert Millan <rmh@aybabtu.com>
32286
32287 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
32288 grub_printf() flags, since we're printing in units of 2 bytes.
32289
32290 2008-05-30 Robert Millan <rmh@aybabtu.com>
32291
32292 * util/grub.d/00_header.in: Remove obsolete comment referencing
32293 convert_system_path_to_grub_path().
32294 * util/update-grub.in: Likewise.
32295 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
32296 (convert_system_path_to_grub_path): Add a warning message explaining
32297 that this function is deprecated. Rely on is_path_readable_by_grub()
32298 for the readability checks.
32299 (font_path): Use is_path_readable_by_grub() for the readability
32300 check rather than convert_system_path_to_grub_path().
32301
32302 2008-05-30 Robert Millan <rmh@aybabtu.com>
32303
32304 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
32305 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
32306 converting it first.
32307 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
32308 grub.cfg for access to font file, and afterwards call it again to set
32309 the root device.
32310
32311 2008-05-30 Robert Millan <rmh@aybabtu.com>
32312
32313 * commands/search.c (options): Add --fs_uuid option.
32314 (search_fs_uuid): New function.
32315 (grub_cmd_search): Fix --set argument passing.
32316 Use search_fs_uuid() when requested via --fs_uuid.
32317 (grub_search_init): Update help message.
32318 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
32319 and redeclare it as an array of 16-bit words.
32320 (grub_ext2_uuid): New function.
32321 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
32322 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
32323 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
32324 (GRUB_DEVICE_BOOT_UUID): New variables.
32325 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
32326 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
32327 whenever possible.
32328 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
32329 just assume `root' variable has the right value.
32330 * util/grub.d/10_linux.in: Likewise.
32331 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
32332 via PRINT_FS_UUID.
32333 (main): Recognise `-t fs_uuid' argument.
32334
32335 2008-05-30 Robert Millan <rmh@aybabtu.com>
32336
32337 * util/biosdisk.c (map): Redefine structure to hold information
32338 about GRUB drive name.
32339 (get_drive): Reimplement without assuming (and verifying) BIOS-like
32340 drive names.
32341 (call_hook): Remove.
32342 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
32343 member. Assume drive has partitions.
32344 (grub_util_biosdisk_open): Access device names via `.device' struct
32345 member.
32346 (open_device): Likewise.
32347 (find_drive): Likewise.
32348 (read_device_map): Adjust map[] usage to match the new struct
32349 definition. Don't check for duplicates (still possible, but not cheap
32350 anymore).
32351 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
32352 (make_device_name): Remove assumption of BIOS-like drive names.
32353
32354 2008-05-30 Pavel Roskin <proski@gnu.org>
32355
32356 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
32357 compiling execute.c doesn't need grub_script.tab.h anymore.
32358 (normal/command.c_DEPENDENCIES): Likewise.
32359 (normal/function.c_DEPENDENCIES): Likewise.
32360 * conf/i386-ieee1275.rmk: Likewise.
32361 * conf/i386-linuxbios.rmk: Likewise.
32362 * conf/i386-pc.rmk: Likewise.
32363 * conf/powerpc-ieee1275.rmk: Likewise.
32364 * conf/sparc64-ieee1275.rmk: Likewise.
32365
32366 2008-05-29 Pavel Roskin <proski@gnu.org>
32367
32368 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
32369 when scanning metadata for volume group name.
32370
32371 * include/grub/script.h: Don't include grub_script.tab.h. It's
32372 a generated file, which may only be included from the files with
32373 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
32374 use union YYSTYPE, as the later allows forward declaration.
32375 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
32376
32377 2008-05-29 Robert Millan <rmh@aybabtu.com>
32378
32379 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
32380 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
32381 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
32382 (grub_console_checkkey): Add grub_dprintf() call to report unknown
32383 scan codes.
32384
32385 2008-05-29 Robert Millan <rmh@aybabtu.com>
32386
32387 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
32388 control key combinations.
32389
32390 2008-05-29 Robert Millan <rmh@aybabtu.com>
32391
32392 * util/powerpc/ieee1275/grub-install.in: Move from here ...
32393 * util/ieee1275/grub-install.in: ... to here.
32394 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
32395 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
32396 (grub_install_SOURCES): Likewise.
32397
32398 2008-05-29 Robert Millan <rmh@aybabtu.com>
32399
32400 * fs/affs.c: Update copyright year.
32401 * fs/ext2.c: Likewise.
32402 * fs/fshelp.c: Likewise.
32403 * fs/hfsplus.c: Likewise.
32404 * fs/ntfs.c: Likewise.
32405 * fs/xfs.c: Likewise.
32406 * include/grub/fshelp.h: Likewise.
32407 * util/grub-mkdevicemap.c: Likewise.
32408
32409 2008-05-28 Robert Millan <rmh@aybabtu.com>
32410
32411 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
32412 might need to be fatfs to support some firmware implementations
32413 (e.g. OFW or EFI).
32414
32415 2008-05-28 Robert Millan <rmh@aybabtu.com>
32416
32417 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
32418 devices.
32419 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32420 (make_device_map): Likewise.
32421
32422 2008-05-20 Bean <bean123ch@gmail.com>
32423
32424 * fs/fshelp.c (grub_fshelp_map_block): New function.
32425 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
32426 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
32427
32428 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
32429 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
32430 (grub_fshelp_journal): New structure.
32431 (grub_fshelp_map_block): New function prototype.
32432 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
32433 (grub_fshelp_map_block): Likewise.
32434
32435 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
32436 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
32437 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
32438 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
32439 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
32440 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
32441 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
32442 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
32443 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
32444 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
32445 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
32446 (grub_ext2_sblock): New members for journal support.
32447 (grub_ext3_journal_header): New structure.
32448 (grub_ext3_journal_revoke_header): Likewise.
32449 (grub_ext3_journal_block_tag): Likewise.
32450 (grub_ext3_journal_sblock): Likewise.
32451 (grub_fshelp_node): New members logfile and journal.
32452 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
32453 grub_fshelp_map_block to get real block number.
32454 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
32455 number.
32456 (grub_ext2_read_inode): Likewise.
32457 (grub_ext3_get_journal): New function.
32458 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
32459 (grub_ext2_close): Release memory used by journal.
32460
32461 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
32462 (REISERFS_MAGIC_DESC_BLOCK): New macro.
32463 (grub_reiserfs_transaction_header): Renamed to
32464 grub_reiserfs_description_block, replace field data with real_blocks.
32465 (grub_reiserfs_commit_block): New structure.
32466 (grub_reiserfs_data): New member journal.
32467 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
32468 number.
32469 (grub_reiserfs_read_symlink): Likewise.
32470 (grub_reiserfs_iterate_dir): Likewise.
32471 (grub_reiserfs_open): Likewise.
32472 (grub_reiserfs_read): Likewise.
32473 (grub_reiserfs_get_journal): New function.
32474 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
32475 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
32476 using grub_reiserfs_get_journal.
32477 (grub_reiserfs_close): Release memory used by journal.
32478
32479 * fs/affs.c (grub_affs_read_block): Change block type to
32480 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
32481
32482 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
32483
32484 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
32485
32486 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
32487
32488 * fs/udf.c (grub_udf_read_block): Change block type to
32489 grub_disk_addr_t. Use type cast to avoid warning.
32490
32491 * fs/xfs.c (grub_xfs_read_block): Likewise.
32492
32493 2008-05-16 Christian Franke <franke@computer.org>
32494
32495 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
32496 to ensure that break with ESC will always work.
32497 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
32498 Remove ESC from keyboard queue.
32499
32500 2008-05-16 Christian Franke <franke@computer.org>
32501
32502 * util/biosdisk.c: [__CYGWIN__] Add includes.
32503 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
32504 (get_os_disk): Move variable declarations to OS specific
32505 parts to avoid warning.
32506 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
32507 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
32508 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
32509 Cygwin.
32510 * util/getroot.c: [__CYGWIN__] Add includes.
32511 (strip_extra_slashes): Fix "/" case.
32512 [__CYGWIN__] (get_win32_path): New function.
32513 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
32514 [__CYGWIN__] (find_root_device): Disable.
32515 [__CYGWIN__] (get_bootsec_serial): New function.
32516 [__CYGWIN__] (find_cygwin_root_device): Likewise.
32517 [__linux__] (grub_guess_root_device): Add early returns to simplify
32518 structure.
32519 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
32520 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
32521 check for Linux only.
32522
32523 2008-05-15 Bean <bean123ch@gmail.com>
32524
32525 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
32526 keyboard hang problem in apple's intel mac.
32527
32528 2008-05-09 Robert Millan <rmh@aybabtu.com>
32529
32530 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
32531 devices.
32532 * util/grub-mkdevicemap.c (get_virtio_disk_name)
32533 (make_device_map): Likewise.
32534 Reported by Aurelien Jarno <aurel32@debian.org>
32535
32536 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
32537
32538 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
32539 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
32540 (make_device_map): Output entries for xvd type disks.
32541
32542 2008-05-07 Robert Millan <rmh@aybabtu.com>
32543
32544 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
32545 devices.
32546 * util/grub-mkdevicemap.c (get_cciss_disk_name)
32547 (make_device_map): Likewise.
32548 Reported by Roland Dreier <rdreier@cisco.com>
32549
32550 2008-05-07 Robert Millan <rmh@aybabtu.com>
32551
32552 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
32553 grub_strstr() call. Correct a few mistakes in failure path handling.
32554
32555 2008-05-06 Robert Millan <rmh@aybabtu.com>
32556
32557 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
32558 Do not print a trailing slash (therefore, the root directory is an
32559 empty string).
32560 (convert_system_path_to_grub_path): Do not remove trailing slash
32561 from make_system_path_relative_to_its_root() output.
32562
32563 * util/i386/pc/grub-install.in: Add trailing slash to output from
32564 make_system_path_relative_to_its_root().
32565
32566 2008-05-06 Robert Millan <rmh@aybabtu.com>
32567
32568 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
32569 ensures that output lines aren't intermangled with those sent to
32570 stderr (via grub_util_info()).
32571 * util/grub-probe.c (grub_refresh): Likewise.
32572 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
32573
32574 2008-05-05 Christian Franke <franke@computer.org>
32575
32576 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
32577 Add Cygwin device names.
32578 (get_ide_disk_name) [__CYGWIN__]: Likewise.
32579 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
32580 (check_device): Return error instead of success on empty name.
32581 (make_device_map): Move label inside linux specific code to
32582 prevent compiler warning.
32583
32584 2008-04-30 Robert Millan <rmh@aybabtu.com>
32585
32586 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
32587 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
32588 first boot option.
32589 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
32590
32591 2008-04-29 Robert Millan <rmh@aybabtu.com>
32592
32593 * docs/grub.cfg: New file (example GRUB configuration).
32594
32595 2008-04-26 Robert Millan <rmh@aybabtu.com>
32596
32597 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
32598 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
32599 and `disk/ieee1275/nand.c'.
32600
32601 2008-04-25 Bean <bean123ch@gmail.com>
32602
32603 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
32604 i386-linuxbios.
32605
32606 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
32607 change the buffer size to 4096 for cdrom device.
32608
32609 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
32610 and nand.mod.
32611 (_linux_mod_SOURCES): New variable.
32612 (_linux_mod_CFLAGS): Likewise.
32613 (_linux_mod_LDFLAGS): Likewise.
32614 (linux_mod_SOURCES): Likewise.
32615 (linux_mod_CFLAGS): Likewise.
32616 (linux_mod_LDFLAGS): Likewise.
32617 (nand_mod_SOURCES): Likewise.
32618 (nand_mod_CFLAGS): Likewise.
32619 (nand_mod_LDFLAGS): Likewise.
32620
32621 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
32622 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
32623 type property. (nand device in olpc don't have this property)
32624
32625 * include/grub/disk.h (grub_disk_dev_id): New macro
32626 GRUB_DISK_DEVICE_NAND_ID.
32627
32628 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
32629 function prototype.
32630 (grub_rescue_cmd_initrd): Likewise.
32631
32632 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
32633 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
32634 ofw_cif_handler and ofw_idt, adjust padding number.
32635
32636 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
32637 GRUB_MACHINE_IEEE1275 is defined.
32638
32639 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
32640 Use NESTED_FUNC_ATTR attribute on the hook parameter.
32641
32642 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
32643 on nested function heap_init.
32644 (grub_upper_mem): New variable for i386-ieee1275.
32645 (grub_get_extended_memory): New function for i386-ieee1275.
32646 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
32647
32648 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
32649 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
32650 property.
32651
32652 * loader/i386/ieee1275/linux.c: New file.
32653
32654 * loader/i386/ieee1275/linux_normal.c: New file.
32655
32656 * disk/ieee1275/nand.c: New file.
32657
32658 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
32659
32660 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
32661 value.
32662 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
32663
32664 2008-04-18 Robert Millan <rmh@aybabtu.com>
32665
32666 Restructures early code path on ieee1275 to unify grub_main() as
32667 the first C function that is executed in every platform.
32668
32669 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
32670 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
32671 cmain().
32672 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
32673 * kern/ieee1275/cmain.c (cmain): Rename to ...
32674 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
32675 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
32676 at the beginning.
32677
32678 2008-04-18 Robert Millan <rmh@aybabtu.com>
32679
32680 * util/update-grub.in: Fix syntax error when setting
32681 `GRUB_PRELOAD_MODULES'.
32682 Reported by Stephane Chazelas <stephane@artesyncp.com>
32683
32684 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
32685
32686 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
32687 section into account, newer toolchains generate unique build ids
32688 * configure.ac: remove the test for --build-id=none acceptance,
32689 we want build ids to be preserved
32690 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
32691 far from other sections don't cause the raw binary images grow
32692 size
32693
32694 2008-04-15 Robert Millan <rmh@aybabtu.com>
32695
32696 * disk/lvm.c: Update copyright year.
32697 * kern/misc.c: Likewise.
32698
32699 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32700
32701 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
32702 there is no memory left for physical volume name.
32703
32704 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32705
32706 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
32707 volume name mapping to support bigger than 9 character names properly.
32708
32709 2008-04-13 Robert Millan <rmh@aybabtu.com>
32710
32711 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
32712 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
32713
32714 2008-04-13 Christian Franke <franke@computer.org>
32715
32716 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
32717 to create a floppy emulation boot CD when non emulation mode
32718 does not work.
32719 Enable Joliet CD filesystem extension.
32720
32721 2008-04-13 Robert Millan <rmh@aybabtu.com>
32722
32723 * kern/misc.c (grub_strncat): Fix off-by-one error.
32724 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
32725
32726 * kern/env.c (grub_env_context_close): Clear current context, not
32727 previous one.
32728 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
32729
32730 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
32731
32732 2008-04-13 Robert Millan <rmh@aybabtu.com>
32733
32734 Improve robustness when handling LVM.
32735
32736 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
32737 (and leave `*p' unmodified).
32738 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
32739 through it.
32740 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
32741 iterating through it.
32742 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
32743 through it.
32744 (grub_lvm_scan_device): Check the return value (and fail gracefully
32745 when due) on each grub_lvm_getvalue() or grub_strstr() call.
32746 Don't assume `vg->pvs != NULL' when iterating through it.
32747
32748 2008-04-13 Robert Millan <rmh@aybabtu.com>
32749
32750 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
32751 * genmk.rb (partmap): New variable.
32752 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
32753 (#{partmap}): New target rule.
32754 * genpartmaplist.sh: New file.
32755 * Makefile.in (pkglib_DATA): Add partmap.lst.
32756 (partmap.lst): New target rule.
32757 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
32758 modules (including all partition maps), instead of preloading them.
32759
32760 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
32761
32762 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
32763 `linux-boot-prober' (if installed) to detect other operating
32764 systems which are installed on the computer and add them to
32765 the boot menu.
32766 * conf/common.rmk: Build and install 30_os-prober.
32767
32768 2008-04-12 Robert Millan <rmh@aybabtu.com>
32769
32770 * kern/powerpc/ieee1275/init.c: Move from here ...
32771 * kern/ieee1275/init.c: ... to here. Update all users.
32772
32773 * kern/powerpc/ieee1275/cmain.c: Move from here ...
32774 * kern/ieee1275/cmain.c: ... to here. Update all users.
32775
32776 * kern/powerpc/ieee1275/openfw.c: Move from here ...
32777 * kern/ieee1275/openfw.c: ... to here. Update all users.
32778
32779 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
32780 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
32781
32782 2008-04-10 Pavel Roskin <proski@gnu.org>
32783
32784 * configure.ac: Always use "_cv_" in cache variables for
32785 compatibility with Autoconf 2.62.
32786
32787 2008-04-07 Robert Millan <rmh@aybabtu.com>
32788
32789 Revert grub/machine/init.h addition by Pavel (since it breaks on
32790 i386-ieee1275 and others):
32791 * util/i386/pc/misc.c: Remove grub/machine/init.h.
32792 * util/powerpc/ieee1275/misc.c: Likewise.
32793
32794 2008-04-07 Robert Millan <rmh@aybabtu.com>
32795
32796 * util/grub-probe.c (probe): Improve error message.
32797
32798 2008-04-07 Robert Millan <rmh@aybabtu.com>
32799
32800 * util/biosdisk.c (read_device_map): Skip devices that don't exist
32801 (this prevents the presence of a bogus entry from ruining the whole
32802 thing).
32803
32804 2008-04-06 Pavel Roskin <proski@gnu.org>
32805
32806 * util/biosdisk.c: Include grub/util/biosdisk.h.
32807 * util/grub-fstest.c (execute_command): Make static.
32808 * util/grub-mkdevicemap.c (check_device): Likewise.
32809 * util/i386/pc/misc.c: Include grub/machine/init.h.
32810 * util/powerpc/ieee1275/misc.c: Likewise.
32811 * util/lvm.c: Include grub/util/lvm.h.
32812 * util/misc.c: Include grub/kernel.h, grub/misc.h and
32813 grub/cache.h.
32814 * util/raid.c: Include grub/util/raid.h.
32815 (grub_util_getdiskname): Make static.
32816
32817 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
32818 grub_hostfs_fini(), as they are called from grub_init_all() and
32819 grub_fini_all() respectively. This fixes an infinite loop in
32820 grub-fstest due to double registration of hostfs.
32821 Reported by Christian Franke <Christian.Franke@t-online.de>
32822
32823 2008-04-05 Pavel Roskin <proski@gnu.org>
32824
32825 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
32826 all 8 functions. Otherwise, probe function 0 only.
32827
32828 2008-04-04 Pavel Roskin <proski@gnu.org>
32829
32830 * commands/lspci.c (grub_lspci_iter): Print the bus number
32831 correctly.
32832
32833 * commands/lspci.c (grub_pci_classes): Fix typos.
32834 (grub_lspci_iter): Don't print func twice. Print vendor ID
32835 before device ID, as it's normally done.
32836
32837 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
32838 Fix signedness warnings.
32839 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
32840 Likewise.
32841 * util/ieee1275/get_disk_name.c: Include config.h so that
32842 _GNU_SOURCE is defined and getline() is declared. Mark an
32843 unused argument as such. Fix a signedness warning.
32844
32845 2008-04-02 Pavel Roskin <proski@gnu.org>
32846
32847 * genkernsyms.sh.in: Use more robust assignments for CC and
32848 srcdir. Quote srcdir.
32849 * gensymlist.sh.in: Likewise. Assert at the compile time that
32850 the symbol table is not empty.
32851
32852 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
32853 * fs/cpio.c (grub_cpio_read): Likewise.
32854
32855 2008-04-01 Pavel Roskin <proski@gnu.org>
32856
32857 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
32858 * disk/host.c (grub_host_open): Likewise.
32859 * disk/loopback.c (grub_loopback_open): Likewise.
32860 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
32861 disk->id as in disk/host.c, not a multi-character constant.
32862
32863 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
32864 later is obsolete, potentially dangerous and sets a bad example.
32865 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
32866 * util/misc.c (grub_util_get_image_size): Likewise.
32867
32868 * disk/loopback.c (options): Improve help for "--partitions".
32869
32870 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
32871 options to align them with the short options, e.g. "echo -e".
32872
32873 2008-03-31 Bean <bean123ch@gmail.com>
32874
32875 * video/reader/png.c (grub_png_data): New member is_16bit and
32876 image_data.
32877 (grub_png_decode_image_header): Detect 16 bit png image.
32878 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
32879 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
32880 (grub_video_reader_png): Release memory occupied by image_data.
32881
32882 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
32883 4096 bytes.
32884 (grub_nfs_mount): Skip the test for sector per cluster.
32885
32886 * include/grub/ntfs.h (MAX_SPC): Removed.
32887
32888 2008-03-31 Bean <bean123ch@gmail.com>
32889
32890 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
32891 (grub_probe_SOURCES): Add fs/afs.c.
32892 (grub_fstest_SOURCES): Likewise.
32893 (afs_mod_SOURCES): New variable.
32894 (afs_mod_CFLAGS): Likewise.
32895 (afs_mod_LDFLAGS): Likewise.
32896
32897 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
32898 (grub_emu_SOURCES): Likewise.
32899
32900 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32901
32902 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32903
32904 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32905
32906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32907
32908 * fs/afs.c: New file.
32909
32910 2008-03-30 Pavel Roskin <proski@gnu.org>
32911
32912 * disk/host.c: Include grub/misc.h to fix a warning.
32913 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
32914 warnings about implicit declarations.
32915
32916 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
32917 variable.
32918 * include/grub/i386/loader.h: Change declaration of
32919 grub_linux_boot() to match what grub_loader_set() expects.
32920 * util/getroot.c (grub_guess_root_device): Return const char* to
32921 fix a warning.
32922 * util/grub-probe.c (probe): Fix a warning about uninitialized
32923 abstraction_name variable.
32924 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
32925 second argument as unused to fix a warning.
32926
32927 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
32928 missing grub_error() call.
32929
32930 * util/update-grub_lib.in: Define datarootdir, since Autoconf
32931 2.60 and newer uses it to define datadir.
32932
32933 * commands/sleep.c: Fix warning about implicit declaration.
32934 * disk/memdisk.c: Likewise.
32935 * loader/aout.c: Likewise.
32936 * loader/i386/bsd_normal.c: Likewise.
32937 * util/grub-probe.c: Likewise.
32938
32939 * commands/i386/cpuid.c (has_longmode): Make static.
32940 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
32941 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
32942
32943 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
32944 GDT. This is more robust, as %ds can change.
32945 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
32946 calling real_to_prot().
32947 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
32948
32949 2008-03-28 Pavel Roskin <proski@gnu.org>
32950
32951 * kern/i386/pc/startup.S: Assert that uncompressed functions
32952 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
32953 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
32954 code, as they push parts of the code (error handlers) beyond
32955 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
32956 code as correctness and size.
32957
32958 2008-03-28 Pavel Roskin <proski@gnu.org>
32959
32960 * kern/i386/pc/startup.S
32961 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
32962 data block address to the real mode, keep offset minimal. This
32963 works around a bug in AWARD BIOS on old Athlon systems, which
32964 makes CD detection hang.
32965
32966 2008-03-26 Pavel Roskin <proski@gnu.org>
32967
32968 * normal/color.c (grub_parse_color_name_pair): Make `name' a
32969 const.
32970 * include/grub/normal.h: Add grub_parse_color_name_pair()
32971 declaration.
32972
32973 2008-03-24 Bean <bean123ch@gmail.com>
32974
32975 * disk/i386/pc/biosdisk.c (cd_start): Removed.
32976 (cd_count): Removed.
32977 (cd_drive): New variable.
32978 (grub_biosdisk_get_drive): Don't check for (cdN) device.
32979 (grub_biosdisk_call_hook): Likewise.
32980 (grub_biosdisk_iterate): Change cdrom detection method.
32981 (grub_biosdisk_open): Replace cd_start with cd_drive.
32982 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
32983 detect cdrom device.
32984
32985 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
32986 Removed.
32987 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
32988 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
32989 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
32990 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
32991 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
32992 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
32993 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
32994 (grub_biosdisk_cdrp): New structure.
32995 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
32996
32997 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
32998
32999 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
33000 device.
33001
33002 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
33003 New function.
33004
33005 2008-03-20 Robert Millan <rmh@aybabtu.com>
33006
33007 Remove 2 TiB limit in ata.mod.
33008 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
33009 (grub_ata_dumpinfo): Print sector count with 0x%llx.
33010 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
33011 grub_uint64_t instead of grub_uint32_t.
33012
33013 2008-03-05 Bean <bean123ch@gmail.com>
33014
33015 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
33016 (grub_multiboot): Set boot device.
33017
33018 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
33019
33020 2008-03-02 Bean <bean123ch@gmail.com>
33021
33022 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
33023 symlink_buffer.
33024
33025 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
33026
33027 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
33028 texinfo.tex.
33029
33030 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
33031 modified.
33032
33033 * docs/fdl.texi: New file.
33034
33035 * docs/mdate-sh: New file. Copied from gnulib.
33036 * docs/texinfo.tex: Likewise.
33037
33038 * config.guess: Updated from gnulib.
33039 * install-sh: Likewise.
33040
33041 2008-02-28 Robert Millan <rmh@aybabtu.com>
33042
33043 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
33044 (aout_mod_SOURCES): New variable.
33045 (aout_mod_CFLAGS): Likewise.
33046 (aout_mod_LDFLAGS): Likewise.
33047
33048 * conf/i386-ieee1275.rmk: Likewise.
33049
33050 2008-02-28 Robert Millan <rmh@aybabtu.com>
33051
33052 * util/update-grub.in: Reorganise terminal validity check. Accept
33053 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
33054 Based on suggestion by Franklin PIAT.
33055
33056 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
33057
33058 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
33059 function.
33060 * util/getroot.c (grub_util_check_block_device): New function that
33061 returns the given argument if it is a block device and returns NULL else.
33062 * util/grub-probe.c (argument_is_device): New variable.
33063 (probe): Promote device_name from a variable to an argument. Receive
33064 device_name from grub_util_check_block_device() if path is NULL and from
33065 grub_guess_root_device() else. Do not free() device_name anymore.
33066 (options): Introduce new parameter '-d, --device'.
33067 (main): Add description of the new parameter to the help screen.
33068 Rename path variable to argument. Set argument_is_device if the '-d'
33069 option is given. Pass argument to probe() depending on
33070 argument_is_device.
33071
33072 2008-02-24 Bean <bean123ch@gmail.com>
33073
33074 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
33075 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
33076 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
33077 (GRUB_ISO9660_VOLDESC_PART): Likewise.
33078 (GRUB_ISO9660_VOLDESC_END): Likewise.
33079 (grub_iso9660_primary_voldesc): New member escape.
33080 (grub_iso9660_data): New member joliet.
33081 (grub_iso9660_convert_string): New function.
33082 (grub_iso9660_mount): Detect joliet extension.
33083 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
33084 (grub_iso9660_iso9660_label): Likewise.
33085
33086 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
33087 (grub_setup_SOURCES): Add fs/udf.c.
33088 (grub_fstest_SOURCES): Likewise.
33089 (udf_mod_SOURCES): New variable.
33090 (udf_mod_CFLAGS): Likewise.
33091 (udf_mod_LDFLAGS): Likewise.
33092
33093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
33094 (grub_emu_SOURCES): Likewise.
33095
33096 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33097
33098 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33099
33100 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33101
33102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33103
33104 * fs/udf.c: New file.
33105
33106 2008-02-24 Robert Millan <rmh@aybabtu.com>
33107
33108 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
33109 (normal/lexer.c_DEPENDENCIES): New variables.
33110 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33111 (normal/lexer.c_DEPENDENCIES): Likewise.
33112 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
33113 (normal/lexer.c_DEPENDENCIES): Likewise.
33114 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
33115 (normal/lexer.c_DEPENDENCIES): Likewise.
33116 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33117 (normal/lexer.c_DEPENDENCIES): Likewise.
33118 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33119 (normal/lexer.c_DEPENDENCIES): Likewise.
33120
33121 2008-02-23 Robert Millan <rmh@aybabtu.com>
33122
33123 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
33124 since they were intended to be in hex. This didn't break previously
33125 because of a bug in gpt_partition_map_iterate() (see below).
33126
33127 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
33128 when checking the validity of GPT header.
33129 Remove `partno', since it always provides the same information as `i'.
33130
33131 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
33132
33133 * include/grub/efi/time.h: Fix a wrong comment.
33134
33135 2008-02-19 Pavel Roskin <proski@gnu.org>
33136
33137 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
33138 message.
33139
33140 2008-02-19 Bean <bean123ch@gmail.com>
33141
33142 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
33143 (aout_mod_SOURCES): New variable.
33144 (aout_mod_CFLAGS): Likewise.
33145 (aout_mod_LDFLAGS): Likewise.
33146 (_bsd_mod_SOURCES): New variable.
33147 (_bsd_mod_CFLAGS): Likewise.
33148 (_bsd_mod_LDFLAGS): Likewise.
33149 (bsd_mod_SOURCES): New variable.
33150 (bsd_mod_CFLAGS): Likewise.
33151 (bsd_mod_LDFLAGS): Likewise.
33152
33153 * include/grub/aout.h: New file.
33154
33155 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
33156
33157 * include/grub/i386/bsd.h: New file.
33158
33159 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
33160 to make it public.
33161
33162 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
33163 function is called, so that it's possible to change it inside the hook.
33164 (grub_elf64_load): Likewise.
33165 (grub_elf_file): Don't close the file if elf header is not found.
33166 (grub_elf_close): Close the file if grub_elf_file fails (The new
33167 grub_elf_file won't close it).
33168 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
33169 (grub_elf64_size): Likewise.
33170
33171 * kern/i386/loader.S (grub_unix_real_boot): New function.
33172
33173 * loader/aout.c: New file.
33174
33175 * loader/i386/bsd.c: New file.
33176
33177 * loader/i386/bsd_normal.c: New file.
33178
33179 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
33180
33181 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
33182 can test other formats.
33183
33184 2008-02-19 Robert Millan <rmh@aybabtu.com>
33185
33186 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
33187 (grub_gpt_partition_type_empty): Redefine with macro from
33188 `<grub/gpt_partition.h>'.
33189 (gpt_partition_map_iterate): Adjust partition type comparison.
33190
33191 Export `entry' as partmap-specific `part.data' struct.
33192 (grub_gpt_header, grub_gpt_partentry): Move from here ...
33193
33194 * include/grub/gpt_partition.h (grub_gpt_header)
33195 (grub_gpt_partentry): ... to here (new file).
33196
33197 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
33198
33199 (grub_gpt_partition_type_bios_boot): New const variable, defined
33200 with macro from `<grub/gpt_partition.h>'.
33201
33202 (setup): Replace `first_start' with `embed_region', which keeps
33203 track of the embed region (and is partmap-agnostic).
33204
33205 Replace find_first_partition_start() with find_usable_region(),
33206 which finds a usable region for embedding using partmap-specific
33207 knowledge (supports PC/MSDOS and GPT).
33208
33209 Fix all assumptions that the embed region start at sector 1, using
33210 `embed_region.start' from now on. Similarly, use `embed_region.end'
33211 rather than `first_start' to calculate available size.
33212
33213 In grub_util_info() message, replace "into after the MBR" with an
33214 indication of the specific sector our embed region starts at.
33215
33216 2008-02-19 Robert Millan <rmh@aybabtu.com>
33217
33218 * DISTLIST: Replace `commands/ieee1275/halt.c' and
33219 `commands/ieee1275/reboot.c' with `commands/halt.c' and
33220 `commands/reboot.c'.
33221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33222 (halt_mod_SOURCES): Likewise.
33223 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33224 (halt_mod_SOURCES): Likewise.
33225
33226 2008-02-17 Christian Franke <franke@computer.org>
33227
33228 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
33229
33230 2008-02-17 Robert Millan <rmh@aybabtu.com>
33231
33232 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33233 set `first_start' to 0 for non-PC/MSDOS partition maps.
33234
33235 2008-02-16 Robert Millan <rmh@aybabtu.com>
33236
33237 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33238 do not assume partition map is PC/MSDOS before performing checks that
33239 are specific to that layout.
33240
33241 2008-02-13 Robert Millan <rmh@aybabtu.com>
33242
33243 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
33244 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
33245 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
33246
33247 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
33248
33249 * configure.ac: Only a cosmetic change on the handling of
33250 -fno-stack-protector.
33251
33252 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
33253
33254 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
33255 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
33256 reboot.c.
33257 (grub_install_SOURCES): Add halt.mod and reboot.mod.
33258 (halt_mod_SOURCES): New variable.
33259 (halt_mod_CFLAGS): Likewise.
33260 (halt_mod_LDFLAGS): Likewise.
33261 (reboot_mod_SOURCES): Likewise.
33262 (reboot_mod_CFLAGS): Likewise.
33263 (reboot_mod_LDFLAGS): Likewise.
33264
33265 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
33266 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
33267 reboot.c.
33268 (halt_mod_SOURCES): Likewise.
33269 (reboot_mod_SOURCES): Likewise.
33270
33271 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
33272 commands/i386/pc/reboot.c by commands/reboot.c.
33273 (reboot_mod_SOURCES): Likewise.
33274
33275 * commands/i386/pc/reboot.c: merge this file ...
33276
33277 * commands/ieee1275/reboot.c: ... and this file ...
33278
33279 * commands/reboot.c: ... to this file.
33280 Add some precompiler directive to include the correct header for
33281 each machine.
33282
33283 * commands/ieee1275/halt.c: move this file ...
33284
33285 * commands/halt.c: ... to here.
33286 Add some precompiler directive to include the correct header for
33287 each machine.
33288
33289 * include/grub/efi/efi.h (grub_reboot): New function declaration.
33290 (grub_halt): Likewise.
33291
33292 * kern/efi/efi.c (grub_reboot): New function.
33293 (grub_halt): Likewise.
33294
33295 2008-02-12 Robert Millan <rmh@aybabtu.com>
33296
33297 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
33298 /dev (like it is done for /dev/mapper). This doesn't provide support
33299 for EVMS, but at least it is now easy to identify the problem when it
33300 arises.
33301
33302 2008-02-11 Robert Millan <rmh@aybabtu.com>
33303
33304 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
33305 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
33306 comparing it with -1, not 0.
33307
33308 2008-02-10 Robert Millan <rmh@aybabtu.com>
33309
33310 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
33311 `disk/lvm.c'.
33312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33313 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
33314
33315 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
33316 `disk/lvm.c' to the end of the list.
33317 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33318 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33319
33320 2008-02-10 Robert Millan <rmh@aybabtu.com>
33321
33322 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
33323 grub_print_error() instead. This will let user know why we're entering
33324 rescue mode.
33325 Based on suggestions from Sam Morris.
33326
33327 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
33328
33329 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
33330 on remaining N args, instead of "--" arg N times.
33331
33332 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
33333
33334 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
33335 (fill_with_default_glyph): Changed to use unknown_glyph for fill
33336 pattern for unknown glyphs.
33337
33338 2008-02-09 Robert Millan <rmh@aybabtu.com>
33339
33340 * configure.ac: Probe for `help2man'.
33341 * Makefile.in (builddir): New variable.
33342 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
33343 or otherwise add a few flags/options to it.
33344 (install-local): For every executable utility or script that is
33345 installed, invoke $(HELP2MAN) to install a manpage based on --help
33346 output.
33347
33348 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
33349 that it doesn't prevent --help from working in build tree.
33350
33351 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
33352 with `bug-grub@gnu.org'.
33353 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
33354 * util/update-grub.in (usage): New function.
33355 Implement proper argument check, with support for --help and --version
33356 (as well as existing -y).
33357
33358 2008-02-09 Christian Franke <franke@computer.org>
33359
33360 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
33361 avoid overwriting previous output.
33362 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
33363
33364 2008-02-09 Robert Millan <rmh@aybabtu.com>
33365
33366 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
33367 drawing the menu.
33368
33369 2008-02-09 Robert Millan <rmh@aybabtu.com>
33370
33371 * commands/sleep.c: New file.
33372 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
33373 (sleep_mod_SOURCES): New variable.
33374 (sleep_mod_CFLAGS): Likewise.
33375 (sleep_mod_LDFLAGS): Likewise.
33376
33377 2008-02-09 Robert Millan <rmh@aybabtu.com>
33378
33379 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
33380 situations in which we can deduce the RAID size and the superblock
33381 doesn't match it.
33382
33383 2008-02-09 Robert Millan <rmh@aybabtu.com>
33384
33385 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
33386 and return a grub_diskmemberlist_t composed of LVM physical volumes.
33387 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
33388
33389 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
33390 and return a grub_diskmemberlist_t composed of physical array members.
33391 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
33392
33393 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
33394 prototype.
33395 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
33396 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
33397 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
33398
33399 * util/grub-probe.c (probe): Move partmap probing code from here ...
33400 (probe_partmap): ... to here.
33401 (probe): Use probe_partmap() once for the disk we're probing, and
33402 additionally, when such disk contains a memberlist() struct member,
33403 once for each disk that is contained in the structure returned by
33404 memberlist().
33405
33406 2008-02-09 Robert Millan <rmh@aybabtu.com>
33407
33408 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
33409 environment variable to 'all' in order to obtain debug output from
33410 non-util/ code.
33411 * util/i386/pc/grub-setup.c (main): Likewise.
33412
33413 2008-02-08 Robert Millan <rmh@aybabtu.com>
33414
33415 * disk/raid.c (grub_raid_scan_device): Check for
33416 `array->device[sb.this_disk.number]' rather than for
33417 `array->device[sb.this_disk.number]->name', since the latter is not
33418 guaranteed to be accessible.
33419
33420 2008-02-08 Robert Millan <rmh@aybabtu.com>
33421
33422 * disk/raid.c: Update copyright.
33423 * fs/cpio.c: Likewise.
33424 * include/grub/raid.h: Likewise.
33425 * loader/i386/pc/multiboot.c: Likewise.
33426 * util/hostfs.c: Likewise.
33427
33428 2008-02-08 Robert Millan <rmh@aybabtu.com>
33429
33430 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
33431 to a grub_disk_t array.
33432 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
33433 `device[x]'.
33434 (grub_raid_scan_device): Replace `device[x].name' accesses with
33435 `device[x]->name'. Simplify initialization of `array->device[x]'.
33436
33437 2008-02-08 Robert Millan <rmh@aybabtu.com>
33438
33439 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
33440 grub_dprintf() calls.
33441 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
33442 error message.
33443
33444 2008-02-07 Christian Franke <franke@computer.org>
33445
33446 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
33447 instead of fseek and ftell to support large files.
33448 (grub_hostfs_read): Likewise.
33449
33450 2008-02-07 Robert Millan <rmh@aybabtu.com>
33451
33452 Patch from Jeroen Dekkers.
33453 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
33454 failure, since successfully reading all array members might not be
33455 required.
33456
33457 2008-02-06 Robert Millan <rmh@aybabtu.com>
33458
33459 * util/grub-probe.c (probe): Simplify partmap probing (with the
33460 assumption that the first word up to the underscore equals to
33461 the module name).
33462
33463 2008-02-06 Christian Franke <franke@computer.org>
33464
33465 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
33466 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
33467 last block of a cpio or tar stream.
33468 Check for "TRAILER!!!" instead of any empty data
33469 block to detect last block of a cpio stream.
33470 (grub_cpio_dir): Fix constness of variable np.
33471 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
33472 cpio or tar trailer is detected. This fixes a crash
33473 on open of a non existing file.
33474
33475 2008-02-05 Bean <bean123ch@gmail.com>
33476
33477 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
33478 address of entry.
33479 (grub_multiboot_load_elf64): Likewise.
33480 (grub_multiboot): Initialize mbi structure.
33481
33482 * util/grub-fstest.c: Don't include unused header file script.h.
33483
33484 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
33485 of file.
33486 (grub_fstest_SOURCES): Likewise.
33487
33488 2008-02-05 Robert Millan <rmh@aybabtu.com>
33489
33490 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
33491 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
33492 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
33493 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
33494
33495 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
33496 (translation_table): Replace hardcoded values with macros
33497 provided by `<grub/term.h>'.
33498
33499 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
33500 (keyboard_map): Correct/add a few values, with macros provided
33501 by `<grub/term.h>'.
33502 (keyboard_map_shift): Zero values that don't differ from their
33503 `keyboard_map' equivalents.
33504 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
33505 Discard the second scan code that is always sent by Caps lock.
33506 Only use `keyboard_map_shift' when it provides a non-zero value,
33507 otherwise fallback to `keyboard_map'.
33508
33509 2008-02-04 Bean <bean123ch@gmail.com>
33510
33511 * Makefile.in (enable_grub_fstest): New variable.
33512
33513 * conf/common.rmk (grub_fstest_init.lst): New rule.
33514 (grub_fstest_init.h): Likewise.
33515 (grub_fstest_init.c): Likewise.
33516 (util/grub-fstest.c_DEPENDENCIES): New variable.
33517 (grub_fstest_SOURCES): Likewise.
33518
33519 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
33520
33521 * util/grub-fstest.c: New file.
33522
33523 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33524
33525 Make grub-setup handle a separate root device.
33526
33527 * util/i386/pc/grub-setup.c (setup): Always open the root device,
33528 so that the root device can be compared with the destination
33529 device.
33530 When embedding the core image, if the root and destination devices
33531 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
33532 0xFF.
33533 When not embedding, set ROOT_DRIVE to 0xFF.
33534
33535 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33536
33537 Add support for having a grub directory in a different drive. This
33538 is still only the data handling part.
33539
33540 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
33541 (codestart): Save %dh in GRUB_ROOT_DRIVE.
33542 (grub_root_drive): New variable.
33543
33544 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
33545 instead of GRUB_BOOT_DRIVE to construct a device name. Set
33546 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
33547 as it was.
33548
33549 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
33550
33551 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
33552 macro.
33553 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
33554
33555 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
33556 is bogus, because PXE booting does not specify any drive
33557 correctly.
33558
33559 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
33560 am not sure if this is really correct.
33561
33562 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
33563 is always identical to the boot drive when booting from a CD.
33564
33565 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
33566 longer.
33567 (root_drive): New variable.
33568 (real_start): Unconditionally set %dh to ROOT_DRIVE.
33569 (setup_sectors): Push %dx right after popping it, because %dh will
33570 be modified later.
33571 (copy_buffer): Restore %dx.
33572
33573 2008-02-03 Robert Millan <rmh@aybabtu.com>
33574
33575 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
33576 use `cdboot.img' for cdrom images.
33577
33578 2008-02-03 Robert Millan <rmh@aybabtu.com>
33579
33580 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
33581 only setup gfxterm when `font' command has succeeded.
33582
33583 2008-02-03 Robert Millan <rmh@aybabtu.com>
33584
33585 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
33586 (grub_rescue_cmd_multiboot_loader)
33587 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
33588
33589 2008-02-03 Pavel Roskin <proski@gnu.org>
33590
33591 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
33592 %edx and %esi from stack only after grub_gate_a20() is called.
33593 grub_gate_a20() clobbers %edx.
33594
33595 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33596
33597 * configure.ac (AC_INIT): Bumped to 1.96.
33598
33599 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
33600 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
33601 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
33602 video/readers/png.c.
33603
33604 2008-02-03 Bean <bean123ch@gmail.com>
33605
33606 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
33607 (cdboot_img_SOURCES): New variable.
33608 (cdboot_img_ASFLAGS): New variable.
33609 (cdboot_img_LDFLAGS): New variable.
33610
33611 * boot/i386/pc/cdboot.S: New file.
33612
33613 * disk/i386/pc/biosdisk.c (cd_start): New variable.
33614 (cd_count): Likewise.
33615 (grub_biosdisk_get_drive): Add support for cd device.
33616 (grub_biosdisk_call_hook): Likewise.
33617 (grub_biosdisk_iterate): Likewise.
33618 (grub_biosdisk_open): Likewise.
33619 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
33620 (grub_biosdisk_rw): Support reading from cd device.
33621 (GRUB_MOD_INIT): Iterate cd devices.
33622
33623 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
33624 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
33625 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
33626
33627 * kern/i386/pc/init.c (make_install_device): Check for cd device.
33628
33629 2008-02-02 Robert Millan <rmh@aybabtu.com>
33630
33631 * commands/read.c: New file.
33632 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
33633 (read_mod_SOURCES): New variable.
33634 (read_mod_CFLAGS): Likewise.
33635 (read_mod_LDFLAGS): Likewise.
33636
33637 2008-02-02 Robert Millan <rmh@aybabtu.com>
33638
33639 * normal/main.c (grub_normal_execute): Check for `menu->size' when
33640 determining whether menu has to be displayed.
33641
33642 2008-02-02 Marco Gerards <marco@gnu.org>
33643
33644 * bus/pci.c: New file.
33645
33646 * include/grub/pci.h: Likewise.
33647
33648 * include/grub/i386/pc/pci.h: Likewise.
33649
33650 * commands/lspci.c: Likewise.
33651
33652 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
33653 `lspci.mod'.
33654 (pci_mod_SOURCES): New variable.
33655 (pci_mod_CFLAGS): Likewise.
33656 (pci_mod_LDFLAGS): Likewise.
33657 (lspci_mod_SOURCES): Likewise.
33658 (lspci_mod_CFLAGS): Likewise.
33659 (lspci_mod_LDFLAGS): Likewise.
33660
33661 2008-02-02 Bean <bean123ch@gmail.com>
33662
33663 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
33664 (grub_ufs_get_file_block): Fix indirect block calculation problem.
33665
33666 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
33667 (grub_xfs_btree_node): New structure.
33668 (grub_xfs_btree_root): New structure.
33669 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
33670 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
33671 (GRUB_XFS_EXTENT_BLOCK): Likewise.
33672 (GRUB_XFS_EXTENT_SIZE): Likewise.
33673 (grub_xfs_read_block): Support btree format type.
33674 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
33675 Use directory block as basic unit.
33676
33677 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
33678
33679 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
33680 __attribute__ ((__regparm__ (1))).
33681
33682 2008-02-01 Robert Millan <rmh@aybabtu.com>
33683
33684 Correct a mistake in previous commit.
33685
33686 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
33687 top.
33688 (normal/command.c_DEPENDENCIES): New variable.
33689
33690 2008-02-01 Robert Millan <rmh@aybabtu.com>
33691
33692 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
33693 top.
33694 (normal/command.c_DEPENDENCIES): New variable.
33695 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
33696 * conf/i386-ieee1275.rmk: Likewise.
33697 * conf/i386-linuxbios.rmk: Likewise.
33698 * conf/i386-pc.rmk: Likewise.
33699 * conf/sparc64-ieee1275.rmk: Likewise.
33700 * conf/powerpc-ieee1275.rmk: Likewise.
33701 (grub_emu_SOURCES): Add `fs/fshelp.c'.
33702
33703 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
33704
33705 2008-02-01 Robert Millan <rmh@aybabtu.com>
33706
33707 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
33708 call at beginning of function.
33709
33710 2008-01-31 Pavel Roskin <proski@gnu.org>
33711
33712 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
33713 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
33714 (grub_mkrescue_SOURCES): Likewise.
33715 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
33716
33717 2008-01-30 Robert Millan <rmh@aybabtu.com>
33718
33719 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
33720 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
33721 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
33722 (grub_probe_SOURCES): ... to here.
33723
33724 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
33725 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
33726 * conf/i386-ieee1275.rmk: Likewise.
33727 * conf/i386-linuxbios.rmk: Likewise.
33728 * conf/powerpc-ieee1275.rmk: Likewise.
33729
33730 2008-01-30 Tristan Gingold <gingold@free.fr>
33731
33732 * kern/rescue.c: Silently accept empty lines.
33733
33734 2008-01-29 Bean <bean123ch@gmail.com>
33735
33736 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
33737 (real_code_2): Code cleanup and change comment style.
33738 (move_memory): Avoid using 32-bit address mode.
33739
33740 2008-01-29 Bean <bean123ch@gmail.com>
33741
33742 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
33743 (png_mod_SOURCES): New variable.
33744 (png_mod_CFLAGS): Likewise.
33745 (png_mod_LDFLAGS): Likewise.
33746
33747 * video/readers/png.c: New file.
33748
33749 2008-01-28 Robert Millan <rmh@aybabtu.com>
33750
33751 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
33752 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
33753 `ifndef GRUB_MOD_GAP' hack.
33754 * util/elf/grub-mkimage.c (add_segments): Likewise.
33755
33756 2008-01-27 Robert Millan <rmh@aybabtu.com>
33757
33758 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
33759 `GRUB_MOD_GAP' for platforms in which it's not defined.
33760 * util/elf/grub-mkimage.c (add_segments): Likewise.
33761
33762 2008-01-27 Robert Millan <rmh@aybabtu.com>
33763
33764 Get grub-emu to build again (including parallel builds).
33765
33766 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
33767 Split into ...
33768 (util/grub-emu.c_DEPENDENCIES): ... this, ...
33769 (normal/execute.c_DEPENDENCIES): ... this, ...
33770 (grub-emu_DEPENDENCIES): ... and this.
33771
33772 * conf/i386-efi.rmk: Likewise.
33773 * conf/i386-linuxbios.rmk: Likewise.
33774 * conf/i386-ieee1275.rmk: Likewise.
33775 * conf/powerpc-ieee1275.rmk: Likewise.
33776 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
33777
33778 2008-01-27 Robert Millan <rmh@aybabtu.com>
33779
33780 * NEWS: Add a few items.
33781
33782 2008-01-27 Robert Millan <rmh@aybabtu.com>
33783
33784 Fix parallel builds with grub-emu. Based on earlier commit for
33785 grub-probe and grub-setup.
33786
33787 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33788 (util/grub-emu.c_DEPENDENCIES): ... this.
33789 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33790 (util/grub-emu.c_DEPENDENCIES): ... this.
33791 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33792 (util/grub-emu.c_DEPENDENCIES): ... this.
33793 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33794 (util/grub-emu.c_DEPENDENCIES): ... this.
33795 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33796 (util/grub-emu.c_DEPENDENCIES): ... this.
33797
33798 2008-01-27 Pavel Roskin <proski@gnu.org>
33799
33800 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
33801 to create a gap between _end and the modules added to the image
33802 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
33803 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
33804 * util/elf/grub-mkimage.c (add_segments): Likewise.
33805
33806 2008-01-26 Pavel Roskin <proski@gnu.org>
33807
33808 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
33809 just return an error.
33810
33811 2008-01-26 Bean <bean123ch@gmail.com>
33812
33813 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
33814 (grub_reiserfs_get_item): Save offset of the next item.
33815 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
33816
33817 2008-01-25 Robert Millan <rmh@aybabtu.com>
33818
33819 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
33820 make all filesystem sources appear together (possibly fixing omissions
33821 while at it).
33822 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33823 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33824 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33825 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33826
33827 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
33828 add `kern/file.c'.
33829 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
33830 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33831 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
33832 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33833
33834 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
33835 (probe): Add a sanity check to make sure of our ability to read
33836 requested files when probing for filesystem type.
33837
33838 * genmk.rb: Update copyright year (2007).
33839
33840 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
33841 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
33842 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
33843 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
33844 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
33845 : Remove function prototypes.
33846
33847 2008-01-25 Robert Millan <rmh@aybabtu.com>
33848
33849 Revert my previous commits (based on wrong assumption of how grub_errno
33850 works).
33851
33852 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
33853 * kern/file.c (grub_file_open): Likewise.
33854
33855 2008-01-24 Pavel Roskin <proski@gnu.org>
33856
33857 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
33858 that hang if GRUB tries to setup colors.
33859 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
33860 colors for firmwares that don't support it.
33861 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
33862 Recognize Open Hack'Ware, set flags to work around its
33863 limitations.
33864
33865 2008-01-24 Robert Millan <rmh@aybabtu.com>
33866
33867 * kern/file.c (grub_file_open): Do not account previous failures of
33868 unrelated functions when grub_errno is checked for.
33869 Reported by Oleg Strikov.
33870
33871 2008-01-24 Bean <bean123ch@gmail.com>
33872
33873 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
33874 (grub_ufs_sblock): New member volume name.
33875 (grub_ufs_find_file): Fix string copy bug.
33876 (grub_ufs_label): Implement this function properly.
33877
33878 * fs/hfs.c (grub_hfs_cnid_type): New enum.
33879 (grub_hfs_iterate_records): Use the correct file number for extents
33880 and catalog file. Fix problem in next index calculation.
33881 (grub_hfs_find_node): Replace recursive function call with loop.
33882 (grub_hfs_iterate_dir): Replace recursive function call with loop.
33883
33884 2008-01-23 Robert Millan <rmh@aybabtu.com>
33885
33886 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
33887 `<grub/symbol.h>' and `<grub/multiboot.h>'.
33888 (grub_multiboot2_real_boot): New function prototype.
33889
33890 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
33891 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
33892
33893 * kern/i386/ieee1275/init.c (grub_os_area_addr)
33894 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
33895
33896 2008-01-23 Robert Millan <rmh@aybabtu.com>
33897
33898 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
33899 #ifdef'ed out grub_printf().
33900
33901 2008-01-23 Robert Millan <rmh@aybabtu.com>
33902
33903 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
33904 grub_dprintf calls, since they make "debug=all" mode unusable.
33905 (grub_console_checkkey): Likewise.
33906
33907 2008-01-23 Robert Millan <rmh@aybabtu.com>
33908
33909 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33910 `term/i386/pc/at_keyboard.c'.
33911 (pkglib_MODULES): Add `serial.mod'.
33912 (serial_mod_SOURCES): New variable.
33913 (serial_mod_CFLAGS): Likewise.
33914 (serial_mod_LDFLAGS): Likewise.
33915
33916 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
33917 `<grub/powerpc/ieee1275/console.h>'.
33918 (grub_keyboard_controller_init): New function prototype.
33919 (grub_console_checkkey): Likewise.
33920 (grub_console_getkey): Likewise.
33921
33922 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
33923 keyboard on i386.
33924
33925 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
33926 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
33927
33928 2008-01-23 Robert Millan <rmh@aybabtu.com>
33929
33930 * kern/i386/pc/init.c (make_install_device): When memdisk image is
33931 present, "(memdisk)/boot/grub" becomes the default prefix.
33932
33933 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
33934 a memdisk tarball with all the modules. Add --overlay=DIR option that
33935 allows users to overlay additional files into the image.
33936
33937 2008-01-23 Robert Millan <rmh@aybabtu.com>
33938
33939 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
33940 and `machine/memory.h'.
33941 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
33942 (_multiboot_mod_SOURCES): New variable.
33943 (_multiboot_mod_CFLAGS): Likewise.
33944 (_multiboot_mod_LDFLAGS): Likewise.
33945 (multiboot_mod_SOURCES): Likewise.
33946 (multiboot_mod_CFLAGS): Likewise.
33947 (multiboot_mod_LDFLAGS): Likewise.
33948
33949 * include/grub/i386/ieee1275/loader.h: New file.
33950
33951 * include/grub/i386/ieee1275/machine.h: Likewise.
33952
33953 * include/grub/i386/ieee1275/memory.h: Likewise.
33954
33955 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
33956 variable declaration.
33957 (grub_os_area_size): Likewise.
33958
33959 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
33960 (grub_lower_mem, grub_upper_mem): New variables.
33961 (grub_stop_floppy): New function (just to make
33962 grub_multiboot2_real_boot() happy).
33963
33964 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
33965 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
33966 (grub_stop): New function.
33967 Include `"../realmode.S"' and `"../loader.S"'.
33968
33969 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
33970 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
33971
33972 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
33973 rely on grub_multiboot2_real_boot() for final boot.
33974
33975 2008-01-22 Robert Millan <rmh@aybabtu.com>
33976
33977 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
33978 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
33979 device that doesn't look like an SD card.
33980 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33981 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
33982 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
33983 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
33984 found.
33985
33986 2008-01-22 Robert Millan <rmh@aybabtu.com>
33987
33988 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
33989 avoid claiming over our own code.
33990
33991 2008-01-22 Bean <bean123ch@gmail.com>
33992
33993 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
33994 (jpeg_mod_SOURCES): New variable.
33995 (jpeg_mod_CFLAGS): Likewise.
33996 (jpeg_mod_LDFLAGS): Likewise.
33997
33998 * video/readers/jpeg.c : New file.
33999
34000 2008-01-22 Bean <bean123ch@gmail.com>
34001
34002 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
34003 there are no more items.
34004
34005 2008-01-21 Robert Millan <rmh@aybabtu.com>
34006
34007 * kern/mm.c (grub_mm_init_region): Improve debug message.
34008
34009 2008-01-21 Robert Millan <rmh@aybabtu.com>
34010
34011 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
34012 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
34013 address.
34014 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
34015 a C macro.
34016 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
34017 Indicates start of upper memory.
34018 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
34019 (generate_image): Abort when image size is big enough to corrupt
34020 upper memory.
34021
34022 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
34023 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
34024 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
34025 instead of hardcoding 0xA0000.
34026 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
34027 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
34028 instead of hardcoding 0xA0000.
34029
34030 2008-01-21 Robert Millan <rmh@aybabtu.com>
34031
34032 * disk/memdisk.c (memdisk_size): New variable.
34033 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
34034 `memdisk_size'.
34035 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
34036 image to dynamic memory.
34037 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
34038 `memdisk_size'. Free memdisk block.
34039
34040 2008-01-21 Robert Millan <rmh@aybabtu.com>
34041
34042 Fix detection of very small filesystems (like tar).
34043
34044 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
34045 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
34046 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
34047 a problem with this disk).
34048
34049 2008-01-21 Robert Millan <rmh@aybabtu.com>
34050
34051 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
34052 on grub_biosdisk_rw_standard() error.
34053
34054 2008-01-21 Robert Millan <rmh@aybabtu.com>
34055
34056 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
34057 recent changes.
34058 * kern/elf.c: Likewise.
34059 * kern/ieee1275/ieee1275.c: Likewise.
34060 * kern/powerpc/ieee1275/openfw.c: Likewise.
34061 * term/ieee1275/ofconsole.c: Likewise.
34062
34063 2008-01-21 Robert Millan <rmh@aybabtu.com>
34064
34065 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
34066
34067 * include/grub/kernel.h (grub_arch_memdisk_addr)
34068 (grub_arch_memdisk_size): Moved from here ...
34069
34070 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
34071 (grub_arch_memdisk_size): ... to here.
34072
34073 2008-01-21 Robert Millan <rmh@aybabtu.com>
34074
34075 Mostly based on bugfix from Bean.
34076
34077 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
34078 attribute with hook() parameter.
34079 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
34080 declaration.
34081 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
34082 attribute with hook() parameter.
34083 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
34084 declaration.
34085
34086 2008-01-21 Robert Millan <rmh@aybabtu.com>
34087
34088 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
34089 (pkglib_MODULES): Add `memdisk.mod'.
34090 (memdisk_mod_SOURCES): New variable.
34091 (memdisk_mod_CFLAGS): Likewise.
34092 (memdisk_mod_LDFLAGS): Likewise.
34093
34094 * disk/memdisk.c: New file.
34095
34096 * include/grub/disk.h (grub_disk_dev_id): Add
34097 `GRUB_DISK_DEVICE_MEMDISK_ID'.
34098
34099 * include/grub/i386/pc/kernel.h
34100 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
34101 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
34102 (grub_kernel_image_size): New variable declaration.
34103 (grub_total_module_size): Likewise.
34104 (grub_memdisk_image_size): Likewise.
34105
34106 * include/grub/i386/pc/memory.h
34107 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
34108
34109 * include/grub/kernel.h: Include `<grub/symbol.h>'.
34110 (grub_arch_memdisk_addr): New variable declaration.
34111 (grub_arch_memdisk_size): Likewise.
34112
34113 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
34114 (grub_arch_memdisk_size): Likewise.
34115
34116 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
34117 (codestart): Replace hardcoded `0x100000' with
34118 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
34119
34120 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
34121 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
34122 not NULL, append the contents of the file it refers to, at the end of
34123 the compressed kernel image. Initialize `grub_memdisk_image_size'
34124 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
34125 (options): Add "memdisk"|'m' option.
34126 (main): Parse --memdisk|-m option, and pass user-provided path as
34127 parameter to generate_image().
34128
34129 2008-01-20 Robert Millan <rmh@aybabtu.com>
34130
34131 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
34132 grub_dprintf() calls from here ...
34133 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
34134
34135 2008-01-20 Robert Millan <rmh@aybabtu.com>
34136
34137 Fix detection of "real mode" when /options/real-mode? doesn't exist.
34138
34139 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
34140 declaration.
34141 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
34142 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
34143 `GRUB_IEEE1275_FLAG_REAL_MODE'.
34144 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
34145 property).
34146 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
34147 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
34148
34149 2008-01-19 Robert Millan <rmh@aybabtu.com>
34150
34151 Get rid of confusing function (superseded by
34152 `grub_ieee1275_get_integer_property')
34153 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
34154 prototype.
34155 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
34156 function.
34157 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
34158 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
34159 in native endianness from grub_ieee1275_get_integer_property().
34160
34161 2008-01-19 Robert Millan <rmh@aybabtu.com>
34162
34163 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
34164 command after "shut-down", since implementations differ on which
34165 the command for halt is.
34166
34167 2008-01-19 Robert Millan <rmh@aybabtu.com>
34168
34169 * include/grub/i386/linuxbios/console.h: Add header protection.
34170 (grub_keyboard_controller_init): New function prototype.
34171 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
34172 (KEYBOARD_COMMAND_READ): Likewise.
34173 (KEYBOARD_COMMAND_WRITE): Likewise.
34174 (KEYBOARD_SCANCODE_SET1): Likewise.
34175 (grub_keyboard_controller_write): New function.
34176 (grub_keyboard_controller_read): Likewise.
34177 (grub_keyboard_controller_init): Likewise.
34178
34179 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
34180 (grub_console_init): On coreboot/LinuxBIOS, call
34181 grub_keyboard_controller_init().
34182
34183 2008-01-19 Robert Millan <rmh@aybabtu.com>
34184
34185 PowerPC changes provided by Pavel Roskin.
34186
34187 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
34188 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
34189 don't rely on cmain() doing it.
34190 * kern/i386/ieee1275/startup.S (_start): Store %eax in
34191 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
34192
34193 2008-01-16 Robert Millan <rmh@aybabtu.com>
34194
34195 * include/grub/i386/linuxbios/memory.h
34196 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
34197 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
34198 receive `table_header' as argument. Instead, probe for it in the
34199 known memory ranges where it can be present.
34200 (grub_available_iterate): Do not pass a fixed `table_header' address
34201 to grub_linuxbios_table_iterate().
34202
34203 2008-01-15 Robert Millan <rmh@aybabtu.com>
34204
34205 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
34206 * conf/i386-ieee1275.rmk: New file.
34207 * include/grub/i386/ieee1275/console.h: Likewise.
34208 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
34209 * include/grub/i386/ieee1275/kernel.h: Likewise.
34210 * include/grub/i386/ieee1275/time.h: Likewise.
34211 * kern/i386/ieee1275/init.c: Likewise.
34212 * kern/i386/ieee1275/startup.S: Likewise.
34213
34214 2008-01-15 Robert Millan <rmh@aybabtu.com>
34215
34216 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
34217 when pointers are 32-bit (but still do set it to one when they are
34218 64-bit).
34219
34220 2008-01-15 Robert Millan <rmh@aybabtu.com>
34221
34222 * include/grub/ieee1275/ieee1275.h
34223 (grub_ieee1275_get_integer_property): New function prototype.
34224
34225 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
34226 (grub_ieee1275_get_integer_property): New function. Wraps around
34227 grub_ieee1275_get_property() to handle endianness.
34228
34229 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
34230 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
34231 where appropriate.
34232 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
34233 (grub_map): Likewise.
34234 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
34235
34236 2008-01-15 Bean <bean123ch@gmail.com>
34237
34238 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
34239 (grub_script_execute_cmdline): Reset grub_errno.
34240
34241 * normal/main.c (read_config_file): Reset grub_errno.
34242
34243 * normal/parse.y (script_init): New.
34244 (script): Move function and menuentry here.
34245 (delimiter): New.
34246 (command): Add delimiter at the end of command.
34247 (commands): Adjust to match the new command.
34248 (commandblock): Remove grub_script_lexer_record_start.
34249 (menuentry): Add grub_script_lexer_record_start, use the new commands.
34250 (if): Use the new commands.
34251
34252 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
34253
34254 2008-01-15 Robert Millan <rmh@aybabtu.com>
34255
34256 * normal/menu.c (run_menu): Move timeout message from here ...
34257 (print_timeout): ... to here.
34258 (run_menu): Use print_timeout() once during initial draw to print
34259 the whole message, and again in every clock tick to update only
34260 the number of seconds.
34261
34262 2008-01-15 Robert Millan <rmh@aybabtu.com>
34263
34264 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
34265 actual size of `available' from grub_ieee1275_get_property(), and
34266 restrict parsing to that bound.
34267
34268 2008-01-15 Christian Franke <franke@computer.org>
34269
34270 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
34271 (argp_program_version): Remove variable.
34272 (argp_program_bug_address): Likewise.
34273 (options): Convert from struct argp_option to struct option.
34274 (struct arguments): Remove.
34275 (parse_opt): Remove.
34276 (usage): New function.
34277 (main): Replace struct args members by simple variables.
34278 Replace argp_parse() by getopt_long().
34279 Add switch to evaluate options.
34280 Add missing "(...)" around root_dev in prefix string.
34281
34282 2008-01-14 Robert Millan <rmh@aybabtu.com>
34283
34284 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
34285 for grub_ieee1275_exit(), in order to improve portability.
34286
34287 2008-01-14 Robert Millan <rmh@aybabtu.com>
34288
34289 * util/grub.d/10_linux.in (prefix): Define.
34290 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
34291
34292 2008-01-13 Pavel Roskin <proski@gnu.org>
34293
34294 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
34295 grub_errno if no errors have been detected.
34296
34297 2008-01-12 Robert Millan <rmh@aybabtu.com>
34298
34299 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
34300 (grub_util_get_dev_abstraction): New function prototype.
34301
34302 * util/getroot.c: Include `<grub/util/getroot.h>'
34303 (grub_util_get_grub_dev): Move detection of abstraction type to ...
34304 (grub_util_get_dev_abstraction): ... here (new function).
34305
34306 * util/grub-probe.c: Convert PRINT_* to an enum. Add
34307 `PRINT_ABSTRACTION'.
34308 (probe): Probe for abstraction type when requested.
34309 (main): Understand `--target=abstraction'.
34310
34311 * util/i386/efi/grub-install.in: Add abstraction module to core
34312 image when it is found to be necessary.
34313 * util/i386/pc/grub-install.in: Likewise.
34314 * util/powerpc/ieee1275/grub-install.in: Likewise.
34315
34316 * util/update-grub_lib.in (font_path): Return system path without
34317 converting to GRUB path.
34318 * util/update-grub.in: Convert system path returned by font_path()
34319 to a GRUB path. Use `grub-probe -t abstraction' to determine what
34320 abstraction module is needed for loading fonts (if any). Export
34321 that as `GRUB_PRELOAD_MODULES'.
34322 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
34323 insmod commands).
34324
34325 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
34326
34327 Remove some unused code from reiserfs.
34328
34329 * fs/reiserfs.c (struct grub_reiserfs_key)
34330 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
34331 (struct grub_reiserfs_node_body): Removed.
34332 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34333 Likewise.
34334 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34335 Likewise.
34336 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34337 Likewise.
34338 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34339 Likewise.
34340 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34341 Likewise.
34342 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
34343 Likewise.
34344 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34345 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34346 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34347
34348 2008-01-10 Robert Millan <rmh@aybabtu.com>
34349
34350 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
34351 Determines if a file is garbage left by packaging systems, etc.
34352 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
34353 for processing /etc/grub.d scripts.
34354 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
34355 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
34356 as a condition for processing Linux images.
34357
34358 2008-01-10 Pavel Roskin <proski@gnu.org>
34359
34360 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
34361 to compile reiserfs.c on PowerPC.
34362
34363 2008-01-10 Robert Millan <rmh@aybabtu.com>
34364
34365 * kern/device.c (grub_device_iterate): Do not abort device iteration
34366 when one of the devices cannot be opened.
34367 * kern/disk.c (grub_disk_open): Do not account previous failures of
34368 unrelated functions when grub_errno is checked for.
34369
34370 2008-01-08 Robert Millan <rmh@aybabtu.com>
34371
34372 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
34373 `! grub_linux_is_bzimage', change order of address comparison to make
34374 it more intuitive, and improve "too big zImage" error message.
34375
34376 2008-01-08 Robert Millan <rmh@aybabtu.com>
34377
34378 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
34379 `$(update-grub_DATA)'.
34380 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
34381 targets.
34382
34383 2008-01-07 Robert Millan <rmh@aybabtu.com>
34384
34385 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
34386 which instruction is modified by grub-setup during installation
34387 (since it wasn't obvious by only looking at this file).
34388
34389 2008-01-07 Robert Millan <rmh@aybabtu.com>
34390
34391 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
34392 listing actual TODO items.
34393
34394 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34395
34396 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
34397 correctly.
34398 (grub_reiserfs_get_key_offset): Likewise.
34399 (grub_reiserfs_set_key_offset): Likewise.
34400 (grub_reiserfs_set_key_type): Likewise.
34401 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
34402
34403 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
34404 better to remove the bitfield version completely.
34405
34406 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34407
34408 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
34409 allocated from the heap, due to the fshelp implementation.
34410 (grub_reiserfs_dir): Free NODE, due to the same reason.
34411
34412 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34413
34414 Mostly from Vincent Pelletier:
34415
34416 * fs/reiserfs.c: New file.
34417
34418 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
34419 (reiserfs_mod_SOURCES): New variable.
34420 (reiserfs_mod_CFLAGS): Likewise.
34421 (reiserfs_mod_LDFLAGS): Likewise.
34422
34423 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
34424 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
34425 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
34426 normal/color.c.
34427
34428 2008-01-06 Robert Millan <rmh@aybabtu.com>
34429
34430 * normal/color.c: Remove `<grub/env.h>'.
34431
34432 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
34433
34434 * include/grub/normal.h: Include <grub/env.h>.
34435
34436 2008-01-05 Robert Millan <rmh@aybabtu.com>
34437
34438 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
34439 usage example with `(hd0,1)'.
34440 Reported by Samuel Thibault.
34441
34442 2008-01-05 Robert Millan <rmh@aybabtu.com>
34443
34444 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
34445 (grub_linux_boot_zimage): Rename to ...
34446 (grub_linux_boot): ... this.
34447 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
34448 (grub_linux_boot_zimage): Conditionalize zImage copy.
34449
34450 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
34451 (grub_linux_boot_bzimage): Remove prototype.
34452 (grub_linux_boot_zimage): Rename to ...
34453 (grub_linux_boot): ... this.
34454
34455 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
34456 (grub_linux_boot): Remove function.
34457
34458 2008-01-05 Robert Millan <rmh@aybabtu.com>
34459
34460 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
34461 (grub_env_write_color_highlight): Likewise.
34462 (grub_wait_after_message): Likewise.
34463
34464 * normal/color.c: New file.
34465
34466 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34467 (normal_mod_DEPENDENCIES): Likewise.
34468
34469 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34470 (normal_mod_DEPENDENCIES): Likewise.
34471
34472 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34473 (normal_mod_DEPENDENCIES): Likewise.
34474
34475 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34476 (normal_mod_DEPENDENCIES): Likewise.
34477
34478 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
34479 for waiting after a message is printed.
34480 * normal/main.c (read_config_file): Likewise.
34481 (grub_normal_init): Register grub_env_write_color_normal() and
34482 grub_env_write_color_highlight() hooks. Mark `color_normal' and
34483 `color_highlight' variables as global.
34484
34485 * normal/menu.c (grub_wait_after_message): New function.
34486 (grub_color_menu_normal): New variable. Replaces ...
34487 (GRUB_COLOR_MENU_NORMAL): ... this macro.
34488 (grub_color_menu_highlight): New variable. Replaces ...
34489 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
34490 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
34491 `GRUB_TERM_COLOR_STANDARD'.
34492 (print_message): Use `grub_setcolorstate' to reload colors. Rename
34493 `normal_code' and `highlight_code' to `old_color_normal' and
34494 `old_color_highlight', respectively.
34495 (grub_menu_init_page): Update colors when drawing the menu, based on
34496 `menu_color_normal' and `menu_color_highlight' variables.
34497 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
34498 a message is printed.
34499
34500 2008-01-05 Robert Millan <rmh@aybabtu.com>
34501
34502 * kern/env.c (grub_env_context_open): Propagate hooks for global
34503 variables to new context.
34504
34505 * kern/main.c (grub_set_root_dev): Export `root' variable.
34506
34507 2008-01-05 Robert Millan <rmh@aybabtu.com>
34508
34509 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
34510 discs unconditionally, since udev and others have options to provide
34511 them.
34512
34513 2008-01-05 Robert Millan <rmh@aybabtu.com>
34514
34515 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
34516
34517 2008-01-04 Christian Franke <franke@computer.org>
34518
34519 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
34520 of eisa_mmap.
34521
34522 2008-01-03 Pavel Roskin <proski@gnu.org>
34523
34524 * kern/i386/linuxbios/init.c: Put "void" to all function
34525 declarations with no arguments.
34526 * kern/powerpc/ieee1275/init.c: Likewise.
34527 * term/i386/pc/at_keyboard.c: Likewise.
34528 * term/i386/pc/vga_text.c: Likewise.
34529 * util/grub-mkdevicemap.c: Likewise.
34530
34531 2008-01-02 Robert Millan <rmh@aybabtu.com>
34532
34533 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
34534 message when loaded image is out of bounds.
34535 (grub_multiboot_load_elf64): Likewise.
34536
34537 2008-01-02 Pavel Roskin <proski@gnu.org>
34538
34539 * util/grub.d/10_linux.in: Try version without ".old" when
34540 looking for initrd. It's better to use initrd from the newer
34541 kernel of the same version than no initrd at all.
34542
34543 2008-01-01 Robert Millan <rmh@aybabtu.com>
34544
34545 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
34546
34547 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
34548
34549 * include/grub/video.h: Added grub_video_unmap_color and
34550 grub_video_get_active_render_target.
34551 (grub_video_adapter): Added unmap_color and get_active_render_target.
34552
34553 * video/video.c: Added grub_video_unmap_color and
34554 grub_video_get_active_render_target.
34555 (grub_video_get_info): Changed method to accept NULL pointer as an
34556 argument to allow detection of active video adapter.
34557
34558 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
34559 grub_video_vbe_unmap_color_int.
34560 Added grub_video_vbe_unmap_color and
34561 grub_video_vbe_get_active_render_target.
34562 (grub_video_vbe_adapter): Added unmap_color and
34563 get_active_render_target.
34564
34565 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
34566 with grub_video_vbe_unmap_color_int.
34567
34568 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
34569 (DEFAULT_NORMAL_COLOR): Likewise.
34570 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
34571 (DEFAULT_FG_COLOR): Removed.
34572 (DEFAULT_BG_COLOR): Likewise.
34573 (DEFAULT_CURSOR_COLOR): Changed value.
34574 (grub_virtual_screen): Added standard_color_setting,
34575 normal_color_setting, highlight_color_setting and term_color.
34576 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
34577 (bitmap_width): Added.
34578 (bitmap_height): Likewise.
34579 (bitmap): Likewise.
34580 (set_term_color): Likewise.
34581 (grub_virtual_screen_setup): Changed to use new terminal coloring
34582 settings.
34583 (grub_gfxterm_init): Added init for bitmap.
34584 (grub_gfxterm_fini): Added destroy for bitmap.
34585 (redraw_screen_rect): Updated to use background bitmap and new
34586 terminal coloring.
34587 (scroll_up): Added optimization for case when there is no bitmap.
34588 (grub_gfxterm_cls): Fixed to use correct background color.
34589 (grub_virtual_screen_setcolorstate): Changed to use new terminal
34590 coloring.
34591 (grub_virtual_screen_setcolor): Likewise.
34592 (grub_virtual_screen_getcolor): Added.
34593 (grub_gfxterm_background_image_cmd): Likewise.
34594 (grub_video_term): Added setcolor and getcolor.
34595 (MOD_INIT): Added registration of background_image command.
34596 (MOD_TERM): Added unregistration for background_image command.
34597
34598 2007-12-30 Pavel Roskin <proski@gnu.org>
34599
34600 * loader/multiboot_loader.c: Fix multiboot command
34601 unregistration. Fix all typos in the word "multiboot".
34602
34603 2007-12-29 Pavel Roskin <proski@gnu.org>
34604
34605 * util/grub.d/10_linux.in: Refactor search for initrd. Add
34606 support for initrd names used in Fedora.
34607
34608 2007-12-26 Bean <bean123ch@gmail.com>
34609
34610 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
34611 (cpio_mod_SOURCES): New variable.
34612 (cpio_mod_CFLAGS): Likewise.
34613 (cpio_mod_LDFLAGS): Likewise.
34614
34615 * fs/cpio.c: New file.
34616
34617 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
34618
34619 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34620
34621 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34622
34623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34624
34625 2007-12-25 Robert Millan <rmh@aybabtu.com>
34626
34627 * include/grub/term.h (struct grub_term): Add `getcolor' function.
34628 (grub_getcolor): New function.
34629
34630 * kern/term.c (grub_getcolor): New function.
34631 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
34632 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
34633 (print_entry): Set normal and highlight colors to
34634 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
34635 respectively, before printing and restore them to old
34636 values afterwards.
34637 (grub_menu_init_page): Likewise. Fill an additional colored space
34638 that would otherwise be left blank.
34639
34640 * term/efi/console.c (grub_console_getcolor): New function.
34641 (struct grub_console_term.getcolor): New variable.
34642 * term/i386/pc/console.c (grub_console_getcolor): New function.
34643 (struct grub_console_term.getcolor): New variable.
34644 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
34645 (struct grub_console_term.getcolor): New variable.
34646
34647 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
34648 (struct grub_console_term.setcolor): Remove variable.
34649 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
34650 (struct grub_console_term.setcolor): Remove variable.
34651 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
34652 (struct grub_console_term.setcolor): Remove variable.
34653 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
34654 (struct grub_console_term.setcolor): Remove variable.
34655
34656 2007-12-25 Robert Millan <rmh@aybabtu.com>
34657
34658 * configure.ac: Search for possible unifont.hex locations, and
34659 define UNIFONT_HEX if found.
34660
34661 * Makefile.in (UNIFONT_HEX): Define variable.
34662 (DATA): Rename to ...
34663 (PKGLIB): ... this. Update all users.
34664 (PKGDATA): New variable.
34665 (pkgdata_IMAGES): Rename to ...
34666 (pkglib_IMAGES): ... this. Update all users.
34667 (pkgdata_MODULES): Rename to ...
34668 (pkglib_MODULES): ... this. Update all users.
34669 (pkgdata_PROGRAMS): Rename to ...
34670 (pkglib_PROGRAMS): ... this. Update all users.
34671 (pkgdata_DATA): Rename to ...
34672 (pkglib_DATA): ... this. Update all users.
34673 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
34674 (unicode.pff, ascii.pff): New rules.
34675 (all-local): Add `$(PKGDATA)' dependency.
34676 (install-local): Process `$(PKGDATA)'.
34677
34678 * util/update-grub_lib.in (font_path): Search for *.pff files in
34679 a few more locations, including `${pkgdata}'.
34680
34681 2007-12-23 Robert Millan <rmh@aybabtu.com>
34682
34683 Patch from Bean <bean123ch@gmail.com>:
34684 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
34685 `size'.
34686
34687 2007-12-21 Bean <bean123ch@gmail.com>
34688
34689 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
34690 (ntfscomp_mod_SOURCES): New variable.
34691 (ntfscomp_mod_CFLAGS): Likewise.
34692 (ntfscomp_mod_LDFLAGS): Likewise.
34693
34694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
34695 (grub_probe_SOURCES): Likewise.
34696 (grub_emu_SOURCES): Likewise.
34697
34698 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34699 (grub_emu_SOURCES): Likewise.
34700
34701 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34702 (grub_emu_SOURCES): Likewise.
34703
34704 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34705 (grub_emu_SOURCES): Likewise.
34706
34707 * fs/ntfs.c (grub_ntfscomp_func): New variable.
34708 (read_run_list): Renamed to grub_ntfs_read_run_list.
34709 (decomp_nextvcn): Moved to ntfscomp.c.
34710 (decomp_getch): Likewise.
34711 (decomp_get16): Likewise.
34712 (decomp_block): Likewise.
34713 (read_block): Likewise.
34714 (read_data): Partially moved to ntfscomp.c.
34715 (fixup): Change unsigned to grub_uint16_t.
34716 (read_mft): Change unsigned long to grub_uint32_t.
34717 (read_attr): Likewise.
34718 (read_data): Likewise.
34719 (read_run_data): Likewise.
34720 (read_run_list): Likewise.
34721 (read_mft): Likewise.
34722
34723 * fs/ntfscomp.c: New file.
34724
34725 * include/grub/ntfs.h: New file.
34726
34727 2007-12-16 Robert Millan <rmh@aybabtu.com>
34728
34729 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
34730 IDE disk check, since Linux is known to support 20 IDE disks.
34731 Reported by Colin Watson.
34732
34733 2007-12-15 Bean <bean123ch@gmail.com>
34734
34735 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
34736 (lnxboot_img_SOURCES): New variable.
34737 (lnxboot_img_ASFLAGS): Likewise.
34738 (lnxboot_img_LDFLAGS): Likewise.
34739
34740 * boot/i386/pc/lnxboot.S: New file.
34741
34742 2007-11-24 Pavel Roskin <proski@gnu.org>
34743
34744 * configure.ac: Test if '--build-id=none' is supported by the
34745 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
34746 objcopy to generate incorrect binary files (binutils
34747 2.17.50.0.18-1 as shipped by Fedora 8).
34748 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
34749 linking, so that build ID doesn't break the test.
34750
34751 2007-11-24 Pavel Roskin <proski@gnu.org>
34752
34753 * include/grub/i386/time.h: use "void" in the argument list
34754 of grub_cpu_idle().
34755 * include/grub/powerpc/time.h: Likewise.
34756 * include/grub/sparc64/time.h: Likewise.
34757
34758 2007-11-18 Christian Franke <franke@computer.org>
34759
34760 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
34761 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
34762 This fixes the problem that function keys did not work in grub-emu.
34763
34764 2007-11-18 Christian Franke <franke@computer.org>
34765
34766 * disk/host.c (grub_host_open): Remove attribute unused from
34767 name parameter. Add check for "host". This fixes the problem
34768 that grub-emu does not find partitions.
34769
34770 2007-11-18 Christian Franke <franke@computer.org>
34771
34772 * util/hostfs.c (is_dir): New function.
34773 (grub_hostfs_dir): Handle missing dirent.d_type case.
34774 (grub_hostfs_read): Add missing fseek().
34775 (grub_hostfs_label): Clear label pointer. This fixes a crash
34776 of grub-emu on "ls (host)".
34777
34778 2007-11-18 Christian Franke <franke@computer.org>
34779
34780 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
34781 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
34782 to 64 bit boundary by default.
34783
34784 2007-11-18 Bean <bean123ch@gmail.com>
34785
34786 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
34787 (hexdump_mod_SOURCES): New variable.
34788 (hexdump_mod_CFLAGS): Likewise.
34789 (hexdump_mod_LDFLAGS): Likewise.
34790
34791 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34792
34793 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34794
34795 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34796
34797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34798
34799 * include/grub/hexdump.h: New file.
34800
34801 * commands/hexdump.c: New file.
34802
34803 2007-11-10 Robert Millan <rmh@aybabtu.com>
34804
34805 * commands/i386/pc/play.c (beep_off): Switch order of arguments
34806 in grub_outb() calls.
34807 (beep_on): Likewise.
34808
34809 2007-11-10 Christian Franke <franke@computer.org>
34810
34811 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
34812 (grub_menu_run): Likewise.
34813
34814 2007-11-10 Robert Millan <rmh@aybabtu.com>
34815
34816 * include/grub/i386/efi/machine.h: New file.
34817 * include/grub/i386/linuxbios/machine.h: Likewise.
34818 * include/grub/i386/pc/machine.h: Likewise.
34819 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34820 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34821
34822 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
34823 (serial_hw_io_addr): New variable.
34824 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
34825 instead of `(unsigned short *) 0x400'.
34826
34827 2007-11-10 Bean <bean123ch@gmail.com>
34828
34829 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
34830
34831 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34832
34833 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
34834 (vga_mod_SOURCES): Added.
34835 (vga_mod_CFLAGS): Likewise.
34836 (vga_mod_LDFLAGS): Likewise.
34837
34838 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
34839 grub_outb() calls.
34840 (set_map_mask): Likewise.
34841 (set_read_map): Likewise.
34842 (set_read_address): Likewise.
34843 (vga_font): Removed variable.
34844 (get_vga_glyph): Removed function.
34845 (invalidate_char): Likewise.
34846 (write_char): Changed to use grub_font_get_glyph() for font
34847 information.
34848 (grub_vga_putchar): Likewise.
34849 (grub_vga_getcharwidth): Likewise.
34850
34851 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34852
34853 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
34854 flags.
34855 (pxeboot_img_LDFLAGS): Likewise.
34856 (diskboot_img_LDFLAGS): Likewise.
34857 (kernel_img_LDFLAGS): Likewise.
34858
34859 2007-11-06 Robert Millan <rmh@aybabtu.com>
34860
34861 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
34862 in grub_outb() calls.
34863 (serial_hw_init): Likewise.
34864
34865 2007-11-05 Robert Millan <rmh@aybabtu.com>
34866
34867 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
34868 spaces. Skip non-regular files.
34869
34870 2007-11-05 Robert Millan <rmh@aybabtu.com>
34871
34872 * kern/disk.c (grub_disk_firmware_fini)
34873 (grub_disk_firmware_is_tainted): New variables.
34874
34875 * include/grub/disk.h (grub_disk_firmware_fini)
34876 (grub_disk_firmware_is_tainted): Likewise.
34877
34878 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
34879 (grub_disk_biosdisk_fini): ... to here.
34880 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
34881 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
34882 is set. Register grub_disk_biosdisk_fini() in
34883 `grub_disk_firmware_fini'.
34884
34885 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
34886 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
34887 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
34888 to finish existing firmware disk interface.
34889
34890 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
34891 (ata_mod_SOURCES): New variable.
34892 (ata_mod_CFLAGS): Likewise.
34893 (ata_mod_LDFLAGS): Likewise.
34894
34895 2007-11-05 Robert Millan <rmh@aybabtu.com>
34896
34897 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
34898 (grub_ata_wait): Reimplement using grub_millisleep().
34899
34900 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
34901 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
34902
34903 2007-11-03 Marco Gerards <marco@gnu.org>
34904
34905 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
34906 (CRTC_ADDR_PORT): New macro.
34907 (CRTC_DATA_PORT): Likewise.
34908 (CRTC_CURSOR): Likewise.
34909 (CRTC_CURSOR_ADDR_HIGH): Likewise.
34910 (CRTC_CURSOR_ADDR_LOW): Likewise.
34911 (update_cursor): New function.
34912 (grub_console_real_putchar): Call `update_cursor'.
34913 (grub_console_gotoxy): Likewise.
34914 (grub_console_cls): Set the default color when clearing the
34915 screen.
34916 (grub_console_setcursor): Implemented.
34917
34918 2007-11-03 Marco Gerards <marco@gnu.org>
34919
34920 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
34921 become activate.
34922 (grub_ata_pio_write): Likewise.
34923
34924 (grub_atapi_identify): Wait after issuing an ATA command.
34925 (grub_atapi_packet): Likewise.
34926 (grub_ata_identify): Likewise.
34927 (grub_ata_readwrite): Likewise.
34928
34929 2007-11-03 Marco Gerards <marco@gnu.org>
34930
34931 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
34932 (grub_ata_pio_write): Likewise.
34933 (grub_ata_readwrite): Use `grub_error', instead of
34934 returning `grub_errno'.
34935
34936 2007-11-03 Marco Gerards <marco@gnu.org>
34937
34938 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
34939 grub_ata_pio_write once for every single sector, instead of for
34940 multiple sectors.
34941
34942 2007-10-31 Robert Millan <rmh@aybabtu.com>
34943
34944 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
34945
34946 * conf/i386-linuxbios.rmk: New file.
34947
34948 * kern/i386/pc/hardware.c: Likewise.
34949 * term/i386/pc/at_keyboard.c: Likewise.
34950 * term/i386/pc/vga_text.c: Likewise.
34951
34952 * include/grub/i386/linuxbios/boot.h: Likewise.
34953 * include/grub/i386/linuxbios/console.h: Likewise.
34954 * include/grub/i386/linuxbios/init.h: Likewise.
34955 * include/grub/i386/linuxbios/kernel.h: Likewise.
34956 * include/grub/i386/linuxbios/loader.h: Likewise.
34957 * include/grub/i386/linuxbios/memory.h: Likewise.
34958 * include/grub/i386/linuxbios/serial.h: Likewise.
34959 * include/grub/i386/linuxbios/time.h: Likewise.
34960
34961 * kern/i386/linuxbios/init.c: Likewise.
34962 * kern/i386/linuxbios/startup.S: Likewise.
34963 * kern/i386/linuxbios/table.c: Likewise.
34964
34965 2007-10-31 Marco Gerards <marco@gnu.org>
34966
34967 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
34968 (ata_mod_SOURCES): New variable.
34969 (ata_mod_CFLAGS): Likewise.
34970 (ata_mod_LDFLAGS): Likewise.
34971
34972 * disk/ata.c: New file.
34973
34974 * include/grub/disk.h (grub_disk_dev_id): Add
34975 `GRUB_DISK_DEV_ATA_ID'.
34976
34977 2007-10-31 Robert Millan <rmh@aybabtu.com>
34978
34979 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
34980 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
34981
34982 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
34983 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
34984
34985 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
34986 `<grub/types.h>'.
34987
34988 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
34989
34990 2007-10-27 Robert Millan <rmh@aybabtu.com>
34991
34992 * include/grub/types.h (ULONG_MAX): Define macro.
34993
34994 2007-10-22 Robert Millan <rmh@aybabtu.com>
34995
34996 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
34997 `"../realmode.S"'.
34998 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
34999
35000 2007-10-22 Robert Millan <rmh@aybabtu.com>
35001
35002 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
35003 (pkgdata_MODULES): Add `biosdisk.mod'.
35004 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
35005 variables.
35006
35007 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
35008 (grub_biosdisk_init): Replace with ...
35009 (GRUB_MOD_INIT(biosdisk)): ... this.
35010 (grub_biosdisk_fini): Replace with ...
35011 (GRUB_MOD_FINI(biosdisk)): ... this.
35012
35013 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
35014 (grub_machine_init): Remove call to grub_biosdisk_init().
35015 (grub_machine_fini): Remove call to grub_machine_fini().
35016
35017 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
35018
35019 2007-10-22 Robert Millan <rmh@aybabtu.com>
35020
35021 * include/grub/time.h: New file.
35022 * include/grub/i386/time.h: Likewise.
35023 * include/grub/powerpc/time.h: Likewise.
35024 * include/grub/sparc64/time.h: Likewise.
35025
35026 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
35027 instances to ...
35028 (KERNEL_MACHINE_TIME_HEADER): ... this.
35029 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
35030 instances to ...
35031 (KERNEL_MACHINE_TIME_HEADER): ... this.
35032 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
35033 instances to ...
35034 (KERNEL_MACHINE_TIME_HEADER): ... this.
35035
35036 * kern/i386/efi/init.c: Include `<grub/time.h>'.
35037 (grub_millisleep): New function.
35038 * kern/i386/pc/init.c: Include `<grub/time.h>'.
35039 (grub_millisleep): New function.
35040 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
35041 Remove `grub/machine/time.h' include.
35042 (grub_millisleep): New function.
35043 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
35044 Remove `grub/machine/time.h' include.
35045 (grub_millisleep): New function.
35046
35047 * include/grub/misc.h (grub_div_roundup): New function.
35048
35049 * kern/misc.c: Include `<grub/time.h>'.
35050 (grub_millisleep_generic): New function.
35051
35052 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
35053 Add `time.h'.
35054 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
35055 Add `time.h'.
35056 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
35057 `machine/time.h'. Add `time.h'.
35058 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
35059
35060 2007-10-21 Robert Millan <rmh@aybabtu.com>
35061
35062 * include/grub/misc.h (grub_max): New function.
35063
35064 2007-10-21 Robert Millan <rmh@aybabtu.com>
35065
35066 * util/misc.c (grub_util_info): Call fflush() before returning.
35067
35068 2007-10-20 Robert Millan <rmh@aybabtu.com>
35069
35070 * genmk.rb (Image): Copy `extra_flags' from here ...
35071 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
35072
35073 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
35074 to `argc' and `args' arguments.
35075
35076 2007-10-17 Robert Millan <rmh@aybabtu.com>
35077
35078 * kern/i386/loader.S: New file.
35079
35080 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
35081 * kern/i386/loader.S (grub_linux_prot_size)... to here.
35082 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
35083 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
35084 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
35085 * kern/i386/loader.S (grub_linux_real_addr)... to here.
35086 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
35087 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
35088 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
35089 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
35090 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
35091 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
35092 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
35093 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
35094
35095 * kern/i386/realmode.S: New file.
35096
35097 * kern/i386/pc/startup.S (protstack): Moved from here ...
35098 * kern/i386/realmode.S (protstack)... to here.
35099 * kern/i386/pc/startup.S (gdt): Moved from here ...
35100 * kern/i386/realmode.S (gdt)... to here.
35101 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
35102 * kern/i386/realmode.S (prot_to_real)... to here.
35103
35104 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
35105 `kern/i386/realmode.S'.
35106
35107 2007-10-17 Robert Millan <rmh@aybabtu.com>
35108
35109 * include/grub/i386/loader.h: New file.
35110
35111 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
35112 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
35113 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
35114 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
35115 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
35116 * include/grub/i386/loader.h (grub_linux_prot_size)
35117 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
35118 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
35119 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
35120 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
35121
35122 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
35123
35124 2007-10-15 Robert Millan <rmh@aybabtu.com>
35125
35126 * normal/misc.c (grub_normal_print_device_info): Do not probe for
35127 filesystem when dev->disk is unset.
35128 Do probe for filesystem even when dev->disk->has_partitions is set.
35129 In case a filesystem is found, always report it.
35130 In case it isn't, if dev->disk->has_partitions is set, report that
35131 a partition table was found instead of reporting that no filesystem
35132 could be identified.
35133
35134 2007-10-12 Robert Millan <rmh@aybabtu.com>
35135
35136 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
35137 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
35138
35139 * include/grub/types.h (grub_host_to_target16): New macro.
35140 (grub_host_to_target32): Likewise.
35141 (grub_host_to_target64): Likewise.
35142 (grub_target_to_host16): Likewise.
35143 (grub_target_to_host32): Likewise.
35144 (grub_target_to_host64): Likewise.
35145
35146 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
35147 Renamed from to ...
35148 (GRUB_MOD_ALIGN): ...this. Update all users.
35149
35150 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
35151 grub_host_to_target32.
35152 Replace grub_be_to_cpu32 with grub_target_to_host32.
35153 (load_modules): Likewise.
35154 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
35155 Replace grub_be_to_cpu32 with grub_target_to_host32.
35156 Replace grub_cpu_to_be16 with grub_host_to_target16.
35157 Replace grub_cpu_to_be32 grub_host_to_target32.
35158
35159 2007-10-12 Robert Millan <rmh@aybabtu.com>
35160
35161 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
35162 * util/elf/grub-mkimage.c: ... here.
35163
35164 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
35165 `util/powerpc/ieee1275/grub-mkimage.c'.
35166
35167 2007-10-07 Robert Millan <rmh@aybabtu.com>
35168
35169 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
35170 and make it easier to figure out.
35171 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
35172 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
35173 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
35174 leave us with less than HEAP_MIN_SIZE total heap.
35175 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
35176
35177 2007-10-03 Robert Millan <rmh@aybabtu.com>
35178
35179 * include/grub/i386/io.h: New file.
35180 * commands/i386/pc/play.c (inb): Removed.
35181 (outb): Removed.
35182 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35183 with grub_outb().
35184 * term/i386/pc/serial.c (inb): Removed.
35185 (outb): Removed.
35186 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35187 with grub_outb().
35188 * term/i386/pc/vga.c (inb): Removed.
35189 (outb): Removed.
35190 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35191 with grub_outb().
35192
35193 2007-10-02 Robert Millan <rmh@aybabtu.com>
35194
35195 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
35196 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35197 Reported by Marcin Kurek.
35198
35199 2007-09-07 Robert Millan <rmh@aybabtu.com>
35200
35201 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
35202 SmartFirmware version updates (as released by Sven Luther), and avoid
35203 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
35204 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
35205 known broken.
35206
35207 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35208
35209 From Hitoshi Ozeki:
35210 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
35211 when merging two regions.
35212
35213 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35214
35215 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
35216 * normal/completion.c (grub_normal_do_completion): Likewise.
35217 Reported by Hitoshi Ozeki.
35218
35219 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35220
35221 Do not use devices at boot in chainloading.
35222
35223 * loader/i386/pc/chainloader.c (boot_drive): New variable.
35224 (boot_part_addr): Likewise.
35225 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
35226 with BOOT_DRIVE and BOOT_PART_ADDR.
35227 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
35228 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
35229
35230 2007-08-29 Robert Millan <rmh@aybabtu.com>
35231
35232 Patch from Simon Peter <dn.tlp@gmx.net>:
35233 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
35234 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
35235 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
35236 util/i386/pc/grub-setup.c_DEPENDENCIES.
35237 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
35238 util/grub-probe.c_DEPENDENCIES.
35239 * conf/powerpc-ieee1275.rmk: Likewise.
35240
35241 2007-08-28 Robert Millan <rmh@aybabtu.com>
35242
35243 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
35244 to tell grub-mkdevicemap how to name devices.
35245 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
35246 feature).
35247
35248 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
35249 util/i386/get_disk_name.c.
35250 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
35251 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
35252 util/ieee1275/get_disk_name.c.
35253
35254 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
35255
35256 * DISTLIST: Add util/i386/get_disk_name.c and
35257 util/ieee1275/get_disk_name.c.
35258
35259 * util/grub-mkdevicemap.c: Replace device naming logic with
35260 grub_util_get_disk_name() calls.
35261
35262 2007-08-20 Robert Millan <rmh@aybabtu.com>
35263
35264 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
35265 (so that it works for both plural and singular quantities).
35266
35267 2007-08-05 Robert Millan <rmh@aybabtu.com>
35268
35269 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
35270 so that [xz] isn't taken into account when determining order.
35271
35272 2007-08-02 Marco Gerards <marco@gnu.org>
35273
35274 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
35275 `include/multiboot2.h', `include/grub/elfload.h',
35276 `include/multiboot.h', `include/grub/multiboot.h',
35277 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
35278 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
35279 `kern/elf.c', `loader/multiboot_loader.c',
35280 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
35281 `loader/i386/pc/multiboot2.c',
35282 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
35283 `util/i386/pc/grub-mkrescue.in'. Remove
35284 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
35285 `include/grub/i386/pc/util/biosdisk.h' and
35286 `include/grub/powerpc/ieee1275/multiboot.h'.
35287
35288 2007-08-02 Bean <bean123ch@gmail.com>
35289
35290 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
35291 (ntfs_mod_SOURCES): New variable.
35292 (ntfs_mod_CFLAGS): Likewise.
35293 (ntfs_mod_LDFLAGS): Likewise.
35294
35295 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
35296 (grub_probe_SOURCES): Likewise.
35297 (grub_emu_SOURCES): Likewise.
35298
35299 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35300 (grub_emu_SOURCES): Likewise.
35301
35302 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35303 (grub_emu_SOURCES): Likewise.
35304
35305 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
35306
35307 * fs/ntfs.c: New file.
35308
35309 2007-08-02 Bean <bean123ch@gmail.com>
35310
35311 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
35312
35313 * file.h (grub_file): Likewise.
35314
35315 * fshelp.h (grub_fshelp_read_file): Likewise.
35316
35317 * util/i386/pc/grub-setup.c (setup): Likewise.
35318 (save_first_sector): Likewise.
35319 (save_blocklists): Likewise.
35320
35321 * fs/affs.c (grub_affs_read_file): Likewise.
35322
35323 * fs/ext2.c (grub_ext2_read_file): Likewise.
35324
35325 * fs/fat.c (grub_fat_read_data): Likewise.
35326
35327 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
35328
35329 * fs/hfs.c (grub_hfs_read_file): Likewise.
35330
35331 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
35332
35333 * fs/jfs.c (grub_jfs_read_file): Likewise.
35334
35335 * fs/minix.c (grub_minix_read_file): Likewise.
35336
35337 * fs/sfs.c (grub_sfs_read_file): Likewise.
35338
35339 * fs/ufs.c (grub_ufs_read_file): Likewise.
35340
35341 * fs/xfs.c (grub_xfs_read_file): Likewise.
35342
35343 * command/blocklist.c (read_blocklist): Likewise.
35344 (print_blocklist): Likewise.
35345
35346 2007-08-02 Marco Gerards <marco@gnu.org>
35347
35348 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
35349 `util/hostfs.c'.
35350
35351 * disk/host.c: New file.
35352
35353 * util/hostfs.c: Likewise.
35354
35355 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
35356 return `GRUB_ERR_BAD_FS'.
35357 * fs/sfs.c (grub_sfs_mount): Likewise.
35358 * fs/xfs.c (grub_xfs_mount): Likewise.
35359
35360 * include/grub/disk.h (enum grub_disk_dev_id): Add
35361 `GRUB_DISK_DEVICE_HOST_ID'.
35362
35363 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
35364
35365 2007-07-24 Jerone Young <jerone@gmail.com>
35366
35367 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
35368 modules for compilation.
35369 * conf/powerpc-ieee1275.rmk: Likewise.
35370
35371 * include/multiboot.h: Move multiboot definitions to one file. Rename
35372 many definitions to not get grub specific.
35373 * include/multiboot2.h: Create header with multiboot 2 definitions.
35374 * include/grub/multiboot.h: Header for grub specific function
35375 prototypes and definitions.
35376 * include/grub/multiboot2.h: Likewise.
35377 * include/grub/multiboot_loader.h: Likewise.
35378 * include/grub/i386/pc/multiboot.h: Removed.
35379 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
35380
35381 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
35382 and 2 to allow for one multiboot and module commands.
35383 * loader/multiboot2.c: Add multiboot2 functionality.
35384 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
35385 and definition names.
35386 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
35387 2 functions.
35388 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
35389 ieee1275 specific multiboot2 code.
35390
35391 * kern/i386/pc/startup.S: Change headers and definition names for
35392 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
35393
35394 2007-07-22 Robert Millan <rmh@aybabtu.com>
35395
35396 * geninitheader.sh: Process file specified in first parameter rather
35397 than hardcoding grub_modules_init.lst.
35398 * geninit.sh: Likewise. Also, construct header name dynamically rather
35399 than hardcoding grub_modules_init.h.
35400
35401 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
35402 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
35403 grub_probe_init.[ch] and grub_setup_init.[ch].
35404
35405 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
35406 grub_modules_init.h with grub_emu_init.h.
35407 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
35408 grub_probe_init.[ch] files.
35409 * conf/i386-efi.rmk: Likewise.
35410 * conf/i386-pc.rmk: Likewise.
35411 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
35412 grub_setup_init.[ch] files.
35413
35414 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
35415 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
35416 to initialize modules rather than a list of hardcoded functions.
35417 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
35418 grub_init_all() to initialize modules rather than a list of hardcoded
35419 functions.
35420
35421 2007-07-22 Robert Millan <rmh@aybabtu.com>
35422
35423 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
35424 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
35425
35426 2007-07-22 Robert Millan <rmh@aybabtu.com>
35427
35428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
35429 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
35430 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
35431 flag when running on SmartFirmware.
35432 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
35433 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
35434 was set.
35435
35436 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
35437 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
35438 rather than decreasing it.
35439
35440 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
35441 there's not enough space to do it, fail in the same way as when it
35442 can't be done because there are no partitions.
35443
35444 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
35445 when nvsetenv failed.
35446
35447 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35448
35449 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
35450 because this rule is automatically generated.
35451 (grub-mkrescue): Removed for the same reason as above.
35452
35453 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35454
35455 Migrate to GNU General Public License Version 3.
35456
35457 * COPYING: Replaced with the plain text version of GPLv3.
35458
35459 * config.guess: Updated from gnulib.
35460 * config.sub: Likewise.
35461
35462 * geninit.sh: Output a GPLv3 copyright notice.
35463 * geninitheader.sh: Likewise.
35464 * genmodsrc.sh: Likewise.
35465 * gensymlist.sh.in: Likewise.
35466
35467 * boot/i386/pc/boot.S: Upgraded to GPLv3.
35468 * boot/i386/pc/diskboot.S: Likewise.
35469 * boot/i386/pc/pxeboot.S: Likewise.
35470 * commands/blocklist.c: Likewise.
35471 * commands/boot.c: Likewise.
35472 * commands/cat.c: Likewise.
35473 * commands/cmp.c: Likewise.
35474 * commands/configfile.c: Likewise.
35475 * commands/echo.c: Likewise.
35476 * commands/help.c: Likewise.
35477 * commands/ls.c: Likewise.
35478 * commands/search.c: Likewise.
35479 * commands/terminal.c: Likewise.
35480 * commands/test.c: Likewise.
35481 * commands/videotest.c: Likewise.
35482 * commands/i386/cpuid.c: Likewise.
35483 * commands/i386/pc/halt.c: Likewise.
35484 * commands/i386/pc/play.c: Likewise.
35485 * commands/i386/pc/reboot.c: Likewise.
35486 * commands/i386/pc/vbeinfo.c: Likewise.
35487 * commands/i386/pc/vbetest.c: Likewise.
35488 * commands/ieee1275/halt.c: Likewise.
35489 * commands/ieee1275/reboot.c: Likewise.
35490 * commands/ieee1275/suspend.c: Likewise.
35491 * disk/loopback.c: Likewise.
35492 * disk/lvm.c: Likewise.
35493 * disk/raid.c: Likewise.
35494 * disk/efi/efidisk.c: Likewise.
35495 * disk/i386/pc/biosdisk.c: Likewise.
35496 * disk/ieee1275/ofdisk.c: Likewise.
35497 * font/manager.c: Likewise.
35498 * fs/affs.c: Likewise.
35499 * fs/ext2.c: Likewise.
35500 * fs/fat.c: Likewise.
35501 * fs/fshelp.c: Likewise.
35502 * fs/hfs.c: Likewise.
35503 * fs/hfsplus.c: Likewise.
35504 * fs/iso9660.c: Likewise.
35505 * fs/jfs.c: Likewise.
35506 * fs/minix.c: Likewise.
35507 * fs/sfs.c: Likewise.
35508 * fs/ufs.c: Likewise.
35509 * fs/xfs.c: Likewise.
35510 * hello/hello.c: Likewise.
35511 * include/grub/acorn_filecore.h: Likewise.
35512 * include/grub/arg.h: Likewise.
35513 * include/grub/bitmap.h: Likewise.
35514 * include/grub/boot.h: Likewise.
35515 * include/grub/cache.h: Likewise.
35516 * include/grub/device.h: Likewise.
35517 * include/grub/disk.h: Likewise.
35518 * include/grub/dl.h: Likewise.
35519 * include/grub/elfload.h: Likewise.
35520 * include/grub/env.h: Likewise.
35521 * include/grub/err.h: Likewise.
35522 * include/grub/file.h: Likewise.
35523 * include/grub/font.h: Likewise.
35524 * include/grub/fs.h: Likewise.
35525 * include/grub/fshelp.h: Likewise.
35526 * include/grub/gzio.h: Likewise.
35527 * include/grub/hfs.h: Likewise.
35528 * include/grub/kernel.h: Likewise.
35529 * include/grub/loader.h: Likewise.
35530 * include/grub/lvm.h: Likewise.
35531 * include/grub/misc.h: Likewise.
35532 * include/grub/mm.h: Likewise.
35533 * include/grub/net.h: Likewise.
35534 * include/grub/normal.h: Likewise.
35535 * include/grub/parser.h: Likewise.
35536 * include/grub/partition.h: Likewise.
35537 * include/grub/pc_partition.h: Likewise.
35538 * include/grub/raid.h: Likewise.
35539 * include/grub/rescue.h: Likewise.
35540 * include/grub/script.h: Likewise.
35541 * include/grub/setjmp.h: Likewise.
35542 * include/grub/symbol.h: Likewise.
35543 * include/grub/term.h: Likewise.
35544 * include/grub/terminfo.h: Likewise.
35545 * include/grub/tparm.h: Likewise.
35546 * include/grub/types.h: Likewise.
35547 * include/grub/video.h: Likewise.
35548 * include/grub/efi/api.h: Likewise.
35549 * include/grub/efi/chainloader.h: Likewise.
35550 * include/grub/efi/console.h: Likewise.
35551 * include/grub/efi/console_control.h: Likewise.
35552 * include/grub/efi/disk.h: Likewise.
35553 * include/grub/efi/efi.h: Likewise.
35554 * include/grub/efi/pe32.h: Likewise.
35555 * include/grub/efi/time.h: Likewise.
35556 * include/grub/i386/linux.h: Likewise.
35557 * include/grub/i386/setjmp.h: Likewise.
35558 * include/grub/i386/types.h: Likewise.
35559 * include/grub/i386/efi/kernel.h: Likewise.
35560 * include/grub/i386/efi/loader.h: Likewise.
35561 * include/grub/i386/efi/time.h: Likewise.
35562 * include/grub/i386/pc/biosdisk.h: Likewise.
35563 * include/grub/i386/pc/boot.h: Likewise.
35564 * include/grub/i386/pc/chainloader.h: Likewise.
35565 * include/grub/i386/pc/console.h: Likewise.
35566 * include/grub/i386/pc/init.h: Likewise.
35567 * include/grub/i386/pc/kernel.h: Likewise.
35568 * include/grub/i386/pc/loader.h: Likewise.
35569 * include/grub/i386/pc/memory.h: Likewise.
35570 * include/grub/i386/pc/multiboot.h: Likewise.
35571 * include/grub/i386/pc/serial.h: Likewise.
35572 * include/grub/i386/pc/time.h: Likewise.
35573 * include/grub/i386/pc/vbe.h: Likewise.
35574 * include/grub/i386/pc/vbeblit.h: Likewise.
35575 * include/grub/i386/pc/vbefill.h: Likewise.
35576 * include/grub/i386/pc/vbeutil.h: Likewise.
35577 * include/grub/i386/pc/vga.h: Likewise.
35578 * include/grub/ieee1275/ieee1275.h: Likewise.
35579 * include/grub/ieee1275/ofdisk.h: Likewise.
35580 * include/grub/powerpc/libgcc.h: Likewise.
35581 * include/grub/powerpc/setjmp.h: Likewise.
35582 * include/grub/powerpc/types.h: Likewise.
35583 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
35584 * include/grub/powerpc/ieee1275/console.h: Likewise.
35585 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
35586 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
35587 * include/grub/powerpc/ieee1275/loader.h: Likewise.
35588 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
35589 * include/grub/powerpc/ieee1275/time.h: Likewise.
35590 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
35591 * include/grub/sparc64/libgcc.h: Likewise.
35592 * include/grub/sparc64/setjmp.h: Likewise.
35593 * include/grub/sparc64/types.h: Likewise.
35594 * include/grub/sparc64/ieee1275/console.h: Likewise.
35595 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
35596 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
35597 * include/grub/sparc64/ieee1275/time.h: Likewise.
35598 * include/grub/util/biosdisk.h: Likewise.
35599 * include/grub/util/getroot.h: Likewise.
35600 * include/grub/util/lvm.h: Likewise.
35601 * include/grub/util/misc.h: Likewise.
35602 * include/grub/util/raid.h: Likewise.
35603 * include/grub/util/resolve.h: Likewise.
35604 * io/gzio.c: Likewise.
35605 * kern/device.c: Likewise.
35606 * kern/disk.c: Likewise.
35607 * kern/dl.c: Likewise.
35608 * kern/elf.c: Likewise.
35609 * kern/env.c: Likewise.
35610 * kern/err.c: Likewise.
35611 * kern/file.c: Likewise.
35612 * kern/fs.c: Likewise.
35613 * kern/loader.c: Likewise.
35614 * kern/main.c: Likewise.
35615 * kern/misc.c: Likewise.
35616 * kern/mm.c: Likewise.
35617 * kern/parser.c: Likewise.
35618 * kern/partition.c: Likewise.
35619 * kern/rescue.c: Likewise.
35620 * kern/term.c: Likewise.
35621 * kern/efi/efi.c: Likewise.
35622 * kern/efi/init.c: Likewise.
35623 * kern/efi/mm.c: Likewise.
35624 * kern/i386/dl.c: Likewise.
35625 * kern/i386/efi/init.c: Likewise.
35626 * kern/i386/efi/startup.S: Likewise.
35627 * kern/i386/pc/init.c: Likewise.
35628 * kern/i386/pc/lzo1x.S: Likewise.
35629 * kern/i386/pc/startup.S: Likewise.
35630 * kern/ieee1275/ieee1275.c: Likewise.
35631 * kern/powerpc/cache.S: Likewise.
35632 * kern/powerpc/dl.c: Likewise.
35633 * kern/powerpc/ieee1275/cmain.c: Likewise.
35634 * kern/powerpc/ieee1275/crt0.S: Likewise.
35635 * kern/powerpc/ieee1275/init.c: Likewise.
35636 * kern/powerpc/ieee1275/openfw.c: Likewise.
35637 * kern/sparc64/cache.S: Likewise.
35638 * kern/sparc64/dl.c: Likewise.
35639 * kern/sparc64/ieee1275/init.c: Likewise.
35640 * kern/sparc64/ieee1275/openfw.c: Likewise.
35641 * loader/efi/chainloader.c: Likewise.
35642 * loader/efi/chainloader_normal.c: Likewise.
35643 * loader/i386/efi/linux.c: Likewise.
35644 * loader/i386/efi/linux_normal.c: Likewise.
35645 * loader/i386/pc/chainloader.c: Likewise.
35646 * loader/i386/pc/chainloader_normal.c: Likewise.
35647 * loader/i386/pc/linux.c: Likewise.
35648 * loader/i386/pc/linux_normal.c: Likewise.
35649 * loader/i386/pc/multiboot.c: Likewise.
35650 * loader/i386/pc/multiboot_normal.c: Likewise.
35651 * loader/powerpc/ieee1275/linux.c: Likewise.
35652 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35653 * normal/arg.c: Likewise.
35654 * normal/cmdline.c: Likewise.
35655 * normal/command.c: Likewise.
35656 * normal/completion.c: Likewise.
35657 * normal/execute.c: Likewise.
35658 * normal/function.c: Likewise.
35659 * normal/lexer.c: Likewise.
35660 * normal/main.c: Likewise.
35661 * normal/menu.c: Likewise.
35662 * normal/menu_entry.c: Likewise.
35663 * normal/misc.c: Likewise.
35664 * normal/parser.y: Likewise.
35665 * normal/script.c: Likewise.
35666 * normal/i386/setjmp.S: Likewise.
35667 * normal/powerpc/setjmp.S: Likewise.
35668 * normal/sparc64/setjmp.S: Likewise.
35669 * partmap/acorn.c: Likewise.
35670 * partmap/amiga.c: Likewise.
35671 * partmap/apple.c: Likewise.
35672 * partmap/gpt.c: Likewise.
35673 * partmap/pc.c: Likewise.
35674 * partmap/sun.c: Likewise.
35675 * term/gfxterm.c: Likewise.
35676 * term/terminfo.c: Likewise.
35677 * term/efi/console.c: Likewise.
35678 * term/i386/pc/console.c: Likewise.
35679 * term/i386/pc/serial.c: Likewise.
35680 * term/i386/pc/vesafb.c: Likewise.
35681 * term/i386/pc/vga.c: Likewise.
35682 * term/ieee1275/ofconsole.c: Likewise.
35683 * util/biosdisk.c: Likewise.
35684 * util/console.c: Likewise.
35685 * util/genmoddep.c: Likewise.
35686 * util/getroot.c: Likewise.
35687 * util/grub-emu.c: Likewise.
35688 * util/grub-mkdevicemap.c: Likewise.
35689 * util/grub-probe.c: Likewise.
35690 * util/lvm.c: Likewise.
35691 * util/misc.c: Likewise.
35692 * util/raid.c: Likewise.
35693 * util/resolve.c: Likewise.
35694 * util/update-grub.in: Likewise.
35695 * util/update-grub_lib.in: Likewise.
35696 * util/grub.d/00_header.in: Likewise.
35697 * util/grub.d/10_hurd.in: Likewise.
35698 * util/grub.d/10_linux.in: Likewise.
35699 * util/i386/efi/grub-install.in: Likewise.
35700 * util/i386/efi/grub-mkimage.c: Likewise.
35701 * util/i386/pc/grub-install.in: Likewise.
35702 * util/i386/pc/grub-mkimage.c: Likewise.
35703 * util/i386/pc/grub-mkrescue.in: Likewise.
35704 * util/i386/pc/grub-setup.c: Likewise.
35705 * util/i386/pc/misc.c: Likewise.
35706 * util/powerpc/ieee1275/grub-install.in: Likewise.
35707 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
35708 * util/powerpc/ieee1275/misc.c: Likewise.
35709 * video/bitmap.c: Likewise.
35710 * video/video.c: Likewise.
35711 * video/i386/pc/vbe.c: Likewise.
35712 * video/i386/pc/vbeblit.c: Likewise.
35713 * video/i386/pc/vbefill.c: Likewise.
35714 * video/i386/pc/vbeutil.c: Likewise.
35715 * video/readers/tga.c: Likewise.
35716
35717 2007-07-02 Robert Millan <rmh@aybabtu.com>
35718
35719 * conf/i386-efi.rmk: Replace obsolete reference to
35720 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
35721 with util/getroot.c.
35722 * conf/powerpc-ieee1275.rmk: Likewise.
35723 * conf/sparc64-ieee1275.rmk: Likewise.
35724
35725 * util/grub-emu.c (main): Fix unchecked pointer handling.
35726
35727 2007-07-02 Robert Millan <rmh@aybabtu.com>
35728
35729 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
35730 invocation to fail, in order to support partition-less media.
35731
35732 * util/i386/pc/grub-install.in: Likewise.
35733
35734 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
35735 which fs or partmap modules are needed (akin to its sister scripts).
35736
35737 Also use grub-probe to get rid of unportable /proc/mounts check.
35738
35739 Print the same informational message that the other scripts do, before
35740 exiting.
35741
35742 2007-06-23 Robert Millan <rmh@aybabtu.com>
35743
35744 * util/update-grub_lib.in (font_path): New function. Determine whether
35745 a font file can be found and, if so, echo the GRUB path to it.
35746
35747 * util/update-grub.in: Handle multiple terminals depending on user
35748 input, platform availability and font file presence. Propagate
35749 variables of our findings to /etc/grub.d/ children.
35750
35751 * util/grub.d/00_header.in: Handle multiple terminals, based on
35752 environment setup by update-grub.
35753
35754 2007-06-23 Robert Millan <rmh@aybabtu.com>
35755
35756 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
35757
35758 2007-06-21 Robert Millan <rmh@aybabtu.com>
35759
35760 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
35761 indicate end of data section in kernel image.
35762 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
35763 GRUB_KERNEL_MACHINE_DATA_END.
35764
35765 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
35766 space for it.
35767 * kern/i386/efi/startup.S: Likewise.
35768
35769 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
35770 during image generation. Implement --prefix option to override this
35771 patch.
35772 * util/i386/efi/grub-mkimage.c: Likewise.
35773
35774 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
35775 code to make path relative to its root into a separate function.
35776
35777 * util/i386/pc/grub-install.in: Use newly provided
35778 make_system_path_relative_to_its_root() to convert ${grubdir}, then
35779 pass the result to grub-install --prefix.
35780
35781 2007-06-13 Robert Millan <rmh@aybabtu.com>
35782
35783 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
35784 DEFAULT_DEVICE_MAP.
35785 * util/grub-emu.c: Use above definitions from misc.h instead of
35786 defining them.
35787 * util/grub-mkdevicemap.c: Likewise.
35788 * util/i386/pc/grub-setup.c: Likewise.
35789 * util/grub-probe.c: Likewise.
35790 (probe): Abort with grub_util_error() when either
35791 grub_guess_root_device or grub_util_get_grub_dev fails.
35792
35793 2007-06-12 Robert Millan <rmh@aybabtu.com>
35794
35795 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
35796 "pager" assignment.
35797 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
35798 "pcdata".
35799 * util/grub-probe.c (probe): Likewise for "drive_name".
35800
35801 2007-06-11 Robert Millan <rmh@aybabtu.com>
35802
35803 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
35804 not just the cdrom one.
35805
35806 2007-06-11 Robert Millan <rmh@aybabtu.com>
35807
35808 * util/i386/pc/grub-mkrescue.in: Add "set -e".
35809 Add --pkglibdir=DIR option to override pkglibdir.
35810 Mention --image-type=TYPE in help output.
35811 Fix --grub-mkimage (it was a no-op).
35812 Abort gracefully when no parameter is given.
35813
35814 2007-06-11 Robert Millan <rmh@aybabtu.com>
35815
35816 * util/i386/pc/grub-mkrescue.in: New file.
35817 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
35818 * Makefile.in: Handle bin_SCRIPTS.
35819
35820 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
35821
35822 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
35823 list of video modes.
35824
35825 2007-06-06 Robert Millan <rmh@aybabtu.com>
35826
35827 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
35828 file doesn't exist, or if it is in a filesystem grub can't read.
35829
35830 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
35831 not abort if GRUB_DRIVE could not be defined. Rearrange generated
35832 header comment to fit in 80 columns when the variables are resolved.
35833
35834 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
35835 could be identified by update-grub. Remove redundant check for
35836 unifont.pff existence (since convert_system_path_to_grub_path now
35837 handles that).
35838
35839 2007-06-04 Robert Millan <rmh@aybabtu.com>
35840
35841 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
35842
35843 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
35844
35845 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
35846
35847 2007-06-04 Robert Millan <rmh@aybabtu.com>
35848
35849 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
35850
35851 * include/grub/partition.h: Declare grub_apple_partition_map_init and
35852 grub_apple_partition_map_fini.
35853
35854 * util/biosdisk.c
35855 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
35856 to access >2 TiB disks).
35857
35858 Print disk->total_sectors with %llu instead of %lu, since this
35859 variable is always 64-bit (prevents wrong disk size from being displayed
35860 on either >2 TiB disk or big-endian CPU).
35861
35862 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
35863 into a generic case that supports all (sane) partition maps.
35864
35865 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
35866 breaks big-endian.
35867
35868 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
35869 and grub_apple_partition_map_fini() after that.
35870
35871 2007-06-01 Robert Millan <rmh@aybabtu.com>
35872
35873 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
35874
35875 * util/grub.d/00_header.in: Only enable gfxterm when
35876 convert_system_path_to_grub_path() succeeds.
35877
35878 2007-05-20 Robert Millan <rmh@aybabtu.com>
35879
35880 * util/update-grub_lib.in: New file.
35881 * DISTLIST: Add update-grub_lib.in.
35882 * conf/common.rmk: Generate update-grub_lib and install it in
35883 $(lib_DATA).
35884 * Makefile.in: Add install routine for $(lib_DATA).
35885
35886 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
35887 function provided by update-grub_lib to support arbitrary paths of
35888 unifont.pff.
35889 * util/update-grub.in: Use convert_system_path_to_grub_path() to
35890 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
35891
35892 2007-05-19 Robert Millan <rmh@aybabtu.com>
35893
35894 * commands/i386/cpuid.c: New module.
35895 * DISTLIST: Add it.
35896 * conf/i386-efi.rmk: Enable cpuid.mod.
35897 * conf/i386-pc.rmk: Likewise.
35898
35899 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35900
35901 * kern/disk.c (grub_disk_read): Check return value of
35902 grub_realloc().
35903
35904 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35905
35906 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
35907 arrays.
35908 * disk/raid.c (grub_raid_open): Likewise.
35909
35910 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35911
35912 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
35913 stack instead of on the heap.
35914
35915 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
35916 before doing a read on it.
35917
35918 * configure.ac: Only use -fno-stack-protector for the target
35919 environment.
35920
35921 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35922
35923 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
35924 __attribute_ ((unused)) to mode_type argument.
35925
35926 * util/getroot.c (grub_guess_root_device): Fix #endif.
35927
35928 * kern/misc.c (memcmp): Fix prototype.
35929
35930 * include/grub/partition.h [GRUB_UTIL]
35931 (grub_gpt_partition_map_init): Add prototype.
35932 (grub_gpt_partition_map_fini): Likewise.
35933
35934 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
35935 at the right place.
35936
35937 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
35938 (grub_fat_read_data): Likewise.
35939 (grub_fat_find_dir): Likewise.
35940
35941 * font/manager.c (find_glyph): Make table a const.
35942 (grub_font_get_glyph): Remove bitmap from if statement.
35943
35944 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
35945
35946 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
35947 code, first search for device in /dev/mapper, then in /dev.
35948 (grub_util_get_grub_dev): New function.
35949 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
35950 prototype.
35951 * util/grub-probe.c (probe): Remove check for RAID, call
35952 grub_util_get_grub_dev() instead of
35953 grub_util_biosdisk_get_grub_dev().
35954 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
35955 grub_util_biosdisk_get_grub_dev().
35956 * util/i386/pc/grub-setup.c (main): Likewise.
35957
35958 2007-05-16 Robert Millan <rmh@aybabtu.com>
35959
35960 * DISTLIST: Update for the latest changes.
35961 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
35962 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
35963 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
35964 grub/util/biosdisk.h.
35965 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
35966 grub/util/biosdisk.h.
35967
35968 2007-05-16 Robert Millan <rmh@aybabtu.com>
35969
35970 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
35971
35972 2007-05-16 Robert Millan <rmh@aybabtu.com>
35973
35974 * util/i386/efi/grub-install.in: New.
35975 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
35976 newly added grub-install.
35977 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
35978 include.
35979 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
35980 grub/util/biosdisk.h.
35981 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
35982 grub/util/biosdisk.h.
35983
35984 2007-05-16 Robert Millan <rmh@aybabtu.com>
35985
35986 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
35987 * include/grub/util/biosdisk.h: ... here.
35988 * util/i386/pc/biosdisk.c: Moved to ...
35989 * util/biosdisk.c: ... here.
35990 * util/i386/pc/getroot.c: Moved to ...
35991 * util/getroot.c: ... here.
35992 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
35993 * util/grub-mkdevicemap.c: ... here.
35994 * util/i386/pc/grub-probe.c: Moved to ...
35995 * util/grub-probe.c: ... here.
35996
35997 2007-05-15 Robert Millan <rmh@aybabtu.com>
35998
35999 * util/update-grub.in: Remove duplicated line in grub.cfg header
36000 message.
36001
36002 2007-05-13 Robert Millan <rmh@aybabtu.com>
36003
36004 * util/update-grub.in: Fix a few assumptions about the devices holding
36005 /, /boot and /boot/grub being the same.
36006 * util/grub.d/00_header.in: Likewise.
36007 * util/grub.d/10_hurd.in: Likewise.
36008 * util/grub.d/10_linux.in: Likewise.
36009
36010 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
36011 patterns. Use that to define the `.old' suffix as older than `'.
36012
36013 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
36014
36015 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
36016 the grub.cfg header message.
36017
36018 2007-05-11 Robert Millan <rmh@aybabtu.com>
36019
36020 * util/update-grub.in: Create device.map if it doesn't already exist,
36021 before attempting to run grub-probe.
36022 Check for grub-probe and grub-mkdevicemap with the same code
36023 grub-install is using.
36024 Remove test mode.
36025
36026 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
36027
36028 * Makefile.in: Add the datarootdir autoconf variable.
36029
36030 2007-05-09 Robert Millan <rmh@aybabtu.com>
36031
36032 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
36033 fail gracefully if dev->disk->partition == NULL.
36034
36035 2007-05-07 Robert Millan <rmh@aybabtu.com>
36036
36037 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
36038 determine partition map module.
36039 * util/i386/pc/grub-install.in: Use this feature to decide which
36040 partition module to load, instead of hardcoding pc and gpt.
36041
36042 2007-05-07 Robert Millan <rmh@aybabtu.com>
36043
36044 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
36045 source directory differs from build directory.
36046
36047 2007-05-05 Robert Millan <rmh@aybabtu.com>
36048
36049 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
36050 initialisation.
36051
36052 2007-05-05 Robert Millan <rmh@aybabtu.com>
36053
36054 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
36055
36056 2007-05-05 Robert Millan <rmh@aybabtu.com>
36057
36058 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
36059 command-line arguments via ${GRUB_CMDLINE_LINUX}.
36060
36061 2007-05-05 Robert Millan <rmh@aybabtu.com>
36062
36063 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
36064 (grub_probe_SOURCES): Likewise.
36065 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
36066 GPT and initialize dos_part and bsd_part accordingly.
36067 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
36068 install_bsd_part.
36069 (main): Activate gpt module for use during partition identification,
36070 and deactivate it afterwards.
36071 * util/i386/pc/grub-install.in: Add gpt module to core.img.
36072 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
36073 partition identification, and deactivate it afterwards.
36074
36075 2007-05-05 Robert Millan <rmh@aybabtu.com>
36076
36077 * term/i386/pc/console.c (grub_console_fini): Call
36078 grub_term_set_current() before grub_term_unregister().
36079
36080 2007-05-04 Robert Millan <rmh@aybabtu.com>
36081
36082 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
36083 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
36084 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
36085 and update-grub_DATA.
36086 * conf/common.rmk: Build and install update-grub components.
36087 * conf/common.mk: Regenerate.
36088 * util/update-grub.in: New. Core of update-grub.
36089 * util/grub.d/00_header.in: New. Generates grub.cfg header.
36090 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
36091 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
36092 * util/grub.d/README: New. Document grub.d directory layout.
36093
36094 2007-05-01 Robert Millan <rmh@aybabtu.com>
36095
36096 * util/grub-emu.c: Move initialization functions
36097 grub_util_biosdisk_init() and grub_init_all() before
36098 grub_util_biosdisk_get_grub_dev(), which relies on them.
36099
36100 2007-04-19 Robert Millan <rmh@aybabtu.com>
36101
36102 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
36103 it is used later.
36104
36105 2007-04-18 Jerone Young <jerone@gmail.com>
36106
36107 * kernel/elf.c: Add missing parenthesis for conditional statement
36108 stanza.
36109
36110 2007-04-10 Jerone Young <jerone@gmail.com>
36111
36112 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
36113 continue on and look for device node with real device name.
36114
36115 2007-04-10 Jerone Young <jerone@gmail.com>
36116
36117 * configure.ac: Add argument for autoconf to use transformation
36118 ability.
36119 * Makefile.in: Add autoconf package transformation code.
36120 * util/i386/pc/grub-install.in: Likewise.
36121 * util/powerpc/ieee1275/grub-install.in: Likewise.
36122
36123 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
36124
36125 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
36126 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
36127 (EXT2_REVISION): Likewise.
36128 (EXT2_INODE_SIZE): Likewise.
36129 (struct grub_ext2_block_group): Added a missing member
36130 "used_dirs".
36131 (grub_ext2_read_inode): Divide by the inode size in a superblock
36132 instead of 128 to obtain INODES_PER_BLOCK.
36133 Use the macro EXT2_INODE_SIZE instead of directly using
36134 SBLOCK->INODE_SIZE.
36135
36136 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
36137
36138 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
36139 superblock instead of the structure size to compute an
36140 offset. This fixes the problem that GRUB could not read a
36141 filesystem when inode size is different from 128-byte.
36142
36143 2007-03-05 Marco Gerards <marco@gnu.org>
36144
36145 * normal/main.c (read_config_file): When "menu" is not set, create
36146 an initial context.
36147
36148 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
36149
36150 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
36151 (HEAP_LIMIT): New macro.
36152 (grub_claim_heap): Claim memory up to `heaplimit'.
36153
36154 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
36155
36156 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
36157 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
36158 (_start): Likewise.
36159 (grub_arch_modules_addr): Return address after `_end'.
36160 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
36161 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
36162 (add_segments): Calculate `_end' from phdr size and location.
36163 (ALIGN_UP): Moved to ...
36164 * include/grub/misc.h: here.
36165 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
36166 New macro.
36167 (GRUB_IEEE1275_MODULE_BASE): Removed.
36168
36169 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36170
36171 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
36172 loop boundary.
36173
36174 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36175
36176 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
36177 All users updated.
36178 (grub_elf64_load_hook_t): Likewise.
36179 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
36180 debug output.
36181
36182 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36183
36184 * kern/mm.c: Update copyright.
36185 (grub_mm_debug): Correct syntax error.
36186 (grub_mm_dump_free): New function.
36187 (grub_debug_free): Call `grub_free'.
36188 * include/grub/mm.h: Update copyright.
36189 (grub_mm_dump_free): Add declaration.
36190
36191 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36192
36193 * include/grub/ieee1275/ieee1275.h: Update copyright.
36194 * kern/powerpc/ieee1275/init.c: Likewise.
36195 * kern/powerpc/ieee1275/openfw.c: Likewise.
36196
36197 * loader/powerpc/ieee1275/linux.c: Likewise.
36198 * include/grub/elfload.h: Likewise.
36199 * kern/elf.c: Likewise.
36200 (grub_elf32_load): Pass `base' and `size' parameters. Update all
36201 callers.
36202 (grub_elf64_load): Likewise.
36203 (grub_elf32_load_segment): Move to a nested function.
36204 (grub_elf64_load_segment): Likewise.
36205
36206 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36207
36208 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
36209 prototype.
36210 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
36211 (grub_heap_len): Likewise.
36212 (HEAP_SIZE): New macro.
36213 (grub_claim_heap): New function.
36214 (grub_machine_init): Don't claim heap directly. Call
36215 `grub_claim_heap'.
36216 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
36217 (grub_available_iterate): New function.
36218
36219 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
36220
36221 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
36222 * configure.ac: Use it for testing the HOST and TARGET compilers.
36223
36224 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
36225
36226 * Makefile.in (enable_grub_emu): New variable.
36227 * configure.ac (--enable-grub-emu): New option.
36228 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
36229 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
36230 * conf/i386-pc.rmk: Likewise.
36231 * conf/powerpc-ieee1275.rmk: Likewise.
36232 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
36233
36234 2006-12-12 Marco Gerards <marco@gnu.org>
36235
36236 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
36237
36238 * kern/env.c (grub_env_unset): Don't free the member `value' when
36239 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
36240 pointer.
36241
36242 * normal/main.c (current_menu): Removed.
36243 (free_menu): Unset the `menu' environment variable.
36244 (grub_normal_menu_addentry): Make use of the environment variable
36245 `menu', instead of using the global `current_menu'. Allocate
36246 memory for the sourcecode of this entry.
36247 (read_config_file): New argument `nested', changed all callers.
36248 Only in the case of a new context, initialize a new menu. Set the
36249 `menu' environment variable.
36250 (grub_normal_execute): Don't set and unset the environment
36251 variable `menu' here anymore. Only free the menu when leaving the
36252 context.
36253
36254 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
36255 leak.
36256
36257 2006-12-11 Marco Gerards <marco@gnu.org>
36258
36259 * normal/menu_entry.c (run): Fix off by one bug so the last line
36260 is executed. Move the loader check to outside the loop.
36261
36262 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
36263
36264 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
36265
36266 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
36267
36268 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
36269 the number of sectors. Reported by Andrey Shuvikov
36270 <mr_hyro@yahoo.com>.
36271
36272 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
36273
36274 * kern/disk.c (grub_disk_read): When there is a read error, always
36275 try to read only the necessary data.
36276
36277 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
36278 disk/raid.c.
36279 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
36280 prototype.
36281 [GRUB_UTIL] (grub_raid_fini): Likewise.
36282 [GRUB_UTIL] (grub_lvm_init): Likewise.
36283 [GRUB_UTIL] (grub_lvm_fini): Likewise.
36284 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
36285 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
36286 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
36287 and grub_raid_fini().
36288
36289 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
36290
36291 * include/grub/types.h (__unused): Rename to UNUSED.
36292 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
36293 (grub_elf64_size): Likewise.
36294
36295 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36296
36297 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
36298 grub_error_push and grub_error_pop in the error-handling path.
36299 (grub_elf32_load_segment): Only call grub_file_read with non-zero
36300 length.
36301
36302 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36303
36304 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
36305 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36307 (kernel_elf_SOURCES): Likewise.
36308 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
36309 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
36310 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36311 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36312 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
36313 (elf_mod_SOURCES): New variable.
36314 (elf_mod_CFLAGS): Likewise.
36315 (elf_mod_LDFLAGS): Likewise.
36316 * include/grub/types.h (__unused): New macro.
36317 * include/grub/elfload.h: New file.
36318 * kern/elf.c: Likewise.
36319 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
36320 (ELF32_LOADMASK): New macro.
36321 (ELF64_LOADMASK): Likewise.
36322 (vmlinux): Removed.
36323 (grub_linux_load32): New function.
36324 (grub_linux_load64): Likewise.
36325 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
36326 Use grub_elf_t instead of grub_file_t.
36327
36328 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
36329
36330 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
36331 `catch_result' to struct set_color_args.
36332
36333 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36334
36335 * normal/menu.c: Include grub/script.h.
36336 * normal/menu_entry.c: Likewise.
36337 * include/grub/normal.h: Do not include grub/script.h.
36338
36339 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36340
36341 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
36342
36343 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36344
36345 * kern/disk.c (grub_disk_open): Print debug messages when opening a
36346 disk.
36347 (grub_disk_close): Print debug messages when closing a disk.
36348 (grub_disk_read): Print debug messages when disk read fails.
36349 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
36350 filesystem type.
36351 * kern/partition.c: Include misc.h.
36352 (grub_partition_iterate): Print debug messages when detecting
36353 partition type.
36354
36355 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36356
36357 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
36358 is negative.
36359 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
36360
36361 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
36362
36363 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
36364 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
36365
36366 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
36367
36368 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
36369 instead of sizeof(lv). Patch by Michael Guntsche.
36370
36371 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
36372
36373 * disk/lvm.c: Rename VGS to VG_LIST.
36374 (grub_lvm_iterate): Change VGS->LV to VG-LV.
36375 (grub_lvm_open): Likewise.
36376 Thanks to Michael Guntsche for finding this bug.
36377
36378 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36379
36380 * configure.ac (AC_INIT): Bumped to 1.95.
36381
36382 2006-10-14 Robert Millan <rmh@aybabtu.com>
36383
36384 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
36385 with "/dev/.static/dev/md".
36386
36387 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36388
36389 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
36390 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
36391 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
36392 DRIVE_NAME are always freed.
36393
36394 * util/i386/pc/biosdisk.c (make_device_name): Add one into
36395 DOS_PART, as a DOS partition is counted from one instead of zero
36396 now. Reported by Robert Millan.
36397
36398 2006-10-14 Robert Millan <rmh@aybabtu.com>
36399
36400 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
36401 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
36402 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
36403 string returned by grub_guess_root_device.
36404 * util/i386/pc/grub-setup.c: Likewise.
36405 * util/i386/pc/grub-probefs.c: Likewise.
36406
36407 * util/i386/pc/grub-probefs.c: Rename to ...
36408 * util/i386/pc/grub-probe.c: ... this.
36409 * DISTLIST: Remove grub-probefs, add grub-probe.
36410 * conf/i386-efi.rmk: Likewise.
36411 * conf/i386-pc.rmk: Likewise.
36412 * util/i386/pc/grub-install.in: Likewise.
36413
36414 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
36415 choose which information we want to print.
36416
36417 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36418
36419 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
36420 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
36421 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
36422 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
36423 video/readers/tga.c and video/i386/pc/vbeutil.c.
36424
36425 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
36426
36427 Added support for RAID and LVM.
36428
36429 * disk/lvm.c: New file.
36430 * disk/raid.c: Likewise.
36431 * include/grub/lvm.h: Likewise.
36432 * include/grub/raid.h: Likewise.
36433 * include/grub/util/lvm.h: Likewise.
36434 * include/grub/util/raid.h: Likewise.
36435 * util/lvm.c: Likewise.
36436 * util/raid.c: Likewise.
36437
36438 * include/grub/disk.h (grub_disk_dev_id): Add
36439 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
36440 (grub_disk_get_size): New prototype.
36441 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
36442 returns a partition.
36443 (grub_disk_get_size): New function.
36444
36445 * kern/i386/pc/init.c (make_install_device): Copy the prefix
36446 verbatim if grub_install_dos_part is -2.
36447
36448 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
36449 and LVM devices.
36450
36451 * util/i386/pc/grub-setup.c (setup): New argument
36452 MUST_EMBED. Force embedding of GRUB when the argument is
36453 true. Close FILE before returning.
36454 (main): Add support for RAID and LVM.
36455
36456 * conf/common.rmk: Add RAID and LVM modules.
36457 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
36458 util/lvm.c.
36459 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
36460
36461 * kern/misc.c (grub_strstr): New function.
36462 * include/grub/misc.h (grub_strstr): New prototype.
36463
36464 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
36465
36466 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
36467
36468 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
36469
36470 * kern/misc.c (grub_strtoull): Guess the base only if not
36471 specified.
36472
36473 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36474
36475 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
36476 PowerMac support.
36477
36478 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36479
36480 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
36481
36482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
36483 Remove `flags' argument. All callers changed.
36484 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
36485 (IEEE1275_IHANDLE_INVALID): New variable.
36486 (IEEE1275_CELL_INVALID): New variable.
36487 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36488 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
36489 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
36490 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
36491 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
36492 codes from Open Firmware. All callers updated.
36493 (grub_ieee1275_next_property): Directly return Open Firmware return
36494 code.
36495 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36496 Standardize error checking from `grub_ieee1275_get_property'.
36497 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
36498 `devalias' to `aliases'. Correct comments. Consolidate error paths.
36499
36500 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36501
36502 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
36503 `instance_to_package_args' to `instance_to_path_args'.
36504
36505 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
36506 `grub_ieee1275_chosen'.
36507
36508 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
36509 `grub_ieee1275_interpret'.
36510
36511 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36512
36513 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
36514
36515 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36516
36517 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
36518 (__cmpdi): Likewise.
36519
36520 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
36521 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
36522 `grub_ssize_t'.
36523
36524 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
36525
36526 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
36527 to type `grub_ssize_t'.
36528 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
36529
36530 2006-09-22 Marco Gerards <marco@gnu.org>
36531
36532 * normal/script.c (grub_script_create_cmdmenu): Skip leading
36533 newlines.
36534
36535 2006-09-22 Marco Gerards <marco@gnu.org>
36536
36537 * commands/echo.c: New file.
36538
36539 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
36540
36541 * conf/common.rmk (echo_mod_SOURCES): New variable.
36542 (echo_mod_CFLAGS): Likewise.
36543 (echo_mod_LDFLAGS): Likewise.
36544
36545 2006-09-22 Marco Gerards <marco@gnu.org>
36546
36547 * normal/main.c (get_line): Malloc memory instead of using
36548 preallocated memory. Removed the arguments `cmdline' and
36549 `max_len'. Updated all callers.
36550
36551 2006-09-22 Marco Gerards <marco@gnu.org>
36552
36553 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
36554 (normal_mod_DEPENDENCIES): Likewise.
36555
36556 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
36557 (normal_mod_DEPENDENCIES): Likewise.
36558
36559 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
36560
36561 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
36562
36563 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
36564 programs.
36565 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
36566 (normal_mod_DEPENDENCIES): Likewise.
36567 * conf/i386-pc.mk: Regenerate.
36568 * conf/i386-efi.mk: Likewise
36569 * conf/common.mk: Likewise.
36570 * conf/powerpc-ieee1275.mk: Likewise.
36571 * conf/sparc64-ieee1275.mk: Likewise.
36572
36573 2006-09-22 Robert Millan <rmh@aybabtu.com>
36574
36575 Sync with i386 version.
36576 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
36577 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
36578
36579 2006-09-21 Robert Millan <rmh@aybabtu.com>
36580
36581 Import from GRUB Legacy (lib/device.c):
36582 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
36583 (init_device_map) [__linux__]: Add support for I2O devices.
36584
36585 2006-09-14 Marco Gerards <marco@gnu.org>
36586
36587 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
36588 `-melf_i386'.
36589
36590 2006-09-14 Robert Millan <rmh@aybabtu.com>
36591
36592 * util/i386/pc/grub-install.in: Skip menu.lst when removing
36593 /boot/grub/*.lst.
36594
36595 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
36596
36597 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
36598 before adding it to device.map.
36599
36600 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
36601
36602 * genmk.rb: Let GCC generate dependencies the first time it
36603 compiles a file; using the -MD option.
36604 * conf/common.mk: Regenerate.
36605 * conf/i386-pc.mk: Likewise.
36606 * conf/i386-efi.mk: Likewise.
36607 * conf/powerpc-ieee1275.mk: Likewise.
36608 * conf/sparc64-ieee1275.mk: Likewise.
36609
36610 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
36611
36612 Move the prototypes of grub_setjmp and grub_longjmp to
36613 cpu/setjmp.h, so that each architecture may specify different
36614 attributes.
36615
36616 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
36617 (grub_longjmp): Likewise.
36618 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
36619 (grub_longjmp): Likewise.
36620 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
36621 (grub_longjmp): Likewise.
36622
36623 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
36624 [!GRUB_UTIL] (grub_longjmp): Removed.
36625
36626 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
36627
36628 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
36629 "color!" method does not return any value.
36630
36631 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36632
36633 * include/grub/bitmap.h: New file.
36634
36635 * include/grub/i386/pc/vbeutil.h: Likewise.
36636
36637 * video/bitmap.c: Likewise.
36638
36639 * video/readers/tga.c: Likewise.
36640
36641 * video/i386/pc/vbeutil.c: Likewise.
36642
36643 * commands/videotest.c: Code cleanup and updated to reflect to new
36644 video API.
36645
36646 * term/gfxterm.c: Likewise.
36647
36648 * video/video.c: Likewise.
36649
36650 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
36651 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
36652 (bitmap_mod_SOURCES): New entry.
36653 (bitmap_mod_CFLAGS): Likewise.
36654 (bitmap_mod_LDFLAGS): Likewise.
36655 (tga_mod_SOURCES): Likewise.
36656 (tga_mod_CFLAGS): Likewise.
36657 (tga_mod_LDFLAGS): Likewise.
36658
36659 * include/grub/video.h (grub_video_blit_operators): New enum type.
36660 (grub_video_render_target): Changed as forward declaration and moved
36661 actual definition to be video driver specific.
36662 (grub_video_adapter.blit_bitmap): Added blitting operator.
36663 (grub_video_adapter.blit_render_target): Likewise.
36664 (grub_video_blit_bitmap): Likewise.
36665 (grub_video_blit_render_target): Likewise.
36666
36667 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
36668 driver specific render target definition.
36669 (grub_video_vbe_map_rgba): Added driver internal helper.
36670 (grub_video_vbe_unmap_color): Updated to use
36671 grub_video_i386_vbeblit_info.
36672 (grub_video_vbe_get_video_ptr): Likewise.
36673
36674 * include/grub/i386/pc/vbeblit.h
36675 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
36676 grub_video_i386_vbeblit_info.
36677 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36678 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36679 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36680 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36681 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36682 (grub_video_i386_vbeblit_index_index): Likewise.
36683 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
36684 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36685 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36686 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
36687 operator.
36688 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
36689 operator.
36690
36691 * video/i386/pc/vbeblit.c: Updated to reflect changes on
36692 include/grub/i386/pc/vbeblit.h.
36693
36694 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
36695 Updated to use grub_video_i386_vbeblit_info.
36696 (grub_video_i386_vbefill_R8G8B8): Likewise.
36697 (grub_video_i386_vbefill_index): Likewise.
36698 (grub_video_i386_vbefill): Added generic filler.
36699
36700 * video/i386/pc/vbefill.c: Updated to reflect changes on
36701 include/grub/i386/pc/vbefill.h.
36702
36703 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
36704 grub_video_i386_vbeblit_info.
36705 (grub_video_vbe_unmap_color): Likewise.
36706 (grub_video_vbe_blit_glyph): Likewise.
36707 (grub_video_vbe_scroll): Likewise.
36708 (grub_video_vbe_draw_pixel): Removed function.
36709 (grub_video_vbe_get_pixel): Likewise.
36710 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
36711 updated code to use it.
36712 (common_blitter): Added common blitter for render target and bitmap.
36713 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
36714 (grub_video_vbe_blit_render_target): Likewise.
36715
36716 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
36717
36718 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
36719 is in text mode if there is no console control protocol instance
36720 available.
36721
36722 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36723
36724 * include/grub/video.h: Code cleanup.
36725
36726 * include/grub/i386/pc/vbe.h: Likewise.
36727
36728 * video/i386/pc/vbe.c: Likewise.
36729
36730 * video/i386/pc/vbeblit.c: Likewise.
36731
36732 * video/i386/pc/vbefill.c: Likewise.
36733
36734 * video/video.c: Likewise. Also added more comments.
36735
36736 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36737
36738 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
36739 (struct grub_biosdisk_dap): Likewise.
36740
36741 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
36742 linkage settings for all functions.
36743
36744 2006-07-12 Marco Gerards <marco@gnu.org>
36745
36746 * configure.ac (--enable-mm-debug): Fix typo.
36747
36748 * genkernsyms.sh.in: Use proper quoting for `CC'.
36749
36750 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
36751
36752 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
36753 (normal_mod_ASFLAGS): Remove "-m32".
36754
36755 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
36756
36757 * util/misc.c: Include config.h.
36758 [!HAVE_MEMALIGN]: Do not include malloc.h.
36759 (grub_memalign): Use posix_memalign, if present. Then, use
36760 memalign, if present. Otherwise, emit an error.
36761
36762 * util/grub-emu.c: Do not include malloc.h.
36763
36764 * include/grub/util/misc.h: Include unistd.h. This is required for
36765 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
36766 D. Eades III <hde@foobar-qux.org>.
36767
36768 * configure.ac (AC_GNU_SOURCE): Added.
36769 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
36770 type.
36771
36772 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
36773
36774 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
36775 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
36776
36777 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
36778
36779 * include/grub/types.h (grub_host_addr_t): Rename to
36780 grub_target_addr_t.
36781 (grub_host_off_t): Rename to grub_target_off_t.
36782 (grub_host_size_t): Rename to grub_target_size_t.
36783 (grub_host_ssize_t): Rename to grub_target_ssize_t.
36784 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
36785
36786 * include/grub/kernel.h (struct grub_module_header): Change type
36787 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
36788 (grub_module_info): Likewise.
36789
36790 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36791
36792 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
36793 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
36794 Velazquez <jesus.velazquez@gmail.com>.
36795
36796 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36797
36798 Count partitions from 1 instead of 0 in the string representation
36799 of partitions. Still use 0-based internally.
36800
36801 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
36802 (sun_partition_map_iterate): Use grub_partition_t instead of
36803 struct grub_partition *. Cast DESC->START_CYLINDER to
36804 grub_uint64_t after converting the endian.
36805 (sun_partition_map_probe): Subtract 1 for PARTNUM.
36806 (sun_partition_map_get_name): Add 1 to P->INDEX.
36807
36808 * partmap/pc.c (grub_partition_parse): Subtract 1 for
36809 PCDATA->DOS_PART.
36810 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
36811
36812 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
36813 zero instead of one.
36814 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
36815 (gpt_partition_map_get_name): Add 1 into P->INDEX.
36816
36817 * partmap/apple.c (apple_partition_map_iterate): Change the type
36818 of POS to unsigned.
36819 (apple_partition_map_probe): Subtract 1 for PARTNUM.
36820 (apple_partition_map_get_name): Add 1 into P->INDEX.
36821
36822 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
36823 of POS to unsigned.
36824 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
36825 calculate the offset of a partition.
36826 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
36827 (amiga_partition_map_get_name): Add 1 into P->INDEX.
36828
36829 * partmap/acorn.c (acorn_partition_map_find): Change the type of
36830 SECTOR to grub_disk_addr_t.
36831 (acorn_partition_map_iterate): Likewise.
36832 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
36833 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
36834 top.
36835 (acorn_partition_map_get_name): Add 1 into P->INDEX.
36836
36837 * kern/i386/pc/init.c (make_install_device): Add 1 into
36838 GRUB_INSTALL_DOS_PART.
36839
36840 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
36841 conditional.
36842
36843 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36844
36845 Clean up the code to support 64-bit addressing in disks and
36846 files. This change is not enough for filesystems yet.
36847
36848 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
36849 type of "start" to grub_uint64_t.
36850 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
36851 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
36852 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
36853 convert addresses.
36854
36855 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
36856 to grub_disk_addr_t.
36857
36858 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
36859 string.
36860
36861 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36862
36863 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
36864 to char *.
36865
36866 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
36867
36868 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
36869
36870 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
36871
36872 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
36873 to grub_off_t, to detect an error from grub_file_seek.
36874 (grub_multiboot_load_elf32): Likewise.
36875
36876 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
36877 maximum unsigned long value when an overflow is detected.
36878 (grub_strtoull): New function.
36879 (grub_divmod64): Likewise.
36880 (grub_lltoa): use grub_divmod64.
36881
36882 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
36883 grub_disk_addr_t.
36884 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
36885 the pointer to next character. Use grub_strtoull instead of
36886 grub_strtoul.
36887 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
36888 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
36889 respectively.
36890
36891 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
36892 return value is signed.
36893 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
36894 test if OFFSET is less than zero, as OFFSET is unsigned now.
36895
36896 * kern/disk.c (struct grub_disk_cache): Change the type of
36897 "sector" to grub_disk_addr_t.
36898 (grub_disk_cache_get_index): Change the type of SECTOR to
36899 grub_disk_addr_t. Calculate the hash with SECTOR casted to
36900 unsigned after shifting.
36901 (grub_disk_cache_invalidate): Change the type of SECTOR to
36902 grub_disk_addr_t.
36903 (grub_disk_cache_unlock): Likewise.
36904 (grub_disk_cache_store): Likewise.
36905 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
36906 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
36907 grub_disk_addr_t and grub_uint64_t, respectively.
36908 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
36909 body, as the value of OFFSET is tweaked by
36910 grub_disk_check_range. Change the types of START_SECTOR, LEN and
36911 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
36912 respectively.
36913 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
36914 body, as the value of OFFSET is tweaked by
36915 grub_disk_check_range. Change the types of LEN and N to
36916 grub_size_t.
36917
36918 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
36919 and "saved_offset" to grub_off_t.
36920 (test_header): Cast BUF to char *.
36921 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
36922 to char *.
36923 (grub_gzio_read): Change the types of OFFSET and SIZE to
36924 grub_off_t and grub_size_t, respectively.
36925
36926 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
36927 Removed.
36928 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
36929 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
36930 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
36931 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
36932 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
36933
36934 * include/grub/types.h (grub_off_t): Unconditionally set to
36935 grub_uint64_t.
36936 (grub_disk_addr_t): Changed to grub_uint64_t.
36937
36938 * include/grub/partition.h (struct grub_partition): Change the
36939 types of "start", "len" and "offset" to grub_disk_addr_t,
36940 grub_uint64_t and grub_disk_addr_t, respectively.
36941 (grub_partition_get_start): Return grub_disk_addr_t.
36942 (grub_partition_get_len): Return grub_uint64_t.
36943
36944 * include/grub/misc.h (grub_strtoull): New prototype.
36945 (grub_divmod64): Likewise.
36946
36947 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
36948 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
36949 grub_off_t, respectively.
36950 All callers and references changed.
36951
36952 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
36953 grub_size_t in "read".
36954 All callers and references changed.
36955
36956 * include/grub/file.h (struct grub_file): Change the types of
36957 "offset" and "size" to grub_off_t and grub_off_t,
36958 respectively. Change the type of SECTOR to grub_disk_addr_t in
36959 "read_hook".
36960 (grub_file_read): Change the type of LEN to grub_size_t.
36961 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
36962 grub_off_t.
36963 (grub_file_size): Return grub_off_t.
36964 (grub_file_tell): Likewise.
36965 All callers and references changed.
36966
36967 * include/grub/disk.h (struct grub_disk_dev): Change the types of
36968 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
36969 "write".
36970 (struct grub_disk): Change the type of "total_sectors" to
36971 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
36972 "read_hook".
36973 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
36974 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
36975 (grub_disk_write): Likewise.
36976 All callers and references changed.
36977
36978 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
36979 char * for grub_strncmp to silence gcc.
36980 (grub_iso9660_mount): Likewise.
36981 (grub_iso9660_mount): Likewise.
36982 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
36983 return statement.
36984 (grub_iso9660_iterate_dir): Likewise.
36985 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
36986
36987 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
36988 LEN to grub_disk_addr_t and grub_size_t, respectively.
36989
36990 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
36991
36992 * fs/jfs.c (grub_jfs_read_file): Likewise.
36993
36994 * fs/minix.c (grub_jfs_read_file): Likewise.
36995
36996 * fs/sfs.c (grub_jfs_read_file): Likewise.
36997
36998 * fs/ufs.c (grub_jfs_read_file): Likewise.
36999
37000 * fs/xfs.c (grub_jfs_read_file): Likewise.
37001
37002 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
37003 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
37004 respectively.
37005
37006 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
37007 BLKNR to -1 instead of returning GRUB_ERRNO.
37008 (grub_ext2_read_file): Change the types of SECTOR and
37009 LEN to grub_disk_addr_t and grub_size_t, respectively.
37010
37011 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
37012 LEN to grub_disk_addr_t and grub_size_t, respectively.
37013
37014 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
37015 grub_file_read.
37016
37017 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
37018 string. Do not cast SECTOR explicitly.
37019
37020 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
37021 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
37022 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
37023 grub_disk_addr_t and grub_size_t, respectively. If the sector is
37024 over 2TB and LBA mode is not supported, raise an error.
37025 (get_safe_sectors): New function.
37026 (grub_biosdisk_read): Use get_safe_sectors.
37027 (grub_biosdisk_write): Likewise.
37028
37029 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
37030 (grub_efidisk_write): Likewise.
37031
37032 * disk/loopback.c (delete_loopback): Cosmetic changes.
37033 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
37034 correctly.
37035 (grub_loopback_open): Likewise.
37036 (grub_loopback_read): Likewise. Also, change the type of POS to
37037 grub_off_t, and fix the usage of grub_memset.
37038
37039 * commands/i386/pc/play.c: Include grub/machine/time.h.
37040
37041 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
37042 print FILE->SIZE.
37043
37044 * commands/configfile.c: Include grub/env.h.
37045
37046 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
37047 GRUB_ERRNO directly instead. Change the type of POS to
37048 grub_off_t. Follow the coding standard.
37049
37050 * commands/blocklist.c: Include grub/partition.h.
37051 (grub_cmd_blocklist): Return an error if the underlying device is
37052 not a disk. Take the starting sector of a partition into account,
37053 if a partition is used.
37054
37055 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
37056 a length field.
37057 (lba_mode): Support 64-bit addresses.
37058 (chs_mode): Likewise.
37059 (copy_buffer): Adapted to the new offsets of a length field and a
37060 segment field.
37061 (blocklist_default_start): Allocate 64-bit space.
37062
37063 * boot/i386/pc/boot.S (force_lba): Removed.
37064 (boot_drive): Moved to under KERNEL_SECTOR.
37065 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
37066 space.
37067 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
37068 is useless.
37069 (lba_mode): Refactored to support a 64-bit address. More size
37070 optimization.
37071 (setup_sectors): Likewise.
37072
37073 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
37074
37075 * DISTLIST: Added include/grub/i386/linux.h. Removed
37076 include/grub/i386/pc/linux.h
37077
37078 * configure.ac (AC_INIT): Bumped to 1.94.
37079
37080 * config.guess: Updated from gnulib.
37081 * config.sub: Likewise.
37082 * install-sh: Likewise.
37083 * mkinstalldirs: Likewise.
37084
37085 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
37086
37087 * conf/common.rmk (grub_modules_init.lst): Depended on
37088 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
37089 MODSRCFILES.
37090
37091 * genmk.rb (PModule::rule): Reverted the previous change.
37092
37093 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
37094
37095 * conf/common.rmk (grub_modules_init.lst): Depends on
37096 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
37097 that the target does not exist before producing.
37098 (grub_modules_init.h): Remove the target before generating.
37099 (grub_emu_init.c): Likewise.
37100
37101 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
37102
37103 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
37104
37105 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
37106 for the target-specific tests. Make sure that we also have the
37107 up-to-date target variables for those tests.
37108
37109 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
37110
37111 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
37112 (PModule::rule): Likewise.
37113
37114 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
37115
37116 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
37117 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
37118 target-specific flags should be prefixed.
37119 (PModule::rule): Likewise.
37120
37121 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
37122
37123 * configure.ac (CMP): Check if cmp is available explicitly.
37124
37125 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
37126
37127 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
37128 (target_cpu): New variable.
37129 (pkglibdir): Use target_cpu instead of host_cpu.
37130
37131 * util/i386/pc/grub-install.in (host_cpu): Removed.
37132 (target_cpu): New variable.
37133 (pkglibdir): Use target_cpu instead of host_cpu.
37134
37135 * util/genmoddep.c: Removed.
37136
37137 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
37138 instead of GRUB_HOST_SIZEOF_VOID_P.
37139 * kern/dl.c: Likewise.
37140
37141 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
37142 ...
37143 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37144 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37145 (GRUB_TARGET_SIZEOF_LONG): ... this.
37146 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37147 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37148 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
37149 to ...
37150 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37151 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37152 (GRUB_TARGET_SIZEOF_LONG): ... this.
37153 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37154 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37155 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
37156 to ...
37157 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37158 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37159 (GRUB_TARGET_SIZEOF_LONG): ... this.
37160 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37161 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37162
37163 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
37164 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
37165 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
37166 instead of GRUB_HOST_SIZEOF_LONG.
37167 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
37168 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
37169 GRUB_CPU_WORDS_BIGENDIAN.
37170 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
37171 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
37172 grub_host_ssize_t.
37173
37174 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
37175 (genmoddep_SOURCES): Likewise.
37176 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
37177 (genmoddep_SOURCES): Likewise.
37178 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
37179 (genmoddep_SOURCES): Likewise.
37180 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
37181 Likewise.
37182 (genmoddep_SOURCES): Likewise.
37183
37184 * genmoddep.awk: New file.
37185
37186 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
37187 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
37188 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
37189 (PModule::rule): Likewise.
37190 (Program::rule): Likewise.
37191 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
37192 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
37193 respectively.
37194
37195 * configure.ac: Rewritten intensively to use host and target
37196 instead of build and host, respectively.
37197
37198 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
37199 (host_cpu): Removed.
37200 (target_cpu): New variable.
37201 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
37202 (BUILD_CC): Removed.
37203 (BUILD_CFLAGS): Likewise.
37204 (BUILD_CPPFLAGS): Likewise.
37205 (TARGET_CC): New variable.
37206 (TARGET_CFLAGS): Likewise.
37207 (TARGET_CPPFLAGS): Likewise.
37208 (TARGET_LDFLAGS): Likewise.
37209 (AWK): Likewise.
37210 (include): Use target_cpu instead of host_cpu.
37211 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
37212
37213 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
37214
37215 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
37216
37217 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
37218 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
37219 field 'false' to 'exec_on_false'.
37220 (grub_script_create_cmdif): Renamed argument names to reflect above
37221 changes.
37222
37223 * normal/execute.c (grub_script_execute_cmdif): Likewise.
37224
37225 * normal/script.c (grub_script_create_cmdif): Likewise.
37226
37227 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
37228
37229 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
37230 top.
37231 (grub_hfsplus_btree_recptr): Likewise.
37232 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
37233 FILEBLOCK both to pass a block number and store next block
37234 number.
37235 (grub_hfsplus_read_block): Rewritten heavily to support an extent
37236 overflow file correctly. Specify errors appropriately, because
37237 fshelp expects that GRUB_ERRNO is set when fails. Reuse
37238 grub_hfsplus_btree_recptr to get the pointer to a found key.
37239 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
37240 is found.
37241
37242 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
37243 linux.mod.
37244 (_linux_mod_SOURCES): New variable.
37245 (_linux_mod_CFLAGS): Likewise.
37246 (_linux_mod_LDFLAGS): Likewise.
37247 (linux_mod_SOURCES): Likewise.
37248 (linux_mod_CFLAGS): Likewise.
37249 (linux_mod_LDFLAGS): Likewise.
37250
37251 * DISTLIST: Added loader/i386/efi/linux.c,
37252 loader/i386/efi/linux_normal.c and
37253 include/grub/i386/efi/loader.h.
37254
37255 * loader/i386/efi/linux.c: New file.
37256 * loader/i386/efi/linux_normal.c: Likewise.
37257 * include/grub/i386/efi/loader.h: Likewise.
37258
37259 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
37260
37261 * commands/blocklist.c: New file.
37262
37263 * DISTLIST: Added commands/blocklist.c.
37264
37265 * term/efi/console.c (grub_console_highlight_color): Use a lighter
37266 color for the background, and a darker color for the foreground.
37267 (grub_console_checkkey): Return READ_KEY.
37268 (grub_console_cls): Set the background to
37269 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
37270
37271 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
37272
37273 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
37274 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
37275
37276 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
37277 prototype.
37278
37279 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
37280 BG. The spec is wrong again.
37281
37282 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
37283 prototype.
37284 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
37285
37286 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
37287 commands/blocklist.c.
37288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37289
37290 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
37291 (blocklist_mod_SOURCES): New variable.
37292 (blocklist_mod_CFLAGS): Likewise.
37293 (blocklist_mod_LDFLAGS): Likewise.
37294
37295 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
37296
37297 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
37298 duplication.
37299 (lba_mode): Use %eax more intensively to reduce the code size.
37300
37301 2006-05-20 Marco Gerards <marco@gnu.org>
37302
37303 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
37304
37305 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
37306 for `menuentry'.
37307 (script): Accept leading newlines.
37308 (newlines): New rule to describe 0 or more newlines.
37309 (commands): Accept `command' with trailing newline. Fixed the
37310 order in which arguments were passed to `grub_script_add_cmd'.
37311 Accept commands separated by newlines.
37312 (function): Changed to accept newlines.
37313 (menuentry) Rewritten.
37314
37315 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
37316 front of the list, instead of to the end.
37317
37318 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
37319
37320 * util/i386/pc/grub-install.in (bindir): New variable.
37321 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
37322 Shaver <lbgwjl@gmail.com>.
37323
37324 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
37325
37326 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
37327 grub/machine/linux.h
37328 * loader/i386/pc/linux.c: Likewise.
37329
37330 * include/grub/i386/pc/linux.h: Moved to ...
37331 * include/grub/i386/linux.h: ... here.
37332
37333 * include/grub/i386/linux.h (struct linux_kernel_params): New
37334 struct.
37335
37336 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
37337
37338 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
37339 checking.
37340 (grub_video_vbe_blit_glyph): Likewise.
37341 (grub_video_vbe_blit_bitmap): Likewise.
37342 (grub_video_vbe_blit_render_target): Likewise.
37343
37344 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
37345
37346 * configure.ac (--with-platform): Properly quote the square
37347 brackets.
37348
37349 2006-05-08 Marco Gerards <marco@gnu.org>
37350
37351 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
37352 this...
37353 (kernel_elf_HEADERS): ...to this. Updated all users.
37354 (grubof_symlist.c): Renamed from this...
37355 (kernel_elf_symlist.c): ...to this. Updated all users.
37356 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37357 (grubof_SOURCES): Renamed from this...
37358 (kernel_elf_SOURCES): ...to this.
37359 (grubof_HEADERS): Renamed from this...
37360 (kernel_elf_HEADERS): ...to this.
37361 (grubof_CFLAGS): Renamed from this...
37362 (kernel_elf_CFLAGS): ...to this.
37363 (grubof_ASFLAGS): Renamed from this...
37364 (kernel_elf_ASFLAGS): ...to this.
37365 (grubof_LDFLAGS): Renamed from this...
37366 (kernel_elf_LDFLAGS): ...to this.
37367
37368 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
37369 this...
37370 (kernel_elf_HEADERS): ...to this. Updated all users.
37371 (grubof_symlist.c): Renamed from this...
37372 (kernel_elf_symlist.c): ...to this. Updated all users.
37373 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37374 (grubof_SOURCES): Renamed from this...
37375 (kernel_elf_SOURCES): ...to this.
37376 (grubof_HEADERS): Renamed from this...
37377 (kernel_elf_HEADERS): ...to this.
37378 (grubof_CFLAGS): Renamed from this...
37379 (kernel_elf_CFLAGS): ...to this.
37380 (grubof_ASFLAGS): Renamed from this...
37381 (kernel_elf_ASFLAGS): ...to this.
37382 (grubof_LDFLAGS): Renamed from this...
37383 (kernel_elf_LDFLAGS): ...to this.
37384
37385 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
37386 `kernel.elf' instead of `grubof'.
37387
37388 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
37389
37390 Add --with-platform to configure. Use pkglibdir instead of
37391 pkgdatadir. This is reported by Roger Leigh.
37392
37393 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
37394 (host_vendor): Likewise.
37395 (host_os): Likewise.
37396 (pkgdatadir): Likewise.
37397 (platform): New variable.
37398 (pkglibdir): Likewise.
37399 Use PKGLIBDIR instead of PKGDATADIR.
37400
37401 * util/i386/pc/grub-install.in (datadir): Removed.
37402 (host_vendor): Likewise.
37403 (host_os): Likewise.
37404 (pkgdatadir): Likewise.
37405 (platform): New variable.
37406 (pkglibdir): Likewise.
37407 Use PKGLIBDIR instead of PKGDATADIR.
37408
37409 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
37410 instead of GRUB_DATADIR.
37411 (main): Likewise.
37412 * util/i386/pc/grub-mkimage.c (usage): Likewise.
37413 (main): Likewise.
37414 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37415 (main): Likewise.
37416
37417 * configure.ac (--with-platform): New option.
37418 Use PLATFORM instead of HOST_VENDOR to specify a platform.
37419
37420 * Makefile.in: Include a makefile based on PLATFORM instead of
37421 HOST_VENDOR.
37422 (pkgdatadir): Not appended by the machine type.
37423 (pkglibdir): Appended by the machine type.
37424 (host_vendor): Removed.
37425 (platform): New variable.
37426 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
37427 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
37428 (uninstall): Likewise.
37429
37430 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
37431
37432 Use the environment context in the menu. Remove the commands
37433 "default" and "timeout", and use variables instead.
37434
37435 * normal/menu.c: Include grub/env.h.
37436 (print_entry): Cast TITLE to silence gcc.
37437 (get_timeout): New function.
37438 (set_timeout): Likewise.
37439 (get_entry_number): Likewise.
37440 (run_menu): Use a default entry, a fallback entry and a timeout
37441 in the environment variables "default", "fallback" and
37442 "timeout". Also, tweak the default entry if it is not within the
37443 current menu entries.
37444 (grub_menu_run): Use a fallback entry in the environment variable
37445 "fallback".
37446
37447 * normal/main.c (read_config_file): Do not initialize
37448 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
37449 NEWMENU->TIMEOUT.
37450 (grub_normal_execute): Use a data slot to store the menu.
37451
37452 * include/grub/normal.h (struct grub_menu): Removed default_entry,
37453 fallback_entry and timeout.
37454 (struct grub_menu_list): Removed.
37455 (grub_menu_list_t): Likewise.
37456 (struct grub_context): Likewise.
37457 (grub_context_t): Likewise.
37458 (grub_context_get): Likewise.
37459 (grub_context_get_current_menu): Likewise.
37460 (grub_context_push_menu): Likewise.
37461 (grub_context_pop_menu): Likewise.
37462 (grub_default_init): Likewise.
37463 (grub_default_fini): Likewise.
37464 (grub_timeout_init): Likewise.
37465 (grub_timeout_fini): Likewise.
37466
37467 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
37468 and timeout.mod.
37469 (normal_mod_SOURCES): Removed normal/context.c.
37470
37471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
37472 commands/default.c, commands/timeout.c and normal/context.c.
37473 (normal_mod_SOURCES): Removed normal/context.c.
37474
37475 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
37476 commands/timeout.c and normal/context.c.
37477 (normal_mod_SOURCES): Removed normal/context.c.
37478
37479 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
37480 commands/default.c, commands/timeout.c and normal/context.c.
37481 (normal_mod_SOURCES): Removed normal/context.c.
37482
37483 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
37484 timeout.mod.
37485 (default_mod_SOURCES): Removed.
37486 (default_mod_CFLAGS): Likewise.
37487 (default_mod_LDFLAGS): Likewise.
37488 (timeout_mod_SOURCES): Removed.
37489 (timeout_mod_CFLAGS): Likewise.
37490 (timeout_mod_LDFLAGS): Likewise.
37491
37492 * DISTLIST: Removed commands/default.c, commands/timeout.c and
37493 normal/context.c.
37494
37495 * commands/default.c: Removed.
37496 * commands/timeout.c: Likewise.
37497 * normal/context.c: Likewise.
37498
37499 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
37500
37501 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
37502
37503 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
37504
37505 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
37506 "next" to "prev" for readability.
37507 (struct grub_env_sorted_var): New struct.
37508 (grub_env_context): Renamed to ...
37509 (initial_context): ... this.
37510 (grub_env_var_context): Renamed to ...
37511 (current_context): ... this.
37512 (grub_env_find): Look only at CURRENT_CONTEXT.
37513 (grub_env_context_open): Rewritten to copy exported variables from
37514 previous context.
37515 (grub_env_context_close): Rewritten according to the new
37516 scheme. Also, add an assertion to prevent the initial context from
37517 removed.
37518 (grub_env_insert): Removed the code for the sorted list.
37519 (grub_env_remove): Likewise.
37520 (grub_env_export): Simply mark the variable with
37521 GRUB_ENV_VAR_GLOBAL.
37522 (grub_env_set): A cosmetic change for naming consistency.
37523 (grub_env_get): Likewise.
37524 (grub_env_unset): Likewise.
37525 (grub_env_iterate): Rewritten to sort variables within this
37526 function.
37527 (grub_register_variable_hook): Fixed for naming consistency. Call
37528 grub_env_find again, only if NAME is not found at the first time.
37529 (mangle_data_slot_name): New function.
37530 (grub_env_set_data_slot): Likewise.
37531 (grub_env_get_data_slot): Likewise.
37532 (grub_env_unset_data_slot): Likewise.
37533
37534 * include/grub/env.h (grub_env_var_type): New enum.
37535 (GRUB_ENV_VAR_LOCAL): New constant.
37536 (GRUB_ENV_VAR_GLOBAL): Likewise.
37537 (GRUB_ENV_VAR_DATA): Likewise.
37538 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
37539 "type".
37540 (grub_env_set): Replace VAR with NAME for consistency.
37541 (grub_register_variable_hook): Likewise.
37542 (grub_env_export): Specify the name of the argument.
37543 (grub_env_set_data_slot): New prototype.
37544 (grub_env_get_data_slot): Likewise.
37545 (grub_env_unset_data_slot): Likewise.
37546
37547 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37548
37549 Extend the loader so that GRUB can accept a loader which comes
37550 back to GRUB when a loaded image exits. Also, this change adds
37551 support for a chainloader on EFI.
37552
37553 * term/efi/console.c: Include grub/misc.h.
37554 (grub_console_checkkey): Display a scan code on the top for
37555 debugging. This will be removed once the EFI port gets stable.
37556 Correct the scan code mapping.
37557
37558 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
37559 allocate memory from larger regions, in order to reduce the number
37560 of allocated regions. Otherwise, the MacOSX loader panics.
37561 (filter_memory_map): Avoid less than 1MB for compatibility with
37562 other loaders.
37563 (add_memory_regions): Allocate from the tail of a region, if
37564 possible, to avoid allocating a region near to 1MB, for the MacOSX
37565 loader.
37566
37567 * kern/efi/init.c (grub_efi_set_prefix): Specify
37568 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
37569
37570 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
37571 argument IMAGE_HANDLE and specify it to get a loaded image.
37572 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
37573 grub_efi_get_loaded_image.
37574 (grub_efi_get_filename): Divide the length by the size of
37575 grub_efi_char16_t.
37576 (grub_efi_get_device_path): New function.
37577 (grub_efi_print_device_path): Print End Device Path nodes. Divide
37578 the length by the size of grub_efi_char16_t for a file path device
37579 path node.
37580
37581 * kern/loader.c (grub_loader_noreturn): New variable.
37582 (grub_loader_set): Accept a new argument NORETURN. Set
37583 GRUB_LOADER_NORETURN to NORETURN.
37584 All callers changed.
37585 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
37586 grub_machine_fini.
37587
37588 * include/grub/efi/efi.h (grub_efi_get_device_path): New
37589 prototype.
37590 (grub_efi_get_loaded_image): Take an argument to specify an image
37591 handle.
37592
37593 * include/grub/loader.h (grub_loader_set): Added one more argument
37594 NORETURN.
37595
37596 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
37597 instead of grub_efi_open_protocol.
37598 (grub_efidisk_get_device_name): Likewise.
37599 (grub_efidisk_close): Print a newline.
37600 (grub_efidisk_get_device_handle): Fixed to use
37601 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
37602 GRUB_EFI_DEVICE_PATH_TYPE.
37603
37604 * disk/efi/efidisk.c (device_path_guid): Moved to ...
37605 * kern/efi/efi.c (device_path_guid): ... here.
37606
37607 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
37608 chain.mod.
37609 (kernel_mod_HEADERS): Added efi/disk.h.
37610 (_chain_mod_SOURCES): New variable.
37611 (_chain_mod_CFLAGS): Likewise.
37612 (_chain_mod_LDFLAGS): Likewise.
37613 (chain_mod_SOURCES): Likewise.
37614 (chain_mod_CFLAGS): Likewise.
37615 (chain_mod_LDFLAGS): Likewise.
37616
37617 * DISTLIST: Added include/grub/efi/chainloader.h,
37618 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
37619
37620 * include/grub/efi/chainloader.h: New file.
37621 * loader/efi/chainloader.c: Likewise.
37622 * loader/efi/chainloader_normal.c: Likewise.
37623
37624 2006-04-30 Marco Gerards <marco@gnu.org>
37625
37626 * commands/configfile.c (grub_cmd_source): New function.
37627 (GRUB_MOD_INIT): Register the commands `source' and `.'.
37628 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
37629
37630 2006-04-30 Marco Gerards <marco@gnu.org>
37631
37632 * normal/execute.c (grub_script_execute_cmd): Change the return
37633 type to `grub_err_t'. Correctly return the error.
37634 (grub_script_execute_cmdline): In case a command line is not a
37635 command or a function, try to interpret it as an assignment.
37636
37637 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37638
37639 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
37640 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
37641 skip a node whose name is obviously invalid as UTF-16,
37642 i.e. contains a NUL character. Stop the iteration when the last
37643 directory entry is found. Instead of using the return value of
37644 grub_hfsplus_btree_iterate_node, store the value in RET and use
37645 it, because the iterator can be stopped by the last directory
37646 entry.
37647
37648 2006-04-30 Marco Gerards <marco@gnu.org>
37649
37650 * include/grub/env.h (grub_env_export): New prototype. Reported
37651 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
37652
37653 2006-04-30 Marco Gerards <marco@gnu.org>
37654
37655 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
37656 size of the extents in a catalog file record.
37657
37658 2006-04-29 Marco Gerards <marco@gnu.org>
37659
37660 * commands/configfile.c (grub_cmd_configfile): Execute the
37661 configfile within its own context.
37662
37663 * include/grub/env.h (grub_env_context_open): New prototype.
37664 (grub_env_context_close): Likewise.
37665
37666 * kern/env.c (grub_env): Removed.
37667 (grub_env_sorted): Likewise.
37668 (grub_env_context): New variable.
37669 (grub_env_var_context): Likewise.
37670 (grub_env_find): Search both the active context and the global
37671 context.
37672 (grub_env_context_open): New function.
37673 (grub_env_context_close): Likewise.
37674 (grub_env_insert): Likewise.
37675 (grub_env_remove): Likewise.
37676 (grub_env_export): Likewise.
37677 (grub_env_set): Changed to use helper functions to avoid code
37678 duplication.
37679 (grub_env_iterate): Rewritten so both the current context and the
37680 global context are being used.
37681
37682 * normal/command.c (export_command): New function.
37683 (grub_command_init): Register the `export' function.
37684
37685 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
37686
37687 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
37688 explicitly to suppress gcc's warnings.
37689 * fs/fat.c (grub_fat_find_dir): Likewise.
37690 (grub_fat_label): Likewise.
37691 * fs/xfs.c (grub_xfs_read_inode): Likewise.
37692 (grub_xfs_mount): Likewise.
37693 (grub_xfs_label): Likewise.
37694 * fs/affs.c (grub_affs_mount): Likewise.
37695 (grub_affs_label): Likewise.
37696 (grub_affs_iterate_dir): Likewise.
37697 * fs/sfs.c (grub_sfs_mount): Likewise.
37698 (grub_sfs_iterate_dir): Likewise.
37699 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
37700 * fs/hfs.c (grub_hfs_mount): Likewise.
37701 (grub_hfs_cmp_catkeys): Likewise.
37702 (grub_hfs_find_dir): Likewise.
37703 (grub_hfs_dir): Likewise.
37704 (grub_hfs_label): Likewise.
37705 * fs/jfs.c (grub_jfs_mount): Likewise.
37706 (grub_jfs_opendir): Likewise.
37707 (grub_jfs_getent): Likewise.
37708 (grub_jfs_lookup_symlink): Likewise.
37709 (grub_jfs_label): Likewise.
37710 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
37711 (grub_hfsplus_iterate_dir): Likewise.
37712 (grub_hfsplus_btree_iterate_node): Made static.
37713
37714 * util/grub-emu.c (prefix): New variable.
37715 (grub_machine_set_prefix): New function.
37716 (main): Do not set the environment variable "prefix" here. Only
37717 set PREFIX, which is used later by grub_machine_set_prefix.
37718
37719 * include/grub/video.h: Do not include grub/symbol.h.
37720 (grub_video_register): Not exported. This symbol is not defined in
37721 the kernel.
37722 (grub_video_unregister): Likewise.
37723 (grub_video_iterate): Likewise.
37724 (grub_video_setup): Likewise.
37725 (grub_video_restore): Likewise.
37726 (grub_video_get_info): Likewise.
37727 (grub_video_get_blit_format): Likewise.
37728 (grub_video_set_palette): Likewise.
37729 (grub_video_get_palette): Likewise.
37730 (grub_video_set_viewport): Likewise.
37731 (grub_video_get_viewport): Likewise.
37732 (grub_video_map_color): Likewise.
37733 (grub_video_map_rgb): Likewise.
37734 (grub_video_map_rgba): Likewise.
37735 (grub_video_fill_rect): Likewise.
37736 (grub_video_blit_glyph): Likewise.
37737 (grub_video_blit_bitmap): Likewise.
37738 (grub_video_blit_render_target): Likewise.
37739 (grub_video_scroll): Likewise.
37740 (grub_video_swap_buffers): Likewise.
37741 (grub_video_create_render_target): Likewise.
37742 (grub_video_delete_render_target): Likewise.
37743 (grub_video_set_active_render_target): Likewise.
37744
37745 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
37746 Undefined.
37747 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
37748
37749 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
37750 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37751 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37752 instead of $(srcdir)/genkernsyms.sh.
37753
37754 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
37755 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37756 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37757 instead of $(srcdir)/genkernsyms.sh.
37758
37759 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
37760 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37761 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37762 instead of $(srcdir)/genkernsyms.sh.
37763
37764 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
37765 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37766 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37767 instead of $(srcdir)/genkernsyms.sh.
37768
37769 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
37770 genkernsyms.sh.
37771
37772 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
37773 genkernsyms.sh.
37774 (gensymlist.sh): New target.
37775 (genkernsyms.sh): Likewise.
37776
37777 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
37778 genkernsyms.sh.in and gensymlist.sh.in.
37779
37780 * genkernsyms.sh: Removed.
37781 * gensymlist.sh: Likewise.
37782
37783 * genkernsyms.sh.in: New file.
37784 * gensymlist.sh.in: Likewise.
37785
37786 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37787
37788 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
37789 clobber "prefix", since we may have already set it manually.
37790
37791 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37792
37793 * kern/misc.c (abort): New alias for grub_abort.
37794
37795 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
37796
37797 A new machine-specific function "grub_machine_set_prefix" is
37798 defined. This is called after loading modules, so that a prefix
37799 initialization can use modules. Also, this change adds an
37800 intensive debugging feature for the memory manager via the
37801 configure option "--enable-mm-debug".
37802
37803 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
37804 PART.LEN.
37805
37806 * kern/sparc64/ieee1275/init.c (abort): Removed.
37807 (grub_stop): Likewise.
37808 (grub_exit): New function.
37809 (grub_set_prefix): Renamed to ...
37810 (grub_machine_set_prefix): ... this.
37811 (grub_machine_init): Do not call grub_set_prefix.
37812
37813 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
37814 (grub_machine_set_prefix): ... this.
37815 (grub_machine_init): Do not call grub_set_prefix.
37816
37817 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
37818 (grub_machine_init): Do not set the prefix here.
37819
37820 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
37821
37822 * kern/efi/init.c: Include grub/mm.h.
37823 (grub_efi_set_prefix): New function.
37824
37825 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
37826 (grub_efi_get_filename): New function.
37827 (grub_print_device_path): Renamed to ...
37828 (grub_efi_print_device_path): ... this.
37829
37830 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
37831 [MM_DEBUG] (grub_realloc): Likewise.
37832 [MM_DEBUG] (grub_free): Likewise.
37833 [MM_DEBUG] (grub_memalign): Likewise.
37834 [MM_DEBUG] (grub_mm_debug): New variable.
37835 [MM_DEBUG] (grub_debug_malloc): New function.
37836 [MM_DEBUG] (grub_debug_free): New function.
37837 [MM_DEBUG] (grub_debug_realloc): New function.
37838 [MM_DEBUG] (grub_debug_memalign): New function.
37839
37840 * kern/misc.c (grub_abort): Print a newline to distinguish
37841 the message.
37842
37843 * kern/main.c (grub_main): Call grub_machine_set_prefix and
37844 grub_set_root_dev after loading modules. This is necessary when
37845 setting a prefix depends on modules.
37846
37847 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
37848 (grub_efi_print_device_path): ... this.
37849 (grub_efi_get_filename): New prototype.
37850 (grub_efi_set_prefix): Likewise.
37851
37852 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
37853 and grub/disk.h.
37854 (grub_efidisk_get_device_handle): New prototype.
37855 (grub_efidisk_get_device_name): Likewise.
37856
37857 * include/grub/mm.h: Include config.h.
37858 (MM_DEBUG): Removed.
37859 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
37860 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
37861 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
37862 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
37863 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
37864 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
37865 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
37866 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
37867 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
37868
37869 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
37870
37871 * disk/efi/efidisk.c: Include grub/partition.h.
37872 (iterate_child_devices): New function.
37873 (add_device): First, compare only last device path nodes, so that
37874 devices are sorted by the types.
37875 (grub_efidisk_get_device_handle): New function.
37876 (grub_efidisk_get_device_name): Likewise.
37877
37878 * configure.ac (--enable-mm-debug): New option to enable the
37879 memory manager debugging feature. This makes the binary much
37880 bigger, so is disabled by default.
37881
37882 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
37883
37884 Use grub_abort instead of grub_stop, and grub_exit must be
37885 define in each architecture now. Also, this change adds support
37886 for EFI disks.
37887
37888 * util/i386/pc/grub-probefs.c: Include grub/term.h.
37889 (grub_getkey): New function.
37890 (grub_term_get_current): Likewise.
37891
37892 * util/i386/pc/grub-setup.c: Include grub/term.h.
37893 (grub_getkey): New function.
37894 (grub_term_get_current): Likewise.
37895
37896 * util/misc.c (grub_stop): Renamed to ...
37897 (grub_exit): ... this.
37898
37899 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
37900 (grub_exit): ... this.
37901 (grub_machine_init): Use grub_abort instead of abort.
37902 (grub_stop): Removed.
37903
37904 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
37905 abort.
37906
37907 * kern/i386/pc/startup.S (grub_exit): New function.
37908 (cold_reboot): New label.
37909
37910 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
37911 (grub_efi_init): Call grub_efidisk_init.
37912 (grub_efi_fini): Call grub_efidisk_fini.
37913
37914 * kern/efi/efi.c: Include grub/mm.h.
37915 (grub_efi_console_control_guid): Renamed to ...
37916 (console_control_guid): ... this.
37917 (grub_efi_loaded_image_guid): Renamed to ...
37918 (loaded_image_guid): ... this.
37919 (grub_efi_locate_handle): New function.
37920 (grub_efi_open_protocol): Likewise.
37921 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
37922 GRUB_EFI_CONSOLE_CONTROL_GUID.
37923 (grub_efi_exit): Removed.
37924 (grub_stop): Likewise.
37925 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
37926 (grub_exit): New function.
37927 (grub_print_device_path): Likewise.
37928
37929 * kern/rescue.c (grub_rescue_cmd_exit): New function.
37930 (grub_enter_rescue_mode): Register "exit".
37931
37932 * kern/misc.c (grub_real_dprintf): A cosmetic change.
37933 (grub_abort): New function.
37934
37935 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
37936
37937 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
37938
37939 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
37940
37941 * include/grub/efi/efi.h (grub_efi_exit): Removed.
37942 (grub_print_device_path): New prototype.
37943 (grub_efi_locate_handle): Likewise.
37944 (grub_efi_open_protocol): Likewise.
37945
37946 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
37947 * disk/efi/efidisk.c: Likewise.
37948
37949 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
37950
37951 * include/grub/efi/console_control.h
37952 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
37953
37954 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
37955 last 8 bytes as an array.
37956 (GRUB_EFI_DISK_IO_GUID): New macro.
37957 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
37958 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
37959 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
37960 grub_uint8_t.
37961 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
37962 (struct grub_efi_device_path): Rename the member "sub_type" to
37963 "subtype".
37964 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
37965 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
37966 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
37967 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
37968 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
37969 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
37970 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
37971 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
37972 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
37973 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
37974 (struct grub_efi_pci_device_path): New structure.
37975 (grub_efi_pci_device_path_t): New type.
37976 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
37977 (struct grub_efi_pccard_device_path): New structure.
37978 (grub_efi_pccard_device_path_t): New type.
37979 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
37980 (struct grub_efi_memory_mapped_device_path): New structure.
37981 (grub_efi_memory_mapped_device_path_t): New type.
37982 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
37983 (struct grub_efi_vendor_device_path): New structure.
37984 (grub_efi_vendor_device_path_t): New type.
37985 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
37986 (struct grub_efi_controller_device_path): New structure.
37987 (grub_efi_controller_device_path_t): New type.
37988 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
37989 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
37990 (struct grub_efi_acpi_device_path): New structure.
37991 (grub_efi_acpi_device_path_t): New type.
37992 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
37993 (struct grub_efi_expanded_acpi_device_path): New structure.
37994 (grub_efi_expanded_acpi_device_path_t): New type.
37995 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
37996 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
37997 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
37998 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
37999 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
38000 (struct grub_efi_atapi_device_path): New structure.
38001 (grub_efi_atapi_device_path_t): New type.
38002 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
38003 (struct grub_efi_fibre_channel_device_path): New structure.
38004 (grub_efi_fibre_channel_device_path_t): New type.
38005 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
38006 (struct grub_efi_1394_device_path): New structure.
38007 (grub_efi_1394_device_path_t): New type.
38008 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
38009 (struct grub_efi_usb_device_path): New structure.
38010 (grub_efi_usb_device_path_t): New type.
38011 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
38012 (struct grub_efi_usb_class_device_path): New structure.
38013 (grub_efi_usb_class_device_path_t): New type.
38014 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
38015 (struct grub_efi_i2o_device_path): New structure.
38016 (grub_efi_i2o_device_path_t): New type.
38017 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
38018 (struct grub_efi_mac_address_device_path): New structure.
38019 (grub_efi_mac_address_device_path_t): New type.
38020 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
38021 (struct grub_efi_ipv4_device_path): New structure.
38022 (grub_efi_ipv4_device_path_t): New type.
38023 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
38024 (struct grub_efi_ipv6_device_path): New structure.
38025 (grub_efi_ipv6_device_path_t): New type.
38026 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
38027 (struct grub_efi_infiniband_device_path): New structure.
38028 (grub_efi_infiniband_device_path_t): New type.
38029 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
38030 (struct grub_efi_uart_device_path): New structure.
38031 (grub_efi_uart_device_path_t): New type.
38032 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
38033 (struct grub_efi_vendor_messaging_device_path): New structure.
38034 (grub_efi_vendor_messaging_device_path_t): New type.
38035 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
38036 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
38037 (struct grub_efi_hard_drive_device_path): New structure.
38038 (grub_efi_hard_drive_device_path_t): New type.
38039 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
38040 (struct grub_efi_cdrom_device_path): New structure.
38041 (grub_efi_cdrom_device_path_t): New type.
38042 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
38043 (struct grub_efi_vendor_media_device_path): New structure.
38044 (grub_efi_vendor_media_device_path_t): New type.
38045 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
38046 (struct grub_efi_file_path_device_path): New structure.
38047 (grub_efi_file_path_device_path_t): New type.
38048 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
38049 (struct grub_efi_protocol_device_path): New structure.
38050 (grub_efi_protocol_device_path_t): New type.
38051 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
38052 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
38053 (struct grub_efi_bios_device_path): New structure.
38054 (grub_efi_bios_device_path_t): New type.
38055 (struct grub_efi_disk_io): New structure.
38056 (grub_efi_disk_io_t): New type.
38057 (struct grub_efi_block_io_media): New structure.
38058 (grub_efi_block_io_media_t): New type.
38059 (struct grub_efi_block_io): New structure.
38060 (grub_efi_block_io_t): New type.
38061
38062 * include/grub/misc.h (grub_stop): Removed.
38063 (grub_exit): New prototype.
38064 (grub_abort): Likewise.
38065
38066 * include/grub/disk.h (enum grub_disk_dev_id): Added
38067 GRUB_DISK_DEVICE_EFIDISK_ID.
38068
38069 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
38070 disk/efi/efidisk.c.
38071 (kernel_syms.lst): Remove the target if an error occurs.
38072
38073 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
38074
38075 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
38076 as it was simply too buggy.
38077
38078 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
38079
38080 * kern/misc.c (grub_lltoa): New function.
38081 (grub_vsprintf): Added support for the long long suffix,
38082 i.e. "ll".
38083
38084 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
38085
38086 * Makefile.in (LDFLAGS): Add variable.
38087 (LD): Remove variable.
38088 * configure.ac: Add -m32 to LDFLAGS.
38089 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
38090 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
38091 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
38092 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
38093 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
38094 variables.
38095 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
38096 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
38097 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
38098
38099 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
38100
38101 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
38102 length for unknown glyph.
38103
38104 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
38105
38106 Add support for pre-loaded modules into the EFI port.
38107
38108 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
38109 completely. Accept one more argument DIR. The caller has changed.
38110
38111 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
38112
38113 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
38114 (grub_efi_loaded_image_guid): New variable.
38115 (grub_efi_get_loaded_image): New function.
38116 (grub_arch_modules_addr): Likewise.
38117
38118 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
38119 prototype.
38120
38121 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
38122 (struct grub_efi_loaded_image): New structure.
38123 (grub_efi_loaded_image_t): New type.
38124
38125 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
38126
38127 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
38128 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
38129 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
38130
38131 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
38132
38133 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
38134
38135 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
38136
38137 * DISTLIST: Added include/grub/efi/console.h,
38138 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
38139 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38140
38141 * include/grub/efi/console.h: New file.
38142 * include/grub/efi/time.h: Likewise.
38143 * include/grub/i386/efi/kernel.h: Likewise.
38144 * kern/efi/init.c: Likewise.
38145 * kern/efi/mm.c: Likewise.
38146 * term/efi/console.c: Likewise.
38147
38148 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
38149 (grub_stop): Removed.
38150 (grub_get_rtc): Likewise.
38151 (grub_machine_init): Simply call grub_efi_init.
38152 (grub_machine_fini): Call grub_efi_fini.
38153
38154 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
38155 (grub_efi_output_string): Removed.
38156 (grub_efi_stall): New function.
38157 (grub_stop): Likewise.
38158 (grub_get_rtc): Likewise.
38159
38160 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
38161 (grub_efi_stall): New prototype.
38162 (grub_efi_allocate_pages): Likewise.
38163 (grub_efi_free_pages): Likewise.
38164 (grub_efi_get_memory_map): Likewise.
38165 (grub_efi_mm_init): Likewise.
38166 (grub_efi_mm_fini): Likewise.
38167 (grub_efi_init): Likewise.
38168 (grub_efi_fini): Likewise.
38169
38170 * include/grub/i386/efi/time.h: Do not include
38171 grub/symbol.h. Include grub/efi/time.h.
38172 (GRUB_TICKS_PER_SECOND): Removed.
38173 (grub_get_rtc): Likewise.
38174
38175 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
38176 Added padding. The EFI spec is buggy.
38177 (GRUB_EFI_BLACK): New macro.
38178 (GRUB_EFI_BLUE): Likewise.
38179 (GRUB_EFI_GREEN): Likewise.
38180 (GRUB_EFI_CYAN): Likewise.
38181 (GRUB_EFI_RED): Likewise.
38182 (GRUB_EFI_MAGENTA): Likewise.
38183 (GRUB_EFI_BROWN): Likewise.
38184 (GRUB_EFI_LIGHTGRAY): Likewise.
38185 (GRUB_EFI_BRIGHT): Likewise.
38186 (GRUB_EFI_DARKGRAY): Likewise.
38187 (GRUB_EFI_LIGHTBLUE): Likewise.
38188 (GRUB_EFI_LIGHTGREEN): Likewise.
38189 (GRUB_EFI_LIGHTCYAN): Likewise.
38190 (GRUB_EFI_LIGHTRED): Likewise.
38191 (GRUB_EFI_LIGHTMAGENTA): Likewise.
38192 (GRUB_EFI_YELLOW): Likewise.
38193 (GRUB_EFI_WHITE): Likewise.
38194 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
38195 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
38196 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
38197 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
38198 (GRUB_EFI_BACKGROUND_RED): Likewise.
38199 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
38200 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
38201 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
38202 (GRUB_EFI_TEXT_ATTR): Likewise.
38203
38204 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
38205 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38206 (kernel_mod_HEADERS): Added efi/time.h.
38207
38208 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
38209
38210 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
38211 include/grub/efi/api.h, include/grub/efi/console_control.h,
38212 include/grub/efi/efi.h, include/grub/efi/pe32.h,
38213 include/grub/i386/efi/time.h, kern/efi/efi.c,
38214 kern/i386/efi/init.c, kern/i386/efi/startup.S,
38215 and util/i386/efi/grub-mkimage.c.
38216
38217 * Makefile.in (RMKFILES): Added i386-efi.rmk.
38218
38219 * genmk.rb (PModule#rule): Do not export symbols if
38220 #{prefix}_EXPORTS is set to "no".
38221
38222 * conf/i386-efi.mk: New file.
38223 * conf/i386-efi.rmk: Likewise.
38224 * include/grub/efi/api.h: Likewise.
38225 * include/grub/efi/console_control.h: Likewise.
38226 * include/grub/efi/efi.h: Likewise.
38227 * include/grub/efi/pe32.h: Likewise.
38228 * include/grub/i386/efi/time.h: Likewise.
38229 * kern/efi/efi.c: Likewise.
38230 * kern/i386/efi/init.c: Likewise.
38231 * kern/i386/efi/startup.S: Likewise.
38232 * util/i386/efi/grub-mkimage.c: Likewise.
38233
38234 2006-04-17 Marco Gerards <marco@gnu.org>
38235
38236 * include/grub/script.h: Include <grub/parser.h> and
38237 "grub_script.tab.h".
38238 (struct grub_lexer_param): New struct.
38239 (struct grub_parser_param): Likewise.
38240 (grub_script_create_arglist): Pass the state in an argument.
38241 (grub_script_add_arglist): Likewise.
38242 (grub_script_create_cmdline): Likewise.
38243 (grub_script_create_cmdblock): Likewise.
38244 (grub_script_create_cmdif): Likewise.
38245 (grub_script_create_cmdmenu): Likewise.
38246 (grub_script_add_cmd): Likewise.
38247 (grub_script_arg_add): Likewise.
38248 (grub_script_lexer_ref): Likewise.
38249 (grub_script_lexer_deref): Likewise.
38250 (grub_script_lexer_record_start): Likewise.
38251 (grub_script_lexer_record_stop): Likewise.
38252 (grub_script_mem_record): Likewise.
38253 (grub_script_mem_record_stop): Likewise.
38254 (grub_script_malloc): Likewise.
38255 (grub_script_yylex): Likewise.
38256 (grub_script_yyparse): Likewise.
38257 (grub_script_yyerror): Likewise.
38258 (grub_script_yylex): Likewise.
38259 (grub_script_lexer_init): Return the state.
38260
38261 * normal/lexer.c (grub_script_lexer_state): Removed variable.
38262 (grub_script_lexer_done): Likewise.
38263 (grub_script_lexer_getline): Likewise.
38264 (grub_script_lexer_refs): Likewise.
38265 (script): Likewise.
38266 (newscript): Likewise.
38267 (record): Likewise.
38268 (recording): Likewise.
38269 (recordpos): Likewise.
38270 (recordlen): Likewise.
38271 (grub_script_lexer_init): Return the state instead of setting
38272 global variables.
38273 (grub_script_lexer_ref): Use the newly added argument for state
38274 instead of globals.
38275 (grub_script_lexer_deref): Likewise.
38276 (grub_script_lexer_record_start): Likewise.
38277 (grub_script_lexer_record_stop): Likewise.
38278 (recordchar): Likewise.
38279 (nextchar): Likewise.
38280 (grub_script_yylex2): Likewise.
38281 (grub_script_yylex): Likewise.
38282 (grub_script_yyerror): Likewise.
38283
38284 * normal/parser.y (func_mem): Removed variable.
38285 (menu_entry): Likewise.
38286 (err): Likewise.
38287 (%lex-param): New parser option.
38288 (%parse-param): Likewise.
38289 (script): Always return the AST.
38290 (argument): Pass the state around.
38291 (arguments): Likewise.
38292 (grubcmd): Likewise.
38293 (commands): Likewise.
38294 (function): Likewise.
38295 (menuentry): Likewise.
38296 (if_statement): Likewise.
38297 (if): Likewise.
38298
38299 * normal/script.c (grub_script_memused): Removed variable.
38300 (grub_script_parsed): Likewise.
38301 (grub_script_malloc): Added a state argument. Use that instead of
38302 global variables.
38303 (grub_script_mem_record): Likewise.
38304 (grub_script_mem_record_stop): Likewise.
38305 (grub_script_arg_add): Likewise.
38306 (grub_script_add_arglist): Likewise.
38307 (grub_script_create_cmdline): Likewise.
38308 (grub_script_create_cmdif): Likewise.
38309 (grub_script_create_cmdmenu): Likewise.
38310 (grub_script_add_cmd): Likewise.
38311 (grub_script_parse): Setup the state before calling the parser.
38312
38313 2006-04-16 Marco Gerards <marco@gnu.org>
38314
38315 * normal/command.c (grub_command_init): Remove the title command.
38316
38317 * normal/lexer.c (grub_script_yylex): Renamed from this...
38318 (grub_script_yylex2): ... to this.
38319 (grub_script_yylex): New function. Temporary
38320 introduced to filter some tokens.
38321 (grub_script_yyerror): Print a newline.
38322
38323 * normal/main.c (read_config_file): Output information about the
38324 lines that contain errors. Wait for a key after all lines have
38325 been processed. Don't return an empty menu.
38326
38327 * normal/parser.y (func_mem): Don't initialize.
38328 (menu_entry): Likewise.
38329 (err): New variable.
38330 (script): Don't return anything when an error was encountered.
38331 (ws, returns): Removed rules.
38332 (argument): Disabled concatenated variable support.
38333 (arguments): Remove explicit separators.
38334 (grubcmd): Likewise.
38335 (function): Likewise.
38336 (menuentry): Likewise.
38337 (if): Likewise.
38338 (commands): Likewise. Add error handling.
38339
38340 * normal/script.c (grub_script_create_cmdline): If
38341 `grub_script_parsed' is 0, assume the parser encountered an error.
38342
38343 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
38344
38345 * configure.ac: Add support for EFI. Fix the typo
38346 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
38347
38348 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38349
38350 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
38351 foreign multibyte characters should be shown correctly.
38352
38353 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38354
38355 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
38356 calculation.
38357 (read_config_file): Made it to close file before returning.
38358
38359 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
38360
38361 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
38362 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
38363 video/i386/pc/vbefill.c.
38364
38365 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
38366 video/i386/pc/vbefill.c.
38367
38368 * include/grub/video.h (grub_video_blit_format): New enum.
38369 (grub_video_mode_info): Added new member blit_format.
38370 (grub_video_get_blit_format): New function prototype.
38371
38372 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
38373 function prototype.
38374 (grub_video_vbe_map_rgb): Likewise.
38375 (grub_video_vbe_unmap_color): Likewise.
38376
38377 * include/grub/i386/pc/vbeblit.h: New file.
38378
38379 * include/grub/i386/pc/vbefill.h: New file.
38380
38381 * video/video.c (grub_video_get_blit_format): New function.
38382 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
38383 (grub_video_vbe_map_rgb): Likewise.
38384 (grub_video_vbe_unmap_color): Likewise.
38385
38386 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
38387 optimized fills.
38388 (grub_video_vbe_blit_render_target): Changed to use more optimized
38389 blits.
38390 (grub_video_vbe_setup): Added detection for optimized settings.
38391 (grub_video_vbe_create_render_target): Likewise.
38392
38393 * video/i386/pc/vbeblit.c: New file.
38394
38395 * video/i386/pc/vbefill.c: New file.
38396
38397 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
38398
38399 * font/manager.c (grub_font_get_glyph): Removed font fixup from
38400 here...
38401
38402 * util/unifont2pff.rb: ... and moved it to here. Improved argument
38403 parsing to support both hex and dec ranges. If filename was missing
38404 show usage information.
38405
38406 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
38407
38408 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
38409 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
38410
38411 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
38412 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
38413 (video_mod_SOURCES): Added.
38414 (video_mod_CFLAGS): Likewise.
38415 (video_mod_LDFLAGS): Likewise.
38416 (gfxterm_mod_SOURCES): Likewise.
38417 (gfxterm_mod_CFLAGS): Likewise.
38418 (gfxterm_mod_LDFLAGS): Likewise.
38419 (videotest_mod_SOURCES): Likewise.
38420 (videotest_mod_CFLAGS): Likewise.
38421 (videotest_mod_LDFLAGS): Likewise.
38422 (vesafb_mod_SOURCES): Removed.
38423 (vesafb_mod_CFLAGS): Likewise.
38424 (vesafb_mod_LDFLAGS): Likewise.
38425 (vga_mod_SOURCES): Likewise.
38426 (vga_mod_CFLAGS): Likewise.
38427 (vga_mod_LDFLAGS): Likewise.
38428
38429 * commands/videotest.c: New file.
38430
38431 * font/manager.c (fill_with_default_glyph): Modified to use
38432 grub_font_glyph.
38433 (grub_font_get_glyph): Likewise.
38434 (fontmanager): Renamed from this...
38435 (font_manager): ... to this.
38436
38437 * include/grub/font.h (grub_font_glyph): Added new structure.
38438 (grub_font_get_glyph): Modified to use grub_font_glyph.
38439
38440 * include/grub/misc.h (grub_abs): Added as inline function.
38441
38442 * include/grub/video.h: New file.
38443
38444 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
38445 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
38446 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
38447 (grub_vbe_get_controller_info): Renamed from this...
38448 (grub_vbe_bios_get_controller_info): ... to this.
38449 (grub_vbe_get_mode_info): Renamed from this...
38450 (grub_vbe_bios_get_mode_info): ... to this.
38451 (grub_vbe_set_mode): Renamed from this...
38452 (grub_vbe_bios_set_mode): ... to this.
38453 (grub_vbe_get_mode): Renamed from this...
38454 (grub_vbe_bios_get_mode): ... to this.
38455 (grub_vbe_set_memory_window): Renamed from this...
38456 (grub_vbe_bios_set_memory_window): ... to this.
38457 (grub_vbe_get_memory_window): Renamed from this...
38458 (grub_vbe_bios_get_memory_window): ... to this.
38459 (grub_vbe_set_scanline_length): Renamed from this...
38460 (grub_vbe_set_scanline_length): ... to this.
38461 (grub_vbe_get_scanline_length): Renamed from this...
38462 (grub_vbe_bios_get_scanline_length): ... to this.
38463 (grub_vbe_set_display_start): Renamed from this...
38464 (grub_vbe_bios_set_display_start): ... to this.
38465 (grub_vbe_get_display_start): Renamed from this...
38466 (grub_vbe_bios_get_display_start): ... to this.
38467 (grub_vbe_set_palette_data): Renamed from this...
38468 (grub_vbe_bios_set_palette_data): ... to this.
38469 (grub_vbe_set_pixel_rgb): Removed.
38470 (grub_vbe_set_pixel_index): Likewise.
38471
38472 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
38473 from this...
38474 (grub_vbe_bios_get_controller_info): ... to this.
38475 (grub_vbe_get_mode_info): Renamed from this...
38476 (grub_vbe_bios_get_mode_info): ... to this.
38477 (grub_vbe_set_mode): Renamed from this...
38478 (grub_vbe_bios_set_mode): ... to this.
38479 (grub_vbe_get_mode): Renamed from this...
38480 (grub_vbe_bios_get_mode): ... to this.
38481 (grub_vbe_set_memory_window): Renamed from this...
38482 (grub_vbe_bios_set_memory_window): ... to this.
38483 (grub_vbe_get_memory_window): Renamed from this...
38484 (grub_vbe_bios_get_memory_window): ... to this.
38485 (grub_vbe_set_scanline_length): Renamed from this...
38486 (grub_vbe_set_scanline_length): ... to this.
38487 (grub_vbe_get_scanline_length): Renamed from this...
38488 (grub_vbe_bios_get_scanline_length): ... to this.
38489 (grub_vbe_set_display_start): Renamed from this...
38490 (grub_vbe_bios_set_display_start): ... to this.
38491 (grub_vbe_get_display_start): Renamed from this...
38492 (grub_vbe_bios_get_display_start): ... to this.
38493 (grub_vbe_set_palette_data): Renamed from this...
38494 (grub_vbe_bios_set_palette_data): ... to this.
38495 (grub_vbe_bios_get_controller_info): Fixed problem with registers
38496 getting corrupted after calling it. Added more pushes and pops.
38497 (grub_vbe_bios_set_mode): Likewise.
38498 (grub_vbe_bios_get_mode): Likewise.
38499 (grub_vbe_bios_get_memory_window): Likewise.
38500 (grub_vbe_bios_set_scanline_length): Likewise.
38501 (grub_vbe_bios_get_scanline_length): Likewise.
38502 (grub_vbe_bios_get_display_start): Likewise.
38503 (grub_vbe_bios_set_palette_data): Likewise.
38504
38505 * normal/cmdline.c (cl_set_pos): Refresh the screen.
38506 (cl_insert): Likewise.
38507 (cl_delete): Likewise.
38508
38509 * term/gfxterm.c: New file.
38510
38511 * term/i386/pc/vesafb.c: Removed file.
38512
38513 * video/video.c: New file.
38514
38515 * video/i386/pc/vbe.c (real2pm): Added new function.
38516 (grub_video_vbe_draw_pixel): Likewise.
38517 (grub_video_vbe_get_video_ptr): Likewise.
38518 (grub_video_vbe_get_pixel): Likewise
38519 (grub_video_vbe_init): Likewise.
38520 (grub_video_vbe_fini): Likewise.
38521 (grub_video_vbe_setup): Likewise.
38522 (grub_video_vbe_get_info): Likewise.
38523 (grub_video_vbe_set_palette): Likewise.
38524 (grub_video_vbe_get_palette): Likewise.
38525 (grub_video_vbe_set_viewport): Likewise.
38526 (grub_video_vbe_get_viewport): Likewise.
38527 (grub_video_vbe_map_color): Likewise.
38528 (grub_video_vbe_map_rgb): Likewise.
38529 (grub_video_vbe_map_rgba): Likewise.
38530 (grub_video_vbe_unmap_color): Likewise.
38531 (grub_video_vbe_fill_rect): Likewise.
38532 (grub_video_vbe_blit_glyph): Likewise.
38533 (grub_video_vbe_blit_bitmap): Likewise.
38534 (grub_video_vbe_blit_render_target): Likewise.
38535 (grub_video_vbe_scroll): Likewise.
38536 (grub_video_vbe_swap_buffers): Likewise.
38537 (grub_video_vbe_create_render_target): Likewise.
38538 (grub_video_vbe_delete_render_target): Likewise.
38539 (grub_video_vbe_set_active_render_target): Likewise.
38540 (grub_vbe_set_pixel_rgb): Remove function.
38541 (grub_vbe_set_pixel_index): Likewise.
38542 (index_color_mode): Remove static variable.
38543 (active_mode): Likewise.
38544 (framebuffer): Likewise.
38545 (bytes_per_scan_line): Likewise.
38546 (grub_video_vbe_adapter): Added new static variable.
38547 (framebuffer): Likewise.
38548 (render_target): Likewise.
38549 (initial_mode): Likewise.
38550 (mode_in_use): Likewise.
38551 (mode_list): Likewise.
38552
38553 2006-03-10 Marco Gerards <marco@gnu.org>
38554
38555 * configure.ac (AC_INIT): Bumped to 1.93.
38556
38557 * DISTLIST: Added `include/grub/hfs.h'.
38558
38559 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
38560
38561 * boot/i386/pc/boot.S (general_error): Before looping, try INT
38562 18H, which might help the BIOS falling back to next boot media.
38563
38564 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
38565
38566 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
38567 Poe Chen <poe.poechen@gmail.com>.
38568
38569 2006-01-17 Marco Gerards <marco@gnu.org>
38570
38571 * include/grub/normal.h: Include <grub/script.h>.
38572 (grub_command_list): Removed struct.
38573 (grub_command_list_t): Removed type.
38574 (grub_menu_entry): Remove members `num' and `command_list'. Add
38575 members `commands' and `sourcecode'.
38576 * include/grub/script.h: Add inclusion guards.
38577 (grub_script_cmd_menuentry): New struct.
38578 (grub_script_execute_menuentry): New prototype.
38579 (grub_script_lexer_record_start): Likewise.
38580 (grub_script_lexer_record_stop): Likewise.
38581 * normal/execute.c (grub_script_execute_menuentry): New function.
38582 * normal/lexer.c (record, recording, recordpos, recordlen): New
38583 variables.
38584 (grub_script_lexer_record_start): New function.
38585 (grub_script_lexer_record_stop): Likewise.
38586 (recordchar): Likewise.
38587 (nextchar): Likewise.
38588 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
38589 2048 as the buffer size. Add the tokens `menuentry' and `@'.
38590 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
38591 (current_menu): New variable.
38592 (free_menu): Mainly rewritten.
38593 (grub_normal_menu_addentry): New function.
38594 (read_config_file): Rewritten.
38595 * normal/menu.c (run_menu_entry): Mainly rewritten.
38596 * normal/menu_entry.c (make_screen): Rewritten the code to insert
38597 the menu entry.
38598 (run): Mainly rewritten.
38599 * normal/parser.y (menu_entry): New variable.
38600 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
38601 (menuentry): New rule.
38602 (command): Add `menuentry'.
38603 (if_statement): Allow additional returns before `fi'.
38604 * normal/script.c (grub_script_create_cmdmenu): New function.
38605
38606 2006-01-03 Marco Gerards <marco@gnu.org>
38607
38608 * INSTALL: GNU Bison is required.
38609 * configure.ac: Rewritten the test to detect Bison.
38610 * Makefile.in (YACC): New variable. Reported by Xun Sun
38611 <xun.sun.cn@gmail.com>.
38612
38613 2006-01-03 Marco Gerards <marco@gnu.org>
38614
38615 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
38616 the HFS+ filesystem to filesystem blocks.
38617 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
38618 GCC warning is silenced.
38619
38620 2006-01-03 Marco Gerards <marco@gnu.org>
38621
38622 * partmap/apple.c (apple_partition_map_iterate): Convert the data
38623 read from disk from big endian to host byte order.
38624
38625 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
38626
38627 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
38628 documentation.
38629 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
38630 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
38631 embedded HFS+ filesystem.
38632 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
38633 (grub_hfs_sblock): Move from here...
38634 * include/grub/hfs.h: To here... New file.
38635 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
38636 documentation.
38637 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
38638 New macros.
38639 (grub_hfsplus_volheader): Change type of member `magic' to
38640 `grub_uint16_t'.
38641 (grub_hfsplus_data): Add new member `embedded_offset'.
38642 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
38643 returned block.
38644 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
38645 Calculate the offset.
38646
38647 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38648
38649 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
38650 Removed.
38651 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
38652
38653 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38654
38655 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
38656 ENV->NAME is NULL after allocating ENV->VALUE.
38657
38658 2005-12-25 Marco Gerards <marco@gnu.org>
38659
38660 * kern/env.c (grub_env_set): Rewritten the error handling code.
38661
38662 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38663
38664 * geninit.sh: Made more robust, and more portable.
38665
38666 2005-12-25 Marco Gerards <marco@gnu.org>
38667
38668 Add support for Apple HFS+ filesystems.
38669
38670 * fs/hfsplus.c: New file.
38671
38672 * DISTLIST: Added `fs/hfsplus.c'.
38673
38674 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
38675 (hfsplus_mod_SOURCES): New variable.
38676 (hfsplus_mod_CFLAGS): Likewise.
38677 (hfsplus_mod_LDFLAGS): Likewise.
38678 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
38679 (grub_setup_SOURCES): Likewise.
38680 (grub_mkdevicemap_SOURCES): Likewise.
38681 (grub_emu_SOURCES): Likewise.
38682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38683
38684 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
38685
38686 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
38687
38688 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38689
38690 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
38691 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
38692 include/grub/parser.h, include/grub/script.h, kern/parser.c,
38693 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
38694 normal/lexer.c, normal/parser.y, normal/script.c, and
38695 partmap/gpt.c.
38696 Removed kern/sparc64/cache.c.
38697
38698 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
38699 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
38700 grub_emu_init.c.
38701
38702 * configure.ac (AC_INIT): Bumped to 1.92.
38703
38704 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
38705
38706 * kern/err.c (grub_error_push): Added new function to support error
38707 stacks.
38708 (grub_error_pop): Likewise.
38709 (grub_error_stack_items): New local variable to support error stacks.
38710 (grub_error_stack_pos): Likewise.
38711 (grub_error_stack_assert): Likewise.
38712 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
38713 stack depth.
38714 (grub_print_error): Added support to print errors from error stack.
38715
38716 * include/grub/err.h (grub_error_push): Added function prototype.
38717 (grub_error_pop): Likewise.
38718
38719 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
38720
38721 * configure.ac: Accept `powerpc64' as host_cpu.
38722 (amd64): Rename to `biarch32'.
38723
38724 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
38725 non-cacheline-aligned addresses.
38726
38727 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
38728 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
38729 if `size' is non-zero.
38730
38731 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
38732
38733 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
38734 and `cd' to make sure the filename is not prefixed with a
38735 directory name.
38736 (pkgdata_MODULES): Add `gpt.mod'.
38737 (gpt_mod_SOURCES): New variable.
38738 (gpt_mod_CFLAGS): Likewise.
38739 (gpt_mod_LDFLAGS): Likewise.
38740
38741 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
38742
38743 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
38744 New macro.
38745
38746 * partmap/gpt.c: New file.
38747
38748 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
38749 GPT partition map is detected.
38750
38751 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
38752
38753 * commands/i386/pc/play.c: New file.
38754 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
38755 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
38756 macros.
38757
38758 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
38759
38760 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
38761 ((unused))' to silence gcc warning.
38762
38763 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
38764
38765 * configure.ac: Correct `AC_PROG_YACC' test.
38766
38767 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38768
38769 * util/powerpc/ieee1275/grub-install.in: Run the mount point
38770 check before installing files.
38771
38772 2005-11-22 Mike Small <smallm@panix.com>
38773
38774 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
38775 number regex so multidigit numbers are recognized correctly.
38776
38777 2005-11-22 Mike Small <smallm@panix.com>
38778
38779 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
38780 debugging message before attempting to claim memory.
38781 (grub_rescue_cmd_initrd): Add a claim debugging message and try
38782 multiple addresses in case of failure.
38783
38784 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38785
38786 * term/tparm.c (get_space): Remove empty `if' statement.
38787
38788 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
38789
38790 * kern/parser.c (check_varstate): Rename `state' to 's'.
38791
38792 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38793
38794 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
38795 variable definitions to the beginning of each function. Sort stack
38796 variables by size.
38797 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
38798 `buf' argument to `char *'.
38799
38800 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38801
38802 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
38803 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38804 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38805 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38806 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38807 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38808 configfile.mod, search.mod, gzio.mod and test.mod.
38809 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38810 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38811 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38812 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38813 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38814 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38815 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38816 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38817 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38818 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38819 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38820 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38821 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38822 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38823 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38824 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38825 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38826 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38827 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38828 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38829 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38830 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38831 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
38832
38833 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
38834 `grep --include'.
38835 (pkgdata_MODULES): Add test.mod.
38836
38837 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38838
38839 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
38840 appending to variables with "+=".
38841 (PModule): Use full pathname to generate *.lst filenames.
38842
38843 * Makefile.in: Fixed list rules moved from genmk.rb.
38844 (.DELETE_ON_ERROR): New special target.
38845 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
38846
38847 * conf/i386-pc.rmk: Include conf/common.mk.
38848 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38849 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38850 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38851 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38852 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38853 configfile.mod, search.mod, gzio.mod and test.mod.
38854 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38855 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38856 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38857 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38858 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38859 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38860 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38861 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38862 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38863 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38864 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38865 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38866 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38867 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38868 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38869 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38870 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38871 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38872 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38873 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38874 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38875 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38876 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
38877 here...
38878 * conf/common.rmk: ... to here. New file.
38879
38880 * conf/common.mk: New file.
38881
38882 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
38883
38884 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
38885 (grub_script.tab.c): ... here.
38886
38887 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
38888 (grub_script.tab.c): ... here.
38889
38890 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
38891 (grub_script.tab.c): ... here.
38892
38893 * normal/command.c (grub_command_find): Fixed a memory leak of
38894 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
38895
38896 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38897
38898 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
38899 "@" which marks the start of a comment on ARM.
38900 (VARIABLE): Likewise.
38901
38902 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38903
38904 Add support for Linux/ADFS partition tables.
38905
38906 * partmap/acorn.c: New file.
38907
38908 * include/grub/acorn_filecore.h: Likewise.
38909
38910 * DISTLIST: Added `partmap/acorn.c' and
38911 `include/grub/acorn_filecore.h'.
38912
38913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38914 `partmap/acorn.c'.
38915 (pkgdata_MODULES): Add `acorn.mod'.
38916 (acorn_mod_SOURCES): New variable.
38917 (acorn_mod_CFLAGS): Likewise.
38918
38919 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
38920 `partmap/acorn.c'.
38921 (pkgdata_MODULES): Add `acorn.mod'.
38922 (acorn_mod_SOURCES): New variable.
38923 (acorn_mod_CFLAGS): Likewise.
38924
38925 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
38926 (pkgdata_MODULES): Add `acorn.mod'.
38927 (acorn_mod_SOURCES): New variable.
38928 (acorn_mod_CFLAGS): Likewise.
38929 (acorn_mod_LDFLAGS): Likewise.
38930
38931 * include/types.h (grub_disk_addr_t): New typedef.
38932
38933 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
38934
38935 * geninit.sh: New file.
38936
38937 * geninitheader.sh: Likewise.
38938
38939 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
38940 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
38941 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
38942 * commands/configfile.c (grub_configfile_init)
38943 (grub_configfile_fini): Likewise.
38944 * commands/default.c (grub_default_init, grub_default_fini):
38945 Likewise.
38946 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
38947 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
38948 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
38949 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
38950 Likewise.
38951 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
38952 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
38953 Likewise.
38954 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
38955 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
38956 Likewise.
38957 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
38958 Likewise.
38959 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
38960 Likewise.
38961 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
38962 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
38963 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
38964 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
38965 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
38966 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
38967 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
38968 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
38969 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
38970 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
38971 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
38972 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
38973 * partmap/amiga.c (grub_amiga_partition_map_init)
38974 (grub_amiga_partition_map_fini): Likewise.
38975 * partmap/apple.c (grub_apple_partition_map_init)
38976 (grub_apple_partition_map_fini): Likewise.
38977 * partmap/pc.c (grub_pc_partition_map_init)
38978 (grub_pc_partition_map_fini): Likewise.
38979 * partmap/sun.c (grub_sun_partition_map_init,
38980 grub_sun_partition_map_fini): Likewise.
38981 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
38982 Likewise.
38983
38984 * util/grub-emu.c: Include <grub_modules_init.h>.
38985 (main): Don't initialize and de-initialize any modules directly,
38986 use `grub_init_all' and `grub_fini_all' instead.
38987
38988 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
38989 `grub_vesafb_mod_init'.
38990 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
38991 all users.
38992 * term/i386/pc/vga.c (grub_vga_init): Renamed to
38993 `grub_vga_mod_init'. Updated all users.
38994 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
38995
38996 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
38997 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
38998 rules.
38999
39000 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
39001 Generate a function to initialize the module in utilities.
39002 Updated all callers.
39003 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
39004 initialize the module in utilities. Updated all callers.
39005
39006 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
39007
39008 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
39009 escape sequence and a literal ^L to clear the screen.
39010
39011 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
39012 when returning from Open Firmware.
39013
39014 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
39015
39016 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
39017 (grub_ofconsole_height): Likewise.
39018 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
39019 manually insert a '\n'.
39020 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
39021 `grub_ofconsole_height'. Return early if these are already set.
39022
39023 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
39024
39025 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
39026 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
39027 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
39028 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
39029 and `normal/script.c'.
39030 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39031 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39032 (test_mod_SOURCES): New variable.
39033 (test_mod_CFLAGS): Likewise.
39034 (test_mod_LDFLAGS): Likewise.
39035 (pkgdata_MODULES): Add `test.mod'.
39036 (grub_script.tab.c): New rule.
39037 (grub_script.tab.h): Likewise.
39038
39039 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
39040
39041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39042 `commands/test.c', `normal/execute.c', `normal/lexer.c',
39043 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39044 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39045 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39046 (test_mod_SOURCES): New variable.
39047 (test_mod_CFLAGS): Likewise.
39048 (pkgdata_MODULES): Add `test.mod'.
39049 (grub_script.tab.c): New rule.
39050 (grub_script.tab.h): Likewise.
39051
39052 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
39053
39054 Add initial scripting support.
39055
39056 * commands/test.c: New file.
39057 * include/grub/script.h: Likewise.
39058 * normal/execute.c: Likewise.
39059 * normal/function.c: Likewise.
39060 * normal/lexer.c: Likewise.
39061 * normal/parser.y: Likewise.
39062 * normal/script.c: Likewise.
39063
39064 * configure.ac: Add `AC_PROG_YACC' test.
39065
39066 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
39067 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
39068 `normal/function.c' and `normal/script.c'.
39069 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39070 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39071 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
39072 variables.
39073 (pkgdata_MODULES): Add `test.mod'.
39074 (grub_script.tab.c): New rule.
39075 (grub_script.tab.h): Likewise.
39076
39077 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
39078
39079 * include/grub/normal.h (grub_test_init): New prototype.
39080 (grub_test_fini): Likewise.
39081
39082 * normal/command.c: Include <grub/script.h>.
39083 (grub_command_execute): Rewritten.
39084
39085 * util/grub-emu.c (main): Call `grub_test_init' and
39086 `grub_test_fini'.
39087
39088 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39089
39090 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
39091 to 0.
39092 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
39093 there are no pending characters.
39094
39095 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39096
39097 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
39098 `grub_strndup' to drop device arguments. Replace unnecessary
39099 `grub_strndup' with `grub_strdup'.
39100
39101 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39102
39103 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
39104 `debug' environment variable has been set.
39105
39106 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
39107
39108 * Makefile.in (install-local): Use $(DATA).
39109 (uninstall): Likewise.
39110 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
39111 (sbin_UTILITIES): ... to here.
39112 (sbin_SCRIPTS): New variable.
39113 (grub_install_SOURCES): New variable.
39114 * util/powerpc/ieee1275/grub-install.in: New file.
39115 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
39116 variable.
39117 (add_segments): Call `grub_util_get_path'.
39118
39119 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
39120
39121 From Timothy Baldwin:
39122 * commands/ls.c (grub_ls_list_files): Close FILE with
39123 grub_file_close.
39124 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
39125
39126 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
39127
39128 * include/grub/parser.h: New file.
39129
39130 * kern/parser.c: Likewise.
39131
39132 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
39133 (grub_setup_SOURCES): Likewise.
39134 (grub_probefs_SOURCES): Likewise.
39135 (grub_emu_SOURCES): Likewise.
39136 (kernel_img_HEADERS): Add `parser.h'.
39137
39138 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
39139 (grub_emu_SOURCES): Add `kern/parser.c'.
39140 (grubof_SOURCES): Likewise.
39141
39142 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
39143 (grubof_SOURCES): Add `kern/parser.c'.
39144
39145 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
39146
39147 * kern/misc.c (grub_split_cmdline): Removed function.
39148
39149 * kern/rescue.c: Include <grub/parser.h>.
39150 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
39151 of `grub_split_cmdline'.
39152
39153 * normal/command.c: Include <grub/parser.h>.
39154 (grub_command_execute): Use `grub_parser_split_cmdline' instead
39155 of `grub_split_cmdline'.
39156
39157 * normal/completion.c: Include <grub/parser.h>.
39158 (cmdline_state): New variable.
39159 (iterate_dir): End the filename with a quote depending on the
39160 command line state.
39161 (get_state): new function.
39162 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
39163 split the arguments and determine the current argument. When the
39164 argument string is not quoted, escape all spaces.
39165
39166 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39167
39168 * normal/sparc64/setjmp.S: New file.
39169
39170 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39171
39172 * include/grub/sparc64/libgcc.h: New file.
39173 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
39174 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
39175 normal/sparc64/setjmp.c.
39176
39177 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39178
39179 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
39180 * kern/sparc64/cache.S: New file.
39181 * kern/sparc64/cache.c: Removed.
39182 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
39183 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
39184 -mtune=ultrasparc.
39185 (COMMON_LDFLAGS): Add -melf64_sparc.
39186 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
39187 (grubof_SOURCES): Use cache.S instead of cache.c.
39188 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
39189 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
39190 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
39191 commented though.
39192 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
39193 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
39194 (linux_mod_CFLAGS): Commented out.
39195 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
39196 out because module isn't built.
39197 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
39198 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
39199 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
39200 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
39201 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
39202 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39203 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39204 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
39205 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
39206 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
39207 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39208 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39209 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
39210 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
39211
39212 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
39213
39214 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
39215 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
39216 longer, because HFS should not be used on PC.
39217
39218 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39219
39220 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
39221 consistently within the loop.
39222
39223 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
39224
39225 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
39226 directory can not be read.
39227
39228 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39229
39230 * configure.ac (AC_INIT): Increase the version number to 1.91.
39231
39232 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
39233 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
39234 term/i386/pc/serial.c.
39235
39236 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39237
39238 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
39239 file size must be permitted.
39240
39241 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
39242 between %ah and %al.
39243
39244 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39245
39246 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
39247 grub_uint64_t.
39248 Call the hook with a NUL-terminated filename.
39249 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
39250 grub_cpu_to_be32.
39251
39252 * kern/term.c (cursor_state): New variable.
39253 (grub_term_set_current): Reset the cursor state on a new
39254 terminal.
39255 (grub_setcursor): Rewritten to use CURSOR_STATE.
39256 (grub_getcursor): New function.
39257
39258 * include/grub/term.h (grub_getcursor): New prototype.
39259
39260 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
39261 integers on ARM. Reported by Timothy Baldwin
39262 <T.E.Baldwin99@members.leeds.ac.uk>.
39263
39264 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
39265
39266 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
39267 allocated.
39268 (grub_sfs_dir): Likewise.
39269
39270 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
39271
39272 Add support for the SFS filesystem.
39273
39274 * fs/sfs.c: New file.
39275
39276 * DISTLIST: Added `fs/sfs.c'.
39277
39278 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
39279 (grub_probefs_SOURCES): Likewise.
39280 (grub_emu_SOURCES): Likewise.
39281 (pkgdata_MODULES): Add `sfs.mod'.
39282 (sfs_mod_SOURCES): New variable.
39283 (sfs_mod_CFLAGS): Likewise.
39284 (sfs_mod_LDFLAGS): Likewise.
39285
39286 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
39287 (pkgdata_MODULES): Add `sfs.mod'.
39288 (sfs_mod_SOURCES): New variable.
39289 (sfs_mod_CFLAGS): Likewise.
39290
39291 * util/grub-emu.c (main): Call `grub_sfs_init' and
39292 `grub_sfs_fini'.
39293
39294 * include/grub/fs.h (grub_sfs_init): New prototype.
39295 (grub_sfs_fini): Likewise.
39296
39297 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
39298
39299 Add support for the AFFS filesystem.
39300
39301 * fs/affs.c: New file.
39302
39303 * DISTLIST: Added `fs/affs.c'.
39304
39305 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
39306 (grub_probefs_SOURCES): Likewise.
39307 (grub_emu_SOURCES): Likewise.
39308 (pkgdata_MODULES): Add `affs.mod'.
39309 (affs_mod_SOURCES): New variable.
39310 (affs_mod_CFLAGS): Likewise.
39311 (affs_mod_LDFLAGS): Likewise.
39312
39313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
39314 (pkgdata_MODULES): Add `affs.mod'.
39315 (affs_mod_SOURCES): New variable.
39316 (affs_mod_CFLAGS): Likewise.
39317
39318 * util/grub-emu.c (main): Call `grub_affs_init' and
39319 `grub_affs_fini'.
39320
39321 * include/grub/fs.h (grub_affs_init): New prototype.
39322 (grub_affs_fini): Likewise.
39323
39324 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39325
39326 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
39327
39328 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39329
39330 * configure.ac: Accept `x86_64' as host_cpu. In that case add
39331 `-m32' to CFLAGS.
39332
39333 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
39334 linking.
39335
39336 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
39337 (COMMON_LDFLAGS): New variable.
39338 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
39339 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
39340 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
39341 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
39342 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
39343 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
39344 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
39345 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
39346 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
39347 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
39348 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39349 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39350 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
39351 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
39352 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
39353 variables.
39354 (normal_mod_ASFLAGS): Add `-m32'.
39355
39356 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
39357 (grub_host_size_t, grub_host_ssize_t): New types.
39358 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
39359 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
39360 `GRUB_HOST_SIZEOF_VOID_P'.
39361
39362 * include/grub/kernel.h (struct grub_module_header): Type of
39363 member offset changed to `grub_host_off_t'. Type of member size
39364 changed to `grub_host_size_t'.
39365 (struct grub_module_info): Type of member offset changed to
39366 `grub_host_off_t'. Type of member size changed to
39367 `grub_host_size_t'.
39368
39369 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
39370
39371 Make GRUB's kernel compliant to Multiboot Specification.
39372
39373 * kern/i386/pc/startup.S (multiboot_header): New label.
39374 (multiboot_entry): Likewise.
39375 (multiboot_trampoline): Likewise.
39376
39377 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39378 Increased to 0x4A0.
39379
39380 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
39381 put parentheses after a question mark.
39382 [!GRUB_UTIL] (my_mod): New variable.
39383
39384 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
39385
39386 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
39387
39388 Adds support for the XFS filesystem. Btrees are not supported
39389 yet.
39390
39391 * fs/xfs.c: New file.
39392
39393 * DISTLIST: Added `fs/xfs.c'.
39394
39395 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
39396 (grub_probefs_SOURCES): Likewise.
39397 (grub_emu_SOURCES): Likewise.
39398 (pkgdata_MODULES): Add `xfs.mod'.
39399 (xfs_mod_SOURCES): New variable.
39400 (xfs_mod_CFLAGS): Likewise.
39401
39402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
39403 (pkgdata_MODULES): Add `xfs.mod'.
39404 (xfs_mod_SOURCES): New variable.
39405 (xfs_mod_CFLAGS): Likewise.
39406
39407 * util/grub-emu.c (main): Call `grub_xfs_init' and
39408 `grub_xfs_fini'.
39409
39410 * include/grub/fs.h (grub_xfs_init): New prototype.
39411 (grub_xfs_fini): Likewise.
39412
39413
39414 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
39415
39416 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
39417 color modes, allow greater than 16 colors to be configured as
39418 a default palette.
39419
39420 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39421
39422 * normal/completion.c (complete_arguments): Add the qualifier
39423 const into OPTIONS.
39424
39425 From Omniflux <omniflux+lists@omniflux.com>:
39426 * include/grub/terminfo.h: New file.
39427 * include/grub/tparm.h: Likewise.
39428 * include/grub/i386/pc/serial.h: Likewise.
39429 * term/terminfo.c: Likewise.
39430 * term/tparm.c: Likewise.
39431 * term/i386/pc/serial.c: Likewise.
39432 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
39433 serial.mod.
39434 (terminfo_mod_SOURCES): New variable.
39435 (terminfo_mod_CFLAGS): Likewise.
39436 (serial_mod_SOURCES): Likewise.
39437 (serial_mod_CFLAGS): Likewise.
39438
39439 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
39440
39441 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
39442 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
39443 and kern/powerpc/ieee1275/cmain.c, respectively.
39444
39445 * boot/powerpc/ieee1275/crt0.S: Moved to ...
39446 * kern/powerpc/ieee1275/crt0.S: ... here.
39447
39448 * boot/powerpc/ieee1275/cmain.c: Moved to ...
39449 * kern/powerpc/ieee1275/cmain.c: ... here.
39450
39451 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
39452 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
39453 instead of boot/powerpc/ieee1275/crt0.S and
39454 boot/powerpc/ieee1275/cmain.c, respectively.
39455
39456 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
39457 sectors. It was not used anyway.
39458
39459 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39460
39461 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
39462 `unused parameter' warning.
39463
39464 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39465
39466 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
39467 function.
39468 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
39469 getcharwidth.
39470
39471 2005-08-28 Marco Gerards <metgerards@student.han.nl>
39472
39473 * include/grub/normal.h (enum grub_completion_type): Added
39474 `GRUB_COMPLETION_TYPE_ARGUMENT'.
39475
39476 * normal/cmdline.c (print_completion): Handle
39477 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
39478 * normal/menu_entry.c (store_completion): Likewise.
39479
39480 * normal/completion.c (complete_arguments): New function.
39481 (grub_normal_do_completion): Call `complete_arguments' when the
39482 current words start with a dash.
39483
39484 2005-08-27 Marco Gerards <metgerards@student.han.nl>
39485
39486 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
39487 `gzio.mod' instead of `io.mod').
39488
39489 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
39490
39491 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
39492 (DISTDIRS): Added io and video.
39493 Rewrite the search routine to make an output consistently.
39494
39495 * DISTLIST: Added conf/sparc64-ieee1275.mk,
39496 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
39497 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
39498 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
39499 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
39500 util/powerpc/ieee1275/misc.c.
39501
39502 * include/grub/gzio.h: New file.
39503 * io/gzio.c: Likewise.
39504
39505 * kern/file.c (grub_file_close): Call grub_device_close only if
39506 FILE->DEVICE is not NULL.
39507
39508 * include/grub/mm.h [!NULL] (NULL): New macro.
39509
39510 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
39511
39512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
39513 (pkgdata_MODULES): Added gzio.mod.
39514 (gzio_mod_SOURCES): New variable.
39515 (gzio_mod_CFLAGS): Likewise.
39516
39517 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
39518 (pkgdata_MODULES): Added gzio.mod.
39519 (gzio_mod_SOURCES): New variable.
39520 (gzio_mod_CFLAGS): Likewise.
39521
39522 * commands/cat.c: Include grub/gzio.h.
39523 (grub_cmd_cat): Use grub_gzfile_open instead of
39524 grub_file_open.
39525
39526 * commands/cmp.c: Include grub/gzio.h.
39527 (grub_cmd_cmp): Use grub_gzfile_open instead of
39528 grub_file_open.
39529
39530 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
39531 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
39532 grub_file_open.
39533 (grub_rescue_cmd_module): Likewise.
39534
39535 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39536
39537 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
39538 kern/sparc64/ieee1275/init.c because it contains _start.
39539 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
39540
39541 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39542
39543 * configure.ac: Add support for sparc64 host with ieee1275
39544 firmware.
39545 * configure: Generated from configure.ac.
39546 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
39547 instead of int.
39548 (grub_ofdisk_read): Likewise.
39549 (grub_ofdisk_open): Use %p to print pointer values, and cast the
39550 pointers as (void *) to remove a warning.
39551 (grub_ofdisk_close): Likewise.
39552 (grub_ofdisk_read): Likewise.
39553 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
39554 returns, so make it return void to remove a warning.
39555 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
39556 Corresponding prototype change.
39557 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
39558 values, and cast the pointers as (void *) to remove a warning.
39559 (grub_mm_dump): Likewise.
39560 * conf/sparc64-ieee1275.mk: New file.
39561 * conf/sparc64-ieee1275.rmk: Likewise.
39562 * include/grub/sparc64/setjmp.h: Likewise.
39563 * include/grub/sparc64/types.h: Likewise.
39564 * include/grub/sparc64/ieee1275/console.h: Likewise.
39565 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39566 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39567 * include/grub/sparc64/ieee1275/time.h: Likewise.
39568 * kern/sparc64/cache.c: Likewise.
39569 * kern/sparc64/dl.c: Likewise.
39570 * kern/sparc64/ieee1275/init.c: Likewise.
39571 * kern/sparc64/ieee1275/openfw.c: Likewise.
39572
39573 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39574
39575 * util/console.c (grub_ncurses_putchar): If C is greater than
39576 0x7f, set C to a question mark.
39577 (grub_ncurses_getcharwidth): New function.
39578 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
39579 getcharwidth.
39580
39581 * normal/menu.c (print_entry): Made aware of Unicode. First,
39582 convert TITLE to UCS-4, and predict the cursor position by
39583 grub_getcharwidth.
39584
39585 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
39586 const to SRC.
39587 * kern/misc.c (grub_utf16_to_utf8): Likewise.
39588
39589 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39590
39591 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
39592 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39593 grub_strcat.
39594
39595 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
39596 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39597 grub_strcpy and grub_strlen. Take it into account that a space
39598 character is inserted as a delimiter.
39599
39600 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39601
39602 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
39603 invalid magic in the error.
39604
39605 * commands/search.c: New file.
39606
39607 * util/grub-emu.c (main): Call grub_search_init and
39608 grub_search_fini.
39609
39610 * kern/rescue.c (grub_rescue_print_disks): Removed.
39611 (grub_rescue_print_devices): New function.
39612 (grub_rescue_cmd_ls): Use grub_device_iterate with
39613 grub_rescue_print_devices instead of grub_disk_dev_iterate with
39614 grub_rescue_print_disks.
39615
39616 * kern/partition.c (grub_partition_iterate): Return the result of
39617 PARTMAP->ITERATE instead of GRUB_ERRNO.
39618
39619 * kern/device.c: Include grub/partition.h.
39620 (grub_device_iterate): New function.
39621
39622 * include/grub/partition.h (grub_partition_iterate): Return int
39623 instead of grub_err_t.
39624
39625 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
39626 prototype.
39627 [GRUB_UTIL] (grub_search_fini): Likewise.
39628
39629 * include/grub/device.h (grub_device_iterate): New prototype.
39630
39631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39632 commands/search.c.
39633 (pkgdata_MODULES): Added search.mod.
39634 (search_mod_SOURCES): New variable.
39635 (search_mod_CFLAGS): Likewise.
39636
39637 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
39638 (pkgdata_MODULES): Added search.mod.
39639 (search_mod_SOURCES): New variable.
39640 (search_mod_CFLAGS): Likewise.
39641
39642 * commands/ls.c (grub_ls_list_disks): Renamed to ...
39643 (grub_ls_list_devices): ... this, and use grub_device_iterate.
39644 All callers changed.
39645
39646 * DISTLIST: Added commands/search.c.
39647
39648 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39649
39650 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
39651 conversion.
39652 (grub_getcharwidth): New function.
39653
39654 * kern/misc.c (grub_utf8_to_ucs4): New function.
39655
39656 * include/grub/term.h (struct grub_term): Added a new member
39657 "getcharwidth".
39658 (grub_getcharwidth): New prototype.
39659
39660 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
39661
39662 * term/i386/pc/console.c (map_char): New function. Segregated from
39663 grub_console_putchar.
39664 (grub_console_putchar): Use map_char.
39665 (grub_console_getcharwidth): New function.
39666 (grub_console_term): Specified grub_console_getcharwidth as
39667 getcharwidth.
39668
39669 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
39670 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
39671
39672 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
39673 GRUB_ERRNO.
39674 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
39675 on grub_strtoul completely.
39676 (write_char): Declare local variables in the beginning of the
39677 function.
39678 (grub_vesafb_getcharwidth): New function.
39679 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
39680 getcharwidth.
39681
39682 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
39683
39684 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
39685 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
39686 commands/i386/pc/vbetest.c.
39687
39688 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
39689 call grub_vbe_get_controller_info again, because the returned
39690 information is volatile.
39691 (grub_vbe_set_video_mode): Mostly rewritten.
39692 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
39693 grub_vbe_status_t correctly.
39694 (grub_vbe_get_video_mode_info): Likewise.
39695 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
39696 several if statements.
39697
39698 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
39699 * commands/i386/pc/vbeinfo.c: ... this.
39700
39701 * commands/i386/pc/vbe_test.c: Renamed to ...
39702 * commands/i386/pc/vbetest.c: ... this.
39703
39704 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
39705 ...
39706 (grub_cmd_vbeinfo): ... this. Save video modes before
39707 iterating. Skip a video mode, if it is not available, not enough
39708 information is given or it is monochrome. Show the memory
39709 model. Leave the interpretation of MODEVAR to grub_strtoul
39710 completely.
39711 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
39712 (GRUB_MOD_FINI): Likewise.
39713
39714 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
39715 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
39716 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
39717 duplicated grub_env_get. Leave the interpretation of MODEVAR to
39718 grub_strtoul completely.
39719 (real2pm): Removed.
39720 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
39721 (GRUB_MOD_FINI): Likewise.
39722
39723 * normal/misc.c: Include grub/mm.h.
39724
39725 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
39726 vbe_list_modes with vbetest.mod and vbeinfo.mod.
39727 (vbe_list_modes_mod_SOURCES): Removed.
39728 (vbe_list_modes_mod_CFLAGS): Likewise.
39729 (vbe_test_mod_SOURCES): Likewise.
39730 (vbe_test_mod_CFLAGS): Likewise.
39731 (vbeinfo_mod_SOURCES): New variable.
39732 (vbeinfo_mod_CFLAGS): Likewise.
39733 (vbetest_mod_SOURCES): Likewise.
39734 (vbetest_mod_CFLAGS): Likewise.
39735
39736 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
39737
39738 * normal/misc.c: New file.
39739
39740 * DISTLIST: Added normal/misc.c.
39741
39742 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
39743 DISK to HOOK. Call HOOK with DISK.
39744 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39745 * partmap/pc.c (pc_partition_map_iterate): Likewise.
39746 * partmap/sun.c (sun_partition_map_iterate): Likewise.
39747
39748 * normal/menu_entry.c (struct screen): Added a new member
39749 "completion_shown".
39750 (completion_buffer): New global variable.
39751 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
39752 (store_completion): New function.
39753 (complete): Likewise.
39754 (clear_completions): Likewise.
39755 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
39756 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
39757 a tab, call complete.
39758
39759 * normal/completion.c (disk_dev): Removed.
39760 (print_simple_completion): Likewise.
39761 (print_partition_completion): Likewise.
39762 (print_func): New global variable.
39763 (add_completion): Do not take the arguments WHAT or PRINT any
39764 longer. Added a new argument TYPE. Instead of printing directly,
39765 call PRINT_FUNC if not NULL.
39766 All callers changed.
39767 (complete_device): Use a local variable DEV instead of
39768 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
39769 (grub_normal_do_completion): Take a new argument HOOK. Do not
39770 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
39771 empty string, return NULL instead.
39772 All callers changed.
39773
39774 * normal/cmdline.c (print_completion): New function.
39775
39776 * kern/partition.c (grub_partition_iterate): Add an argument DISK
39777 to HOOK.
39778 All callers changed.
39779
39780 * kern/disk.c (grub_print_partinfo): Removed.
39781
39782 * include/grub/partition.h (struct grub_partition_map): Add a new
39783 argument DISK into HOOK of ITERATE.
39784 (grub_partition_iterate): Add a new argument DISK to HOOK.
39785
39786 * include/grub/normal.h (enum grub_completion_type): New enum.
39787 (grub_completion_type_t): New type.
39788 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
39789 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
39790 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
39791 (GRUB_COMPLETION_TYPE_FILE): Likewise.
39792 (grub_normal_do_completion): Added a new argument HOOK.
39793 (grub_normal_print_device_info): New prototype.
39794
39795 * include/grub/disk.h (grub_print_partinfo): Removed.
39796
39797 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
39798 (normal_mod_SOURCES): Likewise.
39799 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39800 (normal_mod_SOURCES): Likewise.
39801
39802 * commands/ls.c (grub_ls_list_disks): Use
39803 grub_normal_print_device_info instead of grub_print_partinfo. Free
39804 PNAME.
39805 (grub_ls_list_files): Use grub_normal_print_device_info instead of
39806 duplicating the code.
39807
39808 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39809
39810 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
39811 follow GCS more precisely.
39812 * commands/i386/pc/vbe_test.c: Likewise.
39813 * include/grub/i386/pc/vbe.h: Likewise.
39814 * term/i386/pc/vesafb.c: Likewise.
39815 * video/i386/pc/vbe.c: Likewise.
39816
39817 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39818
39819 * DISTLIST: Added term/i386/pc/vesafb.c
39820 DISTLIST: Added video/i386/pc/vbe.c
39821 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
39822 DISTLIST: Added commands/i386/pc/vbe_test.c.
39823 * commands/i386/pc/vbe_list_modes.c: New file.
39824 * commands/i386/pc/vbe_test.c: Likewise.
39825 * term/i386/pc/vesafb.c: Likewise.
39826 * video/i386/pc/vbe.c: Likewise.
39827 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
39828 (grub_vbe_probe) Added prototype.
39829 (grub_vbe_set_video_mode) Likewise.
39830 (grub_vbe_get_video_mode) Likewise.
39831 (grub_vbe_get_video_mode_info) Likewise.
39832 (grub_vbe_set_pixel_rgb) Likewise.
39833 (grub_vbe_set_pixel_index) Likewise.
39834 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
39835 (pkgdata_MODULES): Added vesafb.mod.
39836 (pkgdata_MODULES): Added vbe_list_modes.mod.
39837 (pkgdata_MODULES): Added vbe_test.mod.
39838 (vbe_mod_SOURCES): Added.
39839 (vbe_mod_CFLAGS): Likewise.
39840 (vesafb_mod_SOURCES): Likewise.
39841 (vesafb_mod_CFLAGS): Likewise.
39842 (vbe_list_modes_mod_SOURCES): Likewise.
39843 (vbe_list_modes_mod_CFLAGS): Likewise.
39844 (vbe_test_mod_SOURCES): Likewise.
39845 (vbe_test_mod_CFLAGS): Likewise.
39846
39847 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
39848
39849 * normal/command.c (grub_command_execute): If INTERACTIVE is
39850 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
39851 CMDLINE. Disable the pager if INTERACTIVE is true.
39852 All callers are changed.
39853
39854 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
39855 before reading a config file.
39856 * normal/main.c (read_config_file): Even if a command is not
39857 found, register it if it is within an entry.
39858
39859 * util/grub-emu.c: Include sys/types.h and unistd.h.
39860 (options): Added --hold.
39861 (struct arguments): Added a new member "hold".
39862 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
39863 missing.
39864 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
39865 cleared by a debugger, if it is not zero.
39866
39867 * include/grub/normal.h (grub_command_execute): Add an argument
39868 INTERACTIVE.
39869
39870 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
39871
39872 * DISTLIST: Added include/grub/i386/pc/vbe.h.
39873
39874 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
39875
39876 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
39877 program with another one, because the old one didn't detect a bug
39878 in gcc-3.4. Always use regparm 2, because the new test is still
39879 not enough for gcc-4.0. Someone must investigate a simple test
39880 case which detects a bug in gcc-4.0.
39881
39882 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
39883
39884 * DISTLIST: Added normal/completion.c.
39885
39886 * normal/completion.c: New file.
39887
39888 * term/i386/pc/console.c (grub_console_getwh): New function.
39889 (grub_console_term): Assign grub_console_getwh to getwh.
39890
39891 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
39892 function is defined in normal/completion.c as
39893 grub_normal_do_completion.
39894 (grub_cmdline_get): Use grub_normal_do_completion instead of
39895 grub_tab_complete.
39896
39897 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
39898 returns non-zero, otherwise return 0.
39899 (grub_partition_iterate): First, probe the partition map. Then,
39900 call ITERATE only for this partition map.
39901
39902 * kern/misc.c (grub_strncmp): Rewritten.
39903
39904 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
39905 returns non-zero. Otherwise return 0.
39906
39907 * include/grub/partition.h (grub_partition_map_iterate): Return
39908 int instead of void.
39909
39910 * include/grub/normal.h (grub_normal_do_completion): New prototype.
39911
39912 * include/grub/misc.h (grub_strncmp): Change the type of N to
39913 grub_size_t.
39914
39915 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
39916 of void.
39917
39918 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
39919 unsigned explicitly before comparing it with I.
39920
39921 * kern/main.c (grub_env_write_root): Add the attribute unused into
39922 VAR.
39923
39924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39925 normal/completion.c.
39926 (normal_mod_SOURCES): Likewise.
39927 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39928 (normal_mod_SOURCES): Likewise.
39929
39930 * normal/command.c (grub_iterate_commands): If ITERATE returns
39931 non-zero, return one immediately.
39932
39933 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
39934
39935 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
39936 * kern/i386/pc/startup.S: Updated Global Descriptor table's
39937 descriptions.
39938 (grub_vbe_get_controller_info): New function.
39939 (grub_vbe_get_mode_info): Likewise.
39940 (grub_vbe_set_mode): Likewise.
39941 (grub_vbe_get_mode): Likewise.
39942 (grub_vbe_set_memory_window): Likewise.
39943 (grub_vbe_get_memory_window): Likewise.
39944 (grub_vbe_set_scanline_length): Likewise.
39945 (grub_vbe_get_scanline_length): Likewise.
39946 (grub_vbe_set_display_start): Likewise.
39947 (grub_vbe_get_display_start): Likewise.
39948 (grub_vbe_set_palette_data): Likewise.
39949 * include/grub/i386/pc/vbe.h: New file.
39950
39951 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39952
39953 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
39954 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
39955 * DISTLIST: Likewise.
39956 * kern/ieee1275/of.c: Moved to ...
39957 * kern/ieee1275/ieee1275.c: ... here.
39958
39959 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39960
39961 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
39962 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
39963 Pass 0 as `end' parameter to grub_strtoul().
39964
39965 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39966
39967 * include/grub/powerpc/ieee1275/console.h: Do not include
39968 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
39969 ifdef.
39970 (grub_console_cur_color): Remove i386-specific prototype.
39971 (grub_console_real_putchar): Likewise.
39972 (grub_console_checkkey): Likewise.
39973 (grub_console_getkey): Likewise.
39974 (grub_console_getxy): Likewise.
39975 (grub_console_gotoxy): Likewise.
39976 (grub_console_cls): Likewise.
39977 (grub_console_setcursor): Likewise.
39978 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
39979 Include <grub/machine/console.h>.
39980 * term/ieee1275/ofconsole.c: Likewise.
39981
39982 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
39983
39984 * Makefile.in (LIBLZO): New variable.
39985
39986 * configure.ac: Check for LZO version 2.
39987
39988 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
39989 lzo/lzo1x.h instead of lzo1x.h.
39990
39991 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
39992 of -llzo.
39993
39994 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
39995 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
39996
39997 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
39998 copying the data from PARTITION to P.
39999
40000 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40001
40002 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
40003 negative, unload the module.
40004
40005 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
40006 map is "pc_partition_map" but not "pc".
40007 (usage): Fix the description. The options are --boot-image and
40008 --core-image but not --boot-file or --core-file.
40009 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
40010 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
40011 DEFAULT_DIRECTORY.
40012
40013 * util/i386/pc/grub-install.in: Do not specify --boot-file or
40014 --core-file. Specify INSTALL_DEVICE as an argument.
40015
40016 * util/console.c: Include config.h.
40017 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
40018 [HAVE_NCURSES_H]: Include ncurses.h.
40019 [HAVE_CURSES_H]: Include curses.h.
40020 [!A_NORMAL] (A_NORMAL): Defined as zero.
40021 [!A_STANDOUT] (A_STANDOUT): Likewise.
40022
40023 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
40024 -lncurses.
40025 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
40026
40027 * configure.ac: Check for curses libraries and headers.
40028
40029 * Makefile.in (LIBCURSES): New variable.
40030
40031 * genmk.rb (Script::rule): Set the executable bits.
40032
40033 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
40034 name of the PC partition map is "pc_partition_map" but not "pc".
40035
40036 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40037
40038 * util/i386/pc/grub-install.in (grub_probefs): New variable.
40039 (modules): Likewise.
40040 (usage): Added descriptions for --modules and --grub-probefs.
40041 Handle --modules and --grub-probefs. Save the arguments in MODULES
40042 and GRUB_PROBEFS, respectively.
40043 Auto-detect a filesystem module against GRUBDIR. If the result is
40044 empty and modules are not specified explicitly, abort the
40045 installation. Add the result to MODULES.
40046
40047 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
40048 disk/powerpc/ieee1275/ofdisk.c,
40049 include/grub/powerpc/ieee1275/init.h and
40050 term/powerpc/ieee1275/ofconsole.c.
40051 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
40052 term/ieee1275/ofconsole.c.
40053
40054 * include/grub/powerpc/ieee1275/console.h: Resurrected.
40055
40056 * COPYING: Upgraded to the latest version. Only the address of the
40057 FSF office has changed.
40058
40059 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40060
40061 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
40062 kern/ieee1275.c with kern/ieee1275/of.c.
40063
40064 * kern/ieee1275.c: Moved to ...
40065 * kern/ieee1275/of.c: ... here.
40066
40067 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
40068
40069 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
40070 readability.
40071
40072 * config.guess: Updated to the latest version from gnulib.
40073 * config.sub: Likewise.
40074 * install.sh: Likewise.
40075 * mkinstalldirs: Likewise.
40076
40077 * include/grub/console.h: Removed. This file is arch-specific. Do
40078 not put this in include/grub.
40079
40080 * include/grub/i386/pc/console.h: Resurrected.
40081
40082 * util/console.c: Include grub/machine/console.h instead of
40083 grub/console.h.
40084 * util/grub-emu.c: Likewise.
40085
40086 2005-08-04 Marco Gerards <metgerards@student.han.nl>
40087
40088 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
40089 hardcoded value.
40090
40091 From Vincent Pelletier <subdino2004@yahoo.fr>
40092 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
40093 Redefined to use grub_getwh.
40094 (grub_term): New member named getwh.
40095 (grub_getwh): New prototype.
40096 * kern/term.c (grub_getwh): New function.
40097 * term/i386/pc/console.c (grub_console_getwh): New function.
40098 (grub_console_term): New member `getwh'.
40099 * term/i386/pc/vga.c (grub_vga_getwh): New function.
40100 (grub_vga_term): New member `getwh'.
40101 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
40102 grub_ssize_t.
40103 (grub_ofconsole_getw): New function.
40104 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
40105 (grub_ofconsole_term): New field named getwh and new initial
40106 value.
40107
40108 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
40109
40110 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
40111 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
40112 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
40113 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
40114 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
40115 of <grub/machine/ieee1275.h>.
40116 * commands/ieee1275/reboot.c: Likewise.
40117 * boot/powerpc/ieee1275/ieee1275.c: Move ...
40118 * kern/ieee1275.c: ... to here. All users updated. Change all
40119 parameter structs to use new type `grub_ieee1275_cell_t'.
40120 * term/powerpc/ieee1275/ofconsole.c: Move ...
40121 * term/ieee1275/ofconsole.c: ... to here. All users updated.
40122 * disk/powerpc/ieee1275/ofdisk.c: Move ...
40123 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
40124 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
40125 to return int.
40126 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
40127 Remove unused prototypes. All users updated.
40128 * include/grub/powerpc/ieee1275/console.h: Removed.
40129 * include/grub/powerpc/ieee1275/ieee1275.h: Define
40130 `grub_ieee1275_cell_t'.
40131 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
40132 Cast comparisons with -1 to the correct type.
40133 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
40134 type to match `grub_ieee1275_entry_fn'.
40135
40136 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
40137
40138 * DISTLIST: Added util/i386/pc/grub-probefs.c.
40139
40140 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
40141 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
40142 partmap/sun.c.
40143 (grub_probefs_SOURCES): New variable.
40144
40145 * util/i386/pc/grub-probefs.c: New file.
40146
40147 * util/i386/pc/grub-setup.c (main): Call
40148 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
40149 grub_hfs_init and grub_jfs_init to initialize the system. Call
40150 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
40151 grub_pc_partition_map_fini to finish the system.
40152
40153 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
40154
40155 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
40156 function.
40157 (grub_multiboot_load_elf32): Likewise.
40158 (grub_multiboot_is_elf64): Likewise.
40159 (grub_multiboot_load_elf64): Likewise.
40160 (grub_multiboot_load_elf): Likewise.
40161 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
40162 an ELF32 or ELF64 file.
40163 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
40164
40165 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
40166 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
40167 NULL before calling FS->LABEL.
40168 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
40169 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
40170 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
40171 before calling FS->LABEL.
40172
40173 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
40174
40175 * util/i386/pc/grub-install.in (datadir): New variable.
40176 (libdir): Removed.
40177 (pkgdatadir): New variable.
40178 (pkglibdir): Removed.
40179
40180 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
40181
40182 * DISTLIST: Added util/i386/pc/grub-install.in.
40183
40184 * util/i386/pc/grub-install.in: New file.
40185
40186 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
40187 (grub_install_SOURCES): Likewise.
40188
40189 * genmk.rb: Added support for scripts.
40190 (Script): New class.
40191 (scripts): New variable.
40192
40193 * Makefile.in (install-local): Install sbin_SCRIPTS by
40194 INSTALL_SCRIPT.
40195 (uninstall): Remove sbin_SCRIPTS.
40196
40197 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
40198 device, try to get a GRUB device by
40199 grub_util_biosdisk_get_grub_dev.
40200 Free DEST_DEV.
40201
40202 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
40203 description for --device-map.
40204
40205 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40206
40207 Change the semantics of variable hooks. They now return strings
40208 instead of error values.
40209
40210 * util/i386/pc/grub-setup.c: Include grub/env.h.
40211 (setup): Use grub_device_set_root instead of grub_env_set.
40212
40213 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
40214 grub_env_get instead of grub_device_set_root and
40215 grub_device_get_root, respectively.
40216
40217 * kern/main.c (grub_env_write_root): New function.
40218 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
40219 grub_env_set instead of grub_device_set_root.
40220
40221 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
40222 many variables.
40223 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
40224 rather than calling ENV->WRITE_HOOK afterwards.
40225 (grub_env_get): Return the result of ENV->READ_HOOK rather than
40226 passing a pointer of a pointer.
40227 (grub_register_variable_hook): Change the types of "read_hook" and
40228 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
40229 respectively.
40230 Allocate the default empty string on the heap, because this string
40231 may be freed later.
40232
40233 * kern/device.c: Include grub/env.h.
40234 (grub_device_set_root): Removed.
40235 (grub_device_get_root): Likewise.
40236 (grub_device_open): Use grub_env_get instead of
40237 grub_device_get_root.
40238
40239 * include/grub/env.h (grub_env_read_hook_t): New type.
40240 (grub_env_write_hook_t): Likewise.
40241 (grub_env_var): Change the types of "read_hook" and "write_hook"
40242 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
40243 (grub_register_variable_hook): Likewise.
40244
40245 * include/grub/device.h (grub_device_set_root): Removed.
40246 (grub_device_set_root): Likewise.
40247
40248 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
40249 make sure that DIRNAME terminates with '/', so that
40250 grub_fat_find_dir will fail if PATH is not a directory.
40251
40252 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
40253 from DIRNAME.
40254 Use the qualifier auto for print_files and print_files_long.
40255 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
40256 as a regular file.
40257 Put a newline only if there is no error.
40258 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
40259 used.
40260
40261 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40262
40263 * kern/partition.c (grub_partition_probe): Initialize PART to
40264 NULL. Otherwise, when no partition map is registered, this returns
40265 a garbage.
40266
40267 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
40268
40269 * partmap/apple.c (apple_partition_map_iterate): Check if POS
40270 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
40271 valid.
40272
40273 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
40274
40275 * commands/ls.c (grub_ls_list_disks): Print the filesystem
40276 information on each device, if it does not have partitions. Print
40277 "Device" instead of "Disk", because this function is not specific
40278 to disk devices.
40279
40280 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
40281 static to ensure that it is put on the memory rather than a
40282 register.
40283
40284 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40285
40286 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
40287 (grub_cat_init): Likewise.
40288 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
40289 (options): Likewise.
40290 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
40291 (grub_configfile_init): Likewise.
40292 * font/manager.c (GRUB_MOD_INIT): Likewise.
40293 * commands/help.c (GRUB_MOD_INIT): Likewise.
40294 (grub_help_init): Likewise.
40295 * normal/command.c (grub_command_init): Likewise.
40296 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
40297 * disk/loopback.c (grub_loop_init): Likewise.
40298 (GRUB_MOD_INIT): Likewise.
40299 * commands/ls.c (grub_ls_init): Likewise.
40300 (GRUB_MOD_INIT): Likewise.
40301 (options): Likewise.
40302 * commands/boot.c (grub_boot_init): Likewise.
40303 (GRUB_MOD_INIT): Likewise.
40304 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
40305 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
40306 (GRUB_MOD_INIT): Likewise.
40307 * commands/cmp.c (grub_cmp_init): Likewise.
40308 (GRUB_MOD_INIT): Likewise.
40309
40310 * normal/arg.c: Use <> instead of "" to include header files.
40311 (SHORT_ARG_HELP): New macro.
40312 (SHORT_ARG_USAGE): Likewise.
40313 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
40314 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
40315 descriptions.
40316 (find_short): Check if C is 'h' or 'u' explicitly.
40317 (grub_arg_show_help): Use space characters instead of tabs. Treat
40318 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
40319 are shown with --help and --usage only if they are not used for
40320 the command itself.
40321 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
40322 'h' and 'u'.
40323
40324 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
40325 const into "longarg". Change the type of "shortarg" to int.
40326
40327 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40328
40329 * boot/i386/pc/boot.S (boot_drive_check): New label.
40330
40331 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
40332 macro.
40333
40334 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
40335 which do not pass a boot drive correctly. Copied from GRUB Legacy.
40336
40337 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40338
40339 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
40340 When turning off Gate A20, skip the check and return immediately,
40341 because this is not fatal usually.
40342
40343 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40344
40345 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
40346 be 0x7C00 instead of 0x8000.
40347
40348 * boot/i386/pc/pxeboot.S: Rewritten.
40349
40350 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
40351 EXT_C.
40352 (gate_a20_check_state): Read a byte from 0x108000. Invert the
40353 result.
40354
40355 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
40356
40357 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
40358 robustness. This routine now supports a BIOS call and System
40359 Control Port A to modify the gate A20.
40360
40361 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40362 Increased to 0x440.
40363
40364 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
40365
40366 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
40367 device path and resulting ihandle.
40368 (grub_ofdisk_close): dprintf the ihandle being closed.
40369 (grub_ofdisk_read): dprintf function parameters.
40370 * kern/mm.c (grub_mm_init_region): Likewise.
40371 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
40372 (grub_linux_boot): dprintf the Linux entry point, initrd address and
40373 size, and boot arguments.
40374 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
40375 before loading into memory.
40376 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
40377 before loading into memory.
40378
40379 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
40380
40381 * kern/mm.c: Added much documentation.
40382 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
40383 8, set to 5 instead of 8.
40384
40385 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40386
40387 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
40388
40389 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
40390 (grub_mkdevicemap_SOURCES): New variable.
40391
40392 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
40393 lib/device.c of GRUB Legacy.
40394
40395 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40396
40397 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
40398 instead of PATH is NULL.
40399
40400 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
40401
40402 * commands/cmp.c (BUFFER_SIZE): New macro.
40403 (grub_cmd_cmp): Close the right file at the right time. Compare
40404 only data just read. Don't report files of different size as
40405 identical. Dynamically allocate buffers. Move variable
40406 declarations at the beginning of function.
40407
40408 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
40409
40410 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
40411 reverse.
40412
40413 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
40414
40415 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
40416 when backspace is pressed at beginning of line.
40417
40418 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
40419
40420 * DISTLIST: Added genfslist.sh.
40421
40422 * normal/main.c (fs_module_list): New variable.
40423 (autoload_fs_module): New function.
40424 (read_fs_list): Likewise.
40425 (grub_normal_execute): Call read_fs_list.
40426
40427 * kern/fs.c (grub_fs_autoload_hook): New variable.
40428 (grub_fs_probe): Added support for auto-loading.
40429
40430 * include/grub/normal.h (struct grub_fs_module_list): New struct.
40431 (grub_fs_module_list_t): New type.
40432
40433 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
40434 (grub_fs_autoload_hook): New prototype.
40435
40436 * genfslist.sh: New file.
40437
40438 * genmk.rb: Added a rule to generate a filesystem list.
40439
40440 2005-06-30 Marco Gerards <metgerards@student.han.nl>
40441
40442 * configure.ac: Fix the test for cross-compiling.
40443
40444 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
40445 define GRUB_UTIL anymore.
40446
40447 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
40448 so this function works on other systems than just big endian.
40449 (load_modules): Likewise.
40450 (add_segments): Likewise.
40451
40452 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
40453
40454 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
40455 contains `l' modifier, get a long from va_arg().
40456
40457 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
40458
40459 * kern/mm.c (grub_free): If the next free block which is being
40460 merged is the first free block, set the first block to the block
40461 being freed.
40462 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
40463
40464 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40465
40466 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
40467 `grub_ieee1275_chosen'.
40468
40469 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40470
40471 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
40472 (grub_ieee1275_chosen): New variable.
40473 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
40474 `chosen'.
40475 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
40476 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
40477 Rename first argument to `phandle' for consistency.
40478 (grub_ieee1275_get_property_length): Likewise.
40479 (grub_ieee1275_next_property): Likewise. Change type of first argument
40480 to grub_ieee1275_phandle_t.
40481 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
40482 Move export next to declaration.
40483 (grub_ieee1275_chosen): New variable.
40484 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
40485 Correct cosmetic typo.
40486 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
40487 `grub_ieee1275_chosen'.
40488 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
40489 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
40490 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
40491 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
40492 `grub_ieee1275_chosen'.
40493
40494 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
40495
40496 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
40497 /chosen/bootargs.
40498 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
40499 /chosen/bootargs as "variable=value" pairs.
40500
40501 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
40502
40503 * include/grub/misc.h (grub_dprintf): New macro.
40504 (grub_real_dprintf): New prototype.
40505 (grub_strword): Likewise.
40506 (grub_iswordseparator): Likewise.
40507 * kern/misc.c (grub_real_dprintf): New function.
40508 (grub_strword): Likewise.
40509 (grub_iswordseparator): Likewise.
40510
40511 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
40512
40513 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
40514 (roundup): Remove macro.
40515 (grub_ieee1275_flags): Make static.
40516 (grub_ieee1275_realmode): Remove.
40517 (grub_ieee1275_test_flag): New function.
40518 (grub_ieee1275_set_flag): Likewise.
40519 (find_options): Rename to `grub_ieee1275_find_options'; update
40520 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
40521 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
40522 (cmain): New prototype.
40523 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
40524 `grub_ieee1275_flags' directly.
40525 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
40526 machine/biosdisk.h.
40527 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
40528 Don't include grub/machine/init.h.
40529 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
40530 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
40531 Remove prototype.
40532 (grub_ieee1275_realmode): Likewise.
40533 (grub_ieee1275_flag): New enum.
40534 (grub_ieee1275_test_flag): New prototype.
40535 (grub_ieee1275_set_flag): New prototype.
40536 * include/grub/powerpc/ieee1275/init.h: Remove file.
40537 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
40538 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
40539 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
40540 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
40541 comment.
40542 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
40543 `grub_ieee1275_test_flag'.
40544 (grub_ieee1275_encode_devname): Likewise.
40545
40546 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
40547
40548 * include/grub/powerpc/ieee1275/ieee1275.h
40549 (grub_ieee1275_encode_devname): New prototype.
40550 (grub_ieee1275_get_filename): Likewise.
40551 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
40552 function.
40553 (grub_set_prefix): Likewise.
40554 (grub_machine_init): Call grub_set_prefix.
40555 * kern/powerpc/ieee1275/openfw.c: Fix typos.
40556 (grub_parse_type): New enum.
40557 (grub_ieee1275_get_devargs): New function.
40558 (grub_ieee1275_get_devname): Likewise.
40559 (grub_ieee1275_parse_args): Likewise.
40560 (grub_ieee1275_get_filename): Likewise.
40561 (grub_ieee1275_encode_devname): Likewise.
40562
40563 2005-03-30 Marco Gerards <metgerards@student.han.nl>
40564
40565 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
40566 `grub_loader_unset'.
40567
40568 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
40569
40570 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
40571 instead of grub_ieee1275_interpret.
40572 (grub_halt_init): New function.
40573 (grub_halt_fini): Likewise.
40574 (GRUB_MOD_INIT): Correct message grammar.
40575 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
40576 instead of grub_ieee1275_interpret.
40577 (grub_reboot_init): New function.
40578 (grub_reboot_fini): Likewise.
40579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
40580 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
40581 util/i386/pc/misc.c with commands/ieee1275/halt.c,
40582 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
40583 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
40584 function.
40585 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
40586 Add prototype.
40587 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
40588 prototype.
40589 (grub_halt): Likewise.
40590 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
40591 (cmain): Remove __attribute__((unused)).
40592 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
40593 (grub_heap_len): Likewise.
40594 (grub_machine_fini): New function.
40595 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
40596 (grub_halt): Likewise.
40597 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
40598 function.
40599 * util/powerpc/ieee1275/misc.c: New file.
40600
40601 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40602
40603 * DISTLIST: New file.
40604 * gendistlist.sh: Likewise.
40605
40606 * Makefile.in (COMMON_DISTFILES): Removed.
40607 (BOOT_DISTFILES): Likewise.
40608 (CONF_DISTFILES): Likewise.
40609 (DISK_DISTFILES): Likewise.
40610 (FS_DISTFILES): Likewise.
40611 (INCLUDE_DISTFILES): Likewise.
40612 (KERN_DISTFILES): Likewise.
40613 (LOADER_DISTFILES): Likewise.
40614 (TERM_DISTFILES): Likewise.
40615 (UTIL_DISTFILES): Likewise.
40616 (DISTFILES): Likewise.
40617 (uninstall): Uninstall files in $(pkgdata_DATA).
40618 (DISTLIST): New target.
40619 (distdir): Use the contents of the file DISTLIST to get a list of
40620 distributed files.
40621
40622 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40623
40624 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
40625 descriptor. This is ported from GRUB Legacy.
40626
40627 * gencmdlist.sh: Added an extra semicolon to make it work with
40628 old sed versions. Reported by Robert Bihlmeyer
40629 <robbe@orcus.priv.at>.
40630
40631 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
40632
40633 Automatic loading of commands is supported.
40634
40635 * normal/main.c (read_command_list): New function.
40636 (grub_normal_execute): Call read_command_list.
40637
40638 * normal/command.c (grub_register_command): Return zero or CMD.
40639 Allocate CMD->NAME from the heap.
40640 Initialize CMD->MODULE_NAME to zero.
40641 Find the same name as well. If the same command is found and it is
40642 a dummy command, overwrite members. If it is not a dummy command,
40643 return zero.
40644 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
40645 (grub_command_find): If a dummy command is found, load a module
40646 and retry to find a command only once.
40647
40648 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
40649 make sure that each command is loaded.
40650
40651 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
40652 macro.
40653 (struct grub_command): Remove const from the member `name'.
40654 Add a new member `module_name'.
40655 (grub_register_command): Return grub_command_t.
40656
40657 * commands/help.c (grub_cmd_help): Call grub_command_find to make
40658 sure that each command is loaded.
40659
40660 * genmk.rb (PModule::rule): Specify a module name without the
40661 suffix ".mod" to gencmdlist.sh.
40662
40663 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40664
40665 * gencmdlist.sh: New file.
40666
40667 * genmk.rb (PModule::rule): Generate a rule for a command list.
40668 Clean command.lst.
40669 Generate command.lst from $(COMMANDFILES).
40670
40671 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
40672 (DATA): Added $(pkgdata_DATA).
40673 (install-local): Install files in $(pkgdata_DATA).
40674
40675 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40676
40677 * term/i386/pc/vga.c (debug_command): Removed.
40678 (GRUB_MOD_INIT): Do not register the command "debug".
40679
40680 From Hollis Blanchard:
40681 * commands/configfile.c: New file.
40682 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40683 commands/configfile.c.
40684 (pkgdata_MODULES): Added configfile.mod.
40685 (configfile_mod_SOURCES): New variable.
40686 (configfile_mod_CFLAGS): Likewise.
40687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40688 commands/configfile.c.
40689 (pkgdata_MODULES): Added configfile.mod.
40690 (configfile_mod_SOURCES): New variable.
40691 (configfile_mod_CFLAGS): Likewise.
40692 * util/grub-emu.c (main): Call grub_configfile_init and
40693 grub_configfile_fini.
40694 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
40695 prototype.
40696 [GRUB_UTIL] (grub_configfile_fini): Likewise.
40697
40698 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40699
40700 * normal/arg.c (grub_arg_show_help): Do not show the bug report
40701 address.
40702
40703 * commands/help.c (grub_cmd_help): Do not print newlines after
40704 the last command in print_command_help.
40705
40706 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40707
40708 * commands/default.h: New file.
40709 * commands/timeout.h: Likewise.
40710 * normal/context.c: Likewise.
40711
40712 * util/misc.c: Do not include sys/times.h.
40713 Include sys/time.h and grub/machine/time.h.
40714 (grub_get_rtc): Rewritten with gettimeofday.
40715
40716 * util/grub-emu.c (main): Call grub_default_init and
40717 grub_timeout_init before grub_normal_init, and call
40718 grub_timeout_fini and grub_default_fini after grub_main.
40719
40720 * util/console.c (grub_ncurses_checkkey): Return the read
40721 character or -1.
40722
40723 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
40724 timeouts.
40725
40726 * normal/main.c (read_config_file): Push MENU. If this fails,
40727 print an error and wait for a user input.
40728 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
40729 If a menu is empty or an error occurs, pop MENU.
40730 (grub_normal_execute): Pop and free MENU after grub_menu_run
40731 returns.
40732
40733 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
40734
40735 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
40736 include time.h.
40737 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40738 without GRUB_UTIL.
40739 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
40740 time.h.
40741 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40742 without GRUB_UTIL.
40743
40744 * include/grub/normal.h (struct grub_menu_list): New struct.
40745 (grub_menu_list_t): New type.
40746 (struct grub_context): New struct.
40747 (grub_context_t): New type.
40748 (grub_register_command): Got rid of EXPORT_FUNC.
40749 (grub_unregister_command): Likewise.
40750 (grub_context_get): New prototype.
40751 (grub_context_get_current_menu): Likewise.
40752 (grub_context_push_menu): Likewise.
40753 (grub_context_pop_menu): Likewise.
40754 [GRUB_UTIL] (grub_default_init): Likewise.
40755 [GRUB_UTIL] (grub_default_fini): Likewise.
40756 [GRUB_UTIL] (grub_timeout_init): Likewise.
40757 [GRUB_UTIL] (grub_timeout_fini): Likewise.
40758
40759 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
40760 commands/timeout.c and normal/context.c.
40761 (pkgdata_MODULES): Added default.mod and timeout.mod.
40762 (normal_mod_SOURCES): Added normal/context.c.
40763 (default_mod_SOURCES): New variable.
40764 (default_mod_CFLAGS): Likewise.
40765 (timeout_mod_SOURCES): Likewise.
40766 (timeout_mod_CFLAGS): Likewise.
40767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
40768 conf/i386-pc.rmk.
40769 (pkgdata_MODULES): Added default.mod and timeout.mod.
40770 (normal_mod_SOURCES): Added normal/context.c.
40771 (default_mod_SOURCES): New variable.
40772 (default_mod_CFLAGS): Likewise.
40773 (timeout_mod_SOURCES): Likewise.
40774 (timeout_mod_CFLAGS): Likewise.
40775
40776 * Makefile.in (all-local): Added $(MKFILES).
40777
40778 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
40779
40780 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
40781 (grub_emu_SOURCES): Likewise.
40782 (pkgdata_MODULES): Add `sun.mod'.
40783 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40785 `partmap/sun.c'.
40786 (pkgdata_MODULES): Add `sun.mod'.
40787 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40788 * include/grub/partition.h (grub_sun_partition_map_init): New
40789 prototype.
40790 (grub_sun_partition_map_fini): Likewise.
40791 * partmap/sun.c: New file.
40792 * util/grub-emu.c (main): Initialize and de-initialize the sun
40793 partitionmap support.
40794
40795 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
40796
40797 This implements an Emacs-like menu entry editor.
40798
40799 * normal/menu_entry.c: New file.
40800
40801 * util/console.c (grub_ncurses_putchar): Translate some Unicode
40802 characters to ASCII.
40803 (saved_char): New variable.
40804 (grub_ncurses_checkkey): Rewritten completely.
40805 (grub_ncurses_getkey): Likewise.
40806 (grub_ncurses_init): Call raw instead of cbreak.
40807
40808 * normal/menu.c (print_entry): Do not put a space.
40809 (init_page): Renamed to ...
40810 (grub_menu_init_page): ... this. All callers changed.
40811 (edit_menu_entry): Removed.
40812 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
40813
40814 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
40815
40816 * kern/misc.c (grub_vprintf): Call grub_refresh.
40817
40818 * normal/menu.c (DISP_LEFT): Renamed to ...
40819 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
40820 * normal/menu.c (DISP_UP): Renamed to ...
40821 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
40822 * normal/menu.c (DISP_RIGHT): Renamed to ...
40823 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
40824 * normal/menu.c (DISP_DOWN): Renamed to ...
40825 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
40826 * normal/menu.c (DISP_HLINE): Renamed to ...
40827 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
40828 * normal/menu.c (DISP_VLINE): Renamed to ...
40829 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
40830 * normal/menu.c (DISP_UL): Renamed to ...
40831 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
40832 * normal/menu.c (DISP_UR): Renamed to ...
40833 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
40834 * normal/menu.c (DISP_LL): Renamed to ...
40835 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
40836 * normal/menu.c (DISP_LR): Renamed to ...
40837 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
40838 * normal/menu.c (TERM_WIDTH): Renamed to ...
40839 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
40840 * normal/menu.c (TERM_HEIGHT): Renamed to ...
40841 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
40842 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
40843 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
40844 * normal/menu.c (TERM_MARGIN): Renamed to ...
40845 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
40846 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
40847 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
40848 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
40849 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
40850 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
40851 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
40852 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
40853 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
40854 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
40855 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
40856 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
40857 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
40858 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
40859 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
40860 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
40861 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
40862 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
40863 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
40864 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
40865 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
40866 All callers changed.
40867
40868 * include/grub/normal.h: New prototype.
40869
40870 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40871 normal/menu_entry.c.
40872 (normal_mod_SOURCES): Likewise.
40873 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40874 (normal_mod_SOURCES): Likewise.
40875
40876 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
40877
40878 * include/grub/normal.h (grub_halt_init): New prototype.
40879 (grub_halt_fini): Likewise.
40880 (grub_reboot_init): Likewise.
40881 (grub_reboot_fini): Likewise.
40882
40883 * util/grub-emu.c: Include signal.h.
40884 (main_env): New global variable.
40885 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
40886 catch C-c.
40887 (grub_machine_fini): New function.
40888 (main): Call grub_halt_init and grub_reboot_init before
40889 grub_main, and grub_reboot_fini and grub_halt_fini after it.
40890 Call setjmp with MAIN_ENV to go back afterwards.
40891 Call grub_machine_fini right before return.
40892
40893 * include/grub/util/misc.h: Include setjmp.h.
40894 (main_env): New prototype.
40895
40896 * include/grub/kernel.h (grub_machine_fini): New prototype.
40897 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
40898 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
40899
40900 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
40901 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
40902 * term/i386/pc/console.c (grub_console_fini): Likewise.
40903
40904 * util/i386/pc/misc.c: New file.
40905
40906 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40907 util/i386/pc/misc.c, commands/i386/pc/halt.c and
40908 commands/i386/pc/reboot.c.
40909
40910 2005-02-14 Guillem Jover <guillem@hadrons.org>
40911
40912 * include/grub/dl.h (grub_dl_check_header): New prototype.
40913 (grub_arch_dl_check_header): Change return type to grub_err_t,
40914 remove size parameter and export function. Update all callers.
40915 * kern/dl.c (grub_dl_check_header): New function.
40916 (grub_dl_load_core): Use `grub_dl_check_header' instead of
40917 `grub_arch_dl_check_header'. Check ELF type. Check if sections
40918 are inside the core.
40919 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
40920 independent ELF header checks.
40921 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
40922 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
40923 `grub_dl_check_header' instead of explicit checks. Check for the
40924 ELF type.
40925 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
40926 `grub_dl_check_header' instead of explicit checks. Remove arch
40927 specific ELF header checks.
40928
40929 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
40930 argument SIZE.
40931
40932 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
40933
40934 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
40935 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
40936
40937 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
40938
40939 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
40940 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
40941 (part_map_iterate): Clear `grub_errno' and return 0 if
40942 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
40943 * partmap/amiga.c (amiga_partition_map_iterate): Return
40944 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
40945 * partmap/apple.c (apple_partition_map_iterate): Likewise.
40946
40947 2005-02-01 Guillem Jover <guillem@hadrons.org>
40948
40949 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
40950 help info.
40951
40952 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40953
40954 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
40955 Removed prototype.
40956 (grub_rescue_cmd_linux): New prototype.
40957 (grub_rescue_cmd_initrd): Likewise.
40958 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
40959 `bi_rec'.
40960 (grub_linux_release_mem): Release the memory for the initrd.
40961 (grub_load_linux): Renamed from this...
40962 (grub_rescue_cmd_linux): ...To this. Changed all callers.
40963 Changed `entry' not to be static. Loop over memory regions to
40964 find another one when the default fails.
40965 (grub_rescue_cmd_initrd): New function.
40966 (grub_linux_init): Remove function.
40967 (grub_linux_fini): Likewise.
40968 (GRUB_MOD_INIT): Register `initrd'.
40969 (GRUB_MOD_FINI): Unregister `initrd'.
40970 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
40971 Function removed.
40972 (grub_linux_normal_fini): Likewise.
40973 (GRUB_MOD_INIT): Register `initrd'.
40974 (GRUB_MOD_FINI): Unregister `initrd'.
40975
40976 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40977
40978 * commands/help.c: New file.
40979 * normal/arg.c (show_help): Renamed to...
40980 (grub_arg_show_help): ... this.
40981 * commands/i386/pc/halt.c: New file.
40982 * commands/i386/pc/reboot.c: Likewise.
40983 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
40984 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
40985 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
40986 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
40987 variables.
40988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40989 `commands/help.c'.
40990 (pkgdata_MODULES): Add `help.mod'.
40991 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
40992 * grub/i386/pc/init.h (grub_reboot): New prototype.
40993 (grub_halt): Likewise.
40994 * include/grub/normal.h (grub_arg_show_help): New prototype.
40995 (grub_help_init): Likewise.
40996 (grub_help_fini): Likewise.
40997 * util/grub-emu.c (main): Initialize and deinitialize the help
40998 command.
40999
41000 * normal/cmdline.c (grub_cmdline_get): Doc fix.
41001
41002 * normal/command.c (grub_command_init): Fixed the description of
41003 the `set' and `unset' commands.
41004
41005 2005-01-31 Marco Gerards <metgerards@student.han.nl>
41006
41007 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
41008 function.
41009 * commands/ieee1275/halt.c: New file.
41010 * commands/ieee1275/reboot.c: Likewise.
41011 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
41012 `__attribute__ ((unused))'. Some GCS related fixed.
41013 (grub_suspend_init) [GRUB_UTIL]: Function removed.
41014 (grub_suspend_fini): Likewise.
41015 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
41016 and `halt.mod'.
41017 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
41018 (halt_mod_CFLAGS): New variables.
41019 * include/grub/powerpc/ieee1275/ieee1275.h
41020 (grub_ieee1275_interpret): New prototype.
41021
41022 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
41023
41024 * include/grub/misc.h (memmove): New prototype.
41025 (memcpy): Likewise.
41026
41027 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
41028
41029 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
41030 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
41031
41032 2005-01-22 Marco Gerards <metgerards@student.han.nl>
41033
41034 * kern/misc.c (grub_strndup): Function rewritten.
41035
41036 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
41037
41038 * normal/menu.c (TERM_WIDTH): Macro redefined.
41039 (TERM_TOP_BORDER_Y): Likewise.
41040 (draw_border): Replaced while-loop by a for-loop. Make the number
41041 of lines consistent with the number of lines displayed in
41042 print_entries. Added a margin below the rectangle.
41043 (print_entry): Make the entry fit in the rectangle.
41044 (print_entries): Display the scroll arrows next to the right
41045 border.
41046
41047 2005-01-21 Marco Gerards <metgerards@student.han.nl>
41048
41049 * fs/minix.c (grub_minix_find_file): Reserve more space for
41050 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
41051 `grub_strncpy' to copy `path' into it.
41052
41053 2005-01-21 Marco Gerards <metgerards@student.han.nl>
41054
41055 Add the loopback device, a device via which files can be accessed
41056 as devices.
41057
41058 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
41059 (pkgdata_MODULES): Add loopback.mod.
41060 (loopback_mod_SOURCES): New variable.
41061 (loopback_mod_CFLAGS): Likewise.
41062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41063 `disk/loopback.c'.
41064 (pkgdata_MODULES): Add loopback.mod.
41065 (loopback_mod_SOURCES): New variable.
41066 (loopback_mod_CFLAGS): Likewise.
41067 * disk/loopback.c: new file.
41068 * include/grub/normal.h (grub_loop_init): New prototype.
41069 (grub_loop_fini): New prototype.
41070 * util/grub-emu.c (main): Initialize and de-initialize loopback
41071 support.
41072 * include/grub/disk.h (grub_disk_dev_id): Add
41073 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
41074
41075 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
41076
41077 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
41078 function.
41079 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
41080 (suspend_mod_SOURCES): New variable.
41081 (suspend_mod_CFLAGS): Likewise.
41082 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
41083 New prototype.
41084 * commands/ieee1275/suspend.c: New file.
41085
41086 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
41087
41088 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
41089 ((unused))' to `__attribute__ ((used))'.
41090 (GRUB_MOD_FINI): Likewise.
41091 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
41092 * genmk.rb (PModule): Assign space to common symbols when linking
41093 modules.
41094
41095 2005-01-20 Marco Gerards <metgerards@student.han.nl>
41096
41097 * include/grub/mm.h (grub_mm_init_region): Change the type of the
41098 `unsigned' arguments to `grub_size_t'.
41099 (grub_malloc): Likewise.
41100 (grub_realloc): Likewise.
41101 (grub_memalign): Likewise.
41102 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
41103 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
41104 * util/misc.c (grub_malloc): Likewise.
41105 (grub_realloc): Likewise.
41106 * kern/mm.c (get_header_from_pointer): Change the casts to
41107 `unsigned' into a cast to `grub_size_t'.
41108
41109 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
41110 point to `currnode' when `currnode' is changed.
41111
41112 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
41113 Schottelius <nico-linux@schottelius.org>.
41114
41115 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
41116
41117 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
41118 (note_path): Remove variable.
41119 (GRUB_IEEE1275_NOTE_NAME): New macro.
41120 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
41121 (grub_ieee1275_note_hdr): New structure.
41122 (grub_ieee1275_note_desc): Likewise.
41123 (grub_ieee1275_note): Likewise.
41124 (load_note): Remove `dir' argument. All callers updated. Remove
41125 `note_img' and `path'. Do not load a file from `note_path'.
41126 Initialize a struct grub_ieee1275_note and write that to `out'.
41127 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
41128
41129 2005-01-05 Marco Gerards <metgerards@student.han.nl>
41130
41131 * util/misc.c (grub_util_read_image): Revert last change. It
41132 called `grub_util_read_at', which seeks from the beginning of the
41133 file.
41134
41135 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
41136
41137 * TODO: Add note about endianness in grub-mkimage.
41138 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
41139 section.
41140 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
41141 (grub_mkimage_SOURCES): New target.
41142 * include/grub/kernel.h (grub_start_addr): Remove variable.
41143 (grub_end_addr): Likewise.
41144 (grub_total_module_size): Likewise.
41145 (grub_kernel_image_size): Likewise.
41146 (GRUB_MODULE_MAGIC): New constant.
41147 (grub_module_info): New structure.
41148 (grub_arch_modules_addr): New prototype.
41149 (grub_get_end_addr): Remove prototype.
41150 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
41151 * include/grub/powerpc/ieee1275/kernel.h: New file.
41152 * include/grub/util/misc.h (grub_util_get_fp_size): New
41153 prototype.
41154 (grub_util_read_at): Likewise.
41155 (grub_util_write_image_at): Likewise.
41156 * kern/main.c (grub_get_end_addr): Remove function.
41157 (grub_load_modules): Call grub_arch_modules_addr instead of using
41158 grub_end_addr. Look for a grub_module_info struct in memory. Use
41159 the grub_module_info fields instead of calling grub_get_end_addr
41160 as loop conditions. Move grub_add_unused_region code here.
41161 (grub_add_unused_region): Remove function.
41162 * kern/i386/pc/init.c: Include grub/cache.h.
41163 (grub_machine_init): Remove call to grub_get_end_addr. Remove
41164 one call to add_mem_region.
41165 (grub_arch_modules_addr): New function.
41166 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
41167 (grub_total_module_size): Likewise.
41168 Include grub/machine/kernel.h.
41169 (grub_arch_modules_addr): New function.
41170 * util/grub-emu.c (grub_end_addr): Remove variable.
41171 (grub_total_module_size): Likewise.
41172 (grub_arch_modules_addr): New function.
41173 * util/misc.c: Include unistd.h.
41174 (grub_util_get_fp_size): New function.
41175 (grub_util_read_at): Likewise.
41176 (grub_util_write_image_at): Likewise.
41177 (grub_util_read_image): Call grub_util_read_at.
41178 (grub_util_write_image): Call grub_util_write_image_at.
41179 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
41180 additional memory in kernel_img for a struct grub_module_info.
41181 Fill in that grub_module_info.
41182 * util/powerpc/ieee1275/grub-mkimage.c: New file.
41183
41184 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41185
41186 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
41187 New function.
41188 * include/grub/powerpc/ieee1275/ieee1275.h
41189 (grub_ieee1275_milliseconds): New prototype.
41190 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
41191 Change to 1000.
41192 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
41193 grub_ieee1275_milliseconds.
41194
41195 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41196
41197 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
41198 variable.
41199 (find_options): New function.
41200 (cmain): Call find_options.
41201 * include/grub/powerpc/ieee1275/ieee1275.h
41202 (grub_ieee1275_realmode): New extern variable.
41203 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
41204 grub_map if grub_ieee1275_realmode is false.
41205
41206 2004-12-29 Marco Gerards <metgerards@student.han.nl>
41207
41208 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
41209 lines are inserted and make it work like readline. Reported by
41210 Vincent Pelletier <subdino2004@yahoo.fr>.
41211
41212 2004-12-28 Marco Gerards <metgerards@student.han.nl>
41213
41214 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
41215
41216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
41217 `kern/powerpc/cache.S'.
41218
41219 2004-12-27 Marco Gerards <metgerards@student.han.nl>
41220
41221 * genmk.rb: Handle the `Program' class in the main loop. Written
41222 by Johan Rydberg <jrydberg@gnu.org>.
41223 (Program): New class.
41224 (programs): New variable.
41225 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
41226 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
41227 instead of "grub/kernel.h". Include <grub/machine/init.h>.
41228 (help_arch): Function removed.
41229 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
41230 `powerpc/libgcc.h' and `loader.h'.
41231 (pkgdata_PROGRAMS): New variable.
41232 (sbin_UTILITIES): Variable removed.
41233 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
41234 (grubof_SOURCES): Variable re-defined so it only includes the
41235 core functionality.
41236 (grubof_CFLAGS): Remove `-DGRUBOF'.
41237 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
41238 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
41239 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
41240 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
41241 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
41242 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
41243 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
41244 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
41245 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
41246 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
41247 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
41248 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
41249 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
41250 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
41251 (pc_mod_CFLAGS): New variables.
41252 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
41253 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
41254 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
41255 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
41256 Moved from here...
41257 * include/grub/i386/pc/init.h (grub_os_area_addr)
41258 (rub_os_area_size): ... to here.
41259 * include/grub/powerpc/ieee1275/ieee1275.h
41260 (grub_ieee1275_entry_fn): Export symbol.
41261 * include/grub/powerpc/ieee1275/init.h: New file.
41262 * include/grub/powerpc/libgcc.h: Likewise.
41263 * include/grub/cache.h: Likewise.
41264 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
41265 <hollis@penguinppc.org>.
41266 * kern/dl.c: Include <grub/cache.h>.
41267 (grub_dl_flush_cache): New function.
41268 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
41269 for this module.
41270 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
41271 (grub_console_init): Removed prototypes.
41272 (grub_machine_init): Don't initialize the modules anymore.
41273 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
41274 static.
41275 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
41276 Macro undef removed.
41277 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
41278 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
41279 relocation `R_PPC_REL32'. Return an error when the relocation is
41280 unknown.
41281 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
41282 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
41283 * util/misc.c (grub_arch_sync_caches): Likewise.
41284
41285 2004-12-19 Marco Gerards <metgerards@student.han.nl>
41286
41287 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
41288 `symlist.c', add `grubof_symlist.c'.
41289 (symlist.c): Variable removed.
41290 (grubof_HEADERS): Variable added.
41291 (grubof_symlist.c): New target.
41292 (kernel_syms.lst): Use `grubof_HEADERS' instead of
41293 `kernel_img_HEADERS'.
41294 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
41295 * kern/powerpc/dl.c: New file.
41296 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
41297 Function removed.
41298 (grub_arch_dl_relocate_symbols): Likewise.
41299 (grub_register_exported_symbols): Likewise.
41300
41301 2004-12-13 Marco Gerards <metgerards@student.han.nl>
41302
41303 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
41304 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
41305 to fail instead. Reported by Vincent Pelletier
41306 <subdino2004@yahoo.fr>.
41307
41308 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
41309 it is not allocated. Reported by Vincent Pelletier
41310 <subdino2004@yahoo.fr>.
41311
41312 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
41313 output so the output looks better.
41314
41315 2004-12-04 Marco Gerards <metgerards@student.han.nl>
41316
41317 Modulize the partition map support and add support for the amiga
41318 partition map.
41319
41320 * commands/ls.c: Include <grub/partition.h> instead of
41321 <grub/machine/partition.h>.
41322 * kern/disk.c: Likewise.
41323 * kern/rescue.c: Likewise.
41324 * loader/i386/pc/chainloader.c: Likewise.
41325 * normal/cmdline.c: Likewise.
41326 * kern/powerpc/ieee1275/init.c: Likewise.
41327 (grub_machine_init): Call `grub_pc_partition_map_init',
41328 `grub_amiga_partition_map_init' and
41329 `grub_apple_partition_map_init'.
41330 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
41331 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
41332 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
41333 `partition.h' and `pc_partition.h'.
41334 (grub_setup_SOURCES): Remove
41335 `disk/i386/pc/partition.c'. Add `kern/partition.c',
41336 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41337 (grub_emu_SOURCES): Likewise.
41338 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
41339 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
41340 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
41341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41342 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
41343 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41344 (grubof_SOURCES): Likewise.
41345 * disk/i386/pc/partition.c: File removed.
41346 * disk/powerpc/ieee1275/partition.c: Likewise.
41347 * include/grub/powerpc/ieee1275/partition.h: Likewise.
41348 * include/grub/i386/pc/partition.h: Likewise.
41349 * kern/partition.c: New file.
41350 * partmap/amiga.c: Likewise.
41351 * partmap/apple.c: Likewise.
41352 * partmap/pc.c: Likewise.
41353 * include/grub/partition.h: Likewise..
41354 * include/grub/pc_partition.h: Likewise.
41355 * util/grub-emu.c: Include <grub/partition.h> instead of
41356 <grub/machine/partition.h>.
41357 (main): Call `grub_pc_partition_map_init',
41358 `grub_amiga_partition_map_init' and
41359 `grub_apple_partition_map_init' and deinitialize afterwards.
41360 * util/i386/pc/biosdisk.c: Include `#include
41361 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41362 `<grub/machine/partition.h>'.
41363 * util/i386/pc/grub-setup.c: Likewise.
41364 * util/i386/pc/biosdisk.c: Likewise.
41365 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
41366 partition information in case of a PC partition.
41367 * util/i386/pc/grub-setup.c: Include `#include
41368 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41369 `<grub/machine/partition.h>'.
41370 (setup): Only access the PC specific partition information in case
41371 of a PC partition.
41372
41373 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
41374
41375 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
41376 (grub_longjmp): Likewise.
41377 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
41378 20.
41379 * normal/powerpc/setjmp.S: New file.
41380 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41381 `normal/powerpc/setjmp.S'.
41382 (grubof_CFLAGS): Add `-DGRUBOF'.
41383 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
41384 [GRUB_UTIL && !GRUBOF].
41385
41386 2004-11-16 Marco Gerards <metgerards@student.han.nl>
41387
41388 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
41389 property named `name'. Correctly handle the error returned by
41390 `grub_ieee1275_finddevice' if a device can not be opened.
41391
41392 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
41393
41394 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
41395 `actual' for negativity.
41396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41397 kern/fshelp.c.
41398
41399 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41400
41401 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
41402 (PAGE_OFFSET): New macro.
41403 (CRTC_ADDR_PORT): Likewise.
41404 (CRTC_DATA_PORT): Likewise.
41405 (START_ADDR_HIGH_REGISTER): Likewise.
41406 (START_ADDR_LOW_REGISTER): Likewise.
41407 (GRAPHICS_ADDR_PORT): Likewise.
41408 (GRAPHICS_DATA_PORT): Likewise.
41409 (READ_MAP_REGISTER): Likewise.
41410 (INPUT_STATUS1_REGISTER): Likewise.
41411 (INPUT_STATUS1_VERTR_BIT): Likewise.
41412 (page): New variable.
41413 (wait_vretrace): New function.
41414 (set_read_map): Likewise.
41415 (set_start_address): Likewise.
41416 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
41417 the right page.
41418 (check_vga_mem): Take the page into account.
41419 (write_char): Likewise.
41420 (write_cursor): Likewise.
41421 (scroll_up): Likewise. Copy the page to the page that is not
41422 shown and switch between both pages.
41423 (grub_vga_putchar): Fix off by one error.
41424 (grub_vga_cls): Wait for the vertical retrace. Take the page into
41425 account.
41426
41427 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41428
41429 Add support for iso9660 (including rockridge).
41430
41431 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41432 (iso9660_mod_SOURCES): New variable.
41433 (iso9660_mod_CFLAGS): Likewise.
41434 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41435 * include/grub/fs.h (grub_iso9660_init): New prototype.
41436 * util/grub-emu.c (main): Call `grub_iso9660_init'.
41437 * fs/iso9660.c: New file.
41438
41439 * include/grub/misc.h (grub_strncat): New prototype.
41440 * kern/misc.c (grub_strncat): New function.
41441
41442 * fs/hfs.c (grub_hfs_mount): Translate the error
41443 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
41444 * fs/jfs.c (grub_jfs_mount): Likewise.
41445 * fs/ufs.c (grub_ufs_mount): Likewise.
41446
41447 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
41448
41449 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
41450 which initialized BAT registers.
41451 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
41452 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41453 Move from here...
41454 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
41455 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41456 ... to here.
41457 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
41458 (grub_mapclaim): Likewise.
41459 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
41460 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
41461 hand.
41462
41463 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
41464
41465 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
41466 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
41467 -ffreestanding and -msoft-float.
41468
41469 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
41470
41471 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
41472 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
41473 set in grub_ieee1275_flags.
41474
41475 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
41476
41477 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
41478 prototype.
41479 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
41480 grub_console_init first.
41481 Change the memory range used for grub_ieee1275_claim and
41482 grub_mm_init_region.
41483 Print an error message if the claim fails.
41484 Include <grub/misc.h>.
41485
41486 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
41487
41488 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
41489 Call grub_children_iterate for device nodes of type `scsi',
41490 `ide', or `ata'.
41491 (grub_ofdisk_open): Remove manual device alias resolution.
41492 Fix memory leak when device cannot be opened.
41493 * include/grub/powerpc/ieee1275/ieee1275.h
41494 (grub_children_iterate): New prototype.
41495 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
41496 New function.
41497 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41498 Return -1 if args.size was -1.
41499
41500 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41501
41502 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
41503 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
41504 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
41505 Open Firmware's memory for it; claim memory from _start to _end.
41506 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
41507 (_end): New extern.
41508 (_start): Zero BSS from __bss_start to _end.
41509 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
41510 New extern.
41511 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
41512
41513 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41514
41515 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
41516 -1 if args.base was -1.
41517
41518 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
41519
41520 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
41521 escape sequence instead of a literal ^L. Also call
41522 grub_ofconsole_gotoxy.
41523
41524 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
41525
41526 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
41527 void * arguments to grub_addr_t. All callers updated. Also make
41528 the `result' argument optional.
41529 (grub_ieee1275_release): change void * arguments to grub_addr_t.
41530 All callers updated.
41531
41532 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
41533
41534 * commands/ls.c (grub_ls_list_files): Use the string following the
41535 initial ')', if present, as the filesystem path.
41536 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
41537
41538 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
41539
41540 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
41541
41542 Make the source code of the menu interface more readable.
41543
41544 * normal/menu.c: Include grub/mm.h.
41545 (TERM_WIDTH): New macro.
41546 (TERM_HEIGHT): Likewise.
41547 (TERM_INFO_HEIGHT): Likewise.
41548 (TERM_MARGIN): Likewise.
41549 (TERM_SCROLL_WIDTH): Likewise.
41550 (TERM_TOP_BORDER_Y): Likewise.
41551 (TERM_LEFT_BORDER_X): Likewise.
41552 (TERM_BORDER_WIDTH): Likewise.
41553 (TERM_MESSAGE_HEIGHT): Likewise.
41554 (TERM_BORDER_HEIGHT): Likewise.
41555 (TERM_NUM_ENTRIES): Likewise.
41556 (TERM_FIRST_ENTRY_Y): Likewise.
41557 (TERM_ENTRY_WIDTH): Likewise.
41558 (TERM_CURSOR_X): Likewise.
41559 (draw_border): Use macros instead of magic numbers.
41560 (print_entry): Likewise.
41561 (print_entries): Likewise.
41562 (run_menu): Likewise. Also, handle the key 'e'.
41563 (run_menu_entry): Ignore empty command lines.
41564 (print_message): Added a new argument EDIT. If EDIT is true,
41565 print a different message.
41566 (init_page): Likewise.
41567 (edit_menu_entry): New function. Not implemented yet.
41568
41569 2004-09-17 Marco Gerards <metgerards@student.han.nl>
41570
41571 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
41572 can be loaded from normal mode.
41573
41574 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
41575 `multiboot.mod'.
41576 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
41577 (multiboot_mod_CFLAGS): New variables.
41578 * loader/i386/pc/linux_normal.c: New file.
41579 * loader/i386/pc/multiboot_normal.c: Likewise.
41580
41581 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
41582 attribute `unused'.
41583
41584 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
41585 `fdiro' to read the mode information from instead of `diro'.
41586
41587 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
41588 looking up a symlink.
41589
41590 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
41591 macro.
41592 * normal/command.c (grub_command_execute): Don't parse the
41593 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
41594 flags of the command.
41595
41596 * normal/menu.c (grub_menu_run): Fix typo.
41597
41598 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
41599
41600 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
41601
41602 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
41603 `y + 1' instead of `y - 1'.
41604
41605 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
41606
41607 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
41608
41609 From Hollis Blanchard <hollis@penguinppc.org>:
41610 * kern/misc.c (memmove): New alias for grub_memmove.
41611 (memcmp): New alias for grub_memcmp.
41612 (memset): New alias for grub_memset.
41613 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41614 Change "int handle" to "grub_ieee1275_phandle_t handle".
41615 * include/grub/powerpc/ieee1275/ieee1275.h
41616 (grub_ieee1275_get_property): Likewise.
41617
41618 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
41619
41620 Added normal mode command `chainloader' as module chain.mod, which
41621 depends on normal.mod and _chain.mod.
41622
41623 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
41624 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
41625 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
41626 Deleted prototype.
41627 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
41628 but arguments parsing moved to ...
41629 (grub_chainloader_cmd): ... here. New function.
41630 * include/grub/i386/pc/chainloader.h: New file.
41631 * loader/i386/pc/chainloader_normal.c: Likewise.
41632
41633 2004-09-11 Marco Gerards <metgerards@student.han.nl>
41634
41635 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
41636 (grub_mkimage_LDFLAGS): Likewise.
41637 (grub_emu_SOURCES): Likewise.
41638 (kernel_img_HEADERS): Added fshelp.h.
41639 * fs/ext2.c: Include <grub/fshelp.h>.
41640 (FILETYPE_REG): New macro.
41641 (FILETYPE_INO_REG): Likewise.
41642 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
41643 Changed all users.
41644 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
41645 all users.
41646 (grub_fshelp_node): New struct.
41647 (grub_ext2_data): Added member `diropen'. Changed member `inode'
41648 to a pointer.
41649 (grub_ext2_get_file_block): Removed function.
41650 (grub_ext2_read_block): New function.
41651 (grub_ext2_read_file): Replaced parameter `data' by `node'.
41652 This function was written.
41653 (grub_ext2_mount): Read the root inode. Create a diropen struct.
41654 (grub_ext2_find_file): Removed function.
41655 (grub_ext2_read_symlink): New function.
41656 (grub_ext2_iterate_dir): Likewise.
41657 (grub_ext2_open): Rewritten.
41658 (grub_ext2_dir): Rewritten.
41659 * include/grub/fshelp.h: New file.
41660 * fs/fshelp.c: Likewise.
41661
41662 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
41663
41664 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
41665 (print_message): Add a missing newline.
41666 (run_menu): Added timeout support.
41667 (run_menu_entry): New local function.
41668 (grub_menu_run): Added support for booting.
41669
41670 * kern/loader.c (grub_loader_is_loaded): New function.
41671
41672 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
41673 (grub_get_rtc): Exported.
41674
41675 * include/grub/i386/pc/time.h: Include grub/symbol.h.
41676 (grub_get_rtc): Exported.
41677
41678 * include/grub/normal.h (struct grub_command_list): Remove
41679 constant from the member `command'.
41680
41681 * include/grub/loader.h (grub_loader_is_loaded): Declared.
41682
41683 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
41684
41685 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
41686
41687 2004-08-28 Marco Gerards <metgerards@student.han.nl>
41688
41689 Add support for the JFS filesystem.
41690
41691 * fs/jfs.c: New file.
41692 * include/grub/fs.h (grub_jfs_init): New prototype.
41693 (grub_jfs_fini): New prototype.
41694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
41695 (grub_emu_SOURCES): Likewise.
41696 (pkgdata_MODULES): Add jfs.mod.
41697 (jfs_mod_SOURCES): New variable.
41698 (jfs_mod_CFLAGS): Likewise.
41699 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
41700 (grubof_SOURCES): Likewise.
41701 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
41702
41703 * fs/fat.c (grub_fat_find_dir): Convert the filename little
41704 endian to the host endian.
41705 (grub_fat_utf16_to_utf8): Move function from there...
41706 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
41707 the endianness of the source string anymore.
41708 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
41709
41710 2004-08-24 Marco Gerards <metgerards@student.han.nl>
41711
41712 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
41713 (grub_boot_fini) [GRUB_UTIL]: Likewise.
41714 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
41715 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
41716
41717 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
41718 (grub_hfs_iterate_dir): Make the function static. Add prototypes
41719 for `node_found' and `it_dir'.
41720 (grub_hfs_dir): Add prototype for `dir_hook'.
41721
41722 * fs/minix.c (grub_minix_get_file_block): Add prototype for
41723 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
41724 and `indir32' to silence a gcc warning.
41725
41726 * include/grub/fs.h (grub_hfs_init): New prototype.
41727 (grub_hfs_fini): Likewise.
41728
41729
41730 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
41731
41732 Each disk device has its own id now. This is useful to make use
41733 of multiple disk devices.
41734
41735 * include/grub/disk.h (grub_disk_dev_id): New enum.
41736 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
41737 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
41738
41739 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
41740 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41741
41742 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
41743 GRUB_DISK_DEVICE_OFDISK_ID as an id.
41744
41745 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
41746 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41747
41748 * include/grub/disk.h (struct grub_disk_dev): Added a new member
41749 "id" which is used by the cache manager.
41750
41751 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
41752 of just "GRUB".
41753
41754 2004-08-18 Marco Gerards <metgerards@student.han.nl>
41755
41756 * fs/hfs.c: New file.
41757 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
41758 (grub_emu_SOURCES): Likewise.
41759 (pkgdata_MODULES): Add hfs.mod.
41760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
41761 (grubof_SOURCES): Likewise.
41762 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
41763
41764 * include/grub/misc.h (grub_strncasecmp): Add prototype.
41765 * kern/misc.c (grub_strncasecmp): Add function.
41766
41767 2004-08-14 Marco Gerards <metgerards@student.han.nl>
41768
41769 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
41770 with parentheses.
41771
41772 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
41773 (grub_ext2_dir): In case the directory entry type is unknown, read
41774 it from the inode.
41775
41776 2004-08-02 Peter Bruin <pjbruin@dds.nl>
41777
41778 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
41779 grub_load_linux instead of grub_rescue_cmd_linux as second
41780 argument of grub_rescue_register_command.
41781
41782 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
41783
41784 2004-07-27 Marco Gerards <metgerards@student.han.nl>
41785
41786 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
41787 function.
41788 * commands/boot.c: Remove the check for `GRUB_UTIL'.
41789 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41790 `loader/powerpc/ieee1275/linux.c',
41791 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
41792 * include/grub/powerpc/ieee1275/ieee1275.h
41793 (grub_ieee1275_release): New prototype.
41794 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
41795 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
41796 normal, boot, linux and linux_normal.
41797 * loader/powerpc/ieee1275/linux.c: New file.
41798 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41799
41800 2004-07-12 Marco Gerards <metgerards@student.han.nl>
41801
41802 * normal/arg.c (grub_arg_parse): Correct error handling after
41803 reallocating the argumentlist (check if `argl' is not null instead
41804 of checking if `args' is not null).
41805 * kern/mm.c (grub_realloc): Return the same pointer when using the
41806 same region, instead of returning the header address.
41807
41808 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41809
41810 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
41811 one block instead of two when looking for the initial partition.
41812 (grub_partition_probe): Initialize the local variable `p' with 0.
41813 Use base 10 for the grub_strtoul call.
41814 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
41815 need for one local variable.
41816 (grub_strtoul): Don't add the new value to `num', instead of that
41817 just assign it.
41818
41819 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41820
41821 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
41822 (pxeboot_img_SOURCES): New variable.
41823 (pxeboot_img_ASFLAGS): Likewise.
41824 (pxeboot_img_LDFLAGS): Likewise.
41825 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
41826 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
41827 <lode_leroy@hotmail.com>.
41828
41829 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41830
41831 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
41832 there was no input.
41833
41834 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41835
41836 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
41837 the history buffer logic.
41838
41839 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41840
41841 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
41842 (FILETYPE_INO_SYMLINK): New macros.
41843 (grub_ext2_find_file): Check if the node is a directory using the
41844 inode stat information instead of using the filetype in the
41845 dirent. Exclude the first character of an absolute symlink.
41846 (grub_ext2_dir): Mask out the filetype part of the mode member of
41847 the inode.
41848
41849 2004-05-24 Marco Gerards <metgerards@student.han.nl>
41850
41851 Add support for UFS version 1 and 2. Add support for the minix
41852 filesystem version 1 and 2, both the variants with 14 and 30 long
41853 filenames.
41854
41855 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
41856 fs/minix.c.
41857 (grub_emu_SOURCES): Likewise.
41858 (pkgdata_MODULES): Add ufs.mod and minix.mod.
41859 (ufs_mod_SOURCES): New variable.
41860 (ufs_mod_CFLAGS): Likewise.
41861 (minix_mod_SOURCES): Likewise.
41862 (minix_mod_CFLAGS): Likewise.
41863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
41864 fs/minix.c.
41865 (grubof_SOURCES): Likewise.
41866 * fs/ufs.c: New file.
41867 * fs/minix.c: New file.
41868 * include/grub/fs.h (grub_ufs_init): New prototype.
41869 (grub_ufs_fini): Likewise.
41870 (grub_minix_init): Likewise.
41871 (grub_minix_fini): Likewise.
41872 * util/grub-emu.c (main): Initialize and deinitialize UFS and
41873 minix fs.
41874
41875 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
41876
41877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
41878 commands/ls.c, commands/terminal.c, commands/boot.c,
41879 commands/cmp.c and commands/cat.c.
41880 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
41881
41882 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
41883 "env.h"
41884
41885 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41886
41887 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
41888 and grub_, respectively. Because the conversion is trivial and
41889 mechanical, I omit the details here. Please refer to the CVS
41890 if you need more information.
41891
41892 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41893
41894 * include/pupa: Renamed to ...
41895 * include/grub: ... this.
41896 * util/i386/pc/pupa-mkimage.c: Renamed to ...
41897 * util/i386/pc/grub-mkimage.c: ... this.
41898 * util/i386/pc/pupa-setup.c: Renamed to ...
41899 * util/i386/pc/grub-setup.c: ... this.
41900 * util/pupa-emu.c: Renamed to ...
41901 * util/grub-emu.c: ... this.
41902
41903 2004-03-29 Marco Gerards <metgerards@student.han.nl>
41904
41905 Add support for the newworld apple macintosh (PPC). This has been
41906 tested on the powerbook 2000 only. It only adds support for
41907 generic ieee1275 functions, console and disk support. This should
41908 be easy to port to other architectures with support for Open
41909 Firmware.
41910
41911 * configure.ac: Accept the powerpc as host_cpu. In the case of
41912 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
41913 specific tests are only executed while building for the i386.
41914 Inverse test for crosscompile.
41915 * genmk.rb (Utility): Allow assembler files.
41916 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
41917 * conf/powerpc-ieee1275.rmk: New file.
41918 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
41919 * disk/powerpc/ieee1275/partition.c: Likewise.
41920 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
41921 * include/pupa/powerpc/ieee1275/console.h: Likewise.
41922 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
41923 * include/pupa/powerpc/ieee1275/time.h: Likewise.
41924 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
41925 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
41926 * include/pupa/powerpc/ieee1275/loader.h
41927 * include/pupa/powerpc/setjmp.h: Likewise.
41928 * include/pupa/powerpc/types.h: Likewise.
41929 * kern/powerpc/ieee1275/init.c: Likewise.
41930 * kern/powerpc/ieee1275/openfw.c: Likewise.
41931 * term/powerpc/ieee1275/ofconsole.c: Likewise.
41932
41933 These files were written by Johan Rydberg
41934 (jrydberg@night.trouble.net) and I only modified them slightly.
41935
41936 * boot/powerpc/ieee1275/cmain.c: New file.
41937 * boot/powerpc/ieee1275/crt0.S: Likewise.
41938 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
41939 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
41940
41941 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
41942
41943 * Makefile.in: Update copyright.
41944 * genmodsrc.sh: Likewise.
41945 * gensymlist.sh: Likewise.
41946 * term/i386/pc/vga.c: Indent correctly.
41947
41948 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
41949 bugreporting address.
41950 * util/i386/pc/pupa-setup.c (usage): Likewise,
41951 (main): Call pupa_ext2_init and pupa_ext2_fini.
41952
41953 * fs/fat.c (log2): Renamed to ...
41954 (fat_log2): ... this.
41955 All callers changed.
41956 * kern/misc.c (memcpy): Alias to pupa_memmove.
41957 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
41958 lvalue cast.
41959 * util/console.c (pupa_ncurses_fini): Return 0.
41960
41961 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
41962 Move fail label here.
41963 [__GNU__]: Don't warn when using stat.
41964 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
41965 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
41966 long int. Use strtol instead of strtoul.
41967
41968 2004-03-14 Marco Gerards <metgerards@student.han.nl>
41969
41970 * commands/boot.c: New file.
41971 * commands/cat.c: Likewise.
41972 * commands/cmp.c: Likewise.
41973 * commands/ls.c: Likewise.
41974 * commands/terminal.c: Likewise.
41975 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
41976 (pupa_register_command): Changed interface to match the new
41977 argument parser.
41978 (pupa_command_execute): Changed (almost rewritten) so it uses
41979 pupa_split_command. Added support for setting variables using the
41980 syntax `foo=bar'.
41981 (rescue_command): Changed to work with the new argument parser.
41982 (terminal_command): Moved from here to commands/terminal.c.
41983 (set_command): New function.
41984 (unset_command): New function.
41985 (insmod_command): New function.
41986 (rmmod_command): New function.
41987 (lsmod_command): New function.
41988 (pupa_command_init): Don't initialize the command terminal
41989 anymore. Initialize the commands set, unset, insmod, rmmod and
41990 lsmod.
41991 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
41992 (kernel_img_HEADERS): Add arg.h and env.h.
41993 (pupa_mkimage_LDFLAGS): Add kern/env.c.
41994 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
41995 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
41996 normal/arg.c.
41997 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
41998 terminal.mod.
41999 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
42000 (boot_mod_SOURCES): New variable.
42001 (terminal_mod_SOURCES): Likewise.
42002 (ls_mod_SOURCES): Likewise.
42003 (cmp_mod_SOURCES): Likewise.
42004 (cat_mod_SOURCES): Likewise.
42005
42006 * normal/arg.c: New file.
42007 * kern/env.c: Likewise.
42008 * include/pupa/arg.h: Likewise.
42009 * include/pupa/env.h: Likewise.
42010 * font/manager.c (font_command): Changed to match argument parsing
42011 interface changes.
42012 (PUPA_MOD_INIT): Likewise.
42013 * hello/hello.c (pupa_cmd_hello): Likewise.
42014 (PUPA_MOD_INIT): Likewise.
42015 * include/pupa/disk.h: Include <pupa/device.h>.
42016 (pupa_print_partinfo): New prototype.
42017 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
42018 (pupa_dl_get_prefix): Likewise.
42019 * include/pupa/misc.h: Include <pupa/err.h>.
42020 (pupa_isgraph): New prototype.
42021 (pupa_isdigit): Likewise.
42022 (pupa_split_cmdline): Likewise.
42023 * include/pupa/normal.h: Include <pupa/arg.h>.
42024 (pupa_command): Changed the prototype of the member `func' to
42025 match the argument parsing interface. Added member `options'.
42026 (pupa_register_command): Updated to match function.
42027 (pupa_arg_parse): New prototype.
42028 (pupa_hello_init) [PUPA_UTIL]: New prototype.
42029 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
42030 (pupa_ls_init) [PUPA_UTIL]: Likewise.
42031 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
42032 (pupa_cat_init) [PUPA_UTIL]: Likewise.
42033 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
42034 (pupa_boot_init) [PUPA_UTIL]: Likewise.
42035 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
42036 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
42037 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
42038 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
42039 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
42040 * kern/disk.c: Include <pupa/file.h>.
42041 (pupa_print_partinfo): New function.
42042 * kern/dl.c: Include <pupa/env.h>.
42043 (pupa_dl_dir): Variable removed.
42044 (pupa_dl_load): Use the environment variable `prefix' instead of
42045 the variable pupa_dl_dir.
42046 (pupa_dl_set_prefix): Function removed.
42047 (pupa_dl_get_prefix): Likewise.
42048 * kern/i386/pc/init.c: Include <pupa/env.h>.
42049 (pupa_machine_init): Use the environment variable `prefix' instead of
42050 using pupa_dl_set_prefix to set the prefix.
42051 * kern/main.c: Include <pupa/env.h>.
42052 (pupa_set_root_dev): Use the environment variable `prefix' instead of
42053 using pupa_dl_get_prefix to get the prefix.
42054 * kern/misc.c: Include <pupa/env.h>.
42055 (pupa_isdigit): New function.
42056 (pupa_isgraph): Likewise.
42057 (pupa_ftoa): Likewise.
42058 (pupa_vsprintf): Added support for printing values of the type
42059 `double'. Make it possible to format variable output when using
42060 formatting like `%1.2%f'.
42061 (pupa_split_cmdline): New function.
42062 * kern/rescue.c: Include <pupa/env.h>.
42063 (next_word): Removed function.
42064 (pupa_rescue_cmd_prefix): Likewise.
42065 (pupa_rescue_cmd_set): New function.
42066 (pupa_rescue_cmd_unset): New function.
42067 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
42068 split the command line instead of splitting it here. Added
42069 support for setting variables using the syntax `foo=bar'. Don't
42070 initialize the prefix command anymore. Initialized the set and
42071 unset commands.
42072 * normal/cmdline.c: Include <pupa/env.h>.
42073 (pupa_tab_complete): Added prototypes for print_simple_completion,
42074 print_partition_completion, add_completion, iterate_commands,
42075 iterate_dev, iterate_part and iterate_dir. Moved code to print
42076 partition information from here to kern/disk.c.
42077 (pupa_cmdline_run): Don't check if the function exists anymore.
42078 * normal/main.c: Include <pupa/env.h>.
42079 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
42080 instead of using pupa_dl_get_prefix to get the prefix.
42081 * term/i386/pc/vga.c: Include <pupa/arg.h>.
42082 (check_vga_mem): Cast pointers to `void *' to silence a gcc
42083 warning.
42084 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
42085 (pupa_vga_setcolor): Declare unused variables with `__attribute__
42086 ((unused))' to silence a gcc warning.
42087 (pupa_vga_setcolor): Likewise.
42088 (debug_command): Changed to match argument parsing
42089 interface changes.
42090 * util/pupa-emu.c: Include <pupa/env.h>.
42091 (options): Added 0's for unused fields to silence a gcc warning.
42092 (argp): Likewise.
42093 (main): Use the environment variable `prefix' instead of using
42094 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
42095 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
42096 and terminal.
42097
42098 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
42099 * util/misc.c: Include <malloc.h>.
42100 (pupa_malloc): Rewritten so errors are correctly reported.
42101 (pupa_realloc): Likewise.
42102 (pupa_memalign): Likewise.
42103 (pupa_mm_init_region): Declare unused variables with
42104 `__attribute__ ((unused))' to silence a gcc warning.
42105 * normal/i386/setjmp.S: Remove tab at the end of the file to
42106 silence a gcc warning.
42107 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
42108 variables with `__attribute__ ((unused))' to silence a gcc
42109 warning.
42110 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
42111 local variable i unsigned to silence a gcc warning.
42112
42113 * kern/term.c: Include <pupa/misc.h>.
42114 (pupa_more_lines): New variable.
42115 (pupa_more): Likewise.
42116 (pupa_putcode): When the pager is active pause at the end of every
42117 screen.
42118 (pupa_set_more): New function.
42119 * include/pupa/term.h (pupa_set_more): New prototype.
42120
42121
42122 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
42123
42124 Now this project is GRUB 2 rather than PUPA. The location of
42125 the CVS repository was moved to GRUB's.
42126
42127 * configure.ac: Use bug-grub as the reporting address.
42128 Use GRUB instead of PUPA.
42129 Change the version number to 1.90.
42130
42131 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
42132
42133 * genkernsyms.sh: Updated copyright information.
42134 * genmk.rb: Likewise.
42135 * genmodsrc.sh: Likewise.
42136 * gensymlist.sh: Likewise.
42137 * boot/i386/pc/boot.S: Likewise.
42138 * boot/i386/pc/diskboot.S: Likewise.
42139 * disk/i386/pc/biosdisk.c: Likewise.
42140 * disk/i386/pc/partition.c: Likewise.
42141 * font/manager.c: Likewise.
42142 * fs/ext2.c: Likewise.
42143 * fs/fat.c: Likewise.
42144 * include/pupa/boot.h: Likewise.
42145 * include/pupa/device.h: Likewise.
42146 * include/pupa/disk.h: Likewise.
42147 * include/pupa/dl.h: Likewise.
42148 * include/pupa/elf.h: Likewise.
42149 * include/pupa/err.h: Likewise.
42150 * include/pupa/file.h: Likewise.
42151 * include/pupa/font.h: Likewise.
42152 * include/pupa/fs.h: Likewise.
42153 * include/pupa/kernel.h: Likewise.
42154 * include/pupa/loader.h: Likewise.
42155 * include/pupa/misc.h: Likewise.
42156 * include/pupa/mm.h: Likewise.
42157 * include/pupa/net.h: Likewise.
42158 * include/pupa/normal.h: Likewise.
42159 * include/pupa/rescue.h: Likewise.
42160 * include/pupa/setjmp.h: Likewise.
42161 * include/pupa/symbol.h: Likewise.
42162 * include/pupa/term.h: Likewise.
42163 * include/pupa/types.h: Likewise.
42164 * include/pupa/i386/setjmp.h: Likewise.
42165 * include/pupa/i386/types.h: Likewise.
42166 * include/pupa/i386/pc/biosdisk.h: Likewise.
42167 * include/pupa/i386/pc/boot.h: Likewise.
42168 * include/pupa/i386/pc/console.h: Likewise.
42169 * include/pupa/i386/pc/init.h: Likewise.
42170 * include/pupa/i386/pc/kernel.h: Likewise.
42171 * include/pupa/i386/pc/linux.h: Likewise.
42172 * include/pupa/i386/pc/loader.h: Likewise.
42173 * include/pupa/i386/pc/memory.h: Likewise.
42174 * include/pupa/i386/pc/multiboot.h: Likewise.
42175 * include/pupa/i386/pc/partition.h: Likewise.
42176 * include/pupa/i386/pc/time.h: Likewise.
42177 * include/pupa/i386/pc/vga.h: Likewise.
42178 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
42179 * include/pupa/util/getroot.h: Likewise.
42180 * include/pupa/util/misc.h: Likewise.
42181 * include/pupa/util/resolve.h: Likewise.
42182 * kern/device.c: Likewise.
42183 * kern/disk.c: Likewise.
42184 * kern/dl.c: Likewise.
42185 * kern/err.c: Likewise.
42186 * kern/file.c: Likewise.
42187 * kern/fs.c: Likewise.
42188 * kern/loader.c: Likewise.
42189 * kern/main.c: Likewise.
42190 * kern/misc.c: Likewise.
42191 * kern/mm.c: Likewise.
42192 * kern/rescue.c: Likewise.
42193 * kern/term.c: Likewise.
42194 * kern/i386/dl.c: Likewise.
42195 * kern/i386/pc/init.c: Likewise.
42196 * kern/i386/pc/lzo1x.S: Likewise.
42197 * kern/i386/pc/startup.S: Likewise.
42198 * loader/i386/pc/chainloader.c: Likewise.
42199 * loader/i386/pc/linux.c: Likewise.
42200 * loader/i386/pc/multiboot.c: Likewise.
42201 * normal/cmdline.c: Likewise.
42202 * normal/command.c: Likewise.
42203 * normal/main.c: Likewise.
42204 * normal/menu.c: Likewise.
42205 * normal/i386/setjmp.S: Likewise.
42206 * term/i386/pc/console.c: Likewise.
42207 * term/i386/pc/vga.c: Likewise.
42208 * util/console.c: Likewise.
42209 * util/genmoddep.c: Likewise.
42210 * util/misc.c: Likewise.
42211 * util/pupa-emu.c: Likewise.
42212 * util/resolve.c: Likewise.
42213 * util/unifont2pff.rb: Likewise.
42214 * util/i386/pc/biosdisk.c: Likewise.
42215 * util/i386/pc/getroot.c: Likewise.
42216 * util/i386/pc/pupa-mkimage.c: Likewise.
42217 * util/i386/pc/pupa-setup.c: Likewise.
42218
42219 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
42220
42221 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
42222 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
42223 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
42224 reading and reset it after reading.
42225 (pupa_ext2_close): Return PUPA_ERR_NONE.
42226
42227 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
42228 Correct value.
42229 (struct linux_kernel_header): Add kernel_version and
42230 initrd_addr_max.
42231 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
42232 pupa_file_read succeeds.
42233 (pupa_rescue_cmd_initrd): Implement.
42234
42235 2003-12-03 Marco Gerards <metgerards@student.han.nl>
42236
42237 * fs/ext2.c (pupa_ext2_label): New function.
42238 (pupa_ext2_fs): Added label.
42239 * fs/fat.c (pupa_fat_label): New function.
42240 (pupa_fat_fs): Added label.
42241 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
42242
42243 * kern/misc.c (pupa_strndup): New function.
42244 * include/pupa/misc.h (pupa_strndup): New prototype.
42245
42246 * include/pupa/normal.h: Include <pupa/err.h>.
42247 (pupa_set_history): New prototype.
42248 (pupa_iterate_commands): New prototype.
42249 * normal/cmdline.c: Include <pupa/machine/partition.h>,
42250 <pupa/disk.h>, <pupa/file.h>.
42251 (hist_size): New variable.
42252 (hist_lines): Likewise.
42253 (hist_end): Likewise.
42254 (hist_used): Likewise.
42255 (pupa_set_history): New function.
42256 (pupa_history_get): Likewise.
42257 (pupa_history_add): Likewise.
42258 (pupa_history_replace): Likewise.
42259 (pupa_tab_complete): Likewise.
42260 (pupa_cmdline_run): Added tab completion and history buffer. Tab
42261 completion shows partitionnames while completing partitions, this
42262 feature was suggested by Jeff Bailey.
42263 * normal/command.c (pupa_iterate_commands): New function.
42264 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
42265 (pupa_normal_init): Initialize history buffer.
42266 (PUPA_MOD_INIT): Likewise.
42267 (pupa_normal_fini): Free the history buffer.
42268 (PUPA_MOD_FINI): Likewise.
42269
42270 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
42271 key.
42272
42273 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
42274 * configure.ac [i386]: Check for regparam bug.
42275 (NESTED_FUNC_ATTR) [! i386]: Defined.
42276
42277 2003-11-17 Marco Gerards <metgerards@student.han.nl>
42278
42279 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
42280 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
42281 (pupa_emu_SOURCES): New variable.
42282 (pupa_emu_LDFLAGS): Likewise.
42283 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
42284 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
42285 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
42286 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42287 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
42288 (pupa_jmp_buf): New typedef.
42289 (pupa_setjmp) [PUPA_UTIL]: New macro.
42290 (pupa_longjmp) [PUPA_UTIL]: Likewise.
42291 * include/pupa/term.h (struct pupa_term): New member `refresh'.
42292 (pupa_refresh): New prototype.
42293 * include/pupa/util/getroot.h: New file.
42294 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
42295 it.
42296 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
42297 (pupa_rescue_cmd_cat): Likewise.
42298 (pupa_rescue_cmd_ls): Likewise.
42299 (pupa_rescue_cmd_testload): Likewise.
42300 (pupa_rescue_cmd_lsmod): Likewise.
42301 * normal/cmdline.c (pupa_cmdline_get): Likewise.
42302 * normal/menu.c (run_menu): Likewise.
42303 * kern/term.c (pupa_cls): Likewise.
42304 (pupa_refresh): New function.
42305 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
42306 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42307 * util/console.c: New file.
42308
42309 * util/i386/pc/getroot.c: New file.
42310 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
42311 (pupa_putchar): New function.
42312 (pupa_refresh): Likewise.
42313 (xgetcwd): Function moved to ...
42314 (strip_extra_slashes): Likewise.
42315 (get_prefix): Likewise.
42316 * util/i386/pc/getroot.c: ... here.
42317 (find_root_device): Function moved and renamed to...
42318 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
42319 Changed all callers.
42320 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
42321 and renamed to...
42322 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
42323 Changed all callers.
42324 * util/misc.c (pupa_memalign): New function.
42325 (pupa_mm_init_region): Likewise.
42326 (pupa_register_exported_symbols): Likewise.
42327 (pupa_putchar): Function removed.
42328 * util/pupa-emu.c: New file.
42329
42330 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
42331
42332 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
42333 (_multiboot_mod_SOURCES): New variable.
42334 (_multiboot_mod_CFLAGS): Likewise.
42335 * loader/i386/pc/multiboot.c: New file.
42336 * include/pupa/i386/pc/multiboot.h: Likewise.
42337 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
42338 (pupa_multiboot_real_boot): New function.
42339 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
42340 (pupa_multiboot_real_boot): New prototype.
42341 (pupa_rescue_cmd_multiboot): Likewise
42342 (pupa_rescue_cmd_module): Likewise.
42343
42344 * kern/loader.c (pupa_loader_set): Continue when
42345 pupa_loader_unload_func() fails.
42346 (pupa_loader_unset): New function.
42347 * include/pupa/loader.h (pupa_loader_unset): New prototype.
42348
42349 * kern/misc.c (pupa_stpcpy): New function.
42350 * include/pupa/misc.h (pupa_stpcpy): New prototype.
42351
42352 2003-11-12 Marco Gerards <metgerards@student.han.nl>
42353
42354 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
42355 for available extensions.
42356
42357 * include/pupa/i386/pc/time.h: New file.
42358 * kern/disk.c: Include <pupa/machine/time.h>.
42359 (PUPA_CACHE_TIMEOUT): New macro.
42360 (pupa_last_time): New variable.
42361 (pupa_disk_open): Flush the cache when there was a timeout.
42362 (pupa_disk_close): Reset the timer.
42363 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
42364 pupa_currticks.
42365 * util/misc.c: Include <sys/times.h>
42366 (pupa_get_rtc): New function.
42367
42368 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42369
42370 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
42371 as blocks.
42372 (pupa_ext2_get_file_block): Use blocks member.
42373
42374 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
42375 first block. Return -1 instead of pupa_errno on error.
42376
42377 2003-10-27 Marco Gerards <metgerards@student.han.nl>
42378
42379 * README: In the pupa-mkimage example use _chain instead of chain
42380 and ext2 instead of fat.
42381 * TODO: Replace ext2fs with jfs as an example. Add an item for
42382 adding journal playback for ext2fs.
42383 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
42384 (pkgdata_MODULES): Added ext2.mod.
42385 (ext2_mod_SOURCES): New variable.
42386 (ext2_mod_CFLAGS): Likewise.
42387 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
42388 * include/pupa/misc.h (pupa_strncpy): New prototype.
42389 (pupa_strcat): Likewise.
42390 (pupa_strncmp): Likewise.
42391 * kern/misc.c (pupa_strcat): Enable function.
42392 (pupa_strncpy): New function.
42393 (pupa_strncmp): Likewise.
42394 * fs/ext2.c: New file.
42395
42396 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
42397 when the read failed before retrying.
42398 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
42399 (_FILE_OFFSET_BITS): Likewise.
42400 * configure.ac: Added AC_SYS_LARGEFILE.
42401
42402 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42403
42404 * genmk.rb (PModule#rule): Make sure to get only symbol names
42405 from the output of nm.
42406 Reported by Robert Millan <rmh.grub@aybabtu.com>.
42407
42408 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42409
42410 I forgot to check in these changes for a long time. This adds
42411 incomplete support for VGA console, and this is still very
42412 buggy. Also, a lot of consideration is required for I18N,
42413 UNICODE, and VGA font issues. Therefore, assume that this is
42414 such that "better than nothing".
42415
42416 * font/manager.c: New file.
42417 * include/pupa/font.h: Likewise.
42418 * include/pupa/i386/pc/vga.h: Likewise.
42419 * term/i386/pc/vga.c: Likewise.
42420 * util/unifont2pff.rb: Likewise.
42421
42422 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
42423 (pkgdata_MODULES): Added vga.mod and font.mod.
42424 (vga_mod_SOURCES): New variables.
42425 (vga_mod_CFLAGS): Likewise.
42426 (font_mod_SOURCES): Likewise.
42427 (font_mod_CFLAGS): Likewise.
42428
42429 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
42430
42431 * include/pupa/term.h: Include pupa/err.h.
42432 (struct pupa_term): Added init and fini.
42433 Changed the argument of putchar to pupa_uint32_t.
42434
42435 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
42436 (pupa_console_real_putchar): New prototype.
42437 (pupa_console_putchar): Removed.
42438 (pupa_console_checkkey): Exported.
42439 (pupa_console_getkey): Likewise.
42440
42441 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
42442 characters.
42443
42444 * kern/term.c (pupa_term_set_current): Rewritten.
42445 (pupa_putchar): Likewise.
42446 (pupa_putcode): New function.
42447
42448 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
42449 (pupa_console_real_putchar): ... this.
42450 (pupa_vga_set_mode): New function.
42451 (pupa_vga_get_font): Likewise.
42452
42453 * normal/command.c: Include pupa/term.h.
42454 (terminal_command): New function.
42455 (pupa_command_init): Register the command "terminal".
42456
42457 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
42458 (DISP_UP): Likewise.
42459 (DISP_RIGHT): Likewise.
42460 (DISP_DOWN): Likewise.
42461 (DISP_HLINE): Likewise.
42462 (DISP_VLINE): Likewise.
42463 (DISP_UL): Likewise.
42464 (DISP_UR): Likewise.
42465 (DISP_LL): Likewise.
42466 (DISP_LR): Likewise.
42467
42468 * term/i386/pc/console.c (pupa_console_putchar): New function.
42469
42470 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
42471
42472 * util/resolve.c (pupa_util_resolve_dependencies): BUG
42473 FIX. Reverse the path_list.
42474
42475 * include/pupa/normal.h: Export pupa_register_command and
42476 pupa_unregister_command.
42477
42478 * hello/hello.c (pupa_cmd_hello): New module.
42479 * conf/i386-pc.rmk: Added hello.mod.
42480
42481 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
42482
42483 * kern/i386/pc/lzo1x.S: New file.
42484
42485 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
42486 (compress_kernel): New variable.
42487 (generate_image): Heavily modified to support compressing a
42488 large part of the core image.
42489
42490 * util/misc.c (pupa_util_read_image): Fix a file descriptor
42491 leak.
42492 (pupa_util_load_image): New function.
42493
42494 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
42495 (pupa_compressed_size): New variable.
42496 (codestart): Enable Gate A20 here.
42497 Decompress the compressed part of the core image.
42498 Rearrange the code to put functions and variables which are
42499 required for initialization in the non-compressed part.
42500 Include lzo1x.S.
42501
42502 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
42503 here.
42504
42505 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
42506
42507 * include/pupa/i386/pc/kernel.h
42508 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
42509 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
42510 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42511 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42512 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
42513
42514 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
42515
42516 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
42517 (Utility#rule): Likewise.
42518
42519 * configure.ac: Check if LZO is available.
42520
42521 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
42522
42523 * include/pupa/normal.h: New file.
42524 * include/pupa/setjmp.h: Likewise.
42525 * include/pupa/i386/setjmp.h: Likewise.
42526 * normal/cmdline.c: Likewise.
42527 * normal/command.c: Likewise.
42528 * normal/main.c: Likewise.
42529 * normal/menu.c: Likewise.
42530 * normal/i386/setjmp.S: Likewise.
42531
42532 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
42533 (pupa_rescue_cmd_initrd): Likewise.
42534
42535 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
42536 Likewise.
42537
42538 * kern/i386/pc/startup.S (translation_table): New variable.
42539 (translate_keycode): New function.
42540 (pupa_console_getkey): Call translate_keycode.
42541
42542 * kern/rescue.c (attempt_normal_mode): New function.
42543 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
42544 it failed, print a message.
42545
42546 * kern/mm.c (pupa_real_malloc): Print more information when a
42547 free magic is broken.
42548 (pupa_free): If the first free header is not free actually, set
42549 it to P.
42550
42551 * kern/main.c (pupa_load_normal_mode): Just load the module
42552 "normal".
42553 (pupa_main): Don't print the message
42554 "Entering into rescue mode..." here.
42555
42556 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
42557 Declared.
42558 (pupa_rescue_cmd_initrd): Likewise.
42559 (pupa_rescue_cmd_initrd): Likewise.
42560
42561 * include/pupa/symbol.h (FUNCTION): Specify the type.
42562 (VARIABLE): Likewise.
42563
42564 * include/pupa/err.h (pupa_err_t): Added
42565 PUPA_ERR_UNKNOWN_COMMAND.
42566
42567 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
42568 (pupa_dl_get_prefix): Likewise.
42569
42570 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
42571 Added _chain.mod and _linux.mod instead of chain.mod and
42572 linux.mod.
42573 (chain_mod_SOURCES): Renamed to ...
42574 (_chain_mod_SOURCES): ... this.
42575 (chain_mod_CFLAGS): Renamed to ...
42576 (_chain_mod_CFLAGS): ... this.
42577 (linux_mod_SOURCES): Renamed to ...
42578 (_linux_mod_SOURCES): ... this.
42579 (linux_mod_CFLAGS): Renamed to ...
42580 (_linux_mod_CFLAGS): ... this.
42581 (normal_mod_SOURCES): New variable.
42582 (normal_mod_CFLAGS): Likewise.
42583 (normal_mod_ASFLAGS): Likewise.
42584
42585 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
42586
42587 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
42588 possible.
42589
42590 * kern/dl.c (pupa_dl_ref): Refer depending modules
42591 recursively.
42592 (pupa_dl_unref): Unrefer depending modules recursively.
42593 Don't call pupa_dl_unload implicitly, because PUPA can crash if
42594 a module is unloaded before one depending on that module is
42595 unloaded.
42596 (pupa_dl_unload): Unload depending modules explicitly,
42597 if possible.
42598
42599 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
42600
42601 * include/pupa/i386/pc/linux.h: New file.
42602 * loader/i386/pc/linux.c: Likewise.
42603
42604 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
42605 Removed.
42606 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
42607 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
42608 of PUPA_CHAINLOADER_BOOT_SECTOR.
42609
42610 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
42611 (pupa_linux_prot_size): New variable.
42612 (pupa_linux_tmp_addr): Likewise.
42613 (pupa_linux_real_addr): Likewise.
42614 (pupa_linux_boot_zimage): New function.
42615 (pupa_linux_boot_bzimage): Likewise.
42616
42617 * kern/i386/pc/init.c (struct mem_region): New structure.
42618 (MAX_REGIONS): New macro.
42619 (mem_regions): New variable.
42620 (num_regions): Likewise.
42621 (pupa_os_area_addr): Likewise.
42622 (pupa_os_area_size): Likewise.
42623 (pupa_lower_mem): Likewise.
42624 (pupa_upper_mem): Likewise.
42625 (add_mem_region): New function.
42626 (compact_mem_regions): Likewise.
42627 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
42628 the size of the conventional memory and that of so-called upper
42629 memory (before the first memory hole).
42630 Instead of adding each found region to free memory, use
42631 add_mem_region and add them after removing overlaps.
42632 Also, add only 1/4 of the upper memory to free memory. The rest
42633 is used for loading OS images. Maybe this is ad hoc, but this
42634 makes it much easier to relocate OS images when booting.
42635
42636 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
42637 (pupa_enter_rescue_mode): Don't register initrd and module.
42638
42639 * kern/mm.c: Include pupa/dl.h.
42640
42641 * kern/main.c: Include pupa/file.h and pupa/device.h.
42642
42643 * kern/loader.c (pupa_loader_load_module_func): Removed.
42644 (pupa_loader_load_module): Likewise.
42645
42646 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
42647 ``.o''.
42648
42649 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
42650 (pupa_linux_tmp_addr): Likewise.
42651 (pupa_linux_real_addr): Likewise.
42652 (pupa_linux_boot_zimage): Likewise.
42653 (pupa_linux_boot_bzimage): Likewise.
42654
42655 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
42656 (pupa_upper_mem): Likewise.
42657 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
42658 module is too dangerous.
42659
42660 * include/pupa/loader.h (pupa_os_area_addr): Declared.
42661 (pupa_os_area_size): Likewise.
42662 (pupa_loader_set): Remove the first argument. Loader doesn't
42663 manage modules or initrd any longer.
42664 (pupa_loader_load_module): Removed.
42665
42666 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
42667 (linux_mod_SOURCES): New variable.
42668 (linux_mod_CFLAGS): Likewise.
42669
42670 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
42671
42672 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
42673 the length of a blocklist correctly.
42674
42675 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
42676 Use ioctl only if the OS file is a block device.
42677 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
42678 not very useful for normal files.
42679
42680 * kern/main.c (pupa_set_root_dev): New function.
42681 (pupa_load_normal_mode): Likewise.
42682 (pupa_main): Call those above.
42683
42684 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
42685 pupa_uint16_t.
42686
42687 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
42688
42689 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42690
42691 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
42692 (setup): Configure the installed partition information and the
42693 dl prefix.
42694
42695 * loader/i386/pc/chainloader.c (my_mod): New variable.
42696 (pupa_chainloader_unload): New function.
42697 (pupa_rescue_cmd_chainloader): Refer itself.
42698 (PUPA_MOD_INIT): Save its own module in MY_MOD.
42699
42700 * kern/i386/pc/startup.S (install_partition): Removed.
42701 (version_string): Likewise.
42702 (config_file): Likewise.
42703 (pupa_install_dos_part): New variable.
42704 (pupa_install_bsd_part): Likewise.
42705 (pupa_prefix): Likewise.
42706 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
42707
42708 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
42709 and pupa/misc.h.
42710 (make_install_device): New function.
42711 (pupa_machine_init): Set the dl prefix.
42712
42713 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
42714 (buf): Renamed to ...
42715 (linebuf): ... this.
42716 (pupa_rescue_cmd_prefix): New function.
42717 (pupa_rescue_cmd_insmod): Likewise.
42718 (pupa_rescue_cmd_rmmod): Likewise.
42719 (pupa_rescue_cmd_lsmod): Likewise.
42720 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
42721 rmmod and lsmod.
42722
42723 * kern/mm.c (pupa_memalign): If failed even after invalidating
42724 disk caches, unload unneeded modules and retry.
42725
42726 * kern/misc.c (pupa_memmove): New function.
42727 (pupa_memcpy): Removed.
42728 (pupa_strcpy): New function.
42729 (pupa_itoa): Made static.
42730
42731 * kern/dl.c (pupa_dl_iterate): New function.
42732 (pupa_dl_ref): Likewise.
42733 (pupa_dl_unref): Likewise.
42734 (pupa_dl_unload): Return if succeeded or not.
42735 (pupa_dl_unload_unneeded): New function.
42736 (pupa_dl_unload_all): Likewise.
42737 (pupa_dl_init): Renamed to ...
42738 (pupa_dl_set_prefix): ... this.
42739 (pupa_dl_get_prefix): New function.
42740
42741 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
42742 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
42743 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42744 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42745 (pupa_install_dos_part): Declared.
42746 (pupa_install_bsd_part): Likewise.
42747 (pupa_prefix): Likewise.
42748 (pupa_boot_drive): Likewise.
42749
42750 * include/pupa/types.h: Fix a typo.
42751
42752 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
42753 pupa_memmove.
42754 (pupa_memmove): Declared.
42755 (pupa_strcpy): Likewise.
42756
42757 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
42758 pupa_mod_init takes one argument, its own module.
42759 (pupa_dl_unload_unneeded): Declared.
42760 (pupa_dl_unload_all): Likewise.
42761 (pupa_dl_ref): Likewise.
42762 (pupa_dl_unref): Likewise.
42763 (pupa_dl_iterate): Likewise.
42764 (pupa_dl_init): Renamed to ...
42765 (pupa_dl_set_prefix): ... this.
42766 (pupa_dl_get_prefix): Declared.
42767
42768 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
42769 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
42770 unloaded.
42771 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
42772 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
42773
42774 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
42775 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
42776
42777 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42778
42779 * util/i386/pc/pupa-setup.c (setup): Define the internal
42780 function find_first_partition_start at the top level, because GCC
42781 3.0.x cannot compile internal functions in deeper scopes
42782 correctly.
42783 (find_root_device): Use lstat instead of stat.
42784 Don't follow symbolic links.
42785 Fix the path-constructing code.
42786
42787 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
42788 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
42789 by a BLKGETSIZE ioctl first, because block devices don't fill
42790 the member st_mode of the structure stat on Linux.
42791 [__linux__] (linux_find_partition): Use a temporary buffer
42792 REAL_DEV for the working space. Copy it to DEV before returning.
42793 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
42794 buffer cache consistent.
42795 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
42796 strncmp. The previous value was merely wrong.
42797 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
42798
42799 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
42800 FAT size is 12. The previous value was merely wrong.
42801
42802 * kern/main.c (pupa_main): Don't split the starting message from
42803 newlines.
42804
42805 * kern/term.c (pupa_putchar): Put CR after LF instead of before
42806 LF, because BIOS goes crazy about character attributes in this
42807 case.
42808
42809 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42810
42811 * include/i386/pc/util/biosdisk.h: New file.
42812 * util/i386/pc/biosdisk.c: Likewise.
42813 * util/i386/pc/pupa-setup.c: Likewise.
42814
42815 * Makefile.in (INCLUDE_DISTFILES): Added
42816 include/pupa/i386/pc/util/biosdisk.h.
42817 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
42818 directory util/i386/pc.
42819 (install-local): Added a rule for sbin_UTILITIES.
42820 (uninstall): Likewise.
42821
42822 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
42823
42824 * util/misc.c (xrealloc): New function.
42825 (pupa_malloc): Likewise.
42826 (pupa_free): Likewise.
42827 (pupa_realloc): Likewise.
42828 (pupa_stop): Likewise.
42829 (pupa_putchar): Likewise.
42830
42831 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
42832
42833 * include/pupa/util/misc.h (xrealloc): Declared.
42834
42835 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
42836 macro.
42837 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
42838 (PUPA_BOOT_MACHINE_BPB_END): ... this.
42839
42840 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
42841 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42842
42843 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
42844 way should be implemented.
42845 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42846
42847 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
42848 the size of NAME for safety.
42849 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
42850 0x88.
42851
42852 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
42853 (pupa_setup_SOURCES): Likewise.
42854
42855 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
42856
42857 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42858
42859 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
42860 bunch of pushl's from pusha, because this destroys the return
42861 value.
42862
42863 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42864
42865 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
42866 This means that any missing prototypes could be fatal. Also, you
42867 must take care when writing assembly code. See the comments at
42868 the beginning of startup.S, for more details.
42869
42870 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
42871 compilation mechanism.
42872 (pupa_chainloader_real_boot): Likewise.
42873 (pupa_biosdisk_rw_int13_extensions): Likewise.
42874 (pupa_biosdisk_rw_standard): Likewise.
42875 (pupa_biosdisk_check_int13_extensions): Likewise.
42876 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
42877 (pupa_biosdisk_get_diskinfo_standard): Likewise.
42878 (pupa_get_memsize): Likewise.
42879 (pupa_get_mmap_entry): Likewise.
42880 (pupa_console_putchar): Likewise.
42881 (pupa_console_setcursor): Likewise.
42882 (pupa_getrtsecs): Use pushl instead of push.
42883
42884 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
42885 memory instead of the stack for a mmap entry, because some
42886 BIOSes may ignore the maximum size and overflow.
42887
42888 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
42889
42890 * genmk.rb (PModule#rule): Compile automatically generated
42891 sources with module-specific CFLAGS as well as other sources.
42892
42893 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42894
42895 * configure.ac: Check ld.
42896 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
42897 respectively, before checking endianness and sizes.
42898
42899 * Makefile.in (LD): New variable.
42900
42901 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42902
42903 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
42904
42905 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42906
42907 * Changelog: New file.
42908