]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Remove grub_{modname}_init and grub_{modname}_fini. They should never
[grub2.git] / ChangeLog
1 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Remove grub_{modname}_init and grub_{modname}_fini. They should never
4 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5 be used on non-modules.
6
7 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
8 Rename to grub_boot_init.
9 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
10 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
11 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
13 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
14 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
15 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
16 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
17 includes.
18 (grub_machine_init): Remove empty inits.
19 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
20 includes.
21 (grub_machine_init): Remove empty inits.
22 * grub-core/term/arc/console.c: Remove explicit proto.
23 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
24 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
25 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
26 grub_at_keyboard_fini.
27 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
28 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
29 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
30 grub_gfxterm_fini.
31 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
32 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
33 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
34 grub_vgatext_fini.
35 * grub-core/term/ieee1275/console.c: Remove explicit proto.
36 * grub-core/term/serial.c (GRUB_MOD_INIT)
37 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
38 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
39 grub_serial_fini.
40 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
41 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
42 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
43 grub_terminfo_fini.
44 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
45 (GRUB_MOD_FINI): Likewise.
46 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
47 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
48 (GRUB_MOD_FINI) [LOONGSON]: Rename to
49 grub_video_radeon_fuloong2e_fini.
50 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
51 [LOONGSON]: Rename to grub_video_sis315pro_init.
52 (GRUB_MOD_FINI) [LOONGSON]: Rename to
53 grub_video_sis315pro_fini.
54 * grub-core/video/sm712.c (GRUB_MOD_INIT)
55 [LOONGSON]: Rename to grub_video_sm712_init.
56 (GRUB_MOD_FINI) [LOONGSON]: Rename to
57 grub_video_sm712_fini.
58 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
59 (grub_at_keyboard_fini): Likewise.
60 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
61 Don't declare grub_{modname}_init.
62 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
63 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
64 New proto.
65 (grub_keylayouts_fini) [!EMU]: Likewise.
66 * include/grub/serial.h (grub_serial_init) [!EMU]:
67 New proto.
68 (grub_serial_fini) [!EMU]: Likewise.
69 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
70 New proto.
71 (grub_terminfo_fini) [!EMU]: Likewise.
72 * include/grub/video.h (grub_font_init) [!EMU]:
73 New proto.
74 (grub_font_fini) [!EMU]: Likewise.
75 (grub_gfxterm_init) [!EMU]: Likewise.
76 (grub_gfxterm_fini) [!EMU]: Likewise.
77 (grub_video_sm712_init) [!EMU]: Likewise.
78 (grub_video_sm712_fini) [!EMU]: Likewise.
79 (grub_video_sis315pro_init) [!EMU]: Likewise.
80 (grub_video_sis315pro_fini) [!EMU]: Likewise.
81 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
82 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
83
84 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
85
86 Make nand a prefix for nand devices.
87
88 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
89
90 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
91
92 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
93 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
94
95 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * include/grub/env.h (grub_env_find): Remove prototype.
98 * grub-core/kern/env.c (grub_env_find): Make static.
99 (grub_env_set): Remove useless set.
100
101 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * grub-core/kern/i386/realmode.S: Remove useless align.
104
105 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * include/grub/dl.h (grub_dl_load_file): Don't export.
108
109 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
110
111 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
112 grub_dprintf.
113
114 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
115
116 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
117 grub_errors.
118 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
119 not reloading whole superblock but only the part which is really needed.
120 Remove useless grub_errors.
121 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
122 grub_errors.
123
124 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
125
126 Don't export grub_get_rtc.
127
128 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
129 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
130
131 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
132
133 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
134
135 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
136
137 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
138 argument since it can be deduced from diskfilter. All users updated.
139
140 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
141
142 Remove prio_list.
143
144 * include/grub/list.h (grub_prio_list): Removed.
145 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
146 GRUB_COMMAND_PRIO_MASK.
147 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
148 GRUB_COMMAND_FLAG_ACTIVE.
149 (grub_prio_list_insert): Removed.
150 (grub_prio_list_remove): Likewise.
151 (GRUB_AS_PRIO_LIST): Likewise.
152 (GRUB_AS_PRIO_LIST_P): Likewise.
153 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
154 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
155 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
156 * grub-core/kern/command.c (grub_register_command_prio): Inline
157 the prio_list code.
158 (grub_unregister_command): Likewise.
159
160 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
161
162 Fix interrupt mixup from previous commit.
163
164 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
165 (grub_realidt): New var.
166 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
167 Load idt.
168 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
169 New declaration.
170 (grub_relocator16_boot): Set grub_relocator16_idt.
171 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
172 (LOCAL(realidt)): ... this.
173 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
174 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
175 (grub_realidt): New variable.
176
177 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
178
179 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
180 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
181 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
182 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
183 Gettextize.
184 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
185 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
186 * po/POTFILES.in: Regenerate.
187
188 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
189
190 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
191 errors.
192
193 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
194
195 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
196 \0.
197 (add_length): Likewise.
198
199 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
200 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
201
202 GDB serial and backtrace support.
203
204 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
205 (prot_to_real): Likewise.
206 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
207 * grub-core/Makefile.core.def (backtrace): New module.
208 (gdb): Likewise.
209 * grub-core/gdb/cstub.c: New file.
210 * grub-core/gdb/gdb.c: Likewise.
211 * grub-core/gdb/i386/idt.c: Likewise.
212 * grub-core/gdb/i386/machdep.S: Likewise.
213 * grub-core/gdb/i386/signal.c: Likewise.
214 * grub-core/lib/i386/backtrace.c: Likewise.
215 * grub-core/lib/backtrace.c: Likewise.
216 * include/grub/backtrace.h: Likewise.
217 * include/grub/gdb.h: Likewise.
218 * include/grub/i386/gdb.h: Likewise.
219
220 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
221
222 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
223 New function.
224 (add_length): Likewise.
225 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
226 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
227 proto.
228 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
229 __argp_get_display_len.
230
231 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
232
233 $"..." support in scripts.
234
235 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
236 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
237 * grub-core/script/yylex.l: Likewise.
238 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
239 value.
240
241 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
242
243 * gentpl.py: Remove obsolete pkglib_DATA handling.
244
245 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
246
247 Don't transform PACKAGE_TARNAME following a discussion on autoconf
248 mailing list.
249
250 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
251 * util/grub-kbdcomp.in: Likewise.
252 * util/grub-mkconfig.in: Likewise.
253 * util/grub-mkconfig_lib.in: Likewise.
254 * util/grub-mknetdir.in: Likewise.
255 * util/grub-mkrescue.in: Likewise.
256 * util/grub-mkstandalone.in: Likewise.
257 * util/grub-reboot.in: Likewise.
258 * util/grub-set-default.in: Likewise.
259 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
260
261 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
262
263 Remove GRUB_PREFIX.
264
265 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
266 * util/grub.d/00_header.in: Compute prefix in the only place it's still
267 used for backward compatibility.
268
269 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
270
271 Add new all_video module.
272
273 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
274 * grub-core/Makefile.core.def (all_video): New module.
275 * grub-core/genmoddep.awk: Generate dependency of all_video from
276 video.lst.
277 * grub-core/lib/fake_module.c: New file.
278 * grub-core/normal/main.c (features): Add feature_all_video_module.
279 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
280 don't do explicit search again.
281 insmod all_video in load_video if available.
282
283 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
284
285 Another round of string clarification and adding TRANSLATORS comments.
286
287 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
288
289 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
290
291 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
292
293 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
294 to grub_ssize_t.
295 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
296 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
297
298 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
299
300 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
301 trailing newline implicitly. All users updated.
302
303 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
304
305 Implement serial on IEEE1275 and EFI.
306
307 * docs/grub.texi (Platform-specific limitations): Fix the columen video
308 on emu. Mention arc and emu as the only platforms without serial
309 support.
310 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
311 ieee1275 platforms.
312 * grub-core/term/efi/serial.c: New file.
313 * grub-core/term/ieee1275/serial.c: Likewise.
314 * grub-core/term/serial.c (grub_serial_find): Disable direct port
315 specification if no ns8250 driver is available.
316 (grub_cmd_serial): Likewise.
317 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
318 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
319 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
320 (grub_efi_parity_type_t): New type.
321 (grub_efi_stop_bits_t): Likewise.
322 (grub_efi_serial_io_interface): New struct.
323 * include/grub/serial.h (grub_serial_port): Make 'broken' field
324 available for all interfaces.
325 Add EFI and IEEE1275 fields.
326 (grub_ofserial_init): New proto.
327 (grub_efiserial_init): Likeiwse.
328 * util/grub.d/00_header.in: Don't check for the presence of serial
329 module.
330
331 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
334 name as if it was an alias.
335
336 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * grub-core/commands/lsacpi.c (options): Fix typo.
339
340 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
341
342 Convert grub-emu to argp.
343
344 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
345 emu.
346 * util/argp_common.c: Rename to ...
347 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
348 Add missing includes.
349 * grub-core/kern/emu/main.c: Convert to argp.
350 * po/POTFILES.in: Regenerate.
351 * util/grub-install.in (usage): Make first letter lowcase in messages
352 for uniformity.
353 * util/grub-setup.c (options): Likewise.
354
355 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
356
357 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
358 Put back accidently commented-out code.
359
360 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
363 loop check using Brent algorithm.
364 (grub_hfsplus_btree_search): Likewise.
365
366 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * util/grub-install.in: Fix usage of wrong device for PreP install.
369
370 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * conf/Makefile.common (CFLAGS_GNULIB): Add
373 -Wno-unsafe-loop-optimizations.
374 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
375 on tools.
376 * grub-core/commands/legacycfg.c: Add pragma to skip
377 -Wunsafe-loop-optimizations.
378 (check_password_md5_real): Fix loop counter type.
379 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
380 reading.
381 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
382 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
383 loop condition.
384 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
385 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
386 * grub-core/net/net.c (grub_net_route_address): Add safety loop
387 condition.
388 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
389 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
390 avoid possible infinite loops.
391 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
392 and -Wunsafe-loop-optimizations.
393 * grub-core/script/yylex.l: Likewise.
394 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
395 (print_glyphs): Avoid infinite loops.
396 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
397
398 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
399
400 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
401 to avoid infinite loop.
402 (disp_acpi_rsdt_table): Likewise.
403
404 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
405
406 * grub-core/font/font.c (grub_font_load): Add support for default
407 path for fonts ($prefix/fonts).
408 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
409 for checking if string is a path.
410 * grub-core/normal/main.c (features): Add feature_default_font_path.
411 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
412 * util/grub.d/00_header.in: Use default directory if possible.
413 * util/grub-install.in: Install unicode.pf2.
414
415 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
418 * po/Rules-swiss: New file.
419 * po/swiss.sed: Likewise.
420
421 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * grub-core/fs/btrfs.c (find_device): Fix typos.
424 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
425 * util/grub-mkrelpath.c (argp_parser): Likewise.
426 Reported by: Yuri Chornoivan.
427
428 2012-02-23 Dalet Omega <daletomega@gmail.com>
429
430 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
431 for usual informative messages.
432
433 2012-02-23 Dalet Omega <daletomega@gmail.com>
434
435 Starfield theme.
436
437 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
438 * conf/Makefile.common: Define starfielddir.
439 * configure.ac: Configure starfield.
440 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
441 * themes/starfield/README: Likewise.
442 * themes/starfield/blob_w.png: Likewise.
443 * themes/starfield/boot_menu_c.png: Likewise.
444 * themes/starfield/boot_menu_e.png: Likewise.
445 * themes/starfield/boot_menu_n.png: Likewise.
446 * themes/starfield/boot_menu_ne.png: Likewise.
447 * themes/starfield/boot_menu_nw.png: Likewise.
448 * themes/starfield/boot_menu_s.png: Likewise.
449 * themes/starfield/boot_menu_se.png: Likewise.
450 * themes/starfield/boot_menu_sw.png: Likewise.
451 * themes/starfield/boot_menu_w.png: Likewise.
452 * themes/starfield/slider_c.png: Likewise.
453 * themes/starfield/slider_n.png: Likewise.
454 * themes/starfield/slider_s.png: Likewise.
455 * themes/starfield/src/blob_nw.xcf: Likewise.
456 * themes/starfield/src/bootmenu/: Likewise.
457 * themes/starfield/src/bootmenu/center.xcf: Likewise.
458 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
459 * themes/starfield/src/bootmenu/side.xcf: Likewise.
460 * themes/starfield/src/slider_c.xcf: Likewise.
461 * themes/starfield/src/slider_n.xcf: Likewise.
462 * themes/starfield/src/slider_s.xcf: Likewise.
463 * themes/starfield/src/terminalbox/: Likewise.
464 * themes/starfield/src/terminalbox/center.xcf: Likewise.
465 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
466 * themes/starfield/src/terminalbox/side.xcf: Likewise.
467 * themes/starfield/starfield.png: Likewise.
468 * themes/starfield/terminal_box_c.png: Likewise.
469 * themes/starfield/terminal_box_e.png: Likewise.
470 * themes/starfield/terminal_box_n.png: Likewise.
471 * themes/starfield/terminal_box_ne.png: Likewise.
472 * themes/starfield/terminal_box_nw.png: Likewise.
473 * themes/starfield/terminal_box_s.png: Likewise.
474 * themes/starfield/terminal_box_se.png: Likewise.
475 * themes/starfield/terminal_box_sw.png: Likewise.
476 * themes/starfield/terminal_box_w.png: Likewise.
477 * themes/starfield/theme.txt: Likewise.
478
479 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
480
481 * util/grub.d/00_header.in: Add missing export theme.
482
483 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
486 already included.
487 Reported by: Eren D.
488
489 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * conf/Makefile.common (grubdatadir): Removed.
492 (Makefile.am): Move eveything grubdata to pkgdata.
493
494 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
495
496 * grub-core/commands/acpihalt.c (get_sleep_type):
497 Remove unused variable.
498
499 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
500
501 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
502 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
503 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
504 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
505 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
506 i18n with gettext no-op.
507 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
508 GRUB_ACPI_OPCODE_STRING_CONST.
509 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
510 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
511
512 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
513
514 * po/POTFILES.in: Regenerate.
515
516 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
517
518 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
519 -Wno-error=missing-noreturn.
520
521 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
522
523 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
524 condition to avoid possibly infinite loops.
525 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
526 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
527
528 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
531 condition to avoid possibly infinite loops.
532
533 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
534
535 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
536 on show_error.
537
538 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
541
542 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
543
544 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
545
546 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
547
548 * util/bin2h.c (usage): Add missing attribute noreturn.
549
550 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
551
552 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
553 if the size isn't divisible by 512.
554
555 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
556
557 Make list_push and list_remove functions rather than inline functions
558 to decrease size and avoid aliasing violations.
559
560 * include/grub/list.h (grub_list_push): Move to ...
561 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
562 * include/grub/list.h (grub_list_remove): Move to ...
563 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
564
565 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
566
567 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
568 and -Wunused-result.
569
570 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
571
572 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
573 Reported by: Seth Goldberg
574
575 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
576
577 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
578
579 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
580
581 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
582 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
583 command line.
584 * docs/grub.texi (Simple configuration): Document
585 GRUB_CMDLINE_GNUMACH.
586
587 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * conf/Makefile.common (platform_SCRIPTS): New variable.
590 (platform_PROGRAMS): Likewise.
591 * gentpl.py: Mark *,module and *.image for install.
592 * grub-core/gdb_grub.in: Add a notice of expected environment.
593 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
594 (gmodule.pl): Likewise.
595
596 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
597
598 Replace grub_checkkey with grub_getkey_noblock.
599
600 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
601 (grub_getkey_noblock): ... this. All users updated.
602
603 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
604
605 * grub-core/kern/emu/console.c: Move to ...
606 * grub-core/term/emu/console.c: ...here.
607 (grub_ncurses_getkey): Fix return value if no key is detected.
608
609 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
612 (grub_unit_test_fini): Likewise.
613 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
614
615 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * include/grub/test.h (GRUB_UNIT_TEST)
618
619 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
620
621 * grub-core/script/execute.c (grub_script_break): Clarify logic.
622 Better error handling.
623 (grub_script_return): Likewise.
624 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
625
626 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
629 rimplicit redifinition.
630
631 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
634 GRUB.
635
636 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
639 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
640 prompt here.
641
642 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
645 as GRUB_ERR_BUG. Don't malloc if no device is available.
646
647 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
648
649 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
650 Mark calling with invalid term as GRUB_ERR_BUG.
651
652 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
655 packets rather than raising an error.
656
657 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
658
659 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
660 in if.
661
662 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
663
664 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
665 diagnostic to dprintf.
666 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
667
668 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
669
670 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
671 device name.
672
673 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
674
675 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
676 (grub_ntfs_iterate_dir): Likewise.
677
678 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
679
680 Efiemu stylistic fixes and gettext.
681
682 * grub-core/efiemu/i386/loadcore32.c
683 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
684 * grub-core/efiemu/i386/loadcore64.c
685 (grub_arch_efiemu_relocate_symbols64): Likewise.
686 * grub-core/efiemu/i386/pc/cfgtables.c
687 (grub_machine_efiemu_init_tables): Likewise.
688 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
689 (grub_efiemu_loadcore_initXX): Add a filename argument.
690 All users updated.
691 Improved error message.
692 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
693 Add a filename argument.
694 All users updated.
695 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
696 Reclassify double relocation as GRUB_ERR_BUG.
697
698 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
701 handling.
702
703 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
706 on partition.
707
708 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
711
712 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
713
714 Improve string. Gettextize.
715
716 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
717
718 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
719 utils.
720 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
721
722 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
723
724 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
725 [GRUB_UTIL]: New function.
726 (insert_array) [GRUB_UTIL]: Store partmaps.
727 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
728 partmaps.
729 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
730 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
731 (probe_abstraction): Print diskfilter and not raid.
732 Reported by: Lennart Sorensen
733
734 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
735
736 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
737 * util/grub-mkimagexx.c (MASK3): New define.
738 (add_value_to_slot_20b): Use MASK3.
739 (add_value_to_slot_21): Likewise.
740 (relocate_addresses): Fix format specification.
741 (load_image): Explicitly init symtab_section.
742
743 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
744
745 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
746 (grub_util_biosdisk_get_grub_dev): Fix format specification.
747
748 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
751 on powerpc.
752 Reported by: Lennart Sorensen
753
754 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
755
756 * gentpl.py: Add missing license header.
757 * docs/grub.texi: Update copyright year.
758
759 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
760
761 Source grub-mkconfig_lib from the build directory at build time.
762 Suggested by: Vladimir Serbinenko.
763
764 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
765 * util/grub-install.in: Define pkgdatadir if not already set, and source
766 grub-mkconfig_lib from there.
767 * util/grub-kbdcomp.in: Likewise.
768 * util/grub-mkconfig.in: Likewise.
769 * util/grub-mknetdir.in: Likewise.
770 * util/grub-mkrescue.in: Likewise.
771 * util/grub-mkstandalone.in: Likewise.
772 * util/grub-reboot.in: Likewise.
773 * util/grub-set-default.in: Likewise.
774 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
775
776 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
777
778 Increase warning level.
779
780 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
781 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
782 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
783 (TARGET_CFLAGS): Likewise.
784 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
785 * grub-core/Makefile.core.def (decompressor_xz): Add
786 -Wno-unreachable-code.
787 (normal): Add -Wno-redundant-decls.
788 (xzio): Add -Wno-unreachable-code.
789 (lzopio): Add -Wno-redundant-decls -Wno-error.
790 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
791 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
792 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
793 * grub-core/kern/dl.c: Add exception to -Wcast-align.
794 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
795 * grub-core/kern/i386/coreboot/init.c: Add exception to
796 -Wsuggest-attribute=noreturn.
797 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
798 * grub-core/kern/ia64/dl_helper.c: Likewise.
799 * grub-core/kern/mips/dl.c: Likewise.
800 * grub-core/kern/sparc64/dl.c: Likewise.
801 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
802 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
803 (memcmp): Likewise.
804 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
805 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
806 * grub-core/loader/mips/linux.c: Likewise.
807 * grub-core/loader/multiboot_elfxx.c: Likewise.
808 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
809 * grub-core/video/sm712.c: Add exception to -Wcast-align.
810 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
811 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
812 fixme.
813 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
814 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
815 Fix prototype.
816
817 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
820 address.
821
822 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
825 Avoid improper use of strings.
826 (grub_cmd_legacy_initrdnounzip): Likewise.
827
828 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
829
830 * include/grub/emu/misc.h (grub_util_warn): Add missing format
831 attribute.
832 (grub_util_info): Likewise.
833 (grub_util_error): Likewise.
834
835 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
836
837 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
838 * util/grub-fstest.c (fstest): Likewise.
839
840 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
841
842 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
843 (grub_md_sha512_real): Likewise.
844 (grub_util_get_geli_uuid): Likewise.
845 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
846 (grub_util_biosdisk_open): Fix format specification.
847 Respect format security.
848 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
849 (xrealloc): Likewise.
850 (xasprintf): Likewise.
851
852 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
853
854 * util/import_gcry.py: Include grub/crypto.h in init.c.
855
856 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
859 (generate_image): Make prefix a const char *.
860 Fix format specifications. Respect format security.
861 Avoid void * arithmetics.
862 Avoid shadowing.
863 (argp_parser): Remove unused variable. Respect format security.
864 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
865 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
866 (count_funcs): Remove unused variable.
867 (relocate_addresses): Fix format specification.
868 Disable x86-64 with elf32. Remove unused variables.
869 (add_fixup_entry): Avoid shadowing.
870 (make_reloc_section): Fix format specification.
871 Use assert.
872 (locate_sections): Fix format specifications.
873 (load_image): Avoid shadowing.
874
875 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
878 Fix format specifications. Respect format security.
879 Don't translate already translated grub_errmsg.
880 (argp_parser): Remove unused variable
881
882 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
883
884 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
885
886 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
887
888 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
889 (main): Likewise. Use xmalloc. Respect format security.
890
891 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
894 a const char *.
895 (argp_parser): Remove unused variable.
896
897 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
900 (add_pixel): Make static.
901 (add_font): Likewise.
902 (write_string_section): Make name and str a const char *.
903 (write_be16_section): Make name a const char *.
904 (print_glyphs): Make static.
905 (write_font_ascii_bitmap): Likewise.
906 (write_font_width_spec): Likewise.
907 (write_font_pf2): Likewise.
908 (argp_parser): Remove unused variable.
909 Respect format security.
910 (main): Avoid shadowing. Respect format security.
911
912 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
913
914 * util/grub-editenv.c (argp_parser): Make static.
915 (create_envblk_file): Use xmalloc.
916 (open_envblk_file): Likewise.
917 Resepect format security.
918 (set_variables): Respect format security.
919
920 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
921
922 * util/getroot.c (grub_find_device): Respect format security.
923 (get_mdadm_uuid): Remove unused variable.
924 (grub_util_pull_device): Dont call gettext on already translated
925 grub_errmsg.
926 (find_system_device): Remove unused variable.
927 (grub_util_get_grub_dev): Likewise.
928 (grub_make_system_path_relative_to_its_root): Respect format security.
929
930 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * util/grub-fstest.c (execute_command): Make first argument
933 a const char *.
934 (read_file): Avoid shadowing.
935 Reuse underlying error message if device open fails.
936 (cmd_cmp): Respect format security.
937 (root): Make const char *.
938 (fstest): Remove args argument and use global copy.
939 Respect format security.
940 (argp_parser): Make static.
941 (main): Make default_root const char *.
942
943 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
944
945 * util/grub-mount.c (root): Make const char *.
946 (execute_command): Make first argument a const char *.
947 (fuse_init): Respect format security.
948 (argp_parser): Make static. Remove unused variable.
949 (main): Make default_root a const char *.
950 Respect format security.
951
952 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
953
954 * util/grub-probe.c (probe): Don't call gettext on already translated
955 grub_errmsg.
956 Remove unused variables.
957 (argp_parser): Remove unused variable.
958
959 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
960
961 * util/grub-script-check.c (argp_parser): Remove unused variable.
962 (main): Rename read to curread to avoid shadowing.
963
964 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * util/misc.c (grub_util_write_image_at): Fix format specification.
967 (grub_util_write_image): Likewise.
968 (grub_script_execute_argument_to_string): Removed (unused).
969 (grub_script_execute_menuentry): Likewise.
970 (grub_putchar): Likewise.
971
972 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
975 (FUNCTION) [GRUB_UTIL]: Likewise.
976 (VARIABLE) [GRUB_UTIL]: Likewise.
977
978 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
979
980 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
981 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
982
983 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
984
985 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
986 buffer.
987
988 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
991 (LzmaEnc_SaveState): Removed (unused).
992 (LzmaEnc_RestoreState): Likewise.
993 (LzmaEnc_InitPriceTables): Made static.
994 (LzmaEnc_Construct): Likewise.
995 (LzmaEnc_FreeLits): Likewise.
996 (LzmaEnc_Destruct): Likewise.
997 (LzmaEnc_Init): Likewise.
998 (LzmaEnc_InitPrices): Likewise.
999 (LzmaEnc_Finish): Likewise.
1000 (LzmaEnc_PrepareForLzma2): Removed (unused).
1001 (LzmaEnc_MemPrepare): Likewise.
1002 (LzmaEnc_GetNumAvailableBytes): Likewise.
1003 (LzmaEnc_GetCurBuf): Likewise.
1004 (LzmaEnc_CodeOneMemBlock): Likewise.
1005
1006 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1007
1008 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
1009 (grub_util_ldm_embed): Likewise.
1010
1011 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * util/grub-editenv.c (print_var): Rename name to varname to
1014 avoid shadowing.
1015 (main): Rename index to curindex to avoid shadowing.
1016 Make filename a const char *.
1017
1018 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1021 to arg_getline to avoid shadowing.
1022
1023 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
1026 disk_ to avoid shadowing.
1027
1028 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
1031 curindex to avoid shadowing.
1032 Make static.
1033 (MatchFinder_GetNumAvailableBytes): Make static.
1034
1035 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
1038 avoid shadowing.
1039
1040 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
1043 argument from encrypt to do_encrypt to avoid shadowing.
1044
1045 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
1048 incorrect nesting of #if's.
1049
1050 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
1053 checks which are always false on some platforms.
1054 (grub_cmd_lsacpi): Likewise.
1055 * grub-core/kern/misc.c (grub_strtoul): Likewise.
1056 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
1057 Likewise.
1058
1059 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
1062 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
1063
1064 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
1067 re_dfa_t to avoid breaking alignment invariants.
1068 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
1069 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
1070
1071 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
1074 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
1075
1076 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
1079 Fix declaration.
1080
1081 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1082
1083 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
1084 conserve alignment invariants.
1085 (grub_ehci_ehcc_read16): Likewise.
1086 (grub_ehci_oper_read32): Likewise.
1087 (grub_ehci_oper_write32): Likewise.
1088 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1089 Conserve alignment invariants.
1090
1091 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1092
1093 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
1094 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
1095 declarations.
1096
1097 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1098
1099 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
1100 Remove unused variable.
1101
1102 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
1105 Remove set in if.
1106
1107 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * include/grub/net.h: Remove double declarations.
1110
1111 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 Remove "payload" command in ia64 Linux loader since I couldn't
1114 find any evidence of it being used for anything.
1115 Replace "relocate" command with an environment variable
1116
1117 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
1118 fields.
1119 (ia64_boot_payload): Removed.
1120 (last_payload): Likewise.
1121 (RELOCATE_OFF): Likewise.
1122 (RELOCATE_ON): Likewise.
1123 (RELOCATE_FORCE): Likewise.
1124 (relocate): Likewise.
1125 (free_pages): Don't free payloads.
1126 (grub_load_elf64): Use common error messages.
1127 Use "linux_relocate" variable.
1128 Increase the space after boot_params.
1129 (grub_cmd_payload): Removed.
1130 (grub_cmd_relocate): Likewise.
1131 (grub_cmd_fpswa): Improve messages.
1132 (cmd_payload): Removed.
1133 (cmd_relocate): Likewise.
1134 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
1135 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
1136
1137 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1138
1139 Convert UHCI to DMA framework.
1140
1141 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
1142 (grub_uhci_pci_iter): Fill new members
1143 (grub_alloc_td): Use P2V and V2P functions.
1144 (grub_free_queue): Likewise.
1145 (grub_alloc_qh): Likewise.
1146 (grub_uhci_setup_transfer): Likewise.
1147 (grub_uhci_check_transfer): Likewise.
1148
1149 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
1152 Remove assignment in if while on it.
1153
1154 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 * util/grub-mkstandalone.in: Fix modules directory.
1157
1158 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
1161 on i386-pc target.
1162 (argp_parser): Accept "auto" as compression specification.
1163
1164 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 Fix `help' with unloaded modules.
1167
1168 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
1169 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
1170 (grub_dyncmd_dispatcher): Small stylistic fix.
1171 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
1172 explicit help is requested.
1173
1174 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1175
1176 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
1177 Explicitly init restart while on it.
1178
1179 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
1182 uninited variable.
1183
1184 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 * util/grub-mknetdir.in: Use . rather than source for POSIX
1187 compatibility.
1188
1189 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
1192
1193 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
1196 variable.
1197
1198 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
1201 without quotes.
1202
1203 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
1206
1207 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
1210 iteration of partitions.
1211
1212 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 Improve gettext support. Stylistic fixes and error handling fixes while
1215 on it.
1216
1217 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
1220 part. Instead setup the correct stack in RM.
1221 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
1222 for stack.
1223 * include/grub/i386/relocator_private.h: New file.
1224
1225 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1226
1227 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
1228 argument.
1229 * util/grub-fstest.c (options): Add missing DEVICE part.
1230
1231 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1232
1233 Clarify and unify messages.
1234
1235 * grub-core/commands/hashsum.c (options): Unify messages.
1236 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
1237 literal-only message as translatable.
1238 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
1239 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
1240 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
1241 commands.
1242 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
1243 key, not the key used to unlock. Clarify what it's used for.
1244 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
1245 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
1246 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
1247 * util/grub-editenv.c (options): Unify "verbose" message.
1248 * util/grub-fstest.c (read_file): Unify error message.
1249 (fstest): Add quotes around commands.
1250 (options): Unify "verbose" message.
1251 * util/grub-install.in: Add quotes around variable name.
1252 * util/grub-kbdcomp.in: Unify error message.
1253 * util/grub-mkfont.c (main): Likewise.
1254 * util/grub-mkrescue.in: Likewise.
1255 * util/grub-mklayout.c (options): Unify "verbose" message.
1256 * util/grub-mkstandalone.in: Unify help and verbose messages.
1257 * util/grub-mount.c (options): Unify "verbose" message.
1258 * util/grub-probe.c (options): Likewise.
1259 * util/grub-script-check.c (options): Likewise.
1260 * util/grub-setup.c (setup): Unify no-terminator message.
1261 (options): Use DEVICE and not DEV.
1262 Unify "verbose" message.
1263 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
1264
1265 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 Improve and unify messages.
1268
1269 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
1270 name. All users updated.
1271 Print filename in error.
1272 (read_device_map): Print filename in error.
1273 * util/getroot.c (grub_guess_root_devices): Print filename in error.
1274 (grub_util_get_os_disk): Likewise.
1275 (grub_util_biosdisk_get_grub_dev): Likewise.
1276 (grub_util_check_block_device): Likewise.
1277 (grub_util_check_char_device): Likewise.
1278 (grub_make_system_path_relative_to_its_root): Likewise.
1279 * util/grub-editenv.c (create_envblk_file): Likewise.
1280 (open_envblk_file): Likewise.
1281 (write_envblk): Likewise.
1282 * util/grub-fstest.c (cmd_cp): Likewise.
1283 (cmd_cat): Likewise.
1284 (cmd_cmp): Likewise.
1285 * util/grub-menulst2cfg.c (main): Likewise.
1286 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
1287 (write_font_width_spec): Likewise.
1288 (write_font_pf2): Likewise.
1289 * util/grub-mkimage.c (generate_image): New argument outname.
1290 All users updated.
1291 Remove unreacheable message.
1292 (options): Unify messages.
1293 (help_filter): Likewise.
1294 * util/grub-mklayout.c (usage): Removed (unused).
1295 (main): Print filename in error.
1296 * util/grub-mkrescue.in: Fix wrong quoting.
1297 * util/grub-setup.c (setup): Print filename in error.
1298 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
1299 (check_sas): Likewise.
1300 * util/misc.c (grub_util_get_fp_size): Removed.
1301 (grub_util_get_image_size): Print filename in error.
1302 (grub_util_read_at): Removed.
1303 (grub_util_read_image): Print filename in error.
1304 (grub_util_load_image): Likewise.
1305 (grub_util_write_image_at): New argument filename. All users updated.
1306 Print filename in error.
1307 (grub_util_write_image): New argument filename. All users updated.
1308 Print filename in error.
1309 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
1310 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
1311
1312 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1313
1314 * grub-core/Makefile.core.def (pxechain): New module.
1315 * grub-core/loader/i386/pc/pxechainloader.c: New file.
1316 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
1317 function.
1318 (grub_pc_net_config_real): Use grub_pxe_get_cached.
1319 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
1320
1321 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
1324 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
1325 * include/grub/err.h (grub_error_saved): New struct.
1326 (grub_errmsg): Make array size explicit.
1327 * include/grub/misc.h (grub_error_save): New function.
1328 (grub_error_load): Likewise.
1329 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
1330 (grub_error_push): Update `errno' member name.
1331 (grub_error_pop): Likewise
1332 * grub-core/net/tftp.c (tftp_data): New member save_err.
1333 (tftp_receive): Save error.
1334 (tftp_open): Restore error.
1335
1336 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
1339 to real mode down to execute A20-related code in protected mode as
1340 intended.
1341
1342 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1343
1344 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
1345 NULL when the argument `level' has an unexpected value.
1346
1347 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 Move platform-dependent files from $prefix to $prefix/$platform.
1350
1351 * config.h.in (GRUB_TARGET_CPU): New definition.
1352 (GRUB_PLATFORM): Likewise.
1353 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
1354 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
1355 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1356 * grub-core/kern/dl.c (grub_dl_load): Likewise.
1357 * grub-core/normal/autofs.c (read_fs_list): Likewise.
1358 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
1359 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
1360 * grub-core/normal/term.c (read_terminal_list): Likewise.
1361 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
1362 $prefix/locale.
1363 (grub_gettext_init_ext): Likewise.
1364 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
1365 grub_platform.
1366 * util/grub-install.in: Update directories.
1367 * util/grub-mknetdir.in: Likewise.
1368 * util/grub-mkrescue.in: Likewise.
1369
1370 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1371
1372 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
1373 grub_error framework. All users updated.
1374
1375 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
1378 lists (by always binsearching), improve caching (cache strings
1379 used for binsearch, not only results), improve
1380 maintainability (by using more structured binary search) and correct
1381 error handling.
1382
1383 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 * grub-core/script/execute.c (grub_script_return): Fix warning.
1386
1387 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * grub-core/script/execute.c (grub_script_return): Fix potential
1390 NULL-dereference.
1391 Reported by: Jim Meyering.
1392
1393 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 * po/POTFILES.in: Regenerate.
1396 * util/grub-install.in: Gettextize the strings missed in first pass.
1397
1398 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1399
1400 * Makefile.util.def (grub-mkdevicemap): Removed.
1401 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
1402 * include/grub/util/deviceiter.h: Removed.
1403 * util/deviceiter.c: Likewise.
1404 * util/getroot.c (grub_util_get_os_disk): New function.
1405 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
1406 replacement for EFI.
1407 * util/grub-mkdevicemap.c: Removed.
1408 * util/grub-probe.c (probe): Handle PRINT_DISK.
1409 (argp_parser): Handle -t disk.
1410
1411 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 * util/grub-mkfont.c: Migrate to argp.
1414 * util/grub-mklayout.c: Likewise.
1415 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1416 * util/grub-mkrelpath.c: Likewise.
1417 * util/grub-probe.c: Likewise.
1418 * util/grub-script-check.c: Likewise.
1419
1420 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * util/grub-reboot.in: Add missing datarootdir.
1423 Add missing newline.
1424 * util/grub-set-default.in: Add missing datarootdir.
1425 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
1426 * util/grub-mkrescue.in: Likewise.
1427
1428 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
1431
1432 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * util/grub-kbdcomp.in: Add decent help and gettextize.
1435 * docs/man/grub-kbdcomp.h2m: New file.
1436
1437 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 Migrate grub-mkimage.c to argp.
1440
1441 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
1442 (grub-setup): Likewise.
1443 * util/grub-setup.c (print_version): Move to ...
1444 * util/argp_common.c (print_version): ... here.
1445 * util/grub-setup.c (argp_program_version_hook): Move to ...
1446 * util/argp_common.c (argp_program_version_hook): ... here.
1447 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
1448 safety.
1449 * util/grub-mkimage.c (main): Migrate to argp.
1450
1451 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1452
1453 * util/grub-mkrescue.in: Use same message as
1454 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
1455 for better translations.
1456
1457 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1458
1459 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
1460 options with generic grub-mkrescue.in with the goal of future
1461 merge.
1462
1463 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 * grub-core/kern/mm.c: Add missing include of i18n.h
1466 * grub-core/lib/relocator.c: Likewise.
1467
1468 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
1471 error.
1472 (allocate_pages): Check return value.
1473 Replace fatal with error.
1474 (grub_linux_boot): Replace printf with dprintf.
1475 Check find_mmap_size return value.
1476 Replace fatal with error.
1477 Don't call grub_machine_fini.
1478 (grub_load_elf64): Replace printf with dprintf.
1479 (grub_cmd_linux): Likewise.
1480 (grub_cmd_initrd): Likewise.
1481 (grub_cmd_payload): Likewise.
1482
1483 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
1486 message.
1487 * grub-core/video/radeon_fuloong2e.c
1488 (grub_video_radeon_fuloong2e_setup): Likewise.
1489 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
1490 * grub-core/video/video.c (grub_video_set_mode): Don't override
1491 standard out of memory message.
1492
1493 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1494
1495 NetBSD disk wedge support.
1496
1497 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
1498 [__NetBSD__]: Handle NetBSD disk wedges.
1499 * util/getroot.c (convert_system_partition_to_system_disk)
1500 [__NetBSD__]: Likewise.
1501
1502 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
1503
1504 * util/grub-mkconfig.in: Use umask rather than chmod to create
1505 grub.cfg.new to avoid insecure grub.cfg.
1506
1507 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 * grub-core/commands/ls.c: Gettextize.
1510 * grub-core/commands/setpci.c: Likewise.
1511 * grub-core/commands/videotest.c: Likewise.
1512 * grub-core/disk/geli.c: Likewise.
1513 * grub-core/kern/mm.c: Likewise.
1514 * grub-core/lib/relocator.c: Likewise.
1515 * grub-core/loader/efi/appleloader.c: Likewise.
1516 * grub-core/loader/i386/xnu.c: Likewise.
1517 * grub-core/loader/ia64/efi/linux.c: Likewise.
1518 * grub-core/loader/xnu.c: Likewise.
1519 * grub-core/net/dns.c: Likewise.
1520 * grub-core/net/net.c: Likewise.
1521 * grub-core/script/lexer.c: Likewise.
1522 * grub-core/script/parser.y: Likewise.
1523 * grub-core/script/yylex.l: Likewise.
1524 * util/getroot.c: Likewise.
1525 * util/grub-setup.c: Likewise.
1526
1527 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
1530 number.
1531
1532 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
1535
1536 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
1539 macro.
1540 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
1541 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
1542
1543 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1544
1545 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
1546 * util/grub-install.in: Gettextize.
1547 * util/grub-mkconfig.in: Likewise.
1548 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
1549 if not available.
1550 (grub_warn): Gettextize.
1551 * util/grub-mknetdir.in: Gettextize.
1552 * util/grub-mkrescue.in: Likewise.
1553 * util/grub-mkstandalone.in: Likewise.
1554 * util/grub-reboot.in: Likewise.
1555 * util/grub-set-default.in: Likewise.
1556 * util/grub.d/00_header.in: Likewise.
1557 * util/grub.d/10_hurd.in: Likewise.
1558 * util/grub.d/10_kfreebsd.in: Likewise.
1559 * util/grub.d/10_linux.in: Likewise.
1560 * util/grub.d/10_netbsd.in: Likewise.
1561 * util/grub.d/10_windows.in: Likewise.
1562 * util/grub.d/20_linux_xen.in: Likewise.
1563 * util/grub.d/30_os-prober.in: Likewise.
1564 * po/POTFILES-shell.in: Regenerate.
1565
1566 2012-02-03 Richard Laager <rlaager@wiktel.com>
1567
1568 * util/grub-mkimage.c (main): Fix format-security warning.
1569 * util/grub-mkrelpath.c (main): Likewise.
1570 * util/grub-probe.c (main): Likewise.
1571
1572 2012-02-03 Richard Laager <rlaager@wiktel.com>
1573
1574 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
1575 failure.
1576 Put back lost PRINT_DRIVE.
1577
1578 2012-02-03 Richard Laager <rlaager@wiktel.com>
1579
1580 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
1581 (grub_guess_root_devices): Replace strlen with sizeof.
1582 Avoid crash.
1583 (find_root_devices_from_poolname): Remove unused variable.
1584 Handle raidzN.
1585
1586 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 Support install on multi-device filesystems.
1589
1590 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
1591 (grub_guess_root_devices): ...this. Return char **. All users updated.
1592 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
1593 Removed.
1594 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
1595 (find_root_devices_from_poolname): ... here.
1596 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
1597 Support zfs-fuse.
1598 (grub_guess_root_device): Rename to ...
1599 (grub_guess_root_devices): ... this. Return char **. All users updated.
1600 * util/grub-install.in: Handle multi-device filesystems.
1601 * util/grub-probe.c (probe). Make device_names a char **. Add delim
1602 argument. All users updated.
1603 Handle multi-device filesystems.
1604 Use 'delim' as separator.
1605 Remove device check to allow filesystems on file.
1606 (main): Support -0 argument. Handle multi-device.
1607 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
1608 Fix a cross-device check while on it.
1609 (arguments): Remove root_dev.
1610 (argp_parser): Remove -r.
1611 (main): Remove root_dev.
1612
1613 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
1616
1617 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
1620 symbol.
1621 Reported by: NODA, Kai <nodakai>.
1622
1623 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 Fix ehci on amd64.
1626
1627 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
1628 pointers.
1629 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
1630 (grub_ehci_setup_qh): Likewise.
1631 (grub_ehci_find_qh): Likewise.
1632 (grub_ehci_transaction): Likewise.
1633 (grub_ehci_setup_transfer): Likewise.
1634 (grub_ehci_check_transfer): Likewise.
1635 (grub_ehci_portstatus): Likewise.
1636 (grub_ehci_detect_dev): Likewise.
1637 (grub_ehci_transfer_controller_data): New field td_last_phys.
1638 (grub_ehci_setup_transfer): Fill td_last_phys.
1639 (grub_ehci_check_transfer): Use td_last_phys.
1640
1641 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
1642
1643 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
1644 if no submenu is present.
1645
1646 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1647
1648 CBI support.
1649
1650 * include/grub/usb.h (grub_usbms_protocol_t): New values
1651 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
1652 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
1653 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
1654 (grub_usbms_dev): Add subclass, protocol and intrpt.
1655 Remove in_maxsz and out_maxsz.
1656 (grub_usbms_reset): Rename to ...
1657 (grub_usbms_bo_reset): .. this.
1658 (grub_usbms_cbi_cmd): New function.
1659 (grub_usbms_cbi_reset): Likewise.
1660 (grub_usbms_reset): Likewise.
1661 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
1662 (grub_usbms_transfer): Rename to ...
1663 (grub_usbms_transfer_bo): ... this.
1664 (grub_usbms_transfer_cbi): Likewise.
1665 (grub_usbms_transfer): Likewise.
1666
1667 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1668 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1669
1670 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
1671 the support for the CS5536 modification thereos and few bugfixes.
1672
1673 * grub-core/Makefile.core.def (ehci): New module.
1674 * grub-core/bus/usb/ehci.c: New file.
1675 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
1676 port and hubaddr. All users updated.
1677 Save port and hubaddr into dev structure.
1678 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
1679 define.
1680 * include/grub/pci.h (grub_dma_phys2virt): New function.
1681 (grub_dma_virt2phys): Likewise.
1682 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
1683
1684 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
1687 check as some mkfs implementations omit it.
1688
1689 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * docs/grub.texi (Unicode): Mention identifier and space limitations.
1692
1693 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
1696 Add new member volname2.
1697 (grub_jfs_label): Use volname2 if available.
1698
1699 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
1702 over last_mounted as seen in image generated by mkfs.nilfs2.
1703 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
1704
1705 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
1708 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
1709 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
1710
1711 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
1714 over the sector.
1715
1716 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1717
1718 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
1719 subvolume name (by removing a bogus and useless check).
1720
1721 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
1724 sizeof while on it.
1725
1726 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
1729 (grub_scsi_read_capacity10): ... this.
1730 (grub_scsi_read_capacity16): New function.
1731 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
1732 0xffffffff.
1733 Fix off-by-one error.
1734 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
1735 64-bit unsigned.
1736 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
1737 (grub_scsi_read_capacity10): ... this.
1738 (grub_scsi_read_capacity_data): Rename to ...
1739 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
1740 (grub_scsi_read_capacity16): New struct.
1741 (grub_scsi_read_capacity16_data): Likewise.
1742 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
1743 grub_scsi_cmd_read_capacity10.
1744 New command grub_scsi_cmd_read_capacity16.
1745
1746 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 SCSI >2TiB support.
1749
1750 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
1751 (grub_scsi_write16): Likewise.
1752 (grub_scsi_read): Use read16 when necessary.
1753 (grub_scsi_write): Likewise.
1754 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
1755 (grub_scsi_write16): Likewise.
1756 (grub_scsi_cmd_t): Add READ16 and WRITE16.
1757
1758 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 SCSI write support (for usbms mainly).
1761
1762 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
1763 a const pointer.
1764 (grub_scsi_write): Implement.
1765 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
1766
1767 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
1770 variable.
1771
1772 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 * grub-core/lib/posix_wrap/string.h (memchr): New function.
1775
1776 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1777
1778 * po/POTFILES.in: Regenerate.
1779
1780 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
1783 with grub_printf to avoid unnecessary fatal failure.
1784
1785 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
1788 (INT_MAX): Likewise.
1789 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
1790 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
1791 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
1792 (strcpy): Likewise.
1793 (strstr): Likewise.
1794 (strchr): Likewise.
1795 (strncpy): Likewise.
1796 (strcat): Likewise.
1797 (strncat): Likewise.
1798 (strcoll): Likewise.
1799 * include/grub/types.h (GRUB_SHRT_MAX): New define.
1800 (GRUB_INT_MAX): Likewise.
1801
1802 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
1805 unexpected error.
1806 (optimize_utf8): Likewise.
1807 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
1808
1809 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 * grub-core/boot/i386/pc/lnxboot.S: Use
1812 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
1813 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
1814 location.
1815 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
1816 definition.
1817 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
1818
1819 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
1822 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
1823 now to avoid double free.
1824 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
1825 hostdisk.
1826 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
1827 * util/grub-probe.c (escape_of_path): Always return a new copy.
1828 (print_full_name): Escape path.
1829 (probe): Don't call grub_util_devname_to_ofpath on NULL.
1830 Fix hints on abstractions.
1831
1832 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
1835 Don't add "root" line if no compatibility hont is available.
1836 Suggested by: Seth Goldberg.
1837
1838 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1839
1840 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
1841 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
1842 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
1843 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
1844
1845 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1846
1847 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
1848
1849 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * util/grub-pe2elf.c (ehdr): Make static.
1852 (shdr): Likewise.
1853 (num_sections): Likewise.
1854 (offset): Likewise.
1855
1856 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1857
1858 Eliminate ofpath limits and possible overflows.
1859
1860 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
1861 (OF_PATH_MAX): Removed.
1862 (MAX_DISK_CAT): New const.
1863 (find_obppath): Use allocated rather than preallocated buffer.
1864 Return result. Argument of_path removed. All users updated.
1865 Add missing fdstat.
1866 (xrealpath): New function.
1867 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
1868 Allocate rather than use preallocated buffer. All users updated.
1869 (__of_path_common): Use allocated rather than preallocatecd buffer.
1870 Return result. Argument of_path removed. All users updated.
1871 (vendor_is_ATA): Read only needed part form the file.
1872 (check_sas): Allocate depending on contents rather than fixed.
1873 (main) [STANDALONE]: Handle NULL result.
1874
1875 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/normal/completion.c (iterate_dev): Close the disk.
1878
1879 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 Cryptodisk write support.
1882
1883 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
1884 (grub_cryptodisk_decrypt): Moved logic to ...
1885 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
1886 (grub_cryptodisk_write): Implement.
1887 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
1888 (grub_util_fd_write): ... this. Make global.
1889 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
1890
1891 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * include/grub/list.h (grub_list_remove): Don't crash if element is
1894 removed twice.
1895
1896 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 Rename ofconsole to console.
1899
1900 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
1901 as sysnonym to console.
1902 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
1903 * grub-core/term/ieee1275/console.c: ... this. All users updated.
1904 Rename grub_ofconsole_ to grub_console_. All users updated
1905 (grub_console_term_output): Rename "ofconsole" to "console".
1906 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
1907 as "console".
1908
1909 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1910
1911 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
1912 handling.
1913 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
1914 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
1915 GRUB_DISK_DEVICE_FILE_ID.
1916
1917 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
1920 and improve performance.
1921
1922 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
1925 missing ieee1275/ prefix on whole disk.
1926
1927 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
1930 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
1931
1932 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1933
1934 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
1935
1936 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 Merge common RAID and LVM logic to an abstract diskfilter.
1939 Add LDM support using the same framework.
1940
1941 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
1942 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
1943 (libgrubmods): Remove grub-core/disk/raid.c and
1944 grub-core/partmap/gpt.c.
1945 * grub-core/Makefile.core.def (ldm): New module.
1946 (raid): Renamed to diskfilter. All users updated.
1947 * grub-core/disk/raid.c: Moved to ...
1948 * grub-core/disk/diskfilter.c: ... here.
1949 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
1950 (lv_num): New var.
1951 (find_array): Renamed to ...
1952 (find_lv): ... this. Support multi-LV. Skip nameless LVs
1953 (grub_is_array_readable): Renamed to ...
1954 (grub_is_lv_readable): ... this. Support multinode hierarchy.
1955 (insert_array): New argument id.
1956 (is_node_readable): New function.
1957 (scan_device): Rename to ...
1958 (scan_disk): .. this. Restrict to one disk.
1959 (scan_devices): New function.
1960 (grub_diskfilter_iterate): Support multi-LV.
1961 Skip invisible and nameless LVs.
1962 (grub_diskfilter_memberlist): Support multi-LV.
1963 (grub_diskfilter_read_node): New function.
1964 (grub_raid_read): Most of logic moved to ...
1965 (read_segment): ... here
1966 (read_lv): New function.
1967 (grub_diskfilter_get_vg_by_uuid): New function.
1968 (grub_diskfilter_make_raid): Likewise.
1969 * grub-core/disk/ldm.c: New file.
1970 * grub-core/disk/lvm.c (vg_list): Removed.
1971 (lv_count): Likewise.
1972 (scan_depth): Likewise.
1973 (is_lv_readable): Likewise.
1974 (grub_lvm_getvalue): Advance pointer past the number.
1975 (find_lv): Removed.
1976 (do_lvm_scan): Refactored into ...
1977 (grub_lvm_detect): ... this. Support raid.
1978 (grub_lvm_iterate): Removed.
1979 (grub_lvm_memberlist): Likewise.
1980 (grub_lvm_open): Likewise.
1981 (grub_lvm_close): Likewise.
1982 (read_lv): Likewise.
1983 (read_node): Likewise.
1984 (is_node_readable): Likewise.
1985 (is_lv_readable): Likewise.
1986 (grub_lvm_read): Likewise.
1987 (grub_lvm_write): Likewise.
1988 (grub_lvm_dev): Use diskfilter
1989 (GRUB_MOD_INIT): Likewise.
1990 (GRUB_MOD_FINI): Likewise.
1991 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
1992 new interface.
1993 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
1994 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1995 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
1996 grub_diskfilter_read_node.
1997 Fix a bug with xor.
1998 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
1999 grub_diskfilter_read_node.
2000 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
2001 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
2002 (grub_disk_dev_iterate): Move from here...
2003 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
2004 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2005 Make global.
2006 (grub_hostdisk_find_partition_start): Likewise.
2007 (grub_hostdisk_os_dev_to_grub_drive): New function.
2008 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
2009 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
2010 * util/getroot.c (make_device_name): ... here.
2011 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2012 Move to ...
2013 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
2014 * grub-core/kern/emu/hostdisk.c
2015 (convert_system_partition_to_system_disk): Move to ...
2016 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
2017 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
2018 * util/getroot.c (device_is_wholedisk): ... here.
2019 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
2020 * util/getroot.c (find_system_device): ... here.
2021 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
2022 Move to ...
2023 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
2024 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
2025 Move to ...
2026 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
2027 Handle LDM.
2028 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
2029 Move to ...
2030 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
2031 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
2032 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
2033 DISKFILTER.
2034 * include/grub/raid.h: Renamed to ...
2035 * include/grub/diskfilter.h: ... this.
2036 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
2037 (GRUB_RAID_LAYOUT_*): Make into array.
2038 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
2039 (grub_diskfilter_vg): New struct.
2040 (grub_diskfilter_pv_id): Likewise.
2041 (grub_raid_member): Removed.
2042 (grub_raid_array): Likewise.
2043 (grub_diskfilter_pv): New struct.
2044 (grub_diskfilter_lv): Likewise.
2045 (grub_diskfilter_segment): Likewise.
2046 (grub_diskfilter_node): Likewise.
2047 (grub_diskfilter_get_vg_by_uuid): New proto.
2048 (grub_raid_register): Inline.
2049 (grub_diskfilter_unregister): Likewise.
2050 (grub_diskfilter_make_raid): New proto.
2051 (grub_diskfilter_vg_register): Likewise.
2052 (grub_diskfilter_read_node): Likewise.
2053 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
2054 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
2055 (grub_util_is_ldm): Likewise.
2056 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
2057 (grub_hostdisk_find_partition_start): Likewise.
2058 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
2059 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
2060 New definition.
2061 (grub_gpt_partition_map_iterate): New proto.
2062 * include/grub/lvm.h (grub_lvm_vg): Removed.
2063 (grub_lvm_pv): Likewise.
2064 (grub_lvm_lv): Likewise.
2065 (grub_lvm_segment): Likewise.
2066 (grub_lvm_node): Likewise.
2067 * util/getroot.c [...]
2068 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
2069 (probe_abstraction): Likewise.
2070 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
2071 (main): Remove dead logic.
2072
2073 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 Simplify root device discover and don't fail when trying to open
2076 incorrect devices.
2077
2078 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
2079 function.
2080 (get_diskname_from_path): Likewise.
2081 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
2082 of iterating.
2083
2084 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
2087
2088 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2089
2090 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
2091 pastthe end.
2092
2093 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2094
2095 * util/grub-install.in: Add missing \.
2096 Reported by: gentoofan
2097
2098 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
2101 (direct_read): Use correct compressed size.
2102 (grub_squash_read_data): Likewise.
2103
2104 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2105
2106 * docs/grub.texi (Platform limitations): New section.
2107 (Platform-specific operations): Likewise.
2108 * docs/grub-dev.texi (Porting): Likewise.
2109
2110 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 IEEE1275 disk write support.
2113
2114 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
2115 const void *.
2116 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
2117 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
2118 and seek loginc to ...
2119 (grub_ofdisk_prepare): ... here.
2120 (grub_ofdisk_write): Implement.
2121
2122 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2123
2124 ARC disk write support.
2125
2126 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
2127 (reopen): New argument writable. All users updated.
2128 Handle required access mode.
2129 (grub_arcdisk_write): Implement.
2130 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
2131 (grub_arc_firmware_vector): Make buffer to write a const buffer.
2132
2133 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2134
2135 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
2136 (read_sblock): Don't attempt to read superblocks outside the disk size.
2137
2138 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
2141 first superblock to find the second one when possible.
2142
2143 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2144
2145 * util/grub-install.in: Fix an ARC bug.
2146 Print a warning if no platform-specific setup is available.
2147
2148 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 Use static allocation rather than scratch pointer in reed_solomon.
2151 It decreases its size significantly and avoids a variable in .text.
2152
2153 * grub-core/lib/reed_solomon.c (scratch): Removed.
2154 (chosenstat): New const or static array.
2155 (sigma): Likewise.
2156 (errpot): Likewise.
2157 (errpos): Likewise.
2158 (sy): Likewise.
2159 (mstat): Likewise.
2160 (errvals): Likewise.
2161 (eqstat): Likewise.
2162 (pol_evaluate): Replace x with log_x argument. All users updated.
2163 (syndroms): Removed.
2164 (gauss_solve): Use statically allocated arrays.
2165 (rs_recover): Likewise.
2166 Calculate syndroms directly.
2167 (decode_block): Use statically allocated arrays.
2168 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
2169 (main) [TEST]: Allow -DTEST -DSTANDALONE.
2170
2171 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 Eliminate fixed limit on reed solomon decoder length.
2174
2175 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
2176 rather than hardcoding the address.
2177 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
2178 no_reed_solomon_length.
2179 Move gate_a20 to no-reed-solomon part.
2180 Don't force a particular size of no reed-solomon part.
2181 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
2182 Removed.
2183 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
2184 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
2185
2186 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 * grub-core/commands/wildcard.c (match_files): Handle filenames
2189 without explicit device.
2190 (wildcard_expand): Don't add explicit device if not already present.
2191 * tests/grub_script_echo1.in: Add a new expansion test.
2192
2193 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2194
2195 Replace single-linked with double-linked lists. It results in more
2196 compact and more efficient code.
2197
2198 * grub-core/kern/list.c (grub_list_push): Moved from here ...
2199 * include/grub/list.h (grub_list_push): ... to here. Set prev.
2200 (grub_list_remove): Moved from here ...
2201 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
2202 (grub_prio_list_insert): Set prev.
2203 * include/grub/list.h (grub_list): Add prev. All users updated.
2204
2205 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 Handle newer autotools. Add some missing quotes while on it.
2208
2209 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
2210 (pkglib_DATA): Move grub-mkconfig_lib from here ...
2211 (pkgdata_DATA): ... here.
2212 * Makefile.util.def (update-grub_lib): Removed.
2213 * conf/Makefile.common (pkglib_DATA): Removed.
2214 (pkglib_SCRIPTS): Likewise.
2215 (pkgdata_DATA): New variable.
2216 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
2217 needed.
2218 Add missing quotes.
2219 Remove unused variable while on it.
2220 * tests/util/grub-shell.in: Likewise.
2221 * util/grub-install.in: Likewise.
2222 * util/grub-mkconfig.in: Likewise.
2223 * util/grub-mknetdir.in: Likewise.
2224 * util/grub-mkrescue.in: Likewise.
2225 * util/grub-mkstandalone.in: Likewise.
2226 * util/grub.d/00_header.in: Likewise.
2227 * util/grub.d/10_hurd.in: Likewise.
2228 * util/grub.d/10_illumos.in: Likewise.
2229 * util/grub.d/10_kfreebsd.in: Likewise.
2230 * util/grub.d/10_linux.in: Likewise.
2231 * util/grub.d/10_netbsd.in: Likewise.
2232 * util/grub.d/10_windows.in: Likewise.
2233 * util/grub.d/20_linux_xen.in: Likewise.
2234 * util/grub.d/30_os-prober.in: Likewise.
2235 * util/update-grub_lib.in: Removed.
2236
2237 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
2238
2239 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
2240 a workaround for intel problem.
2241
2242 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
2243 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2244 2012-01-23 pfsmorigo
2245
2246 * util/grub-install.in: Support dd'in into PreP partition.
2247 * util/grub-probe.c (probe): Support discovering partition type.
2248 (main): Support -t msdos_parttype.
2249
2250 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
2253 infinite recursion using counter.
2254 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
2255 init to skip it if the magic check fails.
2256 (dec_stream_header): Init s->crc32.
2257
2258 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2259 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
2260 2012-01-22 Richard Laager <rlaager@wiktel.com>
2261
2262 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
2263 All users updated.
2264 (find_bestub): Determine correct size.
2265 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
2266 (scan_disk): Align the size down.
2267 Call check pool before find_bestub to have ashift.
2268
2269 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
2272 dprintf in no-malloc zone.
2273
2274 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
2275
2276 * configure.ac: Add back in test for limits.h.
2277
2278 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 Support 4K-sector NTFS.
2281
2282 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
2283 (grub_ntfs_data): Remove blocksize.
2284 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
2285 Remove data argument. All users updated.
2286
2287 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
2290 being in .text to avoid dprel references.
2291 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
2292 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
2293 (grub_arch_highmemsize): Likewise.
2294 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
2295 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
2296 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
2297
2298 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
2301
2302 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
2303 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
2304
2305 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
2308 GRUB_UTIL.
2309 (grub_set_datetime_cmos): Likewise.
2310
2311 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 Make XZ compression parameters dependent on target and not host CPU.
2314
2315 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
2316 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
2317
2318 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
2321 set but not used variable.
2322
2323 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
2326 created when no uuid support is compiled into mkfs.reiser.
2327
2328 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2329
2330 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
2331 (utf8_to_macroman): Do the opposite.
2332 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
2333
2334 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * configure.ac: Refise build qemu_mips w/o unifont.
2337
2338 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 Eliminate grub_min/grub_max prone to overflow usage.
2341
2342 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
2343 (poll_nonroot_hub): Likewise.
2344 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
2345 (grub_affs_label): Likewise.
2346 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
2347 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
2348 (grub_hfs_label): Likewise.
2349 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
2350 * grub-core/fs/zfs/zfs.c (MIN): Remove.
2351 (zap_leaf_array_equal): Use grub_size. Remove MIN.
2352 (zap_leaf_array_get): Likewise.
2353 (dnode_get_path): Likewise.
2354 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
2355 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
2356 * grub-core/script/execute.c (grub_script_break): Likewise.
2357 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
2358 grub_max.
2359 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
2360 * include/grub/misc.h (grub_min): Removed.
2361 (grub_max): Likewise.
2362
2363 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2364
2365 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
2366 direct.inode = 0.
2367
2368 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
2371
2372 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
2375
2376 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
2379 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
2380
2381 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
2384 rather than a hack for grub_strncasemap.
2385
2386 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 Support multiple initrds
2389 Note: part of this was accidently committed in r3739.
2390
2391 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
2392 initrd.
2393 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
2394 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
2395 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2396 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2397 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2398
2399 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
2402 disks with unknown size.
2403 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
2404
2405 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 Remove defines pertaining to arbitrary limits not affecting GRUB
2408 anymore.
2409
2410 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
2411 (EXT2_MAX_SYMLINKCNT): Likewise.
2412 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
2413 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
2414 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
2415 (GRUB_PXE_MAX_BLKSIZE): Likewise.
2416 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
2417 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
2418 (DN_MAX_OBJECT_SHIFT): Likewise.
2419 (DN_MAX_OFFSET_SHIFT): Likewise.
2420 (DN_MAX_OBJECT): Likewise.
2421 (DNODES_PER_LEVEL_SHIFT): Likewise.
2422 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
2423 (SPA_MAXBLOCKSIZE): Likewise.
2424 (SPA_BLOCKSIZES): Likewise.
2425 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
2426 (MZAP_MAX_BLKSZ): Likewise.
2427
2428 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
2431 handle NULL appropriately.
2432 Remove MIN.
2433
2434 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 Fix efiemu.
2437
2438 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
2439 cpu/types.h.
2440 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
2441 * configure.ac: Fix efiemu check.
2442
2443 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
2446 grub_probe.
2447 Reported by: adamwill
2448
2449 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
2450
2451 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
2452
2453 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 Fix handling of wide characters in gfxterm.
2456
2457 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
2458 (clear_char): Likewise.
2459 (paint_char): Skip code == NULL chars.
2460 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
2461
2462 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * grub-core/normal/charset.c: Move comment to right place.
2465
2466 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
2469 (GRUB_AFFS_FLAG_FFS): Put back where it was.
2470 (grub_affs_mount): Revert the correct version checking.
2471
2472 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * docs/grub.texi (Unicode): Mention several other unsupported features.
2475
2476 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2477
2478 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
2479 case statements as compile-time one.
2480 (direct_read): Prevent spurious warnings.
2481 (grub_squash_read_data): Likewise.
2482
2483 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2484
2485 Various squash4 fixes and LZO and XZ support.
2486
2487 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
2488 Add xzembed source files.
2489 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
2490 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
2491 (grub_squash_inode): New subtype long_dir.
2492 (SQUASH_TYPE_LONG_DIR): New inode type.
2493 (COMPRESSION): New enum.
2494 (XZBUFSIZ): New const.
2495 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
2496 (read_chunk): Use data->decompress.
2497 (zlib_decompress): New function.
2498 (lzo_decompress): Likewise.
2499 (xz_decompress): Likewise.
2500 (squash_mount): Set new data fields.
2501 (grub_squash_iterate_dir): Handle long dir.
2502 (squash_unmount): Free xzdec and xzbuf.
2503 (grub_squash_open): Check ino type.
2504 (direct_read): Stylistic fixes. Use data->decompress.
2505 (grub_squash_read_data): Likewise.
2506 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
2507 (get_byte): Likewise.
2508 (grub_zlib_disk_read): Removed.
2509 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
2510 (GRUB_POSIX_BOOL_DEFINED): New define.
2511 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
2512 * grub-core/lib/xzembed/xz.h: Addmissing includes.
2513 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
2514 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
2515
2516 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 Don't override more informative errors.
2519
2520 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
2521 * grub-core/font/font.c (open_section): Likewise.
2522 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
2523 filename. Don't override errors.
2524 (grub_cmd_openbsd_ramdisk): Don't override errors.
2525 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
2526 (grub_cmd_initrd): Likewise.
2527 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2528 (grub_cmd_initrd): Likewise.
2529 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
2530 (grub_cmd_linux): Likewise.
2531 (grub_cmd_initrd): Likewise.
2532 (grub_cmd_payload): Likewise.
2533 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2534 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
2535 (grub_cmd_module): Likewise.
2536 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2537 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2538 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
2539 (grub_cmd_xnu_mkext): Likewise.
2540 (grub_cmd_xnu_ramdisk): Likewise.
2541 (grub_xnu_check_os_bundle_required): Likewise.
2542 (grub_xnu_load_kext_from_dir): Likewise.
2543 (grub_cmd_xnu_kextdir): Likewise.
2544 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
2545
2546 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
2549 as 1024 in block size field. Found on one of my test images.
2550 Small optimisation while on it.
2551
2552 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
2555 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
2556 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
2557 performance fixes while on it.
2558 (grub_sfs_close): Fix memory leak while on it.
2559 (grub_sfs_label): Convert Latin1 to UTF-8.
2560
2561 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2562
2563 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
2564 space to avoid overflows.
2565 (grub_hfs_label): Convert from macroman to UTF-8.
2566
2567 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2568
2569 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
2570
2571 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
2574
2575 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2576
2577 * unicode: Import Unicode 6.0 data.
2578
2579 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
2582 outside of range.
2583
2584 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2585
2586 Avoid cutting in the middle of UTF-8 character.
2587
2588 * include/grub/charset.h (grub_getend): New function.
2589 * grub-core/script/function.c (grub_script_function_find): Use
2590 grub_getend.
2591 * grub-core/normal/completion.c (add_completion): Likewise.
2592
2593 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2594
2595 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
2596 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
2597 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
2598 (GRUB_UNICODE_TAG_END): Likewise.
2599 (GRUB_UNICODE_LAST_VALID): Likewise.
2600
2601 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2602
2603 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
2604 len and make it smaller. All users updated.
2605 * util/import_unicode.py: Put length and not end character.
2606 Check length.
2607
2608 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2609
2610 Make better Unicode-compliant and unify some UTF-8 code pathes.
2611
2612 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
2613 valid character.
2614 (grub_is_valid_utf8): Use grub_utf8_process.
2615 Check resulting code range.
2616 (grub_utf8_to_ucs4): Use grub_utf8_process.
2617 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
2618 valid character.
2619
2620 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2621
2622 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
2623
2624 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * docs/grub.texi (Filesystems): Mention AFS.
2627
2628 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * docs/grub.texi (Filesystems): Clarify restrictions.
2631 (Regexp): Mention non-Unicode regexp behaviour.
2632 (Other): Mention non-Unicode matching behaviour.
2633
2634 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 Make HFS implementation use MacRoman.
2637
2638 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
2639 (macroman): New const array.
2640 (macroman_to_utf8): New function.
2641 (utf8_to_macroman): Likewise.
2642 (grub_hfs_find_dir): Use utf8_to_macroman.
2643 (grub_hfs_dir): Use macroman_to_utf8.
2644 Set case_insensitive.
2645
2646 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
2649
2650 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 Integrate hints into autogeneration scripts.
2653
2654 * docs/grub.texi (Filesystems): Add a hostdisk example.
2655 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
2656 (grub-probe): Add ofpath.
2657 * gentpl.py: Remove group nosparc64.
2658 * grub-core/commands/search.c (cache_entry): New struct.
2659 (cache): New var.
2660 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
2661 * grub-core/commands/search_wrap.c (options): Add platform-specific
2662 hint options.
2663 (grub_cmd_search): Handle platform-specific hints.
2664 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
2665 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
2666 (grub_util_biosdisk_data): Likewise.
2667 (grub_util_biosdisk_open): Set device_map.
2668 (read_device_map): Handle "" as indication of no map.
2669 Set device_map.
2670 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
2671 (grub_util_biosdisk_get_compatibility_hint): New function.
2672 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
2673 * include/grub/emu/hostdisk.h
2674 (grub_util_biosdisk_get_compatibility_hint): New proto.
2675 * util/grub-install.in: Don't call grub-mkdevicemap.
2676 Add platform-specific hint to load.cfg.
2677 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
2678 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2679 hints. Set root preliminary to compatibility hint, not to OS name.
2680 * util/grub-probe.c (PRINT_*): Add hints.
2681 (print): Make static.
2682 (escape_of_path): New function.
2683 (guess_bios_drive): Likewise.
2684 (guess_efi_drive): Likewise.
2685 (guess_baremetal_drive): Likewise.
2686 (print_full_name): Likewise.
2687 (probe): Handle hints.
2688 (main): Likewise.
2689 * util/ieee1275/devicemap.c: Removed.
2690 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
2691 updated.
2692 (grub_util_devname_to_ofpath): Return NULL on failure.
2693
2694 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
2695 resource leak.
2696 * util/getroot.c (grub_util_pull_device): Fix memory leak.
2697
2698 * po/POTFILES.in: Regenerated.
2699
2700 Allow purely long options
2701
2702 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
2703 (SHORT_ARG_USAGE): Likewise.
2704 (grub_arg_show_help): Compare opt with help_options.
2705 (parse_option): Receive opt as argument. If makes big simplificatons.
2706 All users updated
2707
2708 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
2711 Restructure to avoid warning.
2712
2713 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2714
2715 * util/grub-install.in: Account for possible escaped comma in device
2716 name.
2717
2718 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
2721 channel.
2722
2723 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2724
2725 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
2726 allocation and zero-setting.
2727 (grub_ieee1275_get_devname): Check that alias is complete.
2728
2729 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2730
2731 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
2732 unaligned segments.
2733
2734 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
2737 prefix.
2738 (grub_ofdisk_open): Check and discard ieee1275 prefix.
2739 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2740 Add ieee1275 prefix.
2741
2742 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 * docs/grub.texi (Filesystems): Update.
2745
2746 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 Support odc, newc and bigendian cpio formats.
2749
2750 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
2751 * grub-core/Makefile.core.def (newc): New module.
2752 (odc): Likewise.
2753 (cpio_be): Likewise.
2754 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
2755 (MAGIC): Likewise.
2756 (MAGIC2): Likewise.
2757 (head) [MODE_ODC]: Adapt for the format.
2758 (head) [MODE_NEWC]: Likewise.
2759 (head) [!MODE_*]: Write fields of interest as arrays.
2760 (MAGIC_USTAR): Removed.
2761 (read_number) [MODE_NEWC]: Change to hex.
2762 (read_number) [!MODE_*]: Parse binary arrays.
2763 (grub_cpio_find_file): Factor out the code for better structure and
2764 always use read_number.
2765 (grub_cpio_mount): Use MAGIC and MAGIC2.
2766 (grub_cpio_dir): Exit on first hook non-0 return.
2767 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
2768 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
2769 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
2770 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
2771 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
2772 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
2773 * grub-core/fs/newc.c: New file.
2774 * grub-core/fs/odc.c: Likewise.
2775 * grub-core/fs/cpio_be.c: Likewise.
2776
2777 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 Fix handling of tar numbers occupying the whole field.
2780
2781 * grub-core/fs/cpio.c (read_number): New function.
2782 (grub_cpio_find_file): Use read_number instead of strtoull.
2783
2784 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
2787 occupying the whole field size.
2788
2789 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
2790
2791 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
2792
2793 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
2796
2797 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
2798
2799 * grub-core/Makefile.core.def (lzma_decompress): Add missing
2800 TARGET_IMG_LDFLAGS.
2801
2802 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * util/getroot.c (ESCAPED_PATH_MAX): New define.
2805 (mountinfo_entry): Increase the field size to take escaping into
2806 account.
2807 (find_root_device_from_libzfs): Add one byte to size of strings for
2808 security.
2809
2810 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
2813 an assert.
2814 * util/grub-setup.c (setup): Likewise.
2815
2816 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
2819 _LzmaDecodeA.
2820
2821 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 * docs/grub.texi (Internationalisation): New section.
2824
2825 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2826
2827 * docs/grub.texi (Loopback booting): New section.
2828
2829 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
2830
2831 * util/grub-mkstandalone.in: Fix minor typo errors.
2832
2833 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2834
2835 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
2836
2837 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
2838 net/icmp.c and net/icmp6.c.
2839 (http): New module.
2840 (priority_queue): Likewise.
2841 * grub-core/io/bufio.c: Rewritten.
2842 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
2843 TYPE_WITH_CONFIGFILE_OPTION.
2844 (legacy_commands): Add bootp and dhcp.
2845 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
2846 (grub_legacy_parse): Likewise.
2847 * grub-core/lib/priority_queue.c: New file.
2848 * grub-core/net/arp.c: Add missing license header.
2849 (arp_find_entry): Removed.
2850 (arp_find_entry): Likewise.
2851 (grub_net_arp_resolve): Rename to ...
2852 (grub_net_arp_send_request): ...this.
2853 (grub_net_arp_receive): New card argument.
2854 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
2855 Set router and DNS server.
2856 (grub_net_configure_by_dhcp_ack): Handle routing information.
2857 (grub_cmd_bootp): Set checksum.
2858 (grub_bootp_init): Remove net_dhcp.
2859 * grub-core/net/dns.c: New file.
2860 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
2861 completion.
2862 (get_card_packet): Handle allocation.
2863 (grub_efinet_findcards): Set mtu.
2864 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
2865 (get_card_packet): Handle allocation.
2866 (emucard): Set mtu.
2867 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
2868 (GRUB_MOD_INIT): Set mtu.
2869 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
2870 mtu.
2871 (get_card_packet): Handle allocation.
2872 (grub_ofnet_findcards): Set mtu.
2873 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
2874 assert.
2875 (grub_net_recv_ethernet_packet): Handle IPv6.
2876 * grub-core/net/http.c: New file.
2877 * grub-core/net/icmp.c: Likewise.
2878 * grub-core/net/icmp6.c: Likewise.
2879 * grub-core/net/ip.c (ip6addr): New type.
2880 (ip6hdr): Likewise.
2881 (reassemble): Likewise.
2882 (cmp): New function.
2883 (reassembles): New variable.
2884 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
2885 (id): New variable.
2886 (send_fragmented): New function.
2887 (grub_net_send_ip_packet): Rename to ...
2888 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
2889 Handle non-UDP.
2890 (grub_net_recv_ip_packets): Rename to ...
2891 (handle_dgram): ... this. Check checksum. Handle non-UDP.
2892 (free_rsm): New function.
2893 (free_old_fragments): Likewise.
2894 (grub_net_recv_ip4_packets): New function.
2895 (grub_net_send_ip6_packet): Likewise.
2896 (grub_net_send_ip_packet): Likewise.
2897 (grub_net_recv_ip6_packets): Likewise.
2898 (grub_net_recv_ip_packets): Likewise.
2899 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
2900 (LINK_LAYER_CACHE_SIZE): New const.
2901 (link_layer_find_entry): New function.
2902 (grub_net_link_layer_add_address): Likewise.
2903 (grub_net_link_layer_resolve_check): Likewise.
2904 (grub_net_link_layer_resolve): Likewise.
2905 (grub_net_ipv6_get_slaac): Likewise.
2906 (grub_net_ipv6_get_link_local): Likewise.
2907 (grub_cmd_ipv6_autoconf): Likewise.
2908 (parse_ip): Handle one number representation.
2909 (parse_ip6): New functoion.
2910 (match_net): Handle IPv6.
2911 (grub_net_resolve_address): Handle IPv6 and DNS.
2912 (grub_net_resolve_net_address): Handle IPv6.
2913 (route_cmp): New function.
2914 (grub_net_route_address): Find best route.
2915 (grub_net_addr_to_str): Handle IPv6.
2916 (grub_net_addr_cmp): New function.
2917 (grub_net_add_addr): Register local route.
2918 (print_net_address): Handle net address.
2919 (grub_net_poll_cards): Retransmit TCP.
2920 (grub_net_poll_cards_idle_real): Likewise.
2921 (have_ahead): New function.
2922 (grub_net_seek_real): Use underlying seek.
2923 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
2924 * grub-core/net/tcp.c: New file.
2925 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
2926 (cmp): New function.
2927 (ack): Likewise.
2928 (tftp_receive): Handle unordered input.
2929 (destroy_pq): New function.
2930 (tftp_close): Close pq.
2931 * grub-core/net/udp.c: Put missing license header.
2932 (grub_net_udp_socket): New function.
2933 (udp_socket_register): Likewise.
2934 (grub_net_udp_close): Likewise.
2935 (grub_net_recv_udp_packet): Check checksum.
2936 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
2937 * include/grub/misc.h (grub_memchr): New function.
2938 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
2939 (grub_net_card_driver): Return buf in recv.
2940 (grub_net_slaac_mac_list): New struct.
2941 (grub_network_level_protocol_id): Add ipv6.
2942 (grub_net_network_level_addr): Likewise.
2943 (grub_net_network_level_net_addr): Likewise.
2944 (grub_net_app_protocol): Add seek.
2945 (grub_net_socket): Removed.
2946 (grub_net_sockets): Likewise.
2947 (grub_net_socket_register): Likewise.
2948 (grub_net_socket_unregister): Likewise.
2949 (FOR_NET_SOCKETS): Likewise.
2950 (grub_net_add_addr): Add const.
2951 (GRUB_NET_BOOTP_*): New enum.
2952 (grub_net_addr_cmp): New proto.
2953 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
2954 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
2955 (grub_net_hwaddr_to_str): NEw proto.
2956 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
2957 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
2958 (grub_dns_init): New proto.
2959 (grub_dns_fini): Likewise.
2960 (grub_net_tcp_retransmit): Likewise.
2961 (grub_net_link_layer_add_address): Likewise.
2962 (grub_net_link_layer_resolve_check): Likewise.
2963 (grub_net_link_layer_resolve): Likewise.
2964 (grub_net_dns_lookup): Likewise.
2965 (grub_net_add_dns_server): Likewise.
2966 (grub_net_remove_dns_server): Likewise.
2967 (GRUB_NET_TRIES): New const.
2968 (GRUB_NET_INTERVAL): Likewise.
2969 * include/grub/net/arp.h: Mostly rewritten.
2970 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
2971 * include/grub/net/ip.h: Mostly rewritten.
2972 * include/grub/net/netbuff.h: Indent.
2973 * include/grub/net/tcp.h: New file.
2974 * include/grub/net/udp.h: Mostly rewritten.
2975 * include/grub/priority_queue.h: New file.
2976 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
2977 (grub_swap_bytes64_compile_time): Likewise.
2978 (grub_cpu_to_be16_compile_time): Likewise.
2979 (grub_cpu_to_be32_compile_time): Likewise.
2980 (grub_cpu_to_be64_compile_time): Likewise.
2981 (grub_be_to_cpu64_compile_time): Likewise.
2982
2983 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
2986 UINT_TO_PTR with cast.
2987
2988 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
2991 don't use them.
2992
2993 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2994
2995 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
2996 already there.
2997
2998 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
3001 confusing ipxe.
3002
3003 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
3006 Add missing const attribute.
3007 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
3008 Likewise.
3009 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
3010 Likewise.
3011
3012 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
3015 misaligned access.
3016 (serpent_setkey): Likewise.
3017 (serpent_encrypt_internal): Likewise.
3018 (serpent_decrypt_internal): Likewise.
3019 (serpent_encrypt): Don't put an alignment-increasing cast.
3020 (serpent_decrypt): Likewise.
3021 (serpent_test): Likewise.
3022
3023 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
3026
3027 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
3030
3031 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
3032 grub_addr_t casts.
3033 (PTR_TO_UINT64): Likewise.
3034 (PTR_TO_UINT32): Likewise.
3035
3036 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * util/grub-mkimage.c (generate_image): Decrease the higher limit
3039 because of stack.
3040 * util/grub-setup.c (setup): Don't add redundancy past the higher load
3041 limit.
3042
3043 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
3046 text_width > available width a bit more gracefully.
3047
3048 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
3051 current address calculation.
3052
3053 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
3056 stack.
3057 (encode_block): Likewise.
3058
3059 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
3062 certainety.
3063
3064 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
3067 non-RS part to avoid RS messing with GDT.
3068 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
3069 Increase to suit in realmode routines.
3070
3071 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * grub-core/kern/i386/realmode.S: Increase alignment.
3074 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
3075
3076 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
3079 be deterministic.
3080 (syndroms): Compute 0 syndrom.
3081 (rs_recover): Use 0 syndrom.
3082
3083 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
3086
3087 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
3090 brackets.
3091
3092 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3093
3094 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
3095 account.
3096 (get_top_pad): Likewise.
3097 (get_right_pad): Likewise.
3098 (get_bottom_pad): Likewise.
3099
3100 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
3103
3104 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
3107 attribute as the structure isn't guaranteed to be properly aligned.
3108 (grub_efi_pci_device_path): Likewise.
3109 (grub_efi_pccard_device_path): Likewise.
3110 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
3111 specify the size of `memory_type'.
3112 (grub_efi_vendor_device_path): Likewise.
3113 (grub_efi_controller_device_path): Likewise.
3114 (grub_efi_acpi_device_path): Likewise.
3115 (grub_efi_expanded_acpi_device_path): Likewise.
3116 (grub_efi_atapi_device_path): Likewise.
3117 (grub_efi_scsi_device_path): Likewise.
3118 (grub_efi_fibre_channel_device_path): Likewise.
3119 (grub_efi_1394_device_path): Likewise.
3120 (grub_efi_usb_device_path): Likewise.
3121 (grub_efi_usb_class_device_path): Likewise.
3122 (grub_efi_i2o_device_path): Likewise.
3123 (grub_efi_mac_address_device_path): Likewise.
3124 (grub_efi_ipv4_device_path): Likewise.
3125 (grub_efi_ipv6_device_path): Likewise.
3126 (grub_efi_infiniband_device_path): Likewise.
3127 (grub_efi_uart_device_path): Likewise.
3128 (grub_efi_vendor_messaging_device_path): Likewise.
3129 (grub_efi_hard_drive_device_path): Likewise.
3130 (grub_efi_cdrom_device_path): Likewise.
3131 (grub_efi_vendor_media_device_path): Likewise.
3132 (grub_efi_file_path_device_path): Likewise.
3133 (grub_efi_protocol_device_path): Likewise.
3134 (grub_efi_piwg_device_path): Likewise.
3135 (grub_efi_bios_device_path): Likewise.
3136
3137 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
3140 (grub_ucs4_to_utf8_alloc): Likewise.
3141 (grub_ucs4_to_utf8): Likewise.
3142 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
3143 (grub_ucs4_to_utf8_alloc): Likewise.
3144
3145 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 AFFS never uses unicode.
3148
3149 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
3150 (grub_latin1_to_utf8): New inline function.
3151 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
3152
3153 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
3156 overflow.
3157
3158 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
3161 (grub_squash_dirent_header): Likewise.
3162 (read_chunk): Don't double swap.
3163 (grub_squash_iterate_dir): Fix swap sizes.
3164
3165 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
3168
3169 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3170
3171 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
3172 (grub_hfs_iterate_dir): Likewise.
3173
3174 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 Fix video on platforms where unaligned access is forbidden.
3177 Make several optimisations while on it.
3178
3179 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
3180 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3181 (grub_video_fbblit_replace_32bit_1bit): Likewise.
3182 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3183 Disable.
3184 (grub_video_fbblit_replace_16bit_1bit):
3185 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3186 (grub_video_fbblit_replace_8bit_1bit): Likewise.
3187 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
3188 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
3189 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3190 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3191 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
3192 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
3193 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
3194 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
3195 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
3196 (grub_video_fbblit_replace_index_RGB888): Likewise.
3197 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
3198 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
3199 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
3200 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3201 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
3202 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
3203 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3204 Disable.
3205 (grub_video_fbblit_blend_XXX565_1bit):
3206 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3207 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
3208 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
3209 void *.
3210 * grub-core/video/fb/video_fb.c (common_blitter)
3211 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
3212 (grub_video_fb_create_render_target_from_pointer)
3213 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
3214 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
3215 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
3216 definition.
3217 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
3218
3219 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3220
3221 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
3222 HH22 and HM10 relocations.
3223
3224 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
3227
3228 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
3231 allocation succeeded.
3232
3233 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
3236 argument a u8 pointer. All users updated.
3237 Handle unaligned buffers.
3238
3239 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
3242 add_part to workaround compiler bug.
3243
3244 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3245
3246 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
3247
3248 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3249
3250 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
3251 Reserve alignment invariants.
3252 (grub_multiboot_load): Likewise.
3253 (retrieve_video_parameters): Likewise.
3254 (grub_multiboot_make_mbi): Likewise.
3255
3256 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
3259 incorrect pointer.
3260
3261 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
3264 (grub_pata_pio_write): Likewise.
3265
3266 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 Add noreturn attributes and remove unreachable code.
3269
3270 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
3271 code.
3272 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
3273 code. Mark as noreturn.
3274 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
3275 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
3276 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
3277 unreachable code.
3278 * grub-core/kern/main.c (grub_main): Mark as noreturn.
3279 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
3280 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
3281 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
3282 * include/grub/kernel.h (grub_main): Mark as noreturn.
3283 * include/grub/reader.h (grub_rescue_run): Likewise.
3284
3285 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
3288 redundant declaration.
3289
3290 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 * include/grub/net.h (grub_net_network_level_interfaces): Remove
3293 redundant declaration.
3294 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
3295
3296 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
3299 to ensure alignment.
3300 (grub_hdparm_print_identify): Make argument uint16 * to ensure
3301 alignment. Ensure tmp alignment.
3302 (grub_cmd_hdparm): Ensure buf alignment.
3303 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
3304 to ensure alignment.
3305 (grub_ata_dumpinfo): Ensure text alignment.
3306 (grub_atapi_identify): Preserve alignment invariant.
3307 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
3308
3309 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
3312 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
3313 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
3314 * include/grub/misc.h (grub_reboot)
3315 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
3316 (grub_halt) [__mips__]: Likewise.
3317
3318 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
3321 Remove redundant declaration.
3322 (grub_mmap_get_post64): Likewise.
3323 (grub_mmap_get_upper): Likewise.
3324 (grub_mmap_get_lower): Likewise.
3325
3326 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3327
3328 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
3329 uint32_t * to ensure alignment.
3330 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
3331
3332 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
3335 uint16_t * to ensure alignment.
3336 (sun_pc_partition_map_iterate): Make `block' a union to ensure
3337 alignment.
3338
3339 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
3342 to ensure alignment.
3343 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
3344
3345 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * grub-core/fs/ntfs.c (u16at): Make into inline function.
3348 Handle unaligned pointers.
3349 (u32at): Likewise.
3350 (u64at): Likewise.
3351 (fixup): Use byte access instead of v16at.
3352 (find_attr): Fix imporper usage of v32at.
3353 (read_data): Likewise.
3354 (list_file): Handle byte-swapping and unaligned strings.
3355 (grub_ntfs_label): Likewise.
3356
3357 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
3360 as it's not necessarily aligned.
3361
3362 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
3365 redundant declaration.
3366 (grub_serial_init): Likewise.
3367 (grub_terminfo_init): Likewise.
3368
3369 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
3372 function.
3373 (ZAP_HASH_IDX): Likewise.
3374 (ZAP_LEAF_HASH_SHIFT): Likewise.
3375 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
3376 (LEAF_HASH): Likewise.
3377 (ZAP_LEAF_NUMCHUNKS): Likewise.
3378 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
3379 alignment invariants. Return pointer. All users updated.
3380 (ZAP_LEAF_ENTRY): Make into inline function.
3381 (NBBY): Removed.
3382 (xor): LIkewise.
3383 (xor_out): Use grub_crypto_xor.
3384 (dnode_get_path): Use grub_get_unaligned.
3385 (nvlist_find_value): Likewise.
3386 (grub_zfs_nvlist_lookup_uint64): Likewise.
3387 (grub_zfs_nvlist_lookup_string): Likewise.
3388 (get_nvlist_size): Likewise.
3389 (grub_zfs_open): Likewise.
3390 (fill_fs_info): Likewise.
3391 (grub_zfs_dir): Likewise.
3392 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
3393 alignment invariants.
3394 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
3395 necessarily aligned.
3396
3397 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
3400
3401 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3402
3403 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
3404 arithmetic to conserve alignment invariants.
3405
3406 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
3409 redundant declaration.
3410 (grub_efiemu_mm_obtain_request): Likewise.
3411 (grub_efiemu_prepare): Likewise.
3412
3413 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
3416 to match types.
3417
3418 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
3421 case of aunaligned recptr.
3422 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
3423 alignment.
3424 (grub_hfsplus_btree_search): Handle unaligned index.
3425
3426 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3427
3428 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
3429 to get freetag and skip.
3430
3431 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
3434 array.
3435 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
3436 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
3437
3438 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3439
3440 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
3441 name for checksum and fix allocation algorithm.
3442
3443 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3444
3445 * include/grub/types.h (grub_properly_aligned_t): New type.
3446 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
3447 (grub_get_unaligned16): Add explicit casts.
3448 (grub_get_unaligned32): Likewise.
3449 (grub_get_unaligned64): Likewise.
3450 (grub_set_unaligned16): New function.
3451 (grub_set_unaligned32): Likewise.
3452
3453 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
3456
3457 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
3460 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
3461 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
3462
3463 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
3466 conditionals.
3467
3468 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
3471 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
3472
3473 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 Unify and improve RAID and crypto xor.
3476
3477 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
3478 changed to grub_crypto_xor
3479 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
3480 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
3481 Use bigger types when possible.
3482
3483 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3484
3485 * grub-core/disk/raid.c (scan_devices): Fix condition.
3486
3487 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
3490 Make name a const ptr.
3491
3492 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
3495 first argument a const pointer.
3496 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3497 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
3498 proto.
3499 (grub_children_iterate): Likewise.
3500 (grub_machine_mmap_iterate): Remove redundant declaration.
3501
3502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3503
3504 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
3505 (grub_cmd_acpi) [!x86]: Disable EBDA.
3506
3507 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 Enable UTF8 in gnulib regexp.
3510
3511 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
3512 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
3513 (isupper): Use grub_isupper.
3514 (isascii): New inline function.
3515 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
3516 * grub-core/lib/posix_wrap/wctype.h: Likewise.
3517 * grub-core/normal/charset.c (grub_utf8_process): New function.
3518 (grub_utf8_to_utf16): Use grub_utf8_process.
3519 (grub_encode_utf8_character): New function.
3520 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
3521 * include/grub/charset.h (grub_utf8_process): New declaration.
3522 (grub_encode_utf8_character): Likewise.
3523 * include/grub/misc.h (grub_islower): New inline function.
3524 (grub_isupper): Likewise.
3525 (grub_strchrsub): Moved down to fix the definitions.
3526
3527 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
3530 specification.
3531
3532 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * include/grub/loader.h (grub_loader_register_preboot_hook):
3535 Use struct preboot * and not void * for handle. All users updated.
3536 (grub_loader_unregister_preboot_hook): Likewise.
3537
3538 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
3541 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
3542 UTF-16-BE. All users updated.
3543 (grub_hfsplus_cmp_catkey): Fix unicode handling.
3544 (grub_hfsplus_iterate_dir): Likewise.
3545 (grub_hfsplus_label): Likewise.
3546
3547 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
3550
3551 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 Add missing const qualifiers.
3554
3555 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
3556 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
3557 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
3558 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
3559 (grub_lvm_check_flag): Likewise.
3560 * grub-core/efiemu/i386/coredetect.c
3561 (grub_efiemu_get_default_core_name): Likewise
3562 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
3563 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
3564 * grub-core/fs/ntfs.c (fixup): Likewise.
3565 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
3566 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
3567 (fzap_lookup): Likewise.
3568 (zap_lookup): Likewise.
3569 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
3570 * grub-core/lib/legacy_parse.c (check_option): Likewise.
3571 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
3572 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
3573 (grub_freebsd_add_meta_module): Likewise.
3574 (grub_cmd_freebsd_module): Likewise.
3575 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
3576 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
3577 (grub_xnu_writetree_get_size): Likewise.
3578 (grub_xnu_writetree_toheap_real): Likewise.
3579 (grub_xnu_find_key): Likewise.
3580 (grub_xnu_create_key): Likewise.
3581 (grub_xnu_create_value): Likewise.
3582 (grub_xnu_register_memory): Likewise.
3583 (grub_xnu_check_os_bundle_required): Likewise.
3584 (grub_xnu_scan_dir_for_kexts): Likewise.
3585 (grub_xnu_load_kext_from_dir): Likewise.
3586 * grub-core/normal/color.c (color_list): Likewise.
3587 * grub-core/normal/completion.c (current_word): Likewise.
3588 * grub-core/normal/menu_entry.c (insert_string): Likewise.
3589 * grub-core/term/serial.c (grub_serial_find): Likewise.
3590 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
3591 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
3592 Likewise.
3593 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
3594 (grub_freebsd_add_meta_module): Likewise.
3595 * include/grub/lib/arg.h (grub_arg_option): Likewise.
3596 * include/grub/net.h (grub_net_card_driver): Likewise.
3597 (grub_net_card): Likewise.
3598 (grub_net_app_protocol): Likewise.
3599 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
3600 * include/grub/serial.h (grub_serial_find): Likewise.
3601 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
3602 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
3603 (grub_xnu_create_value): Likewise.
3604 (grub_xnu_find_key): Likewise.
3605 (grub_xnu_scan_dir_for_kexts): Likewise.
3606 (grub_xnu_load_kext_from_dir): Likewise.
3607
3608 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
3609 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
3610 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
3611 Moved from here ...
3612 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
3613
3614 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
3615
3616 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
3617
3618 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
3621 (read_device): Fix size calculation.
3622
3623 2011-11-25 Robert Millan <rmh@gnu.org>
3624
3625 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
3626 (find_root_device_from_libzfs): Add zpool output parser to be used
3627 as fallback when libzfs isn't available.
3628
3629 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
3630
3631 * po/Makefile.in.in: Add missing escape-continuation.
3632
3633 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
3636
3637 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
3640
3641 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
3644
3645 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
3648
3649 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3650
3651 * grub-core/lib/adler32.c: Add missing license specification.
3652 * grub-core/lib/crc64.c: Likewise.
3653 * grub-core/loader/i386/pc/plan9.c: Likewise.
3654 * grub-core/partmap/plan.c: Likewise.
3655
3656 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
3657
3658 Add facility to debug GRUB with gdb under qemu.
3659
3660 * grub-core/gdb_grub.in: New file.
3661 * grub-core/gmodule.pl.in: Likewise.
3662 * grub-core/Makefile.core.def (gmodule.pl): New script.
3663 (gdb_grub): Likewise.
3664
3665 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 * util/grub-mount.c (argp_parser): Accept relative pathes.
3668 * util/grub-fstest.c (argp_parser): Likewise.
3669
3670 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3671
3672 Plan9 support.
3673
3674 * Makefile.util.def (libgrubmods): Add
3675 grub-core/partmap/plan.c.
3676 * docs/grub.texi: Notice Plan9 support.
3677 * grub-core/Makefile.core.def (plan9): New module.
3678 (part_plan): Likewise.
3679 * grub-core/loader/i386/pc/plan9.c: New file.
3680 * grub-core/partmap/plan.c: Likewise.
3681 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
3682 define.
3683 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
3684 * include/grub/mm.h (grub_extend_alloc): New inline function.
3685
3686 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 Make Reed-Solomon faster by using power of generator representation of
3689 GF(256)*.
3690
3691 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
3692 (gf_double_t): Likewise.
3693 (gf_invert): Removed.
3694 (gf_powx): New array.
3695 (gf_powx_inv): Likewise.
3696 (scratch): Move higher.
3697 (gf_reduce): Removed.
3698 (gf_mul): Use powx.
3699 (gf_invert): Likewise.
3700 (init_inverts): Replaced with ...
3701 (init_powx): ...this. All users updated.
3702 (pol_evaluate): Replace multiplications with additions.
3703 (rs_encode): Likewise.
3704 (gauss_eliminate): Call gf_invert.
3705 (grub_reed_solomon_add_redundancy): Call init_powx.
3706 (grub_reed_solomon_recover): Call init_powx unconditionally.
3707
3708 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
3711
3712 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
3715 disk->partiton for safety.
3716
3717 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
3720 Fix a memory leak.
3721 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
3722
3723 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
3726
3727 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
3730
3731 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3732
3733 Fix spaces handling in proc/self/mountinfo.
3734
3735 * util/getroot.c (unescape): New function.
3736 (grub_find_root_device_from_mountinfo): Use unescape.
3737
3738 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 Support ZFS embedding.
3741
3742 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
3743 (grub_zfs_fs): Register grub_zfs_embed.
3744
3745 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 Fix MIPS compilation.
3748
3749 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
3750 * include/grub/offsets.h: Rename decompressor fields from
3751 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
3752 * util/grub-mkimage.c (image_targets): Use new names.
3753
3754 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 Defer multiboot device parsing until we're in compressed part.
3757
3758 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
3759 bsd_part. setdevice has fallen into disuse.
3760 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
3761 (bsd_part): Likewise.
3762 (boot_dev): New variable.
3763 (multiboot_trampoline): Don't parse multiboot device.
3764 Pass multiboot device in %edx.
3765 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
3766 grub_boot_device.
3767 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
3768 Likewise.
3769 * grub-core/kern/i386/pc/startup.S: Save edx.
3770 (grub_boot_drive): Removed.
3771 (grub_install_dos_part): Likewise.
3772 (grub_install_bsd_part): Likewise.
3773 (grub_boot_device): New variable.
3774 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
3775 (grub_install_bsd_part): Likewise.
3776 (grub_boot_drive): Likewise.
3777 (grub_boot_device): New variable.
3778 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
3779 Removed.
3780 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3781 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
3782 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
3783 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
3784 * util/grub-install.in: Remove redundant condition.
3785
3786 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 Fix bug introduced by previous commit.
3789
3790 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
3791
3792 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 Use decompressors framework on i386-pc. It increases core size
3795 by 46 bytes but improves compatibility and maintainability.
3796
3797 * grub-core/Makefile.core.def (lzma_decompress): New image.
3798 (kernel): Add i386_pc_ldflags.
3799 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
3800 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
3801 to real_to_prot, prot_to_real and device info.
3802 * include/grub/offsets.h: Renamed decompressor offsets.
3803 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
3804 (image_target_desc): Remove raw_size and rename decompressor fields.
3805 (compress_kernel): Handle lzma.
3806 (generate_image): Handle decompressors on i386-pc.
3807
3808 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * configure.ac: Add -fno-asynchronous-unwind-tables.
3811
3812 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 Move assembly code to C by using intwrap. It increases core size
3815 by 88 bytes but improves compatibility and maintainability.
3816
3817 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
3818 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
3819 ... here. Translated to C.
3820 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
3821 * grub-core/term/i386/pc/console.c (grub_console_getkey):
3822 ... here. Translated to C.
3823 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
3824 * grub-core/term/i386/pc/console.c (grub_console_getxy):
3825 ... here. Translated to C.
3826 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
3827 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
3828 ... here. Translated to C.
3829 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
3830 * grub-core/term/i386/pc/console.c (grub_console_cls):
3831 ... here. Translated to C.
3832 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
3833 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
3834 ... here. Translated to C.
3835 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
3836 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
3837 Translated to C.
3838 * grub-core/term/i386/pc/console.c (int10_9): New function.
3839 (grub_console_putchar): Likewise.
3840 * include/grub/i386/pc/console.h: Removed the not anymore shared
3841 functions.
3842
3843 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3844
3845 Move grub_chainloader_real_boot out of the kernel.
3846
3847 * grub-core/Makefile.am: Remove machine/loader.h.
3848 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3849 Removed.
3850 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
3851 variable.
3852 (grub_relocator16_keep_a20_enabled): Likewise.
3853 (grub_relocator16_boot): Fill new variables.
3854 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
3855 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
3856 relocator.
3857 (grub_chainloader_unload): Likewise.
3858 (grub_chainloader_cmd): Likewise.
3859 * include/grub/i386/pc/loader.h: Removed.
3860 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
3861 and esi. All initialisers updated.
3862
3863 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3864 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
3865
3866 * Makefile.util.def (grub-mount): New util.
3867 * .bzrignore: Add grub-mount.
3868 * configure.ac: Check for fuse and enable grub-mount if available.
3869 * docs/man/grub-mount.h2m: New file.
3870 * util/grub-mount.c: Likewise.
3871
3872 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * grub-core/commands/efi/fixvideo.c: Gettextize.
3875 * grub-core/commands/hashsum.c: Likewise.
3876 * grub-core/commands/i386/cmostest.c: Likewise.
3877 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3878 * grub-core/commands/i386/pc/lsapm.c: Likewise.
3879 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3880 * grub-core/commands/lsmmap.c: Likewise.
3881 * grub-core/commands/menuentry.c: Likewise.
3882 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3883 * grub-core/commands/setpci.c: Likewise.
3884 * grub-core/loader/i386/bsd.c: Likewise.
3885 * grub-core/loader/i386/linux.c: Likewise.
3886 * util/getroot.c: Likewise.
3887 * util/grub-editenv.c: Likewise.
3888 * util/grub-fstest.c: Likewise.
3889 * util/grub-mkfont.c: Likewise.
3890 * util/grub-mkimage.c: Likewise.
3891 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3892 * util/grub-pe2elf.c: Likewise.
3893 * util/grub-probe.c: Likewise.
3894 * util/grub-setup.c: Likewise.
3895 * util/ieee1275/ofpath.c: Likewise.
3896 * util/misc.c: Likewise.
3897 * util/raid.c: Likewise.
3898
3899 2011-11-11 Robert Millan <rmh@gnu.org>
3900
3901 * util/getroot.c (grub_util_get_geom_abstraction): Remove
3902 __attribute__((unused)) from `os_dev', which *is* being used.
3903
3904 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
3907 forgotten define.
3908 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
3909 GRUB_IA64_DL_GOT_ALIGN.
3910 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
3911 GRUB_IA64_DL_TRAMP_ALIGN.
3912
3913 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 Replace grub_fatal with normal errors in i386 linux loader.
3916
3917 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
3918 (allocate_pages): Check find_efi_mmap_size return value.
3919 (grub_e820_add_region): Return error.
3920 (grub_linux_boot): Check mmap return value.
3921
3922 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * grub-core/commands/acpihalt.c: Gettextized.
3925 * grub-core/commands/cacheinfo.c: Likewise.
3926 * grub-core/commands/cmp.c: Likewise.
3927 * grub-core/commands/efi/loadbios.c: Likewise.
3928 * grub-core/commands/gptsync.c: Likewise.
3929 * grub-core/commands/ieee1275/suspend.c: Likewise.
3930 * grub-core/commands/legacycfg.c: Likewise.
3931 * grub-core/commands/memrw.c: Likewise.
3932 * grub-core/commands/minicmd.c: Likewise.
3933 * grub-core/commands/parttool.c: Likewise.
3934 * grub-core/commands/time.c: Likewise.
3935 * grub-core/commands/videoinfo.c: Likewise.
3936 * grub-core/disk/geli.c: Likewise.
3937 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
3938 * grub-core/disk/luks.c: Likewise.
3939 * grub-core/disk/lvm.c: Likewise.
3940 * grub-core/font/font_cmd.c: Likewise.
3941 * grub-core/fs/zfs/zfscrypt.c: Likewise.
3942 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3943 * grub-core/gfxmenu/view.c: Likewise.
3944 * grub-core/kern/emu/hostdisk.c: Likewise.
3945 * grub-core/kern/emu/main.c: Likewise.
3946 * grub-core/kern/emu/misc.c: Likewise.
3947 * grub-core/kern/emu/mm.c: Likewise.
3948 * grub-core/kern/mips/arc/init.c: Likewise.
3949 * grub-core/kern/mips/loongson/init.c: Likewise.
3950 * grub-core/kern/partition.c: Likewise.
3951 * grub-core/lib/i386/halt.c: Likewise.
3952 * grub-core/lib/mips/arc/reboot.c: Likewise.
3953 * grub-core/lib/mips/loongson/reboot.c: Likewise.
3954 * grub-core/loader/i386/pc/chainloader.c: Likewise.
3955 * grub-core/loader/i386/xnu.c: Likewise.
3956 * grub-core/loader/multiboot.c: Likewise.
3957 * grub-core/net/bootp.c: Likewise.
3958 * grub-core/net/net.c: Likewise.
3959 * grub-core/normal/term.c: Likewise.
3960 * grub-core/partmap/bsdlabel.c: Likewise.
3961 * grub-core/parttool/msdospart.c: Likewise.
3962 * grub-core/term/gfxterm.c: Likewise.
3963 * grub-core/term/terminfo.c: Likewise.
3964 * grub-core/video/i386/pc/vbe.c: Likewise.
3965 * util/grub-menulst2cfg.c: Likewise.
3966 * util/grub-mkdevicemap.c: Likewise.
3967 * util/grub-mklayout.c: Likewise.
3968 * util/grub-mkrelpath.c: Likewise.
3969 * util/grub-script-check.c: Likewise.
3970 * util/ieee1275/grub-ofpathname.c: Likewise.
3971 * util/resolve.c: Likewise.
3972
3973 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3974
3975 Support %1$d syntax.
3976
3977 * tests/printf_unit_test.c: New file.
3978 * Makefile.util.def (printf_test): New test.
3979 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
3980
3981 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
3984 fix.
3985
3986 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
3989 dprintf.
3990 * grub-core/font/font.c (grub_font_load): Likewise.
3991
3992 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3993
3994 * util/grub-macho2img.c: Add comment concerning gettext.
3995 * grub-core/lib/legacy_parse.c: Likewise.
3996
3997 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3998
3999 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
4000 (grub_xvasprintf): Likewise.
4001
4002 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 Add const keyword to grub_env_get and gettextize week days.
4005
4006 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
4007 (grub_read_hook_datetime): Return const char *.
4008 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
4009 updated.
4010 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
4011 Mark for gettext.
4012 (grub_get_weekday_name): Return const char *. Call gettext.
4013 * grub-core/script/argv.c (grub_script_argv_append): Receive const
4014 char * and len as the argument. All users updated.
4015 (grub_script_argv_split_append): Receive const char *.
4016 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
4017 * include/grub/env.h (grub_env_get): Likewise.
4018 (grub_env_read_hook_t): Return const char *.
4019 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
4020 (grub_script_argv_split_append): Likewise.
4021
4022 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
4025
4026 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
4029 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
4030
4031 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
4034 Fix prototype.
4035
4036 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 Fix mips compilation.
4039
4040 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
4041 normal decoder.
4042 (hashes): Use in embed decoder as well (for sizes).
4043 (dec_stream_header): Fix embed decompressor logic.
4044 (dec_stream_footer): Likewise.
4045
4046 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
4049 an error and not a fatal on unrecognised relocation types.
4050
4051 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
4054 Issue error rather than printf on unknown arguments.
4055
4056 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
4059 Make buf a const.
4060
4061 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
4064 Fix module name.
4065
4066 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
4069 leftover debug printf.
4070
4071 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
4074
4075 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
4078 A stylistic fix.
4079
4080 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
4083
4084 2011-11-10 Shea Levy <slevy@tieronedesign.com>
4085
4086 Allow all modules to perform serial IO
4087
4088 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
4089 * include/grub/serial.h (grub_serial_port_configure): New inline
4090 function.
4091 (grub_serial_port_fetch): Likewise.
4092 (grub_serial_port_put): Likewise.
4093 (grub_serial_port_fini): Likewise.
4094 (grub_serial_find): New proto.
4095
4096 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 Put symlink at the end of the node and fix a potential
4099 memory corruption.
4100
4101 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
4102 Make symlink into an array.
4103 (set_rockridge): Set have_symlink and alloc_dirents.
4104 (grub_iso9660_read_symlink): Use new layout.
4105 (grub_iso9660_iterate_dir): Fix memory corruption.
4106 Use new layout.
4107 (grub_iso9660_dir): Set have_symlink.
4108 (grub_iso9660_open): Likewise.
4109
4110 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4111
4112 Remove local keyword.
4113
4114 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
4115 (version_test_gt): Likewise.
4116 (version_find_latest): Likewise.
4117 (gettext_printf): Likewise.
4118 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
4119
4120 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
4123
4124 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4125
4126 Fix ZFS memory and resource leaks.
4127
4128 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
4129 All users updated.
4130 Free type on exit.
4131 (fill_vdev_info): New parameter inserted. All users updated.
4132 (check_pool_label): Likewise.
4133 (scan_disk): Likewise.
4134 (scan_devices): Close non-inserted disks.
4135 (fzap_iterate): Free l.
4136 (unmount_device): Free children descripto memory.
4137
4138 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
4141 argument (access out of bounds).
4142
4143 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4144
4145 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
4146 >= 6 drives.
4147
4148 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
4151 Fix declaration.
4152
4153 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 Fix several memory leaks.
4156
4157 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
4158 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
4159 (grub_cpio_dir): Likewise.
4160 * grub-core/fs/fat.c (grub_fat_label): Likewise.
4161 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
4162 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
4163 (grub_romfs_label): Likewise.
4164 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
4165 (squash_unmount): New function.
4166 (grub_squash_dir): Fix memory leak.
4167 (grub_squash_open): Likewise.
4168 (grub_squash_read): Likewise.
4169 (grub_squash_mtime): Likewise.
4170 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
4171 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
4172 * util/grub-fstest.c (fstest): Likewise.
4173
4174 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
4177 avoid accessing beyond the array.
4178
4179 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4180
4181 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
4182
4183 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 Several AFFS fixes.
4186
4187 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
4188 (GRUB_AFFS_FLAG_FFS): Removed.
4189 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
4190 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
4191 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
4192 (grub_fshelp_node): Make block 32-bit.
4193 Add block_cache and last_block_cache.
4194 (grub_affs_read_block): Fill and use block cache.
4195 (grub_affs_read_file): Removed.
4196 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
4197 boot block.
4198 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
4199 safety.
4200 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
4201 space.
4202 (grub_affs_close): Free block cache.
4203 (grub_affs_read): Use grub_fshelp_read_file directly.
4204
4205 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4206
4207 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
4208 with no error set.
4209
4210 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4211
4212 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
4213 used variable.
4214 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4215 Likewise.
4216
4217 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4218
4219 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
4220
4221 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
4222 byteswap when needed.
4223
4224 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 Fix FreeBSD compilation.
4227
4228 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
4229 to avoid circular dependency.
4230 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
4231 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
4232 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
4233
4234 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 Fix ZFS crypto error types.
4237
4238 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
4239 (grub_gcm_decrypt): Likewise.
4240 (grub_zfs_load_key_real): Fix error code type. Handle possible error
4241 from PBKDF2.
4242
4243 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4244
4245 Illumos support.
4246
4247 * Makefile.util.def (10_illumos): New script.
4248 * configure.ac: Set COND_HOST_ILLUMOS.
4249 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
4250 Support Illumos calls.
4251 (find_partition_start) [__sun__]: Likewise.
4252 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
4253 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
4254 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
4255 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
4256 device.
4257 * util/grub-probe.c (probe) [__sun__]: Do character check.
4258 * util/grub.d/10_illumos.in: New file.
4259
4260 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4261
4262 Support escaped commas in hostdisk.
4263
4264 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
4265 (find_grub_drive): Use unescape_cmp.
4266 (make_device_name): Escape commas.
4267
4268 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
4271
4272 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
4275 variable.
4276
4277 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 Support trampoline jumps on powerpc.
4280
4281 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
4282 __ia64__ path.
4283 (grub_dl_load_segments): Set mod->sz.
4284 (grub_dl_flush_cache): Flush whole space occupied by module, not just
4285 segments.
4286 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
4287 (jump): Likewise.
4288 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
4289 function.
4290 (trampoline): New struct.
4291 (trampoline_template): New const.
4292 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
4293 * include/grub/dl.h (grub_dl): Add sz element.
4294 [__powerpc__]: Follow __ia64__.
4295 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
4296 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
4297 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
4298 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
4299
4300 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 ZFS crypto support.
4303
4304 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
4305 * grub-core/Makefile.core.def (zfscrypt): New module.
4306 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
4307 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
4308 it. All users updated.
4309 (grub_zfs_decrypt): New var.
4310 (grub_zfs_load_key): Likewise.
4311 (zio_checksum_functions): Add SHA256+MAC.
4312 (zio_checksum_verify): Handle incomplete comparison due to MAC.
4313 (zio_read): Handle encrypted blocks.
4314 (zap_verify): Remove incorrect check.
4315 (fzap_iterate): Handle non-standard fzap.
4316 (zap_iterate): Likewise.
4317 (zap_iterate_u64): New function.
4318 (dnode_get_fullpath): Load keys.
4319 * grub-core/fs/zfs/zfscrypt.c: New file.
4320 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
4321 (grub_crypto_ecb_encrypt): Make input const.
4322 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
4323 (grub_crypto_ecb_encrypt): Make input const.
4324 (GRUB_CIPHER_AES): New macro.
4325 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
4326 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
4327 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
4328 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
4329 prefix. All users updated.
4330 (grub_zfs_add_key): New proto.
4331 (grub_zfs_decrypt): Likewise.
4332 (grub_zfs_load_key): Likewise.
4333 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
4334 * util/grub-fstest.c (options): Add -K option.
4335 (argp_parser): Likewise.
4336
4337 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 Support zle compression on ZFS.
4340
4341 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
4342 (decomp_table): Add zle.
4343 * include/grub/zfs/zio.h (zio_compress): Add zle.
4344
4345 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 Support BtrFS embedding.
4348
4349 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
4350 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
4351 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
4352 * util/grub-setup.c (setup): Use fs embedding if available.
4353 Add additional sanity check.
4354
4355 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 * util/grub-install.in: Fix condition for config_opt.
4358
4359 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4360
4361 Support third redundancy strip on raidz3.
4362
4363 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
4364 Return error on singularity. All users updated.
4365 (read_device): Don't stop on 3rd failure on raidz3.
4366
4367 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 Support case-insensitive ZFS subvolumes.
4370
4371 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
4372 All users updated.
4373 (zap_hash): Likewise.
4374 (name_cmp): New function.
4375 (zap_leaf_array_equal): New parameter case_insensitive.
4376 All users updated.
4377 (zap_leaf_lookup): Likewise.
4378 (fzap_lookup): Likewise.
4379 (zap_lookup): Likewise.
4380 (dnode_get_path): New parameter case_insensitive. Retrieve case
4381 sensitiviness of a volume. All users updated.
4382 (dnode_get_fullpath): New parameter case_insensitive.
4383 All users updated.
4384 (grub_zfs_dir): Set info.case_insensitiveness.
4385
4386 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 Support second redundancy strip on raidz(2,3).
4389
4390 * grub-core/fs/zfs/zfs.c (powx): New array.
4391 (powx_inv): Likewise.
4392 (poly): New const.
4393 (xor_out): New function.
4394 (gf_mul): Likewise.
4395 (recovery): Likewise.
4396 (read_device): Use second redundancy strip.
4397
4398 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 Use a power of generator representation of GF(256) multiplication group
4401 to save space time and complexity.
4402
4403 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
4404 (raid6_table2): Likewise.
4405 (powx): New array.
4406 (powx_inv): Likewise.
4407 (poly): New const.
4408 (grub_raid_block_mul): Replace with ...
4409 (grub_raid_block_mulx): ...this.
4410 (grub_raid6_init_table): Rewritten.
4411 (grub_raid6_recover): Use power of generator representation.
4412
4413 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4414
4415 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
4416 for the right device.
4417
4418 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
4421 expected by grub-mkimage and it's more clear since there is no implicit
4422 padding.
4423
4424 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
4427 disk.
4428 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4429
4430 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
4431
4432 * util/grub-mkrescue.in: Fix handling xorriso option.
4433
4434 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
4437 NULL.
4438
4439 2011-11-03 crocket <crockabiscuit@gmail.com>
4440
4441 * util/grub.d/10_linux.in: Add Slackware initrd naming.
4442
4443 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4444
4445 XZ CRC64 and SHA256 support.
4446
4447 * Makefile.util.def (libgrubmods): Add crc64.c.
4448 * grub-core/Makefile.core.def (crc64): New module.
4449 * grub-core/lib/crc64.c: New file.
4450 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
4451 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
4452 Fix the type.
4453 (MAX_HASH_SIZE): New define.
4454 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
4455 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
4456 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4457 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4458 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
4459 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
4460 Handle non-crc32 hashes.
4461 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
4462 (dec_stream_header): Handle non-crc32 hashes.
4463 (dec_stream_footer): Likewise.
4464 (dec_block_header): Likewise.
4465 (dec_main): Likewise.
4466 (xz_dec_init): Likewise.
4467 (xz_dec_reset): Likewise.
4468 (xz_dec_end): Likewise.
4469 * util/import_gcry.py: Add CRC64 line.
4470
4471 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
4474 as well.
4475
4476 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 Make reiserfs label retrieval similar to other *_label functions.
4479
4480 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
4481 (REISERFS_MAX_LABEL_LENGTH): Removed.
4482 (REISERFS_LABEL_OFFSET): Likewise.
4483 (grub_reiserfs_label): Rewritten.
4484
4485 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
4488 field.
4489
4490 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
4493
4494 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
4497 drive failure on both raidz and raidz2.
4498
4499 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 Fix RAIDZ(2) for >= 5 devices.
4502
4503 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
4504 asize argument. All users updated.
4505
4506 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 Fix RAIDZ(2).
4509
4510 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
4511 (fill_vdev_info_real): Set ashift.
4512 (read_device): Rewrite RAIDZ part based on reverse engineering.
4513
4514 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
4517 don't report potentially unavialiable fields in debug output.
4518 (find_path): Fix double-free and memory leak.
4519
4520 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 Read label on UFS1.
4523
4524 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
4525 (grub_ufs_fs): Always set .label.
4526
4527 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 Use shifts in UFS.
4530
4531 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
4532 (grub_ufs_data): New field log2_blksz.
4533 (grub_ufs_read_file): Use shifts.
4534 (grub_ufs_mount): Check block size and logarithm it.
4535
4536 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4537
4538 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
4539 long symlinks.
4540
4541 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 Handle symlinks and long names on tar and cpio.
4544
4545 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
4546 (ATTR_FILE): Likewise.
4547 (ATTR_DIR): Likewise.
4548 (ATTR_LNK): Likewise.
4549 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
4550 (grub_cpio_find_file): Fill mode, handle linkname field as well as
4551 L and K entries.
4552 (grub_cpio_mount): Zero-fill data.
4553 (handle_symlink): New function.
4554 (grub_cpio_dir): Handle symlinks.
4555 (grub_cpio_open): Likewise.
4556 (grub_cpio_close) [MODE_USTAR]: Free linkname.
4557
4558 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 Fix iso9660 filename limitations and fix memory leaks.
4561
4562 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
4563 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
4564
4565 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 Fix JFS file name length limitations.
4568
4569 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
4570 (grub_jfs_diropen): Fix maximum filename length.
4571 (grub_jfs_getent): Fix filename length.
4572 (grub_jfs_lookup_symlink): Fix size checks.
4573
4574 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
4577 string.
4578
4579 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4580
4581 Leverage BFS implementation to read AFS.
4582
4583 * Makefile.util.def (libgrubmods): Add afs.c.
4584 * grub-core/Makefile.core.def (afs): New module
4585 * grub-core/fs/afs.c: New file.
4586 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
4587
4588 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
4591
4592 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 * grub-core/fs/bfs.c: Run indent.
4595
4596 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 BFS implementation based on the specification.
4599
4600 * grub-core/fs/bfs.c: New file.
4601 * Makefile.util.def (libgrubmods): Add bfs.c.
4602 * grub-core/Makefile.core.def (bfs): New module.
4603
4604 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 * util/grub-fstest.c (cmd_cp): Clarify error message.
4607 (cmd_cmp): Likewise.
4608
4609 2011-10-30 Yves Blusseau <blusseau@zetam.org>
4610
4611 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
4612 and befs_be.
4613
4614 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 Remove afs and befs because of copyright problem.
4617
4618 * grub-core/fs/afs.c: Removed.
4619 * grub-core/fs/afs_be.c: Removed.
4620 * grub-core/fs/befs.c: Removed.
4621 * grub-core/fs/befs_be.c: Removed.
4622 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
4623 * grub-core/Makefile.core.def (afs): Removed.
4624 (afs_be): Likewise.
4625 (befs): Likewise.
4626 (befs_be): Likewise.
4627
4628 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 Prefer rockridge over Joliet.
4631
4632 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
4633 to ...
4634 (set_rockridge): ... here.
4635 (grub_iso9660_mount): Check rockridge on the primary label when
4636 discovering. Ignore Joliet if Rockridge is present.
4637
4638 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 Use shifts in nilfs2.
4641
4642 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
4643 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
4644 (grub_nilfs2_palloc_entries_per_group): Replace with ...
4645 (grub_nilfs2_log_palloc_entries_per_group): ... this.
4646 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
4647 (grub_nilfs2_entries_per_block): Replaced with ...
4648 (grub_nilfs2_log_entries_per_block_log): ... this.
4649 (grub_nilfs2_blocks_per_group): Replaced with ...
4650 (grub_nilfs2_blocks_per_group_log): ... this.
4651 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
4652 (grub_nilfs2_blocks_per_desc_block_log): ... this.
4653 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
4654 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
4655 (grub_nilfs2_palloc_entry_offset): Replaced ...
4656 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
4657 (grub_nilfs2_dat_translate): Use shifts.
4658 (grub_nilfs2_read_inode): Likewise.
4659 (GRUB_MOD_INIT): Ensure that logs are correct.
4660
4661 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4662
4663 Use shifts in minix filesystem.
4664
4665 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
4666 (GRUB_MINIX_ZONE2SECT): Likewise.
4667 (grub_minix_data): Replace block_size with log_block_size.
4668 (grub_minix_read_file): Use shifts.
4669 (grub_minix_mount): Check block size and take a logarithm.
4670
4671 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 Use shifts in squash4.
4674
4675 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
4676 (squash_mount): Check block size and take logarithm.
4677 (direct_read): Use shifts.
4678
4679 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4680
4681 Correct befs block counting logic.
4682
4683 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
4684 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
4685 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
4686 (grub_afs_read_inode): Use block_shift.
4687 (RANGE_SHIFT): New definition.
4688 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
4689 unexpected conditions, use shifts and appropriate types.
4690 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
4691
4692 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4693
4694 * grub-core/disk/raid.c (scan_devices): Check partition.
4695 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4696
4697 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4698
4699 Support BFS (befs) UUID.
4700
4701 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
4702 (grub_afs_small_data_element_header): New struct.
4703 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
4704 (grub_afs_read_attribute) [MODE_BFS]: New function.
4705 (grub_afs_iterate_dir): Allocate for complete inode.
4706 (grub_afs_mount): Likewise.
4707 (grub_afs_uuid) [MODE_BFS]: New function.
4708 (grub_afs_fs) [MODE_BFS]: Add .uuid.
4709
4710 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
4713 (zfs_unmount): Fix memory leak.
4714
4715 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 Support NTFS reparse points.
4718
4719 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
4720 (symlink_descriptor): New struct.
4721 (grub_ntfs_read_symlink): New function.
4722 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
4723 (grub_ntfs_open): Likewise.
4724
4725 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4726
4727 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
4728
4729 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4730
4731 fstest xnu_uuid subcommand.
4732
4733 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
4734 grub-core/commands/xnu_uuid.c.
4735 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
4736 (fstest): Handle xnu_uuid.
4737 (options): Document xnu_uuid.
4738 (argp_parser): Parse xnu_uuid.
4739
4740 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
4743 -l argument. Add newline at the end if printing.
4744 (GRUB_MOD_INIT): Document -l.
4745
4746 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
4749
4750 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 ZFS multi-device and version 33 support.
4753
4754 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
4755 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
4756 (grub_zfs_data): Add multidev-ice-related fields.
4757 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
4758 (dva_get_offset): Make dva const.
4759 (zfs_fetch_nvlist): New function.
4760 (fill_vdev_info_real): Likewise.
4761 (fill_vdev_info): Likewise.
4762 (check_pool_label): Likewise.
4763 (scan_disk): Likewise.
4764 (scan_devices): Likewise.
4765 (read_device): Likewise.
4766 (read_dva): Likewise.
4767 (zio_read_gang): Use read_dva.
4768 (zio_read_data): Likewise.
4769 (zap_leaf_lookup): Add missing endian conversion.
4770 (zap_verify): Add missing endian conversion. All users updated.
4771 (fzap_lookup): Likewise.
4772 (fzap_iterate): Likewise.
4773 (dnode_get_path): Handle SA bonus.
4774 (nvlist_find_value): Make input const. All users updated.
4775 (unmount_device): New function.
4776 (zfs_unmount): Use unmount_device.
4777 (zfs_mount): Use scan_disk.
4778 (zfs_mtime): New function.
4779 (grub_zfs_open): Handle system attributes.
4780 (fill_fs_info): Likewise.
4781 (grub_zfs_dir): Likewise.
4782 (grub_zfs_fs): Add mtime.
4783 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
4784 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
4785 (SA_MTIME_OFFSET): Likewise.
4786 (SA_SYMLINK_OFFSET): Likewise.
4787 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
4788 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
4789 (fstest): Support zfsinfo.
4790 (argp_parser): Likewise.
4791
4792 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
4795 error.
4796
4797 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4798
4799 ZFS fixes.
4800
4801 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
4802 sharing the same block. Iterate over correct number of indices.
4803 (dnode_get_path): Handle symlinks correctly.
4804
4805 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
4808
4809 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 Read label on HFS+.
4812
4813 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
4814 (grub_hfsplus_btree_search): Fix types.
4815 (grub_hfsplus_label): Implement.
4816
4817 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4818
4819 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
4820
4821 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
4824
4825 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 Fix symlink handling on iso9660.
4828
4829 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
4830 All users updated.
4831 (grub_iso9660_susp_iterate): Accept zero-size iterate.
4832 (grub_iso9660_read_symlink): Moved most of code ...
4833 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
4834
4835 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4838 Use union to avoid breaking strict-aliasing rules.
4839
4840 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 Support multi-extent iso files.
4843
4844 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
4845 Add node.
4846 (grub_fshelp_node): Revamp. All users updated.
4847 (FLAG_*): New enum.
4848 (read_node): New function.
4849 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
4850 All users updated.
4851 (grub_iso9660_mount): Don't attempt to read sua when there is none.
4852 (get_node_size): New function.
4853 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
4854 entries.
4855 Fix memory leak on . and ..
4856 (grub_iso9660_read): Use read_node.
4857 (grub_iso9660_close): Free node.
4858
4859 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 Fix tar 4G limit and handle paths containing dot.
4862
4863 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
4864 (canonicalize): New function.
4865 (grub_cpio_find_file): Use canonicalize. Store offs in
4866 grub_disk_addr_t.
4867 (grub_cpio_dir): Use grub_disk_addr_t.
4868 (grub_cpio_open): Likewise.
4869
4870 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 Fix handling of uncompressed blocks on squashfs and break 4G limit.
4873
4874 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
4875 unused flags.
4876 (grub_squash_inode): Add long_file and block_size.
4877 (grub_squash_cache_inode): New struct.
4878 (grub_squash_dirent): Make types into enum.
4879 (SQUASH_TYPE_LONG_REGULAR): New type.
4880 (grub_squash_frag_desc): Add field size.
4881 (SQUASH_BLOCK_FLAGS): New enum.
4882 (grub_squash_data): Use grub_squash_cache_inode.
4883 (grub_fshelp_node): Make ino_chunk 64-bit.
4884 (read_chunk): Minor argument change. All users updated.
4885 (squash_mount): Use correct le_to_cpu.
4886 (grub_squash_open): Handle LONG_REGULAR.
4887 (direct_read): New function.
4888 (grub_squash_read_data): Handle blocks correctly.
4889
4890 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
4893
4894 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4895
4896 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
4897
4898 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4899
4900 Fix 2G limit on ZFS.
4901
4902 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
4903 types.
4904 (uberblock_verify): Likewise.
4905 (dmu_read): Likewise.
4906 (grub_zfs_read): Likewise. Remove invalid cast.
4907
4908 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
4911 (grub_jfs_blkno): Fix incorrect shift.
4912 (grub_jfs_read_file): Use more appropriate types.
4913
4914 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 Support triple indirect on minix2 and minix3.
4917
4918 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
4919 Declare triple_indir_zone.
4920 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
4921 indirect.
4922
4923 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 Minix FS fixes.
4926
4927 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
4928 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
4929 Rename ctime to mtime. All users updated.
4930 (grub_minix_get_file_block): Fix types and double indirect computations.
4931
4932 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
4935 if no label is found.
4936 (grub_fat_iterate_dir): Fix file size type.
4937 (grub_fat_iterate_dir): Likewise.
4938
4939 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
4942 save some space.
4943 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
4944 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
4945
4946 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4947
4948 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
4949
4950 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 * util/import_gcry.py: Accept space between # and include.
4953
4954 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
4957
4958 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4959
4960 Fine grainely disable warnings on lexer. Remove Wno-error on it.
4961
4962 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
4963 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
4964 yylex_strncpy.
4965 * grub-core/script/yylex.l: Add fine-grained #pragma.
4966
4967 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4968
4969 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
4970 New inline function.
4971 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
4972 Likewise.
4973 (memset) [GRUB_UTIL]: Likewise.
4974 (memcmp) [GRUB_UTIL]: Likewise.
4975
4976 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4977
4978 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
4979 inline function rather than a define.
4980
4981 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 * util/grub-setup.c: Add missing include.
4984
4985 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 * util/ieee1275/grub-ofpathname.c: Add missing include.
4988
4989 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
4992 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
4993 Likewise.
4994
4995 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
4998 grub_memcmp usage.
4999
5000 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * util/grub-install.in: Add datarootdir as per automake manual
5003 suggestion.
5004 * util/grub-mknetdir.in: Likewise.
5005
5006 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
5009 suggestion.
5010 * util/grub.d/10_kfreebsd.in: Likewise.
5011 * util/grub.d/10_linux.in: Likewise.
5012 * util/grub.d/10_netbsd.in: Likewise.
5013 * util/grub.d/10_windows.in: Likewise.
5014 * util/grub.d/20_linux_xen.in: Likewise.
5015
5016 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 Remove redundant grub_kernel_image_size.
5019
5020 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
5021 _edata and _start.
5022 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
5023 the small code. It moves it only by few bytes but simplifies the code.
5024 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
5025 _start.
5026 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
5027 (grub_kernel_image_size): Removed.
5028 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
5029 (grub_kernel_image_size): Removed.
5030 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
5031 compiled with Apple toolchain.
5032 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
5033 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
5034 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
5035 (grub_total_module_size): Likewise.
5036 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
5037 Removed.
5038 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
5039 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
5040 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
5041 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
5042 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
5043 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
5044 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
5045 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
5046 Removed.
5047 (grub_total_module_size): Removed.
5048 * util/grub-mkimage.c (image_target_desc): Remove image_size.
5049 (image_targets): Likewise.
5050 Set .compressed_size to no field on sparc.
5051 (generate_image): Remove kernel_image_size handling.
5052
5053 2011-10-19 Szymon Janc <szymon@janc.net.pl>
5054
5055 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
5056 NULL pointer dereference.
5057
5058 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5059
5060 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
5061 done with a dedicated section.
5062
5063 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
5064 Ensure the correct position of boot_path.
5065 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
5066 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
5067 other fields.
5068 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
5069 * include/grub/boot.h: Removed. All references removed.
5070 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
5071 Removed.
5072 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
5073
5074 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5075
5076 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
5077 name.
5078
5079 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
5082
5083 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5084
5085 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5086 Don't add the bogus brackets.
5087
5088 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 ExFAT support.
5091
5092 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
5093 * grub-core/Makefile.core.def (exfat): New module.
5094 * grub-core/fs/exfat.c: New file.
5095 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
5096 (GRUB_FAT_ATTR_*): Make into an enum.
5097 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
5098 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
5099 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
5100 (GRUB_FAT_MAXFILE): Removed.
5101 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
5102 (grub_current_fat_bpb_t): New type.
5103 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
5104 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
5105 (grub_fat_dir_node_t): New type.
5106 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
5107 (fat_log2) [MODE_EXFAT]: Removed.
5108 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
5109 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
5110 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
5111 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
5112 (grub_fat_label) [MODE_EXFAT]: New function.
5113 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
5114 reserved_first_sector to 0.
5115
5116 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5117
5118 Move grub_reboot out of the kernel.
5119
5120 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
5121 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
5122 * grub-core/lib/efi/reboot.c: ... here.
5123 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
5124 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
5125 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
5126 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
5127 * grub-core/lib/i386/reboot_trampoline.S: ... here.
5128 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
5129 * grub-core/lib/ieee1275/reboot.c: ... here.
5130 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
5131 * grub-core/lib/mips/arc/reboot.c: ... here.
5132 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
5133 * grub-core/lib/mips/loongson/reboot.c: ...here.
5134 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
5135 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
5136 * include/grub/emu/misc.h (grub_reboot): New function declaration.
5137 * include/grub/i386/reboot.h: New file.
5138 * include/grub/mips/loongson/ec.h: Fix includes.
5139 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
5140 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
5141 * grub-core/lib/i386/reboot.c: New file.
5142
5143 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 Make grub_prefix into module to fix the arbitrary limit and save
5146 some space.
5147
5148 * grub-core/kern/emu/main.c (grub_prefix): Removed.
5149 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
5150 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
5151 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
5152 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
5153 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
5154 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
5155 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
5156 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
5157 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
5158 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
5159 * include/grub/ia64/efi/kernel.h: Removed.
5160 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
5161 (grub_prefix): Removed.
5162 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
5163 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
5164 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
5165 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
5166 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
5167 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
5168 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
5169 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
5170 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
5171 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
5172 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
5173 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
5174 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5175 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5176 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
5177 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
5178 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
5179 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5180 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
5181 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
5182 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
5183 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
5184 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
5185 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
5186 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
5187 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
5188 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
5189 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
5190 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
5191 from module.
5192 * util/grub-mkimage.c (image_target_desc): Removed prefix and
5193 prefix_end.
5194 (image_targets): Likewise.
5195 (generate_image): Put prefix as a module.
5196
5197 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5198
5199 Replace grub_module_iterate with FOR_MODULES.
5200
5201 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
5202 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
5203 (grub_efi_modules_addr): ...this.
5204 * grub-core/kern/efi/init.c (grub_modbase): New variable.
5205 (grub_efi_init): Set grub_modbase.
5206 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
5207 (grub_modbase): New variable.
5208 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
5209 (grub_modbase): New variable.
5210 (grub_machine_init): Set grub_modbase.
5211 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
5212 (grub_modbase): New variable.
5213 (grub_machine_init): Set grub_modbase.
5214 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
5215 (grub_modbase): New variable.
5216 (grub_machine_init): Set grub_modbase.
5217 * grub-core/kern/main.c (grub_module_iterate): Remove.
5218 (grub_modules_get_end): Use grub_modbase.
5219 (grub_load_modules): Use FOR_MODULES.
5220 (grub_load_config): Likewise.
5221 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
5222 (grub_modbase): New variable.
5223 (grub_machine_init): Set grub_modbase.
5224 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
5225 (grub_modbase): New variable.
5226 (grub_machine_init): Set grub_modbase.
5227 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
5228 Removed.
5229 (grub_modbase): New variable.
5230 (grub_machine_init): Set grub_modbase.
5231 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
5232 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
5233 (grub_module_iterate): Likewise.
5234 (grub_modbase): New variable declaration.
5235 (FOR_MODULES): New macro.
5236
5237 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5238
5239 * configure.ac: Check for __ctzdi2 and __ctzsi2.
5240 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
5241
5242 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5243
5244 Fix few obvious type discrepancies.
5245
5246 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
5247 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
5248 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
5249 variable.
5250 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
5251 and connected types.
5252 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
5253 offset.
5254 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
5255 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
5256 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
5257 and connected types.
5258
5259 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 Fix python 3.x incompatibilities.
5262
5263 * gentpl.py: Put brackets around print strings.
5264 * util/import_gcry.py: Open explicitly as utf-8.
5265 Use in instead of has_key.
5266
5267 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5268
5269 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
5270 (GRUB_XFS_INO_AGBITS): Make into inline function.
5271 (GRUB_XFS_INO_INOINAG): Likewise.
5272 (GRUB_XFS_INO_AG): Likewise.
5273 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
5274 (GRUB_XFS_EXTENT_OFFSET): Likewise.
5275 (GRUB_XFS_EXTENT_BLOCK): Likewise.
5276 (GRUB_XFS_EXTENT_SIZE): Likewise.
5277 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
5278 (GRUB_XFS_NEXT_DIRENT): Likewise.
5279 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
5280 (grub_xfs_read_file): Fix offset type.
5281
5282 2011-10-15 Robert Millan <rmh@gnu.org>
5283
5284 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
5285
5286 2011-10-15 Robert Millan <rmh@gnu.org>
5287
5288 Fix build problem on FreeBSD and GNU/kFreeBSD.
5289
5290 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
5291
5292 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5293
5294 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
5295
5296 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
5297 types.
5298 (grub_hfsplus_btree_recoffset): Likewise.
5299 (grub_hfsplus_btree_recptr): Likewise.
5300 (grub_hfsplus_find_block): Likewise.
5301 (grub_hfsplus_btree_search): Likewise.
5302 (grub_hfsplus_read_block): Likewise.
5303 (grub_hfsplus_read_file): Likewise.
5304 (grub_hfsplus_mount): Likewise.
5305 (grub_hfsplus_btree_iterate_node): Likewise.
5306 (grub_hfsplus_btree_search): Likewise.
5307 (grub_hfsplus_iterate_dir): Likewise.
5308 (grub_hfsplus_read): A small code simplification.
5309
5310 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5311
5312 * grub-core/kern/emu/hostdisk.c
5313 (convert_system_partition_to_system_disk): Don't assume that children
5314 of mapper nodes are mapper nodes.
5315
5316 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
5319 * include/grub/misc.h (grub_isxdigit): New function.
5320 * grub-core/video/colors.c (my_isxdigit): Removed. All users
5321 switched to grub_isxdigit.
5322 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
5323 number starting with a letter.
5324
5325 2011-10-09 Robert Millan <rmh@gnu.org>
5326
5327 LVM support for FreeBSD and GNU/kFreeBSD.
5328
5329 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
5330 GNU/kFreeBSD.
5331 (LVM_DEV_MAPPER_STRING): Move from here ...
5332 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
5333 * util/getroot.c: Include `<grub/util/lvm.h>'.
5334 (grub_util_get_dev_abstraction): Enable
5335 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
5336 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
5337 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
5338 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
5339 support it.
5340 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
5341 GNU/kFreeBSD.
5342 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
5343 when LVM abstraction is required for ${GRUB_DEVICE}.
5344
5345 2011-10-06 Szymon Janc <szymon@janc.net.pl>
5346
5347 Add support for LZO compression in GRUB:
5348 - import of minilzo library,
5349 - LZO decompression for btrfs,
5350 - lzop files decompression.
5351
5352 * grub-core/io/lzopio.c: New file.
5353 * grub-core/lib/adler32.c: Likewise.
5354 * grub-core/lib/minilzo/lzoconf.h: Likewise.
5355 * grub-core/lib/minilzo/lzodefs.h: Likewise.
5356 * grub-core/lib/minilzo/minilzo.c: Likewise.
5357 * grub-core/lib/minilzo/minilzo.h: Likewise.
5358 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
5359 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
5360 grub-core/lib/minilzo/minilzo.c to common.
5361 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
5362 cflags in cppflags.
5363 * grub-core/Makefile.core.def (btrfs): Likewise.
5364 * grub-core/Makefile.core.def (lzopio): New module.
5365 (adler32): Likewise.
5366 * grub-core/fs/btrfs.c: Include minilzo.h.
5367 (GRUB_BTRFS_COMPRESSION_LZO): New define.
5368 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
5369 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
5370 (grub_btrfs_lzo_decompress): New function.
5371 (grub_btrfs_extent_read): Add support for LZO compression type.
5372 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
5373 (GRUB_USHRT_MAX): Likewise.
5374 (GRUB_UINT_MAX): Likewise.
5375 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
5376 (UINT_MAX): Likewise.
5377 (CHAR_BIT): Likewise.
5378 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
5379 grub-core/lib/posix_wrap/limits.h
5380 (UCHAR_MAX): Likewise.
5381 * include/grub/file.h (grub_file_filter_id): New compression filter
5382 GRUB_FILE_FILTER_LZOPIO.
5383 * include/grub/file.h (grub_file_filter_id): Set
5384 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
5385 * include/grub/types.h (grub_get_unaligned16): New function.
5386 (grub_get_unaligned32): Likewise.
5387 (grub_get_unaligned64): Likewise.
5388 * util/import_gcry.py (cryptolist): Add adler32.
5389
5390 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
5391
5392 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
5393 in perspective decreases the complexity of build system and fixes
5394 compilation right now.
5395
5396 2011-10-01 Ales Nesrsta <starous@volny.cz>
5397
5398 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
5399 (fixed problem related to using UHCI with coreboot).
5400
5401 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
5402
5403 * gentpl.py: Use Autogen macros so that the output template file
5404 (Makefile.tpl) size is reduced.
5405
5406 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
5407
5408 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
5409 extra_dist.
5410
5411 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5412
5413 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
5414 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
5415
5416 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5417
5418 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
5419 _fullpath.
5420
5421 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5422
5423 Remove extra declaration of sleep for mingw32.
5424
5425 * util/misc.c (sleep) [__MINGW32__]: Removed.
5426 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
5427
5428 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5429
5430 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
5431 type and packname.
5432 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
5433 Resurrected.
5434 (NETBSD_BTINFO_BOOTWEDGE): New definition.
5435 (grub_netbsd_btinfo_bootwedge): New struct.
5436 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5437 New function.
5438 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
5439
5440 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
5441
5442 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
5443 loader.
5444
5445 2011-09-28 Andreas Born <futur.andy@googlemail.com>
5446
5447 Fix incorrect identifiers in bash-completion.
5448
5449 * util/bash-completion.d/grub-completion.bash.in
5450 (_grub_mkpasswd-pbkdf2): Rename to ...
5451 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
5452 (_grub_script-check): Rename to ...
5453 (_grub_script_check): ... this. All users updated.
5454
5455 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5456
5457 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
5458 Return 0 if disk isn't biosdisk.
5459
5460 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5461
5462 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
5463 on NetBSD.
5464 * Makefile.util.def (grub-fstest): Likewise.
5465
5466 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5467
5468 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
5469 Get sector size from disk label.
5470
5471 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
5472
5473 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
5474 */README* as well as README*.
5475 Reported by: Axel Beckert.
5476
5477 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5478
5479 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
5480 case of less than 256 MiB of RAM.
5481
5482 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * grub-core/commands/wildcard.c (make_regex): Handle @.
5485
5486 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * util/grub-install.in: Move cryptodisk logic to appropriate place.
5489
5490 2011-08-21 Szymon Janc <szymon@janc.net.pl>
5491
5492 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
5493 AC_LANG_CONFTEST macros.
5494
5495 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5496
5497 Add grub-fstest option to uncompress data for commands.
5498
5499 * util/grub-fstest.c (uncompress): New var.
5500 (options): New option -u.
5501
5502 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5503
5504 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5505 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
5506
5507 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5508
5509 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
5510 file type was not recognized correctly (not gzip or corrupted).
5511
5512 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
5515 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
5516
5517 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5518
5519 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
5520 loongson.
5521 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5522 video_radeon_fuloong2e.
5523 * grub-core/video/radeon_fuloong2e.c: New file.
5524 * include/grub/video.h (grub_video_id_t): Add new ID
5525 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
5526
5527 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
5530 define.
5531 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
5532 that PRID matches the detected subplatform and reset the subplatform
5533 if it doesn't.
5534
5535 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
5538
5539 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 Fix PCI iterating on functions >= 4.
5542
5543 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
5544 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
5545 Removed.
5546 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
5547 (grub_pci_read): Fix bitmask.
5548 (grub_pci_read_word): Likewise.
5549 (grub_pci_read_byte): Likewise.
5550 (grub_pci_write): Likewise.
5551 (grub_pci_write_word): Likewise.
5552 (grub_pci_write_byte): Likewise.
5553
5554 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
5557 can still be specified in TARGET_CFLAGS)
5558
5559 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
5562
5563 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
5564 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
5565 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
5566 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
5567 (FULOONG): Rename to ...
5568 (FULOONG2F): ... this. All users updated.
5569 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
5570 (machtype_fuloong2f_str): ... this.
5571 (machtype_fuloong2e_str): New string.
5572 Check for machtype_fuloong2e_str.
5573 * grub-core/loader/mips/linux.c (loongson_machtypes)
5574 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
5575 * grub-core/term/serial.c (loongson_defserial)
5576 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
5577 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
5578 loongson_defserial.
5579 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
5580 Rename to ...
5581 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
5582 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
5583 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
5584 to IMAGE_FULOONG2F_FLASH. All users updated.
5585 (image_targets): Rename images.
5586 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
5587
5588 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5589
5590 Make enable of disk cache statistics code configurable.
5591
5592 * configure.ac: --enable-cache-stats added.
5593 * config.h.in (DISK_CACHE_STATS): New define.
5594 * grub-core/Makefile.core.def (cacheinfo): New command.
5595 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
5596 * grub-core/commands/cacheinfo.c: New file.
5597 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
5598 moved to cacheinfo.c.
5599 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
5600 debug code.
5601 * include/grub/disk.h: Likewise.
5602
5603 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5604
5605 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
5606 * grub-core/Makefile.am: Likewise.
5607
5608 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5609
5610 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
5611 non-zero pull.
5612
5613 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
5616 All users updated.
5617 (grub_jfs_lookup_symlink): Use correct starting inode.
5618
5619 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * util/grub-setup.c (main): Add missing gcry initialisation.
5622
5623 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 Don't accept text modes on EFI when booting Linux.
5626
5627 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
5628 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
5629
5630 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
5631 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5632
5633 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
5634 use of "/path/.." as in grub-install for EFI as well as handling
5635 symlinks correctly.
5636 Fixes Debian bug #637768.
5637
5638 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5639
5640 * util/grub-probe.c: Remove duplicate #include.
5641
5642 2011-08-10 Robert Millan <rmh@gnu.org>
5643
5644 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
5645
5646 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
5647 function.
5648 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
5649 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
5650
5651 2011-08-03 Robert Millan <rmh@gnu.org>
5652
5653 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
5654 la_array as packed.
5655 Reported by: Zachary Bedell
5656
5657 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5658
5659 * configure.ac: The Loongson port requires grub-mkfont due to its
5660 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
5661 be built.
5662
5663 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5664
5665 * util/grub-install.in: Don't source grub-mkconfig_lib until after
5666 processing arguments (otherwise help2man fails when GRUB has not yet
5667 been installed).
5668
5669 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5670
5671 New script grub-mkstandalone.
5672
5673 * Makefile.util.def (grub-mkstandalone): New script.
5674 * docs/man/grub-mkstandalone.h2m: New file.
5675 * util/grub-mkstandalone.in: Likewise.
5676
5677 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 Support ATA disks with 4K sectors.
5680
5681 * include/grub/ata.h (grub_ata): New member log_sector_size.
5682 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
5683 (grub_ata_identify): Read sector size.
5684 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
5685
5686 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5687
5688 * util/grub-install.in: Don't use uhci outside of x86.
5689
5690 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 * util/grub-mkrescue.in: Add missing quotes.
5693
5694 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5695
5696 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
5697 dereference.
5698
5699 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5700
5701 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
5702
5703 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 * include/grub/video.h: add missing EXPORT_FUND on
5706 grub_video_edid_checksum and grub_video_edid_preferred_mode.
5707
5708 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5709
5710 * include/grub/mips/kernel.h: Fix define conflict.
5711
5712 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5713
5714 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
5715 all four ways.
5716
5717 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
5718
5719 Preferred resolution detection for VBE.
5720
5721 * grub-core/video/video.c (grub_video_edid_checksum): New function.
5722 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
5723 the Flat Panel extension, in line with the X.org VESA driver.
5724 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
5725 New function.
5726 (grub_vbe_bios_get_ddc_capabilities): Likewise.
5727 (grub_vbe_bios_read_edid): Likewise.
5728 (grub_vbe_get_preferred_mode): Likewise.
5729 (grub_video_vbe_setup): When the mode is "auto", try to get the
5730 preferred mode from VBE, and use the largest mode that is no larger
5731 than the preferred mode (some BIOSes expose a preferred mode that is
5732 not in their mode list!). If this fails, fall back to 640x480 as a
5733 safe conservative choice.
5734 (grub_video_vbe_get_edid): New function.
5735 (grub_video_vbe_adapter): Add get_edid.
5736 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
5737 (struct grub_video_adapter): Add get_edid.
5738 (grub_video_edid_checksum): Add prototype.
5739 (grub_video_edid_preferred_mode): Likewise.
5740 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
5741 structure.
5742
5743 * grub-core/commands/videoinfo.c (print_edid): New function.
5744 (grub_cmd_videoinfo): Print EDID if available.
5745
5746 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
5747 is more appropriate on a wider range of platforms than 640x480.
5748 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
5749 documentation.
5750
5751 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
5754
5755 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 * po/POTFILES.in: Regenerate.
5758
5759 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
5762 incorrect memory usage.
5763
5764 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 * util/grub-install.in: Source grub-mkconfig_lib.
5767
5768 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5769
5770 Remove getroot.c from core on emu platform.
5771
5772 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
5773 kern/emu/raid.c.
5774 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
5775 useless.
5776 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
5777 * util/getroot.c (get_win32_path): ... here.
5778 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
5779 * util/getroot.c (fini_libzfs): ... here.
5780 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
5781 * util/getroot.c (grub_get_libzfs_handle): ... here.
5782 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
5783 Moved from here...
5784 * util/getroot.c (grub_find_zpool_from_dir): ... here.
5785 * grub-core/kern/emu/misc.c
5786 (grub_make_system_path_relative_to_its_root): Moved from here...
5787 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
5788 * grub-core/kern/emu/getroot.c: Moved from here ...
5789 * util/getroot.c: ... here. All users updated.
5790 * grub-core/kern/emu/raid.c: Moved from here ...
5791 * util/raid.c: ... here. All users updated.
5792
5793 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5794
5795 * po/POTFILES.in: Regenerate.
5796
5797 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5798
5799 Fix compilation on GNU/Linux.
5800
5801 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
5802 Disable geli.
5803 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
5804 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
5805 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
5806
5807 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5808 2011-07-07 Michael Gorven <michael@gorven.za.net>
5809 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
5810
5811 LUKS and GELI support.
5812
5813 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
5814 grub-core/disk/luks.c, grub-core/disk/geli.c,
5815 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
5816 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
5817 grub-core/lib/arg.c.
5818 (libgrubmods.a): Remove gcrypts cflags and cppflags.
5819 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
5820 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
5821 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
5822 (grub-bin2h): Add libgcry.a.
5823 (grub-mkimage): Likewise.
5824 (grub-mkrelpath): Likewise.
5825 (grub-script-check): Likewise.
5826 (grub-editenv): Likewise.
5827 (grub-mkpasswd-pbkdf2): Likewise.
5828 (grub-pe2elf): Likewise.
5829 (grub-fstest): Likewise.
5830 (grub-mkfont): Likewise.
5831 (grub-mkdevicemap): Likewise.
5832 (grub-probe): Likewise.
5833 (grub-ofpath): Likewise.
5834 (grub-mklayout): Likewise.
5835 (example_unit_test): Likewise.
5836 (grub-menulst2cfg): Likewise.
5837 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
5838 * grub-core/Makefile.core.def (cryptodisk): New module.
5839 (luks): Likewise.
5840 (geli): Likewise.
5841 * grub-core/disk/AFSplitter.c: New file.
5842 * grub-core/disk/cryptodisk.c: Likewise.
5843 * grub-core/disk/geli.c: Likewise.
5844 * grub-core/disk/luks.c: Likewise.
5845 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
5846 grub_util_is_lvm.
5847 (grub_util_get_dm_abstraction): New function.
5848 (grub_util_follow_gpart_up): Likewise.
5849 (grub_util_get_geom_abstraction): Likewise.
5850 (grub_util_get_dev_abstraction): Use new functions.
5851 (grub_util_pull_device): Pull GELI and LUKS.
5852 (grub_util_get_grub_dev): Handle LUKS and GELI.
5853 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
5854 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
5855 (follow_geom_up): Removed.
5856 (grub_util_fd_seek): New function.
5857 (open_device): Use grub_util_fd_seek.
5858 (nread): Rename to ..
5859 (grub_util_fd_read): ... this. All users updated.
5860 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
5861 (grub_crypto_cbc_decrypt): Likewise.
5862 (grub_crypto_hmac_write): Likewise.
5863 (grub_crypto_hmac_buffer): Likewise.
5864 (grub_password_get): Extend to util.
5865 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
5866 New member modname.
5867 (gcry_md_spec) [GRUB_UTIL]: Likewise.
5868 * include/grub/cryptodisk.h: New file.
5869 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
5870 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
5871 LUKS and GELI.
5872 (grub_util_follow_gpart_up): New proto.
5873 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
5874 (grub_util_fd_read): Likewise.
5875 (grub_cryptodisk_cheat_mount): Likewise.
5876 (grub_util_cryptodisk_print_uuid): Likewise.
5877 (grub_util_get_fd_sectors): Likewise.
5878 * util/grub-fstest.c (mount_crypt): New var.
5879 (fstest): Mount crypto if requested.
5880 (options): New option -C.
5881 (argp_parser): Parse -C.
5882 (main): Init and fini gcry.
5883 * util/grub-install.in: Support cryptodisk install.
5884 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
5885 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
5886 cryptodisk.
5887 (prepare_grub_to_access_device): Likewise.
5888 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
5889 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
5890 (probe_cryptodisk_uuid): New function.
5891 (probe_abstraction): Likewise.
5892 (probe): Use new functions.
5893 * util/import_gcry.py: Create Makefile.utilgcry.def.
5894 Add modname member.
5895
5896 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5897
5898 Lazy device scanning.
5899
5900 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
5901 (grub-setup): Remove util/raid.c.
5902 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
5903 * grub-core/disk/lvm.c (scan_depth): New variable.
5904 (grub_lvm_iterate): Rescan if necessary.
5905 (find_lv): New function based on grub_lvm_open.
5906 (grub_lvm_open): Use find_lv. Rescan on error.
5907 (is_node_readable): New function.
5908 (is_lv_readable): Likewise.
5909 (grub_lvm_scan_device): Skip already found disks.
5910 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
5911 Stop if searched device is found and readable.
5912 * grub-core/disk/raid.c (inscnt): New variable.
5913 (scan_depth): Likewise.
5914 (scan_devices): New function based on grub_raid_register. Abort if
5915 looked for device is found.
5916 (grub_raid_iterate): Rescan if needed.
5917 (find_array): NEw function based on -grub_raid_open.
5918 (grub_raid_open): Use find_array and rescan.
5919 (insert_array): Set became_readable_at.
5920 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
5921 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
5922 New function.
5923 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
5924 (grub_util_pull_device): New function.
5925 (grub_util_get_grub_dev): Call grub_util_pull_device.
5926 * util/raid.c: Moved to ..
5927 * grub-core/kern/emu/raid.c: ... here.
5928 (grub_util_raid_getmembers): New parameter "bootable".
5929 All users updated. Support 1.x.
5930 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
5931 All users updated.
5932 * include/grub/disk.h (grub_disk_pull_t): New enum.
5933 (grub_disk_dev): Change iterate prototype.
5934 All users updated.
5935 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
5936 New proto.
5937 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
5938 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
5939 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
5940 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
5941 All users updated.
5942 * include/grub/util/raid.h: Removed.
5943
5944 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
5945
5946 * po/POTFILES.in: Regenerate.
5947
5948 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
5949
5950 Unify sparc init with other ieee1275.
5951
5952 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
5953 instead of kern/sparc64/ieee1275/init.c.
5954 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
5955 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
5956 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
5957 grub/machine/kernel.h.
5958 (grub_ieee1275_original_stack) [__sparc__]: New variable.
5959 (grub_claim_heap) [__sparc__]: Use sparc version.
5960 (grub_machine_init): Moved args parsing to
5961 (grub_parse_cmdline): ...this.
5962 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
5963 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
5964 New definition.
5965 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
5966
5967 Move BOOTP to separate file.
5968
5969 * grub-core/Makefile.core.def (net): Add net/bootp.c.
5970 * grub-core/net/net.c: Move all BOOTP functions to
5971 * grub-core/net/bootp.c: ... here.
5972
5973 Use frame interface on PXE.
5974
5975 * grub-core/Makefile.core.def (pxecmd): Removed.
5976 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
5977 * grub-core/commands/i386/pc/pxecmd.c: Removed.
5978 * grub-core/i386/pc/pxe.c: Moved from here ...
5979 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
5980 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
5981 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
5982
5983 EFI network support.
5984
5985 * grub-core/Makefile.core.def (efinet): New module.
5986 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
5987 here...
5988 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
5989 All users updated.
5990 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
5991 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
5992 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
5993 * grub-core/net/drivers/efi/efinet.c: New file.
5994 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
5995 (grub_efi_net_config): New extern var.
5996
5997 Various cleanups and bugfixes.
5998
5999 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
6000 error.
6001 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
6002 disk declared as partition.
6003 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
6004 leak on failure.
6005 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
6006 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
6007 (grub_debug_zalloc): Likewise.
6008 (grub_debug_realloc): Likewise.
6009 (grub_debug_memalign): Likewise.
6010 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
6011 Check that target is IPv4.
6012 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
6013 local-mac-address as fallback.
6014 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
6015 memory leak.
6016 * grub-core/net/ip.c (ipchksum): Rename to ...
6017 (grub_net_ip_chksum): ... this. All users updated.
6018 (grub_net_recv_ip_packets): Special handling for DHCP.
6019 * util/grub-mkimage.c (generate_image): Zero-out aout header.
6020
6021 Unify prefix handling
6022
6023 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
6024 (grub_machine_get_bootlocation): ... this.
6025 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
6026 (grub_machine_get_bootlocation): ... this.
6027 (grub_prefix): New variable.
6028 (prefix): Removed.
6029 (root_dev): New variable.
6030 (dir): Likewise.
6031 (main): Use new variables.
6032 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
6033 Revamped into ...
6034 (grub_machine_get_bootlocation): ... this.
6035 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
6036 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
6037 (grub_machine_get_bootlocation): ... this.
6038 (grub_machine_set_prefix): Removed.
6039 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
6040 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
6041 Revamped into ...
6042 (grub_machine_get_bootlocation): ... this.
6043 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
6044 (grub_set_prefix_and_root): ... this. All users updated.
6045 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
6046 Revamped into ...
6047 (grub_machine_get_bootlocation): ... this.
6048 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
6049 (grub_machine_get_bootlocation): New proto.
6050 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
6051
6052 Less intrusive and more reliable seek on network implementation.
6053
6054 * grub-core/kern/file.c (grub_file_net_seek): Removed.
6055 (grub_file_seek): Don't call grub_file_net_seek.
6056 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
6057 (grub_net_fs_read_real): .. this.
6058 (grub_net_seek_real): Use net->offset.
6059 (grub_net_fs_read): Seek if necessary.
6060
6061 Unify IEEE1275 netwotk config with the other platforms.
6062
6063 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
6064 New variable.
6065 (grub_machine_get_bootlocation): Support network.
6066 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
6067 Support type and device parsing.
6068 (grub_ieee1275_get_device_type): New function.
6069 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
6070 into ...
6071 (grub_ieee1275_net_config_real): ... this.
6072 (grub_ofnet_probecards): Removed.
6073 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
6074 * include/grub/ieee1275/ofnet.h: Removed.
6075 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
6076 extern var.
6077 (grub_ieee1275_get_device_type): New function.
6078
6079 Unify network device closing across platforms and make more robust.
6080
6081 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
6082 grub_grubnet_fini.
6083 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
6084 already.
6085 * grub-core/net/net.c (grub_net_network_level_interface_register):
6086 Update num_ifaces.
6087 (grub_net_card_unregister): Close all interfaces.
6088 (receive_packets): Don't poll if no iterfaces are registered.
6089 Open if necessary.
6090 (grub_net_fini_hw): New function.
6091 (grub_net_restore_hw): Likewise.
6092 (fini_hnd): New variable.
6093 (GRUB_MOD_INIT): Register preboot hook.
6094 (GRUB_MOD_FINI): Run and unregister preboot hook.
6095
6096 Poll network cards when idle.
6097
6098 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
6099 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
6100 * grub-core/net/net.c (receive_packets): Save last poll time.
6101 (grub_net_poll_cards_idle_real): New function.
6102 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
6103 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
6104 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
6105
6106 Rename ofnet interfaces.
6107
6108 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
6109 (grub_ofnet_findcards): Use ofnet_%s names.
6110
6111 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
6112
6113 Cleanup socket opening.
6114
6115 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
6116 (grub_net_fs_close): Likewise.
6117 (grub_net_fs_read_real): Use eof member.
6118 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
6119 (+grub_net_udp_close): New inline function.
6120
6121 * include/grub/net/tftp.h: Moved to the top of ...
6122 * grub-core/net/tftp.c: ... here.
6123 * include/grub/net/ip.h: Moved mostly to the top of ...
6124 * grub-core/net/ip.c: ... here.
6125 * include/grub/net/ethernet.h: Moved mostly to the top of ...
6126 * grub-core/net/ethernet.c: ... here.
6127
6128 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
6129
6130 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
6131 FS name.
6132
6133 * include/grub/net/ip.h (ipv4_ini): Removed.
6134 (ipv4_fini): Likewise.
6135
6136 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
6137 (grub_net_send_ip_packets): Likewise.
6138
6139 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
6142 grub_read_cmos prototype.
6143
6144 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 VGA text support in qemu-mips
6147
6148 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
6149 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
6150 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
6151 text.
6152 * grub-core/kern/i386/qemu/init.c: Renamed to ...
6153 * grub-core/kern/vga_init.c: ... this.
6154 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
6155 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
6156 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
6157 Adjust.
6158 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
6159 GRUB_MACHINE_PCI_IO_BASE.
6160
6161 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6162
6163 MIPS qemu flash support.
6164
6165 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
6166 magic.
6167 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
6168 (grub_machine_init): Probe memory if its size isn't known.
6169 * util/grub-mkimage.c (image_targets): Add flash targets.
6170 (generate_image): Handle flash targets.
6171
6172 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 MIPS qemu at_keyboard support.
6175
6176 * gentpl.py (videoinkernel): Add qemu-mips.
6177 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
6178 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
6179 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
6180 modules.
6181 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
6182 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
6183 * grub-core/term/serial.c (grub_serial_register)
6184 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
6185
6186 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 CMOS support on sparc.
6189
6190 * gentpl.py (cmos): Add powerpc and sparc.
6191 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
6192 powerpc and sparc.
6193 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
6194 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
6195 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
6196 grub_set_datetime_cmos.
6197 * grub-core/lib/ieee1275/cmos.c: New file.
6198 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
6199 (find_rtc): Set no_ieee1275_rtc on error.
6200 (grub_get_datetime): Call grub_get_datetime_cmos on error.
6201 (grub_set_datetime): Call grub_set_datetime_cmos on error.
6202 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
6203 fail. Move value to argument. All users updated
6204 (grub_cmos_write): Likewise.
6205 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
6206 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
6207 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
6208 grub_get_datetime_cmos and grub_set_datetime_cmos.
6209
6210 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6211
6212 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
6213 sourcing grub-mkconfig_lib.
6214 * util/update-grub_lib.in: Likewise.
6215 * util/grub.d/00_header.in: Likewise.
6216 * util/grub.d/10_hurd.in: Likewise.
6217 * util/grub.d/10_kfreebsd.in: Likewise.
6218 * util/grub.d/10_linux.in: Likewise.
6219 * util/grub.d/10_netbsd.in: Likewise.
6220 * util/grub.d/10_windows.in: Likewise.
6221 * util/grub.d/20_linux_xen.in: Likewise.
6222 * util/grub.d/30_os-prober.in: Likewise.
6223
6224 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
6225
6226 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6227 default_bg_color rather than black.
6228 (grub_gfxterm_fullscreen): Likewise.
6229 (grub_gfxterm_background_color_cmd): Save new background color in
6230 default_bg_color.
6231
6232 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
6235
6236 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6237
6238 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
6239 mismerge.
6240
6241 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 Chainloading on coreboot support.
6244
6245 * grub-core/Makefile.core.def (chain): Add coreboot.
6246 * grub-core/loader/i386/coreboot/chainloader.c: New file.
6247
6248 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
6251 if it happens.
6252
6253 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 Implement time command.
6256
6257 * grub-core/Makefile.core.def (time): New module.
6258 * grub-core/commands/time.c: New file.
6259 * grub-core/script/parser.y: Remove "time" keyword.
6260 * grub-core/script/yylex.l: Likewise.
6261
6262 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6263
6264 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
6265
6266 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
6269 when handling leftovers.
6270
6271 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
6274 so that help2man doesn't fail.
6275
6276 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
6279 type in pointers on sparc64.
6280 (get_card_packet): Likewise.
6281
6282 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
6283
6284 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
6285 with `*'.
6286 (grub_cmd_videoinfo): Fetch current video mode.
6287
6288 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6289
6290 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
6291 because of underlying system restrictions.
6292
6293 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
6296 necessary.
6297
6298 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 Coreboot video support.
6301
6302 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
6303 (vbe): Likewise.
6304 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
6305 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
6306 here ...
6307 * grub-core/kern/i386/int.S: ... here.
6308 * grub-core/video/i386/pc/vbe.c: Updated includes.
6309 * grub-core/video/i386/pc/vga.c: Likewise.
6310 * include/grub/i386/coreboot/memory.h
6311 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
6312 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
6313 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
6314 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
6315 Disable interrupts.
6316 * include/grub/i386/pc/vga.h: Removed. All users updated.
6317
6318 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6319
6320 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
6321 definitions for dprintf.
6322 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
6323
6324 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6325
6326 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
6327 prototype.
6328 (get_card_packet): Likewise.
6329
6330 2011-06-26 Yves Blusseau <blusseau@zetam.org>
6331
6332 Display the path of the file when file is not found
6333
6334 * grub-core/fs/fat.c: Display the filename when file is not found.
6335 * grub-core/fs/fshelp.c: Likewise.
6336 * grub-core/fs/hfs.c: Likewise.
6337 * grub-core/fs/jfs.c: Likewise.
6338 * grub-core/fs/minix.c: Likewise.
6339 * grub-core/fs/ufs.c: Likewise.
6340 * grub-core/fs/btrfs.c: Likewise.
6341 * grub-core/commands/i386/pc/play.c: Likewise.
6342
6343 2011-06-26 Szymon Janc <szymon@janc.net.pl>
6344
6345 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
6346 pointer checks before calling grub_free().
6347 * grub-core/commands/wildcard.c (match_devices): Likewise.
6348 * grub-core/commands/wildcard.c (match_files): Likewise.
6349 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
6350 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
6351 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
6352 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
6353 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
6354 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
6355 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
6356 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
6357 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
6358
6359 2011-06-25 Patrick <p55@mailinator.com>
6360
6361 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
6362
6363 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
6366 (grub_pxe_send): Likewise.
6367 (GRUB_MOD_INIT): Fix types.
6368
6369 2011-06-24 Szymon Janc <szymon@janc.net.pl>
6370
6371 * grub-core/io/xzio.c: Fix code style issues
6372
6373 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6374 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
6375
6376 Network infrastructure.
6377 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
6378
6379 * include/grub/net/arp.h: New file.
6380 * include/grub/net/device.h: Likewise.
6381 * include/grub/net/ethernet.h: Likewise.
6382 * include/grub/net/ip.h: Likewise.
6383 * include/grub/net/netbuff.h: Likewise.
6384 * include/grub/net/tftp.h: Likewise.
6385 * include/grub/net/udp.h: Likewise.
6386 * include/grub/ieee1275/ofnet.h: Likewise.
6387 * include/grub/emu/export.h: Likewise.
6388 * include/grub/net.h: Likewise.
6389 * grub-core/net/arp.c: Likewise.
6390 * grub-core/net/ethernet.c: Likewise.
6391 * grub-core/net/ip.c: Likewise.
6392 * grub-core/net/udp.c: Likewise.
6393 * grub-core/net/tftp.c: Likewise.
6394 * grub-core/net/netbuff.c: Likewise.
6395 * grub-core/net/net.c: Likewise.
6396 * grub-core/net/drivers/emu/emunet.c: Likewise.
6397 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
6398 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
6399 export.h.
6400 * grub-core/Makefile.core.def (net): New module.
6401 (tftp): Likewise.
6402 (ofnet): Likewise.
6403 (emunet): Likewise.
6404 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
6405 network protocols.
6406 * grub-core/kern/device.c (grub_net_open) : New variable.
6407 (grub_device_open): Handle network device.
6408 (grub_device_close): Likewise.
6409 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
6410 (grub_grubnet_fini): Likewise.
6411 (grub_file_seek): Seek in network device.
6412 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
6413 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
6414 network root.
6415 (grub_machine_fini): Call grub_grubnet_fini.
6416 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
6417 network.
6418 (grub_ieee1275_get_aliasdevname): New function.
6419 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6420 Add unofficial Solaris network info.
6421 (grub_multiboot_make_mbi): Likewise.
6422 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
6423 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
6424 * include/grub/device.h (grub_fs): Removed.
6425 * include/grub/err.h (grub_err_t): Add network-related values.
6426 * include/grub/i386/pc/pxe.h: Removed bootp parts.
6427 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
6428 (grub_ieee1275_get_aliasdevname): New proto.
6429 * include/grub/net.h: Rewritten.
6430
6431 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
6434 names.
6435
6436 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6437
6438 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
6439 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
6440 it truncates the output.
6441 Reported by: Ximin Luo.
6442
6443 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
6446
6447 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
6450 partmap before abstraction.
6451
6452 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
6453
6454 * util/grub-mkconfig_lib.in: Add missing quotes.
6455
6456 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
6459 old method if mountinfo would return /dev/root and /dev/root doesn't
6460 exist.
6461
6462 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 ZFS zlib support
6465
6466 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
6467 (decomp_table): Add zlib entries.
6468 (zio_read): USe 8 bits for compression function rather than 3.
6469 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
6470
6471 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6472
6473 * grub-core/disk/ahci.c: Add missing license statements.
6474 * grub-core/fs/romfs.c: Likewise.
6475 * grub-core/lib/ia64/setjmp.S: Likewise.
6476 * grub-core/loader/i386/pc/freedos.c: Likewise.
6477 * grub-core/loader/ia64/efi/linux.c: Likewise.
6478 * grub-core/video/colors.c: Likewise.
6479 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
6480
6481 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 AHCI support.
6484
6485 * grub-core/Makefile.core.def (ata_pthru): Removed.
6486 (ahci): New module.
6487 (pata): Likewise.
6488 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
6489 on unload.
6490 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
6491 readwrite.
6492 (grub_hdparm_do_check_powermode_cmd): Likewise.
6493 (grub_hdparm_do_smart_cmd): Likewise.
6494 (grub_hdparm_set_val_cmd): Likewise.
6495 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
6496 * grub-core/disk/ahci.c: New file.
6497 * grub-core/disk/ata.c: Factor out the low-level part into ...
6498 * grub-core/disk/pata.c: ... here.
6499 * grub-core/disk/ata_pthru.c: Contents moved to ...
6500 * grub-core/disk/pata.c: ... here.
6501 * grub-core/disk/scsi.c (grub_scsi_names): New array.
6502 (grub_scsi_iterate): Use grub_scsi_names.
6503 (grub_scsi_open): Likewise.
6504 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
6505 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
6506 (grub_ata_regs_t): New struct.
6507 (grub_disk_ata_pass_through_parms): Likewise.
6508 (grub_ata_device): Renamed to ...
6509 (grub_ata): ... this.
6510 (grub_ata_dev): New struct.
6511 Removed all low-level inline functions.
6512 * include/grub/scsi.h: Add PATA and AHCI subsystems.
6513 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
6514 iterate hooks and open. All users updated.
6515 * util/grub-install.in: Handle AHCI disk module.
6516
6517 2011-06-23 Szymon Janc <szymon@janc.net.pl>
6518
6519 Add support for DRI and RSTn markers in JPEG files.
6520
6521 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
6522 (JPEG_MARKER_RST0): Likewise.
6523 (JPEG_MARKER_RST1): Likewise.
6524 (JPEG_MARKER_RST2): Likewise.
6525 (JPEG_MARKER_RST3): Likewise.
6526 (JPEG_MARKER_RST4): Likewise.
6527 (JPEG_MARKER_RST5): Likewise.
6528 (JPEG_MARKER_RST6): Likewise.
6529 (JPEG_MARKER_RST7): Likewise.
6530 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
6531 (grub_jpeg_decode_dri): New function.
6532 (grub_jpeg_decode_sos): Move image data related part into
6533 grub_jpeg_decode_data function.
6534 (grub_jpeg_decode_data): New function.
6535 (grub_jpeg_reset): New function.
6536 (grub_jpeg_decode_jpeg): Handle new markers.
6537
6538 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * util/ieee1275/ofpath.c (check_sas): Close fd.
6541 (main): Free of_path.
6542 Reported by: David Volgyes <dvolgyes>.
6543
6544 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
6547 Reported by: David Volgyes <dvolgyes>.
6548
6549 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
6552 file after stat.
6553 Reported by: David Volgyes <dvolgyes>.
6554
6555 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
6558
6559 Reported by: David Volgyes <dvolgyes>.
6560
6561 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
6564 Prevent memory leak.
6565
6566 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
6569 (main): Close file.
6570 Reported by: David Volgyes <dvolgyes>.
6571
6572 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6573
6574 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
6575 to continue if allocation is failed.
6576
6577 Reported by: David Volgyes <dvolgyes>.
6578
6579 2011-06-23 David Volgyes <dvolgyes>
6580
6581 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
6582 dereference.
6583
6584 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 Fix spurious warning.
6587
6588 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
6589 (acorn_partition_map_find): Use .bin member.
6590
6591 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6592
6593 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
6594 /dev/root as a valid device.
6595
6596 2011-06-23 Jim Meyering <meyering@redhat.com>
6597
6598 Avoid NULL deref in grub_device_open.
6599
6600 * grub-core/kern/device.c (grub_device_open): Don't dereference
6601 a NULL pointer upon failed grub_env_get.
6602
6603 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 Support non-512B sectors and agglomerate reads.
6606
6607 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
6608 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
6609 (disk_io_guid): Removed.
6610 (make_devices): Locate solely by BlockIO.
6611 (grub_efidisk_open): Fill log_sector_size and total_sectors.
6612 (grub_efidisk_read): Use read_blocks.
6613 (grub_efidisk_write): Use write_blocks.
6614 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
6615 log_sector_size.
6616 (get_safe_sectors): Handle non-512B sectors.
6617 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
6618 sectors.
6619 (grub_biosdisk_write): Handle non-512B sectors.
6620 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
6621 (grub_scsi_read): Remove special non-512B block handling (now handled
6622 one level up).
6623 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
6624 and do sanity checks.
6625 (grub_disk_adjust_range): Handle non-512B sectors.
6626 (transform_sector): New function.
6627 (grub_disk_read_small): Likewise.
6628 (grub_disk_read): Rewritten.
6629 (grub_disk_write): Handle non-512B sectors.
6630 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
6631 log_sector_size.
6632 (open_device): Use log_sector_size.
6633 (grub_util_biosdisk_read): Likewise.
6634 (grub_util_biosdisk_write): Likewise.
6635 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
6636 non-512B sectors.
6637 (pc_partition_map_embed): Likewise.
6638 * include/grub/disk.h (grub_disk): New field log_sector_size.
6639 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
6640 (GRUB_DISK_CACHE_BITS): Increased to 6.
6641 * util/grub-fstest.c (fstest): New command testload.
6642 (argp_parser): Likewise.
6643
6644 2011-06-16 Robert Millan <rmh@gnu.org>
6645
6646 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
6647 `ata' driver on kernel of FreeBSD 9.
6648
6649 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
6650 (get_ataraid_disk_name): New functions.
6651 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
6652 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
6653 get_ataraid_disk_name() and get_ada_disk_name().
6654
6655 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
6656
6657 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
6658 input format.
6659
6660 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
6661
6662 * docs/grub.texi (Obtaining and Building GRUB): Substitute
6663 `ftp.gnu.org' for `alpha.gnu.org'.
6664
6665 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6666
6667 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
6668 partitions under /dev/disk/by-id/.
6669
6670 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6671
6672 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
6673 after ten consecutive open failures. Scanning all the way up to
6674 10000 is excessive and can cause serious performance problems in
6675 some configurations.
6676 Fixes Ubuntu bug #787461.
6677
6678 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
6681 opening new one.
6682
6683 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
6684 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 Don't stat devices unless we have to.
6687
6688 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
6689 dir == /dev/mapper.
6690 (grub_guess_root_device): Use already known os_dev if possible.
6691 * grub-core/kern/emu/hostdisk.c
6692 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
6693 if device is known to be a dm one.
6694
6695 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
6696
6697 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
6698 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
6699 Reported by: Pawel Tecza.
6700
6701 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
6704 (lsefisystab): Likewise.
6705 (lssal): Likewise.
6706 (lsefimmap): Likewise.
6707 (hdparm): Enable on qemu-mips.
6708 (setjmp): Add ia64 nodist.
6709 (serial): Simplify tags.
6710
6711 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6712
6713 * Makefile.util.def (grub-ofpathname): Install manual page.
6714
6715 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6716
6717 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
6718
6719 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6720
6721 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
6722
6723 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6724
6725 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
6726 into dprintf.
6727
6728 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6729
6730 Use full 64-bit division.
6731
6732 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
6733 (grub_divmod64): ... this.
6734 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
6735 version.
6736
6737 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6738
6739 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
6740 `source'.
6741
6742 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6743
6744 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
6745 to avoid accidents when debugging with 'sh -x'.
6746 * grub-core/gensyminfo.sh.in: Likewise.
6747 * tests/example_scripted_test.in: Likewise.
6748 * tests/grub_cmd_regexp.in: Likewise.
6749 * tests/grub_script_blanklines.in: Likewise.
6750 * tests/grub_script_dollar.in: Likewise.
6751 * tests/grub_script_expansion.in: Likewise.
6752 * tests/grub_script_final_semicolon.in: Likewise.
6753 * tests/partmap_test.in: Likewise.
6754 * tests/util/grub-shell-tester.in: Likewise.
6755 * tests/util/grub-shell.in: Likewise.
6756
6757 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6758
6759 Move gfxmenu color handling to video, so that gfxterm can use it
6760 too.
6761
6762 * grub-core/gfxmenu/named_colors.c: Move to ...
6763 * grub-core/video/colors.c: ... here. Rename
6764 grub_gui_get_named_color to grub_video_get_named_color.
6765 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
6766 * grub-core/video/colors.c (my_isxdigit): ... here.
6767 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
6768 Move to ...
6769 * grub-core/video/colors.c (parse_hex_color_component): ... here.
6770 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
6771 to ...
6772 * grub-core/video/colors.c (grub_video_parse_color): ... here.
6773
6774 * include/grub/gui.h (grub_gui_color_t): Move to ...
6775 * include/grub/video.h (grub_video_rgba_color_t): ... here.
6776 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
6777 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
6778 * include/grub/gui.h (grub_gui_map_color): Move to ...
6779 * include/grub/video.h (grub_video_map_rgba_color): ... here.
6780 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
6781 to ...
6782 * include/grub/video.h (grub_video_get_named_color): ... here.
6783 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
6784 * include/grub/video.h (grub_video_parse_color): ... here.
6785
6786 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
6787 video/colors.c.
6788 (gfxmenu): Remove gfxmenu/named_colors.c.
6789 (video) [videomodules]: Add video/colors.c.
6790
6791 Add a background_color command.
6792
6793 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
6794 function.
6795 (GRUB_MOD_INIT): Register background_color command.
6796 (GRUB_MOD_FINI): Unregister background_color command.
6797 (redraw_screen_rect): Allow blend/replace of text layer to be
6798 controlled independently from whether there is a background bitmap.
6799 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
6800 changing bitmap.
6801
6802 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 Patch BPB in ntldr and chainloader --bpb.
6805
6806 * grub-core/fs/fat.c: Include grub/fat.h.
6807 (grub_fat_bpb): Moved to ...
6808 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
6809 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
6810 grub/ntfs.h.
6811 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
6812 Moved from here...
6813 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
6814 here.
6815 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
6816 New function.
6817 (grub_chainloader_cmd): Patch BPB if --bpb is given.
6818 (GRUB_MOD_INIT): Show --bpb.
6819 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
6820 * grub-core/normal/main.c (features): New variable.
6821 (GRUB_MOD_INIT): Set feature_* variables.
6822 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
6823 proto.
6824 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
6825
6826 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
6829 for cleanness.
6830
6831 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6832
6833 FreeDOS direct loading support.
6834
6835 * docs/grub.texi (Supported OS): Add FreeDOS.
6836 * grub-core/Makefile.core.def (freedos): New module.
6837 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
6838 variable.
6839 (grub_relocator16_boot): Handle %ebx.
6840 * grub-core/lib/i386/relocator16.S: Likewise.
6841 * grub-core/loader/i386/pc/freedos.c: New file.
6842
6843 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 Long Linux command line support.
6846
6847 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6848 (maximal_cmdline_size): New variable.
6849 (allocate_pages): Use maximal_cmdline_size.
6850 (grub_cmd_linux): Set and use maximal_cmdline_size.
6851 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6852 (allocate_pages): Use maximal_cmdline_size.
6853 (grub_cmd_linux): Set and use maximal_cmdline_size.
6854 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
6855 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
6856 and cmdline_size.
6857
6858 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6859 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6860
6861 Improve devmapper support
6862
6863 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
6864 (grub_util_is_lvm): New function.
6865 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
6866 than lvm if not dmraid.
6867 Handle mapped md nodes.
6868 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
6869 (grub_util_device_is_mapped): ... this. Make always available. All users
6870 updated.
6871 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
6872 (convert_system_partition_to_system_disk): Handle lvm, mpath and
6873 dmraid nodes.
6874 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
6875
6876 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
6879
6880 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
6881 * grub-core/modinfo.sh.in: New file.
6882 * grub-core/Makefile.core.def (modinfo.sh): New script.
6883 * util/grub-mknetdir.in: Use modinfo.sh.
6884 * util/grub-mkrescue.in: Likewise.
6885
6886 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
6889 Fix potential usage of Elf32 instead of Elf64 when compiling on
6890 32-bit architecture. Add endianness macros while on it.
6891
6892 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 Use mipsel- rather than mips- in directories involving mipsel ports to
6895 allow both endiannesses coexist.
6896
6897 * configure.ac: proparate target_cpu=mipsel rather than resetting to
6898 mips. All conditions adjusted.
6899 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
6900 variable.
6901 * util/grub-install.in: Adjust conditions to take renaming into account.
6902 * util/grub-mkimage.c (image_targets): Likewise. New target
6903 mips-qemu_mips-elf for bigendian mips.
6904
6905 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6906
6907 Avoid unnecessary copying on MIPS.
6908
6909 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
6910 early if src == dest.
6911 * util/grub-mkimage.c (generate_image): Arange for src == dest if
6912 compression is none.
6913
6914 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6915
6916 Reduce memory footprint on SGI by putting modules before the kernel
6917 as opposed to after.
6918
6919 * grub-core/Makefile.core.def (kernel): Increase linking address.
6920 (none_decompress): Likewise.
6921 (xz_decompress): Likewise.
6922 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
6923 address.
6924 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
6925 layout change.
6926 (grub_arch_modules_addr): New function.
6927 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
6928 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
6929 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
6930 here.
6931 * grub-core/kern/mips/startup.S (total_size): Rename to ...
6932 (grub_total_modules_size): ... this. Make global.
6933 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
6934 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
6935 New definition.
6936 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
6937 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
6938 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
6939 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
6940 * util/grub-mkimage.c (image_target_desc): New flag
6941 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
6942 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
6943 (generate_image): Handle images with modules before kernel.
6944
6945 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6946
6947 Prevent potential loss of memory map by overwrite on qemu-mips.
6948
6949 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
6950 Save ram size in $s4.
6951 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
6952 All users changed to grub_arch_memsize.
6953 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
6954 Loongson.
6955 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
6956 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
6957 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
6958 external variable.
6959
6960 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6961
6962 * .bzrignore: Remove grub-dumpbios.
6963
6964 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6965
6966 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
6967 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
6968 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
6969 existing options which append).
6970 * docs/grub.texi (Simple configuration): Document new options.
6971 Reported by: Ian Jackson. Fixes Debian bug #617538.
6972
6973 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6974
6975 * util/grub-fstest.c (cmd_cat): New function.
6976 (fstest): Handle CMD_CAT.
6977 (options): Add cat.
6978 (argp_parser): Handle cat.
6979
6980 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
6981
6982 * Makefile.util.def (grub-bin2h): Don't install.
6983 * docs/man/grub-bin2h.h2m: Remove.
6984
6985 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
6988 place.
6989
6990 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6991
6992 Reenable qemu-mips port.
6993
6994 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
6995 Fix small arc bug while on it.
6996 * gentpl.py: Handle qemu_mips.
6997 * grub-core/Makefile.am: Likewise.
6998 * grub-core/Makefile.core.def: Likewise.
6999 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
7000 inappropriate includes.
7001 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
7002 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
7003 * grub-core/kern/main.c (grub_modules_get_end)
7004 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
7005 * grub-core/kern/mips/qemu-mips: Moved to ..
7006 * grub-core/kern/mips/qemu_mips: ... this.
7007 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
7008 (grub_machine_init): Call terminfo_init and serial_init.
7009 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
7010 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
7011 New variable.
7012 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
7013 parameter passing.
7014 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
7015 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
7016 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
7017 * include/grub/mips/qemu_mips/cmos.h: New file.
7018 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
7019 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
7020 Removed.
7021 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
7022 Use correct mips-style address.
7023 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
7024 (GRUB_TICKS_PER_SECOND): Removed.
7025 (grub_get_rtc): Likewise.
7026 (grub_cpu_idle): Likewise.
7027 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
7028 New definition.
7029 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
7030 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
7031 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
7032 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
7033 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
7034 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
7035 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
7036 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
7037
7038 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7039
7040 SGI ARCS port.
7041
7042 * Makefile.util.def (libgrubmods.a): Add dvh.c.
7043 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
7044 platforms.
7045 * configure.ac: New target mips-arc.
7046 * gentpl.py: Likewise.
7047 * grub-core/Makefile.am: Likewise.
7048 * grub-core/Makefile.core.def: Likewise.
7049 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
7050 (none_decompress): Likewise.
7051 (lsdev): New module.
7052 (datetime): Use lib/arc/datetime.c on ARC.
7053 (part_dvh): New module.
7054 * grub-core/commands/arc/lsdev.c: New file.
7055 * grub-core/disk/arc/arcdisk.c: Likewise.
7056 * grub-core/kern/mips/arc/init.c: Likewise.
7057 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
7058 aligned addresses.
7059 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
7060 support.
7061 (grub_arch_dl_relocate_symbols): Likewise.
7062 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
7063 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
7064 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
7065 platforms.
7066 * grub-core/lib/arc/datetime.c: New file.
7067 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
7068 pci.h on non-loongson.
7069 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
7070 (grub_linux_boot): Set unused registers to 0.
7071 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
7072 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
7073 * grub-core/mmap/mips/uppermem.c: ...here.
7074 * grub-core/partmap/dvh.c: New file.
7075 * grub-core/term/arc/console.c: Likewise.
7076 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
7077 (grub_terminfo_set_current): Add terminal "arc".
7078 (grub_terminfo_readkey): Support ARC sequences.
7079 * include/grub/arc/arc.h: New file.
7080 * include/grub/arc/console.h: Likewise.
7081 * include/grub/disk.h (grub_disk_dev_id): Add
7082 GRUB_DISK_DEVICE_ARCDISK_ID.
7083 * include/grub/mips/arc/kernel.h: New file.
7084 * include/grub/mips/arc/memory.h: Likewise.
7085 * include/grub/mips/arc/time.h: Likewise.
7086 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
7087 * include/grub/mips/kernel.h (grub_halt): ... here.
7088 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
7089 here...
7090 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
7091 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
7092 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
7093 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
7094 proto.
7095 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
7096 from here ...
7097 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
7098 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
7099 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
7100 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
7101 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
7102 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
7103 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
7104 (grub_phys_addr_t): Moved from here ...
7105 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
7106 (grub_vtop): Moved from here ...
7107 * include/grub/mips/memory.h (grub_vtop): ... here.
7108 (grub_map_memory): Moved from here ...
7109 * include/grub/mips/memory.h (grub_map_memory): ... here.
7110 (grub_unmap_memory): Moved from here ...
7111 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
7112 (grub_machine_mmap_iterate): Moved from here ...
7113 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
7114 (grub_mmap_get_lower): Moved from here ...
7115 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
7116 (grub_mmap_get_upper): Moved from here ...
7117 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
7118 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7119 here ...
7120 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7121 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
7122 here ...
7123 * include/grub/mips/time.h (grub_get_rtc): ... here.
7124 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7125 here ...
7126 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7127 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
7128 here ...
7129 * include/grub/mips/time.h (grub_cpu_idle): ... here.
7130 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
7131 definition.
7132 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
7133 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
7134 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
7135 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
7136 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
7137 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
7138 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
7139 (GRUB_MACHINE_LINK_ADDR): Likewise.
7140 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
7141 to 6.
7142 * util/grub-install.in: Run dvhtool on ARC.
7143 * util/grub-mkimage.c (image_targets): Add mips-arc.
7144 (generate_image): Handle ECOFF output for mips-arc.
7145
7146 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
7149 blocks.
7150
7151 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
7154 after enabling port.
7155
7156 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7157
7158 Skip incorrect USB devices.
7159
7160 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
7161 configcnt == 0.
7162 * include/grub/usb.h (grub_usb_err_t): New enum value
7163 GRUB_USB_ERR_BADDEVICE.
7164
7165 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 Fuloong video init support.
7168
7169 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
7170 well.
7171 (grub_vga_read_arx): New function.
7172 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
7173 definition.
7174 (framebuffer): New members io, mmioptr and mmiobase.
7175 (read_sis_cmd): New function.
7176 (write_sis_cmd): Likewise.
7177 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
7178 rather than 640x400.
7179 * grub-core/video/sis315_init.c: New file.
7180
7181 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7182
7183 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
7184 non-loongson.
7185 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
7186 to grub_dl_register_symbol.
7187
7188 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7189
7190 Fix compilation errors.
7191
7192 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
7193 potentially unused.
7194 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
7195 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
7196 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
7197 to loongson machines.
7198
7199 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 Several FS mtime support.
7202
7203 * grub-core/fs/affs.c (grub_affs_time): New struct.
7204 (grub_affs_file): New field mtime.
7205 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
7206 type. Removed 'size'. New field 'di'. All users updated.
7207 (grub_affs_mount): Simplify checsum checking.
7208 (grub_affs_iterate_dir): New helper grub_affs_create_node.
7209 (grub_affs_dir): Handle mtime.
7210 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
7211 (grub_cpio_dir): Likewise.
7212 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
7213 (grub_hfs_filerec): New field mtime.
7214 (grub_hfs_dir): Handle mtime.
7215 (grub_hfs_mtime): New function.
7216 (grub_hfs_fs): Register grub_hfs_mtime.
7217 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
7218 (grub_iso9660_dir): New field mtime.
7219 (grub_fshelp_node): New field dirent.
7220 (iso9660_to_unixtime): New function.
7221 (iso9660_to_unixtime2): Likewise.
7222 (grub_iso9660_read_symlink): Use node->dirent.
7223 (grub_iso9660_iterate_dir): Likewise.
7224 (grub_iso9660_dir): Set mtime.
7225 (grub_iso9660_mtime): New function.
7226 (grub_iso9660_fs): Register grub_iso9660_mtime.
7227 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
7228 (grub_jfs_inode): New fields atime, ctime and mtime.
7229 (grub_jfs_dir): Set mtime.
7230 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7231 * grub-core/fs/ntfs.c (list_file): Set mtime.
7232 (grub_ntfs_dir): Likewise.
7233 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
7234 (grub_reiserfs_iterate_dir): Set mtime.
7235 (grub_reiserfs_dir): Likewise.
7236 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
7237 (grub_fshelp_node): Likewise.
7238 (grub_sfs_iterate_dir): Set mtime.
7239 (grub_sfs_dir): Likewise.
7240 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
7241 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
7242 (grub_xfs_inode): New fields atime, mtime, ctime.
7243 (grub_xfs_dir): Set mtime.
7244 * include/grub/datetime.h (grub_datetime2unixtime): New function.
7245 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
7246 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
7247
7248 Support UDF symlinks.
7249
7250 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
7251 (grub_ufs_read_symlink): New function. All users updated.
7252
7253 Check amiga partmap checksum.
7254
7255 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
7256 (grub_amiga_partition): Likewise.
7257 (amiga_partition_map_checksum): New function.
7258 (amiga_partition_map_iterate): Check checksum.
7259
7260 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 ROMFS support.
7263
7264 * Makefile.util.def (libgrubmods.a): Add romfs.
7265 * grub-core/Makefile.core.def (romfs): New module.
7266 * grub-core/fs/romfs.c: New file.
7267
7268 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 Squashfs v4 support.
7271
7272 * Makefile.util.def (libgrubmods.a): Add squash4.
7273 * grub-core/Makefile.core.def (squash4): New module.
7274 * grub-core/fs/squash4.c: New file.
7275 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
7276 disk_input_start, disk_input.
7277 (get_byte): Handle disk_input.
7278 (grub_zlib_disk_read): New function.
7279 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
7280
7281 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7282 2011-05-15 Feiran Zheng <famcool@gmail.com>
7283
7284 * Makefile.util.def (libgrubmods.a): Add minix3.
7285 * grub-core/Makefile.core.def (minix3): New module.
7286 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
7287 (GRUB_MINIX_BSIZE): Removed.
7288 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
7289 (grub_minix_ino_t): New type.
7290 (grub_minix_le_to_cpu_ino): New macro.
7291 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
7292 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
7293 (grub_minix_data): New field block_size.
7294 (grub_minix_read_file): Handle 64-bit correctly.
7295 * grub-core/fs/minix3.c: New file.
7296
7297 2011-05-15 Tristan Gingold <gingold@free.fr>
7298 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
7299 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 IA64 support.
7302
7303 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
7304 * configure.ac: Add ia64-efi target.
7305 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
7306 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
7307 * gentpl.py: Add ia64_efi platform.
7308 Rename x86_efi to efi and Add ia64-efi. All users updated.
7309 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
7310 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
7311 Remove kern/generic/rtc_get_time_ms.c on EFI.
7312 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
7313 kern/ia64/dl_helper.c on ia64-efi.
7314 Add kern/emu/cache.c on emu.
7315 (linux): Use on loader/ia64/efi/linux.c on ia64.
7316 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
7317 whether symbol is a function.
7318 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
7319 (grub_symbol): New field 'isfunc'.
7320 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
7321 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
7322 (grub_dl_load_segments): Place all sections into the same region.
7323 [__ia64__]: Create trampolines and got.
7324 [GRUB_MACHINE_EMU]: Call mprotect.
7325 (grub_dl_resolve_symbols): Resolve symbol type as well.
7326 [__ia64__]: Create function descriptors.
7327 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
7328 (grub_rtc_get_time_ms): ... this. Expressions simplified.
7329 (grub_get_rtc): New function.
7330 * grub-core/kern/emu/cache.c [__ia64__]: New file.
7331 * grub-core/kern/emu/cache.S: Renamed to ...
7332 * grub-core/kern/emu/cache_s.S: ... this.
7333 [__ia64__]: Add a nop.
7334 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
7335 [__ia64__]: New function.
7336 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
7337 * grub-core/kern/ia64/dl.c: New file.
7338 * grub-core/kern/ia64/dl_helper.c: Likewise.
7339 * grub-core/kern/ia64/efi/init.c: New file.
7340 * grub-core/kern/ia64/efi/startup.S: Likewise.
7341 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
7342 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
7343 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
7344 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
7345 * grub-core/loader/ia64/efi/linux.c: New file.
7346 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
7347 (GRUB_MOD_DEP): Likewise.
7348 (grub_dl) [__ia64__]: New fields got and tramp.
7349 (grub_dl): New field 'base'.
7350 (grub_dl_register_symbol): New argument isfunc. All users updated.
7351 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
7352 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
7353 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
7354 (grub_ia64_dl_get_tramp_got_size): New proto.
7355 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
7356 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
7357 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
7358 * include/grub/efi/api.h: Skip call wrappers on ia64.
7359 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
7360 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
7361 * include/grub/elf.h (ELF_ST_INFO): New definition.
7362 * include/grub/ia64/efi/kernel.h: New file.
7363 * include/grub/ia64/efi/memory.h: Likewise.
7364 * include/grub/ia64/efi/time.h: Likewise.
7365 * include/grub/ia64/kernel.h: Likewise.
7366 * include/grub/ia64/setjmp.h: Likewise (from glibc).
7367 * include/grub/ia64/time.h: New file.
7368 * include/grub/ia64/types.h: Likewise.
7369 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
7370 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
7371 New protos.
7372 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
7373 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
7374 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
7375 * util/grub-mkimage.c (image_target_desc): New field pe_target.
7376 All users updated.
7377 (EFI64_HEADER_SIZE): New definition. All users updated.
7378 (image_targets): Add ia64-efi.
7379 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
7380 jumpers_addr. All users updated.
7381 Create function descriptors.
7382 (count_funcs): New function.
7383 (unaligned_uint32): New struct.
7384 (MASK20): New definition.
7385 (MASK19): Likewise.
7386 (MASKF21): Likewise.
7387 (add_value_to_slot_20b): New function.
7388 (add_value_to_slot_21_real): Likewise.
7389 (add_value_to_slot_21): Likewise.
7390 (ia64_kernel_trampoline): New struct.
7391 (nopm): New variable.
7392 (jump): Likewise.
7393 (make_trampoline): New function.
7394 (relocate_addresses): Handle ia64.
7395 (make_reloc_section): Likewise.
7396 (load_image): Likewise.
7397
7398 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
7401 warning. Move variables before code while on it.
7402
7403 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 Fuloong support.
7406
7407 * configure.ac: Rename yeeloong platform to loongson. All users updated.
7408 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
7409 * grub-core/boot/mips/loongson/fuloong.S: New file.
7410 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
7411 Explicitly init CS5536.
7412 [FULOONG]: Don't use serial until CS5536 is available.
7413 Set GPIO based on dumps.
7414 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
7415 [FULOONG]: Handle GPIO and memory controller differences.
7416 Parse machine type in $a2.
7417 * grub-core/boot/mips/startup_raw.S: Determine and save the
7418 architecture.
7419 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
7420 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
7421 init on architecture type.
7422 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
7423 SIS315E. Don't init at_keyboard on fuloong.
7424 (grub_halt): Support Fuloong.
7425 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
7426 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
7427 (loongson_machtypes): New array.
7428 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
7429 type.
7430 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
7431 config. All users updated. Handle CS5536 serial.
7432 * grub-core/term/serial.c (grub_serial_register): Conditionalise
7433 default port on machine type. Register serial as inactive.
7434 * grub-core/video/sis315pro.c: New file.
7435 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
7436 definition.
7437 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
7438 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
7439 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
7440 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
7441 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
7442 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
7443 to ...
7444 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
7445 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
7446 definition.
7447 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
7448 (grub_arch_machine): New extern var.
7449 * include/grub/mips/loongson/serial.h
7450 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
7451 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
7452 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
7453 (GRUB_MACHINE_SERIAL_PORT0): ... this.
7454 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
7455 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
7456 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
7457 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
7458 * include/grub/term.h (grub_term_register_input_inactive): New inline
7459 function.
7460 (grub_term_register_output_inactive): Likewise.
7461 * include/grub/video.h (grub_video_driver_id): New value
7462 GRUB_VIDEO_DRIVER_SIS315PRO.
7463 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
7464 New field "names". All users updated.
7465 New field value IMAGE_FULOONG_FLASH.
7466 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
7467
7468 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
7469
7470 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
7471 and add some clarification.
7472
7473 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
7476 platforms if kernel is compressed.
7477
7478 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
7481 unused modules since currently referrence counter isn't reliable and
7482 there isn't much memory to recover there anyway.
7483
7484 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
7487 rather than resetting it to allow modules to reference themselves
7488 in init.
7489
7490 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
7493 counter on dependencies since grub_dl_unref already handles this.
7494
7495 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
7498 on error if not already done.
7499
7500 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 Fix few potential memory misusage.
7503
7504 * grub-core/font/font.c (load_font_index): Don't free char_index to
7505 avoid double free.
7506 (grub_font_load): Zero-fill font at alloc for safety.
7507 Close file on error.
7508 (free_font): Free bmp_idx.
7509
7510 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * docs/grub.texi (Installation): Fix several outdated claims.
7513
7514 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 Handle module_license on windows.
7517
7518 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
7519 sections shifted.
7520 (insert_string): Make argument const char * instead of char *.
7521 (write_section_data): Handle long section names.
7522 Handle module_license.
7523
7524 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
7527 handle class-free menuentries.
7528 (grub_normal_add_menu_entry): Add a check to be sure.
7529
7530 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7531
7532 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
7533 PgUp and PgDown.
7534
7535 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * configure.ac: Bump version to 1.99.
7538
7539 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7540
7541 Give ATA device a bit more time on first try in order to allow disks
7542 to spin up.
7543
7544 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
7545 if dev->present is 1. Reset dev->present on failure.
7546 (grub_ata_device_initialize): Set dev->present to 1.
7547 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
7548 (grub_ata_device): New member 'present'.
7549
7550 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7551
7552 * util/grub-mkimage.c (generate_image): Update hash.
7553
7554 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7555
7556 Flush caches on DMA memory.
7557
7558 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
7559 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
7560 (grub_dma_free): Likewise.
7561 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
7562
7563 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
7566 to avoid asm treating ld and sd as macros.
7567
7568 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7569
7570 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
7571 decompressor.
7572
7573 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7574
7575 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
7576 grub_decompress_core since later would fail if grub_decompress_core
7577 is too far.
7578
7579 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
7582 R_MIPS_JALR since it's used by newer compiler.
7583
7584 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
7587
7588 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
7591 file_path to 0 for surety.
7592 (grub_chainloader_boot): Set exit_data to NULL.
7593 Unset the loader once done.
7594 (grub_cmd_chainloader): Fix confusing error message if file is empty.
7595
7596 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
7599 unknown key into a dprintf.
7600
7601 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7602
7603 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
7604 on first non-existant partition.
7605
7606 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
7609 openning fails.
7610 Reported by: Mark Korenberg.
7611
7612 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
7615 overflow.
7616
7617 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7618
7619 * util/grub-mkimage.c (main): Explicitely flush and sync the output
7620 before closing to ensure that it will be readable by grub-setup.
7621
7622 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
7625 (devpath_1): Use MAKE_PIWG_PATH.
7626 (devpath_2): Likewise.
7627 (devpath_3): Likewise.
7628 (devpath_4): Likewise.
7629 (devpath_5): Likewise.
7630 (devpath_6): Likewise.
7631
7632 The appleldr.mod was checked that to be binary identical to previous
7633 version.
7634
7635 2011-05-05 Zach <mikezackles>
7636
7637 Support 2010 Macbooks.
7638
7639 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
7640 (devs): Add devpath_6.
7641
7642 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7643
7644 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
7645 /dev/random. /dev/urandom is good enough for our purposes (salting).
7646
7647 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7648
7649 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
7650
7651 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7652
7653 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
7654 hexadecimal.
7655
7656 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
7659 and not 0 on failure.
7660
7661 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7662
7663 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
7664 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
7665 disk; otherwise grub_fs_probe will not fall back to the next
7666 filesystem.
7667 (grub_pxefs_open): Likewise, for consistency.
7668 Reported and tested by: Ezekiel Grave.
7669
7670 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7671
7672 * tests/partmap_test.in: Don't hardcode path to parted.
7673 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
7674
7675 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
7676
7677 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
7678 of `ls' to find out which devices are available.
7679
7680 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
7683 than source address for efi mmap buffer.
7684
7685 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
7688 wrong action on non-detecting the magic.
7689
7690 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
7693 already supplied by another part of the module (fixes compilation on
7694 FreeBSD).
7695
7696 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
7699 match the one used by mdadm.
7700
7701 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7702
7703 * po/README: Add instructions for creating po/LINGUAS.
7704
7705 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7706
7707 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
7708 #551428.
7709
7710 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
7711 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
7712 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
7713 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7714 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
7715 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
7716 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
7717 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
7718 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
7719 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7720 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
7721 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
7722 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
7723 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
7724 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
7725 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
7726 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
7727 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
7728 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
7729 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
7730 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
7731 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
7732
7733 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7734
7735 * grub-core/kern/emu/getroot.c
7736 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
7737 test that was incorrectly reintroduced in r3214.
7738 Reported by: Ian Dall. Fixes Savannah bug #33133.
7739
7740 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7741
7742 Fix stack pointer handling in 16-bit relocator.
7743
7744 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
7745 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
7746 Fixes Ubuntu bug #683904.
7747
7748 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7749
7750 * configure.ac: Bump version to 1.99~rc2.
7751
7752 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
7755 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
7756 * grub-core/lib/x86_64/setjmp.S: Likewise.
7757 * grub-core/lib/mips/setjmp.S: Likewise.
7758 * grub-core/lib/powerpc/setjmp.S: Likewise.
7759 * grub-core/lib/sparc64/setjmp.S: Likewise.
7760
7761 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
7764 * grub-core/lib/efi/datetime.c: Likewise.
7765
7766 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7767
7768 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
7769 New function.
7770 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
7771 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
7772 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
7773
7774 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7775
7776 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
7777 bitmap.
7778 (grub_gfxterm_term_init): Likewise.
7779
7780 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 Take into account the decorations the computing menu entry width.
7783
7784 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
7785 (grub_gfxmenu_create_box): Register get_border_width.
7786 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
7787 if available.
7788 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
7789 get_border_width.
7790
7791 2011-04-18 Endres Puschner <code@e7p.de>
7792
7793 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
7794 Don't skip first class.
7795
7796 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7797
7798 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
7799 chunks.
7800 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
7801
7802 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7803
7804 Complete 64-bit division support.
7805
7806 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
7807 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
7808 * include/grub/misc.h (grub_divmod64): Rename to ...
7809 (grub_divmod64_full): ... this.
7810 (grub_divmod64): New inline function.
7811
7812 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7813
7814 * util/grub-mkimage.c (generate_image): Add forgotten comma.
7815
7816 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7817
7818 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
7819 performing the necessary test.
7820
7821 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7822
7823 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
7824 (kfreebsd.elf): Likewise.
7825 (pc-chainloader.elf): Likewise.
7826 (ntldr.elf): Likewise.
7827
7828 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7829
7830 Identify RAID by its UUID rather than (guessed) name.
7831
7832 * grub-core/disk/raid.c (ascii2hex): New function.
7833 (grub_raid_open): Accept mduuid/%s specification.
7834 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
7835 (get_mdadm_uuid): ... this.
7836 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
7837
7838 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
7839
7840 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
7841 to negative size.
7842
7843 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7844
7845 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
7846 btrfs subvolume.
7847 * util/grub.d/20_linux_xen.in: Likewise.
7848
7849 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7850
7851 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
7852 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
7853
7854 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7855 Build a list of relevant visible mounts using the mnt_id and
7856 parent_mnt_id fields, and then scan that list at the end.
7857
7858 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7859
7860 * docs/grub.texi (normal): New section.
7861 (normal_exit): New section.
7862 (Embedded configuration): Add reference to normal.
7863 (GRUB only offers a rescue shell): Likewise.
7864 * docs/grub-dev.texi (Error Handling): Fix typo.
7865
7866 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7867
7868 * NEWS: Drop obsolete entry about probe-only btrfs support.
7869
7870 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7871
7872 * util/import_gcry.py: Fix typo.
7873
7874 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7875
7876 * NEWS: Add btrfs support.
7877
7878 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7879 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
7880
7881 BtrFS support. Written by me (Vladimir) with important bugfixes and
7882 even more important testing by Colin.
7883
7884 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
7885 * grub-core/Makefile.core.def (btrfs): Add crc.c.
7886 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
7887 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
7888 mem_input_off and mem_input. All users updated to accept in-RAM input.
7889 (gzio_seek): New function.
7890 (test_zlib_header): Likewise.
7891 (grub_gzio_read): Likewise.
7892 (grub_zlib_decompress): Likewise.
7893 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
7894 Accept partial and non-virtual mounts.
7895 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
7896 avoid receiving /dev/dm-X as device.
7897 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
7898 Handle bind and partial mounts.
7899 * grub-core/lib/crc.c: New file.
7900 * include/grub/deflate.h: Likewise.
7901 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
7902 proto.
7903 * include/grub/lib/crc.h: New file.
7904
7905 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7906
7907 Implement automatic module license checking according to new GNU
7908 guidelines.
7909
7910 * grub-core/kern/dl.c (grub_dl_check_license): New function.
7911 (grub_dl_load_core): Use grub_dl_check_license.
7912 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
7913 (GRUB_MOD_LICENSE): Likewise.
7914 (GRUB_MOD_DUAL_LICENSE): Likewise.
7915 All modules updated.
7916
7917 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
7918
7919 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
7920 reserved_first_sector to 1. btrfs reserves plenty of space for boot
7921 loaders.
7922 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
7923
7924 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
7927
7928 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7929
7930 * util/grub-fstest.c (read_file): Report GRUB error if file opening
7931 failed.
7932
7933 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 * grub-core/kern/file.c (grub_file_open): Don't take into account the
7936 parenthesis in the middle of the filename.
7937
7938 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7939
7940 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
7941 rather than trying to put initrd way too high.
7942 Reported by: Ryan Lortie <desrt@desrt.ca>
7943
7944 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7945
7946 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
7947 improperly removed string.
7948
7949 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7950
7951 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
7952 is_disk.
7953 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
7954 (open_device) Likewise.
7955 (grub_util_biosdisk_close): Likewise.
7956 Reported by: Mark Korenberg.
7957
7958 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
7959
7960 * util/grub-mkconfig_lib.in: Add missing quotes.
7961
7962 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
7963
7964 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
7965 is NULL.
7966
7967 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7968
7969 Dynamically count the number of lines for the lower banner.
7970
7971 * grub-core/normal/menu_entry.c (per_term_screen): New member
7972 num_entries.
7973 (print_down): Use num_entries.
7974 (update_screen): Likewise.
7975 (grub_menu_entry_run): Set num_entries.
7976 * grub-core/normal/menu_text.c (menu_viewer_data): New member
7977 num_entries.
7978 (grub_print_message_indented): Move real part to ...
7979 (grub_print_message_indented_real): ... here. Additional argument
7980 dry_run.
7981 (draw_border): Additional argument num_entries.
7982 (print_message): Additional argument dry_run.
7983 (print_entries): Receive menu viewer data.
7984 (grub_menu_init_page): New argment num_entries.
7985 (menu_text_set_chosen_entry): Use num_entries.
7986 (grub_menu_try_text): Likewise.
7987 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
7988 All users updated.
7989 (grub_ucs4_count_lines): New function.
7990 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
7991 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
7992 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
7993 (grub_term_border_height): Likewise.
7994 (grub_term_num_entries): Likewise.
7995
7996 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7997
7998 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
7999 Remove now unused string.
8000
8001 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
8002
8003 * docs/grub-dev.texi (Finding your way around): Update for 1.99
8004 build system.
8005 (Getting started): GRUB is developed in Bazaar now, not Subversion.
8006
8007 (Comment): Fix typo.
8008 (Getting started): General copy-editing.
8009 (Typical Development Experience): Likewise.
8010 (Error Handling): Likewise.
8011 (Video API): Likewise.
8012
8013 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
8014
8015 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
8016 throughout.
8017
8018 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8019
8020 * util/grub-mkimage.c (main): Handle special naming of yeeloong
8021 directory.
8022
8023 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
8024
8025 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
8026 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
8027 "development".
8028
8029 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
8032 grub_strcpy since the lines aren't necessarily 0-terminated.
8033
8034 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8035
8036 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
8037 root on legacy.
8038
8039 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 * grub-core/commands/probe.c (options): Argument to set isn't optional.
8042 (GRUB_MOD_INIT): DEVICE isn't optional.
8043
8044 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8045
8046 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
8047 word on new line if it's too long anyway. Fixes a hang.
8048
8049 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
8052 const.
8053 * util/grub-setup.c (main): Reuse md device name if available.
8054 * util/raid.c (grub_util_raid_getmembers): Receive device name and
8055 not GRUB name as argument.
8056 Based on patch by: Florian Wagner <fwagner>.
8057
8058 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8061 Place mbi on low memory for better compatibility.
8062
8063 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8064
8065 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
8066
8067 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8068 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
8069
8070 * autogen.sh: Ensure that collate and ctype locale is C.
8071 * conf/Makefile.common: Likewise.
8072
8073 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 * grub-core/normal/menu.c: Add missing include.
8076
8077 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8078
8079 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
8080
8081 2011-04-08 Martin Zuther <mzuther@mzuther.de>
8082
8083 * util/grub-mkconfig.in: Ignore emacsen backup.
8084
8085 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
8088 on open.
8089 (grub_util_biosdisk_close): Likewise.
8090
8091 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8092
8093 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
8094 const attribute and use grub_isdigit.
8095
8096 2011-04-06 Andrey <dev_null@ukr.net>
8097
8098 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
8099 gcc warning.
8100
8101 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
8104 useful grub_dprintf's.
8105
8106 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8107
8108 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
8109
8110 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8111
8112 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
8113
8114 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8115
8116 Output errors if theme loading failed.
8117
8118 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
8119 grub_gfxterm_fullscreen on error paths to ...
8120 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
8121 theme loading error.
8122
8123 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8124
8125 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
8126 space for older compilers.
8127 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
8128
8129 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8130
8131 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
8132 and report them as not RAID members since they are useless for GRUB.
8133 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8134
8135 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8136
8137 Increase LVM implementation robustness in order not to crash on
8138 configurations like pvmove. Previously code assumed that in some places
8139 only lvs or only pvs are used whereas it seems that they are used
8140 interchangeably.
8141
8142 * grub-core/disk/lvm.c (read_node): New function.
8143 (read_lv): Use read_node.
8144 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
8145 Match volumes only at the end when all lvs are found. Take both
8146 pvs (first) and lvs (second) into account.
8147 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
8148 mirror_* into node_*. All users updated.
8149 (grub_lvm_stripe): Merge this ...
8150 (grub_lvm_mirror): ... and this ...
8151 (grub_lvm_node): ... into this. All users updated.
8152
8153 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8154
8155 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
8156 of function to allow further scanning for LVMs.
8157
8158 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
8161 on failed seek as it breaks open fd reusage.
8162
8163 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * util/grub-install.in: Add a recommendation to use --recheck before
8166 reporting bugs.
8167
8168 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8169
8170 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
8171 are obtained.
8172
8173 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8174
8175 GRUB developper manual based on existing Internals section and
8176 contributions by the various authors with active copyright assignment.
8177
8178 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
8179 * docs/font_char_metrics.png: New file.
8180 * docs/font_char_metrics.txt: Likewise.
8181 * docs/grub-dev.texi: Likewise.
8182 * docs/grub.texi (Internals): Move from here ...
8183 * docs/grub-dev.texi: ... here.
8184
8185 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8186
8187 Store the loopback device as data on loopback grub_disk structures,
8188 rather than the file it points to. This fixes use of freed memory
8189 if an existing loopback device is replaced.
8190
8191 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
8192 disk->data, not dev->file.
8193 (grub_loopback_read): Adjust file assignment to match.
8194 Fixes Ubuntu bug #742967.
8195
8196 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8197
8198 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
8199 when replacing an existing device.
8200
8201 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
8204 memory corruptions.
8205
8206 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
8207 unsigned.
8208 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
8209 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
8210 (grub_jfs_read_inode): Likewise.
8211 (grub_jfs_opendir): Likewise. Remove now useless casts.
8212 (grub_jfs_getent): Likewise.
8213 Make ino a grub_uint32_t rather than int.
8214 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
8215 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
8216 division and module with bit operations.
8217 (grub_jfs_find_file): Make ino a grub_uint32_t.
8218 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
8219
8220 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8221
8222 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
8223 warning. (This was in fact always initialised before use, but GCC
8224 wasn't smart enough to prove that.)
8225 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
8226
8227 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8228
8229 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
8230 stack alignment.
8231 (efi_wrap_1): Likewise.
8232 (efi_wrap_2): Likewise.
8233 (efi_wrap_3): Likewise.
8234 (efi_wrap_4): Likewise.
8235 (efi_wrap_5): Likewise.
8236 (efi_wrap_6): Likewise.
8237 (efi_wrap_10): Likewise.
8238 Based on information by: Red Hat/Peter Jones.
8239
8240 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8241
8242 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
8243 set-but-not-used variable.
8244
8245 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8246
8247 * docs/grub.texi (Simple configuration): Be more explicit about
8248 GRUB_DEFAULT, and add an example.
8249 Reported by: Leslie Rhorer.
8250
8251 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8252
8253 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
8254 shell".
8255
8256 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8257
8258 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
8259 * util/grub.d/20_linux_xen.in: Likewise.
8260
8261 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8262
8263 * util/grub.d/10_linux.in: Try alternative config filenames where
8264 we parse config file.
8265 * util/grub.d/20_linux_xen.in: Likewise.
8266
8267 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8268
8269 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
8270 * util/grub.d/20_linux_xen.in: Likewise.
8271
8272 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 * grub-core/disk/raid.c (insert_array): Add few potentially
8275 useful grub_util_info.
8276 (grub_raid_register): Likewise.
8277
8278 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
8281 Preserve partition number in mdadm code path.
8282
8283 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8284
8285 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
8286 few potentially useful grub_util_info.
8287
8288 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8289
8290 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
8291
8292 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8293
8294 * docs/grub.texi (default): Use @example rather than nested
8295 itemized lists to avoid breaking gendocs.
8296
8297 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8298
8299 * docs/grub.texi (Future): Update.
8300
8301 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8302
8303 * docs/grub.texi (Environment): New chapter.
8304 (Changes from GRUB Legacy): Link to "Environment block" section for
8305 details of limitations.
8306 (Simple configuration): Likewise. Link to documentation of gfxmode
8307 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
8308 respectively.
8309 (Shell-like scripting): Note that normal variables are stored in the
8310 environment.
8311 (gettext): Link to documentation of lang and locale_dir.
8312 (list_env): New section.
8313 (load_env): New section.
8314 (save_env): New section.
8315
8316 (Reporting bugs): Fix typo.
8317
8318 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
8321 the example.
8322
8323 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 * grub-core/term/at_keyboard.c (set_scancodes)
8326 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
8327
8328 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8329
8330 * docs/grub.texi (Menu-specific commands): Remove some semantics
8331 that were true in GRUB Legacy but not in GRUB 2.
8332 (submenu): New section.
8333 (false): New section.
8334 (read): New section.
8335 (true): New section.
8336
8337 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8338
8339 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
8340
8341 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8342
8343 * docs/grub.texi (Simple configuration): Explain some of the
8344 current limitations of grub-mkconfig.
8345 Reported by: Leslie Rhorer.
8346
8347 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 Old macs search for boot.efi rather than for bootia32.efi.
8350
8351 * util/grub-install.in: Copy bootia32.efi to boot.efi.
8352 * util/grub-mkrescue.in: Likewise.
8353 Suggested by: Peter Jones.
8354
8355 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
8358
8359 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
8362 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
8363 (grub_lvm_mirror): New struct.
8364 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
8365 (grub_lvm_iterate): Iterate only visible volumes.
8366 (grub_lvm_read): Factor out to ..
8367 (read_lv): ... this. Support mirrors.
8368 (grub_lvm_read): New wrapper function.
8369 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
8370 stripped or mirrored.
8371
8372 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8373
8374 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
8375
8376 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8377
8378 * docs/grub.texi (loopback): New section.
8379
8380 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8381
8382 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
8383 removed -p option.
8384
8385 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8386
8387 * docs/grub.texi (BIOS installation): New section, partly based on
8388 previous text in other sections.
8389 (Installing GRUB using grub-install): Replace BIOS discussion with a
8390 cross-reference.
8391 (Images): Likewise.
8392
8393 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8394
8395 * grub-core/kern/emu/hostdisk.c (find_partition_start)
8396 [HAVE_DIOCGDINFO]: Add safety checks.
8397
8398 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8399
8400 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
8401 per default compiled in kernel and prior to 8.0 isn't shipped at all.
8402
8403 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8404
8405 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
8406 real_sb->size is zero (e.g. RAID-0), get the disk size from
8407 real_sb->data_size instead.
8408 Fixes Ubuntu bug #743136.
8409
8410 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8411
8412 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
8413 printf clauses for printing size and start.
8414
8415 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8416
8417 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
8418 Reported and tested by: Timothy Nikkel.
8419
8420 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8421
8422 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
8423 (dirty_region_add_real): ... this.
8424 (dirty_region_add): Don't discard margin refresh when performing
8425 scheduled repaint.
8426
8427 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8428
8429 * grub-core/lib/relocator.c (allocate_regstart)
8430 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
8431 terminals are capabple of malloc-free operation.
8432 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8433 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8434
8435 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
8436
8437 * util/grub-setup.c: Copy the partition table zone if floppy support
8438 is disabled, even if no partition table is found.
8439
8440 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
8441 during POST if an invalid partition table is contained in the PBR
8442 of the active partition when GRUB is installed to a partition.
8443
8444 2011-03-28 Colin Watson <cjwatson@debian.org>
8445
8446 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
8447 comment.
8448
8449 2011-03-28 Colin Watson <cjwatson@debian.org>
8450
8451 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
8452 to be specific about what kind of RAID device we're scanning for.
8453
8454 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
8455
8456 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
8457 return freed string.
8458
8459 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8460
8461 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
8462
8463 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8464
8465 Use libgeom on FreeBSD to detect partitions.
8466
8467 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
8468 (grub-mkrelpath): Likewise.
8469 (grub-script-check): Likewise.
8470 (grub-editenv): Likewise.
8471 (grub-mkpasswd-pbkdf2): Likewise.
8472 (grub-fstest): Likewise.
8473 (grub-mkfont): Likewise.
8474 (grub-mkdevicemap): Likewise.
8475 (grub-probe): Likewise.
8476 (grub-setup): Likewise.
8477 (grub-ofpathname): Likewise.
8478 (grub-mklayout): Likewise.
8479 (example_unit_test): Likewise.
8480 (grub-menulst2cfg): Likewise.
8481 * grub-core/Makefile.core.def (grub-emu): Likewise.
8482 (grub-emu-lite): Likewise.
8483 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
8484 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
8485 define HAVE_DIOCGDINFO.
8486 (follow_geom_up) [FreeBSD]: New function.
8487 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
8488 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
8489 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
8490 unconditionally of HAVE_DIOCGDINFO.
8491
8492 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 Fix FreeBSD compilation problem.
8495
8496 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
8497 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
8498
8499 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
8500
8501 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
8502 Switch back to page zero before loading a kernel, since some kernel
8503 drivers expect that.
8504 Thanks to: Felix Kuehling.
8505
8506 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
8509 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
8510 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
8511
8512 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
8515 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
8516
8517 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8518
8519 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
8520 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
8521 malloc is disabled.
8522
8523 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8524
8525 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
8526 for modules headers when counting the needed allocation size.
8527
8528 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8529
8530 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
8531 if no ASCII character is found to prevent crash.
8532
8533 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
8534
8535 * grub-core/video/bitmap.c (match_extension): Ignore case.
8536
8537 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8538
8539 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
8540
8541 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 * grub-core/script/parser.y: Declare "time" as valid argument.
8544
8545 2011-03-23 Peter Jones <pjones@redhat.com>
8546
8547 Fix incorrect assert failure reporting.
8548
8549 * grub-core/tests/example_functional_test.c (example_test): Add
8550 a failure comment.
8551 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
8552 (failure_start): ...this. Check that malloc succeeded.
8553 Don't call xvasprintf. Return failure struct.
8554 (failure_append_vtext): New function.
8555 (failure_append_text): Likewise.
8556 (add_failure): Likewise.
8557 (grub_test_assert_helper): Likewise.
8558 * include/grub/test.h (grub_test_assert_helper): New declaration.
8559 (grub_test_assert): Macro rewritten.
8560
8561 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8562
8563 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
8564
8565 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8566
8567 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
8568
8569 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8570
8571 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
8572 into GRUB-style one.
8573
8574 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8575
8576 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
8577 error and not grub_errno.
8578 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
8579
8580 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8581
8582 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
8583 GRUB_USB_SPEED_NONE in case of failure and not the error code.
8584
8585 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 * grub-core/efiemu/i386/pc/cfgtables.c
8588 (grub_machine_efiemu_init_tables): Make declaration a prototype.
8589 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
8590 (grub_xnu_unlock): Likewise.
8591 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
8592
8593 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
8596 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
8597 * grub-core/commands/hashsum.c (aliases): Likewise.
8598 * grub-core/commands/setpci.c (pci_registers): Likewise.
8599 * grub-core/disk/usbms.c (attach_hook): Likewise.
8600 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
8601 (zio_checksum_table): Likewise.
8602 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
8603 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
8604 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
8605 * grub-core/lib/relocator.c (leftovers): Likewise.
8606 (extra_blocks): Likewise.
8607 * grub-core/loader/i386/bsd.c (relocator): Likewise.
8608 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
8609 (modules_last): Likewise.
8610 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
8611 (devices): Likewise.
8612 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
8613 (modules_last): Likewise.
8614 * grub-core/normal/auth.c (users): Likewise.
8615 * grub-core/normal/context.c (initial_menu): Likewise.
8616 (current_menu): Likewise.
8617 * grub-core/normal/crypto.c (crypto_specs): Likewise.
8618 * grub-core/term/serial.c (grub_serial_ports): Likewise.
8619 (grub_serial_terminfo_input_template): Likewise.
8620 (grub_serial_terminfo_output_template): Likewise.
8621 (grub_serial_terminfo_input): Likewise.
8622 (grub_serial_terminfo_output): Likewise.
8623 (registered): Likewise.
8624 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
8625
8626 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
8629 grub_video_mode_type_t.
8630 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
8631 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
8632 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
8633
8634 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8635
8636 * util/grub-install.in: Correct the x86-64 name as x86_64.
8637
8638 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
8639
8640 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
8641 initial chunk read from the kernel always includes GRUB's multiboot
8642 header, which is now outside the first sector.
8643
8644 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8645
8646 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
8647 cached mmap_size, so that this works correctly when called multiple
8648 times.
8649 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
8650
8651 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8652
8653 * docs/grub.texi (Simple configuration): Tidy up formatting.
8654
8655 2011-03-07 Szymon Janc <szymon@janc.net.pl>
8656
8657 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
8658 Set-but-not-used variable removed.
8659
8660 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8661
8662 Workaround yet another IEEE1275 bug.
8663
8664 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8665 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
8666 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
8667 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
8668 is set.
8669 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8670 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
8671
8672 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8673
8674 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
8675 error.
8676
8677 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
8678
8679 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
8680 empty, since in that case we can only generate either nothing or a
8681 syntactically invalid configuration file.
8682 Reported by: Michal Suchanek. Fixes Debian bug #612898.
8683
8684 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8685
8686 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
8687 (Making a GRUB bootable CD-ROM): Likewise.
8688 (Invoking grub-mkrescue): New section.
8689 Reported by: Yann Dirson. Fixes Debian bug #612585.
8690
8691 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8692
8693 * util/grub-install.in: Remove unnecessary brackets from tr
8694 arguments.
8695 * util/grub.d/10_hurd.in: Likewise.
8696 * util/grub.d/10_kfreebsd.in: Likewise.
8697 * util/grub.d/10_linux.in: Likewise.
8698 * util/grub.d/20_linux_xen.in: Likewise.
8699 Reported by: Jamie Heilman. Fixes Debian bug #612564.
8700
8701 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
8702
8703 * include/grub/file.h (not_easly_seekable): Rename to ...
8704 (not_easily_seekable): ... this. Update all users.
8705
8706 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
8707
8708 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
8709 grub-mkrescue.
8710
8711 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * util/grub-mkimage.c (generate_image): Refuse to create the images
8714 bigger than the actual flash (512K) in Loongson machines. 512K is also
8715 the biggest chip supported by them.
8716
8717 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8718
8719 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
8720
8721 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
8722
8723 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
8724 super_offset field.
8725
8726 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8727
8728 * util/grub-install.in: Ignore install device on platforms
8729 where it doesn't make sense. Always use UUIDs except on pc, efi and
8730 sparc64.
8731 Reported by: Daniel Kahn Gillmor.
8732
8733 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
8736
8737 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8738
8739 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
8740 (iterate_real): Don't rely on partition being non-NULL.
8741
8742 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8743
8744 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
8745 supported platforms. Put a compile time assert for this rather than
8746 generate a warning with 32-bit shift.
8747
8748 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
8751 logical expression more readable.
8752
8753 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8754
8755 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
8756 even if some elements have a name.
8757 Reported by: Alexander GQ Gerasiov.
8758
8759 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8760
8761 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
8762 path unreadable if `grub-probe -t abstraction' fails, for example if
8763 memberlist fails on an LVM volume group.
8764 Reported by: Darius Jahandarie.
8765
8766 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8767
8768 * docs/grub.texi (Simple configuration): Document
8769 GRUB_PRELOAD_MODULES.
8770
8771 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
8772
8773 * .bzrignore: Remove nonexistent grub-pbkdf2.
8774
8775 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * configure.ac: Bump version to 1.99~rc1.
8778
8779 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
8782 for safety.
8783
8784 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
8787 module.
8788
8789 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8790
8791 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
8792
8793 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
8796 diskdevid.
8797
8798 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 Fix compilation on cygwin.
8801
8802 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
8803 -R .drectve on cygwin.
8804 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
8805 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
8806 (COND_CYGWIN): New condition.
8807 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
8808 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
8809 not @TARGET_OBJ2ELF@.
8810 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
8811 type to determine whether aux is to be used.
8812
8813 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
8816 realpath'ed device string.
8817 Handle floppy (somewhat).
8818 Issue error in unknown case rather than garbage.
8819 Reported by: Axel Beckert.
8820
8821 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8822
8823 * util/grub.d/00_header.in (load_video): Handle the case when no video
8824 drivers available.
8825 Thanks to: Axel Beckert.
8826
8827 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
8830 variable. Fixes problem on big endian platforms.
8831
8832 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8833
8834 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
8835 It doesn't work well there.
8836
8837 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
8840 warning.
8841 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
8842 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
8843 counter.
8844
8845 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 Use alias->path rather than buggy "canon".
8848
8849 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
8850 (ofdisk_hash_add): New argument curcan. All users updated.
8851
8852 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8853
8854 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
8855
8856 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8857
8858 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
8859 loadmask before doing any calculations. Use correct type for offset.
8860 (grub_linux_load64): Likewise.
8861
8862 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8863
8864 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
8865 with NULL.
8866 (console_grub_equivalences_unshift): Likewise.
8867 Reported by: Daniel Dehennin.
8868
8869 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
8872 (set_env_limn_ro): Likewise.
8873 (GRUB_MOD_INIT): Likewise.
8874 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
8875 ARRAY_SIZE while on it.
8876 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
8877 * grub-core/normal/context.c (grub_env_export): Move from here ...
8878 * grub-core/kern/env.c (grub_env_export): ... here.
8879 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
8880 prefix.
8881 * grub-core/kern/main.c (grub_main): Export root and prefix.
8882 * include/grub/env.h (grub_env_export): Export.
8883 Reported by: Seth Goldberg.
8884
8885 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8888 Take into account space used by ELF sections and multiboot palette.
8889 Reported by: Grégoire Sutre.
8890
8891 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * BUGS: New file.
8894
8895 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 Pass more appropriate video id to Linux.
8898
8899 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
8900 grub_video_get_driver_id and variable gfxpayloadforcelfb to
8901 fill have_vga.
8902 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
8903 shift params->lfb_size.
8904 * include/grub/i386/linux.h: Make an enume out of have_vga values.
8905
8906 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8907
8908 * util/grub-menulst2cfg.c: Add missing include of misc.h.
8909
8910 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
8913 separator and pass bootpath/devid even if only one of them is available.
8914 Reported by: Seth Goldberg.
8915
8916 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
8919 implementations bug on them.
8920
8921 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
8922 memory.
8923 (filter_memory_map): Likewise.
8924
8925 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8926
8927 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
8928 Reported by: nebuchadnezzar.
8929
8930 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
8933 Reported by: nebuchadnezzar.
8934
8935 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 Submenu default support.
8938
8939 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
8940 auto_boot. All users updated.
8941 Declared static.
8942 Handle chosen and default with submenus.
8943 (grub_menu_execute_with_fallback): Declared static.
8944 Don't notify failure if autobooted. Upper level does it.
8945 (menuentry_eq): New function.
8946 (get_entry_number): Use menuentry_eq.
8947 (show_menu): New parameter "autobooted". All users updated.
8948 (grub_show_menu): Likewise.
8949 * include/grub/normal.h (grub_show_menu): Likewise.
8950 * include/grub/menu.h (grub_menu_execute_entry): Removed.
8951 (grub_menu_execute_with_fallback): Likewise.
8952
8953 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * util/grub-mklayout.c (usage): Update help text.
8956
8957 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8958
8959 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
8960
8961 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * util/grub-menulst2cfg.c (main): Trim the line.
8964
8965 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
8968 (grub_machine_init): Don't check amount of low memory as reportedly
8969 INT 12h can be broken and if low memory is too low we wouldn't have
8970 gotten into grub_machine_init anyway.
8971
8972 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
8975 (grub_machine_mmap_iterate): Take low memory into account
8976
8977 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
8980 badfs.
8981 Reported by: TiCPU.
8982
8983 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
8986 members errors.
8987
8988 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
8989
8990 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
8991 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
8992
8993 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
8994
8995 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
8996 openbsd and netbsd types being in part_bsd module.
8997
8998 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
9001 (_FILE_OFFSET_BITS): Likewise.
9002 Reported by: Seth Goldberg.
9003
9004 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
9005
9006 * configure.ac: Check for libdevmapper header.
9007
9008 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
9011 avoid aliasing.
9012 (fzap_lookup): Likewise.
9013 (dnode_get): Likewise.
9014 (make_mdn): Likewise.
9015 (zfs_mount): Likewise.
9016 (fzap_iterate): Use temporary pointer to avoid aliasing.
9017 (grub_zfs_read): Likewise.
9018 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
9019 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
9020 pointers to avoid aliasing.
9021 (grub_cmd_xnu_kernel64): Likewise.
9022 (grub_xnu_load_driver): Likewise.
9023
9024 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9025
9026 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
9027 aliasing warning.
9028 (grub_cmd_terminal_output): Likewise.
9029 Reported and tested by: Grégoire Sutre.
9030
9031 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
9034 warning.
9035 Reported and tested by: Grégoire Sutre.
9036
9037 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9038
9039 * configure.ac: Do CPU substitution even if it's specified explicitly.
9040 Reported and tested by: Alain Greppin.
9041
9042 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
9045 Reported and tested by: Alain Greppin.
9046
9047 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 Satisfy some bison versions need for inttypes.h.
9050
9051 * grub-core/lib/posix_wrap/inttypes.h: New file.
9052 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
9053 (int16_t): Likewise.
9054 (int32_t): Likewise.
9055 (int64_t): Likewise.
9056 Reported and tested by: Alain Greppin.
9057
9058 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
9061 Silence spurious warning.
9062 Reported and tested by: Alain Greppin.
9063
9064 2011-01-07 Szymon Janc <szymon@janc.net.pl>
9065
9066 * docs/grub.texi (Support automatic decompression): Update with xz
9067 decompression support.
9068
9069 2011-01-07 Szymon Janc <szymon@janc.net.pl>
9070
9071 Improve loaders' kernel command line handling.
9072
9073 * grub-core/lib/cmdline.c: New file.
9074 * include/grub/lib/cmdline.h: Likewise.
9075 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
9076 grub_create_loader_cmdline to create kernel command line.
9077 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9078 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
9079 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
9080 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
9081 (linux): Add lib/cmdline.c on common.
9082
9083 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
9086 inopos might be unaligned.
9087
9088 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
9091 endian transformations.
9092 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9093 Based on report by: Doug Nazar.
9094
9095 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
9096
9097 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
9098 array->members[i].start_sector.
9099 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9100
9101 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9102
9103 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
9104 Reported and tested by: Grégoire Sutre.
9105
9106 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9107
9108 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
9109 avoid causing test failures by clearing the screen.
9110
9111 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9112
9113 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
9114 Fix prefix check to handle the case where dir ends with a slash
9115 (most significantly, "/" itself).
9116 Reported by: Michael Vogt.
9117
9118 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 Run terminfo_cls on initing terminfo output to clear the screen and
9121 move the cursor to (0,0).
9122
9123 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
9124 Call grub_terminfo_output_init.
9125 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
9126 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
9127 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
9128
9129 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
9132 only when needed.
9133
9134 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
9137 CTRL.
9138
9139 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9140
9141 The E820 type 5 is BADRAM, not EXEC_CODE.
9142
9143 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9144 (GRUB_E820_BADRAM): New define.
9145 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
9146 into reserved. Propagate BADRAM.
9147 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9148 (GRUB_E820_BADRAM): New define.
9149
9150 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
9153 Ignore the memory post-4G.
9154 (grub_relocator_firmware_alloc_region): Additional debug statement.
9155
9156 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9157
9158 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
9159 names.
9160 Reported by: David Pravec.
9161
9162 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9163
9164 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
9165 BIOSes.
9166
9167 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9168
9169 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
9170 Prevent overflow.
9171 (grub_reed_solomon_recover): Likewise.
9172
9173 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
9176
9177 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9178
9179 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
9180 variable.
9181
9182 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
9183
9184 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
9185 descriptions of extract_legacy_entries_source and
9186 extract_legacy_entries_configfile.
9187 Reported by: Seung Soo, Ha.
9188
9189 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
9190
9191 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
9192 on devices that do not implement function 0.
9193
9194 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
9195
9196 * grub-core/fs/hfsplus.c: Make parent unsigned.
9197 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
9198 overflows.
9199 (grub_hfsplus_cmp_extkey): Likewise
9200
9201 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9202
9203 * util/grub-install.in: Correctly use bootloader_id and not
9204 GRUB_DISTRIBUTOR on efibootmgr line.
9205
9206 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9207
9208 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
9209
9210 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
9211
9212 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
9213 Xen and reorder menu item wording to make it clearer that this entry
9214 will launch Xen. Print separate messages when loading Xen and
9215 Linux.
9216
9217 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9218
9219 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
9220 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
9221 loop in case of incorrect amiga partmap.
9222
9223 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9224
9225 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
9226 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
9227 Reported by:EHeM.
9228
9229 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
9232 spurious warning.
9233 Reported by: crocket
9234
9235 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9236
9237 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
9238 Preload EFIemu.
9239 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
9240
9241 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9242
9243 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
9244 is loaded
9245 (grub_cmd_xnu_kextdir): Likewise.
9246 (grub_cmd_xnu_splash): Likewise.
9247
9248 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 Avoid using Reed-Solomon with 0 redundancy.
9251
9252 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
9253 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
9254 or 0 redundancy.
9255 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
9256 (grub_reed_solomon_recover): Likewise.
9257
9258 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 Don't use disk subsystem in freebsd_boot.
9261
9262 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
9263 (freebsd_biosdev): Likewise.
9264 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
9265 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
9266
9267 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 Handling of files of unknown size is currently limited. They can't be
9270 used e.g. for initrd or modules. Moreover gzip handling of not
9271 easily seekable files is buggy. Disable unknown file size for now. May
9272 be inefficient but works.
9273
9274 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
9275 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
9276
9277 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
9278
9279 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
9280 floppy probe.
9281
9282 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
9283
9284 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
9285
9286 2010-12-25 Shea Levy <shlevy>
9287
9288 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
9289
9290 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9291
9292 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
9293 Windows Server 2008.
9294 Reported by: Devin Giddings.
9295
9296 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9297
9298 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
9299 writing an error message because of async power management.
9300 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
9301 (grub_reboot): Likewise.
9302
9303 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
9304
9305 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
9306 keep unit tests from failing when they shouldn't.
9307
9308 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9309
9310 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
9311 previous patch increased the size of the RS code by 20 bytes (at
9312 least with gcc-4.4), so increase this by 20 bytes to match.
9313 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9314
9315 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9316
9317 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
9318 scratch area. Make sure to initialise chosen in standalone mode as
9319 well as non-standalone.
9320 Reported by: Robert Hooker and Andy Whitcroft.
9321 Tested by: Andy Whitcroft.
9322
9323 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9324
9325 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
9326 constructing a new unescaped string and passing it to grub_xputs in
9327 one go, rather than passing characters to grub_printf one at a time.
9328
9329 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9330
9331 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
9332 initialising utf16.
9333
9334 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9335
9336 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
9337 comment. Add an extra layer of quotation, requiring the output of
9338 this function to be used in a printf format string.
9339 (gettext_printf): New function.
9340 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
9341 Extract translatable strings from here-documents and use a temporary
9342 variable instead, so that xgettext can find them.
9343 * util/grub.d/10_kfreebsd.in: Likewise.
9344 * util/grub.d/10_linux.in: Likewise.
9345 * util/grub.d/20_linux_xen.in: Likewise.
9346
9347 * po/grub.d.sed: New file.
9348 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
9349 arguments. Set c-format flags on all strings extracted from
9350 util/grub.d/ (xgettext refuses to include these itself for strings
9351 it extracted from a shell file, but these really are c-format).
9352
9353 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9354
9355 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
9356 Avoid next pointing to nowhere.
9357
9358 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9359
9360 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
9361 rather than assuming than rootblock is exactly in the middle.
9362 (grub_affs_label): Likewise.
9363
9364 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9365
9366 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
9367 reserved_first_sector to 0.
9368 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
9369 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
9370 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
9371
9372 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9373
9374 Fix handling of UTF-16 UDF labels.
9375
9376 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
9377 (read_string): .. here.
9378 (grub_udf_label): Use read_string.
9379
9380 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
9381
9382 * grub-core/normal/menu_entry.c (run): Execute commands from menu
9383 editor under argument scope.
9384 Reported by: Jordan Uggla
9385
9386 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9387
9388 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
9389
9390 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
9391
9392 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
9393 line, and other keys scroll an entire page (previous handling was
9394 for \r and \n to scroll a page and other keys to scroll two lines).
9395
9396 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9397
9398 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9399 Set ptrdest to correct get_physical_target_address rather than
9400 incorrect get_virtual_current_address.
9401
9402 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
9403
9404 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
9405 correct cat to grub_uint8_t * rather than grub_uint32_t *.
9406
9407 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9408
9409 * .bzrignore: Ignore grub-core/rs_decoder.S.
9410
9411 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9412
9413 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
9414 .mo/.mo.gz opening sequence to ...
9415 (grub_mofile_open_lang): ... here.
9416 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
9417 * util/grub.d/00_header.in (grub_lang): Include country part of
9418 locale.
9419 Reported by: Mario Limonciello.
9420
9421 2010-12-09 Robert Millan <rmh@gnu.org>
9422
9423 * NEWS: Document addition of ZFS support.
9424
9425 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
9426
9427 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
9428 rather than `/ 2', as the latter requires -Wa,--divide which would
9429 require bumping our minimum binutils version.
9430
9431 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
9432
9433 * util/grub-script-check.c (main): Print script line number on
9434 error.
9435
9436 2010-12-01 Robert Millan <rmh@gnu.org>
9437
9438 * grub-core/fs/zfs/zfs.c: New file.
9439 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
9440 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
9441 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
9442 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9443
9444 * include/grub/zfs/dmu.h: Likewise.
9445 * include/grub/zfs/dmu_objset.h: Likewise.
9446 * include/grub/zfs/dnode.h: Likewise.
9447 * include/grub/zfs/dsl_dataset.h: Likewise.
9448 * include/grub/zfs/dsl_dir.h: Likewise.
9449 * include/grub/zfs/sa_impl.h: Likewise.
9450 * include/grub/zfs/spa.h: Likewise.
9451 * include/grub/zfs/uberblock_impl.h: Likewise.
9452 * include/grub/zfs/vdev_impl.h: Likewise.
9453 * include/grub/zfs/zap_impl.h: Likewise.
9454 * include/grub/zfs/zap_leaf.h: Likewise.
9455 * include/grub/zfs/zfs.h: Likewise.
9456 * include/grub/zfs/zfs_acl.h: Likewise.
9457 * include/grub/zfs/zfs_znode.h: Likewise.
9458 * include/grub/zfs/zil.h: Likewise.
9459 * include/grub/zfs/zio.h: Likewise.
9460 * include/grub/zfs/zio_checksum.h: Likewise.
9461
9462 * Makefile.util.def: Build ZFS into libgrubmods.
9463 * grub-core/Makefile.core.def: Build zfs.mod.
9464
9465 2010-11-30 Szymon Janc <szymon@janc.net.pl>
9466
9467 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
9468 variable.
9469 * grub-core/commands/wildcard.c (match_files): Likewise.
9470
9471 2010-11-30 Robert Millan <rmh@gnu.org>
9472
9473 * grub-core/loader/i386/bsd.c
9474 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
9475 whether kernel is loaded using grub_loader_is_loaded(), rather
9476 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
9477 certain error conditions.
9478
9479 2010-11-30 Robert Millan <rmh@gnu.org>
9480
9481 * grub-core/commands/echo.c: Include `<grub/term.h>'.
9482 (grub_cmd_echo): Call grub_refresh() after printing a message.
9483
9484 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 Avoid using tricks for initialising endian variables.
9487
9488 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
9489 Make const.
9490 (GRUB_MOD_INIT): Don't byte-swap.
9491 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9492 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
9493 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
9494 (grub_swap_bytes32_compile_time): Likewise.
9495 (grub_cpu_to_le32_compile_time): Likewise.
9496 (grub_cpu_to_le16_compile_time): Likewise.
9497
9498 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 * util/grub-setup.c (setup): Stop recommending --force. People who
9501 understand the dangers of blocklists are able to find this option
9502 anyway and the ones who don't shouldn't use it anyway.
9503
9504 2010-11-26 Robert Millan <rmh@gnu.org>
9505
9506 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
9507 Update all users.
9508
9509 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
9510
9511 Fix LVM-on-RAID probing.
9512
9513 * util/grub-probe.c (probe): Remember which disk was detected as
9514 RAID (perhaps an LVM physical volume). Use that disk's raidname
9515 rather than that of the top-level disk.
9516
9517 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
9518
9519 Fix cmdline argument quotes for setparams command of menuentry
9520 definitions.
9521
9522 * grub-core/commands/menuentry.c (setparams_prefix): Use single
9523 quotes for arguments.
9524 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
9525 grub_strchrsub function instead.
9526
9527 * include/grub/misc.h (grub_strchrsub): New function.
9528
9529 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9530
9531 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
9532 effort by skipping "." and ".." entries up-front.
9533 Suggested by: Michael Lazarev.
9534
9535 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9536
9537 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
9538 ldflags to ldadd, to fix link line ordering.
9539 (none_decompress): Likewise.
9540
9541 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9542
9543 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
9544 platforms.
9545 (grub-emu-lite): Remove kern/emu/cache.S.
9546
9547 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9548
9549 * util/deviceiter.c (compare_devices): If the by-id link for a
9550 device couldn't be resolved, fall back to sorting by the by-id link
9551 rather than segfaulting.
9552 Reported and tested by: Daniel Mierswa.
9553
9554 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9555
9556 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
9557 ldflags, to fix link line ordering.
9558
9559 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9560
9561 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
9562 linkers are picky about this.
9563
9564 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9565
9566 * grub-core/Makefile.am (command.lst): Adjust sed expression
9567 ordering so that extended and priority commands aren't treated as
9568 ordinary commands.
9569
9570 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9571
9572 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9573 Remove byte-swapping function calls, which are not valid in
9574 structure initialisers.
9575 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
9576 non-const.
9577 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
9578 grub_gpt_partition_type_bios_boot.
9579
9580 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9581
9582 Fix test program build on GNU/kFreeBSD.
9583
9584 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
9585 $(LIBNVPAIR)' library dependencies.
9586
9587 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9588
9589 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
9590
9591 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9592
9593 * util/grub-install.in: Remove excessive quoting that broke
9594 installations to RAID devices.
9595
9596 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9597
9598 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
9599 bootloader version instead of 0.
9600
9601 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
9604 warning.
9605
9606 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
9609 retrieve the metadat sector if size isn't known.
9610 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9611
9612 2010-11-18 Robert Millan <rmh@gnu.org>
9613
9614 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
9615 with grub_memcmp().
9616
9617 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
9618
9619 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
9620 arrow.
9621 Reported by: Jordan Uggla.
9622
9623 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 Make better UTF compliant.
9626
9627 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
9628 sequences as incorrect.
9629 (grub_is_valid_utf8): Likewise.
9630 (grub_utf8_to_ucs4): Likewise.
9631 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
9632 (grub_ucs4_to_utf8_alloc): Likewise.
9633 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
9634
9635 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 Make legacy_source behave like source.
9638
9639 * grub-core/commands/legacycfg.c (legacy_file): Don't call
9640 grub_show_menu.
9641 (grub_cmd_legacy_source): Call grub_show_menu if needed.
9642
9643 2010-11-16 Colin Watson <cjwatson@debian.org>
9644
9645 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
9646 (-Wunused implies -Wunused-parameter, but not vice versa).
9647
9648 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
9649
9650 * configure.ac: Make error messages less confusing by testing for
9651 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
9652 accepted, but produces a diagnostic if something else is wrong).
9653
9654 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9655
9656 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
9657 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
9658 (now unused).
9659 (grub_keyboard_controller_init)
9660 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
9661 read the initial state since controller isn't inited yet.
9662
9663 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9664
9665 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
9666 allocate_regbeg may need to create new chunk header.
9667
9668 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9669
9670 Fix quoting in legacy parser.
9671
9672 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
9673 single quotes.
9674 (grub_legacy_parse): Likewise.
9675 Reported by: Jordan Uggla.
9676 Tested by: Jordan Uggla.
9677
9678 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 Don't add -lgcc on i386 and x86_64.
9681
9682 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
9683 * conf/Makefile.common (LDADD_KERNEL): Likewise.
9684 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
9685
9686 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * configure.ac: Add -Wno-trampolines when supported.
9689
9690 2010-11-14 Modestas Vainius <modax@debian.org>
9691
9692 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
9693 fakeraid.
9694
9695 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9696
9697 Add generic logical block size support for UDF.
9698
9699 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
9700 (GRUB_UDF_BLKSZ): Removed.
9701 (struct grub_udf_data): New field "lbshift" to hold the logical block
9702 size of the file system in log2 format. All users updated.
9703 (sblocklist): Change type to unsigned.
9704 (grub_udf_mount): Change type of "sblklist" to unsigned.
9705 Move AVDP search before VRS recognition, because the latter requires
9706 knowledge of the logical block size, which is detected during the
9707 former.
9708 Detect and validate logical block size during AVDP search, adding
9709 support for block sizes 512, 1024 and 4096.
9710 Make VRS recognition independent of block size.
9711
9712 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9713
9714 Properly handle deleted files on UDF.
9715
9716 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
9717 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
9718 set.
9719
9720 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9721
9722 Support reading files larger than 2 GiB.
9723
9724 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
9725 "offset" to grub_off_t.
9726 (grub_udf_read_file): Likewise for parameter "pos".
9727
9728 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9729
9730 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
9731 unavailable.
9732 (Simple configuration): Refer to Changes from GRUB Legacy about
9733 save_env availability.
9734
9735 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 * util/grub-install.in: Ignore empty partition table detection
9738 instead of trying to include part_ module.
9739
9740 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
9743 LVM on RAID support.
9744
9745 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9746
9747 Properly define WORDS_BIGENDIAN in wrapped environments.
9748
9749 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
9750 definition.
9751 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
9752
9753 Reported by: Manoel Rebelo Abranches.
9754 Tested by: Manoel Rebelo Abranches.
9755
9756 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 * util/grub-mkconfig.in: Fix quoting.
9759
9760 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9761
9762 Support big ext2 files.
9763
9764 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
9765 (grub_ext2_read_block): Support triple indirect blocks.
9766 (grub_ext2_read_file): Use 64-bit types and read size_high.
9767 (grub_ext2_open): Read size_high.
9768 Reported by: Ximin Luo.
9769 Tested by: Manoel Rebelo Abranches.
9770
9771 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 * util/grub-install.in: Handle filenames containing spaces.
9774 Reported by: Jordan Uggla.
9775 Tested by: Jordan Uggla.
9776
9777 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9778
9779 * util/grub-mkconfig.in (grub_script_check): New variable.
9780 Use grub_script_check instead of grub-script-check.
9781 Reported by: Barry Jackson.
9782
9783 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9784
9785 * docs/grub.texi (menu): Correct the order.
9786 Reported by: D. Hugh Redelmeier.
9787
9788 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
9791 jump.
9792
9793 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
9794
9795 * include/grub/elfload.h (grub_elf32_size): New parameter.
9796 All users updated.
9797 Return maximum segments alignment.
9798 (grub_elf64_size): Likewise.
9799 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
9800 Return maximum segments alignment.
9801 (grub_elf64_size): Likewise.
9802 * grub-core/loader/powerpc/ieee1275/linux.c:
9803 (grub_linux_claimmap_iterate): New function. Uses the
9804 "available" property in the "memory" node for memory allocation
9805 for kernel in the PowerPC loader.
9806 (grub_linux_load32): Correctly find linux entry point offset.
9807 (grub_linux_load64): Likewise.
9808
9809 2010-11-07 Robert Millan <rmh@gnu.org>
9810
9811 On mips-yeeloong, build with -march=loongson2f when this flag is
9812 available (GCC >= 4.4).
9813 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
9814 `-march=mips3'.
9815 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
9816 or otherwise add -march=mips3.
9817
9818 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
9819
9820 Suppress shell expansion on echo '*' and echo "*" like cases.
9821 Reported by: Jordan Uggla.
9822
9823 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9824 string arguments before shell expansion.
9825 * tests/grub_cmd_echo.in: New testcases.
9826
9827 2010-11-07 Robert Millan <rmh@gnu.org>
9828
9829 * conf/mips-qemu-mips.rmk: Remove stale file from previous
9830 transition.
9831
9832 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/kern/emu/hostdisk.c
9835 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
9836
9837 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
9840 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
9841 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
9842
9843 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9844
9845 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
9846
9847 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 * util/grub-install.in: Replace useless recomendation to pass
9850 --modules with a recomendation to report a bug.
9851
9852 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 Properly register serial terminfo.
9855 Reported by: Jordan Uggla
9856
9857 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
9858 const.
9859 (grub_serial_terminfo_output_template): Likewise.
9860 (grub_cmd_serial): Register "serial" with terminfo.
9861 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
9862 grub_serial_terminfo_output.
9863
9864 2010-11-05 Robert Millan <rmh@gnu.org>
9865
9866 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
9867 needed).
9868
9869 2010-11-05 Robert Millan <rmh@gnu.org>
9870
9871 On Yeeloong, pass machine type information to Linux.
9872
9873 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
9874 (LOONGSON_MACHTYPE): New macro, set to
9875 "machtype=lemote-yeeloong-2f-8.9inches".
9876 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
9877 additional argument to Linux.
9878
9879 2010-11-04 Robert Millan <rmh@gnu.org>
9880
9881 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
9882 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
9883 (its SATA disks are detected as slaveless IDE master drives on
9884 kFreeBSD).
9885 Reported by Carsten Aulbert.
9886
9887 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
9888
9889 * util/bin2h.c (main): Fix spelling error in generated output.
9890
9891 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
9892
9893 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
9894
9895 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9896
9897 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
9898 vga= option is supplied.
9899
9900 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
9903 * util/grub.d/10_kfreebsd.in: Likewise.
9904 * util/grub.d/10_linux.in: Likewise.
9905 * util/grub.d/20_linux_xen.in: Likewise.
9906
9907 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
9910 argument as an argument to no-argument option.
9911
9912 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 * util/grub.d/10_linux.in: Add missing load_video with explicit
9915 GRUB_GFXPAYLOAD_LINUX.
9916
9917 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9918
9919 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
9920
9921 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
9924 elements with invlid index.
9925 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9926 * grub-core/disk/raid.c (insert_array): Automatically reallocate
9927 members.
9928 * include/grub/raid.h (grub_raid_member): New struct.
9929 (grub_raid_array): Transform devices and start_sector into usage of
9930 grub_raid_member. All users updated
9931 (allocated_devs): New member.
9932
9933 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9934
9935 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
9936 is modified
9937
9938 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
9939
9940 NetBSD build fix for getline function conflict from gnulib.
9941
9942 * Makefile.util.def (libgrubkern.a): New library for grub kernel
9943 components that depend on gnulib headers.
9944 (libgrubmods.a): Renamed from earlier libgrub.a.
9945 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
9946
9947 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9948
9949 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
9950 install rather than creating a broken install.
9951
9952 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9953
9954 * util/grub-setup.c (argp): Remove misleading example of installing to
9955 a partition.
9956
9957 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9958
9959 * util/grub-setup.c (setup): Clarify the error message.
9960
9961 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9962
9963 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
9964
9965 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9966
9967 * grub-core/kern/emu/misc.c
9968 (grub_make_system_path_relative_to_its_root)
9969 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
9970
9971 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9972
9973 * grub-core/kern/emu/misc.c
9974 (grub_make_system_path_relative_to_its_root): Revert r2882.
9975
9976 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
9979 useless field head. All users updated.
9980 (free_subchunk): Correct handling of IN_REGION subchunk.
9981
9982 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
9983
9984 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
9985 (Supported kernels): Likewise.
9986
9987 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
9988
9989 Make mktemp invocations portable.
9990
9991 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
9992 exit if mktemp fails.
9993 * tests/grub_script_blockarg.in: Likewise.
9994 * tests/partmap_test.in: Likewise.
9995 * tests/util/grub-shell-tester.in: Likewise.
9996 * tests/util/grub-shell.in: Likewise.
9997 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9998 * Makefile.am: Likewise, and chain shell commands with `&&'
9999 instead of ';'.
10000 * util/grub-mkrescue.in: Use the same explicit template as above, and
10001 exit if mktemp fails.
10002
10003 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
10004
10005 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
10006 Linux kernel, reported by Dennis Schridde.
10007
10008 2010-10-17 Szymon Janc <szymon@janc.net.pl>
10009
10010 * grub-core/normal/auth.c (grub_auth_check_authentication):
10011 Set-but-not-used variable removed.
10012
10013 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * docs/grub.texi (GNU/Linux): Document APM unavailability with
10016 32-bit linux protocol.
10017
10018 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
10021 cursor shape for sanity.
10022
10023 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 * docs/grub.texi (Installation): Document buggy BIOS install.
10026
10027 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * docs/grub.texi (Installation): Indent.
10030
10031 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * util/grub-setup.c (setup): New parameter allow_floppy.
10034 (arguments): New member allow_floppy.
10035 (argp_parser): Handle --allow-floppy.
10036 (main): Pass allow_floppy.
10037 * util/grub-install.in: New option --allow-floppy passed though to
10038 grub-setup.
10039
10040 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10041
10042 * util/grub-install.in: Handle partitionless disks.
10043
10044 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10045
10046 * util/grub-setup.c (setup): Don't clean blocklists before readability
10047 verfification.
10048
10049 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10050
10051 * docs/grub.texi (Installation): Document embedding zone. Remove
10052 obsolete grub-install example.
10053
10054 2010-10-16 Szymon Janc <szymon@janc.net.pl>
10055
10056 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
10057 Set-but-not-used variable ifdef'ed.
10058 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
10059 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
10060 variable removed.
10061 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
10062 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
10063 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
10064 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
10065 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
10066 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
10067 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
10068 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
10069 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
10070 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
10071 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
10072 Likewise.
10073
10074 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
10077 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
10078 enum value.
10079
10080 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10081
10082 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
10083 synonym to _S5_. Needed for some DSDTs.
10084
10085 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 Userspace ACPI parser debugging.
10088
10089 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
10090 headers and add relevant defines. Don't include standard headers.
10091 (main) [GRUB_DSDT_TEST]: New function.
10092 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
10093 Don't declare functions.
10094
10095 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 Remove dead grub_efi_mm_fini.
10098
10099 * grub-core/kern/efi/mm.c (allocated_page): Removed.
10100 (ALLOCATED_PAGES_SIZE): Likewise.
10101 (MAX_ALLOCATED_PAGES): Likewise.
10102 (allocated_pages): Likewise.
10103 (grub_efi_allocate_pages): Don't record allocated pages.
10104 (grub_efi_free_pages): Likewise.
10105 (grub_efi_mm_init): Likewise.
10106 (grub_efi_mm_fini): Removed.
10107
10108 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10109
10110 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
10111 (grub_efi_mm_init): Take into account the memory map size increase.
10112
10113 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
10116 (serial_hw_put): Wait based on real time rather than port reads. Don't
10117 roken ports.
10118 * include/grub/serial.h (grub_serial_port): New field broken.
10119
10120 2010-10-16 Robert Millan <rmh@gnu.org>
10121
10122 * grub-core/kern/emu/misc.c
10123 (grub_make_system_path_relative_to_its_root): Fix premature return
10124 when processing non-root ZFS filesystems.
10125 Reported by Sergio Talens-Oliag.
10126
10127 2010-10-15 Robert Millan <rmh@gnu.org>
10128
10129 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
10130 guarantee compressed ones are processed first.
10131
10132 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10133
10134 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
10135 grub_efiemu_autocore.
10136
10137 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10138
10139 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
10140 rather than 0x1b.
10141 (grub_console_getkey): Use correct jae opcode rather than ja.
10142
10143 2010-10-12 Robert Millan <rmh@gnu.org>
10144
10145 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
10146 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
10147 variable. All references updated.
10148
10149 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
10150
10151 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 Correctly distinguish mdraid flavours.
10154
10155 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
10156 (insert_array): New argument raid.
10157 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
10158 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
10159 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
10160
10161 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
10162
10163 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
10164 handling of special keys.
10165
10166 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10167
10168 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
10169 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
10170
10171 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10172
10173 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
10174 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
10175 users updated.
10176 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
10177 Use right endpoint when querying descriptor.
10178
10179 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10180
10181 Clear out 0x80 color bit on EFI.
10182 Tested by: decoder
10183 Reported by: decoder and meta tech.
10184
10185 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
10186 (grub_console_setcolorstate): Clear out 0x80 bit.
10187 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
10188 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
10189 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
10190
10191 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
10194 Set to "auto".
10195
10196 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10197
10198 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
10199 mo_file after freeing.
10200
10201 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10202
10203 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
10204
10205 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
10208 flags.
10209
10210 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10211
10212 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
10213 usage.
10214
10215 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10216
10217 Put terminfo into core on ieee1275 and yeeloong (needed for console).
10218
10219 * gentpl.py: New groups terminfoinkernel and terminfomodule.
10220 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
10221 and terminfo.h when needed.
10222 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
10223 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
10224 (terminfo): Enable only on terminfokernel.
10225 (extcmd): Likewise.
10226 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
10227 * include/grub/lib/arg.h: Likewise.
10228 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
10229 incorrect usage of ->.
10230
10231 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10232
10233 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
10234 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
10235
10236 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10237
10238 Fix coreboot compilation.
10239
10240 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10241 Take VBE info into account even if only text is supported.
10242 (fill_vbe_info): Take into account the case when only VGA text
10243 is supported.
10244 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
10245 on coreboot, multiboot and qemu.
10246
10247 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
10250 debug messages.
10251 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
10252
10253 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10254
10255 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
10256 parameters.
10257
10258 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
10261 if they were BSD-style.
10262
10263 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 * grub-core/boot/i386/pc/lnxboot.S: Replace
10266 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
10267 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
10268
10269 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10270
10271 Write embedding zone using Reed-Solomon.
10272
10273 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
10274 * grub-core/Makefile.am (rs_decoder.S): New target.
10275 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
10276 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
10277 (multiboot): Move to RS part.
10278 (post_reed_solomon): New label.
10279 (grub_boot_drive): Move to non-RS part since it's modified in memory
10280 on boot.
10281 Include rs_decoder.S.
10282 * grub-core/lib/reed_solomon.c: New file.
10283 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
10284 New definition.
10285 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
10286 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
10287 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
10288 * include/grub/partition.h (grub_partition_map): Change prototype of
10289 embed to allow returning additional sectors.
10290 * include/grub/reed_solomon.h: New file.
10291 * util/grub-setup.c (setup): Handle Reed-Solomon.
10292
10293 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
10294
10295 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10296 i386 and x86-64 definedness tests.
10297
10298 2010-09-27 Yves Blusseau <blusseau@zetam.org>
10299
10300 Fix generation of kernel_syms.lst
10301
10302 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
10303 ASM_PREFIX
10304
10305 2010-09-26 Robert Millan <rmh@gnu.org>
10306
10307 Support degraded ZFS arrays in "grub-probe -t device" resolution.
10308
10309 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
10310 the pool is an array of devices, iterate through it and return the
10311 first device that passes a stat() test (instead of blindly returning
10312 the first one).
10313
10314 2010-09-26 Robert Millan <rmh@gnu.org>
10315
10316 Build fixes for GNU/kFreeBSD.
10317
10318 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
10319 to programs that require ZFS conversion.
10320 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
10321 kernels that don't have FLOPPY_MAJOR.
10322
10323 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10324
10325 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
10326
10327 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10328
10329 Fix grub-emu build.
10330
10331 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
10332 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
10333 mdraid09 and mdraid1x.
10334
10335 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
10336
10337 Re-enable grub-extras.
10338
10339 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
10340 avoid confusing Automake. Run autogen only twice, once for the top
10341 level and once for grub-core. Add Makefile.util.def and
10342 Makefile.core.def from extra modules to the appropriate autogen
10343 invocations. If Makefile.common exists in an extra module, include
10344 it in both Makefile.util.am and grub-core/Makefile.core.am;
10345 similarly, include any Makefile.util.common file in Makefile.util.am
10346 and any Makefile.core.common file in grub-core/Makefile.core.am.
10347 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
10348 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
10349 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
10350 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
10351
10352 * gentpl.py (gvar_add): Turn GVARS into a set.
10353 (global_variable_initializers): Sort global variables on output.
10354 (vars_init): New function.
10355 (first_time): Likewise.
10356 (library): Ensure that non-global variable initialisations are
10357 emitted before the first time we emit code for a library block.
10358 Append to variables rather than setting them. Only emit
10359 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
10360 each conditional path.
10361 (program): installdir() emits an Autogen macro, so must be passed to
10362 var_add rather than gvar_add.
10363 (data): Likewise.
10364 (script): Likewise.
10365 (rules): New function, centralising handling for different target
10366 types. Set up Guile association lists for first_time and vars_init,
10367 and send most output to a diversion so that variable initialisations
10368 can be emitted first.
10369 (module_rules): Use new rules function.
10370 (kernel_rules): Likewise.
10371 (image_rules): Likewise.
10372 (library_rules): Likewise.
10373 (program_rules): Likewise.
10374 (script_rules): Likewise.
10375 (data_rules): Likewise.
10376
10377 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
10378
10379 * .bzrignore: Add contrib and grub-core/contrib. Remove
10380 grub-core/Makefile.gcry.am.
10381
10382 2010-09-24 Yves Blusseau <blusseau@zetam.org>
10383
10384 * grub-core/lib/LzFind.c: Add missing include.
10385 * grub-core/lib/LzmaEnc.c: Likewise.
10386 * grub-core/script/lexer.c: Likewise.
10387 * grub-core/script/yylex.l: Likewise.
10388 * util/grub-macho2img.c: Likewise.
10389 * util/grub-menulst2cfg.c: Likewise.
10390 * util/grub-mklayout.c: Likewise.
10391 * util/grub-mkpasswd-pbkdf2.c
10392 * util/grub-mkrelpath.c: Likewise.
10393 * util/resolve.c: Likewise.
10394
10395 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
10396
10397 * Makefile.util.def (example_unit_test): Add
10398 grub-core/gnulib/libgnu.a.
10399
10400 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
10401
10402 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
10403
10404 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
10405
10406 Support xz compression on yeeloong.
10407
10408 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
10409 * configure.ac: Check for LZMA.
10410 * grub-core/Makefile.core.def (xz_decompress): New target.
10411 (none_decompress): Likewise.
10412 * grub-core/boot/decompressor/minilib.c: New file.
10413 * grub-core/boot/decompressor/none.c: Likewise.
10414 * grub-core/boot/decompressor/xz.c: Likewise.
10415 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
10416 * grub-core/kern/mips/cache_flush.S: Likewise.
10417 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
10418 * grub-core/kern/mips/startup.S: Move first stage to ...
10419 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
10420 nomacro.
10421 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
10422 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
10423 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
10424 Allocate statically.
10425 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
10426 Allocate statically or use scratch. Don't check CRC32.
10427 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
10428 Allocate statically. Don't check CRC32.
10429 * include/grub/decompressor.h: New file.
10430 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
10431 Removed.
10432 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
10433 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
10434 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
10435 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
10436 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
10437 * util/grub-mkimage.c (grub_compression_t): New type.
10438 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
10439 (image_target_desc): New field default_compression.
10440 (image_targets): Adjust yeeloong targets.
10441 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
10442 (compress_kernel): New parameter comp.
10443 (generate_image): Likewise. Handle new compression case.
10444 (options): New option --compression
10445 (help): Likewise.
10446 (main): Handle new option.
10447
10448 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
10449
10450 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
10451
10452 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
10453
10454 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10455 typo in __i386__ conditional.
10456
10457 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10458
10459 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
10460 include.
10461
10462 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10463
10464 Implement EFI and ACPI multiboot2 extensions.
10465
10466 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
10467 new tags as supported.
10468 (acpiv2_size): New function.
10469 (grub_multiboot_get_mbi_size): Take new tags into account.
10470 (grub_multiboot_make_mbi): Add new tags.
10471 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
10472
10473 2010-09-21 Aleš Nesrsta <starous@volny.cz>
10474
10475 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
10476 Added missing configuration of USB device.
10477
10478 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10479
10480 * grub-core/normal/menu_entry.c (run): Make sure we always return
10481 a value.
10482
10483 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10484
10485 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
10486 NumberOfPages is UINT64 according to the UEFI specification, not
10487 UINTN. Fix printf format.
10488
10489 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10490
10491 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
10492 `err' to grub_usb_err_t.
10493 Reported and tested by: KESHAV P.R.
10494
10495 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10496
10497 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
10498 tpart non-const, so that we can assign to it. (Since this is a
10499 typedef, the constness refers to the pointer rather than what it
10500 points to.)
10501
10502 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10503
10504 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
10505 $(top_srcdir)/grub-core/gnulib as well as
10506 $(top_builddir)/grub-core/gnulib.
10507 Reported by: KESHAV P.R.
10508
10509 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10510
10511 * util/grub-install.in: Fix the bootloader ID option to be
10512 consistently --bootloader-id, not --bootloader_id.
10513 Reported by: KESHAV P.R.
10514
10515 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10516
10517 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
10518 check hash checksum." consistently translatable.
10519
10520 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10521
10522 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
10523 $(top_builddir).
10524
10525 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10526
10527 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
10528 (GRUB_MOD_INIT): Register sha1sum command.
10529 (GRUB_MOD_FINI): Unregister sha1sum command.
10530
10531 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10532
10533 Keep boot and grub directory names in sync with utils scripts
10534
10535 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
10536 * config.h.in: Add previous macros.
10537 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
10538 * util/grub-install.in: Use $bootdir and $grubdir variables.
10539
10540 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10541
10542 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
10543 convert partition names to disk names if the new `convert' parameter
10544 is set.
10545 (grub_util_biosdisk_get_grub_dev): If opening the disk device
10546 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
10547 disk in its own right. This can happen with Xen disk images.
10548
10549 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10550
10551 * util/grub-editenv.c: Update strings to avoid warnings when generating
10552 grub.pot file.
10553 * util/grub-setup.c: Likewise.
10554
10555 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10556
10557 * configure.ac: Change version to 1.99~beta0.
10558
10559 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10562 Add BADRAM.
10563 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
10564 Likewise.
10565 * include/multiboot.h: Resynced with specification.
10566 * include/multiboot2.h: Likewise.
10567
10568 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10569
10570 Fix po directory handling.
10571
10572 * configure.ac: Create po/Makefile.in rather than po/Makefile.
10573 * grub-core/gnulib/Makefile.am: Import gettext module.
10574 * m4/gnulib-cache.m4: Likewise.
10575 * m4/gnulib-comp.m4: Likewise.
10576 * m4/gettext.m4: New file, from gnulib.
10577 * m4/glibc2.m4: Likewise.
10578 * m4/iconv.m4: Likewise.
10579 * m4/intdiv0.m4: Likewise.
10580 * m4/intl.m4: Likewise.
10581 * m4/intldir.m4: Likewise.
10582 * m4/intlmacosx.m4: Likewise.
10583 * m4/intmax.m4: Likewise.
10584 * m4/inttypes-pri.m4: Likewise.
10585 * m4/lcmessage.m4: Likewise.
10586 * m4/lib-ld.m4: Likewise.
10587 * m4/lib-link.m4: Likewise.
10588 * m4/lib-prefix.m4: Likewise.
10589 * m4/lock.m4: Likewise.
10590 * m4/nls.m4: Likewise.
10591 * m4/po.m4: Likewise.
10592 * m4/printf-posix.m4: Likewise.
10593 * m4/progtest.m4: Likewise.
10594 * m4/threadlib.m4: Likewise.
10595 * m4/uintmax_t.m4: Likewise.
10596 * m4/visibility.m4: Likewise.
10597 * po/Makefile.am: Remove.
10598 * po/Makefile.in.in: New file, from gettext.
10599 ($(DOMAIN).pot-update): Support POTFILES-shell.
10600 * po/Makevars: New file.
10601 * po/POTFILES-shell: Rename to ...
10602 * po/POTFILES-shell.in: ... this. Update.
10603 * po/POTFILES: Rename to ...
10604 * po/POTFILES.in: ... this. Update.
10605 * po/Rules-quot: New file, from gettext.
10606 * po/boldquot.sed: Likewise.
10607 * po/en@boldquot.header: Likewise.
10608 * po/en@quot.header: Likewise.
10609 * po/insert-header.sin: Likewise.
10610 * po/quot.sed: Likewise.
10611 * po/remove-potcdate.sin: Likewise.
10612
10613 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10614
10615 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
10616
10617 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * util/grub.d/20_linux_xen.in: Use submenus.
10620
10621 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 Support submenus.
10624
10625 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
10626 parameter submenu. All users updated.
10627 * grub-core/normal/main.c (free_menu): Rename to ...
10628 (grub_normal_free_menu): ... this. Made global.
10629 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
10630 if requested.
10631 * grub-core/normal/menu_entry.c (screen): New field submenu.
10632 (make_screen): Set submenu.
10633 (run): Open new context if requested.
10634 * include/grub/menu.h (grub_menu_entry): New field submenu.
10635 * include/grub/normal.h (grub_normal_free_menu): New proto.
10636
10637 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10638
10639 Menu entries extractor.
10640
10641 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
10642 variants.
10643 (GRUB_MOD_INIT): Register new variants.
10644 (GRUB_MOD_FINI): Unregister new variants.
10645 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
10646 into grub_cmd_legacy_source.
10647 (grub_cmd_legacy_source): Implement extractor variants.
10648 (GRUB_MOD_INIT): Register new variants.
10649 (GRUB_MOD_FINI): Unregister new variants.
10650 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
10651 as an extractor.
10652 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
10653 search as an extractor.
10654 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
10655 test as an extractor.
10656 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
10657 as an extractor.
10658 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
10659 (grub_env_new_context): New function.
10660 (grub_env_context_open): Likewise.
10661 (grub_env_extractor_open): Likewise.
10662 (grub_env_extractor_close): Likewise.
10663 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
10664 grub_extractor_level.
10665 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
10666 * include/grub/env.h (grub_env_extractor_open): New proto.
10667 (grub_env_extractor_close): Likewise.
10668 * include/grub/normal.h (grub_extractor_level): New external variable.
10669
10670 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 Make cutmem accept a region specification.
10673 Suggested by: Samuel Thibault
10674
10675 * grub-core/mmap/mmap.c (parsemem): New function.
10676 (grub_cmd_cutmem): Handle new arguments.
10677
10678 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10679
10680 New command cutmem.
10681
10682 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
10683 (GRUB_MOD_INIT): Register new command.
10684 (GRUB_MOD_FINI): Unregister new command.
10685
10686 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 Support some annoying BSD and Minix subpartitions.
10689
10690 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
10691 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
10692 Properly handle concatenation.
10693 * grub-core/kern/device.c (grub_device_iterate): Likewise.
10694 * grub-core/normal/completion.c (iterate_partition): Likewise.
10695 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
10696 contain partition. All users updated.
10697 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
10698 struct.
10699 (grub_openbsdlabel_partition_map): Likewise.
10700 (bsdlabel_partition_map_iterate): Rename to ..
10701 (iterate_real): ... this. New arguments sector, freebsd and pmap.
10702 (bsdlabel_partition_map_iterate): New function.
10703 (netopenbsdlabel_partition_map_iterate): Likewise.
10704 (netbsdlabel_partition_map_iterate): Likewise.
10705 (openbsdlabel_partition_map_iterate): Likewise.
10706 (GRUB_MOD_INIT): Register new partmaps.
10707 (GRUB_MOD_FINI): Unregister new partmaps.
10708 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
10709 (grub_partition_msdos_iterate): ... this. All users updated.
10710 Don't support embedding other than in a minix partition.
10711 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
10712 proto.
10713 * include/grub/partition.h (grub_partition): New field msdostype.
10714 * util/grub-install.in: Handle openbsd and netbsd types being in
10715 part_bsd module.
10716
10717 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10718
10719 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
10720
10721 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
10722 * grub-core/Makefile.core.def (mdraid): Renamed to ...
10723 (mdraid09): ... this.
10724 (mdraid1x): New module.
10725 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
10726 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
10727
10728 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10729
10730 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
10731 vsprintf.
10732
10733 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10734
10735 * grub-core/commands/efi/lsefimmap.c: Correct header.
10736 * NEWS: Update.
10737
10738 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10739
10740 * util/grub-editenv.c (argp_parser): Don't pass translated strings
10741 as printf format strings; the translations might contain '%' which
10742 could cause a crash.
10743 (main): Likewise.
10744 * util/grub-fstest.c (argp_parser): Likewise.
10745 * util/grub-setup.c (argp_parser): Likewise.
10746 (main): Likewise.
10747
10748 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 Use argp in grub-fstest.
10751
10752 * util/grub-fstest.c: Don't include getopt.h.
10753 Include argp.h.
10754 (root): New variable.
10755 (args_count): Likewise.
10756 (nparm): Likewise.
10757 (num_disks): Likewise.
10758 (images): Likewise.
10759 (cmd): Likewise.
10760 (debug_str): Likewise.
10761 (args): Likewise.
10762 (options): Transformed to argp.
10763 (usage): Removed.
10764 (main): Split argument parsing into ...
10765 (argp_parser): ... this. Changed to argp format.
10766 (argp): New variable.
10767 (main): Use argp_parse.
10768
10769 2010-09-20 Tristan Gingold <gingold@free.fr>
10770 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
10771 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/commands/efi/lsefimmap.c: New file.
10774 * grub-core/Makefile.core.def (lsefimmap): New module.
10775 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
10776
10777 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10778
10779 Pause the execution (10s max) if any errors are displayed so the user
10780 has a chance to see them.
10781
10782 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
10783 (grub_print_error): Increment grub_err_printed_errors.
10784 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
10785 execution if any errors were displayed.
10786 (show_menu): Remove old code for pause.
10787 * grub-core/normal/menu_entry.c (run): Likewise.
10788 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
10789 users updated.
10790 (grub_normal_get_char_counter): Likewise.
10791 * include/grub/err.h (grub_err_printed_errors): New external variable.
10792 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
10793
10794 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 Support multiboot VBE info.
10797
10798 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10799 Take VBE info into account.
10800 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
10801 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10802 Call fill_vbe_info when appropriate.
10803 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
10804 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
10805 as supported.
10806 (grub_multiboot_get_mbi_size): Take new tags into account.
10807 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
10808 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10809 Call fill_vbe_tag when appropriate.
10810 (grub_multiboot_make_mbi): Properly align tags.
10811 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
10812 function.
10813 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
10814 proto.
10815 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
10816
10817 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 Suport manual terminal geometry specification.
10820
10821 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
10822 Save state in grub_ofconsole_terminfo_output.
10823 (grub_ofconsole_term): Use grub_terminfo_getwh.
10824 (grub_ofconsole_getwh): Removed.
10825 * grub-core/term/serial.c (grub_serial_getwh): Removed.
10826 (grub_serial_term): Use grub_terminfo_getwh.
10827 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
10828 (options): New struct.
10829 (OPTION_*): New enum.
10830 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
10831 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
10832 width and height.
10833 (grub_terminfo_getwh): New proto.
10834 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
10835
10836 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10837
10838 Handle legacy "terminal" command.
10839
10840 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
10841 and FLAG_TERMINAL.
10842 (legacy_commands): Add terminal and title.
10843 (grub_legacy_parse): Handle terminal. Simplify title handling.
10844
10845 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
10848 parameters overflow.
10849
10850 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10851
10852 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
10853 widthspec.h.
10854
10855 * docs/grub.texi (Shell-like scripting): Document `!'.
10856 (Network): Simplify using new i386-pc-pxe format. Mention
10857 grub-mknetdir.
10858
10859 * NEWS: Update.
10860
10861 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10862
10863 * Makefile.am (SUBDIRS): Restore "."; it's important to force
10864 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
10865 when needed.
10866
10867 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10868
10869 * grub-core/commands/efi/lsefisystab.c: Correct header.
10870 * grub-core/commands/efi/lssal.c: Likewise.
10871 * grub-core/commands/testload.c: Likewise.
10872
10873 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10874
10875 * util/grub-mkrescue.in: Add explicit root argument to --set to
10876 prevent the UUID being interpreted as an argument to --set (matches
10877 previous change to prepare_grub_to_access_device).
10878
10879 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10880
10881 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
10882 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
10883 the verbosity of later #ifs.
10884 (find_partition_start): Define this function on FreeBSD too.
10885 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
10886 function.
10887 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
10888 on FreeBSD.
10889
10890 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10891
10892 * util/grub-editenv.c: Use argp instead of getopt.
10893
10894 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10895
10896 * util/grub-setup.c: Use argp instead of getopt.
10897
10898 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10899
10900 Use gnulib-tool to create gnulib source files.
10901
10902 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
10903 grub-core/gnulib directories
10904 * .bzignore: Add **/.deps and autogenerated gnulib files
10905 * configure.ac: Assign auxiliary directory to build-aux, add invocation
10906 of gnulib macros, add grub-core/gnulib/Makefile
10907 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
10908 include m4 directory to aclocal.
10909 * Makefile.util.def: Remove direct compilation of gnulib source files
10910 and use the new grub-core/gnulib/libgnu.a.
10911 * build-aux/config.rpath: move config.rpath from top directory to
10912 build-aux
10913 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
10914 in gnulib headers
10915 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
10916 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
10917 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
10918 header.
10919 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
10920 string.
10921
10922 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10923
10924 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
10925 grub-core/genmod.sh and grub-core/gensyminfo.sh
10926
10927 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
10928
10929 Add a test for echo command options.
10930
10931 * tests/grub_cmd_echo.in: New test.
10932 * Makefile.util.def: Rules for new test.
10933
10934 2010-09-20 Szymon Janc <szymon@janc.net.pl>
10935
10936 Remove crc.mod and move crc command to hashsum.mod.
10937 Remove lib/crc.c - users updated to use gcrypt implementation.
10938
10939 * grub-core/commands/crc.c: Removed.
10940 * grub-core/Makefile.core.def (crc): Module removed.
10941 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
10942 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
10943 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
10944 * grub-core/lib/crc.c: Removed.
10945 * include/grub/lib/crc.h: Removed.
10946 * Makefile.util.def (crc): Remove lib/crc.c
10947 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
10948 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
10949 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
10950 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
10951 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
10952 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
10953
10954 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
10957
10958 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 Split config.h for util and core.
10961
10962 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
10963 (ADDR32): Likewise.
10964 (DATA32): Likewise.
10965 (BSS_START_SYMBOL): Likewise.
10966 (END_SYMBOL): Likewise.
10967 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
10968 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
10969 * config.h.in: New file.
10970 * configure.ac: Use config-util.h as config define file.
10971 Rename MACHINE into GRUB_MACHINE. All users updated.
10972 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
10973 updated.
10974 (NESTED_FUNC_ATTR): Likewise.
10975 Substitue new variables.
10976 (COND_HAVE_ASM_USCORE): New conditional.
10977 * grub-core/Makefile.am (ASM_PREFIX): New variable.
10978 (kernel_syms.lst): Use ASM_PREFIX.
10979 * grub-core/kern/emu/console.c: Include config-util.h.
10980 * grub-core/kern/emu/misc.c: Likewise.
10981 * grub-core/kern/emu/mm.c: Likewise.
10982 * include/grub/emu/misc.h: Likewise.
10983 * include/grub/libgcc.h: Likewise.
10984
10985 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10986
10987 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
10988 constants usage.
10989 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
10990 Fix GRUB_TERM_KEY_* constants usage.
10991 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
10992
10993 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
10994
10995 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
10996 print pointer.
10997 * grub-core/bus/usb/uhci.c: Remove empty define.
10998 (grub_uhci_check_transfer): Add missing cast.
10999 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
11000 print pointer.
11001 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
11002 PRIuGRUB_SIZE.
11003 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
11004
11005 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 * grub-core/Makefile.core.def (legacycfg): Add
11008 lib/i386/pc/vesa_modes_table.c on emu.
11009
11010 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
11011
11012 Reduce number of temporary files generated by build system.
11013
11014 * grub-core/gencmdlist.sh: Removed.
11015 * grub-core/genfslist.sh: Removed.
11016 * grub-core/genhandlerlist.sh: Removed.
11017 * grub-core/genmodsrc.sh: Removed.
11018 * grub-core/genpartmaplist.sh: Removed.
11019 * grub-core/genparttoollist.sh: Removed.
11020 * grub-core/gentermiinallist.sh: Removed.
11021 * grub-core/genvideolist.sh: Removed.
11022
11023 * grub-core/genmod.sh.in: New file.
11024 * grub-core/gensyminfo.sh.in: New file.
11025
11026 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
11027 * conf/Makefile.extra-dist: Update with new files.
11028 * gentpl.py: Remove rules related to unnecessary temporary files.
11029 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
11030 and und-* files.
11031 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
11032 genmod.sh scripts.
11033 * grub-core/bus/usb/uhci.c: Remove empty #define.
11034 * grub-core/genmoddep.awk: Updated with new syminfo format.
11035 * util/bash-completion.d/Makefile.am: Add config.log to
11036 CLEANFILES.
11037
11038 2010-09-19 Yves Blusseau <blusseau@zetam.org>
11039
11040 * Makefile.util.def: Add forgotten $(LIBINTL) library.
11041
11042 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
11043
11044 * util/grub-mkconfig.in: Check the config script for syntax errors
11045 before saving.
11046
11047 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
11048 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11049
11050 * Makefile.util.def (grub-install): Use util/grub-install.in on all
11051 platforms.
11052 * util/grub-install.in: Add EFI and IEEE1275 support.
11053 * util/i386/efi/grub-install.in: Removed.
11054 * util/ieee1275/grub-install.in: Likewise.
11055
11056 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11057
11058 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
11059 (grub_cmd_cmosclean): Likewise.
11060 (GRUB_MOD_INIT): Register command cmosclean.
11061 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
11062 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
11063
11064 2010-09-18 Carles Pina i Estany <carles@pina.cat>
11065 2010-09-18 Aleš Nesrsta <starous@volny.cz>
11066 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 Add keyboard layouts support.
11069
11070 * Makefile.util.def (grub-mklayout): New file.
11071 (grub-kbdcomp): New script.
11072 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
11073 Add keyboard_layouts.h.
11074 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
11075 commands/boot.c on yeeloong.
11076 (keylayouts): New module.
11077 * grub-core/bus/usb/ohci.c
11078 * grub-core/bus/usb/uhci.c
11079 * grub-core/bus/usb/usbhub.c (rescan): New variable.
11080 (grub_usb_add_hub): Poll interrupt pipe for device handling.
11081 (attach_root_port): Likewise.
11082 (poll_nonroot_hub): Likewise.
11083 (grub_usb_poll_devices): Likewise.
11084 (detach_device): Close transfer.
11085 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
11086 function.
11087 (grub_usb_bulk_setup_readwrite): Likewise.
11088 (grub_usb_bulk_finish_readwrite): Likewise.
11089 * grub-core/commands/keylayouts.c: New file.
11090 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
11091 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
11092 aliases.
11093 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
11094 support scancode 2.
11095 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
11096 * include/grub/keyboard_layouts.h: New file.
11097 * util/grub-mklayout.c: New file.
11098 * util/grub-kbdcomp.in: Likewise.
11099
11100 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11101
11102 Unify memory types.
11103
11104 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
11105 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
11106 types.
11107 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
11108 (grub_upper_mem): Likewise.
11109 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
11110 * include/grub/memory.h (grub_memory_type_t): New enum.
11111 All users updated.
11112
11113 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 * grub-core/Makefile.core.def (lsapm): New module.
11116 * grub-core/commands/i386/pc/lsapm.c: New file.
11117 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
11118 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
11119 Likewise.
11120 * include/grub/i386/pc/apm.h: New file.
11121 * include/multiboot.h (multiboot_apm_info): New struct.
11122
11123 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11124
11125 GRUB-legacy configuration file support.
11126
11127 * Makefile.util.def (grub-menulst2cfg): New util.
11128 * docs/man/grub-menulst2cfg.h2m: New file.
11129 * grub-core/Makefile.core.def (legacycfg): New module.
11130 * grub-core/commands/legacycfg.c: New file.
11131 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
11132 (grub_normal_add_menu_entry): ... this.
11133 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
11134 (grub_normal_set_password): ...this.
11135 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
11136 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
11137 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
11138 * grub-core/lib/legacy_parse.c: New file.
11139 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
11140 * include/grub/i386/pc/vesa_modes_table.h: New file.
11141 * include/grub/legacy_parse.h: Likewise.
11142 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
11143 * util/grub-menulst2cfg.c: New file.
11144
11145 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11146
11147 * grub-core/kern/emu/hostdisk.c
11148 (convert_system_partition_to_system_disk): Initialise node.
11149
11150 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11151
11152 * grub-core/kern/emu/hostdisk.c
11153 (convert_system_partition_to_system_disk): Fix devmapper memory pool
11154 leak.
11155 Reported and based on patch by: Modestas Vainius.
11156
11157 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11158
11159 Fix DM-RAID probing with recent versions of device-mapper udev
11160 rules.
11161
11162 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
11163 canonicalise device paths under /dev/mapper/.
11164 (convert_system_partition_to_system_disk): Compare the
11165 uncanonicalised path to /dev/mapper/ rather than the canonicalised
11166 path, since device nodes under /dev/mapper/ are often symlinks.
11167
11168 2010-09-17 Yves Blusseau <blusseau@zetam.org>
11169
11170 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
11171
11172 2010-09-16 Yves Blusseau <blusseau@zetam.org>
11173
11174 * configure.ac: Avoid some annoying error messages if freetype-config
11175 program is not found.
11176
11177 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11178
11179 Support RAID on virtio devices, and others.
11180
11181 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
11182 Rename to ...
11183 [__MINGW32__] (grub_find_device): ... this.
11184 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
11185 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
11186 reasonable default if dir is NULL.
11187 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
11188 ...
11189 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
11190 (grub_guess_root_device): Update callers.
11191 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
11192
11193 * util/raid.c (grub_util_getdiskname): Remove.
11194 (grub_util_raid_getmembers): Use grub_find_device rather than
11195 grub_util_getdiskname.
11196
11197 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11198
11199 * docs/grub.texi (serial): Remove obsolete comment about GRUB
11200 needing to be compiled with serial support.
11201 (ls): Indicate that multiple files are accepted.
11202 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
11203 indicate that multiple files are accepted.
11204
11205 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11206
11207 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
11208 libgrub_a_init.c, and util/bash-completion.d/grub.
11209
11210 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 * util/grub-setup.c (setup): Fix incorrect container semantics.
11213
11214 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11215
11216 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
11217 misusage.
11218 Reported by: J. Nick Terry
11219
11220 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 Move embedding routines to partmap sources files.
11223
11224 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
11225 [GRUB_UTIL]: New variable.
11226 (gpt_partition_map_iterate): Set part.parent.
11227 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
11228 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
11229 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
11230 New function.
11231 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
11232 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
11233 (grub_partition_map) [GRUB_UTIL]: New field embed.
11234 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
11235 (setup): Use ->embed.
11236
11237 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
11240 function.
11241 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
11242 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
11243
11244 2010-09-15 Yves Blusseau <blusseau@zetam.org>
11245
11246 Add function to get completions from usage.
11247
11248 * util/bash-completion.d/grub-completion.bash.in: Add function to get
11249 completions from usage. Use LC_ALL=C to get options properly.
11250
11251 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11252
11253 * grub-core/gnulib/basename-lgpl.c: Imported.
11254 * grub-core/gnulib/basename.c: Likewise.
11255 * grub-core/gnulib/dirname-lgpl.c: Likewise.
11256 * grub-core/gnulib/dirname.c: Likewise.
11257 * grub-core/gnulib/dirname.h: Likewise.
11258 * grub-core/gnulib/stripslash.c: Likewise.
11259
11260 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11261
11262 * grub-core/gnulib/error.c: Resynced.
11263 * grub-core/gnulib/getopt.c: Likewise.
11264 * grub-core/gnulib/getopt_int.h: Likewise.
11265 * grub-core/gnulib/regex.h: Likewise.
11266 * grub-core/gnulib/regex_internal.c: Likewise.
11267 * grub-core/gnulib/regex_internal.h: Likewise.
11268
11269 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11270
11271 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
11272 CRC calculations and validity checks.
11273 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
11274 calculations.
11275
11276 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11277
11278 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
11279
11280 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 Fix incorrect echo options handling.
11283 Reported by: Yves Blusseau.
11284
11285 * include/grub/command.h (grub_command_flags_t): New flags
11286 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
11287 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
11288 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
11289
11290 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11291
11292 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
11293 users updated.
11294 (GRUB_COMMAND_FLAG_MENU): Likewise.
11295 (GRUB_COMMAND_FLAG_BOTH): Likewise.
11296 (GRUB_COMMAND_FLAG_TITLE): Removed.
11297 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
11298 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
11299 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
11300 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
11301 (grub_command_flags_t): New enum. All users updated.
11302
11303 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
11304
11305 Fix solaris compilation.
11306
11307 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
11308 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
11309 (grub-emu-list): Likewise.
11310
11311 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11312
11313 Remove deprecated root command.
11314
11315 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
11316 updated.
11317
11318 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11319
11320 * util/i386/pc/grub-setup.c: Merge this ...
11321 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
11322 * util/grub-setup.c: ... into this.
11323 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
11324 New struct.
11325
11326 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11327
11328 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
11329 possible.
11330
11331 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11332
11333 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
11334 allocate p.
11335
11336 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11339 explicit root argument to set to prevent UUID to be interpreted as
11340 argument to set.
11341
11342 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11343
11344 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
11345
11346 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11347
11348 Don't export grub_gate_a20.
11349
11350 * grub-core/kern/i386/pc/init.c: Remove leftovers.
11351 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
11352 to ...
11353 (grub_gate_a20): ... this. All users updated.
11354 * include/grub/i386/pc/init.h: Removed. All users updated.
11355
11356 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11357
11358 Create euro.pf2 which supports most European languages.
11359
11360 * Makefile.am (grubdata_DATA): Add euro.pf2.
11361 (euro.pf2): New target.
11362 (CLEANFILES): Add euro.pf2.
11363
11364 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 * configure.ac: Disable emu-usb by default to prevent inadvertent
11367 device takeover.
11368
11369 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 Disable usbserial on grub-emu since our libusb code isn't good enough
11372 yet.
11373
11374 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
11375 (usbserial_pl2303): Likewise.
11376 (usbserial_ftdi): Likewise.
11377
11378 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11379
11380 * include/grub/disk.h (grub_disk): Remove has_partitions.
11381 All users updated.
11382 * disk/loopback.c (grub_loopback): Remove has_partitions.
11383 All users updated.
11384 (options): Remove partitions. All users updated.
11385 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
11386 * util/i386/pc/grub-setup.c (setup): copy partition table only when
11387 actual partition table is found.
11388
11389 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 Remove readability checks (too many false negatives).
11392
11393 * util/grub-install.in: Remove readability checks.
11394 * util/grub-mkconfig.in: Likewise.
11395 * util/grub.d/10_hurd.in: Likewise.
11396 * util/grub.d/10_kfreebsd.in: Likewise.
11397 * util/grub.d/10_linux.in: Likewise.
11398 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
11399 way.
11400
11401 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11402
11403 Enable acpi shutdown on all ACPI platforms.
11404
11405 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
11406 on coreboo, multiboot and EFI.
11407 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
11408 (grub_acpi_halt): Likewise.
11409 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
11410 (grub_cmd_halt): Don't call grub_acpi_halt directly.
11411 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
11412 * grub-core/lib/i386/halt.c (grub_halt)
11413 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
11414
11415 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
11418 context.
11419
11420 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11421
11422 * grub-core/video/efi_gop.c: Fix over-80-chars line.
11423 * grub-core/video/efi_uga.c: Likewise.
11424
11425 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11426
11427 Filter devaliases and never open same device twice.
11428
11429 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
11430 (last_ihandle): Likewise.
11431 (ofdisk_hash_ent): New member shortest.
11432 (ofdisk_hash_add): Add canonical path too.
11433 (scan): New function.
11434 (grub_ofdisk_iterate): Iterate over hashed entries.
11435 (compute_dev_path): Don't add :0.
11436 (grub_ofdisk_open): Don't really open the disk.
11437 (grub_ofdisk_close): Avoid closing unrelated disk.
11438 (grub_ofdisk_read): Implement reopen logic.
11439 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
11440 New function.
11441 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
11442 New proto.
11443
11444 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11445
11446 Fix sparc64.
11447
11448 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
11449 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
11450 right address. Add sparc64_ieee1275_ldflags.
11451 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
11452 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
11453 to grub_host_to_target_addr
11454 (load_image): Likewise.
11455
11456 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11457
11458 * grub-core/normal/completion.c (complete_file): Handle device
11459 containing slash.
11460 Fix based on patch by Doug Nazar.
11461
11462 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11463
11464 grub-mknetdir script.
11465
11466 * Makefile.util.def (grub-mknetdir): New module.
11467 * tests/util/grub-shell.in: Support boot=net
11468 * util/grub-mknetdir.in: New file.
11469
11470 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 videoinfo on non-vbe.
11473
11474 * grub-core/Makefile.core.def (vbeinfo): Removed.
11475 (vbetest): Removed.
11476 (videoinfo): New module.
11477 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
11478 * grub-core/commands/i386/pc/vbetest.c: Removed.
11479 * grub-core/commands/videoinfo.c: New file.
11480 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
11481 specification.
11482 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
11483 as vbetest.
11484 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
11485 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
11486 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
11487 mode_number. New parameter mode. All users updated.
11488 (grub_video_gop_iterate): New function.
11489 (grub_video_efi_gop): New member iterate.
11490 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
11491 (grub_vbe_set_video_mode): Remove setting useless fields.
11492 (vbe2videoinfo): New function.
11493 (grub_video_vbe_iterate): Likewise.
11494 (grub_video_vbe_setup): Use vbe2videoinfo.
11495 (grub_video_vbe_print_adapter_specific_info): New function.
11496 (grub_video_vbe_adapter): New fields iterate and
11497 print_adapter_specific_info.
11498 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
11499 All users updated.
11500 (grub_video_mode_info): New field mode_number.
11501 (grub_video_adapter): New fields iterate and
11502 print_adapter_specific_info.
11503
11504 2010-09-13 Tristan Gingold <gingold@free.fr>
11505 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
11506 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11507
11508 * grub-core/commands/efi/lsefisystab.c: New file.
11509 * grub-core/commands/efi/lssal.c: Likewise.
11510 * grub-core/Makefile.core.def (lsacpi): New module.
11511 (lsefisystab): Likewise.
11512 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
11513 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
11514 (grub_efi_sal_system_table): New struct.
11515 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
11516 (grub_efi_sal_system_table_memory_descriptor): Likewise.
11517 (grub_efi_sal_system_table_platform_features): Likewise.
11518 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
11519 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
11520 (grub_efi_sal_system_table_ap_wakeup): Likewise.
11521 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
11522
11523 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11524
11525 Support explicit user claim that a device is BIOS-visible.
11526
11527 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
11528 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
11529 * grub-core/kern/emu/hostdisk.c
11530 (convert_system_partition_to_system_disk): Support mdX.
11531 (find_system_device): New parameter add. All users updated.
11532 (grub_util_biosdisk_is_present): New function.
11533 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
11534 proto.
11535
11536 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11537
11538 Search hints support.
11539
11540 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
11541 All users updated.
11542
11543 2010-09-13 Yves Blusseau <blusseau@zetam.org>
11544
11545 Bash completion script for util commands
11546
11547 * Makefile.am: Add util/bash-completion.d directory
11548 * configure.ac: Likewise.
11549 * util/bash-completion.d/Makefile.am: New file.
11550 * util/bash-completion.d/grub-completion.bash.in: Likewise.
11551
11552 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11553
11554 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
11555 (print_backlog): set backlog_ucs4 and backlog_glyphs.
11556 Reported by: Yves Blusseau.
11557
11558 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
11561 partition size and offset.
11562
11563 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11564
11565 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
11566
11567 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11568
11569 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
11570
11571 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
11574 (grub_xvasprintf): Likewise.
11575
11576 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
11579
11580 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
11583 args ending with NULL.
11584
11585 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
11588 pointer.
11589
11590 2010-09-11 Szymon Janc <szymon@janc.net.pl>
11591
11592 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
11593
11594 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 Shutdown using ACPI.
11597
11598 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
11599 * grub-core/commands/acpihalt.c: New file.
11600 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
11601 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
11602 (grub_acpi_halt): New proto.
11603 (GRUB_ACPI_SLP_EN): New const.
11604 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
11605 (GRUB_ACPI_OPCODE_*): New enum.
11606 (GRUB_ACPI_EXTOPCODE_*): Likewise.
11607
11608 2010-09-11 Tristan Gingold <gingold@free.fr>
11609 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
11610 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11611
11612 * commands/lsacpi.c: New file.
11613 * grub-core/Makefile.core.def (lsacpi): New module.
11614 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
11615 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
11616 (grub_acpi_madt_entry_header): New struct.
11617 (grub_acpi_madt): Likewise.
11618 (grub_acpi_madt_entry_interrupt_override): Likewise.
11619 (grub_acpi_madt_entry_sapic): Likewise.
11620 (grub_acpi_madt_entry_lsapic): Likewise.
11621 (grub_acpi_madt_entry_platform_int_source): Likewise.
11622 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
11623 (PRIuGRUB_UINT32_T): Likewise.
11624 (PRIxGRUB_UINT64_T): Likewise.
11625
11626 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11627
11628 Implement loading palette on ieee1275_fb.
11629
11630 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
11631 (have_setcolors): Likewise.
11632 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
11633 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
11634 (grub_video_ieee1275_set_palette): Implement.
11635
11636 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11637 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
11638
11639 * util/grub-install.in (grub_partition): New variable.
11640 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
11641 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
11642 Fixes a bug reported by Yves Blusseau.
11643
11644 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11645
11646 Fix emu on mipsel.
11647
11648 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
11649 =grub_cpu_flush_cache on all mips and not only yeeloong.
11650 * configure.ac (COND_mips): New conditional.
11651 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
11652 platforms.
11653 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
11654 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
11655 [GRUB_LINKER_HAVE_INIT]: New function.
11656 (grub_emu_post_init): Likewise.
11657 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
11658 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
11659 * include/grub/cache.h (_mips): Include mips/cache.h.
11660 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
11661 LVM and RAID prototypes.
11662 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
11663 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
11664 function.
11665
11666 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11667
11668 * util/grub-install.in: Don't try to verify core.img until after
11669 running grub-mkimage to create it.
11670
11671 2010-09-10 Robert Millan <rmh@gnu.org>
11672
11673 * util/grub.d/10_hurd.in: Add misc readability checks.
11674 * util/grub.d/10_kfreebsd.in: Likewise.
11675 * util/grub.d/10_linux.in: Likewise.
11676
11677 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11678
11679 * util/grub-install.in: ${imgext} won't be defined here until the
11680 install branch is merged. For the meantime, only verify core.img on
11681 i386-pc and sparc64-ieee1275 platforms.
11682
11683 2010-09-10 Robert Millan <rmh@gnu.org>
11684
11685 Solaris support in grub_find_zpool_from_dir(). Thanks
11686 Seth Goldberg for referring to getextmntent() facility.
11687
11688 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
11689 `sys/mkdev.h'.
11690 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
11691 `<sys/mnttab.h>'.
11692 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
11693 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
11694 method for finding zpool name.
11695
11696 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11697
11698 grub-fstest needs the host and hostfs modules while other utilities
11699 actively require those modules to be absent, so grub-fstest needs
11700 its own initialisation and finalisation code.
11701
11702 * Makefile.am (grub_fstest.pp): New target.
11703 (grub_fstest_init.lst): Likewise.
11704 (grub_fstest_init.c): Likewise.
11705 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
11706
11707 2010-09-10 Robert Millan <rmh@gnu.org>
11708
11709 * configure.ac: Check for `struct statfs.f_fstypename' and
11710 `struct statfs.f_mntfromname'.
11711
11712 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
11713 kFreeBSD-specific code.
11714
11715 2010-09-10 Robert Millan <rmh@gnu.org>
11716
11717 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
11718 on ZFS. Now non-main filesystems are supported as / too.
11719
11720 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
11721
11722 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
11723 and grub-core/disk/host.c to ...
11724 (grub-fstest): ... here. Having the host disk implementation
11725 present confuses grub-probe and other utility programs.
11726
11727 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
11728 when writing to a file, not when writing to stdout.
11729
11730 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
11731
11732 * tests/partmap_test.in: New test for partitions.
11733 * Makefile.util.def: Rules for new test.
11734
11735 2010-09-09 Robert Millan <rmh@gnu.org>
11736
11737 * util/grub-probe.c (probe): Fix a pair of unhandled error
11738 conditions.
11739
11740 2010-09-09 Robert Millan <rmh@gnu.org>
11741
11742 Basic Btrfs support (detection and UUID).
11743
11744 * grub-core/fs/btrfs.c: New file.
11745 * Makefile.util.def (library): Register btrfs.c.
11746 * grub-core/Makefile.core.def: Likewise.
11747
11748 2010-09-08 Robert Millan <rmh@gnu.org>
11749
11750 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
11751 with (optional) parameters to specify device and relative path.
11752 * util/grub-install.in: Use is_path_readable_by_grub() to
11753 verify readability of a few critical files.
11754 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
11755 verify readability of grub.cfg.new.
11756
11757 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11758
11759 Split minix.mod into minix.mod and minix2.mod.
11760
11761 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
11762 * grub-core/Makefile.core.def (minix2): New module.
11763 * grub-core/fs/minix.c: Use definitions instead of runtime version
11764 checking.
11765 * grub-core/fs/minix2.c: New file.
11766
11767 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11768
11769 Add new --boot-directory option to replace --root-directory
11770
11771 * util/grub-install.in: Add new --boot-directory option
11772 * util/grub-reboot.in: Likewise.
11773 * util/grub-set-default.in: Likewise.
11774
11775 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11776
11777 * util/grub-mkconfig.in: Use new variable.
11778
11779 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11780
11781 * configure.ac: Define some useful variables.
11782
11783 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11784
11785 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11786 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
11787 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
11788 Use terminfo and don't use cursor-on/cursor-off unless it's known
11789 to work.
11790 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
11791 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
11792
11793 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
11794
11795 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
11796 starts with "(,", fill the drive containing the loaded image in
11797 between those two characters, but expect that a full partition
11798 specification including partition map names will follow.
11799
11800 2010-09-08 Robert Millan <rmh@gnu.org>
11801
11802 * configure.ac: Remove `--enable-grub-fstest' option.
11803 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
11804
11805 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
11806 `grub-fstest' instead of `grub-probe' for readability verification.
11807 * util/grub-probe.c (probe): Remove readability verification kludge.
11808
11809 2010-09-08 Robert Millan <rmh@gnu.org>
11810
11811 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
11812 initializing `GRUB_FS'.
11813
11814 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
11815
11816 Not command (!) support to GRUB script.
11817
11818 * tests/grub_script_not.in: New test.
11819 * Makefile.util.def: Rules for new test.
11820
11821 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
11822 ! command as a special case.
11823 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
11824
11825 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11826
11827 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
11828 grub_free.
11829
11830 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11831
11832 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
11833
11834 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11835
11836 * docs/grub.texi (Shell-like scripting): Documentation for break,
11837 continue, shift and return commands.
11838
11839 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
11840
11841 Rename CD-ROM to cd on BIOS.
11842
11843 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
11844 "cd".
11845 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
11846
11847 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
11850 * util/grub-probe.c (main): Likewise.
11851 * util/i386/pc/grub-setup.c (main): Likewise.
11852 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
11853 Reported and debugged by: alexxy
11854
11855 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11856
11857 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
11858 diagnostic info.
11859
11860 2010-09-05 Jo Shields <directhex@apebox.org>
11861
11862 * util/grub.d/30_os-prober.in: Add missing classes.
11863
11864 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * docs/grub.texi (Theme file format): Document new position format.
11867
11868 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11869
11870 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
11871 a table. Use @code instead of @verbatim.
11872
11873 2010-09-05 Colin D Bennett <colin@gibibit.com>
11874
11875 Gfxmenu documentation.
11876
11877 * docs/grub.texi (Theme file format): New chapter.
11878
11879 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11880
11881 * grub-core/Makefile.core.def (xzio): New module.
11882 * grub-core/io/xzio.c: New file.
11883 * grub-core/lib/xzembed/xz.h: New file (from xembed).
11884 * grub-core/lib/xzembed/xz_config.h: Likewise.
11885 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
11886 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
11887 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
11888 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
11889 * grub-core/lib/xzembed/xz_private.h: Likewise.
11890 * grub-core/lib/xzembed/xz_stream.h: Likewise.
11891 * include/grub/file.h (grub_file_filter_id): New compression filter
11892 GRUB_FILE_FILTER_XZIO.
11893
11894 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11895
11896 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
11897 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
11898 size.
11899
11900 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11901
11902 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
11903 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
11904
11905 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11906
11907 Uncompressed checksum support.
11908
11909 * grub-core/commands/hashsum.c (options): Add option --uncompress.
11910 (check_list): New parameter uncompress.
11911 (grub_cmd_hashsum): Handle --uncompress.
11912
11913 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11914
11915 Reintroduce testload.
11916
11917 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
11918 from here ...
11919 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
11920 (GRUB_MOD_INIT): New function.
11921 (GRUB_MOD_FINI): Likewise.
11922 * grub-core/Makefile.core.def (testload): New module.
11923
11924 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11925
11926 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
11927 (uint8_t): New type.
11928 (uint16_t): Likewise.
11929 (uint32_t): Likewise.
11930 (uint64_t): Likewise.
11931
11932 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11933
11934 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
11935
11936 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11937
11938 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
11939 Made static.
11940 (grub_gzfile_open): Removed. All users updated.
11941 (GRUB_MOD_INIT): New function.
11942 (GRUB_MOD_FINI): Likewise.
11943 * grub-core/kern/file.c (grub_file_filters_all): New variable.
11944 (grub_file_filters_enabled): Likewise.
11945 (grub_file_open): Handle filters.
11946 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
11947 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
11948 * include/grub/file.h (grub_file_filter_id_t): New type.
11949 (grub_file_filter_t): Likewise.
11950 (grub_file_filters_all): New extern variable.
11951 (grub_file_filters_enabled): Likewise.
11952 (grub_file_filter_register): New inline function.
11953 (grub_file_filter_unregister): Likewise.
11954 (grub_file_filter_disable): Likewise.
11955 (grub_file_filter_disable_compression): Likewise.
11956 * include/grub/gzio.h: Removed.
11957
11958 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11959
11960 Filename expansion support for wildcards in GRUB script.
11961
11962 * tests/grub_script_expansion.in: New test.
11963 * Makefile.util.def: Rule for new test.
11964
11965 * grub-core/commands/wildcard.c: New file, implements filename
11966 expansion support for GRUB script.
11967 * grub-core/Makefile.core.def: Rule update for regexp.mod.
11968 * grub-core/script/argv.c: Cosmetic changes.
11969 * grub-core/script/execute.c (grub_script_arglist_to_argv):
11970 Refactored to perform wildcard expansion on arguments.
11971 * include/grub/script_sh.h (grub_script_wildcard_translator): New
11972 struct.
11973
11974 * tests/util/grub-shell.in: Fix quoting for read input.
11975
11976 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11977
11978 Support for updating environment variables with matched substrings
11979 of regexp.
11980
11981 * tests/grub_cmd_regexp.in: New test.
11982 * Makefile.util.def: Rule for new test.
11983
11984 * grub-core/commands/regexp.c: New option -s to update environment
11985 variables with regexp matches.
11986
11987 2010-09-04 Szymon Janc <szymon@janc.net.pl>
11988
11989 * include/grub/file.h (grub_file): New member not_easly_seekable.
11990 (grub_file_seekable): New inline function.
11991 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
11992 easily seekable.
11993 (grub_gzio_open): Set not_easly_seekable.
11994 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
11995 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
11996
11997 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
11998
11999 Support for options to appear multiple times on cmdline.
12000
12001 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
12002 * grub-core/commands/extcmd.c: Support for repeatable option.
12003 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
12004 repeatable option support.
12005
12006 Refactor menuentry into a regular command.
12007
12008 * grub-core/commands/menuentry.c: New file, menuentry command
12009 implementation.
12010 * grub-core/Makefile.core.def: Rule update for normal.mod.
12011 * grub-core/normal/main.c: Moved menuentry creation to
12012 grub-core/commands/menuentry.c.
12013 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
12014 (grub_menu_execute_entry_real): Removed.
12015 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
12016 function.
12017 (grub_script_execute_menuentry): Removed.
12018 * grub-core/script/parser.y (menuentry): Removed.
12019 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
12020 * grub-core/script/yylex.l (menuentry): Removed.
12021 * include/grub/menu.h (grub_menu_init): New prototype.
12022 (grub_menu_fini): New prototype.
12023 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
12024 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
12025 (grub_script_execute_sourcecode): New prototype.
12026
12027 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12028
12029 "return" command for GRUB script functions.
12030
12031 * tests/grub_script_return.in: New test.
12032 * Makefile.util.def: Rules for new test.
12033
12034 * grub-core/script/execute.c (grub_script_return): New function.
12035 * grub-core/script/main.c: Register/unregister return commaond.
12036 * include/grub/script_sh.h (grub_script_return): New prototype.
12037
12038 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12039
12040 "setparams" command to update positional parameters.
12041
12042 * tests/grub_script_setparams.in: New test.
12043 * Makefile.util.def: Rules for new test.
12044
12045 * grub-core/script/argv.c (grub_script_argv_make): New function.
12046 * grub-core/script/execute.c (replace_scope): New function.
12047 (grub_script_setparams): New function.
12048 * grub-core/script/lexer.c: Remove unused variables.
12049 * grub-core/script/main.c: Register/unregister setparams command.
12050 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
12051 (grub_script_setparams): New prototype.
12052
12053 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12054
12055 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
12056 grub_free order.
12057
12058 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12059
12060 Support for passing block of commands as an argument to extcmds.
12061
12062 * Makefile.util.def: Rules for new test.
12063 * tests/grub_script_blockarg.in: New test.
12064 * grub-core/tests/test_blockarg.c: New file, block argument
12065 command used in the test.
12066
12067 * include/grub/extcmd.h (grub_extcmd_context): New struct.
12068 (grub_register_extcmd_prio): New function prototype.
12069 (grub_extcmd_dispatcher): New function prototype.
12070 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
12071 type.
12072 * include/grub/script_sh.h (struct grub_script): New members
12073 `children', `next_siblings' and `refcnt' for block arguments and
12074 reference counting.
12075 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
12076 (grub_script_arg): New member `script' for block argument.
12077 (grub_script_argv): New member `script' for block argument.
12078 (grub_parser_param): New member `scripts' for block argument.
12079 (grub_script_mem_free): New extern function prototype.
12080 (grub_script_ref): New function prototype.
12081 (grub_script_unref): New function prototype.
12082
12083 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
12084 extcmd form to support block arguments.
12085 * grub-core/script/argv.c: Block arguments support.
12086 * grub-core/script/execute.c: Likewise.
12087 * grub-core/script/lexer.c: Likewise.
12088 * grub-core/script/main.c: Likewise.
12089 * grub-core/script/script.c: Likewise.
12090 * grub-core/script/parser.y: Likewise. New `block' and `block0'
12091 non-terminals.
12092
12093 * grub-core/commands/acpi.c: Update extcmd implementations with
12094 grub_extcmd_context_t.
12095 * grub-core/commands/cat.c: Likewise.
12096 * grub-core/commands/echo.c: Likewise.
12097 * grub-core/commands/extcmd.c: Likewise.
12098 * grub-core/commands/hashsum.c: Likewise.
12099 * grub-core/commands/hdparm.c: Likewise.
12100 * grub-core/commands/help.c: Likewise.
12101 * grub-core/commands/hexdump.c: Likewise.
12102 * grub-core/commands/i386/cpuid.c: Likewise.
12103 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12104 * grub-core/commands/i386/pc/halt.c: Likewise.
12105 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12106 * grub-core/commands/iorw.c: Likewise.
12107 * grub-core/commands/keystatus.c: Likewise.
12108 * grub-core/commands/loadenv.c: Likewise.
12109 * grub-core/commands/ls.c: Likewise.
12110 * grub-core/commands/lspci.c: Likewise.
12111 * grub-core/commands/memrw.c: Likewise.
12112 * grub-core/commands/probe.c: Likewise.
12113 * grub-core/commands/search_wrap.c: Likewise.
12114 * grub-core/commands/setpci.c: Likewise.
12115 * grub-core/commands/sleep.c: Likewise.
12116 * grub-core/disk/loopback.c: Likewise.
12117 * grub-core/hello/hello.c: Likewise.
12118 * grub-core/loader/i386/bsd.c: Likewise.
12119 * grub-core/loader/xnu.c: Likewise.
12120 * grub-core/term/gfxterm.c: Likewise.
12121 * grub-core/term/serial.c: Likewise.
12122 * grub-core/tests/lib/functional_test.c: Likewise.
12123
12124 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12125
12126 Multi-line quoted strings support.
12127
12128 * grub-core/script/lexer.c (append_newline): Removed.
12129 (grub_script_lexer_yywrap): Refactored.
12130 (grub_script_lexer_init): Refactored.
12131 * grub-core/script/yylex.l (yywrap): New function.
12132 (grub_lexer_resplit): New function.
12133 (grub_lexer_unput): New function.
12134 * include/grub/script_sh.h (grub_lexer_param): New members, unput
12135 and resplit.
12136 * tests/grub_script_echo1.in: Added few more testcases.
12137
12138 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
12139
12140 * grub-core/kern/misc.c: Don't add abort alias in utils.
12141 Reported by: echoline.
12142
12143 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
12144
12145 Add missing files into "make dist" tarball for other platforms.
12146
12147 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
12148 * conf/Makefile.common (dist_noinst_DATA): New variable.
12149 * conf/Makefile.extra-dist: Added missing make dist files.
12150 * grub-core/Makefile.core.def: Likewise.
12151
12152 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12153
12154 Compress grub_prefix.
12155
12156 * grub-core/boot/i386/pc/lnxboot.S: Use
12157 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
12158 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
12159 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
12160 GRUB_MACHINE_PREFIX_END. All users updated.
12161 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
12162 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
12163 + 0x40.
12164 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12165 * util/grub-mkimage.c (image_target_desc): Change data_end to
12166 prefix_end. All users updated.
12167
12168 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12169
12170 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
12171 value.
12172 (grub_openbsd_boot): Likewise.
12173 (grub_netbsd_boot): Likewise.
12174 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
12175 (grub_xnu_boot): Likewise.
12176
12177 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 * configure.ac: Clean LIBS variable after tests.
12180
12181 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12182
12183 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
12184
12185 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12186
12187 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
12188 echo if libdevmapper will be used.
12189
12190 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
12191
12192 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
12193 constant for the same file.
12194
12195 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
12198
12199 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12200
12201 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
12202 grub-core/*.pp.
12203
12204 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12205
12206 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
12207 required by the boot protocol.
12208
12209 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
12210 ebp and edi members.
12211 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
12212 state.ebp and state.edi.
12213 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
12214 %ebp and %edi according to grub_relocator32_ebp and
12215 grub_relocator32_edi respectively.
12216 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
12217 and state.edi.
12218
12219 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12220
12221 Add i386-pc-pxe image target.
12222
12223 * util/grub-mkimage.c (image_target_desc): New enum value
12224 IMAGE_I386_PC_PXE.
12225 (image_targets): New target i386-pc-pxe.
12226 (generate_image): Handle i386-pc-pxe image.
12227
12228 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12229
12230 Fix grub_pxe_scan.
12231
12232 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
12233 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
12234 All users updated.
12235 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
12236 (grub_pxe_pxenv): Correct type.
12237
12238 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12239
12240 * NEWS: Document most of the important changes since 1.98.
12241
12242 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12243
12244 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
12245 generated manual page) a little.
12246
12247 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12248
12249 * docs/grub.texi: Add myself as an author.
12250
12251 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
12252
12253 * Makefile.util.def (libgrub.a): Add missing sunpc.
12254 Reported by: Seth Goldberg.
12255
12256 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12257
12258 Interrupt wrapping and code simplifications.
12259
12260 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
12261 x86_noieee1275 which are functionaly equivalent in this case.
12262 (grub-install): Make source on each platform explicit. Enable on
12263 all noemu.
12264 * gentpl.py (x86_efi_pc): Removed group.
12265 (x86_noefi): Likewise.
12266 (i386_noefi): Likewise.
12267 (x86_noieee1275): Likewise.
12268 (i386_noieee1275): Likewise.
12269 (i386_noefi_noieee1275): Likewise.
12270 (i386_pc_qemu_coreboot): Likewise.
12271 (i386_coreboot_multiboot): Likewise.
12272 (i386_pc_coreboot_multiboot_qemu): Likewise.
12273 (x86_noefi_mips): Likewise.
12274 (noieee1275): Likewise.
12275 (ieee1275_mips): Likewise.
12276 (noemu_noieee1275): Likewise.
12277 (cmos): New group.
12278 (usb): Likewise.
12279 (videoinkernel): Likewise.
12280 (videomodules): Likewise.
12281 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
12282 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
12283 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
12284 include/grub/loader.h, include/grub/msdos_partition.h,
12285 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
12286 include/grub/machine/console.h, include/grub/machine/vga.h,
12287 include/grub/machine/vbe.h, include/grub/machine/init.h,
12288 include/grub/machine/kernel.h, include/grub/cpu/time.h,
12289 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
12290 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
12291 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
12292 * grub-core/Makefile.core.def (kernel): Explicit the source for
12293 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
12294 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
12295 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
12296 Use videoinkernel tag.
12297 (usb): Enable on all usb.
12298 (usbserial_common): Likewise.
12299 (usbserial_pl2303): Likewise.
12300 (usbserial_ftdi): Likewise.
12301 (uhci): Enable on all x86.
12302 (ohci): Enable on all pci.
12303 (cmostest): Enable on all CMOS.
12304 (acpi): Include commands/acpi.c on all platforms.
12305 (halt): Add relevant lib/*/halt.c.
12306 (hdparm): Enable on all pci.
12307 (lspci): Likewise.
12308 (usbtest): Enable on all usb.
12309 (ata): Enable on all pci.
12310 (ata_pthru): Likewise.
12311 (usbms): Enable on all usb.
12312 (usb_keyboard): Likewise.
12313 (font): Use tag videomodules.
12314 (bufio): Likewise.
12315 (datetime): Use tag cmos. Enable on all noemu.
12316 (mmap): Use tags common and x86.
12317 (gfxterm): Use tag videomodules.
12318 (bitmap): Likewise.
12319 (bitmap_scale): Likewise.
12320 (video_fb): Likewise.
12321 (video): Likewise.
12322 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
12323 adjust padding accordingly. All users updated.
12324 (grub_ohci_transaction): Fix bad format specification.
12325 (GRUB_MOD_INIT): Add asserts for struct size.
12326 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
12327 (grub_alloc_td): Likewise.
12328 (grub_free_queue): Likewise.
12329 (grub_uhci_transfer): Likewise.
12330 (grub_uhci_transaction): Fix bad format specification.
12331 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
12332 (grub_usb_bulk_readwrite): Likewise.
12333 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
12334 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
12335 Made static.
12336 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
12337 Made static.
12338 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
12339 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
12340 Transformed into C.
12341 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
12342 Moved from here ...
12343 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
12344 ... here. Transformed into C. Made static.
12345 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
12346 Moved from here ...
12347 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
12348 ... here. Transformed into C. Made static.
12349 * grub-core/kern/i386/pc/startup.S
12350 (grub_biosdisk_check_int13_extensions): Moved from here ...
12351 * grub-core/disk/i386/pc/biosdisk.c
12352 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
12353 Made static.
12354 * grub-core/kern/i386/pc/startup.S
12355 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
12356 * grub-core/disk/i386/pc/biosdisk.c
12357 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
12358 Transformed into C. Made static.
12359 * grub-core/kern/i386/pc/startup.S
12360 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
12361 * grub-core/disk/i386/pc/biosdisk.c
12362 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
12363 Transformed into C. Made static.
12364 * grub-core/kern/i386/pc/startup.S
12365 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
12366 * grub-core/disk/i386/pc/biosdisk.c
12367 (grub_biosdisk_get_diskinfo_standard): ... here.
12368 Transformed into C. Made static.
12369 * grub-core/kern/i386/pc/startup.S
12370 (grub_biosdisk_get_num_floppies): Moved from here ...
12371 * grub-core/disk/i386/pc/biosdisk.c
12372 (grub_biosdisk_get_num_floppies): ... here.
12373 Transformed into C. Made static.
12374 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
12375 New function.
12376 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
12377 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
12378 Transformed into C. Made static.
12379 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
12380 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
12381 Transformed into C. Made static.
12382 * grub-core/kern/i386/ieee1275/init.c: Removed.
12383 * grub-core/kern/i386/misc.S: Likewise.
12384 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
12385 Splitted from here ...
12386 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
12387 Transformed into C. Made static. All users updated.
12388 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
12389 Transformed into C. Made static. All users updated.
12390 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
12391 Moved from here...
12392 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
12393 Transformed into C. Made static. All users updated.
12394 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
12395 Moved from here...
12396 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
12397 Transformed into C. Made static. All users updated.
12398 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
12399 Removed (replaced by C version).
12400 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
12401 Moved from here...
12402 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
12403 Transformed into C. Made static.
12404 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
12405 Moved from here...
12406 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
12407 ... here. Transformed into C.
12408 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
12409 Moved from here...
12410 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
12411 ... here. Transformed into C.
12412 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
12413 Moved from here...
12414 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
12415 ... here. Transformed into C. Made static.
12416 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
12417 Moved from here...
12418 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
12419 ... here. Transformed into C.
12420 * grub-core/kern/i386/pc/startup.S
12421 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
12422 * grub-core/video/i386/pc/vbe.c
12423 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
12424 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
12425 Moved from here...
12426 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
12427 ... here. Transformed into C.
12428 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
12429 Moved from here...
12430 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
12431 ... here. Transformed into C.
12432 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
12433 Moved from here...
12434 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
12435 ... here. Transformed into C.
12436 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
12437 Moved from here...
12438 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
12439 ... here. Transformed into C.
12440 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
12441 Moved from here...
12442 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
12443 ... here. Transformed into C. Made static.
12444 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
12445 Moved from here...
12446 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
12447 ... here. Transformed into C. Made static.
12448 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
12449 Moved from here...
12450 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
12451 ... here. Transformed into C. Made static.
12452 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
12453 pxe_rm_entry as third argument.
12454 (grub_bios_interrupt): New function.
12455 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
12456 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
12457 of calling grub_stop.
12458 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
12459 * grub-core/lib/efi/halt.c (grub_halt): ...here.
12460 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
12461 * grub-core/lib/emu/halt.c (grub_halt): ... here.
12462 * grub-core/lib/i386/halt.c: Moved from here ...
12463 * grub-core/lib/i386/halt.c: ... here.
12464 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
12465 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
12466 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
12467 grub_stop_floppy.
12468 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
12469 * include/grub/i386/coreboot/init.h: Removed.
12470 * include/grub/i386/multiboot/init.h: Likewise.
12471 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
12472 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
12473 * include/grub/i386/pc/int.h: New file.
12474 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
12475 (grub_pxe_scan): Removed.
12476 (grub_pxe_call): Update prototype.
12477 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
12478 prototypes.
12479 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
12480 * include/grub/i386/qemu/init.h: Removed.
12481 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
12482 noreturn.
12483 (grub_halt): Likewise.
12484 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
12485 (grub_reboot): Likewise.
12486 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
12487 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
12488 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
12489
12490 2010-08-30 Robert Millan <rmh@gnu.org>
12491
12492 * NEWS: Document addition of ZFS support in `grub-install' and
12493 `grub-mkconfig'.
12494
12495 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
12496
12497 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
12498 dprintf output.
12499
12500 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 Remove leftover embedding of font objects.
12503
12504 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12505 * util/grub-install.in (font): Removed.
12506 * util/grub-mkimage.c (generate_image): Remove font support. All users
12507 updated.
12508
12509 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12510
12511 Remove leftover embedding of font objects.
12512
12513 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12514 * util/grub-install.in (font): Removed.
12515 * util/grub-mkimage.c (generate_image): Remove font support. All users
12516 updated.
12517
12518 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12519
12520 * docs/grub.texi (Network): Fix reference to pxe_blksize.
12521 Reported by: Ian Turner
12522
12523 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12524
12525 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
12526 timeout to avoid indefinite boot stalling.
12527
12528 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12529
12530 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
12531 (grub_env_write_color_highlight): Likewise.
12532
12533 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12534
12535 * grub-core/normal/term.c (print_more): Return to normal and not
12536 to standard state after printing "---MORE---".
12537
12538 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12539
12540 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
12541 Mask out the bit 0x80 since it has other meaning that specifiing color.
12542
12543 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12544
12545 New relocator. Allows for more kernel support and more straightforward
12546 loader writing.
12547
12548 * Makefile.am (BOOTTARGET): New variable.
12549 (QEMU32): Likewise.
12550 (linux.init.x86_64): New target.
12551 (linux.init.i386): Likewise.
12552 (multiboot.elf): Likewise.
12553 (kfreebsd.elf): Likewise.
12554 (kfreebsd.aout): Likewise.
12555 (pc-chainloader.elf): Likewise.
12556 (pc-chainloader.bin): Likewise.
12557 (ntldr.elf): Likewise.
12558 (ntldr.bin): Likewise.
12559 (multiboot2.elf): Likewise.
12560 (kfreebsd.init.x86_64): Likewise.
12561 (kfreebsd.init.i386): Likewise.
12562 (knetbsd.init.i386): Likewise.
12563 (kopenbsd.init.i386): Likewise.
12564 (knetbsd.init.x86_64): Likewise.
12565 (kopenbsd.init.x86_64): Likewise.
12566 (linux-initramfs.i386): Likewise.
12567 (linux-initramfs.x86_64): Likewise.
12568 (kfreebsd-mfsroot.i386.img): Likewise.
12569 (knetbsd.image.i386): Likewise.
12570 (kopenbsd.image.i386): Likewise.
12571 (kopenbsd.image.x86_64): Likewise.
12572 (knetbsd.miniroot-image.i386.img): Likewise.
12573 (kfreebsd-mfsroot.x86_64.img): Likewise.
12574 (knetbsd.image.x86_64): Likewise.
12575 (knetbsd.miniroot-image.x86_64.img): Likewise.
12576 (kfreebsd-mfsroot.i386.gz): Likewise.
12577 (bootcheck-kfreebsd-i386): Likewise.
12578 (kfreebsd-mfsroot.x86_64.gz): Likewise.
12579 (bootcheck-kfreebsd-x86_64): Likewise.
12580 (knetbsd.miniroot-image.i386.gz): Likewise.
12581 (bootcheck-knetbsd-i386): Likewise.
12582 (bootcheck-kopenbsd-i386): Likewise.
12583 (bootcheck-kopenbsd-x86_64): Likewise.
12584 (knetbsd.miniroot-image.x86_64.gz): Likewise.
12585 (bootcheck-knetbsd-x86_64): Likewise.
12586 (bootcheck-linux-i386): Likewise.
12587 (bootcheck-linux-x86_64): Likewise.
12588 (bootcheck-linux16-i386): Likewise.
12589 (bootcheck-linux16-x86_64): Likewise.
12590 (bootcheck-multiboot): Likewise.
12591 (bootcheck-multiboot2): Likewise.
12592 (bootcheck-kfreebsd-aout): Likewise.
12593 (bootcheck-pc-chainloader): Likewise.
12594 (bootcheck-ntldr): Likewise.
12595 (CLEANFILES): Add new targets.
12596 (BOOTCHECKS): New variable.
12597 (.PHONY): Add bootchecks.
12598 (SUCCESSFUL_BOOT_STRING): New variable.
12599 (BOOTCHECK_TIMEOUT): Likewise.
12600 (bootcheck): New target
12601 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
12602 * configure.ac: Correct efiemu excuse.
12603 * docs/grub.texi (Supported kernels): New chapter.
12604 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
12605 include/grub/mm_private.h. Simplify inclusion of
12606 include/grub/boot.h, include/grub/loader.h
12607 and include/grub/msdos_partition.h
12608 (KERNEL_HEADER_FILES) [i386_coreboot]:
12609 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
12610 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
12611 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
12612 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
12613 include/grub/machine/loader.h.
12614 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
12615 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
12616 extra_dist.
12617 (pci.mod): Enable on i386-multiboot.
12618 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
12619 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
12620 i386-qemu.
12621 (relocator.mod): Rewritten.
12622 (aout.mod): Enable on all x86.
12623 (bsd.mod): Likewise.
12624 (ntldr.mod): New module.
12625 (linux.mod): Use loader/i386/linux.c on all x86.
12626 (xnu.mod): Enable on all x86.
12627 (vga_text.mod): disable on EFI and QEMU.
12628 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
12629 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
12630 * grub-core/efiemu/loadcore.c: Likewise.
12631 * grub-core/efiemu/main.c: Likewise.
12632 (grub_efiemu_exit_boot_services): Removed.
12633 (grub_efiemu_finish_boot_services): Likewise.
12634 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
12635 function.
12636 * grub-core/efiemu/i386/nocfgtables.c: New file.
12637 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
12638 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
12639 (grub_efi_finish_boot_services): Moved from here ...
12640 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
12641 Fille finish memory map and related data.
12642 (finish_mmap_buf): New variable.
12643 (grub_efi_uintn_t finish_mmap_size): Likewise.
12644 (grub_efi_uintn_t finish_key): Likewise.
12645 (grub_efi_uintn_t finish_desc_size): Likewise.
12646 (grub_efi_uint32_t finish_desc_version): Likewise.
12647 (grub_efi_is_finished): Likewise.
12648 (grub_efi_get_memory_map): Use saved memory map if EFI is already
12649 finished.
12650 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
12651 (grub_elf64_phdr_iterate): Likewise.
12652 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
12653 (grub_os_area_size): Likewise.
12654 (grub_machine_init): Don't reserve os area.
12655 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
12656 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12657 * grub-core/kern/i386/loader.S: Removed.
12658 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
12659 (grub_os_area_size): Likewise.
12660 (grub_machine_init): Don't reserve os area.
12661 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12662 Don't call grub_dl_unload_all.
12663 Don't include loader.S.
12664 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
12665 Declare the memory after _end as available.
12666 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
12667 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
12668 (GRUB_MM_ALLOC_MAGIC): Moved from here...
12669 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
12670 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
12671 * include/grub/mm_private.h (grub_mm_header): ... here.
12672 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
12673 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
12674 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
12675 (grub_mm_region): ..here. Removed addr. Added pre_size.
12676 All users updated.
12677 * grub-core/kern/mm.c (base): Renamed to ...
12678 (grub_mm_base): ... this. Made global.
12679 (grub_real_malloc): Alloc from end of region.
12680 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
12681 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
12682 * grub-core/kern/powerpc/cache_flush.S: ... here.
12683 * grub-core/lib/efi/relocator.c: New file.
12684 * grub-core/lib/i386/relocator.c: Rewritten.
12685 * grub-core/lib/i386/relocator16.S: New file.
12686 * grub-core/lib/i386/relocator32.S: Likewise.
12687 * grub-core/lib/i386/relocator64.S: Likewise.
12688 * grub-core/lib/i386/relocator_asm.S: Rewritten.
12689 * grub-core/lib/i386/relocator_common.S: New file.
12690 * grub-core/lib/ieee1275/relocator.c: Likewise.
12691 * grub-core/lib/mips/relocator.c: Rewritten.
12692 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
12693 stylistic adjustments.
12694 * grub-core/lib/powerpc/relocator.c: New file.
12695 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
12696 * grub-core/lib/relocator.c: Rewritten.
12697 * grub-core/lib/x86_64/relocator_asm.S: New file.
12698 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
12699 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
12700 (bsd_tag): New struct.
12701 (tags): New variable.
12702 (tags_last): Likewise.
12703 (netbsd_module): New struct.
12704 (netbsd_mods): New variable.
12705 (netbsd_mods_last): Likewise.
12706 (openbsd_opts): New parameter "serial".
12707 (OPENBSD_SERIAL_ARG): New definition.
12708 (netbsd_opts): New parameter "serial".
12709 (NETBSD_SERIAL_ARG): New definition.
12710 (grub_freebsd_add_meta): Reorganised into ...
12711 (grub_bsd_add_meta): ...this. All users updated.
12712 (grub_freebsd_add_mmap): Reorganised into ...
12713 (generate_e820_mmap): ...this...
12714 (grub_bsd_add_mmap): ...and this. All users updated.
12715 (grub_freebsd_list_modules): Use tags.
12716 (grub_netbsd_add_meta_module): New function.
12717 (grub_netbsd_list_modules): Likewise.
12718 (grub_freebsd_boot): Use relocator and finish EFI.
12719 (grub_openbsd_boot): Likewise.
12720 (grub_netbsd_setup_video): New function.
12721 (grub_netbsd_add_modules): Likewise.
12722 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
12723 and finish EFI.
12724 (grub_bsd_unload): Unload tags.
12725 (grub_bsd_load_aout): Use relocator.
12726 (grub_bsd_elf32_size_hook): New function.
12727 (grub_bsd_elf32_hook): Use relocator.
12728 (grub_bsd_elf64_size_hook): New function.
12729 (grub_bsd_elf64_hook): Use relocator.
12730 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
12731 (grub_bsd_load): Zero-out openbsd_ramdisk.
12732 (grub_bsd_load): Use relocator.
12733 (grub_cmd_openbsd): Support serial.
12734 (grub_cmd_netbsd): Support modules.
12735 (grub_cmd_freebsd_module): Use relocator.
12736 (grub_netbsd_module_load): New function.
12737 (grub_cmd_netbsd_module): Likewise.
12738 (grub_cmd_openbsd_ramdisk): Likewise.
12739 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
12740 kopenbsd_ramdisk.
12741 (GRUB_MOD_FINI): Unregister new commands.
12742 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
12743 (grub_freebsd_load_elfmodule_obj): Use relocator.
12744 (grub_freebsd_load_elfmodule): Likewise.
12745 (grub_freebsd_load_elf_meta): Likewise.
12746 (grub_netbsd_load_elf_meta): New function.
12747 (grub_openbsd_find_ramdisk): Likewise.
12748 * grub-core/loader/i386/bsd_helper.S: Removed.
12749 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
12750 * grub-core/loader/i386/bsd_trampoline.S: Removed.
12751 * grub-core/loader/i386/efi/linux.c: Likewise.
12752 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
12753 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
12754 (DEFAULT_VIDEO_MODE): Likewise.
12755 (real_mode_target): New variable.
12756 (prot_mode_target): Likewise.
12757 (initrd_mem_target): Likewise.
12758 (relocator): Likewise.
12759 (efi_mmap_buf): Likewise.
12760 (efi_mmap_size): Likewise.
12761 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
12762 (free_pages): Use relocator.
12763 (allocate_pages): Account for efi_mmap and use relocator. Return error.
12764 (grub_linux_setup_video): Return error.
12765 (grub_linux_trampoline_start): Removed.
12766 (grub_linux_trampoline_end): Likewise.
12767 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
12768 andd video parameters depending on firmware.
12769 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
12770 [GRUB_MACHINE_EFI]: Pass EFI parameters.
12771 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
12772 (grub_cmd_initrd): Use relocator.
12773 * grub-core/loader/i386/linux_trampoline.S: Removed.
12774 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
12775 (elf_sec_entsize): Likewise.
12776 (elf_sec_shstrndx): Likewise.
12777 (elf_sections): Likewise.
12778 (grub_multiboot_load): Use relocator.
12779 (grub_multiboot_get_mbi_size): Account for sections.
12780 (grub_multiboot_make_mbi): Use relocator and support sections.
12781 (grub_multiboot_add_elfsyms): New function.
12782 (grub_multiboot_free_mbi): Free sections.
12783 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
12784 (grub_linux_real_target): Likewise.
12785 (grub_linux_real_chunk): Likewise.
12786 (grub_linux16_prot_size): Likewise.
12787 (grub_linux16_boot): Use relocator.
12788 (grub_linux_unload): Unload relocator.
12789 (grub_cmd_linux): Use relocator.
12790 (grub_cmd_initrd): Likewise.
12791 * grub-core/loader/i386/pc/ntldr.c: New file.
12792 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
12793 Don't try to guess CPU frequency.
12794 (grub_xnu_set_video): Stretch bitmap.
12795 (grub_xnu_boot): Use relocator.
12796 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
12797 (grub_linux_unload): Free relocator.
12798 (grub_linux_load32): Use relocator.
12799 (grub_linux_load64): Likewise.
12800 (grub_cmd_initrd): Likewise.
12801 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
12802 (grub_multiboot_unload): Unload relocator.
12803 (grub_cmd_multiboot): Use relocator.
12804 (grub_cmd_module): Likewise.
12805 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
12806 Use relocator and support sections.
12807 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
12808 (elf_sec_entsize): Likewise.
12809 (elf_sec_shstrndx): Likewise.
12810 (elf_sections): Likewise.
12811 (grub_multiboot_load): Use relocator.
12812 (grub_multiboot_get_mbi_size): Account for sections.
12813 (grub_multiboot_make_mbi): Use relocator and support sections.
12814 (grub_multiboot_add_elfsyms): New function.
12815 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
12816 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
12817 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
12818 Prototype changed. All users updated.
12819 (grub_xnu_align_heap): Simplified.
12820 (grub_xnu_writetree_toheap): Likewise.
12821 (grub_xnu_unload): Unload relocator.
12822 (grub_cmd_xnu_kernel): Use relocator.
12823 (grub_cmd_xnu_kernel64): Likewise.
12824 (grub_xnu_register_memory): Simplified.
12825 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
12826 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
12827 EFI is finished.
12828 (grub_console_checkkey): Likewise.
12829 (grub_console_getkey): Likewise.
12830 (grub_console_getwh): Likewise.
12831 (grub_console_getxy): Likewise.
12832 (grub_console_gotoxy): Likewise.
12833 (grub_console_cls): Likewise.
12834 (grub_console_setcolorstate): Likewise.
12835 (grub_console_setcursor): Likewise.
12836 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
12837 * grub-core/tests/boot/kbsd.init-i386.S: New file.
12838 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
12839 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
12840 * grub-core/tests/boot/kernel-8086.S: Likewise.
12841 * grub-core/tests/boot/kernel-i386.S: Likewise.
12842 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
12843 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
12844 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
12845 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
12846 * grub-core/tests/boot/knetbsd.cfg: Likewise.
12847 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
12848 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
12849 * grub-core/tests/boot/linux.cfg: Likewise.
12850 * grub-core/tests/boot/linux.init-i386.S: Likewise.
12851 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
12852 * grub-core/tests/boot/linux16.cfg: Likewise.
12853 * grub-core/tests/boot/multiboot.cfg: Likewise.
12854 * grub-core/tests/boot/multiboot2.cfg: Likewise.
12855 * grub-core/tests/boot/ntldr.cfg: Likewise.
12856 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
12857 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
12858 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
12859 New definition.
12860 * include/grub/dl.h (grub_dl_unload_all): Removed.
12861 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
12862 (grub_efi_finish_boot_services): Change prototype.
12863 (grub_efi_is_finished): New variable.
12864 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
12865 Changed prototype.
12866 (grub_efiemu_finish_boot_services): Removed.
12867 (grub_machine_efiemu_init_tables): New prototype.
12868 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
12869 (grub_elf64_phdr_iterate): Likewise.
12870 * include/grub/i386/bsd.h: Include relocator.h.
12871 (freebsd_tag_header): New struct.
12872 (grub_openbsd_bios_mmap): Removed.
12873 (grub_unix_real_boot): Removed.
12874 (grub_freebsd_load_elfmodule32): Changed prototype.
12875 (grub_freebsd_load_elfmodule_obj64): Likewise.
12876 (grub_freebsd_load_elf_meta32): Likewise.
12877 (grub_freebsd_load_elf_meta64): Likewise.
12878 (grub_freebsd_add_meta): Removed.
12879 (grub_netbsd_load_elf_meta32): New prototype.
12880 (grub_netbsd_load_elf_meta64): Likewise.
12881 (grub_bsd_add_meta): Likewise.
12882 (grub_openbsd_ramdisk_descriptor): New struct.
12883 (grub_openbsd_find_ramdisk32): New prototype.
12884 (grub_openbsd_find_ramdisk64): Likewise.
12885 * include/grub/i386/coreboot/loader.h: Removed.
12886 * include/grub/i386/efi/loader.h: Likewise.
12887 * include/grub/i386/ieee1275/loader.h: Likewise.
12888 * include/grub/i386/linux.h (linux_kernel_header): Change void *
12889 to grub_uint32_t.
12890 * include/grub/i386/loader.h: Removed.
12891 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
12892 value.
12893 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
12894 (grub_phys_addr_t): New type.
12895 (grub_vtop): New inline function.
12896 (grub_map_memory): Likewise.
12897 (grub_unmap_memory): Likewise.
12898 * include/grub/i386/multiboot/loader.h: Removed.
12899 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
12900 (NETBSD_BTINFO_CONSOLE): New definition.
12901 (NETBSD_BTINFO_SYMTAB): Likewise.
12902 (NETBSD_BTINFO_MODULES): Likewise.
12903 (NETBSD_BTINFO_FRAMEBUF): Likewise.
12904 (grub_netbsd_bootinfo): New struct.
12905 (grub_netbsd_btinfo_common): Use explicit bitsize.
12906 (grub_netbsd_btinfo_mmap_entry): Removed.
12907 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
12908 (grub_netbsd_btinfo_bootdisk): New struct.
12909 (grub_netbsd_btinfo_symtab): Likewise.
12910 (grub_netbsd_btinfo_serial): Likewise.
12911 (grub_netbsd_btinfo_modules): Likewise.
12912 (grub_netbsd_btinfo_framebuf): Likewise.
12913 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
12914 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
12915 Likewise.
12916 (grub_openbsd_bootargs): Use explicit bitsize.
12917 (grub_openbsd_bootarg_console): New struct.
12918 (GRUB_OPENBSD_COM_MAJOR): New definition.
12919 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
12920 * include/grub/i386/pc/efiemu.h: Removed.
12921 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
12922 * include/grub/i386/qemu/loader.h: Removed.
12923 * include/grub/i386/relocator.h: Rewritten.
12924 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
12925 * include/grub/mips/memory.h: New file.
12926 * include/grub/mips/multiboot.h: Rewritten.
12927 * include/grub/mips/relocator.h: Rewritten.
12928 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
12929 (grub_vtop): New function.
12930 (grub_map_memory): Likewise.
12931 (grub_unmap_memory): Likewise.
12932 * include/grub/misc.h (ALIGN_DOWN): New definition.
12933 * include/grub/mm.h (grub_mm_check_real): New proto.
12934 (GRUB_MM_CHECK): New definition.
12935 * include/grub/mm_private.h: New file.
12936 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
12937 (grub_multiboot_get_mbi_size): Removed.
12938 (grub_multiboot_make_mbi): Change prottype.
12939 (grub_multiboot_set_accepts_video): New proto.
12940 (grub_multiboot_add_elfsyms): Likewise.
12941 (grub_multiboot_payload_eip): New variable.
12942 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
12943 New prototype.
12944 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
12945 New definition.
12946 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
12947 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
12948 * include/grub/powerpc/ieee1275/loader.h: Removed.
12949 * include/grub/powerpc/memory.h: New file.
12950 * include/grub/powerpc/relocator.h: Likewise.
12951 * include/grub/relocator.h: Likewise.
12952 * include/grub/relocator_private.h: Likewise.
12953 * include/grub/sparc64/ieee1275/loader.h: Removed.
12954 * include/grub/x86_64/memory.h: New file.
12955 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
12956 (grub_xnu_heap_malloc): Likewise.
12957 (grub_xnu_heap_real_start): Removed.
12958 (grub_xnu_heap_start): Likewise.
12959 (grub_xnu_relocator): New variable.
12960 (grub_xnu_heap_target_start): Likewise.
12961 * tests/util/grub-shell.in: Support non-pc.
12962 * util/grub-mkimage.c (image_targets): Fix multiboot target.
12963
12964 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
12967 on malloc error.
12968 (grub_bidi_logical_to_visual): Check that malloc succeded.
12969 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
12970 puts.
12971 (grub_xputs_normal): Likewise.
12972
12973 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12974
12975 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
12976 extra_dist.
12977
12978 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12979
12980 * grub-core/efiemu/runtime/efiemu.sh: Removed.
12981
12982 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12983
12984 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
12985
12986 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
12989 dprintf.
12990
12991 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
12992
12993 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
12994
12995 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 * grub-core/normal/term.c (print_more): Fix a memory leak.
12998 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
12999 (grub_xputs_normal): Likewise.
13000
13001 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
13004 the begining of the string
13005
13006 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13007
13008 * grub-core/script/script.c (grub_script_parse): Free parsed on
13009 failure.
13010
13011 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13012
13013 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
13014 on failure.
13015
13016 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13017
13018 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
13019 return.
13020
13021 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13022
13023 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
13024 (scroll_up): Fix a memory leak.
13025
13026 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13027
13028 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
13029 errors.
13030
13031 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
13032
13033 Handle USB pendrives exposed as floppies.
13034
13035 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
13036 floppy.
13037 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
13038 Check for partitions on all devices.
13039
13040 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
13043 (readkey): Likewise.
13044
13045 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
13046
13047 Multiple variable names support to "export" command.
13048
13049 * normal/context.c (grub_cmd_export): "export" command supports
13050 multiple variable names.
13051
13052 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
13053
13054 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
13055 --target=drive output to Mach device name.
13056
13057 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13058
13059 New Automake based build system for GRUB.
13060
13061 * ABOUT-NLS: New file.
13062 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
13063 in Makefile.util.def file.
13064 * Makefile.util.def: New file. Autogen build definitions file for
13065 GRUB host utils.
13066 * conf/Makefile.common: New file. Common variables for GRUB host
13067 utils and target modules.
13068 * conf/Makefile.extra-dist: New file. Extra files for make dist.
13069 * docs/Makefile.am: New file. Automake file for docs.
13070 * gentpl.py: New file. Python script to generate Autogen
13071 template.
13072 * grub-core/Makefile.am: New file. GRUB target modules' rules
13073 that doesn't fit in Makefile.core.def file.
13074 * grub-core/Makefile.core.def: New file. Autogen build
13075 definitions file for GRUB target modules.
13076 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
13077 specific setjmp.S file.
13078 * po/Makefile.am: New file.
13079
13080 * .bzrignore: New ignores.
13081 * INSTALL: New requirements, without Ruby.
13082 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
13083 * autogen.sh: Updated to invoke autogen as necessary.
13084 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
13085 and defines for Automake conditionals.
13086 * geninit.sh: Refactoring.
13087
13088 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
13089 necessary.
13090 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
13091 New prototype.
13092
13093 * include/grub/test.h: Fix functional test modules' naming.
13094 * grub-core/tests/example_functional_test.c: Fix test module name.
13095
13096 * util/misc.c: Hosted versions' of grub functions for libgrub.a
13097 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
13098 * util/grub-editenv.c: Likewise.
13099 * util/grub-fstest.c: Likewise.
13100 * util/grub-mkdevicemap.c: Likewise.
13101 * util/grub-mkfont.c: Likewise.
13102 * util/grub-mkimage.c: Likewise.
13103 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13104 * util/grub-probe.c: Likewise.
13105 * util/grub-script-check.c: Likewise.
13106 * util/i386/pc/grub-setup.c: Likewise.
13107 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13108
13109 * tests/util/grub-shell.in: Fix override directory path.
13110 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
13111 * util/import_gcry.py: Create Makefile.gcry.def file instead.
13112
13113 * util/lvm.c: Update #includes.
13114 * util/raid.c: Likewise.
13115 * util/resolve.c: Likewise.
13116 * grub-core/bus/emu/pci.c: Likewise.
13117 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
13118 * grub-core/lib/posix_wrap/string.h: Likewise.
13119 * grub-core/kern/emu/main.c: Likewise.
13120
13121 * grub-core/gensymlist.sh: New file. Script for generating kernel
13122 symbols file.
13123 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
13124
13125 * grub-core/gentrigtables.c: Fix unused variable warnings.
13126
13127 * Makefile.in: Removed.
13128 * conf/any-emu.rmk: Removed.
13129 * conf/common.rmk: Removed.
13130 * conf/i386-coreboot.rmk: Removed.
13131 * conf/i386-efi.rmk: Removed.
13132 * conf/i386-ieee1275.rmk: Removed.
13133 * conf/i386-multiboot.rmk: Removed.
13134 * conf/i386-pc.rmk: Removed.
13135 * conf/i386-qemu.rmk: Removed.
13136 * conf/i386.rmk: Removed.
13137 * conf/mips-yeeloong.rmk: Removed.
13138 * conf/mips.rmk: Removed.
13139 * conf/powerpc-ieee1275.rmk: Removed.
13140 * conf/sparc64-ieee1275.rmk: Removed.
13141 * conf/tests.rmk: Removed.
13142 * conf/x86-efi.rmk: Removed.
13143 * conf/x86_64-efi.rmk: Removed.
13144 * gendistlist.sh: Removed.
13145 * geninitheader.sh: Removed.
13146 * genkernsyms.sh.in: Removed.
13147 * genmk.rb: Removed.
13148 * gensymlist.sh.in: Removed.
13149 * mkinstalldirs: Removed.
13150 * boot: Moved ...
13151 * grub-core/boot: ... to here.
13152 * bus: Moved ...
13153 * grub-core/bus: ... to here.
13154 * commands: Moved ...
13155 * grub-core/commands: ... to here.
13156 * disk: Moved ...
13157 * grub-core/disk: ... to here.
13158 * efiemu: Moved ...
13159 * grub-core/efiemu: ... to here.
13160 * font: Moved ...
13161 * grub-core/font: ... to here.
13162 * fs: Moved ...
13163 * grub-core/fs: ... to here.
13164 * gencmdlist.sh: Moved ...
13165 * grub-core/gencmdlist.sh: ... to here.
13166 * genemuinit.sh: Moved ...
13167 * grub-core/genemuinit.sh: ... to here.
13168 * genemuinitheader.sh: Moved ...
13169 * grub-core/genemuinitheader.sh: ... to here.
13170 * genfslist.sh: Moved ...
13171 * grub-core/genfslist.sh: ... to here.
13172 * genhandlerlist.sh: Moved ...
13173 * grub-core/genhandlerlist.sh: ... to here.
13174 * genmoddep.awk: Moved ...
13175 * grub-core/genmoddep.awk: ... to here.
13176 * genmodsrc.sh: Moved ...
13177 * grub-core/genmodsrc.sh: ... to here.
13178 * genpartmaplist.sh: Moved ...
13179 * grub-core/genpartmaplist.sh: ... to here.
13180 * genparttoollist.sh: Moved ...
13181 * grub-core/genparttoollist.sh: ... to here.
13182 * genterminallist.sh: Moved ...
13183 * grub-core/genterminallist.sh: ... to here.
13184 * gentrigtables.c: Moved ...
13185 * grub-core/gentrigtables.c: ... to here.
13186 * genvideolist.sh: Moved ...
13187 * grub-core/genvideolist.sh: ... to here.
13188 * gettext: Moved ...
13189 * grub-core/gettext: ... to here.
13190 * gfxmenu: Moved ...
13191 * grub-core/gfxmenu: ... to here.
13192 * gnulib: Moved ...
13193 * grub-core/gnulib: ... to here.
13194 * hello: Moved ...
13195 * grub-core/hello: ... to here.
13196 * hook: Moved ...
13197 * grub-core/hook: ... to here.
13198 * io: Moved ...
13199 * grub-core/io: ... to here.
13200 * kern: Moved ...
13201 * grub-core/kern: ... to here.
13202 * lib: Moved ...
13203 * grub-core/lib: ... to here.
13204 * loader: Moved ...
13205 * grub-core/loader: ... to here.
13206 * mmap: Moved ...
13207 * grub-core/mmap: ... to here.
13208 * normal: Moved ...
13209 * grub-core/normal: ... to here.
13210 * partmap: Moved ...
13211 * grub-core/partmap: ... to here.
13212 * parttool: Moved ...
13213 * grub-core/parttool: ... to here.
13214 * script: Moved ...
13215 * grub-core/script: ... to here.
13216 * term: Moved ...
13217 * grub-core/term: ... to here
13218 * tests/example_functional_test.c: Moved ...
13219 * grub-core/tests/example_functional_test.c: ... to here.
13220 * tests/lib/functional_test.c: Moved ...
13221 * grub-core/tests/lib/functional_test.c: ... to here.
13222 * tests/lib/test.c: Moved ...
13223 * grub-core/tests/lib/test.c: ... to here.
13224 * video: Moved ...
13225 * grub-core/video: ... to here.
13226
13227 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13228
13229 Replace --enable-grub-emu-modules with grub-emu-lite.
13230
13231 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
13232 cache.S.
13233
13234 * include/grub/emu/misc.h (grub_emu_init): New prototype.
13235 * kern/emu/full.c: New file. For grub-emu specific initialization.
13236 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
13237 * kern/emu/main.c: Call initialization function grub_emu_init.
13238
13239 * Makefile.in: Include grub-emu-lite in install.
13240 * commands/parttool.c: Use grub_no_autoload to differentiate
13241 between grub-emu and grub-emu-lite.
13242 * include/grub/misc.h: New variable grub_no_autoload.
13243
13244 * conf/any-emu.rmk: New rules for grub-emu-lite.
13245 * configure.ac: Remove --enable-grub-emu-modules.
13246 * genmk.rb: Cleanup unnecessary rules.
13247 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
13248
13249 * normal/main.c: Don't load list files on grub-emu-lite.
13250 * util/misc.c (grub_arch_sync_caches): Removed.
13251
13252 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
13253
13254 * kern/mips/startup.S (grub_prefix): Update comment to refer to
13255 grub-mkimage rather than grub-mkelfimage.
13256 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
13257
13258 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
13259
13260 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
13261 a key after CapsLock or NumLock. It's just a qemu bug.
13262
13263 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13264
13265 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
13266 needed by libusb wrapper.
13267
13268 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
13269
13270 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
13271
13272 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13273
13274 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
13275 --nounzip is passed.
13276
13277 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
13278
13279 USB hotunplugging and USB serial support.
13280
13281 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
13282 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
13283 (grub_uhci_transfer): Respect timeout and set *actual.
13284 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
13285 non-standard length.
13286 (grub_usb_device_attach): Autoload modules.
13287 (GRUB_MOD_INIT): Set grub_term_poll_usb.
13288 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
13289 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
13290 users updated.
13291 (grub_usb_add_hub): Fill nports and children.
13292 (attach_root_port): Receive hub instead of controller.
13293 All users updated. Fill hub->devices.
13294 (grub_usb_root_hub): Allocate hub->devices.
13295 (detach_device): New function.
13296 (poll_nonroot_hub): Fill children and detach devices.
13297 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
13298 actual arguments. All users updated.
13299 (grub_usb_bulk_read_extended): New function.
13300 * bus/usb/serial/common.c: New file.
13301 * bus/usb/serial/ftdi.c: Likewise.
13302 * bus/usb/serial/pl2303.c: Likewise.
13303 * commands/terminal.c (handle_command): Support wildcard.
13304 * commands/usbtest.c: Output "Unknown" instead of empty string.
13305 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
13306 (usbserial_common_mod_SOURCES): New variable.
13307 (usbserial_common_mod_CFLAGS): Likewise.
13308 (usbserial_common_mod_LDFLAGS): Likewise.
13309 (pkglib_MODULES): Add usbserial_pl2303.mod.
13310 (usbserial_pl2303_mod_SOURCES): New variable.
13311 (usbserial_pl2303_mod_CFLAGS): Likewise.
13312 (usbserial_pl2303_mod_LDFLAGS): Likewise.
13313 (pkglib_MODULES): Add usbserial_ftdi.mod.
13314 (usbserial_ftdi_mod_SOURCES): New variable.
13315 (usbserial_ftdi_mod_CFLAGS): Likewise.
13316 (usbserial_ftdi_mod_LDFLAGS): Likewise.
13317 (pkglib_MODULES): Add serial.mod.
13318 (serial_mod_SOURCES): New variable.
13319 (serial_mod_CFLAGS): Likewise.
13320 (serial_mod_LDFLAGS): Likewise.
13321 * conf/i386-pc.rmk: Likewise.
13322 * conf/mips-yeeloong.rmk: Likewise.
13323 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
13324 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13325 * disk/usbms.c (first_available_slot): New variable.
13326 (grub_usbms_attach): Don't reuse free slots due to potential cache
13327 problems.
13328 * include/grub/serial.h: Moved to ..
13329 * include/grub/ns8250.h: ...this.
13330 * include/grub/serial.h: New file.
13331 * include/grub/term.h (grub_term_poll_usb): New variable.
13332 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
13333 readkey. All users updated.
13334 (grub_terminfo_output_state): Pass term to put.
13335 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
13336 (grub_usb_controller_dev): Add timeout and actual arguments to
13337 transfer. All users updated.
13338 (grub_usb_interface): New field detach_data.
13339 (grub_usb_device): New fields children and nports.
13340 (grub_usb_ep_type_t): New type.
13341 (grub_usb_get_ep_type): New function.
13342 (grub_usb_bulk_read_extended): Likewise.
13343 * include/grub/usbdesc.h (grub_usb_desc): New type.
13344 * include/grub/usbserial.h: New file.
13345 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
13346 * kern/term.c (grub_term_poll_usb): New variable.
13347 (grub_getkey): Call grub_term_poll_usb if set.
13348 (grub_checkkey): Likewise.
13349 (grub_getkeystatus): Likewise.
13350 * term/serial.c: Moved controller-specific parts to ...
13351 * term/ns8250.c: ... here.
13352 * term/serial.c: Mostly rewritten.
13353 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
13354 according to spec.
13355
13356 2010-08-20 Robert Millan <rmh@gnu.org>
13357
13358 Make kFreeBSD code more generic to support ext2fs as root, ufs as
13359 a separate module and maybe other interesting combinations.
13360
13361 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
13362 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
13363 (kfreebsd_entry): Add generic filesystem module load routine.
13364 Map GRUB `ext2' to kFreeBSD `ext2fs'.
13365
13366 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13367
13368 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
13369 "numcenter" (I misunderstood the purpose of this entry).
13370 * docs/grub.texi (sendkey): Likewise.
13371
13372 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13373
13374 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
13375 status flag options; simply omitting the option is equivalent and
13376 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
13377 (keysym_table): Rename "num5numlock" to "numlock".
13378 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
13379 can uniformly say that only the last of multiple `sendkey'
13380 invocations has any effect.
13381 * docs/grub.texi (sendkey): New section.
13382
13383 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
13384
13385 * commands/i386/pc/sendkey.c (options): Fix three typos.
13386
13387 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 Implement sendkey support.
13390
13391 * commands/i386/pc/sendkey.c: New file.
13392 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
13393 (sendkey_mod_SOURCES): New variable.
13394 (sendkey_mod_CFLAGS): Likewise.
13395 (sendkey_mod_LDFLAGS): Likewise.
13396
13397 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13398
13399 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
13400 fix warnings from Autoconf.
13401
13402 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13403
13404 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
13405 to avoid false positives with some assemblers that output things
13406 like "someprefix_func" as part of their output.
13407
13408 2010-08-15 Robert Millan <rmh@gnu.org>
13409
13410 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
13411 errors.
13412 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
13413 grub_get_libzfs_handle() errors.
13414
13415 2010-08-14 Robert Millan <rmh@gnu.org>
13416
13417 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
13418 filesystem is not ZFS.
13419
13420 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13421
13422 Fix for misspelled color names defaulting to black/black (bug
13423 reported by Doug Nazar)
13424
13425 * include/grub/normal.h (grub_parse_color_name_pair): Add return
13426 status to prototype.
13427 * normal/color.c (grub_parse_color_name_pair): Return failure
13428 status.
13429 (grub_env_write_color_normal): Ignore bad color names.
13430 (grub_env_write_color_highlight): Likewise.
13431 * normal/main.c (GRUB_MOD_INIT): Set default color names.
13432
13433 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13434
13435 "shift" command support to GRUB script.
13436
13437 * include/grub/script_sh.h (grub_script_shift): New prototype.
13438 * script/execute.c (grub_script_shift): New function.
13439 * script/main.c (grub_script_init): Register shift command.
13440 (grub_script_fini): Unregister shift command.
13441 * util/grub-script-check.c (grub_script_cmd_shift): New function.
13442
13443 * tests/grub_script_shift.in: New testcase.
13444 * conf/tests.rmk: Rules for new testcase.
13445
13446 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13447
13448 "continue" command support to GRUB script.
13449
13450 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
13451 (grub_script_break): Continue support.
13452 * script/main.c (grub_script_init): Register continue command.
13453 (grub_script_fini): Unregister continue command.
13454
13455 * tests/grub_script_continue.in: New testcase.
13456 * conf/tests.rmk: Rules for new testcase.
13457
13458 2010-08-12 BVK Chaitanya <bvk@dbook>
13459
13460 "break" command support to GRUB script.
13461
13462 * conf/common.rmk: Rule updates to grub-script-check.
13463 * include/grub/misc.h (grub_min): New function.
13464 * include/grub/script_sh.h (grub_script_init): New prototype.
13465 (grub_script_fini): New prototype.
13466 (grub_script_break): New prototype.
13467 * script/main.c (grub_script_init): New function.
13468 (grub_script_fini): New function.
13469 * script/execute.c (grub_script_break): New function.
13470 * normal/main.c: Calls to grub_script_{init,fini}.
13471 * util/grub-script-check.c (grub_script_break): New function.
13472
13473 * tests/grub_script_break.in: New testcase.
13474 * conf/tests.rmk: Rules for new test case.
13475
13476 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13477
13478 Function parameters support to GRUB script.
13479
13480 * script/yylex.l (VARIABLE): Regular expression update.
13481 * script/function.c (grub_script_function_call): Moved ...
13482 * script/execute.c (grub_script_function_call): ... to here.
13483 (grub_script_execute_arglist_to_argv): Removed.
13484 (grub_script_arglist_to_argv): New function.
13485 * script/argv.c: New file.
13486 (grub_script_argv_free): New function.
13487 (grub_script_argv_next): Likewise.
13488 (grub_script_argv_append): Likewise.
13489 (grub_script_argv_split_append): Likewise.
13490 * include/grub/script_sh.h (grub_script_argv): New struct.
13491 (grub_script_argv_free): New function.
13492 (grub_script_argv_next): Likewise.
13493 (grub_script_argv_append): Likewise.
13494 (grub_script_argv_split_append): Likewise.
13495
13496 * conf/common.rmk (normal.mod): New source script/argv.c.
13497
13498 * tests/grub_script_echo1.in: More tests.
13499 * tests/grub_script_vars1.in: Likewise.
13500 * tests/grub_script_functions.in: New test case.
13501 * conf/tests.rmk: Rules for new testcase.
13502
13503 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13504
13505 Remove grub_script_cmdblock struct.
13506
13507 * include/grub/script_sh.h: Remove grub_script_cmdblock.
13508 * script/parser.y: Likewise.
13509 * script/execute.c: Rename cmdblock suffix to cmdlist.
13510 * script/script.c: Likewise.
13511 * util/grub-script-check.c: Likewise.
13512
13513 2010-08-11 Yves Blusseau <blusseau@zetam.org>
13514
13515 * .bzrignore: add grub-macho2img
13516
13517 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
13520
13521 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 Remove the dump of sm712 initialisation sequence.
13524
13525 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
13526 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
13527 (GRUB_VGA_IO_MISC_WRITE): Likewise.
13528 (GRUB_VGA_CR_*): Added many registers.
13529 (GRUB_VGA_SR_*): Likewise.
13530 (GRUB_VGA_GR_*): Likewise.
13531 (grub_vga_write_arx): New function.
13532 (grub_video_hw_config): New struct.
13533 (grub_vga_set_geometry): New function.
13534 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
13535 GRUB_PCI_CLASS_SUBCLASS_VGA.
13536 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
13537 * video/sm712.c (grub_sm712_write_reg): New function
13538 (grub_sm712_read_reg): Likewise.
13539 (grub_sm712_sr_write): Likewise.
13540 (grub_sm712_gr_write): Likewise.
13541 (grub_sm712_cr_write): Likewise.
13542 (grub_sm712_write_arx): Likewise.
13543 (grub_sm712_cr_shadow_write): Likewise.
13544 (grub_sm712_write_dda_lookup): Likewise.
13545 (grub_video_sm712_setup): Initialise the video rather then
13546 blindly replay the dump.
13547 (main) [TEST]: Add a routine to be able to compile as standalone for
13548 tests.
13549 * video/sm712_init.c (sm712_init): Removed.
13550 (sm712_sr_seq1): New array.
13551 (sm712_sr_seq2): Likewise.
13552
13553 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 * include/grub/vga.h: Add missing grub/pci.h include.
13556
13557 2010-08-10 Yves Blusseau <blusseau@zetam.org>
13558
13559 * util/grub-macho2img.c (main): fix typo
13560
13561 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13562
13563 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
13564 (grub_vga_gr_read): Likewise.
13565 (grub_vga_cr_write): Likewise.
13566 (grub_vga_cr_read): Likewise.
13567 (grub_vga_sr_write): Likewise.
13568 (grub_vga_sr_read): Likewise.
13569 (grub_vga_palette_read): Likewise.
13570 (grub_vga_palette_write): Likewise.
13571 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
13572 (grub_sm712_sr_read): New function.
13573 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
13574 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
13575
13576 2010-08-09 Robert Millan <rmh@gnu.org>
13577
13578 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
13579 out unused variables on non-ZFS build.
13580
13581 2010-08-08 Robert Millan <rmh@gnu.org>
13582
13583 Fix path generation for sub-filesystems in ZFS.
13584
13585 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
13586 missing slash.
13587
13588 2010-08-08 Robert Millan <rmh@gnu.org>
13589
13590 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
13591
13592 2010-08-08 Robert Millan <rmh@gnu.org>
13593
13594 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
13595 exist, issue a proper error message (rely on `ls' for translated
13596 strings).
13597
13598 2010-08-08 Robert Millan <rmh@gnu.org>
13599
13600 Fix grub-probe invocation.
13601
13602 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
13603
13604 2010-08-04 Robert Millan <rmh@gnu.org>
13605
13606 * configure.ac: Remove checks for getfsstat() and getmntany().
13607 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
13608 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
13609 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
13610 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
13611 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
13612 function.
13613 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
13614 via find_mount_point_from_dir() and getfsstat() / getmntany().
13615
13616 2010-08-04 Robert Millan <rmh@gnu.org>
13617
13618 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13619 (grub_find_zpool_from_mount_point): Merge into ...
13620 (grub_find_zpool_from_dir): ... this.
13621 * kern/emu/misc.c: Likewise.
13622
13623 * kern/emu/misc.c
13624 (grub_make_system_path_relative_to_its_root): Replace
13625 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
13626 with grub_find_zpool_from_dir().
13627 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
13628
13629 2010-08-04 Robert Millan <rmh@gnu.org>
13630
13631 Support OpenSolaris in ZFS device resolution.
13632
13633 * configure.ac: Check for getmntany().
13634 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
13635 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
13636 support.
13637
13638 2010-08-03 Robert Millan <rmh@gnu.org>
13639
13640 Fix grub-emu build.
13641
13642 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
13643 * include/grub/emu/misc.h: ... here.
13644
13645 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
13646 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
13647
13648 * util/misc.c: Remove `<grub/util/libzfs.h>'.
13649 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
13650 (grub_get_libzfs_handle): Move to ...
13651 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
13652 (grub_get_libzfs_handle): ... here.
13653
13654 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
13655
13656 * script/execute.c (grub_script_execute_cmdline): Check for NULL
13657 as command name case.
13658
13659 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
13660
13661 * disk/raid.c (insert_array): Select unique numbers for named arrays
13662 as well, for use as keys in the disk cache.
13663
13664 2010-08-01 Robert Millan <rmh@gnu.org>
13665
13666 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
13667 kFreeBSD device name, except on ZFS where the filesystem label is
13668 used.
13669 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
13670 `/boot/zfs/zpool.cache'.
13671 Set mountfrom kernel variable using ${kfreebsd_device}.
13672
13673 2010-08-01 Robert Millan <rmh@gnu.org>
13674
13675 Make it even harder to use uninitialized `libzfs_handle' (and
13676 make the interface a bit simpler).
13677
13678 * include/grub/util/misc.h (grub_util_init_libzfs)
13679 (libzfs_handle): Remove.
13680 (grub_get_libzfs_handle): New prototype.
13681
13682 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
13683 attribute.
13684 (grub_util_init_libzfs): Remove.
13685 (grub_get_libzfs_handle): New function.
13686
13687 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
13688 grub_get_libzfs_handle() to obtain a libzfs handle instead of
13689 accessing `libzfs_handle' directly.
13690
13691 2010-08-01 Robert Millan <rmh@gnu.org>
13692
13693 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13694 (grub_find_zpool_from_mount_point): New function prototypes.
13695
13696 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13697 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13698
13699 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13700 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13701 `static' attribute.
13702
13703 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13704 finding zpool from mount point into ...
13705 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13706
13707 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13708 requested path is part of a ZFS pool, use
13709 grub_find_zpool_from_mount_point() to detect its filesystem name,
13710 and generate a path with `/fsname@path' syntax.
13711
13712 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13713
13714 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
13715 (void) rather than () so that this is a proper prototype.
13716
13717 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13718
13719 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
13720
13721 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
13724 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
13725
13726 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13727
13728 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
13729
13730 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13731
13732 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
13733
13734 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13735
13736 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
13737 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
13738 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
13739 disable gfxpayload.
13740 (Shell-like scripting): Add real content.
13741 (Serial terminal): Suggest `terminal_input serial; terminal_output
13742 serial' rather than putting the two commands on separate lines,
13743 since console input will be inoperative after the first command.
13744 (menuentry): Document --class, --users, and --hotkey options.
13745 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
13746 Vladimir Serbinenko).
13747
13748 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13749 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13750
13751 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
13752
13753 2010-08-01 Robert Millan <rmh@gnu.org>
13754
13755 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13756 (grub_find_zpool_from_mount_point): New function prototypes.
13757
13758 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13759 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13760
13761 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13762 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13763 `static' attribute.
13764
13765 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13766 finding zpool from mount point into ...
13767 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13768
13769 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13770 requested path is part of a ZFS pool, use
13771 grub_find_zpool_from_mount_point() to detect its filesystem name,
13772 and generate a path with `/fsname@path' syntax.
13773
13774 2010-08-01 Robert Millan <rmh@gnu.org>
13775
13776 Prevent accidental use of uninitialized libzfs_handle.
13777
13778 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
13779 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
13780 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
13781
13782 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13783
13784 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
13785 util/grub.d/10_linux.in). Fixes Debian bug #591093.
13786
13787 2010-08-01 Robert Millan <rmh@gnu.org>
13788
13789 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
13790
13791 2010-07-31 Robert Millan <rmh@gnu.org>
13792
13793 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
13794
13795 2010-07-31 Robert Millan <rmh@gnu.org>
13796
13797 * kern/emu/misc.c: Add missing license header.
13798
13799 2010-07-31 Robert Millan <rmh@gnu.org>
13800
13801 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
13802
13803 * include/grub/util/libnvpair.h: Include `<config.h>'.
13804 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
13805 declaring libnvpair prototypes ourselves.
13806 * include/grub/util/libzfs.h: Include `<config.h>'.
13807 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
13808 declaring libzfs prototypes ourselves.
13809
13810 (libzfs_handle): Moved to ...
13811 * include/grub/util/misc.h (libzfs_handle): ... here.
13812 Include `<grub/util/libzfs.h>'.
13813
13814 2010-07-30 Robert Millan <rmh@gnu.org>
13815
13816 * include/grub/emu/misc.h: Add missing license header.
13817
13818 2010-07-30 Robert Millan <rmh@gnu.org>
13819
13820 Enable `grub-probe -t device' resolution on ZFS.
13821
13822 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
13823 * include/grub/util/libnvpair.h: New file.
13824 * include/grub/util/libzfs.h: New file.
13825
13826 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
13827 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
13828 `<grub/util/libnvpair.h>'.
13829 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
13830
13831 (find_mount_point_from_dir): New static function.
13832 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
13833 function.
13834 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
13835 find_root_device_from_libzfs() before ressorting to find_root_device().
13836
13837 * include/grub/util/misc.h (grub_util_init_libzfs): New function
13838 prototype.
13839 * util/misc.c: Include `<grub/util/libzfs.h>'.
13840 (grub_util_init_libzfs): New function.
13841 [HAVE_LIBZFS] (libzfs_handle): New global variable.
13842 [HAVE_LIBZFS] (fini_libzfs): New static function.
13843 (grub_util_init_libzfs): New function.
13844 * util/grub-probe.c (main): Call grub_util_init_libzfs().
13845
13846 2010-07-30 Robert Millan <rmh@gnu.org>
13847
13848 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
13849 (xmalloc, xrealloc, xstrdup, xasprintf): Add
13850 `warn_unused_result' attribute.
13851 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
13852 (grub_xasprintf, grub_xvasprintf): Likewise.
13853 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
13854
13855 2010-07-29 Robert Millan <rmh@gnu.org>
13856
13857 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
13858 (probe): Handle `PRINT_FS_LABEL'.
13859 (main): Handle `-t fs_label'.
13860
13861 2010-07-29 Robert Millan <rmh@gnu.org>
13862
13863 * configure.ac: Remove grub-mkisofs checks.
13864
13865 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
13866
13867 * util/ieee1275/grub-install.in: Don't use empty grub_device.
13868 Reported by: Lennart Sorensen.
13869
13870 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
13873 prior to terminal_input/terminal_output separation. It's been over 1.5
13874 years and those versions weren't widely deployed.
13875
13876 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
13877
13878 * disk/raid.c (insert_array): Don't count named arrays when looking
13879 for unused array numbers.
13880 Reported and tested by: Michael Guntsche.
13881
13882 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13883
13884 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
13885 implementation of this so that grub-emu links again, with a note
13886 that this should support hotplugging in the future.
13887
13888 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13889
13890 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
13891
13892 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13893
13894 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
13895 handle on failure.
13896 (grub_loopback_close): Remove empty function.
13897 (grub_loopback_dev): Remove close method.
13898
13899 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13900
13901 Disable EFI cursor when the EFI console becomes inactive.
13902
13903 * term/efi/console.c (grub_efi_console_init): New function.
13904 (grub_efi_console_fini): New function.
13905 (grub_console_term_output): Register init and fini methods.
13906
13907 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13908
13909 * tests/util/grub-shell-tester.in: Remove bashism and declare as
13910 sh script.
13911
13912 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13913
13914 * disk/loopback.c (grub_loopback): Replace filename with file.
13915 (delete_loopback): Handle new semantics.
13916 (grub_cmd_loopback): Likewise.
13917 (grub_loopback_iterate): Likewise.
13918 (grub_loopback_close): Likewise.
13919
13920 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13921
13922 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
13923 with -p "".
13924 Reported by: Tito Keitel.
13925
13926 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13927
13928 * docs/grub.texi (Naming convention): Document new naming convention.
13929
13930 2010-07-20 Vadim Solomin <vadic052@gmail.com>
13931 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13932
13933 Generate device.map in something closer to the old ordering.
13934
13935 * util/deviceiter.c (struct device): New declaration.
13936 (compare_file_names): Rename to ...
13937 (compare_devices): ... this. Sort by kernel name in preference to
13938 the stable by-id name, but keep the latter as a fallback comparison.
13939 Update header comment.
13940 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
13941 of `struct device' rather than of plain file names.
13942
13943 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
13944
13945 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
13946 on i386.
13947
13948 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 * commands/acpi.c (setup_common_tables): Use sizeof instead of
13951 hardcoding size.
13952 (setv1table): Likewise.
13953
13954 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13955
13956 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
13957 removing the homehost if present.
13958 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
13959 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
13960 removing the homehost if present.
13961 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
13962 if possible.
13963 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
13964
13965 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
13966 parameter. Set its pointer target to 0.
13967 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
13968 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
13969 `data_offset' value from the superblock for 1.x metadata.
13970 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
13971 data on the device.
13972 (insert_array): Record the start sector of data on the device.
13973 (grub_raid_register): Pass start_sector parameters to
13974 grub_raid_list->detect and insert_array.
13975 * include/grub/raid.h (struct grub_raid_array): Add start_sector
13976 member.
13977 (struct grub_raid): Add start_sector parameter to `detect'.
13978
13979 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
13980 __attribute__ ((packed)), leaving a comment.
13981 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
13982 (grub_mdraid_detect_09): ... here and ...
13983 (grub_mdraid_detect_1x): ... here.
13984
13985 2010-07-20 Peter Henn <peter.henn@web.de>
13986
13987 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
13988 chunk size and disk size, which are already given as sector counts
13989 as distinct from the 0.90 units. Fetch the correct device number
13990 from the role table instead of using the table index.
13991
13992 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
13993
13994 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
13995 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
13996 (WriteMostly1): New macro.
13997 Set array->name to NULL for metadata format 0.90. Add support for
13998 metadata 1.x. Fix some comments.
13999 * disk/raid.c (): Add support for name based RAID arrays. Fix a
14000 few comments.
14001 * util/getroot.c (grub_util_get_grub_dev): Add support for
14002 /dev/md/name style devices.
14003
14004 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14005
14006 * .bzrignore: Ignore 20_linux_xen.
14007
14008 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
14009
14010 * util/import_unicode.py: Remove unnecessary imports.
14011
14012 2010-07-17 Aleš Nesrsta <starous@volny.cz>
14013
14014 Hotplugging and USB hub support.
14015
14016 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
14017 (grub_ohci): Likewise.
14018 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
14019 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
14020 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
14021 (GRUB_OHCI_CTRL_EDS): Likewise.
14022 (GRUB_OHCI_BULK_EDS): Likewise.
14023 (GRUB_OHCI_TDS): Likewise.
14024 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
14025 (grub_ohci_ed_phys2virt): New function.
14026 (grub_ohci_virt_to_phys): Likewise.
14027 (grub_ohci_td_phys2virt): Likewise.
14028 (grub_ohci_td_virt2phys): Likewise.
14029 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
14030 attachment.
14031 (grub_ohci_find_ed): New function.
14032 (grub_ohci_alloc_td): Likewise.
14033 (grub_ohci_free_td): Likewise.
14034 (grub_ohci_free_tds): Likewise.
14035 (grub_ohci_transfer): Use previously allocated memory.
14036 (grub_ohci_portstatus): Reset status changed bit.
14037 (grub_ohci_detect_dev): Supply status changed.
14038 (grub_ohci_fini_hw): Free memory.
14039 (grub_ohci_restore_hw): Reallocate memory.
14040 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
14041 Reset status change.
14042 (grub_uhci_detect_dev): Supply status_change.
14043 * bus/usb/usb.c (attach_hooks): New var.
14044 (grub_usb_device_attach): New function.
14045 (grub_usb_register_attach_hook_class): Likewise.
14046 (grub_usb_unregister_attach_hook_class): Likewise.
14047 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
14048 (grub_usb_add_hub): Reset connection changed bit.
14049 (attach_root_port): New function.
14050 (grub_usb_root_hub): Likewise.
14051 (poll_nonroot_hub): Likewise.
14052 (grub_usb_poll_devices): Likewise.
14053 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
14054 * disk/usbms.c (grub_usbms_open): Use device hooks.
14055 (grub_usbms_iterate) :Poll devices.
14056 (grub_usbms_finddevs): Split into ...
14057 (grub_usbms_attach): ... this ...
14058 (grub_usbms_attach): ... and this.
14059 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
14060 in detect_dev.
14061 (grub_usb_interface): New fields attached and detach_hook.
14062 (grub_usb_attach_hook_class): New type.
14063 (grub_usb_attach_desc): New struct.
14064 (grub_usb_register_attach_hook_class): New function.
14065 (grub_usb_unregister_attach_hook_class): Likewise.
14066 (grub_usb_poll_devices): Likewise.
14067 (grub_usb_device_attach): Likewise.
14068 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
14069 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
14070
14071 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14072
14073 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
14074 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
14075 delta determination style. Works with most NetBSD partitions too.
14076
14077 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14078
14079 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
14080 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
14081
14082 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14083
14084 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
14085
14086 2010-07-14 Anton Blanchard <anton@samba.org>
14087
14088 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
14089 ET_DYN files.
14090
14091 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14092
14093 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
14094
14095 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14096
14097 * kern/partition.c (grub_partition_check_containment): New function to
14098 check that a partition is physically contained in a parent. Since
14099 offsets are relative (and non-negative), this reduces to checking that
14100 the partition ends before its parent.
14101 (grub_partition_map_probe): Discard out-of-range sub-partitions.
14102 (grub_partition_iterate): Likewise.
14103 * include/grub/partition.h (grub_partition_map): Slightly more detailed
14104 comments.
14105 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
14106 partitions that start before their parent, and add debug printfs.
14107
14108 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14109
14110 * Makefile.in (.SUFFIX): Spell correctly, as ...
14111 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
14112 bare module name without `.mod', e.g. `test') tried to invoke a
14113 Modula-2 compiler.
14114
14115 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14116
14117 * README: Point to the Info manual.
14118
14119 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
14120
14121 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
14122 2nd superblock position from partition size.
14123
14124 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
14125
14126 * Makefile.in (MAINTAINER_CLEANFILES): Remove
14127 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
14128 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
14129 outputs.
14130
14131 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14132
14133 Restructure SCSI .id handling.
14134 Reported and tested by: Aleš Nesrsta.
14135
14136 * disk/ata.c (grub_atapi_close): Removed. All users updated.
14137 (grub_atapi_dev): Changed .name to "ata". New field .id.
14138 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
14139 (grub_usbms_dev): New field .id.
14140 * disk/scsi.c (grub_scsi_iterate): Generate name.
14141 (grub_scsi_open): Parse name.
14142 * include/grub/scsi.h (grub_make_scsi_id): New function.
14143 (grub_scsi_dev): Change iterate and open to number instead of naming
14144 busses. All users updated.
14145 (grub_scsi): Remove name. Add .bus.
14146
14147 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14148
14149 * commands/help.c (grub_cmd_help): Fix a typo.
14150
14151 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
14154 Reported and tested by: Colin Watson.
14155
14156 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
14159 in this context.
14160
14161 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14162
14163 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
14164
14165 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
14166
14167 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
14168 indentation.
14169
14170 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14171
14172 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
14173 and disk/raid6_recover.c.
14174 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14175 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
14176
14177 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14178
14179 * term/gfxterm.c (repaint_schedulded): Rename to ...
14180 (repaint_scheduled): ... this. Update all callers.
14181 (repaint_was_schedulded): Rename to ...
14182 (repaint_was_scheduled): ... this. Update all callers.
14183
14184 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14185
14186 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
14187 which we expect to be handled by upper layers.
14188
14189 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
14190
14191 * bus/usb/usbhub.c: #include time.h header.
14192
14193 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14194
14195 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
14196 entry_name also for entries without stat blocks (e.g. ".."); fixes
14197 corruption of the first entry in a directory.
14198
14199 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14200
14201 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
14202 after setting gfxterm as the active terminal. GRUB_BACKGROUND
14203 doesn't work otherwise.
14204
14205 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14206
14207 * docs/grub.texi (Features): Update list of supported file systems.
14208 (GNU/Linux): Update for GRUB 2.
14209 (Serial terminal): Remove mention of --disable-serial, which was a
14210 GRUB Legacy configure option. Update instructions to use
14211 `terminal_input' and `terminal_output' rather than `terminal'.
14212 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
14213 configuration' and `Installing GRUB using grub-install'.
14214 (Menu entry editor): Update for GRUB 2.
14215 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
14216 Document new -a, -u, and -v options.
14217 (initrd): New section.
14218 (initrd16): New section.
14219 (linux): New section.
14220 (linux16): New section.
14221 (search): The `var' argument to `--set' is optional.
14222 (GRUB only offers a rescue shell): Go into a little more detail on
14223 drive ordering.
14224
14225 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14226
14227 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
14228
14229 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14230
14231 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
14232 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
14233
14234 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14235
14236 * util/i386/pc/grub-setup.c (setup): Rename prefix to
14237 install_prefix, in line with install_dos_part and install_bsd_part.
14238 Add new prefix variable, which is copied to install_prefix after
14239 comparing core.img in memory with the one read from disk in the
14240 no-embedding case, and use that rather than overwriting
14241 install_prefix immediately when installing to a partition.
14242 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
14243 Bicakci.
14244
14245 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14246
14247 * configure.ac: Avoid == in test command, it's not portable.
14248 * util/grub.d/30_os-prober.in: Likewise.
14249
14250 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
14251
14252 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
14253
14254 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14255
14256 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
14257 multiple (top-level) partmaps.
14258
14259 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14260
14261 * util/i386/efi/grub-install.in: Don't use empty grub_device.
14262 Reported by: Tino Keitel.
14263
14264 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14265
14266 Bidi and diacritics support.
14267
14268 * Makefile.in (widthspec.bin): New target.
14269 (widthspec.h): Likewise.
14270 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
14271 * autogen.sh: Generate unidata.c.
14272 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
14273 * commands/ls.c (grub_ls_list_devices): Likewise.
14274 (grub_ls_list_files): Likewise.
14275 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
14276 (grub_mini_cmd_lsmod): Likewise.
14277 * commands/read.c: Likewise.
14278 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
14279 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
14280 * lib/arg.c (grub_arg_show_help): Likewise.
14281 * lib/crypto.c (grub_password_get): Likewise.
14282 * normal/auth.c (grub_username_get): Likewise.
14283 * normal/misc.c (grub_normal_print_device_info): Likewise.
14284 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
14285 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
14286 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
14287 (normal/charset.c_DEPENDENCIES): New variable.
14288 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
14289 (pkglib_MODULES): Remove charset.mod.
14290 (charset_mod_SOURCES): Removed.
14291 (charset_mod_CFLAGS): Likewise.
14292 (charset_mod_LDFLAGS): Likewise.
14293 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
14294 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
14295 and term/tparm.c.
14296 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14297 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14298 (kernel_img_HEADERS): Add terminfo.h.
14299 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
14300 Fill ->font. Reverse ascii bitmaps.
14301 (grub_font_get_xheight): New function.
14302 * font/font.c (grub_font_get_string_width): Moved from here ...
14303 * gfxmenu/font.c (grub_font_get_string_width): ... here.
14304 * font/font.c (grub_font_draw_string): Moved from here ...
14305 * gfxmenu/font.c (grub_font_draw_string): ... here.
14306 * font/font.c (grub_font_dup_glyph): New function.
14307 (grub_font_blit_glyph): Likewise.
14308 (grub_font_blit_glyph_mirror): Likewise.
14309 (blit_comb): Likewise.
14310 (grub_font_construct_dry_run): Likewise.
14311 (grub_font_get_constructed_device_width): Likewise.
14312 (grub_font_construct_glyph): Likewise.
14313 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
14314 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
14315 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
14316 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
14317 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
14318 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
14319 (grub_font_get_xheight): New proto.
14320 (grub_font_get_constructed_device_width): Likewise.
14321 (grub_font_construct_glyph): Likewise.
14322 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
14323 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
14324 * include/grub/font.h (grub_font_draw_string): Moved from here ...
14325 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
14326 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
14327 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
14328 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
14329 (grub_console_getcharwidth): Likewise.
14330 * include/grub/misc.h (grub_xputs): New proto.
14331 (grub_puts): Inlined.
14332 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
14333 (grub_normal_get_line_counter): Removed.
14334 (grub_install_newline_hook): Likewise.
14335 (grub_normal_get_char_counter): New proto.
14336 (grub_normal_reset_more): Likewise.
14337 (grub_xputs_normal): Likewise.
14338 * include/grub/powerpc/ieee1275/console.h: Removed.
14339 * include/grub/sparc64/ieee1275/console.h: Likewise.
14340 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
14341 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
14342 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
14343 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
14344 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
14345 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
14346 (grub_term_input): Pass reference to self. All users updated.
14347 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
14348 Pass reference to self. New fields normal_color, highlight_color and
14349 data. All users updated.
14350 (grub_putchar): Removed.
14351 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
14352 (grub_unicode_estimate_width): New function.
14353 (grub_term_getcharwidth): Add defaults.
14354 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
14355 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
14356 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
14357 (grub_cls): Remove EXPORT_FUNC.
14358 (grub_setcolorstate): Inline.
14359 (grub_newline_hook): Removed.
14360 * include/grub/terminfo.h: Rewritten. All users updated.
14361 * include/grub/unicode.h: New file.
14362 * include/grub/video.h (grub_video_signed_rect): New type.
14363 * kern/emu/console.c (grub_console_highlight_color): Removed.
14364 (grub_console_normal_color): Likewise.
14365 (grub_console_standard_color): Made static.
14366 (grub_ncurses_putchar): Remove mapping.
14367 (grub_ncurses_getcharwidth): Removed.
14368 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14369 (grub_ncurses_setcolor): Removed.
14370 (grub_ncurses_getcolor): Likewise.
14371 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
14372 (grub_console_putchar): ... this.
14373 (grub_console_putchar): Handle argument difference.
14374 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
14375 console_init_early and console_init_lately.
14376 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
14377 * kern/misc.c (grub_puts): Removed.
14378 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
14379 (grub_vsnprintf_real): Remove str = NULL support.
14380 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
14381 * normal/charset.c (grub_utf8_to_ucs4): ... here.
14382 * kern/term.c (grub_putcode): Renamed to ...
14383 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
14384 (grub_putchar): Removed.
14385 (grub_xputs_dumb): New function.
14386 (grub_xputs): New variable.
14387 * lib/charset.c: Move from here ...
14388 * normal/charset.c: ... to here.
14389 (grub_ucs4_to_utf8): New function.
14390 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
14391 (join_types): New variable.
14392 (unpack_join): New function.
14393 (bidi_types): New variable.
14394 (unpack_bidi): New function.
14395 (get_bidi_type): Likewise.
14396 (get_join_type): Likewise.
14397 (is_mirrored): Likewise.
14398 (grub_unicode_get_comb_type): Likewise.
14399 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
14400 (is_type_after): Likewise.
14401 (grub_unicode_aglomerate_comb): Likewise.
14402 (bidi_line_wrap): Likewise.
14403 (grub_bidi_line_logical_to_visual): Likewise.
14404 (grub_bidi_logical_to_visual): Likewise.
14405 (grub_unicode_mirror_code): Likewise.
14406 (grub_unicode_shape_code): Likewise.
14407 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
14408 Don't use grub_putchar.
14409 * normal/main.c (grub_normal_init_page): Use grub_putcode.
14410 (grub_normal_reader_init): Likewise.
14411 (grub_xputs_saved): New variable.
14412 (GRUB_MOD_INIT): Set grub_xputs.
14413 (GRUB_MOD_FINI): Restore grub_xputs.
14414 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
14415 (menu_init): Avoid printing gfxmenu error.
14416 (show_menu): Use grub_normal_get_char_counter.
14417 * normal/menu_entry.c (update_screen): Fix out-of-array.
14418 (complete): Avoid NULL dereferencing.
14419 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
14420 * normal/menu_text.c (print_spaces): Removed.
14421 (grub_print_ucs4): Likewise.
14422 (grub_print_message_indented): Use grub_print_ucs4.
14423 (print_message): Use grub_putcode.
14424 (print_entry): Hanlde diacritics.
14425 * normal/term.c (term_state): New type.
14426 (grub_more_lines): Removed.
14427 (term_states): New variable.
14428 (grub_normal_line_counter): Renamed to ..
14429 (grub_normal_char_counter): ...this. All users updated.
14430 (grub_normal_get_line_counter): Renamed to ...
14431 (grub_normal_get_char_counter): ... this.
14432 (grub_normal_reset_more): New function.
14433 (process_newline): Removed.
14434 (print_more): New function.
14435 (grub_install_newline_hook): Removed.
14436 (map_code): New function.
14437 (grub_puts_terminal): Use grub_print_ucs4.
14438 (putglyph): New function.
14439 (putcode_real): Likewise.
14440 (grub_putcode): Use putcode_real.
14441 (get_maxwidth): New function.
14442 (get_startwidth): Likewise.
14443 (print_ucs4_terminal): Likewise.
14444 (find_term_state): Likewise.
14445 (put_glyphs_terminal): Likewise.
14446 (print_backlog): Likewise.
14447 (print_ucs4_real): Likewise.
14448 (grub_print_ucs4): Likewise.
14449 (grub_xputs_normal): Likewise.
14450 * term/efi/console.c (grub_console_putchar): Output diacritics.
14451 (grub_console_getcharwidth): Removed.
14452 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14453 * term/gfxterm.c (clear_char): Free chars.
14454 (scroll_up): Avoid leaking memory.
14455 (grub_gfxterm_putchar): Support diacritics.
14456 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14457 * term/i386/pc/console.c (grub_console_term_output): Declare as
14458 GRUB_TERM_CODE_TYPE_VGA.
14459 * term/i386/pc/vga.c (grub_vga_term): Declare as
14460 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
14461 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
14462 GRUB_TERM_CODE_TYPE_VGA.
14463 * term/i386/vga_common.c (map_char): Removed.
14464 (grub_console_putchar): Likewise.
14465 (grub_console_getcharwidth): Likewise.
14466 * term/ieee1275/ofconsole.c: Simplify using terminfo.
14467 (colors): Reordered to match terminfo.
14468 (grub_ofconsole_normal_color): Removed.
14469 (grub_ofconsole_writeesc): Likewise.
14470 (grub_ofconsole_highlight_color): Likewise.
14471 (grub_ofconsole_getcharwidth): Likewise.
14472 (grub_ofconsole_setcolorstate): Likewise.
14473 (grub_ofconsole_setcolor): Likewise.
14474 (grub_ofconsole_getcolor): Likewise.
14475 (grub_ofconsole_readkey): Renamed to ...
14476 (readkey): ... this. Remove escape sequence handling. Return -1 on no
14477 key.
14478 (grub_ofconsole_checkkey): Removed.
14479 (grub_ofconsole_getkey): Likewise.
14480 (grub_ofconsole_getxy): Likewise.
14481 (grub_ofconsole_gotoxy): Likewise.
14482 (grub_ofconsole_cls): Likewise.
14483 (grub_ofconsole_refresh): Likewise.
14484 (grub_ofconsole_terminfo_input): New struct.
14485 (grub_ofconsole_terminfo_output): Likewise.
14486 (grub_ofconsole_term_input): Use terminfo.
14487 (grub_ofconsole_term_output): Likewise.
14488 (grub_console_init): Split into ...
14489 (grub_console_init_early): ...this and ...
14490 (grub_console_init_lately): ...this. Use terminfo.
14491 (grub_ofconsole_putchar): Renamed to ...
14492 (put): ... this. Remove mapping.
14493 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14494 * term/serial.c: Simplify using terminfo.
14495 (xpos): Removed.
14496 (ypos): Likewise.
14497 (keep_track): Likewise.
14498 (registered): Likewise.
14499 (input_buf): Likewise.
14500 (npending): Likewise.
14501 (serial_translate_key_sequence): Likewise.
14502 (fill_input_buf): Likewise.
14503 (grub_serial_checkkey): Likewise.
14504 (grub_serial_getkey): Likewise.
14505 (grub_serial_getxy): Likewise.
14506 (grub_serial_gotoxy): Likewise.
14507 (grub_serial_putchar): Likewise.
14508 (grub_serial_cls): Likewise.
14509 (grub_serial_setcolorstate): Likewise.
14510 (grub_serial_setcursor): Likewise.
14511 (serial_hw_init): Use serial_hw_fetch.
14512 (grub_serial_terminfo_input): New variable.
14513 (grub_serial_terminfo_output): Likewise.
14514 (grub_serial_term_input): Use terminfo.
14515 (grub_serial_term_output): Likewise.
14516 * term/terminfo.c (putstr): Use put.
14517 (grub_terminfo_all_free): New function
14518 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
14519 (grub_terminfo_output_register): New function.
14520 (grub_terminfo_output_unregister): Likewise.
14521 (grub_terminfo_getxy): Likewise.
14522 (grub_terminfo_readkey): Likewise.
14523 (grub_terminfo_checkkey): Likewise.
14524 (grub_terminfo_getkey): Likewise.
14525 (grub_terminfo_input_init): Likewise.
14526 (print_terminfo): Likewise.
14527 (grub_cmd_terminfo): Handle encoding.
14528 (grub_terminfo_gotoxy): Track position.
14529 (grub_terminfo_cls): Likewise.
14530 (grub_terminfo_putchar): Likewise.
14531 (grub_terminfo_setcolorstate): Handle colors
14532 (grub_terminfo_cursor_on): This ...
14533 (grub_terminfo_cursor_off): ... and this merged into ...
14534 (grub_terminfo_setcursor): ... this.
14535 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
14536 * unicode/ArabicShaping.txt: New file (imported from Unicode).
14537 * unicode/BidiMirroring.txt: Likewise.
14538 * unicode/UnicodeData.txt: Likewise.
14539 * unicode/COPYING: Likewise.
14540 * util/grub-editenv.c (grub_putchar): Removed.
14541 (grub_xputs_real): New function.
14542 (grub_xputs): New variable.
14543 * util/grub-fstest.c (grub_putchar): Removed.
14544 (grub_xputs_real): New function.
14545 (grub_xputs): New variable.
14546 * util/grub-mkdevicemap.c (grub_putchar): Removed.
14547 (grub_xputs_real): New function.
14548 (grub_xputs): New variable.
14549 * util/grub-probe.c (grub_putchar): Removed.
14550 (grub_xputs_real): New function.
14551 (grub_xputs): New variable.
14552 * util/grub-script-check.c (grub_putchar): Removed.
14553 (grub_xputs_real): New function.
14554 (grub_xputs): New variable.
14555 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
14556 (grub_xputs_real): New function.
14557 (grub_xputs): New variable.
14558 * util/import_unicode.py: New file.
14559 * util/grub-mkfont.c (ft_errmsgs): New array.
14560 (grub_glyph_info): Make bitmap a pointer.
14561 (file_formats): New type WIDTH_SPEC.
14562 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
14563 (options): Add width-spec.
14564 (help): Likewise.
14565 (add_char): Renamed to ...
14566 (add_glyph): ... this.
14567 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
14568 (glyph_replace): New type.
14569 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
14570 (add_char): New function.
14571 (add_subst): Likewise.
14572 (process_cursive): Likewise.
14573 (add_font): Handle GSUB.
14574 (write_font_width_spec): New function.
14575 (main): Sort glyphs.
14576 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
14577 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
14578 * kern/term.c (grub_cls): Moved from here...
14579 * normal/term.c (grub_cls): ... here.
14580
14581 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14582
14583 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
14584 suitable for using within the format argument of printf when
14585 converting grub_size_t.
14586 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
14587 "x" to convert grub_size_t arguments.
14588
14589 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14590
14591 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
14592 too long captions.
14593 (list_get_minimal_size): Take selection box into account.
14594
14595 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14596
14597 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
14598 NULL font.
14599
14600 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14601
14602 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
14603 devices when iterating over /dev/disk/by-id; they will be handled
14604 later if appropriate, which they aren't always (e.g. LVM).
14605
14606 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14607
14608 * include/grub/misc.h (grub_reboot): Declare as noreturn.
14609 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
14610 fails.
14611 (grub_halt): Likewise.
14612 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
14613 reset-all fails.
14614 (grub_halt): Don't return, even if all of shut-down, power-off, and
14615 poweroff fail.
14616
14617 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14618
14619 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
14620 arguments, not three.
14621
14622 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14623
14624 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
14625 * util/grub.d/10_linux.in: Use it to check for LVM, so that
14626 LVM-on-RAID is handled correctly.
14627
14628 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14629
14630 * docs/grub.texi (Changes from GRUB Legacy): New section.
14631 (Future): Fix typo.
14632
14633 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14634
14635 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
14636 grub.d/README accidentally ends up executable for one reason or
14637 another. Ignore it.
14638
14639 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14640
14641 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
14642 (gpt_partition_map_iterate): Support non-512B sectors.
14643
14644 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14645
14646 * kern/efi/init.c (grub_efi_init): Disable watchdog.
14647 Tested by: Seth Goldberg.
14648
14649 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14650
14651 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
14652 Properly align mbi.
14653 Reported by: Seth Goldberg.
14654
14655 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 * util/grub-mkrescue.in: Avoid module duplication.
14658
14659 2010-07-01 Sean Finney <seanius@seanius.net>
14660
14661 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
14662
14663 2010-07-01 Sean Finney <seanius@seanius.net>
14664
14665 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
14666
14667 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14668
14669 * disk/lvm.c (grub_lvm_checkvalue): New function.
14670 (grub_lvm_check_flag): Likewise.
14671
14672 2010-07-01 Robert Millan <rmh@gnu.org>
14673
14674 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
14675 Support 'p' as partition separator on kernel of FreeBSD (used
14676 with GPT labels).
14677 (grub_util_biosdisk_get_grub_dev): Likewise.
14678
14679 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14680
14681 Yeeloong firmware port.
14682
14683 * boot/mips/yeeloong/fwstart.S: New file.
14684 * bus/cs5536.c (gpiodump): New const.
14685 (set_io_space): New function.
14686 (set_iod): Likewise.
14687 (set_p2d): Likewise.
14688 (grub_cs5536_init_geode): Likewise.
14689 * commands/mips/yeeloong/lsspd.c: New file.
14690 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
14691 (serial_mod_SOURCES): New variable.
14692 (serial_mod_CFLAGS): Likewise.
14693 (serial_mod_LDFLAGS): Likewise.
14694 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
14695 term/terminfo.c and term/tparm.c.
14696 (pkglib_IMAGES): Add fwstart.img.
14697 (fwstart_img_SOURCES): New variable.
14698 (fwstart_img_CFLAGS): Likewise.
14699 (fwstart_img_ASFLAGS): Likewise.
14700 (fwstart_img_LDFLAGS): Likewise.
14701 (fwstart_img_FORMAT): Likewise.
14702 (pkglib_MODULES): Add lsspd.mod.
14703 (lsspd_mod_SOURCES): New variable.
14704 (lsspd_mod_CFLAGS): Likewise.
14705 (lsspd_mod_LDFLAGS): Likewise.
14706 (pkglib_MODULES): Add halt.mod.
14707 (halt_mod_SOURCES): New variable.
14708 (halt_mod_CFLAGS): Likewise.
14709 (halt_mod_LDFLAGS): Likewise.
14710 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
14711 (serial_mod_SOURCES): Removed.
14712 (serial_mod_CFLAGS): Likewise.
14713 (serial_mod_LDFLAGS): Likewise.
14714 * disk/ata.c (check_device): New function.
14715 (grub_ata_device_initialize): Use check_device.
14716 (grub_ata_iterate): Recheck devices.
14717 (grub_ata_open): Likewise.
14718 (grub_atapi_iterate): Likewise.
14719 (grub_atapi_open): Likewise.
14720 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
14721 (GRUB_ATA_CH1_PORT1): Likewise.
14722 (GRUB_ATA_CH0_PORT2): Likewise.
14723 (GRUB_ATA_CH1_PORT2): Likewise.
14724 * include/grub/mips/loongson.h: New file.
14725 * include/grub/mips/yeeloong/ec.h: Likewise.
14726 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
14727 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
14728 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
14729 * include/grub/misc.h (grub_halt): Declare as noreturn.
14730 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
14731 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
14732 (UART_ENABLE_FIFO_TRIGGER1): New definition.
14733 (UART_ENABLE_DTRRTS): Likewise.
14734 (UART_ENABLE_MODEM): Removed.
14735 (UART_ENABLE_OUT2): New const.
14736 * include/grub/term.h (grub_term_register_input_active): New function.
14737 (grub_term_register_output_active): Likewise.
14738 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
14739 argument.
14740 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
14741 (init_pci): New function.
14742 (grub_machine_init): Execute platform init when firmware. Init serial.
14743 (grub_halt): Implement.
14744 (grub_exit): Likewise.
14745 (grub_reboot): Likewise.
14746 * term/serial.c (serial_hw_init): Update macros.
14747 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
14748 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
14749 (image_targets): New target mipsel-yeeloong-flash.
14750 (generate_image): Support IMAGE_YEELOONG_FLASH.
14751 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
14752 (grub_video_sm712_setup): Init card.
14753 (grub_video_sm712_set_palette): Removed.
14754 * video/sm712_init.c: New file.
14755
14756 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
14757
14758 * Makefile.in (install-local): Temporarily prepend $(builddir) to
14759 PATH when running help2man and then run it on the unadorned
14760 executable names, rather than passing $(builddir)/* paths to
14761 help2man. This avoids the build directory ending up in generated
14762 manual pages.
14763
14764 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14765
14766 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
14767 to avoid accidents when debugging with 'sh -x'.
14768 * util/grub-mkrescue.in: Likewise.
14769 * util/grub.d/00_header.in: Likewise.
14770 * util/grub.d/10_hurd.in: Likewise.
14771 * util/grub.d/10_kfreebsd.in: Likewise.
14772 * util/grub.d/10_linux.in: Likewise.
14773 * util/grub.d/10_netbsd.in: Likewise.
14774 * util/grub.d/10_windows.in: Likewise.
14775 * util/grub.d/20_linux_xen.in: Likewise.
14776 * util/grub.d/30_os-prober.in: Likewise.
14777 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14778
14779 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14780
14781 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
14782 last character in the buffer.
14783 Reported by: Vladimir Serbinenko.
14784
14785 2010-06-29 Robert Millan <rmh@gnu.org>
14786
14787 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
14788 (Command-line and menu entry commands): Document `badram' command.
14789
14790 2010-06-28 Robert Millan <rmh@gnu.org>
14791
14792 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
14793 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
14794 command using ${GRUB_BADRAM} as parameter.
14795
14796 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14797
14798 * docs/grub.texi (Device map): New section.
14799 (Themes): New section (stub).
14800 * Makefile.in (docs/grub.info): The info documentation now builds
14801 without errors. Make sure it stays that way.
14802
14803 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14804
14805 Use normal parser for menu entries.
14806 Reported by: Thomas Frauendorfer
14807
14808 * include/grub/parser.h (grub_parser_execute): Don't export.
14809 * normal/menu.c (grub_menu_execute_entry_real): New function.
14810 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
14811
14812 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14813
14814 * docs/grub.texi (Embedded configuration): New section (replacing
14815 old "Preset Menu" stub).
14816 (Images): New section.
14817 (configfile): Note that any menu entries defined in `file' are shown
14818 immediately.
14819
14820 2010-06-28 Josh Triplett <josh@joshtriplett.org>
14821
14822 * mmap/i386/pc/mmap_helper.S: Set CF on return.
14823
14824 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14825
14826 * util/grub-install.in: Add --debug-image= option.
14827
14828 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14829
14830 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
14831 possible on Linux.
14832
14833 * util/deviceiter.c (check_device): Rename to ...
14834 (check_device_readable_unique): ... this. Update all callers.
14835 Maintain and check a list of which devices (by canonicalized name)
14836 have already been seen.
14837 (clear_seen_devices): New function.
14838 (compare_file_names) [__linux__]: New function.
14839 (grub_util_iterate_devices): Clear the list of seen devices on exit
14840 and (just in case) on entry.
14841 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
14842 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
14843 seen-devices list, superseded by general code in check_device.
14844
14845 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14846
14847 * commands/cat.c (options): New variable.
14848 (grub_cmd_cat): Parse options. If the --dos option is given, print
14849 DOS-style "\r\n" line endings as simple newlines (Debian bug
14850 #586358).
14851 (GRUB_MOD_INIT): Use extcmd.
14852 (GRUB_MOD_FINI): Likewise.
14853 * docs/grub.texi (cat): Document --dos.
14854
14855 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14856
14857 XEN with Linux grub-mkconfig support.
14858
14859 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
14860 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
14861 GRUB_CMDLINE_XEN_DEFAULT.
14862 * util/grub.d/20_linux_xen.in: New file.
14863
14864 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 Initialise VGA video on qemu ourselves.
14867
14868 * boot/i386/qemu/boot.S: Don't call 0xc000.
14869 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
14870 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
14871 (kernel_img_HEADERS): Add pci.h.
14872 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
14873 * configure.ac: Force unifont on qemu and yeeloong.
14874 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
14875 (grub_vga_palette_write): Use correct register.
14876 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
14877 Call grub_qemu_init_cirrus.
14878 * kern/i386/qemu/init.c: New file.
14879 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
14880
14881 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
14882
14883 2010-06-26 Pavel Roskin <proski@gnu.org>
14884
14885 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
14886 13.
14887
14888 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14889
14890 * docs/grub.texi (Simple configuration): Explain that
14891 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
14892 set to `true' to disable their respective recovery entries, not
14893 merely set.
14894
14895 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14896
14897 Make the `source' command slightly faster.
14898
14899 * normal/main.c (grub_normal_execute): Don't re-read list files when
14900 nested.
14901
14902 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
14903
14904 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
14905 field position and mask size to red fields from mode_info, not
14906 green.
14907 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
14908 Remove redundant tag->common.framebuffer_type assignment.
14909 Reported by: Seth Goldberg.
14910
14911 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
14912
14913 Sync up other versions of the Linux loader with Robert Millan's
14914 change of 2010-01-09, "Make loader output a bit more user-friendly".
14915
14916 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
14917 grub_dprintf().
14918 (grub_cmd_linux): Likewise.
14919 (grub_cmd_initrd): Likewise.
14920 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
14921 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14922
14923 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
14924
14925 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
14926 larger than MEMORY_MAP_SIZE.
14927
14928 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
14929
14930 Fix parallel build.
14931
14932 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
14933 dependency.
14934 * script/parser.y: #include grub_script.tab.h header.
14935
14936 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14937
14938 Support >3GiB and <16MiB RAM in i386-qemu.
14939
14940 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
14941 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
14942 (grub_lower_mem): Removed.
14943 (grub_upper_mem): Likewise.
14944 (mem_size): Made static.
14945 (above_4g): New variable.
14946 (grub_machine_mmap_init): Detect small mem_size and above_4g.
14947 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
14948 support.
14949
14950 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14951
14952 Cirrus 5446 and Bochs video cards support.
14953
14954 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
14955 video_bochs.mod
14956 (video_cirrus_mod_SOURCES): New variable.
14957 (video_cirrus_mod_CFLAGS): Likewise.
14958 (video_cirrus_mod_LDFLAGS): Likewise.
14959 (video_bochs_mod_SOURCES): Likewise.
14960 (video_bochs_mod_CFLAGS): Likewise.
14961 (video_bochs_mod_LDFLAGS): Likewise.
14962 * include/grub/vga.h: New file.
14963 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
14964 (grub_video_fb_set_page_t): New type.
14965 (grub_video_fb_setup): New prototype.
14966 (grub_video_fb_swap_buffers): Likewise.
14967 (grub_video_fb_get_info_and_fini): Likewise.
14968 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
14969 (CRTC_DATA_PORT): Likewise.
14970 (CRTC_CURSOR): Likewise.
14971 (CRTC_CURSOR_ADDR_HIGH): Likewise.
14972 (CRTC_CURSOR_ADDR_LOW): Likewise.
14973 (CRTC_CURSOR_DISABLE): Likewise.
14974 (update_cursor): Use grub_vga_cr_write.
14975 (grub_vga_text_setcursor): Likewise.
14976 * video/bochs.c: New file.
14977 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
14978 (palette): Likewise.
14979 (palette_size): Likewise.
14980 (framebuffer): New variable.
14981 (grub_video_fb_init): Use 'framebuffer'.
14982 (grub_video_fb_fini): Likewise.
14983 (grub_video_fb_get_info): Likewise.
14984 (grub_video_fb_get_palette): Likewise.
14985 (grub_video_fb_set_palette): Likewise.
14986 (grub_video_fb_set_viewport): Likewise.
14987 (grub_video_fb_get_viewport): Likewise.
14988 (grub_video_fb_map_color): Likewise.
14989 (grub_video_fb_map_rgb): Likewise.
14990 (grub_video_fb_map_rgba): Likewise.
14991 (grub_video_fb_unmap_color): Likewise.
14992 (grub_video_fb_unmap_color_int): Likewise.
14993 (grub_video_fb_fill_rect): Likewise.
14994 (grub_video_fb_blit_bitmap): Likewise.
14995 (grub_video_fb_blit_render_target): Likewise.
14996 (grub_video_fb_scroll): Likewise.
14997 (grub_video_fb_create_render_target): Likewise.
14998 (grub_video_fb_doublebuf_blit_init): Likewise.
14999 (grub_video_fb_set_active_render_target): Handle doublebuffering.
15000 (doublebuf_pageflipping_update_screen): New function.
15001 (doublebuf_pageflipping_init): Likewise.
15002 (grub_video_fb_setup): Likewise.
15003 (grub_video_fb_swap_buffers): Likewise.
15004 (grub_video_fb_get_info_and_fini): Likewise.
15005 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
15006 All users updated.
15007 (doublebuf_pageflipping_commit): Restructured into ...
15008 (doublebuf_pageflipping_set_page): ... this.
15009 (doublebuf_pageflipping_update_screen): Removed.
15010 (doublebuf_pageflipping_init): Likewise.
15011 (double_buffering_init): Likewise.
15012 (grub_video_vbe_setup): Use grub_video_fb_setup.
15013 (grub_video_vbe_swap_buffers): Removed.
15014 (grub_video_vbe_set_active_render_target): Likewise.
15015 (grub_video_vbe_get_active_render_target): Likewise.
15016 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
15017 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
15018 grub_video_fb_set_active_render_target and
15019 grub_video_fb_get_active_render_target.
15020 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
15021 (SEQUENCER_DATA_PORT): Likewise.
15022 (MAP_MASK_REGISTER): Likewise.
15023 (CRTC_ADDR_PORT): Likewise.
15024 (CRTC_DATA_PORT): Likewise.
15025 (START_ADDR_HIGH_REGISTER): Likewise.
15026 (START_ADDR_LOW_REGISTER): Likewise.
15027 (GRAPHICS_ADDR_PORT): Likewise.
15028 (GRAPHICS_DATA_PORT): Likewise.
15029 (READ_MAP_REGISTER): Likewise.
15030 (INPUT_STATUS1_REGISTER): Likewise.
15031 (INPUT_STATUS1_VERTR_BIT): Likewise.
15032 (get_map_mask): Use grub_vga_sr_read.
15033 (set_map_mask): Use grub_vga_sr_write.
15034 (set_read_map): Use grub_vga_gr_write.
15035 (set_start_address): Use grub_vga_cr_write.
15036 * video/sm712.c (framebuffer): Remove leftover fields.
15037
15038 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
15039
15040 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
15041 setting GRUB_VIDEO_BACKEND. Make it available as a user override
15042 instead. Replace the gfxterm backend check with a check that
15043 ${GRUB_PREFIX}/video.lst is non-empty.
15044 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
15045 again.
15046 (load_video): New generated function. Call it before loading
15047 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
15048 * util/grub.d/10_linux.in (linux_entry): Call load_video.
15049 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
15050 * docs/grub.texi (Simple configuration): Document
15051 GRUB_VIDEO_BACKEND.
15052
15053 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15054
15055 Use video functions in linux and xnu loaders.
15056
15057 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
15058 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
15059 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
15060 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
15061 loader/i386/pc/linux.c.
15062 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
15063 (find_line_len): Removed.
15064 (find_framebuf): Likewise.
15065 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
15066 * loader/i386/efi/xnu.c: Removed.
15067 * loader/i386/pc/xnu.c: Moved from here...
15068 * loader/i386/xnu.c: ...here.
15069
15070 Enable priorities in video drivers.
15071
15072 * include/grub/video.h (grub_video_adapter_prio_t): New type.
15073 (grub_video_adapter): New field prio.
15074 (grub_video_register): Respect prio when inserting.
15075 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
15076 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
15077 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
15078 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
15079 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
15080 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
15081 * video/sm712.c (grub_video_sm712_adapter): Likewise.
15082
15083 Fix SDL driver ID.
15084
15085 * include/grub/video.h (grub_video_driver_id_t): New value
15086 GRUB_VIDEO_DRIVER_SDL.
15087 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
15088
15089 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15090
15091 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
15092 argument to printf.
15093 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15094
15095 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15096
15097 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
15098 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15099
15100 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15101
15102 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
15103 directly, and recommend grub-install instead.
15104 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15105
15106 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15107
15108 Fix i386-pc prefix handling with nested partitions (Debian bug
15109 #585068). Note that the case where the core image is booted using
15110 multiboot and relocated from its original location still requires
15111 more work.
15112
15113 * kern/i386/pc/init.c (make_install_device): If the prefix starts
15114 with "(,", fill the boot drive in between those two characters, but
15115 expect that a full partition specification including partition map
15116 names will follow.
15117 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
15118 specified, write a prefix without the drive name but including a
15119 full partition specification.
15120
15121 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
15122
15123 * util/grub-mkconfig.in: Ignore non-option arguments, for
15124 compatibility with older versions (before 2010-06-12) which did the
15125 same. In particular, this makes it easier to ship an update-grub
15126 wrapper which is compatible with that used with GRUB Legacy (Debian
15127 bug #586056).
15128
15129 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15130
15131 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
15132 for manual page generation.
15133
15134 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15135
15136 * po/POTFILES: Remove leftover commands/handler.c.
15137
15138 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15139
15140 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
15141 left this script non-functional.
15142
15143 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15144
15145 * docs/man/grub-emu.h2m: New file.
15146
15147 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
15148
15149 * docs/grub.texi (Commands): Document reduced command set in rescue
15150 mode.
15151 (cpuid): New section.
15152
15153 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
15154
15155 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
15156 new partition naming style.
15157 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
15158
15159 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
15160
15161 Add "-o grub.iso" like cmdline options support.
15162
15163 * util/grub-install.in: Improve cmdline option parsing.
15164 * util/grub-mkconfig.in: Likewise.
15165 * util/grub-mkrescue.in: Likewise.
15166 * util/grub-reboot.in: Likewise.
15167 * util/grub-set-default.in: Likewise.
15168 * util/i386/efi/grub-install.in: Likewise.
15169 * util/ieee1275/grub-install.in: Likewise.
15170 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15171
15172 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15173
15174 * .bzrignore: Ignore 41_custom.
15175
15176 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15177
15178 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
15179
15180 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15181
15182 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
15183 prototype declarations.
15184
15185 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
15186 generating fs, partmap, and video lists.
15187 * include/grub/fs.h (grub_fs_register): Omit prototype if
15188 GRUB_LST_GENERATOR is defined.
15189 * include/grub/partition.h (grub_partition_map_register): Likewise.
15190 * include/grub/video.h (grub_video_register): Likewise.
15191
15192 2010-06-12 Javier Martín <lordhabbit@gmail.com>
15193
15194 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
15195
15196 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15197
15198 * util/grub-mkrescue.in: Support --xorriso argument.
15199
15200 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15201
15202 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
15203 Suggested by: Thomas Schmitt.
15204
15205 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15206
15207 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
15208 Suggested by: Thomas Schmitt.
15209
15210 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15211
15212 custom.cfg support.
15213
15214 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
15215 * util/grub.d/41_custom.in: New file.
15216
15217 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15218
15219 * util/grub-mkrescue.in (make_image): Remove sh module, which has
15220 been merged back into normal.
15221
15222 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15223
15224 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
15225 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
15226
15227 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15228
15229 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
15230 when generating manual pages.
15231 * docs/man/grub-bin2h.h2m: New file.
15232 * docs/man/grub-editenv.h2m: New file.
15233 * docs/man/grub-fstest.h2m: New file.
15234 * docs/man/grub-install.h2m: New file.
15235 * docs/man/grub-macho2img.h2m: New file.
15236 * docs/man/grub-mkconfig.h2m: New file.
15237 * docs/man/grub-mkdevicemap.h2m: New file.
15238 * docs/man/grub-mkfont.h2m: New file.
15239 * docs/man/grub-mkimage.h2m: New file.
15240 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
15241 * docs/man/grub-mkrelpath.h2m: New file.
15242 * docs/man/grub-mkrescue.h2m: New file.
15243 * docs/man/grub-ofpathname.h2m: New file.
15244 * docs/man/grub-pe2elf.h2m: New file.
15245 * docs/man/grub-probe.h2m: New file.
15246 * docs/man/grub-reboot.h2m: New file.
15247 * docs/man/grub-script-check.h2m: New file.
15248 * docs/man/grub-set-default.h2m: New file.
15249 * docs/man/grub-setup.h2m: New file.
15250
15251 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 Use FOR_* macros instead of *_iterate whenever possible.
15254
15255 * commands/handler.c: Removed.
15256 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
15257 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
15258 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15259 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
15260 (grub_probe_SOURCES): Remove kern/parser.c.
15261 (util/grub-script-check.c_DEPENDENCIES): Removed.
15262 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
15263 and grub_script_check_init.c.
15264 (grub_script_check_init.lst): Removed.
15265 (grub_script_check_init.h): Likewise.
15266 (grub_script_check_init.c): Likewise.
15267 (pkglib_MODULES): Remove handler.mod and sh.mod.
15268 (handler_mod_SOURCES): Removed.
15269 (handler_mod_CFLAGS): Likewise.
15270 (handler_mod_LDFLAGS): Likewise.
15271 (normal_mod_SOURCES): Remove normal/handler.c.
15272 Add script/main.c, script/script.c, script/execute.c,
15273 script/function.c, script/lexer.c, grub_script.tab.c
15274 and grub_script.yy.c.
15275 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15276 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15277 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
15278 (grub_setup_SOURCES): Remove kern/parser.c.
15279 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15280 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
15281 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
15282 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15283 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15284 (grub_setup_SOURCES): Remove kern/parser.c.
15285 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15286 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
15287 * include/grub/command.h (grub_command_iterate): Removed.
15288 (FOR_COMMANDS): New macro.
15289 * include/grub/dl.h (grub_dl): New member next.
15290 (grub_dl_iterate): Removed.
15291 (grub_dl_head): New variable declaration.
15292 (FOR_DL_MODULES): New macro.
15293 * include/grub/fs.h: Include list.h.
15294 (grub_fs): Make next first element.
15295 (grub_fs_list): New variable declaration.
15296 (grub_fs_register): Make inline.
15297 (grub_fs_unregister): Likewise.
15298 (grub_fs_iterate): Removed.
15299 (FOR_FILESYSTEMS): New macro.
15300 * include/grub/handler.h: Removed.
15301 * include/grub/list.h (grub_list_hook_t): Removed.
15302 (grub_list_test_t): Likewise.
15303 (grub_list_pop): Likewise.
15304 (grub_list_iterate): Likewise.
15305 (grub_list_insert): Likewise.
15306 (FOR_LIST_ELEMENTS): New macro.
15307 * include/grub/parser.h (grub_parser_class): Removed.
15308 (grub_parser_register): Likewise.
15309 (grub_parser_unregister): Likewise.
15310 (grub_parser_get_current): Likewise.
15311 (grub_parser_set_current): Likewise.
15312 (grub_register_rescue_parser): Likewise.
15313 (grub_rescue_parse_line): New function.
15314 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
15315 * include/grub/script_sh.h (grub_script_function_list): New variable
15316 declaration.
15317 (FOR_SCRIPT_FUNCTIONS): New macro.
15318 (grub_script_function_iterate): Removed.
15319 (grub_normal_parse_line): New prototype.
15320 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
15321 (FOR_DISABLED_TERM_INPUTS): Likewise.
15322 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15323 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15324 * include/grub/video.h (grub_video_adapter): Move 'next' to first
15325 element.
15326 (grub_video_register): Inline.
15327 (grub_video_unregister): Likewise.
15328 (grub_video_adapter_list): New variable declaration.
15329 (grub_video_iterate): Removed.
15330 (FOR_VIDEO_ADAPTERS): New macro.
15331 * kern/dl.c (grub_dl_list): Removed. All users updated.
15332 (grub_dl_iterate): Removed.
15333 * kern/fs.c (grub_fs_list): Make global.
15334 (grub_fs_register): Removed.
15335 (grub_fs_unregister): Likewise.
15336 (grub_fs_iterate): Likewise.
15337 * kern/handler.c: Removed.
15338 * kern/list.c (grub_list_pop): Removed.
15339 (grub_list_iterate): Likewise.
15340 (grub_list_insert): Likewise.
15341 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
15342 (grub_prio_list_insert): Don't use grub_list_insert.
15343 * kern/main.c (grub_register_rescue_parser): Don't call
15344 grub_register_rescue_parser.
15345 * kern/parser.c (grub_parser_class): Removed.
15346 (grub_parser_execute): Use grub_rescue_parse_line.
15347 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
15348 (grub_rescue_parser): Removed.
15349 (grub_register_rescue_parser): Likewise.
15350 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
15351 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
15352 (grub_auth_check_authentication): Likewise.
15353 * normal/completion.c (iterate_command): Removed.
15354 (grub_normal_do_completion): Use FOR_COMMANDS.
15355 * normal/handler.c: Removed.
15356 * normal/main.c (read_config_file): Remove parser changing.
15357 (grub_normal_execute): Don't call read_handler_list.
15358 (grub_normal_read_line_real): Statically allocate prompt.
15359 (grub_cmdline_run): Use grub_normal_parse_line.
15360 (GRUB_MOD_FINI): Don't call free_handler_list.
15361 * normal/menu_entry.c (run): Likewise.
15362 * script/function.c (grub_script_function_list): Make global.
15363 (grub_script_function_iterate): Removed.
15364 * script/main.c (grub_normal_parse_line): Make global.
15365 (grub_sh_parser): Removed.
15366 (GRUB_MOD_INIT): Likewise.
15367 (GRUB_MOD_FINI): Likewise.
15368 * tests/lib/functional_test.c (grub_functional_test): Use
15369 FOR_LIST_ELEMENTS.
15370 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
15371 (grub_test_run): Use FOR_LIST_ELEMENTS.
15372 * tests/lib/unit_test.c (main): Likewise.
15373 * util/deviceiter.c (grub_util_iterate_devices): Don't use
15374 grub_list_pop.
15375 * util/grub-fstest.c (grub_term_input_class): Removed.
15376 (grub_term_output_class): Likewise.
15377 * util/grub-probe.c: Likewise.
15378 * util/i386/pc/grub-setup.c: Likewise.
15379 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15380 * util/grub-script-check.c (main): Don't call grub_init_all and
15381 grub_fini_all.
15382 * video/video.c (grub_video_adapter_list): Make global.
15383 (grub_video_register): Removed.
15384 (grub_video_unregister): Likewise.
15385 (grub_video_iterate): Likewise.
15386
15387 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
15388
15389 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
15390 reported by Henrique Ferreiro.
15391
15392 2010-06-09 Robert Millan <rmh@gnu.org>
15393
15394 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
15395 ones, when both are available.
15396
15397 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15398
15399 Make --version uniform and avoid hard-coded program name.
15400
15401 * util/grub-mkimage.c (main): Use `program_name' instead of
15402 hard-coded string.
15403 * util/i386/pc/grub-setup.c (main): Likewise.
15404 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
15405 * util/grub-install.in: Save the basename of $0 in $self, and use the
15406 latter in informational messages. Use the same format for --version
15407 as the binary programs.
15408 * util/grub-mkconfig.in: Likewise.
15409 * util/grub-mkrescue.in: Likewise.
15410 * util/grub-reboot.in: Likewise.
15411 * util/grub-set-default.in: Likewise.
15412 * util/i386/efi/grub-install.in: Likewise.
15413 * util/ieee1275/grub-install.in: Likewise.
15414 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15415
15416 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15417
15418 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
15419 embedding area. Use <= instead of == when checking for non-emptiness.
15420
15421 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15422
15423 * configure.ac: Add `.' to the directories searched for unifont.
15424
15425 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15426
15427 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
15428 grub_script.yy.h.
15429
15430 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15431
15432 * docs/grub.texi (History): Expand to cover GRUB 2.
15433 (Serial terminal): Refer to `terminal_input' and `terminal_output'
15434 commands, not `terminal'.
15435 (serial): Likewise.
15436 (terminal_input): New section.
15437 (terminal_output): New section.
15438 (uppermem): New section (stub).
15439 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
15440
15441 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15442
15443 * docs/grub.texi (Security): Menu entries are unrestricted by
15444 default, not restricted to superusers as I had previously thought.
15445 Reword to account for this.
15446
15447 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15448
15449 * kern/emu/misc.c (device_mapper_null_log): New function.
15450 (grub_device_mapper_supported): New function.
15451 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
15452 prototype.
15453 * kern/emu/hostdisk.c (find_partition_start): Check whether
15454 device-mapper is supported before trying to use it.
15455 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
15456
15457 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15458
15459 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
15460 (File name syntax): Likewise.
15461 (help): --all is no longer supported in GRUB 2. Be more precise
15462 about pattern matching.
15463
15464 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15465
15466 * normal/completion.c (grub_normal_do_completion): When completing
15467 arguments to "set" and the current word contains an equals sign,
15468 skip to after the equals sign before starting completion.
15469
15470 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15471
15472 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
15473
15474 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15475
15476 * docs/grub.texi (Network): New section.
15477 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
15478 `(nd)' as in GRUB Legacy.
15479 (pxe_unload): New section.
15480
15481 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15482
15483 * docs/grub.texi (Troubleshooting): `echo' is not usually available
15484 in the rescue shell, so recommend using `set' instead. Thanks,
15485 Jordan Uggla.
15486
15487 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15488
15489 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
15490 (password): New section.
15491 (password_pbkdf2): New section.
15492 (search): New section.
15493 (Security): New section.
15494 (Troubleshooting): New section, currently very incomplete.
15495 (Invoking grub-mkpasswd-pbkdf2): New section.
15496 (Internals): New section, currently very incomplete.
15497
15498 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15499
15500 * util/grub.d/00_header.in: Add some more quoting (of
15501 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
15502 work again.
15503 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
15504
15505 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15506
15507 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
15508 to `count', fixing variable shadowing that broke the -c option.
15509
15510 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
15511
15512 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
15513 in case they contain spaces.
15514
15515 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15516
15517 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
15518 "part_" to partmap module names, in line with grub-install.
15519 Reported by: Jindřich Makovička (Debian bug #584426).
15520
15521 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15522
15523 * util/grub-mkimage.c: Make target-related error messages slightly
15524 more helpful; -O talks about "format". Explicitly point to the use
15525 of -O if no target is specified.
15526 Reported by: Didier Raboud (Debian bug #584415).
15527
15528 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
15529
15530 * INSTALL: Document several build requirements for optional features
15531 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
15532
15533 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15534
15535 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
15536 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
15537 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
15538
15539 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15540
15541 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
15542 Thanks to Jordan Uggla for spotting this.
15543
15544 2010-06-02 Aleš Nesrsta <starous@volny.cz>
15545
15546 Finally make USB usable.
15547
15548 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
15549 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
15550 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
15551 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
15552 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
15553 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
15554 (GRUB_OHCI_FSMPS): Likewise.
15555 (GRUB_OHCI_PERIODIC_START): Likewise.
15556 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
15557 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
15558 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
15559 (GRUB_OHCI_SET_PORT_RESET): Likewise.
15560 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
15561 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
15562 (grub_ohci_transaction): Likewise.
15563 (grub_ohci_transfer): Improve condition detection algorithms.
15564 Handle toggle property. Program the transactions correctly.
15565 Improve error handling. Various important fixups.
15566 (grub_ohci_portstatus): Put register writes in right order.
15567 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
15568 (grub_uhci_transfer): Don't show "failed" message on success.
15569 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
15570 array.
15571 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
15572 determine its size.
15573 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
15574 before initialization is completed. Use IN direction for empty
15575 transfers. Use last_trans and compute toggle.
15576 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
15577 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
15578 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
15579 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
15580 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
15581 (grub_usb_device): Increase toggle to 256.
15582 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
15583 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
15584 GRUB_USBMS_SUBCLASS_SFF8070.
15585 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
15586 (grub_scsi_inquiry): New member page and alloc_length.
15587 (grub_scsi_request_sense): New structure.
15588 (grub_scsi_request_sense_data): Likewise.
15589 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
15590 control.
15591 * disk/scsi.c (grub_scsi_request_sense): New function.
15592 (grub_scsi_test_unit_ready): Likewise.
15593 (grub_scsi_inquiry): Fill new fields.
15594 (grub_scsi_read_capacity): Likewise.
15595 (grub_scsi_read10): Add request sense at the end.
15596 (grub_scsi_read12): Likewise.
15597 (grub_scsi_write10): Likewise.
15598 (grub_scsi_write12): Likewise.
15599 (grub_scsi_open): Add Test Unit Ready.
15600 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
15601 Support additional subclasses. Con't clear halt yet. Activate the
15602 proper config. Calculate LUNs correctly.
15603 (grub_usbms_transfer): Various important fixups.
15604
15605 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15606
15607 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
15608 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
15609 (grub_ohci_fini_hw): New function.
15610 (grub_ohci_restore_hw): Likewise.
15611 (GRUB_MOD_INIT(ohci)): Register preboot hook.
15612 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
15613 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
15614
15615 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15616
15617 Dedicated DMA allocations.
15618
15619 * bus/pci.c (grub_memalign_dma32): New function
15620 (grub_dma_free): Likewise.
15621 (grub_dma_get_virt): Likewise.
15622 (grub_dma_get_phys): Likewise.
15623 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
15624 (grub_ohci_pci_iter): Use dma32_alloc.
15625 (grub_ohci_transfer): Likewise.
15626 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
15627 (grub_usb_bulk_readwrite): Likewise.
15628 * include/grub/pci.h: Add declarations.
15629
15630 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15631
15632 CS5536 support.
15633
15634 * bus/cs5536.c: New file.
15635 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
15636 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
15637 (cs5536_mod_SOURCES): New variable.
15638 (cs5536_mod_CFLAGS): Likewise.
15639 (cs5536_mod_LDFLAGS): Likewise.
15640 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
15641 machine/pci.h.
15642 (kernel_img_SOURCES): Add bus/cs5536.c.
15643 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
15644 usb_keyboard.mod.
15645 (usb_mod_SOURCES): New variable.
15646 (usb_mod_CFLAGS): New variable.
15647 (usb_mod_LDFLAGS): New variable.
15648 (usbtest_mod_SOURCES): New variable.
15649 (usbtest_mod_CFLAGS): New variable.
15650 (usbtest_mod_LDFLAGS): New variable.
15651 (ohci_mod_SOURCES): New variable.
15652 (ohci_mod_CFLAGS): New variable.
15653 (ohci_mod_LDFLAGS): New variable.
15654 (usbms_mod_SOURCES): New variable.
15655 (usbms_mod_CFLAGS): New variable.
15656 (usbms_mod_LDFLAGS): New variable.
15657 (usb_keyboard_mod_SOURCES): New variable.
15658 (usb_keyboard_mod_CFLAGS): New variable.
15659 (usb_keyboard_mod_LDFLAGS): New variable.
15660 * include/grub/smbus.h: New file.
15661 * include/grub/cs5536.h: New file.
15662
15663 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15664
15665 * util/grub.d/00_header.in: Add safety check to make sure that
15666 ${locale_dir} exists before trying to probe it.
15667
15668 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15669
15670 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
15671 per the GNU Coding Standards; this is now too obscure to be worth
15672 documenting.
15673 (QNX): Likewise.
15674 (chainloader): Remove cross-reference to `SCO UnixWare'.
15675
15676 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15677
15678 * docs/grub.texi (Chain-loading): New section.
15679 (DOS/Windows): New section, borrowed from GRUB Legacy with details
15680 adjusted for GRUB 2.
15681 (SCO UnixWare): Likewise.
15682 (QNX): Likewise.
15683 (chainloader): Add reference to `Block list syntax'.
15684 (drivemap): New section.
15685 (parttool): New section.
15686
15687 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15688
15689 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
15690 the grub shell'.
15691 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
15692 (Installing GRUB using grub-install): Remove reference to the grub
15693 shell; mention `grub-mkimage' and `grub-setup' instead.
15694 (Invoking grub-install): Likewise.
15695 (Interface): Add reference to `Menu entry editor'.
15696 (serial): Remove `--device' option.
15697
15698 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15699
15700 * docs/grub.texi (Configuration): New section, documenting
15701 configuration file generation using grub-mkconfig. I've left a slot
15702 for documenting the full shell scripting format but have not yet
15703 started on writing that up.
15704 (Invoking grub-mkconfig): New section.
15705
15706 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15707
15708 * docs/grub.texi (direntry): Remove grub-terminfo reference.
15709 (GNU GRUB manual): Likewise.
15710 (General commands): Update description of `terminfo' for GRUB 2.
15711
15712 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15713
15714 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
15715 (GRUB_MOD_INIT): Fix capitalisation.
15716 * docs/grub.texi (Command-line and menu entry commands): Document
15717 gettext and gptsync commands.
15718
15719 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15720
15721 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
15722 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
15723
15724 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
15725
15726 Add btrfs probing support, currently only in the single-device case.
15727
15728 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
15729 function.
15730 (grub_guess_root_device): Call find_root_device_from_mountinfo
15731 before looking in /dev.
15732
15733 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15734
15735 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
15736 GRUB_DISK_SIZE_UNKNOWN.
15737 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
15738
15739 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
15740
15741 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
15742 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
15743 corrupted or not synced properly.
15744
15745 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15746
15747 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
15748 Reported by: Seth Goldberg.
15749
15750 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15751
15752 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
15753 addition of dest.
15754 Reported by: Seth Goldberg.
15755
15756 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15757
15758 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
15759 Reported by: Seth Goldberg.
15760
15761 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15762
15763 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
15764 64-bit address as signed on MIPS.
15765
15766 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15767
15768 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
15769 to the empty string.
15770
15771 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
15772
15773 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
15774
15775 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
15776 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
15777 * kern/misc.c (__enable_execute_stack): Disable on
15778 GRUB_MACHINE_EMU.
15779
15780 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15781
15782 Make grub-probe work with symbolic links under /dev/mapper as well
15783 as with real block devices. The Linux world seems to be (at best)
15784 in transition here, and GRUB shouldn't get caught in the middle.
15785
15786 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
15787 /dev/mapper.
15788
15789 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15790
15791 * util/grub-script-check.c (main): Ensure defined behaviour on empty
15792 input files (in which case exit zero).
15793
15794 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15795
15796 * kern/emu/misc.c (canonicalize_file_name): realpath can still
15797 return NULL for various reasons even if it has a maximum-length
15798 buffer: for example, there might be a symlink loop, or the path
15799 might exceed PATH_MAX. If this happens, return NULL.
15800
15801 2010-05-27 Robert Millan <rmh@gnu.org>
15802
15803 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
15804 partmap module to handle cross-partmap setups.
15805 Reported by Orestes Mas. Gràcies!
15806
15807 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15808
15809 * util/grub-mkrescue.in: Initialise override_dir rather than
15810 assuming that it's unset or empty in the environment.
15811
15812 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
15813
15814 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
15815 variable index into p_index to suppress a warning with -Wshadow.
15816
15817 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
15818
15819 * INSTALL: Added flex >= 2.5.35 requirement.
15820
15821 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15822
15823 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
15824
15825 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15826
15827 cmostest support.
15828
15829 * commands/i386/cmostest.c: New file.
15830 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
15831 (cmostest_mod_SOURCES): New variable.
15832 (cmostest_mod_CFLAGS): Likewise.
15833 (cmostest_mod_LDFLAGS): Likewise.
15834 * conf/i386-pc.rmk: Likewise.
15835 * docs/grub.texi (Vendor power-on keys): New section.
15836 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
15837 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
15838 and GRUB_BUTTON_CMOS_ADDRESS.
15839 * util/grub.d/00_header.in: Handle powering-on by separate button.
15840
15841 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15842
15843 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
15844 Removed drawing_scrollbar argument. All users updated
15845 Fixes #29792.
15846 Reported by Jo Shields
15847
15848 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
15851 buffer since gfxterm handles double repaint.
15852
15853 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15854
15855 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
15856 * term/gfxterm.c (real_scroll): Likewise.
15857
15858 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15859
15860 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
15861 before calling BIOS.
15862
15863 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15864
15865 * include/grub/i18n.h: Always enable grub_gettext.
15866
15867 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
15870 partition naming style.
15871
15872 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
15873
15874 * util/grub-mkconfig.in: Fix handling of -o so that it works when
15875 not the first option.
15876
15877 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15878
15879 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
15880
15881 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15882
15883 * util/misc.c: Move inclusion of <limits.h> to ...
15884 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
15885
15886 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
15887
15888 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
15889 Fix merge error in NetBSD code.
15890 (find_partition_start) [__NetBSD__]: Likewise.
15891
15892 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
15893
15894 Fix grub-mkrescue usage unit testing.
15895
15896 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
15897
15898 2010-05-18 Christian Franke <franke@computer.org>
15899
15900 * util/grub.d/10_windows.in: Use path names instead of
15901 drive letters to prevent warning from Cygwin 1.7.
15902 Add drivemap command to menuentry if needed.
15903
15904 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
15905
15906 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
15907 gnumach and gnumach.gz.
15908
15909 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15910
15911 * include/grub/i18n.h (gettext): Inline instead of using #define.
15912 (grub_gettext): Likewise.
15913 (_): Likewise.
15914
15915 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15916
15917 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
15918 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
15919 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
15920 (main): Add a slash after pkglibdirroot.
15921
15922 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15923
15924 * util/grub-install.in: Add missing "in" keyword.
15925
15926 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15927
15928 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
15929 Reported by: Seth Goldberg.
15930
15931 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15932
15933 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
15934
15935 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15936
15937 * configure.ac: Check for Linux device-mapper support.
15938
15939 * util/hostdisk.c (device_is_mapped): New function.
15940 (find_partition_start): New function, partly broken out from
15941 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
15942 device-mapper support added.
15943 (linux_find_partition): Use find_partition_start.
15944 (convert_system_partition_to_system_disk): Add `st' argument.
15945 Support Linux /dev/mapper/* devices if device-mapper support is
15946 available; only DM-RAID devices are understood at present.
15947 (find_system_device): Add `st' argument. Pass it to
15948 convert_system_partition_to_system_disk.
15949 (grub_util_biosdisk_get_grub_dev): Pass stat result to
15950 find_system_device and convert_system_partition_to_system_disk. Use
15951 find_partition_start.
15952
15953 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
15954 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
15955 * util/deviceiter.c [__linux__]: Define MINOR.
15956 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
15957 * util/mkdevicemap.c (grub_putchar): New function.
15958 (grub_getkey): New function.
15959 (grub_refresh): New function.
15960 (main): Set debug=all if -v -v is used.
15961
15962 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15963
15964 Fix build with non-GNU libcs.
15965
15966 * util/misc.c (canonicalize_file_name): Move to ...
15967 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
15968 grub_make_system_path_relative_to_its_root.
15969
15970 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
15971
15972 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
15973 we handle finding grub-mkimage. Default to finding grub-mkimage in
15974 ${bindir} with program_transform_name applied, and provide a
15975 --grub-mkimage option to override this.
15976
15977 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15978
15979 Remove grub-mkisofs.
15980
15981 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
15982 (grub_mkisofs_SOURCES): Removed.
15983 (grub_mkisofs_CFLAGS): Removed.
15984 * util/mkisofs/defaults.h: Removed.
15985 * util/mkisofs/eltorito.c: Likewise.
15986 * util/mkisofs/exclude.h: Likewise.
15987 * util/mkisofs/hash.c: Likewise.
15988 * util/mkisofs/include/: Likewise.
15989 * util/mkisofs/include/fctldefs.h: Likewise.
15990 * util/mkisofs/include/mconfig.h: Likewise.
15991 * util/mkisofs/include/prototyp.h: Likewise.
15992 * util/mkisofs/include/statdefs.h: Likewise.
15993 * util/mkisofs/iso9660.h: Likewise.
15994 * util/mkisofs/joliet.c: Likewise.
15995 * util/mkisofs/match.c: Likewise.
15996 * util/mkisofs/match.h: Likewise.
15997 * util/mkisofs/mkisofs.c: Likewise.
15998 * util/mkisofs/mkisofs.h: Likewise.
15999 * util/mkisofs/msdos_partition.h: Likewise.
16000 * util/mkisofs/multi.c: Likewise.
16001 * util/mkisofs/name.c: Likewise.
16002 * util/mkisofs/rock.c: Likewise.
16003 * util/mkisofs/tree.c: Likewise.
16004 * util/mkisofs/write.c: Likewise.
16005
16006 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16007
16008 Unify grub-mkimage accross platforms.
16009
16010 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
16011 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
16012 (grub_mkelfimage_SOURCES): Removed.
16013 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
16014 (util/grub-mkimage.c_DEPENDENCIES): .. this.
16015 (bin_UTILITIES): Add grub-mkimage.
16016 (grub_mkimage_SOURCES): New variable.
16017 (kernel_img_HEADERS): Remove machine/kernel.h.
16018 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
16019 (pkglib_PROGRAMS): Add kernel.img.
16020 (kernel_img_HEADERS): Add machine/kernel.h.
16021 (kernel_img_FORMAT): Removed.
16022 (bin_UTILITIES): Remove grub-mkimage.
16023 (grub_mkimage_SOURCES): Removed.
16024 (grub_mkimage_CFLAGS): Likewise.
16025 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16026 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
16027 (pkglib_PROGRAMS): Add kernel.img.
16028 (bin_UTILITIES): Remove grub-mkimage.
16029 (grub_mkimage_SOURCES): Removed.
16030 (grub_mkimage_CFLAGS): Likewise.
16031 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16032 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
16033 (pkglib_PROGRAMS): Add kernel.img.
16034 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
16035 (pkglib_PROGRAMS): Add kernel.img.
16036 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
16037 (grub_mkimage_SOURCES): Removed.
16038 (grub_mkimage_CFLAGS): Likewise.
16039 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16040 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
16041 (pkglib_PROGRAMS): Add kernel.img.
16042 (bin_UTILITIES): Remove grub-mkimage.
16043 (grub_mkimage_SOURCES): Removed.
16044 (grub_mkimage_CFLAGS): Likewise.
16045 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16046 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
16047 (grub_mkimage_SOURCES): Removed.
16048 (grub_mkimage_CFLAGS): Likewise.
16049 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16050 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
16051 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
16052 (grub_pe32_optional_header): ... this.
16053 (grub_pe64_optional_header): ... and this. All users updated.
16054 (GRUB_PE32_PE32_MAGIC): Split into ..
16055 (GRUB_PE32_PE32_MAGIC): .. this.
16056 (GRUB_PE32_PE64_MAGIC): .. and this.
16057 (GRUB_PE32_SIGNATURE_SIZE): New definition.
16058 * include/grub/elf.h (PT_GNU_STACK): New definition.
16059 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
16060 * include/grub/i386/efi/kernel.h: Likewise.
16061 * include/grub/i386/kernel.h: Likewise.
16062 * include/grub/i386/pc/kernel.h: Likewise.
16063 * include/grub/i386/qemu/boot.h: Likewise.
16064 * include/grub/mips/kernel.h: Likewise.
16065 * include/grub/mips/qemu-mips/kernel.h: Likewise.
16066 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
16067 * include/grub/powerpc/kernel.h: Likewise.
16068 * include/grub/sparc64/ieee1275/boot.h: Likewise.
16069 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16070 * include/grub/sparc64/kernel.h: Likewise.
16071 * include/grub/x86_64/efi/kernel.h: Likewise.
16072 * include/grub/x86_64/kernel.h: Likewise.
16073 * include/grub/offsets.h: New file.
16074 * include/grub/kernel.h (grub_module_info): Split into ...
16075 (grub_module_info32): ... this.
16076 (grub_module_info64): ... and this.
16077 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
16078 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
16079 (grub_boot_blocklist): Moved from here ...
16080 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
16081 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
16082 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
16083 * include/grub/types.h (grub_target_to_host16): Removed.
16084 (grub_target_to_host32): Likewise.
16085 (grub_target_to_host64): Likewise.
16086 (grub_host_to_target16): Likewise.
16087 (grub_host_to_target32): Likewise.
16088 (grub_host_to_target64): Likewise.
16089 (grub_host_to_target_addr): Likewise.
16090
16091 Support grub-mkrescue for efi, coreboot and qemu.
16092
16093 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
16094 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
16095 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
16096 * util/grub-mkrawimage.c: Moved from here ...
16097 * util/grub-mkimage.c: ... here. All users updated.
16098 (ALIGN_ADDR): Use image_target.
16099 (TARGET_NO_FIELD): New const.
16100 (image_target_desc): New type.
16101 (image_targets): New array.
16102 (grub_target_to_host64): Use image_target.
16103 (grub_target_to_host32): Likewise.
16104 (grub_target_to_host16): Likewise.
16105 (grub_host_to_target64): Likewise.
16106 (grub_host_to_target32): Likewise.
16107 (grub_host_to_target16): Likewise.
16108 (grub_host_to_target_addr): Likewise.
16109 (generate_image): Handle multiimage.
16110 (main): Require -O parameter. All users updated.
16111 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
16112 util/efi/grub-mkimage.c
16113 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
16114 New option --rom-directory.
16115 Use xorriso.
16116 * util/i386/efi/grub-mkimage.c: Removed.
16117 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
16118 (grub_target_to_host32): Likewise.
16119 (grub_target_to_host64): Likewise.
16120 (grub_host_to_target16): Likewise.
16121 (grub_host_to_target32): Likewise.
16122 (grub_host_to_target64): Likewise.
16123 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
16124 (grub_target_to_host32): Likewise.
16125 (grub_target_to_host64): Likewise.
16126 (grub_host_to_target16): Likewise.
16127 (grub_host_to_target32): Likewise.
16128 (grub_host_to_target64): Likewise.
16129
16130 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
16131
16132 Source tree is reorganized for emu build.
16133
16134 * include/grub/util/console.h: Move from here...
16135 * include/grub/emu/console.h: ...to here.
16136 * include/grub/util/getroot.h: Move from here...
16137 * include/grub/emu/getroot.h: ...to here.
16138 * include/grub/util/hostdisk.h: Move from here...
16139 * include/grub/emu/hostdisk.h: ...to here.
16140 * util/console.c: Move from here...
16141 * kern/emu/console.c: ...to here.
16142 * util/getroot.c: Move from here...
16143 * kern/emu/getroot.c: ...to here.
16144 * util/grub-emu.c: Move from here...
16145 * kern/emu/main.c: ...to here.
16146 * util/hostdisk.c: Move from here...
16147 * kern/emu/hostdisk.c: ...to here.
16148 * util/hostfs.c: Move from here...
16149 * kern/emu/hostfs.c: ...to here.
16150 * util/mm.c: Move from here...
16151 * kern/emu/mm.c: ...to here.
16152 * util/pci.c: Move from here...
16153 * bus/emu/pci.c: ...to here.
16154 * util/sdl.c: Move from here...
16155 * video/emu/sdl.c: ...to here.
16156 * util/time.c: Move from here...
16157 * kern/emu/time.c: ...to here.
16158 * util/usb.c: Move from here...
16159 * bus/usb/emu/usb.c: ...to here.
16160
16161 * include/grub/emu/misc.h: New header for grub-emu functions.
16162 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
16163
16164 * conf/any-emu.rmk: Rule updates for above renames.
16165 * conf/common.rmk: Likewise.
16166 * conf/i386-pc.rmk: Likewise.
16167 * conf/i386-qemu.rmk: Likewise.
16168 * conf/mips.rmk: Likewise.
16169 * conf/sparc64-ieee1275.rmk: Likewise.
16170 * conf/x86-efi.rmk: Likewise.
16171
16172 * disk/lvm.h: #include updates for above renames.
16173 * util/grub-mkrelpath.c: Likewise.
16174 * util/grub-probe.c: Likewise.
16175 * util/i386/pc/grub-setup.c: Likewise.
16176 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16177 * kern/emu/console.c: Likewise.
16178 * kern/emu/getroot.c: Likewise.
16179 * kern/emu/hostdisk.c: Likewise.
16180 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
16181
16182 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
16183 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
16184 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
16185 * util/misc.c: Remove grub-emu functions.
16186
16187 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16188
16189 Fix gfxmenu crash.
16190 Reported by: Thorsten Grützmacher.
16191
16192 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
16193 timeout hook.
16194 (circprog_set_property): Register and unregister timeout hook.
16195 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
16196 (label_destroy): Free template. and unregister hook.
16197 (label_set_state): New function.
16198 (label_set_property): Handle templates and hooks.
16199 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
16200 timeout hook.
16201 (progress_bar_set_property): Register and unregister timeout hook.
16202 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
16203 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
16204 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
16205 (update_timeout_visit): Removed.
16206 (update_timeouts): New function.
16207 (redraw_timeouts): Likewise.
16208 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
16209 (grub_gfxmenu_clear_timeout): Likewise.
16210 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
16211 (grub_gfxmenu_timeout_notify): Likewise.
16212 (grub_gfxmenu_timeout_notifications): New external variable.
16213 (grub_gfxmenu_timeout_register): New function.
16214 (grub_gfxmenu_timeout_unregister): Likewise.
16215
16216 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16217
16218 Transform (broken) vga terminal into (working) vga video driver.
16219
16220 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
16221 video/i386/pc/vga.c.
16222 * include/grub/video.h (grub_video_driver_id):
16223 Add GRUB_VIDEO_DRIVER_VGA.
16224 * term/i386/pc/vga.c: Renamed to ...
16225 * video/i386/pc/vga.c: ...this
16226 (DEBUG_VGA): Removed.
16227 (CHAR_WIDTH): Likewise.
16228 (CHAR_HEIGHT): Likewise.
16229 (TEXT_WIDTH): Likewise.
16230 (TEXT_HEIGHT): Likewise.
16231 (DEFAULT_FG_COLOR): Likewise.
16232 (DEFAULT_BG_COLOR): Likewise.
16233 (colored_char): Likewise.
16234 (xpos): Likewise.
16235 (ypos): Likewise.
16236 (cursor_state): Likewise.
16237 (fg_color): Likewise.
16238 (bg_color): Likewise.
16239 (text_buf): Likewise.
16240 (page): Likewise.
16241 (font): Likewise.
16242 (framebuffer): New variable.
16243 (set_read_map): Disabled.
16244 (setup): New variable.
16245 (is_target): Likewise.
16246 (grub_vga_mod_init): Likewise.
16247 (grub_vga_mod_fini): Likewise.
16248 (check_vga_mem): Likewise.
16249 (write_char): Likewise.
16250 (write_cursor): Likewise.
16251 (scroll_up): Likewise.
16252 (grub_vga_putchar): Likewise.
16253 (grub_vga_getcharwidth): Likewise.
16254 (grub_vga_getwh): Likewise.
16255 (grub_vga_getxy): Likewise.
16256 (grub_vga_gotoxy): Likewise.
16257 (grub_vga_cls): Likewise.
16258 (grub_vga_setcolorstate): Likewise.
16259 (grub_vga_setcursor): Likewise.
16260 (grub_video_vga_init): New function.
16261 (grub_video_vga_setup): Likewise.
16262 (grub_video_vga_fini): Likewise.
16263 (update_target): Likewise.
16264 (grub_video_vga_blit_bitmap): Likewise.
16265 (grub_video_vga_blit_render_target): Likewise.
16266 (grub_video_vga_set_active_render_target): Likewise.
16267 (grub_video_vga_get_active_render_target): Likewise.
16268 (grub_video_vga_swap_buffers): Likewise.
16269 (grub_video_vga_set_palette): Likewise.
16270 (grub_video_vga_get_info_and_fini): Likewise.
16271 (grub_vga_term): Removed.
16272 (grub_video_vga_adapter): New variable.
16273 (GRUB_MOD_INIT): Register a video driver instead of terminal.
16274 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
16275
16276 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 * video/readers/jpeg.c: Indented.
16279
16280 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16281
16282 Various jpeg cleanups.
16283
16284 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
16285 (grub_jpeg_decode_quan_table): Use sizeof.
16286 (grub_jpeg_decode_du): Use ARRAY_SIZE.
16287
16288 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
16289
16290 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
16291 tables. Ignore non-last ac bit.
16292 (grub_jpeg_decode_quan_table): Likewise.
16293
16294 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16295
16296 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
16297 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
16298 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16299 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
16300 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
16301 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
16302
16303 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16304
16305 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
16306 error.
16307
16308 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16309
16310 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
16311
16312 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16313
16314 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
16315 condition.
16316
16317 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16318
16319 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
16320 part.
16321
16322 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16323
16324 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
16325 pointers.
16326
16327 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16328
16329 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
16330
16331 2010-05-01 Christian Franke <franke@computer.org>
16332
16333 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
16334 Remove broken Cygwin path conversion.
16335 * util/misc.c: [__CYGWIN__] Add include and define.
16336 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
16337 for Cygwin 1.7.
16338 (make_system_path_relative_to_its_root): Simplify loop, replace early
16339 return by break.
16340 [__CYGWIN__] Add conversion to win32 path.
16341 Include "/" case in trailing slash removal.
16342
16343 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 * kern/main.c (grub_load_config): Fix copy-pasted comment.
16346 Reported by: Seth Goldberg
16347
16348 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16349
16350 * commands/help.c (grub_cmd_help): Fix a typo.
16351 Reported by: Seth Goldberg
16352
16353 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16354
16355 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
16356 name and add N_.
16357 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
16358 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
16359 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
16360 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
16361 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
16362 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
16363 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
16364 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
16365 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
16366 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16367 * normal/context.c (GRUB_MOD_INIT): Likewise.
16368 * normal/main.c (GRUB_MOD_INIT): Likewise.
16369 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
16370 * term/serial.c (GRUB_MOD_INIT): Likewise.
16371 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
16372
16373 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16374
16375 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
16376 extra == 0.
16377
16378 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16379
16380 * commands/iorw.c: New file.
16381 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
16382 (iorw_mod_SOURCES): New variable.
16383 (iorw_mod_CFLAGS): Likewise.
16384 (iorw_mod_LDFLAGS): Likewise.
16385
16386 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16387
16388 Hotkey support
16389
16390 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
16391 * normal/main.c (hotkey_aliases): New variable.
16392 (grub_normal_add_menu_entry): Parse "--hotkey".
16393 * normal/menu_text.c (run_menu): Handle hotkeys.
16394
16395 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16396
16397 * kern/i386/coreboot/init.c (grub_machine_init): Call
16398 grub_machine_mmap_init on qemu.
16399
16400 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16401
16402 * boot/i386/qemu/boot.S: Add a missing .code16.
16403
16404 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16405
16406 Use LBIO on coreboot.
16407
16408 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
16409 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
16410 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
16411 New declaration.
16412 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
16413 grub_machine_mmap_init on coreboot.
16414 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
16415 GRUB_LINUXBIOS_MEMBER_LINK.
16416 (grub_machine_mmap_iterate): Fix declaration.
16417 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
16418
16419 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16420
16421 Split coreboot and multiboot ports.
16422
16423 * conf/i386-multiboot.rmk: New file.
16424 * configure.ac: Add multiboot port.
16425 * include/grub/i386/multiboot/boot.h: New file.
16426 * include/grub/i386/multiboot/console.h: Likewise.
16427 * include/grub/i386/multiboot/init.h: Likewise.
16428 * include/grub/i386/multiboot/kernel.h: Likewise.
16429 * include/grub/i386/multiboot/loader.h: Likewise.
16430 * include/grub/i386/multiboot/memory.h: Likewise.
16431 * include/grub/i386/multiboot/serial.h: Likewise.
16432 * include/grub/i386/multiboot/time.h: Likewise.
16433 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
16434 * loader/multiboot.c: Likewise.
16435 * loader/multiboot_mbi2.c: Likewise.
16436 * util/grub-mkrescue.in: Generate multiboot rescue.
16437
16438 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16439
16440 * kern/parser.c (grub_parser_execute): Cope with read-only config.
16441
16442 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16443
16444 Merge handling of input and output terminals. Fix a hang.
16445
16446 * commands/terminal.c (abstract_terminal): New struct.
16447 (handle_command): New function. Based on grub_cmd_terminal_input.
16448 (grub_cmd_terminal_input): Use handle_command.
16449 (grub_cmd_terminal_output): Use handle_command.
16450
16451 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
16452
16453 Fix comment handling.
16454
16455 * tests/grub_script_comments.in: New testcase.
16456 * conf/tests.rmk: Rules for new testcase.
16457 * script/yylex.l: Updated flex rules.
16458
16459 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
16460
16461 * docs/grub.texi (play): Document that zero pitches produce rests.
16462 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
16463 if argc is 1.
16464
16465 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
16468 autogen issues.
16469
16470 2010-04-26 Christian Franke <franke@computer.org>
16471
16472 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
16473 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
16474 (grub_get_prefix): Remove function.
16475 * util/grub-emu.c (main): Replace grub_get_prefix () call by
16476 make_system_path_relative_to_its_root ().
16477 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16478
16479 2010-04-24 Christian Franke <franke@computer.org>
16480
16481 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
16482 (kernel_img_LDFLAGS): Remove -static-libgcc.
16483
16484 2010-04-24 Christian Franke <franke@computer.org>
16485
16486 * configure.ac: Do not CHECK_BSS_START_SYMBOL
16487 and CHECK_END_SYMBOL if grub-emu is built.
16488 Unset TARGET_OBJ2ELF if grub-emu is built
16489 without module support.
16490
16491 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
16492
16493 Nilfs2 support.
16494
16495 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
16496 (grub_fstest_SOURCES): Likewise.
16497 (pkglib_MODULES): Add nilfs2.mod.
16498 (nilfs2_mod_SOURCES): New variable.
16499 (nilfs2_mod_CFLAGS): Likewise.
16500 (nilfs2_mod_LDFLAGS): Likewise.
16501 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16502 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16503 * fs/nilfs2.c: New file.
16504
16505 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
16506
16507 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
16508 is not supported.
16509
16510 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
16511
16512 Add grub-mkconfig support for NetBSD.
16513
16514 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
16515 * util/grub-mkconfig.in: export new NetBSD specific variables.
16516 * po/POTFILES-shell: added 10_netbsd.in.
16517 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
16518
16519 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
16520
16521 Fix emu build with grub-emu-pci and grub-emu-modules.
16522
16523 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
16524 functions.
16525 * include/grub/libpciaccess.h: New file.
16526 * conf/any-emu.rmk: Update kernel headers for emu build.
16527
16528 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16529
16530 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
16531
16532 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16533
16534 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
16535
16536 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16537
16538 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
16539 Retrieve chosen/bootpath if bootpath isn't hardcoded.
16540 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
16541 util/ieee1275/ofpath.c.
16542 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
16543 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
16544 * include/grub/sparc64/ieee1275/boot.h
16545 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
16546 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
16547 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
16548 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
16549 const char *.
16550 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
16551 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
16552 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
16553 install.
16554
16555 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16556
16557 * util/grub-mkconfig.in: Corrected two == equality tests.
16558 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
16559 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
16560 expect a number appended to it.
16561 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
16562 expects a number appended to it.
16563
16564 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16565
16566 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
16567
16568 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 * util/hostdisk.c (make_device_name): Change to new partition naming.
16571
16572 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16573
16574 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
16575
16576 2010-04-17 Christian Franke <franke@computer.org>
16577
16578 * Makefile.in: Add missing localedir setting.
16579
16580 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
16581
16582 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
16583 mistake in r2156. Noticed by Anthony Fok.
16584
16585 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
16586 @localedir@.
16587 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
16588
16589 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
16590
16591 Fix a spurious, uninitialized variable warning.
16592
16593 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
16594 Initialize variable, shdr.
16595 (grub_freebsd_load_elfmodule): Likewise.
16596 (grub_freebsd_load_elf_meta): Likewise.
16597
16598 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
16599
16600 Fix for escaped dollar in double quoted strings.
16601
16602 * script/yylex.l: Updated flex rules.
16603 * conf/tests.rmk: Rule for new testcase.
16604 * tests/grub_script_dollar.in: New testcase.
16605
16606 2010-04-13 Carles Pina i Estany <carles@pina.cat>
16607 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
16608
16609 Enclose all translated strings in grub.cfg in single quotes, and
16610 escape them appropriately (Ubuntu bug #552921).
16611
16612 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
16613 * util/grub.d/10_hurd.in: Use it.
16614 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16615 * util/grub.d/10_linux.in (linux_entry): Likewise.
16616
16617 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 Fix cygwin compilation.
16620
16621 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
16622 * include/grub/misc.h (__register_frame_info)
16623 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
16624 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16625 * kern/misc.c (__register_frame_info)
16626 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
16627 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16628
16629 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16630
16631 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
16632
16633 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16634
16635 Unify libgcc processing.
16636
16637 * Makefile.in (kernel_img_LDFLAGS): New variable.
16638 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
16639 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
16640 overwriting.
16641 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
16642 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
16643 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
16644 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
16645 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
16646 overwriting. Remove -lgcc and -static-libgcc
16647 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
16648 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16649 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16650 (kernel_img_LDFLAGS): Append instead of overwriting.
16651 Remove -lgcc and -static-libgcc
16652 * conf/sparc64-ieee1275.rmk: Likewise.
16653 * include/grub/powerpc/libgcc.h: Move to ...
16654 * include/grub/libgcc.h: .. this.
16655 * include/grub/libgcc.h: Don't export most of the function on x86.
16656 (__bswapsi2): New export.
16657 (__bswapdi2): Likewise.
16658 * include/grub/mips/libgcc.h: Removed.
16659 * include/grub/sparc64/libgcc.h: Likewise.
16660
16661 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16662
16663 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
16664 disk_info_msg (conflicts with gettexting into languages with cases).
16665
16666 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
16667
16668 Add grub-probe support for NetBSD.
16669
16670 * util/getroot.c (find_root_device): Convert block device to
16671 character device on NetBSD.
16672 * util/probe.c (probe): Require character device on NetBSD.
16673 * util/hostdisk.c: NetBSD specific headers.
16674 (configure_device_driver): new function to tune device driver
16675 parameters (currently only for NetBSD floppy driver).
16676 (grub_util_biosdisk_open): NetBSD specific code (get disk size
16677 via disklabel ioctl).
16678 (open_device): call configure_device_driver on NetBSD.
16679 (convert_system_partition_to_system_disk): NetBSD specific code.
16680 (device_is_wholedisk): Likewise.
16681 (grub_util_biosdisk_get_grub_dev): Likewise.
16682 (make_device_name): Fixed a typo in bsd_part_str.
16683 * configure.ac: check for opendisk() and getrawpartition() on
16684 NetBSD and set LIBUTIL.
16685 * Makefile.in: add LIBUTIL to LIBS.
16686
16687 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16688
16689 Documentation fix.
16690
16691 * util/grub-script-check.c: Better help message.
16692
16693 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16694
16695 Fix FreeBSD build.
16696
16697 * configure.ac: Flex version check.
16698 * conf/common.rmk: Add -Wno-error to sh.mod.
16699 * script/yylex.l: Remove all #pragma.
16700
16701 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16702
16703 * include/grub/util/misc.h (canonicalise_file_name): Add missing
16704 prototype.
16705 Reported by: Seth Goldberg.
16706
16707 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
16710 Rename "module" to "module2".
16711 Reported by: Seth Goldberg.
16712
16713 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16714
16715 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
16716 EXPORT_FUNC.
16717 Reported by: Seth Goldberg.
16718
16719 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16720
16721 * lib/posix_wrap/locale.h: Add missing file.
16722 Reported by: Seth Goldberg.
16723
16724 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16725
16726 grub-emu module load support.
16727
16728 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
16729 NO_DYNAMIC_MODULES switched to this.
16730 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
16731 (CFLAGS): Likewise.
16732 * conf/any-emu.rmk: Generate symlist.
16733 (kernel_img_HEADERS): Add util/datetime.h.
16734 (kernel_img_HEADERS) [sdl]: Add sdl.h.
16735 (kernel_img_HEADERS) [libusb]: Add libusb.h.
16736 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
16737 kern/$(target_cpu)/cache.S.
16738 * configure.ac (grub-emu-modules): New option.
16739 * genmk.rb: Handle multiple source lists.
16740 * include/grub/sdl.h: New file.
16741 * include/grub/libusb.h: Likewise.
16742 * util/grub-emu.c (main): Hanle (host) root.
16743 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
16744 GRUB_ERR_UNKNOWN_DEVICE.
16745 * util/misc.c: Move mm functions to ...
16746 * util/mm.c: ... here. All users updated.
16747
16748 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16749
16750 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
16751 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
16752 missing files.
16753 (maintainer-clean): Remove libgcrypt-grub.
16754
16755 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16756
16757 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
16758
16759 2010-04-09 EFI Coder <eficoder@hotmail.com>
16760
16761 * normal/menu_text.c (print_message): Clean up the message and show
16762 the Fn information when on EFI
16763 * term/efi/console.c (grub_console_checkkey): Add F4 support.
16764
16765 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16766
16767 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
16768 All users updated.
16769 * normal/crypto.c (read_crypto_list): Likewise.
16770 * normal/dyncmd.c (read_command_list): Likewise.
16771 * normal/term.c (read_terminal_list): Likewise.
16772 * normal/main.c (read_lists): Use explicit prefix.
16773 (read_lists_hook): Use read_lists.
16774 (grub_normal_execute): Likewise.
16775
16776 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16777
16778 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
16779 Reported by: Thomas Schmitt.
16780 Add -no-emul-boot to grub-mkisofs parameters.
16781
16782 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16783
16784 * font/font.c: Indented.
16785
16786 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16787
16788 Elif support to GRUB script (by Deepak Vankadaru).
16789
16790 * tests/grub_script_if.in: New testcase.
16791 * conf/tests.rmk: Rule for new testcase.
16792 * script/parser.y: Grammar rules for elif.
16793
16794 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16795
16796 While and until loops support to GRUB script.
16797
16798 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
16799 (grub_script_create_cmdwhile): New function prototype.
16800 (grub_script_execute_cmdwhile): New function prototype.
16801 * script/execute.c (grub_script_execute_cmdwhile): New function.
16802 * script/parser.y (command): New commands.
16803 (whilecmd): New grammar rule.
16804 (untilcmd): New grammar rule.
16805 * script/script.c (grub_script_create_cmdwhile): New function.
16806 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
16807 function.
16808
16809 * tests/grub_script_while1.in: New testcase.
16810 * conf/tests.rmk: Rule for new testcase.
16811
16812 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16813
16814 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
16815 as *.jpg.
16816
16817 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
16818
16819 GRUB_BACKGROUND support.
16820
16821 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
16822 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
16823
16824 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16825
16826 Load fonts and modules for gfxmenu in grub-mkconfig.
16827 Idea by: Mario Vazquez
16828
16829 * util/grub.d/00_header.in: Load pf2 and image modules.
16830
16831 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16832
16833 grub-mkconfig multiple terminal support.
16834
16835 * util/grub-mkconfig.in: Handle multiple terminals correctly.
16836 * util/grub.d/00_header.in: Likewise.
16837
16838 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16839
16840 * Makefile.in: Specify files explicitly instead of using $< and $@ since
16841 we use cd $(srcdir).
16842
16843 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
16844
16845 * util/grub.d/10_linux.in: Only use the first word of
16846 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
16847 spaces in GRUB_DISTRIBUTOR.
16848 * util/grub.d/10_kfreebsd.in: Likewise.
16849 * util/grub.d/10_hurd.in: Likewise.
16850
16851 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
16852
16853 Fix unit testing framework for Qemu 0.12.
16854
16855 * tests/util/grub-shell.in: Remove -serial stdio option.
16856
16857 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16858
16859 POSIX header file wrappers.
16860
16861 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
16862 equivalents.
16863 * lib/posix_wrap/ctype.h: Likewise.
16864 * lib/posix_wrap/errno.h: Likewise.
16865 * lib/posix_wrap/langinfo.h: Likewise.
16866 * lib/posix_wrap/limits.h: Likewise.
16867 * lib/posix_wrap/localcharset.h: Likewise.
16868 * lib/posix_wrap/stdint.h: Likewise.
16869 * lib/posix_wrap/stdio.h: Likewise.
16870 * lib/posix_wrap/stdlib.h: Likewise.
16871 * lib/posix_wrap/string.h: Likewise.
16872 * lib/posix_wrap/sys/types.h: Likewise.
16873 * lib/posix_wrap/unistd.h: Likewise.
16874 * lib/posix_wrap/wchar.h: Likewise.
16875 * lib/posix_wrap/wctype.h: Likewise.
16876 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
16877 (grub_script.yy.h): Likewise.
16878 * script/yylex.l: Remove POSIX emulation #defines.
16879 * Makefile.in (POSIX_CFLAGS): New variable.
16880 (GNULIB_UTIL_CFLAGS): Likewise.
16881
16882 Regexp support.
16883
16884 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
16885 (regexp_mod_SOURCES): New variable.
16886 (regexp_mod_CFLAGS): Likewise.
16887 (regexp_mod_LDFLAGS): Likewise.
16888 * commands/regexp.c: New file.
16889 * gnulib/regcomp.c: New file. Imported from gnulib.
16890 * gnulib/regex.c: Likewise.
16891 * gnulib/regex_internal.c: Likewise.
16892 * gnulib/regex_internal.h: Likewise.
16893 * gnulib/regexec.c: Likewise.
16894 * gnulib/regex.h: Likewise.
16895
16896 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16897
16898 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
16899 unsupported video mode types.
16900
16901 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
16904
16905 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16906
16907 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
16908 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
16909
16910 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
16911
16912 Remove unused grub_vga_get_font.
16913
16914 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
16915 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
16916
16917 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16918
16919 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
16920 * include/grub/misc.h: Likewise.
16921
16922 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16923
16924 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
16925 for which failure is fatal.
16926
16927 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16928
16929 * util/grub-install.in: Use mkdir -p to create grub directory.
16930 * util/i386/efi/grub-install.in: Likewise.
16931 * util/ieee1275/grub-install.in: Likewise.
16932
16933 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16934
16935 * Makefile.in (LEX): new variable.
16936
16937 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
16938
16939 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
16940 `=' and added double quotes on operands of this equality test.
16941
16942 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
16943
16944 * Makefile.in (uninstall): Remove a leftover debug echo.
16945 Reported by: Grégoire Sutre
16946
16947 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
16948
16949 MIPS multiboot2 support.
16950
16951 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
16952 (multiboot2_mod_SOURCES): New variable.
16953 (multiboot2_mod_CFLAGS): Likewise.
16954 (multiboot2_mod_LDFLAGS): Likewise.
16955 (multiboot2_mod_ASFLAGS): Likewise.
16956 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
16957 definition.
16958 (MULTIBOOT_ENTRY_REGISTER): Likewise.
16959 (MULTIBOOT_MBI_REGISTER): Likewise.
16960 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
16961 (MULTIBOOT_ELF32_MACHINE): Likewise.
16962 (MULTIBOOT_ELF64_MACHINE): Likewise.
16963 * include/grub/mips/multiboot.h: New file.
16964 * include/grub/video.h (grub_video_driver_id): New type
16965 GRUB_VIDEO_DRIVER_SM712.
16966 (grub_video_get_info_and_fini): Export.
16967 (grub_video_get_palette): Likewise.
16968 (grub_video_get_driver_id): Likewise.
16969 * include/multiboot2.h: Resynced with spec.
16970 * loader/i386/multiboot.c: Moved from here ...
16971 * loader/multiboot.c: ... here. All users updated.
16972 (grub_multiboot_boot): Use platform-specific macros.
16973 * loader/i386/multiboot_elfxx.c: Moved from here ...
16974 * loader/multiboot_elfxx.c: ... here. All users updated.
16975 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
16976 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
16977 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
16978
16979 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 Import gnulib argp module.
16982
16983 * gnulib/argp-ba.c: New file.
16984 * gnulib/argp-eexst.c: Likewise.
16985 * gnulib/argp-fmtstream.c: Likewise.
16986 * gnulib/argp-fmtstream.h: Likewise.
16987 * gnulib/argp-fs-xinl.c: Likewise.
16988 * gnulib/argp-help.c: Likewise.
16989 * gnulib/argp-namefrob.h: Likewise.
16990 * gnulib/argp-parse.c: Likewise.
16991 * gnulib/argp-pin.c: Likewise.
16992 * gnulib/argp-pv.c: Likewise.
16993 * gnulib/argp-pvh.c: Likewise.
16994 * gnulib/argp-version-etc.c: Likewise.
16995 * gnulib/argp-version-etc.h: Likewise.
16996 * gnulib/argp-xinl.c: Likewise.
16997 * gnulib/argp.h: Likewise.
16998
16999 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17000
17001 * kern/device.c (grub_device_iterate): Clear errors after failed
17002 opening device.
17003
17004 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
17007 returned by firmware.
17008
17009 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17010
17011 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
17012 compilation on coreboot and qemu
17013
17014 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
17015
17016 * include/multiboot2.h: Resync with spec.
17017
17018 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 Multiboot2 tag support
17021
17022 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
17023 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
17024 Remove loader/multiboot_loader.c.
17025 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
17026 (grub_multiboot2_real_boot): Likewise.
17027 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
17028 (grub_get_multiboot_mmap_count): New proto.
17029 (grub_fill_multiboot_mmap): Likewise.
17030 (grub_multiboot_set_video_mode): Likewise.
17031 (grub_multiboot_set_console): Likewise.
17032 (grub_multiboot_load): Likewise.
17033 (grub_multiboot_load_elf): Likewise.
17034 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
17035 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
17036 * include/multiboot.h: Resynced with specification.
17037 * include/multiboot2.h: Resynced with specification.
17038 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
17039 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
17040 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
17041 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
17042 users updated.
17043 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
17044 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
17045 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
17046 Removed.
17047 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
17048 Moved from here...
17049 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
17050 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17051 Moved from here...
17052 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
17053 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
17054 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
17055 All users updated.
17056 * loader/i386/multiboot_mbi2.c: New file.
17057
17058 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
17059
17060 Resync with gnulib.
17061
17062 * Makefile.in (GNULIB_CFLAGS): New variable.
17063 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
17064 (grub_script_check_CFLAGS): New variable.
17065 * gnulib/alloca.h: Resync with gnulib.
17066 * gnulib/error.c: Likewise.
17067 * gnulib/error.h: Likewise.
17068 * gnulib/fnmatch.c: Likewise.
17069 * gnulib/fnmatch_loop.c: Likewise.
17070 * gnulib/getdelim.c: Likewise.
17071 * gnulib/getline.c: Likewise.
17072 * gnulib/getopt.c: Likewise.
17073 * gnulib/getopt1.c: Likewise.
17074 * gnulib/getopt_int.h: Likewise.
17075 * gnulib/gettext.h: Likewise.
17076 * gnulib/progname.c: Likewise.
17077 * gnulib/progname.h: Likewise.
17078
17079 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
17080
17081 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
17082 which is the case with --disabled-nls.
17083
17084 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
17085 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
17086 * util/misc.c: Likewise.
17087 * util/mkisofs/mkisofs.c: Likewise.
17088 * util/mkisofs/mkisofs.h: Likewise.
17089
17090 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
17091
17092 Simplify Apple CC support.
17093
17094 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
17095 Add 0 byte at the end not to have a symbol with empty target.
17096 * mmap/i386/pc/mmap_helper.S: Likewise.
17097 * genmk.rb: Ignore errors 2030 and 2050.
17098 * kern/i386/pc/startup.S: Use LOCAL when possible.
17099
17100 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
17101
17102 Testcase and the fix for final semicolon on cmdline.
17103
17104 * tests/grub_script_final_semicolon.in: New testcase.
17105 * conf/tests.rmk: Rules for the new testcase.
17106 * script/parser.y: Grammar fix.
17107
17108 2010-03-26 BVK Chaitanya <bvk@localhost>
17109
17110 Blank lines testcase for GRUB script.
17111
17112 * tests/grub_script_blanklines.in: New testcase.
17113 * conf/tests.rmk: Rules for the new testcase.
17114
17115 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17116
17117 Don't use __FILE__.
17118
17119 * genmk.rb: Add -DGRUB_FILE to all C targets.
17120 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
17121 * include/grub/list.h: Likewise.
17122 * include/grub/misc.h: Likewise.
17123 * include/grub/mm.h: Likewise.
17124 * include/grub/test.h: Likewise.
17125 * kern/mm.c: Likewise.
17126 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17127
17128 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17129
17130 Sunpc partitions support.
17131
17132 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
17133 (grub_fstest_SOURCES): Likewise.
17134 (pkglib_MODULES): Add part_sunpc.mod.
17135 (part_sunpc_mod_SOURCES): New variable.
17136 (part_sunpc_mod_CFLAGS): Likewise.
17137 (part_sunpc_mod_LDFLAGS): Likewise.
17138 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
17139 * partmap/sunpc.c: New file.
17140
17141 2010-03-26 BVK Chaitanya <bvk@localhost>
17142
17143 For loop support to GRUB script.
17144
17145 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
17146 (grub_script_create_cmdfor): New function prototype.
17147 (grub_script_execute_cmdfor): New function prototype.
17148 * script/execute.c (grub_script_execute_cmdfor): New function.
17149 * script/parser.y (command): New for command.
17150 (forcmd): New grammar rule.
17151 * script/script.c (grub_script_create_cmdfor): New function.
17152 * util/grub-script-check.c (grub_script_execute_cmdfor): New
17153 function.
17154 * tests/grub_script_for1.in: New testcase.
17155 * conf/tests.rmk: Rules for new testcase.
17156
17157 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17158
17159 Nested partitions
17160
17161 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
17162 'partition' is NULL, grub_partition_get_start already does that.
17163 * commands/loadenv.c (check_blocklists): Likewise.
17164 (write_blocklists): Likewise.
17165 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
17166 (grub_fstest_SOURCES): Likewise.
17167 (pkglib_MODULES): Add part_bsd.mod.
17168 (part_bsd_mod_SOURCES): New variable.
17169 (part_bsd_mod_CFLAGS): Likewise.
17170 (part_bsd_mod_LDFLAGS): Likewise.
17171 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
17172 (grub_emu_SOURCES): Likewise.
17173 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17174 * include/grub/bsdlabel.h: New file.
17175 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
17176 'get_name'.
17177 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
17178 (grub_partition_map_list): New variable.
17179 (grub_partition_map_register): Inline.
17180 (grub_partition_map_unregister): Likewise.
17181 (FOR_PARTITION_MAPS): New macro.
17182 (grub_partition_map_iterate): Removed.
17183 (grub_partition_get_start): Handle nested partitions.
17184 * include/grub/msdos_partition.h: Remove bsd-related entries.
17185 (grub_pc_partition): Remove.
17186 * kern/disk.c (grub_disk_close): Free partition data.
17187 (grub_disk_adjust_range): Handle nested partitions.
17188 * kern/partition.c (grub_partition_map_probe): New function.
17189 (grub_partition_probe): Parse name to number, handle subpartitions.
17190 (get_partmap): New function.
17191 (grub_partition_iterate): Handle subpartitions.
17192 (grub_partition_get_name): Likewise.
17193 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
17194 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
17195 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
17196 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
17197 Set 'number'.
17198 (acorn_partition_map_probe): Remove.
17199 (acorn_partition_map_get_name): Likewise.
17200 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
17201 Set 'number'.
17202 Set 'index' to 0 since there can be only one partition entry per sector.
17203 (amiga_partition_map_probe): Remove.
17204 (amiga_partition_map_get_name): Likewise.
17205 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
17206 Set 'number'.
17207 Set 'offset' and 'index' to real positions of partitions.
17208 (apple_partition_map_probe): Remove.
17209 (apple_partition_map_get_name): Likewise.
17210 * partmap/bsdlabel.c: New file.
17211 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
17212 Set 'number'.
17213 Allocate 'data' so it can be correctly freed.
17214 Set 'index' to offset inside sector.
17215 (gpt_partition_map_probe): Remove.
17216 (gpt_partition_map_get_name): Likewise.
17217 * partmap/msdos.c (grub_partition_parse): Remove.
17218 (pc_partition_map_iterate): Don't force raw access.
17219 Set 'number'.
17220 Make 'ext_offset' a local variable.
17221 (pc_partition_map_probe): Remove.
17222 (pc_partition_map_get_name): Remove.
17223 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
17224 Set 'number'.
17225 (sun_partition_map_probe): Remove.
17226 (sun_partition_map_get_name): Likewise.
17227 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
17228 (grub_pcpart_type): Likewise.
17229 * util/hostdisk.c (open_device): Handle new numbering scheme.
17230 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
17231 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
17232 * util/grub-probe.c (probe_partmap): Handle nested paritions.
17233 * util/grub-install.in: Insert all subpartition modules.
17234 * util/ieee1275/grub-install.in: Likewise.
17235
17236 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
17237
17238 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
17239 grammar.
17240
17241 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
17242
17243 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
17244
17245 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
17246
17247 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
17248 match where 'make install' puts them.
17249 * util/i386/efi/grub-install.in: Likewise.
17250
17251 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
17252
17253 * .bzrignore: Add gentrigtables, grub-script-check,
17254 grub_script_check_init.c, grub_script_check_init.h, and
17255 trigtables.c.
17256
17257 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
17258
17259 * kern/parser.c: Indented.
17260
17261 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17262
17263 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
17264
17265 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17266
17267 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
17268 alpha_mask_size == 0 case.
17269
17270 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
17271
17272 GRUB shell lexer and parser improvements.
17273
17274 * conf/any-emu.rmk: Build rule updates.
17275 * conf/common.rmk: Likewise.
17276 * conf/i386-coreboot.rmk: Likewise.
17277 * conf/i386-efi.rmk: Likewise.
17278 * conf/i386-ieee1275.rmk: Likewise.
17279 * conf/i386-pc.rmk: Likewise.
17280 * conf/powerpc-ieee1275.rmk: Likewise.
17281 * conf/x86_64-efi.rmk: Likewise.
17282
17283 * configure.ac: Configure check for flex.
17284
17285 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
17286 types.
17287 (grub_lexer_param): Struct member updates.
17288 (grub_parser_param): Likewise.
17289 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
17290 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
17291 (grub_script_lexer_init): Prototype update.
17292 (grub_script_lexer_record_start): Likewise.
17293 (grub_script_lexer_record_stop): Likewise.
17294 (grub_script_lexer_yywrap): New function prototype.
17295 (grub_script_lexer_fini): Likewise.
17296 (grub_script_execute_argument_to_string): Removed by...
17297 (grub_script_execute_argument_to_argv): ...better version.
17298
17299 * script/execute.c (ROUND_UPTO): New macro.
17300 (grub_script_execute_cmdline): Out of memory fixes.
17301 (grub_script_execute_menuentry): Likewise.
17302 (grub_script_execute_argument_to_string): Removed. Update all
17303 users by...
17304 (grub_script_execute_argument_to_argv): ...better version.
17305 * script/function.c (grub_script_function_create): Use
17306 grub_script_execute_argument_to_argv instead of
17307 grub_script_execute_argument_to_string.
17308
17309 * script/lexer.c (check_varstate): Removed.
17310 (check_textstate): Removed.
17311 (grub_script_lexer_record_start): Likewise.
17312 (grub_script_lexer_record_stop): Likewise.
17313 (recordchar): Replaced with...
17314 (grub_script_lexer_record): ...new function.
17315 (nextchar): Removed.
17316 (grub_script_lexer_init): Rewritten.
17317 (grub_script_yylex): Rewritten.
17318 (append_newline): New function.
17319 (grub_script_lexer_yywrap): New function.
17320 (grub_script_lexer_fini): New function.
17321 (grub_script_yyerror): Sets error flag.
17322
17323 * script/yylex.l: New file.
17324 (grub_lexer_yyfree): Wrapper for flex yyffre.
17325 (grub_lexer_yyalloc): Likewise.
17326 (grub_lexer_yyrealloc): Likewise.
17327 * script/parser.y: Refactored.
17328
17329 * script/script.c (grub_script_arg_add): Out of memory fixes.
17330 (grub_script_add_arglist): Likewise.
17331 (grub_script_create_cmdline): Likewise.
17332 (grub_script_create_cmdmenu): Likewise.
17333 (grub_script_add_cmd): Likewise.
17334 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
17335 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
17336 unnecessary code.
17337
17338 * tests/grub_script_echo1.in: New testcase.
17339 * tests/grub_script_vars1.in: New testcase.
17340 * tests/grub_script_echo_keywords.in: New testcase.
17341
17342 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17343
17344 Remove some redundancy in build system.
17345
17346 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
17347 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
17348 (TARGET_LDFLAGS): Add -nostdlib.
17349 (TARGET_IMG_LDFLAGS): Likewise.
17350 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
17351 anything since mmap isn't available.
17352 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
17353 Add util/time.c.
17354 (pkglib_MODULES): Remove reboot.mod.
17355 (reboot_mod_SOURCES): Removed.
17356 (reboot_mod_CFLAGS): Likewise.
17357 (reboot_mod_LDFLAGS): Likewise.
17358 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
17359 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
17360 (DEFSYMFILES): Add kernel_syms.lst.
17361 (kernel_img_HEADERS): Add common headers.
17362 (symlist.c): New target.
17363 (kernel_syms.lst): Likewise.
17364 (pkglib_MODULES): Add memdisk.mod.
17365 (memdisk_mod_SOURCES): New variable.
17366 (memdisk_mod_CFLAGS): Likewise.
17367 (memdisk_mod_LDFLAGS): Likewise.
17368 (pkglib_MODULES): Add reboot.mod.
17369 (reboot_mod_SOURCES): New variable.
17370 (reboot_mod_CFLAGS): Likewise.
17371 (reboot_mod_LDFLAGS): Likewise.
17372 (pkglib_MODULES): Add date.mod.
17373 (date_mod_SOURCES): New variable.
17374 (date_mod_CFLAGS): Likewise.
17375 (date_mod_LDFLAGS): Likewise.
17376 (pkglib_MODULES): Add datehook.mod.
17377 (datehook_mod_SOURCES): New variable.
17378 (datehook_mod_CFLAGS): Likewise.
17379 (datehook_mod_LDFLAGS): Likewise.
17380 (pkglib_MODULES): Add lsmmap.mod.
17381 (lsmmap_mod_SOURCES): New variable.
17382 (lsmmap_mod_CFLAGS): Likewise.
17383 (lsmmap_mod_LDFLAGS): Likewise.
17384 (pkglib_MODULES): Add boot.mod.
17385 (boot_mod_SOURCES): New variable.
17386 (boot_mod_CFLAGS): Likewise.
17387 (boot_mod_LDFLAGS): Likewise.
17388 * conf/i386-coreboot.rmk: Removed redundant parts.
17389 * conf/i386-ieee1275.rmk: Likewise.
17390 * conf/i386-pc.rmk: Likewise.
17391 * conf/mips-yeeloong.rmk: Likewise.
17392 * conf/mips.rmk: Likewise.
17393 * conf/powerpc-ieee1275.rmk: Likewise.
17394 * conf/sparc64-ieee1275.rmk: Likewise.
17395 * conf/x86_64-efi.rmk: Likewise.
17396 * conf/i386-coreboot.rmk: Moved qemu parts ..
17397 * conf/i386-qemu.rmk: ... here
17398 * conf/i386-efi.rmk: Moved common parts to...
17399 * conf/x86-efi.rmk: ... here.
17400 * conf/i386.rmk: Added modules common to all x86 variants.
17401 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
17402 * disk/memdisk.c: Remove grub/machine/kernel.h.
17403 * gensymlist.sh.in: Include symbol.h.
17404 * hook/datehook.c: Correct module name.
17405 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
17406 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
17407 * include/grub/i386/efi/serial.h: New file.
17408 * include/grub/x86_64/efi/serial.h: Likewise.
17409 * util/time.c: Likewise.
17410 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
17411
17412 2010-03-14 Colin King <colin.king@ubuntu.com>
17413 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17414
17415 Shrink the pre-partition-table part of boot.img by eight bytes.
17416
17417 * boot/i386/pc/boot.S (ERR): New macro.
17418 (chs_mode): Use ERR.
17419 (geometry_error): Likewise.
17420 (hd_probe_error): Remove. This is only used once, so we wrwite
17421 it inline instead.
17422 (read_error): Instead of printing read_error_string, just set up
17423 %si and fall through to ...
17424 (error_message): ... this new function, also used by ERR.
17425
17426 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17427
17428 Speed up consecutive hostdisk operations on the same device.
17429
17430 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
17431 (grub_util_biosdisk_open): Initialise disk->data.
17432 (struct linux_partition_cache): New structure.
17433 (linux_find_partition): Cache partition start positions; these are
17434 expensive to compute on every read and write.
17435 (open_device): Cache open file descriptor in disk->data, so that we
17436 don't have to reopen it and flush the buffer cache for consecutive
17437 operations on the same device.
17438 (grub_util_biosdisk_close): New function.
17439 (grub_util_biosdisk_dev): Set `close' member.
17440
17441 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
17442 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
17443 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17444 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
17445 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
17446
17447 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17448
17449 Compile parts of grub-emu as modules.
17450
17451 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
17452 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
17453 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
17454 (all-local): Add $(GRUB_EMU).
17455 (install-local): Install $(GRUB_EMU).
17456 (uninstall): Uninstall $(GRUB_EMU).
17457 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
17458 * kern/dl.c: Likewise.
17459 * commands/sleep.c: Not include machine/time.h.
17460 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
17461 (COMMON_CFLAGS): Likewise.
17462 (sbin_UTILITIES): Remove grub-emu.
17463 (grub_emu_SOURCES): Removed.
17464 (kernel_img_RELOCATABLE): New variable.
17465 (pkglib_PROGRAMS): Add kernel.img.
17466 (kernel_img_SOURCES): New variable
17467 (kernel_img_CFLAGS): Likewise.
17468 (kernel_img_LDFLAGS): Likewise.
17469 (TARGET_NO_STRIP): Likewise.
17470 (TARGET_NO_DYNAMIC_MODULES): Likewise.
17471 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
17472 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
17473 (grub-emu): New target.
17474 (GRUB_EMU): New variable.
17475 * configure.ac: Whitelist -emu as possible x86_64 architecture.
17476 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
17477 * loader/xnu.c: Likewise.
17478 * include/grub/pci.h: Likewise.
17479 * genemuinit.sh: New file.
17480 * genemuinitheader.sh: Likewise.
17481 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
17482 Support TARGET_NO_DYNAMIC_MODULES.
17483 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
17484 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
17485 * disk/loopback.c: Likewise.
17486 * font/font_cmd.c: Likewise.
17487 * partmap/acorn.c: Likewise.
17488 * partmap/amiga.c: Likewise.
17489 * partmap/apple.c: Likewise.
17490 * partmap/gpt.c: Likewise.
17491 * partmap/msdos.c: Likewise.
17492 * partmap/sun.c: Likewise.
17493 * parttool/msdospart.c: Likewise.
17494 * term/gfxterm.c: Likewise.
17495 * video/bitmap.c: Likewise.
17496 * video/readers/jpeg.c: Likewise.
17497 * video/readers/png.c: Likewise.
17498 * video/readers/tga.c: Likewise.
17499 * video/video.c: Likewise.
17500 * util/grub-emu.c (read_command_list): Removed.
17501 (main): Don't call util_init_nls.
17502 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
17503 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
17504
17505 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17506
17507 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
17508 date.mod, datehook.mod.
17509 (datetime_mod_SOURCES): New variable.
17510 (datetime_mod_CFLAGS): Likewise.
17511 (datetime_mod_LDFLAGS): Likewise.
17512 (date_mod_SOURCES): Likewise.
17513 (date_mod_CFLAGS): Likewise.
17514 (date_mod_LDFLAGS): Likewise.
17515 (datehook_mod_SOURCES): Likewise.
17516 (datehook_mod_CFLAGS): Likewise.
17517 (datehook_mod_LDFLAGS): Likewise.
17518 * conf/sparc64-ieee1275.rmk: Likewise.
17519 * lib/ieee1275/datetime.c: New file.
17520
17521 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17522
17523 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
17524 (ieee1275_fb_mod_SOURCES): New variable.
17525 (ieee1275_fb_mod_CFLAGS): Likewise.
17526 (ieee1275_fb_mod_LDFLAGS): Likewise.
17527 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
17528 New proto.
17529 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
17530 (HEAP_MAX_ADDR): Likewise.
17531 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
17532 type.
17533 Correct stop condition.
17534 (grub_ieee1275_devices_iterate): New function.
17535 * video/ieee1275.c: New file.
17536
17537 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17538
17539 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
17540
17541 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
17542 as scratch.
17543 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
17544 SCRATCH_PAD_DISKBOOT as scratch.
17545 (bootit): Pass Openfirmware pointer in %o4.
17546 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
17547 of 0x200000.
17548 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
17549 with util/grub-mkrawimage.c.
17550 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
17551 * include/grub/aout.h (AOUT_MID_SUN): New definition.
17552 (grub_aout_get_type) [GRUB_UTIL]: Removed.
17553 (grub_aout_load) [GRUB_UTIL]: Likewise.
17554 * include/grub/kernel.h (grub_modules_get_end): New proto.
17555 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
17556 (SCRATCH_PAD_BOOT): New definition.
17557 (SCRATCH_PAD_DISKBOOT): Likewise.
17558 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
17559 * include/grub/sparc64/ieee1275/ieee1275.h
17560 (grub_ieee1275_original_stack): New variable
17561 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17562 New definition
17563 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
17564 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
17565 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
17566 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
17567 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
17568 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
17569 (grub_platform_image_format_t): New type.
17570 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
17571 * kern/main.c (grub_modules_get_end)
17572 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
17573 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
17574 (codestart): Switch stacks.
17575 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
17576 variable.
17577 (grub_heap_init): Use grub_modules_get_end.
17578 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
17579 stack.
17580 * util/grub-mkrawimage.c (generate_image): Support sparc64.
17581 (main): Likewise.
17582 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
17583
17584 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
17585
17586 * util/grub-mkrescue.in: Base ISO UUID on UTC.
17587
17588 2010-03-08 Matt Kraai <kraai@ftbfs.org>
17589
17590 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
17591 bug #559005).
17592
17593 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
17594
17595 * genmoddep.awk: Output all missing symbols and not only first.
17596
17597 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17598
17599 * NEWS: Put the date of 1.98 release.
17600
17601 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17602
17603 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
17604 ft2build.h.
17605
17606 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17607
17608 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
17609 completition in the middle of string.
17610
17611 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17612
17613 * util/grub-mkrescue.in: Use mktemp with explicit template.
17614
17615 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17616
17617 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
17618
17619 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17620
17621 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
17622 right pointer.
17623
17624 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17625
17626 Fix FreeBSD compilation.
17627
17628 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
17629 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
17630
17631 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17632
17633 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
17634
17635 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17636
17637 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
17638
17639 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17640
17641 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
17642
17643 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
17644
17645 Support relative image path in theme file.
17646
17647 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
17648 (image_set_property): Handle theme_dir and relative path.
17649
17650 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17651
17652 * configure.ac: Alias amd64 to x86_64.
17653
17654 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17655
17656 * NEWS: mention multiboot on EFI.
17657
17658 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17659
17660 * kern/main.c (grub_load_modules): Handle errors from init functions of
17661 embeded modules.
17662
17663 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17664
17665 * normal/autofs.c (autoload_fs_module): Handle errors.
17666
17667 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17668
17669 Disable linux.mod on qemu-mips since it's not functional and leads
17670 to compilation failure.
17671
17672 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
17673 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
17674 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
17675 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
17676 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
17677 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
17678 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
17679 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
17680 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
17681 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
17682 Reported by: BVK Chaitanya
17683
17684 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
17685
17686 * INSTALL: Add gettext as a dependency and add qemu to a new section
17687 "Prerequisites for make-check".
17688
17689 2010-03-04 Christian Franke <franke@computer.org>
17690
17691 * util/grub-pe2elf.c: Add missing include "progname.h".
17692
17693 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17694
17695 * normal/crypto.c (read_crypto_list): Fix a typo.
17696 Reported by: Seth Goldberg.
17697
17698 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17699
17700 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
17701 Reported by: Seth Goldberg.
17702
17703 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17704
17705 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
17706 ascii.bitmaps.
17707
17708 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17709
17710 * genmk.rb: Remove terminal*.lst in make clean.
17711 Reported by: Seth Goldberg.
17712
17713 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17714
17715 * util/i386/efi/grub-install.in: Copy gettext files.
17716
17717 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17718
17719 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
17720
17721 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17722
17723 Wait for user entry basing on presence of output rather than on errors.
17724
17725 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
17726 (grub_install_newline_hook): Likewise.
17727 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
17728 * normal/menu.c (show_menu): Check line_counter to determine presence
17729 of output.
17730 * normal/term.c (grub_normal_line_counter): New variable.
17731 (grub_normal_get_line_counter): New function.
17732 (grub_install_newline_hook): Likewise.
17733
17734 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17735
17736 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
17737
17738 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17739
17740 * configure.ac: Update version to 1.98.
17741
17742 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
17743
17744 * util/grub.d/10_linux.in (linux_entry): Don't default to
17745 gfxpayload=keep if Linux doesn't support video handover.
17746
17747 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
17748
17749 Don't compile video modules on yeeloong since video subsystem is part
17750 of kernel.
17751
17752 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
17753 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
17754 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
17755 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
17756 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
17757 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
17758 * include/grub/bitmap_scale.h: Likewise.
17759 * include/grub/bufio.h: Likewise.
17760 * include/grub/font.h: Likewise.
17761 * include/grub/gfxterm.h: Likewise.
17762 * include/grub/video.h: Likewise.
17763 * include/grub/vbe.h: Don't include video_fb.h.
17764 * video/i386/pc/vbe.c: Include video_fb.h.
17765 * commands/i386/pc/vbetest.c: Include video.h.
17766
17767 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
17768
17769 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
17770 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
17771 default entry if GRUB_SAVEDEFAULT=true. This allows using
17772 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
17773 saving a new default on every boot.
17774
17775 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17776
17777 * normal/crypto.c (read_crypto_list): Fix a memory leak.
17778 * normal/term.c (read_terminal_list): Likewise.
17779 * normal/main.c (grub_normal_init_page): Likewise.
17780 (grub_normal_read_line_real): Likewise.
17781
17782 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17783
17784 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
17785 memory leak.
17786 Reported by: Seth Goldberg.
17787
17788 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
17789
17790 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
17791 duplicate declaration of `start'.
17792
17793 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17794
17795 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
17796 filename.
17797 Reported by: Georgy Buranov
17798
17799 2010-02-20 Carles Pina i Estany <carles@pina.cat>
17800
17801 * util/grub-mkrawimage.c (usage): Change string formatting to
17802 improve gettext.
17803
17804 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17805
17806 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
17807 backspace keys.
17808
17809 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17810
17811 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
17812 Reported by: Michael Suchanek.
17813
17814 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
17815
17816 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
17817 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
17818
17819 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
17820
17821 Remove any reference to non-free fonts.
17822
17823 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
17824 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
17825 uses non-free components.
17826 * font/font.c (grub_font_get_name): Remove example name.
17827 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
17828 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17829 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
17830 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
17831
17832 2010-02-16 Georgy Buranov <gburanov@gmail.com>
17833
17834 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
17835
17836 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17837
17838 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
17839 Double divisor.
17840 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
17841 features.
17842 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
17843
17844 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 * gensymlist.sh.in: Use TARGET_CC instead of CC.
17847
17848 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17849
17850 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
17851 * docs/grub.texi (Command-line and menu entry commands): Document play
17852 command.
17853
17854 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17855
17856 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
17857 parse arguments as inline tempo and notes. Move code for playing notes
17858 to...
17859 (play): ... new function.
17860
17861 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17862
17863 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
17864 grub_uint16_t instead of short.
17865 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
17866 disk from little endian to cpu endianness.
17867
17868 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
17869
17870 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
17871 GRUB_TICKS_PER_SECOND instead of 120.
17872
17873 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17874
17875 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
17876 escape sequence after \e.
17877
17878 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17879
17880 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
17881 non-ASCII characters.
17882
17883 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17884
17885 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
17886 set root in single quotes to prevent \, from being unescaped.
17887
17888 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17889
17890 Prevent unknown commands from stopping menuentry execution.
17891
17892 * script/execute.c (grub_script_execute_cmdline): Print error after
17893 unknown command.
17894
17895 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17896
17897 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
17898 Reported by: Pavel Pisa.
17899
17900 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17901
17902 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
17903
17904 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17905
17906 Merge grub_ieee1275_map_physical into grub_map and rename to
17907 grub_ieee1275_map
17908
17909 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
17910 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
17911 Remove.
17912 * kern/ieee1275/openfw.c (grub_map): Rename to ...
17913 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
17914 necessary.
17915 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
17916
17917 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17918
17919 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
17920 opening and not after.
17921
17922 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17923
17924 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
17925 constants.
17926
17927 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17928
17929 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
17930 (alloc_phys): Use ALIGN_UP instead of align_addr.
17931
17932 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17933
17934 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
17935
17936 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17937
17938 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
17939
17940 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
17943 verbose dprintf.
17944
17945 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17946
17947 Fix over-4GiB seek on sparc64.
17948
17949 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
17950 Replace pos_i and pos_lo with pos. All users updated.
17951 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
17952 New constant.
17953 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
17954 Likewise.
17955 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
17956 and pos_lo.
17957
17958 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17959
17960 * util/grub-mkrawimage.c (main): Call set_program_name.
17961
17962 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17963
17964 Properly align 64-bit targets.
17965
17966 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
17967 (generate_image): Use ALIGN_ADDR.
17968
17969 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17970
17971 Properly create cross-endian images.
17972
17973 * include/grub/types.h (grub_host_to_target_addr): New macro
17974 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
17975
17976 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17977
17978 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
17979
17980 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17981
17982 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
17983
17984 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
17985 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
17986 (grub_linux_boot): Divide by 64K when on VESA.
17987
17988 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17989
17990 Support GRUB_GFXPAYLOAD_LINUX.
17991
17992 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
17993 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
17994
17995 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
17996
17997 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
17998 to show messages instead of discarding them.
17999 Process errors after executing command and not before. Keep old method
18000 too as precaution.
18001
18002 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
18003
18004 * configure.ac: Check for ft2build.h.
18005
18006 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18007
18008 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
18009
18010 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18011
18012 * genkernsyms.sh.in: Use TARGET_CC.
18013
18014 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
18015
18016 * NEWS: Update.
18017
18018 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18019
18020 * include/grub/multiboot2.h: Remove leftover file.
18021 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
18022 * include/grub/partition.h [GRUB_UTIL]: Likewise.
18023
18024 2010-02-07 Yves Blusseau <blusseau@zetam.org>
18025
18026 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
18027
18028 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18029
18030 Fix warnings in grub-emu when compiling with maximum warning options.
18031
18032 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
18033 (grub_arch_modules_addr): Return 0 and not NULL.
18034 * util/misc.c (ENABLE_RELOCATABLE): New definition.
18035 (xstrdup): Use newstr instead of dup.
18036 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
18037 of disk to dsk to avoid shadowing.
18038 (find_free_slot): Fix prototype.
18039 * util/getroot.c (grub_util_is_dmraid): Make static.
18040 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
18041 Add missing prototype.
18042 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
18043
18044 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18045
18046 * loader/i386/linux.c (grub_linux_setup_video): Handle error
18047 appropriately.
18048
18049 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18050
18051 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
18052 code out.
18053
18054 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18055
18056 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
18057 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
18058 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
18059 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
18060 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
18061 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
18062
18063 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18064
18065 * include/grub/err.h (grub_err_printf): Don't export.
18066
18067 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18068
18069 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
18070
18071 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18072
18073 * include/grub/i18n.h (grub_gettext_dummy): Removed.
18074 * kern/misc.c (grub_gettext_dummy): Make static.
18075
18076 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
18079 by non-valid ones.
18080 * kern/term.c (grub_putchar): Likewise.
18081
18082 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18083
18084 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
18085 buggy hook call and memory leak.
18086
18087 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18088
18089 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
18090
18091 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18092
18093 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
18094
18095 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18096
18097 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
18098 modevar.
18099 Return grub_errno on allocation error.
18100
18101 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18102
18103 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
18104
18105 2010-02-06 Yves Blusseau <blusseau@zetam.org>
18106
18107 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
18108 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
18109
18110 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18111
18112 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
18113 non-pxe disk.
18114 (grub_pxefs_open): Likewise.
18115
18116 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18117
18118 * util/grub.d/10_hurd.in: Add --class information to menuentries.
18119 * util/grub.d/10_kfreebsd.in: Likewise.
18120 * util/grub.d/10_linux.in: Likewise.
18121
18122 2010-02-06 Colin D Bennett <colin@gibibit.com>
18123
18124 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
18125 (gfxmenu_mod_SOURCES): New variable.
18126 (gfxmenu_mod_CFLAGS): Likewise.
18127 (gfxmenu_mod_LDFLAGS): Likewise.
18128 * include/grub/term.h (grub_term_set_current_output): Declare
18129 argument as const.
18130 * docs/gfxmenu-theme-example.txt: New file.
18131 * gfxmenu/gfxmenu.c: Likewise.
18132 * gfxmenu/gui_box.c: Likewise.
18133 * gfxmenu/gui_canvas.c: Likewise.
18134 * gfxmenu/gui_circular_progress.c: Likewise.
18135 * gfxmenu/gui_image.c: Likewise.
18136 * gfxmenu/gui_label.c: Likewise.
18137 * gfxmenu/gui_list.c: Likewise.
18138 * gfxmenu/gui_progress_bar.c: Likewise.
18139 * gfxmenu/gui_string_util.c: Likewise.
18140 * gfxmenu/gui_util.c: Likewise.
18141 * gfxmenu/icon_manager.c: Likewise.
18142 * gfxmenu/model.c: Likewise.
18143 * gfxmenu/named_colors.c: Likewise.
18144 * gfxmenu/theme_loader.c: Likewise.
18145 * gfxmenu/view.c: Likewise.
18146 * gfxmenu/widget-box.c: Likewise.
18147 * include/grub/gfxmenu_model.h: Likewise.
18148 * include/grub/gfxmenu_view.h: Likewise.
18149 * include/grub/gfxwidgets.h: Likewise.
18150 * include/grub/gui.h: Likewise.
18151 * include/grub/gui_string_util.h: Likewise.
18152 * include/grub/icon_manager.h: Likewise.
18153
18154 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18155
18156 Agglomerate scrolling in gfxterm.
18157
18158 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
18159 (grub_virtual_screen_setup): Initialise 'total_screen'.
18160 (write_char): Split to ...
18161 (paint_char): ... this ...
18162 (write_char): ... and this.
18163 (paint_char): Handle delayed scrolling.
18164 (draw_cursor): Likewise.
18165 (scroll_up): Split to ...
18166 (real_scroll): ... this ...
18167 (scroll_up): ... and this.
18168 (real_scroll): Handle multi-line scroll and draw below-the-bottom
18169 characters.
18170 (grub_gfxterm_refresh): Call real_scroll.
18171
18172 2010-02-06 Colin D Bennett <colin@gibibit.com>
18173
18174 * include/grub/misc.h (grub_iscntrl): New inline function.
18175 (grub_isalnum): Likewise.
18176 (grub_strtol): Likewise.
18177
18178 2010-02-06 Colin D Bennett <colin@gibibit.com>
18179
18180 * normal/menu_text.c (get_entry_number): Move from here ...
18181 * normal/menu.c (get_entry_number): ... moved here.
18182 * include/grub/menu.h (grub_menu_get_default_entry_index):
18183 New prototype.
18184 * normal/menu.c (grub_menu_get_default_entry_index): New function.
18185 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
18186 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
18187 (grub_menu_viewer_should_return): Likewise.
18188 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
18189 * normal/menu_text.c (run_menu): Enable menu switching.
18190 * normal/menu_viewer.c (should_return): New variable.
18191 (menu_viewer_changed): Likewise.
18192 (grub_menu_viewer_show_menu): Handle menu viewer changes.
18193 (grub_menu_viewer_should_return): New function.
18194 (menuviewer_write_hook): Likewise.
18195 (grub_menu_viewer_init): Likewise.
18196
18197 2010-02-06 Colin D Bennet <colin@gibibit.com>
18198 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18199
18200 Support for gfxterm in a window.
18201
18202 * include/grub/gfxterm.h: New file.
18203 * include/grub/video.h (struct grub_video_rect): New declaration.
18204 (grub_video_rect_t): Likewise.
18205 * term/gfxterm.c (struct grub_gfxterm_window): New type.
18206 (refcount): New variable.
18207 (render_target): Likewise.
18208 (window): Likewise.
18209 (repaint_callback): Likewise.
18210 (grub_virtual_screen_setup): Use 'render_target'.
18211 (init_window): New function.
18212 (grub_gfxterm_init_window): Likewise.
18213 (grub_gfxterm_init): Check reference counter.
18214 Use init_window.
18215 (destroy_window): New function.
18216 (grub_gfxterm_destroy_window): Likewise.
18217 (grub_gfxterm_fini): Check reference counter.
18218 Use destroy_window.
18219 (redraw_screen_rect): Restore viewport.
18220 Use 'render_target' and 'window'.
18221 Call 'repaint_callback'.
18222 (write_char): Use 'render_target'.
18223 (draw_cursor): Likewise.
18224 (scroll_up): Restore viewport.
18225 Use 'render_target' and 'window'.
18226 Call 'repaint_callback'.
18227 (grub_gfxterm_cls): Likewise.
18228 (grub_gfxterm_refresh): Use 'window'.
18229 (grub_gfxterm_set_repaint_callback): New function.
18230 (grub_gfxterm_background_image_cmd): Use 'window'.
18231 (grub_gfxterm_get_term): New function.
18232 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
18233
18234 2010-02-06 Colin D Bennett <colin@gibibit.com>
18235
18236 Bitmap scaling support.
18237
18238 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
18239 (bitmap_scale_mod_SOURCES): New variable.
18240 (bitmap_scale_mod_CFLAGS): Likewise.
18241 (bitmap_scale_mod_LDFLAGS): Likewise.
18242 * include/grub/bitmap_scale.h: New file.
18243 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
18244 (background_image_cmd_options): New variable.
18245 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
18246 (cmd): Rename and change type to ...
18247 (background_image_cmd_handle): ... this. All users updated.
18248 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
18249 * video/bitmap_scale.c: New file.
18250
18251 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18252
18253 SDL support.
18254
18255 * Makefile.in (LIBSDL): New variable.
18256 (enable_grub_emu_sdl): Likewise.
18257 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
18258 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
18259 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
18260 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
18261 * util/sdl.c: New file.
18262
18263 2010-02-06 Colin D Bennett <colin@gibibit.com>
18264 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18265
18266 Double buffering support.
18267
18268 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
18269 * include/grub/video.h: Update comment.
18270 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
18271 New type.
18272 (grub_video_fb_doublebuf_blit_init): New prototype.
18273 * term/gfxterm.c (scroll_up): Support double buffering.
18274 (grub_gfxterm_refresh): Likewise.
18275 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
18276 (grub_video_fb_doublebuf_blit_init): Likewise.
18277 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
18278 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
18279 'displayed_page', 'render_page' and 'update_screen'.
18280 (grub_video_vbe_fini): Free offscreen buffer.
18281 (doublebuf_pageflipping_commit): New function.
18282 (doublebuf_pageflipping_update_screen): Likewise.
18283 (doublebuf_pageflipping_init): Likewise.
18284 (double_buffering_init): Likewise.
18285 (grub_video_vbe_setup): Enable doublebuffering.
18286 (grub_video_vbe_swap_buffers): Implement.
18287 (grub_video_vbe_set_active_render_target): Handle double buffering.
18288 (grub_video_vbe_get_active_render_target): Likewise.
18289 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
18290 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
18291 (grub_video_vbe_enable_double_buffering): Likewise.
18292 (grub_video_vbe_swap_buffers): Use update_screen.
18293 (grub_video_set_mode): Use double buffering.
18294
18295 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18296
18297 * maintainance/gentrigtables.py: Remove.
18298 * lib/trig.c: Likewise.
18299
18300 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
18301
18302 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
18303 `trigtables.c'.
18304 (trigtables.c): New rule.
18305 (gentrigtables): Likewise.
18306 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
18307
18308 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18309
18310 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
18311 integer constants.
18312
18313 2010-02-06 Colin D Bennet <colin@gibibit.com>
18314
18315 Trigonometry support.
18316
18317 * include/grub/trig.h: New file.
18318 * lib/trig.c: Likewise.
18319 * maintainance/gentrigtables.py: Likewise.
18320 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
18321 (trig_mod_SOURCES): New variable.
18322 (trig_mod_CFLAGS): Likewise.
18323 (trig_mod_LDFLAGS): Likewise.
18324
18325 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18326
18327 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
18328 disk devices.
18329
18330 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18331
18332 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
18333 error.
18334
18335 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18336
18337 * util/hostdisk.c (open_device): Don't use partition device when reading
18338 before the partition.
18339 (grub_util_biosdisk_read): Don't read from partition and before the
18340 partition in single operation.
18341 (grub_util_biosdisk_write): Don't write to partition and before the
18342 partition in single operation.
18343
18344 2010-02-03 Torsten Landschoff <torsten@debian.org>
18345
18346 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18347 last sectors.
18348
18349 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18350
18351 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
18352 CDROM reads.
18353 (grub_biosdisk_write): Refuse to write to CDROM.
18354
18355 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18356
18357 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
18358
18359 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18360
18361 * font/font.c (find_glyph): Check that bmp_idx is available before
18362 using it.
18363 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
18364 with (font == NULL).
18365
18366 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
18367
18368 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
18369
18370 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
18371
18372 * include/grub/script_sh.h (sourcecode): Add const qualifier.
18373 * util/grub-script-check.c (getline): Fix empty lines case.
18374
18375 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
18376
18377 * Makefile.in (check): Exit with fail status when one of the tests
18378 fails.
18379 * tests/example_functional_test.c (example_test): Fix reversed assert.
18380 * tests/example_unit_test.c (example_test): Likewise.
18381
18382 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
18383
18384 * util/grub.d/10_linux.in: This script does not use any of the
18385 contents of gettext.sh, only the external command `gettext', so stop
18386 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
18387 the same prefix as GRUB.)
18388 * util/grub.d/10_kfreebsd.in: Likewise.
18389
18390 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18391
18392 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
18393 of the line.
18394
18395 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18396
18397 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18398 last sectors.
18399
18400 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18401
18402 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
18403 having a 4KiB and not 32KiB buffer size.
18404
18405 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18406
18407 * util/hostfs.c: Include `<errno.h>'.
18408 (grub_hostfs_read): Handle errors from fseeko() and fread().
18409
18410 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18411
18412 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
18413 loop when using read hooks on files whose size isn't sector-aligned.
18414
18415 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18416
18417 Remove unused parameter.
18418
18419 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
18420 (grub_iso9660_open): Remove initialization of `data->length'.
18421
18422 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18423
18424 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
18425 memleak conditions.
18426
18427 2010-01-27 Carles Pina i Estany <carles@pina.cat>
18428
18429 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
18430 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
18431
18432 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18433
18434 * util/bin2h.c (usage): Fix warning (space after backslash).
18435
18436 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18437
18438 * font/font.c: Include `grub/fontformat.h.
18439 Remove font file format constants.
18440 (grub_font_load): Use the new macros.
18441 * include/grub/fontformat.h: New file.
18442 * util/grub-mkfont.c: Include `grub/fontformat.c'.
18443 (write_font_pf2): Use the new macros.
18444
18445 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18446
18447 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
18448 does.
18449
18450 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18451
18452 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
18453
18454 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
18455 (_start): Macroify `0x7F'.
18456
18457 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
18458 (make_install_device): Use "(pxe)" as fallback prefix when booting
18459 via PXE.
18460
18461 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
18462
18463 * configure.ac: Reset LIBS after check for libgcc symbols.
18464
18465 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
18466
18467 * util/hostdisk.c (open_device): Add trailing newline to debug
18468 message.
18469
18470 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
18471
18472 * configure.ac: Check for `limits.h'.
18473 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
18474
18475 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
18476
18477 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
18478 capitalize error strings.
18479
18480 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
18481
18482 * util/grub.d/10_hurd.in: Add a recovery mode.
18483
18484 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
18485
18486 * configure.ac: Check for libgcc symbols with -nostdlib.
18487
18488 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
18489
18490 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
18491
18492 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18493
18494 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
18495 stack since heap may be unavailable at that point.
18496 (grub_ofconsole_gotoxy): Likewise.
18497
18498 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18499
18500 * configure.ac: Check for _restgpr_14_x.
18501 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
18502 and _savegpr_* prototypes.
18503
18504 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
18505
18506 Use generic grub_reboot() for i386-efi.
18507
18508 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
18509 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
18510 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
18511
18512 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18513
18514 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
18515 presence of "prefix" variable as it breaks when normal.mod is
18516 embedded.
18517
18518 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18519
18520 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
18521 stack since heap is unavailable at that point.
18522
18523 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18524
18525 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
18526 (grub_freebsd_bootinfo): Rewritten.
18527 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
18528
18529 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18530
18531 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
18532
18533 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
18534
18535 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
18536 domain now.
18537
18538 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
18539
18540 * util/misc.c (make_system_path_relative_to_its_root): Change the work
18541 around for handling "/" to the correct fix. Fix a memory leak. Use
18542 xstrdup instead of strdup.
18543
18544 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18545
18546 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
18547
18548 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18549
18550 Optimise glyph lookup by Basic Multilingual Plane lookup array.
18551
18552 * font/font.c (struct grub_font): New member 'bmp_idx'.
18553 (font_init): Initialise 'bmp_idx'.
18554 (load_font_index): Fill 'bmp_idx'.
18555 (find_glyph): Make inline. Use bmp_idx for BMP characters.
18556
18557 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18558
18559 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
18560 unnecessary calls.
18561
18562 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18563
18564 Move context handling out of the kernel.
18565
18566 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
18567 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
18568 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
18569 * conf/i386-efi.rmk: Likewise.
18570 * conf/i386-ieee1275.rmk: Likewise.
18571 * conf/i386-pc.rmk: Likewise.
18572 * conf/powerpc-ieee1275.rmk: Likewise.
18573 * conf/sparc64-ieee1275.rmk: Likewise.
18574 * conf/x86_64-efi.rmk: Likewise.
18575 * include/grub/env.h: Include grub/menu.h.
18576 (grub_env_var_type): Removed.
18577 (grub_env_var): Replaced field 'type' with 'global'.
18578 (grub_env_find): New prototype.
18579 (grub_env_context_open): Remove EXPORT_FUNC.
18580 (grub_env_context_close): Likewise.
18581 (grub_env_export): Likewise.
18582 (grub_env_set_data_slot): Removed.
18583 (grub_env_get_data_slot): Likewise.
18584 (grub_env_unset_data_slot): Likewise.
18585 (grub_env_unset_menu): New prototype.
18586 (grub_env_set_menu): Likewise.
18587 (grub_env_get_menu): Likewise.
18588 * include/grub/env_private.h: New file.
18589 * include/grub/normal.h (grub_context_init): New prototype.
18590 (grub_context_fini): Likewise.
18591 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
18592 * normal/context.c (grub_cmd_export): ... to here.
18593 * kern/env.c: Include env_private.h.
18594 (HASHSZ): Moved to include/grub/env_private.h.
18595 (grub_env_context): Likewise.
18596 (grub_env_sorted_var): Likewise.
18597 (current_context): Renamed from this ...
18598 (grub_current_context): ...to this. 'static' removed. All users updated.
18599 (grub_env_find): Removed 'static'.
18600 (grub_env_context_open): Moved to normal/context.c.
18601 (grub_env_context_close): Likewise.
18602 (grub_env_export): Likewise.
18603 (mangle_data_slot_name): Removed.
18604 (grub_env_set_data_slot): Likewise.
18605 (grub_env_get_data_slot): Likewise.
18606 (grub_env_unset_data_slot): Likewise.
18607 * kern/main.c (grub_set_root_dev): Don't export root.
18608 It will be done later.
18609 (grub_main): Don't export prefix.
18610 It will be done later.
18611 * normal/context.c: New file.
18612 * normal/main.c (free_menu): Use grub_env_unset_menu.
18613 (grub_normal_add_menu_entry): Use grub_env_get_menu.
18614 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
18615 (GRUB_MOD_INIT(normal)): Call grub_context_init.
18616 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
18617
18618 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18619
18620 setpci support.
18621
18622 * commands/setpci.c: New file.
18623 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
18624 (setpci_mod_SOURCES): New variable.
18625 (setpci_mod_CFLAGS): Likewise.
18626 (setpci_mod_LDFLAGS): Likewise.
18627
18628 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18629
18630 Byte-addressable PCI configuration space.
18631
18632 * bus/pci.c (grub_pci_make_address): Use byte address instead of
18633 dword address.
18634 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
18635 GRUB_PCI_REG_CACHELINE.
18636 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
18637 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
18638 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
18639 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
18640 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
18641 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
18642 grub_pci_make_address.
18643 (lock_rom_area): Likewise.
18644 * commands/lspci.c (grub_lspci_iter): Use macroses
18645 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
18646 of grub_pci_make_address.
18647 * disk/ata.c (grub_ata_pciinit): Likewise.
18648 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
18649 (GRUB_PCI_REG_VENDOR): Likewise.
18650 (GRUB_PCI_REG_DEVICE): Likewise.
18651 (GRUB_PCI_REG_COMMAND): Likewise.
18652 (GRUB_PCI_REG_STATUS): Likewise.
18653 (GRUB_PCI_REG_REVISION): Likewise.
18654 (GRUB_PCI_REG_CLASS): Likewise.
18655 (GRUB_PCI_REG_CACHELINE): Likewise.
18656 (GRUB_PCI_REG_LAT_TIMER): Likewise.
18657 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
18658 (GRUB_PCI_REG_BIST): Likewise.
18659 (GRUB_PCI_REG_ADDRESSES): Likewise.
18660 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18661 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18662 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18663 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18664 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18665 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18666 (GRUB_PCI_REG_CIS_POINTER): Likewise.
18667 (GRUB_PCI_REG_SUBVENDOR): Likewise.
18668 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
18669 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
18670 (GRUB_PCI_REG_CAP_POINTER): Likewise.
18671 (GRUB_PCI_REG_IRQ_LINE): Likewise.
18672 (GRUB_PCI_REG_IRQ_PIN): Likewise.
18673 (GRUB_PCI_REG_MIN_GNT): Likewise.
18674 (GRUB_PCI_REG_MAX_LAT): Likewise.
18675 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
18676 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
18677 * video/efi_uga.c (find_framebuf): Likewise.
18678 * video/sm712.c (grub_video_sm712_setup): Likewise.
18679 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
18680 space.
18681
18682 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18683
18684 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
18685 can be reliably determined to be supported.
18686
18687 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18688
18689 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
18690 that VESA is supported.
18691 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
18692 supported.
18693
18694 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18695
18696 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
18697
18698 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18699
18700 * util/misc.c (make_system_path_relative_to_its_root): Work around
18701 special-casing of "/", as previous incarnation of this routine did.
18702
18703 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18704
18705 Fix any-emu compilation.
18706
18707 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
18708 * grub_bin2h_SOURCES: New variable.
18709
18710 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18711
18712 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
18713
18714 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18715
18716 * util/grub.d/00_header.in: Fix handling of locale_dir.
18717
18718 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
18721 as possible unifont location (Gentoo).
18722 Reported by: Alexander Brüning
18723
18724 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18725
18726 Don't try to generate lists for kernel.img.
18727
18728 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
18729 (pkglib_MODULES): Remove kernel.img.
18730 (kernel_img_EXPORTS): Removed.
18731 (kernel_img_RELOCATABLE): New variable.
18732 * conf/x86_64-efi.rmk: Likewise.
18733 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
18734
18735 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18736
18737 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
18738 grub_xasprintf or grub_snprintf.
18739 (grub_vsprintf): Likewise.
18740 (grub_snprintf): New proto.
18741 (grub_vsnprintf): Likewise.
18742 (grub_xasprintf): Likewise.
18743 (grub_xvasprintf): Likewise.
18744 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
18745 (grub_sprintf): Removed.
18746 (grub_vsnprintf): New function.
18747 (grub_snprintf): Likewise.
18748 (grub_xvasprintf): Likewise.
18749 (grub_xasprintf): Likewise.
18750 (grub_vsprintf): Renamed to ...
18751 (grub_vsnprintf_real): ...this. New argument max_len.
18752
18753 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
18754
18755 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
18756 fix grub-script-check warning.
18757
18758 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18759
18760 * include/grub/font.h (grub_font_load): Fix prototype.
18761
18762 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18763
18764 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
18765
18766 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18767
18768 * include/grub/x86_64/at_keyboard.h: New file.
18769
18770 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18771
18772 * loader/mips/linux.c: Include missing grub/i18n.h.
18773
18774 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18775
18776 * normal/menu.c (notify_execution_failure): Clarify error message.
18777
18778 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18779
18780 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
18781 return value (and revert all return statements). Update users.
18782
18783 2010-01-20 Dan Merillat <debian@dan.merillat.org>
18784
18785 * kern/device.c (grub_device_iterate): Allocate new part_ent
18786 structure based on sizeof (*p) rather than sizeof (p->next), to
18787 account for structure padding.
18788
18789 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
18790 disk is NULL, which might happen for LVM physical volumes with no
18791 LVM signature.
18792
18793 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18794
18795 * loader/mips/linux.c (grub_cmd_initrd)
18796 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
18797
18798 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18799
18800 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
18801 (grub_video_video_init, grub_video_bitmap_init)
18802 (grub_font_manager_init, grub_term_gfxterm_init)
18803 (grub_at_keyboard_init): New extern declarations.
18804 (grub_machine_init): Initialize gfxterm and at_keyboard.
18805
18806 * kern/main.c (grub_main): Revert grub_printf delay kludge.
18807
18808 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
18809 `gfxterm.mod' into core image.
18810
18811 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18812 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18813 (kernel_img_FORMAT): Copy to ...
18814
18815 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18816 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18817 (kernel_img_FORMAT): ... here, and ...
18818
18819 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18820 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18821 (kernel_img_FORMAT): ... here.
18822
18823 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
18824 and input (at_keyboard) terminals in kernel.
18825 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
18826
18827 (pkglib_MODULES): Remove `pci.mod'.
18828 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
18829 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
18830 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
18831 (at_keyboard_mod_LDFLAGS): Remove variables.
18832
18833 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
18834
18835 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
18836
18837 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
18838
18839 * include/grub/mips/libgcc.h: Only export symbols for functions
18840 that libgcc provides.
18841
18842 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
18843
18844 MIPS support.
18845
18846 * bus/bonito.c: New file.
18847 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
18848 GRUB_PCI_NUM_DEVICES.
18849 * term/i386/pc/serial.c: Move to ...
18850 * term/serial.c: ... here. All users updated.
18851 * util/i386/pc/grub-mkimage.c: Move to ...
18852 * util/grub-mkrawimage.c: ... here. All users updated.
18853 * term/i386/pc/at_keyboard.c: Move to ...
18854 * term/at_keyboard.c: ... here. All users updated.
18855 * conf/mips-qemu-mips.rmk: New file.
18856 * conf/mips-yeeloong.rmk: Likewise.
18857 * conf/mips.rmk: Likewise.
18858 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
18859 mipsel-qemu-mips.
18860 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
18861 to port addresses.
18862 (grub_ata_pciinit): Support CS5536.
18863 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
18864 * font/font_cmd.c (loadfont_command): Open file before passing it to
18865 grub_font_load.
18866 (pseudo_file_read): New function.
18867 (pseudo_file_close): Likewise.
18868 (pseudo_fs): New structure.
18869 (load_font_module): New function.
18870 (GRUB_MOD_INIT(font_manager)): Load embedded font.
18871 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
18872 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
18873 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
18874 * include/grub/i386/at_keyboard.h: Split into ...
18875 * include/grub/at_keyboard.h: ... this ...
18876 * include/grub/i386/at_keyboard.h: ... and this.
18877 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
18878 New prototype.
18879 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
18880 updated.
18881 (grub_elf64_size): Likewise.
18882 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
18883 filename.
18884 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
18885 * include/grub/i386/coreboot/serial.h: Rewritten.
18886 * include/grub/i386/ieee1275/serial.h: Include
18887 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
18888 * include/grub/i386/pc/serial.h: Moved from here ...
18889 * include/grub/serial.h: ... to here. All users updated.
18890 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
18891 (GRUB_PCI_NUM_BUS): Likewise.
18892 (GRUB_PCI_NUM_DEVICES): Likewise.
18893 (grub_pci_device_map_range): Add missing volatile keyword.
18894 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
18895 * include/grub/mips/at_keyboard.h: New file.
18896 * include/grub/mips/cache.h: Likewise.
18897 * include/grub/mips/io.h: Likewise.
18898 * include/grub/mips/kernel.h: Likewise.
18899 * include/grub/mips/libgcc.h: Likewise.
18900 * include/grub/mips/pci.h: Likewise.
18901 * include/grub/mips/qemu-mips/boot.h: Likewise.
18902 * include/grub/mips/qemu-mips/kernel.h: Likewise.
18903 * include/grub/mips/qemu-mips/loader.h: Likewise.
18904 * include/grub/mips/qemu-mips/memory.h: Likewise.
18905 * include/grub/mips/qemu-mips/serial.h: Likewise.
18906 * include/grub/mips/qemu-mips/time.h: Likewise.
18907 * include/grub/mips/relocator.h: Likewise.
18908 * include/grub/mips/time.h: Likewise.
18909 * include/grub/mips/types.h: Likewise.
18910 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
18911 * include/grub/mips/yeeloong/boot.h: Likewise.
18912 * include/grub/mips/yeeloong/kernel.h: Likewise.
18913 * include/grub/mips/yeeloong/loader.h: Likewise.
18914 * include/grub/mips/yeeloong/memory.h: Likewise.
18915 * include/grub/mips/yeeloong/pci.h: Likewise.
18916 * include/grub/mips/yeeloong/serial.h: Likewise.
18917 * include/grub/mips/yeeloong/time.h: Likewise.
18918 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
18919 * kern/elf.c (grub_elf32_size): New parameter. All users
18920 updated.
18921 (grub_elf64_size): Likewise.
18922 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
18923 Load modules before saying "Welcome to GRUB!".
18924 Call grub_refresh after saying "Welcome to GRUB!".
18925 * kern/mips/cache.S: New file.
18926 * kern/mips/cache_flush.S: Likewise.
18927 * kern/mips/dl.c: Likewise.
18928 * kern/mips/init.c: Likewise.
18929 * kern/mips/qemu-mips/init.c: Likewise.
18930 * kern/mips/startup.S: Likewise.
18931 * kern/mips/yeeloong/init.c: Likewise.
18932 * kern/term.c (grub_putcode): Handle NULL terminal.
18933 (grub_getcharwidth): Likewise.
18934 (grub_getkey): Likewise.
18935 (grub_checkkey): Likewise.
18936 (grub_getkeystatus): Likewise.
18937 (grub_getxy): Likewise.
18938 (grub_getwh): Likewise.
18939 (grub_gotoxy): Likewise.
18940 (grub_cls): Likewise.
18941 (grub_setcolorstate): Likewise.
18942 (grub_setcolor): Likewise.
18943 (grub_getcolor): Likewise.
18944 (grub_refresh): Likewise.
18945 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
18946 (write_jump): Add hatch nop.
18947 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
18948 * lib/mips/setjmp.S: New file.
18949 * loader/mips/linux.c: Likewise.
18950 * term/i386/pc/at_keyboard.c: Move from here ...
18951 * term/at_keyboard.c: ... to here.
18952 * term/i386/pc/serial.c: Moved from here ...
18953 * term/serial.c: ... to here. All users updated.
18954 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
18955 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
18956 (serial_translate_key_sequence): Avoid deadlock.
18957 (grub_serial_getkey): Handle backspace.
18958 (grub_serial_putchar): Fix newline handling.
18959 * util/i386/pc/grub-mkimage.c: Move from here ...
18960 * util/grub-mkrawimage.c: ... to here. All users updated.
18961 (generate_image): New parameters 'font_path' and 'format'.
18962 Support embedding font.
18963 Use grub_host_to_target* instead of grub_cpu_to_le*.
18964 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
18965 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
18966 (options): New option "--font".
18967 (usage): Likewise.
18968 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
18969 (main): Handle "--font".
18970 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
18971 (grub_virtual_screen_setup): Set bg_color_display.
18972 (redraw_screen_rect): Use bg_color_display instead of incorrect
18973 bg_color.
18974 (grub_gfxterm_cls): Likewise.
18975 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
18976 Support embedding config file.
18977 (add_segments): Likewise.
18978 (options): New option "--config".
18979 (main): Handle "--config".
18980 * video/sm712.c: New file.
18981
18982 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
18983
18984 Fix parallel builds.
18985
18986 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
18987 font.c depend on ascii.h).
18988
18989 2010-01-12 Carles Pina i Estany <carles@pina.cat>
18990
18991 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
18992
18993 2010-01-11 Carles Pina i Estany <carles@pina.cat>
18994
18995 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
18996 By default: disabled.
18997 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
18998 parameter.
18999
19000 2010-01-10 Carles Pina i Estany <carles@pina.cat>
19001
19002 * font/font.c: Update copyright years.
19003 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
19004
19005 2010-01-10 Carles Pina i Estany <carles@pina.cat>
19006
19007 * font/font.c: Include `ascii.h'.
19008 (ASCII_BITMAP_SIZE): New macro.
19009 (ascii_font_glyph): Define.
19010 (ascii_glyph_lookup): New function.
19011 (grub_font_get_string_width): Change comment. If glyph not found, use
19012 ascii_glyph_lookup.
19013 (grub_font_get_glyph_with_fallback): If glyph not available returns
19014 ascii_glyph_lookup.
19015 * util/grub-mkfont.c (file_formats): New enum.
19016 (options): Add `ascii-bitmaps' new option.
19017 (usage): Add `asii-bitmaps' new option.
19018 (write_font_ascii_bitmap): New function.
19019 (write_font): Rename to ...
19020 (write_font_p2): ... this. Remove print_glyphs call.
19021 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
19022 used. Call print_glyphs.
19023 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
19024
19025 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19026
19027 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
19028 (grub_bin2h_SOURCES): New variable.
19029 * util/bin2h.c: New file.
19030
19031 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 * include/multiboot.h: Resynced with spec.
19034 * include/multiboot2.h: Likewise.
19035 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
19036 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
19037
19038 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19039
19040 * include/grub/term.h (grub_term_register_input,
19041 grub_term_register_output): Check return of terminal init()
19042 routines, and abort if errors are raised.
19043
19044 * commands/terminal.c: Update copyright year.
19045
19046 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19047
19048 * commands/terminal.c (grub_cmd_terminal_input)
19049 (grub_cmd_terminal_output): Check return of terminal init()
19050 routines, and abort if errors are raised.
19051
19052 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
19053
19054 * include/grub/i386/bsd.h: Fix include pathes.
19055
19056 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
19057
19058 Add missing *BSD copyright headers.
19059
19060 * include/grub/aout.h: Add BSD licence.
19061 * include/grub/i386/bsd.h: Parts under different licences moved to ...
19062 * include/grub/i386/freebsd_linker.h: ... here,
19063 * include/grub/i386/freebsd_reboot.h: ... here,
19064 * include/grub/i386/netbsd_bootinfo.h: ... here,
19065 * include/grub/i386/netbsd_reboot.h: ... here,
19066 * include/grub/i386/openbsd_bootarg.h: ... here,
19067 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
19068 licence to each file.
19069
19070 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19071
19072 * acinclude.m4: Remove `nop' assembly instruction; it's not
19073 implemented by all architectures.
19074
19075 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19076
19077 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
19078 ELILO. This is no longer necessary.
19079
19080 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
19081
19082 Added new tool, grub-scrit-check to verify grub.cfg syntax.
19083
19084 * util/grub-script-check.c: grub-script-check tool.
19085 * conf/common.rmk: Make rules for grub-script-check.
19086
19087 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19088
19089 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
19090 spotting it back in 2008. Shame on me for forgetting he did.
19091
19092 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
19093
19094 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19095
19096 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
19097 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
19098 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
19099 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
19100 (GRUB_VIDEO_TYPE_EFI): Rename to ...
19101 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
19102
19103 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
19104
19105 * include/grub/test.h: Add license header.
19106 * tests/example_functional_test.c: Likewise.
19107 * tests/example_unit_test.c: Likewise.
19108 * tests/lib/functional_test.c: Likewise.
19109 * tests/lib/test.c: Likewise.
19110 * tests/lib/unit_test.c: Likewise.
19111
19112 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
19113
19114 Use flag-based instead of hook-based video mode selection and "auto"
19115 keyword.
19116
19117 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
19118 (grub_video_set_mode): Changed prototype. All users updated.
19119 (grub_video_check_mode_flag): New inline function.
19120 * video/video.c (parse_modespec): New function.
19121 (grub_video_set_mode): Parse flags and keywords.
19122
19123 2010-01-17 Carles Pina i Estany <carles@pina.cat>
19124
19125 * util/misc.c (grub_util_info): Fix the order of the parameters in a
19126 fprintf call.
19127
19128 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
19129
19130 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
19131
19132 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19133
19134 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
19135 string.
19136 * util/grub-emu.c (usage): Likewise.
19137 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
19138 * util/i386/efi/grub-mkimage.c (usage): Likewise.
19139 * util/i386/pc/grub-mkimage.c (usage): Likewise.
19140 * util/i386/pc/grub-setup.c (usage): Likewise.
19141
19142 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19143
19144 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
19145 the message.
19146 (grub_util_info): Likewise.
19147 (grub_util_error): Likewise.
19148 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
19149 and/or new lines in `grub_util_warna', `grub_util_info',
19150 `grub_util_error' calls.
19151 * util/getroot.c: Likewise.
19152 * util/grub-editenv.c: Likewise.
19153 * util/grub-emu.c: Likewise.
19154 * util/grub-fstest.c: Likewise.
19155 * util/grub-mkdevicemap.c: Likewise.
19156 * util/grub-mkfont.c: Likewise.
19157 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19158 * util/grub-mkrelpath.c: Likewise.
19159 * util/grub-pe2elf.c: Likewise.
19160 * util/grub-probe.c: Likewise.
19161 * util/hostdisk.c: Likewise.
19162 * util/i386/efi/grub-mkimage.c: Likewise.
19163 * util/i386/pc/grub-mkimage.c: Likewise.
19164 * util/i386/pc/grub-setup.c: Likewise.
19165 * util/ieee1275/ofpath.c: Likewise.
19166 * util/mkisofs/eltorito.c: Likewise.
19167 * util/mkisofs/rock.c: Likewise.
19168 * util/mkisofs/write.c: Likewise.
19169 * util/raid.c: Likewise.
19170 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19171 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19172
19173 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19174
19175 Enable multiboot on non-pc.
19176
19177 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
19178 multiboot.mod and multiboot2.mod to ...
19179 * conf/i386.rmk (pkglib_MODULES): ... here.
19180 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
19181 Moved to ...
19182 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
19183 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
19184 Moved to ...
19185 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
19186 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
19187 Moved to ...
19188 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
19189 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
19190 Moved to ...
19191 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
19192 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
19193 relocator.mod.
19194 (ata_mod_SOURCES): Removed.
19195 (ata_mod_CFLAGS): Likewise.
19196 (ata_mod_LDFLAGS): Likewise.
19197 (relocator_mod_SOURCES): Removed.
19198 (relocator_mod_CFLAGS): Likewise.
19199 (relocator_mod_ASFLAGS): Likewise.
19200 (relocator_mod_LDFLAGS): Likewise.
19201 Include i386.mk.
19202 * include/grub/x86_64/multiboot.h: New file.
19203 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
19204 Terminate EFI.
19205
19206 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19207
19208 Video multiboot support.
19209
19210 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
19211 New prototype.
19212 * include/multiboot.h: Resynced with multiboot specification.
19213 * include/multiboot2.h: Likewise.
19214 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
19215 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
19216 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
19217 (HAS_VGA_TEXT): Likewise.
19218 (accepts_video): New variable.
19219 (grub_multiboot_set_accepts_video): New function.
19220 (grub_multiboot_get_mbi_size): Account for video structures.
19221 (set_video_mode): New function.
19222 (retrieve_video_parameters): Likewise.
19223 (grub_multiboot_make_mbi): Fill video fields.
19224
19225 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19226
19227 Video driver ids.
19228
19229 * include/grub/video.h (grub_video_driver_id): New type.
19230 (grub_video_adapter): New member 'id'. All users updated.
19231 (grub_video_get_driver_id): New proto.
19232 * video/video.c (grub_video_get_driver_id): New function.
19233
19234 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19235
19236 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
19237 `var=val'.
19238
19239 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19240
19241 * normal/cmdline.c (print_completion): Gettextizze.
19242
19243 2001-01-14 Carles Pina i Estany <carles@pina.cat>
19244
19245 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
19246
19247 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19248
19249 * gettext/gettext.c (grub_gettext_translate): Push and pop
19250 grub_errno.
19251 (grub_gettext_delete_list): Change comment style.
19252 * kern/err.c (grub_error): Gettextizze.
19253 (grub_fatal): Gettextizze.
19254
19255 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19256
19257 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
19258 (grub_linux16_real_boot): ... this.
19259 * kern/i386/loader.S: Likewise.
19260 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
19261 (grub_linux16_boot): New function. Switches to text mode and calls
19262 grub_linux16_real_boot().
19263
19264 * loader/i386/bsd.c: Include `<grub/video.h>'.
19265 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
19266 text mode before calling grub_unix_real_boot().
19267
19268 * loader/i386/multiboot.c: Include `<grub/video.h>'.
19269 (grub_multiboot_boot): Switch to text mode before calling
19270 grub_relocator32_boot().
19271
19272 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
19273 (grub_chainloader_boot): Switch to text mode before calling
19274 grub_chainloader_real_boot().
19275
19276 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19277 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19278
19279 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
19280 non-empty value.
19281
19282 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19283 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19284
19285 * util/grub.d/00_header.in: Define a "savedefault" function for use
19286 in menu entries.
19287 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
19288
19289 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19290 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19291
19292 * util/grub-mkconfig_lib.in (save_default_entry): Only set
19293 saved_entry if boot_once is unset.
19294 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
19295 previous saved entry (i.e. grub-reboot).
19296
19297 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19298
19299 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
19300
19301 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19302
19303 * util/grub.d/00_header.in: Use `set var=val' rather than plain
19304 `var=val'.
19305 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
19306
19307 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19308
19309 * util/grub-reboot.in: Fix --version output.
19310 * util/grub-set-default.in: Likewise.
19311
19312 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19313
19314 * util/grub.d/00_header.in: Silently ignore zero-sized environment
19315 blocks.
19316
19317 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19318
19319 * util/grub.d/00_header.in: Quote the value assigned to `default',
19320 in case it contains spaces.
19321
19322 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19323
19324 * util/grub.d/30_os-prober.in: Fix merge error that moved a
19325 `save_default_entry' call from the macosx case to the linux case.
19326
19327 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
19328 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
19329
19330 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
19331 in `chosen' environment variable.
19332 * normal/menu_text.c (get_entry_number): Check if the variable
19333 matches the title of a menu entry.
19334 (run_menu): Pass menu to get_entry_number.
19335
19336 * util/grub-reboot.in: New file.
19337 * util/grub-set-default.in: New file.
19338 * conf/common.rmk (grub-reboot): New utility.
19339 (grub-set-default): New utility.
19340
19341 * util/grub-mkconfig_lib.in (save_default_entry): New function.
19342 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
19343 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
19344 move it to `saved_entry' for the next boot. Load environment on
19345 initialisation.
19346 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
19347 * util/grub.d/10_hurd.in: Likewise.
19348 * util/grub.d/10_linux.in (linux_entry): Likewise.
19349 * util/grub.d/10_windows.in: Likewise.
19350 * util/grub.d/30_os-prober.in: Likewise.
19351
19352 * util/grub-install.in: Create environment block.
19353 * util/i386/efi/grub-install.in: Likewise.
19354 * util/ieee1275/grub-install.in: Likewise.
19355 * util/sparc64/ieee1275/grub-install.in: Likewise.
19356
19357 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
19358
19359 Unit testing framework for GRUB.
19360
19361 * Makefile.in: Test framework build rules for 'make check'.
19362 * conf/tests.rmk: Build rules for individual tests and framework.
19363
19364 * include/grub/test.h: Header file for whitebox tests.
19365 * tests/lib/functional_test.c: Framework support for whitebox
19366 functional tests.
19367 * tests/lib/test.c: Common whitebox testing code for unit and
19368 functional tests.
19369 * tests/lib/unit_test.c: Framework support for whitebox unit
19370 tests.
19371
19372 * tests/util/grub-shell-tester.in: Support utility for grub-script
19373 tests.
19374 * tests/util/grub-shell.in: Utility to execute grub-script
19375 commands in a Qemu instance.
19376
19377 * tests/example_functional_test.c: Example whitebox functional
19378 test.
19379 * tests/example_grub_script_test.in: Example grub-script test.
19380 * tests/example_scripted_test.in: Example scripted test.
19381 * tests/example_unit_test.c: Example whitebox unit test.
19382
19383 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
19384
19385 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
19386 Add loader/i386/multiboot_mbi.c.
19387 (multiboot2_mod_SOURCES): Likewise.
19388 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
19389 (multiboot2_mod_SOURCES): Likewise.
19390 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
19391 (grub_multiboot_make_mbi): Likewise.
19392 (grub_multiboot_free_mbi): Likewise.
19393 (grub_multiboot_init_mbi): Likewise.
19394 (grub_multiboot_add_module): Likewise.
19395 (grub_multiboot_set_bootdev): Likewise.
19396 * loader/i386/multiboot.c (mbi): Removed.
19397 (mbi_dest): Likewise.
19398 (alloc_mbi): New variable.
19399 (grub_multiboot_payload_size): Removed. All users updated.
19400 (grub_multiboot_pure_size): New variable.
19401 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
19402 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
19403 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
19404 (grub_fill_multiboot_mmap): Likewise.
19405 (grub_multiboot_get_bootdev): Likewise.
19406 (grub_multiboot): Use multiboot_mbi functions.
19407 * loader/i386/multiboot_mbi.c: New file.
19408
19409 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19410
19411 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
19412 it would result in module crash.
19413
19414 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19415
19416 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
19417 (grub_ofconsole_getwh): Split to ...
19418 (grub_ofconsole_getwh): ... this.
19419 (grub_ofconsole_dimensions): ...and this.
19420 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
19421
19422 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
19423
19424 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
19425
19426 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19427
19428 * loader/i386/pc/multiboot2.c: Removed stalled file.
19429
19430 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19431
19432 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
19433 Reported by: Grégoire Sutre
19434
19435 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
19436
19437 * util/misc.c (canonicalize_file_name): New function.
19438 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
19439 instead of realpath().
19440
19441 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
19442
19443 * util/grub-install.in (usage): Clarify meaning of --root-directory,
19444 and make it clearer that it's optional. Based on confusion
19445 witnessed on IRC.
19446
19447 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19448
19449 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
19450 in premature implicit newline.
19451
19452 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19453
19454 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
19455 which resulted in garbled command line at the end of screen.
19456
19457 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19458
19459 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
19460 initialization with similar approach as with other Linux loaders.
19461
19462 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19463
19464 Fix i386-ieee1275 build.
19465
19466 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
19467 and grub_term_height() for video_{width,height} initialization.
19468
19469 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19470
19471 Fix grub-emu build.
19472
19473 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
19474
19475 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19476 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19477
19478 Support for multiple terminals.
19479
19480 * Makefile.in (pkglib_DATA): terminal.lst.
19481 (terminal.lst): New target.
19482 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
19483 (GRUB_MOD_INIT(handler)): Likewise.
19484 (GRUB_MOD_FINI(handler)): Likewise.
19485 * commands/help.c (grub_cmd_help): Handle multiple terminals.
19486 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
19487 * commands/sleep.c (do_print): Use grub_term_restore_pos.
19488 (grub_cmd_sleep): Use grub_term_save_pos.
19489 * commands/terminal.c: New file.
19490 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
19491 commands/terminal.c and lib/charset.c.
19492 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
19493 (pkglib_MODULES): Add terminal.mod.
19494 (terminal_mod_SOURCES): New variable.
19495 (terminal_mod_CFLAGS): Likewise.
19496 (terminal_mod_LDFLAGS): Likewise.
19497 * genhandlerlist.sh: Don't handle terminals.
19498 * genmk.rb: Generate terminal-*.lst.
19499 * genterminallist.sh: New file.
19500 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
19501 (grub_is_valid_utf8): Likewise.
19502 (grub_utf8_to_ucs4_alloc): Likewise.
19503 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
19504 (grub_menu_register_viewer): Changed argument.
19505 (grub_menu_try_text): New proto.
19506 (grub_gfxmenu_try_hook): New declaration.
19507 * include/grub/normal.h (grub_normal_exit_level): New declaration.
19508 (grub_menu_init_page): Additional argument term.
19509 (grub_normal_init_page): Likewise.
19510 (grub_cmdline_get): Arguments simplified.
19511 (grub_utf8_to_ucs4_alloc): Removed.
19512 (grub_print_ucs4): Additional argument term.
19513 (grub_getstringwidth): Likewise.
19514 (grub_print_message_indented): Likewise.
19515 (grub_menu_text_register_instances): New proto.
19516 (grub_show_menu): Likewise.
19517 (read_terminal_list): Likewise.
19518 (grub_set_more): Likewise.
19519 * include/grub/parser.h: Include handler.h.
19520 * include/grub/reader.h: Rewritten.
19521 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
19522 (GRUB_TERM_WIDTH): Changed to function.
19523 (GRUB_TERM_HEIGHT): Likewise.
19524 (GRUB_TERM_BORDER_WIDTH): Likewise.
19525 (GRUB_TERM_BORDER_HEIGHT): Likewise.
19526 (GRUB_TERM_NUM_ENTRIES): Likewise.
19527 (GRUB_TERM_ENTRY_WIDTH): Likewise.
19528 (GRUB_TERM_CURSOR_X): Likewise.
19529 (grub_term_input_class): Likewise.
19530 (grub_term_output_class): Likewise.
19531 (grub_term_outputs_disabled): New declaration.
19532 (grub_term_inputs_disabled): Likewise.
19533 (grub_term_outputs): Likewise.
19534 (grub_term_inputs): Likewise.
19535 (grub_term_register_input): Rewritten.
19536 (grub_term_register_output): Likewise.
19537 (grub_term_unregister_input): Likewise.
19538 (grub_term_unregister_output): Likewise.
19539 (FOR_ACTIVE_TERM_INPUTS): New macro.
19540 (FOR_DISABLED_TERM_INPUTS): Likewise.
19541 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19542 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19543 * include/grub/terminfo.h: Add oterm argument to all protypes.
19544 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
19545 Use grub_rescue_run.
19546 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
19547 All users updated.
19548 * kern/reader.c: Removed. All users updated.
19549 * kern/rescue_reader.c (grub_rescue_init): Removed.
19550 (grub_rescue_reader): Likewise.
19551 (grub_register_rescue_reader): Likewise.
19552 (grub_rescue_run): New function based on kern/reader.c.
19553 * kern/term.c: Adapted for multiterm.
19554 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
19555 (grub_is_valid_utf8): Likewise.
19556 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
19557 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
19558 right terminal.
19559 * loader/i386/linux.c (grub_linux_boot): Likewise.
19560 * normal/auth.c (grub_username_get): New function.
19561 (grub_auth_check_authentication): Use grub_username_get.
19562 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
19563 * normal/color.c: Adapt for multiterm.
19564 * normal/main.c (read_config_file): Don't use grub_reader_loop.
19565 (grub_normal_init_page): Additional argument term.
19566 (read_lists): Call read_terminal_lists.
19567 (grub_enter_normal_mode): Call grub_cmdline_run.
19568 Handle grub_normal_exit_level.
19569 (grub_cmd_normal): Make reentrant.
19570 (grub_cmd_normal_exit): New function.
19571 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
19572 * normal/menu.c: Adapt for multiterm.
19573 * normal/menu_entry.c: Likewise.
19574 * normal/menu_text.c: Likewise.
19575 * normal/menu_viewer.c: Removed. All users updated.
19576 * normal/term.c: New file.
19577 * util/console.c: Change order of includes to workaround a bug in
19578 ncurses headers.
19579 * term/terminfo.c: New argument oterm on all exported functions.
19580 All users updated.
19581 * util/grub-editenv.c (grub_term_input_class): Removed.
19582 (grub_term_output_class): Likewise.
19583
19584 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19585
19586 Make loader output a bit more user-friendly.
19587
19588 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
19589 is being loaded. Likewise for the Hurd.
19590
19591 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
19592 that kernel of FreeBSD ${version} is being loaded.
19593
19594 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
19595 grub_dprintf().
19596 (grub_cmd_initrd): Likewise.
19597 * util/grub.d/10_linux.in (linux_entry): Print message indicating
19598 that Linux ${version} is being loaded. Likewise for initrd.
19599
19600 2010-01-09 Carles Pina i Estany <carles@pina.cat>
19601
19602 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
19603
19604 2010-01-08 Carles Pina i Estany <carles@pina.cat>
19605
19606 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
19607 (GRUB_MOD_INIT): Gettextizze.
19608 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
19609 (GRUB_MOD_INIT): Gettextizze.
19610 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
19611 (grub_cmd_linux): Capitalise Linux.
19612 (GRUB_MOD_INIT): Gettextizze.
19613 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
19614 (grub_cmd_linux): Capitalise Linux.
19615 (GRUB_MOD_INIT): Gettextizze.
19616 * loader/i386/linux.c: Include `<grub/i18n.h>'.
19617 (grub_cmd_linux): Capitalise Linux.
19618 (GRUB_MOD_INIT): Gettextizze.
19619 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
19620 (GRUB_MOD_INIT): Gettextizze.
19621 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
19622 (grub_cmd_linux): Capitalise Linux.
19623 (GRUB_MOD_INIT): Gettextizze.
19624 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
19625 (grub_cpu_xnu_init): Gettextizze.
19626 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
19627 (GRUB_MOD_INIT): Gettextizze.
19628 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
19629 (GRUB_MOD_INIT): Gettextizze.
19630 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
19631 (grub_linux_load64): Capitalise Linux.
19632 (GRUB_MOD_INIT): Gettextizze.
19633 * loader/xnu.c: Include `<grub/i18n.h>'.
19634 (GRUB_MOD_INIT): Gettextizze.
19635 * po/POTFILES: Add `loader/efi/appleloader.c',
19636 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
19637 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
19638 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
19639 `loader/i386/xnu.c', `loader/multiboot_loader.c',
19640 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
19641 and `loader/xnu.c'.
19642
19643 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19644
19645 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
19646
19647 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19648
19649 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
19650 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
19651 * util/mkisofs/mkisofs.c (main): Readjust --version output.
19652
19653 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19654
19655 Reset Multiboot 2 support. New loader implements the draft in
19656 /branches/multiboot2 and shares as much code as possible with the
19657 production Multiboot 1 implementation.
19658
19659 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
19660 * loader/multiboot2.c: Likewise.
19661 * loader/i386/multiboot_helper.S: Likewise.
19662 * include/multiboot2.h: Replace with latest version from the draft
19663 in /branches/multiboot2.
19664
19665 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
19666 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
19667 and `loader/multiboot2.c'.
19668 (pkglib_MODULES): Add `multiboot2.mod'.
19669 (multiboot2_mod_SOURCES): New variable.
19670 (multiboot2_mod_LDFLAGS): Likewise.
19671 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
19672
19673 * conf/i386-pc.rmk: Likewise.
19674
19675 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19676 (multiboot_mod_SOURCES): Remove variable.
19677 (multiboot_mod_LDFLAGS): Likewise.
19678 (multiboot_mod_CFLAGS): Likewise.
19679
19680 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
19681 `<multiboot2.h>' instead of `<multiboot.h>'.
19682 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
19683 (MULTIBOOT_HEADER_MAGIC): New macros.
19684
19685 * loader/multiboot_loader.c (module_version_status): Remove variable.
19686 (find_multi_boot2_header): Remove function.
19687 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
19688 logic. Always check for the Multiboot version we're compiling for.
19689 (grub_cmd_module_loader): Likewise.
19690 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
19691 command instead of `multiboot'.
19692
19693 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19694
19695 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
19696 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
19697 all users.
19698
19699 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19700 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 Fix breakage introduced with previous commit.
19703
19704 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
19705 commands.
19706 * normal/handler.c (read_handler_list): Revert part of previous commit
19707 affecting this file.
19708 * normal/main.c (read_lists): Move read_handler_list() call back to ...
19709 (grub_normal_execute): ... here.
19710
19711 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19712
19713 Merge prefix-redefinition-fix branch.
19714
19715 * normal/autofs.c (read_fs_list): Make function capable of being
19716 run multiple times, gracefuly replacing the previous data
19717 structures.
19718 * normal/dyncmd.c (read_command_list): Likewise.
19719 * normal/handler.c (read_handler_list): Likewise.
19720 * normal/main.c (read_lists): New function. Calls all the
19721 list reading functions.
19722 (grub_normal_execute): Use read_lists() instead of calling all
19723 list reading functions explicitly. Register read_lists() as a
19724 variable hook attached to ${prefix}.
19725
19726 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19727
19728 Merge crypto branch.
19729
19730 * Makefile.in (pkglib_DATA): Add crypto.lst.
19731 (crypto.lst): New target.
19732 * commands/hashsum.c: New file.
19733 * commands/password.c (check_password): Use grub_crypto_memcmp.
19734 * commands/password_pbkdf2.c: New file.
19735 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
19736 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
19737 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
19738 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
19739 -I$(srcdir)/lib/libgcrypt_wrap.
19740 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
19741 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
19742 password_pbkdf2.mod.
19743 (crypto_mod_SOURCES): New variable.
19744 (crypto_mod_CFLAGS): Likewise.
19745 (crypto_mod_LDFLAGS): Likewise.
19746 (hashsum_mod_SOURCES): New variable.
19747 (hashsum_mod_CFLAGS): Likewise.
19748 (hashsum_mod_LDFLAGS): Likewise.
19749 (pbkdf2_mod_SOURCES): New variable.
19750 (pbkdf2_mod_CFLAGS): Likewise.
19751 (pbkdf2_mod_LDFLAGS): Likewise.
19752 (password_pbkdf2_mod_SOURCES): New variable.
19753 (password_pbkdf2_mod_CFLAGS): Likewise.
19754 (password_pbkdf2_mod_LDFLAGS): Likewise.
19755 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
19756 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
19757 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
19758 Include conf/gcry.rmk.
19759 * include/grub/auth.h: Rewritten.
19760 * include/grub/crypto.h: New file.
19761 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
19762 * include/grub/normal.h (read_crypto_list): New prototype.
19763 * lib/crypto.c: New file.
19764 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
19765 * lib/pbkdf2.c: Likewise.
19766 * normal/auth.c (grub_auth_strcmp): Removed.
19767 (grub_iswordseparator): Likewise.
19768 (grub_auth_strword): Likewise.
19769 (is_authenticated): Use grub_strword.
19770 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
19771 and grub_strword. Pass entered password to authentication callback.
19772 * normal/crypto.c: New file.
19773 * normal/main.c: Call read_crypto_list.
19774 * util/grub-mkpasswd-pbkdf2.c: New file.
19775 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
19776
19777 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
19778
19779 Fix descent and ascent calculation.
19780
19781 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
19782 (options): New option "asce".
19783 (usage): Likewise.
19784 (add_char): Ignore invalid glyphs for descent calculation.
19785 Calculate ascent from actual content.
19786 (print_glyphs): Use 'asce'.
19787 (write_font): Likewise. Allow ascent override.
19788 (main): Handle "asce" option.
19789
19790 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19791
19792 * kern/err.c: Include `<grub/i18n.h>'.
19793 (grub_print_error): Add full stop. Gettextizze.
19794 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
19795 (grub_bsd_load_elf): Capitalise ELF.
19796 (grub_cmd_freebsd_loadenv): Add `s' in error string.
19797 (grub_cmd_freebsd_module): Likewise.
19798 (grub_cmd_freebsd_module_elf): Likewise.
19799 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
19800
19801 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19802
19803 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
19804 * commands/search_file.c (HELP_MESSAGE): New macro.
19805 * commands/search_label.c (HELP_MESSAGE): Likewise.
19806 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
19807 * po/POTFILES: Add `commands/search_file.c',
19808 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
19809 `commands/search.c'.
19810
19811 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19812
19813 * config.rpath: Update from Gnulib.
19814
19815 2010-01-05 Yves Blusseau <blusseau@zetam.org>
19816
19817 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
19818
19819 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
19820
19821 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
19822
19823 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19824
19825 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
19826 arguments to fread so that we get a return value in bytes, rather
19827 than something that will normally be rounded down to 0.
19828 Adjust error handling to avoid producing garbage when size_t is not
19829 the same size as long long.
19830
19831 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19832
19833 * util/mkisofs/write.c (padblock_write): Check return value of
19834 fread.
19835
19836 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19837
19838 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
19839 floppy images now.
19840
19841 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
19842
19843 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19844
19845 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
19846 instead of manual alignment.
19847 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
19848 verbose). Avoid attempts to read past end of the device
19849 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
19850 but GRUB_DISK_CACHE_SIZE may exceed that).
19851
19852 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19853
19854 * commands/crc.c (grub_cmd_crc): Abort on read errors.
19855 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
19856 it to upper layer.
19857
19858 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19859
19860 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
19861 New constant.
19862 (grub_efi_piwg_device_path): New structure
19863 (grub_efi_piwg_device_path_t): New type.
19864 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
19865 (devpath_1): Transform to a structure. All users updated.
19866 (devpath_2): Likewise.
19867 (devpath_3): Likewise.
19868 (devpath_4): Likewise.
19869 (devpath_5): Likewise.
19870
19871 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19872
19873 * loader/efi/appleloader.c: Restored. Update all users.
19874
19875 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19876
19877 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
19878
19879 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
19880 (struct boot_blocklist): Move from here ...
19881 * include/grub/i386/pc/boot.h [ASM_FILE]
19882 (struct grub_boot_blocklist): ... to here. Update all users.
19883 (setup): Only initialize `start' member of `first_block'
19884 structure. Add assert() calls to verify the other members.
19885
19886 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
19887 (generate_image): Fix broken blocklist length initialization.
19888 Add assert() call to verify blocklist `segment' field.
19889
19890 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19891
19892 * loader/efi/appleloader.c: Remove. Update all users.
19893
19894 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19895
19896 * boot/i386/pc/boot.S: Update copyright year.
19897 * boot/i386/pc/cdboot.S: Likewise.
19898 * boot/i386/pc/diskboot.S: Likewise.
19899 * boot/i386/pc/lnxboot.S: Likewise.
19900 * boot/i386/pc/pxeboot.S: Likewise.
19901 * bus/pci.c: Likewise.
19902 * commands/cmp.c: Likewise.
19903 * commands/help.c: Likewise.
19904 * commands/hexdump.c: Likewise.
19905 * commands/i386/pc/halt.c: Likewise.
19906 * commands/i386/pc/play.c: Likewise.
19907 * commands/i386/pc/vbeinfo.c: Likewise.
19908 * commands/ls.c: Likewise.
19909 * commands/test.c: Likewise.
19910 * disk/dmraid_nvidia.c: Likewise.
19911 * disk/i386/pc/biosdisk.c: Likewise.
19912 * disk/ieee1275/nand.c: Likewise.
19913 * disk/ieee1275/ofdisk.c: Likewise.
19914 * disk/lvm.c: Likewise.
19915 * disk/raid.c: Likewise.
19916 * disk/raid6_recover.c: Likewise.
19917 * disk/scsi.c: Likewise.
19918 * fs/affs.c: Likewise.
19919 * fs/cpio.c: Likewise.
19920 * fs/ext2.c: Likewise.
19921 * fs/hfs.c: Likewise.
19922 * fs/iso9660.c: Likewise.
19923 * fs/ntfs.c: Likewise.
19924 * fs/sfs.c: Likewise.
19925 * fs/udf.c: Likewise.
19926 * fs/ufs.c: Likewise.
19927 * fs/xfs.c: Likewise.
19928 * gencmdlist.sh: Likewise.
19929 * genmk.rb: Likewise.
19930 * include/grub/disk.h: Likewise.
19931 * include/grub/efi/api.h: Likewise.
19932 * include/grub/efi/efi.h: Likewise.
19933 * include/grub/efi/pe32.h: Likewise.
19934 * include/grub/elf.h: Likewise.
19935 * include/grub/fs.h: Likewise.
19936 * include/grub/i386/at_keyboard.h: Likewise.
19937 * include/grub/i386/pc/memory.h: Likewise.
19938 * include/grub/i386/pc/vbe.h: Likewise.
19939 * include/grub/i386/pci.h: Likewise.
19940 * include/grub/i386/tsc.h: Likewise.
19941 * include/grub/ieee1275/ieee1275.h: Likewise.
19942 * include/grub/ntfs.h: Likewise.
19943 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
19944 * include/grub/sparc64/libgcc.h: Likewise.
19945 * include/grub/symbol.h: Likewise.
19946 * include/grub/types.h: Likewise.
19947 * include/multiboot2.h: Likewise.
19948 * io/gzio.c: Likewise.
19949 * kern/device.c: Likewise.
19950 * kern/disk.c: Likewise.
19951 * kern/efi/efi.c: Likewise.
19952 * kern/efi/mm.c: Likewise.
19953 * kern/elf.c: Likewise.
19954 * kern/file.c: Likewise.
19955 * kern/i386/dl.c: Likewise.
19956 * kern/i386/pc/init.c: Likewise.
19957 * kern/i386/pc/startup.S: Likewise.
19958 * kern/ieee1275/ieee1275.c: Likewise.
19959 * kern/ieee1275/init.c: Likewise.
19960 * kern/main.c: Likewise.
19961 * kern/mm.c: Likewise.
19962 * kern/powerpc/dl.c: Likewise.
19963 * kern/sparc64/dl.c: Likewise.
19964 * kern/x86_64/dl.c: Likewise.
19965 * lib/hexdump.c: Likewise.
19966 * loader/efi/appleloader.c: Likewise.
19967 * loader/i386/ieee1275/linux.c: Likewise.
19968 * loader/i386/pc/chainloader.c: Likewise.
19969 * loader/i386/pc/linux.c: Likewise.
19970 * loader/i386/pc/multiboot2.c: Likewise.
19971 * loader/ieee1275/multiboot2.c: Likewise.
19972 * loader/multiboot2.c: Likewise.
19973 * loader/multiboot_loader.c: Likewise.
19974 * loader/powerpc/ieee1275/linux.c: Likewise.
19975 * normal/completion.c: Likewise.
19976 * normal/menu_entry.c: Likewise.
19977 * partmap/apple.c: Likewise.
19978 * util/grub.d/10_hurd.in: Likewise.
19979 * util/hostfs.c: Likewise.
19980 * video/readers/png.c: Likewise.
19981
19982 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
19983
19984 * include/grub/misc.h (GNUC_PREREQ): New macro.
19985 (ATTRIBUTE_ERROR): New macro.
19986 * include/grub/list.h (grub_bad_type_cast_real): Use
19987 ATTRIBUTE_ERROR.
19988
19989 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19990
19991 * normal/menu_text.c (print_message): Change messages.
19992
19993 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19994
19995 * normal/menu_entry.c (store_completion): Gettextizze.
19996
19997 2010-01-03 Carles Pina i Estany <carles@pina.cat>
19998
19999 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
20000
20001 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20002
20003 * po/POTFILES: Sort correctly.
20004
20005 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20006
20007 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
20008 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
20009 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
20010 full stop.
20011 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
20012 summary. Gettextizze the strings.
20013 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
20014 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
20015 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
20016 full stop.
20017 (GRUB_MOD_INIT): Remove command name from summary.
20018 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
20019 summary.
20020 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
20021 * term/i386/pc/serial.c (options): Add full stops.
20022 (GRUB_MOD_INIT): Remove command name from the summary.
20023
20024 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20025
20026 * commands/acpi.c: Gettextizze help strings and/or options. Include
20027 `grub/i18n.h' if needed.
20028 * commands/blocklist.c: Likewise.
20029 * commands/boot.c: Likewise.
20030 * commands/cat.c: Likewise.
20031 * commands/cmp.c: Likewise.
20032 * commands/configfile.c: Likewise.
20033 * commands/crc.c: Likewise.
20034 * commands/date.c: Likewise.
20035 * commands/echo.c: Likewise.
20036 * commands/efi/fixvideo.c: Likewise.
20037 * commands/efi/loadbios.c: Likewise.
20038 * commands/gptsync.c: Likewise.
20039 * commands/halt.c: Likewise.
20040 * commands/handler.c: Likewise.
20041 * commands/hdparm.c: Likewise.
20042 * commands/hexdump.c: Likewise.
20043 * commands/i386/cpuid.c: Likewise.
20044 * commands/i386/pc/drivemap.c: Likewise.
20045 * commands/i386/pc/halt.c: Likewise.
20046 * commands/i386/pc/pxecmd.c: Likewise.
20047 * commands/i386/pc/vbeinfo.c: Likewise.
20048 * commands/i386/pc/vbetest.c: Likewise.
20049 * commands/ieee1275/suspend.c: Likewise.
20050 * commands/keystatus.c: Likewise.
20051 * commands/loadenv.c: Likewise.
20052 * commands/ls.c: Likewise.
20053 * commands/lsmmap.c: Likewise.
20054 * commands/lspci.c: Likewise.
20055 * commands/memrw.c: Likewise.
20056 * commands/minicmd.c: Likewise.
20057 * commands/parttool.c: Likewise.
20058 * commands/password.c: Likewise.
20059 * commands/probe.c: Likewise.
20060 * commands/read.c: Likewise.
20061 * commands/reboot.c: Likewise.
20062 * commands/search.c: Likewise.
20063 * commands/sleep.c: Likewise.
20064 * commands/test.c: Likewise.
20065 * commands/true.c: Likewise.
20066 * commands/usbtest.c: Likewise.
20067 * commands/videotest.c: Likewise.
20068 * commands/xnu_uuid.c: Likewise.
20069 * disk/loopback.c: Likewise.
20070 * hello/hello.c: Likewise.
20071 * loader/i386/bsd.c: Likewise.
20072 * term/i386/pc/serial.c: Likewise.
20073 * po/POTFILES: Add new files.
20074
20075 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
20076
20077 * term/i386/pc/at_keyboard.c
20078 (keyboard_controller_wait_untill_ready): Rename to ...
20079 (keyboard_controller_wait_until_ready): ... this. Update all users.
20080
20081 2010-01-01 Carles Pina i Estany <carles@pina.cat>
20082
20083 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
20084 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
20085 string using string width.
20086 * normal/menu_text.c (grub_print_message_indented): Use
20087 grub_print_spaces and not print_spaces.
20088 (print_timeout): Likewise.
20089 (print_spaces): Move to...
20090 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
20091
20092 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
20093
20094 Import from Gnulib.
20095
20096 * gnulib/getdelim.c: New file.
20097 * gnulib/getline.c: Likewise.
20098
20099 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
20100
20101 * include/grub/list.h (grub_assert_fail): Removed.
20102 (grub_bad_type_cast_real): New function.
20103 (grub_bad_type_cast): New macro.
20104 (GRUB_AS_LIST): Use grub_bad_type_cast.
20105 (GRUB_AS_LIST_P): Likewise.
20106 (GRUB_AS_NAMED_LIST): Likewise.
20107 (GRUB_AS_NAMED_LIST_P): Likewise.
20108 (GRUB_AS_PRIO_LIST): Likewise.
20109 (GRUB_AS_PRIO_LIST_P): Likewise.
20110 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
20111
20112 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
20115 Fix syntax error.
20116
20117 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
20118
20119 * configure.ac: Check for TARGET_CFLAGS initialization before we
20120 initialize it ourselves (sigh).
20121 Move a few modifications to TARGET_CFLAGS to be unconditional
20122 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
20123 eh_frame)
20124
20125 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
20126 * term/i386/pc/at_keyboard.c
20127 (keyboard_controller_wait_untill_ready): Likewise.
20128 (keyboard_controller_led): Rename `led_status' paramter to avoid
20129 name conflict.
20130
20131 2009-12-28 Carles Pina i Estany <carles@pina.cat>
20132
20133 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
20134 quotes.
20135
20136 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20137
20138 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
20139
20140 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20141
20142 * normal/menu_text.c (grub_print_message_indented): Prevent
20143 past-the-end-of-array dereference.
20144
20145 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
20148 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
20149
20150 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20151
20152 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
20153 * normal/main.c (grub_normal_read_line): Remove a space from the
20154 default prompt.
20155
20156 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20157
20158 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
20159 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20160 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20161 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20162 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20163 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20164 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20165
20166 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20167
20168 * video/readers/jpeg.c (cmd): Declare.
20169 (grub_cmd_jpegtest): Use `grub_command_t' type.
20170 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20171 Assign to `cmd'.
20172 (GRUB_MOD_FINI): Use `cmd' to unregister.
20173 * video/readers/png.c (cmd): Declare.
20174 (grub_cmd_pngtest): Use `grub_command_t' type.
20175 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20176 Assign to `cmd'.
20177 (GRUB_MOD_FINI): Use `cmd' to unregister.
20178 * video/readers/tga.c (cmd): Declare.
20179 (grub_cmd_tgatest): Use `grub_command_t' type.
20180 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20181 Assign to `cmd'.
20182 (GRUB_MOD_FINI): Use `cmd' to unregister.
20183
20184 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20185
20186 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
20187 stops.
20188 * kern/corecmd.c (grub_register_core_commands): Likewise.
20189 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
20190 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20191 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
20192 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20193 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20194 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
20195 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20196 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
20197 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20198 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20199 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20200 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20201 * normal/handler.c (insert_handler): Likewise.
20202 * normal/main.c (GRUB_MOD_INIT): Likewise.
20203 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20204
20205 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20206
20207 * commands/help.c (grub_cmd_help): Print the command name before the
20208 summary.
20209 (GRUB_MOD_INIT): Remove command name from the summary.
20210 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
20211 string as summary.
20212 * lib/arg.c (find_long): Print the command name before the summary.
20213 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
20214 summary.
20215 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
20216 * commands/cat.c (GRUB_MOD_INIT): Likewise.
20217 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
20218 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
20219 * commands/crc.c (GRUB_MOD_INIT): Likewise.
20220 * commands/date.c (GRUB_MOD_INIT): Likewise.
20221 * commands/echo.c (GRUB_MOD_INIT): Likewise.
20222 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
20223 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20224 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20225 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
20226 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
20227 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
20228 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
20229 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20230 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
20231 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
20232 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
20233 * commands/ls.c (GRUB_MOD_INIT): Likewise.
20234 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20235 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20236 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20237 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
20238 * commands/password.c (GRUB_MOD_INIT): Likewise.
20239 * commands/probe.c (GRUB_MOD_INIT): Likewise.
20240 * commands/read.c (GRUB_MOD_INIT): Likewise.
20241 * commands/search.c (GRUB_MOD_INIT): Likewise.
20242 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
20243 * commands/test.c (GRUB_MOD_INIT): Likewise.
20244 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
20245 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20246 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20247 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
20248 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20249 * lib/arg.c (GRUB_MOD_INIT): Likewise.
20250 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
20251 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20252 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20253 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20254 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20255 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
20256 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
20257 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
20258
20259 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20260
20261 Use search command for preliminar UUID search.
20262
20263 * commands/search.c: Split into ...
20264 * commands/search_wrap.c: ...this
20265 * commands/search.c: ...and this.
20266 * commands/search_file.c: New file.
20267 * commands/search_label.c: New file.
20268 * commands/search_uuid.c: New file.
20269 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
20270 Add commands/search_wrap.c, commands/search_file.c,
20271 commands/search_label.c and commands/search_uuid.c.
20272 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
20273 (search_mod_SOURCES): Set to commands/search_wrap.c.
20274 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
20275 search_label.mod.
20276 (search_fs_file_mod_SOURCES): New variable.
20277 (search_fs_file_mod_CFLAGS): Likewise.
20278 (search_fs_file_mod_LDFLAGS): Likewise.
20279 (search_label_mod_SOURCES): Likewise.
20280 (search_label_mod_CFLAGS): Likewise.
20281 (search_label_mod_LDFLAGS): Likewise.
20282 (search_fs_uuid_mod_SOURCES): New variable.
20283 (search_fs_uuid_mod_CFLAGS): Likewise.
20284 (search_fs_uuid_mod_LDFLAGS): Likewise.
20285 (fs_file_mod_SOURCES): Removed.
20286 (fs_file_mod_CFLAGS): Likewise.
20287 (fs_file_mod_LDFLAGS): Likewise.
20288 (fs_uuid_mod_SOURCES): Removed.
20289 (fs_uuid_mod_CFLAGS): Likewise.
20290 (fs_uuid_mod_LDFLAGS): Likewise.
20291 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
20292 Set to util/grub-install.in.
20293 * disk/fs_file.c: Removed.
20294 * disk/fs_uuid.c: Likewise.
20295 * include/grub/search.h: New file.
20296 * util/grub-install.in: Handle sparc64.
20297 Create and use load.cfg.
20298 * util/sparc64/ieee1275/grub-install.in: Removed.
20299
20300 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20301
20302 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
20303 Ignore return status if CF is cleared.
20304 (grub_biosdisk_get_diskinfo_standard): Likewise.
20305
20306 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20307
20308 * term/i386/pc/at_keyboard.c
20309 (keyboard_controller_wait_untill_ready): New function.
20310 (grub_keyboard_controller_write, grub_keyboard_controller_read)
20311 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
20312 for keyboard polling, rather than duplicate the same loop. This
20313 saves a few bytes in code size.
20314
20315 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20316
20317 Support for (pxe[:server[:gateway]]) syntax and
20318 use environment variable for PXE.
20319
20320 * commands/i386/pc/pxecmd.c (options): Removed.
20321 (print_ip): Removed.
20322 (grub_cmd_pxe): Removed
20323 (grub_cmd_pxe_unload): New function.
20324 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
20325 (grub_pxe_your_ip): Made static.
20326 (grub_pxe_default_server_ip): Likewise.
20327 (grub_pxe_default_gateway_ip): Likewise.
20328 (grub_pxe_blksize): Likewise.
20329 (parse_ip): New function.
20330 (grub_pxe_open): Support server and gateway specification.
20331 (grub_pxe_close): Free disk->data.
20332 (grub_pxefs_open): Use disk->data.
20333 (grub_pxefs_read): Likewise.
20334 (grub_env_write_readonly): New function.
20335 (set_mac_env): Likewise.
20336 (set_env_limn_ro): Likewise.
20337 (parse_dhcp_vendor): Likewise.
20338 (grub_pxe_detect): Set the environment variables.
20339 (set_ip_env): New function.
20340 (write_ip_env): Likewise.
20341 (grub_env_write_pxe_default_server): Likewise.
20342 (grub_env_write_pxe_default_gateway): Likewise.
20343 (grub_env_write_pxe_blocksize): Likewise.
20344 (GRUB_MOD_INIT(pxe)): Set environment variables.
20345 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
20346 (grub_pxe_mac_addr_t): ... this. All users updated.
20347 (grub_pxe_your_ip): Removed.
20348 (grub_pxe_server_ip): Likewise.
20349 (grub_pxe_gateway_ip): Likewise.
20350 (grub_pxe_blksize): Likewise.
20351
20352 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20353
20354 * commands/help.c: Include `<grub/i18n.h>'.
20355 (grub_cmd_help): Gettextizze.
20356 (GRUB_MOD_INIT): Likewise.
20357 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
20358 (GRUB_MOD_INIT): Gettextizze.
20359 * commands/search.c: Include `<grub/i18n.h>'.
20360 (options): Gettextizze.
20361 (GRUB_MOD_INIT): Gettextizze.
20362 * lib/arg.c: Include `<grub/i18n.h>'.
20363 (help_options): Gettextizze.
20364 (find_long): Likewise.
20365 (grub_arg_show_help): Likewise.
20366 * normal/dyncmd.c: Include `<grub/i18n.h>'.
20367 (read_command_list): Gettextizze.
20368 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
20369 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
20370
20371 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20372
20373 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
20374 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
20375 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
20376 (led_status): New variable.
20377 (keyboard_controller_led): New function.
20378 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
20379 update led status for caps lock, num lock and scroll lock.
20380
20381 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
20382
20383 * util/hostdisk.c (open_device): Fix a comment.
20384
20385 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20386
20387 * util/grub-install.in (host_os): New variable.
20388 * util/i386/efi/grub-install.in (host_os): Likewise.
20389
20390 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20391
20392 * util/mkisofs/write.c (padblock_write): Abort when given an
20393 excedingly large embed image, instead of silently truncating it.
20394
20395 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20396
20397 * include/multiboot.h: Indentation fixes.
20398
20399 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20400
20401 * include/multiboot.h (struct multiboot_aout_symbol_table)
20402 (struct multiboot_elf_section_header_table): New structure
20403 declarations (stolen from GRUB Legacy).
20404 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
20405 table information.
20406
20407 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
20408 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
20409 type aliases.
20410
20411 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20412
20413 * include/multiboot.h: Make comments src2texi-friendly.
20414
20415 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20416
20417 For consistency with [multiboot]/docs/boot.S.
20418
20419 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
20420 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
20421 (MULTIBOOT_MAGIC2): Rename from this ...
20422 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
20423
20424 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20425
20426 * include/multiboot.h: Remove `<grub/types.h>'.
20427 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
20428 types. Update all users.
20429
20430 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20431
20432 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
20433 `couldn't' and `can not' by `cannot'.
20434 * commands/i386/pc/drivemap.c: Likewise.
20435 * disk/ata.c: Likewise.
20436 * disk/ieee1275/nand.c: Likewise.
20437 * fs/affs.c: Likewise.
20438 * fs/fat.c: Likewise.
20439 * fs/hfs.c: Likewise.
20440 * fs/hfsplus.c: Likewise.
20441 * fs/iso9660.c: Likewise.
20442 * fs/jfs.c: Likewise.
20443 * fs/minix.c: Likewise.
20444 * fs/reiserfs.c: Likewise.
20445 * fs/sfs.c: Likewise.
20446 * fs/udf.c: Likewise.
20447 * fs/ufs.c: Likewise.
20448 * fs/xfs.c: Likewise.
20449 * loader/powerpc/ieee1275/linux.c: Likewise.
20450 * loader/sparc64/ieee1275/linux.c: Likewise.
20451 * util/grub-probe.c: Likewise.
20452 * util/misc.c: Likewise.
20453
20454 2009-12-24 Carles Pina i Estany <carles@pina.cat>
20455
20456 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
20457 grub_errno calls.
20458 * commands/acpi.c: Likewise.
20459 * commands/blocklist.c: Likewise.
20460 * commands/efi/loadbios.c: Likewise.
20461 * commands/i386/pc/drivemap.c: Likewise.
20462 * commands/loadenv.c: Likewise.
20463 * commands/memrw.c: Likewise.
20464 * commands/password.c: Likewise.
20465 * commands/videotest.c: Likewise.
20466 * disk/ata.c: Likewise.
20467 * disk/ata_pthru.c: Likewise.
20468 * disk/dmraid_nvidia.c: Likewise.
20469 * disk/ieee1275/nand.c: Likewise.
20470 * disk/ieee1275/ofdisk.c: Likewise.
20471 * disk/loopback.c: Likewise.
20472 * disk/lvm.c: Likewise.
20473 * disk/mdraid_linux.c: Likewise.
20474 * disk/raid.c: Likewise.
20475 * disk/raid6_recover.c: Likewise.
20476 * disk/scsi.c: Likewise.
20477 * efiemu/main.c: Likewise.
20478 * efiemu/mm.c: Likewise.
20479 * efiemu/pnvram.c: Likewise.
20480 * efiemu/symbols.c: Likewise.
20481 * font/font.c: Likewise.
20482 * fs/cpio.c: Likewise.
20483 * fs/hfsplus.c: Likewise.
20484 * fs/iso9660.c: Likewise.
20485 * fs/jfs.c: Likewise.
20486 * fs/minix.c: Likewise.
20487 * fs/ntfs.c: Likewise.
20488 * fs/ntfscomp.c: Likewise.
20489 * fs/reiserfs.c: Likewise.
20490 * fs/ufs.c: Likewise.
20491 * fs/xfs.c: Likewise.
20492 * gettext/gettext.c: Likewise.
20493 * include/grub/auth.h: Likewise.
20494 * kern/elf.c: Likewise.
20495 * kern/file.c: Likewise.
20496 * kern/ieee1275/init.c: Likewise.
20497 * kern/ieee1275/mmap.c: Likewise.
20498 * kern/ieee1275/openfw.c: Likewise.
20499 * kern/powerpc/dl.c: Likewise.
20500 * kern/sparc64/dl.c: Likewise.
20501 * lib/arg.c: Likewise.
20502 * loader/i386/bsd.c: Likewise.
20503 * loader/i386/bsdXX.c: Likewise.
20504 * loader/i386/efi/linux.c: Likewise.
20505 * loader/i386/efi/xnu.c: Likewise.
20506 * loader/i386/ieee1275/linux.c: Likewise.
20507 * loader/i386/linux.c: Likewise.
20508 * loader/i386/multiboot.c: Likewise.
20509 * loader/i386/pc/linux.c: Likewise.
20510 * loader/i386/pc/multiboot2.c: Likewise.
20511 * loader/i386/xnu.c: Likewise.
20512 * loader/ieee1275/multiboot2.c: Likewise.
20513 * loader/macho.c: Likewise.
20514 * loader/machoXX.c: Likewise.
20515 * loader/multiboot2.c: Likewise.
20516 * loader/multiboot_loader.c: Likewise.
20517 * loader/powerpc/ieee1275/linux.c: Likewise.
20518 * loader/sparc64/ieee1275/linux.c: Likewise.
20519 * loader/xnu.c: Likewise.
20520 * loader/xnu_resume.c: Likewise.
20521 * mmap/i386/pc/mmap.c: Likewise.
20522 * normal/menu_viewer.c: Likewise.
20523 * partmap/acorn.c: Likewise.
20524 * partmap/amiga.c: Likewise.
20525 * partmap/apple.c: Likewise.
20526 * script/lexer.c: Likewise.
20527 * term/gfxterm.c: Likewise.
20528 * term/i386/pc/serial.c: Likewise.
20529 * term/i386/pc/vga.c: Likewise.
20530 * term/ieee1275/ofconsole.c: Likewise.
20531 * term/terminfo.c: Likewise.
20532 * video/bitmap.c: Likewise.
20533 * video/efi_gop.c: Likewise.
20534 * video/efi_uga.c: Likewise.
20535 * video/fb/video_fb.c: Likewise.
20536 * video/i386/pc/vbe.c: Likewise.
20537 * video/readers/tga.c: Likewise.
20538 * video/video.c: Likewise.
20539
20540 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
20541
20542 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
20543 * commands/lspci.c: Likewise.
20544 * commands/probe.c: Likewise.
20545 * commands/xnu_uuid.c: Likewise.
20546 * conf/i386-coreboot.rmk: Likewise.
20547 * conf/i386-efi.rmk: Likewise.
20548 * conf/i386-ieee1275.rmk: Likewise.
20549 * conf/i386-pc.rmk: Likewise.
20550 * conf/powerpc-ieee1275.rmk: Likewise.
20551 * conf/sparc64-ieee1275.rmk: Likewise.
20552 * conf/x86_64-efi.rmk: Likewise.
20553 * fs/i386/pc/pxe.c: Likewise.
20554 * gettext/gettext.c: Likewise.
20555 * include/grub/efi/graphics_output.h: Likewise.
20556 * include/grub/i386/pc/memory.h: Likewise.
20557 * kern/env.c: Likewise.
20558 * kern/i386/qemu/startup.S: Likewise.
20559 * lib/i386/pc/biosnum.c: Likewise.
20560 * lib/i386/relocator.c: Likewise.
20561 * lib/i386/relocator_asm.S: Likewise.
20562 * lib/relocator.c: Likewise.
20563 * loader/i386/bsd.c: Likewise.
20564 * loader/i386/multiboot.c: Likewise.
20565 * loader/i386/pc/chainloader.c: Likewise.
20566 * loader/i386/xnu.c: Likewise.
20567 * loader/xnu.c: Likewise.
20568 * normal/main.c: Likewise.
20569 * normal/menu_text.c: Likewise.
20570 * util/getroot.c: Likewise.
20571 * util/grub-mkconfig_lib.in: Likewise.
20572 * util/grub.d/00_header.in: Likewise.
20573 * util/i386/pc/grub-mkimage.c: Likewise.
20574 * util/mkisofs/eltorito.c: Likewise.
20575 * util/mkisofs/exclude.h: Likewise.
20576 * util/mkisofs/hash.c: Likewise.
20577 * util/mkisofs/iso9660.h: Likewise.
20578 * util/mkisofs/joliet.c: Likewise.
20579 * util/mkisofs/mkisofs.c: Likewise.
20580 * util/mkisofs/mkisofs.h: Likewise.
20581 * util/mkisofs/multi.c: Likewise.
20582 * util/mkisofs/name.c: Likewise.
20583 * util/mkisofs/rock.c: Likewise.
20584 * util/mkisofs/tree.c: Likewise.
20585 * util/mkisofs/write.c: Likewise.
20586 * video/efi_gop.c: Likewise.
20587
20588 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
20589
20590 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
20591 size counting.
20592
20593 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20594
20595 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
20596 * genmk.rb (class SCRIPT): Modify the target file instead of source.
20597
20598 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20599
20600 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
20601 (GRUB_MOD_INIT(memrw)): Update help line.
20602
20603 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20604
20605 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
20606 Use grub_extcmd_t. All users updated.
20607 (options): New variable.
20608 (grub_cmd_read): Restructure for readability. Support "-v" option.
20609 (grub_cmd_write): Restructure for readability.
20610
20611 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20612
20613 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
20614
20615 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20616
20617 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
20618 with the actual contents of the correspondending make variable.
20619 * util/grub-mkrescue.in (pkglib_DATA): New variable.
20620 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
20621 specifying `*.lst' and `efiemu??.o'
20622
20623 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20624
20625 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
20626 after function name.
20627 Noticed by Rene Engelhard <rene@debian.org>.
20628
20629 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20630
20631 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
20632 (options): New variable.
20633 (iospace): Likewise.
20634 (grub_lspci_iter): List IO spaces if "-i" was given.
20635 (grub_cmd_lspci): Parse options.
20636 (GRUB_MOD_INIT(lspci)): Use extcmd.
20637 (GRUB_MOD_FINI(lspci)): Likewise.
20638
20639 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20640
20641 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
20642 `function' keyword.
20643 Patch by Tony Mancill <tmancill@debian.org>.
20644
20645 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20646
20647 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
20648 (grub_uhci_portstatus): Likewise.
20649 (grub_uhci_portstatus): Add necessary delay.
20650 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
20651
20652 2009-12-21 Carles Pina i Estany <carles@pina.cat>
20653
20654 * commands/acpi.c (options): Fix capitalizations and/or full stops.
20655 (GRUB_MOD_INIT): Likewise.
20656 * commands/boot.c (GRUB_MOD_INIT): Likewise.
20657 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
20658 * commands/echo.c (options): Fix capitalizations and/or full stops.
20659 * commands/efi/loadbios.c (enable_rom_area): Likewise.
20660 (enable_rom_area): Likewise.
20661 (GRUB_MOD_INIT): Likewise.
20662 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20663 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
20664 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20665 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
20666 * commands/hexdump.c (options): Likewise.
20667 * commands/i386/cpuid.c (options): Likewise.
20668 (GRUB_MOD_INIT): Likewise.
20669 * commands/i386/pc/drivemap.c (options): Likewise.
20670 (GRUB_MOD_INIT): Likewise.
20671 * commands/i386/pc/halt (options): Likewise.
20672 (GRUB_MOD_INIT): Likewise.
20673 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20674 * commands/i386/pc/pxecmd.c (options): Likewise.
20675 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
20676 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
20677 * commands/keystatus.c (options): Likewise.
20678 (GRUB_MOD_INIT): Likewise.
20679 * commands/loadenv.c (options): Likewise.
20680 * commands/ls.c (options): Likewise.
20681 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20682 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20683 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20684 * commands/parttool.c (helpmsg): Likewise.
20685 * commands/probe.c (options): Likewise.
20686 * commands/read.c (GRUB_MOD_INIT): Likewise.
20687 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
20688 * commands/search.c (options): Likewise.
20689 * commands/sleep.c (options): Likewise.
20690 * commands/test.c (GRUB_MOD_INIT): Likewise.
20691 * commands/true.c (GRUB_MOD_INIT): Likewise.
20692 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
20693 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
20694 * lib/arg.c (help_options): Likewise.
20695 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
20696 `$(XGETTEXT)'.
20697 * po/POTFILES: Add `commands/loadenv.c'.
20698
20699 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
20700
20701 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
20702 instead of specifying them explicit.
20703
20704 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20705
20706 * NEWS: Add grub-probe support for GNU/Hurd.
20707
20708 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20709
20710 * NEWS: gettext was added after 1.97.
20711
20712 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20713
20714 * util/mkisofs/msdos_partition.h: New file (based on
20715 include/grub/msdos_partition.h).
20716 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
20717 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
20718 (ld_options, main): Recognize --protective-msdos-label.
20719 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
20720 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
20721 (padblock_write): If `use_protective_msdos_label' is set, patch a
20722 protective DOS-style label in the output image.
20723
20724 * util/grub-mkrescue.in: Use --protective-msdos-label.
20725
20726 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20727
20728 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
20729 boot.
20730
20731 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20732
20733 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
20734 variables.
20735 (ld_options, main): Recognize `--embedded-boot'.
20736 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
20737 declarations.
20738 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
20739 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
20740 (padblock_write): Likewise. Rewrite to support embedded boot image.
20741
20742 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
20743 for BIOS-based disk boot instead of only ElTorito.
20744
20745 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20746
20747 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
20748 build (not needed for bootstrap).
20749
20750 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20751
20752 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
20753 from i386-pc build (not needed for bootstrap).
20754 Rewrite a pair of strings.
20755
20756 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20757
20758 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
20759
20760 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
20761
20762 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
20763
20764 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20765
20766 * kern/env.c (grub_env_context_open): Mark exported variable for
20767 reexport.
20768
20769 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20770
20771 * kern/env.c (grub_env_export): Create nonexistent variables before
20772 exporting.
20773
20774 2009-12-20 Carles Pina i Estany <carles@pina.cat>
20775
20776 * include/grub/auth.h: Include `<grub/i18n.h>'.
20777 (GRUB_GET_PASSWORD): Gettextizze string.
20778 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
20779 menu_text.c.
20780 (grub_utf8_to_ucs4_alloc): Fix indentation.
20781 (grub_print_ucs4): Likewise.
20782 (grub_getstringwidth): Likewise.
20783 (print_message_indented): New declaration.
20784 * normal/auth.c: Include `<grub/i18n.h>'.
20785 (grub_auth_check_authentication): Gettexttize string.
20786 * normal/cmdline.c: Include `<grub/i18n.h>'.
20787 (grub_cmdline_get): Gettextizze.
20788 * normal/color.c: Include `<grub/i18n.h>'.
20789 (grub_parse_color_name_pair): Gettexttize strings.
20790 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
20791 string (use `print_message_indented').
20792 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
20793 `include/grub/normal.h'.
20794 (print_message_indented): Renamed to ...
20795 (grub_print_message_indented): ... this. Remove `static' qualifer (now
20796 used in normal/main.c).
20797 (print_message): Use `grub_print_message_indented' instead of
20798 `print_message_indented'.
20799 (print_timeout): Likewise.
20800 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
20801 (grub_normal_print_device_info): Gettexttize strings.
20802 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
20803
20804 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20805
20806 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
20807 of arguments. Return number of tokens and not arguments. All users
20808 updated.
20809
20810 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20811
20812 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
20813 non-MSDOS paritions.
20814
20815 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20816
20817 * include/grub/types.h (UNUSED): Removed since it conflicts with
20818 NetBSD headers. All users changed to direct __attribute__ ((unused)).
20819 Reported by Grégoire Sutre.
20820
20821 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20822
20823 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
20824 (grub_print_ucs4_alloc): Likewise.
20825 (grub_getstringwidth): Likewise.
20826 * normal/main.c (grub_normal_init_page): Gettextize version string.
20827 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
20828 (getstringwidth): Renamed to ...
20829 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
20830 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
20831 (grub_print_ucs4): Remove `static' qualifer (now used in
20832 normal/main.c).
20833 * po/POTFILES: Add normal/main.c.
20834
20835 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20836
20837 * normal/menu_text.c (STANDARD_MARGIN): New macro.
20838 (print_message_indented): Add `margin_left' and `margin_right'
20839 parameters.
20840 (print_message): Update `print_message_indented' calls. Adds '\n' to the
20841 strings.
20842 (print_timeout): Use `print_message_indented' to print the message.
20843 Deletes `second_stage' parameter.
20844 (run_menu): Update `print_timeout' calls.
20845
20846 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20847
20848 Fix console palette on OpenFirmware.
20849
20850 * term/ieee1275/ofconsole.c (MAX): Removed.
20851 (colors): Redone based on VGA palette.
20852 (grub_ofconsole_setcolor): Discard brightness bit since only 8
20853 colors are supported.
20854 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
20855
20856 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20857
20858 Fix potential EfiEmu double prepare.
20859
20860 * efiemu/main.c (prepared): New variable
20861 (grub_efiemu_unload): Set prepare to '0'.
20862 (grub_efiemu_prepare): Return if already prepared. Set prepared.
20863
20864 set_virtual_address_map support.
20865
20866 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
20867 prototype.
20868 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
20869 prototype.
20870 (grub_efiemu_crc32): Likewise.
20871 (grub_efiemu_crc64): Likewise.
20872 (grub_efiemu_set_virtual_address_map): Likewise.
20873 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
20874 New definition.
20875 (grub_autoefi_set_virtual_address_map): Likewise.
20876 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
20877 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
20878 Restructure flow to accomodate it.
20879 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
20880 (grub_efiemu_crc): Recompute CRC32.
20881 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
20882 (efiemu_ptv_relocated): ... this. Made global. All users updated.
20883 * efiemu/symbols.c (relocated_handle): New variable.
20884 (grub_efiemu_free_syms): Free relocated_handle.
20885 (grub_efiemu_alloc_syms): Allocate relocated_handle.
20886 (grub_efiemu_write_sym_markers): New function.
20887 (grub_efiemu_set_virtual_address_map): Likewise.
20888
20889 Newer XNU parameters.
20890
20891 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
20892 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
20893 (grub_xnu_fill_devicetree): New prototype.
20894 (grub_xnu_heap_real_start): New variable.
20895 * loader/xnu.c (get_name_ptr): New function.
20896 (grub_xnu_load_driver): Fill namelen and name.
20897
20898 64-bit xnu support.
20899
20900 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
20901 and 'loader/macho64.c'.
20902 * conf/i386-pc.rmk: Likewise.
20903 * conf/x86_64-efi.rmk: Likewise.
20904 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
20905 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
20906 * include/grub/macho.h (grub_macho_segment64): New structure.
20907 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
20908 (grub_macho_size32): ... to this.
20909 (grub_macho32_get_entry_point): Renamed from ...
20910 (grub_macho_get_entry_point32): ... to this.
20911 (grub_macho_contains_macho64): New prototype.
20912 (grub_macho_size64): Likewise.
20913 (grub_macho_get_entry_point64): Likewise.
20914 (grub_macho32_load): Renamed from ...
20915 (grub_macho_load32): ... to this.
20916 (grub_macho32_filesize): Renamed from ...
20917 (grub_macho_filesize32): ... to this.
20918 (grub_macho32_readfile): Renamed from ...
20919 (grub_macho_readfile32): ... to this.
20920 (grub_macho_filesize64): New prototype.
20921 (grub_macho_readfile64): Likewise.
20922 (grub_macho_parse32): Likewise.
20923 (grub_macho_parse64): Likewise.
20924 * loader/macho.c: Split into ...
20925 * loader/machoXX.c: ... and this. Replace 32 with XX.
20926 * loader/macho32.c: New file.
20927 * loader/macho64.c: Likewise.
20928 * loader/xnu.c (grub_xnu_is_64bit): New variable.
20929 (grub_cmd_xnu_kernel): Make 32-bit only.
20930 (grub_cmd_xnu_kernel64): New function.
20931 (grub_xnu_load_driver): Support Mach-O 64.
20932 (grub_cmd_xnu_mkext): Likewise.
20933 * util/grub.d/30_os-prober.in (osx_entry): New function.
20934 Generate entries for 64-bit boot too.
20935
20936 Eliminate ad-hoc tree format in XNU and EfiEmu.
20937
20938 * efiemu/main.c (grub_efiemu_prepare): Update comment.
20939 * efiemu/pnvram.c: Rewritten to use environment variables.
20940 All users updated.
20941
20942 Inline utf16_to_utf8.
20943
20944 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
20945 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
20946 All users updated.
20947 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
20948
20949 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
20950 * commands/usbtest.c (grub_usb_get_string): ... move here.
20951 (usb_print_str): Fix error handling.
20952 * include/grub/usb.h (grub_usb_get_string): Remove.
20953
20954 UTF-8 to UTF-16 transformation.
20955
20956 * conf/common.rmk (pkglib_MODULES): Add charset.mod
20957 (charset_mod_SOURCES): New variable.
20958 (charset_mod_CFLAGS): Likewise.
20959 (charset_mod_LDFLAGS): Likewise.
20960 * include/grub/utf.h: New file.
20961 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
20962
20963 Support for device properties.
20964
20965 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
20966 (grub_xnu_devprop_device_header): Likewise.
20967 (grub_xnu_devprop_device_descriptor): Likewise.
20968 (grub_xnu_devprop_add_device): New prototype.
20969 (grub_xnu_devprop_remove_device): Likewise.
20970 (grub_xnu_devprop_remove_property): Likewise.
20971 (grub_xnu_devprop_add_property_utf8): Likewise.
20972 (grub_xnu_devprop_add_property_utf16): Likewise.
20973 (grub_cpu_xnu_init): Likewise.
20974 (grub_cpu_xnu_fini): Likewise.
20975 (grub_cpu_xnu_unload): Likewise.
20976 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
20977 (property_descriptor): Likewise.
20978 (devices): New variable.
20979 (grub_xnu_devprop_remove_property): New function.
20980 (grub_xnu_devprop_add_device): Likewise.
20981 (grub_xnu_devprop_remove_device): Likewise.
20982 (grub_xnu_devprop_add_property): Likewise.
20983 (grub_xnu_devprop_add_property_utf8): Likewise.
20984 (grub_xnu_devprop_add_property_utf16): Likewise.
20985 (hextoval): Likewise.
20986 (grub_cpu_xnu_fill_devprop): Likewise.
20987 (grub_cmd_devprop_load): Likewise.
20988 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
20989 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
20990 (cmd_devprop_load): New variable.
20991 (grub_cpu_xnu_init): New function.
20992 (grub_cpu_xnu_fini): Likewise.
20993 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
20994 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
20995 (grub_cmd_xnu_devtree): Likewise.
20996 (hextoval): New function.
20997 (unescape): Likewise.
20998 (grub_xnu_fill_devicetree): Likewise.
20999
21000 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
21001 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
21002
21003 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21004
21005 Workaround for broken ATI VBE.
21006
21007 * video/i386/pc/vbe.c (last_set_mode): New variable.
21008 (grub_vbe_set_video_mode): Set 'last_set_mode'.
21009 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
21010 (grub_video_vbe_setup): Don't check for reserved flag.
21011
21012 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
21013
21014 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
21015 the `find' command.
21016
21017 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
21018
21019 UUID support for HFS.
21020
21021 * fs/hfs.c (grub_hfs_uuid): New function.
21022 (grub_hfs_fs): New value .uuid.
21023 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
21024
21025 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
21026
21027 Fix a segfault with parsing unknown long options.
21028
21029 * util/grub-mkrelpath.c (options): Zero terminate it.
21030
21031 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21032
21033 * include/grub/misc.h (grub_puts): New declaration.
21034 (grub_puts_): Likewise.
21035 * kern/misc.c (grub_puts): New definition.
21036 (grub_puts_): Likewise.
21037
21038 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
21039
21040 * util/grub-probe.c (probe): Improve error message.
21041
21042 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
21043
21044 * loader/i386/multiboot_elfxx.c
21045 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
21046 initialization.
21047
21048 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21049
21050 Relocator framework
21051
21052 * loader/i386/xnu_helper.S: Removed. All users updated.
21053 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
21054 (relocator_mod_SOURCES): New variable.
21055 (relocator_mod_CFLAGS): Likewise.
21056 (relocator_mod_LDFLAGS): Likewise.
21057 (relocator_mod_ASFLAGS): Likewise.
21058 * conf/x86_64.rmk: Likewise.
21059 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
21060 (grub_multiboot_payload_entry_offset): Likewise.
21061 (grub_multiboot_forward_relocator): Likewise.
21062 (grub_multiboot_forward_relocator_end): Likewise.
21063 (grub_multiboot_backward_relocator): Likewise.
21064 (grub_multiboot_backward_relocator_end): Likewise.
21065 (grub_multiboot_payload_eip): New variable.
21066 (grub_multiboot_payload_orig): Likewise.
21067 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
21068 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
21069 * include/grub/i386/memory.h
21070 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
21071 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
21072 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
21073 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
21074 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
21075 * include/grub/i386/relocator.h: New file.
21076 * include/grub/x86_64/relocator.h: Likewise.
21077 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
21078 (XNU_RELOCATOR): New macro.
21079 (grub_xnu_launcher_start): Remove.
21080 (grub_xnu_launcher_end): Likewise.
21081 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
21082 (grub_xnu_heap_real_start): Remove.
21083 (grub_xnu_heap_start): Change to void *. All users updated.
21084 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
21085 * lib/i386/relocator.c: New file.
21086 * lib/i386/relocator_asm.S: Likewise.
21087 * lib/i386/relocator_backward.S: Likewise.
21088 * lib/mips/relocator.c: Likewise.
21089 * lib/mips/relocator_asm.S: Likewise.
21090 * lib/relocator.c: Likewise.
21091 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
21092 (entry): Removed.
21093 (playground): Likewise.
21094 (grub_multiboot_payload_orig): New variable.
21095 (grub_multiboot_payload_dest): Likewise.
21096 (grub_multiboot_payload_size): Likewise.
21097 (grub_multiboot_payload_eip): Likewise.
21098 (grub_multiboot_payload_esp): Likewise.
21099 (grub_multiboot_boot): Use grub_relocator32_boot.
21100 (grub_multiboot_unload): Free relocators.
21101 (grub_multiboot): Setup stack. Use relocators.
21102 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
21103 (grub_multiboot_load_elfXX): Use relocators.
21104 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
21105 (grub_multiboot_payload_size): Likewise.
21106 (grub_multiboot_payload_dest): Likewise.
21107 (grub_multiboot_payload_entry_offset): Likewise.
21108 (grub_multiboot_forward_relocator): Likewise.
21109 (grub_multiboot_backward_relocator): Likewise.
21110 (grub_multiboot_real_boot): Likewise.
21111 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
21112 (grub_xnu_entry_point): Likewise.
21113 (grub_xnu_arg1): Likewise.
21114 (grub_xnu_stack): Likewise.
21115 (grub_xnu_launch): Removed.
21116 (grub_xnu_boot_resume): New function.
21117 (grub_xnu_boot): Use relocators.
21118 * loader/i386/xnu_helper.S: Removed.
21119 * loader/xnu.c (grub_xnu_heap_start): New variable.
21120 (grub_xnu_heap_size): Likewise.
21121 (grub_xnu_heap_malloc): Use relocators.
21122 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
21123
21124 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21125
21126 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
21127 anything.
21128
21129 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21130
21131 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
21132 GRUB_ERR_NONE before calling grub_env_set.
21133
21134 2009-12-12 Robert Millan <rmh@aybabtu.com>
21135
21136 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
21137 * genmk.rb (video): New variable.
21138 (CLEANFILES, VIDEOFILES): Add #{video}.
21139 (#{video}): New target rule.
21140 * genvideolist.sh: New file.
21141 * Makefile.in (pkglib_DATA): Add video.lst.
21142 (video.lst): New target rule.
21143 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
21144 `video.lst'.
21145 * util/grub.d/30_os-prober.in: Replace `vbe' with
21146 ${GRUB_VIDEO_BACKEND}.
21147
21148 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
21149
21150 * THANKS: Add David Miller.
21151
21152 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
21153
21154 libpciaccess support.
21155
21156 * Makefile.in (LIBPCIACCESS): New variable.
21157 (enable_grub_emu_pci): Likewise.
21158 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
21159 util/pci.c and commands/lspci.c.
21160 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
21161 * configure.ac (grub-emu-pci): New option.
21162 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
21163 (grub_pci_device_unmap_range): Likewise.
21164 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
21165 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
21166 (grub_pci_address_t) [!GRUB_UTIL]: New type.
21167 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
21168 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
21169 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
21170 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
21171 * include/grub/pciutils.h: New file.
21172 * util/pci.c: Likewise.
21173
21174 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
21175
21176 * util/misc.c: Don't include <errno.h> twice.
21177
21178 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
21179
21180 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
21181 name in an error message.
21182 (grub_biosdisk_rw): Likewise.
21183
21184 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21185
21186 Eliminate NTFS 4Gib barrier.
21187
21188 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
21189 (read_run_data): Likewise.
21190 (grub_ntfs_read_run_list): Likewise.
21191 (grub_ntfs_read_block): Likewise.
21192 (grub_ntfs_iterate_dir): Likewise.
21193 (read_mft): Likewise.
21194 (read_data): Likewise.
21195 Use COM_LOG_LEN.
21196 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
21197 to avoid 64-bit division
21198 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
21199 (grub_ntfs_rlst): Use grub_disk_addr_t.
21200
21201 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21202
21203 Eliminate grub-fstest 4Gib barrier.
21204
21205 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
21206 (read_file): Fix error reporting.
21207
21208 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21209
21210 Eliminate hexdump 4Gib barrier.
21211
21212 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
21213 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
21214
21215 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21216
21217 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
21218 Fixes amarsh bug.
21219
21220 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
21221
21222 Remove miscellaneous files in distclean target.
21223
21224 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
21225
21226 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
21227
21228 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
21229 if they're already set. This resolves the conflict between my
21230 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
21231 fixing the --grub-probe option again.
21232 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
21233 change on 2009-10-06, so that we now once again source
21234 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
21235
21236 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
21237
21238 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
21239 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
21240 `util/devicemap.c'.
21241
21242 2009-12-08 Carles Pina i Estany <carles@pina.cat>
21243
21244 * include/grub/misc.h (grub_printf_): New declaration.
21245 * kern/misc.c (grub_printf_): New definition.
21246 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
21247 instead of `grub_printf' and `_'.
21248 * normal/menu_entry.c (store_completion): Likewise.
21249 (run): Likewise.
21250 (grub_menu_entry_run): Likewise.
21251 * normal/menu_text.c (grub_wait_after_message): Likewise.
21252 (notify_booting): Likewise.
21253 (notify_fallback): Likewise.
21254 (notify_execution_failure): Likewise.
21255
21256 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
21257
21258 * configure.ac: Check for vasprintf.
21259 * util/misc.c (asprintf): Move allocation from here ...
21260 (vasprintf): ... to here. New function.
21261 (xasprintf): New function.
21262 * include/grub/util/misc.h (vasprintf, xasprintf): Add
21263 prototypes.
21264 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21265 * util/grub-mkfont.c (write_font): Likewise.
21266 * util/grub-probe.c (probe): Likewise.
21267 * util/hostdisk.c (make_device_name): Likewise.
21268
21269 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
21270
21271 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
21272 anything even prefixed with 'cdrom' as a cdrom.
21273
21274 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
21275
21276 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
21277 mount points.
21278
21279 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21280
21281 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
21282 grub_gettext_msg_list.
21283 (grub_gettext_gettranslation_from_position): Return const char *
21284 and not char *.
21285 (grub_gettext_translate): Add the translated strings into a list,
21286 returns from the list if existing there.
21287 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
21288 (grub_gettext_delete_list): Delete the list.
21289 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
21290 lang environment variable is changed.
21291 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
21292
21293 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21294
21295 Rename kernel.mod to kernel.img.
21296
21297 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
21298 (kernel_mod_EXPORTS): Rename to ...
21299 (kernel_img_EXPORTS): ... this.
21300 (kernel_mod_SOURCES): Rename to ...
21301 (kernel_img_SOURCES): ... this.
21302 (kernel_mod_HEADERS): Rename to ...
21303 (kernel_img_HEADERS): ... this. All users updated.
21304 (kernel_mod_CFLAGS): Rename to ...
21305 (kernel_img_CFLAGS): ... this.
21306 (kernel_mod_ASFLAGS): Rename to ...
21307 (kernel_img_ASFLAGS): ... this.
21308 (kernel_mod_LDFLAGS): Rename to ...
21309 (kernel_img_LDFLAGS): ... this.
21310 * conf/x86_64-efi.rmk: Likewise.
21311 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
21312 (read_kernel_image): ... this. All users updated.
21313 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
21314
21315 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21316
21317 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
21318 (print_spaces): New function.
21319 (grub_print_ucs4): New function.
21320 (getstringwidth): New function.
21321 (print_message_indented): New function.
21322 (print_message): Gettexttize strings using print_message_indented.
21323 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
21324 width.
21325 (get_entry_number): Gettextize and uses dynamic terminal width.
21326 (notify_booting, notify_fallback, notify_execution_failure):
21327 Gettextize.
21328 * normal/menu_entry.c (store_completion): Cleanup the gettextized
21329 string.
21330 (run): Likewise.
21331 (grub_menu_entry_run): Likewise.
21332 * PO/POTFILES: Add normal/menu_entry.c.
21333
21334 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21335
21336 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
21337
21338 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21339
21340 * util/grub-install.in: Install gettext .mo files.
21341 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
21342
21343 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21344
21345 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
21346 grub_dprintf.
21347
21348 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
21349
21350 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
21351 non-firmware-dependant one in realmode.S takes precedence.
21352
21353 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
21354
21355 * commands/halt.c: Replace misc arch-specific headers with
21356 `<grub/misc.h>'.
21357 * commands/reboot.c: Likewise.
21358 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
21359 `<grub/misc.h>'.
21360 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
21361 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
21362 (kernel_img_SOURCES): ... to here.
21363
21364 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
21365 * include/grub/i386/pc/init.h: Likewise.
21366 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21367 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21368
21369 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
21370
21371 * include/grub/i386/halt.h: Remove.
21372 * include/grub/i386/reboot.h: Likewise.
21373
21374 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
21375
21376 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
21377
21378 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
21379 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
21380 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
21381 "progname.h"
21382 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21383 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21384 (usage): Add missing comma in printf.
21385
21386 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
21387
21388 Use the same reboot approach on i386 coreboot and qemu as we do on
21389 BIOS.
21390
21391 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
21392 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
21393 * kern/i386/reboot.c: Remove.
21394 * include/grub/i386/reboot.h (grub_reboot): Export function.
21395 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
21396 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
21397 0xf000:0xfff0 instead of 0xffff:0x0000.
21398 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
21399 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
21400
21401 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
21402
21403 Fix $srcdir != $objdir build.
21404
21405 * Makefile.in (po/%.po): Rewrite as ...
21406 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
21407
21408 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21409
21410 Fix GNU/Hurd grub-install crash.
21411 * util/grub-probe.c (probe): Try to access `path' only when it is not
21412 NULL.
21413
21414 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21415
21416 Correct module naming.
21417
21418 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21419 (GRUB_MOD_INIT(efi_uga)): ... to this
21420 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21421 (GRUB_MOD_FINI(efi_uga)): ... to this
21422 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21423 (GRUB_MOD_INIT(efi_gop)): ... to this
21424 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21425 (GRUB_MOD_FINI(efi_gop)): ... to this
21426
21427 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
21428
21429 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
21430 translatable.
21431 (usage): Translate `arg' strings using gettext().
21432 Thanks to Jordi Mallach for the suggestion.
21433
21434 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21435
21436 GOP support. Based on patch from Bean
21437 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21438
21439 * video/efi_gop.c: New file.
21440 * include/grub/efi/graphics_output.h: Likewise.
21441 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
21442 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21443 variables.
21444 * conf/x86_64-efi.rmk: Likewise.
21445
21446 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21447
21448 Rename efi_fb to efi_uga.
21449
21450 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21451 'efi_uga.mod'.
21452 (efi_fb_mod_SOURCES): Rename this ...
21453 (efi_uga_mod_SOURCES): ... to this.
21454 (efi_fb_mod_CFLAGS): Rename this ...
21455 (efi_uga_mod_CFLAGS): ... to this.
21456 (efi_fb_mod_LDFLAGS): Rename this ...
21457 (efi_uga_mod_LDFLAGS): ... to this.
21458 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21459 'efi_uga.mod'.
21460 (efi_fb_mod_SOURCES): Rename this ...
21461 (efi_uga_mod_SOURCES): ... to this.
21462 (efi_fb_mod_CFLAGS): Rename this ...
21463 (efi_uga_mod_CFLAGS): ... to this.
21464 (efi_fb_mod_LDFLAGS): Rename this ...
21465 (efi_uga_mod_LDFLAGS): ... to this.
21466 * video/efi_fb.c: Move this ...
21467 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
21468
21469 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21470
21471 * po/README: New file. Explain our PO file workflow.
21472
21473 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21474
21475 * po/ChangeLog: Remove. Move relevant entries back to ...
21476 * ChangeLog: ... here.
21477 * po/ca.po: Remove (now handled by TLP).
21478 * po/id.po: Likewise.
21479 * po/zh_CN.po: Likewise.
21480 * Makefile.in (LINGUAS): Initialize in a way that supports
21481 empty set.
21482
21483 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21484
21485 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
21486 reliing on po/LINGUAS.
21487 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
21488 (po/%.po): ... this.
21489
21490 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21491
21492 * util/i386/efi/grub-mkimage.c: Include "progname.h".
21493 (main): Use `program_name' instead of nonexistent `progname'.
21494
21495 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21496
21497 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21498 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
21499
21500 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21501
21502 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
21503 commit.
21504 * conf/i386-efi.rmk: Likewise.
21505 * conf/i386-ieee1275.rmk: Likewise.
21506 * conf/powerpc-ieee1275.rmk: Likewise.
21507 * conf/sparc64-ieee1275.rmk: Likewise.
21508 * conf/x86_64-efi.rmk: Likewise.
21509
21510 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21511
21512 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
21513
21514 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21515
21516 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
21517
21518 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21519
21520 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
21521 (grub_mkdevicemap_SOURCES): New variable.
21522 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
21523 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
21524 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
21525 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
21526 (grub_mkdevicemap_SOURCES): Remove.
21527 * conf/i386-efi.rmk: Likewise.
21528 * conf/i386-ieee1275.rmk: Likewise.
21529 * conf/i386-pc.rmk: Likewise.
21530 * conf/powerpc-ieee1275.rmk: Likewise.
21531 * conf/sparc64-ieee1275.rmk: Likewise.
21532 * conf/x86_64-efi.rmk: Likewise.
21533 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
21534 (usage): Fix strings to use `program_name'.
21535 (main): Initialize gettext.
21536 * util/grub-editenv.c: Likewise.
21537 * util/grub-emu.c: Likewise.
21538 * util/grub-fstest.c: Likewise.
21539 * util/grub-mkdevicemap.c: Likewise.
21540 * util/grub-mkfont.c: Likewise.
21541 * util/grub-mkrelpath.c: Likewise.
21542 * util/grub-pe2elf.c: Likewise.
21543 * util/grub-probe.c: Likewise.
21544 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
21545 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21546 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21547
21548 * util/misc.c: Include `"progname.h"'.
21549 (progname): Remove variable.
21550 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
21551
21552 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21553
21554 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
21555 printf and print a newline after the menuentry header line.
21556 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21557
21558 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21559
21560 autoconf >= 2.60 support $(localedir).
21561
21562 * INSTALL: Note that autoconf 2.60 is required.
21563 * configure.ac (AC_PREREQ): Bump to 2.60.
21564 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
21565 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21566
21567 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
21568
21569 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
21570 aclocal is run.
21571
21572 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21573
21574 * normal/main.c (grub_normal_read_line): Fix off-by-one
21575 buffer overflow.
21576
21577 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21578
21579 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
21580 "parser.grub" in grub_command_execute() call.
21581
21582 2009-11-24 Carles Pina i Estany <carles@pina.cat>
21583
21584 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
21585 * conf/i386-efi.rmk: Likewise.
21586 * conf/i386-ieee1275.rmk: Likewise.
21587 * conf/i386-pc.rmk: Likewise.
21588 * conf/powerpc-ieee1275.rmk: Likewise.
21589 * conf/sparc64-ieee1275.rmk: Likewise.
21590 * conf/x86_64-efi.rmk: Likewise.
21591 * gettext/gettex.c: Include <grub/i18n.h>.
21592 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
21593 here ...
21594 * include/grub/i18n.h: ... to here
21595 * include/grub/i18n.h: ... to here.
21596 * kern/misc.c: Include <grub/i18n.h>
21597 (grub_gettext_dummy): Move above user.
21598
21599 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21600
21601 * util/Makefile.in (install-local): Convert a `for' into a normal
21602 shell expansion.
21603
21604 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
21605
21606 * autogen.sh: Add automake call.
21607 * config.guess: Remove.
21608 * config.sub: Likewise.
21609 * install-sh: Likewise.
21610
21611 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21612
21613 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
21614
21615 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21616
21617 * util/Makefile.in (install-local): Convert a make `$(foreach)'
21618 function to a normal shell `for'.
21619
21620 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21621
21622 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21623
21624 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21625
21626 * util/grub-mkrelpath.c: New file.
21627 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
21628 (grub_mkrelpath_SOURCES): New variable.
21629 * include/grub/util/misc.h: New function prototype.
21630 * util/misc.c (make_system_path_relative_to_its_root): New function.
21631
21632 * util/grub-mkconfig_lib.in (bindir): New variable.
21633 (grub_mkrelpath): Likewise.
21634 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
21635
21636 * util/probe.c (probe): Make the file path relative to its root.
21637 Change a info message to use the GRUB path. Enable again the
21638 check if we can read the file with GRUB facilities.
21639
21640 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
21641 to its root.
21642
21643 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21644
21645 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
21646 platform.
21647
21648 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21649
21650 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
21651 strncmp().
21652
21653 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21654
21655 * util/getroot.c (grub_util_is_dmraid): New function.
21656 (grub_util_get_dev_abstraction): Treat dmraid and multipath
21657 devices as normal ones, not as LVM.
21658
21659 2009-11-23 Carles Pina i Estany <carles@pina.cat>
21660
21661 * conf/common.rmk: Add grub-gettext_lib target and updates
21662 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
21663 LDFLAGS.
21664 * gettext/gettext.c: New file. (Reads mo files).
21665 * include/grub/file.h (grub_file_pread): New prototype.
21666 * include/grub/i18n.h (_): New prototype.
21667 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
21668 prototypes.
21669 * kern/misc.c (grub_gettext_dummy): New function.
21670 * normal/menu_text.c: Include <grub/i18n.h>.
21671 * normal/menu_text.c (print_timeout): Gettexttize string.
21672 * normal/menu_text.c (print_message): Gettexttize string.
21673 * po/POTFILES: Add `normal/menu_text.c'.
21674 * po/ca.po: Add new translations.
21675 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
21676 gettext module and defines locale_dir and lang in grub.cfg.
21677 * NEWS: Add gettext support.
21678
21679 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21680
21681 * util/hostdisk.c: Include `<grub/i18n.h>'.
21682 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
21683 (make_device_name): Rewrite using asprintf.
21684 (convert_system_partition_to_system_disk): Replace 0 with NULL.
21685 (find_system_device): If a device is not found, generate one just
21686 by reusing the OS path name.
21687 (read_device_map): Make it permissible for device.map not to exist.
21688
21689 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21690
21691 * script/sh/execute.c: Move from here ...
21692 * script/execute.c: ... to here. Update all users.
21693 * script/sh/function.c: Move from here ...
21694 * script/function.c: ... to here. Update all users.
21695 * script/sh/lexer.c: Move from here ...
21696 * script/lexer.c: ... to here. Update all users.
21697 * script/sh/main.c: Move from here ...
21698 * script/main.c: ... to here. Update all users.
21699 * script/sh/parser.y: Move from here ...
21700 * script/parser.y: ... to here. Update all users.
21701 * script/sh/script.c: Move from here ...
21702 * script/script.c: ... to here. Update all users.
21703
21704 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21705
21706 * configure.ac: Detect all `emu' platforms. Define
21707 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
21708 --enable-grub-emu logic. Disable include/grub/machine
21709 symlink on `emu' platforms.
21710
21711 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
21712 * gensymlist.sh.in: Likewise.
21713
21714 * include/grub/i386/coreboot/machine.h: Remove file.
21715 * include/grub/i386/efi/machine.h: Likewise.
21716 * include/grub/i386/ieee1275/machine.h: Likewise.
21717 * include/grub/i386/pc/machine.h: Likewise.
21718 * include/grub/i386/qemu/machine.h: Likewise.
21719 * include/grub/powerpc/ieee1275/machine.h: Likewise.
21720 * include/grub/sparc64/ieee1275/machine.h: Likewise.
21721 * include/grub/x86_64/efi/machine.h: Likewise.
21722
21723 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
21724 * commands/halt.c: Likewise.
21725 * commands/reboot.c: Likewise.
21726 * include/grub/autoefi.h: Likewise.
21727 * include/grub/i386/at_keyboard.h: Likewise.
21728 * include/grub/i386/kernel.h: Likewise.
21729 * include/grub/i386/loader.h: Likewise.
21730 * include/grub/i386/pc/memory.h: Likewise.
21731 * kern/dl.c: Likewise.
21732 * kern/i386/coreboot/init.c: Likewise.
21733 * loader/i386/bsd.c: Likewise.
21734 * loader/i386/linux.c: Likewise.
21735 * loader/multiboot_loader.c: Likewise.
21736 * term/i386/pc/serial.c: Likewise.
21737 * term/usb_keyboard.c: Likewise.
21738
21739 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
21740 `<grub/machine/machine.h>'
21741 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
21742 * util/misc.c: Remove `<grub/machine/machine.h>' and
21743 `<grub/machine/time.h>'.
21744
21745 * Makefile.in (enable_grub_emu): Remove variable.
21746 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
21747
21748 * conf/any-emu.rmk: New file.
21749 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
21750 (grub_emu_init.c): Move from here ...
21751 * conf/any-emu.rmk: ... to here.
21752
21753 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
21754 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
21755 * conf/any-emu.rmk: ... to here.
21756
21757 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21758
21759 * include/grub/parser.h (grub_parser_register): Document need
21760 of `name' parameter.
21761 * normal/main.c (grub_normal_read_line): Simplify prompt string.
21762 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
21763 "sh" to "grub".
21764
21765 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21766
21767 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
21768 `$(XGETTEXT)'.
21769 * include/grub/i18n.h (N_): New macro.
21770 * util/mkisofs/mkisofs.h: Likewise.
21771 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
21772 around N_().
21773 (usage): Use gettext() to translate help strings when printing them.
21774
21775 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21776
21777 Based on patch from Bean
21778 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21779
21780 * video/efi_fb.c: New file.
21781 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
21782 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21783 variables.
21784 * conf/x86_64-efi.rmk: Likewise.
21785
21786 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
21787
21788 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
21789 * util/i386/pc/grub-setup.c: Likewise.
21790
21791 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21792
21793 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
21794 <hurd/fs.h>
21795 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
21796 file_get_storage_info to implement grub_guess_root_device.
21797
21798 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21799
21800 * Makefile.in (target): Use make's builtin $(shell) function
21801 instead of calling directly $(SHELL) to create the locale directories,
21802 inside the $(foreach) function.
21803
21804 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21805
21806 * util/grub-mkrescue.in: Print an error and usage if output option
21807 has not been given.
21808
21809 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21810
21811 Patch from Loïc Minier <loic.minier@ubuntu.com>.
21812 * util/grub.d/30_os-prober.in: Cope with Linux entries where
21813 root and /boot are on different devices.
21814
21815 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21816
21817 Fix build for srcdir != objdir.
21818
21819 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
21820 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
21821 $(srcdir).
21822 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
21823 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
21824 reference for input.
21825
21826 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21827
21828 * util/grub-mkrescue.in: Use source directory direcly (without copiing
21829 or hardlinking it). Remove -J option, Joliet is not compatible with
21830 multiple source directories.
21831
21832 2009-11-21 Carles Pina i Estany <carles@pina.cat>
21833 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21834
21835 * util/grub-mkrescue.in: Recognize `--override-directory' option.
21836 (process_input_dir): New function. Process an arbitrary input
21837 directory.
21838 Misc adjustments to support both "override mode" and system-wide mode.
21839
21840 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21841
21842 * configure.ac (UNIFONT_BDF): Rename to ...
21843 (FONT_SOURCE): ... this. Update all users.
21844
21845 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21846
21847 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
21848 to the list of unifont files to look for.
21849
21850 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21851
21852 Patch from Joe Auricchio <jauricchio@gmail.com>
21853 * commands/minicmd.c (grub_mini_cmd_clear): New function.
21854 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
21855 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
21856
21857 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21858
21859 * Makefile.in (install-local): Add a missing backslash.
21860
21861 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21862
21863 * include/grub/x86_64/io.h: New file.
21864
21865 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21866
21867 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
21868 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
21869 Include `"progname.h"'.
21870 (main): Initialize gettext.
21871 * util/i386/pc/grub-setup.c: Gettexttize.
21872 * util/i386/pc/grub-mkimage.c: Likewise.
21873
21874 * Makefile.in (po/*.po): Redefine as ...
21875 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
21876
21877 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
21878
21879 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21880
21881 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
21882 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
21883 (program_name): Remove.
21884 (main): Initialize gettext support.
21885 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
21886 Include `<libintl.h>'.
21887 (_): New macro.
21888
21889 * util/mkisofs/eltorito.c: Gettexttize.
21890 * util/mkisofs/joliet.c: Likewise.
21891 * util/mkisofs/mkisofs.c: Likewise.
21892 * util/mkisofs/multi.c: Likewise.
21893 * util/mkisofs/rock.c: Likewise.
21894 * util/mkisofs/tree.c: Likewise.
21895 * util/mkisofs/write.c: Likewise.
21896
21897 * po/POTFILES: Update with new files.
21898
21899 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21900
21901 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
21902 * util/mkisofs/iso9660.h: Likewise.
21903 * util/mkisofs/joliet.c: Likewise.
21904 * util/mkisofs/mkisofs.c: Likewise.
21905 * util/mkisofs/mkisofs.h: Likewise.
21906 * util/mkisofs/rock.c: Likewise.
21907 * util/mkisofs/tree.c: Likewise.
21908 * util/mkisofs/write.c: Likewise.
21909
21910 * util/mkisofs/eltorito.c (rcsid): Remove.
21911 * util/mkisofs/hash.c: Likewise.
21912 * util/mkisofs/joliet.c: Likewise.
21913 * util/mkisofs/name.c: Likewise.
21914 * util/mkisofs/rock.c: Likewise.
21915 * util/mkisofs/tree.c: Likewise.
21916 * util/mkisofs/write.c: Likewise.
21917
21918 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21919
21920 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
21921 instead of static allocation.
21922 * util/mkisofs/match.h: Likewise.
21923
21924 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21925
21926 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
21927 and `util/grub.d/10_linux.in'.
21928 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
21929 translatable Shell files.
21930
21931 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21932
21933 * Makefile.in ($(srcdir)/aclocal.m4): New target.
21934
21935 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21936
21937 * INSTALL: Document Automake is needed for bootstrap.
21938 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
21939 * util/grub.d/10_kfreebsd.in (bindir): New variable.
21940 Add gettext initialization.
21941 (kfreebsd_entry): Make menuentry output translatable.
21942
21943 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21944
21945 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
21946 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
21947 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
21948 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
21949 (LINGUAS): Auto-generate using `po/LINGUAS'.
21950 * po/LINGUAS: New file.
21951
21952 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21953
21954 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
21955 other things).
21956 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
21957 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
21958 bindtextdomain() calls for gettext initialization.
21959
21960 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21961
21962 * gnulib/progname.c: New file (imported from Gnulib).
21963 * gnulib/progname.h: Likewise.
21964 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21965 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
21966 (usage): Replace `progname' with `program_name'.
21967 (main): Use set_program_name() for program name initialization.
21968
21969 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
21970
21971 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
21972 from here ...
21973 * Makefile.in (CPPFLAGS): ... to here.
21974
21975 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21976
21977 * aclocal.m4: Move from here ...
21978 * acinclude.m4: ... to here.
21979 * autogen.sh: Add call to `aclocal'.
21980 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
21981
21982 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
21983
21984 * Makefile.in (CLEANFILES): Add `po/*.mo'.
21985 (LINGUAS): New variable.
21986 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
21987 (install-local): Install MO files.
21988 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
21989 * include/grub/i18n.h: New file.
21990 * po/POTFILES: New file.
21991 * po/ca.po: New file.
21992 * util/grub.d/10_linux.in (bindir): New variable.
21993 Add gettext initialization.
21994 (linux_entry): Make menuentry output translatable.
21995 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
21996 (usage): Make --help output translatable.
21997 (main): Initialize gettext.
21998
21999 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22000
22001 * import_gcry.py: New file (written by Vladimir with minor
22002 adjustments).
22003 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
22004 ciphers.
22005 * INSTALL: Document that Python is required for bootstrap.
22006
22007 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22008
22009 Import ciphers from libgcrypt 1.4.4.
22010
22011 * lib/libgcrypt/cipher/ChangeLog
22012 * lib/libgcrypt/cipher/ac.c
22013 * lib/libgcrypt/cipher/arcfour.c
22014 * lib/libgcrypt/cipher/bithelp.h
22015 * lib/libgcrypt/cipher/blowfish.c
22016 * lib/libgcrypt/cipher/camellia-glue.c
22017 * lib/libgcrypt/cipher/camellia.c
22018 * lib/libgcrypt/cipher/camellia.h
22019 * lib/libgcrypt/cipher/cast5.c
22020 * lib/libgcrypt/cipher/cipher.c
22021 * lib/libgcrypt/cipher/crc.c
22022 * lib/libgcrypt/cipher/des.c
22023 * lib/libgcrypt/cipher/dsa.c
22024 * lib/libgcrypt/cipher/ecc.c
22025 * lib/libgcrypt/cipher/elgamal.c
22026 * lib/libgcrypt/cipher/hash-common.c
22027 * lib/libgcrypt/cipher/hash-common.h
22028 * lib/libgcrypt/cipher/hmac-tests.c
22029 * lib/libgcrypt/cipher/md.c
22030 * lib/libgcrypt/cipher/md4.c
22031 * lib/libgcrypt/cipher/md5.c
22032 * lib/libgcrypt/cipher/primegen.c
22033 * lib/libgcrypt/cipher/pubkey.c
22034 * lib/libgcrypt/cipher/rfc2268.c
22035 * lib/libgcrypt/cipher/rijndael-tables.h
22036 * lib/libgcrypt/cipher/rijndael.c
22037 * lib/libgcrypt/cipher/rmd.h
22038 * lib/libgcrypt/cipher/rmd160.c
22039 * lib/libgcrypt/cipher/rsa.c
22040 * lib/libgcrypt/cipher/seed.c
22041 * lib/libgcrypt/cipher/serpent.c
22042 * lib/libgcrypt/cipher/sha1.c
22043 * lib/libgcrypt/cipher/sha256.c
22044 * lib/libgcrypt/cipher/sha512.c
22045 * lib/libgcrypt/cipher/tiger.c
22046 * lib/libgcrypt/cipher/twofish.c
22047 * lib/libgcrypt/cipher/whirlpool.c
22048
22049 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22050
22051 Fix build for systems without error().
22052
22053 * gnulib/error.c: New file (imported from Gnulib).
22054 * gnulib/error.h: Likewise.
22055 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
22056 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
22057 (this variable is now used by error()).
22058
22059 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
22060
22061 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
22062 instead of relying that char is signed.
22063
22064 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22065
22066 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
22067 blocksize different from specified.
22068 (grub_pxefs_read): Likewise.
22069
22070 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
22071
22072 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
22073
22074 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
22075 (grub_ata_readwrite): Likewise. Update 2 format strings.
22076 (grub_atapi_read): Likewise.
22077
22078 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
22079 * conf/i386.rmk (pkglib_MODULES): ... to here ...
22080 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
22081 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
22082 (ata_mod_LDFLAGS): Move from here ...
22083 * conf/i386.rmk: ... to here ...
22084 * conf/x86_64-efi.rmk: ... and here.
22085 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
22086 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
22087
22088 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22089
22090 Relicense multiboot.h, with RMS' blessing.
22091
22092 * include/multiboot.h: Change to X11 license.
22093
22094 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
22095
22096 Support --version in grub-mkisofs.
22097
22098 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
22099 (OPTION_VERSION): New macro.
22100 (ld_options): Recognize --version.
22101 (usage): Move `program_name' from here ...
22102 (program_name): ... to here. Add `static' qualifier.
22103 (main): Recognize `OPTION_VERSION'.
22104
22105 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
22106
22107 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
22108 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
22109
22110 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22111
22112 Fix help2man generation for mkisofs.
22113
22114 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
22115 (usage): Send output to stdout (rather than stderr).
22116
22117 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22118
22119 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
22120 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22121 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
22122 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22123 (bin_SCRIPTS): Add `grub-mkfloppy'.
22124 (grub_mkfloppy_SOURCES): New variable.
22125
22126 * util/grub-mkrescue.in: New file.
22127 * util/i386/pc/grub-mkfloppy.in: New file.
22128
22129 * util/i386/coreboot/grub-mkrescue.in: Remove.
22130 * util/i386/pc/grub-mkrescue.in: Remove.
22131
22132 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22133
22134 * include/grub/multiboot.h (struct grub_multiboot_header): Move
22135 from here ...
22136 * include/multiboot.h (struct multiboot_header): ... to here. Update
22137 all users.
22138 * include/grub/multiboot.h (struct grub_multiboot_info): Move
22139 from here ...
22140 * include/multiboot.h (struct multiboot_info): ... to here. Update
22141 all users.
22142 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
22143 from here ...
22144 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
22145 Update all users.
22146 * include/grub/multiboot.h (struct grub_mod_list): Move
22147 from here ...
22148 * include/multiboot.h (struct multiboot_mod_list): ... to here.
22149 Update all users.
22150
22151 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22152
22153 * include/multiboot2.h (multiboot_word): Rename from this ...
22154 (multiboot2_word): ... to this. Update all users.
22155 (multiboot_header): Rename from this ...
22156 (multiboot2_header): ... to this. Update all users.
22157 (multiboot_tag_header): Rename from this ...
22158 (multiboot2_tag_header): ... to this. Update all users.
22159 (multiboot_tag_start): Rename from this ...
22160 (multiboot2_tag_start): ... to this. Update all users.
22161 (multiboot_tag_name): Rename from this ...
22162 (multiboot2_tag_name): ... to this. Update all users.
22163 (multiboot_tag_module): Rename from this ...
22164 (multiboot2_tag_module): ... to this. Update all users.
22165 (multiboot_tag_memory): Rename from this ...
22166 (multiboot2_tag_memory): ... to this. Update all users.
22167 (multiboot_tag_unused): Rename from this ...
22168 (multiboot2_tag_unused): ... to this. Update all users.
22169 (multiboot_tag_end): Rename from this ...
22170 (multiboot2_tag_end): ... to this. Update all users.
22171
22172 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22173
22174 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
22175 this platform we should support Multiboot1 first.
22176
22177 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
22178 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
22179 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
22180
22181 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22182
22183 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
22184 of write calls (converting them to fwrite() if they aren't already).
22185 (get_torito_desc): Likewise.
22186 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
22187
22188 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22189
22190 * util/i386/pc/grub-install.in: Move from here ...
22191 * util/grub-install.in: ... to here. Update all users.
22192
22193 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
22194
22195 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
22196
22197 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22198
22199 Support for El Torito without floppy emulation.
22200
22201 * util/mkisofs/eltorito.c: Include `<errno.h>'.
22202 (init_boot_catalog): Improve error handling.
22203 (get_torito_desc): Don't use floppy emulation unless requested by
22204 user. Patch boot information table when requested via
22205 `-boot-info-table'.
22206 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
22207 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
22208 (use_boot_info_table): New variables.
22209 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
22210 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
22211 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
22212 `--eltorito-emul-floppy'.
22213 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
22214 and `OPTION_ELTORITO_EMUL_FLOPPY'.
22215 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
22216 (use_boot_info_table, get_731): New prototypes.
22217 * util/mkisofs/write.c (get_731): New function.
22218
22219 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
22220
22221 Fix the generation of the man page.
22222
22223 * util/pc/i386/grub-install.in: Source
22224 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
22225
22226 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22227
22228 Large file support for grub-mkisofs.
22229
22230 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
22231 * util/mkisofs/mkisofs.c (next_extent, last_extent)
22232 (session_start): Upgrade type to `uint64_t'. Update all users.
22233 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
22234 (struct directory_entry): Upgrade type of `starting_block' and
22235 `size' to `uint64_t'. Update all users.
22236 (struct deferred): Remove unused structure.
22237 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
22238 Update all users.
22239 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
22240 file is larger than `UINT32_MAX'.
22241 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
22242 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
22243 return value.
22244 (struct deferred_write): Upgrade type of `extent' and `size' to
22245 `uint64_t'. Update all users.
22246 (last_extent_written): Upgrade type to `uint64_t'. Update all
22247 users.
22248 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
22249 Update all users. Upgrade type of `remain' to `int64_t' and
22250 `use' to `size_t'. Use error() to handle fread() errors.
22251 (write_files): Rely on write_one_file() rather than calling
22252 xfwrite() directly.
22253
22254 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
22255
22256 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
22257
22258 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22259
22260 * util/mkisofs/fnmatch.c: Remove.
22261 * util/mkisofs/getopt1.c: Likewise.
22262 * util/mkisofs/getopt.c: Likewise.
22263 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
22264 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
22265 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
22266 `gnulib/getopt1.c' and `gnulib/getopt.c'.
22267 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
22268
22269 * configure.ac: Detect `mingw32msvc' host_os.
22270 Check for lstat(), getuid() and getgid().
22271
22272 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
22273 instances of `u_char' with `uint8_t'.
22274
22275 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
22276 [!HAVE_GETUID] (getuid): New function (stub).
22277 [!HAVE_GETGID] (getgid): Likewise.
22278 [!HAVE_LSTAT] (lstat): Likewise.
22279 [!S_IROTH] (S_IROTH): New macro (dummy).
22280 [!S_IRGRP] (S_IRGRP): Likewise.
22281
22282 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22283
22284 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
22285 conditional expression).
22286
22287 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22288
22289 Import from Gnulib.
22290
22291 * gnulib/fnmatch.c: New file.
22292 * gnulib/fnmatch.h: Likewise.
22293 * gnulib/fnmatch_loop.c: Likewise.
22294 * gnulib/getopt.c: Likewise.
22295 * gnulib/getopt.h: Likewise.
22296 * gnulib/getopt1.c: Likewise.
22297 * gnulib/getopt_int.h: Likewise.
22298 * gnulib/gettext.h: Likewise.
22299
22300 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22301
22302 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
22303 * normal/handler.c (read_handler_list): Likewise.
22304
22305 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22306
22307 Misc cleanup.
22308
22309 * kern/command.c (grub_register_command_prio): Use
22310 grub_zalloc() instead of explicitly zeroing data.
22311 * kern/list.c: Include `<grub/mm.h>'.
22312 (grub_named_list_find): Replace `0' with `NULL'.
22313 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
22314 (fs_module_list): Change type to `grub_named_list_t'. Update all
22315 users.
22316 * normal/dyncmd.c (read_command_list): Add space between function
22317 call and parenthesis.
22318 * normal/handler.c (read_handler_list): Likewise.
22319
22320 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22321
22322 * normal/auth.c (punishment_delay): Moved from here ...
22323 (grub_auth_strcmp): ... to here (inside function).
22324
22325 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22326
22327 * include/grub/list.h (struct grub_named_list): Remove `const'
22328 qualifier from `name'.
22329 (struct grub_prio_list): Likewise.
22330
22331 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22332
22333 * normal/auth.c: Include `<grub/time.h>'.
22334 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
22335
22336 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22337
22338 * normal/auth.c (punishment_delay): New variable.
22339 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
22340 (grub_auth_check_authentication): Punish failed login attempts with
22341 an incremental (2^N) delay.
22342
22343 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22344
22345 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
22346 path with $(srcdir).
22347
22348 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
22351
22352 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22353
22354 * util/i386/coreboot/grub-mkrescue.in: New file.
22355 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
22356 variables.
22357
22358 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
22359 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
22360 * configure.ac: Add header and function checks to satisfy grub-mkisofs
22361 requirements.
22362 * util/mkisofs/defaults.h: New file.
22363 * util/mkisofs/eltorito.c: Likewise.
22364 * util/mkisofs/exclude.h: Likewise.
22365 * util/mkisofs/fnmatch.c: Likewise.
22366 * util/mkisofs/getopt.c: Likewise.
22367 * util/mkisofs/getopt1.c: Likewise.
22368 * util/mkisofs/hash.c: Likewise.
22369 * util/mkisofs/include/fctldefs.h: Likewise.
22370 * util/mkisofs/include/mconfig.h: Likewise.
22371 * util/mkisofs/include/prototyp.h: Likewise.
22372 * util/mkisofs/include/statdefs.h: Likewise.
22373 * util/mkisofs/iso9660.h: Likewise.
22374 * util/mkisofs/joliet.c: Likewise.
22375 * util/mkisofs/match.c: Likewise.
22376 * util/mkisofs/match.h: Likewise.
22377 * util/mkisofs/mkisofs.c: Likewise.
22378 * util/mkisofs/mkisofs.h: Likewise.
22379 * util/mkisofs/multi.c: Likewise.
22380 * util/mkisofs/name.c: Likewise.
22381 * util/mkisofs/rock.c: Likewise.
22382 * util/mkisofs/tree.c: Likewise.
22383 * util/mkisofs/write.c: Likewise.
22384
22385 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22386
22387 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
22388 being insecure.
22389
22390 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22391
22392 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
22393 `grub-mkimage' (and use $0 when possible).
22394
22395 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22396
22397 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
22398 error message for excessively large memory map.
22399
22400 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22401
22402 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
22403 executable bit.
22404
22405 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22406
22407 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
22408 message for coreboot users.
22409
22410 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
22411
22412 Fix build with GNU gold.
22413
22414 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
22415 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
22416 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
22417 link addresses.
22418 * aclocal.m4: Likewise.
22419
22420 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
22421
22422 * configure.ac (AC_PREREQ): Bump to 2.59d.
22423 * INSTALL: Make it more clear when Autoconf and Ruby are
22424 needed and when to run `./autogen.sh'.
22425
22426 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22427
22428 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
22429 OSes.
22430
22431 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22432
22433 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
22434
22435 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22436
22437 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
22438 giving it to GNU Mach.
22439
22440 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22441
22442 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
22443 GNU partition number to get internal GRUB partition number.
22444
22445 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22446
22447 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
22448 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
22449
22450 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
22451
22452 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
22453 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
22454 case.
22455
22456 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
22457
22458 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
22459
22460 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22461
22462 Fix build problem.
22463
22464 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
22465 `-isystem=$(srcdir)/include'.
22466
22467 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22468
22469 * util/i386/pc/grub-install.in: Remove hint that device.map should be
22470 checked (grub-install doesn't currently rely on it).
22471
22472 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
22473
22474 Revert SVN r2660.
22475
22476 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
22477 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22478 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
22479 * conf/i386-ieee1275.rmk: Likewise.
22480 * conf/i386-pc.rmk: Likewise.
22481 * conf/powerpc-ieee1275.rmk: Likewise.
22482 * conf/sparc64-ieee1275.rmk: Likewise.
22483 * conf/x86_64-efi.rmk: Likewise.
22484
22485 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22486
22487 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
22488
22489 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22490
22491 * include/grub/misc.h: Stop checking for APPLE_CC.
22492
22493 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22494
22495 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
22496 doesn't cause an infinite call loop.
22497
22498 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
22499
22500 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
22501 strings.
22502
22503 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22504
22505 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
22506 variable.
22507 * Makefile.in: Likewise.
22508
22509 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22510
22511 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
22512
22513 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22514
22515 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
22516
22517 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22518
22519 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
22520
22521 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22522
22523 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
22524 from here ...
22525 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
22526
22527 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22528
22529 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
22530 in $(MAKEINFO) invocation. This makes it clear in output that
22531 errors are being ignored.
22532
22533 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22534
22535 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
22536 from here ...
22537 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22538 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
22539 * conf/i386-ieee1275.rmk: Likewise.
22540 * conf/i386-pc.rmk: Likewise.
22541 * conf/powerpc-ieee1275.rmk: Likewise.
22542 * conf/sparc64-ieee1275.rmk: Likewise.
22543 * conf/x86_64-efi.rmk: Likewise.
22544
22545 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22546
22547 * util/grub-editenv.c (main): If only a command is given, use
22548 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
22549 (usage): FILENAME is now optional and has a default.
22550
22551 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22552
22553 Improve grub-mkconfig performance when there are several menu
22554 entries on a single filesystem.
22555
22556 * util/grub.d/10_linux.in (linux_entry): Cache the output of
22557 prepare_grub_to_access_device.
22558 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22559 * util/grub.d/30_os-prober.in: Likewise.
22560
22561 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22562
22563 * util/grub.d/10_freebsd.in: Remove.
22564 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
22565 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
22566
22567 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22568
22569 * docs/grub.cfg: Fix example usage of *BSD loaders.
22570
22571 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22572
22573 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
22574 grub_util_error() call.
22575
22576 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22577
22578 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
22579 `reserved_first_sector' member.
22580 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
22581 `reserved_first_sector' to 1.
22582 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
22583 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
22584 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
22585 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
22586 filesystems which begin at first sector.
22587 (options): New option --skip-fs-probe.
22588 (main): Handle --skip-fs-probe and pass it to setup().
22589
22590 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22591
22592 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
22593 (memset): Fix function prototype.
22594
22595 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22596 2009-10-25 Vasily Averin <vvs@parallels.com>
22597
22598 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
22599 `dirent.direntlen == 0'.
22600
22601 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22602
22603 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
22604 `cpio'.
22605 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
22606
22607 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22608
22609 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
22610 `__trampoline_setup' and `__ucmpdi2'.
22611 * include/grub/powerpc/libgcc.h: Only export symbols for functions
22612 that libgcc provides.
22613
22614 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22615
22616 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
22617 * include/grub/sparc64/libgcc.h (memset): Likewise.
22618 * include/grub/misc.h (memset, memcmp): New function prototypes.
22619
22620 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22621
22622 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
22623 `cpio'.
22624 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
22625
22626 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22627
22628 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
22629 * docs/grub.cfg: Compensate for recent change in multiboot
22630 loader (since 2009-08-14 it won't pass filename to payload).
22631 * util/grub.d/10_hurd.in: Likewise.
22632
22633 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
22634
22635 * config.guess: Update to latest version from config git
22636 repository.
22637 * config.sub: Likewise.
22638
22639 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
22640
22641 Fix build on sparc64.
22642
22643 * configure.ac: Perform checks for libgcc symbols before
22644 adding `-nostdlib' to LDFLAGS.
22645
22646 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22647
22648 Let user specify OpenBSD root device.
22649
22650 * loader/i386/bsd.c (openbsd_root): New variable.
22651 (openbsd_opts): New option 'root'.
22652 (OPENBSD_ROOT_ARG): New macro.
22653 (grub_openbsd_boot): Use 'openbsd_root'.
22654 (grub_cmd_openbsd): Fill 'openbsd_root'.
22655
22656 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22657
22658 * NEWS: Misc adjustments.
22659
22660 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22661
22662 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
22663
22664 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22665
22666 * configure.ac: Bump version to 1.97.
22667
22668 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
22669
22670 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
22671 -mno-3dnow on x86 architectures. Some toolchains enable these
22672 features by default, but they rely on registers that aren't enabled
22673 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
22674
22675 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
22676
22677 Make entry text a bit more readable.
22678
22679 * util/grub.d/10_linux.in: Add `with' before `Linux'.
22680
22681 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22682
22683 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
22684
22685 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22686
22687 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
22688 operations.
22689
22690 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22691
22692 * configure.ac: Add missing dollar.
22693
22694 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22695
22696 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
22697
22698 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
22699 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
22700 exports.
22701 * include/grub/sparc64/libgcc.h: Likewise. Use
22702 preprocessor conditionals.
22703
22704 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22705
22706 * conf/common.rmk (grub-dumpbios): Remove rule.
22707 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
22708 * util/grub-dumpbios.in: Remove file.
22709
22710 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22711
22712 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
22713 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
22714
22715 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
22716 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
22717 users.
22718
22719 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
22720 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
22721 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
22722 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
22723 users.
22724
22725 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
22726
22727 * term/tparm.c: Switch to GPLv3.
22728
22729 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22730
22731 * include/grub/i386/cpuid.h: Add header protection.
22732
22733 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22734
22735 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
22736
22737 * include/grub/i386/cpuid.h: New file.
22738 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
22739 (has_longmode): Rename to ...
22740 (grub_cpuid_has_longmode): ... this. Update all users. Remove
22741 `static' attribute.
22742 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
22743 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
22744 on a CPU that doesn't implement AMD64 instruction set.
22745
22746 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22747
22748 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
22749 that version.texi is rebuilt on version number changes.
22750
22751 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22752
22753 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
22754 Fixes bug #27602.
22755
22756 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22757
22758 * util/i386/pc/grub-install.in: Source
22759 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
22760 that the --grub-probe option will work.
22761 * util/sparc64/ieee1275/grub-install.in: Likewise.
22762
22763 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
22764
22765 * configure.ac: Bump version to 1.97~beta4.
22766
22767 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
22768
22769 Resync grub-mkdevicemap in x86_64-efi.
22770
22771 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
22772 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
22773 `util/devicemap.c'.
22774
22775 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
22776
22777 * util/grub-editenv.c (create_envblk_file): Write new block with a
22778 .new suffix and then rename it into place, to ensure atomic
22779 creation.
22780
22781 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
22782
22783 Do not automatically install headers.
22784
22785 * Makefile.in (include_DATA): Remove. Update all users.
22786
22787 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
22788
22789 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
22790 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
22791
22792 * util/osdetect.lua: Remove.
22793 * script/lua/lauxlib.c: Likewise.
22794 * script/lua/ldebug.c: Likewise.
22795 * script/lua/grub_main.c: Likewise.
22796 * script/lua/lauxlib.h: Likewise.
22797 * script/lua/ldebug.h: Likewise.
22798 * script/lua/ltablib.c: Likewise.
22799 * script/lua/liolib.c: Likewise.
22800 * script/lua/lstrlib.c: Likewise.
22801 * script/lua/lualib.h: Likewise.
22802 * script/lua/ldo.c: Likewise.
22803 * script/lua/ldump.c: Likewise.
22804 * script/lua/ldo.h: Likewise.
22805 * script/lua/loslib.c: Likewise.
22806 * script/lua/lundump.c: Likewise.
22807 * script/lua/grub_lib.c: Likewise.
22808 * script/lua/ldblib.c: Likewise.
22809 * script/lua/lundump.h: Likewise.
22810 * script/lua/lmem.c: Likewise.
22811 * script/lua/grub_lib.h: Likewise.
22812 * script/lua/lmathlib.c: Likewise.
22813 * script/lua/lstate.c: Likewise.
22814 * script/lua/ltm.c: Likewise.
22815 * script/lua/lvm.c: Likewise.
22816 * script/lua/lmem.h: Likewise.
22817 * script/lua/lstate.h: Likewise.
22818 * script/lua/ltm.h: Likewise.
22819 * script/lua/ltable.c: Likewise.
22820 * script/lua/lvm.h: Likewise.
22821 * script/lua/llex.c: Likewise.
22822 * script/lua/lgc.c: Likewise.
22823 * script/lua/grub_lua.h: Likewise.
22824 * script/lua/loadlib.c: Likewise.
22825 * script/lua/lfunc.c: Likewise.
22826 * script/lua/lopcodes.c: Likewise.
22827 * script/lua/lparser.c: Likewise.
22828 * script/lua/ltable.h: Likewise.
22829 * script/lua/llex.h: Likewise.
22830 * script/lua/lgc.h: Likewise.
22831 * script/lua/lfunc.h: Likewise.
22832 * script/lua/lbaselib.c: Likewise.
22833 * script/lua/lopcodes.h: Likewise.
22834 * script/lua/lparser.h: Likewise.
22835 * script/lua/lzio.c: Likewise.
22836 * script/lua/linit.c: Likewise.
22837 * script/lua/lobject.c: Likewise.
22838 * script/lua/llimits.h: Likewise.
22839 * script/lua/lstring.c: Likewise.
22840 * script/lua/lzio.h: Likewise.
22841 * script/lua/lapi.c: Likewise.
22842 * script/lua/lcode.c: Likewise.
22843 * script/lua/lua.h: Likewise.
22844 * script/lua/lobject.h: Likewise.
22845 * script/lua/lstring.h: Likewise.
22846 * script/lua/lapi.h: Likewise.
22847 * script/lua/lcode.h: Likewise.
22848 * script/lua/luaconf.h: Likewise.
22849
22850 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
22851
22852 * docs/grub.texi (Command-line and menu entry commands): Document
22853 date and echo commands.
22854
22855 2009-09-24 Pavel Roskin <proski@gnu.org>
22856
22857 * include/grub/kernel.h (struct grub_module_header): Remove
22858 `grub_module_header_types'. Make `type' unsigned. Make `size'
22859 32-bit on all platforms.
22860 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
22861 8-bit field. Use grub_host_to_target32() for `size'.
22862 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
22863 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
22864 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
22865
22866 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22867
22868 Fix "lost keypress" bug in at_keyboard.
22869
22870 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
22871 Checks for readyness of input buffer (without flushing it).
22872 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
22873 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
22874
22875 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22876
22877 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
22878 size check within GRUB_MACHINE_PCBIOS section.
22879
22880 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22881
22882 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
22883 return value.
22884 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
22885 KEYBOARD_ISREADY check.
22886 (grub_at_keyboard_checkkey): Rename to ...
22887 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
22888 Remove gratuitous cast.
22889
22890 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
22891
22892 * configure.ac: Call AC_PROG_MKDIR_P.
22893 * Makefile.in (docs/stamp-vti): Create docs directory. Create
22894 version.texi in $(builddir) rather than $(srcdir).
22895 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
22896 to makeinfo's @include search path.
22897
22898 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22899
22900 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
22901
22902 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22903
22904 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
22905 for `*.dpkg-new'.
22906
22907 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
22908
22909 Build info documentation. Some code borrowed from Automake.
22910
22911 * configure.ac: Check for makeinfo.
22912 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
22913 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
22914 docs/version.texi.
22915 (MOSTLYCLEANFILES): Add vti.tmp.
22916 (docs/version.texi, docs/stamp-vti): Update automatically.
22917 (docs/grub.info): Build info documentation. Use --force and ignore
22918 errors for now.
22919 (all-local): Add $(INFOS).
22920 (install-local): Install info files.
22921 (uninstall): Uninstall info files.
22922 * docs/version.texi: Remove from revision control. This file is
22923 automatically generated on build now.
22924 * gendistlist.sh: Add `*.info'.
22925
22926 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
22927
22928 * kern/term.c: Fix indentation.
22929
22930 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
22931
22932 * util/hostdisk.c: Fix a comment.
22933
22934 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
22935
22936 Fix regression introduced in r2539.
22937
22938 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
22939 to 0xA1.
22940
22941 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
22942
22943 * util/grub.d/30_os-prober.in: Don't throw away stderr from
22944 os-prober. Under normal operation, it does not print anything to
22945 stderr; if it does, we need to debug it, and throwing away stderr
22946 makes that excessively difficult.
22947
22948 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
22949
22950 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
22951
22952 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
22953
22954 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
22955 AC_LANG_PROGRAM from autoconf.
22956 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
22957 prototypes (fixes warning).
22958
22959 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
22960 `--disable-werror' was used.
22961
22962 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
22963
22964 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
22965 uninitialized `lastaddr'.
22966
22967 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
22968
22969 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
22970
22971 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
22972
22973 * commands/test.c (get_fileinfo): Return immediately if
22974 grub_fs_probe fails.
22975
22976 2009-09-14 José Martínez <xosemp@gmail.com>
22977
22978 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
22979
22980 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
22981
22982 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
22983 output.
22984
22985 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
22986
22987 * configure.ac: Remove --enable-grub-pe2elf. Only build
22988 grub-pe2elf when needed by the build system itself.
22989 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
22990
22991 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
22992
22993 * configure.ac: Bump version to 1.97~beta3.
22994 * docs/version.texi: Likewise.
22995
22996 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
22997
22998 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
22999 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
23000 from here ...
23001 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
23002 (grub_linux_setup_video): ... to here (with some adjustments).
23003
23004 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23005
23006 Fix memory corruption issue (spotted by Colin Watson).
23007
23008 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
23009 causing returned size to be stored in an incorrect memory location.
23010 Fix use of uninitialized value when storing the returned size.
23011
23012 2009-09-12 Yves Blusseau <blusseau@zetam.org>
23013
23014 Change clean rules to properly remove files
23015
23016 * genmk.rb: add new clean rules
23017 * Makefile.in (clean): add the new targets
23018 (mostlyclean): likewise
23019
23020 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
23021
23022 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
23023 to grub_uint64_t.
23024 * fs/ntfs.c (init_file): Understand 64-bit sizes for
23025 non-resident files.
23026
23027 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
23028
23029 * configure.ac: Don't look for help2man when cross-compiling. Fixes
23030 part of bug #27349.
23031
23032 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
23033
23034 * util/grub-mkconfig.in: Make the created config mode 400 and
23035 print a warning if it fails.
23036
23037 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
23038
23039 * util/grub.d/40_custom.in: Ask user to type custom entries below
23040 comment, rather than below 'exec tail' line.
23041
23042 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
23043
23044 * util/grub.d/40_custom.in: Make sure that the explanatory text is
23045 visible in grub.cfg.
23046
23047 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
23048
23049 * util/grub.d/40_custom.in: Make it a little clearer how to use this
23050 file.
23051
23052 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
23053
23054 * docs/grub.cfg: Add an example menu entry for memtest86+.
23055
23056 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
23057
23058 * config.guess: Update to latest version from config git.
23059 * config.sub: Likewise.
23060
23061 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
23062
23063 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
23064 unknown-command case. Fixes bug #27320.
23065
23066 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
23067
23068 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
23069 `help' if the command exists.
23070
23071 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
23072
23073 * INSTALL: Require GCC 4.1.3 or later.
23074
23075 2009-09-06 Yves Blusseau <blusseau@zetam.org>
23076
23077 * Makefile.in (RMKFILES): add i386-qemu.rmk
23078 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
23079 $(srcdir)/stamp-h.in
23080
23081 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
23082
23083 * util/grub-probe.c (probe): Comment out buggy codepath, which
23084 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
23085 should be re-enabled after 1.97.
23086
23087 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
23088
23089 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
23090 find searches for.
23091
23092 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23093
23094 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
23095 unnecessary calls to grub_error.
23096
23097 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
23098
23099 * NEWS: Mention `keystatus' and Unicode fonts.
23100
23101 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
23102
23103 * configure.ac: Bump version to 1.97~beta2.
23104 * docs/version.texi: Likewise.
23105
23106 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23107
23108 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
23109 containing unwind information in some cases where it previously did
23110 not. Use -fno-dwarf2-cfi-asm if available to restore the old
23111 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
23112 discussion.
23113
23114 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
23115
23116 Embedding loadenv module into grub-emu
23117
23118 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
23119 commands/loadenv.c
23120 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
23121 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
23122 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
23123 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
23124 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
23125 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
23126
23127 2009-09-03 Magnus Granberg <zorry@ume.nu>
23128
23129 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
23130 include -fPIE in the default specs.
23131 * configure.ac: Check if pie_possible is yes and add -fno-PIE
23132 to TARGET_CFLAGS.
23133
23134 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
23135
23136 * INSTALL: Note that GNU Bison 2.3 or later is required.
23137
23138 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23139
23140 * kern/i386/pc/startup.S: Fix typo.
23141
23142 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23143
23144 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
23145 according to GCS.
23146
23147 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23148
23149 * docs/grub.texi (Naming convention): Describe one-based partition
23150 numbering.
23151 (Device syntax): Likewise.
23152 (File name syntax): Likewise.
23153 (Block list syntax): Likewise.
23154 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
23155 menu.lst.
23156 (File name syntax): Likewise.
23157 (Command-line and menu entry commands): Document acpi, blocklist,
23158 crc, export, insmod, keystatus, ls, set, and unset commands.
23159
23160 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23161
23162 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
23163 to avoid implying that only one of --shift, --ctrl, or --alt may be
23164 used.
23165
23166 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23167
23168 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
23169 rather than comparing against S_IFREG, which will almost never work.
23170
23171 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23172
23173 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
23174 (write_blocklists): Likewise.
23175
23176 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
23177
23178 * script/lua/grub_lua.h (fputs): Supply a format string as the first
23179 argument to grub_printf.
23180
23181 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
23182
23183 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
23184 non GNU test.
23185
23186 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23187
23188 * kern/file.c (grub_file_read): Spelling fix
23189
23190 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23191
23192 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
23193 loading of headers in some cases.
23194
23195 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
23196
23197 * configure.ac: Bump version to 1.97~beta1.
23198 * docs/version.texi: Likewise.
23199
23200 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23201
23202 * include/grub/i386/xnu.h: Add license header.
23203 include grub/err.h explicitly.
23204
23205 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23206
23207 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
23208 to `ufs' in the vfs.root.mountfrom kernel parameter.
23209
23210 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23211
23212 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
23213
23214 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
23215 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
23216
23217 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
23218 `ARRAY_SIZE' macro.
23219
23220 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23221
23222 * kern/file.c (grub_file_read): Check offset.
23223 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
23224 * fs/jfs.c (grub_jfs_read_file): Likewise.
23225 * fs/ntfs.c (grub_ntfs_read): Likewise.
23226 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
23227 * fs/minix.c (grub_minix_read_file): Correct offset check.
23228 * fs/ufs.c (grub_ufs_read_file): Likewise.
23229
23230 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23231
23232 * term/i386/pc/console.c (bios_data_area): Cast
23233 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
23234
23235 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23236
23237 1-bit optimised blitters.
23238
23239 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
23240 prototype.
23241 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23242 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23243 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23244 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23245 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23246 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23247 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
23248 function.
23249 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23250 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23251 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23252 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23253 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23254 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23255 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
23256 when possible.
23257 * video/video.c (grub_video_get_blit_format): Return
23258 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
23259
23260 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23261
23262 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
23263 the first argument to grub_printf.
23264
23265 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23266 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
23267
23268 Add `getkeystatus' terminal method. Add a new `keystatus' command
23269 to query it.
23270
23271 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
23272 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
23273 modifier key bitmasks.
23274 (struct grub_term_input): Add `getkeystatus' member.
23275 (grub_getkeystatus): Add prototype.
23276 * kern/term.c (grub_getkeystatus): New function.
23277
23278 * include/grub/i386/pc/memory.h
23279 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
23280 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
23281 Data Area layout.
23282 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
23283 (grub_console_term_input): Set `getkeystatus' member.
23284 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
23285 constants.
23286 (grub_usb_keyboard_getreport): Likewise.
23287 (grub_usb_keyboard_checkkey): Likewise.
23288 (grub_usb_keyboard_getkeystatus): New function.
23289 (grub_usb_keyboard_term): Set `getkeystatus' member.
23290
23291 * commands/keystatus.c: New file.
23292 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
23293 (keystatus_mod_SOURCES): New variable.
23294 (keystatus_mod_CFLAGS): Likewise.
23295 (keystatus_mod_LDFLAGS): Likewise.
23296 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
23297 commands/keystatus.c.
23298 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23299 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23300 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23302 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23303 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23304
23305 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23306
23307 Split befs.mod and afs.mod into *_be.mod and *.mod
23308
23309 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
23310 (grub_fstest_SOURCES): Likewise.
23311 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
23312 (afs_be_mod_SOURCES): New variable.
23313 (afs_be_mod_CFLAGS): Likewise.
23314 (afs_be_mod_LDFLAGS): Likewise.
23315 (befs_be_mod_SOURCES): Likewise.
23316 (befs_be_mod_CFLAGS): Likewise.
23317 (befs_be_mod_LDFLAGS): Likewise.
23318 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
23319 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23320 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23321 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23322 (grub_emu_SOURCES): Likewise.
23323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23324 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23325 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23326 * fs/afs_be.c: New file.
23327 * fs/befs_be.c: New file.
23328 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
23329 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
23330 (U16): Replaced with ...
23331 (grub_afs_to_cpu16): ...this. All users updated.
23332 (U32): Replaced with ...
23333 (grub_afs_to_cpu32): ...this. All users updated.
23334 (U64): Replaced with ...
23335 (grub_afs_to_cpu64): ...this. All users updated.
23336 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
23337 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
23338 (grub_afs_validate_sblock): Check only one endianness.
23339 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23340 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23341 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23342 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23343 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23344 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23345 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23346 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23347
23348 2009-08-26 Bean <bean123ch@gmail.com>
23349
23350 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
23351 64-bit number.
23352 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
23353 (grub_xfs_inode_block): Change return type to grub_uint64_t.
23354 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
23355
23356 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23357
23358 NetBSD memory map support.
23359
23360 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
23361 (grub_netbsd_btinfo_mmap_header): New structure.
23362 (grub_netbsd_btinfo_mmap_entry): Likewise.
23363 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
23364
23365 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23366
23367 Enable bsd.mod on coreboot.
23368
23369 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
23370 (bsd_mod_SOURCES): New variable.
23371 (bsd_mod_CFLAGS): Likewise.
23372 (bsd_mod_LDFLAGS): Likewise.
23373 (bsd_mod_ASFLAGS): Likewise.
23374 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
23375 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
23376
23377 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23378
23379 Cleanup NetBSD root support.
23380
23381 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
23382 grub_bsd_get_device.
23383 Fix typo.
23384
23385 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
23386
23387 * util/grub.d/00_header.in: Move check for the video backend of
23388 gfxterm from here ...
23389 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
23390 a suitable video backend.
23391
23392 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23393
23394 Fix breakage in grub-setup.
23395
23396 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
23397 "msdos_partition_map".
23398
23399 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23400
23401 Fix breakage in normal/auth.c.
23402
23403 * normal/auth.c (grub_iswordseparator): New function.
23404
23405 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23406
23407 Authentication support.
23408
23409 * commands/password.c: New file.
23410 * conf/common.rmk (pkglib_MODULES): Add password.mod.
23411 (password_mod_SOURCES): New variable.
23412 (password_mod_CFLAGS): Likewise.
23413 (password_mod_LDFLAGS): Likewise.
23414 (normal_mod_SOURCES): Add normal/auth.c.
23415 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
23416 normal/auth.c.
23417 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23418 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23419 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23421 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23422 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23423 * include/grub/auth.h: New file.
23424 * include/grub/err.h (grub_err_t): New enum value
23425 GRUB_ERR_ACCESS_DENIED.
23426 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
23427 'users'.
23428 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
23429 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
23430 users updated.
23431 * normal/auth.c: New file.
23432 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
23433 (grub_cmdline_run): Don't allow to go to command line without
23434 authentication.
23435 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
23436 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
23437 menuentry without superuser rights.
23438 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
23439 user isn't a superuser.
23440
23441 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23442
23443 Save space by inlining misc.c functions.
23444
23445 * kern/misc.c (grub_iswordseparator): Made static.
23446 * kern/misc.c (grub_strcat): Moved from here ...
23447 * include/grub/misc.h (grub_strcat): ... here. Inlined.
23448 * kern/misc.c (grub_strncat): Moved from here ...
23449 * include/grub/misc.h (grub_strncat): ... here. Inlined.
23450 * kern/misc.c (grub_strcasecmp): Moved from here ...
23451 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
23452 * kern/misc.c (grub_strncasecmp): Moved from here ...
23453 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
23454 * kern/misc.c (grub_isalpha): Moved from here ...
23455 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
23456 * kern/misc.c (grub_isdigit): Moved from here ...
23457 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
23458 * kern/misc.c (grub_isgraph): Moved from here ...
23459 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
23460 * kern/misc.c (grub_tolower): Moved from here ...
23461 * include/grub/misc.h (grub_tolower): ... here. Inlined.
23462
23463 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23464
23465 * script/sh/function.c (grub_script_function_find): Cut error message
23466 not to flood terminal.
23467 * script/sh/lexer.c (grub_script_yylex): Remove command line length
23468 limit.
23469 * script/sh/script.c (grub_script_arg_add): Duplicate string.
23470
23471 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
23472
23473 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
23474 `report' grub_uint8_t *.
23475 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
23476 Use a 50-millisecond timeout rather than just repeating
23477 grub_usb_keyboard_getreport 50 times.
23478 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
23479
23480 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23481
23482 Rename *_partition_map to part_*
23483
23484 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
23485 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
23486 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
23487 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
23488 All users updated.
23489 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
23490 All users updated.
23491 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
23492 * util/grub-probe.c (probe_partmap): Don't transform partition name
23493 to get module name.
23494
23495 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23496
23497 Fix OpenBSD and NetBSD support.
23498
23499 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
23500 memory address conflict.
23501 (OPENBSD_MMAP_ACPI): New definition.
23502 (OPENBSD_MMAP_NVS): Likewise.
23503 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
23504 and OPENBSD_MMAP_NVS.
23505 Add memory map terminator
23506 Explicit cast when calling grub_unix_real_boot.
23507 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
23508
23509 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23510
23511 Let user specify NetBSD root device.
23512
23513 * loader/i386/bsd.c (netbsd_root): New variable.
23514 (netbsd_opts): New option 'root'.
23515 (NETBSD_ROOT_ARG): New macro.
23516 (grub_netbsd_boot): Use 'netbsd_root'.
23517 (grub_bsd_unload): Free 'netbsd_root'.
23518 (grub_cmd_netbsd): Fill 'netbsd_root'.
23519
23520 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23521
23522 Support for 64-bit NetBSD.
23523
23524 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
23525 point when booting non-FreeBSD.
23526
23527 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23528
23529 Support --no-smp and --no-acpi for NetBSD.
23530
23531 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
23532 (NETBSD_AB_NOACPI): Likewise.
23533 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
23534 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
23535
23536 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23537
23538 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
23539 errors.
23540 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
23541 errors. Call grub_error when needed.
23542
23543 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23544
23545 * commands/search.c (search_fs): Try searching without autoload first.
23546 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
23547 filesystem module explicitly for faster booting.
23548
23549 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23550
23551 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
23552
23553 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23554
23555 * util/grub.d/30_os-prober.in: Disable os-prober if
23556 `GRUB_DISABLE_OS_PROBER' was set to true.
23557
23558 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
23559
23560 * partmap/pc.c: Rename to ...
23561 * partmap/msdos.c: ... this. Update all users.
23562 (grub_pc_partition_map): Rename to ...
23563 (grub_msdos_partition_map): ... this. Update all users.
23564
23565 * parttool/pcpart.c: Rename to ...
23566 * parttool/msdospart.c: ... this. Update all users.
23567
23568 * include/grub/pc_partition.h: Rename to ...
23569 * include/grub/msdos_partition.h: ... this. Update all users.
23570 (grub_pc_partition_bsd_entry): Rename to ...
23571 (grub_msdos_partition_bsd_entry): ... this. Update all users.
23572 (grub_pc_partition_disk_label): Rename to ...
23573 (grub_msdos_partition_disk_label): ... this. Update all users.
23574 (grub_pc_partition_entry): Rename to ...
23575 (grub_msdos_partition_entry): ... this. Update all users.
23576 (grub_pc_partition_mbr): Rename to ...
23577 (grub_msdos_partition_mbr): ... this. Update all users.
23578 (grub_pc_partition): Rename to ...
23579 (grub_msdos_partition): ... this. Update all users.
23580 (grub_pc_partition_is_empty): Rename to ...
23581 (grub_msdos_partition_is_empty): ... this. Update all users.
23582 (grub_pc_partition_is_extended): Rename to ...
23583 (grub_msdos_partition_is_extended): ... this. Update all users.
23584 (grub_pc_partition_is_bsd): Rename to ...
23585 (grub_msdos_partition_is_bsd): ... this. Update all users.
23586
23587 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
23588 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
23589 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
23590 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
23591 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
23592 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
23593 (gpt_mod_LDFLAGS): Rename to ...
23594 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
23595 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
23596 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
23597 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
23598 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
23599 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
23600 (part_gpt_mod_LDFLAGS): ... this.
23601 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
23602 `pcpart.mod' to `msdospart.mod'.
23603 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
23604 to ...
23605 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
23606 (msdospart_mod_LDFLAGS): ... this.
23607
23608 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23609
23610 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
23611 (openbsd_opts): Likewise.
23612 (netbsd_opts): Likewise.
23613 (freebsd_flags): Added 0 terminator.
23614 (openbsd_flags): Likewise.
23615 (netbsd_flags): Likewise.
23616 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
23617 (grub_cmd_freebsd): Transformed into extended command.
23618 (grub_cmd_openbsd): Likewise.
23619 (grub_cmd_netbsd): Likewise.
23620 (cmd_freebsd): Changed type to grub_extcmd_t.
23621 (cmd_openbsd): Likewise.
23622 (cmd_netbsd): Likewise.
23623 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
23624 grub_cmd_openbsd as extended commands.
23625 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
23626 cmd_netbsd and cmd_openbsd
23627
23628 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
23629
23630 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
23631
23632 2009-08-21 Pavel Roskin <proski@gnu.org>
23633
23634 * Makefile.in (install-local): When checking if a file is in the
23635 build directory, use "test -e" to detect symlinks.
23636
23637 * Makefile.in (install-local): Remove all files in
23638 $(DESTDIR)$(pkglibdir) before installing new files there.
23639
23640 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23641
23642 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
23643 grub-mkelfimage.
23644
23645 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23646
23647 * util/grub-mkconfig.in: Don't use gfxterm by default if not
23648 explicitly specified by the user.
23649
23650 2009-08-18 Pavel Roskin <proski@gnu.org>
23651
23652 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
23653 grub_uint8_t pointer for data.
23654 * include/grub/fbutil.h (struct grub_video_fbblit_info):
23655 Likewise.
23656 * video/fb/fbutil.c: Remove unnecessary casts.
23657
23658 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23659
23660 VBE cleanup.
23661
23662 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
23663 (grub_vbe_set_video_mode): Save active mode info
23664 only after setting the mode.
23665 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
23666 second argument.
23667
23668 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23669
23670 Rename variables for clarity.
23671
23672 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
23673 (active_vbe_mode_info): ... this. All users updated.
23674 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
23675 All users updated.
23676 (initial_mode): Rename to ...
23677 (initial_vbe_mode): ... this. All users updated.
23678 (mode_in_use): Rename to ..
23679 (vbe_mode_in_use): ... this. All users updated.
23680 (mode_list): Rename to ..
23681 (vbe_mode_list): ... this. All users updated.
23682 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
23683 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
23684 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
23685 'mode_list_size' to 'vbe_mode_list_size'.
23686 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
23687 'best_mode_info' to 'best_vbe_mode_info' and
23688 'best_mode' to 'best_vbe_mode'
23689
23690 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23691
23692 Remove duplicate grub_video_fb_get_video_ptr.
23693
23694 * include/grub/fbutil.h (get_data_ptr): Rename to ...
23695 (grub_video_fb_get_video_ptr): ... this.
23696 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
23697 * video/fb/fbutil.c: Add comment about addressing.
23698 (get_data_ptr): Rename to ...
23699 (grub_video_fb_get_video_ptr): ... this. All users updated.
23700 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
23701
23702 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23703
23704 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
23705 grub_dprintf() that was just added.
23706
23707 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23708
23709 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
23710 (DEFAULT_VIDEO_MODE): Remove macros.
23711 (grub_linux_boot): Remove assumption that Linux has FB support,
23712 and use "text" as default video mode.
23713
23714 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
23715
23716 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
23717 grub_dprintf.
23718 * fs/fat.c (grub_fat_read_data): Likewise.
23719
23720 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23721
23722 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
23723 payload.
23724 (grub_module): Likewise.
23725
23726 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23727
23728 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
23729 mbi->cmdline but free playground.
23730
23731 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23732
23733 Handle group offset on UFS1.
23734
23735 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
23736 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
23737
23738 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23739
23740 Split ufs.mod into ufs1.mod and ufs2.mod.
23741
23742 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
23743 (grub_fstest_SOURCES): Likewise.
23744 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
23745 (ufs_mod_SOURCES): Remove.
23746 (ufs_mod_CFLAGS): Likewise.
23747 (ufs_mod_LDFLAGS): Likewise.
23748 (ufs1_mod_SOURCES): New variable.
23749 (ufs1_mod_CFLAGS): Likewise.
23750 (ufs1_mod_LDFLAGS): Likewise.
23751 (ufs2_mod_SOURCES): New variable.
23752 (ufs2_mod_CFLAGS): Likewise.
23753 (ufs2_mod_LDFLAGS): Likewise.
23754 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
23755 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23756 Likewise.
23757 (grub_emu_SOURCES): Likewise.
23758 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23759 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23760 (grub_setup_SOURCES): Likewise.
23761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23762 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
23763 (grub_setup_SOURCES): Likewise.
23764 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23765 Likewise.
23766 * fs/ufs2.c: New file.
23767 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
23768
23769 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23770
23771 Framebuffer split.
23772
23773 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
23774 subsystem at the end.
23775 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
23776 (video_fb_mod_SOURCES): New variable.
23777 (video_fb_mod_CFLAGS): Likewise.
23778 (video_fb_mod_LDFLAGS): Likewise.
23779 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
23780 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
23781 * video/i386/pc/vbeblit.c: Moved from here ...
23782 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
23783 * video/i386/pc/vbefill.c: Moved from here ...
23784 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
23785 * video/i386/pc/vbeutil.c: Moved from here ...
23786 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
23787 * include/grub/i386/pc/vbeblit.h: Moved from here ...
23788 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
23789 * include/grub/i386/pc/vbefill.h: Moved from here ...
23790 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
23791 * include/grub/i386/pc/vbeutil.h: Moved from here ...
23792 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
23793 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
23794 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
23795 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
23796 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
23797 (grub_video_adapter): Added 'get_info_and_fini'.
23798 (grub_video_get_info_and_fini): New prototype.
23799 (grub_video_set_mode): make modestring const char *.
23800 * loader/i386/linux.c (grub_linux_setup_video): Use
23801 grub_video_get_info_and_fini.
23802 (grub_linux_boot): Move modesetting just before booting.
23803 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
23804 grub_video_get_info_and_fini.
23805 * video/i386/pc/vbe.c: Moved framebuffer part ...
23806 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
23807 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
23808 grub_video_fbstd_colors and grub_video_fb_set_palette.
23809 (grub_video_vbe_init): Clear 'framebuffer' variable and use
23810 grub_video_fb_init.
23811 (grub_video_vbe_fini): Use grub_video_fb_fini.
23812 (grub_video_vbe_setup): Use framebuffer.render_target instead of
23813 render_target and use grub_video_fb_set_active_render_target and
23814 grub_video_fb_set_palette.
23815 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
23816 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
23817 (grub_video_vbe_adapter): Use framebuffer.
23818 * video/video.c (grub_video_get_info_and_fini): New function.
23819 (grub_video_set_mode): Make modestring const char *.
23820 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
23821 values are already initialised.
23822
23823 2009-08-14 Pavel Roskin <proski@gnu.org>
23824
23825 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
23826 ABS and APPLE_CC.
23827 * boot/i386/pc/diskboot.S: Likewise.
23828 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
23829 sectors allow compilation on MacOSX.
23830 * conf/i386-pc.rmk: Enable unconditional compilation of
23831 lnxboot.img.
23832
23833 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
23834
23835 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
23836 * util/grub.d/00_header.in: Enter interruptible sleep if
23837 GRUB_HIDDEN_TIMEOUT is set.
23838
23839 2009-08-13 Yves Blusseau <blusseau@zetam.org>
23840
23841 * include/grub/symbol.h: Add the LOCAL macro.
23842 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
23843 starting with "L_".
23844
23845 2009-08-13 Pavel Roskin <proski@gnu.org>
23846
23847 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
23848 any modern compilers we support.
23849
23850 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
23851 Use local labels starting with "L_" so that Apple assembler
23852 knows they are local.
23853
23854 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
23855
23856 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
23857 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
23858 (bsd_kernel_types): ... this enum.
23859
23860 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
23861 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
23862 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
23863
23864 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
23865 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
23866 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
23867 messages.
23868
23869 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23870
23871 * util/grub-dumpdevtree: Moved from here ...
23872 * util/i386/efi/grub-dumpdevtree: ... to here.
23873 (hexify): New function. Converts a string to its hex version.
23874 Generate hex versions of "efi" and "device-properties" by calling
23875 hexify() on the ASCII strings rather than by hardcoding numbers.
23876
23877 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23878
23879 * fs/jfs.c: Update copyright year.
23880
23881 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23882
23883 * util/grub.d/00_header.in: Fix a comment.
23884 * util/grub.d/10_linux.in: Likewise.
23885 * util/grub.d/10_windows.in: Likewise.
23886 * util/grub.d/10_hurd.in: Likewise.
23887
23888 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23889
23890 * util/grub-mkconfig.in: Allow the user to specify the used font
23891 with GRUB_FONT.
23892
23893 2009-08-08 Pavel Roskin <proski@gnu.org>
23894
23895 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
23896 available, xfs.mod needs it now.
23897
23898 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
23899 the "g" modifier in sed when the intention is to strip something
23900 once. This fixes comparison of kernels with multiple dashes.
23901
23902 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
23903 on it. Add missing space before closing bracket. Fix
23904 misleading formatting.
23905
23906 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23907
23908 * docs/grub.texi: Major overhaul. Remove all sections that are
23909 specific to GRUB Legacy, or mostly composed of Legacy-specific
23910 information.
23911
23912 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23913
23914 * docs/version.texi: New file. Provides version information for
23915 grub.texi.
23916
23917 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23918
23919 * docs/grub.texi: Update CVS information to SVN.
23920 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
23921
23922 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23923
23924 * util/grub-mkconfig.in: Remove a wrong `fi'.
23925
23926 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23927
23928 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
23929 (grub_jfs_uuid): New function.
23930 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
23931
23932 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
23933
23934 * util/grub-mkconfig_lib.in (font_path): Move the functionality
23935 of it to ...
23936 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
23937 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
23938
23939 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23940
23941 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
23942 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
23943 Update all users.
23944
23945 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
23946 not just "vmlinu[zx]".
23947 Moved from here ...
23948 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
23949 all users.
23950
23951 * util/grub.d/10_linux.in (find_latest): Moved from here ...
23952 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
23953 all users.
23954
23955 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
23956
23957 * util/grub.d/10_freebsd.in: Use an absolute device path for
23958 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
23959
23960 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
23961
23962 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
23963 handling of multiple abstraction modules.
23964
23965 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
23966
23967 Fix a bug resulting in black screen when loading Linux using a
23968 packed video mode.
23969
23970 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
23971 function.
23972
23973 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
23974 (grub_vbe_bios_getset_dac_palette_width): New function.
23975 (grub_vbe_bios_get_dac_palette_width)
23976 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
23977 grub_vbe_bios_getset_dac_palette_width()).
23978
23979 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
23980 check for return status.
23981 (grub_vbe_get_video_mode_info): When getting information for a packed
23982 mode (<= 8 bpp), obtain DAC palette width using
23983 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
23984 {red,green,blue}_mark_size.
23985
23986 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
23987
23988 * commands/search.c (options): Fix help output to match actual code.
23989
23990 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
23991
23992 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
23993 of homegrown code.
23994
23995 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23996
23997 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
23998 on XFS or ReiserFS.
23999
24000 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24001
24002 Support Apple partition map with sector size different from 512 bytes.
24003
24004 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
24005 (apple_partition_map_iterate): Respect 'aheader.blocksize'
24006 and 'apart.partmap_size'.
24007
24008 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24009 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
24010
24011 Fix cpuid command.
24012
24013 * commands/i386/cpuid.c (options): New variable.
24014 (grub_cmd_cpuid): Return real error.
24015 (GRUB_MOD_INIT(cpuid)): Declare options.
24016
24017 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
24018
24019 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
24020 valid.
24021
24022 2009-07-31 Bean <bean123ch@gmail.com>
24023
24024 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
24025 log2_inode.
24026 (grub_fshelp_node): Move inode field to the end.
24027 (grub_xfs_data): Remove inode field.
24028 (grub_xfs_inode_block): Calculate inode size using sblock.
24029 (grub_xfs_inode_offset): Likewise.
24030 (grub_xfs_read_inode): Calculate inode size using sblock.
24031 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
24032 (grub_xfs_iterate_dir): Calculate inode size using sblock.
24033 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
24034 to match inode size.
24035 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
24036 not accessible when data is null.
24037 (grub_xfs_open): Likewise.
24038
24039 2009-07-31 Bean <bean123ch@gmail.com>
24040
24041 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
24042 Don't change pv->disk if it's already set.
24043
24044 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
24045 (grub_raid_register): ... here.
24046 (grub_raid_rescan): Removed.
24047
24048 * include/grub/raid.h (grub_raid_rescan): Removed.
24049
24050 * util/grub-fstest.c: Remove include file <grub/raid.h>.
24051 (fstest): Replace grub_raid_rescan with module fini function followed
24052 by init function.
24053
24054 * util/grub-probe.c: Add include file <grub/raid.h>.
24055 (probe_raid_level): New function.
24056 (probe): Detect abstraction by walking the disk device, support two
24057 level of abstraction (LVM on RAID) when detecting partition map.
24058
24059 2009-07-31 Pavel Roskin <proski@gnu.org>
24060
24061 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
24062 to grub_zalloc(), it was erroneous.
24063 Reported by Bean <bean123ch@gmail.com>
24064
24065 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
24066
24067 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
24068 embedding zone, not only the first one.
24069
24070 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
24071
24072 * term/gfxterm.c (clear_char): New function.
24073 (grub_virtual_screen_setup): Use clear_char.
24074 (scroll_up): Likewise.
24075 (grub_virtual_screen_cls): Likewise.
24076
24077 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
24078
24079 * util/deviceiter.c (get_acceleraid_disk_name): New static
24080 function.
24081 (grub_util_iterate_devices): Handle Accelraid devices.
24082 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
24083
24084 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
24085
24086 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
24087 separator for the suggested gfxpayload string (';' collides with the
24088 parser and needs escaping).
24089
24090 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
24091
24092 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
24093 Clear direction flag before jumping to OS.
24094 (grub_multiboot2_real_boot): Likewise.
24095
24096 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24097
24098 * util/i386/pc/grub-install: Fix parsing of --disk-module
24099 option.
24100
24101 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24102
24103 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
24104 when embedding.
24105
24106 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
24107
24108 * util/grub-mkconfig.in (package_version): New variable.
24109 Use it do display the version.
24110
24111 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24112
24113 * kern/file.c (grub_file_open): Revert to previous check with
24114 grub_errno.
24115
24116 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24117
24118 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
24119 from help line. It's out of sync with code.
24120
24121 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24122
24123 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
24124 entries on failed boot.
24125
24126 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24127
24128 * kern/file.c (grub_file_open): Fix an error check.
24129
24130 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
24131
24132 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
24133 partition map couldn't be identified.
24134
24135 2009-07-23 Pavel Roskin <proski@gnu.org>
24136
24137 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
24138 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
24139 case of little endian words becomes just an optimization.
24140 Respect const modifier.
24141 (md5_final): Use code that doesn't depend on endianness.
24142
24143 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
24144 to avoid loss of upper bits if align is unsigned and shorter
24145 than addr.
24146
24147 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24148
24149 UUID support for UFS
24150
24151 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
24152 (grub_ufs_uuid): New function.
24153 (grub_ufs_fs): add .uuid
24154
24155 2009-07-21 Pavel Roskin <proski@gnu.org>
24156
24157 * kern/dl.c (grub_dl_check_header): Make static.
24158
24159 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
24160
24161 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
24162 add drivemap for Vista. It breaks Windows 7.
24163
24164 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24165
24166 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
24167 128 bytes
24168
24169 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24170
24171 Add BFS support
24172
24173 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
24174 (grub_fstest_SOURCES): Likewise.
24175 (pkglib_MODULES): Add befs.mod.
24176 (befs_mod_SOURCES): New variable.
24177 (befs_mod_CFLAGS): Likewise.
24178 (befs_mod_LDFLAGS): Likewise.
24179 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24180 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24181 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24182 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24183 (grub_setup_SOURCES): Likewise.
24184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24185 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24186 (grub_setup_SOURCES): Likewise.
24187 * fs/befs.c: New file.
24188 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
24189 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
24190 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
24191 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
24192 (B_KEY_INDEX_ALIGN): New declaration.
24193 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
24194 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
24195 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
24196 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
24197 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
24198 (grub_afs_mount) [MODE_BFS]: Likewise.
24199 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
24200 (grub_afs_fs): Use GRUB_AFS_FSNAME
24201 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
24202 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
24203 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
24204 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
24205
24206 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
24207
24208 * util/getroot.c (find_root_device): Add support for MacOSX.
24209 * util/hostdisk.c: Likewise.
24210
24211 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24212
24213 * font/font.c (find_glyph): Check whether a font is present to avoid
24214 segmentation fault.
24215
24216 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
24217
24218 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
24219
24220 2009-07-20 Pavel Roskin <proski@gnu.org>
24221
24222 * configure.ac: Trim excessively wordy excuses.
24223
24224 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24225
24226 Add symlink, mtime and label support to AtheFS.
24227
24228 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
24229 (grub_afs_iterate_dir): Handle symlinks.
24230 (grub_afs_open): Use grub_afs_read_symlink.
24231 (grub_afs_dir): Likewise.
24232 Pass mtime.
24233 (grub_afs_label): New function.
24234 (grub_afs_fs): Add grub_afs_label.
24235 (grub_afs_read_symlink): New function.
24236
24237 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24238
24239 Fix AtheFS support.
24240
24241 * fs/afs.c: Fix comments style.
24242 (grub_afs_blockrun): Declare as packed.
24243 (grub_afs_datastream): Likewise.
24244 (grub_afs_bnode): Likewise.
24245 (grub_afs_btree): Likewise.
24246 (grub_afs_sblock): Likewise.
24247 Declare `name' as char.
24248 (grub_afs_inode): Declare as packed.
24249 Change void *vnode to grub_uint32_t unused.
24250 (grub_afs_iterate_dir): Check that key_size is positive.
24251 (grub_afs_mount): Don't read superblock twice.
24252 (grub_afs_dir): Don't free node in case of error,
24253 grub_fshelp_find_file already handles this.
24254 (grub_afs_open): Likewise.
24255
24256 2009-07-19 Pavel Roskin <proski@gnu.org>
24257
24258 * Makefile.in: Remove LIBLZO and enable_lzo.
24259 * conf/i386-pc.rmk: Remove lzo support.
24260 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
24261 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
24262 support.
24263 * kern/i386/pc/lzo1x.S: Remove.
24264 * kern/i386/pc/startup.S: Remove lzo support.
24265 * util/i386/pc/grub-mkimage.c: Likewise.
24266
24267 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
24268
24269 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
24270 * fs/xfs.c (grub_xfs_dir): Likewise.
24271 * fs/afs.c (grub_afs_dir): Likewise.
24272 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
24273 (grub_iso9660_open): Likewise.
24274 * fs/jfs.c (grub_jfs_open): Likewise.
24275 * fs/ext2.c (grub_ext2_dir): Likewise.
24276 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
24277 * script/sh/lexer.c (grub_script_yylex): Likewise.
24278
24279 2009-07-16 Pavel Roskin <proski@gnu.org>
24280
24281 * configure.ac: Never add "-c" to CFLAGS.
24282
24283 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
24284
24285 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
24286 grub_cv_cc_efiemu should be used.
24287
24288 * configure.ac: Typo fixes.
24289
24290 * kern/mm.c (grub_zalloc): New function.
24291 (grub_debug_zalloc): Likewise.
24292 * include/grub/mm.h: Declare grub_zalloc() and
24293 grub_debug_zalloc().
24294 * util/misc.c (grub_zalloc): New function.
24295 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
24296 instead of grub_malloc(), remove unneeded initializations.
24297 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
24298 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
24299 * commands/parttool.c (grub_cmd_parttool): Likewise.
24300 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24301 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
24302 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
24303 * disk/usbms.c (grub_usbms_finddevs): Likewise.
24304 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
24305 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
24306 (grub_cmd_efiemu_pnvram): Likewise.
24307 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
24308 * fs/iso9660.c (grub_iso9660_mount): Likewise.
24309 (grub_iso9660_iterate_dir): Likewise.
24310 * fs/jfs.c (grub_jfs_opendir): Likewise.
24311 * fs/ntfs.c (list_file): Likewise.
24312 (grub_ntfs_mount): Likewise.
24313 * kern/disk.c (grub_disk_open): Likewise.
24314 * kern/dl.c (grub_dl_load_core): Likewise.
24315 * kern/elf.c (grub_elf_file): Likewise.
24316 * kern/env.c (grub_env_context_open): Likewise.
24317 (grub_env_set): Likewise.
24318 (grub_env_set_data_slot): Likewise.
24319 * kern/file.c (grub_file_open): Likewise.
24320 * kern/fs.c (grub_fs_blocklist_open): Likewise.
24321 * loader/i386/multiboot.c (grub_module): Likewise.
24322 * loader/xnu.c (grub_xnu_create_key): Likewise.
24323 (grub_xnu_create_value): Likewise.
24324 * normal/main.c (grub_normal_add_menu_entry): Likewise.
24325 (read_config_file): Likewise.
24326 * normal/menu_entry.c (make_screen): Likewise.
24327 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24328 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
24329 * script/sh/script.c (grub_script_parse): Likewise.
24330 * video/bitmap.c (grub_video_bitmap_create): Likewise.
24331 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
24332 * video/readers/png.c (grub_png_output_byte): Likewise.
24333 (grub_video_reader_png): Likewise.
24334
24335 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24336
24337 Enable all targets that can be built by default
24338
24339 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
24340 grub-mkfont and grub-fstest if they can be built
24341
24342 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24343
24344 Fix hang and segmentation fault in grub-emu-usb
24345
24346 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
24347 * util/usb.c (grub_libusb_devices): likewise
24348 (grub_libusb_init): rename to ...
24349 (GRUB_MOD_INIT (libusb)):...this
24350 (grub_libusb_fini): rename to ..
24351 (GRUB_MOD_FINI (libusb)):...this
24352 * disk/usbms.c (grub_usbms_transfer): fix retry logic
24353 * include/grub/disk.h (grub_raid_init): removed, it's useless
24354 (grub_raid_fini): likewise
24355 (grub_lvm_init): likewise
24356 (grub_lvm_fini): likewise
24357 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
24358 by grub_init_all
24359
24360 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24361
24362 Fix libusb
24363
24364 * Makefile.in (LIBUSB): new macro
24365 * genmk.rb (Utility/print_tail): new method
24366 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
24367 (top level): call util.print_tail at the end.
24368
24369 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24370
24371 Make FreeBSD accept zpool.cache
24372
24373 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
24374 type is /boot/zfs/zpool.cache
24375
24376 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24377
24378 Fix 64-bit efiemu
24379
24380 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
24381 correct wrong typedef
24382 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
24383
24384 2009-07-15 Pavel Roskin <proski@gnu.org>
24385
24386 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
24387 * kern/disk.c (struct grub_disk_cache): Likewise.
24388
24389 * commands/probe.c (options): Typo fix.
24390
24391 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
24392 Increase to 0x5a to accommodate FAT32. Adjust other offsets
24393 accordingly.
24394 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
24395
24396 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
24397 the end of "Error" to make the message more readable.
24398
24399 * boot/i386/pc/boot.S (kernel_segment): Remove.
24400 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
24401 for destination.
24402
24403 * boot/i386/pc/boot.S (boot_version): Remove.
24404 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
24405 Remove.
24406
24407 * include/grub/i386/pc/boot.h: Sort all offsets.
24408 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
24409 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
24410 * boot/i386/pc/boot.S: Assert location of every offset listed in
24411 include/grub/i386/pc/boot.h.
24412
24413 2009-07-13 Pavel Roskin <proski@gnu.org>
24414
24415 * include/grub/i386/coreboot/machine.h: Rename
24416 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
24417 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
24418 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
24419
24420 * kern/dl.c: Force native word size to suppress warnings when
24421 compiling grub-emu.
24422
24423 * kern/device.c (grub_device_iterate): Change struct part_ent to
24424 hold the name, not a pointer to it. Use one grub_malloc() per
24425 partition, not two. Free partition_name if grub_malloc() fails.
24426 Set ents to NULL only before grub_partition_iterate() is called.
24427
24428 2009-07-11 Bean <bean123ch@gmail.com>
24429
24430 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
24431 childname.
24432
24433 2009-07-10 Bean <bean123ch@gmail.com>
24434 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
24435
24436 * kern/ieee1275/openfw.c (grub_children_iterate)
24437 (grub_devalias_iterate): Fix size evaluation for property or path
24438 strings, which was broken since r2132.
24439
24440 2009-07-07 Pavel Roskin <proski@gnu.org>
24441
24442 * commands/search.c (search_file): Merge into ...
24443 (search_fs): ... this. Accept search type as argument.
24444 (grub_cmd_search): Pass search type to search_fs().
24445
24446 * include/grub/util/console.h: New file.
24447 * util/console.c: Use it instead of grub/machine/console.h.
24448 * util/grub-emu.c: Likewise.
24449
24450 * lib/arg.c (find_long_option): Remove.
24451 (find_long): Add `len' argument, make `s' const char *.
24452 (grub_arg_parse): Parse long options in place, not in a
24453 temporary buffer.
24454
24455 2009-07-06 Pavel Roskin <proski@gnu.org>
24456
24457 * commands/search.c (search_fs): Fix potential NULL pointer
24458 dereference.
24459
24460 * commands/search.c (search_fs): Replace QUID macro with quid_fn
24461 function pointer.
24462
24463 2009-07-06 Daniel Mierswa <impulze@impulze.org>
24464
24465 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
24466 comparison.
24467
24468 2009-07-05 Pavel Roskin <proski@gnu.org>
24469
24470 * include/grub/i386/linux.h (struct linux_kernel_params):
24471 Restore padding3, it's still needed.
24472
24473 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
24474 FreeBSD.
24475 * util/osdetect.lua: Likewise.
24476
24477 2009-07-05 Bean <bean123ch@gmail.com>
24478
24479 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
24480
24481 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
24482 (grub_lua_getenv): Likewise.
24483 (grub_lua_setenv): Likewise.
24484 (save_errno): New function.
24485 (push_result): Likewise.
24486 (grub_lua_enum_device): Likewise.
24487 (grub_lua_enum_file): Likewise.
24488 (grub_lua_file_open): Likewise.
24489 (grub_lua_file_close): Likewise.
24490 (grub_lua_file_seek): Likewise.
24491 (grub_lua_file_read): Likewise.
24492 (grub_lua_file_getline): Likewise.
24493 (grub_lua_file_getsize): Likewise.
24494 (grub_lua_file_getpos): Likewise.
24495 (grub_lua_file_eof): Likewise.
24496 (grub_lua_file_exist): Likewise.
24497 (grub_lua_add_menu): Likewise.
24498
24499 * script/lua/grub_lua.h (isupper): New inline function.
24500 (islower): Likewise.
24501 (ispunct): Likewise.
24502 (isxdigit): Likewise.
24503 (strcspn): Change to normal function.
24504 (strpbkr): New function declaration.
24505 (memchr): Likewise.
24506
24507 * script/lua/grub_main.c (scan_str): New function.
24508 (strcspn): Likewise.
24509 (strpbrk): Likewise.
24510 (memchr): Likewise.
24511
24512 * script/lua/linit.c (lualibs): Enable the string library.
24513
24514 * util/osdetect.lua: New file.
24515
24516 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
24517
24518 * include/grub/i386/linux.h (struct linux_kernel_params): Add
24519 `capabilities' member.
24520
24521 2009-07-02 Pavel Roskin <proski@gnu.org>
24522
24523 * genparttoollist.sh: Add missing newline at the end.
24524
24525 2009-07-01 Pavel Roskin <proski@gnu.org>
24526
24527 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
24528
24529 * util/hostdisk.c (open_device): Remove `const' from
24530 `sysctl_size', as sysctlbyname() can change it (in this case it
24531 doesn't actually happen).
24532
24533 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
24534 using signed long int constants.
24535
24536 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
24537 constant to avoid a warning on FreeBSD.
24538
24539 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
24540 where it's needed.
24541
24542 * Makefile.in: Install include/grub/machine symlink.
24543
24544 * Makefile.in: When installing symlinks, use "cp -fR", which
24545 works on FreeBSD and MacOSX.
24546 From Yves Blusseau <cl7m42e02@sneakemail.com>
24547
24548 * kern/dl.c (grub_dl_resolve_symbol): Make static.
24549 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
24550
24551 * util/misc.c: Move grub_reboot() and grub_halt() ...
24552 * util/grub-emu.c: ... here. Make main_env static.
24553 * include/grub/util/misc.h: Remove main_env.
24554
24555 * kern/mm.c: Use correct format to print size_t.
24556
24557 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
24558 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
24559 * kern/powerpc/dl.c: Likewise.
24560 * kern/sparc64/dl.c: Likewise.
24561 * kern/x86_64/dl.c: Likewise.
24562
24563 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24564
24565 Fix grub-emu build on sparc64-ieee1275.
24566
24567 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
24568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
24569
24570 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24571
24572 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
24573 (grub_reboot, grub_halt): New functions.
24574
24575 * util/i386/pc/misc.c: Delete. Update all users.
24576 * util/sparc64/ieee1275/misc.c: Likewise.
24577 * util/powerpc/ieee1275/misc.c: Likewise.
24578
24579 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24580
24581 * conf/i386.rmk (setjmp_mod_SOURCES)
24582 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
24583 * conf/common.rmk (setjmp_mod_SOURCES)
24584 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
24585 to use $(target_cpu).
24586 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
24587 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
24588 * conf/powerpc-ieee1275.rmk: Likewise.
24589 * conf/sparc64-ieee1275.rmk: Likewise.
24590
24591 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
24592 $(target_cpu) for kern/$(target_cpu)/dl.c.
24593 * conf/i386-efi.rmk: Likewise.
24594 * conf/i386-ieee1275.rmk: Likewise.
24595 * conf/x86_64-efi.rmk: Likewise.
24596 * conf/i386-coreboot.rmk: Likewise.
24597 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
24598 $(target_cpu) for kern/$(target_cpu)/dl.c and for
24599 kern/$(target_cpu)/cache.S.
24600 * conf/sparc64-ieee1275.rmk: Likewise.
24601
24602 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24603
24604 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
24605 type to `grub_uint8_t', and adjust `padding9' accordingly.
24606
24607 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24608
24609 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
24610
24611 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
24612 assembly in final jump, using register constraints.
24613
24614 (grub_linux_boot): For text mode, initialize `have_vga' using
24615 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
24616
24617 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
24618 right before the final jump.
24619
24620 Set `video_mode' to 0x3.
24621
24622 Document initialization of `video_page', `video_mode' and
24623 `video_ega_bx'.
24624
24625 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24626
24627 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
24628 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
24629 and set GRUB_LINUX_FLAG_QUIET appropriately.
24630
24631 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24632
24633 Fix build on Debian / sparc.
24634
24635 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
24636
24637 2009-06-28 Pavel Roskin <proski@gnu.org>
24638
24639 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
24640 fix a warning.
24641
24642 * util/grub.d/10_linux.in: Match SUSE style initrd names.
24643
24644 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24645
24646 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
24647 `err'.
24648
24649 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24650
24651 Revert r2338.
24652
24653 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
24654 file can't be opened. grub_file_open() is already supposed to set
24655 grub_errno / grub_errmsg appropriately.
24656 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24657
24658 2009-06-27 Pavel Roskin <proski@gnu.org>
24659 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24660
24661 * include/grub/dl.h: Include grub/elf.h.
24662 (struct grub_dl): Add symtab field.
24663 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
24664 GRUB_MODULES_MACHINE_READONLY.
24665 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
24666 of the header for read-only modules.
24667 (grub_dl_unload): Free mod->symtab for read-only modules.
24668 * kern/i386/dl.c: Use mod->symtab.
24669 * kern/powerpc/dl.c: Likewise.
24670 * kern/sparc64/dl.c: Likewise.
24671 * kern/x86_64/dl.c: Likewise.
24672
24673 * conf/i386-qemu.rmk: New file.
24674 * kern/i386/qemu/startup.S: Likewise.
24675 * kern/i386/qemu/mmap.c: Likewise.
24676 * boot/i386/qemu/boot.S: Likewise.
24677 * include/grub/i386/qemu/time.h: Likewise.
24678 * include/grub/i386/qemu/serial.h: Likewise.
24679 * include/grub/i386/qemu/kernel.h: Likewise.
24680 * include/grub/i386/qemu/console.h: Likewise.
24681 * include/grub/i386/qemu/boot.h: Likewise.
24682 * include/grub/i386/qemu/init.h: Likewise.
24683 * include/grub/i386/qemu/machine.h: Likewise.
24684 * include/grub/i386/qemu/loader.h: Likewise.
24685 * include/grub/i386/qemu/memory.h: Likewise.
24686
24687 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
24688 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
24689 [qemu] (pkglib_IMAGES): Add `boot.img'.
24690 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
24691 [qemu] (boot_img_FORMAT): New variables.
24692 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
24693 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
24694 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
24695 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24696 [qemu] (kernel_img_FORMAT): New variables.
24697
24698 * configure.ac: Recognise `i386-qemu'.
24699
24700 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
24701 (for no compression).
24702 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
24703 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
24704 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
24705 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
24706 ifdefs).
24707
24708 2009-06-27 Pavel Roskin <proski@gnu.org>
24709
24710 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
24711 read.
24712 * efiemu/prepare32.c: Likewise.
24713 * efiemu/prepare64.c: Likewise.
24714
24715 2009-06-26 Pavel Roskin <proski@gnu.org>
24716
24717 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
24718 * include/grub/elf.h: Define symbols without "32" or "64" based
24719 on GRUB_TARGET_WORDSIZE.
24720 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
24721 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
24722 ELF definitions.
24723 * efiemu/loadcore64.c: Likewise.
24724 * loader/i386/bsd32.c: Likewise.
24725 * loader/i386/bsd64.c: Likewise.
24726 * kern/dl.c: Remove own ELF definitions.
24727 * util/i386/efi/grub-mkimage.c: Likewise.
24728
24729 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
24730
24731 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
24732 segment 0x0 unconditionally, because the reference generated by
24733 GAS is an absolute address.
24734
24735 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24736
24737 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
24738 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
24739
24740 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24741
24742 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
24743 indexes. Check for -f explicitly.
24744 (search_file): Improve error message.
24745 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
24746
24747 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24748
24749 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
24750 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
24751
24752 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24753
24754 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
24755 * conf/i386-ieee1275.rmk: Likewise.
24756 * conf/i386-coreboot.rmk: Likewise.
24757
24758 * kern/i386/pc/startup.S (grub_stop): Remove function.
24759 * kern/i386/ieee1275/startup.S: Likewise.
24760 * kern/i386/coreboot/startup.S: Likewise.
24761 * kern/i386/misc.S (grub_stop): New function.
24762
24763 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24764
24765 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
24766 * kern/i386/realmode.S (real_to_prot): ... to here.
24767
24768 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24769
24770 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
24771 with `kernel.img'.
24772 (kernel_elf_SOURCES): Rename to ...
24773 (kernel_img_SOURCES): ... this.
24774 (kernel_elf_HEADERS): Rename to ...
24775 (kernel_img_HEADERS): ... this. Update all users.
24776 (kernel_elf_ASFLAGS): Rename to ...
24777 (kernel_img_ASFLAGS): ... this.
24778 (kernel_elf_CFLAGS): Rename to ...
24779 (kernel_img_CFLAGS): ... this.
24780 (kernel_elf_LDFLAGS): Rename to ...
24781 (kernel_img_LDFLAGS): ... this.
24782 * conf/i386-coreboot.rmk: Likewise.
24783 * conf/powerpc-ieee1275.rmk: Likewise.
24784
24785 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
24786 with "kernel.img".
24787
24788 2009-06-21 Pavel Roskin <proski@gnu.org>
24789
24790 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
24791 to match nested functions.
24792 * loader/sparc64/ieee1275/linux.c: Likewise.
24793
24794 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
24795
24796 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24797
24798 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
24799 all i386 platforms.
24800
24801 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24802
24803 Fix asm file handling on ELF, and remove workarounds.
24804
24805 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
24806 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
24807 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
24808 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
24809
24810 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
24811
24812 Load BSD ELF modules
24813
24814 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
24815 and loader/i386/bsd64.c
24816 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
24817 (FREEBSD_MODTYPE_ELF_MODULE): New definition
24818 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
24819 (grub_freebsd_load_elfmodule32): New declaration
24820 (grub_freebsd_load_elfmoduleobj64): Likewise
24821 (grub_freebsd_load_elf_meta32): Likewise
24822 (grub_freebsd_load_elf_meta64): Likewise
24823 (grub_freebsd_add_meta): Likewise
24824 (grub_freebsd_add_meta_module): Likewise
24825 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
24826 (grub_freebsd_add_meta_module): Likewise and move module-specific
24827 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
24828 (grub_cmd_freebsd): Add elf-kernel specific parts
24829 based on grub_freebsd_add_meta_module
24830 (grub_cmd_freebsd_module): Add type parsing moved from
24831 grub_freebsd_add_meta_module
24832 (grub_cmd_freebsd_module_elf): New function
24833 (cmd_freebsd_module_elf): New variable
24834 (GRUB_MOD_INIT): Register freebsd_module_elf
24835 * loader/i386/bsd32.c: New file
24836 * loader/i386/bsd64.c: Likewise
24837 * loader/i386/bsdXX.c: Likewise
24838 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
24839 (grub_elf64_load): Likewise
24840 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
24841 All users updated
24842 (grub_elf64_load_hook_t): Likewise
24843
24844 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
24845
24846 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
24847 variable.
24848 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
24849 don't write a menu entry for recovery mode.
24850
24851 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24852
24853 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
24854 after it's no longer needed.
24855
24856 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24857
24858 * include/grub/i386/loader.h (grub_linux_prot_size)
24859 (grub_linux_tmp_addr, grub_linux_real_addr)
24860 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
24861 GRUB_MACHINE_PCBIOS.
24862 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
24863 common grub_util_info() call to ...
24864 (generate_image): ... here.
24865 Fix use of uninitialized memory, comparison of signed with
24866 unsigned integers and memory leak.
24867 Remove bogus module address message.
24868
24869 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24870
24871 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
24872 grub_raid_register
24873 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
24874
24875 2009-06-19 Pavel Roskin <proski@gnu.org>
24876
24877 * configure.ac: Remove stray AC_MSG_CHECKING.
24878
24879 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
24880
24881 * disk/scsi.c (grub_scsi_open): use continue instead of big if
24882
24883 2009-06-18 Pavel Roskin <proski@gnu.org>
24884
24885 * conf/common.rmk: Add fs_file.mod.
24886 * disk/fs_file.c: New file.
24887 * include/grub/disk.h (enum grub_disk_dev_id): Add
24888 GRUB_DISK_DEVICE_FILE_ID.
24889
24890 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24891
24892 Fix build with Apple's toolchain. Part 2
24893
24894 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
24895 a fake start
24896
24897 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24898
24899 Fix build with Apple's toolchain. Part 1
24900
24901 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
24902 for long calls
24903 * configure.ac: remove a leftover AC_MSG_RESULT
24904 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
24905 Apple's toolchain
24906
24907 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24908
24909 Fix warnings
24910
24911 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
24912 (decomp_block): initialize ch
24913 use grub_memcpy instead of memcpy
24914
24915 2009-06-17 Pavel Roskin <proski@gnu.org>
24916
24917 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
24918 version, use declarations needed to use vga_text as the startup
24919 console.
24920
24921 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
24922 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
24923 the kernel.
24924 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
24925 and grub_at_keyboard_fini(), it's done on module load and
24926 unload.
24927
24928 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
24929
24930 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
24931 file can't be found.
24932 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24933
24934 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
24935
24936 Fix newline handling
24937
24938 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
24939 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
24940 (grub_script_yylex): don't segfault on unterminated script
24941 newline terminates command and variable
24942
24943 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
24944
24945 avoid double grub_adjust_range call. Bug reported by David Simner
24946
24947 * kern/disk.c (grub_disk_write): change to raw disk access before
24948 calling disk_read
24949
24950 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
24951
24952 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
24953 spaces, for the benefit of help2man.
24954 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24955
24956 2009-06-16 Pavel Roskin <proski@gnu.org>
24957
24958 * kern/i386/halt.c: Include grub/machine/init.h.
24959 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
24960
24961 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
24962
24963 * util/grub.d/30_os-prober.in: Use ${root} in the generated
24964 drivemap menuentry.
24965
24966 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
24967
24968 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
24969 `echo' command.
24970
24971 2009-06-16 Pavel Roskin <proski@gnu.org>
24972
24973 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
24974 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
24975 save %dx, we only need %dl and we never change it.
24976 * boot/i386/pc/cdboot.S: Don't set the root drive.
24977 * boot/i386/pc/pxeboot.S: Likewise.
24978 * include/grub/i386/pc/boot.h: Remove
24979 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
24980 GRUB_BOOT_MACHINE_DRIVE_CHECK.
24981 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
24982 * kern/i386/pc/init.c (make_install_device): Remove references
24983 to grub_root_drive.
24984 * kern/i386/pc/startup.S: Likewise.
24985 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
24986
24987 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
24988
24989 xnu_uuid command
24990
24991 * commands/xnu_uuid.c: new file
24992 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
24993 (xnu_uuid_mod_SOURCES): new variable
24994 (xnu_uuid_mod_CFLAGS): likewise
24995 (xnu_uuid_mod_LDFLAGS): likewise
24996 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
24997 * conf/i386-ieee1275.rmk: likewise
24998 * conf/i386-pc.rmk: likewise
24999 * conf/powerpc-ieee1275.rmk: likewise
25000 * conf/sparc64-ieee1275.rmk: likewise
25001 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
25002
25003 2009-06-16 Pavel Roskin <proski@gnu.org>
25004
25005 * configure.ac: Avoid '==' in test command, it's not portable.
25006
25007 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
25008
25009 Probe command
25010
25011 * commands/probe.c: new file
25012 * conf/common.rmk (pkglib_MODULES): add probe.mod
25013 (probe_mod_SOURCES): new variable
25014 (probe_mod_CFLAGS): likewise
25015 (probe_mod_LDFLAGS): likewise
25016 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
25017 * conf/i386-ieee1275.rmk: likewise
25018 * conf/i386-pc.rmk: likewise
25019 * conf/powerpc-ieee1275.rmk: likewise
25020 * conf/sparc64-ieee1275.rmk: likewise
25021
25022 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
25023
25024 Fix handling of string like \"hello\" and "a
25025 b"
25026
25027 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
25028 (grub_script_yylex): fix parsing of quoting, escaping and newline
25029
25030 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
25031
25032 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
25033 handling
25034
25035 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
25036
25037 * util/grub-mkconfig.in: Fix parsing of --output option.
25038
25039 2009-06-12 Pavel Roskin <proski@gnu.org>
25040
25041 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
25042 genmk.rb don't need to be generated or installed.
25043
25044 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
25045
25046 * commands/i386/pc/drivemap_int13h.S: add more comments
25047
25048 2009-06-11 Pavel Roskin <proski@gnu.org>
25049
25050 * Makefile.in (uninstall): Uninstall manuals.
25051
25052 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
25053 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
25054 and update-grub_lib in two places.
25055 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
25056
25057 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
25058 a compiler warning.
25059
25060 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
25061 `entry_lo' to fix variable shadowing.
25062
25063 2009-06-11 Christian Franke <franke@computer.org>
25064
25065 * kern/misc.c (__enable_execute_stack): Add missing return type
25066 to prevent gcc warning.
25067
25068 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
25069
25070 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
25071
25072 2009-06-11 Pavel Roskin <proski@gnu.org>
25073
25074 * Makefile.in: Don't rely on any scripts being executable.
25075 Always use $(SHELL) to run shell scripts.
25076
25077 * configure.ac: Always define ___main if using -nostdlib. This
25078 fixes tests on Cygwin.
25079
25080 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
25081
25082 UDF fix
25083
25084 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
25085 is in bytes and not in blocks
25086
25087 2009-06-11 Pavel Roskin <proski@gnu.org>
25088
25089 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
25090 warning.
25091
25092 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
25093
25094 * util/grub.d/30_os-prober.in: Fix a comment. Source
25095 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
25096 to set the root device. Place drivemap command in the generated
25097 chain entry.
25098
25099 2009-06-11 Pavel Roskin <proski@gnu.org>
25100
25101 * configure.ac: Remove host_m32. Issues with 64-bit utilities
25102 have long been resolved.
25103
25104 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
25105
25106 * util/grub.d/10_linux.in: Capitalise "Linux".
25107
25108 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
25109
25110 2009-06-11 Pavel Roskin <proski@gnu.org>
25111
25112 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
25113 fix a gcc warning and ensure that the function won't ever exit.
25114
25115 * kern/i386/ieee1275/init.c: Add missing prototype for
25116 grub_stop_floppy().
25117
25118 * loader/ieee1275/multiboot2.c [__i386__]: Include
25119 grub/cpu/multiboot.h.
25120
25121 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
25122 casts to short - they are not portable and cause warnings. Fix
25123 use of uninitialized values in input_buf. Use ARRAY_SIZE.
25124
25125 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
25126
25127 Drivemap fixes
25128
25129 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
25130 new function
25131 (grub_get_root_biosnumber_saved): new variable
25132 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
25133 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
25134 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
25135 %dx after the call if necessary
25136 * conf/common.rmk (pkglib_MODULES): remove boot.mod
25137 (boot_mod_SOURCES): remove
25138 (boot_mod_CFLAGS): remove
25139 (boot_mod_LDFLAGS): remove
25140 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
25141 (boot_mod_SOURCES): new variable
25142 (boot_mod_CFLAGS): likewise
25143 (boot_mod_LDFLAGS): likewise
25144 * conf/i386-efi.rmk: likewise
25145 * conf/i386-ieee1275.rmk: likewise
25146 * conf/i386-pc.rmk: likewise
25147 * conf/powerpc-ieee1275.rmk: likewise
25148 * conf/sparc64-ieee1275.rmk: likewise
25149 * conf/x86_64-efi.rmk: likewise
25150 * include/grub/i386/pc/biosnum.h: new file
25151 * lib/i386/pc/biosnum.c: likewise
25152 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
25153 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
25154 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
25155
25156 2009-06-10 Pavel Roskin <proski@gnu.org>
25157
25158 * io/gzio.c (test_header): Don't reuse one buffer for all data.
25159 Use separate variables. Read only the file size at the end, but
25160 not the checksum that we don't use.
25161
25162 * kern/file.c (grub_file_read): Use void pointer for the buffer.
25163 Adjust all callers.
25164
25165 * kern/ieee1275/openfw.c: Remove libc includes.
25166 * kern/ieee1275/cmain.c: Likewise.
25167 * include/grub/ieee1275/ieee1275.h: Likewise.
25168
25169 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
25170 compiler warnings.
25171
25172 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25173
25174 * Makefile.in: Remove all trailing whitespace.
25175 * conf/i386-pc.rmk: Likewise.
25176 * conf/powerpc-ieee1275.rmk: Likewise.
25177 * conf/sparc64-ieee1275.rmk: Likewise.
25178 * docs/grub.texi: Likewise.
25179 * docs/texinfo.tex: Likewise.
25180 * disk/fs_uuid.c: Likewise.
25181 * disk/lvm.c: Likewise.
25182 * disk/scsi.c: Likewise.
25183 * disk/ata.c: Likewise.
25184 * disk/ieee1275/ofdisk.c: Likewise.
25185 * disk/i386/pc/biosdisk.c: Likewise.
25186 * disk/host.c: Likewise.
25187 * disk/raid.c: Likewise.
25188 * disk/efi/efidisk.c: Likewise.
25189 * disk/usbms.c: Likewise.
25190 * disk/memdisk.c: Likewise.
25191 * disk/loopback.c: Likewise.
25192 * kern/powerpc/dl.c: Likewise.
25193 * kern/device.c: Likewise.
25194 * kern/dl.c: Likewise.
25195 * kern/sparc64/dl.c: Likewise.
25196 * kern/ieee1275/ieee1275.c: Likewise.
25197 * kern/term.c: Likewise.
25198 * kern/fs.c: Likewise.
25199 * kern/i386/dl.c: Likewise.
25200 * kern/i386/pc/startup.S: Likewise.
25201 * kern/i386/pc/init.c: Likewise.
25202 * kern/i386/pc/mmap.c: Likewise.
25203 * kern/i386/pc/lzo1x.S: Likewise.
25204 * kern/i386/ieee1275/init.c: Likewise.
25205 * kern/i386/realmode.S: Likewise.
25206 * kern/i386/tsc.c: Likewise.
25207 * kern/partition.c: Likewise.
25208 * kern/corecmd.c: Likewise.
25209 * kern/file.c: Likewise.
25210 * kern/efi/efi.c: Likewise.
25211 * kern/efi/init.c: Likewise.
25212 * kern/efi/mm.c: Likewise.
25213 * kern/main.c: Likewise.
25214 * kern/err.c: Likewise.
25215 * kern/env.c: Likewise.
25216 * kern/disk.c: Likewise.
25217 * kern/generic/millisleep.c: Likewise.
25218 * kern/generic/rtc_get_time_ms.c: Likewise.
25219 * kern/misc.c: Likewise.
25220 * kern/parser.c: Likewise.
25221 * genmk.rb: Likewise.
25222 * configure.ac: Likewise.
25223 * boot/i386/pc/diskboot.S: Likewise.
25224 * boot/i386/pc/pxeboot.S: Likewise.
25225 * boot/i386/pc/boot.S: Likewise.
25226 * boot/i386/pc/lnxboot.S: Likewise.
25227 * boot/i386/pc/cdboot.S: Likewise.
25228 * parttool/pcpart.c: Likewise.
25229 * video/readers/tga.c: Likewise.
25230 * video/video.c: Likewise.
25231 * video/bitmap.c: Likewise.
25232 * lib/envblk.c: Likewise.
25233 * lib/i386/setjmp.S: Likewise.
25234 * fs/xfs.c: Likewise.
25235 * fs/afs.c: Likewise.
25236 * fs/fat.c: Likewise.
25237 * fs/ntfs.c: Likewise.
25238 * fs/udf.c: Likewise.
25239 * fs/affs.c: Likewise.
25240 * fs/iso9660.c: Likewise.
25241 * fs/hfs.c: Likewise.
25242 * fs/fshelp.c: Likewise.
25243 * fs/ext2.c: Likewise.
25244 * fs/jfs.c: Likewise.
25245 * fs/reiserfs.c: Likewise.
25246 * fs/hfsplus.c: Likewise.
25247 * fs/minix.c: Likewise.
25248 * fs/cpio.c: Likewise.
25249 * fs/sfs.c: Likewise.
25250 * fs/ufs.c: Likewise.
25251 * efiemu/prepare.c: Likewise.
25252 * efiemu/loadcore_common.c: Likewise.
25253 * efiemu/runtime/efiemu.sh: Likewise.
25254 * efiemu/runtime/efiemu.S: Likewise.
25255 * efiemu/runtime/efiemu.c: Likewise.
25256 * efiemu/pnvram.c: Likewise.
25257 * efiemu/main.c: Likewise.
25258 * efiemu/i386/pc/cfgtables.c: Likewise.
25259 * efiemu/i386/loadcore64.c: Likewise.
25260 * efiemu/i386/loadcore32.c: Likewise.
25261 * efiemu/loadcore.c: Likewise.
25262 * efiemu/symbols.c: Likewise.
25263 * efiemu/mm.c: Likewise.
25264 * include/grub/autoefi.h: Likewise.
25265 * include/grub/datetime.h: Likewise.
25266 * include/grub/term.h: Likewise.
25267 * include/grub/hfs.h: Likewise.
25268 * include/grub/lvm.h: Likewise.
25269 * include/grub/i386/tsc.h: Likewise.
25270 * include/grub/i386/linux.h: Likewise.
25271 * include/grub/i386/xnu.h: Likewise.
25272 * include/grub/i386/efiemu.h: Likewise.
25273 * include/grub/i386/pc/biosdisk.h: Likewise.
25274 * include/grub/i386/pc/memory.h: Likewise.
25275 * include/grub/i386/pc/vbe.h: Likewise.
25276 * include/grub/parttool.h: Likewise.
25277 * include/grub/video.h: Likewise.
25278 * include/grub/memory.h: Likewise.
25279 * include/grub/fs.h: Likewise.
25280 * include/grub/partition.h: Likewise.
25281 * include/grub/xnu.h: Likewise.
25282 * include/grub/efi/api.h: Likewise.
25283 * include/grub/efi/pe32.h: Likewise.
25284 * include/grub/efi/memory.h: Likewise.
25285 * include/grub/multiboot.h: Likewise.
25286 * include/grub/usbdesc.h: Likewise.
25287 * include/grub/multiboot2.h: Likewise.
25288 * include/grub/acpi.h: Likewise.
25289 * include/grub/efiemu/efiemu.h: Likewise.
25290 * include/grub/disk.h: Likewise.
25291 * include/grub/ieee1275/ieee1275.h: Likewise.
25292 * include/grub/net.h: Likewise.
25293 * include/grub/machoload.h: Likewise.
25294 * include/grub/macho.h: Likewise.
25295 * include/multiboot.h: Likewise.
25296 * genmoddep.awk: Likewise.
25297 * normal/main.c: Likewise.
25298 * normal/menu_entry.c: Likewise.
25299 * normal/menu_viewer.c: Likewise.
25300 * normal/completion.c: Likewise.
25301 * normal/cmdline.c: Likewise.
25302 * normal/misc.c: Likewise.
25303 * normal/datetime.c: Likewise.
25304 * bus/usb/usbtrans.c: Likewise.
25305 * bus/usb/ohci.c: Likewise.
25306 * bus/usb/uhci.c: Likewise.
25307 * bus/usb/usb.c: Likewise.
25308 * mmap/efi/mmap.c: Likewise.
25309 * mmap/i386/pc/mmap_helper.S: Likewise.
25310 * mmap/i386/pc/mmap.c: Likewise.
25311 * mmap/i386/mmap.c: Likewise.
25312 * mmap/i386/uppermem.c: Likewise.
25313 * mmap/mmap.c: Likewise.
25314 * commands/acpi.c: Likewise.
25315 * commands/echo.c: Likewise.
25316 * commands/blocklist.c: Likewise.
25317 * commands/loadenv.c: Likewise.
25318 * commands/usbtest.c: Likewise.
25319 * commands/boot.c: Likewise.
25320 * commands/parttool.c: Likewise.
25321 * commands/search.c: Likewise.
25322 * commands/cat.c: Likewise.
25323 * commands/i386/pc/play.c: Likewise.
25324 * commands/i386/pc/drivemap.c: Likewise.
25325 * commands/i386/pc/vbeinfo.c: Likewise.
25326 * commands/i386/pc/acpi.c: Likewise.
25327 * commands/i386/pc/vbetest.c: Likewise.
25328 * commands/ls.c: Likewise.
25329 * commands/cmp.c: Likewise.
25330 * commands/test.c: Likewise.
25331 * commands/efi/acpi.c: Likewise.
25332 * commands/gptsync.c: Likewise.
25333 * commands/help.c: Likewise.
25334 * partmap/amiga.c: Likewise.
25335 * partmap/apple.c: Likewise.
25336 * partmap/acorn.c: Likewise.
25337 * partmap/pc.c: Likewise.
25338 * partmap/sun.c: Likewise.
25339 * partmap/gpt.c: Likewise.
25340 * script/sh/lexer.c: Likewise.
25341 * script/sh/function.c: Likewise.
25342 * font/font.c: Likewise.
25343 * font/font_cmd.c: Likewise.
25344 * loader/powerpc/ieee1275/linux.c: Likewise.
25345 * loader/efi/chainloader.c: Likewise.
25346 * loader/multiboot_loader.c: Likewise.
25347 * loader/macho.c: Likewise.
25348 * loader/i386/multiboot.c: Likewise.
25349 * loader/i386/linux.c: Likewise.
25350 * loader/i386/pc/linux.c: Likewise.
25351 * loader/i386/pc/multiboot2.c: Likewise.
25352 * loader/i386/pc/chainloader.c: Likewise.
25353 * loader/i386/pc/xnu.c: Likewise.
25354 * loader/i386/bsd_trampoline.S: Likewise.
25355 * loader/i386/efi/linux.c: Likewise.
25356 * loader/i386/multiboot_elfxx.c: Likewise.
25357 * loader/i386/bsd_helper.S: Likewise.
25358 * loader/i386/bsd.c: Likewise.
25359 * loader/i386/linux_trampoline.S: Likewise.
25360 * loader/i386/xnu_helper.S: Likewise.
25361 * loader/i386/xnu.c: Likewise.
25362 * loader/i386/bsd_pagetable.c: Likewise.
25363 * loader/i386/multiboot_helper.S: Likewise.
25364 * loader/xnu.c: Likewise.
25365 * loader/xnu_resume.c: Likewise.
25366 * io/gzio.c: Likewise.
25367 * term/efi/console.c: Likewise.
25368 * term/terminfo.c: Likewise.
25369 * term/ieee1275/ofconsole.c: Likewise.
25370 * term/i386/pc/serial.c: Likewise.
25371 * term/i386/pc/vesafb.c: Likewise.
25372 * term/i386/pc/vga.c: Likewise.
25373 * term/usb_keyboard.c: Likewise.
25374 * term/gfxterm.c: Likewise.
25375 * aclocal.m4: Likewise.
25376 * util/lvm.c: Likewise.
25377 * util/grub.d/30_os-prober.in: Likewise.
25378 * util/grub.d/10_hurd.in: Likewise.
25379 * util/console.c: Likewise.
25380 * util/grub-macho2img.c: Likewise.
25381 * util/grub-probe.c: Likewise.
25382 * util/hostfs.c: Likewise.
25383 * util/i386/pc/grub-mkimage.c: Likewise.
25384 * util/i386/pc/grub-setup.c: Likewise.
25385 * util/i386/efi/grub-mkimage.c: Likewise.
25386 * util/grub-mkconfig.in: Likewise.
25387 * util/raid.c: Likewise.
25388 * util/resolve.c: Likewise.
25389 * util/grub-mkdevicemap.c: Likewise.
25390 * util/grub-emu.c: Likewise.
25391 * util/getroot.c: Likewise.
25392 * util/hostdisk.c: Likewise.
25393 * util/usb.c: Likewise.
25394 * util/grub-editenv.c: Likewise.
25395 * util/misc.c: Likewise.
25396
25397 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25398
25399 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
25400 `genparttoollist.sh'.
25401 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
25402 Add `*.sh' to the list find searches for and change `mdate.sh'
25403 to `mdate-sh'.
25404
25405 2009-06-10 Pavel Roskin <proski@gnu.org>
25406
25407 * include/grub/multiboot2.h: Provide compatibility defines for
25408 multiboot2.h.
25409 * include/multiboot2.h: Include stdint.h only if needed, using
25410 angle brackets.
25411 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
25412 grub/multiboot2.h.
25413 * loader/ieee1275/multiboot2.c: Likewise.
25414 * loader/multiboot2.c: Likewise.
25415 * loader/multiboot_loader.c: Likewise.
25416
25417 * configure.ac: Use -nostdlib when probing for the target. It
25418 should not be required to have libc for the target.
25419
25420 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
25421 they fail without libc headers for the target.
25422 * include/grub/powerpc/libgcc.h: Use weak attribute for all
25423 exports.
25424 * include/grub/sparc64/libgcc.h: Likewise. Don't use
25425 preprocessor conditionals.
25426
25427 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
25428 build system doesn't need to be aware of the tar.c internals.
25429
25430 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
25431
25432 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
25433
25434 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
25435
25436 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
25437 disk limit to 26 for IDE, Virtio, Xen and SCSI.
25438
25439 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
25440
25441 * util/i386/pc/grub-install.in: Change the error message if UUIDs
25442 aren't available if ata.mod gets used.
25443
25444 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
25445
25446 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
25447 initialising controller.
25448 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25449
25450 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25451
25452 * util/i386/pc/grub-install.in: Add a parameter --disk-module
25453 to choose between ata and biosdisk module on i386-pc.
25454
25455 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
25456
25457 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
25458 Subclass and Programming Interface fields in terms of the 3 byte
25459 Class Code register.
25460 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25461
25462 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
25463 interface is OHCI. Add grub_dprintf for symmetry with
25464 bus/usb/uhci.c.
25465 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
25466 interface is UHCI. Add interf variable for programming
25467 interface. Print interface with class/subclass.
25468
25469 * bus/usb/ohci.c: Set interf with correct field.
25470
25471 * bus/usb/uhci.c: Remove unneeded doubled lines.
25472 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
25473 Remove whitespace inside comment.
25474
25475 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
25476
25477 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
25478 as fallback an equivalent option without depth.
25479
25480 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25481
25482 Not fail if unable to retrieve C/H/S on LBA disks
25483
25484 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
25485 if unable to retrieve C/H/S on LBA disks
25486
25487 2009-06-08 Pavel Roskin <proski@gnu.org>
25488
25489 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
25490 about aliasing.
25491
25492 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25493
25494 * Makefile.in (uninstall): Remove all $lib_DATA files.
25495
25496 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25497
25498 Bugfix: install on partitionless device
25499
25500 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
25501 is a whole disk
25502
25503 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25504
25505 * Makefile.in (uninstall): Remove all $include_DATA files.
25506
25507 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25508
25509 * commands/true.c: New file. Implement the true and false commands.
25510 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
25511 (true_mod_SOURCES): New variable.
25512 (true_mod_CFLAGS): Likewise.
25513 (true_mod_LDFLAGS): Likewise.
25514
25515 2009-06-05 Colin D Bennett <colin@gibibit.com>
25516
25517 Optimized font character lookup using binary search instead of linear
25518 search. Fonts now are required to have the character index ordered by
25519 code point.
25520
25521 * font/font.c (load_font_index): Verify that fonts have ordered
25522 character indices.
25523 (find_glyph): Use binary search instead of linear search to find a
25524 character in a font.
25525
25526 2009-06-05 Michael Scherer <misc@mandriva.org>
25527
25528 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
25529 uses case sensitive btree.
25530 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
25531 only for case insensitive filesystems.
25532
25533 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
25534
25535 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
25536 * conf/common.rmk (search_mod_CFLAGS): likewise
25537
25538 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25539
25540 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
25541 compensate a compiler bug
25542
25543 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25544
25545 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
25546 instead of '\b'
25547
25548 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25549
25550 Definitions for creating asm symbols with Apple's CC
25551
25552 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
25553 [APPLE_CC] (VARIABLE): likewise
25554
25555 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25556
25557 Disable lnxboot.img when compiled
25558 with Apple's CC
25559
25560 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
25561 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
25562 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
25563 [! APPLE_CC] (CODE_LENG): skip
25564 [! APPLE_CC] (setup_sects): likewise
25565 [! APPLE_CC]: skip filling
25566
25567 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25568
25569 Address in trampolines based on 32-bit registers when compiled
25570 with Apple's CC
25571
25572 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
25573 for addresses
25574 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
25575
25576 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25577
25578 Avoid aliases when compiling with Apple's CC for PCBIOS machine
25579
25580 * kern/misc.c [APPLE_CC] (memcpy): new function
25581 [APPLE_CC] (memmove): likewise
25582 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
25583 (memcpy): define alias conditionally on !APPLE_CC
25584 (memset): likewise
25585 (abort): likewise
25586 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
25587 APPLE_CC are defined
25588 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
25589 (grub_assert_fail): make prototype conditional
25590
25591 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25592
25593 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
25594
25595 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
25596 grub-macho2img
25597 (CLEANFILES): add grub-macho2img
25598 (grub_macho2img_SOURCES): new variable
25599 * kern/i386/pc/startup.S (bss_start): new variable
25600 (bss_end): likewise
25601 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
25602 * util/grub-macho2img.c: new file
25603
25604 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25605
25606 Use objconv when compiling with Apple's CC
25607
25608 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
25609 (efiemu64.o): likewise
25610 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
25611 when compiling with Apple's CC
25612 (efiemu64_s.o): likewise
25613 * configure.ac: check for objconv when compiling with Apple's CC
25614 * genmk.rb: use objconv for modules when compiled with Apple's CC
25615
25616 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25617
25618 Define segment as well as section when compiling with
25619 Apple's CC
25620
25621 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
25622 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
25623 (efiemu_convert_pointer): likewise
25624 (efiemu_set_virtual_address_map): likewise
25625 (efiemu_convert_pointer): likewise
25626 (efiemu_getcrc32): likewise
25627 (init_crc32_table): likewise
25628 (reflect): likewise
25629 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
25630 (GRUB_MOD_DEP): likewise
25631
25632 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25633
25634 Allow a compilation without -mcmodel=large
25635
25636 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
25637 when compiled without -mcmodel=large
25638 (filter_memory_map): remove memory post 4 GiB when compiled
25639 without -mcmodel=large
25640 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
25641 TARGET_CFLAGS when -mcmodel=large isn't supported
25642
25643 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25644
25645 Remove nested functions in efiemu core
25646
25647 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
25648
25649 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25650
25651 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
25652
25653 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
25654 temporary storage
25655 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
25656 using Apple's CC
25657 (grub_cpu_is_tsc_supported): likewise
25658 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
25659
25660 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25661
25662 Absolute addressing through constant with Apple's cc
25663
25664 * kern/i386/pc/startup.S: Define necessary constants
25665 and address through it when using ABS with Apple's CC
25666 * boot/i386/pc/diskboot.S: likewise
25667 * boot/i386/pc/boot.S: likewise
25668 * boot/i386/pc/lnxboot.S: likewise
25669 * boot/i386/pc/cdboot.S: likewise
25670 * mmap/i386/pc/mmap_helper.S: likewise
25671 * commands/i386/pc/drivemap_int13h.S: likewise
25672
25673 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25674
25675 Check if compiler is apple cc
25676
25677 * Makefile.in (ASFLAGS): new variable
25678 (TARGET_ASFLAGS): likewise
25679 (TARGET_MODULE_FORMAT): likewise
25680 (TARGET_APPLE_CC): likewise
25681 (OBJCONV): likewise
25682 (TARGET_IMG_CFLAGS): likewise
25683 (TARGET_CPPFLAGS): add includedir
25684 * configure.ac: call grub_apple_cc and grub_apple_target_cc
25685 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
25686 Check for linker script only if compiler isn't Apple's CC
25687 (TARGET_MODULE_FORMAT): set
25688 (TARGET_APPLE_CC): likewise
25689 (TARGET_ASFLAGS): likewise
25690 (ASFLAGS): likewise
25691 Check for objcopy only if compiler isn't Apple's CC
25692 Check for BSS symbol only if compiler isn't Apple's CC
25693 * genmk.rb: adapt nm options if we use Apple's utils
25694 * aclocal.m4 (grub_apple_cc): new test
25695 (grub_apple_target_cc): likewise
25696
25697 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25698
25699 Simplify sed expressions and improve awk
25700
25701 * Makefile.in (install-local): simplify sed expression
25702 * gencmdlist.sh: likewise
25703 * genmoddep.awk: avoid adding module as a dependency of itself
25704
25705 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25706
25707 Add missing start symbols
25708
25709 * boot/i386/pc/boot.S: add start
25710 * boot/i386/pc/pxeboot.S: likewise
25711
25712 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25713
25714 Fix wrong assumptions with grub-mkimage on EFI
25715
25716 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
25717 (relocate_addresses): consider both r_addend and value at offset
25718 (make_mods_section): zerofill modinfo and header
25719 (convert_elf): write prefix here
25720
25721 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25722
25723 Use .asciz instead of .string
25724
25725 * i386/pc/diskboot.S: use .asciz instead of .string
25726 * i386/pc/boot.S: likewise
25727 * include/grub/dl.h (GRUB_MOD_DEP): likewise
25728 (GRUB_MOD_NAME): likewise
25729
25730 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25731
25732 gfxpayload support
25733
25734 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
25735 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
25736 (grub_video_setup): remove
25737 (grub_video_set_mode): new prototype
25738 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
25739 (vid_mode): remove
25740 (linux_vesafb_res): compile only on PCBIOS
25741 (grub_linux_boot): support gfxpayload
25742 * loader/i386/pc/xnu.c (video_hook): new function
25743 (grub_xnu_set_video): support gfxpayload
25744 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
25745 (DEFAULT_VIDEO_HEIGHT): likewise
25746 (DEFAULT_VIDEO_FLAGS): likewise
25747 (DEFAULT_VIDEO_MODE): new definition
25748 (video_hook): new function
25749 (grub_gfxterm_init): use grub_video_set_mode
25750 * util/grub.d/30_os-prober.in: remove explicit modesetting before
25751 loading xnu
25752 * video/video.c (grub_video_setup): removed
25753 (grub_video_set_mode): new function based on grub_gfxterm_init and
25754 grub_video_setup
25755
25756 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25757
25758 Avoid calling biosdisk in drivemap
25759
25760 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
25761 (revparse_biosdisk): likewise
25762 (list_mappings): derive name from id directly
25763 (grub_cmd_drivemap): use tryparse_diskstring
25764
25765 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25766
25767 Script fixes
25768
25769 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
25770 (grub_lexer_param): add tokenonhold
25771 (grub_script_create_cmdline): remove cmdline. All callers updated
25772 (grub_script_function_create): make functionname
25773 grub_script_arg. All callers updated
25774 (grub_script_execute_argument_to_string): new prototype
25775 * kern/parser.c (state_transitions): reorder
25776 (grub_parser_cmdline_state): fix a bug and make more compact
25777 * script/sh/execute.c (grub_script_execute_argument_to_string):
25778 make global
25779 (grub_script_execute_cmdline): use new format
25780 * script/sh/function.c (grub_script_function_create): make functionname
25781 grub_script_arg. All callers updated
25782 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
25783 (grub_script_yylex): remove
25784 (grub_script_yylex2): renamed to ...
25785 (grub_script_yylex): ...renamed
25786 parse the expressions like a${b}c
25787 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
25788 (GRUB_PARSER_TOKEN_VAR): remove
25789 (GRUB_PARSER_TOKEN_NAME): likewise
25790 ("if"): declare as typeless
25791 ("while"): likewise
25792 ("function"): likewise
25793 ("else"): likewise
25794 ("then"): likewise
25795 ("fi"): likewise
25796 (text): remove
25797 (argument): likewise
25798 (script): accept empty scripts and make exit on error
25799 (arguments): use GRUB_PARSER_TOKEN_ARG
25800 (function): likewise
25801 (command): move error handling to script
25802 (menuentry): move grub_script_lexer_ref before
25803 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
25804 argument. All callers updated
25805
25806 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25807
25808 Prevent GRUB from probing floppies during boot.
25809
25810 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
25811 * commands/search.c (options): Add --no-floppy.
25812 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
25813 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
25814 --no-floppy when searching for UUIDs.
25815
25816 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25817
25818 Simplify the code duplication in commands/search.c.
25819
25820 * commands/search.c (search_label, search_fs_uuid): Merge into ...
25821 (search_fs): ... this. Update all users.
25822
25823 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
25824
25825 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
25826
25827 2009-05-28 Pavel Roskin <proski@gnu.org>
25828
25829 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
25830 Remove the original symlink explicitly.
25831
25832 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
25833 just one slash. That's how grub_fshelp_find_file() does it.
25834
25835 2009-05-26 Pavel Roskin <proski@gnu.org>
25836
25837 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
25838 to `str'.
25839
25840 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
25841 possibly unused.
25842
25843 2009-05-25 Christian Franke <franke@computer.org>
25844
25845 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
25846 register.
25847 (grub_atapi_identify): Add wait after drive select.
25848 (grub_ata_identify): Do more strict status register check before
25849 calling grub_atapi_identify (). Suppress error message if status
25850 register is 0x00 after command failure. Add status register
25851 check after PIO read to avoid bogus identify due to stuck DRQ.
25852 Thanks to Pavel Roskin for testing.
25853 (grub_device_initialize): Remove unsafe status register check.
25854 Thanks to 'phcoder' for problem report and patch.
25855 Prevent sign extension in debug message.
25856
25857 2009-05-23 Colin D Bennett <colin@gibibit.com>
25858
25859 Cleaned up `include/grub/normal.h'. Grouped prototypes by
25860 definition file, and functions defined in `normal/menu.c' have had
25861 their prototypes moved to `include/grub/menu.h' for consistency.
25862
25863 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
25864 from normal.h.
25865 (grub_menu_get_entry): Likewise.
25866 (grub_menu_get_timeout): Likewise.
25867 (grub_menu_set_timeout): Likewise.
25868 (grub_menu_execute_entry): Likewise.
25869 (grub_menu_execute_with_fallback): Likewise.
25870 (grub_menu_entry_run): Likewise.
25871
25872 * include/grub/normal.h: Re-ordered and grouped function
25873 prototypes by file that the function is defined in.
25874 (grub_menu_execute_callback): Removed; moved to menu.h.
25875 (grub_menu_get_entry): Likewise.
25876 (grub_menu_get_timeout): Likewise.
25877 (grub_menu_set_timeout): Likewise.
25878 (grub_menu_execute_entry): Likewise.
25879 (grub_menu_execute_with_fallback): Likewise.
25880 (grub_menu_entry_run): Likewise.
25881 (grub_menu_addentry): Renamed from this ...
25882 (grub_normal_add_menu_entry): ... to this.
25883
25884 * normal/main.c (grub_menu_addentry): Renamed from this ...
25885 (grub_normal_add_menu_entry): ... to this.
25886
25887 * script/sh/execute.c (grub_script_execute_menuentry): Update
25888 reference to renamed grub_menu_addentry function.
25889
25890 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
25891
25892 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
25893
25894 2009-05-22 Pavel Roskin <proski@gnu.org>
25895
25896 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
25897 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
25898 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
25899 compiling for the i386 targets, but not for the utilities.
25900
25901 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
25902 to grub_uint8_t.
25903 (grub_root_drive): Likewise.
25904 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
25905 remove alignment.
25906 (grub_root_drive): Change size to byte.
25907 (grub_start_addr): Remove.
25908 (grub_end_addr): Likewise.
25909 (grub_apm_bios_info): Likewise.
25910
25911 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
25912
25913 * normal/i386: Remove.
25914 * normal/powerpc: Likewise.
25915 * normal/sparc64: Likewise.
25916 * normal/x86_64: Likewise.
25917
25918 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
25919
25920 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
25921 * loader/i386/linux_trampoline.S: Fix indentation
25922 * loader/i386/xnu_helper.S: Likewise
25923
25924 2009-05-18 Colin D Bennett <colin@gibibit.com>
25925
25926 Display error messages when parsing a Lua statement fails.
25927 Previously, executing a syntactically invalid statement like
25928 ")foo" or "bar;" would silently fail.
25929
25930 * script/lua/grub_main.c (handle_lua_error): New function.
25931 (grub_lua_parse_line): Improved reporting of Lua parser and
25932 execution errors.
25933
25934 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25935
25936 Remove -Werror which causes build to fail on some systems
25937
25938 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
25939 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
25940 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
25941
25942 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25943
25944 trampoline for linux on 64-bit platform
25945
25946 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
25947 loader/i386/efi/linux_trampoline.S
25948 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
25949 declaration
25950 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
25951 here
25952 * loader/i386/linux_trampoline.S: moved here
25953 * loader/i386/efi/linux.c (allocate_pages): reserve space for
25954 trampoline
25955 (jumpvector): removed
25956 (grub_linux_trampoline_start): new declaration
25957 (grub_linux_trampoline_end): likewise
25958 (grub_linux_boot): use trampoline when on 64-bit platform
25959 * loader/i386/linux.c: likewise
25960
25961 2009-05-16 Pavel Roskin <proski@gnu.org>
25962
25963 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
25964 const to avoid a warning.
25965 (grub_lua_setenv): Likewise.
25966 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
25967 lmsg to fix a warning.
25968
25969 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
25970
25971 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
25972 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25973 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
25974 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25975 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
25976 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25977 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
25978 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
25979
25980 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
25981
25982 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
25983
25984 2009-05-16 Bean <bean123ch@gmail.com>
25985
25986 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
25987 (lua_mod_SOURCES): New variable.
25988 (lua_mod_CFLAGS): Likewise.
25989 (lua_mod_LDFLAGS): Likewise.
25990
25991 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
25992 (setjmp_mod_SOURCES): New variable.
25993 (setjmp_mod_CFLAGS): Likewise.
25994 (setjmp_LDFLAGS): Likewise.
25995
25996 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
25997 (setjmp_mod_SOURCES): New variable.
25998 (setjmp_mod_CFLAGS): Likewise.
25999 (setjmp_LDFLAGS): Likewise.
26000
26001 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
26002 (setjmp_mod_SOURCES): New variable.
26003 (setjmp_mod_CFLAGS): Likewise.
26004 (setjmp_LDFLAGS): Likewise.
26005
26006 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
26007 (setjmp_mod_SOURCES): New variable.
26008 (setjmp_mod_CFLAGS): Likewise.
26009 (setjmp_LDFLAGS): Likewise.
26010
26011 * normal/i386/setjmp.S: Moved from here ...
26012 * lib/i386/setjmp.S: ... Moved here
26013 * normal/x86_64/setjmp.S: Moved from here ...
26014 * lib/x86_64/setjmp.S: ... Moved here
26015 * normal/powerpc/setjmp.S: Moved from here ...
26016 * lib/powerpc/setjmp.S: ... Moved here
26017 * normal/sparc64/setjmp.S: Moved from here ...
26018 * lib/sparc64/setjmp.S: ... Moved here
26019
26020 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
26021 returns_twice in mingw.
26022
26023 * script/lua/grub_lib.c: New file.
26024 * script/lua/grub_lib.h: Likewise.
26025 * script/lua/grub_lua.h: Likewise.
26026 * script/lua/grub_main.c: Likewise.
26027 * script/lua/lapi.c: Likewise.
26028 * script/lua/lapi.h: Likewise.
26029 * script/lua/lauxlib.c: Likewise.
26030 * script/lua/lauxlib.h: Likewise.
26031 * script/lua/lbaselib.c: Likewise.
26032 * script/lua/lcode.c: Likewise.
26033 * script/lua/lcode.h: Likewise.
26034 * script/lua/ldblib.c: Likewise.
26035 * script/lua/ldebug.c: Likewise.
26036 * script/lua/ldebug.h: Likewise.
26037 * script/lua/ldo.c: Likewise.
26038 * script/lua/ldo.h: Likewise.
26039 * script/lua/ldump.c: Likewise.
26040 * script/lua/lfunc.c: Likewise.
26041 * script/lua/lfunc.h: Likewise.
26042 * script/lua/lgc.c: Likewise.
26043 * script/lua/lgc.h: Likewise.
26044 * script/lua/linit.c: Likewise.
26045 * script/lua/liolib.c: Likewise.
26046 * script/lua/llex.c: Likewise.
26047 * script/lua/llex.h: Likewise.
26048 * script/lua/llimits.h: Likewise.
26049 * script/lua/lmathlib.c: Likewise.
26050 * script/lua/lmem.c: Likewise.
26051 * script/lua/lmem.h: Likewise.
26052 * script/lua/loadlib.c: Likewise.
26053 * script/lua/lobject.c: Likewise.
26054 * script/lua/lobject.h: Likewise.
26055 * script/lua/lopcodes.c: Likewise.
26056 * script/lua/lopcodes.h: Likewise.
26057 * script/lua/loslib.c: Likewise.
26058 * script/lua/lparser.c: Likewise.
26059 * script/lua/lparser.h: Likewise.
26060 * script/lua/lstate.c: Likewise.
26061 * script/lua/lstate.h: Likewise.
26062 * script/lua/lstring.c: Likewise.
26063 * script/lua/lstring.h: Likewise.
26064 * script/lua/lstrlib.c: Likewise.
26065 * script/lua/ltable.c: Likewise.
26066 * script/lua/ltable.h: Likewise.
26067 * script/lua/ltablib.c: Likewise.
26068 * script/lua/ltm.c: Likewise.
26069 * script/lua/ltm.h: Likewise.
26070 * script/lua/lua.h: Likewise.
26071 * script/lua/luaconf.h: Likewise.
26072 * script/lua/lualib.h: Likewise.
26073 * script/lua/lundump.c: Likewise.
26074 * script/lua/lundump.h: Likewise.
26075 * script/lua/lvm.c: Likewise.
26076 * script/lua/lvm.h: Likewise.
26077 * script/lua/lzio.c: Likewise.
26078 * script/lua/lzio.h: Likewise.
26079
26080 2009-05-16 Bean <bean123ch@gmail.com>
26081
26082 * include/grub/kernel.h (grub_module_header_types): Add type
26083 OBJ_TYPE_CONFIG.
26084
26085 * kern/main.c (grub_load_config): New function.
26086 (grub_main): Call grub_load_config to read boot config.
26087
26088 * grub-mkimage (generate_image): New parameter config_path.
26089 (options): New option --config.
26090 (main): Parse --config option, and pass it to generate_image.
26091
26092 2009-05-14 Christian Franke <franke@computer.org>
26093
26094 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
26095 This fixes build on Cygwin.
26096
26097 2009-05-14 Pavel Roskin <proski@gnu.org>
26098
26099 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
26100 jump. This saves two bytes, so the typical case of 2 swapped
26101 drives would fit 32 bytes.
26102
26103 2009-05-13 Pavel Roskin <proski@gnu.org>
26104
26105 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
26106 grub_uint32_t to avoid a warning.
26107
26108 * loader/i386/linux.c (allocate_pages): When assigning
26109 real_mode_mem, cast through grub_size_t to fix a warning. The
26110 code already makes sure that the value would fit a pointer.
26111 (grub_linux_setup_video): Cast render_target->data to
26112 grub_size_t to fix a warning.
26113
26114 2009-05-13 Javier Martín <lordhabbit@gmail.com>
26115
26116 * commands/i386/pc/drivemap.c: New file - implement drivemap
26117 command.
26118 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
26119 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
26120
26121 2009-05-13 Pavel Roskin <proski@gnu.org>
26122
26123 * util/i386/pc/grub-setup.c (setup): Remove unused variable
26124 embedding_area_exists.
26125
26126 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
26127
26128 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
26129 it easier to understand / work with.
26130 Improve warning messages for cases where there's no embedding area,
26131 or when it is too small (or core.img too large).
26132
26133 2009-05-13 Pavel Roskin <proski@gnu.org>
26134
26135 * loader/i386/pc/multiboot2.c: Add necessary includes for
26136 grub_multiboot2_real_boot().
26137
26138 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
26139 PX record is always little-endian. We only need the lower 2
26140 bytes of the mode.
26141
26142 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
26143 facilitate code reuse.
26144 (grub_cpio_mount): Use "struct head", not a char buffer. This
26145 fixes a warning reported by gcc 4.4.
26146
26147 * kernel/disk.c (grub_disk_read): Use void pointer for the
26148 buffer.
26149 (grub_disk_write): Use const void pointer for the buffer.
26150 Adjust all callers. Remove unnecessary casts.
26151
26152 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
26153
26154 * util/i386/pc/grub-install.in: Update copyright year.
26155
26156 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26157
26158 gptsync
26159
26160 * commands/gptsync.c: new file
26161 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
26162 (gptsync_mod_SOURCES): new variable
26163 (gptsync_mod_CFLAGS): likewise
26164 (gptsync_mod_LDFLAGS): likewise
26165 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
26166 new definition
26167 (GRUB_PC_PARTITION_TYPE_HFS): likewise
26168 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
26169 * conf/i386-ieee1275.rmk: likewise
26170 * conf/i386-pc.rmk: likewise
26171 * conf/powerpc-ieee1275.rmk: likewise
26172
26173 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26174
26175 Fixed grub-emu
26176
26177 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
26178 (grub_dl_ref): likewise
26179
26180 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
26181
26182 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
26183 split in two functions (one for msdos and one for gpt).
26184
26185 2009-05-08 Pavel Roskin <proski@gnu.org>
26186
26187 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
26188 not modified.
26189
26190 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
26191 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
26192 Initialize them with -1. Add sanity check for bad1. Eliminate
26193 nerr variable.
26194
26195 2009-05-08 David S. Miller <davem@davemloft.net>
26196
26197 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
26198
26199 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
26200
26201 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
26202 existence.
26203
26204 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
26205
26206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26207 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
26208
26209 2009-05-05 David S. Miller <davem@davemloft.net>
26210
26211 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
26212
26213 2009-05-05 Pavel Roskin <proski@gnu.org>
26214
26215 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
26216 of grub_dl_ref() and grub_dl_unref().
26217 * commands/parttool.c: Remove preprocessor conditionals around
26218 grub_dl_ref() and grub_dl_unref().
26219 * fs/affs.c: Likewise.
26220 * fs/afs.c: Likewise.
26221 * fs/cpio.c: Likewise.
26222 * fs/ext2.c: Likewise.
26223 * fs/fat.c: Likewise.
26224 * fs/hfs.c: Likewise.
26225 * fs/hfsplus.c: Likewise.
26226 * fs/iso9660.c: Likewise.
26227 * fs/jfs.c: Likewise.
26228 * fs/minix.c: Likewise.
26229 * fs/ntfs.c: Likewise.
26230 * fs/reiserfs.c: Likewise.
26231 * fs/sfs.c: Likewise.
26232 * fs/udf.c: Likewise.
26233 * fs/ufs.c: Likewise.
26234 * fs/xfs.c: Likewise.
26235 * include/grub/dl.h: Likewise.
26236 * loader/xnu.c: Likewise.
26237
26238 2009-05-04 Pavel Roskin <proski@gnu.org>
26239
26240 * commands/acpi.c: Remove unused variable my_mod.
26241 * partmap/amiga.c: Likewise.
26242 * partmap/apple.c: Likewise.
26243 * partmap/gpt.c: Likewise.
26244 * partmap/pc.c: Likewise.
26245 * partmap/sun.c: Likewise.
26246 * term/gfxterm.c: Likewise.
26247 * term/i386/pc/vesafb.c: Likewise.
26248 * term/i386/pc/vga.c: Likewise.
26249
26250 2009-05-04 David S. Miller <davem@davemloft.net>
26251
26252 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
26253 pointer args to grub_ieee1275_get_property().
26254
26255 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
26256
26257 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
26258 devices, and do not traverse down under controller nodes.
26259
26260 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
26261 (grub_ofdisk_open): Use it to un-escape "," characters.
26262 * kern/disk.c (find_part_sep): New.
26263 (grub_disk_open): Use it to find the first non-escaped ','
26264 character in the disk name.
26265 * util/ieee1275/devicemap.c (escape_of_path): New.
26266 (grub_util_emit_devicemap_entry): Use it.
26267 * util/sparc64/ieee1275/grub-install.in: Update script to
26268 strip partition specifiers properly by not triggering on
26269 '\' escaped ',' characters.
26270
26271 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26272
26273 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
26274 to 0x300.
26275 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
26276 resolutions.
26277 (linux_vesafb_modes): Add a lot of additional modes to the list (based
26278 on documentation from Wikipedia).
26279
26280 2009-05-04 Pavel Roskin <proski@gnu.org>
26281
26282 * disk/ata.c: Spelling fixes.
26283 * disk/raid.c: Likewise.
26284 * disk/usbms.c: Likewise.
26285 * disk/dmraid_nvidia.c: Likewise.
26286 * kern/ieee1275/openfw.c: Likewise.
26287 * kern/ieee1275/init.c: Likewise.
26288 * kern/ieee1275/cmain.c: Likewise.
26289 * boot/i386/pc/cdboot.S: Likewise.
26290 * video/readers/png.c: Likewise.
26291 * video/i386/pc/vbe.c: Likewise.
26292 * fs/udf.c: Likewise.
26293 * fs/hfs.c: Likewise.
26294 * fs/reiserfs.c: Likewise.
26295 * efiemu/runtime/efiemu.c: Likewise.
26296 * efiemu/main.c: Likewise.
26297 * efiemu/mm.c: Likewise.
26298 * include/grub/elf.h: Likewise.
26299 * include/grub/xnu.h: Likewise.
26300 * include/grub/usbdesc.h: Likewise.
26301 * include/grub/usb.h: Likewise.
26302 * include/grub/script_sh.h: Likewise.
26303 * include/grub/lib/LzmaEnc.h: Likewise.
26304 * include/grub/efiemu/efiemu.h: Likewise.
26305 * include/grub/command.h: Likewise.
26306 * normal/menu.c: Likewise.
26307 * normal/main.c: Likewise.
26308 * normal/datetime.c: Likewise.
26309 * bus/usb/uhci.c: Likewise.
26310 * mmap/i386/uppermem.c: Likewise.
26311 * mmap/mmap.c: Likewise.
26312 * commands/acpi.c: Likewise.
26313 * commands/test.c: Likewise.
26314 * partmap/apple.c: Likewise.
26315 * font/font.c: Likewise.
26316 * loader/sparc64/ieee1275/linux.c: Likewise.
26317 * loader/macho.c: Likewise.
26318 * loader/i386/bsd_trampoline.S: Likewise.
26319 * loader/i386/bsd.c: Likewise.
26320 * loader/xnu.c: Likewise.
26321 * term/i386/pc/vesafb.c: Likewise.
26322 * term/usb_keyboard.c: Likewise.
26323 * util/resolve.c: Likewise.
26324 * util/getroot.c: Likewise.
26325
26326 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26327
26328 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
26329
26330 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26331
26332 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
26333 build error.
26334
26335 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26336
26337 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
26338 parameter only available on BIOS.
26339
26340 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26341
26342 Removed wrong semicolon in declaration
26343
26344 * grub/misc.h (grub_dprintf): remove semicolon
26345
26346 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26347
26348 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
26349 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
26350 is done by grub_cmd_linux() now).
26351 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
26352 restore video to text mode.
26353 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
26354 indicates lack of "vga=" parameter. "vga=0" is mapped to
26355 `GRUB_LINUX_VID_MODE_NORMAL'.
26356
26357 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26358
26359 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
26360 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
26361 and `normal/script.c'. Add `kern/rescue_reader.c',
26362 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
26363 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
26364 `grub_script.tab.c'.
26365
26366 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26367 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26368 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26369 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26370 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26371
26372 * Makefile.in: Remove duplicated 2008 in Copyright line.
26373
26374 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26375
26376 * util/misc.c (grub_util_warn): New function. Emits a warning
26377 unconditionally.
26378 * include/grub/util/misc.h (grub_util_warn): New declaration.
26379
26380 * util/i386/pc/grub-install.in: Understand --force and pass it down
26381 to grub-setup.
26382
26383 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
26384 down to setup().
26385 (setup): Improve error messages and add warnings when requested to
26386 install in odd layouts. Refuse to install using blocklists unless
26387 --force was set.
26388
26389 2009-05-04 martin f. krafft <madduck@madduck.net>
26390
26391 * disk/raid.c (grub_raid_scan_device): Improve debug message.
26392
26393 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26394
26395 Updated copyright year
26396
26397 * fs/hfsplus.c: updated copyright year
26398
26399 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26400
26401 HFS+ UUID
26402
26403 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
26404 in the space previously used by unused3
26405 (grub_hfsplus_uuid): new function
26406 (grub_hfsplus_fs): added uuid field
26407
26408 2009-05-03 Pavel Roskin <proski@gnu.org>
26409
26410 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
26411 suppress warnings. It's no longer needed.
26412 * disk/host.c: Likewise.
26413 * disk/ata_pthru.c: Likewise.
26414 * disk/loopback.c: Likewise.
26415 * hook/datehook.c: Likewise.
26416 * parttool/pcpart.c: Likewise.
26417 * fs/i386/pc/pxe.c: Likewise.
26418 * fs/ntfscomp.c: Likewise.
26419 * efiemu/main.c: Likewise.
26420 * mmap/mmap.c: Likewise.
26421 * commands/crc.c: Likewise.
26422 * commands/hexdump.c: Likewise.
26423 * commands/hdparm.c: Likewise.
26424 * commands/acpi.c: Likewise.
26425 * commands/echo.c: Likewise.
26426 * commands/minicmd.c: Likewise.
26427 * commands/blocklist.c: Likewise.
26428 * commands/memrw.c: Likewise.
26429 * commands/loadenv.c: Likewise.
26430 * commands/usbtest.c: Likewise.
26431 * commands/lsmmap.c: Likewise.
26432 * commands/boot.c: Likewise.
26433 * commands/parttool.c: Likewise.
26434 * commands/configfile.c: Likewise.
26435 * commands/search.c: Likewise.
26436 * commands/ieee1275/suspend.c: Likewise.
26437 * commands/cat.c: Likewise.
26438 * commands/i386/pc/pxecmd.c: Likewise.
26439 * commands/i386/pc/play.c: Likewise.
26440 * commands/i386/pc/halt.c: Likewise.
26441 * commands/i386/pc/vbeinfo.c: Likewise.
26442 * commands/i386/pc/vbetest.c: Likewise.
26443 * commands/lspci.c: Likewise.
26444 * commands/date.c: Likewise.
26445 * commands/handler.c: Likewise.
26446 * commands/ls.c: Likewise.
26447 * commands/test.c: Likewise.
26448 * commands/cmp.c: Likewise.
26449 * commands/efi/loadbios.c: Likewise.
26450 * commands/efi/fixvideo.c: Likewise.
26451 * commands/halt.c: Likewise.
26452 * commands/help.c: Likewise.
26453 * commands/reboot.c: Likewise.
26454 * hello/hello.c: Likewise.
26455 * script/sh/main.c: Likewise.
26456 * loader/xnu.c: Likewise.
26457 * term/terminfo.c: Likewise.
26458 * term/i386/pc/serial.c: Likewise.
26459 * term/usb_keyboard.c: Likewise.
26460
26461 2009-05-03 David S. Miller <davem@davemloft.net>
26462
26463 * normal/menu.c: Include grub/parser.h
26464
26465 2009-05-03 Pavel Roskin <proski@gnu.org>
26466
26467 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
26468 not char*.
26469 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
26470 Suggested by Javier Martín <lordhabbit@gmail.com>
26471
26472 * util/i386/pc/grub-mkrescue.in: Allow for the case when
26473 efiemu??.o doesn't exist.
26474 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
26475 copying.
26476
26477 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
26478
26479 FreeBSD 64-bit support
26480
26481 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
26482 and loader/i386/bsd_trampoline.S
26483 (bsd_mod_ASFLAGS): new variable
26484 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
26485 (FREEBSD_MODTYPE_KERNEL64): likewise
26486 (grub_bsd64_trampoline_start): likewise
26487 (grub_bsd64_trampoline_end): likewise
26488 (grub_bsd64_trampoline_selfjump): likewise
26489 (grub_bsd64_trampoline_gdt): likewise
26490 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
26491 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
26492 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
26493 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
26494 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
26495 of "attrib" member
26496 * loader/i386/bsd_pagetable.c: new file
26497 * loader/i386/bsd_trampoline.S: likewise
26498 * loader/i386/bsd.c (ALIGN_QWORD): new macro
26499 (ALIGN_VAR): likewise
26500 (entry_hi): new variable
26501 (kern_end_mdofs): likewise
26502 (is_64bit): likewise
26503 (grub_freebsd_add_meta): use ALIGN_VAR
26504 (grub_e820_mmap): new declaration
26505 (grub_freebsd_add_mmap): new function
26506 (grub_freebsd_add_meta_module): support 64 bit kernels
26507 (grub_freebsd_list_modules): use ALIGN_VAR
26508 (gdt_descriptor): new declaration
26509 (grub_freebsd_boot): support 64 bit kernels
26510 (grub_bsd_elf64_hook): new function
26511 (grub_bsd_load_elf): support elf64
26512
26513 2009-05-03 Bean <bean123ch@gmail.com>
26514
26515 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
26516 after we get the result of if statement.
26517
26518 2009-05-03 Bean <bean123ch@gmail.com>
26519
26520 * Makefile.in (enable_efiemu): New variable.
26521
26522 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
26523 set.
26524 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
26525 path.
26526 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
26527 path, add -mno-red-zone option.
26528 (efiemu64_s.o): Likewise.
26529 (efiemu64.o): Use macro $^ for source file.
26530
26531 * configure.ac (--enable-efiemu): New option.
26532
26533 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
26534
26535 xnu support
26536
26537 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
26538 (pkglib_MODULES): add xnu.mod
26539 (xnu_mod_SOURCES): new variable
26540 (xnu_mod_CFLAGS): likewise
26541 (xnu_mod_LDFLAGS): likewise
26542 (xnu_mod_ASFLAGS): likewise
26543 * conf/i386-pc.rmk: likewise
26544 * conf/x86_64-efi.rmk: likewise
26545 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
26546 new declaration
26547 * include/grub/i386/macho.h: new file
26548 * include/grub/i386/xnu.h: likewise
26549 * include/grub/macho.h: likewise
26550 * include/grub/machoload.h: likewise
26551 * include/grub/x86_64/macho.h: likewise
26552 * include/grub/x86_64/xnu.h: likewise
26553 * include/grub/xnu.h: likewise
26554 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
26555 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
26556 * loader/i386/efi/xnu.c: new file
26557 * loader/i386/pc/xnu.c: likewise
26558 * loader/i386/xnu.c: likewise
26559 * loader/i386/xnu_helper.S: likewise
26560 * loader/macho.c: likewise
26561 * loader/xnu.c: likewise
26562 * loader/xnu_resume.c: likewise
26563 * util/grub-dumpdevtree: likewise
26564 * include/grub/i386/pit.h: include grub/err.h
26565 (grub_pit_wait): export
26566 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
26567
26568 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26569
26570 Efiemu
26571
26572 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
26573 _linux_efi, linux_efi.
26574 new files in grub-emu
26575 new targets efiemu32.o and efiemu64.o
26576 * loader/linux_normal_efiemu.c: likewise
26577 * loader/i386/efi/linux.c: added preliminary efiemu support
26578 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
26579 files to copy
26580 * include/grub/autoefi.h: new file
26581 * include/grub/i386/efiemu.h: likewise
26582 * include/grub/i386/pc/efiemu.h: likewise
26583 * include/grub/efi/api.h: add LL suffix when necessary
26584 new definitions relating to tables
26585 * include/grub/efiemu/efiemu.h: new file
26586 * include/grub/efiemu/runtime.h: likewise
26587 * efiemu/prepare.c: likewise
26588 * efiemu/loadcore_common.c: likewise
26589 * efiemu/loadcore64.c: likewise
26590 * efiemu/runtime/efiemu.sh: likewise
26591 * efiemu/runtime/efiemu.S: likewise
26592 * efiemu/runtime/efiemu.c: likewise
26593 * efiemu/runtime/config.h: likewise
26594 * efiemu/prepare32.c: likewise
26595 * efiemu/main.c: likewise
26596 * efiemu/modules/pnvram.c: likewise
26597 * efiemu/modules/i386: likewise
26598 * efiemu/modules/i386/pc: likewise
26599 * efiemu/modules/acpi.c: likewise
26600 * efiemu/i386/pc/cfgtables.c: likewise
26601 * efiemu/i386/loadcore64.c: likewise
26602 * efiemu/i386/loadcore32.c: likewise
26603 * efiemu/prepare64.c: likewise
26604 * efiemu/loadcore.c: likewise
26605 * efiemu/symbols.c: likewise
26606 * efiemu/mm.c: likewise
26607 * efiemu/loadcore32.c: likewise
26608
26609 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26610
26611 ACPI spoofing
26612
26613 * commands/acpi.c: new file
26614 * commands/i386/pc/acpi.c: likewise
26615 * commands/efi/acpi.c: likewise
26616 * include/grub/acpi.h: likewise
26617 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
26618 (acpi_mod_SOURCES): new variable
26619 (acpi_mod_CFLAGS): likewise
26620 (acpi_mod_LDFLAGS): likewise
26621 * conf/i386-efi.rmk: likewise
26622 * conf/x86_64-efi.rmk: likewise
26623
26624 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26625
26626 Missing part from mmap patch
26627
26628 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
26629 (grub_mmap_unregister)
26630 (grub_mmap_free_and_unregister): use grub_mmap_register
26631
26632 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26633
26634 Mmap services
26635
26636 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
26637 * loader/i386/linux.c (find_mmap_size): likewise
26638 (allocate_pages): likewise
26639 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
26640 (grub_fill_multiboot_mmap): likewise
26641 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
26642 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
26643 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
26644 (OPENBSD_MMAP_RESERVED): likewise
26645 * include/grub/i386/pc/memory.h: include grub/memory.h
26646 (grub_lower_mem): removed
26647 (grub_upper_mem): likewise
26648 (GRUB_MACHINE_MEMORY_ACPI): new definition
26649 (GRUB_MACHINE_MEMORY_NVS): likewise
26650 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
26651 (GRUB_MACHINE_MEMORY_HOLE): likewise
26652 (grub_machine_mmap_register): likewise
26653 (grub_machine_mmap_unregister): likewise
26654 (grub_machine_get_upper): likewise
26655 (grub_machine_get_lower): likewise
26656 (grub_machine_get_post64): likewise
26657 * include/grub/i386/efi/memory.h: new file
26658 * include/grub/x86_64/efi/memory.h: likewise
26659 * include/grub/efi/memory.h: likewise
26660 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
26661 (mmap_mod_SOURCES): new variable
26662 (mmap_mod_LDFLAGS): likewise
26663 (mmap_mod_ASFLAGS): likewise
26664 * conf/i386-coreboot.rmk: likewise
26665 * conf/i386-ieee1275.rmk: likewise
26666 * conf/i386-efi.rmk: likewise
26667 * conf/x86_64-efi.rmk: likewise
26668 * include/grub/types.h (UINT_TO_PTR): new macro
26669 (PTR_TO_UINT32): likewise
26670 (PTR_TO_UINT64): likewise
26671 * include/grub/memory.h: new file
26672 * mmap/i386/pc/mmap.c: likewise
26673 * mmap/i386/pc/mmap_helper.S: likewise
26674 * mmap/i386/uppermem.c: likewise
26675 * mmap/mmap.c: likewise
26676 * mmap/efi/mmap.c: likewise
26677 * kern/i386/coreboot/init.c (grub_machine_init): don't use
26678 grub_upper_mem
26679 * kern/i386/pc/init.c (grub_lower_mem): removed variable
26680 (grub_upper_mem): likewise
26681 (grub_machine_init): don't use grub_upper_mem,
26682 make grub_lower_mem local
26683 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
26684 grub_mmap_iterate and grub_mmap_get_upper
26685 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
26686
26687 2009-05-02 Bean <bean123ch@gmail.com>
26688
26689 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
26690 script/sh/parser.y.
26691 (pkglib_MODULES): Add normal.mod and sh.mod.
26692 (normal_SOURCES): New variable.
26693 (normal_mod_CFLAGS): Likewise.
26694 (normal_mod_LDFLAGS): Likewise.
26695 (sh_mod_SOURCES): Likewise.
26696 (sh_mod_CFLAGS): Likewise.
26697 (sh_mod_LDFLAGS): Likewise.
26698
26699 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
26700 script/sh/lexer.c_DEPENDENCIES.
26701 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
26702 kern/rescue_reader.c and kern/rescue_parser.c.
26703 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
26704 (grub_emu_SOURCES): Change source files.
26705 (pkglib_MODULES): Remove normal.mod.
26706 (normal_SOURCES): Removed.
26707 (normal_mod_CFLAGS): Likewise.
26708 (normal_mod_LDFLAGS): Likewise.
26709 * conf/i386-coreboot.rmk: Likewise.
26710 * conf/i386-efi.rmk: Likewise.
26711 * conf/i386-ieee1276.rmk: Likewise.
26712 * conf/powerpc-ieee1275.rmk: Likewise.
26713 * conf/sparc64-ieee1275.rmk: Likewise.
26714 * conf/x86_64-efi.rmk: Likewise.
26715
26716 * include/grub/command.h (grub_command_execute): New inline function.
26717
26718 * include/grub/menu.h (grub_menu_entry): Removed commands field.
26719
26720 * include/grub/normal.h: Remove <grub/setjmp.h>.
26721 (grub_fs_module_list): Moved to normal/autofs.c.
26722 (grub_exit_env): Removed.
26723 (grub_command_execute): Likewise.
26724 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
26725 parameter script.
26726 (read_command_list): New function declaration.
26727 (read_fs_list): Likewise.
26728
26729 * include/parser.h: Include <grub/reader.h>.
26730 (grub_parser_split_cmdline): Change type of getline parameter.
26731 (grub_parser): New structure.
26732 (grub_parser_class): New variable.
26733 (grub_parser_execute): New function declaration.
26734 (grub_register_rescue_parser): Likewise.
26735 (grub_parser_register): New inline function.
26736 (grub_parser_unregister): Likewise.
26737 (grub_parser_get_current): Likewise.
26738 (grub_parser_set_current): Likewise.
26739
26740 * include/grub/reader.h: New file.
26741 * kern/reader.c: Likewise.
26742 * kern/rescue_parser.c: Likewise.
26743 * kern/rescue_reader.c: Likewise.
26744 * normal/autofs.c: Likewise.
26745 * normal/dyncmd.c: Likewise.
26746
26747 * include/grub/rescue.h: Removed.
26748 * normal/command.h: Likewise.
26749
26750 * include/grub/script.h: Moved to ...
26751 * include/grub/script_sh.h: ... Moved here.
26752 * normal/execute.c: Moved to ...
26753 * script/sh/execute.c: ... Moved here.
26754 * normal/function.c: Moved to ...
26755 * script/sh/function.c: ... Moved here.
26756 * normal/lexer.c: Moved to ...
26757 * script/sh/lexer.c: ... Moved here.
26758 * normal/parser.y: Moved to ...
26759 * script/sh/parser.y: ... Moved here.
26760 * normal/script.c: Moved to ...
26761 * script/sh/script.c: ... Moved here.
26762
26763 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
26764 <grub/reader.h>.
26765 (grub_exit_env): Removed.
26766 (fs_module_list): Moved to normal/autofs.c.
26767 (grub_file_getline): Don't handle comment here.
26768 (free_menu): Skip removed field entry->commands.
26769 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
26770 script parameter.
26771 (read_config_file): Removed nested parameter, change getline function.
26772 (grub_enter_normal_mode): Removed.
26773 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
26774 (read_command_list): Likewise.
26775 (autoload_fs_module): Moved to normal/autofs.c.
26776 (read_fs_list): Likewise.
26777 (reader_nested): New variable.
26778 (grub_normal_execute): Run parser.sh to switch to sh parser.
26779 (grub_cmd_rescue): Removed.
26780 (cmd_normal): Removed.
26781 (grub_cmd_normal): Unregister itself at the beginning. Don't register
26782 rescue command.
26783 (grub_cmdline_run): New function.
26784 (grub_normal_reader_init): Likewise.
26785 (grub_normal_read_line): Likewise.
26786 (grub_env_write_pager): Likewise.
26787 (cmdline): New variable.
26788 (grub_normal_reader): Likewise.
26789 (GRUB_MOD_INIT): Register normal reader and set as current, register
26790 pager hook, register normal command with grub_register_command_prio,
26791 so that it won't show up in command.lst.
26792 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
26793 grub_fs_autoload_hook.
26794
26795 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
26796 (grub_menu_execute_entry): Replace grub_script_execute with
26797 grub_parser_execute, change parameter to grub_command_execute.
26798
26799 * normal/menu_text.c: Remove <grub/script.h>.
26800
26801 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
26802 and <grub/parser.h>.
26803 (run): Change editor_getline to use new parser interface. Change
26804 parameter to grub_command_execute.
26805
26806 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
26807 <grub/reader.h> and <grub/parser.h>.
26808 (grub_load_normal_mode): Execute normal command.
26809 (grub_main): Call grub_register_core_commands,
26810 grub_register_rescue_parser and grub_register_rescue_reader, use
26811 grub_reader_loop to enter input loop.
26812
26813 * kern/parser.c (grub_parser_split_cmdline): Change type of
26814 getline parameter.
26815 (grub_parser_class): New variable.
26816 (grub_parser_execute): New function.
26817
26818 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
26819 * loader/multiboot2.c: Likewise.
26820 * loader/sparc64/ieee1275/linux.c: Likewise.
26821
26822 * util/grub-emu.c (read_command_list): New dummy function.
26823
26824 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26825
26826 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
26827 count to 16 for CCISS and IDA.
26828
26829 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26830
26831 * normal/menu_text.c (grub_wait_after_message): Print a newline
26832 after waiting for user input.
26833
26834 * loader/i386/linux.c: Include `<grub/normal.h>'.
26835 (grub_cmd_linux): Improve the error message about `ask' mode, by
26836 waiting for user input so it's not missed (we can do this, since
26837 user requested interaction).
26838
26839 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26840
26841 Added missing lst to grub-mkrescue
26842
26843 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
26844 and ${input_dir}/parttool.lst
26845
26846 2009-04-30 David S. Miller <davem@davemloft.net>
26847
26848 * util/hostdisk.c (device_is_wholedisk): New function.
26849 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
26850 zero only if device_is_wholedisk() returns true.
26851
26852 * util/hostdisk.c (convert_system_partition_to_system_disk):
26853 Handle virtual disk devices named /dev/vdiskX as found on sparc
26854 and powerpc.
26855
26856 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
26857 lettered partition specifier is found, convert to numbered.
26858
26859 2009-04-29 David S. Miller <davem@davemloft.net>
26860
26861 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
26862 * include/grub/sparc64/ieee1275/memory.h: Likewise.
26863
26864 * normal/command.c: Add missing newline at end of file.
26865
26866 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
26867 warnings.
26868 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
26869 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
26870 grub_ofdisk_read): Likewise, and deal similarly with the fact that
26871 ihandles have a 32-bit type but need to be stored in a "void *".
26872
26873 2009-04-28 Pavel Roskin <proski@gnu.org>
26874
26875 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
26876 not disk. Adjust all dependencies.
26877 (grub_fs_uuid_close): Use grub_device_close(), not
26878 grub_disk_close().
26879
26880 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
26881 parent's partition, don't copy it by reference, as it gets freed
26882 on close.
26883
26884 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26885
26886 Preboot hooks support
26887
26888 * commands/boot.c (struct grub_preboot_t): new declaration
26889 (preboots_head): new variable
26890 (preboots_tail): likewise
26891 (grub_loader_register_preboot_hook): new function
26892 (grub_loader_unregister_preboot_hook): likewise
26893 (grub_loader_set): launch preboot hooks
26894 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
26895 (grub_loader_register_preboot_hook): new declaration
26896 (grub_loader_unregister_preboot_hook): likewise
26897
26898 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26899
26900 Warning fix
26901
26902 * disk/scsi.c (grub_scsi_open): added missing cast when
26903 calling grub_dprintf
26904
26905 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
26906
26907 Bug and warning fixes
26908
26909 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
26910 declaration
26911 * commands/test.c (test_parse): fixed bug with file tests and corrected
26912 declaration of find_file
26913
26914 2009-04-26 Pavel Roskin <proski@gnu.org>
26915
26916 * Makefile.in: Don't install empty manual pages if help2man is
26917 missing. Use help2man option for output, not shell redirection.
26918
26919 2009-04-26 David S. Miller <davem@davemloft.net>
26920
26921 * util/grub-mkdevicemap.c (make_device_map): Add missing
26922 NESTED_FUNC_ATTR to process_device().
26923
26924 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
26925
26926 Test command
26927
26928 * commands/test.c: rewritten to use bash-like test
26929
26930 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
26931
26932 Parttool autoloading and improvements
26933
26934 * Makefile.in (pkglib_DATA): add parttool.lst
26935 (parttool.lst): new target
26936 * genmk.rb: generate parttool-*
26937 (CLEANFILES): add #{parttool}
26938 (PARTTOOLFILES): new variable
26939 * genparttoollist.sh: new file
26940 * parttool/pcpart.c (grub_pcpart_boot): more feedback
26941 (grub_pcpart_type): likewise
26942 * commands/parttool.c (helpmsg): new variable
26943 (grub_cmd_parttool): output help if not enough arguments are supplied
26944 autoload modules
26945 (GRUB_MOD_INIT(parttool)): use helpmsg
26946
26947 2009-04-24 David S. Miller <davem@davemloft.net>
26948
26949 Avoiding opening same device multiple times in device iterator.
26950
26951 * kern/device.c: (grub_device_iterate): Define struct part_ent,
26952 and use it to build a list of partitions in iterate_disk() and
26953 iterate_partition().
26954
26955 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
26956 on disk->data.
26957
26958 * disk/ieee1275/nand.c (grub_nand_iterate): Return
26959 grub_devalias_iterate() result instead of unconditional 0.
26960 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
26961 Also, capture hook return value, either directly or via
26962 grub_children_iterate(), and propagate to caller.
26963 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
26964 grub_children_iterate): Return value is now 'int' instead of
26965 'grub_err_t'.
26966 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
26967 like a proper iterator, stopping when hooks return non-zero.
26968 (grub_devalias_iterate): Likewise.
26969
26970 2009-04-23 David S. Miller <davem@davemloft.net>
26971
26972 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
26973
26974 2009-04-22 David S. Miller <davem@davemloft.net>
26975
26976 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
26977 is larger than address_cells, use that value for address_cells too.
26978
26979 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
26980 IEEE1275_MAX_PATH_LEN): Define.
26981 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
26982 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
26983 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
26984 'devtype'. Explicitly NULL terminate devalias expansion.
26985
26986 * util/sparc64/ieee1275/misc.c: New file.
26987 * util/sparc64/ieee1275/grub-setup.c: New file.
26988 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
26989 * util/sparc64/ieee1275/grub-mkimage.c: New file.
26990 * util/sparc64/ieee1275/grub-install.in: New file.
26991 * util/ieee1275/ofpath.c: New file.
26992 * util/ieee1275/devicemap.c: New file.
26993 * util/devicemap.c: New file.
26994 * util/deviceiter.c: New file.
26995 * kern/sparc64/ieee1275/init.c: New file.
26996 * include/grub/util/ofpath.h: New file.
26997 * include/grub/util/deviceiter.h: New file.
26998 * util/grub-mkdevicemap.c: Include deviceiter.h.
26999 Implement using grub_util_emit_devicemap_entry and
27000 grub_util_iterate_devices.
27001 * conf/i386-corebook.rmk: Build util/deviceiter.c and
27002 util/devicemap.c into grub-mkdevicemap
27003 * conf/i386-efi.rmk: Likewise.
27004 * conf/i386-ieee1275.rmk: Likewise.
27005 * conf/i386-pc.rmk: Likewise.
27006 * conf/powerpc-ieee1275.rmk: Likewise.
27007 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
27008 images and installation utilities. Build kernel as image
27009 instead of as elf binary. Use common rules as much as possible.
27010
27011 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27012
27013 Correct GPT definition
27014
27015 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
27016 of "attrib" member
27017
27018 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
27019
27020 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
27021
27022 2009-04-19 David S. Miller <davem@davemloft.net>
27023
27024 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
27025 (grub_rescue_cmd_linux): Rename to...
27026 (grub_cmd_linux): and fix prototype.
27027 (grub_rescue_cmd_initrd): Rename to...
27028 (grub_cmd_initrd): and fix prototype.
27029 (cmd_linux, cmd_initrd): New.
27030 (GRUB_MOD_INIT(linux)): Use grub_register_command().
27031 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
27032
27033 2009-04-17 Pavel Roskin <proski@gnu.org>
27034
27035 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
27036 format.
27037 (grub_ohci_transfer): Likewise.
27038
27039 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
27040
27041 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
27042 return without a value. Fix inconsistent indentation.
27043
27044 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
27045 match struct grub_fs.
27046
27047 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
27048 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
27049 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
27050 * commands/lspci.c (grub_lspci_iter): Likewise.
27051
27052 2009-04-16 Bean <bean123ch@gmail.com>
27053
27054 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
27055 value.
27056
27057 2009-04-15 Pavel Roskin <proski@gnu.org>
27058
27059 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
27060 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
27061 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
27062 definitions.
27063
27064 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27065
27066 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
27067 that no multiple data or metadata areas are supported and `Unknown
27068 metadata header'.
27069
27070 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27071
27072 Move loader out of the kernel
27073
27074 * kern/loader.c: moved to ...
27075 * commands/boot.c: ... moved here
27076 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
27077 * commands/boot.c (grub_cmd_boot): moved here. All users updated
27078 * include/grub/kernel.h (grub_machine_fini): export
27079 * include/grub/loader.h (grub_loader_is_loaded): update declaration
27080 (grub_loader_set): likewise
27081 (grub_loader_unset): likewise
27082 (grub_loader_boot): likewise
27083 * conf/common.rmk: new module boot.mod
27084 (pkglib_MODULES): add boot.mod
27085 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
27086 (grub_emu_SOURCES): likewise
27087 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
27088 (grub_emu_SOURCES): likewise
27089 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
27090 (grub_emu_SOURCES): likewise
27091 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
27092 (grub_emu_SOURCES): likewise
27093 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
27094 (grub_emu_SOURCES): likewise
27095 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
27096 (grub_emu_SOURCES): likewise
27097 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
27098 (grub_emu_SOURCES): likewise
27099
27100 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27101
27102 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
27103
27104 * kern/misc.c (grub_itoa): Removed function
27105 (grub_ltoa): likewise
27106 (grub_vsprintf): use grub_lltoa
27107
27108 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27109
27110 Restore grub-emu
27111
27112 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
27113 * conf/i386-coreboot.rmk: likewise
27114 * conf/i386-ieee1275.rmk: likewise
27115 * conf/powerpc-ieee1275.rmk: likewise
27116
27117 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27118
27119 * INSTALL: Add that `./autogen.sh' needs to be run before
27120 `./configure.'.
27121
27122 2009-04-14 Bean <bean123ch@gmail.com>
27123
27124 * Makefile.in (pkglib_DATA): Add handler.lst.
27125 (handler.lst): New rule.
27126
27127 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
27128 * conf/i386-coreboot.rmk: Likewise.
27129 * conf/i386-ieee1275.rmk: Likewise.
27130 * conf/i386-efi.rmk: Likewise.
27131 * conf/x86_64-efi.rmk: Likewise.
27132 * conf/powerpc-ieee1275.rmk: Likewise.
27133 * conf/sparc64-ieee1275.rmk: Likewise.
27134
27135 * genhandlerlist.sh: New file.
27136
27137 * genmk.rb: Add rules to generate handler.lst.
27138
27139 * include/grub/normal.h (grub_file_getline): New function definition.
27140 (read_handler_list): Likewise.
27141 (free_handler_list): Likewise.
27142
27143 * include/grub/term.h (grub_term_register_input): Add name parameter
27144 for auto generation of handler.lst.
27145 (grub_term_register_output): Likewise.
27146
27147 * normal/handler.c: New file.
27148
27149 * normal/main.c (get_line): Renamed to grub_file_getline.
27150 (read_config_file): Use the newly renamed grub_file_getline.
27151 (read_command_list): Likewise.
27152 (read_fs_list): Likewise.
27153 (grub_normal_execute): Call read_handler_list to parse handler.lst.
27154 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
27155
27156 * term/efi/console.c (grub_console_init): Add name parameter for auto
27157 generation of handler.lst.
27158 * term/gfxterm.c: Likewise.
27159 * term/i386/pc/at_keyboard.c: Likewise.
27160 * term/i386/pc/console.c: Likewise.
27161 * term/i386/pc/serial.c: Likewise.
27162 * term/i386/pc/vesafb.c: Likewise.
27163 * term/i386/pc/vga.c: Likewise.
27164 * term/i386/pc/vga_text.c: Likewise.
27165 * term/ieee1275/ofconsole.c: Likewise.
27166 * term/usb_keyboard.c: Likewise.
27167
27168 2009-04-14 Bean <bean123ch@gmail.com>
27169
27170 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
27171 properly with null character.
27172
27173 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27174
27175 * configure: Remove.
27176 * config.h.in: Likewise.
27177 * stamp-h.in: Likewise.
27178 * DISTLIST: Likewise.
27179 * conf/common.mk: Likewise.
27180 * conf/i386-coreboot.mk: Likewise.
27181 * conf/i386-efi.mk: Likewise.
27182 * conf/i386-ieee1275.mk: Likewise.
27183 * conf/i386.mk: Likewise.
27184 * conf/i386-pc.mk: Likewise.
27185 * conf/powerpc-ieee1275.mk: Likewise.
27186 * conf/sparc64-ieee1275.mk: Likewise.
27187 * conf/x86_64-efi.mk: Likewise.
27188
27189 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
27190 develop on GRUB.
27191
27192 2009-04-14 John Stanley <jpsinthemix@verizon.net>
27193 David S. Miller <davem@davemloft.net>
27194
27195 * util/hostdisk.c (make_device_name): Fix buffer length
27196 calculations.
27197
27198 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27199
27200 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
27201 <sys/param.h> and <sys/sysctl.h>.
27202 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
27203 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
27204 opening the device and reset them afterwards.
27205
27206 2009-04-13 Pavel Roskin <proski@gnu.org>
27207
27208 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
27209 Reported by John Stanley <jpsinthemix@verizon.net>
27210
27211 2009-04-13 Robert Millan <rmh@aybabtu.com>
27212
27213 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
27214 that name for menuentries when appropriate.
27215
27216 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27217
27218 * util/grub.d/10_freebsd.in: Add a missing `fi'.
27219
27220 2009-04-13 Robert Millan <rmh@aybabtu.com>
27221
27222 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
27223 to Linux, simply abort telling the user it's no longer supported.
27224
27225 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27226
27227 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
27228 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
27229 `freebsd_loadenv' only when devices.hints exist.
27230
27231 2009-04-13 Pavel Roskin <proski@gnu.org>
27232
27233 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
27234
27235 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27236
27237 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
27238 partition number.
27239 (grub_drive): Likewise.
27240
27241 2009-04-13 David S. Miller <davem@davemloft.net>
27242
27243 * kern/sparc64/ieee1275/ieee1275.c: New file.
27244 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
27245 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
27246 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
27247 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
27248 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
27249 grub_ieee1275_alloc_physmem): Declare new exported functions.
27250
27251 * include/grub/sparc64/ieee1275/loader.h: New file.
27252 * include/grub/sparc64/ieee1275/memory.h: Likewise.
27253 * include/grub/sparc64/kernel.h: Likewise.
27254 * loader/sparc64/ieee1275/linux.c: Likewise.
27255
27256 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
27257 (grub_fstest_SOURCES): Likewise.
27258
27259 * util/hostdisk.c (make_device_name): Do not make any assumptions
27260 about the length of drive names.
27261
27262 * kern/dl.c (grub_dl_load_file): Close file immediately when
27263 we are done using it.
27264
27265 2009-04-12 David S. Miller <davem@davemloft.net>
27266
27267 * kern/misc.c (grub_ltoa): Fix cast when handling negative
27268 values. Noticed by Pavel Roskin.
27269
27270 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
27271 target compiler.
27272
27273 * genmk.rb: Add more flexible image type specification, also
27274 pass --strip-unneeded to objcopy.
27275 * conf/i386-pc.rmk: Use *_FORMAT.
27276 * conf/i386-pc.mk: Rebuilt.
27277
27278 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
27279 (OFDISK_HASH_SZ): Define.
27280 (ofdisk_hash): New hash table.
27281 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
27282 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
27283 instead of device phandle which is not unique.
27284
27285 * kern/sparc64/ieee1275/init.c: Delete, replace with...
27286 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
27287 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
27288 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
27289 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
27290 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
27291 GRUB_KERNEL_MACHINE_DATA_END): Define.
27292 (grub_kernel_image_size, grub_total_module_size): Declare.
27293
27294 2009-04-12 Pavel Roskin <proski@gnu.org>
27295
27296 * configure.ac: Change the logic when we check for target tools.
27297 Do it when the target is specified and it's different from the
27298 specified value of the host.
27299
27300 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
27301
27302 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
27303 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
27304 GNU/kFreeBSD. Check if a device is a character device. Use
27305 DIOCGMEDIASIZE to get the size.
27306 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
27307 support for GNU/kFreeBSD.
27308 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
27309 is a character device instead of a block device. Add support for
27310 FreeBSD device names.
27311
27312 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
27313 is a character device instead of a block device.
27314
27315 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
27316 is a character device instead of a block device.
27317
27318 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
27319
27320 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
27321 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
27322 FreeBSD. Check if a device is a character device. Use
27323 DIOCGMEDIASIZE to get the size.
27324 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
27325 support for FreeBSD.
27326 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
27327 is a character device instead of a block device. Add support for
27328 FreeBSD device names.
27329
27330 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
27331 a character device instead of a block device.
27332 (grub_util_check_char_device): New function.
27333
27334 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
27335 a character device instead of a block device.
27336
27337 * include/grub/util/getroot.h (grub_util_check_char_device): New
27338 prototype.
27339
27340 2009-04-11 David S. Miller <davem@davemloft.net>
27341
27342 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
27343 static libgcc.
27344 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
27345 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
27346 function, if present.
27347 (__bswapdi2): Likewise.
27348
27349 * include/grub/sparc64/ieee1275/boot.h: New file.
27350 * boot/sparc64/ieee1275/boot.S: Likewise.
27351 * boot/sparc64/ieee1275/diskboot.S: Likewise.
27352
27353 * kern/misc.c (grub_ltoa): New function.
27354 (grub_vsprintf): Use it to format 'long' integers.
27355
27356 2009-04-10 David S. Miller <davem@davemloft.net>
27357
27358 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
27359 slots are of type grub_ieee1275_cell_t.
27360 (grub_nand_read): Likewise.
27361 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
27362 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
27363 macros are used to compare values in arg/ret block of the call.
27364 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
27365 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
27366 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
27367 grub_ieee1275_instance_to_path, grub_ieee1275_write,
27368 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
27369 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
27370 grub_ieee1275_close, grub_ieee1275_set_property,
27371 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
27372 grub_ieee1275_cell_t.
27373 * kern/ieee1275/openfw.c (grub_map): Likewise.
27374 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
27375 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
27376
27377 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
27378 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
27379 (grub_devalias_iterate): Likewise.
27380
27381 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27382
27383 UFS improvements
27384
27385 * fs/ufs.c (INODE_NBLOCKS): new definition
27386 (struct grub_ufs_dirent): added fields for non-BSD dirents
27387 (grub_ufs_get_file_block): fixed double indirect handling
27388 (grub_ufs_lookup_symlink): use more robust way to determine whether
27389 symlink is inline
27390 (grub_ufs_find_file): support for non-BSD dirents
27391 (grub_ufs_dir): support for non-BSD dirents
27392
27393 2009-04-10 Bean <bean123ch@gnail.com>
27394
27395 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
27396 attribute, otherwise the size would be wrong for i386 platform.
27397
27398 * include/grub/pci.h (grub_pci_read_word): New inline function.
27399 (grub_pci_read_byte): Likewise.
27400 (grub_pci_write): Likewise.
27401 (grub_pci_write_word): Likewise.
27402 (grub_pci_write_byte): Likewise.
27403
27404 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
27405
27406 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
27407 (find_framebuf): Scan pci to locate the frame buffer address.
27408
27409 * commands/efi/fixvideo.c: New file.
27410
27411 * commands/efi/loadbios.c: Likewise.
27412
27413 * commands/memrw.c: Likewise.
27414
27415 * util/grub-dumpbios.in: Likewise.
27416
27417 * conf/common.rmk (grub-dumpbios): New utility.
27418 (pkglib_MODULES): New module memrw.mod.
27419 (memrw_mod_SOURCE): New macro.
27420 (memrw_mod_CFLAGS): Likewise.
27421 (memrw_mod_LDFLAGS): Likewise.
27422
27423 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
27424 fixvideo.mod.
27425 (loadbios_mod_SOURCE): New macro.
27426 (loadbios_mod_CFLAGS): Likewise.
27427 (loadbios_mod_LDFLAGS): Likewise.
27428 (fixvideo_mod_SOURCE): Likewise.
27429 (fixvideo_mod_CFLAGS): Likewise.
27430 (fixvideo_mod_LDFLAGS): Likewise.
27431
27432 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
27433 fixvideo.mod.
27434 (loadbios_mod_SOURCE): New macro.
27435 (loadbios_mod_CFLAGS): Likewise.
27436 (loadbios_mod_LDFLAGS): Likewise.
27437 (fixvideo_mod_SOURCE): Likewise.
27438 (fixvideo_mod_CFLAGS): Likewise.
27439 (fixvideo_mod_LDFLAGS): Likewise.
27440
27441 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
27442
27443 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
27444
27445 2009-04-07 David S. Miller <davem@davemloft.net>
27446
27447 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
27448 support for R_SPARC_OLO10 relocations. Fix compile warning for
27449 R_SPARC_WDISP30 case.
27450 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
27451
27452 2009-04-06 Pavel Roskin <proski@gnu.org>
27453
27454 * include/grub/misc.h (ARRAY_SIZE): New macro.
27455 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
27456 New macro.
27457 * loader/i386/linux.c (allocate_pages): Use free_pages().
27458 (grub_linux_unload): Don't use free_pages().
27459 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
27460 wrong index. Treat all other modes as text modes.
27461 (grub_cmd_linux): Initialize vid_mode unconditionally to
27462 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
27463
27464 * commands/help.c (print_command_help): Use cmd->prio, not
27465 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
27466
27467 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
27468
27469 Parttool
27470
27471 * parttool/pcpart.c: new file
27472 * commands/parttool.c: likewise
27473 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
27474 (parttool_mod_SOURCES): new variable
27475 (parttool_mod_CFLAGS): likewise
27476 (parttool_mod_LDFLAGS): likewise
27477 (pcpart_mod_SOURCES): likewise
27478 (pcpart_mod_CFLAGS): likewise
27479 (pcpart_mod_LDFLAGS): likewise
27480 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
27481 and parttool/pcpart.c
27482 * conf/i386-efi.rmk: likewise
27483 * conf/i386-ieee1275.rmk: likewise
27484 * conf/i386-pc.rmk: likewise
27485 * conf/powerpc-ieee1275.rmk: likewise
27486 * conf/sparc64-ieee1275.rmk: likewise
27487 * conf/x86_64-ieee1275.rmk: likewise
27488
27489 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27490
27491 Support for mtime and further expandability of dir command
27492
27493 * include/grub/lib/datetime.h: moved to ...
27494 * include/grub/datetime.h: ... moved here and added
27495 declaration of grub_unixtime2datetime. All users updated
27496 * include/grub/fs.h: new syntax for dir and mtime functions in
27497 struct grub_fs
27498 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
27499 and GRUB_FSHELP_FLAGS_MASK
27500 * commands/ls.c (grub_ls_list_files): Write mtime in long format
27501 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
27502 (grub_ext2_mtime): new function
27503 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
27504 (grub_hfsplus_mtime): new function
27505 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
27506 (GRUB_UFS_ATTR_FILE): likewise
27507 (GRUB_UFS_ATTR_LNK): likewise
27508 (struct grub_ufs_sblock): new fields mtime
27509 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
27510 all users updated
27511 (grub_ufs_dir): mtime support
27512 (grub_ufs_mtime): new function
27513 * fs/affs.c (grub_affs_dir): use new dir syntax
27514 * fs/afs.c (grub_afs_dir): likewise
27515 * fs/cpio.c (grub_cpio_dir): likewise
27516 * fs/fat.c (grub_fat_find_dir): likewise
27517 * fs/hfs.c (grub_hfs_dir): likewise
27518 * fs/iso9660.c (grub_iso9660_dir): likewise
27519 * fs/jfs.c (grub_jfs_dir): likewise
27520 * fs/minix.c (grub_minix_dir): likewise
27521 * fs/ntfs.c (grub_ntfs_dir): likewise
27522 * fs/reiserfs.c (grub_reiserfs_dir): likewise
27523 * fs/sfs.c (grub_sfs_dir): likewise
27524 * fs/xfs.c (grub_xfs_dir): likewise
27525 * util/hostfs.c (grub_hostfs_dir): likewise
27526 * lib/datetime.c: moved to ...
27527 * normal/datetime.c: ... moved here
27528 (grub_unixtime2datetime): new function
27529 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
27530 * normal/completion.c (iterate_dir): use new dir syntax
27531 * normal/misc.c (grub_normal_print_device_info): tell the
27532 last modification time of a volume
27533 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
27534 * conf/common.rmk: added lib/datetime.c to ls.mod
27535 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
27536 (normal_mod_SOURCES): likewise
27537 (datetime_mod_SOURCES): Removed lib/datetime.c
27538 * conf/i386-efi.rmk: likewise
27539 * conf/i386-ieee1275.rmk: likewise
27540 * conf/i386-pc.rmk: likewise
27541 * conf/powerpc-ieee1275.rmk: likewise
27542 * conf/sparc64-ieee1275.rmk: likewise
27543 * conf/x86_64-efi.rmk: likewise
27544
27545 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27546
27547 Trim trailing spaces in FAT label and support mtools-like labels
27548
27549 * fs/fat.c (grub_fat_iterate_dir): New function based
27550 on grub_fat_find_dir
27551 (grub_fat_find_dir): use grub_fat_iterate_dir
27552 (grub_fat_label): likewise
27553
27554 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
27555
27556 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
27557 and command.h
27558 remove extraneous kernel_elf_HEADERS
27559
27560 2009-04-04 Bean <bean123ch@gnail.com>
27561
27562 * include/grub/util/misc.h: Add dummy function fsync for mingw.
27563
27564 * util/misc.c: Likewise.
27565
27566 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27567
27568 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
27569 instead of grub_printf.
27570
27571 2009-04-03 Robert Millan <rmh@aybabtu.com>
27572
27573 * loader/i386/linux.c (grub_linux_setup_video): Fill
27574 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
27575 values from `mode info' structure instead of hardcoded
27576 values.
27577
27578 2009-04-01 Pavel Roskin <proski@gnu.org>
27579
27580 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
27581 unused now.
27582 * genmk.rb: Likewise.
27583 * configure.ac: Likewise.
27584
27585 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
27586
27587 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
27588 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
27589
27590 2009-04-01 David S. Miller <davem@davemloft.net>
27591
27592 * normal/sparc64/setjmp.S: Fix setjmp implementation.
27593 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
27594 (grub_setjmp): Mark with 'returns_twice' attribute.
27595 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
27596 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
27597 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
27598
27599 2009-04-01 Robert Millan <rmh@aybabtu.com>
27600
27601 Reapply fix from 2008-07-28 which was accidentally reverted; also
27602 perform the same fix to a similar check in same function.
27603
27604 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
27605 with the same number are found, just use issue a warning with
27606 grub_dprintf(), as this error has been reported to be non-fatal.
27607
27608 2009-03-31 Pavel Roskin <proski@gnu.org>
27609
27610 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
27611 for cross-compilation.
27612
27613 2009-03-30 Robert Millan <rmh@aybabtu.com>
27614
27615 Fix i386-ieee1275 build.
27616
27617 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
27618 Remove declaration.
27619
27620 2009-03-30 Pavel Roskin <proski@gnu.org>
27621
27622 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
27623 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
27624 zero-terminated, rely only on the strlen value. Fix comparison
27625 of strings differing in length.
27626
27627 2009-03-30 Robert Millan <rmh@aybabtu.com>
27628
27629 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
27630 checking for abi version. Improve error messages on BIOS to notify
27631 user about `linux16' command.
27632
27633 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
27634
27635 Leak fixes
27636
27637 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
27638 in case of collision
27639 * disk/scsi.c (grub_scsi_open): free scsi in case of error
27640
27641 2009-03-29 Robert Millan <rmh@aybabtu.com>
27642
27643 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
27644 set `vid_mode' accordingly.
27645 (grub_linux_boot): Process `vid_mode' and set video mode.
27646
27647 2009-03-29 Robert Millan <rmh@aybabtu.com>
27648
27649 * util/grub.d/10_linux.in (linux_entry): New function.
27650 Factorize generation of Linux boot entries.
27651
27652 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
27653
27654 Make the format of Environment Block plain text. The boot loader
27655 part is not tested well yet.
27656
27657 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
27658 (buffer): Removed.
27659 (envblk): Likewise.
27660 (usage): Remove "info" and "clear". Add "unset". Update the
27661 description of "set", as this does not delete variables any
27662 longer.
27663 (create_envblk_file): Complete rewrite.
27664 (open_envblk_file): Likewise.
27665 (cmd_info): Removed.
27666 (cmd_list): Likewise.
27667 (cmd_set): Likewise.
27668 (cmd_clear): Likewise.
27669 (list_variables): New function.
27670 (write_envblk): Likewise.
27671 (set_variables): Likewise.
27672 (unset_variables): Likewise.
27673 (main): Complete rewrite.
27674
27675 * commands/loadenv.c (buffer): Removed.
27676 (envblk): Likewise.
27677 (open_envblk_file): New function.
27678 (read_envblk_file): Complete rewrite.
27679 (grub_cmd_load_env): Likewise.
27680 (grub_cmd_list_env): Likewise.
27681 (struct blocklist): New struct.
27682 (free_blocklists): New function.
27683 (check_blocklists): Likewise.
27684 (write_blocklists): Likewise.
27685 (grub_cmd_save_env): Complete rewrite.
27686
27687 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
27688 a plain text signature.
27689 (GRUB_ENVBLK_MAXLEN): Removed.
27690 (struct grub_envblk): Complete rewrite.
27691 (grub_envblk_find): Removed.
27692 (grub_envblk_insert): Likewise.
27693 (grub_envblk_open): New prototype.
27694 (grub_envblk_set): Likewise.
27695 (grub_envblk_delete): Put const to VALUE.
27696 (grub_envblk_iterate): Put const to NAME and VALUE.
27697 (grub_envblk_close): New prototype.
27698 (grub_envblk_buffer): New inline function.
27699 (grub_envblk_size): Likewise.
27700
27701 * lib/envblk.c: Include grub/mm.h.
27702 (grub_env_find): Removed.
27703 (grub_envblk_open): New function.
27704 (grub_envblk_close): Likewise.
27705 (escaped_value_len): Likewise.
27706 (find_next_line): Likewise.
27707 (grub_envblk_insert): Removed.
27708 (grub_envblk_set): New function.
27709 (grub_envblk_delete): Complete rewrite.
27710 (grub_envblk_iterate): Likewise.
27711
27712 2009-03-28 Robert Millan <rmh@aybabtu.com>
27713
27714 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
27715 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
27716 variables. Use 16-bit loader.
27717 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
27718 loader.
27719 * kern/i386/loader.S (grub_linux_boot): Rename to ...
27720 (grub_linux16_boot): ... this. Update all users.
27721 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
27722 (grub_linux_boot): ... this. Update all users.
27723
27724 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
27725 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
27726 commands to `linux16' and `initrd16'.
27727 (GRUB_MOD_FINI(linux)): Rename to ...
27728 (GRUB_MOD_FINI(linux16)): ... this.
27729
27730 2009-03-24 Pavel Roskin <proski@gnu.org>
27731
27732 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
27733 not just for compilation.
27734
27735 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
27736
27737 Move multiboot helper out of kernel
27738
27739 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
27740 `loader/i386/multiboot_helper.S'.
27741 * conf/i386-coreboot.rmk: Likewise
27742 * conf/i386-ieee1275.rmk: Likewise
27743
27744 * kern/i386/loader.S: Move multiboot helpers from here...
27745 * loader/i386/multiboot_helper.S: ...moved here
27746 * include/grub/i386/loader.h: Move declarations of multiboot
27747 helpers from here...
27748 * include/grub/i386/multiboot.h: ...moved here
27749 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
27750
27751 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27752
27753 * kern/env.c (grub_env_context_open): Added an argument to specify
27754 whether a new context inherits exported variables from current
27755 one. This is useful when making a sandbox to interpret a config
27756 file.
27757 All callers updated.
27758
27759 * include/grub/env.h (grub_env_context_open): Updated the prototype.
27760
27761 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27762
27763 * kern/env.c (grub_env_context_close): Fix memory leaks.
27764
27765 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27766
27767 * normal/main.c (grub_normal_execute): Added an argument
27768 BATCH to specify if an interactive interface should be provided
27769 after reading a config file.
27770 All callers updated.
27771 (read_command_list): Prevent being executed twice.
27772 (read_fs_list): Likewise.
27773
27774 * include/grub/normal.h (grub_normal_execute): Updated the
27775 prototype.
27776
27777 2009-03-22 Pavel Roskin <proski@gno.org>
27778
27779 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
27780 _start.
27781 * kern/i386/pc/startup.S: Likewise.
27782 * kern/i386/efi/startup.S: Likewise.
27783 * kern/i386/ieee1275/startup.S: Likewise.
27784 * kern/i386/coreboot/startup.S: Likewise.
27785 * kern/x86_64/efi/startup.S: Likewise.
27786
27787 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
27788 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
27789 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
27790
27791 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
27792
27793 Bugfixes in multiboot for bugs uncovered by solaris kernel.
27794
27795 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
27796 limit detection.
27797 Use vaddr of correct segment for entry_point.
27798
27799 2009-03-21 Bean <bean123ch@gmail.com>
27800
27801 * commands/blocklist.c: Add include file <grub/command.h>, remove
27802 <grub/normal.h> and <grub/arg.h>.
27803 (grub_cmd_blocklist): Use the new command interface.
27804 (GRUB_MOD_INIT): Likewise.
27805 (GRUB_MOD_FINI): Likewise.
27806 * commands/boot.c: Likewise.
27807 * commands/cat.c: Likewise.
27808 * commands/cmp.c: Likewise.
27809 * commands/configfile.c: Likewise.
27810 * commands/crc.c: Likewise.
27811 * commands/echo.c: Likewise.
27812 * commands/halt.c: Likewise.
27813 * commands/handler.c: Likewise.
27814 * commands/hdparm.c: Likewise.
27815 * commands/help.c: Likewise.
27816 * commands/hexdump.c: Likewise.
27817 * commands/loadenv.c: Likewise.
27818 * commands/ls.c: Likewise.
27819 * commands/lsmmap.c: Likewise.
27820 * commands/lspci.c: Likewise.
27821 * commands/loadenv.c: Likewise.
27822 * commands/read.c: Likewise.
27823 * commands/reboot.c: Likewise.
27824 * commands/search.c: Likewise.
27825 * commands/sleep.c: Likewise.
27826 * commands/test.c: Likewise.
27827 * commands/usbtest.c: Likewise.
27828 * commands/videotest.c: Likewise.
27829 * commands/i386/cpuid.c: Likewise.
27830 * commands/i386/pc/halt.c: Likewise.
27831 * commands/i386/pc/play.c: Likewise.
27832 * commands/i386/pc/pxecmd.c: Likewise.
27833 * commands/i386/pc/vbeinfo.c: Likewise.
27834 * commands/i386/pc/vbetest.c: Likewise.
27835 * commands/ieee1275/suspend.c: Likewise.
27836 * disk/loopback.c: Likewise.
27837 * font/font_cmd.c: Likewise.
27838 * hello/hello.c: Likewise.
27839 * loader/efi/appleloader.c: Likewise.
27840 * loader/efi/chainloader.c: Likewise.
27841 * loader/i386/bsd.c: Likewise.
27842 * loader/i386/efi/linux.c: Likewise.
27843 * loader/i386/ieee1275/linux.c: Likewise.
27844 * loader/i386/linux.c: Likewise.
27845 * loader/i386/pc/chainloader.c: Likewise.
27846 * loader/i386/pc/linux.c: Likewise.
27847 * loader/powerpc/ieee1275/linux.c: Likewise.
27848 * loader/multiboot_loader.c: Likewise.
27849 * term/gfxterm.c: Likewise.
27850 * term/i386/pc/serial.c: Likewise.
27851 * term/terminfo.c: Likewise.
27852
27853 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
27854 * term/i386/pc/vga.c: Likewise.
27855 * video/readers/jpeg.c: Likewise.
27856 * video/readers/png.c: Likewise.
27857 * video/readers/tga.c: Likewise.
27858
27859 * util/grub-fstest (cmd_loopback): Removed.
27860 (cmd_blocklist): Likewise.
27861 (cmd_ls): Likewise.
27862 (grub_register_command): Likewise.
27863 (grub_unregister_command): Likewise.
27864 (execute_command): Use grub_command_find to locate command and execute
27865 it.
27866
27867 * include/grub/efi/chainloader.h: Removed.
27868 * loader/efi/chainloader_normal.c: Likewise.
27869 * loader/i386/bsd_normal.c: Likewise.
27870 * loader/i386/pc/chainloader_normal.c: Likewise.
27871 * loader/i386/pc/multiboot_normal.c: Likewise.
27872 * loader/linux_normal.c: Likewise.
27873 * loader/multiboot_loader_normal.c: Likewise.
27874 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27875
27876 * gencmdlist.sh: Scan new registration command grub_register_extcmd
27877 and grub_register_command_p1.
27878
27879 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
27880 kern/command.c, lib/arg.c and commands/extcmd.c.
27881 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
27882 (minicmd_mod_SOURCES): New variable.
27883 (minicmd_mod_CFLAGS): Likewise.
27884 (minicmd_mod_LDFLAGS): Likewise.
27885 (extcmd_mod_SOURCES): Likewise.
27886 (extcmd_mod_CFLAGS): Likewise.
27887 (extcmd_mod_LDFLAGS): Likewise.
27888 (boot_mod_SOURCES): Removed.
27889 (boot_mod_CFLAGS): Likewise.
27890 (boot_mod_LDFLAGS): Likewise.
27891
27892 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
27893 kern/corecmd.c.
27894 (kernel_img_HEADERS): Add command.h.
27895 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
27896 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
27897 and lib/arg.c.
27898 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
27899 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
27900 remove the corresponding normal mode command.
27901 (normal_mod_SOURCES): Remove normal/arg.c.
27902 * conf/i386-coreboot.rmk: Likewise.
27903 * conf/i386-efi.rmk: Likewise.
27904 * conf/i386-ieee1275.rmk: Likewise.
27905 * conf/powerpc-ieee1275.rmk: Likewise.
27906 * conf/x86_64-efi.rmk: Likewise.
27907
27908 * include/grub/arg.h: Move from here ...
27909 * include/grub/lib/arg.h: ... to here.
27910
27911 * normal/arg.c: Move from here ...
27912 * lib/arg.c: ... to here.
27913
27914 * commands/extcmd.c: New file.
27915 * commands/minicmd.c: Likewise.
27916 * include/grub/command.h: Likewise.
27917 * include/grub/extcmd.h: Likewise.
27918 * kern/command.c: Likewise.
27919 * kern/corecmd.c: Likewise.
27920
27921 * kern/list.c (grub_list_iterate): Return int instead of void.
27922 (grub_list_insert): New function.
27923 (grub_prio_list_insert): Likewise.
27924
27925 * kern/rescue.c (grub_rescue_command): Removed.
27926 (grub_rescue_command_list): Likewise.
27927 (grub_rescue_register_command): Likewise.
27928 (grub_rescue_unregister_command): Likewise.
27929 (grub_rescue_cmd_boot): Move to minicmd.c
27930 (grub_rescue_cmd_help): Likewise.
27931 (grub_rescue_cmd_info): Likewise.
27932 (grub_rescue_cmd_boot): Likewise.
27933 (grub_rescue_cmd_testload): Likewise.
27934 (grub_rescue_cmd_dump): Likewise.
27935 (grub_rescue_cmd_rmmod): Likewise.
27936 (grub_rescue_cmd_lsmod): Likewise.
27937 (grub_rescue_cmd_exit): Likewise.
27938 (grub_rescue_print_devices): Moved to corecmd.c.
27939 (grub_rescue_print_files): Likewise.
27940 (grub_rescue_cmd_ls): Likewise.
27941 (grub_rescue_cmd_insmod): Likewise.
27942 (grub_rescue_cmd_set): Likewise.
27943 (grub_rescue_cmd_unset): Likewise.
27944 (attempt_normal_mode): Use grub_command_find to get normal module.
27945 (grub_enter_rescue_mode): Use grub_register_core_commands to register
27946 commands, remove grub_rescue_register_command calls.
27947
27948 * normal/command.c (grub_register_command): Removed.
27949 (grub_unregister_command): Likewise.
27950 (grub_command_find): Likewise.
27951 (grub_iterate_commands): Likewise.
27952 (rescue_command): Likewise.
27953 (export_command): Moved to corecmd.c.
27954 (set_command): Removed.
27955 (unset_command): Likewise.
27956 (insmod_command): Likewise.
27957 (rmmod_command): Likewise.
27958 (lsmod_command): Likewise.
27959 (grub_command_init): Likewise.
27960
27961 * normal/completion.c (iterate_command): Use cmd->prio to check for
27962 active command.
27963 (complete_arguments): Use grub_extcmd_t structure to find options.
27964 (grub_normal_do_completion): Change function grub_iterate_commands to
27965 grub_command_iterate.
27966
27967 * normal/execute.c (grub_script_execute_cmd): No need to parse
27968 argument here.
27969
27970 * normal/main.c (grub_dyncmd_dispatcher): New function.
27971 (read_command_list): Register unload commands as dyncmd.
27972 (grub_cmd_normal): Use new command interface, register rescue,
27973 unregister normal at entry, register normal, unregister rescue at exit.
27974
27975 * include/grub/list.h (grub_list_test_t): New type.
27976 (grub_list_iterate): Return int instead of void.
27977 (grub_list_insert): New function.
27978 (GRUB_AS_NAMED_LIST_P): New macro.
27979 (GRUB_AS_PRIO_LIST): Likewise.
27980 (GRUB_AS_PRIO_LIST_P): Likewise.
27981 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
27982 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
27983 (grub_prio_list): New structure.
27984 (grub_prio_list_insert): New function.
27985 (grub_prio_list_remove): New inline function.
27986
27987 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
27988 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
27989 (GRUB_COMMAND_FLAG_MENU): Likewise.
27990 (GRUB_COMMAND_FLAG_BOTH): Likewise.
27991 (GRUB_COMMAND_FLAG_TITLE): Likewise.
27992 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
27993 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
27994 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
27995 (grub_command): Likewise.
27996 (grub_register_command): Likewise.
27997 (grub_command_find): Likewise.
27998 (grub_iterate_commands): Likewise.
27999 (grub_command_init): Likewise.
28000 (grub_arg_parse): Likewise.
28001 (grub_arg_show_help): Likewise.
28002
28003 * include/grub/rescue.h (grub_rescue_register_command): Removed.
28004 (grub_rescue_unregister_command): Likewise.
28005
28006 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
28007 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
28008 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
28009
28010 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
28011 grub_rescue_cmd_initrd.
28012 * include/grub/i386/loader.h: Likewise.
28013 * include/grub/x86_64/loader.h: Likewise.
28014
28015 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
28016
28017 2009-03-21 Bean <bean123ch@gmail.com>
28018
28019 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
28020 instead of stat in mingw environment.
28021
28022 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
28023
28024 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
28025
28026 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
28027 AC_CONFIG_LINKS.
28028
28029 2009-03-21 Bean <bean123ch@gmail.com>
28030
28031 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
28032 out of range error.
28033
28034 2009-03-18 Michel Dänzer <michel@daenzer.net>
28035
28036 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
28037 checking inode flags for EXT4_EXTENTS_FLAG.
28038
28039 2009-03-18 Robert Millan <rmh@aybabtu.com>
28040
28041 * loader/i386/linux.c: Include `<grub/video.h>' and
28042 `<grub/i386/pc/vbe.h>'..
28043 (grub_linux_setup_video): New function. Loosely based on the EFI one.
28044 (grub_linux32_boot): Attempt to configure video settings with
28045 grub_linux_setup_video().
28046 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
28047 to avoid grub_console_fini() which would step out of graphical mode
28048 unconditionally.
28049
28050 2009-03-14 Robert Millan <rmh@aybabtu.com>
28051
28052 Fix build on powerpc.
28053 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
28054
28055 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
28056
28057 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
28058 background image command.
28059
28060 2009-03-12 Colin D Bennett <colin@gibibit.com>
28061
28062 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
28063 (grub_gfxterm_putchar): Extract pairs of identical calls to
28064 draw_cursor out of conditional blocks.
28065
28066 2009-03-11 Pavel Roskin <proski@gnu.org>
28067
28068 * fs/hfs.c (grub_hfs_strncasecmp): New function.
28069 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
28070
28071 2009-03-11 Robert Millan <rmh@aybabtu.com>
28072
28073 * loader/i386/multiboot_elfxx.c
28074 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
28075
28076 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
28077
28078 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
28079 `kern/handler.c'.
28080
28081 2009-03-11 Robert Millan <rmh@aybabtu.com>
28082
28083 * loader/i386/multiboot.c (code_size): New variable.
28084 (grub_multiboot): Define offsets by adding to `code_size' rather
28085 than subtracting from `grub_multiboot_payload_size'. Provide
28086 4-byte alignment to MBI and others by increasing
28087 `boot_loader_name_length' appropriately.
28088
28089 * loader/i386/multiboot_elfxx.c
28090 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
28091
28092 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
28093
28094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
28095 `fs/ext2.c'.
28096
28097 2009-03-08 Robert Millan <rmh@aybabtu.com>
28098
28099 Make loader/i386/linux.c usable on i386-pc again.
28100
28101 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
28102 memory to heap.
28103 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
28104 `#error' stanza.
28105
28106 2009-03-07 Bean <bean123ch@gmail.com>
28107
28108 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
28109 allocation.
28110
28111 2009-03-06 Robert Millan <rmh@aybabtu.com>
28112
28113 Fix display issue on terminals with screen size other than 80x25
28114 (e.g. gfxterm with resolution higher than 640x480).
28115
28116 * normal/main.c (grub_normal_init_page): Display title text in a
28117 position relative to the center of the terminal instead of relying
28118 on a hardcoded offset.
28119
28120 2009-03-04 Robert Millan <rmh@aybabtu.com>
28121
28122 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
28123 installed.
28124
28125 * Makefile.in (host_kernel): New variable.
28126 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
28127 scripts instead of just the windows one.
28128 * configure.ac: Initialize and AC_SUBST `host_kernel'.
28129
28130 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28131
28132 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
28133 `kern/handler.c'.
28134 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28135 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28136 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28138 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28139 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28140
28141 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28142
28143 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
28144 or if there's no space for the disk label and print the partition number on a
28145 invalid magic.
28146
28147 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28148
28149 * util/misc.c: Include <time.h>.
28150 (grub_millisleep): New function.
28151
28152 2009-03-04 Bean <bean123ch@gmail.com>
28153
28154 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
28155 another option -mno-red-zone.
28156
28157 * commands/handler.c: Change module description.
28158
28159 * kern/handler.c: Add missing space at the end of description line.
28160
28161 * kern/list.c: Likewise.
28162
28163 2009-03-03 Robert Millan <rmh@aybabtu.com>
28164
28165 Move more components to the relocation area, and fix mbi pointer
28166 handling to use the destination rather than the origin (thanks to
28167 Vladimir Serbinenko for spotting).
28168
28169 * loader/i386/multiboot.c (mbi_dest): New variable.
28170 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
28171 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
28172 relocation area.
28173
28174 2009-03-01 Bean <bean123ch@gmail.com>
28175
28176 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
28177 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
28178 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
28179 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
28180
28181 * loader/i386/efi/linux.c (acpi_guid): New variable.
28182 (acpi_guid): Likewise.
28183 (EBDA_SEG_ADDR): New constant.
28184 (LOW_MEM_ADDR): Likewise.
28185 (FAKE_EBDA_SEG): Likewise.
28186 (fake_bios_data): New function.
28187 (grub_linux_boot): Call fake_bios_data.
28188
28189 2009-03-01 Bean <bean123ch@gmail.com>
28190
28191 * commands/terminal.c: Removed.
28192
28193 * commands/handler.c: New file.
28194
28195 * include/grub/list.h: Likewise.
28196
28197 * include/grub/handler.h: Likewise.
28198
28199 * kern/list.c: Likewise.
28200
28201 * kern/handler.c: Likewise.
28202
28203 * kern/term.h: Include header file <grub/handler.h>.
28204 (grub_term_input): Move next field to the beginning.
28205 (grub_term_output): Likewise.
28206 (grub_term_input_class): New variable.
28207 (grub_term_output_class): Likewise.
28208 (grub_term_register_input): Changed to inline function.
28209 (grub_term_register_output): Likewise.
28210 (grub_term_unregister_input): Likewise.
28211 (grub_term_unregister_output): Likewise.
28212 (grub_term_set_current_input): Likewise.
28213 (grub_term_set_current_output): Likewise.
28214 (grub_term_get_current_input): Likewise.
28215 (grub_term_get_current_output): Likewise.
28216 (grub_term_iterate_input): Removed.
28217 (grub_term_iterate_output): Likewise.
28218
28219 * kern/term.c (grub_term_list_input): Removed.
28220 (grub_term_list_output): Likewise.
28221 (grub_term_input_class): New variable.
28222 (grub_term_output_class): Likewise.
28223 (grub_cur_term_input): Change variable as macro.
28224 (grub_cur_term_output): Likewise.
28225 (grub_term_register_input): Removed.
28226 (grub_term_register_output): Likewise.
28227 (grub_term_unregister_input): Likewise.
28228 (grub_term_unregister_output): Likewise.
28229 (grub_term_set_current_input): Likewise.
28230 (grub_term_set_current_output): Likewise.
28231 (grub_term_iterate_input): Likewise.
28232 (grub_term_iterate_output): Likewise.
28233 (grub_term_get_current_input): Likewise.
28234 (grub_term_get_current_output): Likewise.
28235
28236 * util/grub-editenv.c: Include header file <grub/handler.h>.
28237 (grub_term_get_current_input): Removed.
28238 (grub_term_get_current_output): Likewise.
28239 (grub_term_input_class): New variable.
28240 (grub_term_output_class): Likewise.
28241
28242 * util/grub-fstest.c (grub_term_get_current_input): Removed.
28243 (grub_term_get_current_output): Likewise.
28244 (grub_term_input_class): New variable.
28245 (grub_term_output_class): Likewise.
28246
28247 * util/grub-probe.c (grub_term_get_current_input): Removed.
28248 (grub_term_get_current_output): Likewise.
28249 (grub_term_input_class): New variable.
28250 (grub_term_output_class): Likewise.
28251
28252 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
28253 (grub_term_get_current_output): Likewise.
28254 (grub_term_input_class): New variable.
28255 (grub_term_output_class): Likewise.
28256
28257 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
28258 (terminal_mod_SOURCES): Likewise.
28259 (terminal_mod_CFLAGS): Likewise.
28260 (terminal_mod_LDFLAGS): Likewise.
28261
28262 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
28263 handler.c.
28264 (kernel_img_SOURCES): Add list.c and handler.c.
28265 (kernel_img_HEADERS): Add list.h and handler.h.
28266
28267 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28268 handler.c.
28269 (kernel_mod_SOURCES): Add list.c and handler.c.
28270 (kernel_mod_HEADERS): Add list.h and handler.h.
28271
28272 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
28273 handler.c.
28274 (kernel_elf_SOURCES): Add list.c and handler.c.
28275 (kernel_elf_HEADERS): Add list.h and handler.h.
28276
28277 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28278 handler.c.
28279 (kernel_elf_SOURCES): Add list.c and handler.c.
28280 (kernel_elf_HEADERS): Add list.h and handler.h.
28281
28282 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28283 handler.c.
28284 (kernel_mod_SOURCES): Add list.c and handler.c.
28285 (kernel_mod_HEADERS): Add list.h and handler.h.
28286
28287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28288 handler.c.
28289 (kernel_elf_SOURCES): Add list.c and handler.c.
28290 (kernel_elf_HEADERS): Add list.h and handler.h.
28291
28292 2009-02-27 Robert Millan <rmh@aybabtu.com>
28293
28294 Factorize elf32 / elf64 code in Multiboot loader. This will
28295 prevent it from getting out of sync again.
28296
28297 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
28298 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
28299 grub_multiboot_load_elf64): Move from here ...
28300 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
28301 grub_multiboot_load_elf): ... to here (new file).
28302
28303 2009-02-27 Robert Millan <rmh@aybabtu.com>
28304
28305 * util/grub.d/10_linux.in: Rename "single-user mode" to
28306 "recovery mode".
28307
28308 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
28309
28310 Don't leak in SCSI code.
28311 * disk/scsi.c (grub_scsi_close): free `scsi'.
28312
28313 2009-02-27 Robert Millan <rmh@aybabtu.com>
28314
28315 * loader/i386/pc/multiboot.c: Move from here ...
28316 * loader/i386/multiboot.c: ... to here. Update all users.
28317
28318 2009-02-27 Robert Millan <rmh@aybabtu.com>
28319
28320 Patch from Alexandre Bique <bique.alexandre@gmail.com>
28321 * util/i386/pc/grub-setup.c (setup): Fix directory path.
28322
28323 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
28324
28325 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
28326 b-tree.
28327
28328 2009-02-27 Robert Millan <rmh@aybabtu.com>
28329
28330 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
28331 `0x' qualifier as 0 when base is specified as parameter).
28332
28333 2009-02-24 Bean <bean123ch@gmail.com>
28334
28335 * configure.ac: Check for -mcmodel=large in x86_64 target.
28336
28337 * include/grub/efi/api.h (efi_call_10): New macro.
28338 (efi_wrap_10): New function.
28339
28340 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
28341 (GRUB_PE32_REL_BASED_HIGH): Likewise.
28342 (GRUB_PE32_REL_BASED_LOW): Likewise.
28343 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
28344 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
28345 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
28346 (GRUB_PE32_REL_BASED_SECTION): Likewise.
28347 (GRUB_PE32_REL_BASED_REL): Likewise.
28348 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
28349 (GRUB_PE32_REL_BASED_DIR64): Likewise.
28350 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
28351
28352 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
28353 issue.
28354
28355 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
28356 (efi_wrap_10): New function.
28357
28358 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
28359
28360 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
28361 MB/MBP model (NV chipset).
28362 (devdata_devs): Add devpath_5 to the list.
28363
28364 * load/i386/efi/linux.c (video_base): Remove variable.
28365 (RGB_MASK): New macro.
28366 (RGB_MAGIC): Likewise.
28367 (LINE_MIN): Likewise.
28368 (LINE_MAX): Likewise.
28369 (FBTEST_STEP): Likewise.
28370 (FBTEST_COUNT): Likewise.
28371 (fb_list): New variable.
28372 (grub_find_video_card): Remove function.
28373 (find_framebuf): New function.
28374 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
28375 line length.
28376
28377 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
28378 problem for x86_64.
28379
28380 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
28381
28382 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
28383
28384 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
28385 coding tool name.
28386
28387 2009-02-22 Robert Millan <rmh@aybabtu.com>
28388
28389 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
28390 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
28391 in our relocation, instead of using it directly from heap. Also
28392 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
28393
28394 2009-02-21 Robert Millan <rmh@aybabtu.com>
28395
28396 Implement USB keyboard support (based on patch by Marco Gerards)
28397
28398 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
28399 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
28400 (usb_keyboard_mod_LDFLAGS): New variables.
28401
28402 * term/usb_keyboard.c: New file.
28403
28404 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28405
28406 Corrected wrong declaration
28407
28408 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
28409
28410 2009-02-14 Christian Franke <franke@computer.org>
28411
28412 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
28413 (grub_lspci_iter): Print class code and programming interface byte.
28414
28415 2009-02-14 Christian Franke <franke@computer.org>
28416
28417 * gendistlist.sh: Ignore `.svn' directories.
28418
28419 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
28420
28421 * fs/fat.c: Add 2009 to Copyright line.
28422
28423 2009-02-14 Christian Franke <franke@computer.org>
28424
28425 * commands/hdparm.c: New file. Provides `hdparm' command
28426 which sends ATA commands via grub_disk_ata_pass_through ().
28427
28428 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
28429
28430 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
28431 and <grub/cpu/io.h> to include/grub/ata.h.
28432 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
28433 (GRUB_CDROM_SECTOR_SIZE): Remove.
28434 (GRUB_ATA_*): Move to include/grub/ata.h.
28435 (GRUB_ATAPI_*): Likewise.
28436 (enum grub_ata_commands): Likewise.
28437 (enum grub_ata_timeout_milliseconds): Likewise.
28438 (struct grub_ata_device): Likewise.
28439 (grub_ata_regset): Likewise.
28440 (grub_ata_regget): Likewise.
28441 (grub_ata_regset2): Likewise.
28442 (grub_ata_regget2): Likewise.
28443 (grub_ata_check_ready): Likewise.
28444 (grub_ata_wait_not_busy): Remove static, exported in
28445 include/grub/ata.h.
28446 (grub_ata_wait_drq): Likewise.
28447 (grub_ata_pio_read): Likewise.
28448
28449 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
28450 function for hdparm.mod.
28451
28452 * include/grub/ata.h: New file, contains declarations from
28453 disk/ata.c.
28454 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
28455
28456 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
28457 (grub_disk_ata_pass_through): New exported variable.
28458
28459 * kern/disk.c (grub_disk_ata_pass_through): New variable.
28460
28461 2009-02-13 Colin D Bennett <colin@gibibit.com>
28462
28463 Support multiple fallback entries, and provide an API to support
28464 executing default+fallback menu entries. Renamed the `terminal' menu
28465 viewer to `text'.
28466
28467 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
28468 variable declaration.
28469 (grub_menu_execute_callback): New structure declaration.
28470 (grub_menu_execute_callback_t): New typedef.
28471 (grub_menu_execute_with_fallback): New function declaration.
28472 (grub_menu_get_entry): Likewise.
28473 (grub_menu_get_timeout): Likewise.
28474 (grub_menu_set_timeout): Likewise.
28475
28476 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
28477
28478 * normal/menu.c (grub_wait_after_message): Moved to
28479 `normal/menu_text.c'.
28480 (draw_border): Likewise.
28481 (print_message): Likewise.
28482 (print_entry): Likewise.
28483 (print_entries): Likewise.
28484 (grub_menu_init_page): Likewise.
28485 (get_entry_number): Likewise.
28486 (print_timeout): Likewise.
28487 (run_menu): Likewise.
28488 (grub_menu_execute_entry): Likewise.
28489 (show_text_menu): Likewise.
28490 (get_and_remove_first_entry_number): New function.
28491 (grub_menu_execute_with_fallback): Likewise.
28492 (get_entry): Renamed to ...
28493 (grub_menu_get_entry): .. this and made it global.
28494 (get_timeout): Renamed to ...
28495 (grub_menu_get_timeout): ... this and made it global.
28496 (set_timeout): Renamed to ...
28497 (grub_menu_set_timeout): ... this and made it global.
28498 (grub_normal_terminal_menu_viewer): Renamed to ...
28499 (grub_normal_text_menu_viewer): ... this.
28500
28501 * normal/menu_text.c: New file. Extracted text-menu-specific code
28502 from normal/menu.c.
28503
28504 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
28505 (normal_mod_SOURCES): Likewise.
28506
28507 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28508 (normal_mod_SOURCES): Likewise.
28509
28510 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28511 (normal_mod_SOURCES): Likewise.
28512
28513 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
28514 (normal_mod_SOURCES): Likewise.
28515
28516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28517 (normal_mod_SOURCES): Likewise.
28518
28519 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28520 (normal_mod_SOURCES): Likewise.
28521
28522 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28523 (normal_mod_SOURCES): Likewise.
28524
28525 2009-02-11 Robert Millan <rmh@aybabtu.com>
28526
28527 * util/grub.d/00_header.in: Update old reference to `font' command.
28528
28529 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
28530
28531 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
28532
28533 Based on patch from Javier Martín.
28534
28535 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28536
28537 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
28538 to avoid false positives with FAT.
28539 (grub_fstest_SOURCES): Likewise.
28540 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28541 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28542 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28543 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28544 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28545 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28546
28547 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28548
28549 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
28550 bpb.version_specific.fat12_or_fat16.fstype and
28551 bpb.version_specific.fat32.fstype.
28552
28553 2009-02-08 Robert Millan <rmh@aybabtu.com>
28554
28555 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
28556
28557 2009-02-08 Robert Millan <rmh@aybabtu.com>
28558
28559 * Makefile.in (host_os, host_cpu): New variables.
28560 (target_os): Remove. Update all users.
28561
28562 2009-02-08 Marco Gerards <marco@gnu.org>
28563
28564 * Makefile.in (enable_grub_emu_usb): New variable.
28565 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
28566 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
28567 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
28568 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
28569 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
28570 `usbtest.mod' and `usbms.mod'.
28571 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
28572 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
28573 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
28574 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
28575 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
28576 variables.
28577
28578 * disk/usbms.c: New file.
28579
28580 * include/grub/usb.h: Likewise.
28581
28582 * include/grub/usbtrans.h: Likewise.
28583
28584 * include/grub/usbdesc.h: Likewise.
28585
28586 * bus/usb/usbtrans.c: Likewise.
28587
28588 * bus/usb/ohci.c: Likewise.
28589
28590 * bus/usb/uhci.c: Likewise.
28591
28592 * bus/usb/usbhub.c: Likewise.
28593
28594 * bus/usb/usb.c: Likewise.
28595
28596 * commands/usbtest.c: Likewise.
28597
28598 * util/usb.c: Likewise.
28599
28600 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
28601
28602 * configure.ac: Test for libusb presence.
28603
28604 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
28605
28606 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
28607
28608 * kern/mm.c: Add more comments.
28609
28610 2009-02-08 Robert Millan <rmh@aybabtu.com>
28611
28612 Patch from Javier Martín.
28613 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
28614 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
28615
28616 2009-02-08 Robert Millan <rmh@aybabtu.com>
28617
28618 * fs/cpio.c: Split tar functionality to ...
28619 * fs/tar.c: ... here (new file). Update all users.
28620
28621 2009-02-07 Robert Millan <rmh@aybabtu.com>
28622
28623 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
28624 backward-incompatible features.
28625
28626 Based on patch from Javier Martín, with some adjustments.
28627
28628 2009-02-07 Michael Scherer <misc@mandriva.org>
28629
28630 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
28631
28632 2009-02-07 Robert Millan <rmh@aybabtu.com>
28633
28634 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
28635 position of `disk/lvm.c' to ensure grub_init_all() always picks it
28636 after the RAID stuff.
28637
28638 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
28639
28640 Fixes problem when running vbetest command as reported by
28641 Vladimir Serbinenko <phcoder@gmail.com>.
28642
28643 * (grub_vbe_set_video_mode): Fixed problem with text modes.
28644
28645 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
28646
28647 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
28648 /dev/md/NpN style mdraid devices.
28649
28650 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28651
28652 * util/unifont2pff.rb: Remove.
28653
28654 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28655
28656 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
28657 `#'.
28658
28659 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28660
28661 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
28662 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28663 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28664 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28666 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28667 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28668
28669 2009-02-02 Christian Franke <franke@computer.org>
28670
28671 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
28672
28673 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
28674
28675 * INSTALL: Note that we now require at least autoconf 2.59 and
28676 that LZO is optional.
28677
28678 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28679
28680 Base on patch on bug #24154 created by Tomas Tintera
28681 <trosos@seznam.cz>.
28682
28683 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
28684
28685 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28686
28687 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
28688 <bero@arklinux.org>.
28689
28690 * normal/parser.y (script_init): Add missing semicolon.
28691
28692 2009-01-31 Colin D Bennett <colin@gibibit.com>
28693
28694 * normal/main.c: Add include to grub/menu_viewer.h.
28695 (free_menu_entry_classes): Added.
28696 (grub_normal_menu_addentry): Added class property handling.
28697 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
28698 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
28699
28700 * normal/menu_viewer.c: New file.
28701
28702 * normal/menu.c (run_menu_entry): Renamed to ...
28703 (grub_menu_execute_entry): ... this and made it as global.
28704 (grub_menu_run): Renamed to ...
28705 (show_text_menu): ... this and made it local.
28706 (show_text_menu): Adapt to new function names.
28707 (grub_normal_terminal_menu_viewer): New global variable.
28708
28709 * include/grub/menu.h: New file.
28710
28711 * include/grub/menu_viewer.h: New file.
28712
28713 * include/grub/normal.h: Added include to grub/menu.h.
28714 (grub_menu_entry): Moved to include/grub/menu.h.
28715 (grub_menu_entry_t): Likewise.
28716 (grub_menu): Likewise.
28717 (grub_menu_t): Likewise.
28718 (grub_normal_terminal_menu_viewer): Added.
28719 (grub_menu_execute_entry): Likewise.
28720 (grub_menu_run): Removed.
28721
28722 * DISTLIST: Added include/grub/menu.h.
28723 Added include/grub/menu_viewer.h.
28724 Added normal/menu_viewer.c.
28725
28726 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
28727
28728 * normal/execute.c (grub_script_execute_menuentry): Changed to use
28729 arglist for menutitle arguments.
28730
28731 * normal/main.c (grub_normal_menu_addentry): Likewise.
28732
28733 * normal/parser.y (menuentry): Likewise.
28734
28735 * normal/script.c (grub_script_create_cmdmenu): Likewise.
28736
28737 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
28738 (grub_script_create_cmdmenu): Likewise.
28739
28740 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
28741
28742 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
28743 changes.
28744
28745 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
28746
28747 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
28748
28749 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
28750
28751 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28752
28753 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28754
28755 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28756
28757 2009-01-30 Christian Franke <franke@computer.org>
28758
28759 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
28760 in option help text.
28761
28762 2009-01-27 Pavel Roskin <proski@gnu.org>
28763
28764 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
28765
28766 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28767
28768 * commands/lsmmap.c: Add include to grub/machine/memory.h.
28769
28770 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
28771
28772 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
28773 unregister function.
28774
28775 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28776
28777 * disk/scsi.c (grub_scsi_read): Fix sign problem.
28778
28779 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
28780
28781 * util/grub-mkfont.c (usage): Fix typo.
28782
28783 * util/elf/grub-mkimage.c (load_modules): Fix warning.
28784
28785 2009-01-26 Daniel Mierswa <impulze@impulze.org>
28786
28787 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
28788
28789 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
28790
28791 * kern/misc.c (grub_strcasecmp): New function.
28792 (grub_strcasecmp): Use grub_size_t instead of int for length.
28793 Fix return value.
28794 * include/grub/misc.h: Update function prototypes.
28795
28796 2009-01-26 Robert Millan <rmh@aybabtu.com>
28797
28798 * configure.ac: Fix cross-compilation check.
28799
28800 2009-01-22 Christian Franke <franke@computer.org>
28801
28802 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
28803 (precision) digit string. Allow `.format2' without `format1' (width).
28804 Limit input chars for `%s' output to `format2' if specified. This is
28805 compatible with standard printf ().
28806
28807 2009-01-22 Christian Franke <franke@computer.org>
28808
28809 * disk/ata.c (grub_ata_wait_status): Replace by ...
28810 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
28811 other status bits may be invalid while BSY is asserted.
28812 (grub_ata_check_ready): New function.
28813 (grub_ata_cmd): Removed.
28814 (grub_ata_wait_drq): New function.
28815 (grub_ata_strncpy): Remove inline.
28816 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
28817 and error check now done by grub_ata_wait_drq ().
28818 (grub_ata_pio_write): Likewise.
28819 (grub_atapi_identify): Set DEV before check for !BSY. Use
28820 grub_ata_wait_drq () to wait for data.
28821 (grub_ata_device_initialize): Add status register check to
28822 detect missing SATA slave devices. Add debug messages.
28823 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
28824 (grub_atapi_packet): Set DEV before check for !BSY. Replace
28825 transfer loop by grub_ata_pio_write ().
28826 (grub_ata_identify): Set DEV before check for !BSY. Use
28827 grub_ata_wait_drq () to wait for data.
28828 (grub_ata_setaddress): Set DEV before check for !BSY.
28829 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
28830 read/write in one loop. Fix invalid command on write. Fix incomplete
28831 command on (size % batch) == 0. Add missing error check after write of
28832 last block. Add debug messages.
28833 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
28834
28835 2009-01-19 Christian Franke <franke@computer.org>
28836
28837 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
28838 (GRUB_ATAPI_IREASON_*): Likewise.
28839 (grub_ata_pio_write): Fix timeout error return.
28840 (grub_atapi_identify): Add grub_ata_wait () after cmd.
28841 (grub_atapi_wait_drq): New function.
28842 (grub_atapi_packet): New parameter `size'.
28843 Use grub_atapi_wait_drq () and direct write instead of
28844 grub_ata_pio_write ().
28845 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
28846 reads the number of bytes requested by the device for each DRQ
28847 assertion.
28848 (grub_atapi_write): Remove old implementation, return not
28849 implemented instead.
28850
28851 2009-01-19 Christian Franke <franke@computer.org>
28852
28853 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
28854 of 512 to calculate data size.
28855 (grub_scsi_read12): Likewise.
28856 (grub_scsi_write10): Likewise.
28857 (grub_scsi_write12): Likewise.
28858 (grub_scsi_read): Adjust size according to blocksize.
28859 Add checks for invalid blocksize and unaligned transfer.
28860
28861 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
28862
28863 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
28864
28865 * term/gfxterm.c (write_char): Fix background rendering for wide
28866 width glyphs.
28867
28868 2009-01-19 Robert Millan <rmh@aybabtu.com>
28869
28870 * config.guess: Update to latest version from config git.
28871 * config.sub: Likewise.
28872
28873 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
28874
28875 * Makefile.in: Change font compilation to use new grub-mkfont instead
28876 of java version.
28877
28878 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
28879 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
28880 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28881 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28882 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
28883 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
28884 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
28885 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
28886 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
28887
28888 2009-01-16 Christian Franke <franke@computer.org>
28889
28890 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
28891 (enum grub_ata_timeout_milliseconds): New enum.
28892 (grub_ata_wait_status): Add parameter milliseconds.
28893 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
28894 recovery from timed-out commands.
28895 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
28896 return grub_errno instead of REG_ERROR.
28897 (grub_ata_pio_write): Add parameter milliseconds.
28898 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
28899 Pass milliseconds to grub_ata_wait_status () and
28900 grub_ata_pio_read ().
28901 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
28902 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
28903 grub_ata_wait_status (). Fix IDENTIFY timeout check.
28904 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
28905 It is not suitable for device detection, because DEV bit is ignored,
28906 the command may run too long, and not all devices set the signature
28907 properly.
28908 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
28909 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
28910 Fix device selection, DEV bit must be set first to address the registers
28911 of the correct device.
28912 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
28913 grub_ata_pio_read/write ().
28914 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
28915 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
28916
28917 2009-01-13 Carles Pina i Estany <carles@pina.cat>
28918
28919 * util/grub-editenv.c (main): Use fseeko(), not fseek().
28920
28921 2009-01-13 Bean <bean123ch@gmail.com>
28922
28923 * util/grub-mkfont.c (write_font): forget to remove some debug code.
28924
28925 2009-01-13 Bean <bean123ch@gmail.com>
28926
28927 * Makefile.in: (enable_grub_mkfont): New variable.
28928 (freetype_cflags): Likewise.
28929 (freetype_libs): Likewise.
28930
28931 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
28932 (grub_mkfont_SOURCES): New variable.
28933 (grub_mkfont_CFLAGS): Likewise.
28934 (grub_mkfont_LDFLAGS): Likewise.
28935
28936 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
28937 library if `--enable-grub-mkfont' is requested.
28938 (enable_grub_mkfont): New variable.
28939 (freetype_cflags): Likewise.
28940 (freetype_libs): Likewise.
28941
28942 * util/grub-mkfont.c: New file.
28943
28944 2009-01-12 Christian Franke <franke@computer.org>
28945
28946 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
28947 mode check. Fix setting of compat_use[].
28948
28949 2009-01-10 Robert Millan <rmh@aybabtu.com>
28950
28951 Update a few copyright years which we forgot to do in 2008 (only for
28952 files whose changes made in 2008 were copyright-significant)
28953
28954 * Makefile.in: Add 2008 to Copyright line.
28955 * disk/ieee1275/ofdisk.c: Likewise.
28956 * disk/efi/efidisk.c: Likewise.
28957 * kern/dl.c: Likewise.
28958 * kern/sparc64/ieee1275/init.c: Likewise.
28959 * kern/mm.c: Likewise.
28960 * kern/efi/mm.c: Likewise.
28961 * boot/i386/pc/boot.S: Likewise.
28962 * genfslist.sh: Likewise.
28963 * fs/iso9660.c: Likewise.
28964 * fs/hfs.c: Likewise.
28965 * fs/jfs.c: Likewise.
28966 * fs/minix.c: Likewise.
28967 * fs/ufs.c: Likewise.
28968 * gensymlist.sh.in: Likewise.
28969 * genkernsyms.sh.in: Likewise.
28970 * include/grub/misc.h: Likewise.
28971 * include/grub/types.h: Likewise.
28972 * include/grub/symbol.h: Likewise.
28973 * include/grub/elf.h: Likewise.
28974 * include/grub/kernel.h: Likewise.
28975 * include/grub/disk.h: Likewise.
28976 * include/grub/dl.h: Likewise.
28977 * include/grub/i386/linux.h: Likewise.
28978 * include/grub/i386/pc/biosdisk.h: Likewise.
28979 * include/grub/efi/api.h: Likewise.
28980 * include/grub/efi/pe32.h: Likewise.
28981 * include/grub/util/misc.h: Likewise.
28982 * normal/execute.c: Likewise.
28983 * normal/arg.c: Likewise.
28984 * normal/completion.c: Likewise.
28985 * normal/lexer.c: Likewise.
28986 * normal/parser.y: Likewise.
28987 * normal/misc.c: Likewise.
28988 * commands/i386/pc/vbeinfo.c: Likewise.
28989 * commands/hexdump.c: Likewise.
28990 * commands/terminal.c: Likewise.
28991 * commands/ls.c: Likewise.
28992 * commands/help.c: Likewise.
28993 * partmap/pc.c: Likewise.
28994 * loader/efi/chainloader.c: Likewise.
28995 * loader/multiboot_loader.c: Likewise.
28996 * loader/i386/pc/multiboot2.c: Likewise.
28997 * term/efi/console.c: Likewise.
28998 * term/i386/pc/serial.c: Likewise.
28999 * util/lvm.c: Likewise.
29000 * util/console.c: Likewise.
29001 * util/i386/efi/grub-mkimage.c: Likewise.
29002 * util/raid.c: Likewise.
29003
29004 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
29005
29006 * commands/videotest.c: Removed include to grub/machine/memory.h.
29007
29008 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
29009 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
29010 (video_mod_SOURCES): Removed.
29011 (video_mod_CFLAGS): Likewise.
29012 (video_mod_LDFLAGS): Likewise.
29013 (gfxterm_mod_SOURCES): Likewise.
29014 (gfxterm_mod_CFLAGS): Likewise.
29015 (gfxterm_mod_LDFLAGS): Likewise.
29016 (videotest_mod_SOURCES): Likewise.
29017 (videotest_mod_CFLAGS): Likewise.
29018 (videotest_mod_LDFLAGS): Likewise.
29019 (bitmap_mod_SOURCES): Likewise.
29020 (bitmap_mod_CFLAGS): Likewise.
29021 (bitmap_mod_LDFLAGS): Likewise.
29022 (tga_mod_SOURCES): Likewise.
29023 (tga_mod_CFLAGS): Likewise.
29024 (tga_mod_LDFLAGS): Likewise.
29025 (jpeg_mod_SOURCES): Likewise.
29026 (jpeg_mod_CFLAGS): Likewise.
29027 (jpeg_mod_LDFLAGS): Likewise.
29028 (png_mod_SOURCES): Likewise.
29029 (png_mod_CFLAGS): Likewise.
29030 (png_mod_LDFLAGS): Likewise.
29031
29032 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
29033 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
29034 (video_mod_SOURCES): Added.
29035 (video_mod_CFLAGS): Likewise.
29036 (video_mod_LDFLAGS): Likewise.
29037 (videotest_mod_SOURCES): Likewise.
29038 (videotest_mod_CFLAGS): Likewise.
29039 (videotest_mod_LDFLAGS): Likewise.
29040 (bitmap_mod_SOURCES): Likewise.
29041 (bitmap_mod_CFLAGS): Likewise.
29042 (bitmap_mod_LDFLAGS): Likewise.
29043 (tga_mod_SOURCES): Likewise.
29044 (tga_mod_CFLAGS): Likewise.
29045 (tga_mod_LDFLAGS): Likewise.
29046 (jpeg_mod_SOURCES): Likewise.
29047 (jpeg_mod_CFLAGS): Likewise.
29048 (jpeg_mod_LDFLAGS): Likewise.
29049 (png_mod_SOURCES): Likewise.
29050 (png_mod_CFLAGS): Likewise.
29051 (png_mod_LDFLAGS): Likewise.
29052 (gfxterm_mod_SOURCES): Likewise.
29053 (gfxterm_mod_CFLAGS): Likewise.
29054 (gfxterm_mod_LDFLAGS): Likewise.
29055
29056 * term/gfxterm.c: Removed include to grub/machine/memory.h,
29057 grub/machine/console.h.
29058
29059 2009-01-04 Jerone Young <jerone@gmail.com>
29060
29061 Make on screen instructions clearer
29062
29063 Based on patch created by Jidanni <jidanni@jidanni.org>
29064
29065 * normal/menu.c: print clearer instructions on the screen
29066
29067 2009-01-02 Colin D Bennett <colin@gibibit.com>
29068
29069 New font engine.
29070
29071 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
29072 build system and fixed gfxterm.c to work with different sized fonts.
29073
29074 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
29075
29076 * configure: Re-generated.
29077
29078 * DISTLIST: Removed font/manager.c.
29079 Added font/font.c.
29080 Added font/font_cmd.c.
29081
29082 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
29083 compilation.
29084
29085 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
29086
29087 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
29088
29089 * kern/term.c: Changed users of grub_utf8_to_ucs4.
29090
29091 * normal/menu.c: Likewise.
29092
29093 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
29094 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
29095
29096 * include/grub/font.h: Replaced with new file.
29097
29098 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
29099 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
29100 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
29101 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
29102 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
29103 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
29104 fg_red, fg_green, fg_blue, fg_alpha.
29105 (grub_video_adapter): Removed blit_glyph.
29106 (grub_video_blit_glyph): Removed.
29107
29108 * font/manager.c: Removed file.
29109
29110 * font/font.c: New file.
29111
29112 * font/font_cmd.c: Likewise.
29113
29114 * video/video.c (grub_video_blit_glyph): Removed.
29115
29116 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
29117 (grub_video_vbe_map_rgba): Likewise.
29118 (grub_video_vbe_unmap_color_int): Likewise.
29119 (grub_video_vbe_blit_glyph): Removed.
29120 (grub_video_vbe_adapter): Removed blit_glyph.
29121
29122 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
29123 (get_pixel): Likewise.
29124 (set_pixel): Likewise.
29125
29126 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
29127
29128 * term/gfxterm.c: Adapted to new font engine.
29129
29130 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
29131
29132 * term/i386/pc/vga.c: Likewise.
29133
29134 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
29135
29136 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
29137
29138 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29139
29140 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29141
29142 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
29143
29144 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
29145
29146 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
29147
29148 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
29149
29150 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
29151
29152 * util/grub.d/00_header.in: Changed to use new loadfont command.
29153
29154 * util/grub-mkconfig_lib.in: Changed font extension.
29155
29156 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
29157
29158 * util/getroot.c (grub_util_get_grub_dev): Add support for
29159 /dev/md/dNNpNN style partitionable mdraid devices.
29160
29161 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
29162
29163 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
29164 at a time limit of the PXE TFTP API correctly.
29165 (grub_pxefs_close): Likewise.
29166
29167 2008-11-29 Robert Millan <rmh@aybabtu.com>
29168
29169 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
29170 grub_ata_device_initialize() calls.
29171
29172 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
29173
29174 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
29175 iteration failed.
29176 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
29177
29178 2008-11-28 Robert Millan <rmh@aybabtu.com>
29179
29180 Fix build on powerpc-ieee1275. Based on patch created by
29181 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
29182 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
29183 `kern/ieee1275/mmap.c'.
29184 * include/grub/powerpc/ieee1275/memory.h: New file.
29185
29186 Provide grub-install on coreboot.
29187 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
29188 (grub_install_SOURCES): New variable.
29189 * util/i386/pc/grub-install.in: Add a few condition checks to make it
29190 usable on coreboot.
29191
29192 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
29193
29194 * util/grub-fstest.c (grub_term_get_current_input): Change return type
29195 to `grub_term_input_t'.
29196 (grub_term_get_current_output): Change return type to
29197 `grub_term_output_t'.
29198
29199 2008-11-22 Robert Millan <rmh@aybabtu.com>
29200
29201 Fix breakage on coreboot due to declaration mismatch.
29202 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
29203 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
29204 grub_vga_text_cls().
29205
29206 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
29207 comments. Avoid copying one more byte than necessary (just in case).
29208
29209 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
29210 to 0x200000 (avoids trouble with some OFW implementations, and matches
29211 with the one in Yaboot).
29212 Reported by Manoel Abranches
29213
29214 2008-11-20 Robert Millan <rmh@aybabtu.com>
29215
29216 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
29217 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
29218
29219 * util/grub-mkconfig_lib.in (grub_warn): New function.
29220 (convert_system_path_to_grub_path): Use grub_warn() when issuing
29221 warnings, to obtain consistent formatting.
29222 * util/grub.d/00_header.in: Likewise.
29223 * util/update-grub_lib.in: Likewise.
29224
29225 * loader/i386/linux.c (allocate_pages): Fix a warning.
29226 Move comment text to `#error' stanza.
29227
29228 Harmonize ieee1275's grub_available_iterate() with the generic
29229 grub_machine_mmap_iterate() interface (fixes a recently-introduced
29230 build problem on i386-ieee1275):
29231 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
29232 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
29233 parameter `type'. Update all users of this function.
29234 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29235 `kern/ieee1275/mmap.c'.
29236 * kern/ieee1275/init.c
29237 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
29238 with ...
29239 (grub_machine_mmap_iterate): ... this.
29240 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
29241 return type to `grub_err_t'. Update all implementations of this
29242 function prototype.
29243 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
29244 Likewise.
29245
29246 Add `lsmmap' command (lists firmware-provided memory map):
29247 * commands/lsmmap.c: New file.
29248 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
29249 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
29250 variables.
29251 * conf/powerpc-ieee1275.rmk: Likewise.
29252 * conf/i386-coreboot.rmk: Likewise.
29253 * conf/i386-ieee1275.rmk: Likewise.
29254
29255 2008-11-19 Robert Millan <rmh@aybabtu.com>
29256
29257 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
29258 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
29259 constraints to initrd allocation (based on code from
29260 loader/i386/pc/linux.c). Without them, initrd was allocated too high
29261 for Linux to find it.
29262
29263 2008-11-14 Robert Millan <rmh@aybabtu.com>
29264
29265 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
29266 order to cope with duplicate slashes.
29267
29268 2008-11-14 Robert Millan <rmh@aybabtu.com>
29269
29270 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
29271 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
29272 don't want to mess with lower memory, because it is used in the Linux
29273 loader.
29274
29275 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
29276 an appropriate place in lower memory, between 0x10000 and 0x90000,
29277 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
29278 is in our heap (probably as a result of it being corrupted during
29279 decompression). Add #error instance with comment to explain why this
29280 loader isn't currently usable on PC/BIOS.
29281
29282 2008-11-14 Robert Millan <rmh@aybabtu.com>
29283
29284 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
29285 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
29286
29287 2008-11-12 Robert Millan <rmh@aybabtu.com>
29288
29289 Make loader/i386/linux.c buildable on i386-pc (although disabled).
29290
29291 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
29292 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
29293 from here ...
29294 * include/grub/i386/pc/memory.h: ... to here.
29295
29296 2008-11-12 Robert Millan <rmh@aybabtu.com>
29297
29298 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
29299 split).
29300
29301 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
29302 (grub_console_cur_color, grub_console_real_putchar)
29303 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29304 (grub_console_setcolorstate, grub_console_setcolor)
29305 (grub_console_getcolor): Move from here ...
29306 * include/grub/i386/vga_common.h: ... to here (new file).
29307
29308 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
29309 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
29310 `<grub/i386/io.h>'.
29311 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
29312 `<grub/i386/vga_common.h>'.
29313
29314 2008-11-12 Robert Millan <rmh@aybabtu.com>
29315
29316 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
29317 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
29318 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
29319 variables.
29320 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29321 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
29322
29323 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
29324 grub_console_init() with call to grub_vga_text_init().
29325 (grub_machine_fini): Replace call to
29326 grub_console_fini() with call to grub_vga_text_fini() and
29327 grub_at_keyboard_fini().
29328
29329 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
29330 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29331 (grub_console_setcolorstate, grub_console_setcolor)
29332 (grub_console_getcolor): New function prototypes.
29333
29334 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
29335 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
29336 (grub_vga_text_setcursor): Static-ize.
29337 (grub_vga_text_term): New structure.
29338 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
29339
29340 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
29341 (grub_console_cur_color, grub_console_standard_color)
29342 (grub_console_normal_color, grub_console_highlight_color)
29343 (map_char, grub_console_putchar, grub_console_getcharwidth)
29344 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
29345 (grub_console_getcolor): Move from here ...
29346 * term/i386/vga_common.c: ... to here (same function names).
29347
29348 2008-11-12 Robert Millan <rmh@aybabtu.com>
29349
29350 Use newly-added Multiboot support in coreboot.
29351
29352 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29353 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
29354
29355 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
29356 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
29357 (codestart): Store the MBI in `startup_multiboot_info' when we're
29358 being loaded using Multiboot.
29359
29360 * kern/i386/coreboot/init.c (grub_machine_init): Move
29361 grub_at_keyboard_init() call to beginning of function (useful for
29362 debugging). Call grub_machine_mmap_init() before attempting to use
29363 grub_machine_mmap_iterate().
29364 (grub_lower_mem, grub_upper_mem): Move from here ...
29365 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
29366 here (new file).
29367
29368 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
29369 function prototype.
29370
29371 2008-11-12 Robert Millan <rmh@aybabtu.com>
29372
29373 Fix a regression introduced by the at_keyboard.mod split. Because
29374 some terminals are default on some platforms and non-default on
29375 others, the first terminal being registered determines which is
29376 going to be default.
29377
29378 * kern/term.c (grub_term_register_input): If this is the first
29379 terminal being registered, set it as the current one.
29380 (grub_term_register_output): Likewise.
29381
29382 * term/efi/console.c (grub_console_init): Do not call
29383 grub_term_set_current_output() or grub_term_set_current_input().
29384 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
29385 * term/i386/pc/console.c (grub_console_init): Likewise.
29386 (grub_console_fini): Do not call grub_term_set_current_input()
29387 (but leave grub_term_set_current_output() to restore text mode).
29388
29389 2008-11-10 Robert Millan <rmh@aybabtu.com>
29390
29391 * util/grub.d/00_header.in: Add backward compatibility check for
29392 versions of terminal.mod that don't understand `terminal_input' or
29393 `terminal_output'.
29394
29395 2008-11-09 Robert Millan <rmh@aybabtu.com>
29396
29397 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
29398 `terminal_input' / `terminal_output', not `terminal'.
29399
29400 2008-11-08 Robert Millan <rmh@aybabtu.com>
29401
29402 * Makefile.in (include_DATA): Fix srcdir=. assumption.
29403 (DISTCLEANFILES): Add `build_env.mk'.
29404
29405 2008-11-08 Robert Millan <rmh@aybabtu.com>
29406
29407 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
29408 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29409 members. Update all users.
29410 * util/console.c (grub_ncurses_term): Split in ...
29411 (grub_ncurses_term_input): ... this, and ...
29412 (grub_ncurses_term_output): ... this. Update all users.
29413 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
29414
29415 2008-11-08 Robert Millan <rmh@aybabtu.com>
29416
29417 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
29418 (PKGDATA): Add $(pkgdata_SRCDIR).
29419 (pkglib_BUILDDIR): New variable.
29420 (pkgdata_SRCDIR): New variable.
29421 (build_env.mk): New target.
29422 (include_DATA): New variable.
29423 (install-local): Install $(include_DATA) files in $(includedir).
29424
29425 2008-11-07 Pavel Roskin <proski@gnu.org>
29426
29427 * gendistlist.sh: Use C locale for sorting to ensure consistent
29428 output on all systems.
29429
29430 * util/grub.d/00_header.in: Remove incorrect space before
29431 "serial".
29432
29433 2008-11-07 Robert Millan <rmh@aybabtu.com>
29434
29435 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
29436 per specification.
29437 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
29438 * loader/multiboot_loader.c (find_multi_boot2_header): New function
29439 (based on find_multi_boot1_header).
29440 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
29441 using find_multi_boot2_header(), and abort if neither Multiboot or
29442 Multiboot headers were found.
29443
29444 2008-11-07 Robert Millan <rmh@aybabtu.com>
29445
29446 Modularize at_keyboard.mod:
29447
29448 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
29449 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
29450 (at_keyboard_mod_LDFLAGS): New variables.
29451
29452 Actual terminal split:
29453
29454 * include/grub/term.h (struct grub_term): Split in ...
29455 (struct grub_term_input): ... this, and ...
29456 (struct grub_term_output): ... this. Update all users.
29457 (grub_term_set_current): Split in ...
29458 (grub_term_set_current_input): ... this, and ...
29459 (grub_term_set_current_output): ... this.
29460 (grub_term_get_current): Split in ...
29461 (grub_term_get_current_input): ... this, and ...
29462 (grub_term_get_current_output): ... this.
29463 (grub_term_register): Split in ...
29464 (grub_term_register_input): ... this, and ...
29465 (grub_term_register_output): ... this.
29466 (grub_term_unregister): Split in ...
29467 (grub_term_unregister_input): ... this, and ...
29468 (grub_term_unregister_output): ... this.
29469 (grub_term_iterate): Split in ...
29470 (grub_term_iterate_input): ... this, and ...
29471 (grub_term_iterate_output): ... this.
29472
29473 * kern/term.c (grub_term_list): Split in ...
29474 (grub_term_list_input): ... this, and ...
29475 (grub_term_list_output): ... this. Update all users.
29476 (grub_cur_term): Split in ...
29477 (grub_cur_term_input): ... this, and ...
29478 (grub_cur_term_output): ... this. Update all users.
29479 (grub_term_set_current): Split in ...
29480 (grub_term_set_current_input): ... this, and ...
29481 (grub_term_set_current_output): ... this.
29482 (grub_term_get_current): Split in ...
29483 (grub_term_get_current_input): ... this, and ...
29484 (grub_term_get_current_output): ... this.
29485 (grub_term_register): Split in ...
29486 (grub_term_register_input): ... this, and ...
29487 (grub_term_register_output): ... this.
29488 (grub_term_unregister): Split in ...
29489 (grub_term_unregister_input): ... this, and ...
29490 (grub_term_unregister_output): ... this.
29491 (grub_term_iterate): Split in ...
29492 (grub_term_iterate_input): ... this, and ...
29493 (grub_term_iterate_output): ... this.
29494
29495 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
29496 a check for input and one for output (and only attempt to get keys
29497 from user when input works).
29498
29499 * util/grub-probe.c (grub_term_get_current): Split in ...
29500 (grub_term_get_current_input): ... this, and ...
29501 (grub_term_get_current_output): ... this.
29502 * util/grub-fstest.c: Likewise.
29503 * util/i386/pc/grub-setup.c: Likewise.
29504 * util/grub-editenv.c: Likewise.
29505
29506 Portability adjustments:
29507
29508 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
29509 `term/i386/pc/at_keyboard.c'.
29510 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
29511 grub_keyboard_controller_init() (now handled by terminal .init).
29512 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
29513 grub_at_keyboard_init().
29514 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
29515 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
29516 at_keyboard.mod via input terminal interface).
29517 * include/grub/i386/coreboot/console.h: Convert into a stub for
29518 `<grub/i386/pc/console.h>'.
29519
29520 Migrate full terminals to new API:
29521
29522 * term/efi/console.c (grub_console_term): Split into ...
29523 (grub_console_term_input): ... this, and ...
29524 (grub_console_term_output): ... this. Update all users.
29525 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
29526 (grub_ofconsole_init): Split into ...
29527 (grub_ofconsole_init_input): ... this, and ...
29528 (grub_ofconsole_init_output): ... this.
29529 (grub_ofconsole_term): Split into ...
29530 (grub_ofconsole_term_input): ... this, and ...
29531 (grub_ofconsole_term_output): ... this. Update all users.
29532 * term/i386/pc/serial.c (grub_serial_term): Split into ...
29533 (grub_serial_term_input): ... this, and ...
29534 (grub_serial_term_output): ... this. Update all users.
29535 * term/i386/pc/console.c (grub_console_term): Split into ...
29536 (grub_console_term_input): ... this, and ...
29537 (grub_console_term_output): ... this. Update all users.
29538 (grub_console_term_input): Only enable it on PC/BIOS platform.
29539 (grub_console_init): Remove grub_keyboard_controller_init() call.
29540
29541 Migrate input terminals to new API:
29542
29543 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
29544 `i386' and `i386/pc' to enable build on x86_64 (this driver is
29545 i386-specific anyway).
29546 (grub_console_checkkey): Rename to ...
29547 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
29548 users.
29549 (grub_keyboard_controller_orig): New variable.
29550 (grub_console_getkey): Rename to ...
29551 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
29552 users.
29553 (grub_keyboard_controller_init): Static-ize. Save original
29554 controller value so that it can be restored ...
29555 (grub_keyboard_controller_fini): ... here (new function).
29556 (grub_at_keyboard_term): New structure.
29557 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
29558 functions.
29559
29560 Migrate output terminals to new API:
29561
29562 * term/i386/pc/vga.c (grub_vga_term): Change type to
29563 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29564 members. Update all users.
29565 * term/gfxterm.c (grub_video_term): Change type to
29566 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29567 members. Update all users.
29568 * include/grub/i386/pc/console.h (grub_console_checkkey)
29569 (grub_console_getkey): Do not export (no longer needed by gfxterm,
29570 etc).
29571
29572 Migrate `terminal' command and userland tools to new API:
29573
29574 * commands/terminal.c (grub_cmd_terminal): Split into ...
29575 (grub_cmd_terminal_input): ... this, and ...
29576 (grub_cmd_terminal_output): ... this.
29577 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
29578 `terminal_input' and `terminal_output'.
29579 * util/grub.d/00_header.in: Adjust `terminal' calls to new
29580 `terminal_input' / `terminal_output' API.
29581 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
29582 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
29583 provided ${GRUB_TERMINAL}, convert it).
29584
29585 2008-11-04 Robert Millan <rmh@aybabtu.com>
29586
29587 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
29588 for FreeBSD.
29589 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
29590
29591 2008-11-03 Bean <bean123ch@gmail.com>
29592
29593 * kern/elf.c (grub_elf32_load): Revert to previous code.
29594 (grub_elf64_load): Likewise.
29595
29596 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
29597
29598 2008-11-01 Robert Millan <rmh@aybabtu.com>
29599
29600 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
29601 (TARGET_CPPFLAGS): Likewise.
29602 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
29603
29604 2008-11-01 Carles Pina i Estany <carles@pina.cat>
29605
29606 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
29607
29608 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29609
29610 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
29611 addition of objects until the code is not going to be able to fail.
29612
29613 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29614
29615 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
29616 (add a missing NULL check, and correct them by moving the pointer
29617 operations after the actual check).
29618
29619 2008-10-29 Robert Millan <rmh@aybabtu.com>
29620
29621 * util/i386/pc/grub-install.in: Handle empty string as output from
29622 make_system_path_relative_to_its_root().
29623
29624 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
29625
29626 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
29627 circular metadata worst case scenario. If the metadata is circular
29628 then copy the wrap in place.
29629 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
29630 project lib/format_text/layout.h
29631 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
29632
29633 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29634
29635 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
29636
29637 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29638
29639 * util/update-grub_lib.in: Mention filename in warning message.
29640
29641 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29642
29643 * NEWS: Update for rename of update-grub to grub-mkconfig.
29644
29645 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29646
29647 * util/update-grub_lib.in: Copy to ...
29648 * util/grub-mkconfig_lib.in: ... this. Update all users.
29649 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
29650 * util/update-grub.in: Rename to ...
29651 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
29652 option. Add `--output' option to allow users to specify the generated
29653 configuration file. Default to stdout.
29654 (update_grub_dir): Rename to ...
29655 (grub_mkconfig_dir): ... this.
29656 (grub_cfg): Default to an empty string.
29657 * conf/common.rmk (update-grub): Rename to ...
29658 (grub-mkconfig): ... this.
29659 (update-grub_lib): Copy to ...
29660 (grub-mkconfig_lib): ... this.
29661 (update-grub_SCRIPTS): Copy to ...
29662 (grub-mkconfig_SCRIPTS): ... this. Update all users.
29663 (update-grub_DATA): Rename to ...
29664 (grub-mkconfig_DATA): ... this.
29665
29666 2008-09-28 Robert Millan <rmh@aybabtu.com>
29667
29668 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
29669 to `modified'. Add the real `created' field.
29670 (grub_iso9660_uuid): Use `modified' rather than `created' for
29671 constructing the UUID.
29672
29673 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
29674
29675 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
29676 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
29677
29678 2008-09-28 Bean <bean123ch@gmail.com>
29679
29680 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
29681 Thanks to Christian Franke for finding this bug.
29682
29683 2008-09-25 Robert Millan <rmh@aybabtu.com>
29684
29685 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
29686 instances of grub_util_get_disk_name() (see previous commit).
29687
29688 2008-09-25 Robert Millan <rmh@aybabtu.com>
29689
29690 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
29691 `util/i386/get_disk_name.c'.
29692 * conf/i386-efi.rmk: Likewise.
29693 * conf/x86_64-efi.rmk: Likewise.
29694 * conf/i386-coreboot.rmk: Likewise.
29695 * conf/i386-ieee1275.rmk: Likewise.
29696 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
29697 `util/ieee1275/get_disk_name.c'.
29698 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
29699 * util/ieee1275/get_disk_name.c: Remove file.
29700 * util/i386/get_disk_name.c: Remove file.
29701 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
29702 "hd%d" for device.map entries, rather than using
29703 grub_util_get_disk_name().
29704
29705 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29706
29707 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
29708 warning.
29709 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
29710
29711 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29712
29713 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
29714 Changed to 0x5100.
29715 (GRUB_TERM_PPAGE): Changed to 0x4900.
29716
29717 2008-09-24 Robert Millan <rmh@aybabtu.com>
29718
29719 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
29720 macros (they were i386-pc specific).
29721 * include/grub/sparc64/ieee1275/console.h: Likewise.
29722 * include/grub/efi/console.h: Likewise.
29723
29724 2008-09-22 Bean <bean123ch@gmail.com>
29725
29726 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
29727 resident and in attribute list.
29728
29729 * include/grub/ntfs.h (BMP_LEN): Removed.
29730
29731 2008-09-22 Bean <bean123ch@gmail.com>
29732
29733 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
29734 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
29735
29736 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
29737 error occurs, as grub_disk_open will call grub_disk_close, which will
29738 call p->close (scsi).
29739
29740 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29741
29742 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
29743 (AC_PREREQ): Bumped to 2.59.
29744 (AC_TRY_COMPILE): Replace obsolete macro with ...
29745 (AC_COMPILE_IFELSE): ... this.
29746 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
29747 (AC_LINK_IFELSE): ... this.
29748
29749 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29750
29751 * autogen.sh: Add a call to `gendistlist.sh'.
29752
29753 2008-09-19 Christian Franke <franke@computer.org>
29754
29755 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
29756 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
29757 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
29758 Export __enable_execute_stack() to modules.
29759 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
29760 New function.
29761
29762 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29763
29764 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
29765 Sort the list.
29766
29767 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29768
29769 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
29770 #include <grub/util/hostdisk.h>.
29771
29772 2008-09-08 Robert Millan <rmh@aybabtu.com>
29773
29774 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
29775 segments when their filesz is zero (grub_file_read() interprets
29776 zero-size as "read until EOF", which results in memory corruption).
29777 Use `lowest_segment' rather than 0 for calculating the current
29778 segment load address.
29779
29780 2008-09-08 Robert Millan <rmh@aybabtu.com>
29781
29782 * util/hostdisk.c (open_device): Replace a grub_util_info() call
29783 with grub_dprintf("hostdisk", ...), as it was so verbose that it
29784 clobbered useful information.
29785
29786 2008-09-08 Robert Millan <rmh@aybabtu.com>
29787
29788 * include/grub/util/biosdisk.h: Move to ...
29789 * include/grub/util/hostdisk.h: ... here. Update all users.
29790 * util/biosdisk.c: Move to ...
29791 * util/hostdisk.c: ... here. Update all users.
29792
29793 2008-09-07 Robert Millan <rmh@aybabtu.com>
29794
29795 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
29796 variables.
29797 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
29798 and length can be stored directly in the `mbi->mmap_addr' and
29799 `mbi->mmap_length' struct fields.
29800
29801 2008-09-07 Robert Millan <rmh@aybabtu.com>
29802
29803 * conf/i386.rmk: New file. Provides declaration for building
29804 `cpuid.mod'.
29805 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
29806 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
29807 variables.
29808 Include `conf/i386.mk'.
29809 * conf/i386-efi.rmk: Likewise.
29810 * conf/x86_64-efi.rmk: Likewise.
29811 * conf/i386-coreboot.rmk: Likewise.
29812 * conf/i386-ieee1275.rmk: Likewise.
29813
29814 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
29815
29816 Based on patch created by Colin D Bennett <colin@gibibit.com>.
29817 Adds optimization support for BGR based modes.
29818
29819 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
29820 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29821 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29822 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29823 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29824 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29825 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29826 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29827 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29828 (grub_video_i386_vbeblit_index_index): Likewise.
29829 (grub_video_i386_vbeblit_replace_directN): Added.
29830 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29831 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29832 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29833 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29834 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29835 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29836 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29837 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29838 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29839 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29840 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29841 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29842 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29843
29844 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
29845 (grub_video_i386_vbefill_R8G8B8): Likewise.
29846 (grub_video_i386_vbefill_index): Likewise.
29847 (grub_video_i386_vbefill_direct32): Added.
29848 (grub_video_i386_vbefill_direct24): Likewise.
29849 (grub_video_i386_vbefill_direct16): Likewise.
29850 (grub_video_i386_vbefill_direct8): Likewise.
29851
29852 * include/grub/video.h (grub_video_blit_format): Removed
29853 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
29854 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
29855 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
29856 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
29857 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
29858
29859 * video/video.c (grub_video_get_blit_format): Updated to use new
29860 blit formats. Added handling for 16 bit color modes.
29861
29862 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
29863 fillers.
29864 (common_blitter): Updated to use new blitters.
29865
29866 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
29867 Removed.
29868 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29869 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29870 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29871 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29872 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29873 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29874 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29875 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29876 (grub_video_i386_vbeblit_index_index): Likewise.
29877 (grub_video_i386_vbeblit_replace_directN): Added.
29878 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29879 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29880 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29881 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29882 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29883 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29884 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29885 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29886 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29887 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29888 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29889 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29890 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29891
29892 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
29893 (grub_video_i386_vbefill_R8G8B8): Likewise.
29894 (grub_video_i386_vbefill_index): Likewise.
29895 (grub_video_i386_vbefill_direct32): Added.
29896 (grub_video_i386_vbefill_direct24): Likewise.
29897 (grub_video_i386_vbefill_direct16): Likewise.
29898 (grub_video_i386_vbefill_direct8): Likewise.
29899
29900 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
29901 types.
29902
29903 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
29904 types.
29905
29906 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
29907 blitter types.
29908
29909 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
29910 types.
29911
29912 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
29913
29914 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
29915 RAID level 1.
29916
29917 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
29918
29919 * fs/iso9660.c (grub_iso9660_date): New structure.
29920 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
29921 (grub_iso9660_uuid): New function.
29922
29923 2008-09-05 Bean <bean123ch@gmail.com>
29924
29925 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
29926
29927 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
29928 insensitive bit for names in Win32 and Win32 & DOS namespace.
29929
29930 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
29931
29932 * include/grub/types.h (LONG_MAX): Likewise.
29933
29934 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
29935
29936 * util/getroot.c: Include <config.h>.
29937 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
29938 add support for /dev/md/N devices and handle LVM double dash escaping.
29939
29940 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
29941
29942 * config.guess: Update to latest version from config git.
29943 * config.sub: Likewise.
29944
29945 2008-09-03 Robert Millan <rmh@aybabtu.com>
29946
29947 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
29948 `disk->total_sectors'.
29949
29950 2008-09-01 Colin D Bennett <colin@gibibit.com>
29951
29952 * include/grub/normal.h: Fixed incorrect comment for
29953 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
29954
29955 2008-09-01 Colin D Bennett <colin@gibibit.com>
29956
29957 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
29958 values with defines.
29959
29960 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
29961 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
29962 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
29963 (GRUB_VBE_MODEATTR_COLOR): Likewise.
29964 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
29965 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
29966 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
29967 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
29968 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
29969 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
29970 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
29971 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
29972 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
29973 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
29974 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
29975 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
29976 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
29977 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
29978 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
29979
29980 2008-08-31 Robert Millan <rmh@aybabtu.com>
29981
29982 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
29983 declaration.
29984 (grub_multiboot): Fix a few warnings.
29985
29986 2008-08-31 Robert Millan <rmh@aybabtu.com>
29987
29988 * loader/i386/pc/multiboot.c: Update comment not to say that
29989 boot_device support is unimplemented.
29990
29991 2008-08-31 Robert Millan <rmh@aybabtu.com>
29992
29993 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
29994 or memory map support are unimplemented.
29995
29996 2008-08-31 Colin D Bennett <colin@gibibit.com>
29997
29998 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
29999
30000 2008-08-31 Colin D Bennett <colin@gibibit.com>
30001
30002 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
30003 total video memory in 'vbeinfo' output; show color format details for
30004 each video mode.
30005
30006 2008-08-30 Pavel Roskin <proski@gnu.org>
30007
30008 * util/genmoddep.c: Remove for real this time.
30009 * DISTLIST: Remove util/genmoddep.c.
30010
30011 2008-08-30 Robert Millan <rmh@aybabtu.com>
30012
30013 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
30014 as required by Multiboot spec (it was already 4-byte aligned, but
30015 only by chance).
30016
30017 2008-08-29 Pavel Roskin <proski@gnu.org>
30018
30019 * kern/powerpc/ieee1275/crt0.S: Rename to ...
30020 * kern/powerpc/ieee1275/startup.S: ... this.
30021 * conf/powerpc-ieee1275.rmk: Adjust for the above.
30022 * DISTLIST: Likewise.
30023
30024 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
30025 grub/cpu/kernel.h. Add start label for consistency with other
30026 platforms. Add grub_prefix immediately after start. Add jump
30027 to the code after grub_prefix.
30028 * include/grub/powerpc/kernel.h: Provide valid values for
30029 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
30030
30031 2008-08-29 Bean <bean123ch@gmail.com>
30032
30033 * configure.ac: Change host_os to cygwin for mingw.
30034 (asprintf): New check for function.
30035
30036 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
30037 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
30038
30039 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
30040 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
30041 sync, sleep and grub_util_get_disk_size for mingw.
30042
30043 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
30044 to get size in mingw.
30045 (open_device): Use flag O_BINARY if it's defined.
30046 (find_root_device): Add dummy code for mingw.
30047
30048 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
30049 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
30050 (get_scsi_disk_name): Return 0 for mingw.
30051
30052 * util/hostfs.c: #include <grub/util/misc.h>.
30053 (grub_hostfs_open): Use "rb" flag to open file, use
30054 grub_util_get_disk_size to get disk size for mingw.
30055
30056 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
30057 (asprintf): New function if HAVE_ASPRINTF is not set.
30058 (sync): New function for mingw.
30059 (sleep): Likewise.
30060 (grub_util_get_disk_size): Likewise.
30061
30062 2008-08-28 Pavel Roskin <proski@gnu.org>
30063
30064 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30065 kern/time.c.
30066
30067 2008-08-28 Robert Millan <rmh@aybabtu.com>
30068
30069 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
30070
30071 2008-08-28 Robert Millan <rmh@aybabtu.com>
30072
30073 Change find_grub_drive() syntax so it doesn't prevent it from
30074 detecting NULL names as errors.
30075
30076 * util/biosdisk.c (find_grub_drive): Move free slot search code
30077 from here ...
30078 (find_free_slot): ... to here.
30079 (read_device_map): Use find_free_slot() to search for free slots.
30080
30081 2008-08-27 Marco Gerards <marco@gnu.org>
30082
30083 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
30084 (scsi_mod_SOURCES): New variable.
30085 (scsi_mod_CFLAGS): Likewise
30086 (scsi_mod_LDFLAGS): Likewise.
30087
30088 * disk/scsi.c: New file.
30089
30090 * include/grub/scsi.h: Likewise.
30091
30092 * include/grub/scsicmd.h: Likewise.
30093
30094 * disk/ata.c: Include <grub/scsi.h>.
30095 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
30096 instead.
30097 (grub_ata_iterate): Skip ATAPI devices.
30098 (grub_ata_open): Only handle ATAPI devices.
30099 (struct grub_atapi_read): Removed.
30100 (grub_atapi_readsector): Likewise.
30101 (grub_ata_read): No longer handle ATAPI devices.
30102 (grub_ata_write): Likewise.
30103 (grub_atapi_iterate): New function.
30104 (grub_atapi_read): Likewise.
30105 (grub_atapi_write): Likewise.
30106 (grub_atapi_open): Likewise.
30107 (grub_atapi_close): Likewise.
30108 (grub_atapi_dev): New variable.
30109 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
30110 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
30111
30112 * include/grub/disk.h (enum grub_disk_dev_id): Add
30113 `GRUB_DISK_DEVICE_SCSI_ID'.
30114
30115 2008-08-26 Robert Millan <rmh@aybabtu.com>
30116
30117 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
30118 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
30119 descriptive.
30120
30121 2008-08-23 Bean <bean123ch@gmail.com>
30122
30123 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
30124 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30125 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
30126 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
30127 dm_nv.mod.
30128 (raid5rec_mod_SOURCES): New macro.
30129 (raid5rec_mod_CFLAGS): Likewise.
30130 (raid5rec_mod_LDFLAGS): Likewise.
30131 (raid6rec_mod_SOURCES): Likewise.
30132 (raid6rec_mod_CFLAGS): Likewise.
30133 (raid6rec_mod_LDFLAGS): Likewise.
30134 (mdraid_mod_SOURCES): Likewise.
30135 (mdraid_mod_CFLAGS): Likewise.
30136 (mdraid_mod_LDFLAGS): Likewise.
30137 (dm_nv_mod_SOURCES): Likewise.
30138 (dm_nv_mod_CFLAGS): Likewise.
30139 (dm_nv_mod_LDFLAGS): Likewise.
30140
30141 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
30142 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30143 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30144
30145 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
30146 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30147
30148 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30149
30150 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30151
30152 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30153
30154 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30155
30156 * disk/raid5_recover.c: New file.
30157
30158 * disk/raid6_recover.c: Likewise.
30159
30160 * disk/mdraid_linux.c: Likewise.
30161
30162 * disk/dmraid_nvidia.c: Likewise.
30163
30164 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
30165 ULONG_MAX.
30166
30167 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
30168 calculate the size of raid device.
30169 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
30170 different layout of raid5.
30171 (grub_raid_scan_device): Remove code specific to mdraid.
30172 (grub_raid_list): New variable.
30173 (free_array): New function.
30174 (grub_raid_register): Likewise.
30175 (grub_raid_unregister): Likewise.
30176 (grub_raid_rescan): Likewise.
30177 (GRUB_MOD_INIT): Don't iterate device here.
30178 (GRUB_MOD_FINI): Use free_array to release resource.
30179
30180 * include/grub/raid.h: Remove macro and structure specific to mdraid.
30181 (grub_raid5_recover_func_t): New function variable type.
30182 (grub_raid6_recover_func_t): Likewise.
30183 (grub_raid5_recover_func): New variable.
30184 (grub_raid6_recover_func): Likewise.
30185 (grub_raid_register): New function.
30186 (grub_raid_unregister): Likewise.
30187 (grub_raid_rescan): Likewise.
30188 (grub_raid_block_xor): Likewise.
30189
30190 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
30191 (CMD_CRC): New macro.
30192 (part): Removed.
30193 (read_file): Handle device as well as file.
30194 (cmd_crc): New function.
30195 (fstest): Handle multiple disks.
30196 (options): Remove part, raw and long, add root and diskcount.
30197 (usage): Add crc, remove -p, -r, -l, add -r and -c.
30198 (main): Find the first non option entry and ignore subsequent options,
30199 add handling for the new options, support multiple disks.
30200
30201 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
30202
30203 2008-08-23 Bean <bean123ch@gmail.com>
30204
30205 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
30206
30207 * genfslist.sh: Ignore kernel.mod.
30208
30209 * genpartmaplist.sh: Likewise.
30210
30211 2008-08-23 Robert Millan <rmh@aybabtu.com>
30212
30213 * util/getroot.c (find_root_device): Skip anything that starts with
30214 a dot, not just directories. This avoids things like /dev/.tmp.md0.
30215
30216 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
30217
30218 * util/update-grub.in (GRUB_GFXMODE): Export variable.
30219 * util/grub.d/00_header.in: Allow the administrator to change default
30220 gfxmode via ${GRUB_GFXMODE}.
30221
30222 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
30223
30224 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
30225
30226 2008-08-21 Robert Millan <rmh@aybabtu.com>
30227
30228 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
30229 loader.
30230 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
30231 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
30232
30233 2008-08-20 Carles Pina i Estany <carles@pina.cat>
30234
30235 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
30236 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
30237
30238 2008-08-19 Robert Millan <rmh@aybabtu.com>
30239
30240 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
30241 (struct grub_virtual_screen): Remove `cursor_color'.
30242 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
30243 initialization.
30244 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
30245
30246 2008-08-18 Robert Millan <rmh@aybabtu.com>
30247
30248 Unify (identical) linux_normal.c files.
30249 * loader/i386/efi/linux_normal.c: Move from here ...
30250 * loader/linux_normal.c: ... to here. Update all users.
30251 * loader/i386/pc/linux_normal.c: Delete. Update all users.
30252 * loader/i386/ieee1275/linux_normal.c: Likewise.
30253
30254 2008-08-18 Robert Millan <rmh@aybabtu.com>
30255
30256 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
30257 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
30258 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
30259 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
30260 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
30261 New macros.
30262 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
30263 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
30264 (GRUB_LINUX_CL_END_OFFSET): ... to here.
30265 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
30266 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
30267 (GRUB_EFI_CL_END_OFFSET): Rename to ...
30268 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
30269 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
30270 Initialize `params->video_cursor_x' and `params->video_cursor_y'
30271 portably using grub_getxy().
30272 Replace `-EFI' with `-bzImage' in boot message.
30273
30274 2008-08-17 Robert Millan <rmh@aybabtu.com>
30275
30276 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
30277
30278 2008-08-17 Robert Millan <rmh@aybabtu.com>
30279
30280 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
30281
30282 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
30283 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
30284 (grub_machine_mmap_iterate): New function declaration.
30285 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
30286 structure.
30287 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
30288 macros.
30289
30290 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
30291 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
30292 Move e820 parsing from here ...
30293 * kern/i386/pc/mmap.c: New file.
30294 (grub_machine_mmap_iterate): ... to here.
30295
30296 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
30297 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
30298 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
30299 (grub_available_iterate): Redeclare to return `void', and redeclare
30300 its hook to use grub_uint64_t as addr and size parameters, and rename
30301 to ...
30302 (grub_machine_mmap_iterate): ... this. Update all users.
30303
30304 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
30305 to make it more readable. Rename to ...
30306 (grub_machine_mmap_iterate): ... this.
30307
30308 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
30309 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
30310 (grub_multiboot): Allocate an extra region after the payload, and fill
30311 it with a Multiboot memory map. Adjust a.out loader to calculate size
30312 with the extra space.
30313 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
30314 with the extra space.
30315
30316 2008-08-17 Carles Pina i Estany <carles@pina.cat>
30317
30318 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
30319
30320 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
30321
30322 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
30323 mdate-sh to the list `find' searches for.
30324 * DISTLIST: Regenerated.
30325
30326 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
30327
30328 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
30329 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
30330 genmoddep.awk, gensymlist.sh.in.
30331 (DISTDIRS): Add bus, docs, hook, lib.
30332 * DISTLIST: Regenerated.
30333 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
30334
30335 2008-08-16 Robert Millan <rmh@aybabtu.com>
30336
30337 * disk/raid.c (grub_raid_init): Handle/report errors set by
30338 grub_device_iterate().
30339 * disk/lvm.c (grub_lvm_init): Likewise.
30340
30341 2008-08-15 Bean <bean123ch@gmail.com>
30342
30343 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30344 and datehook.mod.
30345 (datetime_mod_SOURCES): New macro.
30346 (datetime_mod_CFLAGS): Likewise.
30347 (datetime_mod_LDFLAGS): Likewise.
30348 (date_mod_SOURCES): Likewise.
30349 (date_mod_CFLAGS): Likewise.
30350 (date_mod_LDFLAGS): Likewise.
30351 (datehook_mod_SOURCES): Likewise.
30352 (datehook_mod_CFLAGS): Likewise.
30353 (datehook_mod_LDFLAGS): Likewise.
30354
30355 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30356 and datehook.mod.
30357 (datetime_mod_SOURCES): New macro.
30358 (datetime_mod_CFLAGS): Likewise.
30359 (datetime_mod_LDFLAGS): Likewise.
30360 (date_mod_SOURCES): Likewise.
30361 (date_mod_CFLAGS): Likewise.
30362 (date_mod_LDFLAGS): Likewise.
30363 (datehook_mod_SOURCES): Likewise.
30364 (datehook_mod_CFLAGS): Likewise.
30365 (datehook_mod_LDFLAGS): Likewise.
30366
30367 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30368 and datehook.mod.
30369 (datetime_mod_SOURCES): New macro.
30370 (datetime_mod_CFLAGS): Likewise.
30371 (datetime_mod_LDFLAGS): Likewise.
30372 (date_mod_SOURCES): Likewise.
30373 (date_mod_CFLAGS): Likewise.
30374 (date_mod_LDFLAGS): Likewise.
30375 (datehook_mod_SOURCES): Likewise.
30376 (datehook_mod_CFLAGS): Likewise.
30377 (datehook_mod_LDFLAGS): Likewise.
30378
30379 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30380 and datehook.mod.
30381 (datetime_mod_SOURCES): New macro.
30382 (datetime_mod_CFLAGS): Likewise.
30383 (datetime_mod_LDFLAGS): Likewise.
30384 (date_mod_SOURCES): Likewise.
30385 (date_mod_CFLAGS): Likewise.
30386 (date_mod_LDFLAGS): Likewise.
30387 (datehook_mod_SOURCES): Likewise.
30388 (datehook_mod_CFLAGS): Likewise.
30389 (datehook_mod_LDFLAGS): Likewise.
30390
30391 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30392 and datehook.mod.
30393 (datetime_mod_SOURCES): New macro.
30394 (datetime_mod_CFLAGS): Likewise.
30395 (datetime_mod_LDFLAGS): Likewise.
30396 (date_mod_SOURCES): Likewise.
30397 (date_mod_CFLAGS): Likewise.
30398 (date_mod_LDFLAGS): Likewise.
30399 (datehook_mod_SOURCES): Likewise.
30400 (datehook_mod_CFLAGS): Likewise.
30401 (datehook_mod_LDFLAGS): Likewise.
30402
30403 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
30404
30405 * commands/date.c: New file.
30406
30407 * hook/datehook.c: Likewise.
30408
30409 * include/grub/lib/datetime.h: Likewise.
30410
30411 * include/grub/i386/cmos.h: Likewise.
30412
30413 * lib/datetime.c: Likewise.
30414
30415 * lib/i386/datetime.c: Likewise.
30416
30417 * lib/efi/datetime.c: Likewise.
30418
30419 2008-08-14 Robert Millan <rmh@aybabtu.com>
30420
30421 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
30422 (grub_mkelfimage_SOURCES): New variable.
30423 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
30424
30425 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
30426 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
30427 * conf/powerpc-ieee1275.rmk: Likewise.
30428 * conf/i386-ieee1275.rmk: Likewise.
30429
30430 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
30431 * kern/i386/coreboot/init.c: Likewise.
30432
30433 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
30434 with `<grub/cpu/kernel.h>'.
30435 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
30436 to ...
30437 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
30438 * kern/i386/coreboot/startup.S: Likewise.
30439
30440 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
30441 (GRUB_MOD_GAP): Remove.
30442 * include/grub/powerpc/kernel.h: New file.
30443 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
30444 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30445 * include/grub/i386/kernel.h: New file.
30446 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
30447 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
30448 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30449
30450 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
30451 `grub-mkelfimage'.
30452 Use --directory when invoking grub_mkimage.
30453
30454 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
30455 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
30456 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
30457 and GRUB_KERNEL_CPU_PREFIX.
30458
30459 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
30460
30461 * include/grub/err.h (grub_err_printf): New function prototype.
30462 * util/misc.c (grub_err_printf): New function.
30463 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
30464 grub_printf.
30465 * kern/err.c (grub_print_error): Use grub_err_printf.
30466
30467 2008-08-13 Robert Millan <rmh@aybabtu.com>
30468
30469 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
30470
30471 2008-08-13 Robert Millan <rmh@aybabtu.com>
30472
30473 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
30474 boot entry.
30475
30476 2008-08-12 Robert Millan <rmh@aybabtu.com>
30477
30478 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
30479 of the relocation code from here ...
30480 (grub_multiboot): ... to here.
30481 (forward_relocator, backward_relocator): Move from here ...
30482 * kern/i386/loader.S (grub_multiboot_forward_relocator)
30483 (grub_multiboot_backward_relocator): ... to here.
30484 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
30485 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
30486 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
30487 (grub_multiboot_forward_relocator_end)
30488 (grub_multiboot_backward_relocator)
30489 (grub_multiboot_backward_relocator_end): New variables.
30490
30491 2008-08-12 Bean <bean123ch@gmail.com>
30492
30493 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
30494
30495 2008-08-11 Robert Millan <rmh@aybabtu.com>
30496
30497 * kern/i386/linuxbios/startup.S: Move from here ...
30498 * kern/i386/coreboot/startup.S: ... to here.
30499
30500 * kern/i386/linuxbios/init.c: Move from here ...
30501 * kern/i386/coreboot/init.c: ... to here.
30502
30503 * kern/i386/linuxbios/table.c: Move from here ...
30504 * kern/i386/coreboot/mmap.c: ... to here.
30505
30506 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
30507
30508 2008-08-11 Robert Millan <rmh@aybabtu.com>
30509
30510 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
30511 errors. Leave it to the upper layer to handle them.
30512
30513 2008-08-09 Christian Franke <franke@computer.org>
30514
30515 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
30516 * conf/common.rmk: Install `grub-pe2elf' only if requested.
30517 Install `grub.d/10_windows' only on Cygwin.
30518 * configure.ac: Add subst of `target_os'.
30519 Check `target_os' also before setting TARGET_OBJ2ELF.
30520 Add `--enable-grub-pe2elf'.
30521
30522 2008-08-08 Robert Millan <rmh@aybabtu.com>
30523
30524 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30525 (grub_last_time): Change type to grub_uint64_t.
30526 (grub_disk_open): Migrate code from to using grub_get_time_ms().
30527 (grub_disk_close): Likewise.
30528
30529 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30530 (run_menu): Migrate code from to using grub_get_time_ms().
30531
30532 * util/misc.c (grub_get_time_ms): New function.
30533
30534 2008-08-08 Marco Gerards <marco@gnu.org>
30535
30536 * disk/ata.c (grub_ata_regget): Change return type to
30537 `grub_uint8_t'.
30538 (grub_ata_regget2): Likewise.
30539 (grub_ata_wait_status): New function.
30540 (grub_ata_wait_busy): Removed function, updated all users to use
30541 `grub_ata_wait_status'.
30542 (grub_ata_wait_drq): Likewise.
30543 (grub_ata_cmd): New function.
30544 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
30545 error handling.
30546 (grub_ata_pio_write): Add error handling.
30547 (grub_atapi_identify): Likewise.
30548 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
30549 handling.
30550 (grub_ata_identify): Use `grub_ata_cmd' and improve error
30551 handling. Actually use the detected registers. Reorder the
30552 detection logic such that it is easier to read.
30553 (grub_ata_pciinit): Do not assign the same ID to each controller.
30554 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
30555 handling.
30556 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
30557
30558 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
30559
30560 2008-08-08 Marco Gerards <marco@gnu.org>
30561
30562 * NEWS: Update.
30563
30564 2008-08-07 Bean <bean123ch@gmail.com>
30565
30566 * include/grub/x86_64/pci.h: New file.
30567
30568 2008-08-07 Christian Franke <franke@computer.org>
30569
30570 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
30571 (TIMER2_GATE): Likewise.
30572 (grub_pit_wait): Add enable/disable of the timer2 gate
30573 bit of port 0x61. This fixes a possible infinite loop.
30574
30575 2008-08-07 Bean <bean123ch@gmail.com>
30576
30577 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
30578 kern/i386/tsc.c and kern/i386/pit.c.
30579
30580 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
30581 x86_64 platform.
30582
30583 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
30584 <grub/i386/tsc.h>.
30585
30586 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
30587
30588 2008-08-07 Bean <bean123ch@gmail.com>
30589
30590 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
30591
30592 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
30593
30594 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
30595 multiple inclusion. Add #include <grub/types.h>.
30596
30597 2008-08-06 Christian Franke <franke@computer.org>
30598
30599 * conf/common.rmk: Build and install `10_windows'.
30600 * util/grub.d/10_windows.in: New script.
30601
30602 2008-08-06 Pavel Roskin <proski@gnu.org>
30603
30604 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
30605
30606 2008-08-06 Robert Millan <rmh@aybabtu.com>
30607
30608 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
30609 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
30610
30611 2008-08-06 Bean <bean123ch@gmail.com>
30612
30613 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
30614 (grub_pxefs_fs_int): Remove dummy definition.
30615 (grub_pxefs_open): Use data->block_size to store the current block
30616 size setting.
30617 (grub_pxefs_read): Use block size stored in data->block_size. As the
30618 value of grub_pxe_blksize can be changed after the file is opened.
30619
30620 2008-08-06 Bean <bean123ch@gmail.com>
30621
30622 * fs/i386/pc/pxe.c (curr_file): new variable.
30623 (grub_pxefs_open): Simply the handling of pxe file system. Don't
30624 require the dummy internal file system anymore.
30625 (grub_pxefs_read): Removed.
30626 (grub_pxefs_close): Likewise.
30627 (grub_pxefs_fs_int): Likewise.
30628 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
30629 connection when we switch file.
30630 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
30631
30632 2008-08-06 Robert Millan <rmh@aybabtu.com>
30633
30634 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
30635 `halt.mod'.
30636 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
30637 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
30638
30639 * kern/i386/halt.c: New file.
30640 * kern/i386/reboot.c: Likewise.
30641 * include/grub/i386/reboot.h: Likewise.
30642 * include/grub/i386/halt.h: Likewise.
30643
30644 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
30645 Include `<grub/cpu/halt.h>'.
30646 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
30647 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
30648
30649 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
30650 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
30651 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
30652 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
30653 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
30654 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
30655 from here ...
30656 * include/grub/i386/at_keyboard.h: ... to here.
30657
30658 2008-08-05 Robert Millan <rmh@aybabtu.com>
30659
30660 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
30661 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
30662 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
30663 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30664 `kern/generic/millisleep.c'.
30665
30666 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
30667 instead of grub_get_rtc().
30668 (grub_tsc_init): Initialize `tsc_boot_time'.
30669
30670 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
30671 (grub_machine_init): Use grub_tsc_init() rather than
30672 installing an RTC-based handler via grub_install_get_time_ms().
30673
30674 * kern/i386/pit.c: New file.
30675 * include/grub/i386/pit.h: Likewise.
30676
30677 2008-08-05 Bean <bean123ch@gmail.com>
30678
30679 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
30680
30681 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
30682 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
30683 (pxe_mod_SOURCES): New macro.
30684 (pxe_mod_CFLAGS): Likewise.
30685 (pxe_mod_LDFLAGS): Likewise.
30686 (pxecmd_mod_SOURCES): Likewise.
30687 (pxecmd_mod_CFLAGS): Likewise.
30688 (pxecmd_mod_LDFLAGS): Likewise.
30689
30690 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
30691 (grub_pxe_call): Likewise.
30692
30693 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
30694
30695 * commands/i386/pc/pxecmd.c: New file.
30696
30697 * fs/i386/pc/pxe.c: Likewise.
30698
30699 * include/grub/i386/pc/pxe.h: Likewise.
30700
30701 2008-08-05 Bean <bean123ch@gmail.com>
30702
30703 * util/console.c (grub_console_cur_color): New variable.
30704 (grub_console_standard_color): Likewise.
30705 (grub_console_normal_color): Likewise.
30706 (grub_console_highlight_color): Likewise.
30707 (color_map): Likewise.
30708 (use_color): Likewise.
30709 (NUM_COLORS): New macro.
30710 (grub_ncurses_setcolorstate): Handle color properly.
30711 (grub_ncurses_setcolor): Don't change color here, just remember the
30712 settings, color will be set in grub_ncurses_setcolorstate.
30713 (grub_ncurses_getcolor): New function.
30714 (grub_ncurses_init): Initialize color pairs.
30715 (grub_ncurses_term): New member grub_ncurses_getcolor.
30716
30717 2008-08-05 Colin D Bennett <colin@gibibit.com>
30718
30719 High resolution timer support. Implemented for x86 CPUs using TSC.
30720 Extracted generic grub_millisleep() so it's linked in only as needed.
30721 This requires a Pentium compatible CPU; if the RDTSC instruction is
30722 not supported, then it falls back on the generic grub_get_time_ms()
30723 implementation that uses the machine's RTC.
30724
30725 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
30726 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30727 `kern/generic/millisleep.c'.
30728
30729 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
30730 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
30731
30732 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
30733 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
30734
30735 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30736
30737 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30738 `kern/generic/millisleep.c'.
30739
30740 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30741
30742 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
30743
30744 * kern/generic/rtc_get_time_ms.c: New file.
30745
30746 * kern/generic/millisleep.c: New file.
30747
30748 * kern/misc.c: Don't include
30749 <kern/time.h> anymore.
30750 (grub_millisleep_generic): Removed.
30751
30752 * commands/sleep.c (grub_interruptible_millisleep): Uses
30753 grub_get_time_ms() instead of grub_get_rtc().
30754
30755 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
30756 function.
30757 (grub_cpu_is_cpuid_supported): New inline function.
30758 (grub_cpu_is_tsc_supported): New inline function.
30759 (grub_tsc_init): New function prototype.
30760 (grub_tsc_get_time_ms): New function prototype.
30761
30762 * kern/i386/tsc.c (grub_get_time_ms): New file.
30763
30764 * include/grub/time.h: Include <grub/types.h.
30765 (grub_millisleep_generic): Removed.
30766 (grub_get_time_ms): New prototype.
30767 (grub_install_get_time_ms): New prototype.
30768 (grub_rtc_get_time_ms): New prototype.
30769
30770 * kern/time.c (grub_get_time_ms): New function.
30771 (grub_install_get_time_ms): New function.
30772
30773 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
30774 <grub/time.h> anymore.
30775 (grub_millisleep): Removed.
30776 (grub_machine_init): Call grub_tsc_init.
30777
30778 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
30779 get_time_ms() implementation.
30780
30781 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
30782 (ieee1275_get_time_ms): New function.
30783 (grub_machine_init): Install get_time_ms() implementation.
30784
30785 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
30786 (grub_machine_init): Call grub_tsc_init().
30787 (grub_millisleep): Removed.
30788
30789 * kern/ieee1275/init.c (grub_millisleep): Removed.
30790 (grub_machine_init): Install ieee1275_get_time_ms()
30791 implementation.
30792 (ieee1275_get_time_ms): New function.
30793 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
30794 real work.
30795
30796 2008-08-05 Marco Gerards <marco@gnu.org>
30797
30798 * disk/ata.c: Include <grub/pci.h>.
30799 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
30800 (grub_ata_initialize): Rewritten.
30801 (grub_ata_device_initialize): New function.
30802
30803 2008-08-04 Pavel Roskin <proski@gnu.org>
30804
30805 * kern/main.c: Include grub/mm.h.
30806
30807 2008-08-04 Robert Millan <rmh@aybabtu.com>
30808
30809 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
30810 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
30811 corruption problem).
30812
30813 2008-08-04 Robert Millan <rmh@aybabtu.com>
30814
30815 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
30816 warnings introduced in my last commit.
30817
30818 2008-08-03 Robert Millan <rmh@aybabtu.com>
30819
30820 Make PCI available on all i386 architectures.
30821
30822 * include/grub/i386/pc/pci.h: Move from here ...
30823 * include/grub/i386/pci.h: ... to here.
30824
30825 * include/grub/i386/pc/pci.h: Remove.
30826 * include/grub/i386/efi/pci.h: Remove.
30827 * include/grub/x86_64/efi/pci.h: Remove.
30828
30829 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
30830 `<grub/cpu/pci.h>'.
30831
30832 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
30833 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
30834 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
30835
30836 * conf/i386-ieee1275.rmk: Likewise.
30837
30838 2008-08-03 Robert Millan <rmh@aybabtu.com>
30839
30840 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
30841 (grub_console_setcursor): Make it possible to set cursor off.
30842
30843 2008-08-03 Robert Millan <rmh@aybabtu.com>
30844
30845 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
30846 of modules instead of assuming which platform provides what.
30847 * util/update-grub.in: Likewise.
30848
30849 2008-08-03 Robert Millan <rmh@aybabtu.com>
30850
30851 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
30852 instead of `grub_install_dos_part' to determine whether a drive needs
30853 to be prepended to prefix (`grub_install_dos_part' is not reliable,
30854 because it can be overridden when loading GRUB via Multiboot).
30855
30856 2008-08-02 Robert Millan <rmh@aybabtu.com>
30857
30858 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
30859
30860 2008-08-02 Robert Millan <rmh@aybabtu.com>
30861
30862 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
30863 of informational grub_dprintf() calls.
30864
30865 2008-08-02 Robert Millan <rmh@aybabtu.com>
30866
30867 * disk/memdisk.c (memdisk_size): Don't initialize.
30868 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
30869
30870 * include/grub/i386/pc/kernel.h
30871 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
30872 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
30873 (grub_memdisk_image_size, grub_arch_memdisk_addr)
30874 (grub_arch_memdisk_size): Remove.
30875
30876 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
30877 field (was only used to transfer a constant). Add `type' field to
30878 support multiple module types.
30879 (grub_module_iterate): New function.
30880
30881 * kern/device.c (grub_device_open): Do not hide error messages
30882 when grub_disk_open() fails. Use grub_print_error() instead.
30883
30884 * kern/i386/pc/init.c (grub_arch_modules_addr)
30885 (grub_arch_memdisk_size): Remove functions.
30886 (grub_arch_modules_addr): Return the module address in high memory
30887 (now that it isn't copied anymore).
30888
30889 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
30890 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
30891 decompression routine (grub_total_module_size already includes that
30892 now). Don't copy modules back to low memory.
30893
30894 * kern/main.c: Include `<grub/mm.h>'.
30895 (grub_load_modules): Split out (and use) ...
30896 (grub_module_iterate): ... this function, which iterates through
30897 module objects and runs a hook.
30898 Comment out grub_mm_init_region() call, as it would cause non-ELF
30899 modules to be overwritten.
30900
30901 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
30902 the memdisk image in its own region, make it part of the module list.
30903 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
30904 (main): Parse --memdisk|-m option, and pass user-provided path as
30905 parameter to generate_image().
30906 (add_segments): Pass `memdisk_path' down to load_modules().
30907 (load_modules): Embed memdisk image in module section when requested.
30908 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
30909 `header.type' instead of `header.offset'.
30910
30911 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
30912 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
30913 (memdisk_mod_LDFLAGS): New variables.
30914 * conf/i386-coreboot.rmk: Likewise.
30915 * conf/i386-ieee1275.rmk: Likewise.
30916
30917 2008-08-02 Robert Millan <rmh@aybabtu.com>
30918
30919 * loader/i386/pc/multiboot.c (playground, forward_relocator)
30920 (backward_relocator): New variables. Used to allocate and relocate
30921 the payload, respectively.
30922 (grub_multiboot_load_elf32): Load into heap instead of requested
30923 address, install the appropriate relocator code in each bound of
30924 the payload, and set the entry point such that
30925 grub_multiboot_real_boot() will jump to one of them.
30926
30927 * kern/i386/loader.S (grub_multiboot_payload_size)
30928 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
30929 (grub_multiboot_payload_entry_offset): New variables.
30930 (grub_multiboot_real_boot): Set cpu context to what the relocator
30931 expects, and jump to the relocator instead of the payload.
30932
30933 * include/grub/i386/loader.h (grub_multiboot_payload_size)
30934 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
30935 (grub_multiboot_payload_entry_offset): Export.
30936
30937 2008-08-01 Bean <bean123ch@gmail.com>
30938
30939 * normal/menu_entry.c (editor_getline): Don't return the original
30940 string as result, as it will be released by lexer once it has done
30941 using it.
30942
30943 2008-08-01 Robert Millan <rmh@aybabtu.com>
30944
30945 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
30946 within menuentries, not before them.
30947 util/grub.d/10_hurd.in: Likewise.
30948
30949 2008-08-01 Bean <bean123ch@gmail.com>
30950
30951 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
30952 (bufio_mod_SOURCES): New macro.
30953 (bufio_mod_CFLAGS): Likewise.
30954 (bufio_mod_LDFLAGS): Likewise.
30955
30956 * include/grub/bufio.h: New file.
30957
30958 * io/bufio.c: Likewise.
30959
30960 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
30961 (grub_video_reader_png): Use grub_buffile_open to open file.
30962
30963 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
30964 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
30965
30966 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
30967 (grub_video_reader_tga): Use grub_buffile_open to open file.
30968
30969 * font/manager.c: Include <grub/bufio.h>.
30970 (add_font): Use grub_buffile_open to open file.
30971
30972 2008-07-31 Robert Millan <rmh@aybabtu.com>
30973
30974 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
30975 ELF segments, use a macro for arbitrarily accessing any of them instead
30976 of preparing a pointer that allows access to one at a time.
30977 (grub_multiboot_load_elf64): Likewise.
30978
30979 2008-07-31 Bean <bean123ch@gmail.com>
30980
30981 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
30982 GRUB_KERNEL_MACHINE_DATA_END.
30983
30984 2008-07-30 Robert Millan <rmh@aybabtu.com>
30985
30986 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
30987 Increase from 0x50 to 0x60.
30988 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
30989 use UUIDs to identify the root drive for them. If that's not
30990 possible, abort.
30991 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
30992 check, for cross-disk installs.
30993
30994 2008-07-30 Robert Millan <rmh@aybabtu.com>
30995
30996 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
30997 is non-empty, use it to set the `prefix' environment variable instead
30998 of the usual approach.
30999 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
31000 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
31001 environment variable instead of dummy make_install_device().
31002
31003 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
31004 (start): Insert a data section, with `grub_prefix' variable.
31005 * kern/i386/linuxbios/startup.S: Likewise.
31006
31007 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
31008 New variable reference.
31009 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
31010 New macro. Defines offset of `grub_prefix' within startup.S (relative
31011 to `start').
31012 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
31013 section within startup.S (relative to `start').
31014 * include/grub/i386/coreboot/kernel.h: Likewise.
31015
31016 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
31017 Overwrite grub_prefix with its contents, at the beginning of the
31018 first segment.
31019 (main): Understand -p|--prefix.
31020
31021 2008-07-30 Robert Millan <rmh@aybabtu.com>
31022
31023 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
31024
31025 2008-07-30 Robert Millan <rmh@aybabtu.com>
31026
31027 * term/i386/pc/vga_text.c (grub_console_cls): Use
31028 grub_console_gotoxy() to go back to beginning of the screen.
31029 Found by Patrick Georgi <patrick.georgi@coresystems.de>
31030
31031 2008-07-29 Christian Franke <franke@computer.org>
31032
31033 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
31034 Add conversion of emulated mount points on Cygwin.
31035
31036 2008-07-29 Christian Franke <franke@computer.org>
31037
31038 * util/update-grub.in: Add a check for admin
31039 group on Cygwin.
31040 Remove old `grub.cfg.new' before creation.
31041 Add `-f' to `mv' to handle the different filesystem
31042 semantics of Windows.
31043
31044 2008-07-29 Bean <bean123ch@gmail.com>
31045
31046 * normal/main.c (get_line): Fix buffer overflow bug.
31047
31048 2008-07-28 Robert Millan <rmh@aybabtu.com>
31049
31050 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
31051 (struct grub_apple_header): New struct. Describes the layout of
31052 the partmap header.
31053 (apple_partition_map_iterate): Check the header magic as well as the
31054 partition magic (which was already being checked).
31055
31056 2008-07-28 Pavel Roskin <proski@gnu.org>
31057
31058 * genmk.rb: Add a warning to the beginning of the output that
31059 it's a generated file and should not be edited.
31060
31061 2008-07-28 Robert Millan <rmh@aybabtu.com>
31062
31063 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
31064 with the same number are found, just use issue a warning with
31065 grub_dprintf(), as this error has been reported to be non-fatal.
31066
31067 2008-07-27 Robert Millan <rmh@aybabtu.com>
31068
31069 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
31070 information.
31071
31072 2008-07-27 Bean <bean123ch@gmail.com>
31073
31074 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
31075 (grub_fat_find_dir): Ignore case when comparing filename.
31076
31077 2008-07-27 Bean <bean123ch@gmail.com>
31078
31079 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
31080 smallino, as it's more descriptive, and i8count can be confused with
31081 the other field count.
31082 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
31083 inode type.
31084
31085 2008-07-27 Bean <bean123ch@gmail.com>
31086
31087 * commands/crc.c: New file.
31088
31089 * lib/crc.c: Likewise.
31090
31091 * include/grub/lib/crc.h: Likewise.
31092
31093 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
31094
31095 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
31096 (hexdump): Move this function to ...
31097
31098 * lib/hexdump.c: ... here.
31099
31100 * include/grub/hexdump.h: Renamed to ...
31101
31102 * include/grub/lib/hexdump.h: ... this.
31103
31104 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
31105
31106 * util/grub-editenv.c: Likewise.
31107
31108 * include/envblk.h: Renamed to ...
31109
31110 * include/lib/envblk.h: ... this.
31111
31112 * util/envblk.c: Renamed to ...
31113
31114 * lib/envblk.c: ... this.
31115
31116 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
31117 lib/hexdump.c.
31118 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
31119 (pkglib_MODULES): Add crc.mod.
31120 (hexdump_mod_SOURCES): Add lib/hexdump.c.
31121 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
31122 (crc_mod_SOURCES): New macro.
31123 (crc_mod_CFLAGS): Likewise.
31124 (crc_mod_LDFLAGS): Likewise.
31125
31126 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
31127
31128 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31129
31130 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31131
31132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31133
31134 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31135
31136 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
31137
31138 * commands/help.c: Include <grub/term.h>.
31139 (TERM_WIDTH): Removed. Updated all users.
31140
31141 2008-07-27 Pavel Roskin <proski@gnu.org>
31142
31143 * util/getroot.c (find_root_device): Rephrase a comment to avoid
31144 spurious warnings about a comment within a comment.
31145
31146 2008-07-25 Robert Millan <rmh@aybabtu.com>
31147
31148 * util/getroot.c (find_root_device): Skip devices that match
31149 /dev/dm-[0-9]. This lets the real device be found for any type of
31150 abstraction (LVM, EVMS, RAID..).
31151 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
31152 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
31153 device is found first, find_root_device() will now skip it.
31154
31155 2008-07-24 Pavel Roskin <proski@gnu.org>
31156
31157 * include/grub/types.h: Use __builtin_bswap32() and
31158 __builtin_bswap64() with gcc 4.3 and newer.
31159
31160 2008-07-24 Christian Franke <franke@computer.org>
31161
31162 * util/i386/pc/grub-install.in: If `--debug' is specified,
31163 pass `--verbose' to grub-setup.
31164 Abort script if make_system_path_relative_to_its_root() fails.
31165
31166 2008-07-24 Bean <bean123ch@gmail.com>
31167
31168 * configure.ac: Fixed a bug caused by the previous cygwin patch,
31169 variable `target_platform' should be `platform'.
31170
31171 2008-07-24 Bean <bean123ch@gmail.com>
31172
31173 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
31174 (grub_png_init_fixed_block): New function.
31175 (grub_png_decode_image_data): Handle fixed huffman code compression.
31176
31177 2008-07-24 Bean <bean123ch@gmail.com>
31178
31179 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
31180 (grub_pe2elf_SOURCES): New macro.
31181 (CLEANFILES): Add grub-pe2elf.
31182
31183 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
31184 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
31185 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
31186 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
31187 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
31188 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
31189 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
31190 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
31191 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
31192 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
31193 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
31194 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
31195 (GRUB_PE32_DT_FUNCTION): Likewise.
31196 (GRUB_PE32_REL_I386_DIR32): Likewise.
31197 (GRUB_PE32_REL_I386_REL32): Likewise.
31198 (grub_pe32_symbol): New structure.
31199 (grub_pe32_reloc): Likewise.
31200
31201 * util/grub-pe2elf.c: New file.
31202
31203 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
31204 start symbol in non pc platform.
31205
31206 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
31207
31208 The following patches are from Christian Franke.
31209
31210 * include/grub/dl.h: Remove .previous, gas supports this only
31211 for ELF format.
31212
31213 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
31214 Remove .type, gas supports this only for ELF format.
31215
31216 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
31217 nullbytes in symbol table. This fixes an infinite loop if table is
31218 zero filled.
31219
31220 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
31221 TARGET_IMG_LDFLAGS and EXEEXT.
31222
31223 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
31224 TARGET_IMG_LDFLAGS_AC.
31225 (grub_CHECK_STACK_ARG_PROBE): New function.
31226
31227 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
31228
31229 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
31230
31231 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
31232 to set TARGET_IMG_LD* accordingly.
31233 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
31234 Add call to grub_CHECK_STACK_ARG_PROBE.
31235 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
31236
31237 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
31238
31239 * genmk.rb: Add EXEEXT to CLEANFILES.
31240
31241 2008-07-23 Robert Millan <rmh@aybabtu.com>
31242
31243 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
31244 define the codes for arrows and lines used for the menu).
31245 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
31246 as well.
31247
31248 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
31249 fonts, because the latter are too slow.
31250
31251 2008-07-21 Bean <bean123ch@gmail.com>
31252
31253 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
31254 a20. Run keyboard test last, as it will cause macbook to halt.
31255
31256 2008-07-18 Pavel Roskin <proski@gnu.org>
31257
31258 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
31259 load foreign architecture modules correctly anyway. Keep
31260 support for loading host architecture modules, whether we
31261 compile them or not.
31262
31263 2008-07-17 Pavel Roskin <proski@gnu.org>
31264
31265 * configure.ac: Use -m32 or -m64 regardless of whether we had to
31266 change target_cpu. The compiler default can mismatch target_cpu
31267 in any case.
31268
31269 * disk/efi/efidisk.c: Fix format warnings on x86_64.
31270 * kern/efi/efi.c: Likewise.
31271
31272 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
31273 target compiler is functional.
31274 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
31275 are set up.
31276
31277 * configure.ac: Default to efi platform for x86_64-apple. Allow
31278 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
31279 adjustments from the rest, only do them if target is not
31280 explicitly given. Merge other adjustments with the final sanity
31281 check. Remove an extraneous check for supported CPU. Be
31282 specific which CPU and which platform is not supported.
31283
31284 * configure.ac: Default to pc platform for x86_64.
31285
31286 2008-07-17 Robert Millan <rmh@aybabtu.com>
31287
31288 Partial LinuxBIOS -> Coreboot rename.
31289
31290 * conf/i386-linuxbios.rmk: Renamed to ...
31291 * conf/i386-coreboot.rmk: ... this.
31292 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
31293 * configure.ac: Accept "coreboot" as input platform (but maintain
31294 compatibility with "linuxbios").
31295 * include/grub/i386/linuxbios: Renamed to ...
31296 * include/grub/i386/coreboot: ... this.
31297
31298 2008-07-17 Bean <bean123ch@gmail.com>
31299
31300 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
31301 (appleldr_mod_SOURCE): New variable.
31302 (appleldr_mod_CFLAGS): Likewise.
31303 (appleldr_mod_LDFLAGS): Likewise.
31304 (pci_mod_SOURCES): Likewise.
31305 (pci_mod_CFLAGS): Likewise.
31306 (pci_mod_LDFLAGS): Likewise.
31307 (lspci_mod_SOURCES): Likewise.
31308 (lspci_mod_CFLAGS): Likewise.
31309 (lspci_mod_LDFLAGS): Likewise.
31310
31311 * conf/x86_64-efi.rmk: New file.
31312
31313 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
31314 macro.
31315 (grub_efidisk_write): Likewise.
31316
31317 * include/efi/api.h (efi_call_0): New macro.
31318 (efi_call_1): Likewise.
31319 (efi_call_2): Likewise.
31320 (efi_call_3): Likewise.
31321 (efi_call_4): Likewise.
31322 (efi_call_5): Likewise.
31323 (efi_call_6): Likewise.
31324
31325 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
31326 grub_rescue_cmd_chainloader.
31327
31328 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
31329 (grub_pe32_optional_header): Change some fields based on i386 or
31330 x86_64 platform.
31331 (GRUB_PE32_PE32_MAGIC): Likewise.
31332
31333 * include/grub/efi/uga_draw.h: New file.
31334
31335 * include/grub/elf.h (STN_ABS): New constant.
31336 (R_X86_64_NONE): Relocation constant for x86_64.
31337 (R_X86_64_64): Likewise.
31338 (R_X86_64_PC32): Likewise.
31339 (R_X86_64_GOT32): Likewise.
31340 (R_X86_64_PLT32): Likewise.
31341 (R_X86_64_COPY): Likewise.
31342 (R_X86_64_GLOB_DAT): Likewise.
31343 (R_X86_64_JUMP_SLOT): Likewise.
31344 (R_X86_64_RELATIVE): Likewise.
31345 (R_X86_64_GOTPCREL): Likewise.
31346 (R_X86_64_32): Likewise.
31347 (R_X86_64_32S): Likewise.
31348 (R_X86_64_16): Likewise.
31349 (R_X86_64_PC16): Likewise.
31350 (R_X86_64_8): Likewise.
31351 (R_X86_64_PC8): Likewise.
31352
31353 * include/grub/i386/efi/pci.h: New file.
31354
31355 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
31356 Change it value based on platform.
31357 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
31358 (GRUB_E820_RAM): Likewise.
31359 (GRUB_E820_RESERVED): Likewise.
31360 (GRUB_E820_ACPI): Likewise.
31361 (GRUB_E820_NVS): Likewise.
31362 (GRUB_E820_EXEC_CODE): Likewise.
31363 (GRUB_E820_MAX_ENTRY): Likewise.
31364 (grub_e820_mmap): New structure.
31365 (linux_kernel_header): Change the efi field according to different
31366 kernel version, also field from linux_kernel_header.
31367
31368 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
31369
31370 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
31371 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
31372 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
31373 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
31374 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
31375 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
31376 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
31377 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
31378 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
31379 (GRUB_PCI_ADDR_IO_MASK): Likewise.
31380
31381 * include/grub/x86_64/efi/kernel.h: New file.
31382
31383 * include/grub/x86_64/efi/loader.h: Likewise.
31384
31385 * include/grub/x86_64/efi/machine.h: Likewise.
31386
31387 * include/grub/x86_64/efi/pci.h: Likewise.
31388
31389 * include/grub/x86_64/efi/time.h: Likewise.
31390
31391 * include/grub/x86_64/linux.h: Likewise.
31392
31393 * include/grub/x86_64/setjmp.h: Likewise.
31394
31395 * include/grub/x86_64/time.h: Likewise.
31396
31397 * include/grub/x86_64/types.h: Likewise.
31398
31399 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
31400 GRUB_TARGET_SIZEOF_VOID_P.
31401
31402 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
31403 (grub_efi_locate_handle): Likewise.
31404 (grub_efi_open_protocol): Likewise.
31405 (grub_efi_set_text_mode): Likewise.
31406 (grub_efi_stall): Likewise.
31407 (grub_exit): Likewise.
31408 (grub_reboot): Likewise.
31409 (grub_halt): Likewise.
31410 (grub_efi_exit_boot_services): Likewise.
31411 (grub_get_rtc): Likewise.
31412
31413 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
31414 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
31415 (grub_efi_allocate_pages): Wrap efi calls.
31416 (grub_efi_free_pages): Wrap efi calls.
31417 (grub_efi_get_memory_map): Wrap efi calls.
31418
31419 * kern/x86_64/dl.c: New file.
31420
31421 * kern/x86_64/efi/callwrap.S: Likewise.
31422
31423 * kern/x86_64/efi/startup.S: Likewise.
31424
31425 * loader/efi/appleloader.c: Likewise.
31426
31427 * loader/efi/chainloader.c (cmdline): New variable.
31428 (grub_chainloader_unload): Wrap efi calls.
31429 (grub_chainloader_boot): Likewise.
31430 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
31431 command line.
31432
31433 * loader/efi/chainloader_normal.c (chainloader_command):
31434 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
31435 command line.
31436
31437 * loader/i386/efi/linux.c (allocate_pages): Change allocation
31438 method.
31439 (grub_e820_add_region): New function.
31440 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
31441 booting.
31442 (grub_find_video_card): New function.
31443 (grub_linux_setup_video): New function.
31444 (grub_rescue_cmd_linux): Probe for video information.
31445
31446 * normal/x86_64/setjmp.S: New file.
31447
31448 * term/efi/console.c (map_char): New function.
31449 (grub_console_putchar): Map unicode char.
31450 (grub_console_checkkey): Wrap efi calls.
31451 (grub_console_getkey): Likewise.
31452 (grub_console_getwh): Likewise.
31453 (grub_console_gotoxy): Likewise.
31454 (grub_console_cls): Likewise.
31455 (grub_console_setcolorstate): Likewise.
31456 (grub_console_setcursor): Likewise.
31457
31458 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
31459
31460 2008-07-16 Pavel Roskin <proski@gnu.org>
31461
31462 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
31463 format strings.
31464
31465 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
31466 pointer, not an integer. This fixes a warning and prevents
31467 precision loss on 64-bit systems.
31468 (relocate_addresses): Remove unneeded cast.
31469
31470 2008-07-15 Pavel Roskin <proski@gnu.org>
31471
31472 * kern/i386/ieee1275/init.c: Include grub/cache.h.
31473
31474 * term/ieee1275/ofconsole.c: Disable code unused on i386.
31475
31476 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
31477 Fix comparison between signed and unsigned.
31478
31479 * include/grub/i386/ieee1275/console.h: Declare
31480 grub_console_init() and grub_console_fini().
31481
31482 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
31483 It's empty and unused.
31484
31485 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
31486 beginning to avoid warnings with some compilers.
31487
31488 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
31489 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
31490
31491 2008-07-14 Pavel Roskin <proski@gnu.org>
31492
31493 * kern/env.c (grub_register_variable_hook): Don't copy empty
31494 string, it leaks memory. Pass "" to grub_env_set(), it should
31495 handle constant strings.
31496
31497 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
31498 * commands/cmp.c (grub_cmd_cmp): Likewise.
31499 * kern/dl.c (grub_dl_flush_cache): Likewise.
31500 (grub_dl_load_core): Likewise.
31501 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
31502 (grub_elf64_load_phdrs): Likewise.
31503
31504 2008-07-13 Pavel Roskin <proski@gnu.org>
31505
31506 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
31507 between signed and unsigned.
31508 (LzmaEnc_Finish): Fix warning about an unused parameter.
31509
31510 2008-07-13 Bean <bean123ch@gmail.com>
31511
31512 * Makefile.in (enable_lzo): New rule.
31513
31514 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
31515
31516 * configure.ac (ENABLE_LZO): New option --enable-lzo.
31517
31518 * boot/i386/pc/lnxboot.S: #include <config.h>.
31519
31520 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
31521 its value according to the compression algorithm used, lzo or lzma.
31522
31523 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
31524 compression algorithm according to configure macro.
31525
31526 * kern/i386/pc/startup.S (codestart): Likewise.
31527
31528 * kern/i386/pc/lzma_decode.S: New file.
31529
31530 * include/grub/lib/LzFind.h: Likewise.
31531
31532 * include/grub/lib/LzHash.h: Likewise.
31533
31534 * include/grub/lib/LzmaDec.h: Likewise.
31535
31536 * include/grub/lib/LzmaEnc.h: Likewise.
31537
31538 * include/grub/lib/LzmaTypes.h: Likewise.
31539
31540 * lib/LzFind.c: Likewise.
31541
31542 * lib/LzmaDec.c: Likewise.
31543
31544 * lib/LzmaEnc.c: Likewise.
31545
31546 2008-07-13 Bean <bean123ch@gmail.com>
31547
31548 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
31549 (grub_ext4_extent_header): New structure.
31550 (grub_ext4_extent): Likewise.
31551 (grub_ext4_extent_idx): Likewise.
31552 (grub_ext4_find_leaf): New function.
31553 (grub_ext2_read_block): Handle extents.
31554
31555 2008-07-12 Robert Millan <rmh@aybabtu.com>
31556
31557 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
31558
31559 2008-07-11 Robert Millan <rmh@aybabtu.com>
31560
31561 * util/grub.d/40_custom.in: New file. Example on how to add custom
31562 entries to /etc/grub.d.
31563 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
31564 40_custom (implicitly, by merging all the grub.d rules).
31565
31566 2008-07-11 Pavel Roskin <proski@gnu.org>
31567
31568 * commands/read.c (grub_getline): Fix invalid memory access.
31569 Don't add newline to the variable value.
31570
31571 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
31572 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
31573 (serial_hw_get_port): Check validity of the port number.
31574 (grub_cmd_serial): Check return value of serial_hw_get_port().
31575
31576 2008-07-07 Pavel Roskin <proski@gnu.org>
31577
31578 * boot/i386/pc/diskboot.S (notification_string): Replace
31579 "Loading kernel" with just "loading". This is shorter, less
31580 confusing and saves a few bytes for possible future changes.
31581
31582 2008-07-05 Pavel Roskin <proski@gnu.org>
31583
31584 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
31585 size for ATAPI devices, they are undefined. Output sector
31586 number in decimal form.
31587
31588 * disk/ata.c: Use named constants for status bits.
31589
31590 2008-07-04 Pavel Roskin <proski@gnu.org>
31591
31592 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
31593 grub_addr_t before casting it to the void pointer to fix a
31594 warning. Non-addressable regions are discarded earlier.
31595 (grub_arch_modules_addr): Cast _end to grub_addr_t.
31596 * kern/i386/linuxbios/table.c: Include grub/misc.h.
31597 (check_signature): Don't shadow table_header.
31598 (grub_linuxbios_table_iterate): Cast numeric constants to
31599 grub_linuxbios_table_header_t.
31600 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
31601 grub_stop().
31602
31603 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
31604 prevent warnings.
31605
31606 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
31607 pointer, which can cause warnings. Support 64-bit addresses.
31608
31609 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
31610 of sizeof(long). This fixes PowerPC image generation on x86_64.
31611
31612 2008-07-04 Robert Millan <rmh@aybabtu.com>
31613
31614 This fixes a performance issue when pc & gpt partmap iterators
31615 didn't abort iteration even after our hook found what it was
31616 looking for (often causing expensive probes of non-existent drives).
31617
31618 Some callers relied on previous buggy behaviour, since they would
31619 raise an error when their own hooks caused early abortion of its
31620 iteration.
31621
31622 * kern/device.c (grub_device_open): Improve error message.
31623 * disk/lvm.c (grub_lvm_open): Likewise.
31624 * disk/raid.c (grub_raid_open): Likewise.
31625
31626 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
31627 when hook requests it, independently of grub_errno.
31628 (pc_partition_map_probe): Do not fail when find_func() caused
31629 early abortion of pc_partition_map_iterate().
31630
31631 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
31632 when hook requests it, independently of grub_errno.
31633 (gpt_partition_map_probe): Do not fail when find_func() caused
31634 early abortion of gpt_partition_map_iterate().
31635
31636 * kern/partition.c (grub_partition_iterate): Abort parent iteration
31637 when hook requests it, independently of grub_errno. Do not fail when
31638 part_map_iterate_hook() caused early abortion of p->iterate().
31639
31640 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
31641 when grub_partition_iterate() returned with non-zero.
31642
31643 2008-07-03 Pavel Roskin <proski@gnu.org>
31644
31645 * disk/ata.c (grub_ata_pio_write): Check status before writing,
31646 like we do in grub_ata_pio_read().
31647 (grub_ata_readwrite): Always write individual sectors. Fix the
31648 sector count for the remainder.
31649 (grub_ata_write): Enable writing to ATA devices. Correctly
31650 report error for ATAPI devices.
31651
31652 2008-07-02 Pavel Roskin <proski@gnu.org>
31653
31654 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
31655 warning.
31656
31657 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
31658 for every read sector, we already increment it for the whole
31659 batch. This fixes reading more than 256 sectors at once.
31660
31661 * util/grub-editenv.c (cmd_info): Cast argument to long
31662 explicitly. ptrdiff_t reduces to int on i386.
31663
31664 * util/grub-editenv.c (main): Be specific which parameter is
31665 missing.
31666
31667 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
31668 (memdisk): Make memdisk_orig_addr a pointer.
31669
31670 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
31671 for file offsets, use grub_off_t instead. Fix printf format
31672 warnings.
31673
31674 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
31675 there. Real unexpected warnings should not drown in the noise
31676 about known problems.
31677
31678 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
31679 grub_disk_addr_t for memory addresses.
31680
31681 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
31682 explicitly to fix a warning.
31683
31684 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
31685
31686 * Makefile.in (MODULE_LDFLAGS): New variable.
31687 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
31688 the linker accepts --build-id=none.
31689 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
31690 MODULE_LDFLAGS.
31691 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
31692
31693 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
31694 those in Linux XFS code. Provide a way to access 64-bit parent
31695 inode.
31696 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
31697 the end of struct grub_xfs_dir_header.
31698
31699 2008-07-02 Bean <bean123ch@gmail.com>
31700
31701 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
31702 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31703 and GRUB_IEEE1275_FLAG_NO_ANSI.
31704
31705 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
31706 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31707 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
31708
31709 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
31710 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
31711
31712 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
31713 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
31714
31715 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
31716 esc sequence on non ANSI terminal.
31717 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
31718
31719 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
31720 beginning of file.
31721
31722 2008-07-02 Bean <bean123ch@gmail.com>
31723
31724 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
31725 (grub_editenv_SOURCES): New variable.
31726 (pkglib_MODULES): Add loadenv.mod.
31727 (loadenv_mod_SOURCES): New variable.
31728 (loadenv_mod_CFLAGS): Likewise.
31729 (loadenv_mod_LDFLAGS): Likewise.
31730
31731 * include/grub/envblk.h: New file.
31732
31733 * util/envblk.c: New file.
31734
31735 * util/grub-editenv.c: New file.
31736
31737 * commands/loadenv.c: New file.
31738
31739 2008-07-01 Pavel Roskin <proski@gnu.org>
31740
31741 * include/multiboot2.h (struct multiboot_tag_module): Use char,
31742 not unsigned char. This fixes warnings and is consistent with
31743 other tags.
31744
31745 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
31746
31747 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
31748
31749 * term/tparm.c (analyze): Always set *popcount.
31750
31751 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
31752 cast to fix a warning.
31753
31754 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
31755 cast to suppress a warning.
31756
31757 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
31758 grub_fshelp_read_file() expects.
31759
31760 * fs/fat.c: Fix UUID calculation on big-endian systems. We
31761 write uuid as a 32-bit value in CPU byte order, so declare and
31762 use it as such.
31763
31764 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
31765 long if the format specifier expects it.
31766 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
31767 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31768 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
31769 long to fix a warning.
31770 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
31771 grub_dprintf() arguments to fix warnings.
31772
31773 2008-06-30 Pavel Roskin <proski@gnu.org>
31774
31775 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
31776 install_bsd_part immediately before core.img is embedded or
31777 modified on disk. This fixes core.img verification if core.img
31778 cannot be embedded.
31779
31780 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
31781 core_path to calculate the blocklist.
31782 Patch from Javier Martín <lordhabbit@gmail.com>
31783
31784 2008-06-29 Robert Millan <rmh@aybabtu.com>
31785
31786 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
31787 block to disk block.
31788 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
31789 Patch from Niels Böhm <bitbucket@arcor.de>
31790
31791 2008-06-29 Robert Millan <rmh@aybabtu.com>
31792
31793 * util/update-grub_lib.in (font_path): Search for fonts in
31794 /boot/grub first, which is more likely to be readable (we aren't
31795 deciding where fonts live, just looking for them).
31796
31797 2008-06-26 Pavel Roskin <proski@gnu.org>
31798
31799 * util/biosdisk.c (read_device_map): Don't leave dead map
31800 entries for devices failing stat() check.
31801
31802 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
31803 core_path_dev for the core.img path on the target device.
31804
31805 2008-06-26 Robert Millan <rmh@aybabtu.com>
31806
31807 * disk/fs_uuid.c: New file.
31808 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
31809 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
31810 (fs_uuid_mod_LDFLAGS): New variables.
31811 * include/grub/disk.h (grub_disk_dev_id): Add
31812 `GRUB_DISK_DEVICE_UUID_ID'.
31813 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
31814 implement iterate().
31815
31816 2008-06-26 Robert Millan <rmh@aybabtu.com>
31817
31818 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
31819 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
31820 Linux image includes no initrd.
31821
31822 2008-06-21 Javier Martín <lordhabbit@gmail.com>
31823
31824 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
31825 call to resolve the core image location that effectively appended the
31826 name twice.
31827
31828 2008-06-21 Robert Millan <rmh@aybabtu.com>
31829
31830 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
31831 call from here ...
31832
31833 * util/grub.d/10_hurd.in: ... to here ...
31834 * util/grub.d/10_linux.in: ... and here.
31835
31836 2008-06-19 Robert Millan <rmh@aybabtu.com>
31837
31838 * kern/main.c (grub_main): Export `prefix' variable immediately
31839 after it has been set by grub_machine_set_prefix().
31840
31841 2008-06-19 Robert Millan <rmh@aybabtu.com>
31842
31843 * commands/search.c (search_label, search_fs_uuid, search_file): Print
31844 search result when not saving to variable, not the other way around.
31845 When saving to variable, abort iteration as soon as a match is found.
31846
31847 2008-06-19 Robert Millan <rmh@aybabtu.com>
31848
31849 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
31850 check for partition that provides /boot/grub. Its logic is flawed,
31851 as it prevents prepare_grub_to_access_device() from being called
31852 multiple times.
31853
31854 2008-06-19 Robert Millan <rmh@aybabtu.com>
31855
31856 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
31857 "insmod" command directly when abstraction modules are needed,
31858 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
31859 since it had already been processed).
31860
31861 2008-06-19 Pavel Roskin <proski@gnu.org>
31862
31863 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
31864 changed. This is needed in case GRUB_LIBDIR changes.
31865 * conf/i386-ieee1275.rmk: Likewise.
31866 * conf/i386-linuxbios.rmk: Likewise.
31867 * conf/i386-pc.rmk: Likewise.
31868 * conf/powerpc-ieee1275.rmk: Likewise.
31869
31870 2008-06-18 Pavel Roskin <proski@gnu.org>
31871
31872 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
31873 kernel_elf_symlist.c to symlist.c for consistency with other
31874 architectures. Update all users.
31875 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31876
31877 2008-06-18 Robert Millan <rmh@aybabtu.com>
31878
31879 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
31880 it in prefix.
31881
31882 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
31883 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
31884 a RAID device, run setup() for all members independently on whether
31885 LVM abstraction is being used.
31886 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
31887 If grub-mkimage has set `*install_dos_part == -2', don't override this
31888 value.
31889 Perform *install_dos_part adjustments independently on whether
31890 we're embedding or not.
31891 Clarify error message when image is too big for embedding.
31892 Remove duplicate *install_dos_part stanza.
31893
31894 2008-06-17 Robert Millan <rmh@aybabtu.com>
31895
31896 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
31897 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
31898 variables.
31899 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
31900 values in grub_ofconsole_normal_color and
31901 grub_ofconsole_highlight_color (they're not directly related to
31902 background and foreground).
31903 (grub_ofconsole_setcolorstate): Extract background and foreground
31904 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
31905
31906 2008-06-17 Robert Millan <rmh@aybabtu.com>
31907
31908 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
31909 /boot/grub for the check in last commit, not /boot (they could be
31910 different partitions).
31911
31912 2008-06-16 Robert Millan <rmh@aybabtu.com>
31913
31914 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
31915 asked to setup access for the same partition that provides /boot,
31916 don't bother using UUIDs since our root already has the value we
31917 want.
31918
31919 2008-06-16 Robert Millan <rmh@aybabtu.com>
31920
31921 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
31922 I2O devices.
31923 Patch from Sven Mueller <sven@debian.org>.
31924
31925 2008-06-16 Robert Millan <rmh@aybabtu.com>
31926
31927 * util/update-grub.in: Check for $EUID instead of $UID.
31928 Reported by Vincent Zweije.
31929
31930 2008-06-16 Bean <bean123ch@gmail.com>
31931
31932 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
31933 (grub_ext2_read_block): Likewise.
31934 (grub_ext2_read_inode): Likewise.
31935 (grub_ext2_mount): Likewise.
31936 (grub_ext2_close): Likewise.
31937 (grub_ext3_get_journal): Removed.
31938
31939 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
31940 (grub_reiserfs_read_symlink): Likewise.
31941 (grub_reiserfs_mount): Likewise.
31942 (grub_reiserfs_open): Likewise.
31943 (grub_reiserfs_read): Likewise.
31944 (grub_reiserfs_close): Likewise.
31945 (grub_reiserfs_get_journal): Removed.
31946
31947 * fs/fshelp.c (grub_fshelp_read): Removed.
31948 (grub_fshelp_map_block): Likewise.
31949
31950 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
31951 (grub_fshelp_journal): Likewise.
31952 (grub_fshelp_read): Likewise.
31953 (grub_fshelp_map_block): Likewise.
31954
31955 2008-06-16 Pavel Roskin <proski@gnu.org>
31956
31957 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
31958 floating point anymore.
31959 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
31960
31961 2008-06-15 Pavel Roskin <proski@gnu.org>
31962
31963 * commands/ls.c (grub_ls_list_files): Use integer calculations
31964 for human readable format, avoid floating point use.
31965 * kern/misc.c (grub_ftoa): Remove.
31966 (grub_vsprintf): Remove floating point support.
31967
31968 2008-06-15 Robert Millan <rmh@aybabtu.com>
31969
31970 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
31971 devices.
31972 Reported by Max Vozeler.
31973
31974 2008-06-15 Robert Millan <rmh@aybabtu.com>
31975
31976 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
31977 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
31978 skipped later.
31979 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
31980 the beginning of the prefix.
31981
31982 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
31983 It is assumed that if we have a memdisk, grub-mkimage has set
31984 grub_prefix to include the "(memdisk)" drive in it.
31985
31986 2008-06-15 Robert Millan <rmh@aybabtu.com>
31987
31988 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
31989 Initialize keyboard controller after registering the terminal, so that
31990 grub_printf() can be called from grub_keyboard_controller_init().
31991
31992 2008-06-15 Robert Millan <rmh@aybabtu.com>
31993
31994 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
31995 extent-btree which is written as big endian on disk.
31996 Reported by Alain Greppin <al@chilibi.org>.
31997
31998 2008-06-14 Robert Millan <rmh@aybabtu.com>
31999
32000 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
32001 * util/i386/pc/grub-install.in (modules): Likewise.
32002
32003 2008-06-13 Pavel Roskin <proski@gnu.org>
32004
32005 * commands/ls.c (grub_ls_list_files): Fix format warnings.
32006
32007 2008-06-13 Bean <bean123ch@gmail.com>
32008
32009 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
32010
32011 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
32012
32013 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
32014 to indicate sparse block.
32015
32016 2008-06-12 Pavel Roskin <proski@gnu.org>
32017
32018 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
32019 number, grub_fshelp_read() does it for us.
32020
32021 * fs/fshelp.c (grub_fshelp_read): New function. Implement
32022 linear disk read with journal translation.
32023 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
32024 * include/grub/fshelp.h: Declare grub_fshelp_read().
32025
32026 2008-06-09 Pavel Roskin <proski@gnu.org>
32027
32028 * fs/minix.c (grub_minix_mount): Handle error reading
32029 superblock.
32030
32031 2008-06-08 Robert Millan <rmh@aybabtu.com>
32032
32033 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
32034 don't append the RAID prefix afterwards.
32035 Reported by Clint Adams.
32036
32037 2008-06-08 Robert Millan <rmh@aybabtu.com>
32038
32039 Based on description from Pavel:
32040 * kern/disk.c (grub_disk_check_range): Rename to ...
32041 (grub_disk_adjust_range): ... this. Add a comment explaining the
32042 tasks performed by this function.
32043
32044 2008-06-08 Robert Millan <rmh@aybabtu.com>
32045
32046 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
32047 `num_serial' (for consistency with other variables).
32048 (struct grub_ntfs_data): Add `uuid' member.
32049 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
32050 (grub_ntfs_uuid): New function.
32051 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
32052
32053 2008-06-07 Pavel Roskin <proski@gnu.org>
32054
32055 * util/biosdisk.c (open_device): Revert last change to the
32056 function, it broke installation. The sector needs to be
32057 different dependent on which device is opened.
32058
32059 2008-06-06 Robert Millan <rmh@aybabtu.com>
32060
32061 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
32062 rest of GRUB, and breakage doesn't happen if its value were modified.
32063
32064 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32065 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
32066 a constant (same value).
32067 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
32068 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
32069
32070 2008-06-06 Robert Millan <rmh@aybabtu.com>
32071
32072 * util/biosdisk.c (open_device): Do not modify sector offset when
32073 accessing a partition. kern/disk.c already handles this for us.
32074
32075 2008-06-06 Robert Millan <rmh@aybabtu.com>
32076
32077 * util/grub-emu.c (grub_machine_init): Move code in this function from
32078 here ...
32079 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
32080 segfault in case grub_printf() is called).
32081
32082 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
32083 grub_probe. Update all users not to explicitly add it again.
32084 (grub_device): New variable; contains corresponding device for grubdir.
32085 (fs_module, partmap_module, devabstraction_module): Pass
32086 `--device ${grub_device}' to grub_probe to avoid traversing /dev
32087 every time.
32088
32089 2008-06-05 Robert Millan <rmh@aybabtu.com>
32090
32091 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
32092 is found, print it (same layout as with labels).
32093
32094 2008-06-04 Robert Millan <rmh@aybabtu.com>
32095
32096 * util/biosdisk.c (get_drive): Rename to ...
32097 (find_grub_drive): ... this. Update all users.
32098
32099 (get_os_disk): Rename to ...
32100 (convert_system_partition_to_system_disk): ... this. Update all users.
32101
32102 (find_drive): Rename to ...
32103 (find_system_device): ... this. Update all users.
32104
32105 2008-06-04 Robert Millan <rmh@aybabtu.com>
32106
32107 * util/biosdisk.c (get_os_disk): Handle IDA devices.
32108 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32109 (make_device_map): Likewise.
32110
32111 2008-06-01 Robert Millan <rmh@aybabtu.com>
32112
32113 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
32114 before dereferencing it.
32115
32116 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
32117 union with fat12/fat16-specific ones. Add some new fields, including
32118 `num_serial' for both versions.
32119 (struct grub_fat_data): Add `uuid' member.
32120 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
32121 names. Initialize `data->uuid' using `num_serial'.
32122 (grub_fat_uuid): New function.
32123 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
32124
32125 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
32126 (grub_reiserfs_uuid): New function.
32127 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
32128 member.
32129
32130 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
32131 (grub_xfs_uuid): New function.
32132 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
32133
32134 2008-06-01 Robert Millan <rmh@aybabtu.com>
32135
32136 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
32137 code that is backward compatible with pre-uuid search command.
32138
32139 2008-05-31 Robert Millan <rmh@aybabtu.com>
32140
32141 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
32142 floppies after everything else, to ensure floppy drive isn't accessed
32143 unnecessarily (patch from Bean).
32144
32145 2008-05-31 Robert Millan <rmh@aybabtu.com>
32146
32147 * commands/search.c (search_label, search_fs_uuid, search_file): Do
32148 not print device names when we were asked to set a variable.
32149
32150 2008-05-31 Robert Millan <rmh@aybabtu.com>
32151
32152 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
32153 using "cursor-on" and "cursor-off" commands (understood at least by
32154 the Open Firmware flavour on OLPC).
32155
32156 2008-05-31 Michael Gorven <michael@gorven.za.net>
32157
32158 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
32159 on and off sequences.
32160
32161 2008-05-31 Robert Millan <rmh@aybabtu.com>
32162
32163 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
32164 * util/update-grub.in: Likewise.
32165
32166 2008-05-30 Pavel Roskin <proski@gnu.org>
32167
32168 * util/biosdisk.c (linux_find_partition): Simplify logic and
32169 make the code more universal. Keep special processing for
32170 devfs, but use a simple rule for all other devices. If the
32171 device ends with a number, append 'p' and the partition number.
32172 Otherwise, append only the partition number.
32173
32174 2008-05-30 Robert Millan <rmh@aybabtu.com>
32175
32176 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
32177 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
32178 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
32179 the `root' parameter to Linux.
32180
32181 2008-05-30 Robert Millan <rmh@aybabtu.com>
32182
32183 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
32184 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
32185 --fs_uuid with --fs-uuid.
32186 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
32187 all filesystems support them).
32188
32189 2008-05-30 Robert Millan <rmh@aybabtu.com>
32190
32191 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
32192 grub_printf() flags, since we're printing in units of 2 bytes.
32193
32194 2008-05-30 Robert Millan <rmh@aybabtu.com>
32195
32196 * util/grub.d/00_header.in: Remove obsolete comment referencing
32197 convert_system_path_to_grub_path().
32198 * util/update-grub.in: Likewise.
32199 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
32200 (convert_system_path_to_grub_path): Add a warning message explaining
32201 that this function is deprecated. Rely on is_path_readable_by_grub()
32202 for the readability checks.
32203 (font_path): Use is_path_readable_by_grub() for the readability
32204 check rather than convert_system_path_to_grub_path().
32205
32206 2008-05-30 Robert Millan <rmh@aybabtu.com>
32207
32208 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
32209 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
32210 converting it first.
32211 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
32212 grub.cfg for access to font file, and afterwards call it again to set
32213 the root device.
32214
32215 2008-05-30 Robert Millan <rmh@aybabtu.com>
32216
32217 * commands/search.c (options): Add --fs_uuid option.
32218 (search_fs_uuid): New function.
32219 (grub_cmd_search): Fix --set argument passing.
32220 Use search_fs_uuid() when requested via --fs_uuid.
32221 (grub_search_init): Update help message.
32222 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
32223 and redeclare it as an array of 16-bit words.
32224 (grub_ext2_uuid): New function.
32225 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
32226 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
32227 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
32228 (GRUB_DEVICE_BOOT_UUID): New variables.
32229 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
32230 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
32231 whenever possible.
32232 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
32233 just assume `root' variable has the right value.
32234 * util/grub.d/10_linux.in: Likewise.
32235 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
32236 via PRINT_FS_UUID.
32237 (main): Recognise `-t fs_uuid' argument.
32238
32239 2008-05-30 Robert Millan <rmh@aybabtu.com>
32240
32241 * util/biosdisk.c (map): Redefine structure to hold information
32242 about GRUB drive name.
32243 (get_drive): Reimplement without assuming (and verifying) BIOS-like
32244 drive names.
32245 (call_hook): Remove.
32246 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
32247 member. Assume drive has partitions.
32248 (grub_util_biosdisk_open): Access device names via `.device' struct
32249 member.
32250 (open_device): Likewise.
32251 (find_drive): Likewise.
32252 (read_device_map): Adjust map[] usage to match the new struct
32253 definition. Don't check for duplicates (still possible, but not cheap
32254 anymore).
32255 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
32256 (make_device_name): Remove assumption of BIOS-like drive names.
32257
32258 2008-05-30 Pavel Roskin <proski@gnu.org>
32259
32260 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
32261 compiling execute.c doesn't need grub_script.tab.h anymore.
32262 (normal/command.c_DEPENDENCIES): Likewise.
32263 (normal/function.c_DEPENDENCIES): Likewise.
32264 * conf/i386-ieee1275.rmk: Likewise.
32265 * conf/i386-linuxbios.rmk: Likewise.
32266 * conf/i386-pc.rmk: Likewise.
32267 * conf/powerpc-ieee1275.rmk: Likewise.
32268 * conf/sparc64-ieee1275.rmk: Likewise.
32269
32270 2008-05-29 Pavel Roskin <proski@gnu.org>
32271
32272 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
32273 when scanning metadata for volume group name.
32274
32275 * include/grub/script.h: Don't include grub_script.tab.h. It's
32276 a generated file, which may only be included from the files with
32277 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
32278 use union YYSTYPE, as the later allows forward declaration.
32279 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
32280
32281 2008-05-29 Robert Millan <rmh@aybabtu.com>
32282
32283 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
32284 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
32285 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
32286 (grub_console_checkkey): Add grub_dprintf() call to report unknown
32287 scan codes.
32288
32289 2008-05-29 Robert Millan <rmh@aybabtu.com>
32290
32291 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
32292 control key combinations.
32293
32294 2008-05-29 Robert Millan <rmh@aybabtu.com>
32295
32296 * util/powerpc/ieee1275/grub-install.in: Move from here ...
32297 * util/ieee1275/grub-install.in: ... to here.
32298 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
32299 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
32300 (grub_install_SOURCES): Likewise.
32301
32302 2008-05-29 Robert Millan <rmh@aybabtu.com>
32303
32304 * fs/affs.c: Update copyright year.
32305 * fs/ext2.c: Likewise.
32306 * fs/fshelp.c: Likewise.
32307 * fs/hfsplus.c: Likewise.
32308 * fs/ntfs.c: Likewise.
32309 * fs/xfs.c: Likewise.
32310 * include/grub/fshelp.h: Likewise.
32311 * util/grub-mkdevicemap.c: Likewise.
32312
32313 2008-05-28 Robert Millan <rmh@aybabtu.com>
32314
32315 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
32316 might need to be fatfs to support some firmware implementations
32317 (e.g. OFW or EFI).
32318
32319 2008-05-28 Robert Millan <rmh@aybabtu.com>
32320
32321 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
32322 devices.
32323 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32324 (make_device_map): Likewise.
32325
32326 2008-05-20 Bean <bean123ch@gmail.com>
32327
32328 * fs/fshelp.c (grub_fshelp_map_block): New function.
32329 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
32330 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
32331
32332 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
32333 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
32334 (grub_fshelp_journal): New structure.
32335 (grub_fshelp_map_block): New function prototype.
32336 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
32337 (grub_fshelp_map_block): Likewise.
32338
32339 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
32340 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
32341 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
32342 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
32343 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
32344 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
32345 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
32346 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
32347 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
32348 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
32349 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
32350 (grub_ext2_sblock): New members for journal support.
32351 (grub_ext3_journal_header): New structure.
32352 (grub_ext3_journal_revoke_header): Likewise.
32353 (grub_ext3_journal_block_tag): Likewise.
32354 (grub_ext3_journal_sblock): Likewise.
32355 (grub_fshelp_node): New members logfile and journal.
32356 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
32357 grub_fshelp_map_block to get real block number.
32358 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
32359 number.
32360 (grub_ext2_read_inode): Likewise.
32361 (grub_ext3_get_journal): New function.
32362 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
32363 (grub_ext2_close): Release memory used by journal.
32364
32365 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
32366 (REISERFS_MAGIC_DESC_BLOCK): New macro.
32367 (grub_reiserfs_transaction_header): Renamed to
32368 grub_reiserfs_description_block, replace field data with real_blocks.
32369 (grub_reiserfs_commit_block): New structure.
32370 (grub_reiserfs_data): New member journal.
32371 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
32372 number.
32373 (grub_reiserfs_read_symlink): Likewise.
32374 (grub_reiserfs_iterate_dir): Likewise.
32375 (grub_reiserfs_open): Likewise.
32376 (grub_reiserfs_read): Likewise.
32377 (grub_reiserfs_get_journal): New function.
32378 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
32379 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
32380 using grub_reiserfs_get_journal.
32381 (grub_reiserfs_close): Release memory used by journal.
32382
32383 * fs/affs.c (grub_affs_read_block): Change block type to
32384 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
32385
32386 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
32387
32388 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
32389
32390 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
32391
32392 * fs/udf.c (grub_udf_read_block): Change block type to
32393 grub_disk_addr_t. Use type cast to avoid warning.
32394
32395 * fs/xfs.c (grub_xfs_read_block): Likewise.
32396
32397 2008-05-16 Christian Franke <franke@computer.org>
32398
32399 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
32400 to ensure that break with ESC will always work.
32401 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
32402 Remove ESC from keyboard queue.
32403
32404 2008-05-16 Christian Franke <franke@computer.org>
32405
32406 * util/biosdisk.c: [__CYGWIN__] Add includes.
32407 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
32408 (get_os_disk): Move variable declarations to OS specific
32409 parts to avoid warning.
32410 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
32411 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
32412 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
32413 Cygwin.
32414 * util/getroot.c: [__CYGWIN__] Add includes.
32415 (strip_extra_slashes): Fix "/" case.
32416 [__CYGWIN__] (get_win32_path): New function.
32417 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
32418 [__CYGWIN__] (find_root_device): Disable.
32419 [__CYGWIN__] (get_bootsec_serial): New function.
32420 [__CYGWIN__] (find_cygwin_root_device): Likewise.
32421 [__linux__] (grub_guess_root_device): Add early returns to simplify
32422 structure.
32423 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
32424 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
32425 check for Linux only.
32426
32427 2008-05-15 Bean <bean123ch@gmail.com>
32428
32429 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
32430 keyboard hang problem in apple's intel mac.
32431
32432 2008-05-09 Robert Millan <rmh@aybabtu.com>
32433
32434 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
32435 devices.
32436 * util/grub-mkdevicemap.c (get_virtio_disk_name)
32437 (make_device_map): Likewise.
32438 Reported by Aurelien Jarno <aurel32@debian.org>
32439
32440 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
32441
32442 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
32443 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
32444 (make_device_map): Output entries for xvd type disks.
32445
32446 2008-05-07 Robert Millan <rmh@aybabtu.com>
32447
32448 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
32449 devices.
32450 * util/grub-mkdevicemap.c (get_cciss_disk_name)
32451 (make_device_map): Likewise.
32452 Reported by Roland Dreier <rdreier@cisco.com>
32453
32454 2008-05-07 Robert Millan <rmh@aybabtu.com>
32455
32456 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
32457 grub_strstr() call. Correct a few mistakes in failure path handling.
32458
32459 2008-05-06 Robert Millan <rmh@aybabtu.com>
32460
32461 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
32462 Do not print a trailing slash (therefore, the root directory is an
32463 empty string).
32464 (convert_system_path_to_grub_path): Do not remove trailing slash
32465 from make_system_path_relative_to_its_root() output.
32466
32467 * util/i386/pc/grub-install.in: Add trailing slash to output from
32468 make_system_path_relative_to_its_root().
32469
32470 2008-05-06 Robert Millan <rmh@aybabtu.com>
32471
32472 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
32473 ensures that output lines aren't intermangled with those sent to
32474 stderr (via grub_util_info()).
32475 * util/grub-probe.c (grub_refresh): Likewise.
32476 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
32477
32478 2008-05-05 Christian Franke <franke@computer.org>
32479
32480 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
32481 Add Cygwin device names.
32482 (get_ide_disk_name) [__CYGWIN__]: Likewise.
32483 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
32484 (check_device): Return error instead of success on empty name.
32485 (make_device_map): Move label inside linux specific code to
32486 prevent compiler warning.
32487
32488 2008-04-30 Robert Millan <rmh@aybabtu.com>
32489
32490 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
32491 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
32492 first boot option.
32493 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
32494
32495 2008-04-29 Robert Millan <rmh@aybabtu.com>
32496
32497 * docs/grub.cfg: New file (example GRUB configuration).
32498
32499 2008-04-26 Robert Millan <rmh@aybabtu.com>
32500
32501 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
32502 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
32503 and `disk/ieee1275/nand.c'.
32504
32505 2008-04-25 Bean <bean123ch@gmail.com>
32506
32507 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
32508 i386-linuxbios.
32509
32510 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
32511 change the buffer size to 4096 for cdrom device.
32512
32513 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
32514 and nand.mod.
32515 (_linux_mod_SOURCES): New variable.
32516 (_linux_mod_CFLAGS): Likewise.
32517 (_linux_mod_LDFLAGS): Likewise.
32518 (linux_mod_SOURCES): Likewise.
32519 (linux_mod_CFLAGS): Likewise.
32520 (linux_mod_LDFLAGS): Likewise.
32521 (nand_mod_SOURCES): Likewise.
32522 (nand_mod_CFLAGS): Likewise.
32523 (nand_mod_LDFLAGS): Likewise.
32524
32525 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
32526 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
32527 type property. (nand device in olpc don't have this property)
32528
32529 * include/grub/disk.h (grub_disk_dev_id): New macro
32530 GRUB_DISK_DEVICE_NAND_ID.
32531
32532 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
32533 function prototype.
32534 (grub_rescue_cmd_initrd): Likewise.
32535
32536 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
32537 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
32538 ofw_cif_handler and ofw_idt, adjust padding number.
32539
32540 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
32541 GRUB_MACHINE_IEEE1275 is defined.
32542
32543 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
32544 Use NESTED_FUNC_ATTR attribute on the hook parameter.
32545
32546 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
32547 on nested function heap_init.
32548 (grub_upper_mem): New variable for i386-ieee1275.
32549 (grub_get_extended_memory): New function for i386-ieee1275.
32550 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
32551
32552 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
32553 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
32554 property.
32555
32556 * loader/i386/ieee1275/linux.c: New file.
32557
32558 * loader/i386/ieee1275/linux_normal.c: New file.
32559
32560 * disk/ieee1275/nand.c: New file.
32561
32562 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
32563
32564 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
32565 value.
32566 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
32567
32568 2008-04-18 Robert Millan <rmh@aybabtu.com>
32569
32570 Restructures early code path on ieee1275 to unify grub_main() as
32571 the first C function that is executed in every platform.
32572
32573 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
32574 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
32575 cmain().
32576 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
32577 * kern/ieee1275/cmain.c (cmain): Rename to ...
32578 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
32579 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
32580 at the beginning.
32581
32582 2008-04-18 Robert Millan <rmh@aybabtu.com>
32583
32584 * util/update-grub.in: Fix syntax error when setting
32585 `GRUB_PRELOAD_MODULES'.
32586 Reported by Stephane Chazelas <stephane@artesyncp.com>
32587
32588 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
32589
32590 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
32591 section into account, newer toolchains generate unique build ids
32592 * configure.ac: remove the test for --build-id=none acceptance,
32593 we want build ids to be preserved
32594 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
32595 far from other sections don't cause the raw binary images grow
32596 size
32597
32598 2008-04-15 Robert Millan <rmh@aybabtu.com>
32599
32600 * disk/lvm.c: Update copyright year.
32601 * kern/misc.c: Likewise.
32602
32603 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32604
32605 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
32606 there is no memory left for physical volume name.
32607
32608 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32609
32610 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
32611 volume name mapping to support bigger than 9 character names properly.
32612
32613 2008-04-13 Robert Millan <rmh@aybabtu.com>
32614
32615 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
32616 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
32617
32618 2008-04-13 Christian Franke <franke@computer.org>
32619
32620 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
32621 to create a floppy emulation boot CD when non emulation mode
32622 does not work.
32623 Enable Joliet CD filesystem extension.
32624
32625 2008-04-13 Robert Millan <rmh@aybabtu.com>
32626
32627 * kern/misc.c (grub_strncat): Fix off-by-one error.
32628 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
32629
32630 * kern/env.c (grub_env_context_close): Clear current context, not
32631 previous one.
32632 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
32633
32634 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
32635
32636 2008-04-13 Robert Millan <rmh@aybabtu.com>
32637
32638 Improve robustness when handling LVM.
32639
32640 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
32641 (and leave `*p' unmodified).
32642 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
32643 through it.
32644 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
32645 iterating through it.
32646 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
32647 through it.
32648 (grub_lvm_scan_device): Check the return value (and fail gracefully
32649 when due) on each grub_lvm_getvalue() or grub_strstr() call.
32650 Don't assume `vg->pvs != NULL' when iterating through it.
32651
32652 2008-04-13 Robert Millan <rmh@aybabtu.com>
32653
32654 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
32655 * genmk.rb (partmap): New variable.
32656 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
32657 (#{partmap}): New target rule.
32658 * genpartmaplist.sh: New file.
32659 * Makefile.in (pkglib_DATA): Add partmap.lst.
32660 (partmap.lst): New target rule.
32661 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
32662 modules (including all partition maps), instead of preloading them.
32663
32664 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
32665
32666 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
32667 `linux-boot-prober' (if installed) to detect other operating
32668 systems which are installed on the computer and add them to
32669 the boot menu.
32670 * conf/common.rmk: Build and install 30_os-prober.
32671
32672 2008-04-12 Robert Millan <rmh@aybabtu.com>
32673
32674 * kern/powerpc/ieee1275/init.c: Move from here ...
32675 * kern/ieee1275/init.c: ... to here. Update all users.
32676
32677 * kern/powerpc/ieee1275/cmain.c: Move from here ...
32678 * kern/ieee1275/cmain.c: ... to here. Update all users.
32679
32680 * kern/powerpc/ieee1275/openfw.c: Move from here ...
32681 * kern/ieee1275/openfw.c: ... to here. Update all users.
32682
32683 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
32684 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
32685
32686 2008-04-10 Pavel Roskin <proski@gnu.org>
32687
32688 * configure.ac: Always use "_cv_" in cache variables for
32689 compatibility with Autoconf 2.62.
32690
32691 2008-04-07 Robert Millan <rmh@aybabtu.com>
32692
32693 Revert grub/machine/init.h addition by Pavel (since it breaks on
32694 i386-ieee1275 and others):
32695 * util/i386/pc/misc.c: Remove grub/machine/init.h.
32696 * util/powerpc/ieee1275/misc.c: Likewise.
32697
32698 2008-04-07 Robert Millan <rmh@aybabtu.com>
32699
32700 * util/grub-probe.c (probe): Improve error message.
32701
32702 2008-04-07 Robert Millan <rmh@aybabtu.com>
32703
32704 * util/biosdisk.c (read_device_map): Skip devices that don't exist
32705 (this prevents the presence of a bogus entry from ruining the whole
32706 thing).
32707
32708 2008-04-06 Pavel Roskin <proski@gnu.org>
32709
32710 * util/biosdisk.c: Include grub/util/biosdisk.h.
32711 * util/grub-fstest.c (execute_command): Make static.
32712 * util/grub-mkdevicemap.c (check_device): Likewise.
32713 * util/i386/pc/misc.c: Include grub/machine/init.h.
32714 * util/powerpc/ieee1275/misc.c: Likewise.
32715 * util/lvm.c: Include grub/util/lvm.h.
32716 * util/misc.c: Include grub/kernel.h, grub/misc.h and
32717 grub/cache.h.
32718 * util/raid.c: Include grub/util/raid.h.
32719 (grub_util_getdiskname): Make static.
32720
32721 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
32722 grub_hostfs_fini(), as they are called from grub_init_all() and
32723 grub_fini_all() respectively. This fixes an infinite loop in
32724 grub-fstest due to double registration of hostfs.
32725 Reported by Christian Franke <Christian.Franke@t-online.de>
32726
32727 2008-04-05 Pavel Roskin <proski@gnu.org>
32728
32729 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
32730 all 8 functions. Otherwise, probe function 0 only.
32731
32732 2008-04-04 Pavel Roskin <proski@gnu.org>
32733
32734 * commands/lspci.c (grub_lspci_iter): Print the bus number
32735 correctly.
32736
32737 * commands/lspci.c (grub_pci_classes): Fix typos.
32738 (grub_lspci_iter): Don't print func twice. Print vendor ID
32739 before device ID, as it's normally done.
32740
32741 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
32742 Fix signedness warnings.
32743 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
32744 Likewise.
32745 * util/ieee1275/get_disk_name.c: Include config.h so that
32746 _GNU_SOURCE is defined and getline() is declared. Mark an
32747 unused argument as such. Fix a signedness warning.
32748
32749 2008-04-02 Pavel Roskin <proski@gnu.org>
32750
32751 * genkernsyms.sh.in: Use more robust assignments for CC and
32752 srcdir. Quote srcdir.
32753 * gensymlist.sh.in: Likewise. Assert at the compile time that
32754 the symbol table is not empty.
32755
32756 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
32757 * fs/cpio.c (grub_cpio_read): Likewise.
32758
32759 2008-04-01 Pavel Roskin <proski@gnu.org>
32760
32761 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
32762 * disk/host.c (grub_host_open): Likewise.
32763 * disk/loopback.c (grub_loopback_open): Likewise.
32764 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
32765 disk->id as in disk/host.c, not a multi-character constant.
32766
32767 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
32768 later is obsolete, potentially dangerous and sets a bad example.
32769 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
32770 * util/misc.c (grub_util_get_image_size): Likewise.
32771
32772 * disk/loopback.c (options): Improve help for "--partitions".
32773
32774 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
32775 options to align them with the short options, e.g. "echo -e".
32776
32777 2008-03-31 Bean <bean123ch@gmail.com>
32778
32779 * video/reader/png.c (grub_png_data): New member is_16bit and
32780 image_data.
32781 (grub_png_decode_image_header): Detect 16 bit png image.
32782 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
32783 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
32784 (grub_video_reader_png): Release memory occupied by image_data.
32785
32786 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
32787 4096 bytes.
32788 (grub_nfs_mount): Skip the test for sector per cluster.
32789
32790 * include/grub/ntfs.h (MAX_SPC): Removed.
32791
32792 2008-03-31 Bean <bean123ch@gmail.com>
32793
32794 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
32795 (grub_probe_SOURCES): Add fs/afs.c.
32796 (grub_fstest_SOURCES): Likewise.
32797 (afs_mod_SOURCES): New variable.
32798 (afs_mod_CFLAGS): Likewise.
32799 (afs_mod_LDFLAGS): Likewise.
32800
32801 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
32802 (grub_emu_SOURCES): Likewise.
32803
32804 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32805
32806 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32807
32808 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32809
32810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32811
32812 * fs/afs.c: New file.
32813
32814 2008-03-30 Pavel Roskin <proski@gnu.org>
32815
32816 * disk/host.c: Include grub/misc.h to fix a warning.
32817 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
32818 warnings about implicit declarations.
32819
32820 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
32821 variable.
32822 * include/grub/i386/loader.h: Change declaration of
32823 grub_linux_boot() to match what grub_loader_set() expects.
32824 * util/getroot.c (grub_guess_root_device): Return const char* to
32825 fix a warning.
32826 * util/grub-probe.c (probe): Fix a warning about uninitialized
32827 abstraction_name variable.
32828 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
32829 second argument as unused to fix a warning.
32830
32831 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
32832 missing grub_error() call.
32833
32834 * util/update-grub_lib.in: Define datarootdir, since Autoconf
32835 2.60 and newer uses it to define datadir.
32836
32837 * commands/sleep.c: Fix warning about implicit declaration.
32838 * disk/memdisk.c: Likewise.
32839 * loader/aout.c: Likewise.
32840 * loader/i386/bsd_normal.c: Likewise.
32841 * util/grub-probe.c: Likewise.
32842
32843 * commands/i386/cpuid.c (has_longmode): Make static.
32844 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
32845 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
32846
32847 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
32848 GDT. This is more robust, as %ds can change.
32849 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
32850 calling real_to_prot().
32851 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
32852
32853 2008-03-28 Pavel Roskin <proski@gnu.org>
32854
32855 * kern/i386/pc/startup.S: Assert that uncompressed functions
32856 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
32857 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
32858 code, as they push parts of the code (error handlers) beyond
32859 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
32860 code as correctness and size.
32861
32862 2008-03-28 Pavel Roskin <proski@gnu.org>
32863
32864 * kern/i386/pc/startup.S
32865 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
32866 data block address to the real mode, keep offset minimal. This
32867 works around a bug in AWARD BIOS on old Athlon systems, which
32868 makes CD detection hang.
32869
32870 2008-03-26 Pavel Roskin <proski@gnu.org>
32871
32872 * normal/color.c (grub_parse_color_name_pair): Make `name' a
32873 const.
32874 * include/grub/normal.h: Add grub_parse_color_name_pair()
32875 declaration.
32876
32877 2008-03-24 Bean <bean123ch@gmail.com>
32878
32879 * disk/i386/pc/biosdisk.c (cd_start): Removed.
32880 (cd_count): Removed.
32881 (cd_drive): New variable.
32882 (grub_biosdisk_get_drive): Don't check for (cdN) device.
32883 (grub_biosdisk_call_hook): Likewise.
32884 (grub_biosdisk_iterate): Change cdrom detection method.
32885 (grub_biosdisk_open): Replace cd_start with cd_drive.
32886 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
32887 detect cdrom device.
32888
32889 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
32890 Removed.
32891 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
32892 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
32893 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
32894 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
32895 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
32896 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
32897 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
32898 (grub_biosdisk_cdrp): New structure.
32899 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
32900
32901 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
32902
32903 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
32904 device.
32905
32906 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
32907 New function.
32908
32909 2008-03-20 Robert Millan <rmh@aybabtu.com>
32910
32911 Remove 2 TiB limit in ata.mod.
32912 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
32913 (grub_ata_dumpinfo): Print sector count with 0x%llx.
32914 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
32915 grub_uint64_t instead of grub_uint32_t.
32916
32917 2008-03-05 Bean <bean123ch@gmail.com>
32918
32919 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
32920 (grub_multiboot): Set boot device.
32921
32922 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
32923
32924 2008-03-02 Bean <bean123ch@gmail.com>
32925
32926 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
32927 symlink_buffer.
32928
32929 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
32930
32931 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
32932 texinfo.tex.
32933
32934 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
32935 modified.
32936
32937 * docs/fdl.texi: New file.
32938
32939 * docs/mdate-sh: New file. Copied from gnulib.
32940 * docs/texinfo.tex: Likewise.
32941
32942 * config.guess: Updated from gnulib.
32943 * install-sh: Likewise.
32944
32945 2008-02-28 Robert Millan <rmh@aybabtu.com>
32946
32947 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
32948 (aout_mod_SOURCES): New variable.
32949 (aout_mod_CFLAGS): Likewise.
32950 (aout_mod_LDFLAGS): Likewise.
32951
32952 * conf/i386-ieee1275.rmk: Likewise.
32953
32954 2008-02-28 Robert Millan <rmh@aybabtu.com>
32955
32956 * util/update-grub.in: Reorganise terminal validity check. Accept
32957 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
32958 Based on suggestion by Franklin PIAT.
32959
32960 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
32961
32962 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
32963 function.
32964 * util/getroot.c (grub_util_check_block_device): New function that
32965 returns the given argument if it is a block device and returns NULL else.
32966 * util/grub-probe.c (argument_is_device): New variable.
32967 (probe): Promote device_name from a variable to an argument. Receive
32968 device_name from grub_util_check_block_device() if path is NULL and from
32969 grub_guess_root_device() else. Do not free() device_name anymore.
32970 (options): Introduce new parameter '-d, --device'.
32971 (main): Add description of the new parameter to the help screen.
32972 Rename path variable to argument. Set argument_is_device if the '-d'
32973 option is given. Pass argument to probe() depending on
32974 argument_is_device.
32975
32976 2008-02-24 Bean <bean123ch@gmail.com>
32977
32978 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
32979 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
32980 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
32981 (GRUB_ISO9660_VOLDESC_PART): Likewise.
32982 (GRUB_ISO9660_VOLDESC_END): Likewise.
32983 (grub_iso9660_primary_voldesc): New member escape.
32984 (grub_iso9660_data): New member joliet.
32985 (grub_iso9660_convert_string): New function.
32986 (grub_iso9660_mount): Detect joliet extension.
32987 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
32988 (grub_iso9660_iso9660_label): Likewise.
32989
32990 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
32991 (grub_setup_SOURCES): Add fs/udf.c.
32992 (grub_fstest_SOURCES): Likewise.
32993 (udf_mod_SOURCES): New variable.
32994 (udf_mod_CFLAGS): Likewise.
32995 (udf_mod_LDFLAGS): Likewise.
32996
32997 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
32998 (grub_emu_SOURCES): Likewise.
32999
33000 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33001
33002 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33003
33004 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33005
33006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33007
33008 * fs/udf.c: New file.
33009
33010 2008-02-24 Robert Millan <rmh@aybabtu.com>
33011
33012 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
33013 (normal/lexer.c_DEPENDENCIES): New variables.
33014 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33015 (normal/lexer.c_DEPENDENCIES): Likewise.
33016 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
33017 (normal/lexer.c_DEPENDENCIES): Likewise.
33018 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
33019 (normal/lexer.c_DEPENDENCIES): Likewise.
33020 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33021 (normal/lexer.c_DEPENDENCIES): Likewise.
33022 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33023 (normal/lexer.c_DEPENDENCIES): Likewise.
33024
33025 2008-02-23 Robert Millan <rmh@aybabtu.com>
33026
33027 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
33028 since they were intended to be in hex. This didn't break previously
33029 because of a bug in gpt_partition_map_iterate() (see below).
33030
33031 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
33032 when checking the validity of GPT header.
33033 Remove `partno', since it always provides the same information as `i'.
33034
33035 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
33036
33037 * include/grub/efi/time.h: Fix a wrong comment.
33038
33039 2008-02-19 Pavel Roskin <proski@gnu.org>
33040
33041 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
33042 message.
33043
33044 2008-02-19 Bean <bean123ch@gmail.com>
33045
33046 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
33047 (aout_mod_SOURCES): New variable.
33048 (aout_mod_CFLAGS): Likewise.
33049 (aout_mod_LDFLAGS): Likewise.
33050 (_bsd_mod_SOURCES): New variable.
33051 (_bsd_mod_CFLAGS): Likewise.
33052 (_bsd_mod_LDFLAGS): Likewise.
33053 (bsd_mod_SOURCES): New variable.
33054 (bsd_mod_CFLAGS): Likewise.
33055 (bsd_mod_LDFLAGS): Likewise.
33056
33057 * include/grub/aout.h: New file.
33058
33059 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
33060
33061 * include/grub/i386/bsd.h: New file.
33062
33063 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
33064 to make it public.
33065
33066 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
33067 function is called, so that it's possible to change it inside the hook.
33068 (grub_elf64_load): Likewise.
33069 (grub_elf_file): Don't close the file if elf header is not found.
33070 (grub_elf_close): Close the file if grub_elf_file fails (The new
33071 grub_elf_file won't close it).
33072 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
33073 (grub_elf64_size): Likewise.
33074
33075 * kern/i386/loader.S (grub_unix_real_boot): New function.
33076
33077 * loader/aout.c: New file.
33078
33079 * loader/i386/bsd.c: New file.
33080
33081 * loader/i386/bsd_normal.c: New file.
33082
33083 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
33084
33085 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
33086 can test other formats.
33087
33088 2008-02-19 Robert Millan <rmh@aybabtu.com>
33089
33090 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
33091 (grub_gpt_partition_type_empty): Redefine with macro from
33092 `<grub/gpt_partition.h>'.
33093 (gpt_partition_map_iterate): Adjust partition type comparison.
33094
33095 Export `entry' as partmap-specific `part.data' struct.
33096 (grub_gpt_header, grub_gpt_partentry): Move from here ...
33097
33098 * include/grub/gpt_partition.h (grub_gpt_header)
33099 (grub_gpt_partentry): ... to here (new file).
33100
33101 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
33102
33103 (grub_gpt_partition_type_bios_boot): New const variable, defined
33104 with macro from `<grub/gpt_partition.h>'.
33105
33106 (setup): Replace `first_start' with `embed_region', which keeps
33107 track of the embed region (and is partmap-agnostic).
33108
33109 Replace find_first_partition_start() with find_usable_region(),
33110 which finds a usable region for embedding using partmap-specific
33111 knowledge (supports PC/MSDOS and GPT).
33112
33113 Fix all assumptions that the embed region start at sector 1, using
33114 `embed_region.start' from now on. Similarly, use `embed_region.end'
33115 rather than `first_start' to calculate available size.
33116
33117 In grub_util_info() message, replace "into after the MBR" with an
33118 indication of the specific sector our embed region starts at.
33119
33120 2008-02-19 Robert Millan <rmh@aybabtu.com>
33121
33122 * DISTLIST: Replace `commands/ieee1275/halt.c' and
33123 `commands/ieee1275/reboot.c' with `commands/halt.c' and
33124 `commands/reboot.c'.
33125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33126 (halt_mod_SOURCES): Likewise.
33127 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33128 (halt_mod_SOURCES): Likewise.
33129
33130 2008-02-17 Christian Franke <franke@computer.org>
33131
33132 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
33133
33134 2008-02-17 Robert Millan <rmh@aybabtu.com>
33135
33136 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33137 set `first_start' to 0 for non-PC/MSDOS partition maps.
33138
33139 2008-02-16 Robert Millan <rmh@aybabtu.com>
33140
33141 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33142 do not assume partition map is PC/MSDOS before performing checks that
33143 are specific to that layout.
33144
33145 2008-02-13 Robert Millan <rmh@aybabtu.com>
33146
33147 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
33148 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
33149 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
33150
33151 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
33152
33153 * configure.ac: Only a cosmetic change on the handling of
33154 -fno-stack-protector.
33155
33156 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
33157
33158 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
33159 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
33160 reboot.c.
33161 (grub_install_SOURCES): Add halt.mod and reboot.mod.
33162 (halt_mod_SOURCES): New variable.
33163 (halt_mod_CFLAGS): Likewise.
33164 (halt_mod_LDFLAGS): Likewise.
33165 (reboot_mod_SOURCES): Likewise.
33166 (reboot_mod_CFLAGS): Likewise.
33167 (reboot_mod_LDFLAGS): Likewise.
33168
33169 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
33170 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
33171 reboot.c.
33172 (halt_mod_SOURCES): Likewise.
33173 (reboot_mod_SOURCES): Likewise.
33174
33175 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
33176 commands/i386/pc/reboot.c by commands/reboot.c.
33177 (reboot_mod_SOURCES): Likewise.
33178
33179 * commands/i386/pc/reboot.c: merge this file ...
33180
33181 * commands/ieee1275/reboot.c: ... and this file ...
33182
33183 * commands/reboot.c: ... to this file.
33184 Add some precompiler directive to include the correct header for
33185 each machine.
33186
33187 * commands/ieee1275/halt.c: move this file ...
33188
33189 * commands/halt.c: ... to here.
33190 Add some precompiler directive to include the correct header for
33191 each machine.
33192
33193 * include/grub/efi/efi.h (grub_reboot): New function declaration.
33194 (grub_halt): Likewise.
33195
33196 * kern/efi/efi.c (grub_reboot): New function.
33197 (grub_halt): Likewise.
33198
33199 2008-02-12 Robert Millan <rmh@aybabtu.com>
33200
33201 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
33202 /dev (like it is done for /dev/mapper). This doesn't provide support
33203 for EVMS, but at least it is now easy to identify the problem when it
33204 arises.
33205
33206 2008-02-11 Robert Millan <rmh@aybabtu.com>
33207
33208 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
33209 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
33210 comparing it with -1, not 0.
33211
33212 2008-02-10 Robert Millan <rmh@aybabtu.com>
33213
33214 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
33215 `disk/lvm.c'.
33216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33217 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
33218
33219 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
33220 `disk/lvm.c' to the end of the list.
33221 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33222 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33223
33224 2008-02-10 Robert Millan <rmh@aybabtu.com>
33225
33226 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
33227 grub_print_error() instead. This will let user know why we're entering
33228 rescue mode.
33229 Based on suggestions from Sam Morris.
33230
33231 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
33232
33233 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
33234 on remaining N args, instead of "--" arg N times.
33235
33236 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
33237
33238 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
33239 (fill_with_default_glyph): Changed to use unknown_glyph for fill
33240 pattern for unknown glyphs.
33241
33242 2008-02-09 Robert Millan <rmh@aybabtu.com>
33243
33244 * configure.ac: Probe for `help2man'.
33245 * Makefile.in (builddir): New variable.
33246 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
33247 or otherwise add a few flags/options to it.
33248 (install-local): For every executable utility or script that is
33249 installed, invoke $(HELP2MAN) to install a manpage based on --help
33250 output.
33251
33252 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
33253 that it doesn't prevent --help from working in build tree.
33254
33255 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
33256 with `bug-grub@gnu.org'.
33257 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
33258 * util/update-grub.in (usage): New function.
33259 Implement proper argument check, with support for --help and --version
33260 (as well as existing -y).
33261
33262 2008-02-09 Christian Franke <franke@computer.org>
33263
33264 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
33265 avoid overwriting previous output.
33266 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
33267
33268 2008-02-09 Robert Millan <rmh@aybabtu.com>
33269
33270 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
33271 drawing the menu.
33272
33273 2008-02-09 Robert Millan <rmh@aybabtu.com>
33274
33275 * commands/sleep.c: New file.
33276 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
33277 (sleep_mod_SOURCES): New variable.
33278 (sleep_mod_CFLAGS): Likewise.
33279 (sleep_mod_LDFLAGS): Likewise.
33280
33281 2008-02-09 Robert Millan <rmh@aybabtu.com>
33282
33283 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
33284 situations in which we can deduce the RAID size and the superblock
33285 doesn't match it.
33286
33287 2008-02-09 Robert Millan <rmh@aybabtu.com>
33288
33289 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
33290 and return a grub_diskmemberlist_t composed of LVM physical volumes.
33291 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
33292
33293 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
33294 and return a grub_diskmemberlist_t composed of physical array members.
33295 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
33296
33297 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
33298 prototype.
33299 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
33300 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
33301 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
33302
33303 * util/grub-probe.c (probe): Move partmap probing code from here ...
33304 (probe_partmap): ... to here.
33305 (probe): Use probe_partmap() once for the disk we're probing, and
33306 additionally, when such disk contains a memberlist() struct member,
33307 once for each disk that is contained in the structure returned by
33308 memberlist().
33309
33310 2008-02-09 Robert Millan <rmh@aybabtu.com>
33311
33312 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
33313 environment variable to 'all' in order to obtain debug output from
33314 non-util/ code.
33315 * util/i386/pc/grub-setup.c (main): Likewise.
33316
33317 2008-02-08 Robert Millan <rmh@aybabtu.com>
33318
33319 * disk/raid.c (grub_raid_scan_device): Check for
33320 `array->device[sb.this_disk.number]' rather than for
33321 `array->device[sb.this_disk.number]->name', since the latter is not
33322 guaranteed to be accessible.
33323
33324 2008-02-08 Robert Millan <rmh@aybabtu.com>
33325
33326 * disk/raid.c: Update copyright.
33327 * fs/cpio.c: Likewise.
33328 * include/grub/raid.h: Likewise.
33329 * loader/i386/pc/multiboot.c: Likewise.
33330 * util/hostfs.c: Likewise.
33331
33332 2008-02-08 Robert Millan <rmh@aybabtu.com>
33333
33334 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
33335 to a grub_disk_t array.
33336 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
33337 `device[x]'.
33338 (grub_raid_scan_device): Replace `device[x].name' accesses with
33339 `device[x]->name'. Simplify initialization of `array->device[x]'.
33340
33341 2008-02-08 Robert Millan <rmh@aybabtu.com>
33342
33343 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
33344 grub_dprintf() calls.
33345 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
33346 error message.
33347
33348 2008-02-07 Christian Franke <franke@computer.org>
33349
33350 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
33351 instead of fseek and ftell to support large files.
33352 (grub_hostfs_read): Likewise.
33353
33354 2008-02-07 Robert Millan <rmh@aybabtu.com>
33355
33356 Patch from Jeroen Dekkers.
33357 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
33358 failure, since successfully reading all array members might not be
33359 required.
33360
33361 2008-02-06 Robert Millan <rmh@aybabtu.com>
33362
33363 * util/grub-probe.c (probe): Simplify partmap probing (with the
33364 assumption that the first word up to the underscore equals to
33365 the module name).
33366
33367 2008-02-06 Christian Franke <franke@computer.org>
33368
33369 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
33370 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
33371 last block of a cpio or tar stream.
33372 Check for "TRAILER!!!" instead of any empty data
33373 block to detect last block of a cpio stream.
33374 (grub_cpio_dir): Fix constness of variable np.
33375 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
33376 cpio or tar trailer is detected. This fixes a crash
33377 on open of a non existing file.
33378
33379 2008-02-05 Bean <bean123ch@gmail.com>
33380
33381 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
33382 address of entry.
33383 (grub_multiboot_load_elf64): Likewise.
33384 (grub_multiboot): Initialize mbi structure.
33385
33386 * util/grub-fstest.c: Don't include unused header file script.h.
33387
33388 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
33389 of file.
33390 (grub_fstest_SOURCES): Likewise.
33391
33392 2008-02-05 Robert Millan <rmh@aybabtu.com>
33393
33394 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
33395 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
33396 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
33397 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
33398
33399 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
33400 (translation_table): Replace hardcoded values with macros
33401 provided by `<grub/term.h>'.
33402
33403 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
33404 (keyboard_map): Correct/add a few values, with macros provided
33405 by `<grub/term.h>'.
33406 (keyboard_map_shift): Zero values that don't differ from their
33407 `keyboard_map' equivalents.
33408 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
33409 Discard the second scan code that is always sent by Caps lock.
33410 Only use `keyboard_map_shift' when it provides a non-zero value,
33411 otherwise fallback to `keyboard_map'.
33412
33413 2008-02-04 Bean <bean123ch@gmail.com>
33414
33415 * Makefile.in (enable_grub_fstest): New variable.
33416
33417 * conf/common.rmk (grub_fstest_init.lst): New rule.
33418 (grub_fstest_init.h): Likewise.
33419 (grub_fstest_init.c): Likewise.
33420 (util/grub-fstest.c_DEPENDENCIES): New variable.
33421 (grub_fstest_SOURCES): Likewise.
33422
33423 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
33424
33425 * util/grub-fstest.c: New file.
33426
33427 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33428
33429 Make grub-setup handle a separate root device.
33430
33431 * util/i386/pc/grub-setup.c (setup): Always open the root device,
33432 so that the root device can be compared with the destination
33433 device.
33434 When embedding the core image, if the root and destination devices
33435 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
33436 0xFF.
33437 When not embedding, set ROOT_DRIVE to 0xFF.
33438
33439 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33440
33441 Add support for having a grub directory in a different drive. This
33442 is still only the data handling part.
33443
33444 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
33445 (codestart): Save %dh in GRUB_ROOT_DRIVE.
33446 (grub_root_drive): New variable.
33447
33448 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
33449 instead of GRUB_BOOT_DRIVE to construct a device name. Set
33450 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
33451 as it was.
33452
33453 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
33454
33455 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
33456 macro.
33457 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
33458
33459 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
33460 is bogus, because PXE booting does not specify any drive
33461 correctly.
33462
33463 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
33464 am not sure if this is really correct.
33465
33466 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
33467 is always identical to the boot drive when booting from a CD.
33468
33469 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
33470 longer.
33471 (root_drive): New variable.
33472 (real_start): Unconditionally set %dh to ROOT_DRIVE.
33473 (setup_sectors): Push %dx right after popping it, because %dh will
33474 be modified later.
33475 (copy_buffer): Restore %dx.
33476
33477 2008-02-03 Robert Millan <rmh@aybabtu.com>
33478
33479 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
33480 use `cdboot.img' for cdrom images.
33481
33482 2008-02-03 Robert Millan <rmh@aybabtu.com>
33483
33484 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
33485 only setup gfxterm when `font' command has succeeded.
33486
33487 2008-02-03 Robert Millan <rmh@aybabtu.com>
33488
33489 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
33490 (grub_rescue_cmd_multiboot_loader)
33491 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
33492
33493 2008-02-03 Pavel Roskin <proski@gnu.org>
33494
33495 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
33496 %edx and %esi from stack only after grub_gate_a20() is called.
33497 grub_gate_a20() clobbers %edx.
33498
33499 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33500
33501 * configure.ac (AC_INIT): Bumped to 1.96.
33502
33503 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
33504 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
33505 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
33506 video/readers/png.c.
33507
33508 2008-02-03 Bean <bean123ch@gmail.com>
33509
33510 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
33511 (cdboot_img_SOURCES): New variable.
33512 (cdboot_img_ASFLAGS): New variable.
33513 (cdboot_img_LDFLAGS): New variable.
33514
33515 * boot/i386/pc/cdboot.S: New file.
33516
33517 * disk/i386/pc/biosdisk.c (cd_start): New variable.
33518 (cd_count): Likewise.
33519 (grub_biosdisk_get_drive): Add support for cd device.
33520 (grub_biosdisk_call_hook): Likewise.
33521 (grub_biosdisk_iterate): Likewise.
33522 (grub_biosdisk_open): Likewise.
33523 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
33524 (grub_biosdisk_rw): Support reading from cd device.
33525 (GRUB_MOD_INIT): Iterate cd devices.
33526
33527 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
33528 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
33529 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
33530
33531 * kern/i386/pc/init.c (make_install_device): Check for cd device.
33532
33533 2008-02-02 Robert Millan <rmh@aybabtu.com>
33534
33535 * commands/read.c: New file.
33536 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
33537 (read_mod_SOURCES): New variable.
33538 (read_mod_CFLAGS): Likewise.
33539 (read_mod_LDFLAGS): Likewise.
33540
33541 2008-02-02 Robert Millan <rmh@aybabtu.com>
33542
33543 * normal/main.c (grub_normal_execute): Check for `menu->size' when
33544 determining whether menu has to be displayed.
33545
33546 2008-02-02 Marco Gerards <marco@gnu.org>
33547
33548 * bus/pci.c: New file.
33549
33550 * include/grub/pci.h: Likewise.
33551
33552 * include/grub/i386/pc/pci.h: Likewise.
33553
33554 * commands/lspci.c: Likewise.
33555
33556 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
33557 `lspci.mod'.
33558 (pci_mod_SOURCES): New variable.
33559 (pci_mod_CFLAGS): Likewise.
33560 (pci_mod_LDFLAGS): Likewise.
33561 (lspci_mod_SOURCES): Likewise.
33562 (lspci_mod_CFLAGS): Likewise.
33563 (lspci_mod_LDFLAGS): Likewise.
33564
33565 2008-02-02 Bean <bean123ch@gmail.com>
33566
33567 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
33568 (grub_ufs_get_file_block): Fix indirect block calculation problem.
33569
33570 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
33571 (grub_xfs_btree_node): New structure.
33572 (grub_xfs_btree_root): New structure.
33573 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
33574 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
33575 (GRUB_XFS_EXTENT_BLOCK): Likewise.
33576 (GRUB_XFS_EXTENT_SIZE): Likewise.
33577 (grub_xfs_read_block): Support btree format type.
33578 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
33579 Use directory block as basic unit.
33580
33581 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
33582
33583 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
33584 __attribute__ ((__regparm__ (1))).
33585
33586 2008-02-01 Robert Millan <rmh@aybabtu.com>
33587
33588 Correct a mistake in previous commit.
33589
33590 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
33591 top.
33592 (normal/command.c_DEPENDENCIES): New variable.
33593
33594 2008-02-01 Robert Millan <rmh@aybabtu.com>
33595
33596 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
33597 top.
33598 (normal/command.c_DEPENDENCIES): New variable.
33599 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
33600 * conf/i386-ieee1275.rmk: Likewise.
33601 * conf/i386-linuxbios.rmk: Likewise.
33602 * conf/i386-pc.rmk: Likewise.
33603 * conf/sparc64-ieee1275.rmk: Likewise.
33604 * conf/powerpc-ieee1275.rmk: Likewise.
33605 (grub_emu_SOURCES): Add `fs/fshelp.c'.
33606
33607 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
33608
33609 2008-02-01 Robert Millan <rmh@aybabtu.com>
33610
33611 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
33612 call at beginning of function.
33613
33614 2008-01-31 Pavel Roskin <proski@gnu.org>
33615
33616 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
33617 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
33618 (grub_mkrescue_SOURCES): Likewise.
33619 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
33620
33621 2008-01-30 Robert Millan <rmh@aybabtu.com>
33622
33623 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
33624 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
33625 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
33626 (grub_probe_SOURCES): ... to here.
33627
33628 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
33629 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
33630 * conf/i386-ieee1275.rmk: Likewise.
33631 * conf/i386-linuxbios.rmk: Likewise.
33632 * conf/powerpc-ieee1275.rmk: Likewise.
33633
33634 2008-01-30 Tristan Gingold <gingold@free.fr>
33635
33636 * kern/rescue.c: Silently accept empty lines.
33637
33638 2008-01-29 Bean <bean123ch@gmail.com>
33639
33640 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
33641 (real_code_2): Code cleanup and change comment style.
33642 (move_memory): Avoid using 32-bit address mode.
33643
33644 2008-01-29 Bean <bean123ch@gmail.com>
33645
33646 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
33647 (png_mod_SOURCES): New variable.
33648 (png_mod_CFLAGS): Likewise.
33649 (png_mod_LDFLAGS): Likewise.
33650
33651 * video/readers/png.c: New file.
33652
33653 2008-01-28 Robert Millan <rmh@aybabtu.com>
33654
33655 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
33656 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
33657 `ifndef GRUB_MOD_GAP' hack.
33658 * util/elf/grub-mkimage.c (add_segments): Likewise.
33659
33660 2008-01-27 Robert Millan <rmh@aybabtu.com>
33661
33662 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
33663 `GRUB_MOD_GAP' for platforms in which it's not defined.
33664 * util/elf/grub-mkimage.c (add_segments): Likewise.
33665
33666 2008-01-27 Robert Millan <rmh@aybabtu.com>
33667
33668 Get grub-emu to build again (including parallel builds).
33669
33670 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
33671 Split into ...
33672 (util/grub-emu.c_DEPENDENCIES): ... this, ...
33673 (normal/execute.c_DEPENDENCIES): ... this, ...
33674 (grub-emu_DEPENDENCIES): ... and this.
33675
33676 * conf/i386-efi.rmk: Likewise.
33677 * conf/i386-linuxbios.rmk: Likewise.
33678 * conf/i386-ieee1275.rmk: Likewise.
33679 * conf/powerpc-ieee1275.rmk: Likewise.
33680 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
33681
33682 2008-01-27 Robert Millan <rmh@aybabtu.com>
33683
33684 * NEWS: Add a few items.
33685
33686 2008-01-27 Robert Millan <rmh@aybabtu.com>
33687
33688 Fix parallel builds with grub-emu. Based on earlier commit for
33689 grub-probe and grub-setup.
33690
33691 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33692 (util/grub-emu.c_DEPENDENCIES): ... this.
33693 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33694 (util/grub-emu.c_DEPENDENCIES): ... this.
33695 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33696 (util/grub-emu.c_DEPENDENCIES): ... this.
33697 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33698 (util/grub-emu.c_DEPENDENCIES): ... this.
33699 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33700 (util/grub-emu.c_DEPENDENCIES): ... this.
33701
33702 2008-01-27 Pavel Roskin <proski@gnu.org>
33703
33704 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
33705 to create a gap between _end and the modules added to the image
33706 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
33707 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
33708 * util/elf/grub-mkimage.c (add_segments): Likewise.
33709
33710 2008-01-26 Pavel Roskin <proski@gnu.org>
33711
33712 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
33713 just return an error.
33714
33715 2008-01-26 Bean <bean123ch@gmail.com>
33716
33717 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
33718 (grub_reiserfs_get_item): Save offset of the next item.
33719 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
33720
33721 2008-01-25 Robert Millan <rmh@aybabtu.com>
33722
33723 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
33724 make all filesystem sources appear together (possibly fixing omissions
33725 while at it).
33726 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33727 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33728 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33729 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33730
33731 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
33732 add `kern/file.c'.
33733 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
33734 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33735 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
33736 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33737
33738 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
33739 (probe): Add a sanity check to make sure of our ability to read
33740 requested files when probing for filesystem type.
33741
33742 * genmk.rb: Update copyright year (2007).
33743
33744 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
33745 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
33746 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
33747 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
33748 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
33749 : Remove function prototypes.
33750
33751 2008-01-25 Robert Millan <rmh@aybabtu.com>
33752
33753 Revert my previous commits (based on wrong assumption of how grub_errno
33754 works).
33755
33756 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
33757 * kern/file.c (grub_file_open): Likewise.
33758
33759 2008-01-24 Pavel Roskin <proski@gnu.org>
33760
33761 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
33762 that hang if GRUB tries to setup colors.
33763 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
33764 colors for firmwares that don't support it.
33765 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
33766 Recognize Open Hack'Ware, set flags to work around its
33767 limitations.
33768
33769 2008-01-24 Robert Millan <rmh@aybabtu.com>
33770
33771 * kern/file.c (grub_file_open): Do not account previous failures of
33772 unrelated functions when grub_errno is checked for.
33773 Reported by Oleg Strikov.
33774
33775 2008-01-24 Bean <bean123ch@gmail.com>
33776
33777 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
33778 (grub_ufs_sblock): New member volume name.
33779 (grub_ufs_find_file): Fix string copy bug.
33780 (grub_ufs_label): Implement this function properly.
33781
33782 * fs/hfs.c (grub_hfs_cnid_type): New enum.
33783 (grub_hfs_iterate_records): Use the correct file number for extents
33784 and catalog file. Fix problem in next index calculation.
33785 (grub_hfs_find_node): Replace recursive function call with loop.
33786 (grub_hfs_iterate_dir): Replace recursive function call with loop.
33787
33788 2008-01-23 Robert Millan <rmh@aybabtu.com>
33789
33790 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
33791 `<grub/symbol.h>' and `<grub/multiboot.h>'.
33792 (grub_multiboot2_real_boot): New function prototype.
33793
33794 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
33795 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
33796
33797 * kern/i386/ieee1275/init.c (grub_os_area_addr)
33798 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
33799
33800 2008-01-23 Robert Millan <rmh@aybabtu.com>
33801
33802 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
33803 #ifdef'ed out grub_printf().
33804
33805 2008-01-23 Robert Millan <rmh@aybabtu.com>
33806
33807 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
33808 grub_dprintf calls, since they make "debug=all" mode unusable.
33809 (grub_console_checkkey): Likewise.
33810
33811 2008-01-23 Robert Millan <rmh@aybabtu.com>
33812
33813 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33814 `term/i386/pc/at_keyboard.c'.
33815 (pkglib_MODULES): Add `serial.mod'.
33816 (serial_mod_SOURCES): New variable.
33817 (serial_mod_CFLAGS): Likewise.
33818 (serial_mod_LDFLAGS): Likewise.
33819
33820 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
33821 `<grub/powerpc/ieee1275/console.h>'.
33822 (grub_keyboard_controller_init): New function prototype.
33823 (grub_console_checkkey): Likewise.
33824 (grub_console_getkey): Likewise.
33825
33826 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
33827 keyboard on i386.
33828
33829 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
33830 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
33831
33832 2008-01-23 Robert Millan <rmh@aybabtu.com>
33833
33834 * kern/i386/pc/init.c (make_install_device): When memdisk image is
33835 present, "(memdisk)/boot/grub" becomes the default prefix.
33836
33837 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
33838 a memdisk tarball with all the modules. Add --overlay=DIR option that
33839 allows users to overlay additional files into the image.
33840
33841 2008-01-23 Robert Millan <rmh@aybabtu.com>
33842
33843 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
33844 and `machine/memory.h'.
33845 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
33846 (_multiboot_mod_SOURCES): New variable.
33847 (_multiboot_mod_CFLAGS): Likewise.
33848 (_multiboot_mod_LDFLAGS): Likewise.
33849 (multiboot_mod_SOURCES): Likewise.
33850 (multiboot_mod_CFLAGS): Likewise.
33851 (multiboot_mod_LDFLAGS): Likewise.
33852
33853 * include/grub/i386/ieee1275/loader.h: New file.
33854
33855 * include/grub/i386/ieee1275/machine.h: Likewise.
33856
33857 * include/grub/i386/ieee1275/memory.h: Likewise.
33858
33859 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
33860 variable declaration.
33861 (grub_os_area_size): Likewise.
33862
33863 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
33864 (grub_lower_mem, grub_upper_mem): New variables.
33865 (grub_stop_floppy): New function (just to make
33866 grub_multiboot2_real_boot() happy).
33867
33868 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
33869 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
33870 (grub_stop): New function.
33871 Include `"../realmode.S"' and `"../loader.S"'.
33872
33873 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
33874 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
33875
33876 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
33877 rely on grub_multiboot2_real_boot() for final boot.
33878
33879 2008-01-22 Robert Millan <rmh@aybabtu.com>
33880
33881 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
33882 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
33883 device that doesn't look like an SD card.
33884 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33885 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
33886 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
33887 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
33888 found.
33889
33890 2008-01-22 Robert Millan <rmh@aybabtu.com>
33891
33892 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
33893 avoid claiming over our own code.
33894
33895 2008-01-22 Bean <bean123ch@gmail.com>
33896
33897 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
33898 (jpeg_mod_SOURCES): New variable.
33899 (jpeg_mod_CFLAGS): Likewise.
33900 (jpeg_mod_LDFLAGS): Likewise.
33901
33902 * video/readers/jpeg.c : New file.
33903
33904 2008-01-22 Bean <bean123ch@gmail.com>
33905
33906 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
33907 there are no more items.
33908
33909 2008-01-21 Robert Millan <rmh@aybabtu.com>
33910
33911 * kern/mm.c (grub_mm_init_region): Improve debug message.
33912
33913 2008-01-21 Robert Millan <rmh@aybabtu.com>
33914
33915 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
33916 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
33917 address.
33918 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
33919 a C macro.
33920 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
33921 Indicates start of upper memory.
33922 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
33923 (generate_image): Abort when image size is big enough to corrupt
33924 upper memory.
33925
33926 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
33927 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
33928 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
33929 instead of hardcoding 0xA0000.
33930 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
33931 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
33932 instead of hardcoding 0xA0000.
33933
33934 2008-01-21 Robert Millan <rmh@aybabtu.com>
33935
33936 * disk/memdisk.c (memdisk_size): New variable.
33937 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
33938 `memdisk_size'.
33939 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
33940 image to dynamic memory.
33941 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
33942 `memdisk_size'. Free memdisk block.
33943
33944 2008-01-21 Robert Millan <rmh@aybabtu.com>
33945
33946 Fix detection of very small filesystems (like tar).
33947
33948 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
33949 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
33950 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
33951 a problem with this disk).
33952
33953 2008-01-21 Robert Millan <rmh@aybabtu.com>
33954
33955 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
33956 on grub_biosdisk_rw_standard() error.
33957
33958 2008-01-21 Robert Millan <rmh@aybabtu.com>
33959
33960 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
33961 recent changes.
33962 * kern/elf.c: Likewise.
33963 * kern/ieee1275/ieee1275.c: Likewise.
33964 * kern/powerpc/ieee1275/openfw.c: Likewise.
33965 * term/ieee1275/ofconsole.c: Likewise.
33966
33967 2008-01-21 Robert Millan <rmh@aybabtu.com>
33968
33969 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
33970
33971 * include/grub/kernel.h (grub_arch_memdisk_addr)
33972 (grub_arch_memdisk_size): Moved from here ...
33973
33974 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
33975 (grub_arch_memdisk_size): ... to here.
33976
33977 2008-01-21 Robert Millan <rmh@aybabtu.com>
33978
33979 Mostly based on bugfix from Bean.
33980
33981 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
33982 attribute with hook() parameter.
33983 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
33984 declaration.
33985 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
33986 attribute with hook() parameter.
33987 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
33988 declaration.
33989
33990 2008-01-21 Robert Millan <rmh@aybabtu.com>
33991
33992 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
33993 (pkglib_MODULES): Add `memdisk.mod'.
33994 (memdisk_mod_SOURCES): New variable.
33995 (memdisk_mod_CFLAGS): Likewise.
33996 (memdisk_mod_LDFLAGS): Likewise.
33997
33998 * disk/memdisk.c: New file.
33999
34000 * include/grub/disk.h (grub_disk_dev_id): Add
34001 `GRUB_DISK_DEVICE_MEMDISK_ID'.
34002
34003 * include/grub/i386/pc/kernel.h
34004 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
34005 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
34006 (grub_kernel_image_size): New variable declaration.
34007 (grub_total_module_size): Likewise.
34008 (grub_memdisk_image_size): Likewise.
34009
34010 * include/grub/i386/pc/memory.h
34011 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
34012
34013 * include/grub/kernel.h: Include `<grub/symbol.h>'.
34014 (grub_arch_memdisk_addr): New variable declaration.
34015 (grub_arch_memdisk_size): Likewise.
34016
34017 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
34018 (grub_arch_memdisk_size): Likewise.
34019
34020 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
34021 (codestart): Replace hardcoded `0x100000' with
34022 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
34023
34024 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
34025 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
34026 not NULL, append the contents of the file it refers to, at the end of
34027 the compressed kernel image. Initialize `grub_memdisk_image_size'
34028 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
34029 (options): Add "memdisk"|'m' option.
34030 (main): Parse --memdisk|-m option, and pass user-provided path as
34031 parameter to generate_image().
34032
34033 2008-01-20 Robert Millan <rmh@aybabtu.com>
34034
34035 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
34036 grub_dprintf() calls from here ...
34037 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
34038
34039 2008-01-20 Robert Millan <rmh@aybabtu.com>
34040
34041 Fix detection of "real mode" when /options/real-mode? doesn't exist.
34042
34043 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
34044 declaration.
34045 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
34046 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
34047 `GRUB_IEEE1275_FLAG_REAL_MODE'.
34048 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
34049 property).
34050 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
34051 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
34052
34053 2008-01-19 Robert Millan <rmh@aybabtu.com>
34054
34055 Get rid of confusing function (superseded by
34056 `grub_ieee1275_get_integer_property')
34057 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
34058 prototype.
34059 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
34060 function.
34061 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
34062 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
34063 in native endianness from grub_ieee1275_get_integer_property().
34064
34065 2008-01-19 Robert Millan <rmh@aybabtu.com>
34066
34067 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
34068 command after "shut-down", since implementations differ on which
34069 the command for halt is.
34070
34071 2008-01-19 Robert Millan <rmh@aybabtu.com>
34072
34073 * include/grub/i386/linuxbios/console.h: Add header protection.
34074 (grub_keyboard_controller_init): New function prototype.
34075 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
34076 (KEYBOARD_COMMAND_READ): Likewise.
34077 (KEYBOARD_COMMAND_WRITE): Likewise.
34078 (KEYBOARD_SCANCODE_SET1): Likewise.
34079 (grub_keyboard_controller_write): New function.
34080 (grub_keyboard_controller_read): Likewise.
34081 (grub_keyboard_controller_init): Likewise.
34082
34083 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
34084 (grub_console_init): On coreboot/LinuxBIOS, call
34085 grub_keyboard_controller_init().
34086
34087 2008-01-19 Robert Millan <rmh@aybabtu.com>
34088
34089 PowerPC changes provided by Pavel Roskin.
34090
34091 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
34092 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
34093 don't rely on cmain() doing it.
34094 * kern/i386/ieee1275/startup.S (_start): Store %eax in
34095 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
34096
34097 2008-01-16 Robert Millan <rmh@aybabtu.com>
34098
34099 * include/grub/i386/linuxbios/memory.h
34100 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
34101 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
34102 receive `table_header' as argument. Instead, probe for it in the
34103 known memory ranges where it can be present.
34104 (grub_available_iterate): Do not pass a fixed `table_header' address
34105 to grub_linuxbios_table_iterate().
34106
34107 2008-01-15 Robert Millan <rmh@aybabtu.com>
34108
34109 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
34110 * conf/i386-ieee1275.rmk: New file.
34111 * include/grub/i386/ieee1275/console.h: Likewise.
34112 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
34113 * include/grub/i386/ieee1275/kernel.h: Likewise.
34114 * include/grub/i386/ieee1275/time.h: Likewise.
34115 * kern/i386/ieee1275/init.c: Likewise.
34116 * kern/i386/ieee1275/startup.S: Likewise.
34117
34118 2008-01-15 Robert Millan <rmh@aybabtu.com>
34119
34120 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
34121 when pointers are 32-bit (but still do set it to one when they are
34122 64-bit).
34123
34124 2008-01-15 Robert Millan <rmh@aybabtu.com>
34125
34126 * include/grub/ieee1275/ieee1275.h
34127 (grub_ieee1275_get_integer_property): New function prototype.
34128
34129 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
34130 (grub_ieee1275_get_integer_property): New function. Wraps around
34131 grub_ieee1275_get_property() to handle endianness.
34132
34133 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
34134 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
34135 where appropriate.
34136 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
34137 (grub_map): Likewise.
34138 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
34139
34140 2008-01-15 Bean <bean123ch@gmail.com>
34141
34142 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
34143 (grub_script_execute_cmdline): Reset grub_errno.
34144
34145 * normal/main.c (read_config_file): Reset grub_errno.
34146
34147 * normal/parse.y (script_init): New.
34148 (script): Move function and menuentry here.
34149 (delimiter): New.
34150 (command): Add delimiter at the end of command.
34151 (commands): Adjust to match the new command.
34152 (commandblock): Remove grub_script_lexer_record_start.
34153 (menuentry): Add grub_script_lexer_record_start, use the new commands.
34154 (if): Use the new commands.
34155
34156 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
34157
34158 2008-01-15 Robert Millan <rmh@aybabtu.com>
34159
34160 * normal/menu.c (run_menu): Move timeout message from here ...
34161 (print_timeout): ... to here.
34162 (run_menu): Use print_timeout() once during initial draw to print
34163 the whole message, and again in every clock tick to update only
34164 the number of seconds.
34165
34166 2008-01-15 Robert Millan <rmh@aybabtu.com>
34167
34168 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
34169 actual size of `available' from grub_ieee1275_get_property(), and
34170 restrict parsing to that bound.
34171
34172 2008-01-15 Christian Franke <franke@computer.org>
34173
34174 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
34175 (argp_program_version): Remove variable.
34176 (argp_program_bug_address): Likewise.
34177 (options): Convert from struct argp_option to struct option.
34178 (struct arguments): Remove.
34179 (parse_opt): Remove.
34180 (usage): New function.
34181 (main): Replace struct args members by simple variables.
34182 Replace argp_parse() by getopt_long().
34183 Add switch to evaluate options.
34184 Add missing "(...)" around root_dev in prefix string.
34185
34186 2008-01-14 Robert Millan <rmh@aybabtu.com>
34187
34188 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
34189 for grub_ieee1275_exit(), in order to improve portability.
34190
34191 2008-01-14 Robert Millan <rmh@aybabtu.com>
34192
34193 * util/grub.d/10_linux.in (prefix): Define.
34194 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
34195
34196 2008-01-13 Pavel Roskin <proski@gnu.org>
34197
34198 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
34199 grub_errno if no errors have been detected.
34200
34201 2008-01-12 Robert Millan <rmh@aybabtu.com>
34202
34203 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
34204 (grub_util_get_dev_abstraction): New function prototype.
34205
34206 * util/getroot.c: Include `<grub/util/getroot.h>'
34207 (grub_util_get_grub_dev): Move detection of abstraction type to ...
34208 (grub_util_get_dev_abstraction): ... here (new function).
34209
34210 * util/grub-probe.c: Convert PRINT_* to an enum. Add
34211 `PRINT_ABSTRACTION'.
34212 (probe): Probe for abstraction type when requested.
34213 (main): Understand `--target=abstraction'.
34214
34215 * util/i386/efi/grub-install.in: Add abstraction module to core
34216 image when it is found to be necessary.
34217 * util/i386/pc/grub-install.in: Likewise.
34218 * util/powerpc/ieee1275/grub-install.in: Likewise.
34219
34220 * util/update-grub_lib.in (font_path): Return system path without
34221 converting to GRUB path.
34222 * util/update-grub.in: Convert system path returned by font_path()
34223 to a GRUB path. Use `grub-probe -t abstraction' to determine what
34224 abstraction module is needed for loading fonts (if any). Export
34225 that as `GRUB_PRELOAD_MODULES'.
34226 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
34227 insmod commands).
34228
34229 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
34230
34231 Remove some unused code from reiserfs.
34232
34233 * fs/reiserfs.c (struct grub_reiserfs_key)
34234 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
34235 (struct grub_reiserfs_node_body): Removed.
34236 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34237 Likewise.
34238 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34239 Likewise.
34240 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34241 Likewise.
34242 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34243 Likewise.
34244 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34245 Likewise.
34246 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
34247 Likewise.
34248 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34249 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34250 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34251
34252 2008-01-10 Robert Millan <rmh@aybabtu.com>
34253
34254 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
34255 Determines if a file is garbage left by packaging systems, etc.
34256 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
34257 for processing /etc/grub.d scripts.
34258 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
34259 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
34260 as a condition for processing Linux images.
34261
34262 2008-01-10 Pavel Roskin <proski@gnu.org>
34263
34264 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
34265 to compile reiserfs.c on PowerPC.
34266
34267 2008-01-10 Robert Millan <rmh@aybabtu.com>
34268
34269 * kern/device.c (grub_device_iterate): Do not abort device iteration
34270 when one of the devices cannot be opened.
34271 * kern/disk.c (grub_disk_open): Do not account previous failures of
34272 unrelated functions when grub_errno is checked for.
34273
34274 2008-01-08 Robert Millan <rmh@aybabtu.com>
34275
34276 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
34277 `! grub_linux_is_bzimage', change order of address comparison to make
34278 it more intuitive, and improve "too big zImage" error message.
34279
34280 2008-01-08 Robert Millan <rmh@aybabtu.com>
34281
34282 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
34283 `$(update-grub_DATA)'.
34284 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
34285 targets.
34286
34287 2008-01-07 Robert Millan <rmh@aybabtu.com>
34288
34289 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
34290 which instruction is modified by grub-setup during installation
34291 (since it wasn't obvious by only looking at this file).
34292
34293 2008-01-07 Robert Millan <rmh@aybabtu.com>
34294
34295 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
34296 listing actual TODO items.
34297
34298 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34299
34300 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
34301 correctly.
34302 (grub_reiserfs_get_key_offset): Likewise.
34303 (grub_reiserfs_set_key_offset): Likewise.
34304 (grub_reiserfs_set_key_type): Likewise.
34305 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
34306
34307 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
34308 better to remove the bitfield version completely.
34309
34310 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34311
34312 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
34313 allocated from the heap, due to the fshelp implementation.
34314 (grub_reiserfs_dir): Free NODE, due to the same reason.
34315
34316 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34317
34318 Mostly from Vincent Pelletier:
34319
34320 * fs/reiserfs.c: New file.
34321
34322 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
34323 (reiserfs_mod_SOURCES): New variable.
34324 (reiserfs_mod_CFLAGS): Likewise.
34325 (reiserfs_mod_LDFLAGS): Likewise.
34326
34327 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
34328 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
34329 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
34330 normal/color.c.
34331
34332 2008-01-06 Robert Millan <rmh@aybabtu.com>
34333
34334 * normal/color.c: Remove `<grub/env.h>'.
34335
34336 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
34337
34338 * include/grub/normal.h: Include <grub/env.h>.
34339
34340 2008-01-05 Robert Millan <rmh@aybabtu.com>
34341
34342 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
34343 usage example with `(hd0,1)'.
34344 Reported by Samuel Thibault.
34345
34346 2008-01-05 Robert Millan <rmh@aybabtu.com>
34347
34348 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
34349 (grub_linux_boot_zimage): Rename to ...
34350 (grub_linux_boot): ... this.
34351 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
34352 (grub_linux_boot_zimage): Conditionalize zImage copy.
34353
34354 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
34355 (grub_linux_boot_bzimage): Remove prototype.
34356 (grub_linux_boot_zimage): Rename to ...
34357 (grub_linux_boot): ... this.
34358
34359 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
34360 (grub_linux_boot): Remove function.
34361
34362 2008-01-05 Robert Millan <rmh@aybabtu.com>
34363
34364 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
34365 (grub_env_write_color_highlight): Likewise.
34366 (grub_wait_after_message): Likewise.
34367
34368 * normal/color.c: New file.
34369
34370 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34371 (normal_mod_DEPENDENCIES): Likewise.
34372
34373 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34374 (normal_mod_DEPENDENCIES): Likewise.
34375
34376 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34377 (normal_mod_DEPENDENCIES): Likewise.
34378
34379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34380 (normal_mod_DEPENDENCIES): Likewise.
34381
34382 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
34383 for waiting after a message is printed.
34384 * normal/main.c (read_config_file): Likewise.
34385 (grub_normal_init): Register grub_env_write_color_normal() and
34386 grub_env_write_color_highlight() hooks. Mark `color_normal' and
34387 `color_highlight' variables as global.
34388
34389 * normal/menu.c (grub_wait_after_message): New function.
34390 (grub_color_menu_normal): New variable. Replaces ...
34391 (GRUB_COLOR_MENU_NORMAL): ... this macro.
34392 (grub_color_menu_highlight): New variable. Replaces ...
34393 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
34394 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
34395 `GRUB_TERM_COLOR_STANDARD'.
34396 (print_message): Use `grub_setcolorstate' to reload colors. Rename
34397 `normal_code' and `highlight_code' to `old_color_normal' and
34398 `old_color_highlight', respectively.
34399 (grub_menu_init_page): Update colors when drawing the menu, based on
34400 `menu_color_normal' and `menu_color_highlight' variables.
34401 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
34402 a message is printed.
34403
34404 2008-01-05 Robert Millan <rmh@aybabtu.com>
34405
34406 * kern/env.c (grub_env_context_open): Propagate hooks for global
34407 variables to new context.
34408
34409 * kern/main.c (grub_set_root_dev): Export `root' variable.
34410
34411 2008-01-05 Robert Millan <rmh@aybabtu.com>
34412
34413 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
34414 discs unconditionally, since udev and others have options to provide
34415 them.
34416
34417 2008-01-05 Robert Millan <rmh@aybabtu.com>
34418
34419 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
34420
34421 2008-01-04 Christian Franke <franke@computer.org>
34422
34423 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
34424 of eisa_mmap.
34425
34426 2008-01-03 Pavel Roskin <proski@gnu.org>
34427
34428 * kern/i386/linuxbios/init.c: Put "void" to all function
34429 declarations with no arguments.
34430 * kern/powerpc/ieee1275/init.c: Likewise.
34431 * term/i386/pc/at_keyboard.c: Likewise.
34432 * term/i386/pc/vga_text.c: Likewise.
34433 * util/grub-mkdevicemap.c: Likewise.
34434
34435 2008-01-02 Robert Millan <rmh@aybabtu.com>
34436
34437 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
34438 message when loaded image is out of bounds.
34439 (grub_multiboot_load_elf64): Likewise.
34440
34441 2008-01-02 Pavel Roskin <proski@gnu.org>
34442
34443 * util/grub.d/10_linux.in: Try version without ".old" when
34444 looking for initrd. It's better to use initrd from the newer
34445 kernel of the same version than no initrd at all.
34446
34447 2008-01-01 Robert Millan <rmh@aybabtu.com>
34448
34449 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
34450
34451 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
34452
34453 * include/grub/video.h: Added grub_video_unmap_color and
34454 grub_video_get_active_render_target.
34455 (grub_video_adapter): Added unmap_color and get_active_render_target.
34456
34457 * video/video.c: Added grub_video_unmap_color and
34458 grub_video_get_active_render_target.
34459 (grub_video_get_info): Changed method to accept NULL pointer as an
34460 argument to allow detection of active video adapter.
34461
34462 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
34463 grub_video_vbe_unmap_color_int.
34464 Added grub_video_vbe_unmap_color and
34465 grub_video_vbe_get_active_render_target.
34466 (grub_video_vbe_adapter): Added unmap_color and
34467 get_active_render_target.
34468
34469 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
34470 with grub_video_vbe_unmap_color_int.
34471
34472 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
34473 (DEFAULT_NORMAL_COLOR): Likewise.
34474 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
34475 (DEFAULT_FG_COLOR): Removed.
34476 (DEFAULT_BG_COLOR): Likewise.
34477 (DEFAULT_CURSOR_COLOR): Changed value.
34478 (grub_virtual_screen): Added standard_color_setting,
34479 normal_color_setting, highlight_color_setting and term_color.
34480 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
34481 (bitmap_width): Added.
34482 (bitmap_height): Likewise.
34483 (bitmap): Likewise.
34484 (set_term_color): Likewise.
34485 (grub_virtual_screen_setup): Changed to use new terminal coloring
34486 settings.
34487 (grub_gfxterm_init): Added init for bitmap.
34488 (grub_gfxterm_fini): Added destroy for bitmap.
34489 (redraw_screen_rect): Updated to use background bitmap and new
34490 terminal coloring.
34491 (scroll_up): Added optimization for case when there is no bitmap.
34492 (grub_gfxterm_cls): Fixed to use correct background color.
34493 (grub_virtual_screen_setcolorstate): Changed to use new terminal
34494 coloring.
34495 (grub_virtual_screen_setcolor): Likewise.
34496 (grub_virtual_screen_getcolor): Added.
34497 (grub_gfxterm_background_image_cmd): Likewise.
34498 (grub_video_term): Added setcolor and getcolor.
34499 (MOD_INIT): Added registration of background_image command.
34500 (MOD_TERM): Added unregistration for background_image command.
34501
34502 2007-12-30 Pavel Roskin <proski@gnu.org>
34503
34504 * loader/multiboot_loader.c: Fix multiboot command
34505 unregistration. Fix all typos in the word "multiboot".
34506
34507 2007-12-29 Pavel Roskin <proski@gnu.org>
34508
34509 * util/grub.d/10_linux.in: Refactor search for initrd. Add
34510 support for initrd names used in Fedora.
34511
34512 2007-12-26 Bean <bean123ch@gmail.com>
34513
34514 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
34515 (cpio_mod_SOURCES): New variable.
34516 (cpio_mod_CFLAGS): Likewise.
34517 (cpio_mod_LDFLAGS): Likewise.
34518
34519 * fs/cpio.c: New file.
34520
34521 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
34522
34523 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34524
34525 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34526
34527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34528
34529 2007-12-25 Robert Millan <rmh@aybabtu.com>
34530
34531 * include/grub/term.h (struct grub_term): Add `getcolor' function.
34532 (grub_getcolor): New function.
34533
34534 * kern/term.c (grub_getcolor): New function.
34535 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
34536 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
34537 (print_entry): Set normal and highlight colors to
34538 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
34539 respectively, before printing and restore them to old
34540 values afterwards.
34541 (grub_menu_init_page): Likewise. Fill an additional colored space
34542 that would otherwise be left blank.
34543
34544 * term/efi/console.c (grub_console_getcolor): New function.
34545 (struct grub_console_term.getcolor): New variable.
34546 * term/i386/pc/console.c (grub_console_getcolor): New function.
34547 (struct grub_console_term.getcolor): New variable.
34548 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
34549 (struct grub_console_term.getcolor): New variable.
34550
34551 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
34552 (struct grub_console_term.setcolor): Remove variable.
34553 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
34554 (struct grub_console_term.setcolor): Remove variable.
34555 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
34556 (struct grub_console_term.setcolor): Remove variable.
34557 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
34558 (struct grub_console_term.setcolor): Remove variable.
34559
34560 2007-12-25 Robert Millan <rmh@aybabtu.com>
34561
34562 * configure.ac: Search for possible unifont.hex locations, and
34563 define UNIFONT_HEX if found.
34564
34565 * Makefile.in (UNIFONT_HEX): Define variable.
34566 (DATA): Rename to ...
34567 (PKGLIB): ... this. Update all users.
34568 (PKGDATA): New variable.
34569 (pkgdata_IMAGES): Rename to ...
34570 (pkglib_IMAGES): ... this. Update all users.
34571 (pkgdata_MODULES): Rename to ...
34572 (pkglib_MODULES): ... this. Update all users.
34573 (pkgdata_PROGRAMS): Rename to ...
34574 (pkglib_PROGRAMS): ... this. Update all users.
34575 (pkgdata_DATA): Rename to ...
34576 (pkglib_DATA): ... this. Update all users.
34577 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
34578 (unicode.pff, ascii.pff): New rules.
34579 (all-local): Add `$(PKGDATA)' dependency.
34580 (install-local): Process `$(PKGDATA)'.
34581
34582 * util/update-grub_lib.in (font_path): Search for *.pff files in
34583 a few more locations, including `${pkgdata}'.
34584
34585 2007-12-23 Robert Millan <rmh@aybabtu.com>
34586
34587 Patch from Bean <bean123ch@gmail.com>:
34588 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
34589 `size'.
34590
34591 2007-12-21 Bean <bean123ch@gmail.com>
34592
34593 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
34594 (ntfscomp_mod_SOURCES): New variable.
34595 (ntfscomp_mod_CFLAGS): Likewise.
34596 (ntfscomp_mod_LDFLAGS): Likewise.
34597
34598 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
34599 (grub_probe_SOURCES): Likewise.
34600 (grub_emu_SOURCES): Likewise.
34601
34602 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34603 (grub_emu_SOURCES): Likewise.
34604
34605 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34606 (grub_emu_SOURCES): Likewise.
34607
34608 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34609 (grub_emu_SOURCES): Likewise.
34610
34611 * fs/ntfs.c (grub_ntfscomp_func): New variable.
34612 (read_run_list): Renamed to grub_ntfs_read_run_list.
34613 (decomp_nextvcn): Moved to ntfscomp.c.
34614 (decomp_getch): Likewise.
34615 (decomp_get16): Likewise.
34616 (decomp_block): Likewise.
34617 (read_block): Likewise.
34618 (read_data): Partially moved to ntfscomp.c.
34619 (fixup): Change unsigned to grub_uint16_t.
34620 (read_mft): Change unsigned long to grub_uint32_t.
34621 (read_attr): Likewise.
34622 (read_data): Likewise.
34623 (read_run_data): Likewise.
34624 (read_run_list): Likewise.
34625 (read_mft): Likewise.
34626
34627 * fs/ntfscomp.c: New file.
34628
34629 * include/grub/ntfs.h: New file.
34630
34631 2007-12-16 Robert Millan <rmh@aybabtu.com>
34632
34633 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
34634 IDE disk check, since Linux is known to support 20 IDE disks.
34635 Reported by Colin Watson.
34636
34637 2007-12-15 Bean <bean123ch@gmail.com>
34638
34639 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
34640 (lnxboot_img_SOURCES): New variable.
34641 (lnxboot_img_ASFLAGS): Likewise.
34642 (lnxboot_img_LDFLAGS): Likewise.
34643
34644 * boot/i386/pc/lnxboot.S: New file.
34645
34646 2007-11-24 Pavel Roskin <proski@gnu.org>
34647
34648 * configure.ac: Test if '--build-id=none' is supported by the
34649 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
34650 objcopy to generate incorrect binary files (binutils
34651 2.17.50.0.18-1 as shipped by Fedora 8).
34652 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
34653 linking, so that build ID doesn't break the test.
34654
34655 2007-11-24 Pavel Roskin <proski@gnu.org>
34656
34657 * include/grub/i386/time.h: use "void" in the argument list
34658 of grub_cpu_idle().
34659 * include/grub/powerpc/time.h: Likewise.
34660 * include/grub/sparc64/time.h: Likewise.
34661
34662 2007-11-18 Christian Franke <franke@computer.org>
34663
34664 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
34665 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
34666 This fixes the problem that function keys did not work in grub-emu.
34667
34668 2007-11-18 Christian Franke <franke@computer.org>
34669
34670 * disk/host.c (grub_host_open): Remove attribute unused from
34671 name parameter. Add check for "host". This fixes the problem
34672 that grub-emu does not find partitions.
34673
34674 2007-11-18 Christian Franke <franke@computer.org>
34675
34676 * util/hostfs.c (is_dir): New function.
34677 (grub_hostfs_dir): Handle missing dirent.d_type case.
34678 (grub_hostfs_read): Add missing fseek().
34679 (grub_hostfs_label): Clear label pointer. This fixes a crash
34680 of grub-emu on "ls (host)".
34681
34682 2007-11-18 Christian Franke <franke@computer.org>
34683
34684 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
34685 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
34686 to 64 bit boundary by default.
34687
34688 2007-11-18 Bean <bean123ch@gmail.com>
34689
34690 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
34691 (hexdump_mod_SOURCES): New variable.
34692 (hexdump_mod_CFLAGS): Likewise.
34693 (hexdump_mod_LDFLAGS): Likewise.
34694
34695 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34696
34697 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34698
34699 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34700
34701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34702
34703 * include/grub/hexdump.h: New file.
34704
34705 * commands/hexdump.c: New file.
34706
34707 2007-11-10 Robert Millan <rmh@aybabtu.com>
34708
34709 * commands/i386/pc/play.c (beep_off): Switch order of arguments
34710 in grub_outb() calls.
34711 (beep_on): Likewise.
34712
34713 2007-11-10 Christian Franke <franke@computer.org>
34714
34715 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
34716 (grub_menu_run): Likewise.
34717
34718 2007-11-10 Robert Millan <rmh@aybabtu.com>
34719
34720 * include/grub/i386/efi/machine.h: New file.
34721 * include/grub/i386/linuxbios/machine.h: Likewise.
34722 * include/grub/i386/pc/machine.h: Likewise.
34723 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34724 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34725
34726 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
34727 (serial_hw_io_addr): New variable.
34728 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
34729 instead of `(unsigned short *) 0x400'.
34730
34731 2007-11-10 Bean <bean123ch@gmail.com>
34732
34733 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
34734
34735 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34736
34737 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
34738 (vga_mod_SOURCES): Added.
34739 (vga_mod_CFLAGS): Likewise.
34740 (vga_mod_LDFLAGS): Likewise.
34741
34742 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
34743 grub_outb() calls.
34744 (set_map_mask): Likewise.
34745 (set_read_map): Likewise.
34746 (set_read_address): Likewise.
34747 (vga_font): Removed variable.
34748 (get_vga_glyph): Removed function.
34749 (invalidate_char): Likewise.
34750 (write_char): Changed to use grub_font_get_glyph() for font
34751 information.
34752 (grub_vga_putchar): Likewise.
34753 (grub_vga_getcharwidth): Likewise.
34754
34755 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34756
34757 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
34758 flags.
34759 (pxeboot_img_LDFLAGS): Likewise.
34760 (diskboot_img_LDFLAGS): Likewise.
34761 (kernel_img_LDFLAGS): Likewise.
34762
34763 2007-11-06 Robert Millan <rmh@aybabtu.com>
34764
34765 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
34766 in grub_outb() calls.
34767 (serial_hw_init): Likewise.
34768
34769 2007-11-05 Robert Millan <rmh@aybabtu.com>
34770
34771 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
34772 spaces. Skip non-regular files.
34773
34774 2007-11-05 Robert Millan <rmh@aybabtu.com>
34775
34776 * kern/disk.c (grub_disk_firmware_fini)
34777 (grub_disk_firmware_is_tainted): New variables.
34778
34779 * include/grub/disk.h (grub_disk_firmware_fini)
34780 (grub_disk_firmware_is_tainted): Likewise.
34781
34782 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
34783 (grub_disk_biosdisk_fini): ... to here.
34784 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
34785 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
34786 is set. Register grub_disk_biosdisk_fini() in
34787 `grub_disk_firmware_fini'.
34788
34789 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
34790 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
34791 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
34792 to finish existing firmware disk interface.
34793
34794 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
34795 (ata_mod_SOURCES): New variable.
34796 (ata_mod_CFLAGS): Likewise.
34797 (ata_mod_LDFLAGS): Likewise.
34798
34799 2007-11-05 Robert Millan <rmh@aybabtu.com>
34800
34801 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
34802 (grub_ata_wait): Reimplement using grub_millisleep().
34803
34804 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
34805 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
34806
34807 2007-11-03 Marco Gerards <marco@gnu.org>
34808
34809 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
34810 (CRTC_ADDR_PORT): New macro.
34811 (CRTC_DATA_PORT): Likewise.
34812 (CRTC_CURSOR): Likewise.
34813 (CRTC_CURSOR_ADDR_HIGH): Likewise.
34814 (CRTC_CURSOR_ADDR_LOW): Likewise.
34815 (update_cursor): New function.
34816 (grub_console_real_putchar): Call `update_cursor'.
34817 (grub_console_gotoxy): Likewise.
34818 (grub_console_cls): Set the default color when clearing the
34819 screen.
34820 (grub_console_setcursor): Implemented.
34821
34822 2007-11-03 Marco Gerards <marco@gnu.org>
34823
34824 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
34825 become activate.
34826 (grub_ata_pio_write): Likewise.
34827
34828 (grub_atapi_identify): Wait after issuing an ATA command.
34829 (grub_atapi_packet): Likewise.
34830 (grub_ata_identify): Likewise.
34831 (grub_ata_readwrite): Likewise.
34832
34833 2007-11-03 Marco Gerards <marco@gnu.org>
34834
34835 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
34836 (grub_ata_pio_write): Likewise.
34837 (grub_ata_readwrite): Use `grub_error', instead of
34838 returning `grub_errno'.
34839
34840 2007-11-03 Marco Gerards <marco@gnu.org>
34841
34842 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
34843 grub_ata_pio_write once for every single sector, instead of for
34844 multiple sectors.
34845
34846 2007-10-31 Robert Millan <rmh@aybabtu.com>
34847
34848 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
34849
34850 * conf/i386-linuxbios.rmk: New file.
34851
34852 * kern/i386/pc/hardware.c: Likewise.
34853 * term/i386/pc/at_keyboard.c: Likewise.
34854 * term/i386/pc/vga_text.c: Likewise.
34855
34856 * include/grub/i386/linuxbios/boot.h: Likewise.
34857 * include/grub/i386/linuxbios/console.h: Likewise.
34858 * include/grub/i386/linuxbios/init.h: Likewise.
34859 * include/grub/i386/linuxbios/kernel.h: Likewise.
34860 * include/grub/i386/linuxbios/loader.h: Likewise.
34861 * include/grub/i386/linuxbios/memory.h: Likewise.
34862 * include/grub/i386/linuxbios/serial.h: Likewise.
34863 * include/grub/i386/linuxbios/time.h: Likewise.
34864
34865 * kern/i386/linuxbios/init.c: Likewise.
34866 * kern/i386/linuxbios/startup.S: Likewise.
34867 * kern/i386/linuxbios/table.c: Likewise.
34868
34869 2007-10-31 Marco Gerards <marco@gnu.org>
34870
34871 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
34872 (ata_mod_SOURCES): New variable.
34873 (ata_mod_CFLAGS): Likewise.
34874 (ata_mod_LDFLAGS): Likewise.
34875
34876 * disk/ata.c: New file.
34877
34878 * include/grub/disk.h (grub_disk_dev_id): Add
34879 `GRUB_DISK_DEV_ATA_ID'.
34880
34881 2007-10-31 Robert Millan <rmh@aybabtu.com>
34882
34883 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
34884 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
34885
34886 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
34887 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
34888
34889 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
34890 `<grub/types.h>'.
34891
34892 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
34893
34894 2007-10-27 Robert Millan <rmh@aybabtu.com>
34895
34896 * include/grub/types.h (ULONG_MAX): Define macro.
34897
34898 2007-10-22 Robert Millan <rmh@aybabtu.com>
34899
34900 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
34901 `"../realmode.S"'.
34902 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
34903
34904 2007-10-22 Robert Millan <rmh@aybabtu.com>
34905
34906 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
34907 (pkgdata_MODULES): Add `biosdisk.mod'.
34908 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
34909 variables.
34910
34911 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
34912 (grub_biosdisk_init): Replace with ...
34913 (GRUB_MOD_INIT(biosdisk)): ... this.
34914 (grub_biosdisk_fini): Replace with ...
34915 (GRUB_MOD_FINI(biosdisk)): ... this.
34916
34917 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
34918 (grub_machine_init): Remove call to grub_biosdisk_init().
34919 (grub_machine_fini): Remove call to grub_machine_fini().
34920
34921 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
34922
34923 2007-10-22 Robert Millan <rmh@aybabtu.com>
34924
34925 * include/grub/time.h: New file.
34926 * include/grub/i386/time.h: Likewise.
34927 * include/grub/powerpc/time.h: Likewise.
34928 * include/grub/sparc64/time.h: Likewise.
34929
34930 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
34931 instances to ...
34932 (KERNEL_MACHINE_TIME_HEADER): ... this.
34933 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
34934 instances to ...
34935 (KERNEL_MACHINE_TIME_HEADER): ... this.
34936 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
34937 instances to ...
34938 (KERNEL_MACHINE_TIME_HEADER): ... this.
34939
34940 * kern/i386/efi/init.c: Include `<grub/time.h>'.
34941 (grub_millisleep): New function.
34942 * kern/i386/pc/init.c: Include `<grub/time.h>'.
34943 (grub_millisleep): New function.
34944 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
34945 Remove `grub/machine/time.h' include.
34946 (grub_millisleep): New function.
34947 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
34948 Remove `grub/machine/time.h' include.
34949 (grub_millisleep): New function.
34950
34951 * include/grub/misc.h (grub_div_roundup): New function.
34952
34953 * kern/misc.c: Include `<grub/time.h>'.
34954 (grub_millisleep_generic): New function.
34955
34956 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
34957 Add `time.h'.
34958 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
34959 Add `time.h'.
34960 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
34961 `machine/time.h'. Add `time.h'.
34962 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34963
34964 2007-10-21 Robert Millan <rmh@aybabtu.com>
34965
34966 * include/grub/misc.h (grub_max): New function.
34967
34968 2007-10-21 Robert Millan <rmh@aybabtu.com>
34969
34970 * util/misc.c (grub_util_info): Call fflush() before returning.
34971
34972 2007-10-20 Robert Millan <rmh@aybabtu.com>
34973
34974 * genmk.rb (Image): Copy `extra_flags' from here ...
34975 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
34976
34977 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
34978 to `argc' and `args' arguments.
34979
34980 2007-10-17 Robert Millan <rmh@aybabtu.com>
34981
34982 * kern/i386/loader.S: New file.
34983
34984 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
34985 * kern/i386/loader.S (grub_linux_prot_size)... to here.
34986 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
34987 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
34988 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
34989 * kern/i386/loader.S (grub_linux_real_addr)... to here.
34990 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
34991 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
34992 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
34993 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
34994 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
34995 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
34996 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
34997 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
34998
34999 * kern/i386/realmode.S: New file.
35000
35001 * kern/i386/pc/startup.S (protstack): Moved from here ...
35002 * kern/i386/realmode.S (protstack)... to here.
35003 * kern/i386/pc/startup.S (gdt): Moved from here ...
35004 * kern/i386/realmode.S (gdt)... to here.
35005 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
35006 * kern/i386/realmode.S (prot_to_real)... to here.
35007
35008 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
35009 `kern/i386/realmode.S'.
35010
35011 2007-10-17 Robert Millan <rmh@aybabtu.com>
35012
35013 * include/grub/i386/loader.h: New file.
35014
35015 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
35016 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
35017 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
35018 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
35019 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
35020 * include/grub/i386/loader.h (grub_linux_prot_size)
35021 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
35022 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
35023 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
35024 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
35025
35026 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
35027
35028 2007-10-15 Robert Millan <rmh@aybabtu.com>
35029
35030 * normal/misc.c (grub_normal_print_device_info): Do not probe for
35031 filesystem when dev->disk is unset.
35032 Do probe for filesystem even when dev->disk->has_partitions is set.
35033 In case a filesystem is found, always report it.
35034 In case it isn't, if dev->disk->has_partitions is set, report that
35035 a partition table was found instead of reporting that no filesystem
35036 could be identified.
35037
35038 2007-10-12 Robert Millan <rmh@aybabtu.com>
35039
35040 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
35041 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
35042
35043 * include/grub/types.h (grub_host_to_target16): New macro.
35044 (grub_host_to_target32): Likewise.
35045 (grub_host_to_target64): Likewise.
35046 (grub_target_to_host16): Likewise.
35047 (grub_target_to_host32): Likewise.
35048 (grub_target_to_host64): Likewise.
35049
35050 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
35051 Renamed from to ...
35052 (GRUB_MOD_ALIGN): ...this. Update all users.
35053
35054 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
35055 grub_host_to_target32.
35056 Replace grub_be_to_cpu32 with grub_target_to_host32.
35057 (load_modules): Likewise.
35058 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
35059 Replace grub_be_to_cpu32 with grub_target_to_host32.
35060 Replace grub_cpu_to_be16 with grub_host_to_target16.
35061 Replace grub_cpu_to_be32 grub_host_to_target32.
35062
35063 2007-10-12 Robert Millan <rmh@aybabtu.com>
35064
35065 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
35066 * util/elf/grub-mkimage.c: ... here.
35067
35068 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
35069 `util/powerpc/ieee1275/grub-mkimage.c'.
35070
35071 2007-10-07 Robert Millan <rmh@aybabtu.com>
35072
35073 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
35074 and make it easier to figure out.
35075 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
35076 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
35077 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
35078 leave us with less than HEAP_MIN_SIZE total heap.
35079 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
35080
35081 2007-10-03 Robert Millan <rmh@aybabtu.com>
35082
35083 * include/grub/i386/io.h: New file.
35084 * commands/i386/pc/play.c (inb): Removed.
35085 (outb): Removed.
35086 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35087 with grub_outb().
35088 * term/i386/pc/serial.c (inb): Removed.
35089 (outb): Removed.
35090 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35091 with grub_outb().
35092 * term/i386/pc/vga.c (inb): Removed.
35093 (outb): Removed.
35094 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35095 with grub_outb().
35096
35097 2007-10-02 Robert Millan <rmh@aybabtu.com>
35098
35099 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
35100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35101 Reported by Marcin Kurek.
35102
35103 2007-09-07 Robert Millan <rmh@aybabtu.com>
35104
35105 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
35106 SmartFirmware version updates (as released by Sven Luther), and avoid
35107 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
35108 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
35109 known broken.
35110
35111 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35112
35113 From Hitoshi Ozeki:
35114 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
35115 when merging two regions.
35116
35117 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35118
35119 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
35120 * normal/completion.c (grub_normal_do_completion): Likewise.
35121 Reported by Hitoshi Ozeki.
35122
35123 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35124
35125 Do not use devices at boot in chainloading.
35126
35127 * loader/i386/pc/chainloader.c (boot_drive): New variable.
35128 (boot_part_addr): Likewise.
35129 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
35130 with BOOT_DRIVE and BOOT_PART_ADDR.
35131 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
35132 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
35133
35134 2007-08-29 Robert Millan <rmh@aybabtu.com>
35135
35136 Patch from Simon Peter <dn.tlp@gmx.net>:
35137 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
35138 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
35139 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
35140 util/i386/pc/grub-setup.c_DEPENDENCIES.
35141 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
35142 util/grub-probe.c_DEPENDENCIES.
35143 * conf/powerpc-ieee1275.rmk: Likewise.
35144
35145 2007-08-28 Robert Millan <rmh@aybabtu.com>
35146
35147 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
35148 to tell grub-mkdevicemap how to name devices.
35149 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
35150 feature).
35151
35152 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
35153 util/i386/get_disk_name.c.
35154 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
35155 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
35156 util/ieee1275/get_disk_name.c.
35157
35158 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
35159
35160 * DISTLIST: Add util/i386/get_disk_name.c and
35161 util/ieee1275/get_disk_name.c.
35162
35163 * util/grub-mkdevicemap.c: Replace device naming logic with
35164 grub_util_get_disk_name() calls.
35165
35166 2007-08-20 Robert Millan <rmh@aybabtu.com>
35167
35168 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
35169 (so that it works for both plural and singular quantities).
35170
35171 2007-08-05 Robert Millan <rmh@aybabtu.com>
35172
35173 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
35174 so that [xz] isn't taken into account when determining order.
35175
35176 2007-08-02 Marco Gerards <marco@gnu.org>
35177
35178 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
35179 `include/multiboot2.h', `include/grub/elfload.h',
35180 `include/multiboot.h', `include/grub/multiboot.h',
35181 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
35182 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
35183 `kern/elf.c', `loader/multiboot_loader.c',
35184 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
35185 `loader/i386/pc/multiboot2.c',
35186 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
35187 `util/i386/pc/grub-mkrescue.in'. Remove
35188 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
35189 `include/grub/i386/pc/util/biosdisk.h' and
35190 `include/grub/powerpc/ieee1275/multiboot.h'.
35191
35192 2007-08-02 Bean <bean123ch@gmail.com>
35193
35194 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
35195 (ntfs_mod_SOURCES): New variable.
35196 (ntfs_mod_CFLAGS): Likewise.
35197 (ntfs_mod_LDFLAGS): Likewise.
35198
35199 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
35200 (grub_probe_SOURCES): Likewise.
35201 (grub_emu_SOURCES): Likewise.
35202
35203 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35204 (grub_emu_SOURCES): Likewise.
35205
35206 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35207 (grub_emu_SOURCES): Likewise.
35208
35209 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
35210
35211 * fs/ntfs.c: New file.
35212
35213 2007-08-02 Bean <bean123ch@gmail.com>
35214
35215 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
35216
35217 * file.h (grub_file): Likewise.
35218
35219 * fshelp.h (grub_fshelp_read_file): Likewise.
35220
35221 * util/i386/pc/grub-setup.c (setup): Likewise.
35222 (save_first_sector): Likewise.
35223 (save_blocklists): Likewise.
35224
35225 * fs/affs.c (grub_affs_read_file): Likewise.
35226
35227 * fs/ext2.c (grub_ext2_read_file): Likewise.
35228
35229 * fs/fat.c (grub_fat_read_data): Likewise.
35230
35231 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
35232
35233 * fs/hfs.c (grub_hfs_read_file): Likewise.
35234
35235 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
35236
35237 * fs/jfs.c (grub_jfs_read_file): Likewise.
35238
35239 * fs/minix.c (grub_minix_read_file): Likewise.
35240
35241 * fs/sfs.c (grub_sfs_read_file): Likewise.
35242
35243 * fs/ufs.c (grub_ufs_read_file): Likewise.
35244
35245 * fs/xfs.c (grub_xfs_read_file): Likewise.
35246
35247 * command/blocklist.c (read_blocklist): Likewise.
35248 (print_blocklist): Likewise.
35249
35250 2007-08-02 Marco Gerards <marco@gnu.org>
35251
35252 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
35253 `util/hostfs.c'.
35254
35255 * disk/host.c: New file.
35256
35257 * util/hostfs.c: Likewise.
35258
35259 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
35260 return `GRUB_ERR_BAD_FS'.
35261 * fs/sfs.c (grub_sfs_mount): Likewise.
35262 * fs/xfs.c (grub_xfs_mount): Likewise.
35263
35264 * include/grub/disk.h (enum grub_disk_dev_id): Add
35265 `GRUB_DISK_DEVICE_HOST_ID'.
35266
35267 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
35268
35269 2007-07-24 Jerone Young <jerone@gmail.com>
35270
35271 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
35272 modules for compilation.
35273 * conf/powerpc-ieee1275.rmk: Likewise.
35274
35275 * include/multiboot.h: Move multiboot definitions to one file. Rename
35276 many definitions to not get grub specific.
35277 * include/multiboot2.h: Create header with multiboot 2 definitions.
35278 * include/grub/multiboot.h: Header for grub specific function
35279 prototypes and definitions.
35280 * include/grub/multiboot2.h: Likewise.
35281 * include/grub/multiboot_loader.h: Likewise.
35282 * include/grub/i386/pc/multiboot.h: Removed.
35283 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
35284
35285 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
35286 and 2 to allow for one multiboot and module commands.
35287 * loader/multiboot2.c: Add multiboot2 functionality.
35288 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
35289 and definition names.
35290 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
35291 2 functions.
35292 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
35293 ieee1275 specific multiboot2 code.
35294
35295 * kern/i386/pc/startup.S: Change headers and definition names for
35296 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
35297
35298 2007-07-22 Robert Millan <rmh@aybabtu.com>
35299
35300 * geninitheader.sh: Process file specified in first parameter rather
35301 than hardcoding grub_modules_init.lst.
35302 * geninit.sh: Likewise. Also, construct header name dynamically rather
35303 than hardcoding grub_modules_init.h.
35304
35305 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
35306 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
35307 grub_probe_init.[ch] and grub_setup_init.[ch].
35308
35309 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
35310 grub_modules_init.h with grub_emu_init.h.
35311 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
35312 grub_probe_init.[ch] files.
35313 * conf/i386-efi.rmk: Likewise.
35314 * conf/i386-pc.rmk: Likewise.
35315 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
35316 grub_setup_init.[ch] files.
35317
35318 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
35319 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
35320 to initialize modules rather than a list of hardcoded functions.
35321 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
35322 grub_init_all() to initialize modules rather than a list of hardcoded
35323 functions.
35324
35325 2007-07-22 Robert Millan <rmh@aybabtu.com>
35326
35327 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
35328 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
35329
35330 2007-07-22 Robert Millan <rmh@aybabtu.com>
35331
35332 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
35333 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
35334 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
35335 flag when running on SmartFirmware.
35336 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
35337 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
35338 was set.
35339
35340 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
35341 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
35342 rather than decreasing it.
35343
35344 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
35345 there's not enough space to do it, fail in the same way as when it
35346 can't be done because there are no partitions.
35347
35348 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
35349 when nvsetenv failed.
35350
35351 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35352
35353 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
35354 because this rule is automatically generated.
35355 (grub-mkrescue): Removed for the same reason as above.
35356
35357 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35358
35359 Migrate to GNU General Public License Version 3.
35360
35361 * COPYING: Replaced with the plain text version of GPLv3.
35362
35363 * config.guess: Updated from gnulib.
35364 * config.sub: Likewise.
35365
35366 * geninit.sh: Output a GPLv3 copyright notice.
35367 * geninitheader.sh: Likewise.
35368 * genmodsrc.sh: Likewise.
35369 * gensymlist.sh.in: Likewise.
35370
35371 * boot/i386/pc/boot.S: Upgraded to GPLv3.
35372 * boot/i386/pc/diskboot.S: Likewise.
35373 * boot/i386/pc/pxeboot.S: Likewise.
35374 * commands/blocklist.c: Likewise.
35375 * commands/boot.c: Likewise.
35376 * commands/cat.c: Likewise.
35377 * commands/cmp.c: Likewise.
35378 * commands/configfile.c: Likewise.
35379 * commands/echo.c: Likewise.
35380 * commands/help.c: Likewise.
35381 * commands/ls.c: Likewise.
35382 * commands/search.c: Likewise.
35383 * commands/terminal.c: Likewise.
35384 * commands/test.c: Likewise.
35385 * commands/videotest.c: Likewise.
35386 * commands/i386/cpuid.c: Likewise.
35387 * commands/i386/pc/halt.c: Likewise.
35388 * commands/i386/pc/play.c: Likewise.
35389 * commands/i386/pc/reboot.c: Likewise.
35390 * commands/i386/pc/vbeinfo.c: Likewise.
35391 * commands/i386/pc/vbetest.c: Likewise.
35392 * commands/ieee1275/halt.c: Likewise.
35393 * commands/ieee1275/reboot.c: Likewise.
35394 * commands/ieee1275/suspend.c: Likewise.
35395 * disk/loopback.c: Likewise.
35396 * disk/lvm.c: Likewise.
35397 * disk/raid.c: Likewise.
35398 * disk/efi/efidisk.c: Likewise.
35399 * disk/i386/pc/biosdisk.c: Likewise.
35400 * disk/ieee1275/ofdisk.c: Likewise.
35401 * font/manager.c: Likewise.
35402 * fs/affs.c: Likewise.
35403 * fs/ext2.c: Likewise.
35404 * fs/fat.c: Likewise.
35405 * fs/fshelp.c: Likewise.
35406 * fs/hfs.c: Likewise.
35407 * fs/hfsplus.c: Likewise.
35408 * fs/iso9660.c: Likewise.
35409 * fs/jfs.c: Likewise.
35410 * fs/minix.c: Likewise.
35411 * fs/sfs.c: Likewise.
35412 * fs/ufs.c: Likewise.
35413 * fs/xfs.c: Likewise.
35414 * hello/hello.c: Likewise.
35415 * include/grub/acorn_filecore.h: Likewise.
35416 * include/grub/arg.h: Likewise.
35417 * include/grub/bitmap.h: Likewise.
35418 * include/grub/boot.h: Likewise.
35419 * include/grub/cache.h: Likewise.
35420 * include/grub/device.h: Likewise.
35421 * include/grub/disk.h: Likewise.
35422 * include/grub/dl.h: Likewise.
35423 * include/grub/elfload.h: Likewise.
35424 * include/grub/env.h: Likewise.
35425 * include/grub/err.h: Likewise.
35426 * include/grub/file.h: Likewise.
35427 * include/grub/font.h: Likewise.
35428 * include/grub/fs.h: Likewise.
35429 * include/grub/fshelp.h: Likewise.
35430 * include/grub/gzio.h: Likewise.
35431 * include/grub/hfs.h: Likewise.
35432 * include/grub/kernel.h: Likewise.
35433 * include/grub/loader.h: Likewise.
35434 * include/grub/lvm.h: Likewise.
35435 * include/grub/misc.h: Likewise.
35436 * include/grub/mm.h: Likewise.
35437 * include/grub/net.h: Likewise.
35438 * include/grub/normal.h: Likewise.
35439 * include/grub/parser.h: Likewise.
35440 * include/grub/partition.h: Likewise.
35441 * include/grub/pc_partition.h: Likewise.
35442 * include/grub/raid.h: Likewise.
35443 * include/grub/rescue.h: Likewise.
35444 * include/grub/script.h: Likewise.
35445 * include/grub/setjmp.h: Likewise.
35446 * include/grub/symbol.h: Likewise.
35447 * include/grub/term.h: Likewise.
35448 * include/grub/terminfo.h: Likewise.
35449 * include/grub/tparm.h: Likewise.
35450 * include/grub/types.h: Likewise.
35451 * include/grub/video.h: Likewise.
35452 * include/grub/efi/api.h: Likewise.
35453 * include/grub/efi/chainloader.h: Likewise.
35454 * include/grub/efi/console.h: Likewise.
35455 * include/grub/efi/console_control.h: Likewise.
35456 * include/grub/efi/disk.h: Likewise.
35457 * include/grub/efi/efi.h: Likewise.
35458 * include/grub/efi/pe32.h: Likewise.
35459 * include/grub/efi/time.h: Likewise.
35460 * include/grub/i386/linux.h: Likewise.
35461 * include/grub/i386/setjmp.h: Likewise.
35462 * include/grub/i386/types.h: Likewise.
35463 * include/grub/i386/efi/kernel.h: Likewise.
35464 * include/grub/i386/efi/loader.h: Likewise.
35465 * include/grub/i386/efi/time.h: Likewise.
35466 * include/grub/i386/pc/biosdisk.h: Likewise.
35467 * include/grub/i386/pc/boot.h: Likewise.
35468 * include/grub/i386/pc/chainloader.h: Likewise.
35469 * include/grub/i386/pc/console.h: Likewise.
35470 * include/grub/i386/pc/init.h: Likewise.
35471 * include/grub/i386/pc/kernel.h: Likewise.
35472 * include/grub/i386/pc/loader.h: Likewise.
35473 * include/grub/i386/pc/memory.h: Likewise.
35474 * include/grub/i386/pc/multiboot.h: Likewise.
35475 * include/grub/i386/pc/serial.h: Likewise.
35476 * include/grub/i386/pc/time.h: Likewise.
35477 * include/grub/i386/pc/vbe.h: Likewise.
35478 * include/grub/i386/pc/vbeblit.h: Likewise.
35479 * include/grub/i386/pc/vbefill.h: Likewise.
35480 * include/grub/i386/pc/vbeutil.h: Likewise.
35481 * include/grub/i386/pc/vga.h: Likewise.
35482 * include/grub/ieee1275/ieee1275.h: Likewise.
35483 * include/grub/ieee1275/ofdisk.h: Likewise.
35484 * include/grub/powerpc/libgcc.h: Likewise.
35485 * include/grub/powerpc/setjmp.h: Likewise.
35486 * include/grub/powerpc/types.h: Likewise.
35487 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
35488 * include/grub/powerpc/ieee1275/console.h: Likewise.
35489 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
35490 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
35491 * include/grub/powerpc/ieee1275/loader.h: Likewise.
35492 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
35493 * include/grub/powerpc/ieee1275/time.h: Likewise.
35494 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
35495 * include/grub/sparc64/libgcc.h: Likewise.
35496 * include/grub/sparc64/setjmp.h: Likewise.
35497 * include/grub/sparc64/types.h: Likewise.
35498 * include/grub/sparc64/ieee1275/console.h: Likewise.
35499 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
35500 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
35501 * include/grub/sparc64/ieee1275/time.h: Likewise.
35502 * include/grub/util/biosdisk.h: Likewise.
35503 * include/grub/util/getroot.h: Likewise.
35504 * include/grub/util/lvm.h: Likewise.
35505 * include/grub/util/misc.h: Likewise.
35506 * include/grub/util/raid.h: Likewise.
35507 * include/grub/util/resolve.h: Likewise.
35508 * io/gzio.c: Likewise.
35509 * kern/device.c: Likewise.
35510 * kern/disk.c: Likewise.
35511 * kern/dl.c: Likewise.
35512 * kern/elf.c: Likewise.
35513 * kern/env.c: Likewise.
35514 * kern/err.c: Likewise.
35515 * kern/file.c: Likewise.
35516 * kern/fs.c: Likewise.
35517 * kern/loader.c: Likewise.
35518 * kern/main.c: Likewise.
35519 * kern/misc.c: Likewise.
35520 * kern/mm.c: Likewise.
35521 * kern/parser.c: Likewise.
35522 * kern/partition.c: Likewise.
35523 * kern/rescue.c: Likewise.
35524 * kern/term.c: Likewise.
35525 * kern/efi/efi.c: Likewise.
35526 * kern/efi/init.c: Likewise.
35527 * kern/efi/mm.c: Likewise.
35528 * kern/i386/dl.c: Likewise.
35529 * kern/i386/efi/init.c: Likewise.
35530 * kern/i386/efi/startup.S: Likewise.
35531 * kern/i386/pc/init.c: Likewise.
35532 * kern/i386/pc/lzo1x.S: Likewise.
35533 * kern/i386/pc/startup.S: Likewise.
35534 * kern/ieee1275/ieee1275.c: Likewise.
35535 * kern/powerpc/cache.S: Likewise.
35536 * kern/powerpc/dl.c: Likewise.
35537 * kern/powerpc/ieee1275/cmain.c: Likewise.
35538 * kern/powerpc/ieee1275/crt0.S: Likewise.
35539 * kern/powerpc/ieee1275/init.c: Likewise.
35540 * kern/powerpc/ieee1275/openfw.c: Likewise.
35541 * kern/sparc64/cache.S: Likewise.
35542 * kern/sparc64/dl.c: Likewise.
35543 * kern/sparc64/ieee1275/init.c: Likewise.
35544 * kern/sparc64/ieee1275/openfw.c: Likewise.
35545 * loader/efi/chainloader.c: Likewise.
35546 * loader/efi/chainloader_normal.c: Likewise.
35547 * loader/i386/efi/linux.c: Likewise.
35548 * loader/i386/efi/linux_normal.c: Likewise.
35549 * loader/i386/pc/chainloader.c: Likewise.
35550 * loader/i386/pc/chainloader_normal.c: Likewise.
35551 * loader/i386/pc/linux.c: Likewise.
35552 * loader/i386/pc/linux_normal.c: Likewise.
35553 * loader/i386/pc/multiboot.c: Likewise.
35554 * loader/i386/pc/multiboot_normal.c: Likewise.
35555 * loader/powerpc/ieee1275/linux.c: Likewise.
35556 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35557 * normal/arg.c: Likewise.
35558 * normal/cmdline.c: Likewise.
35559 * normal/command.c: Likewise.
35560 * normal/completion.c: Likewise.
35561 * normal/execute.c: Likewise.
35562 * normal/function.c: Likewise.
35563 * normal/lexer.c: Likewise.
35564 * normal/main.c: Likewise.
35565 * normal/menu.c: Likewise.
35566 * normal/menu_entry.c: Likewise.
35567 * normal/misc.c: Likewise.
35568 * normal/parser.y: Likewise.
35569 * normal/script.c: Likewise.
35570 * normal/i386/setjmp.S: Likewise.
35571 * normal/powerpc/setjmp.S: Likewise.
35572 * normal/sparc64/setjmp.S: Likewise.
35573 * partmap/acorn.c: Likewise.
35574 * partmap/amiga.c: Likewise.
35575 * partmap/apple.c: Likewise.
35576 * partmap/gpt.c: Likewise.
35577 * partmap/pc.c: Likewise.
35578 * partmap/sun.c: Likewise.
35579 * term/gfxterm.c: Likewise.
35580 * term/terminfo.c: Likewise.
35581 * term/efi/console.c: Likewise.
35582 * term/i386/pc/console.c: Likewise.
35583 * term/i386/pc/serial.c: Likewise.
35584 * term/i386/pc/vesafb.c: Likewise.
35585 * term/i386/pc/vga.c: Likewise.
35586 * term/ieee1275/ofconsole.c: Likewise.
35587 * util/biosdisk.c: Likewise.
35588 * util/console.c: Likewise.
35589 * util/genmoddep.c: Likewise.
35590 * util/getroot.c: Likewise.
35591 * util/grub-emu.c: Likewise.
35592 * util/grub-mkdevicemap.c: Likewise.
35593 * util/grub-probe.c: Likewise.
35594 * util/lvm.c: Likewise.
35595 * util/misc.c: Likewise.
35596 * util/raid.c: Likewise.
35597 * util/resolve.c: Likewise.
35598 * util/update-grub.in: Likewise.
35599 * util/update-grub_lib.in: Likewise.
35600 * util/grub.d/00_header.in: Likewise.
35601 * util/grub.d/10_hurd.in: Likewise.
35602 * util/grub.d/10_linux.in: Likewise.
35603 * util/i386/efi/grub-install.in: Likewise.
35604 * util/i386/efi/grub-mkimage.c: Likewise.
35605 * util/i386/pc/grub-install.in: Likewise.
35606 * util/i386/pc/grub-mkimage.c: Likewise.
35607 * util/i386/pc/grub-mkrescue.in: Likewise.
35608 * util/i386/pc/grub-setup.c: Likewise.
35609 * util/i386/pc/misc.c: Likewise.
35610 * util/powerpc/ieee1275/grub-install.in: Likewise.
35611 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
35612 * util/powerpc/ieee1275/misc.c: Likewise.
35613 * video/bitmap.c: Likewise.
35614 * video/video.c: Likewise.
35615 * video/i386/pc/vbe.c: Likewise.
35616 * video/i386/pc/vbeblit.c: Likewise.
35617 * video/i386/pc/vbefill.c: Likewise.
35618 * video/i386/pc/vbeutil.c: Likewise.
35619 * video/readers/tga.c: Likewise.
35620
35621 2007-07-02 Robert Millan <rmh@aybabtu.com>
35622
35623 * conf/i386-efi.rmk: Replace obsolete reference to
35624 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
35625 with util/getroot.c.
35626 * conf/powerpc-ieee1275.rmk: Likewise.
35627 * conf/sparc64-ieee1275.rmk: Likewise.
35628
35629 * util/grub-emu.c (main): Fix unchecked pointer handling.
35630
35631 2007-07-02 Robert Millan <rmh@aybabtu.com>
35632
35633 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
35634 invocation to fail, in order to support partition-less media.
35635
35636 * util/i386/pc/grub-install.in: Likewise.
35637
35638 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
35639 which fs or partmap modules are needed (akin to its sister scripts).
35640
35641 Also use grub-probe to get rid of unportable /proc/mounts check.
35642
35643 Print the same informational message that the other scripts do, before
35644 exiting.
35645
35646 2007-06-23 Robert Millan <rmh@aybabtu.com>
35647
35648 * util/update-grub_lib.in (font_path): New function. Determine whether
35649 a font file can be found and, if so, echo the GRUB path to it.
35650
35651 * util/update-grub.in: Handle multiple terminals depending on user
35652 input, platform availability and font file presence. Propagate
35653 variables of our findings to /etc/grub.d/ children.
35654
35655 * util/grub.d/00_header.in: Handle multiple terminals, based on
35656 environment setup by update-grub.
35657
35658 2007-06-23 Robert Millan <rmh@aybabtu.com>
35659
35660 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
35661
35662 2007-06-21 Robert Millan <rmh@aybabtu.com>
35663
35664 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
35665 indicate end of data section in kernel image.
35666 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
35667 GRUB_KERNEL_MACHINE_DATA_END.
35668
35669 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
35670 space for it.
35671 * kern/i386/efi/startup.S: Likewise.
35672
35673 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
35674 during image generation. Implement --prefix option to override this
35675 patch.
35676 * util/i386/efi/grub-mkimage.c: Likewise.
35677
35678 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
35679 code to make path relative to its root into a separate function.
35680
35681 * util/i386/pc/grub-install.in: Use newly provided
35682 make_system_path_relative_to_its_root() to convert ${grubdir}, then
35683 pass the result to grub-install --prefix.
35684
35685 2007-06-13 Robert Millan <rmh@aybabtu.com>
35686
35687 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
35688 DEFAULT_DEVICE_MAP.
35689 * util/grub-emu.c: Use above definitions from misc.h instead of
35690 defining them.
35691 * util/grub-mkdevicemap.c: Likewise.
35692 * util/i386/pc/grub-setup.c: Likewise.
35693 * util/grub-probe.c: Likewise.
35694 (probe): Abort with grub_util_error() when either
35695 grub_guess_root_device or grub_util_get_grub_dev fails.
35696
35697 2007-06-12 Robert Millan <rmh@aybabtu.com>
35698
35699 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
35700 "pager" assignment.
35701 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
35702 "pcdata".
35703 * util/grub-probe.c (probe): Likewise for "drive_name".
35704
35705 2007-06-11 Robert Millan <rmh@aybabtu.com>
35706
35707 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
35708 not just the cdrom one.
35709
35710 2007-06-11 Robert Millan <rmh@aybabtu.com>
35711
35712 * util/i386/pc/grub-mkrescue.in: Add "set -e".
35713 Add --pkglibdir=DIR option to override pkglibdir.
35714 Mention --image-type=TYPE in help output.
35715 Fix --grub-mkimage (it was a no-op).
35716 Abort gracefully when no parameter is given.
35717
35718 2007-06-11 Robert Millan <rmh@aybabtu.com>
35719
35720 * util/i386/pc/grub-mkrescue.in: New file.
35721 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
35722 * Makefile.in: Handle bin_SCRIPTS.
35723
35724 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
35725
35726 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
35727 list of video modes.
35728
35729 2007-06-06 Robert Millan <rmh@aybabtu.com>
35730
35731 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
35732 file doesn't exist, or if it is in a filesystem grub can't read.
35733
35734 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
35735 not abort if GRUB_DRIVE could not be defined. Rearrange generated
35736 header comment to fit in 80 columns when the variables are resolved.
35737
35738 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
35739 could be identified by update-grub. Remove redundant check for
35740 unifont.pff existence (since convert_system_path_to_grub_path now
35741 handles that).
35742
35743 2007-06-04 Robert Millan <rmh@aybabtu.com>
35744
35745 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
35746
35747 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
35748
35749 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
35750
35751 2007-06-04 Robert Millan <rmh@aybabtu.com>
35752
35753 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
35754
35755 * include/grub/partition.h: Declare grub_apple_partition_map_init and
35756 grub_apple_partition_map_fini.
35757
35758 * util/biosdisk.c
35759 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
35760 to access >2 TiB disks).
35761
35762 Print disk->total_sectors with %llu instead of %lu, since this
35763 variable is always 64-bit (prevents wrong disk size from being displayed
35764 on either >2 TiB disk or big-endian CPU).
35765
35766 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
35767 into a generic case that supports all (sane) partition maps.
35768
35769 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
35770 breaks big-endian.
35771
35772 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
35773 and grub_apple_partition_map_fini() after that.
35774
35775 2007-06-01 Robert Millan <rmh@aybabtu.com>
35776
35777 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
35778
35779 * util/grub.d/00_header.in: Only enable gfxterm when
35780 convert_system_path_to_grub_path() succeeds.
35781
35782 2007-05-20 Robert Millan <rmh@aybabtu.com>
35783
35784 * util/update-grub_lib.in: New file.
35785 * DISTLIST: Add update-grub_lib.in.
35786 * conf/common.rmk: Generate update-grub_lib and install it in
35787 $(lib_DATA).
35788 * Makefile.in: Add install routine for $(lib_DATA).
35789
35790 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
35791 function provided by update-grub_lib to support arbitrary paths of
35792 unifont.pff.
35793 * util/update-grub.in: Use convert_system_path_to_grub_path() to
35794 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
35795
35796 2007-05-19 Robert Millan <rmh@aybabtu.com>
35797
35798 * commands/i386/cpuid.c: New module.
35799 * DISTLIST: Add it.
35800 * conf/i386-efi.rmk: Enable cpuid.mod.
35801 * conf/i386-pc.rmk: Likewise.
35802
35803 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35804
35805 * kern/disk.c (grub_disk_read): Check return value of
35806 grub_realloc().
35807
35808 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35809
35810 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
35811 arrays.
35812 * disk/raid.c (grub_raid_open): Likewise.
35813
35814 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35815
35816 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
35817 stack instead of on the heap.
35818
35819 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
35820 before doing a read on it.
35821
35822 * configure.ac: Only use -fno-stack-protector for the target
35823 environment.
35824
35825 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35826
35827 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
35828 __attribute_ ((unused)) to mode_type argument.
35829
35830 * util/getroot.c (grub_guess_root_device): Fix #endif.
35831
35832 * kern/misc.c (memcmp): Fix prototype.
35833
35834 * include/grub/partition.h [GRUB_UTIL]
35835 (grub_gpt_partition_map_init): Add prototype.
35836 (grub_gpt_partition_map_fini): Likewise.
35837
35838 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
35839 at the right place.
35840
35841 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
35842 (grub_fat_read_data): Likewise.
35843 (grub_fat_find_dir): Likewise.
35844
35845 * font/manager.c (find_glyph): Make table a const.
35846 (grub_font_get_glyph): Remove bitmap from if statement.
35847
35848 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
35849
35850 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
35851 code, first search for device in /dev/mapper, then in /dev.
35852 (grub_util_get_grub_dev): New function.
35853 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
35854 prototype.
35855 * util/grub-probe.c (probe): Remove check for RAID, call
35856 grub_util_get_grub_dev() instead of
35857 grub_util_biosdisk_get_grub_dev().
35858 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
35859 grub_util_biosdisk_get_grub_dev().
35860 * util/i386/pc/grub-setup.c (main): Likewise.
35861
35862 2007-05-16 Robert Millan <rmh@aybabtu.com>
35863
35864 * DISTLIST: Update for the latest changes.
35865 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
35866 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
35867 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
35868 grub/util/biosdisk.h.
35869 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
35870 grub/util/biosdisk.h.
35871
35872 2007-05-16 Robert Millan <rmh@aybabtu.com>
35873
35874 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
35875
35876 2007-05-16 Robert Millan <rmh@aybabtu.com>
35877
35878 * util/i386/efi/grub-install.in: New.
35879 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
35880 newly added grub-install.
35881 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
35882 include.
35883 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
35884 grub/util/biosdisk.h.
35885 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
35886 grub/util/biosdisk.h.
35887
35888 2007-05-16 Robert Millan <rmh@aybabtu.com>
35889
35890 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
35891 * include/grub/util/biosdisk.h: ... here.
35892 * util/i386/pc/biosdisk.c: Moved to ...
35893 * util/biosdisk.c: ... here.
35894 * util/i386/pc/getroot.c: Moved to ...
35895 * util/getroot.c: ... here.
35896 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
35897 * util/grub-mkdevicemap.c: ... here.
35898 * util/i386/pc/grub-probe.c: Moved to ...
35899 * util/grub-probe.c: ... here.
35900
35901 2007-05-15 Robert Millan <rmh@aybabtu.com>
35902
35903 * util/update-grub.in: Remove duplicated line in grub.cfg header
35904 message.
35905
35906 2007-05-13 Robert Millan <rmh@aybabtu.com>
35907
35908 * util/update-grub.in: Fix a few assumptions about the devices holding
35909 /, /boot and /boot/grub being the same.
35910 * util/grub.d/00_header.in: Likewise.
35911 * util/grub.d/10_hurd.in: Likewise.
35912 * util/grub.d/10_linux.in: Likewise.
35913
35914 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
35915 patterns. Use that to define the `.old' suffix as older than `'.
35916
35917 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
35918
35919 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
35920 the grub.cfg header message.
35921
35922 2007-05-11 Robert Millan <rmh@aybabtu.com>
35923
35924 * util/update-grub.in: Create device.map if it doesn't already exist,
35925 before attempting to run grub-probe.
35926 Check for grub-probe and grub-mkdevicemap with the same code
35927 grub-install is using.
35928 Remove test mode.
35929
35930 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
35931
35932 * Makefile.in: Add the datarootdir autoconf variable.
35933
35934 2007-05-09 Robert Millan <rmh@aybabtu.com>
35935
35936 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
35937 fail gracefully if dev->disk->partition == NULL.
35938
35939 2007-05-07 Robert Millan <rmh@aybabtu.com>
35940
35941 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
35942 determine partition map module.
35943 * util/i386/pc/grub-install.in: Use this feature to decide which
35944 partition module to load, instead of hardcoding pc and gpt.
35945
35946 2007-05-07 Robert Millan <rmh@aybabtu.com>
35947
35948 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
35949 source directory differs from build directory.
35950
35951 2007-05-05 Robert Millan <rmh@aybabtu.com>
35952
35953 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
35954 initialisation.
35955
35956 2007-05-05 Robert Millan <rmh@aybabtu.com>
35957
35958 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
35959
35960 2007-05-05 Robert Millan <rmh@aybabtu.com>
35961
35962 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
35963 command-line arguments via ${GRUB_CMDLINE_LINUX}.
35964
35965 2007-05-05 Robert Millan <rmh@aybabtu.com>
35966
35967 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
35968 (grub_probe_SOURCES): Likewise.
35969 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
35970 GPT and initialize dos_part and bsd_part accordingly.
35971 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
35972 install_bsd_part.
35973 (main): Activate gpt module for use during partition identification,
35974 and deactivate it afterwards.
35975 * util/i386/pc/grub-install.in: Add gpt module to core.img.
35976 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
35977 partition identification, and deactivate it afterwards.
35978
35979 2007-05-05 Robert Millan <rmh@aybabtu.com>
35980
35981 * term/i386/pc/console.c (grub_console_fini): Call
35982 grub_term_set_current() before grub_term_unregister().
35983
35984 2007-05-04 Robert Millan <rmh@aybabtu.com>
35985
35986 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
35987 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
35988 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
35989 and update-grub_DATA.
35990 * conf/common.rmk: Build and install update-grub components.
35991 * conf/common.mk: Regenerate.
35992 * util/update-grub.in: New. Core of update-grub.
35993 * util/grub.d/00_header.in: New. Generates grub.cfg header.
35994 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
35995 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
35996 * util/grub.d/README: New. Document grub.d directory layout.
35997
35998 2007-05-01 Robert Millan <rmh@aybabtu.com>
35999
36000 * util/grub-emu.c: Move initialization functions
36001 grub_util_biosdisk_init() and grub_init_all() before
36002 grub_util_biosdisk_get_grub_dev(), which relies on them.
36003
36004 2007-04-19 Robert Millan <rmh@aybabtu.com>
36005
36006 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
36007 it is used later.
36008
36009 2007-04-18 Jerone Young <jerone@gmail.com>
36010
36011 * kernel/elf.c: Add missing parenthesis for conditional statement
36012 stanza.
36013
36014 2007-04-10 Jerone Young <jerone@gmail.com>
36015
36016 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
36017 continue on and look for device node with real device name.
36018
36019 2007-04-10 Jerone Young <jerone@gmail.com>
36020
36021 * configure.ac: Add argument for autoconf to use transformation
36022 ability.
36023 * Makefile.in: Add autoconf package transformation code.
36024 * util/i386/pc/grub-install.in: Likewise.
36025 * util/powerpc/ieee1275/grub-install.in: Likewise.
36026
36027 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
36028
36029 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
36030 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
36031 (EXT2_REVISION): Likewise.
36032 (EXT2_INODE_SIZE): Likewise.
36033 (struct grub_ext2_block_group): Added a missing member
36034 "used_dirs".
36035 (grub_ext2_read_inode): Divide by the inode size in a superblock
36036 instead of 128 to obtain INODES_PER_BLOCK.
36037 Use the macro EXT2_INODE_SIZE instead of directly using
36038 SBLOCK->INODE_SIZE.
36039
36040 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
36041
36042 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
36043 superblock instead of the structure size to compute an
36044 offset. This fixes the problem that GRUB could not read a
36045 filesystem when inode size is different from 128-byte.
36046
36047 2007-03-05 Marco Gerards <marco@gnu.org>
36048
36049 * normal/main.c (read_config_file): When "menu" is not set, create
36050 an initial context.
36051
36052 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
36053
36054 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
36055 (HEAP_LIMIT): New macro.
36056 (grub_claim_heap): Claim memory up to `heaplimit'.
36057
36058 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
36059
36060 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
36061 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
36062 (_start): Likewise.
36063 (grub_arch_modules_addr): Return address after `_end'.
36064 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
36065 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
36066 (add_segments): Calculate `_end' from phdr size and location.
36067 (ALIGN_UP): Moved to ...
36068 * include/grub/misc.h: here.
36069 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
36070 New macro.
36071 (GRUB_IEEE1275_MODULE_BASE): Removed.
36072
36073 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36074
36075 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
36076 loop boundary.
36077
36078 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36079
36080 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
36081 All users updated.
36082 (grub_elf64_load_hook_t): Likewise.
36083 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
36084 debug output.
36085
36086 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36087
36088 * kern/mm.c: Update copyright.
36089 (grub_mm_debug): Correct syntax error.
36090 (grub_mm_dump_free): New function.
36091 (grub_debug_free): Call `grub_free'.
36092 * include/grub/mm.h: Update copyright.
36093 (grub_mm_dump_free): Add declaration.
36094
36095 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36096
36097 * include/grub/ieee1275/ieee1275.h: Update copyright.
36098 * kern/powerpc/ieee1275/init.c: Likewise.
36099 * kern/powerpc/ieee1275/openfw.c: Likewise.
36100
36101 * loader/powerpc/ieee1275/linux.c: Likewise.
36102 * include/grub/elfload.h: Likewise.
36103 * kern/elf.c: Likewise.
36104 (grub_elf32_load): Pass `base' and `size' parameters. Update all
36105 callers.
36106 (grub_elf64_load): Likewise.
36107 (grub_elf32_load_segment): Move to a nested function.
36108 (grub_elf64_load_segment): Likewise.
36109
36110 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36111
36112 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
36113 prototype.
36114 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
36115 (grub_heap_len): Likewise.
36116 (HEAP_SIZE): New macro.
36117 (grub_claim_heap): New function.
36118 (grub_machine_init): Don't claim heap directly. Call
36119 `grub_claim_heap'.
36120 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
36121 (grub_available_iterate): New function.
36122
36123 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
36124
36125 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
36126 * configure.ac: Use it for testing the HOST and TARGET compilers.
36127
36128 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
36129
36130 * Makefile.in (enable_grub_emu): New variable.
36131 * configure.ac (--enable-grub-emu): New option.
36132 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
36133 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
36134 * conf/i386-pc.rmk: Likewise.
36135 * conf/powerpc-ieee1275.rmk: Likewise.
36136 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
36137
36138 2006-12-12 Marco Gerards <marco@gnu.org>
36139
36140 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
36141
36142 * kern/env.c (grub_env_unset): Don't free the member `value' when
36143 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
36144 pointer.
36145
36146 * normal/main.c (current_menu): Removed.
36147 (free_menu): Unset the `menu' environment variable.
36148 (grub_normal_menu_addentry): Make use of the environment variable
36149 `menu', instead of using the global `current_menu'. Allocate
36150 memory for the sourcecode of this entry.
36151 (read_config_file): New argument `nested', changed all callers.
36152 Only in the case of a new context, initialize a new menu. Set the
36153 `menu' environment variable.
36154 (grub_normal_execute): Don't set and unset the environment
36155 variable `menu' here anymore. Only free the menu when leaving the
36156 context.
36157
36158 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
36159 leak.
36160
36161 2006-12-11 Marco Gerards <marco@gnu.org>
36162
36163 * normal/menu_entry.c (run): Fix off by one bug so the last line
36164 is executed. Move the loader check to outside the loop.
36165
36166 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
36167
36168 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
36169
36170 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
36171
36172 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
36173 the number of sectors. Reported by Andrey Shuvikov
36174 <mr_hyro@yahoo.com>.
36175
36176 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
36177
36178 * kern/disk.c (grub_disk_read): When there is a read error, always
36179 try to read only the necessary data.
36180
36181 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
36182 disk/raid.c.
36183 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
36184 prototype.
36185 [GRUB_UTIL] (grub_raid_fini): Likewise.
36186 [GRUB_UTIL] (grub_lvm_init): Likewise.
36187 [GRUB_UTIL] (grub_lvm_fini): Likewise.
36188 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
36189 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
36190 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
36191 and grub_raid_fini().
36192
36193 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
36194
36195 * include/grub/types.h (__unused): Rename to UNUSED.
36196 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
36197 (grub_elf64_size): Likewise.
36198
36199 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36200
36201 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
36202 grub_error_push and grub_error_pop in the error-handling path.
36203 (grub_elf32_load_segment): Only call grub_file_read with non-zero
36204 length.
36205
36206 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36207
36208 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
36209 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36211 (kernel_elf_SOURCES): Likewise.
36212 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
36213 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
36214 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36215 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36216 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
36217 (elf_mod_SOURCES): New variable.
36218 (elf_mod_CFLAGS): Likewise.
36219 (elf_mod_LDFLAGS): Likewise.
36220 * include/grub/types.h (__unused): New macro.
36221 * include/grub/elfload.h: New file.
36222 * kern/elf.c: Likewise.
36223 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
36224 (ELF32_LOADMASK): New macro.
36225 (ELF64_LOADMASK): Likewise.
36226 (vmlinux): Removed.
36227 (grub_linux_load32): New function.
36228 (grub_linux_load64): Likewise.
36229 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
36230 Use grub_elf_t instead of grub_file_t.
36231
36232 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
36233
36234 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
36235 `catch_result' to struct set_color_args.
36236
36237 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36238
36239 * normal/menu.c: Include grub/script.h.
36240 * normal/menu_entry.c: Likewise.
36241 * include/grub/normal.h: Do not include grub/script.h.
36242
36243 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36244
36245 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
36246
36247 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36248
36249 * kern/disk.c (grub_disk_open): Print debug messages when opening a
36250 disk.
36251 (grub_disk_close): Print debug messages when closing a disk.
36252 (grub_disk_read): Print debug messages when disk read fails.
36253 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
36254 filesystem type.
36255 * kern/partition.c: Include misc.h.
36256 (grub_partition_iterate): Print debug messages when detecting
36257 partition type.
36258
36259 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36260
36261 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
36262 is negative.
36263 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
36264
36265 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
36266
36267 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
36268 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
36269
36270 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
36271
36272 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
36273 instead of sizeof(lv). Patch by Michael Guntsche.
36274
36275 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
36276
36277 * disk/lvm.c: Rename VGS to VG_LIST.
36278 (grub_lvm_iterate): Change VGS->LV to VG-LV.
36279 (grub_lvm_open): Likewise.
36280 Thanks to Michael Guntsche for finding this bug.
36281
36282 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36283
36284 * configure.ac (AC_INIT): Bumped to 1.95.
36285
36286 2006-10-14 Robert Millan <rmh@aybabtu.com>
36287
36288 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
36289 with "/dev/.static/dev/md".
36290
36291 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36292
36293 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
36294 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
36295 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
36296 DRIVE_NAME are always freed.
36297
36298 * util/i386/pc/biosdisk.c (make_device_name): Add one into
36299 DOS_PART, as a DOS partition is counted from one instead of zero
36300 now. Reported by Robert Millan.
36301
36302 2006-10-14 Robert Millan <rmh@aybabtu.com>
36303
36304 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
36305 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
36306 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
36307 string returned by grub_guess_root_device.
36308 * util/i386/pc/grub-setup.c: Likewise.
36309 * util/i386/pc/grub-probefs.c: Likewise.
36310
36311 * util/i386/pc/grub-probefs.c: Rename to ...
36312 * util/i386/pc/grub-probe.c: ... this.
36313 * DISTLIST: Remove grub-probefs, add grub-probe.
36314 * conf/i386-efi.rmk: Likewise.
36315 * conf/i386-pc.rmk: Likewise.
36316 * util/i386/pc/grub-install.in: Likewise.
36317
36318 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
36319 choose which information we want to print.
36320
36321 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36322
36323 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
36324 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
36325 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
36326 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
36327 video/readers/tga.c and video/i386/pc/vbeutil.c.
36328
36329 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
36330
36331 Added support for RAID and LVM.
36332
36333 * disk/lvm.c: New file.
36334 * disk/raid.c: Likewise.
36335 * include/grub/lvm.h: Likewise.
36336 * include/grub/raid.h: Likewise.
36337 * include/grub/util/lvm.h: Likewise.
36338 * include/grub/util/raid.h: Likewise.
36339 * util/lvm.c: Likewise.
36340 * util/raid.c: Likewise.
36341
36342 * include/grub/disk.h (grub_disk_dev_id): Add
36343 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
36344 (grub_disk_get_size): New prototype.
36345 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
36346 returns a partition.
36347 (grub_disk_get_size): New function.
36348
36349 * kern/i386/pc/init.c (make_install_device): Copy the prefix
36350 verbatim if grub_install_dos_part is -2.
36351
36352 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
36353 and LVM devices.
36354
36355 * util/i386/pc/grub-setup.c (setup): New argument
36356 MUST_EMBED. Force embedding of GRUB when the argument is
36357 true. Close FILE before returning.
36358 (main): Add support for RAID and LVM.
36359
36360 * conf/common.rmk: Add RAID and LVM modules.
36361 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
36362 util/lvm.c.
36363 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
36364
36365 * kern/misc.c (grub_strstr): New function.
36366 * include/grub/misc.h (grub_strstr): New prototype.
36367
36368 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
36369
36370 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
36371
36372 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
36373
36374 * kern/misc.c (grub_strtoull): Guess the base only if not
36375 specified.
36376
36377 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36378
36379 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
36380 PowerMac support.
36381
36382 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36383
36384 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
36385
36386 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
36387 Remove `flags' argument. All callers changed.
36388 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
36389 (IEEE1275_IHANDLE_INVALID): New variable.
36390 (IEEE1275_CELL_INVALID): New variable.
36391 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36392 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
36393 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
36394 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
36395 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
36396 codes from Open Firmware. All callers updated.
36397 (grub_ieee1275_next_property): Directly return Open Firmware return
36398 code.
36399 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36400 Standardize error checking from `grub_ieee1275_get_property'.
36401 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
36402 `devalias' to `aliases'. Correct comments. Consolidate error paths.
36403
36404 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36405
36406 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
36407 `instance_to_package_args' to `instance_to_path_args'.
36408
36409 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
36410 `grub_ieee1275_chosen'.
36411
36412 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
36413 `grub_ieee1275_interpret'.
36414
36415 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36416
36417 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
36418
36419 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36420
36421 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
36422 (__cmpdi): Likewise.
36423
36424 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
36425 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
36426 `grub_ssize_t'.
36427
36428 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
36429
36430 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
36431 to type `grub_ssize_t'.
36432 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
36433
36434 2006-09-22 Marco Gerards <marco@gnu.org>
36435
36436 * normal/script.c (grub_script_create_cmdmenu): Skip leading
36437 newlines.
36438
36439 2006-09-22 Marco Gerards <marco@gnu.org>
36440
36441 * commands/echo.c: New file.
36442
36443 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
36444
36445 * conf/common.rmk (echo_mod_SOURCES): New variable.
36446 (echo_mod_CFLAGS): Likewise.
36447 (echo_mod_LDFLAGS): Likewise.
36448
36449 2006-09-22 Marco Gerards <marco@gnu.org>
36450
36451 * normal/main.c (get_line): Malloc memory instead of using
36452 preallocated memory. Removed the arguments `cmdline' and
36453 `max_len'. Updated all callers.
36454
36455 2006-09-22 Marco Gerards <marco@gnu.org>
36456
36457 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
36458 (normal_mod_DEPENDENCIES): Likewise.
36459
36460 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
36461 (normal_mod_DEPENDENCIES): Likewise.
36462
36463 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
36464
36465 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
36466
36467 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
36468 programs.
36469 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
36470 (normal_mod_DEPENDENCIES): Likewise.
36471 * conf/i386-pc.mk: Regenerate.
36472 * conf/i386-efi.mk: Likewise
36473 * conf/common.mk: Likewise.
36474 * conf/powerpc-ieee1275.mk: Likewise.
36475 * conf/sparc64-ieee1275.mk: Likewise.
36476
36477 2006-09-22 Robert Millan <rmh@aybabtu.com>
36478
36479 Sync with i386 version.
36480 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
36481 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
36482
36483 2006-09-21 Robert Millan <rmh@aybabtu.com>
36484
36485 Import from GRUB Legacy (lib/device.c):
36486 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
36487 (init_device_map) [__linux__]: Add support for I2O devices.
36488
36489 2006-09-14 Marco Gerards <marco@gnu.org>
36490
36491 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
36492 `-melf_i386'.
36493
36494 2006-09-14 Robert Millan <rmh@aybabtu.com>
36495
36496 * util/i386/pc/grub-install.in: Skip menu.lst when removing
36497 /boot/grub/*.lst.
36498
36499 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
36500
36501 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
36502 before adding it to device.map.
36503
36504 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
36505
36506 * genmk.rb: Let GCC generate dependencies the first time it
36507 compiles a file; using the -MD option.
36508 * conf/common.mk: Regenerate.
36509 * conf/i386-pc.mk: Likewise.
36510 * conf/i386-efi.mk: Likewise.
36511 * conf/powerpc-ieee1275.mk: Likewise.
36512 * conf/sparc64-ieee1275.mk: Likewise.
36513
36514 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
36515
36516 Move the prototypes of grub_setjmp and grub_longjmp to
36517 cpu/setjmp.h, so that each architecture may specify different
36518 attributes.
36519
36520 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
36521 (grub_longjmp): Likewise.
36522 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
36523 (grub_longjmp): Likewise.
36524 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
36525 (grub_longjmp): Likewise.
36526
36527 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
36528 [!GRUB_UTIL] (grub_longjmp): Removed.
36529
36530 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
36531
36532 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
36533 "color!" method does not return any value.
36534
36535 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36536
36537 * include/grub/bitmap.h: New file.
36538
36539 * include/grub/i386/pc/vbeutil.h: Likewise.
36540
36541 * video/bitmap.c: Likewise.
36542
36543 * video/readers/tga.c: Likewise.
36544
36545 * video/i386/pc/vbeutil.c: Likewise.
36546
36547 * commands/videotest.c: Code cleanup and updated to reflect to new
36548 video API.
36549
36550 * term/gfxterm.c: Likewise.
36551
36552 * video/video.c: Likewise.
36553
36554 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
36555 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
36556 (bitmap_mod_SOURCES): New entry.
36557 (bitmap_mod_CFLAGS): Likewise.
36558 (bitmap_mod_LDFLAGS): Likewise.
36559 (tga_mod_SOURCES): Likewise.
36560 (tga_mod_CFLAGS): Likewise.
36561 (tga_mod_LDFLAGS): Likewise.
36562
36563 * include/grub/video.h (grub_video_blit_operators): New enum type.
36564 (grub_video_render_target): Changed as forward declaration and moved
36565 actual definition to be video driver specific.
36566 (grub_video_adapter.blit_bitmap): Added blitting operator.
36567 (grub_video_adapter.blit_render_target): Likewise.
36568 (grub_video_blit_bitmap): Likewise.
36569 (grub_video_blit_render_target): Likewise.
36570
36571 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
36572 driver specific render target definition.
36573 (grub_video_vbe_map_rgba): Added driver internal helper.
36574 (grub_video_vbe_unmap_color): Updated to use
36575 grub_video_i386_vbeblit_info.
36576 (grub_video_vbe_get_video_ptr): Likewise.
36577
36578 * include/grub/i386/pc/vbeblit.h
36579 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
36580 grub_video_i386_vbeblit_info.
36581 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36582 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36583 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36584 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36585 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36586 (grub_video_i386_vbeblit_index_index): Likewise.
36587 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
36588 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36589 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36590 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
36591 operator.
36592 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
36593 operator.
36594
36595 * video/i386/pc/vbeblit.c: Updated to reflect changes on
36596 include/grub/i386/pc/vbeblit.h.
36597
36598 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
36599 Updated to use grub_video_i386_vbeblit_info.
36600 (grub_video_i386_vbefill_R8G8B8): Likewise.
36601 (grub_video_i386_vbefill_index): Likewise.
36602 (grub_video_i386_vbefill): Added generic filler.
36603
36604 * video/i386/pc/vbefill.c: Updated to reflect changes on
36605 include/grub/i386/pc/vbefill.h.
36606
36607 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
36608 grub_video_i386_vbeblit_info.
36609 (grub_video_vbe_unmap_color): Likewise.
36610 (grub_video_vbe_blit_glyph): Likewise.
36611 (grub_video_vbe_scroll): Likewise.
36612 (grub_video_vbe_draw_pixel): Removed function.
36613 (grub_video_vbe_get_pixel): Likewise.
36614 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
36615 updated code to use it.
36616 (common_blitter): Added common blitter for render target and bitmap.
36617 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
36618 (grub_video_vbe_blit_render_target): Likewise.
36619
36620 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
36621
36622 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
36623 is in text mode if there is no console control protocol instance
36624 available.
36625
36626 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36627
36628 * include/grub/video.h: Code cleanup.
36629
36630 * include/grub/i386/pc/vbe.h: Likewise.
36631
36632 * video/i386/pc/vbe.c: Likewise.
36633
36634 * video/i386/pc/vbeblit.c: Likewise.
36635
36636 * video/i386/pc/vbefill.c: Likewise.
36637
36638 * video/video.c: Likewise. Also added more comments.
36639
36640 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36641
36642 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
36643 (struct grub_biosdisk_dap): Likewise.
36644
36645 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
36646 linkage settings for all functions.
36647
36648 2006-07-12 Marco Gerards <marco@gnu.org>
36649
36650 * configure.ac (--enable-mm-debug): Fix typo.
36651
36652 * genkernsyms.sh.in: Use proper quoting for `CC'.
36653
36654 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
36655
36656 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
36657 (normal_mod_ASFLAGS): Remove "-m32".
36658
36659 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
36660
36661 * util/misc.c: Include config.h.
36662 [!HAVE_MEMALIGN]: Do not include malloc.h.
36663 (grub_memalign): Use posix_memalign, if present. Then, use
36664 memalign, if present. Otherwise, emit an error.
36665
36666 * util/grub-emu.c: Do not include malloc.h.
36667
36668 * include/grub/util/misc.h: Include unistd.h. This is required for
36669 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
36670 D. Eades III <hde@foobar-qux.org>.
36671
36672 * configure.ac (AC_GNU_SOURCE): Added.
36673 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
36674 type.
36675
36676 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
36677
36678 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
36679 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
36680
36681 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
36682
36683 * include/grub/types.h (grub_host_addr_t): Rename to
36684 grub_target_addr_t.
36685 (grub_host_off_t): Rename to grub_target_off_t.
36686 (grub_host_size_t): Rename to grub_target_size_t.
36687 (grub_host_ssize_t): Rename to grub_target_ssize_t.
36688 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
36689
36690 * include/grub/kernel.h (struct grub_module_header): Change type
36691 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
36692 (grub_module_info): Likewise.
36693
36694 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36695
36696 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
36697 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
36698 Velazquez <jesus.velazquez@gmail.com>.
36699
36700 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36701
36702 Count partitions from 1 instead of 0 in the string representation
36703 of partitions. Still use 0-based internally.
36704
36705 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
36706 (sun_partition_map_iterate): Use grub_partition_t instead of
36707 struct grub_partition *. Cast DESC->START_CYLINDER to
36708 grub_uint64_t after converting the endian.
36709 (sun_partition_map_probe): Subtract 1 for PARTNUM.
36710 (sun_partition_map_get_name): Add 1 to P->INDEX.
36711
36712 * partmap/pc.c (grub_partition_parse): Subtract 1 for
36713 PCDATA->DOS_PART.
36714 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
36715
36716 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
36717 zero instead of one.
36718 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
36719 (gpt_partition_map_get_name): Add 1 into P->INDEX.
36720
36721 * partmap/apple.c (apple_partition_map_iterate): Change the type
36722 of POS to unsigned.
36723 (apple_partition_map_probe): Subtract 1 for PARTNUM.
36724 (apple_partition_map_get_name): Add 1 into P->INDEX.
36725
36726 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
36727 of POS to unsigned.
36728 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
36729 calculate the offset of a partition.
36730 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
36731 (amiga_partition_map_get_name): Add 1 into P->INDEX.
36732
36733 * partmap/acorn.c (acorn_partition_map_find): Change the type of
36734 SECTOR to grub_disk_addr_t.
36735 (acorn_partition_map_iterate): Likewise.
36736 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
36737 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
36738 top.
36739 (acorn_partition_map_get_name): Add 1 into P->INDEX.
36740
36741 * kern/i386/pc/init.c (make_install_device): Add 1 into
36742 GRUB_INSTALL_DOS_PART.
36743
36744 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
36745 conditional.
36746
36747 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36748
36749 Clean up the code to support 64-bit addressing in disks and
36750 files. This change is not enough for filesystems yet.
36751
36752 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
36753 type of "start" to grub_uint64_t.
36754 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
36755 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
36756 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
36757 convert addresses.
36758
36759 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
36760 to grub_disk_addr_t.
36761
36762 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
36763 string.
36764
36765 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36766
36767 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
36768 to char *.
36769
36770 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
36771
36772 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
36773
36774 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
36775
36776 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
36777 to grub_off_t, to detect an error from grub_file_seek.
36778 (grub_multiboot_load_elf32): Likewise.
36779
36780 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
36781 maximum unsigned long value when an overflow is detected.
36782 (grub_strtoull): New function.
36783 (grub_divmod64): Likewise.
36784 (grub_lltoa): use grub_divmod64.
36785
36786 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
36787 grub_disk_addr_t.
36788 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
36789 the pointer to next character. Use grub_strtoull instead of
36790 grub_strtoul.
36791 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
36792 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
36793 respectively.
36794
36795 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
36796 return value is signed.
36797 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
36798 test if OFFSET is less than zero, as OFFSET is unsigned now.
36799
36800 * kern/disk.c (struct grub_disk_cache): Change the type of
36801 "sector" to grub_disk_addr_t.
36802 (grub_disk_cache_get_index): Change the type of SECTOR to
36803 grub_disk_addr_t. Calculate the hash with SECTOR casted to
36804 unsigned after shifting.
36805 (grub_disk_cache_invalidate): Change the type of SECTOR to
36806 grub_disk_addr_t.
36807 (grub_disk_cache_unlock): Likewise.
36808 (grub_disk_cache_store): Likewise.
36809 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
36810 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
36811 grub_disk_addr_t and grub_uint64_t, respectively.
36812 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
36813 body, as the value of OFFSET is tweaked by
36814 grub_disk_check_range. Change the types of START_SECTOR, LEN and
36815 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
36816 respectively.
36817 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
36818 body, as the value of OFFSET is tweaked by
36819 grub_disk_check_range. Change the types of LEN and N to
36820 grub_size_t.
36821
36822 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
36823 and "saved_offset" to grub_off_t.
36824 (test_header): Cast BUF to char *.
36825 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
36826 to char *.
36827 (grub_gzio_read): Change the types of OFFSET and SIZE to
36828 grub_off_t and grub_size_t, respectively.
36829
36830 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
36831 Removed.
36832 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
36833 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
36834 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
36835 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
36836 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
36837
36838 * include/grub/types.h (grub_off_t): Unconditionally set to
36839 grub_uint64_t.
36840 (grub_disk_addr_t): Changed to grub_uint64_t.
36841
36842 * include/grub/partition.h (struct grub_partition): Change the
36843 types of "start", "len" and "offset" to grub_disk_addr_t,
36844 grub_uint64_t and grub_disk_addr_t, respectively.
36845 (grub_partition_get_start): Return grub_disk_addr_t.
36846 (grub_partition_get_len): Return grub_uint64_t.
36847
36848 * include/grub/misc.h (grub_strtoull): New prototype.
36849 (grub_divmod64): Likewise.
36850
36851 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
36852 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
36853 grub_off_t, respectively.
36854 All callers and references changed.
36855
36856 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
36857 grub_size_t in "read".
36858 All callers and references changed.
36859
36860 * include/grub/file.h (struct grub_file): Change the types of
36861 "offset" and "size" to grub_off_t and grub_off_t,
36862 respectively. Change the type of SECTOR to grub_disk_addr_t in
36863 "read_hook".
36864 (grub_file_read): Change the type of LEN to grub_size_t.
36865 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
36866 grub_off_t.
36867 (grub_file_size): Return grub_off_t.
36868 (grub_file_tell): Likewise.
36869 All callers and references changed.
36870
36871 * include/grub/disk.h (struct grub_disk_dev): Change the types of
36872 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
36873 "write".
36874 (struct grub_disk): Change the type of "total_sectors" to
36875 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
36876 "read_hook".
36877 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
36878 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
36879 (grub_disk_write): Likewise.
36880 All callers and references changed.
36881
36882 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
36883 char * for grub_strncmp to silence gcc.
36884 (grub_iso9660_mount): Likewise.
36885 (grub_iso9660_mount): Likewise.
36886 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
36887 return statement.
36888 (grub_iso9660_iterate_dir): Likewise.
36889 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
36890
36891 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
36892 LEN to grub_disk_addr_t and grub_size_t, respectively.
36893
36894 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
36895
36896 * fs/jfs.c (grub_jfs_read_file): Likewise.
36897
36898 * fs/minix.c (grub_jfs_read_file): Likewise.
36899
36900 * fs/sfs.c (grub_jfs_read_file): Likewise.
36901
36902 * fs/ufs.c (grub_jfs_read_file): Likewise.
36903
36904 * fs/xfs.c (grub_jfs_read_file): Likewise.
36905
36906 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
36907 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
36908 respectively.
36909
36910 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
36911 BLKNR to -1 instead of returning GRUB_ERRNO.
36912 (grub_ext2_read_file): Change the types of SECTOR and
36913 LEN to grub_disk_addr_t and grub_size_t, respectively.
36914
36915 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
36916 LEN to grub_disk_addr_t and grub_size_t, respectively.
36917
36918 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
36919 grub_file_read.
36920
36921 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
36922 string. Do not cast SECTOR explicitly.
36923
36924 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
36925 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
36926 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
36927 grub_disk_addr_t and grub_size_t, respectively. If the sector is
36928 over 2TB and LBA mode is not supported, raise an error.
36929 (get_safe_sectors): New function.
36930 (grub_biosdisk_read): Use get_safe_sectors.
36931 (grub_biosdisk_write): Likewise.
36932
36933 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
36934 (grub_efidisk_write): Likewise.
36935
36936 * disk/loopback.c (delete_loopback): Cosmetic changes.
36937 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
36938 correctly.
36939 (grub_loopback_open): Likewise.
36940 (grub_loopback_read): Likewise. Also, change the type of POS to
36941 grub_off_t, and fix the usage of grub_memset.
36942
36943 * commands/i386/pc/play.c: Include grub/machine/time.h.
36944
36945 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
36946 print FILE->SIZE.
36947
36948 * commands/configfile.c: Include grub/env.h.
36949
36950 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
36951 GRUB_ERRNO directly instead. Change the type of POS to
36952 grub_off_t. Follow the coding standard.
36953
36954 * commands/blocklist.c: Include grub/partition.h.
36955 (grub_cmd_blocklist): Return an error if the underlying device is
36956 not a disk. Take the starting sector of a partition into account,
36957 if a partition is used.
36958
36959 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
36960 a length field.
36961 (lba_mode): Support 64-bit addresses.
36962 (chs_mode): Likewise.
36963 (copy_buffer): Adapted to the new offsets of a length field and a
36964 segment field.
36965 (blocklist_default_start): Allocate 64-bit space.
36966
36967 * boot/i386/pc/boot.S (force_lba): Removed.
36968 (boot_drive): Moved to under KERNEL_SECTOR.
36969 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
36970 space.
36971 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
36972 is useless.
36973 (lba_mode): Refactored to support a 64-bit address. More size
36974 optimization.
36975 (setup_sectors): Likewise.
36976
36977 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36978
36979 * DISTLIST: Added include/grub/i386/linux.h. Removed
36980 include/grub/i386/pc/linux.h
36981
36982 * configure.ac (AC_INIT): Bumped to 1.94.
36983
36984 * config.guess: Updated from gnulib.
36985 * config.sub: Likewise.
36986 * install-sh: Likewise.
36987 * mkinstalldirs: Likewise.
36988
36989 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
36990
36991 * conf/common.rmk (grub_modules_init.lst): Depended on
36992 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
36993 MODSRCFILES.
36994
36995 * genmk.rb (PModule::rule): Reverted the previous change.
36996
36997 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
36998
36999 * conf/common.rmk (grub_modules_init.lst): Depends on
37000 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
37001 that the target does not exist before producing.
37002 (grub_modules_init.h): Remove the target before generating.
37003 (grub_emu_init.c): Likewise.
37004
37005 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
37006
37007 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
37008
37009 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
37010 for the target-specific tests. Make sure that we also have the
37011 up-to-date target variables for those tests.
37012
37013 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
37014
37015 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
37016 (PModule::rule): Likewise.
37017
37018 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
37019
37020 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
37021 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
37022 target-specific flags should be prefixed.
37023 (PModule::rule): Likewise.
37024
37025 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
37026
37027 * configure.ac (CMP): Check if cmp is available explicitly.
37028
37029 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
37030
37031 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
37032 (target_cpu): New variable.
37033 (pkglibdir): Use target_cpu instead of host_cpu.
37034
37035 * util/i386/pc/grub-install.in (host_cpu): Removed.
37036 (target_cpu): New variable.
37037 (pkglibdir): Use target_cpu instead of host_cpu.
37038
37039 * util/genmoddep.c: Removed.
37040
37041 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
37042 instead of GRUB_HOST_SIZEOF_VOID_P.
37043 * kern/dl.c: Likewise.
37044
37045 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
37046 ...
37047 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37048 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37049 (GRUB_TARGET_SIZEOF_LONG): ... this.
37050 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37051 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37052 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
37053 to ...
37054 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37055 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37056 (GRUB_TARGET_SIZEOF_LONG): ... this.
37057 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37058 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37059 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
37060 to ...
37061 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37062 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37063 (GRUB_TARGET_SIZEOF_LONG): ... this.
37064 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37065 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37066
37067 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
37068 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
37069 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
37070 instead of GRUB_HOST_SIZEOF_LONG.
37071 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
37072 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
37073 GRUB_CPU_WORDS_BIGENDIAN.
37074 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
37075 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
37076 grub_host_ssize_t.
37077
37078 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
37079 (genmoddep_SOURCES): Likewise.
37080 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
37081 (genmoddep_SOURCES): Likewise.
37082 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
37083 (genmoddep_SOURCES): Likewise.
37084 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
37085 Likewise.
37086 (genmoddep_SOURCES): Likewise.
37087
37088 * genmoddep.awk: New file.
37089
37090 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
37091 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
37092 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
37093 (PModule::rule): Likewise.
37094 (Program::rule): Likewise.
37095 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
37096 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
37097 respectively.
37098
37099 * configure.ac: Rewritten intensively to use host and target
37100 instead of build and host, respectively.
37101
37102 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
37103 (host_cpu): Removed.
37104 (target_cpu): New variable.
37105 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
37106 (BUILD_CC): Removed.
37107 (BUILD_CFLAGS): Likewise.
37108 (BUILD_CPPFLAGS): Likewise.
37109 (TARGET_CC): New variable.
37110 (TARGET_CFLAGS): Likewise.
37111 (TARGET_CPPFLAGS): Likewise.
37112 (TARGET_LDFLAGS): Likewise.
37113 (AWK): Likewise.
37114 (include): Use target_cpu instead of host_cpu.
37115 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
37116
37117 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
37118
37119 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
37120
37121 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
37122 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
37123 field 'false' to 'exec_on_false'.
37124 (grub_script_create_cmdif): Renamed argument names to reflect above
37125 changes.
37126
37127 * normal/execute.c (grub_script_execute_cmdif): Likewise.
37128
37129 * normal/script.c (grub_script_create_cmdif): Likewise.
37130
37131 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
37132
37133 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
37134 top.
37135 (grub_hfsplus_btree_recptr): Likewise.
37136 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
37137 FILEBLOCK both to pass a block number and store next block
37138 number.
37139 (grub_hfsplus_read_block): Rewritten heavily to support an extent
37140 overflow file correctly. Specify errors appropriately, because
37141 fshelp expects that GRUB_ERRNO is set when fails. Reuse
37142 grub_hfsplus_btree_recptr to get the pointer to a found key.
37143 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
37144 is found.
37145
37146 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
37147 linux.mod.
37148 (_linux_mod_SOURCES): New variable.
37149 (_linux_mod_CFLAGS): Likewise.
37150 (_linux_mod_LDFLAGS): Likewise.
37151 (linux_mod_SOURCES): Likewise.
37152 (linux_mod_CFLAGS): Likewise.
37153 (linux_mod_LDFLAGS): Likewise.
37154
37155 * DISTLIST: Added loader/i386/efi/linux.c,
37156 loader/i386/efi/linux_normal.c and
37157 include/grub/i386/efi/loader.h.
37158
37159 * loader/i386/efi/linux.c: New file.
37160 * loader/i386/efi/linux_normal.c: Likewise.
37161 * include/grub/i386/efi/loader.h: Likewise.
37162
37163 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
37164
37165 * commands/blocklist.c: New file.
37166
37167 * DISTLIST: Added commands/blocklist.c.
37168
37169 * term/efi/console.c (grub_console_highlight_color): Use a lighter
37170 color for the background, and a darker color for the foreground.
37171 (grub_console_checkkey): Return READ_KEY.
37172 (grub_console_cls): Set the background to
37173 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
37174
37175 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
37176
37177 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
37178 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
37179
37180 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
37181 prototype.
37182
37183 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
37184 BG. The spec is wrong again.
37185
37186 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
37187 prototype.
37188 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
37189
37190 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
37191 commands/blocklist.c.
37192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37193
37194 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
37195 (blocklist_mod_SOURCES): New variable.
37196 (blocklist_mod_CFLAGS): Likewise.
37197 (blocklist_mod_LDFLAGS): Likewise.
37198
37199 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
37200
37201 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
37202 duplication.
37203 (lba_mode): Use %eax more intensively to reduce the code size.
37204
37205 2006-05-20 Marco Gerards <marco@gnu.org>
37206
37207 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
37208
37209 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
37210 for `menuentry'.
37211 (script): Accept leading newlines.
37212 (newlines): New rule to describe 0 or more newlines.
37213 (commands): Accept `command' with trailing newline. Fixed the
37214 order in which arguments were passed to `grub_script_add_cmd'.
37215 Accept commands separated by newlines.
37216 (function): Changed to accept newlines.
37217 (menuentry) Rewritten.
37218
37219 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
37220 front of the list, instead of to the end.
37221
37222 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
37223
37224 * util/i386/pc/grub-install.in (bindir): New variable.
37225 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
37226 Shaver <lbgwjl@gmail.com>.
37227
37228 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
37229
37230 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
37231 grub/machine/linux.h
37232 * loader/i386/pc/linux.c: Likewise.
37233
37234 * include/grub/i386/pc/linux.h: Moved to ...
37235 * include/grub/i386/linux.h: ... here.
37236
37237 * include/grub/i386/linux.h (struct linux_kernel_params): New
37238 struct.
37239
37240 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
37241
37242 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
37243 checking.
37244 (grub_video_vbe_blit_glyph): Likewise.
37245 (grub_video_vbe_blit_bitmap): Likewise.
37246 (grub_video_vbe_blit_render_target): Likewise.
37247
37248 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
37249
37250 * configure.ac (--with-platform): Properly quote the square
37251 brackets.
37252
37253 2006-05-08 Marco Gerards <marco@gnu.org>
37254
37255 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
37256 this...
37257 (kernel_elf_HEADERS): ...to this. Updated all users.
37258 (grubof_symlist.c): Renamed from this...
37259 (kernel_elf_symlist.c): ...to this. Updated all users.
37260 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37261 (grubof_SOURCES): Renamed from this...
37262 (kernel_elf_SOURCES): ...to this.
37263 (grubof_HEADERS): Renamed from this...
37264 (kernel_elf_HEADERS): ...to this.
37265 (grubof_CFLAGS): Renamed from this...
37266 (kernel_elf_CFLAGS): ...to this.
37267 (grubof_ASFLAGS): Renamed from this...
37268 (kernel_elf_ASFLAGS): ...to this.
37269 (grubof_LDFLAGS): Renamed from this...
37270 (kernel_elf_LDFLAGS): ...to this.
37271
37272 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
37273 this...
37274 (kernel_elf_HEADERS): ...to this. Updated all users.
37275 (grubof_symlist.c): Renamed from this...
37276 (kernel_elf_symlist.c): ...to this. Updated all users.
37277 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37278 (grubof_SOURCES): Renamed from this...
37279 (kernel_elf_SOURCES): ...to this.
37280 (grubof_HEADERS): Renamed from this...
37281 (kernel_elf_HEADERS): ...to this.
37282 (grubof_CFLAGS): Renamed from this...
37283 (kernel_elf_CFLAGS): ...to this.
37284 (grubof_ASFLAGS): Renamed from this...
37285 (kernel_elf_ASFLAGS): ...to this.
37286 (grubof_LDFLAGS): Renamed from this...
37287 (kernel_elf_LDFLAGS): ...to this.
37288
37289 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
37290 `kernel.elf' instead of `grubof'.
37291
37292 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
37293
37294 Add --with-platform to configure. Use pkglibdir instead of
37295 pkgdatadir. This is reported by Roger Leigh.
37296
37297 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
37298 (host_vendor): Likewise.
37299 (host_os): Likewise.
37300 (pkgdatadir): Likewise.
37301 (platform): New variable.
37302 (pkglibdir): Likewise.
37303 Use PKGLIBDIR instead of PKGDATADIR.
37304
37305 * util/i386/pc/grub-install.in (datadir): Removed.
37306 (host_vendor): Likewise.
37307 (host_os): Likewise.
37308 (pkgdatadir): Likewise.
37309 (platform): New variable.
37310 (pkglibdir): Likewise.
37311 Use PKGLIBDIR instead of PKGDATADIR.
37312
37313 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
37314 instead of GRUB_DATADIR.
37315 (main): Likewise.
37316 * util/i386/pc/grub-mkimage.c (usage): Likewise.
37317 (main): Likewise.
37318 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37319 (main): Likewise.
37320
37321 * configure.ac (--with-platform): New option.
37322 Use PLATFORM instead of HOST_VENDOR to specify a platform.
37323
37324 * Makefile.in: Include a makefile based on PLATFORM instead of
37325 HOST_VENDOR.
37326 (pkgdatadir): Not appended by the machine type.
37327 (pkglibdir): Appended by the machine type.
37328 (host_vendor): Removed.
37329 (platform): New variable.
37330 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
37331 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
37332 (uninstall): Likewise.
37333
37334 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
37335
37336 Use the environment context in the menu. Remove the commands
37337 "default" and "timeout", and use variables instead.
37338
37339 * normal/menu.c: Include grub/env.h.
37340 (print_entry): Cast TITLE to silence gcc.
37341 (get_timeout): New function.
37342 (set_timeout): Likewise.
37343 (get_entry_number): Likewise.
37344 (run_menu): Use a default entry, a fallback entry and a timeout
37345 in the environment variables "default", "fallback" and
37346 "timeout". Also, tweak the default entry if it is not within the
37347 current menu entries.
37348 (grub_menu_run): Use a fallback entry in the environment variable
37349 "fallback".
37350
37351 * normal/main.c (read_config_file): Do not initialize
37352 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
37353 NEWMENU->TIMEOUT.
37354 (grub_normal_execute): Use a data slot to store the menu.
37355
37356 * include/grub/normal.h (struct grub_menu): Removed default_entry,
37357 fallback_entry and timeout.
37358 (struct grub_menu_list): Removed.
37359 (grub_menu_list_t): Likewise.
37360 (struct grub_context): Likewise.
37361 (grub_context_t): Likewise.
37362 (grub_context_get): Likewise.
37363 (grub_context_get_current_menu): Likewise.
37364 (grub_context_push_menu): Likewise.
37365 (grub_context_pop_menu): Likewise.
37366 (grub_default_init): Likewise.
37367 (grub_default_fini): Likewise.
37368 (grub_timeout_init): Likewise.
37369 (grub_timeout_fini): Likewise.
37370
37371 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
37372 and timeout.mod.
37373 (normal_mod_SOURCES): Removed normal/context.c.
37374
37375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
37376 commands/default.c, commands/timeout.c and normal/context.c.
37377 (normal_mod_SOURCES): Removed normal/context.c.
37378
37379 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
37380 commands/timeout.c and normal/context.c.
37381 (normal_mod_SOURCES): Removed normal/context.c.
37382
37383 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
37384 commands/default.c, commands/timeout.c and normal/context.c.
37385 (normal_mod_SOURCES): Removed normal/context.c.
37386
37387 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
37388 timeout.mod.
37389 (default_mod_SOURCES): Removed.
37390 (default_mod_CFLAGS): Likewise.
37391 (default_mod_LDFLAGS): Likewise.
37392 (timeout_mod_SOURCES): Removed.
37393 (timeout_mod_CFLAGS): Likewise.
37394 (timeout_mod_LDFLAGS): Likewise.
37395
37396 * DISTLIST: Removed commands/default.c, commands/timeout.c and
37397 normal/context.c.
37398
37399 * commands/default.c: Removed.
37400 * commands/timeout.c: Likewise.
37401 * normal/context.c: Likewise.
37402
37403 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
37404
37405 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
37406
37407 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
37408
37409 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
37410 "next" to "prev" for readability.
37411 (struct grub_env_sorted_var): New struct.
37412 (grub_env_context): Renamed to ...
37413 (initial_context): ... this.
37414 (grub_env_var_context): Renamed to ...
37415 (current_context): ... this.
37416 (grub_env_find): Look only at CURRENT_CONTEXT.
37417 (grub_env_context_open): Rewritten to copy exported variables from
37418 previous context.
37419 (grub_env_context_close): Rewritten according to the new
37420 scheme. Also, add an assertion to prevent the initial context from
37421 removed.
37422 (grub_env_insert): Removed the code for the sorted list.
37423 (grub_env_remove): Likewise.
37424 (grub_env_export): Simply mark the variable with
37425 GRUB_ENV_VAR_GLOBAL.
37426 (grub_env_set): A cosmetic change for naming consistency.
37427 (grub_env_get): Likewise.
37428 (grub_env_unset): Likewise.
37429 (grub_env_iterate): Rewritten to sort variables within this
37430 function.
37431 (grub_register_variable_hook): Fixed for naming consistency. Call
37432 grub_env_find again, only if NAME is not found at the first time.
37433 (mangle_data_slot_name): New function.
37434 (grub_env_set_data_slot): Likewise.
37435 (grub_env_get_data_slot): Likewise.
37436 (grub_env_unset_data_slot): Likewise.
37437
37438 * include/grub/env.h (grub_env_var_type): New enum.
37439 (GRUB_ENV_VAR_LOCAL): New constant.
37440 (GRUB_ENV_VAR_GLOBAL): Likewise.
37441 (GRUB_ENV_VAR_DATA): Likewise.
37442 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
37443 "type".
37444 (grub_env_set): Replace VAR with NAME for consistency.
37445 (grub_register_variable_hook): Likewise.
37446 (grub_env_export): Specify the name of the argument.
37447 (grub_env_set_data_slot): New prototype.
37448 (grub_env_get_data_slot): Likewise.
37449 (grub_env_unset_data_slot): Likewise.
37450
37451 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37452
37453 Extend the loader so that GRUB can accept a loader which comes
37454 back to GRUB when a loaded image exits. Also, this change adds
37455 support for a chainloader on EFI.
37456
37457 * term/efi/console.c: Include grub/misc.h.
37458 (grub_console_checkkey): Display a scan code on the top for
37459 debugging. This will be removed once the EFI port gets stable.
37460 Correct the scan code mapping.
37461
37462 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
37463 allocate memory from larger regions, in order to reduce the number
37464 of allocated regions. Otherwise, the MacOSX loader panics.
37465 (filter_memory_map): Avoid less than 1MB for compatibility with
37466 other loaders.
37467 (add_memory_regions): Allocate from the tail of a region, if
37468 possible, to avoid allocating a region near to 1MB, for the MacOSX
37469 loader.
37470
37471 * kern/efi/init.c (grub_efi_set_prefix): Specify
37472 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
37473
37474 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
37475 argument IMAGE_HANDLE and specify it to get a loaded image.
37476 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
37477 grub_efi_get_loaded_image.
37478 (grub_efi_get_filename): Divide the length by the size of
37479 grub_efi_char16_t.
37480 (grub_efi_get_device_path): New function.
37481 (grub_efi_print_device_path): Print End Device Path nodes. Divide
37482 the length by the size of grub_efi_char16_t for a file path device
37483 path node.
37484
37485 * kern/loader.c (grub_loader_noreturn): New variable.
37486 (grub_loader_set): Accept a new argument NORETURN. Set
37487 GRUB_LOADER_NORETURN to NORETURN.
37488 All callers changed.
37489 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
37490 grub_machine_fini.
37491
37492 * include/grub/efi/efi.h (grub_efi_get_device_path): New
37493 prototype.
37494 (grub_efi_get_loaded_image): Take an argument to specify an image
37495 handle.
37496
37497 * include/grub/loader.h (grub_loader_set): Added one more argument
37498 NORETURN.
37499
37500 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
37501 instead of grub_efi_open_protocol.
37502 (grub_efidisk_get_device_name): Likewise.
37503 (grub_efidisk_close): Print a newline.
37504 (grub_efidisk_get_device_handle): Fixed to use
37505 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
37506 GRUB_EFI_DEVICE_PATH_TYPE.
37507
37508 * disk/efi/efidisk.c (device_path_guid): Moved to ...
37509 * kern/efi/efi.c (device_path_guid): ... here.
37510
37511 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
37512 chain.mod.
37513 (kernel_mod_HEADERS): Added efi/disk.h.
37514 (_chain_mod_SOURCES): New variable.
37515 (_chain_mod_CFLAGS): Likewise.
37516 (_chain_mod_LDFLAGS): Likewise.
37517 (chain_mod_SOURCES): Likewise.
37518 (chain_mod_CFLAGS): Likewise.
37519 (chain_mod_LDFLAGS): Likewise.
37520
37521 * DISTLIST: Added include/grub/efi/chainloader.h,
37522 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
37523
37524 * include/grub/efi/chainloader.h: New file.
37525 * loader/efi/chainloader.c: Likewise.
37526 * loader/efi/chainloader_normal.c: Likewise.
37527
37528 2006-04-30 Marco Gerards <marco@gnu.org>
37529
37530 * commands/configfile.c (grub_cmd_source): New function.
37531 (GRUB_MOD_INIT): Register the commands `source' and `.'.
37532 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
37533
37534 2006-04-30 Marco Gerards <marco@gnu.org>
37535
37536 * normal/execute.c (grub_script_execute_cmd): Change the return
37537 type to `grub_err_t'. Correctly return the error.
37538 (grub_script_execute_cmdline): In case a command line is not a
37539 command or a function, try to interpret it as an assignment.
37540
37541 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37542
37543 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
37544 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
37545 skip a node whose name is obviously invalid as UTF-16,
37546 i.e. contains a NUL character. Stop the iteration when the last
37547 directory entry is found. Instead of using the return value of
37548 grub_hfsplus_btree_iterate_node, store the value in RET and use
37549 it, because the iterator can be stopped by the last directory
37550 entry.
37551
37552 2006-04-30 Marco Gerards <marco@gnu.org>
37553
37554 * include/grub/env.h (grub_env_export): New prototype. Reported
37555 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
37556
37557 2006-04-30 Marco Gerards <marco@gnu.org>
37558
37559 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
37560 size of the extents in a catalog file record.
37561
37562 2006-04-29 Marco Gerards <marco@gnu.org>
37563
37564 * commands/configfile.c (grub_cmd_configfile): Execute the
37565 configfile within its own context.
37566
37567 * include/grub/env.h (grub_env_context_open): New prototype.
37568 (grub_env_context_close): Likewise.
37569
37570 * kern/env.c (grub_env): Removed.
37571 (grub_env_sorted): Likewise.
37572 (grub_env_context): New variable.
37573 (grub_env_var_context): Likewise.
37574 (grub_env_find): Search both the active context and the global
37575 context.
37576 (grub_env_context_open): New function.
37577 (grub_env_context_close): Likewise.
37578 (grub_env_insert): Likewise.
37579 (grub_env_remove): Likewise.
37580 (grub_env_export): Likewise.
37581 (grub_env_set): Changed to use helper functions to avoid code
37582 duplication.
37583 (grub_env_iterate): Rewritten so both the current context and the
37584 global context are being used.
37585
37586 * normal/command.c (export_command): New function.
37587 (grub_command_init): Register the `export' function.
37588
37589 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
37590
37591 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
37592 explicitly to suppress gcc's warnings.
37593 * fs/fat.c (grub_fat_find_dir): Likewise.
37594 (grub_fat_label): Likewise.
37595 * fs/xfs.c (grub_xfs_read_inode): Likewise.
37596 (grub_xfs_mount): Likewise.
37597 (grub_xfs_label): Likewise.
37598 * fs/affs.c (grub_affs_mount): Likewise.
37599 (grub_affs_label): Likewise.
37600 (grub_affs_iterate_dir): Likewise.
37601 * fs/sfs.c (grub_sfs_mount): Likewise.
37602 (grub_sfs_iterate_dir): Likewise.
37603 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
37604 * fs/hfs.c (grub_hfs_mount): Likewise.
37605 (grub_hfs_cmp_catkeys): Likewise.
37606 (grub_hfs_find_dir): Likewise.
37607 (grub_hfs_dir): Likewise.
37608 (grub_hfs_label): Likewise.
37609 * fs/jfs.c (grub_jfs_mount): Likewise.
37610 (grub_jfs_opendir): Likewise.
37611 (grub_jfs_getent): Likewise.
37612 (grub_jfs_lookup_symlink): Likewise.
37613 (grub_jfs_label): Likewise.
37614 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
37615 (grub_hfsplus_iterate_dir): Likewise.
37616 (grub_hfsplus_btree_iterate_node): Made static.
37617
37618 * util/grub-emu.c (prefix): New variable.
37619 (grub_machine_set_prefix): New function.
37620 (main): Do not set the environment variable "prefix" here. Only
37621 set PREFIX, which is used later by grub_machine_set_prefix.
37622
37623 * include/grub/video.h: Do not include grub/symbol.h.
37624 (grub_video_register): Not exported. This symbol is not defined in
37625 the kernel.
37626 (grub_video_unregister): Likewise.
37627 (grub_video_iterate): Likewise.
37628 (grub_video_setup): Likewise.
37629 (grub_video_restore): Likewise.
37630 (grub_video_get_info): Likewise.
37631 (grub_video_get_blit_format): Likewise.
37632 (grub_video_set_palette): Likewise.
37633 (grub_video_get_palette): Likewise.
37634 (grub_video_set_viewport): Likewise.
37635 (grub_video_get_viewport): Likewise.
37636 (grub_video_map_color): Likewise.
37637 (grub_video_map_rgb): Likewise.
37638 (grub_video_map_rgba): Likewise.
37639 (grub_video_fill_rect): Likewise.
37640 (grub_video_blit_glyph): Likewise.
37641 (grub_video_blit_bitmap): Likewise.
37642 (grub_video_blit_render_target): Likewise.
37643 (grub_video_scroll): Likewise.
37644 (grub_video_swap_buffers): Likewise.
37645 (grub_video_create_render_target): Likewise.
37646 (grub_video_delete_render_target): Likewise.
37647 (grub_video_set_active_render_target): Likewise.
37648
37649 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
37650 Undefined.
37651 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
37652
37653 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
37654 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37655 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37656 instead of $(srcdir)/genkernsyms.sh.
37657
37658 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
37659 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37660 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37661 instead of $(srcdir)/genkernsyms.sh.
37662
37663 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
37664 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37665 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37666 instead of $(srcdir)/genkernsyms.sh.
37667
37668 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
37669 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37670 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37671 instead of $(srcdir)/genkernsyms.sh.
37672
37673 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
37674 genkernsyms.sh.
37675
37676 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
37677 genkernsyms.sh.
37678 (gensymlist.sh): New target.
37679 (genkernsyms.sh): Likewise.
37680
37681 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
37682 genkernsyms.sh.in and gensymlist.sh.in.
37683
37684 * genkernsyms.sh: Removed.
37685 * gensymlist.sh: Likewise.
37686
37687 * genkernsyms.sh.in: New file.
37688 * gensymlist.sh.in: Likewise.
37689
37690 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37691
37692 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
37693 clobber "prefix", since we may have already set it manually.
37694
37695 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37696
37697 * kern/misc.c (abort): New alias for grub_abort.
37698
37699 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
37700
37701 A new machine-specific function "grub_machine_set_prefix" is
37702 defined. This is called after loading modules, so that a prefix
37703 initialization can use modules. Also, this change adds an
37704 intensive debugging feature for the memory manager via the
37705 configure option "--enable-mm-debug".
37706
37707 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
37708 PART.LEN.
37709
37710 * kern/sparc64/ieee1275/init.c (abort): Removed.
37711 (grub_stop): Likewise.
37712 (grub_exit): New function.
37713 (grub_set_prefix): Renamed to ...
37714 (grub_machine_set_prefix): ... this.
37715 (grub_machine_init): Do not call grub_set_prefix.
37716
37717 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
37718 (grub_machine_set_prefix): ... this.
37719 (grub_machine_init): Do not call grub_set_prefix.
37720
37721 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
37722 (grub_machine_init): Do not set the prefix here.
37723
37724 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
37725
37726 * kern/efi/init.c: Include grub/mm.h.
37727 (grub_efi_set_prefix): New function.
37728
37729 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
37730 (grub_efi_get_filename): New function.
37731 (grub_print_device_path): Renamed to ...
37732 (grub_efi_print_device_path): ... this.
37733
37734 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
37735 [MM_DEBUG] (grub_realloc): Likewise.
37736 [MM_DEBUG] (grub_free): Likewise.
37737 [MM_DEBUG] (grub_memalign): Likewise.
37738 [MM_DEBUG] (grub_mm_debug): New variable.
37739 [MM_DEBUG] (grub_debug_malloc): New function.
37740 [MM_DEBUG] (grub_debug_free): New function.
37741 [MM_DEBUG] (grub_debug_realloc): New function.
37742 [MM_DEBUG] (grub_debug_memalign): New function.
37743
37744 * kern/misc.c (grub_abort): Print a newline to distinguish
37745 the message.
37746
37747 * kern/main.c (grub_main): Call grub_machine_set_prefix and
37748 grub_set_root_dev after loading modules. This is necessary when
37749 setting a prefix depends on modules.
37750
37751 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
37752 (grub_efi_print_device_path): ... this.
37753 (grub_efi_get_filename): New prototype.
37754 (grub_efi_set_prefix): Likewise.
37755
37756 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
37757 and grub/disk.h.
37758 (grub_efidisk_get_device_handle): New prototype.
37759 (grub_efidisk_get_device_name): Likewise.
37760
37761 * include/grub/mm.h: Include config.h.
37762 (MM_DEBUG): Removed.
37763 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
37764 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
37765 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
37766 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
37767 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
37768 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
37769 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
37770 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
37771 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
37772
37773 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
37774
37775 * disk/efi/efidisk.c: Include grub/partition.h.
37776 (iterate_child_devices): New function.
37777 (add_device): First, compare only last device path nodes, so that
37778 devices are sorted by the types.
37779 (grub_efidisk_get_device_handle): New function.
37780 (grub_efidisk_get_device_name): Likewise.
37781
37782 * configure.ac (--enable-mm-debug): New option to enable the
37783 memory manager debugging feature. This makes the binary much
37784 bigger, so is disabled by default.
37785
37786 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
37787
37788 Use grub_abort instead of grub_stop, and grub_exit must be
37789 define in each architecture now. Also, this change adds support
37790 for EFI disks.
37791
37792 * util/i386/pc/grub-probefs.c: Include grub/term.h.
37793 (grub_getkey): New function.
37794 (grub_term_get_current): Likewise.
37795
37796 * util/i386/pc/grub-setup.c: Include grub/term.h.
37797 (grub_getkey): New function.
37798 (grub_term_get_current): Likewise.
37799
37800 * util/misc.c (grub_stop): Renamed to ...
37801 (grub_exit): ... this.
37802
37803 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
37804 (grub_exit): ... this.
37805 (grub_machine_init): Use grub_abort instead of abort.
37806 (grub_stop): Removed.
37807
37808 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
37809 abort.
37810
37811 * kern/i386/pc/startup.S (grub_exit): New function.
37812 (cold_reboot): New label.
37813
37814 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
37815 (grub_efi_init): Call grub_efidisk_init.
37816 (grub_efi_fini): Call grub_efidisk_fini.
37817
37818 * kern/efi/efi.c: Include grub/mm.h.
37819 (grub_efi_console_control_guid): Renamed to ...
37820 (console_control_guid): ... this.
37821 (grub_efi_loaded_image_guid): Renamed to ...
37822 (loaded_image_guid): ... this.
37823 (grub_efi_locate_handle): New function.
37824 (grub_efi_open_protocol): Likewise.
37825 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
37826 GRUB_EFI_CONSOLE_CONTROL_GUID.
37827 (grub_efi_exit): Removed.
37828 (grub_stop): Likewise.
37829 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
37830 (grub_exit): New function.
37831 (grub_print_device_path): Likewise.
37832
37833 * kern/rescue.c (grub_rescue_cmd_exit): New function.
37834 (grub_enter_rescue_mode): Register "exit".
37835
37836 * kern/misc.c (grub_real_dprintf): A cosmetic change.
37837 (grub_abort): New function.
37838
37839 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
37840
37841 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
37842
37843 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
37844
37845 * include/grub/efi/efi.h (grub_efi_exit): Removed.
37846 (grub_print_device_path): New prototype.
37847 (grub_efi_locate_handle): Likewise.
37848 (grub_efi_open_protocol): Likewise.
37849
37850 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
37851 * disk/efi/efidisk.c: Likewise.
37852
37853 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
37854
37855 * include/grub/efi/console_control.h
37856 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
37857
37858 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
37859 last 8 bytes as an array.
37860 (GRUB_EFI_DISK_IO_GUID): New macro.
37861 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
37862 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
37863 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
37864 grub_uint8_t.
37865 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
37866 (struct grub_efi_device_path): Rename the member "sub_type" to
37867 "subtype".
37868 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
37869 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
37870 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
37871 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
37872 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
37873 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
37874 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
37875 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
37876 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
37877 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
37878 (struct grub_efi_pci_device_path): New structure.
37879 (grub_efi_pci_device_path_t): New type.
37880 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
37881 (struct grub_efi_pccard_device_path): New structure.
37882 (grub_efi_pccard_device_path_t): New type.
37883 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
37884 (struct grub_efi_memory_mapped_device_path): New structure.
37885 (grub_efi_memory_mapped_device_path_t): New type.
37886 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
37887 (struct grub_efi_vendor_device_path): New structure.
37888 (grub_efi_vendor_device_path_t): New type.
37889 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
37890 (struct grub_efi_controller_device_path): New structure.
37891 (grub_efi_controller_device_path_t): New type.
37892 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
37893 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
37894 (struct grub_efi_acpi_device_path): New structure.
37895 (grub_efi_acpi_device_path_t): New type.
37896 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
37897 (struct grub_efi_expanded_acpi_device_path): New structure.
37898 (grub_efi_expanded_acpi_device_path_t): New type.
37899 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
37900 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
37901 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
37902 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
37903 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
37904 (struct grub_efi_atapi_device_path): New structure.
37905 (grub_efi_atapi_device_path_t): New type.
37906 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
37907 (struct grub_efi_fibre_channel_device_path): New structure.
37908 (grub_efi_fibre_channel_device_path_t): New type.
37909 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
37910 (struct grub_efi_1394_device_path): New structure.
37911 (grub_efi_1394_device_path_t): New type.
37912 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
37913 (struct grub_efi_usb_device_path): New structure.
37914 (grub_efi_usb_device_path_t): New type.
37915 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
37916 (struct grub_efi_usb_class_device_path): New structure.
37917 (grub_efi_usb_class_device_path_t): New type.
37918 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
37919 (struct grub_efi_i2o_device_path): New structure.
37920 (grub_efi_i2o_device_path_t): New type.
37921 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
37922 (struct grub_efi_mac_address_device_path): New structure.
37923 (grub_efi_mac_address_device_path_t): New type.
37924 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
37925 (struct grub_efi_ipv4_device_path): New structure.
37926 (grub_efi_ipv4_device_path_t): New type.
37927 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
37928 (struct grub_efi_ipv6_device_path): New structure.
37929 (grub_efi_ipv6_device_path_t): New type.
37930 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
37931 (struct grub_efi_infiniband_device_path): New structure.
37932 (grub_efi_infiniband_device_path_t): New type.
37933 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
37934 (struct grub_efi_uart_device_path): New structure.
37935 (grub_efi_uart_device_path_t): New type.
37936 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
37937 (struct grub_efi_vendor_messaging_device_path): New structure.
37938 (grub_efi_vendor_messaging_device_path_t): New type.
37939 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
37940 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
37941 (struct grub_efi_hard_drive_device_path): New structure.
37942 (grub_efi_hard_drive_device_path_t): New type.
37943 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
37944 (struct grub_efi_cdrom_device_path): New structure.
37945 (grub_efi_cdrom_device_path_t): New type.
37946 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
37947 (struct grub_efi_vendor_media_device_path): New structure.
37948 (grub_efi_vendor_media_device_path_t): New type.
37949 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
37950 (struct grub_efi_file_path_device_path): New structure.
37951 (grub_efi_file_path_device_path_t): New type.
37952 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
37953 (struct grub_efi_protocol_device_path): New structure.
37954 (grub_efi_protocol_device_path_t): New type.
37955 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
37956 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
37957 (struct grub_efi_bios_device_path): New structure.
37958 (grub_efi_bios_device_path_t): New type.
37959 (struct grub_efi_disk_io): New structure.
37960 (grub_efi_disk_io_t): New type.
37961 (struct grub_efi_block_io_media): New structure.
37962 (grub_efi_block_io_media_t): New type.
37963 (struct grub_efi_block_io): New structure.
37964 (grub_efi_block_io_t): New type.
37965
37966 * include/grub/misc.h (grub_stop): Removed.
37967 (grub_exit): New prototype.
37968 (grub_abort): Likewise.
37969
37970 * include/grub/disk.h (enum grub_disk_dev_id): Added
37971 GRUB_DISK_DEVICE_EFIDISK_ID.
37972
37973 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
37974 disk/efi/efidisk.c.
37975 (kernel_syms.lst): Remove the target if an error occurs.
37976
37977 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
37978
37979 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
37980 as it was simply too buggy.
37981
37982 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
37983
37984 * kern/misc.c (grub_lltoa): New function.
37985 (grub_vsprintf): Added support for the long long suffix,
37986 i.e. "ll".
37987
37988 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
37989
37990 * Makefile.in (LDFLAGS): Add variable.
37991 (LD): Remove variable.
37992 * configure.ac: Add -m32 to LDFLAGS.
37993 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
37994 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
37995 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
37996 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
37997 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
37998 variables.
37999 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
38000 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
38001 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
38002
38003 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
38004
38005 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
38006 length for unknown glyph.
38007
38008 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
38009
38010 Add support for pre-loaded modules into the EFI port.
38011
38012 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
38013 completely. Accept one more argument DIR. The caller has changed.
38014
38015 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
38016
38017 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
38018 (grub_efi_loaded_image_guid): New variable.
38019 (grub_efi_get_loaded_image): New function.
38020 (grub_arch_modules_addr): Likewise.
38021
38022 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
38023 prototype.
38024
38025 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
38026 (struct grub_efi_loaded_image): New structure.
38027 (grub_efi_loaded_image_t): New type.
38028
38029 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
38030
38031 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
38032 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
38033 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
38034
38035 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
38036
38037 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
38038
38039 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
38040
38041 * DISTLIST: Added include/grub/efi/console.h,
38042 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
38043 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38044
38045 * include/grub/efi/console.h: New file.
38046 * include/grub/efi/time.h: Likewise.
38047 * include/grub/i386/efi/kernel.h: Likewise.
38048 * kern/efi/init.c: Likewise.
38049 * kern/efi/mm.c: Likewise.
38050 * term/efi/console.c: Likewise.
38051
38052 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
38053 (grub_stop): Removed.
38054 (grub_get_rtc): Likewise.
38055 (grub_machine_init): Simply call grub_efi_init.
38056 (grub_machine_fini): Call grub_efi_fini.
38057
38058 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
38059 (grub_efi_output_string): Removed.
38060 (grub_efi_stall): New function.
38061 (grub_stop): Likewise.
38062 (grub_get_rtc): Likewise.
38063
38064 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
38065 (grub_efi_stall): New prototype.
38066 (grub_efi_allocate_pages): Likewise.
38067 (grub_efi_free_pages): Likewise.
38068 (grub_efi_get_memory_map): Likewise.
38069 (grub_efi_mm_init): Likewise.
38070 (grub_efi_mm_fini): Likewise.
38071 (grub_efi_init): Likewise.
38072 (grub_efi_fini): Likewise.
38073
38074 * include/grub/i386/efi/time.h: Do not include
38075 grub/symbol.h. Include grub/efi/time.h.
38076 (GRUB_TICKS_PER_SECOND): Removed.
38077 (grub_get_rtc): Likewise.
38078
38079 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
38080 Added padding. The EFI spec is buggy.
38081 (GRUB_EFI_BLACK): New macro.
38082 (GRUB_EFI_BLUE): Likewise.
38083 (GRUB_EFI_GREEN): Likewise.
38084 (GRUB_EFI_CYAN): Likewise.
38085 (GRUB_EFI_RED): Likewise.
38086 (GRUB_EFI_MAGENTA): Likewise.
38087 (GRUB_EFI_BROWN): Likewise.
38088 (GRUB_EFI_LIGHTGRAY): Likewise.
38089 (GRUB_EFI_BRIGHT): Likewise.
38090 (GRUB_EFI_DARKGRAY): Likewise.
38091 (GRUB_EFI_LIGHTBLUE): Likewise.
38092 (GRUB_EFI_LIGHTGREEN): Likewise.
38093 (GRUB_EFI_LIGHTCYAN): Likewise.
38094 (GRUB_EFI_LIGHTRED): Likewise.
38095 (GRUB_EFI_LIGHTMAGENTA): Likewise.
38096 (GRUB_EFI_YELLOW): Likewise.
38097 (GRUB_EFI_WHITE): Likewise.
38098 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
38099 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
38100 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
38101 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
38102 (GRUB_EFI_BACKGROUND_RED): Likewise.
38103 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
38104 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
38105 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
38106 (GRUB_EFI_TEXT_ATTR): Likewise.
38107
38108 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
38109 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38110 (kernel_mod_HEADERS): Added efi/time.h.
38111
38112 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
38113
38114 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
38115 include/grub/efi/api.h, include/grub/efi/console_control.h,
38116 include/grub/efi/efi.h, include/grub/efi/pe32.h,
38117 include/grub/i386/efi/time.h, kern/efi/efi.c,
38118 kern/i386/efi/init.c, kern/i386/efi/startup.S,
38119 and util/i386/efi/grub-mkimage.c.
38120
38121 * Makefile.in (RMKFILES): Added i386-efi.rmk.
38122
38123 * genmk.rb (PModule#rule): Do not export symbols if
38124 #{prefix}_EXPORTS is set to "no".
38125
38126 * conf/i386-efi.mk: New file.
38127 * conf/i386-efi.rmk: Likewise.
38128 * include/grub/efi/api.h: Likewise.
38129 * include/grub/efi/console_control.h: Likewise.
38130 * include/grub/efi/efi.h: Likewise.
38131 * include/grub/efi/pe32.h: Likewise.
38132 * include/grub/i386/efi/time.h: Likewise.
38133 * kern/efi/efi.c: Likewise.
38134 * kern/i386/efi/init.c: Likewise.
38135 * kern/i386/efi/startup.S: Likewise.
38136 * util/i386/efi/grub-mkimage.c: Likewise.
38137
38138 2006-04-17 Marco Gerards <marco@gnu.org>
38139
38140 * include/grub/script.h: Include <grub/parser.h> and
38141 "grub_script.tab.h".
38142 (struct grub_lexer_param): New struct.
38143 (struct grub_parser_param): Likewise.
38144 (grub_script_create_arglist): Pass the state in an argument.
38145 (grub_script_add_arglist): Likewise.
38146 (grub_script_create_cmdline): Likewise.
38147 (grub_script_create_cmdblock): Likewise.
38148 (grub_script_create_cmdif): Likewise.
38149 (grub_script_create_cmdmenu): Likewise.
38150 (grub_script_add_cmd): Likewise.
38151 (grub_script_arg_add): Likewise.
38152 (grub_script_lexer_ref): Likewise.
38153 (grub_script_lexer_deref): Likewise.
38154 (grub_script_lexer_record_start): Likewise.
38155 (grub_script_lexer_record_stop): Likewise.
38156 (grub_script_mem_record): Likewise.
38157 (grub_script_mem_record_stop): Likewise.
38158 (grub_script_malloc): Likewise.
38159 (grub_script_yylex): Likewise.
38160 (grub_script_yyparse): Likewise.
38161 (grub_script_yyerror): Likewise.
38162 (grub_script_yylex): Likewise.
38163 (grub_script_lexer_init): Return the state.
38164
38165 * normal/lexer.c (grub_script_lexer_state): Removed variable.
38166 (grub_script_lexer_done): Likewise.
38167 (grub_script_lexer_getline): Likewise.
38168 (grub_script_lexer_refs): Likewise.
38169 (script): Likewise.
38170 (newscript): Likewise.
38171 (record): Likewise.
38172 (recording): Likewise.
38173 (recordpos): Likewise.
38174 (recordlen): Likewise.
38175 (grub_script_lexer_init): Return the state instead of setting
38176 global variables.
38177 (grub_script_lexer_ref): Use the newly added argument for state
38178 instead of globals.
38179 (grub_script_lexer_deref): Likewise.
38180 (grub_script_lexer_record_start): Likewise.
38181 (grub_script_lexer_record_stop): Likewise.
38182 (recordchar): Likewise.
38183 (nextchar): Likewise.
38184 (grub_script_yylex2): Likewise.
38185 (grub_script_yylex): Likewise.
38186 (grub_script_yyerror): Likewise.
38187
38188 * normal/parser.y (func_mem): Removed variable.
38189 (menu_entry): Likewise.
38190 (err): Likewise.
38191 (%lex-param): New parser option.
38192 (%parse-param): Likewise.
38193 (script): Always return the AST.
38194 (argument): Pass the state around.
38195 (arguments): Likewise.
38196 (grubcmd): Likewise.
38197 (commands): Likewise.
38198 (function): Likewise.
38199 (menuentry): Likewise.
38200 (if_statement): Likewise.
38201 (if): Likewise.
38202
38203 * normal/script.c (grub_script_memused): Removed variable.
38204 (grub_script_parsed): Likewise.
38205 (grub_script_malloc): Added a state argument. Use that instead of
38206 global variables.
38207 (grub_script_mem_record): Likewise.
38208 (grub_script_mem_record_stop): Likewise.
38209 (grub_script_arg_add): Likewise.
38210 (grub_script_add_arglist): Likewise.
38211 (grub_script_create_cmdline): Likewise.
38212 (grub_script_create_cmdif): Likewise.
38213 (grub_script_create_cmdmenu): Likewise.
38214 (grub_script_add_cmd): Likewise.
38215 (grub_script_parse): Setup the state before calling the parser.
38216
38217 2006-04-16 Marco Gerards <marco@gnu.org>
38218
38219 * normal/command.c (grub_command_init): Remove the title command.
38220
38221 * normal/lexer.c (grub_script_yylex): Renamed from this...
38222 (grub_script_yylex2): ... to this.
38223 (grub_script_yylex): New function. Temporary
38224 introduced to filter some tokens.
38225 (grub_script_yyerror): Print a newline.
38226
38227 * normal/main.c (read_config_file): Output information about the
38228 lines that contain errors. Wait for a key after all lines have
38229 been processed. Don't return an empty menu.
38230
38231 * normal/parser.y (func_mem): Don't initialize.
38232 (menu_entry): Likewise.
38233 (err): New variable.
38234 (script): Don't return anything when an error was encountered.
38235 (ws, returns): Removed rules.
38236 (argument): Disabled concatenated variable support.
38237 (arguments): Remove explicit separators.
38238 (grubcmd): Likewise.
38239 (function): Likewise.
38240 (menuentry): Likewise.
38241 (if): Likewise.
38242 (commands): Likewise. Add error handling.
38243
38244 * normal/script.c (grub_script_create_cmdline): If
38245 `grub_script_parsed' is 0, assume the parser encountered an error.
38246
38247 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
38248
38249 * configure.ac: Add support for EFI. Fix the typo
38250 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
38251
38252 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38253
38254 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
38255 foreign multibyte characters should be shown correctly.
38256
38257 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38258
38259 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
38260 calculation.
38261 (read_config_file): Made it to close file before returning.
38262
38263 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
38264
38265 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
38266 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
38267 video/i386/pc/vbefill.c.
38268
38269 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
38270 video/i386/pc/vbefill.c.
38271
38272 * include/grub/video.h (grub_video_blit_format): New enum.
38273 (grub_video_mode_info): Added new member blit_format.
38274 (grub_video_get_blit_format): New function prototype.
38275
38276 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
38277 function prototype.
38278 (grub_video_vbe_map_rgb): Likewise.
38279 (grub_video_vbe_unmap_color): Likewise.
38280
38281 * include/grub/i386/pc/vbeblit.h: New file.
38282
38283 * include/grub/i386/pc/vbefill.h: New file.
38284
38285 * video/video.c (grub_video_get_blit_format): New function.
38286 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
38287 (grub_video_vbe_map_rgb): Likewise.
38288 (grub_video_vbe_unmap_color): Likewise.
38289
38290 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
38291 optimized fills.
38292 (grub_video_vbe_blit_render_target): Changed to use more optimized
38293 blits.
38294 (grub_video_vbe_setup): Added detection for optimized settings.
38295 (grub_video_vbe_create_render_target): Likewise.
38296
38297 * video/i386/pc/vbeblit.c: New file.
38298
38299 * video/i386/pc/vbefill.c: New file.
38300
38301 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
38302
38303 * font/manager.c (grub_font_get_glyph): Removed font fixup from
38304 here...
38305
38306 * util/unifont2pff.rb: ... and moved it to here. Improved argument
38307 parsing to support both hex and dec ranges. If filename was missing
38308 show usage information.
38309
38310 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
38311
38312 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
38313 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
38314
38315 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
38316 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
38317 (video_mod_SOURCES): Added.
38318 (video_mod_CFLAGS): Likewise.
38319 (video_mod_LDFLAGS): Likewise.
38320 (gfxterm_mod_SOURCES): Likewise.
38321 (gfxterm_mod_CFLAGS): Likewise.
38322 (gfxterm_mod_LDFLAGS): Likewise.
38323 (videotest_mod_SOURCES): Likewise.
38324 (videotest_mod_CFLAGS): Likewise.
38325 (videotest_mod_LDFLAGS): Likewise.
38326 (vesafb_mod_SOURCES): Removed.
38327 (vesafb_mod_CFLAGS): Likewise.
38328 (vesafb_mod_LDFLAGS): Likewise.
38329 (vga_mod_SOURCES): Likewise.
38330 (vga_mod_CFLAGS): Likewise.
38331 (vga_mod_LDFLAGS): Likewise.
38332
38333 * commands/videotest.c: New file.
38334
38335 * font/manager.c (fill_with_default_glyph): Modified to use
38336 grub_font_glyph.
38337 (grub_font_get_glyph): Likewise.
38338 (fontmanager): Renamed from this...
38339 (font_manager): ... to this.
38340
38341 * include/grub/font.h (grub_font_glyph): Added new structure.
38342 (grub_font_get_glyph): Modified to use grub_font_glyph.
38343
38344 * include/grub/misc.h (grub_abs): Added as inline function.
38345
38346 * include/grub/video.h: New file.
38347
38348 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
38349 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
38350 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
38351 (grub_vbe_get_controller_info): Renamed from this...
38352 (grub_vbe_bios_get_controller_info): ... to this.
38353 (grub_vbe_get_mode_info): Renamed from this...
38354 (grub_vbe_bios_get_mode_info): ... to this.
38355 (grub_vbe_set_mode): Renamed from this...
38356 (grub_vbe_bios_set_mode): ... to this.
38357 (grub_vbe_get_mode): Renamed from this...
38358 (grub_vbe_bios_get_mode): ... to this.
38359 (grub_vbe_set_memory_window): Renamed from this...
38360 (grub_vbe_bios_set_memory_window): ... to this.
38361 (grub_vbe_get_memory_window): Renamed from this...
38362 (grub_vbe_bios_get_memory_window): ... to this.
38363 (grub_vbe_set_scanline_length): Renamed from this...
38364 (grub_vbe_set_scanline_length): ... to this.
38365 (grub_vbe_get_scanline_length): Renamed from this...
38366 (grub_vbe_bios_get_scanline_length): ... to this.
38367 (grub_vbe_set_display_start): Renamed from this...
38368 (grub_vbe_bios_set_display_start): ... to this.
38369 (grub_vbe_get_display_start): Renamed from this...
38370 (grub_vbe_bios_get_display_start): ... to this.
38371 (grub_vbe_set_palette_data): Renamed from this...
38372 (grub_vbe_bios_set_palette_data): ... to this.
38373 (grub_vbe_set_pixel_rgb): Removed.
38374 (grub_vbe_set_pixel_index): Likewise.
38375
38376 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
38377 from this...
38378 (grub_vbe_bios_get_controller_info): ... to this.
38379 (grub_vbe_get_mode_info): Renamed from this...
38380 (grub_vbe_bios_get_mode_info): ... to this.
38381 (grub_vbe_set_mode): Renamed from this...
38382 (grub_vbe_bios_set_mode): ... to this.
38383 (grub_vbe_get_mode): Renamed from this...
38384 (grub_vbe_bios_get_mode): ... to this.
38385 (grub_vbe_set_memory_window): Renamed from this...
38386 (grub_vbe_bios_set_memory_window): ... to this.
38387 (grub_vbe_get_memory_window): Renamed from this...
38388 (grub_vbe_bios_get_memory_window): ... to this.
38389 (grub_vbe_set_scanline_length): Renamed from this...
38390 (grub_vbe_set_scanline_length): ... to this.
38391 (grub_vbe_get_scanline_length): Renamed from this...
38392 (grub_vbe_bios_get_scanline_length): ... to this.
38393 (grub_vbe_set_display_start): Renamed from this...
38394 (grub_vbe_bios_set_display_start): ... to this.
38395 (grub_vbe_get_display_start): Renamed from this...
38396 (grub_vbe_bios_get_display_start): ... to this.
38397 (grub_vbe_set_palette_data): Renamed from this...
38398 (grub_vbe_bios_set_palette_data): ... to this.
38399 (grub_vbe_bios_get_controller_info): Fixed problem with registers
38400 getting corrupted after calling it. Added more pushes and pops.
38401 (grub_vbe_bios_set_mode): Likewise.
38402 (grub_vbe_bios_get_mode): Likewise.
38403 (grub_vbe_bios_get_memory_window): Likewise.
38404 (grub_vbe_bios_set_scanline_length): Likewise.
38405 (grub_vbe_bios_get_scanline_length): Likewise.
38406 (grub_vbe_bios_get_display_start): Likewise.
38407 (grub_vbe_bios_set_palette_data): Likewise.
38408
38409 * normal/cmdline.c (cl_set_pos): Refresh the screen.
38410 (cl_insert): Likewise.
38411 (cl_delete): Likewise.
38412
38413 * term/gfxterm.c: New file.
38414
38415 * term/i386/pc/vesafb.c: Removed file.
38416
38417 * video/video.c: New file.
38418
38419 * video/i386/pc/vbe.c (real2pm): Added new function.
38420 (grub_video_vbe_draw_pixel): Likewise.
38421 (grub_video_vbe_get_video_ptr): Likewise.
38422 (grub_video_vbe_get_pixel): Likewise
38423 (grub_video_vbe_init): Likewise.
38424 (grub_video_vbe_fini): Likewise.
38425 (grub_video_vbe_setup): Likewise.
38426 (grub_video_vbe_get_info): Likewise.
38427 (grub_video_vbe_set_palette): Likewise.
38428 (grub_video_vbe_get_palette): Likewise.
38429 (grub_video_vbe_set_viewport): Likewise.
38430 (grub_video_vbe_get_viewport): Likewise.
38431 (grub_video_vbe_map_color): Likewise.
38432 (grub_video_vbe_map_rgb): Likewise.
38433 (grub_video_vbe_map_rgba): Likewise.
38434 (grub_video_vbe_unmap_color): Likewise.
38435 (grub_video_vbe_fill_rect): Likewise.
38436 (grub_video_vbe_blit_glyph): Likewise.
38437 (grub_video_vbe_blit_bitmap): Likewise.
38438 (grub_video_vbe_blit_render_target): Likewise.
38439 (grub_video_vbe_scroll): Likewise.
38440 (grub_video_vbe_swap_buffers): Likewise.
38441 (grub_video_vbe_create_render_target): Likewise.
38442 (grub_video_vbe_delete_render_target): Likewise.
38443 (grub_video_vbe_set_active_render_target): Likewise.
38444 (grub_vbe_set_pixel_rgb): Remove function.
38445 (grub_vbe_set_pixel_index): Likewise.
38446 (index_color_mode): Remove static variable.
38447 (active_mode): Likewise.
38448 (framebuffer): Likewise.
38449 (bytes_per_scan_line): Likewise.
38450 (grub_video_vbe_adapter): Added new static variable.
38451 (framebuffer): Likewise.
38452 (render_target): Likewise.
38453 (initial_mode): Likewise.
38454 (mode_in_use): Likewise.
38455 (mode_list): Likewise.
38456
38457 2006-03-10 Marco Gerards <marco@gnu.org>
38458
38459 * configure.ac (AC_INIT): Bumped to 1.93.
38460
38461 * DISTLIST: Added `include/grub/hfs.h'.
38462
38463 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
38464
38465 * boot/i386/pc/boot.S (general_error): Before looping, try INT
38466 18H, which might help the BIOS falling back to next boot media.
38467
38468 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
38469
38470 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
38471 Poe Chen <poe.poechen@gmail.com>.
38472
38473 2006-01-17 Marco Gerards <marco@gnu.org>
38474
38475 * include/grub/normal.h: Include <grub/script.h>.
38476 (grub_command_list): Removed struct.
38477 (grub_command_list_t): Removed type.
38478 (grub_menu_entry): Remove members `num' and `command_list'. Add
38479 members `commands' and `sourcecode'.
38480 * include/grub/script.h: Add inclusion guards.
38481 (grub_script_cmd_menuentry): New struct.
38482 (grub_script_execute_menuentry): New prototype.
38483 (grub_script_lexer_record_start): Likewise.
38484 (grub_script_lexer_record_stop): Likewise.
38485 * normal/execute.c (grub_script_execute_menuentry): New function.
38486 * normal/lexer.c (record, recording, recordpos, recordlen): New
38487 variables.
38488 (grub_script_lexer_record_start): New function.
38489 (grub_script_lexer_record_stop): Likewise.
38490 (recordchar): Likewise.
38491 (nextchar): Likewise.
38492 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
38493 2048 as the buffer size. Add the tokens `menuentry' and `@'.
38494 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
38495 (current_menu): New variable.
38496 (free_menu): Mainly rewritten.
38497 (grub_normal_menu_addentry): New function.
38498 (read_config_file): Rewritten.
38499 * normal/menu.c (run_menu_entry): Mainly rewritten.
38500 * normal/menu_entry.c (make_screen): Rewritten the code to insert
38501 the menu entry.
38502 (run): Mainly rewritten.
38503 * normal/parser.y (menu_entry): New variable.
38504 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
38505 (menuentry): New rule.
38506 (command): Add `menuentry'.
38507 (if_statement): Allow additional returns before `fi'.
38508 * normal/script.c (grub_script_create_cmdmenu): New function.
38509
38510 2006-01-03 Marco Gerards <marco@gnu.org>
38511
38512 * INSTALL: GNU Bison is required.
38513 * configure.ac: Rewritten the test to detect Bison.
38514 * Makefile.in (YACC): New variable. Reported by Xun Sun
38515 <xun.sun.cn@gmail.com>.
38516
38517 2006-01-03 Marco Gerards <marco@gnu.org>
38518
38519 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
38520 the HFS+ filesystem to filesystem blocks.
38521 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
38522 GCC warning is silenced.
38523
38524 2006-01-03 Marco Gerards <marco@gnu.org>
38525
38526 * partmap/apple.c (apple_partition_map_iterate): Convert the data
38527 read from disk from big endian to host byte order.
38528
38529 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
38530
38531 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
38532 documentation.
38533 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
38534 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
38535 embedded HFS+ filesystem.
38536 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
38537 (grub_hfs_sblock): Move from here...
38538 * include/grub/hfs.h: To here... New file.
38539 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
38540 documentation.
38541 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
38542 New macros.
38543 (grub_hfsplus_volheader): Change type of member `magic' to
38544 `grub_uint16_t'.
38545 (grub_hfsplus_data): Add new member `embedded_offset'.
38546 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
38547 returned block.
38548 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
38549 Calculate the offset.
38550
38551 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38552
38553 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
38554 Removed.
38555 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
38556
38557 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38558
38559 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
38560 ENV->NAME is NULL after allocating ENV->VALUE.
38561
38562 2005-12-25 Marco Gerards <marco@gnu.org>
38563
38564 * kern/env.c (grub_env_set): Rewritten the error handling code.
38565
38566 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38567
38568 * geninit.sh: Made more robust, and more portable.
38569
38570 2005-12-25 Marco Gerards <marco@gnu.org>
38571
38572 Add support for Apple HFS+ filesystems.
38573
38574 * fs/hfsplus.c: New file.
38575
38576 * DISTLIST: Added `fs/hfsplus.c'.
38577
38578 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
38579 (hfsplus_mod_SOURCES): New variable.
38580 (hfsplus_mod_CFLAGS): Likewise.
38581 (hfsplus_mod_LDFLAGS): Likewise.
38582 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
38583 (grub_setup_SOURCES): Likewise.
38584 (grub_mkdevicemap_SOURCES): Likewise.
38585 (grub_emu_SOURCES): Likewise.
38586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38587
38588 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
38589
38590 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
38591
38592 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38593
38594 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
38595 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
38596 include/grub/parser.h, include/grub/script.h, kern/parser.c,
38597 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
38598 normal/lexer.c, normal/parser.y, normal/script.c, and
38599 partmap/gpt.c.
38600 Removed kern/sparc64/cache.c.
38601
38602 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
38603 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
38604 grub_emu_init.c.
38605
38606 * configure.ac (AC_INIT): Bumped to 1.92.
38607
38608 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
38609
38610 * kern/err.c (grub_error_push): Added new function to support error
38611 stacks.
38612 (grub_error_pop): Likewise.
38613 (grub_error_stack_items): New local variable to support error stacks.
38614 (grub_error_stack_pos): Likewise.
38615 (grub_error_stack_assert): Likewise.
38616 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
38617 stack depth.
38618 (grub_print_error): Added support to print errors from error stack.
38619
38620 * include/grub/err.h (grub_error_push): Added function prototype.
38621 (grub_error_pop): Likewise.
38622
38623 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
38624
38625 * configure.ac: Accept `powerpc64' as host_cpu.
38626 (amd64): Rename to `biarch32'.
38627
38628 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
38629 non-cacheline-aligned addresses.
38630
38631 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
38632 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
38633 if `size' is non-zero.
38634
38635 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
38636
38637 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
38638 and `cd' to make sure the filename is not prefixed with a
38639 directory name.
38640 (pkgdata_MODULES): Add `gpt.mod'.
38641 (gpt_mod_SOURCES): New variable.
38642 (gpt_mod_CFLAGS): Likewise.
38643 (gpt_mod_LDFLAGS): Likewise.
38644
38645 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
38646
38647 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
38648 New macro.
38649
38650 * partmap/gpt.c: New file.
38651
38652 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
38653 GPT partition map is detected.
38654
38655 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
38656
38657 * commands/i386/pc/play.c: New file.
38658 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
38659 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
38660 macros.
38661
38662 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
38663
38664 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
38665 ((unused))' to silence gcc warning.
38666
38667 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
38668
38669 * configure.ac: Correct `AC_PROG_YACC' test.
38670
38671 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38672
38673 * util/powerpc/ieee1275/grub-install.in: Run the mount point
38674 check before installing files.
38675
38676 2005-11-22 Mike Small <smallm@panix.com>
38677
38678 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
38679 number regex so multidigit numbers are recognized correctly.
38680
38681 2005-11-22 Mike Small <smallm@panix.com>
38682
38683 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
38684 debugging message before attempting to claim memory.
38685 (grub_rescue_cmd_initrd): Add a claim debugging message and try
38686 multiple addresses in case of failure.
38687
38688 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38689
38690 * term/tparm.c (get_space): Remove empty `if' statement.
38691
38692 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
38693
38694 * kern/parser.c (check_varstate): Rename `state' to 's'.
38695
38696 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38697
38698 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
38699 variable definitions to the beginning of each function. Sort stack
38700 variables by size.
38701 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
38702 `buf' argument to `char *'.
38703
38704 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38705
38706 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
38707 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38708 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38709 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38710 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38711 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38712 configfile.mod, search.mod, gzio.mod and test.mod.
38713 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38714 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38715 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38716 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38717 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38718 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38719 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38720 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38721 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38722 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38723 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38724 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38725 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38726 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38727 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38728 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38729 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38730 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38731 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38732 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38733 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38734 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38735 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
38736
38737 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
38738 `grep --include'.
38739 (pkgdata_MODULES): Add test.mod.
38740
38741 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38742
38743 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
38744 appending to variables with "+=".
38745 (PModule): Use full pathname to generate *.lst filenames.
38746
38747 * Makefile.in: Fixed list rules moved from genmk.rb.
38748 (.DELETE_ON_ERROR): New special target.
38749 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
38750
38751 * conf/i386-pc.rmk: Include conf/common.mk.
38752 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38753 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38754 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38755 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38756 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38757 configfile.mod, search.mod, gzio.mod and test.mod.
38758 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38759 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38760 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38761 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38762 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38763 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38764 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38765 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38766 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38767 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38768 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38769 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38770 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38771 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38772 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38773 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38774 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38775 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38776 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38777 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38778 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38779 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38780 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
38781 here...
38782 * conf/common.rmk: ... to here. New file.
38783
38784 * conf/common.mk: New file.
38785
38786 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
38787
38788 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
38789 (grub_script.tab.c): ... here.
38790
38791 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
38792 (grub_script.tab.c): ... here.
38793
38794 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
38795 (grub_script.tab.c): ... here.
38796
38797 * normal/command.c (grub_command_find): Fixed a memory leak of
38798 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
38799
38800 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38801
38802 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
38803 "@" which marks the start of a comment on ARM.
38804 (VARIABLE): Likewise.
38805
38806 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38807
38808 Add support for Linux/ADFS partition tables.
38809
38810 * partmap/acorn.c: New file.
38811
38812 * include/grub/acorn_filecore.h: Likewise.
38813
38814 * DISTLIST: Added `partmap/acorn.c' and
38815 `include/grub/acorn_filecore.h'.
38816
38817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38818 `partmap/acorn.c'.
38819 (pkgdata_MODULES): Add `acorn.mod'.
38820 (acorn_mod_SOURCES): New variable.
38821 (acorn_mod_CFLAGS): Likewise.
38822
38823 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
38824 `partmap/acorn.c'.
38825 (pkgdata_MODULES): Add `acorn.mod'.
38826 (acorn_mod_SOURCES): New variable.
38827 (acorn_mod_CFLAGS): Likewise.
38828
38829 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
38830 (pkgdata_MODULES): Add `acorn.mod'.
38831 (acorn_mod_SOURCES): New variable.
38832 (acorn_mod_CFLAGS): Likewise.
38833 (acorn_mod_LDFLAGS): Likewise.
38834
38835 * include/types.h (grub_disk_addr_t): New typedef.
38836
38837 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
38838
38839 * geninit.sh: New file.
38840
38841 * geninitheader.sh: Likewise.
38842
38843 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
38844 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
38845 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
38846 * commands/configfile.c (grub_configfile_init)
38847 (grub_configfile_fini): Likewise.
38848 * commands/default.c (grub_default_init, grub_default_fini):
38849 Likewise.
38850 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
38851 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
38852 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
38853 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
38854 Likewise.
38855 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
38856 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
38857 Likewise.
38858 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
38859 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
38860 Likewise.
38861 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
38862 Likewise.
38863 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
38864 Likewise.
38865 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
38866 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
38867 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
38868 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
38869 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
38870 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
38871 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
38872 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
38873 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
38874 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
38875 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
38876 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
38877 * partmap/amiga.c (grub_amiga_partition_map_init)
38878 (grub_amiga_partition_map_fini): Likewise.
38879 * partmap/apple.c (grub_apple_partition_map_init)
38880 (grub_apple_partition_map_fini): Likewise.
38881 * partmap/pc.c (grub_pc_partition_map_init)
38882 (grub_pc_partition_map_fini): Likewise.
38883 * partmap/sun.c (grub_sun_partition_map_init,
38884 grub_sun_partition_map_fini): Likewise.
38885 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
38886 Likewise.
38887
38888 * util/grub-emu.c: Include <grub_modules_init.h>.
38889 (main): Don't initialize and de-initialize any modules directly,
38890 use `grub_init_all' and `grub_fini_all' instead.
38891
38892 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
38893 `grub_vesafb_mod_init'.
38894 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
38895 all users.
38896 * term/i386/pc/vga.c (grub_vga_init): Renamed to
38897 `grub_vga_mod_init'. Updated all users.
38898 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
38899
38900 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
38901 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
38902 rules.
38903
38904 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
38905 Generate a function to initialize the module in utilities.
38906 Updated all callers.
38907 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
38908 initialize the module in utilities. Updated all callers.
38909
38910 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
38911
38912 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
38913 escape sequence and a literal ^L to clear the screen.
38914
38915 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
38916 when returning from Open Firmware.
38917
38918 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
38919
38920 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
38921 (grub_ofconsole_height): Likewise.
38922 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
38923 manually insert a '\n'.
38924 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
38925 `grub_ofconsole_height'. Return early if these are already set.
38926
38927 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
38928
38929 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
38930 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
38931 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
38932 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
38933 and `normal/script.c'.
38934 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38935 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38936 (test_mod_SOURCES): New variable.
38937 (test_mod_CFLAGS): Likewise.
38938 (test_mod_LDFLAGS): Likewise.
38939 (pkgdata_MODULES): Add `test.mod'.
38940 (grub_script.tab.c): New rule.
38941 (grub_script.tab.h): Likewise.
38942
38943 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
38944
38945 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38946 `commands/test.c', `normal/execute.c', `normal/lexer.c',
38947 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38948 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38949 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38950 (test_mod_SOURCES): New variable.
38951 (test_mod_CFLAGS): Likewise.
38952 (pkgdata_MODULES): Add `test.mod'.
38953 (grub_script.tab.c): New rule.
38954 (grub_script.tab.h): Likewise.
38955
38956 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
38957
38958 Add initial scripting support.
38959
38960 * commands/test.c: New file.
38961 * include/grub/script.h: Likewise.
38962 * normal/execute.c: Likewise.
38963 * normal/function.c: Likewise.
38964 * normal/lexer.c: Likewise.
38965 * normal/parser.y: Likewise.
38966 * normal/script.c: Likewise.
38967
38968 * configure.ac: Add `AC_PROG_YACC' test.
38969
38970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
38971 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
38972 `normal/function.c' and `normal/script.c'.
38973 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
38974 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
38975 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
38976 variables.
38977 (pkgdata_MODULES): Add `test.mod'.
38978 (grub_script.tab.c): New rule.
38979 (grub_script.tab.h): Likewise.
38980
38981 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
38982
38983 * include/grub/normal.h (grub_test_init): New prototype.
38984 (grub_test_fini): Likewise.
38985
38986 * normal/command.c: Include <grub/script.h>.
38987 (grub_command_execute): Rewritten.
38988
38989 * util/grub-emu.c (main): Call `grub_test_init' and
38990 `grub_test_fini'.
38991
38992 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
38993
38994 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
38995 to 0.
38996 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
38997 there are no pending characters.
38998
38999 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39000
39001 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
39002 `grub_strndup' to drop device arguments. Replace unnecessary
39003 `grub_strndup' with `grub_strdup'.
39004
39005 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39006
39007 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
39008 `debug' environment variable has been set.
39009
39010 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
39011
39012 * Makefile.in (install-local): Use $(DATA).
39013 (uninstall): Likewise.
39014 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
39015 (sbin_UTILITIES): ... to here.
39016 (sbin_SCRIPTS): New variable.
39017 (grub_install_SOURCES): New variable.
39018 * util/powerpc/ieee1275/grub-install.in: New file.
39019 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
39020 variable.
39021 (add_segments): Call `grub_util_get_path'.
39022
39023 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
39024
39025 From Timothy Baldwin:
39026 * commands/ls.c (grub_ls_list_files): Close FILE with
39027 grub_file_close.
39028 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
39029
39030 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
39031
39032 * include/grub/parser.h: New file.
39033
39034 * kern/parser.c: Likewise.
39035
39036 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
39037 (grub_setup_SOURCES): Likewise.
39038 (grub_probefs_SOURCES): Likewise.
39039 (grub_emu_SOURCES): Likewise.
39040 (kernel_img_HEADERS): Add `parser.h'.
39041
39042 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
39043 (grub_emu_SOURCES): Add `kern/parser.c'.
39044 (grubof_SOURCES): Likewise.
39045
39046 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
39047 (grubof_SOURCES): Add `kern/parser.c'.
39048
39049 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
39050
39051 * kern/misc.c (grub_split_cmdline): Removed function.
39052
39053 * kern/rescue.c: Include <grub/parser.h>.
39054 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
39055 of `grub_split_cmdline'.
39056
39057 * normal/command.c: Include <grub/parser.h>.
39058 (grub_command_execute): Use `grub_parser_split_cmdline' instead
39059 of `grub_split_cmdline'.
39060
39061 * normal/completion.c: Include <grub/parser.h>.
39062 (cmdline_state): New variable.
39063 (iterate_dir): End the filename with a quote depending on the
39064 command line state.
39065 (get_state): new function.
39066 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
39067 split the arguments and determine the current argument. When the
39068 argument string is not quoted, escape all spaces.
39069
39070 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39071
39072 * normal/sparc64/setjmp.S: New file.
39073
39074 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39075
39076 * include/grub/sparc64/libgcc.h: New file.
39077 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
39078 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
39079 normal/sparc64/setjmp.c.
39080
39081 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39082
39083 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
39084 * kern/sparc64/cache.S: New file.
39085 * kern/sparc64/cache.c: Removed.
39086 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
39087 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
39088 -mtune=ultrasparc.
39089 (COMMON_LDFLAGS): Add -melf64_sparc.
39090 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
39091 (grubof_SOURCES): Use cache.S instead of cache.c.
39092 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
39093 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
39094 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
39095 commented though.
39096 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
39097 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
39098 (linux_mod_CFLAGS): Commented out.
39099 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
39100 out because module isn't built.
39101 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
39102 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
39103 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
39104 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
39105 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
39106 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39107 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39108 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
39109 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
39110 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
39111 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39112 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39113 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
39114 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
39115
39116 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
39117
39118 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
39119 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
39120 longer, because HFS should not be used on PC.
39121
39122 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39123
39124 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
39125 consistently within the loop.
39126
39127 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
39128
39129 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
39130 directory can not be read.
39131
39132 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39133
39134 * configure.ac (AC_INIT): Increase the version number to 1.91.
39135
39136 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
39137 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
39138 term/i386/pc/serial.c.
39139
39140 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39141
39142 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
39143 file size must be permitted.
39144
39145 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
39146 between %ah and %al.
39147
39148 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39149
39150 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
39151 grub_uint64_t.
39152 Call the hook with a NUL-terminated filename.
39153 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
39154 grub_cpu_to_be32.
39155
39156 * kern/term.c (cursor_state): New variable.
39157 (grub_term_set_current): Reset the cursor state on a new
39158 terminal.
39159 (grub_setcursor): Rewritten to use CURSOR_STATE.
39160 (grub_getcursor): New function.
39161
39162 * include/grub/term.h (grub_getcursor): New prototype.
39163
39164 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
39165 integers on ARM. Reported by Timothy Baldwin
39166 <T.E.Baldwin99@members.leeds.ac.uk>.
39167
39168 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
39169
39170 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
39171 allocated.
39172 (grub_sfs_dir): Likewise.
39173
39174 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
39175
39176 Add support for the SFS filesystem.
39177
39178 * fs/sfs.c: New file.
39179
39180 * DISTLIST: Added `fs/sfs.c'.
39181
39182 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
39183 (grub_probefs_SOURCES): Likewise.
39184 (grub_emu_SOURCES): Likewise.
39185 (pkgdata_MODULES): Add `sfs.mod'.
39186 (sfs_mod_SOURCES): New variable.
39187 (sfs_mod_CFLAGS): Likewise.
39188 (sfs_mod_LDFLAGS): Likewise.
39189
39190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
39191 (pkgdata_MODULES): Add `sfs.mod'.
39192 (sfs_mod_SOURCES): New variable.
39193 (sfs_mod_CFLAGS): Likewise.
39194
39195 * util/grub-emu.c (main): Call `grub_sfs_init' and
39196 `grub_sfs_fini'.
39197
39198 * include/grub/fs.h (grub_sfs_init): New prototype.
39199 (grub_sfs_fini): Likewise.
39200
39201 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
39202
39203 Add support for the AFFS filesystem.
39204
39205 * fs/affs.c: New file.
39206
39207 * DISTLIST: Added `fs/affs.c'.
39208
39209 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
39210 (grub_probefs_SOURCES): Likewise.
39211 (grub_emu_SOURCES): Likewise.
39212 (pkgdata_MODULES): Add `affs.mod'.
39213 (affs_mod_SOURCES): New variable.
39214 (affs_mod_CFLAGS): Likewise.
39215 (affs_mod_LDFLAGS): Likewise.
39216
39217 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
39218 (pkgdata_MODULES): Add `affs.mod'.
39219 (affs_mod_SOURCES): New variable.
39220 (affs_mod_CFLAGS): Likewise.
39221
39222 * util/grub-emu.c (main): Call `grub_affs_init' and
39223 `grub_affs_fini'.
39224
39225 * include/grub/fs.h (grub_affs_init): New prototype.
39226 (grub_affs_fini): Likewise.
39227
39228 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39229
39230 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
39231
39232 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39233
39234 * configure.ac: Accept `x86_64' as host_cpu. In that case add
39235 `-m32' to CFLAGS.
39236
39237 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
39238 linking.
39239
39240 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
39241 (COMMON_LDFLAGS): New variable.
39242 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
39243 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
39244 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
39245 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
39246 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
39247 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
39248 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
39249 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
39250 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
39251 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
39252 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39253 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39254 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
39255 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
39256 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
39257 variables.
39258 (normal_mod_ASFLAGS): Add `-m32'.
39259
39260 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
39261 (grub_host_size_t, grub_host_ssize_t): New types.
39262 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
39263 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
39264 `GRUB_HOST_SIZEOF_VOID_P'.
39265
39266 * include/grub/kernel.h (struct grub_module_header): Type of
39267 member offset changed to `grub_host_off_t'. Type of member size
39268 changed to `grub_host_size_t'.
39269 (struct grub_module_info): Type of member offset changed to
39270 `grub_host_off_t'. Type of member size changed to
39271 `grub_host_size_t'.
39272
39273 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
39274
39275 Make GRUB's kernel compliant to Multiboot Specification.
39276
39277 * kern/i386/pc/startup.S (multiboot_header): New label.
39278 (multiboot_entry): Likewise.
39279 (multiboot_trampoline): Likewise.
39280
39281 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39282 Increased to 0x4A0.
39283
39284 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
39285 put parentheses after a question mark.
39286 [!GRUB_UTIL] (my_mod): New variable.
39287
39288 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
39289
39290 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
39291
39292 Adds support for the XFS filesystem. Btrees are not supported
39293 yet.
39294
39295 * fs/xfs.c: New file.
39296
39297 * DISTLIST: Added `fs/xfs.c'.
39298
39299 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
39300 (grub_probefs_SOURCES): Likewise.
39301 (grub_emu_SOURCES): Likewise.
39302 (pkgdata_MODULES): Add `xfs.mod'.
39303 (xfs_mod_SOURCES): New variable.
39304 (xfs_mod_CFLAGS): Likewise.
39305
39306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
39307 (pkgdata_MODULES): Add `xfs.mod'.
39308 (xfs_mod_SOURCES): New variable.
39309 (xfs_mod_CFLAGS): Likewise.
39310
39311 * util/grub-emu.c (main): Call `grub_xfs_init' and
39312 `grub_xfs_fini'.
39313
39314 * include/grub/fs.h (grub_xfs_init): New prototype.
39315 (grub_xfs_fini): Likewise.
39316
39317
39318 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
39319
39320 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
39321 color modes, allow greater than 16 colors to be configured as
39322 a default palette.
39323
39324 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39325
39326 * normal/completion.c (complete_arguments): Add the qualifier
39327 const into OPTIONS.
39328
39329 From Omniflux <omniflux+lists@omniflux.com>:
39330 * include/grub/terminfo.h: New file.
39331 * include/grub/tparm.h: Likewise.
39332 * include/grub/i386/pc/serial.h: Likewise.
39333 * term/terminfo.c: Likewise.
39334 * term/tparm.c: Likewise.
39335 * term/i386/pc/serial.c: Likewise.
39336 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
39337 serial.mod.
39338 (terminfo_mod_SOURCES): New variable.
39339 (terminfo_mod_CFLAGS): Likewise.
39340 (serial_mod_SOURCES): Likewise.
39341 (serial_mod_CFLAGS): Likewise.
39342
39343 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
39344
39345 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
39346 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
39347 and kern/powerpc/ieee1275/cmain.c, respectively.
39348
39349 * boot/powerpc/ieee1275/crt0.S: Moved to ...
39350 * kern/powerpc/ieee1275/crt0.S: ... here.
39351
39352 * boot/powerpc/ieee1275/cmain.c: Moved to ...
39353 * kern/powerpc/ieee1275/cmain.c: ... here.
39354
39355 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
39356 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
39357 instead of boot/powerpc/ieee1275/crt0.S and
39358 boot/powerpc/ieee1275/cmain.c, respectively.
39359
39360 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
39361 sectors. It was not used anyway.
39362
39363 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39364
39365 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
39366 `unused parameter' warning.
39367
39368 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39369
39370 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
39371 function.
39372 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
39373 getcharwidth.
39374
39375 2005-08-28 Marco Gerards <metgerards@student.han.nl>
39376
39377 * include/grub/normal.h (enum grub_completion_type): Added
39378 `GRUB_COMPLETION_TYPE_ARGUMENT'.
39379
39380 * normal/cmdline.c (print_completion): Handle
39381 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
39382 * normal/menu_entry.c (store_completion): Likewise.
39383
39384 * normal/completion.c (complete_arguments): New function.
39385 (grub_normal_do_completion): Call `complete_arguments' when the
39386 current words start with a dash.
39387
39388 2005-08-27 Marco Gerards <metgerards@student.han.nl>
39389
39390 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
39391 `gzio.mod' instead of `io.mod').
39392
39393 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
39394
39395 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
39396 (DISTDIRS): Added io and video.
39397 Rewrite the search routine to make an output consistently.
39398
39399 * DISTLIST: Added conf/sparc64-ieee1275.mk,
39400 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
39401 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
39402 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
39403 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
39404 util/powerpc/ieee1275/misc.c.
39405
39406 * include/grub/gzio.h: New file.
39407 * io/gzio.c: Likewise.
39408
39409 * kern/file.c (grub_file_close): Call grub_device_close only if
39410 FILE->DEVICE is not NULL.
39411
39412 * include/grub/mm.h [!NULL] (NULL): New macro.
39413
39414 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
39415
39416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
39417 (pkgdata_MODULES): Added gzio.mod.
39418 (gzio_mod_SOURCES): New variable.
39419 (gzio_mod_CFLAGS): Likewise.
39420
39421 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
39422 (pkgdata_MODULES): Added gzio.mod.
39423 (gzio_mod_SOURCES): New variable.
39424 (gzio_mod_CFLAGS): Likewise.
39425
39426 * commands/cat.c: Include grub/gzio.h.
39427 (grub_cmd_cat): Use grub_gzfile_open instead of
39428 grub_file_open.
39429
39430 * commands/cmp.c: Include grub/gzio.h.
39431 (grub_cmd_cmp): Use grub_gzfile_open instead of
39432 grub_file_open.
39433
39434 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
39435 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
39436 grub_file_open.
39437 (grub_rescue_cmd_module): Likewise.
39438
39439 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39440
39441 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
39442 kern/sparc64/ieee1275/init.c because it contains _start.
39443 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
39444
39445 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39446
39447 * configure.ac: Add support for sparc64 host with ieee1275
39448 firmware.
39449 * configure: Generated from configure.ac.
39450 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
39451 instead of int.
39452 (grub_ofdisk_read): Likewise.
39453 (grub_ofdisk_open): Use %p to print pointer values, and cast the
39454 pointers as (void *) to remove a warning.
39455 (grub_ofdisk_close): Likewise.
39456 (grub_ofdisk_read): Likewise.
39457 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
39458 returns, so make it return void to remove a warning.
39459 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
39460 Corresponding prototype change.
39461 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
39462 values, and cast the pointers as (void *) to remove a warning.
39463 (grub_mm_dump): Likewise.
39464 * conf/sparc64-ieee1275.mk: New file.
39465 * conf/sparc64-ieee1275.rmk: Likewise.
39466 * include/grub/sparc64/setjmp.h: Likewise.
39467 * include/grub/sparc64/types.h: Likewise.
39468 * include/grub/sparc64/ieee1275/console.h: Likewise.
39469 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39470 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39471 * include/grub/sparc64/ieee1275/time.h: Likewise.
39472 * kern/sparc64/cache.c: Likewise.
39473 * kern/sparc64/dl.c: Likewise.
39474 * kern/sparc64/ieee1275/init.c: Likewise.
39475 * kern/sparc64/ieee1275/openfw.c: Likewise.
39476
39477 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39478
39479 * util/console.c (grub_ncurses_putchar): If C is greater than
39480 0x7f, set C to a question mark.
39481 (grub_ncurses_getcharwidth): New function.
39482 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
39483 getcharwidth.
39484
39485 * normal/menu.c (print_entry): Made aware of Unicode. First,
39486 convert TITLE to UCS-4, and predict the cursor position by
39487 grub_getcharwidth.
39488
39489 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
39490 const to SRC.
39491 * kern/misc.c (grub_utf16_to_utf8): Likewise.
39492
39493 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39494
39495 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
39496 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39497 grub_strcat.
39498
39499 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
39500 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39501 grub_strcpy and grub_strlen. Take it into account that a space
39502 character is inserted as a delimiter.
39503
39504 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39505
39506 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
39507 invalid magic in the error.
39508
39509 * commands/search.c: New file.
39510
39511 * util/grub-emu.c (main): Call grub_search_init and
39512 grub_search_fini.
39513
39514 * kern/rescue.c (grub_rescue_print_disks): Removed.
39515 (grub_rescue_print_devices): New function.
39516 (grub_rescue_cmd_ls): Use grub_device_iterate with
39517 grub_rescue_print_devices instead of grub_disk_dev_iterate with
39518 grub_rescue_print_disks.
39519
39520 * kern/partition.c (grub_partition_iterate): Return the result of
39521 PARTMAP->ITERATE instead of GRUB_ERRNO.
39522
39523 * kern/device.c: Include grub/partition.h.
39524 (grub_device_iterate): New function.
39525
39526 * include/grub/partition.h (grub_partition_iterate): Return int
39527 instead of grub_err_t.
39528
39529 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
39530 prototype.
39531 [GRUB_UTIL] (grub_search_fini): Likewise.
39532
39533 * include/grub/device.h (grub_device_iterate): New prototype.
39534
39535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39536 commands/search.c.
39537 (pkgdata_MODULES): Added search.mod.
39538 (search_mod_SOURCES): New variable.
39539 (search_mod_CFLAGS): Likewise.
39540
39541 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
39542 (pkgdata_MODULES): Added search.mod.
39543 (search_mod_SOURCES): New variable.
39544 (search_mod_CFLAGS): Likewise.
39545
39546 * commands/ls.c (grub_ls_list_disks): Renamed to ...
39547 (grub_ls_list_devices): ... this, and use grub_device_iterate.
39548 All callers changed.
39549
39550 * DISTLIST: Added commands/search.c.
39551
39552 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39553
39554 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
39555 conversion.
39556 (grub_getcharwidth): New function.
39557
39558 * kern/misc.c (grub_utf8_to_ucs4): New function.
39559
39560 * include/grub/term.h (struct grub_term): Added a new member
39561 "getcharwidth".
39562 (grub_getcharwidth): New prototype.
39563
39564 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
39565
39566 * term/i386/pc/console.c (map_char): New function. Segregated from
39567 grub_console_putchar.
39568 (grub_console_putchar): Use map_char.
39569 (grub_console_getcharwidth): New function.
39570 (grub_console_term): Specified grub_console_getcharwidth as
39571 getcharwidth.
39572
39573 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
39574 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
39575
39576 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
39577 GRUB_ERRNO.
39578 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
39579 on grub_strtoul completely.
39580 (write_char): Declare local variables in the beginning of the
39581 function.
39582 (grub_vesafb_getcharwidth): New function.
39583 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
39584 getcharwidth.
39585
39586 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
39587
39588 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
39589 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
39590 commands/i386/pc/vbetest.c.
39591
39592 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
39593 call grub_vbe_get_controller_info again, because the returned
39594 information is volatile.
39595 (grub_vbe_set_video_mode): Mostly rewritten.
39596 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
39597 grub_vbe_status_t correctly.
39598 (grub_vbe_get_video_mode_info): Likewise.
39599 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
39600 several if statements.
39601
39602 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
39603 * commands/i386/pc/vbeinfo.c: ... this.
39604
39605 * commands/i386/pc/vbe_test.c: Renamed to ...
39606 * commands/i386/pc/vbetest.c: ... this.
39607
39608 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
39609 ...
39610 (grub_cmd_vbeinfo): ... this. Save video modes before
39611 iterating. Skip a video mode, if it is not available, not enough
39612 information is given or it is monochrome. Show the memory
39613 model. Leave the interpretation of MODEVAR to grub_strtoul
39614 completely.
39615 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
39616 (GRUB_MOD_FINI): Likewise.
39617
39618 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
39619 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
39620 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
39621 duplicated grub_env_get. Leave the interpretation of MODEVAR to
39622 grub_strtoul completely.
39623 (real2pm): Removed.
39624 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
39625 (GRUB_MOD_FINI): Likewise.
39626
39627 * normal/misc.c: Include grub/mm.h.
39628
39629 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
39630 vbe_list_modes with vbetest.mod and vbeinfo.mod.
39631 (vbe_list_modes_mod_SOURCES): Removed.
39632 (vbe_list_modes_mod_CFLAGS): Likewise.
39633 (vbe_test_mod_SOURCES): Likewise.
39634 (vbe_test_mod_CFLAGS): Likewise.
39635 (vbeinfo_mod_SOURCES): New variable.
39636 (vbeinfo_mod_CFLAGS): Likewise.
39637 (vbetest_mod_SOURCES): Likewise.
39638 (vbetest_mod_CFLAGS): Likewise.
39639
39640 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
39641
39642 * normal/misc.c: New file.
39643
39644 * DISTLIST: Added normal/misc.c.
39645
39646 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
39647 DISK to HOOK. Call HOOK with DISK.
39648 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39649 * partmap/pc.c (pc_partition_map_iterate): Likewise.
39650 * partmap/sun.c (sun_partition_map_iterate): Likewise.
39651
39652 * normal/menu_entry.c (struct screen): Added a new member
39653 "completion_shown".
39654 (completion_buffer): New global variable.
39655 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
39656 (store_completion): New function.
39657 (complete): Likewise.
39658 (clear_completions): Likewise.
39659 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
39660 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
39661 a tab, call complete.
39662
39663 * normal/completion.c (disk_dev): Removed.
39664 (print_simple_completion): Likewise.
39665 (print_partition_completion): Likewise.
39666 (print_func): New global variable.
39667 (add_completion): Do not take the arguments WHAT or PRINT any
39668 longer. Added a new argument TYPE. Instead of printing directly,
39669 call PRINT_FUNC if not NULL.
39670 All callers changed.
39671 (complete_device): Use a local variable DEV instead of
39672 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
39673 (grub_normal_do_completion): Take a new argument HOOK. Do not
39674 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
39675 empty string, return NULL instead.
39676 All callers changed.
39677
39678 * normal/cmdline.c (print_completion): New function.
39679
39680 * kern/partition.c (grub_partition_iterate): Add an argument DISK
39681 to HOOK.
39682 All callers changed.
39683
39684 * kern/disk.c (grub_print_partinfo): Removed.
39685
39686 * include/grub/partition.h (struct grub_partition_map): Add a new
39687 argument DISK into HOOK of ITERATE.
39688 (grub_partition_iterate): Add a new argument DISK to HOOK.
39689
39690 * include/grub/normal.h (enum grub_completion_type): New enum.
39691 (grub_completion_type_t): New type.
39692 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
39693 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
39694 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
39695 (GRUB_COMPLETION_TYPE_FILE): Likewise.
39696 (grub_normal_do_completion): Added a new argument HOOK.
39697 (grub_normal_print_device_info): New prototype.
39698
39699 * include/grub/disk.h (grub_print_partinfo): Removed.
39700
39701 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
39702 (normal_mod_SOURCES): Likewise.
39703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39704 (normal_mod_SOURCES): Likewise.
39705
39706 * commands/ls.c (grub_ls_list_disks): Use
39707 grub_normal_print_device_info instead of grub_print_partinfo. Free
39708 PNAME.
39709 (grub_ls_list_files): Use grub_normal_print_device_info instead of
39710 duplicating the code.
39711
39712 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39713
39714 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
39715 follow GCS more precisely.
39716 * commands/i386/pc/vbe_test.c: Likewise.
39717 * include/grub/i386/pc/vbe.h: Likewise.
39718 * term/i386/pc/vesafb.c: Likewise.
39719 * video/i386/pc/vbe.c: Likewise.
39720
39721 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39722
39723 * DISTLIST: Added term/i386/pc/vesafb.c
39724 DISTLIST: Added video/i386/pc/vbe.c
39725 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
39726 DISTLIST: Added commands/i386/pc/vbe_test.c.
39727 * commands/i386/pc/vbe_list_modes.c: New file.
39728 * commands/i386/pc/vbe_test.c: Likewise.
39729 * term/i386/pc/vesafb.c: Likewise.
39730 * video/i386/pc/vbe.c: Likewise.
39731 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
39732 (grub_vbe_probe) Added prototype.
39733 (grub_vbe_set_video_mode) Likewise.
39734 (grub_vbe_get_video_mode) Likewise.
39735 (grub_vbe_get_video_mode_info) Likewise.
39736 (grub_vbe_set_pixel_rgb) Likewise.
39737 (grub_vbe_set_pixel_index) Likewise.
39738 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
39739 (pkgdata_MODULES): Added vesafb.mod.
39740 (pkgdata_MODULES): Added vbe_list_modes.mod.
39741 (pkgdata_MODULES): Added vbe_test.mod.
39742 (vbe_mod_SOURCES): Added.
39743 (vbe_mod_CFLAGS): Likewise.
39744 (vesafb_mod_SOURCES): Likewise.
39745 (vesafb_mod_CFLAGS): Likewise.
39746 (vbe_list_modes_mod_SOURCES): Likewise.
39747 (vbe_list_modes_mod_CFLAGS): Likewise.
39748 (vbe_test_mod_SOURCES): Likewise.
39749 (vbe_test_mod_CFLAGS): Likewise.
39750
39751 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
39752
39753 * normal/command.c (grub_command_execute): If INTERACTIVE is
39754 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
39755 CMDLINE. Disable the pager if INTERACTIVE is true.
39756 All callers are changed.
39757
39758 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
39759 before reading a config file.
39760 * normal/main.c (read_config_file): Even if a command is not
39761 found, register it if it is within an entry.
39762
39763 * util/grub-emu.c: Include sys/types.h and unistd.h.
39764 (options): Added --hold.
39765 (struct arguments): Added a new member "hold".
39766 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
39767 missing.
39768 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
39769 cleared by a debugger, if it is not zero.
39770
39771 * include/grub/normal.h (grub_command_execute): Add an argument
39772 INTERACTIVE.
39773
39774 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
39775
39776 * DISTLIST: Added include/grub/i386/pc/vbe.h.
39777
39778 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
39779
39780 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
39781 program with another one, because the old one didn't detect a bug
39782 in gcc-3.4. Always use regparm 2, because the new test is still
39783 not enough for gcc-4.0. Someone must investigate a simple test
39784 case which detects a bug in gcc-4.0.
39785
39786 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
39787
39788 * DISTLIST: Added normal/completion.c.
39789
39790 * normal/completion.c: New file.
39791
39792 * term/i386/pc/console.c (grub_console_getwh): New function.
39793 (grub_console_term): Assign grub_console_getwh to getwh.
39794
39795 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
39796 function is defined in normal/completion.c as
39797 grub_normal_do_completion.
39798 (grub_cmdline_get): Use grub_normal_do_completion instead of
39799 grub_tab_complete.
39800
39801 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
39802 returns non-zero, otherwise return 0.
39803 (grub_partition_iterate): First, probe the partition map. Then,
39804 call ITERATE only for this partition map.
39805
39806 * kern/misc.c (grub_strncmp): Rewritten.
39807
39808 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
39809 returns non-zero. Otherwise return 0.
39810
39811 * include/grub/partition.h (grub_partition_map_iterate): Return
39812 int instead of void.
39813
39814 * include/grub/normal.h (grub_normal_do_completion): New prototype.
39815
39816 * include/grub/misc.h (grub_strncmp): Change the type of N to
39817 grub_size_t.
39818
39819 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
39820 of void.
39821
39822 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
39823 unsigned explicitly before comparing it with I.
39824
39825 * kern/main.c (grub_env_write_root): Add the attribute unused into
39826 VAR.
39827
39828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39829 normal/completion.c.
39830 (normal_mod_SOURCES): Likewise.
39831 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39832 (normal_mod_SOURCES): Likewise.
39833
39834 * normal/command.c (grub_iterate_commands): If ITERATE returns
39835 non-zero, return one immediately.
39836
39837 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
39838
39839 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
39840 * kern/i386/pc/startup.S: Updated Global Descriptor table's
39841 descriptions.
39842 (grub_vbe_get_controller_info): New function.
39843 (grub_vbe_get_mode_info): Likewise.
39844 (grub_vbe_set_mode): Likewise.
39845 (grub_vbe_get_mode): Likewise.
39846 (grub_vbe_set_memory_window): Likewise.
39847 (grub_vbe_get_memory_window): Likewise.
39848 (grub_vbe_set_scanline_length): Likewise.
39849 (grub_vbe_get_scanline_length): Likewise.
39850 (grub_vbe_set_display_start): Likewise.
39851 (grub_vbe_get_display_start): Likewise.
39852 (grub_vbe_set_palette_data): Likewise.
39853 * include/grub/i386/pc/vbe.h: New file.
39854
39855 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39856
39857 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
39858 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
39859 * DISTLIST: Likewise.
39860 * kern/ieee1275/of.c: Moved to ...
39861 * kern/ieee1275/ieee1275.c: ... here.
39862
39863 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39864
39865 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
39866 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
39867 Pass 0 as `end' parameter to grub_strtoul().
39868
39869 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39870
39871 * include/grub/powerpc/ieee1275/console.h: Do not include
39872 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
39873 ifdef.
39874 (grub_console_cur_color): Remove i386-specific prototype.
39875 (grub_console_real_putchar): Likewise.
39876 (grub_console_checkkey): Likewise.
39877 (grub_console_getkey): Likewise.
39878 (grub_console_getxy): Likewise.
39879 (grub_console_gotoxy): Likewise.
39880 (grub_console_cls): Likewise.
39881 (grub_console_setcursor): Likewise.
39882 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
39883 Include <grub/machine/console.h>.
39884 * term/ieee1275/ofconsole.c: Likewise.
39885
39886 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
39887
39888 * Makefile.in (LIBLZO): New variable.
39889
39890 * configure.ac: Check for LZO version 2.
39891
39892 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
39893 lzo/lzo1x.h instead of lzo1x.h.
39894
39895 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
39896 of -llzo.
39897
39898 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
39899 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
39900
39901 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
39902 copying the data from PARTITION to P.
39903
39904 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39905
39906 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
39907 negative, unload the module.
39908
39909 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
39910 map is "pc_partition_map" but not "pc".
39911 (usage): Fix the description. The options are --boot-image and
39912 --core-image but not --boot-file or --core-file.
39913 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
39914 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
39915 DEFAULT_DIRECTORY.
39916
39917 * util/i386/pc/grub-install.in: Do not specify --boot-file or
39918 --core-file. Specify INSTALL_DEVICE as an argument.
39919
39920 * util/console.c: Include config.h.
39921 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
39922 [HAVE_NCURSES_H]: Include ncurses.h.
39923 [HAVE_CURSES_H]: Include curses.h.
39924 [!A_NORMAL] (A_NORMAL): Defined as zero.
39925 [!A_STANDOUT] (A_STANDOUT): Likewise.
39926
39927 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
39928 -lncurses.
39929 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
39930
39931 * configure.ac: Check for curses libraries and headers.
39932
39933 * Makefile.in (LIBCURSES): New variable.
39934
39935 * genmk.rb (Script::rule): Set the executable bits.
39936
39937 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
39938 name of the PC partition map is "pc_partition_map" but not "pc".
39939
39940 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39941
39942 * util/i386/pc/grub-install.in (grub_probefs): New variable.
39943 (modules): Likewise.
39944 (usage): Added descriptions for --modules and --grub-probefs.
39945 Handle --modules and --grub-probefs. Save the arguments in MODULES
39946 and GRUB_PROBEFS, respectively.
39947 Auto-detect a filesystem module against GRUBDIR. If the result is
39948 empty and modules are not specified explicitly, abort the
39949 installation. Add the result to MODULES.
39950
39951 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
39952 disk/powerpc/ieee1275/ofdisk.c,
39953 include/grub/powerpc/ieee1275/init.h and
39954 term/powerpc/ieee1275/ofconsole.c.
39955 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
39956 term/ieee1275/ofconsole.c.
39957
39958 * include/grub/powerpc/ieee1275/console.h: Resurrected.
39959
39960 * COPYING: Upgraded to the latest version. Only the address of the
39961 FSF office has changed.
39962
39963 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
39964
39965 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
39966 kern/ieee1275.c with kern/ieee1275/of.c.
39967
39968 * kern/ieee1275.c: Moved to ...
39969 * kern/ieee1275/of.c: ... here.
39970
39971 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
39972
39973 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
39974 readability.
39975
39976 * config.guess: Updated to the latest version from gnulib.
39977 * config.sub: Likewise.
39978 * install.sh: Likewise.
39979 * mkinstalldirs: Likewise.
39980
39981 * include/grub/console.h: Removed. This file is arch-specific. Do
39982 not put this in include/grub.
39983
39984 * include/grub/i386/pc/console.h: Resurrected.
39985
39986 * util/console.c: Include grub/machine/console.h instead of
39987 grub/console.h.
39988 * util/grub-emu.c: Likewise.
39989
39990 2005-08-04 Marco Gerards <metgerards@student.han.nl>
39991
39992 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
39993 hardcoded value.
39994
39995 From Vincent Pelletier <subdino2004@yahoo.fr>
39996 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
39997 Redefined to use grub_getwh.
39998 (grub_term): New member named getwh.
39999 (grub_getwh): New prototype.
40000 * kern/term.c (grub_getwh): New function.
40001 * term/i386/pc/console.c (grub_console_getwh): New function.
40002 (grub_console_term): New member `getwh'.
40003 * term/i386/pc/vga.c (grub_vga_getwh): New function.
40004 (grub_vga_term): New member `getwh'.
40005 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
40006 grub_ssize_t.
40007 (grub_ofconsole_getw): New function.
40008 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
40009 (grub_ofconsole_term): New field named getwh and new initial
40010 value.
40011
40012 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
40013
40014 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
40015 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
40016 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
40017 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
40018 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
40019 of <grub/machine/ieee1275.h>.
40020 * commands/ieee1275/reboot.c: Likewise.
40021 * boot/powerpc/ieee1275/ieee1275.c: Move ...
40022 * kern/ieee1275.c: ... to here. All users updated. Change all
40023 parameter structs to use new type `grub_ieee1275_cell_t'.
40024 * term/powerpc/ieee1275/ofconsole.c: Move ...
40025 * term/ieee1275/ofconsole.c: ... to here. All users updated.
40026 * disk/powerpc/ieee1275/ofdisk.c: Move ...
40027 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
40028 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
40029 to return int.
40030 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
40031 Remove unused prototypes. All users updated.
40032 * include/grub/powerpc/ieee1275/console.h: Removed.
40033 * include/grub/powerpc/ieee1275/ieee1275.h: Define
40034 `grub_ieee1275_cell_t'.
40035 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
40036 Cast comparisons with -1 to the correct type.
40037 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
40038 type to match `grub_ieee1275_entry_fn'.
40039
40040 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
40041
40042 * DISTLIST: Added util/i386/pc/grub-probefs.c.
40043
40044 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
40045 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
40046 partmap/sun.c.
40047 (grub_probefs_SOURCES): New variable.
40048
40049 * util/i386/pc/grub-probefs.c: New file.
40050
40051 * util/i386/pc/grub-setup.c (main): Call
40052 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
40053 grub_hfs_init and grub_jfs_init to initialize the system. Call
40054 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
40055 grub_pc_partition_map_fini to finish the system.
40056
40057 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
40058
40059 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
40060 function.
40061 (grub_multiboot_load_elf32): Likewise.
40062 (grub_multiboot_is_elf64): Likewise.
40063 (grub_multiboot_load_elf64): Likewise.
40064 (grub_multiboot_load_elf): Likewise.
40065 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
40066 an ELF32 or ELF64 file.
40067 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
40068
40069 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
40070 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
40071 NULL before calling FS->LABEL.
40072 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
40073 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
40074 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
40075 before calling FS->LABEL.
40076
40077 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
40078
40079 * util/i386/pc/grub-install.in (datadir): New variable.
40080 (libdir): Removed.
40081 (pkgdatadir): New variable.
40082 (pkglibdir): Removed.
40083
40084 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
40085
40086 * DISTLIST: Added util/i386/pc/grub-install.in.
40087
40088 * util/i386/pc/grub-install.in: New file.
40089
40090 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
40091 (grub_install_SOURCES): Likewise.
40092
40093 * genmk.rb: Added support for scripts.
40094 (Script): New class.
40095 (scripts): New variable.
40096
40097 * Makefile.in (install-local): Install sbin_SCRIPTS by
40098 INSTALL_SCRIPT.
40099 (uninstall): Remove sbin_SCRIPTS.
40100
40101 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
40102 device, try to get a GRUB device by
40103 grub_util_biosdisk_get_grub_dev.
40104 Free DEST_DEV.
40105
40106 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
40107 description for --device-map.
40108
40109 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40110
40111 Change the semantics of variable hooks. They now return strings
40112 instead of error values.
40113
40114 * util/i386/pc/grub-setup.c: Include grub/env.h.
40115 (setup): Use grub_device_set_root instead of grub_env_set.
40116
40117 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
40118 grub_env_get instead of grub_device_set_root and
40119 grub_device_get_root, respectively.
40120
40121 * kern/main.c (grub_env_write_root): New function.
40122 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
40123 grub_env_set instead of grub_device_set_root.
40124
40125 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
40126 many variables.
40127 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
40128 rather than calling ENV->WRITE_HOOK afterwards.
40129 (grub_env_get): Return the result of ENV->READ_HOOK rather than
40130 passing a pointer of a pointer.
40131 (grub_register_variable_hook): Change the types of "read_hook" and
40132 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
40133 respectively.
40134 Allocate the default empty string on the heap, because this string
40135 may be freed later.
40136
40137 * kern/device.c: Include grub/env.h.
40138 (grub_device_set_root): Removed.
40139 (grub_device_get_root): Likewise.
40140 (grub_device_open): Use grub_env_get instead of
40141 grub_device_get_root.
40142
40143 * include/grub/env.h (grub_env_read_hook_t): New type.
40144 (grub_env_write_hook_t): Likewise.
40145 (grub_env_var): Change the types of "read_hook" and "write_hook"
40146 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
40147 (grub_register_variable_hook): Likewise.
40148
40149 * include/grub/device.h (grub_device_set_root): Removed.
40150 (grub_device_set_root): Likewise.
40151
40152 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
40153 make sure that DIRNAME terminates with '/', so that
40154 grub_fat_find_dir will fail if PATH is not a directory.
40155
40156 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
40157 from DIRNAME.
40158 Use the qualifier auto for print_files and print_files_long.
40159 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
40160 as a regular file.
40161 Put a newline only if there is no error.
40162 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
40163 used.
40164
40165 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40166
40167 * kern/partition.c (grub_partition_probe): Initialize PART to
40168 NULL. Otherwise, when no partition map is registered, this returns
40169 a garbage.
40170
40171 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
40172
40173 * partmap/apple.c (apple_partition_map_iterate): Check if POS
40174 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
40175 valid.
40176
40177 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
40178
40179 * commands/ls.c (grub_ls_list_disks): Print the filesystem
40180 information on each device, if it does not have partitions. Print
40181 "Device" instead of "Disk", because this function is not specific
40182 to disk devices.
40183
40184 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
40185 static to ensure that it is put on the memory rather than a
40186 register.
40187
40188 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40189
40190 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
40191 (grub_cat_init): Likewise.
40192 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
40193 (options): Likewise.
40194 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
40195 (grub_configfile_init): Likewise.
40196 * font/manager.c (GRUB_MOD_INIT): Likewise.
40197 * commands/help.c (GRUB_MOD_INIT): Likewise.
40198 (grub_help_init): Likewise.
40199 * normal/command.c (grub_command_init): Likewise.
40200 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
40201 * disk/loopback.c (grub_loop_init): Likewise.
40202 (GRUB_MOD_INIT): Likewise.
40203 * commands/ls.c (grub_ls_init): Likewise.
40204 (GRUB_MOD_INIT): Likewise.
40205 (options): Likewise.
40206 * commands/boot.c (grub_boot_init): Likewise.
40207 (GRUB_MOD_INIT): Likewise.
40208 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
40209 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
40210 (GRUB_MOD_INIT): Likewise.
40211 * commands/cmp.c (grub_cmp_init): Likewise.
40212 (GRUB_MOD_INIT): Likewise.
40213
40214 * normal/arg.c: Use <> instead of "" to include header files.
40215 (SHORT_ARG_HELP): New macro.
40216 (SHORT_ARG_USAGE): Likewise.
40217 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
40218 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
40219 descriptions.
40220 (find_short): Check if C is 'h' or 'u' explicitly.
40221 (grub_arg_show_help): Use space characters instead of tabs. Treat
40222 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
40223 are shown with --help and --usage only if they are not used for
40224 the command itself.
40225 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
40226 'h' and 'u'.
40227
40228 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
40229 const into "longarg". Change the type of "shortarg" to int.
40230
40231 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40232
40233 * boot/i386/pc/boot.S (boot_drive_check): New label.
40234
40235 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
40236 macro.
40237
40238 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
40239 which do not pass a boot drive correctly. Copied from GRUB Legacy.
40240
40241 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40242
40243 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
40244 When turning off Gate A20, skip the check and return immediately,
40245 because this is not fatal usually.
40246
40247 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40248
40249 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
40250 be 0x7C00 instead of 0x8000.
40251
40252 * boot/i386/pc/pxeboot.S: Rewritten.
40253
40254 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
40255 EXT_C.
40256 (gate_a20_check_state): Read a byte from 0x108000. Invert the
40257 result.
40258
40259 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
40260
40261 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
40262 robustness. This routine now supports a BIOS call and System
40263 Control Port A to modify the gate A20.
40264
40265 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40266 Increased to 0x440.
40267
40268 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
40269
40270 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
40271 device path and resulting ihandle.
40272 (grub_ofdisk_close): dprintf the ihandle being closed.
40273 (grub_ofdisk_read): dprintf function parameters.
40274 * kern/mm.c (grub_mm_init_region): Likewise.
40275 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
40276 (grub_linux_boot): dprintf the Linux entry point, initrd address and
40277 size, and boot arguments.
40278 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
40279 before loading into memory.
40280 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
40281 before loading into memory.
40282
40283 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
40284
40285 * kern/mm.c: Added much documentation.
40286 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
40287 8, set to 5 instead of 8.
40288
40289 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40290
40291 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
40292
40293 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
40294 (grub_mkdevicemap_SOURCES): New variable.
40295
40296 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
40297 lib/device.c of GRUB Legacy.
40298
40299 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40300
40301 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
40302 instead of PATH is NULL.
40303
40304 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
40305
40306 * commands/cmp.c (BUFFER_SIZE): New macro.
40307 (grub_cmd_cmp): Close the right file at the right time. Compare
40308 only data just read. Don't report files of different size as
40309 identical. Dynamically allocate buffers. Move variable
40310 declarations at the beginning of function.
40311
40312 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
40313
40314 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
40315 reverse.
40316
40317 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
40318
40319 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
40320 when backspace is pressed at beginning of line.
40321
40322 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
40323
40324 * DISTLIST: Added genfslist.sh.
40325
40326 * normal/main.c (fs_module_list): New variable.
40327 (autoload_fs_module): New function.
40328 (read_fs_list): Likewise.
40329 (grub_normal_execute): Call read_fs_list.
40330
40331 * kern/fs.c (grub_fs_autoload_hook): New variable.
40332 (grub_fs_probe): Added support for auto-loading.
40333
40334 * include/grub/normal.h (struct grub_fs_module_list): New struct.
40335 (grub_fs_module_list_t): New type.
40336
40337 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
40338 (grub_fs_autoload_hook): New prototype.
40339
40340 * genfslist.sh: New file.
40341
40342 * genmk.rb: Added a rule to generate a filesystem list.
40343
40344 2005-06-30 Marco Gerards <metgerards@student.han.nl>
40345
40346 * configure.ac: Fix the test for cross-compiling.
40347
40348 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
40349 define GRUB_UTIL anymore.
40350
40351 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
40352 so this function works on other systems than just big endian.
40353 (load_modules): Likewise.
40354 (add_segments): Likewise.
40355
40356 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
40357
40358 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
40359 contains `l' modifier, get a long from va_arg().
40360
40361 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
40362
40363 * kern/mm.c (grub_free): If the next free block which is being
40364 merged is the first free block, set the first block to the block
40365 being freed.
40366 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
40367
40368 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40369
40370 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
40371 `grub_ieee1275_chosen'.
40372
40373 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40374
40375 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
40376 (grub_ieee1275_chosen): New variable.
40377 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
40378 `chosen'.
40379 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
40380 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
40381 Rename first argument to `phandle' for consistency.
40382 (grub_ieee1275_get_property_length): Likewise.
40383 (grub_ieee1275_next_property): Likewise. Change type of first argument
40384 to grub_ieee1275_phandle_t.
40385 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
40386 Move export next to declaration.
40387 (grub_ieee1275_chosen): New variable.
40388 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
40389 Correct cosmetic typo.
40390 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
40391 `grub_ieee1275_chosen'.
40392 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
40393 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
40394 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
40395 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
40396 `grub_ieee1275_chosen'.
40397
40398 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
40399
40400 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
40401 /chosen/bootargs.
40402 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
40403 /chosen/bootargs as "variable=value" pairs.
40404
40405 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
40406
40407 * include/grub/misc.h (grub_dprintf): New macro.
40408 (grub_real_dprintf): New prototype.
40409 (grub_strword): Likewise.
40410 (grub_iswordseparator): Likewise.
40411 * kern/misc.c (grub_real_dprintf): New function.
40412 (grub_strword): Likewise.
40413 (grub_iswordseparator): Likewise.
40414
40415 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
40416
40417 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
40418 (roundup): Remove macro.
40419 (grub_ieee1275_flags): Make static.
40420 (grub_ieee1275_realmode): Remove.
40421 (grub_ieee1275_test_flag): New function.
40422 (grub_ieee1275_set_flag): Likewise.
40423 (find_options): Rename to `grub_ieee1275_find_options'; update
40424 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
40425 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
40426 (cmain): New prototype.
40427 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
40428 `grub_ieee1275_flags' directly.
40429 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
40430 machine/biosdisk.h.
40431 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
40432 Don't include grub/machine/init.h.
40433 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
40434 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
40435 Remove prototype.
40436 (grub_ieee1275_realmode): Likewise.
40437 (grub_ieee1275_flag): New enum.
40438 (grub_ieee1275_test_flag): New prototype.
40439 (grub_ieee1275_set_flag): New prototype.
40440 * include/grub/powerpc/ieee1275/init.h: Remove file.
40441 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
40442 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
40443 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
40444 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
40445 comment.
40446 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
40447 `grub_ieee1275_test_flag'.
40448 (grub_ieee1275_encode_devname): Likewise.
40449
40450 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
40451
40452 * include/grub/powerpc/ieee1275/ieee1275.h
40453 (grub_ieee1275_encode_devname): New prototype.
40454 (grub_ieee1275_get_filename): Likewise.
40455 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
40456 function.
40457 (grub_set_prefix): Likewise.
40458 (grub_machine_init): Call grub_set_prefix.
40459 * kern/powerpc/ieee1275/openfw.c: Fix typos.
40460 (grub_parse_type): New enum.
40461 (grub_ieee1275_get_devargs): New function.
40462 (grub_ieee1275_get_devname): Likewise.
40463 (grub_ieee1275_parse_args): Likewise.
40464 (grub_ieee1275_get_filename): Likewise.
40465 (grub_ieee1275_encode_devname): Likewise.
40466
40467 2005-03-30 Marco Gerards <metgerards@student.han.nl>
40468
40469 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
40470 `grub_loader_unset'.
40471
40472 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
40473
40474 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
40475 instead of grub_ieee1275_interpret.
40476 (grub_halt_init): New function.
40477 (grub_halt_fini): Likewise.
40478 (GRUB_MOD_INIT): Correct message grammar.
40479 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
40480 instead of grub_ieee1275_interpret.
40481 (grub_reboot_init): New function.
40482 (grub_reboot_fini): Likewise.
40483 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
40484 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
40485 util/i386/pc/misc.c with commands/ieee1275/halt.c,
40486 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
40487 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
40488 function.
40489 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
40490 Add prototype.
40491 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
40492 prototype.
40493 (grub_halt): Likewise.
40494 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
40495 (cmain): Remove __attribute__((unused)).
40496 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
40497 (grub_heap_len): Likewise.
40498 (grub_machine_fini): New function.
40499 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
40500 (grub_halt): Likewise.
40501 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
40502 function.
40503 * util/powerpc/ieee1275/misc.c: New file.
40504
40505 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40506
40507 * DISTLIST: New file.
40508 * gendistlist.sh: Likewise.
40509
40510 * Makefile.in (COMMON_DISTFILES): Removed.
40511 (BOOT_DISTFILES): Likewise.
40512 (CONF_DISTFILES): Likewise.
40513 (DISK_DISTFILES): Likewise.
40514 (FS_DISTFILES): Likewise.
40515 (INCLUDE_DISTFILES): Likewise.
40516 (KERN_DISTFILES): Likewise.
40517 (LOADER_DISTFILES): Likewise.
40518 (TERM_DISTFILES): Likewise.
40519 (UTIL_DISTFILES): Likewise.
40520 (DISTFILES): Likewise.
40521 (uninstall): Uninstall files in $(pkgdata_DATA).
40522 (DISTLIST): New target.
40523 (distdir): Use the contents of the file DISTLIST to get a list of
40524 distributed files.
40525
40526 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40527
40528 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
40529 descriptor. This is ported from GRUB Legacy.
40530
40531 * gencmdlist.sh: Added an extra semicolon to make it work with
40532 old sed versions. Reported by Robert Bihlmeyer
40533 <robbe@orcus.priv.at>.
40534
40535 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
40536
40537 Automatic loading of commands is supported.
40538
40539 * normal/main.c (read_command_list): New function.
40540 (grub_normal_execute): Call read_command_list.
40541
40542 * normal/command.c (grub_register_command): Return zero or CMD.
40543 Allocate CMD->NAME from the heap.
40544 Initialize CMD->MODULE_NAME to zero.
40545 Find the same name as well. If the same command is found and it is
40546 a dummy command, overwrite members. If it is not a dummy command,
40547 return zero.
40548 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
40549 (grub_command_find): If a dummy command is found, load a module
40550 and retry to find a command only once.
40551
40552 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
40553 make sure that each command is loaded.
40554
40555 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
40556 macro.
40557 (struct grub_command): Remove const from the member `name'.
40558 Add a new member `module_name'.
40559 (grub_register_command): Return grub_command_t.
40560
40561 * commands/help.c (grub_cmd_help): Call grub_command_find to make
40562 sure that each command is loaded.
40563
40564 * genmk.rb (PModule::rule): Specify a module name without the
40565 suffix ".mod" to gencmdlist.sh.
40566
40567 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40568
40569 * gencmdlist.sh: New file.
40570
40571 * genmk.rb (PModule::rule): Generate a rule for a command list.
40572 Clean command.lst.
40573 Generate command.lst from $(COMMANDFILES).
40574
40575 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
40576 (DATA): Added $(pkgdata_DATA).
40577 (install-local): Install files in $(pkgdata_DATA).
40578
40579 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40580
40581 * term/i386/pc/vga.c (debug_command): Removed.
40582 (GRUB_MOD_INIT): Do not register the command "debug".
40583
40584 From Hollis Blanchard:
40585 * commands/configfile.c: New file.
40586 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40587 commands/configfile.c.
40588 (pkgdata_MODULES): Added configfile.mod.
40589 (configfile_mod_SOURCES): New variable.
40590 (configfile_mod_CFLAGS): Likewise.
40591 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40592 commands/configfile.c.
40593 (pkgdata_MODULES): Added configfile.mod.
40594 (configfile_mod_SOURCES): New variable.
40595 (configfile_mod_CFLAGS): Likewise.
40596 * util/grub-emu.c (main): Call grub_configfile_init and
40597 grub_configfile_fini.
40598 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
40599 prototype.
40600 [GRUB_UTIL] (grub_configfile_fini): Likewise.
40601
40602 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40603
40604 * normal/arg.c (grub_arg_show_help): Do not show the bug report
40605 address.
40606
40607 * commands/help.c (grub_cmd_help): Do not print newlines after
40608 the last command in print_command_help.
40609
40610 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40611
40612 * commands/default.h: New file.
40613 * commands/timeout.h: Likewise.
40614 * normal/context.c: Likewise.
40615
40616 * util/misc.c: Do not include sys/times.h.
40617 Include sys/time.h and grub/machine/time.h.
40618 (grub_get_rtc): Rewritten with gettimeofday.
40619
40620 * util/grub-emu.c (main): Call grub_default_init and
40621 grub_timeout_init before grub_normal_init, and call
40622 grub_timeout_fini and grub_default_fini after grub_main.
40623
40624 * util/console.c (grub_ncurses_checkkey): Return the read
40625 character or -1.
40626
40627 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
40628 timeouts.
40629
40630 * normal/main.c (read_config_file): Push MENU. If this fails,
40631 print an error and wait for a user input.
40632 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
40633 If a menu is empty or an error occurs, pop MENU.
40634 (grub_normal_execute): Pop and free MENU after grub_menu_run
40635 returns.
40636
40637 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
40638
40639 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
40640 include time.h.
40641 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40642 without GRUB_UTIL.
40643 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
40644 time.h.
40645 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40646 without GRUB_UTIL.
40647
40648 * include/grub/normal.h (struct grub_menu_list): New struct.
40649 (grub_menu_list_t): New type.
40650 (struct grub_context): New struct.
40651 (grub_context_t): New type.
40652 (grub_register_command): Got rid of EXPORT_FUNC.
40653 (grub_unregister_command): Likewise.
40654 (grub_context_get): New prototype.
40655 (grub_context_get_current_menu): Likewise.
40656 (grub_context_push_menu): Likewise.
40657 (grub_context_pop_menu): Likewise.
40658 [GRUB_UTIL] (grub_default_init): Likewise.
40659 [GRUB_UTIL] (grub_default_fini): Likewise.
40660 [GRUB_UTIL] (grub_timeout_init): Likewise.
40661 [GRUB_UTIL] (grub_timeout_fini): Likewise.
40662
40663 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
40664 commands/timeout.c and normal/context.c.
40665 (pkgdata_MODULES): Added default.mod and timeout.mod.
40666 (normal_mod_SOURCES): Added normal/context.c.
40667 (default_mod_SOURCES): New variable.
40668 (default_mod_CFLAGS): Likewise.
40669 (timeout_mod_SOURCES): Likewise.
40670 (timeout_mod_CFLAGS): Likewise.
40671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
40672 conf/i386-pc.rmk.
40673 (pkgdata_MODULES): Added default.mod and timeout.mod.
40674 (normal_mod_SOURCES): Added normal/context.c.
40675 (default_mod_SOURCES): New variable.
40676 (default_mod_CFLAGS): Likewise.
40677 (timeout_mod_SOURCES): Likewise.
40678 (timeout_mod_CFLAGS): Likewise.
40679
40680 * Makefile.in (all-local): Added $(MKFILES).
40681
40682 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
40683
40684 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
40685 (grub_emu_SOURCES): Likewise.
40686 (pkgdata_MODULES): Add `sun.mod'.
40687 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40688 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40689 `partmap/sun.c'.
40690 (pkgdata_MODULES): Add `sun.mod'.
40691 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40692 * include/grub/partition.h (grub_sun_partition_map_init): New
40693 prototype.
40694 (grub_sun_partition_map_fini): Likewise.
40695 * partmap/sun.c: New file.
40696 * util/grub-emu.c (main): Initialize and de-initialize the sun
40697 partitionmap support.
40698
40699 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
40700
40701 This implements an Emacs-like menu entry editor.
40702
40703 * normal/menu_entry.c: New file.
40704
40705 * util/console.c (grub_ncurses_putchar): Translate some Unicode
40706 characters to ASCII.
40707 (saved_char): New variable.
40708 (grub_ncurses_checkkey): Rewritten completely.
40709 (grub_ncurses_getkey): Likewise.
40710 (grub_ncurses_init): Call raw instead of cbreak.
40711
40712 * normal/menu.c (print_entry): Do not put a space.
40713 (init_page): Renamed to ...
40714 (grub_menu_init_page): ... this. All callers changed.
40715 (edit_menu_entry): Removed.
40716 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
40717
40718 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
40719
40720 * kern/misc.c (grub_vprintf): Call grub_refresh.
40721
40722 * normal/menu.c (DISP_LEFT): Renamed to ...
40723 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
40724 * normal/menu.c (DISP_UP): Renamed to ...
40725 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
40726 * normal/menu.c (DISP_RIGHT): Renamed to ...
40727 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
40728 * normal/menu.c (DISP_DOWN): Renamed to ...
40729 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
40730 * normal/menu.c (DISP_HLINE): Renamed to ...
40731 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
40732 * normal/menu.c (DISP_VLINE): Renamed to ...
40733 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
40734 * normal/menu.c (DISP_UL): Renamed to ...
40735 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
40736 * normal/menu.c (DISP_UR): Renamed to ...
40737 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
40738 * normal/menu.c (DISP_LL): Renamed to ...
40739 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
40740 * normal/menu.c (DISP_LR): Renamed to ...
40741 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
40742 * normal/menu.c (TERM_WIDTH): Renamed to ...
40743 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
40744 * normal/menu.c (TERM_HEIGHT): Renamed to ...
40745 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
40746 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
40747 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
40748 * normal/menu.c (TERM_MARGIN): Renamed to ...
40749 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
40750 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
40751 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
40752 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
40753 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
40754 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
40755 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
40756 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
40757 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
40758 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
40759 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
40760 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
40761 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
40762 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
40763 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
40764 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
40765 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
40766 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
40767 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
40768 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
40769 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
40770 All callers changed.
40771
40772 * include/grub/normal.h: New prototype.
40773
40774 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40775 normal/menu_entry.c.
40776 (normal_mod_SOURCES): Likewise.
40777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40778 (normal_mod_SOURCES): Likewise.
40779
40780 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
40781
40782 * include/grub/normal.h (grub_halt_init): New prototype.
40783 (grub_halt_fini): Likewise.
40784 (grub_reboot_init): Likewise.
40785 (grub_reboot_fini): Likewise.
40786
40787 * util/grub-emu.c: Include signal.h.
40788 (main_env): New global variable.
40789 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
40790 catch C-c.
40791 (grub_machine_fini): New function.
40792 (main): Call grub_halt_init and grub_reboot_init before
40793 grub_main, and grub_reboot_fini and grub_halt_fini after it.
40794 Call setjmp with MAIN_ENV to go back afterwards.
40795 Call grub_machine_fini right before return.
40796
40797 * include/grub/util/misc.h: Include setjmp.h.
40798 (main_env): New prototype.
40799
40800 * include/grub/kernel.h (grub_machine_fini): New prototype.
40801 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
40802 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
40803
40804 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
40805 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
40806 * term/i386/pc/console.c (grub_console_fini): Likewise.
40807
40808 * util/i386/pc/misc.c: New file.
40809
40810 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40811 util/i386/pc/misc.c, commands/i386/pc/halt.c and
40812 commands/i386/pc/reboot.c.
40813
40814 2005-02-14 Guillem Jover <guillem@hadrons.org>
40815
40816 * include/grub/dl.h (grub_dl_check_header): New prototype.
40817 (grub_arch_dl_check_header): Change return type to grub_err_t,
40818 remove size parameter and export function. Update all callers.
40819 * kern/dl.c (grub_dl_check_header): New function.
40820 (grub_dl_load_core): Use `grub_dl_check_header' instead of
40821 `grub_arch_dl_check_header'. Check ELF type. Check if sections
40822 are inside the core.
40823 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
40824 independent ELF header checks.
40825 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
40826 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
40827 `grub_dl_check_header' instead of explicit checks. Check for the
40828 ELF type.
40829 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
40830 `grub_dl_check_header' instead of explicit checks. Remove arch
40831 specific ELF header checks.
40832
40833 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
40834 argument SIZE.
40835
40836 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
40837
40838 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
40839 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
40840
40841 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
40842
40843 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
40844 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
40845 (part_map_iterate): Clear `grub_errno' and return 0 if
40846 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
40847 * partmap/amiga.c (amiga_partition_map_iterate): Return
40848 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
40849 * partmap/apple.c (apple_partition_map_iterate): Likewise.
40850
40851 2005-02-01 Guillem Jover <guillem@hadrons.org>
40852
40853 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
40854 help info.
40855
40856 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40857
40858 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
40859 Removed prototype.
40860 (grub_rescue_cmd_linux): New prototype.
40861 (grub_rescue_cmd_initrd): Likewise.
40862 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
40863 `bi_rec'.
40864 (grub_linux_release_mem): Release the memory for the initrd.
40865 (grub_load_linux): Renamed from this...
40866 (grub_rescue_cmd_linux): ...To this. Changed all callers.
40867 Changed `entry' not to be static. Loop over memory regions to
40868 find another one when the default fails.
40869 (grub_rescue_cmd_initrd): New function.
40870 (grub_linux_init): Remove function.
40871 (grub_linux_fini): Likewise.
40872 (GRUB_MOD_INIT): Register `initrd'.
40873 (GRUB_MOD_FINI): Unregister `initrd'.
40874 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
40875 Function removed.
40876 (grub_linux_normal_fini): Likewise.
40877 (GRUB_MOD_INIT): Register `initrd'.
40878 (GRUB_MOD_FINI): Unregister `initrd'.
40879
40880 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40881
40882 * commands/help.c: New file.
40883 * normal/arg.c (show_help): Renamed to...
40884 (grub_arg_show_help): ... this.
40885 * commands/i386/pc/halt.c: New file.
40886 * commands/i386/pc/reboot.c: Likewise.
40887 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
40888 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
40889 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
40890 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
40891 variables.
40892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40893 `commands/help.c'.
40894 (pkgdata_MODULES): Add `help.mod'.
40895 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
40896 * grub/i386/pc/init.h (grub_reboot): New prototype.
40897 (grub_halt): Likewise.
40898 * include/grub/normal.h (grub_arg_show_help): New prototype.
40899 (grub_help_init): Likewise.
40900 (grub_help_fini): Likewise.
40901 * util/grub-emu.c (main): Initialize and deinitialize the help
40902 command.
40903
40904 * normal/cmdline.c (grub_cmdline_get): Doc fix.
40905
40906 * normal/command.c (grub_command_init): Fixed the description of
40907 the `set' and `unset' commands.
40908
40909 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40910
40911 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
40912 function.
40913 * commands/ieee1275/halt.c: New file.
40914 * commands/ieee1275/reboot.c: Likewise.
40915 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
40916 `__attribute__ ((unused))'. Some GCS related fixed.
40917 (grub_suspend_init) [GRUB_UTIL]: Function removed.
40918 (grub_suspend_fini): Likewise.
40919 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
40920 and `halt.mod'.
40921 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
40922 (halt_mod_CFLAGS): New variables.
40923 * include/grub/powerpc/ieee1275/ieee1275.h
40924 (grub_ieee1275_interpret): New prototype.
40925
40926 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
40927
40928 * include/grub/misc.h (memmove): New prototype.
40929 (memcpy): Likewise.
40930
40931 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
40932
40933 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
40934 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
40935
40936 2005-01-22 Marco Gerards <metgerards@student.han.nl>
40937
40938 * kern/misc.c (grub_strndup): Function rewritten.
40939
40940 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
40941
40942 * normal/menu.c (TERM_WIDTH): Macro redefined.
40943 (TERM_TOP_BORDER_Y): Likewise.
40944 (draw_border): Replaced while-loop by a for-loop. Make the number
40945 of lines consistent with the number of lines displayed in
40946 print_entries. Added a margin below the rectangle.
40947 (print_entry): Make the entry fit in the rectangle.
40948 (print_entries): Display the scroll arrows next to the right
40949 border.
40950
40951 2005-01-21 Marco Gerards <metgerards@student.han.nl>
40952
40953 * fs/minix.c (grub_minix_find_file): Reserve more space for
40954 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
40955 `grub_strncpy' to copy `path' into it.
40956
40957 2005-01-21 Marco Gerards <metgerards@student.han.nl>
40958
40959 Add the loopback device, a device via which files can be accessed
40960 as devices.
40961
40962 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
40963 (pkgdata_MODULES): Add loopback.mod.
40964 (loopback_mod_SOURCES): New variable.
40965 (loopback_mod_CFLAGS): Likewise.
40966 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40967 `disk/loopback.c'.
40968 (pkgdata_MODULES): Add loopback.mod.
40969 (loopback_mod_SOURCES): New variable.
40970 (loopback_mod_CFLAGS): Likewise.
40971 * disk/loopback.c: new file.
40972 * include/grub/normal.h (grub_loop_init): New prototype.
40973 (grub_loop_fini): New prototype.
40974 * util/grub-emu.c (main): Initialize and de-initialize loopback
40975 support.
40976 * include/grub/disk.h (grub_disk_dev_id): Add
40977 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
40978
40979 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
40980
40981 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
40982 function.
40983 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
40984 (suspend_mod_SOURCES): New variable.
40985 (suspend_mod_CFLAGS): Likewise.
40986 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
40987 New prototype.
40988 * commands/ieee1275/suspend.c: New file.
40989
40990 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
40991
40992 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
40993 ((unused))' to `__attribute__ ((used))'.
40994 (GRUB_MOD_FINI): Likewise.
40995 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
40996 * genmk.rb (PModule): Assign space to common symbols when linking
40997 modules.
40998
40999 2005-01-20 Marco Gerards <metgerards@student.han.nl>
41000
41001 * include/grub/mm.h (grub_mm_init_region): Change the type of the
41002 `unsigned' arguments to `grub_size_t'.
41003 (grub_malloc): Likewise.
41004 (grub_realloc): Likewise.
41005 (grub_memalign): Likewise.
41006 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
41007 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
41008 * util/misc.c (grub_malloc): Likewise.
41009 (grub_realloc): Likewise.
41010 * kern/mm.c (get_header_from_pointer): Change the casts to
41011 `unsigned' into a cast to `grub_size_t'.
41012
41013 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
41014 point to `currnode' when `currnode' is changed.
41015
41016 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
41017 Schottelius <nico-linux@schottelius.org>.
41018
41019 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
41020
41021 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
41022 (note_path): Remove variable.
41023 (GRUB_IEEE1275_NOTE_NAME): New macro.
41024 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
41025 (grub_ieee1275_note_hdr): New structure.
41026 (grub_ieee1275_note_desc): Likewise.
41027 (grub_ieee1275_note): Likewise.
41028 (load_note): Remove `dir' argument. All callers updated. Remove
41029 `note_img' and `path'. Do not load a file from `note_path'.
41030 Initialize a struct grub_ieee1275_note and write that to `out'.
41031 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
41032
41033 2005-01-05 Marco Gerards <metgerards@student.han.nl>
41034
41035 * util/misc.c (grub_util_read_image): Revert last change. It
41036 called `grub_util_read_at', which seeks from the beginning of the
41037 file.
41038
41039 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
41040
41041 * TODO: Add note about endianness in grub-mkimage.
41042 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
41043 section.
41044 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
41045 (grub_mkimage_SOURCES): New target.
41046 * include/grub/kernel.h (grub_start_addr): Remove variable.
41047 (grub_end_addr): Likewise.
41048 (grub_total_module_size): Likewise.
41049 (grub_kernel_image_size): Likewise.
41050 (GRUB_MODULE_MAGIC): New constant.
41051 (grub_module_info): New structure.
41052 (grub_arch_modules_addr): New prototype.
41053 (grub_get_end_addr): Remove prototype.
41054 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
41055 * include/grub/powerpc/ieee1275/kernel.h: New file.
41056 * include/grub/util/misc.h (grub_util_get_fp_size): New
41057 prototype.
41058 (grub_util_read_at): Likewise.
41059 (grub_util_write_image_at): Likewise.
41060 * kern/main.c (grub_get_end_addr): Remove function.
41061 (grub_load_modules): Call grub_arch_modules_addr instead of using
41062 grub_end_addr. Look for a grub_module_info struct in memory. Use
41063 the grub_module_info fields instead of calling grub_get_end_addr
41064 as loop conditions. Move grub_add_unused_region code here.
41065 (grub_add_unused_region): Remove function.
41066 * kern/i386/pc/init.c: Include grub/cache.h.
41067 (grub_machine_init): Remove call to grub_get_end_addr. Remove
41068 one call to add_mem_region.
41069 (grub_arch_modules_addr): New function.
41070 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
41071 (grub_total_module_size): Likewise.
41072 Include grub/machine/kernel.h.
41073 (grub_arch_modules_addr): New function.
41074 * util/grub-emu.c (grub_end_addr): Remove variable.
41075 (grub_total_module_size): Likewise.
41076 (grub_arch_modules_addr): New function.
41077 * util/misc.c: Include unistd.h.
41078 (grub_util_get_fp_size): New function.
41079 (grub_util_read_at): Likewise.
41080 (grub_util_write_image_at): Likewise.
41081 (grub_util_read_image): Call grub_util_read_at.
41082 (grub_util_write_image): Call grub_util_write_image_at.
41083 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
41084 additional memory in kernel_img for a struct grub_module_info.
41085 Fill in that grub_module_info.
41086 * util/powerpc/ieee1275/grub-mkimage.c: New file.
41087
41088 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41089
41090 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
41091 New function.
41092 * include/grub/powerpc/ieee1275/ieee1275.h
41093 (grub_ieee1275_milliseconds): New prototype.
41094 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
41095 Change to 1000.
41096 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
41097 grub_ieee1275_milliseconds.
41098
41099 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41100
41101 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
41102 variable.
41103 (find_options): New function.
41104 (cmain): Call find_options.
41105 * include/grub/powerpc/ieee1275/ieee1275.h
41106 (grub_ieee1275_realmode): New extern variable.
41107 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
41108 grub_map if grub_ieee1275_realmode is false.
41109
41110 2004-12-29 Marco Gerards <metgerards@student.han.nl>
41111
41112 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
41113 lines are inserted and make it work like readline. Reported by
41114 Vincent Pelletier <subdino2004@yahoo.fr>.
41115
41116 2004-12-28 Marco Gerards <metgerards@student.han.nl>
41117
41118 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
41119
41120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
41121 `kern/powerpc/cache.S'.
41122
41123 2004-12-27 Marco Gerards <metgerards@student.han.nl>
41124
41125 * genmk.rb: Handle the `Program' class in the main loop. Written
41126 by Johan Rydberg <jrydberg@gnu.org>.
41127 (Program): New class.
41128 (programs): New variable.
41129 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
41130 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
41131 instead of "grub/kernel.h". Include <grub/machine/init.h>.
41132 (help_arch): Function removed.
41133 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
41134 `powerpc/libgcc.h' and `loader.h'.
41135 (pkgdata_PROGRAMS): New variable.
41136 (sbin_UTILITIES): Variable removed.
41137 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
41138 (grubof_SOURCES): Variable re-defined so it only includes the
41139 core functionality.
41140 (grubof_CFLAGS): Remove `-DGRUBOF'.
41141 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
41142 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
41143 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
41144 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
41145 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
41146 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
41147 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
41148 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
41149 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
41150 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
41151 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
41152 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
41153 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
41154 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
41155 (pc_mod_CFLAGS): New variables.
41156 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
41157 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
41158 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
41159 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
41160 Moved from here...
41161 * include/grub/i386/pc/init.h (grub_os_area_addr)
41162 (rub_os_area_size): ... to here.
41163 * include/grub/powerpc/ieee1275/ieee1275.h
41164 (grub_ieee1275_entry_fn): Export symbol.
41165 * include/grub/powerpc/ieee1275/init.h: New file.
41166 * include/grub/powerpc/libgcc.h: Likewise.
41167 * include/grub/cache.h: Likewise.
41168 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
41169 <hollis@penguinppc.org>.
41170 * kern/dl.c: Include <grub/cache.h>.
41171 (grub_dl_flush_cache): New function.
41172 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
41173 for this module.
41174 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
41175 (grub_console_init): Removed prototypes.
41176 (grub_machine_init): Don't initialize the modules anymore.
41177 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
41178 static.
41179 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
41180 Macro undef removed.
41181 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
41182 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
41183 relocation `R_PPC_REL32'. Return an error when the relocation is
41184 unknown.
41185 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
41186 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
41187 * util/misc.c (grub_arch_sync_caches): Likewise.
41188
41189 2004-12-19 Marco Gerards <metgerards@student.han.nl>
41190
41191 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
41192 `symlist.c', add `grubof_symlist.c'.
41193 (symlist.c): Variable removed.
41194 (grubof_HEADERS): Variable added.
41195 (grubof_symlist.c): New target.
41196 (kernel_syms.lst): Use `grubof_HEADERS' instead of
41197 `kernel_img_HEADERS'.
41198 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
41199 * kern/powerpc/dl.c: New file.
41200 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
41201 Function removed.
41202 (grub_arch_dl_relocate_symbols): Likewise.
41203 (grub_register_exported_symbols): Likewise.
41204
41205 2004-12-13 Marco Gerards <metgerards@student.han.nl>
41206
41207 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
41208 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
41209 to fail instead. Reported by Vincent Pelletier
41210 <subdino2004@yahoo.fr>.
41211
41212 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
41213 it is not allocated. Reported by Vincent Pelletier
41214 <subdino2004@yahoo.fr>.
41215
41216 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
41217 output so the output looks better.
41218
41219 2004-12-04 Marco Gerards <metgerards@student.han.nl>
41220
41221 Modulize the partition map support and add support for the amiga
41222 partition map.
41223
41224 * commands/ls.c: Include <grub/partition.h> instead of
41225 <grub/machine/partition.h>.
41226 * kern/disk.c: Likewise.
41227 * kern/rescue.c: Likewise.
41228 * loader/i386/pc/chainloader.c: Likewise.
41229 * normal/cmdline.c: Likewise.
41230 * kern/powerpc/ieee1275/init.c: Likewise.
41231 (grub_machine_init): Call `grub_pc_partition_map_init',
41232 `grub_amiga_partition_map_init' and
41233 `grub_apple_partition_map_init'.
41234 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
41235 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
41236 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
41237 `partition.h' and `pc_partition.h'.
41238 (grub_setup_SOURCES): Remove
41239 `disk/i386/pc/partition.c'. Add `kern/partition.c',
41240 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41241 (grub_emu_SOURCES): Likewise.
41242 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
41243 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
41244 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
41245 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41246 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
41247 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41248 (grubof_SOURCES): Likewise.
41249 * disk/i386/pc/partition.c: File removed.
41250 * disk/powerpc/ieee1275/partition.c: Likewise.
41251 * include/grub/powerpc/ieee1275/partition.h: Likewise.
41252 * include/grub/i386/pc/partition.h: Likewise.
41253 * kern/partition.c: New file.
41254 * partmap/amiga.c: Likewise.
41255 * partmap/apple.c: Likewise.
41256 * partmap/pc.c: Likewise.
41257 * include/grub/partition.h: Likewise..
41258 * include/grub/pc_partition.h: Likewise.
41259 * util/grub-emu.c: Include <grub/partition.h> instead of
41260 <grub/machine/partition.h>.
41261 (main): Call `grub_pc_partition_map_init',
41262 `grub_amiga_partition_map_init' and
41263 `grub_apple_partition_map_init' and deinitialize afterwards.
41264 * util/i386/pc/biosdisk.c: Include `#include
41265 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41266 `<grub/machine/partition.h>'.
41267 * util/i386/pc/grub-setup.c: Likewise.
41268 * util/i386/pc/biosdisk.c: Likewise.
41269 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
41270 partition information in case of a PC partition.
41271 * util/i386/pc/grub-setup.c: Include `#include
41272 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41273 `<grub/machine/partition.h>'.
41274 (setup): Only access the PC specific partition information in case
41275 of a PC partition.
41276
41277 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
41278
41279 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
41280 (grub_longjmp): Likewise.
41281 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
41282 20.
41283 * normal/powerpc/setjmp.S: New file.
41284 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41285 `normal/powerpc/setjmp.S'.
41286 (grubof_CFLAGS): Add `-DGRUBOF'.
41287 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
41288 [GRUB_UTIL && !GRUBOF].
41289
41290 2004-11-16 Marco Gerards <metgerards@student.han.nl>
41291
41292 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
41293 property named `name'. Correctly handle the error returned by
41294 `grub_ieee1275_finddevice' if a device can not be opened.
41295
41296 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
41297
41298 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
41299 `actual' for negativity.
41300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41301 kern/fshelp.c.
41302
41303 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41304
41305 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
41306 (PAGE_OFFSET): New macro.
41307 (CRTC_ADDR_PORT): Likewise.
41308 (CRTC_DATA_PORT): Likewise.
41309 (START_ADDR_HIGH_REGISTER): Likewise.
41310 (START_ADDR_LOW_REGISTER): Likewise.
41311 (GRAPHICS_ADDR_PORT): Likewise.
41312 (GRAPHICS_DATA_PORT): Likewise.
41313 (READ_MAP_REGISTER): Likewise.
41314 (INPUT_STATUS1_REGISTER): Likewise.
41315 (INPUT_STATUS1_VERTR_BIT): Likewise.
41316 (page): New variable.
41317 (wait_vretrace): New function.
41318 (set_read_map): Likewise.
41319 (set_start_address): Likewise.
41320 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
41321 the right page.
41322 (check_vga_mem): Take the page into account.
41323 (write_char): Likewise.
41324 (write_cursor): Likewise.
41325 (scroll_up): Likewise. Copy the page to the page that is not
41326 shown and switch between both pages.
41327 (grub_vga_putchar): Fix off by one error.
41328 (grub_vga_cls): Wait for the vertical retrace. Take the page into
41329 account.
41330
41331 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41332
41333 Add support for iso9660 (including rockridge).
41334
41335 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41336 (iso9660_mod_SOURCES): New variable.
41337 (iso9660_mod_CFLAGS): Likewise.
41338 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41339 * include/grub/fs.h (grub_iso9660_init): New prototype.
41340 * util/grub-emu.c (main): Call `grub_iso9660_init'.
41341 * fs/iso9660.c: New file.
41342
41343 * include/grub/misc.h (grub_strncat): New prototype.
41344 * kern/misc.c (grub_strncat): New function.
41345
41346 * fs/hfs.c (grub_hfs_mount): Translate the error
41347 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
41348 * fs/jfs.c (grub_jfs_mount): Likewise.
41349 * fs/ufs.c (grub_ufs_mount): Likewise.
41350
41351 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
41352
41353 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
41354 which initialized BAT registers.
41355 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
41356 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41357 Move from here...
41358 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
41359 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41360 ... to here.
41361 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
41362 (grub_mapclaim): Likewise.
41363 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
41364 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
41365 hand.
41366
41367 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
41368
41369 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
41370 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
41371 -ffreestanding and -msoft-float.
41372
41373 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
41374
41375 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
41376 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
41377 set in grub_ieee1275_flags.
41378
41379 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
41380
41381 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
41382 prototype.
41383 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
41384 grub_console_init first.
41385 Change the memory range used for grub_ieee1275_claim and
41386 grub_mm_init_region.
41387 Print an error message if the claim fails.
41388 Include <grub/misc.h>.
41389
41390 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
41391
41392 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
41393 Call grub_children_iterate for device nodes of type `scsi',
41394 `ide', or `ata'.
41395 (grub_ofdisk_open): Remove manual device alias resolution.
41396 Fix memory leak when device cannot be opened.
41397 * include/grub/powerpc/ieee1275/ieee1275.h
41398 (grub_children_iterate): New prototype.
41399 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
41400 New function.
41401 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41402 Return -1 if args.size was -1.
41403
41404 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41405
41406 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
41407 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
41408 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
41409 Open Firmware's memory for it; claim memory from _start to _end.
41410 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
41411 (_end): New extern.
41412 (_start): Zero BSS from __bss_start to _end.
41413 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
41414 New extern.
41415 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
41416
41417 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41418
41419 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
41420 -1 if args.base was -1.
41421
41422 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
41423
41424 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
41425 escape sequence instead of a literal ^L. Also call
41426 grub_ofconsole_gotoxy.
41427
41428 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
41429
41430 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
41431 void * arguments to grub_addr_t. All callers updated. Also make
41432 the `result' argument optional.
41433 (grub_ieee1275_release): change void * arguments to grub_addr_t.
41434 All callers updated.
41435
41436 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
41437
41438 * commands/ls.c (grub_ls_list_files): Use the string following the
41439 initial ')', if present, as the filesystem path.
41440 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
41441
41442 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
41443
41444 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
41445
41446 Make the source code of the menu interface more readable.
41447
41448 * normal/menu.c: Include grub/mm.h.
41449 (TERM_WIDTH): New macro.
41450 (TERM_HEIGHT): Likewise.
41451 (TERM_INFO_HEIGHT): Likewise.
41452 (TERM_MARGIN): Likewise.
41453 (TERM_SCROLL_WIDTH): Likewise.
41454 (TERM_TOP_BORDER_Y): Likewise.
41455 (TERM_LEFT_BORDER_X): Likewise.
41456 (TERM_BORDER_WIDTH): Likewise.
41457 (TERM_MESSAGE_HEIGHT): Likewise.
41458 (TERM_BORDER_HEIGHT): Likewise.
41459 (TERM_NUM_ENTRIES): Likewise.
41460 (TERM_FIRST_ENTRY_Y): Likewise.
41461 (TERM_ENTRY_WIDTH): Likewise.
41462 (TERM_CURSOR_X): Likewise.
41463 (draw_border): Use macros instead of magic numbers.
41464 (print_entry): Likewise.
41465 (print_entries): Likewise.
41466 (run_menu): Likewise. Also, handle the key 'e'.
41467 (run_menu_entry): Ignore empty command lines.
41468 (print_message): Added a new argument EDIT. If EDIT is true,
41469 print a different message.
41470 (init_page): Likewise.
41471 (edit_menu_entry): New function. Not implemented yet.
41472
41473 2004-09-17 Marco Gerards <metgerards@student.han.nl>
41474
41475 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
41476 can be loaded from normal mode.
41477
41478 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
41479 `multiboot.mod'.
41480 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
41481 (multiboot_mod_CFLAGS): New variables.
41482 * loader/i386/pc/linux_normal.c: New file.
41483 * loader/i386/pc/multiboot_normal.c: Likewise.
41484
41485 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
41486 attribute `unused'.
41487
41488 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
41489 `fdiro' to read the mode information from instead of `diro'.
41490
41491 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
41492 looking up a symlink.
41493
41494 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
41495 macro.
41496 * normal/command.c (grub_command_execute): Don't parse the
41497 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
41498 flags of the command.
41499
41500 * normal/menu.c (grub_menu_run): Fix typo.
41501
41502 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
41503
41504 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
41505
41506 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
41507 `y + 1' instead of `y - 1'.
41508
41509 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
41510
41511 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
41512
41513 From Hollis Blanchard <hollis@penguinppc.org>:
41514 * kern/misc.c (memmove): New alias for grub_memmove.
41515 (memcmp): New alias for grub_memcmp.
41516 (memset): New alias for grub_memset.
41517 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41518 Change "int handle" to "grub_ieee1275_phandle_t handle".
41519 * include/grub/powerpc/ieee1275/ieee1275.h
41520 (grub_ieee1275_get_property): Likewise.
41521
41522 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
41523
41524 Added normal mode command `chainloader' as module chain.mod, which
41525 depends on normal.mod and _chain.mod.
41526
41527 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
41528 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
41529 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
41530 Deleted prototype.
41531 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
41532 but arguments parsing moved to ...
41533 (grub_chainloader_cmd): ... here. New function.
41534 * include/grub/i386/pc/chainloader.h: New file.
41535 * loader/i386/pc/chainloader_normal.c: Likewise.
41536
41537 2004-09-11 Marco Gerards <metgerards@student.han.nl>
41538
41539 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
41540 (grub_mkimage_LDFLAGS): Likewise.
41541 (grub_emu_SOURCES): Likewise.
41542 (kernel_img_HEADERS): Added fshelp.h.
41543 * fs/ext2.c: Include <grub/fshelp.h>.
41544 (FILETYPE_REG): New macro.
41545 (FILETYPE_INO_REG): Likewise.
41546 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
41547 Changed all users.
41548 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
41549 all users.
41550 (grub_fshelp_node): New struct.
41551 (grub_ext2_data): Added member `diropen'. Changed member `inode'
41552 to a pointer.
41553 (grub_ext2_get_file_block): Removed function.
41554 (grub_ext2_read_block): New function.
41555 (grub_ext2_read_file): Replaced parameter `data' by `node'.
41556 This function was written.
41557 (grub_ext2_mount): Read the root inode. Create a diropen struct.
41558 (grub_ext2_find_file): Removed function.
41559 (grub_ext2_read_symlink): New function.
41560 (grub_ext2_iterate_dir): Likewise.
41561 (grub_ext2_open): Rewritten.
41562 (grub_ext2_dir): Rewritten.
41563 * include/grub/fshelp.h: New file.
41564 * fs/fshelp.c: Likewise.
41565
41566 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
41567
41568 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
41569 (print_message): Add a missing newline.
41570 (run_menu): Added timeout support.
41571 (run_menu_entry): New local function.
41572 (grub_menu_run): Added support for booting.
41573
41574 * kern/loader.c (grub_loader_is_loaded): New function.
41575
41576 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
41577 (grub_get_rtc): Exported.
41578
41579 * include/grub/i386/pc/time.h: Include grub/symbol.h.
41580 (grub_get_rtc): Exported.
41581
41582 * include/grub/normal.h (struct grub_command_list): Remove
41583 constant from the member `command'.
41584
41585 * include/grub/loader.h (grub_loader_is_loaded): Declared.
41586
41587 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
41588
41589 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
41590
41591 2004-08-28 Marco Gerards <metgerards@student.han.nl>
41592
41593 Add support for the JFS filesystem.
41594
41595 * fs/jfs.c: New file.
41596 * include/grub/fs.h (grub_jfs_init): New prototype.
41597 (grub_jfs_fini): New prototype.
41598 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
41599 (grub_emu_SOURCES): Likewise.
41600 (pkgdata_MODULES): Add jfs.mod.
41601 (jfs_mod_SOURCES): New variable.
41602 (jfs_mod_CFLAGS): Likewise.
41603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
41604 (grubof_SOURCES): Likewise.
41605 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
41606
41607 * fs/fat.c (grub_fat_find_dir): Convert the filename little
41608 endian to the host endian.
41609 (grub_fat_utf16_to_utf8): Move function from there...
41610 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
41611 the endianness of the source string anymore.
41612 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
41613
41614 2004-08-24 Marco Gerards <metgerards@student.han.nl>
41615
41616 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
41617 (grub_boot_fini) [GRUB_UTIL]: Likewise.
41618 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
41619 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
41620
41621 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
41622 (grub_hfs_iterate_dir): Make the function static. Add prototypes
41623 for `node_found' and `it_dir'.
41624 (grub_hfs_dir): Add prototype for `dir_hook'.
41625
41626 * fs/minix.c (grub_minix_get_file_block): Add prototype for
41627 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
41628 and `indir32' to silence a gcc warning.
41629
41630 * include/grub/fs.h (grub_hfs_init): New prototype.
41631 (grub_hfs_fini): Likewise.
41632
41633
41634 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
41635
41636 Each disk device has its own id now. This is useful to make use
41637 of multiple disk devices.
41638
41639 * include/grub/disk.h (grub_disk_dev_id): New enum.
41640 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
41641 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
41642
41643 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
41644 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41645
41646 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
41647 GRUB_DISK_DEVICE_OFDISK_ID as an id.
41648
41649 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
41650 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41651
41652 * include/grub/disk.h (struct grub_disk_dev): Added a new member
41653 "id" which is used by the cache manager.
41654
41655 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
41656 of just "GRUB".
41657
41658 2004-08-18 Marco Gerards <metgerards@student.han.nl>
41659
41660 * fs/hfs.c: New file.
41661 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
41662 (grub_emu_SOURCES): Likewise.
41663 (pkgdata_MODULES): Add hfs.mod.
41664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
41665 (grubof_SOURCES): Likewise.
41666 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
41667
41668 * include/grub/misc.h (grub_strncasecmp): Add prototype.
41669 * kern/misc.c (grub_strncasecmp): Add function.
41670
41671 2004-08-14 Marco Gerards <metgerards@student.han.nl>
41672
41673 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
41674 with parentheses.
41675
41676 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
41677 (grub_ext2_dir): In case the directory entry type is unknown, read
41678 it from the inode.
41679
41680 2004-08-02 Peter Bruin <pjbruin@dds.nl>
41681
41682 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
41683 grub_load_linux instead of grub_rescue_cmd_linux as second
41684 argument of grub_rescue_register_command.
41685
41686 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
41687
41688 2004-07-27 Marco Gerards <metgerards@student.han.nl>
41689
41690 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
41691 function.
41692 * commands/boot.c: Remove the check for `GRUB_UTIL'.
41693 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41694 `loader/powerpc/ieee1275/linux.c',
41695 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
41696 * include/grub/powerpc/ieee1275/ieee1275.h
41697 (grub_ieee1275_release): New prototype.
41698 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
41699 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
41700 normal, boot, linux and linux_normal.
41701 * loader/powerpc/ieee1275/linux.c: New file.
41702 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41703
41704 2004-07-12 Marco Gerards <metgerards@student.han.nl>
41705
41706 * normal/arg.c (grub_arg_parse): Correct error handling after
41707 reallocating the argumentlist (check if `argl' is not null instead
41708 of checking if `args' is not null).
41709 * kern/mm.c (grub_realloc): Return the same pointer when using the
41710 same region, instead of returning the header address.
41711
41712 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41713
41714 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
41715 one block instead of two when looking for the initial partition.
41716 (grub_partition_probe): Initialize the local variable `p' with 0.
41717 Use base 10 for the grub_strtoul call.
41718 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
41719 need for one local variable.
41720 (grub_strtoul): Don't add the new value to `num', instead of that
41721 just assign it.
41722
41723 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41724
41725 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
41726 (pxeboot_img_SOURCES): New variable.
41727 (pxeboot_img_ASFLAGS): Likewise.
41728 (pxeboot_img_LDFLAGS): Likewise.
41729 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
41730 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
41731 <lode_leroy@hotmail.com>.
41732
41733 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41734
41735 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
41736 there was no input.
41737
41738 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41739
41740 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
41741 the history buffer logic.
41742
41743 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41744
41745 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
41746 (FILETYPE_INO_SYMLINK): New macros.
41747 (grub_ext2_find_file): Check if the node is a directory using the
41748 inode stat information instead of using the filetype in the
41749 dirent. Exclude the first character of an absolute symlink.
41750 (grub_ext2_dir): Mask out the filetype part of the mode member of
41751 the inode.
41752
41753 2004-05-24 Marco Gerards <metgerards@student.han.nl>
41754
41755 Add support for UFS version 1 and 2. Add support for the minix
41756 filesystem version 1 and 2, both the variants with 14 and 30 long
41757 filenames.
41758
41759 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
41760 fs/minix.c.
41761 (grub_emu_SOURCES): Likewise.
41762 (pkgdata_MODULES): Add ufs.mod and minix.mod.
41763 (ufs_mod_SOURCES): New variable.
41764 (ufs_mod_CFLAGS): Likewise.
41765 (minix_mod_SOURCES): Likewise.
41766 (minix_mod_CFLAGS): Likewise.
41767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
41768 fs/minix.c.
41769 (grubof_SOURCES): Likewise.
41770 * fs/ufs.c: New file.
41771 * fs/minix.c: New file.
41772 * include/grub/fs.h (grub_ufs_init): New prototype.
41773 (grub_ufs_fini): Likewise.
41774 (grub_minix_init): Likewise.
41775 (grub_minix_fini): Likewise.
41776 * util/grub-emu.c (main): Initialize and deinitialize UFS and
41777 minix fs.
41778
41779 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
41780
41781 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
41782 commands/ls.c, commands/terminal.c, commands/boot.c,
41783 commands/cmp.c and commands/cat.c.
41784 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
41785
41786 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
41787 "env.h"
41788
41789 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41790
41791 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
41792 and grub_, respectively. Because the conversion is trivial and
41793 mechanical, I omit the details here. Please refer to the CVS
41794 if you need more information.
41795
41796 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41797
41798 * include/pupa: Renamed to ...
41799 * include/grub: ... this.
41800 * util/i386/pc/pupa-mkimage.c: Renamed to ...
41801 * util/i386/pc/grub-mkimage.c: ... this.
41802 * util/i386/pc/pupa-setup.c: Renamed to ...
41803 * util/i386/pc/grub-setup.c: ... this.
41804 * util/pupa-emu.c: Renamed to ...
41805 * util/grub-emu.c: ... this.
41806
41807 2004-03-29 Marco Gerards <metgerards@student.han.nl>
41808
41809 Add support for the newworld apple macintosh (PPC). This has been
41810 tested on the powerbook 2000 only. It only adds support for
41811 generic ieee1275 functions, console and disk support. This should
41812 be easy to port to other architectures with support for Open
41813 Firmware.
41814
41815 * configure.ac: Accept the powerpc as host_cpu. In the case of
41816 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
41817 specific tests are only executed while building for the i386.
41818 Inverse test for crosscompile.
41819 * genmk.rb (Utility): Allow assembler files.
41820 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
41821 * conf/powerpc-ieee1275.rmk: New file.
41822 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
41823 * disk/powerpc/ieee1275/partition.c: Likewise.
41824 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
41825 * include/pupa/powerpc/ieee1275/console.h: Likewise.
41826 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
41827 * include/pupa/powerpc/ieee1275/time.h: Likewise.
41828 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
41829 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
41830 * include/pupa/powerpc/ieee1275/loader.h
41831 * include/pupa/powerpc/setjmp.h: Likewise.
41832 * include/pupa/powerpc/types.h: Likewise.
41833 * kern/powerpc/ieee1275/init.c: Likewise.
41834 * kern/powerpc/ieee1275/openfw.c: Likewise.
41835 * term/powerpc/ieee1275/ofconsole.c: Likewise.
41836
41837 These files were written by Johan Rydberg
41838 (jrydberg@night.trouble.net) and I only modified them slightly.
41839
41840 * boot/powerpc/ieee1275/cmain.c: New file.
41841 * boot/powerpc/ieee1275/crt0.S: Likewise.
41842 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
41843 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
41844
41845 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
41846
41847 * Makefile.in: Update copyright.
41848 * genmodsrc.sh: Likewise.
41849 * gensymlist.sh: Likewise.
41850 * term/i386/pc/vga.c: Indent correctly.
41851
41852 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
41853 bugreporting address.
41854 * util/i386/pc/pupa-setup.c (usage): Likewise,
41855 (main): Call pupa_ext2_init and pupa_ext2_fini.
41856
41857 * fs/fat.c (log2): Renamed to ...
41858 (fat_log2): ... this.
41859 All callers changed.
41860 * kern/misc.c (memcpy): Alias to pupa_memmove.
41861 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
41862 lvalue cast.
41863 * util/console.c (pupa_ncurses_fini): Return 0.
41864
41865 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
41866 Move fail label here.
41867 [__GNU__]: Don't warn when using stat.
41868 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
41869 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
41870 long int. Use strtol instead of strtoul.
41871
41872 2004-03-14 Marco Gerards <metgerards@student.han.nl>
41873
41874 * commands/boot.c: New file.
41875 * commands/cat.c: Likewise.
41876 * commands/cmp.c: Likewise.
41877 * commands/ls.c: Likewise.
41878 * commands/terminal.c: Likewise.
41879 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
41880 (pupa_register_command): Changed interface to match the new
41881 argument parser.
41882 (pupa_command_execute): Changed (almost rewritten) so it uses
41883 pupa_split_command. Added support for setting variables using the
41884 syntax `foo=bar'.
41885 (rescue_command): Changed to work with the new argument parser.
41886 (terminal_command): Moved from here to commands/terminal.c.
41887 (set_command): New function.
41888 (unset_command): New function.
41889 (insmod_command): New function.
41890 (rmmod_command): New function.
41891 (lsmod_command): New function.
41892 (pupa_command_init): Don't initialize the command terminal
41893 anymore. Initialize the commands set, unset, insmod, rmmod and
41894 lsmod.
41895 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
41896 (kernel_img_HEADERS): Add arg.h and env.h.
41897 (pupa_mkimage_LDFLAGS): Add kern/env.c.
41898 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
41899 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
41900 normal/arg.c.
41901 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
41902 terminal.mod.
41903 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
41904 (boot_mod_SOURCES): New variable.
41905 (terminal_mod_SOURCES): Likewise.
41906 (ls_mod_SOURCES): Likewise.
41907 (cmp_mod_SOURCES): Likewise.
41908 (cat_mod_SOURCES): Likewise.
41909
41910 * normal/arg.c: New file.
41911 * kern/env.c: Likewise.
41912 * include/pupa/arg.h: Likewise.
41913 * include/pupa/env.h: Likewise.
41914 * font/manager.c (font_command): Changed to match argument parsing
41915 interface changes.
41916 (PUPA_MOD_INIT): Likewise.
41917 * hello/hello.c (pupa_cmd_hello): Likewise.
41918 (PUPA_MOD_INIT): Likewise.
41919 * include/pupa/disk.h: Include <pupa/device.h>.
41920 (pupa_print_partinfo): New prototype.
41921 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
41922 (pupa_dl_get_prefix): Likewise.
41923 * include/pupa/misc.h: Include <pupa/err.h>.
41924 (pupa_isgraph): New prototype.
41925 (pupa_isdigit): Likewise.
41926 (pupa_split_cmdline): Likewise.
41927 * include/pupa/normal.h: Include <pupa/arg.h>.
41928 (pupa_command): Changed the prototype of the member `func' to
41929 match the argument parsing interface. Added member `options'.
41930 (pupa_register_command): Updated to match function.
41931 (pupa_arg_parse): New prototype.
41932 (pupa_hello_init) [PUPA_UTIL]: New prototype.
41933 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
41934 (pupa_ls_init) [PUPA_UTIL]: Likewise.
41935 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
41936 (pupa_cat_init) [PUPA_UTIL]: Likewise.
41937 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
41938 (pupa_boot_init) [PUPA_UTIL]: Likewise.
41939 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
41940 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
41941 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
41942 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
41943 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
41944 * kern/disk.c: Include <pupa/file.h>.
41945 (pupa_print_partinfo): New function.
41946 * kern/dl.c: Include <pupa/env.h>.
41947 (pupa_dl_dir): Variable removed.
41948 (pupa_dl_load): Use the environment variable `prefix' instead of
41949 the variable pupa_dl_dir.
41950 (pupa_dl_set_prefix): Function removed.
41951 (pupa_dl_get_prefix): Likewise.
41952 * kern/i386/pc/init.c: Include <pupa/env.h>.
41953 (pupa_machine_init): Use the environment variable `prefix' instead of
41954 using pupa_dl_set_prefix to set the prefix.
41955 * kern/main.c: Include <pupa/env.h>.
41956 (pupa_set_root_dev): Use the environment variable `prefix' instead of
41957 using pupa_dl_get_prefix to get the prefix.
41958 * kern/misc.c: Include <pupa/env.h>.
41959 (pupa_isdigit): New function.
41960 (pupa_isgraph): Likewise.
41961 (pupa_ftoa): Likewise.
41962 (pupa_vsprintf): Added support for printing values of the type
41963 `double'. Make it possible to format variable output when using
41964 formatting like `%1.2%f'.
41965 (pupa_split_cmdline): New function.
41966 * kern/rescue.c: Include <pupa/env.h>.
41967 (next_word): Removed function.
41968 (pupa_rescue_cmd_prefix): Likewise.
41969 (pupa_rescue_cmd_set): New function.
41970 (pupa_rescue_cmd_unset): New function.
41971 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
41972 split the command line instead of splitting it here. Added
41973 support for setting variables using the syntax `foo=bar'. Don't
41974 initialize the prefix command anymore. Initialized the set and
41975 unset commands.
41976 * normal/cmdline.c: Include <pupa/env.h>.
41977 (pupa_tab_complete): Added prototypes for print_simple_completion,
41978 print_partition_completion, add_completion, iterate_commands,
41979 iterate_dev, iterate_part and iterate_dir. Moved code to print
41980 partition information from here to kern/disk.c.
41981 (pupa_cmdline_run): Don't check if the function exists anymore.
41982 * normal/main.c: Include <pupa/env.h>.
41983 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
41984 instead of using pupa_dl_get_prefix to get the prefix.
41985 * term/i386/pc/vga.c: Include <pupa/arg.h>.
41986 (check_vga_mem): Cast pointers to `void *' to silence a gcc
41987 warning.
41988 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
41989 (pupa_vga_setcolor): Declare unused variables with `__attribute__
41990 ((unused))' to silence a gcc warning.
41991 (pupa_vga_setcolor): Likewise.
41992 (debug_command): Changed to match argument parsing
41993 interface changes.
41994 * util/pupa-emu.c: Include <pupa/env.h>.
41995 (options): Added 0's for unused fields to silence a gcc warning.
41996 (argp): Likewise.
41997 (main): Use the environment variable `prefix' instead of using
41998 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
41999 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
42000 and terminal.
42001
42002 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
42003 * util/misc.c: Include <malloc.h>.
42004 (pupa_malloc): Rewritten so errors are correctly reported.
42005 (pupa_realloc): Likewise.
42006 (pupa_memalign): Likewise.
42007 (pupa_mm_init_region): Declare unused variables with
42008 `__attribute__ ((unused))' to silence a gcc warning.
42009 * normal/i386/setjmp.S: Remove tab at the end of the file to
42010 silence a gcc warning.
42011 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
42012 variables with `__attribute__ ((unused))' to silence a gcc
42013 warning.
42014 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
42015 local variable i unsigned to silence a gcc warning.
42016
42017 * kern/term.c: Include <pupa/misc.h>.
42018 (pupa_more_lines): New variable.
42019 (pupa_more): Likewise.
42020 (pupa_putcode): When the pager is active pause at the end of every
42021 screen.
42022 (pupa_set_more): New function.
42023 * include/pupa/term.h (pupa_set_more): New prototype.
42024
42025
42026 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
42027
42028 Now this project is GRUB 2 rather than PUPA. The location of
42029 the CVS repository was moved to GRUB's.
42030
42031 * configure.ac: Use bug-grub as the reporting address.
42032 Use GRUB instead of PUPA.
42033 Change the version number to 1.90.
42034
42035 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
42036
42037 * genkernsyms.sh: Updated copyright information.
42038 * genmk.rb: Likewise.
42039 * genmodsrc.sh: Likewise.
42040 * gensymlist.sh: Likewise.
42041 * boot/i386/pc/boot.S: Likewise.
42042 * boot/i386/pc/diskboot.S: Likewise.
42043 * disk/i386/pc/biosdisk.c: Likewise.
42044 * disk/i386/pc/partition.c: Likewise.
42045 * font/manager.c: Likewise.
42046 * fs/ext2.c: Likewise.
42047 * fs/fat.c: Likewise.
42048 * include/pupa/boot.h: Likewise.
42049 * include/pupa/device.h: Likewise.
42050 * include/pupa/disk.h: Likewise.
42051 * include/pupa/dl.h: Likewise.
42052 * include/pupa/elf.h: Likewise.
42053 * include/pupa/err.h: Likewise.
42054 * include/pupa/file.h: Likewise.
42055 * include/pupa/font.h: Likewise.
42056 * include/pupa/fs.h: Likewise.
42057 * include/pupa/kernel.h: Likewise.
42058 * include/pupa/loader.h: Likewise.
42059 * include/pupa/misc.h: Likewise.
42060 * include/pupa/mm.h: Likewise.
42061 * include/pupa/net.h: Likewise.
42062 * include/pupa/normal.h: Likewise.
42063 * include/pupa/rescue.h: Likewise.
42064 * include/pupa/setjmp.h: Likewise.
42065 * include/pupa/symbol.h: Likewise.
42066 * include/pupa/term.h: Likewise.
42067 * include/pupa/types.h: Likewise.
42068 * include/pupa/i386/setjmp.h: Likewise.
42069 * include/pupa/i386/types.h: Likewise.
42070 * include/pupa/i386/pc/biosdisk.h: Likewise.
42071 * include/pupa/i386/pc/boot.h: Likewise.
42072 * include/pupa/i386/pc/console.h: Likewise.
42073 * include/pupa/i386/pc/init.h: Likewise.
42074 * include/pupa/i386/pc/kernel.h: Likewise.
42075 * include/pupa/i386/pc/linux.h: Likewise.
42076 * include/pupa/i386/pc/loader.h: Likewise.
42077 * include/pupa/i386/pc/memory.h: Likewise.
42078 * include/pupa/i386/pc/multiboot.h: Likewise.
42079 * include/pupa/i386/pc/partition.h: Likewise.
42080 * include/pupa/i386/pc/time.h: Likewise.
42081 * include/pupa/i386/pc/vga.h: Likewise.
42082 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
42083 * include/pupa/util/getroot.h: Likewise.
42084 * include/pupa/util/misc.h: Likewise.
42085 * include/pupa/util/resolve.h: Likewise.
42086 * kern/device.c: Likewise.
42087 * kern/disk.c: Likewise.
42088 * kern/dl.c: Likewise.
42089 * kern/err.c: Likewise.
42090 * kern/file.c: Likewise.
42091 * kern/fs.c: Likewise.
42092 * kern/loader.c: Likewise.
42093 * kern/main.c: Likewise.
42094 * kern/misc.c: Likewise.
42095 * kern/mm.c: Likewise.
42096 * kern/rescue.c: Likewise.
42097 * kern/term.c: Likewise.
42098 * kern/i386/dl.c: Likewise.
42099 * kern/i386/pc/init.c: Likewise.
42100 * kern/i386/pc/lzo1x.S: Likewise.
42101 * kern/i386/pc/startup.S: Likewise.
42102 * loader/i386/pc/chainloader.c: Likewise.
42103 * loader/i386/pc/linux.c: Likewise.
42104 * loader/i386/pc/multiboot.c: Likewise.
42105 * normal/cmdline.c: Likewise.
42106 * normal/command.c: Likewise.
42107 * normal/main.c: Likewise.
42108 * normal/menu.c: Likewise.
42109 * normal/i386/setjmp.S: Likewise.
42110 * term/i386/pc/console.c: Likewise.
42111 * term/i386/pc/vga.c: Likewise.
42112 * util/console.c: Likewise.
42113 * util/genmoddep.c: Likewise.
42114 * util/misc.c: Likewise.
42115 * util/pupa-emu.c: Likewise.
42116 * util/resolve.c: Likewise.
42117 * util/unifont2pff.rb: Likewise.
42118 * util/i386/pc/biosdisk.c: Likewise.
42119 * util/i386/pc/getroot.c: Likewise.
42120 * util/i386/pc/pupa-mkimage.c: Likewise.
42121 * util/i386/pc/pupa-setup.c: Likewise.
42122
42123 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
42124
42125 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
42126 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
42127 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
42128 reading and reset it after reading.
42129 (pupa_ext2_close): Return PUPA_ERR_NONE.
42130
42131 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
42132 Correct value.
42133 (struct linux_kernel_header): Add kernel_version and
42134 initrd_addr_max.
42135 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
42136 pupa_file_read succeeds.
42137 (pupa_rescue_cmd_initrd): Implement.
42138
42139 2003-12-03 Marco Gerards <metgerards@student.han.nl>
42140
42141 * fs/ext2.c (pupa_ext2_label): New function.
42142 (pupa_ext2_fs): Added label.
42143 * fs/fat.c (pupa_fat_label): New function.
42144 (pupa_fat_fs): Added label.
42145 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
42146
42147 * kern/misc.c (pupa_strndup): New function.
42148 * include/pupa/misc.h (pupa_strndup): New prototype.
42149
42150 * include/pupa/normal.h: Include <pupa/err.h>.
42151 (pupa_set_history): New prototype.
42152 (pupa_iterate_commands): New prototype.
42153 * normal/cmdline.c: Include <pupa/machine/partition.h>,
42154 <pupa/disk.h>, <pupa/file.h>.
42155 (hist_size): New variable.
42156 (hist_lines): Likewise.
42157 (hist_end): Likewise.
42158 (hist_used): Likewise.
42159 (pupa_set_history): New function.
42160 (pupa_history_get): Likewise.
42161 (pupa_history_add): Likewise.
42162 (pupa_history_replace): Likewise.
42163 (pupa_tab_complete): Likewise.
42164 (pupa_cmdline_run): Added tab completion and history buffer. Tab
42165 completion shows partitionnames while completing partitions, this
42166 feature was suggested by Jeff Bailey.
42167 * normal/command.c (pupa_iterate_commands): New function.
42168 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
42169 (pupa_normal_init): Initialize history buffer.
42170 (PUPA_MOD_INIT): Likewise.
42171 (pupa_normal_fini): Free the history buffer.
42172 (PUPA_MOD_FINI): Likewise.
42173
42174 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
42175 key.
42176
42177 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
42178 * configure.ac [i386]: Check for regparam bug.
42179 (NESTED_FUNC_ATTR) [! i386]: Defined.
42180
42181 2003-11-17 Marco Gerards <metgerards@student.han.nl>
42182
42183 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
42184 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
42185 (pupa_emu_SOURCES): New variable.
42186 (pupa_emu_LDFLAGS): Likewise.
42187 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
42188 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
42189 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
42190 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42191 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
42192 (pupa_jmp_buf): New typedef.
42193 (pupa_setjmp) [PUPA_UTIL]: New macro.
42194 (pupa_longjmp) [PUPA_UTIL]: Likewise.
42195 * include/pupa/term.h (struct pupa_term): New member `refresh'.
42196 (pupa_refresh): New prototype.
42197 * include/pupa/util/getroot.h: New file.
42198 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
42199 it.
42200 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
42201 (pupa_rescue_cmd_cat): Likewise.
42202 (pupa_rescue_cmd_ls): Likewise.
42203 (pupa_rescue_cmd_testload): Likewise.
42204 (pupa_rescue_cmd_lsmod): Likewise.
42205 * normal/cmdline.c (pupa_cmdline_get): Likewise.
42206 * normal/menu.c (run_menu): Likewise.
42207 * kern/term.c (pupa_cls): Likewise.
42208 (pupa_refresh): New function.
42209 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
42210 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42211 * util/console.c: New file.
42212
42213 * util/i386/pc/getroot.c: New file.
42214 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
42215 (pupa_putchar): New function.
42216 (pupa_refresh): Likewise.
42217 (xgetcwd): Function moved to ...
42218 (strip_extra_slashes): Likewise.
42219 (get_prefix): Likewise.
42220 * util/i386/pc/getroot.c: ... here.
42221 (find_root_device): Function moved and renamed to...
42222 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
42223 Changed all callers.
42224 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
42225 and renamed to...
42226 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
42227 Changed all callers.
42228 * util/misc.c (pupa_memalign): New function.
42229 (pupa_mm_init_region): Likewise.
42230 (pupa_register_exported_symbols): Likewise.
42231 (pupa_putchar): Function removed.
42232 * util/pupa-emu.c: New file.
42233
42234 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
42235
42236 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
42237 (_multiboot_mod_SOURCES): New variable.
42238 (_multiboot_mod_CFLAGS): Likewise.
42239 * loader/i386/pc/multiboot.c: New file.
42240 * include/pupa/i386/pc/multiboot.h: Likewise.
42241 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
42242 (pupa_multiboot_real_boot): New function.
42243 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
42244 (pupa_multiboot_real_boot): New prototype.
42245 (pupa_rescue_cmd_multiboot): Likewise
42246 (pupa_rescue_cmd_module): Likewise.
42247
42248 * kern/loader.c (pupa_loader_set): Continue when
42249 pupa_loader_unload_func() fails.
42250 (pupa_loader_unset): New function.
42251 * include/pupa/loader.h (pupa_loader_unset): New prototype.
42252
42253 * kern/misc.c (pupa_stpcpy): New function.
42254 * include/pupa/misc.h (pupa_stpcpy): New prototype.
42255
42256 2003-11-12 Marco Gerards <metgerards@student.han.nl>
42257
42258 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
42259 for available extensions.
42260
42261 * include/pupa/i386/pc/time.h: New file.
42262 * kern/disk.c: Include <pupa/machine/time.h>.
42263 (PUPA_CACHE_TIMEOUT): New macro.
42264 (pupa_last_time): New variable.
42265 (pupa_disk_open): Flush the cache when there was a timeout.
42266 (pupa_disk_close): Reset the timer.
42267 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
42268 pupa_currticks.
42269 * util/misc.c: Include <sys/times.h>
42270 (pupa_get_rtc): New function.
42271
42272 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42273
42274 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
42275 as blocks.
42276 (pupa_ext2_get_file_block): Use blocks member.
42277
42278 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
42279 first block. Return -1 instead of pupa_errno on error.
42280
42281 2003-10-27 Marco Gerards <metgerards@student.han.nl>
42282
42283 * README: In the pupa-mkimage example use _chain instead of chain
42284 and ext2 instead of fat.
42285 * TODO: Replace ext2fs with jfs as an example. Add an item for
42286 adding journal playback for ext2fs.
42287 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
42288 (pkgdata_MODULES): Added ext2.mod.
42289 (ext2_mod_SOURCES): New variable.
42290 (ext2_mod_CFLAGS): Likewise.
42291 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
42292 * include/pupa/misc.h (pupa_strncpy): New prototype.
42293 (pupa_strcat): Likewise.
42294 (pupa_strncmp): Likewise.
42295 * kern/misc.c (pupa_strcat): Enable function.
42296 (pupa_strncpy): New function.
42297 (pupa_strncmp): Likewise.
42298 * fs/ext2.c: New file.
42299
42300 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
42301 when the read failed before retrying.
42302 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
42303 (_FILE_OFFSET_BITS): Likewise.
42304 * configure.ac: Added AC_SYS_LARGEFILE.
42305
42306 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42307
42308 * genmk.rb (PModule#rule): Make sure to get only symbol names
42309 from the output of nm.
42310 Reported by Robert Millan <rmh.grub@aybabtu.com>.
42311
42312 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42313
42314 I forgot to check in these changes for a long time. This adds
42315 incomplete support for VGA console, and this is still very
42316 buggy. Also, a lot of consideration is required for I18N,
42317 UNICODE, and VGA font issues. Therefore, assume that this is
42318 such that "better than nothing".
42319
42320 * font/manager.c: New file.
42321 * include/pupa/font.h: Likewise.
42322 * include/pupa/i386/pc/vga.h: Likewise.
42323 * term/i386/pc/vga.c: Likewise.
42324 * util/unifont2pff.rb: Likewise.
42325
42326 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
42327 (pkgdata_MODULES): Added vga.mod and font.mod.
42328 (vga_mod_SOURCES): New variables.
42329 (vga_mod_CFLAGS): Likewise.
42330 (font_mod_SOURCES): Likewise.
42331 (font_mod_CFLAGS): Likewise.
42332
42333 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
42334
42335 * include/pupa/term.h: Include pupa/err.h.
42336 (struct pupa_term): Added init and fini.
42337 Changed the argument of putchar to pupa_uint32_t.
42338
42339 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
42340 (pupa_console_real_putchar): New prototype.
42341 (pupa_console_putchar): Removed.
42342 (pupa_console_checkkey): Exported.
42343 (pupa_console_getkey): Likewise.
42344
42345 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
42346 characters.
42347
42348 * kern/term.c (pupa_term_set_current): Rewritten.
42349 (pupa_putchar): Likewise.
42350 (pupa_putcode): New function.
42351
42352 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
42353 (pupa_console_real_putchar): ... this.
42354 (pupa_vga_set_mode): New function.
42355 (pupa_vga_get_font): Likewise.
42356
42357 * normal/command.c: Include pupa/term.h.
42358 (terminal_command): New function.
42359 (pupa_command_init): Register the command "terminal".
42360
42361 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
42362 (DISP_UP): Likewise.
42363 (DISP_RIGHT): Likewise.
42364 (DISP_DOWN): Likewise.
42365 (DISP_HLINE): Likewise.
42366 (DISP_VLINE): Likewise.
42367 (DISP_UL): Likewise.
42368 (DISP_UR): Likewise.
42369 (DISP_LL): Likewise.
42370 (DISP_LR): Likewise.
42371
42372 * term/i386/pc/console.c (pupa_console_putchar): New function.
42373
42374 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
42375
42376 * util/resolve.c (pupa_util_resolve_dependencies): BUG
42377 FIX. Reverse the path_list.
42378
42379 * include/pupa/normal.h: Export pupa_register_command and
42380 pupa_unregister_command.
42381
42382 * hello/hello.c (pupa_cmd_hello): New module.
42383 * conf/i386-pc.rmk: Added hello.mod.
42384
42385 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
42386
42387 * kern/i386/pc/lzo1x.S: New file.
42388
42389 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
42390 (compress_kernel): New variable.
42391 (generate_image): Heavily modified to support compressing a
42392 large part of the core image.
42393
42394 * util/misc.c (pupa_util_read_image): Fix a file descriptor
42395 leak.
42396 (pupa_util_load_image): New function.
42397
42398 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
42399 (pupa_compressed_size): New variable.
42400 (codestart): Enable Gate A20 here.
42401 Decompress the compressed part of the core image.
42402 Rearrange the code to put functions and variables which are
42403 required for initialization in the non-compressed part.
42404 Include lzo1x.S.
42405
42406 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
42407 here.
42408
42409 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
42410
42411 * include/pupa/i386/pc/kernel.h
42412 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
42413 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
42414 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42415 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42416 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
42417
42418 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
42419
42420 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
42421 (Utility#rule): Likewise.
42422
42423 * configure.ac: Check if LZO is available.
42424
42425 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
42426
42427 * include/pupa/normal.h: New file.
42428 * include/pupa/setjmp.h: Likewise.
42429 * include/pupa/i386/setjmp.h: Likewise.
42430 * normal/cmdline.c: Likewise.
42431 * normal/command.c: Likewise.
42432 * normal/main.c: Likewise.
42433 * normal/menu.c: Likewise.
42434 * normal/i386/setjmp.S: Likewise.
42435
42436 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
42437 (pupa_rescue_cmd_initrd): Likewise.
42438
42439 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
42440 Likewise.
42441
42442 * kern/i386/pc/startup.S (translation_table): New variable.
42443 (translate_keycode): New function.
42444 (pupa_console_getkey): Call translate_keycode.
42445
42446 * kern/rescue.c (attempt_normal_mode): New function.
42447 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
42448 it failed, print a message.
42449
42450 * kern/mm.c (pupa_real_malloc): Print more information when a
42451 free magic is broken.
42452 (pupa_free): If the first free header is not free actually, set
42453 it to P.
42454
42455 * kern/main.c (pupa_load_normal_mode): Just load the module
42456 "normal".
42457 (pupa_main): Don't print the message
42458 "Entering into rescue mode..." here.
42459
42460 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
42461 Declared.
42462 (pupa_rescue_cmd_initrd): Likewise.
42463 (pupa_rescue_cmd_initrd): Likewise.
42464
42465 * include/pupa/symbol.h (FUNCTION): Specify the type.
42466 (VARIABLE): Likewise.
42467
42468 * include/pupa/err.h (pupa_err_t): Added
42469 PUPA_ERR_UNKNOWN_COMMAND.
42470
42471 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
42472 (pupa_dl_get_prefix): Likewise.
42473
42474 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
42475 Added _chain.mod and _linux.mod instead of chain.mod and
42476 linux.mod.
42477 (chain_mod_SOURCES): Renamed to ...
42478 (_chain_mod_SOURCES): ... this.
42479 (chain_mod_CFLAGS): Renamed to ...
42480 (_chain_mod_CFLAGS): ... this.
42481 (linux_mod_SOURCES): Renamed to ...
42482 (_linux_mod_SOURCES): ... this.
42483 (linux_mod_CFLAGS): Renamed to ...
42484 (_linux_mod_CFLAGS): ... this.
42485 (normal_mod_SOURCES): New variable.
42486 (normal_mod_CFLAGS): Likewise.
42487 (normal_mod_ASFLAGS): Likewise.
42488
42489 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
42490
42491 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
42492 possible.
42493
42494 * kern/dl.c (pupa_dl_ref): Refer depending modules
42495 recursively.
42496 (pupa_dl_unref): Unrefer depending modules recursively.
42497 Don't call pupa_dl_unload implicitly, because PUPA can crash if
42498 a module is unloaded before one depending on that module is
42499 unloaded.
42500 (pupa_dl_unload): Unload depending modules explicitly,
42501 if possible.
42502
42503 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
42504
42505 * include/pupa/i386/pc/linux.h: New file.
42506 * loader/i386/pc/linux.c: Likewise.
42507
42508 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
42509 Removed.
42510 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
42511 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
42512 of PUPA_CHAINLOADER_BOOT_SECTOR.
42513
42514 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
42515 (pupa_linux_prot_size): New variable.
42516 (pupa_linux_tmp_addr): Likewise.
42517 (pupa_linux_real_addr): Likewise.
42518 (pupa_linux_boot_zimage): New function.
42519 (pupa_linux_boot_bzimage): Likewise.
42520
42521 * kern/i386/pc/init.c (struct mem_region): New structure.
42522 (MAX_REGIONS): New macro.
42523 (mem_regions): New variable.
42524 (num_regions): Likewise.
42525 (pupa_os_area_addr): Likewise.
42526 (pupa_os_area_size): Likewise.
42527 (pupa_lower_mem): Likewise.
42528 (pupa_upper_mem): Likewise.
42529 (add_mem_region): New function.
42530 (compact_mem_regions): Likewise.
42531 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
42532 the size of the conventional memory and that of so-called upper
42533 memory (before the first memory hole).
42534 Instead of adding each found region to free memory, use
42535 add_mem_region and add them after removing overlaps.
42536 Also, add only 1/4 of the upper memory to free memory. The rest
42537 is used for loading OS images. Maybe this is ad hoc, but this
42538 makes it much easier to relocate OS images when booting.
42539
42540 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
42541 (pupa_enter_rescue_mode): Don't register initrd and module.
42542
42543 * kern/mm.c: Include pupa/dl.h.
42544
42545 * kern/main.c: Include pupa/file.h and pupa/device.h.
42546
42547 * kern/loader.c (pupa_loader_load_module_func): Removed.
42548 (pupa_loader_load_module): Likewise.
42549
42550 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
42551 ``.o''.
42552
42553 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
42554 (pupa_linux_tmp_addr): Likewise.
42555 (pupa_linux_real_addr): Likewise.
42556 (pupa_linux_boot_zimage): Likewise.
42557 (pupa_linux_boot_bzimage): Likewise.
42558
42559 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
42560 (pupa_upper_mem): Likewise.
42561 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
42562 module is too dangerous.
42563
42564 * include/pupa/loader.h (pupa_os_area_addr): Declared.
42565 (pupa_os_area_size): Likewise.
42566 (pupa_loader_set): Remove the first argument. Loader doesn't
42567 manage modules or initrd any longer.
42568 (pupa_loader_load_module): Removed.
42569
42570 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
42571 (linux_mod_SOURCES): New variable.
42572 (linux_mod_CFLAGS): Likewise.
42573
42574 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
42575
42576 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
42577 the length of a blocklist correctly.
42578
42579 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
42580 Use ioctl only if the OS file is a block device.
42581 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
42582 not very useful for normal files.
42583
42584 * kern/main.c (pupa_set_root_dev): New function.
42585 (pupa_load_normal_mode): Likewise.
42586 (pupa_main): Call those above.
42587
42588 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
42589 pupa_uint16_t.
42590
42591 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
42592
42593 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42594
42595 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
42596 (setup): Configure the installed partition information and the
42597 dl prefix.
42598
42599 * loader/i386/pc/chainloader.c (my_mod): New variable.
42600 (pupa_chainloader_unload): New function.
42601 (pupa_rescue_cmd_chainloader): Refer itself.
42602 (PUPA_MOD_INIT): Save its own module in MY_MOD.
42603
42604 * kern/i386/pc/startup.S (install_partition): Removed.
42605 (version_string): Likewise.
42606 (config_file): Likewise.
42607 (pupa_install_dos_part): New variable.
42608 (pupa_install_bsd_part): Likewise.
42609 (pupa_prefix): Likewise.
42610 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
42611
42612 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
42613 and pupa/misc.h.
42614 (make_install_device): New function.
42615 (pupa_machine_init): Set the dl prefix.
42616
42617 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
42618 (buf): Renamed to ...
42619 (linebuf): ... this.
42620 (pupa_rescue_cmd_prefix): New function.
42621 (pupa_rescue_cmd_insmod): Likewise.
42622 (pupa_rescue_cmd_rmmod): Likewise.
42623 (pupa_rescue_cmd_lsmod): Likewise.
42624 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
42625 rmmod and lsmod.
42626
42627 * kern/mm.c (pupa_memalign): If failed even after invalidating
42628 disk caches, unload unneeded modules and retry.
42629
42630 * kern/misc.c (pupa_memmove): New function.
42631 (pupa_memcpy): Removed.
42632 (pupa_strcpy): New function.
42633 (pupa_itoa): Made static.
42634
42635 * kern/dl.c (pupa_dl_iterate): New function.
42636 (pupa_dl_ref): Likewise.
42637 (pupa_dl_unref): Likewise.
42638 (pupa_dl_unload): Return if succeeded or not.
42639 (pupa_dl_unload_unneeded): New function.
42640 (pupa_dl_unload_all): Likewise.
42641 (pupa_dl_init): Renamed to ...
42642 (pupa_dl_set_prefix): ... this.
42643 (pupa_dl_get_prefix): New function.
42644
42645 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
42646 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
42647 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42648 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42649 (pupa_install_dos_part): Declared.
42650 (pupa_install_bsd_part): Likewise.
42651 (pupa_prefix): Likewise.
42652 (pupa_boot_drive): Likewise.
42653
42654 * include/pupa/types.h: Fix a typo.
42655
42656 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
42657 pupa_memmove.
42658 (pupa_memmove): Declared.
42659 (pupa_strcpy): Likewise.
42660
42661 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
42662 pupa_mod_init takes one argument, its own module.
42663 (pupa_dl_unload_unneeded): Declared.
42664 (pupa_dl_unload_all): Likewise.
42665 (pupa_dl_ref): Likewise.
42666 (pupa_dl_unref): Likewise.
42667 (pupa_dl_iterate): Likewise.
42668 (pupa_dl_init): Renamed to ...
42669 (pupa_dl_set_prefix): ... this.
42670 (pupa_dl_get_prefix): Declared.
42671
42672 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
42673 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
42674 unloaded.
42675 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
42676 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
42677
42678 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
42679 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
42680
42681 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42682
42683 * util/i386/pc/pupa-setup.c (setup): Define the internal
42684 function find_first_partition_start at the top level, because GCC
42685 3.0.x cannot compile internal functions in deeper scopes
42686 correctly.
42687 (find_root_device): Use lstat instead of stat.
42688 Don't follow symbolic links.
42689 Fix the path-constructing code.
42690
42691 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
42692 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
42693 by a BLKGETSIZE ioctl first, because block devices don't fill
42694 the member st_mode of the structure stat on Linux.
42695 [__linux__] (linux_find_partition): Use a temporary buffer
42696 REAL_DEV for the working space. Copy it to DEV before returning.
42697 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
42698 buffer cache consistent.
42699 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
42700 strncmp. The previous value was merely wrong.
42701 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
42702
42703 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
42704 FAT size is 12. The previous value was merely wrong.
42705
42706 * kern/main.c (pupa_main): Don't split the starting message from
42707 newlines.
42708
42709 * kern/term.c (pupa_putchar): Put CR after LF instead of before
42710 LF, because BIOS goes crazy about character attributes in this
42711 case.
42712
42713 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42714
42715 * include/i386/pc/util/biosdisk.h: New file.
42716 * util/i386/pc/biosdisk.c: Likewise.
42717 * util/i386/pc/pupa-setup.c: Likewise.
42718
42719 * Makefile.in (INCLUDE_DISTFILES): Added
42720 include/pupa/i386/pc/util/biosdisk.h.
42721 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
42722 directory util/i386/pc.
42723 (install-local): Added a rule for sbin_UTILITIES.
42724 (uninstall): Likewise.
42725
42726 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
42727
42728 * util/misc.c (xrealloc): New function.
42729 (pupa_malloc): Likewise.
42730 (pupa_free): Likewise.
42731 (pupa_realloc): Likewise.
42732 (pupa_stop): Likewise.
42733 (pupa_putchar): Likewise.
42734
42735 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
42736
42737 * include/pupa/util/misc.h (xrealloc): Declared.
42738
42739 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
42740 macro.
42741 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
42742 (PUPA_BOOT_MACHINE_BPB_END): ... this.
42743
42744 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
42745 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42746
42747 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
42748 way should be implemented.
42749 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42750
42751 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
42752 the size of NAME for safety.
42753 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
42754 0x88.
42755
42756 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
42757 (pupa_setup_SOURCES): Likewise.
42758
42759 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
42760
42761 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42762
42763 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
42764 bunch of pushl's from pusha, because this destroys the return
42765 value.
42766
42767 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42768
42769 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
42770 This means that any missing prototypes could be fatal. Also, you
42771 must take care when writing assembly code. See the comments at
42772 the beginning of startup.S, for more details.
42773
42774 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
42775 compilation mechanism.
42776 (pupa_chainloader_real_boot): Likewise.
42777 (pupa_biosdisk_rw_int13_extensions): Likewise.
42778 (pupa_biosdisk_rw_standard): Likewise.
42779 (pupa_biosdisk_check_int13_extensions): Likewise.
42780 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
42781 (pupa_biosdisk_get_diskinfo_standard): Likewise.
42782 (pupa_get_memsize): Likewise.
42783 (pupa_get_mmap_entry): Likewise.
42784 (pupa_console_putchar): Likewise.
42785 (pupa_console_setcursor): Likewise.
42786 (pupa_getrtsecs): Use pushl instead of push.
42787
42788 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
42789 memory instead of the stack for a mmap entry, because some
42790 BIOSes may ignore the maximum size and overflow.
42791
42792 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
42793
42794 * genmk.rb (PModule#rule): Compile automatically generated
42795 sources with module-specific CFLAGS as well as other sources.
42796
42797 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42798
42799 * configure.ac: Check ld.
42800 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
42801 respectively, before checking endianness and sizes.
42802
42803 * Makefile.in (LD): New variable.
42804
42805 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42806
42807 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
42808
42809 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42810
42811 * Changelog: New file.
42812